{etoolbox} is a package which provides several macros which take advantage of the {e-tex} extension of (La)TeX.

learn more… | top users | synonyms

7
votes
0answers
58 views

Compress 5-6 to 5f. in a citation's postnote: \rangelen in \ifnumequal

I am trying to automatically convert page ranges in a postnote given as, e.g., \textcite[4-5]{Smi83} to 4f. iff the range is exactly two pages long. It appears that biblatex' \rangelen is made for ...
5
votes
0answers
42 views

How to translate \ifthenelse from “ifthen” to “etoolbox”?

Trying to make conditional expressions that inspect the total page count of the document (see this question), i've found this solution using ifthen package: \documentclass{article} ...
1
vote
0answers
51 views

etoolbox preto command doesn't work when tocloft package is used

So I am trying to use: \preto\tableofcontents{ ... } to add something before ToC (and same thing for LoF and LoT) in the Class file (i.e. neither adding ... in the real .tex file, nor making ...
0
votes
0answers
38 views

Output two files

I'm tiring of maintaining two different CV and resume .tex files and want to combine them into a single file. I'm considering etoolbox as a way of combining my CV and resume into the same. Then I ...