New answers tagged conditionals
0
votes
Creating multiple output files, with content that depends on a variable
I had a similar need, here are my ideas to tackle this.
Solution Makefile -> Latex
If you want the Makefile to tell Latex which "address" to use, you can use the "--jobname" ...
- 303
0
votes
Detect aspect ratio in beamer
With the current beamer development version (which should be included in beamer v3.70 or newer), you can use the \insertaspectratio macro to access the aspect ration of the presnetation:
\...
3
votes
Accepted
Commenting out lineno and disabling commands related to it via ltxcmds fails to compile unless I manually delete the aux file
You just need to not hide the else branch of \@ifpackageloaded so you can define the aux command to do nothing. (ltxcmds does nothing here as this is all already latex)
\documentclass{book}
\...
- 708k
7
votes
Incomplete \ifodd; all text was ignored after line
You can't have conditionals enclosing the options.
I'm not sure why you define \x that way, as \i is an integer.
It's simpler than that: use \pgfmathifthenelse.
\documentclass{article}
\usepackage{...
- 1.1m
6
votes
Accepted
Incomplete \ifodd; all text was ignored after line
There are several problems with your code. The first one is the usage of "standalone" document class with node positioned relatively to the corner of the current page (but for standalone, ...
- 4,086
Top 50 recent answers are included
Related Tags
conditionals × 1758macros × 339
tikz-pgf × 119
tex-core × 78
etoolbox × 78
environments × 73
ifthenelse × 73
tables × 53
beamer × 52
expansion × 46
strings × 42
sectioning × 41
loops × 41
expl3 × 39
biblatex × 38
programming × 36
counters × 32
formatting × 31
cross-referencing × 30
math-mode × 29
compiling × 29
optional-arguments × 29
spacing × 28
xstring × 28
xifthen × 28