Questions tagged [pdfstrcmp]

{pdfstrcmp} is for questions about the pdfTeX primitive \pdfstrcmp, or equivalent primitives in other engines, for comparison of {strings}.

Filter by
Sorted by
Tagged with
3
votes
3answers
60 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
1answer
63 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 ...
11
votes
1answer
1k 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
1answer
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 ...