Skip to content

Commit

Permalink
defcounter test for etoolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed May 5, 2018
1 parent 8d9c8d7 commit 6d2cc36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Binary file modified t/expansion/etoolbox.pdf
Binary file not shown.
13 changes: 11 additions & 2 deletions t/expansion/etoolbox.tex
@@ -1,10 +1,9 @@
\documentclass{article}
\usepackage{etoolbox}

% --- overload test
\csdef{path-PB}{path of PB}
\csdef{path-UF}{path of UF}

% overload test
\newrobustcmd\whoami{PB}
\newrobustcmd\mypath{\csuse{path-\whoami}}

Expand All @@ -19,5 +18,15 @@
\providerobustcmd\whoami{noop}

\mypath
% --- end overload test

% --- basic macros
\newcommand\basic{basic}
\robustify{\basic}
\protecting{\textit{\basic}}

\newcounter{countfour}
\defcounter{countfour}{2+2}
\the\value{countfour}

\end{document}
6 changes: 6 additions & 0 deletions t/expansion/etoolbox.xml
Expand Up @@ -14,4 +14,10 @@
<para xml:id="p3">
<p>path of UF</p>
</para>
<para xml:id="p4">
<p><text font="italic">basic</text></p>
</para>
<para xml:id="p5">
<p>4</p>
</para>
</document>

0 comments on commit 6d2cc36

Please sign in to comment.