Tagged Questions
5
votes
1answer
64 views
How to create a conditional which checks the value of written text in plain TeX?
I need to create a conditional in plain TeX like this:
IF #1 = "N"
THEN
PRINT "TRUE"
ELSE
PRINT "#1"
I tried various ways in TeX. The solution must be simple, but none of the ways I tried ...
8
votes
4answers
168 views
How to create a conditional which checks if one or another condition is true in plain TeX?
I need to make a conditional like this:
IF #1 > \variable OR #1 = 0
THEN
PRINT "True"
ELSE
PRINT "False"
If #1 is greater than \variable or is equal to 0, then it it true. The value only ...
1
vote
1answer
160 views
Unexpected conditional branch with \ifdim
I have a problem with the following code:
\newtoks\sectoks
\sectoks={\noindent}
\newtoks\subsubjectstyle
\subsubjectstyle={\emitsectglue 1\the\sectoks}
\newtoks\postsectoks
...