Questions tagged [pdfstrcmp]
{pdfstrcmp} is for questions about the pdfTeX primitive \pdfstrcmp, or equivalent primitives in other engines, for comparison of {strings}.
5
questions
4
votes
1
answer
502
views
Expandable case insensitive switch case for string comparison
I have spent the last few hours trying to come up with a good solution for my problem, but alas all solutions falls short. I want to create a switchcase for a function (In reality I need many ...
3
votes
3
answers
94
views
how do I test for a unique string with multiple possibilities?
I'm writing a macro that takes a string and it returns an href based on that string. The string could have 150 different values. My question is how to write this in an efficient way. Using pdflatex.
...
0
votes
1
answer
421
views
Override macro with \renewcommand{} multiple times from different files - toc addcontentsline
Intro
While trying to get my head a round my current problem (To add a line to the toc, depending on the comparison of the values of two makros/commands: please see here: Add tocline depending on ...
13
votes
1
answer
2k
views
\pdfstrcmp or \strcmp in pure TeX
I'm trying to get LaTeX3 working with an old e-TeX kernel, and it fails due to the lack of \pdfstrcmp (or XeTeX's \strcmp equivalent).
Is there a pure TeX definition of \pdfstrcmp that I could insert ...
10
votes
1
answer
3k
views
Expansion in \numexpr...\relax versus \pdfstrcmp
The \numexpr...\relax construction in eTeX allows to evaluate numerical expressions, and it expands tokens fully as it goes.
The \pdfstrcmp{...}{...} construction in pdfTeX lets us compare two lists ...