Questions tagged [strings]

{strings} are sequences of characters (most commonly literal constants). However TeX doesn't have the same concept of strings as other languages, so for questions regarding text in general this tag does not apply. Usually when dealing with {strings} one also uses the primitive {pdfstrcmp} or dedicated packages, such as {xstring} or {expl3}'s string module (l3str).

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
50 views

Replacing a character with other character in all the document, on specific conditions

In Hebrew, there is a special punctuation mark, called Gershayim, that's used to indicate an acronym. It's written before the last character. It looks very similar to quotation mark, and since it ...
1
vote
0answers
190 views

Concatenate string for \includegraphics

I'm trying to create a string (caseid) to which I can concatenate different string inside \includegraphics. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[...
1
vote
0answers
106 views

Use \verb inside \seqsplit

I need to use the \verb command inside the \seqsplit command. The compiler warns me when I insert \verb inside \seqsplit. How can I do? thank you all EDIT: \seqsplit{\verb |#####|} Error: ! ...
1
vote
0answers
95 views

remove “” from lyx macro

I am using LyX and followed http://wiki.lyx.org/BibTeX/Biblatex. I don't want to use an absolute path with \addbibresource so I've tried following there example of using the \input@path macro. This ...
1
vote
0answers
90 views

How to split a string to figure float with figure name, label and caption?

I am struggling with a shorthand macro that converts a string to a figure. At the end is a working, but unstable version what I am trying to do. The goal is to parse make a command (or macro) like ...
0
votes
0answers
57 views

How to read a picture with name # in it?

Probably avoiding to use # would be best at the first place but for musical chords I would like to name my image something like F#m.png . The problem is that latex does not allow to write \...
0
votes
0answers
29 views

Comparing a macro against a constant string in base LaTeX/TeX

Very often, I will have a macro that is one expansion away from a string that I would like to compare against a constant string. Now yes, obviously, I could simply define a macro that expands to the ...
0
votes
0answers
75 views

How to load input file with given starting string but unknown end?

In the directory of my latex source there are input files: input_01.tex, input_02.tex, etc. It is very easy to load them with a for cycle. But how to load them if their names are: input_01_noteone.tex,...
0
votes
0answers
120 views

Strip control characters from token

I've added a hook to lstlisting to do some special highlighting. Now I've got it to highlight %-prefixed variables just fine, but I'd like to handle the special case "%this" in another way. ...