Skip to main content

Questions tagged [etoolbox]

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

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 ...
qntcmn's user avatar
  • 41
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 ...
user279611's user avatar
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 ...
Atiroocky's user avatar
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 ...
Mike Pugh's user avatar
  • 329
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 ...
srossd's user avatar
  • 125
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}{} \...
Blair's user avatar
  • 407
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 ...
User's user avatar
  • 1
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. ...
Sam's user avatar
  • 310
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 ...
Michael's user avatar
  • 13
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 ...
r-learning-machine's user avatar
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) ...
Gabriele Di Toma's user avatar
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 ...
Linuxss's user avatar
  • 957
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@...
Einreinfall's user avatar
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 ...
Nora NICOLAS's user avatar
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]{\...
daknowles's user avatar
  • 103

15 30 50 per page
1
2 3 4 5
38