How do you use secondary conditionals in Tex?

How do you use secondary conditionals in Tex?

Thus you use ‘secondary’ conditionals to convert the original problem into a simple TRUE/FALSE situation, where the ‘outer’ \\ifnum is simply testing for 0 or 1. (This works as TeX keeps expanding until it finds a number when considering the outer \\ifnum .)

How to use if, elseif and else conditionals in Tex?

Nested \\if…\\fi can be very tedious, in TeX, however. The following small example should print ‘Foo that’ with bold font, since \\dothattrue was specified. which will only do the stuff if at least one condition is met.

Is it safe to use primitive conditionals in Tex?

However, using these primitive conditionals can lead to unexpected problems if you’re not entirely familiar with the way TeX processes them, and the following solutions are recommended. A more user-friendly and modern approach is taken by etoolbox, where you’d write instead Why do I say this is more friendly?

How to form ” if ” or ” then ” in latex Stack Exchange?

Assuming you are looking for a purely primitive-based on, then something like Thus you use ‘secondary’ conditionals to convert the original problem into a simple TRUE/FALSE situation, where the ‘outer’ \\ifnum is simply testing for 0 or 1. (This works as TeX keeps expanding until it finds a number when considering the outer \\ifnum .)

Can you use latex 3 with plain TeX?

The package can also be used with Plain TeX. As seen above && is AND and || is OR. It is also possible to write ‘and’ and respectively ‘or’ (quotes mandatory). LaTeX3 provides testing of boolean expressions that allows for using infix notation && (for AND), || (for OR) and ! (for negation).

When do you put spaces after a number in Tex?

(This works as TeX keeps expanding until it finds a number when considering the outer \\ifnum .) It’s important to get the number-termination correct when using this approach. In the example, the spaces after \\x=1 and \\x=14 are required to get the correct outcome.