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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
77 views

I have problems creating a list first, but adding entries on the fly later. I need the List (actualy more a numbered table/matrix/) in the first pages of my rather long document, and want to add the ...
user2567875's user avatar
4 votes
3 answers
220 views

Is it possible to use a \csdef{}{} on the command line to pass in parameters to pdflatex? Background: If the MWE below is saved as "TeX-SE.tex", I can use the following command line to ...
Peter Grill's user avatar
0 votes
2 answers
91 views

I'm writing my first LaTeX class. After some research I've found that kvoptions seems to be the most recommended for key value class options, and etoolbox is recommended over ifthen for conditionals. ...
jemhop's user avatar
  • 21
0 votes
0 answers
65 views

I'm having some issues with etoolbox, and the setting up of boolean expressions. With this code: \documentclass{exam} \usepackage{etoolbox} \newbool{refersheet}\newbool{standard}\newbool{adv}\newbool{...
bbujeya's user avatar
  • 641
0 votes
1 answer
99 views

I have a macro taken from this answer: \documentclass{article} \usepackage{mathtools} \makeatletter \def\align@prercellhook{{}} \renewcommand{\start@aligned}[2]{% \RIfM@\else \...
Akira's user avatar
  • 3,381
0 votes
3 answers
121 views

The package etoolbox provides, given my little experience, resources for processing lists in a relatively easy manner. Using the commands such as listadd and listgadd, I am able to append items to ...
HOO's user avatar
  • 149
0 votes
0 answers
53 views

I'm using the following script to create chapter markers. At least once in every chapter, the font size is changing for some reason... I have no idea why. Anyone who can help? \documentclass[12pt]{...
Roudy H.'s user avatar
5 votes
1 answer
119 views

I am trying to implement an inline list with some spacing between the items. I've found the enumerate package with the inline option creates the itemize* environment, which provides an inline list. My ...
ajz's user avatar
  • 53
1 vote
0 answers
68 views

This question is related to one of my previous questions: Specifying exact placement of answers in exam tests I would like to make exam tests that can be compiled without and with answers, and the ...
bcsikos's user avatar
  • 879
2 votes
2 answers
162 views

In texdoc xpatch, section 3, it shows: however, in the following mwe: \documentclass{article} \usepackage{etoolbox} % \usepackage{xpatch} \newcommand{\xyz}[1][x]{-#1!} \begin{document} \xyz \xyz[ok]...
Explorer's user avatar
  • 8,928
3 votes
2 answers
116 views

I have the following code: \documentclass[a4paper]{article} \usepackage{xparse} \usepackage{etoolbox} \usepackage{graphicx} \usepackage{hyperref} % #1: Variable name, #2: Variable value \...
palapapa's user avatar
  • 367
2 votes
1 answer
77 views

This post is an extension of How to Make Bold the Footnotemarks Appearing After the Footnote Line Consider the following code which is derived from @Werner's excellent answer: \documentclass[12pt]{...
DDS's user avatar
  • 11.2k
1 vote
1 answer
74 views

I'm trying to use a defined list with the \forcsvlist command. From my understanding, I have to expand the defined list before the \forcsvlist command executes. I have tried so many iterations using \...
memo913's user avatar
  • 55
0 votes
2 answers
62 views

I would like to use the optional argument in the proof environment (provided by the amsthm package) only in one version of my paper, when a toggle Details is on. This is my code: \documentclass{...
Vlad's user avatar
  • 143
1 vote
1 answer
89 views

I'm working on a template, and I'm trying to create a toggle, that adds the CUI marking in header (center) and at the start of every paragraph while the toggle is on. However, when I compile the ...
RankkaApina's user avatar
2 votes
1 answer
111 views

I am trying to follow this post in defining a custom citation style where I show a different icon based on the type of the citation; as such, I am using the \ifstrequal command from the etoolbox ...
Bart Wolleswinkel's user avatar
4 votes
2 answers
209 views

This question arose while responding to another inquiry on SE Tex. Currently, there is no practical application for this, but I want to be prepared in case I encounter a similar situation when ...
Tom's user avatar
  • 9,418
1 vote
2 answers
290 views

when using \ifstrequal in \ifstrequal{\fpeval{2+3}}{5}{True!}{False!} , the result is False! Anyone knows what happened here ? \documentclass{article} \usepackage{etoolbox} \begin{document} \...
xcn's user avatar
  • 1,195
0 votes
1 answer
92 views

I was working with a document, where I needed to set a certain layout for certain pages. Here I've defined a layout where the top margin is 2in for the first 2 pages and 0.4in for pages > 2 and ...
Rohan Gunjal ZeenX1's user avatar
4 votes
2 answers
169 views

I have a an etoolbox list with some sort of labels, one counter per label. I'd like to produce a pgf-pie chart from these labels and their counter values. But two problems: PGF Math complains about &...
Holger Karl's user avatar
1 vote
1 answer
57 views

I want that new sections in my document start on odd pages only and if it has to skip a page because it is even, then i want to have headers and footers blanked. In my MWE, not sure why these skipped ...
user1850133's user avatar
  • 1,493
3 votes
2 answers
95 views

This question is similar to multiple other ones (e.g. for captions), however I couldn't manage to use them for the following MWE. \documentclass[a4paper]{article} \usepackage{etoolbox} % for \...
Breno's user avatar
  • 192
0 votes
2 answers
129 views

Trying to compare the results of a macro to some fixed string, but not getting anywhere. I tried using the \detokenize\expandafter, but that just shows the contents of the macro (as in showing the ...
RafazZ's user avatar
  • 145
4 votes
6 answers
366 views

I am having a problem splitting a formula into two lines in one of two versions of a paper. The first version (WIDE) uses wide paper while the second uses regular paper. The WIDE version compiles ...
Vlad's user avatar
  • 143
0 votes
0 answers
32 views

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 ...
Matt's user avatar
  • 41
0 votes
1 answer
191 views

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
1 vote
1 answer
110 views

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
  • 587
1 vote
1 answer
124 views

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
213 views

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
  • 437
0 votes
2 answers
107 views

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
150 views

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
  • 402
1 vote
1 answer
53 views

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
138 views

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
101 views

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
109 views

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
  • 1,069
0 votes
1 answer
79 views

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
59 views

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
104 views

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
2 votes
1 answer
142 views

Please see the following MWE. \documentclass{exam} \usepackage{etoolbox} % The following does not have any effect on the output \AtBeginEnvironment{questions}{\setcounter{question}{4}} \begin{...
Masroor's user avatar
  • 18.6k
0 votes
0 answers
89 views

I am trying to put a conditional statement within a bib file, namely in the author field. I tried with both the ifthenelse and the iftoggle commands, but to no avail. The condition is respected, but ...
ferdymercury's user avatar
1 vote
1 answer
122 views

I am currently experimenting with .dtx files to develop a little style for my university documents. Doing so, I use l3doc class as a document class in the documentation counterpart of my dtx file. ...
samulus's user avatar
  • 25
2 votes
1 answer
152 views

I'm trying to check if a text label is empty. For this purpose, I tried to use the \ifblank command from the etoolbox package. On the following MWE, I would expect that \refdescx{\nameref{lab2}} would ...
ZoKaP's user avatar
  • 47
0 votes
2 answers
107 views

I have a general question. If I'm writing a .cls file (or a package file, as well), what's the best way to edit standard commands like \section which are defined by the used standard class or latex....
lukeflo's user avatar
  • 1,625
4 votes
2 answers
148 views

I find a strange conflict between scrbook and dynkin-diagrams, here is the code \documentclass{scrbook} \usepackage{dynkin-diagrams} \begin{document} \chapter{One} Here is one \dynkin A2 \end{...
Gau-Syu's user avatar
  • 515
2 votes
1 answer
123 views

I'm trying to manually process a list of authors. The logic works in the document, but not it does not seem to work when I pass it to hypersetup. \documentclass{article} \usepackage{authblk} \...
dikdirk's user avatar
  • 73
1 vote
1 answer
121 views

I want to check a mutable variable against many possible values, so that a macro will behave differently based on that value. Since there are many variables, they are stored using pgfkeys. Testing ...
eduardofischermath's user avatar
4 votes
2 answers
112 views

I'm trying to make a simple queue using the etoolbox package by making my own custom macros \listfront and \listfrontpop. This is my very first time using TeX code to this level, so my understanding ...
daedsidog's user avatar
  • 154
4 votes
2 answers
146 views

I would like to separate blocks of text (stories) via a horizontal line inserted automatically between the blocks, but not before the first or after the last. I tried to achieve this by creating a ...
Matt's user avatar
  • 43
1 vote
3 answers
144 views

I made a macro using xparse for formatting the month with optional day and year. Except the appended optional argument doesn't work inside a description label for the description list---unless I ...
User23456234's user avatar
  • 2,428
2 votes
0 answers
55 views

I would like the vertical space before the backmatter chapters in the table of contents to be the same as before a part. I would have thought that the code below would have resulted in this, but the ...
Fredrik P's user avatar
  • 1,458

1
2 3 4 5
12