Skip to main content

New answers tagged

3 votes

Problems when extracting chars from data imported from csv file

You need one more expansion step, namely to fully expand \csvcoli before the action of \str_if_eq:nnTF. \documentclass{paper} \usepackage{csvsimple-l3} \begin{filecontents*}{\jobname.csv} asdf ...
egreg's user avatar
  • 1.1m
3 votes

I want to compare the last character of a string with other characters

You can do this expandably, but certainly not with xstring. The idea is to split the given text into items, bracing them and checking the last item. \documentclass{article} \ExplSyntaxOn \...
egreg's user avatar
  • 1.1m
7 votes

I want to compare the last character of a string with other characters

You did not mention it but you appear to be using xstring and ifthen packages. xstring functions are almost always non-expandable and so can not be used in conditionals. LaTeX provides expandable ...
David Carlisle's user avatar
3 votes

Print \twocolumn and \onecolumn

Some special characters can be printed as themselves by escaping them: \{ \} \$ \& \# \_ \% Others can't: \ ^ ~ The combination \\ is used in many places to denote “go to a new line” (but it ...
egreg's user avatar
  • 1.1m

Top 50 recent answers are included