Questions tagged [etoolbox]
{etoolbox} is a package which provides several macros which take advantage of the {e-tex} extension of (La)TeX.
566
questions
0
votes
0
answers
9
views
list of labels in a separate file out of input files included in a main file
I was trying this amazing solution displayed for the question
Can I get a list of labels written to a separate file, or at least in one place in the document?
in a project file (main with several ...
0
votes
1
answer
56
views
Script for resolving \ifbool statements
In my tex documents, I am frequently using the etoolbox package, and in particular the command \ifbool{<bool>}{<true>}{<false>}.
I'd like to have an automated way of replacing these ...
0
votes
0
answers
11
views
tcblistof issue with macro inside tcolorbox title
I write a lot of reports (minutes). Each report can contains a lot of subjects.
For a better tracking, each subjet is attached with a unique persisent number.
I managed to do so thanks to this subject ...
1
vote
1
answer
65
views
How does one fully expand a macro between \csname and \encsname?
The best way to ask this question is to present two MWEs, one of which works and one of which does not. Naturally, I would like to get this into the second form, but I am at a loss as to what is ...
1
vote
1
answer
57
views
How to redefine the align environment in terms of itself?
I'm trying to redefine the amsmath equation environments to do some regex parsing of their contents. Something is going wrong with the environments that allow alignment tabs. Here's a MWE of the ...
4
votes
2
answers
65
views
Using listadd from etoolbox to build a list of names
I would like to create a list of people's names. However my attempt is not working
\documentclass{article}
\usepackage{etoolbox}
\newcounter{person}
\setcounter{person}{0}
\newcommand{\people}{}
\...
0
votes
2
answers
38
views
Compile two times with boolean set to true first and then false
I just received some tex files where there is a boolean defined at the beginning of the document with the etoolbox package. Changing the boolean produces a slightly different pdf. To produce the other ...
2
votes
3
answers
89
views
How to detect pgfkeysnovalue with csname?
To simplify the programming of a package, I want to generate multiple similar commands (\test, \testb, ...) with a single command \NEWCOMMAND. Each key needs to be linked with an unique command name. ...
1
vote
1
answer
32
views
How to create a list with descriptions in pdftooltip
What I wish is simply to create a list in latex which contains variable names and a description and use it for pdftoolTip. This should be seen in the context of \begin{equation} enviroment.
So the ...
2
votes
1
answer
76
views
Using etoolbox package to resize box automatically
I have hundreds of latex tables I generated using Stargazer. Almost all of these tables can be rectified by wrapping tabular as such \resizebox{\textwidth}{!}{ \begin{tabular} ... \end{tabular}}. I ...
0
votes
1
answer
48
views
titlesec interferes with addcontentsline/addtocontents (adding Parts and Chapters to lot and lof)
For my lot and lof i am using something i found here, so that the parts and chapters show in them (lot and lof). And for my Titles (Part, Chapter, Section ...) i am using titlesec, so they look (imo) ...
2
votes
0
answers
42
views
Unable to patch `\hyper@normalise` command with `\patchcmd`
Is it possible to add a hook to \hyper@normalise command without overwriting all the macro. I wish to add a hook at the end of macro just before \hyper@n@rmalise that I could add custom definitions ...
0
votes
1
answer
56
views
Using defined macro inside csdef
I have defined new font size switches using the following code.
\makeatletter
\newcommand{\vi@mult}{2.986}
\newcommand{\HUGE}{\normalsize%
\@setfontsize\HUGE{\vi@mult\dimexpr\f@size pt\relax}{\vi@...
1
vote
1
answer
32
views
Skipped line in `\iftoggle` gives error: paragraph ended and too many }'s
I'm trying to make a new command that outputs the first or the second argument depending on a toggle (with a specific counter -- it's basically to output question and answer for an exam).
However, if ...
0
votes
1
answer
85
views
Unwanted offset when using biblatex's printbibliography and author bolding via xstring+etoolbox
I'm trying to bold my name in a publication list. After an embarrassing amount of time/experimentation I have something I'm happy with via etoolbox and xstring:
\renewcommand{\mkbibnamegiven}[1]{\...