Questions tagged [etoolbox]
{etoolbox} is a package which provides several macros which take advantage of the {e-tex} extension of (La)TeX.
588 questions
0
votes
2
answers
61
views
custom halfdynamic list
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 ...
4
votes
3
answers
209
views
Use \csdef on command line to pass in paramaters
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 ...
0
votes
2
answers
84
views
etoolbox conditionals with kvoptions string options
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.
...
0
votes
0
answers
63
views
Boolean Error with etoolbox
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{...
0
votes
1
answer
93
views
Simpler approach to change 1 line in the internal of aligned environment
I have a macro taken from this answer:
\documentclass{article}
\usepackage{mathtools}
\makeatletter
\def\align@prercellhook{{}}
\renewcommand{\start@aligned}[2]{%
\RIfM@\else
\...
0
votes
3
answers
115
views
How can I convert a macro that contains comma-separated strings into a list?
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 ...
0
votes
0
answers
46
views
Font size changes for different chapter markers
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]{...
5
votes
1
answer
119
views
Appending to every \item in an inline itemize
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 ...
1
vote
0
answers
62
views
Exact positioning (placement) of text or boxes
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 ...
2
votes
2
answers
157
views
Error in xpatch's documentation of patch the optional arguments?
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]...
3
votes
2
answers
115
views
Cannot use a macro that includes \csuse inside \label?
I have the following code:
\documentclass[a4paper]{article}
\usepackage{xparse}
\usepackage{etoolbox}
\usepackage{graphicx}
\usepackage{hyperref}
% #1: Variable name, #2: Variable value
\...
2
votes
1
answer
71
views
Making All of a Document's Footnotemarks Bold
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]{...
1
vote
1
answer
66
views
Using \expandafter and custom commands with multiple arguments
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 \...
0
votes
2
answers
55
views
conditional optional argument not working in the amsthm proof environment
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{...
1
vote
1
answer
83
views
Trying to add markings based on etoolbox toggle
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 ...