The tag has no usage guidance.

learn more… | top users | synonyms

8
votes
1answer
47 views

Context sensitive glyph appears even when hyphenation removes the context

The Alegreya font has a pretty clever feature by which it substitutes the regular f glyph with a variant that has a longer cross stroke when the f is followed by t. The result is that the two cross ...
0
votes
0answers
23 views

How to replace a string in a table that is imported

I'm using Stata to generate tables in Latex, which I then import by using import: \import{/Users/me/path/to/}{table1} \import{/Users/me/path/to/}{table2} However, when I do this, I end up with some ...
2
votes
1answer
15 views

babelbib “disables” substitution in English, but not in German

I have a really weird problem: When changing the babel language in combination with the use of babelbib, certain substitutions stop working altogether. It took me hours to track down this cause. ...
1
vote
0answers
53 views

Substitute a character by another one (Lualatex)

The lowercase figures of Adobe Garamond Pro are very nice, but the 1 can be confusing: Is this 11 (as it should be) or 2 in Roman? I would like to replace automatically this lowercase 1 with ...
3
votes
2answers
21 views

Changing remote path of figures to local path with a regular expression

I am using markdown to write the bulk of my thesis, and then converting it to LaTeX (with Pandoc) for the final presentation. To include graphics I use dropbox share links as: ...
5
votes
2answers
109 views

Replacing substrings by linebreaks

I have a LaTeX document with several authors that I enter like \author{First Author \& Second Author \& .... In some places in the document I want to print these authors with a linebreak ...
1
vote
0answers
118 views

mass replace all words that are wrapped between single quotes

In my manual, I've wrapped many words with single quotes, like this: 'bear', 'apple' and 'country'. My goal is to replace all single quotes with \emph{}, so 'bear' becomes \emph{bear} and 'apple' ...
7
votes
1answer
794 views

Drawing Benzene resonance mechanism, and reaction mechanism + curly arrows

I am new to LaTeX and there are few things at which I am stuck. I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack. ...
6
votes
2answers
86 views

Cannot make substitution

I want a command \myreplace replacing all instances of : with the \textlengthmark command from the tipa package. (In fact, this is one of the things that the tipa command \textipa does, but for ...
6
votes
2answers
137 views

xstring substitution with font commands fails in error

I want to substitute some spaces with normal font \dots in between name parts typeset in \ttfamily. Below example works except for the commented part which fails miserably with the error: TeX ...
4
votes
2answers
173 views

Substitute all 'A' with \textsc{a}

Can I use catcode to substitute all capital letters in my document to \textsc{\myletter}? EDIT: I would like to make this by a function, like: \thisismystring{BLABLABLA}, that converts into ...
5
votes
2answers
634 views

Replace asterisk with nothing in string

I have a function which grabs cells out of a table and returns them. Many of these cells end with two asterisks, and I would not like these returned from the function if they are present. For ...
5
votes
1answer
207 views

How to replace specific words with an underscore equal in length to the original word replaced in ConTeXt?

My problem is identical to Phantom and line break, however, I am using ConTeXt. I am creating a cloze test, e.g.: Frogs have four ____ and two eyes. The original text in the source appears like ...
7
votes
2answers
929 views

Glyph substitution: alternate capital Q in URW-Garamond? (LaTeX, Mac OS X)

I am using URW Garamond in LaTeX running on Mac OS X. The capital Q has a very long swash (extending beyond the next two glyphs!), which makes it unusable for me (I have too many capital Q's in my ...
3
votes
0answers
96 views

changing font of one (or a small number of) text character only [duplicate]

Possible Duplicate: Font substitution with XeLaTeX I am using a text font that unfortunately does not have accents for the letter e, which I need. But I have found a very similar font, and ...
10
votes
1answer
1k views

Font substitution with XeLaTeX

I have an automatically generated document (using Doxygen) that has many different Unicode characters for many languages: Hebrew, Japanese, Greek, Arabic and more. Some parts of text displayed using ...
6
votes
3answers
782 views

Substitute font's glyphs with glyphs from the same font

Is it possible to substitute certain font's glyphs with other glyphs from the same font? I am using Xelatex and Fontspec. More specifically, I am using small caps with Linux Libertine O C and the ...
7
votes
4answers
876 views

Search and replace in a verbatim token list

I maintain a package for the R programming language that contains a vignette which gets processed using the Sweave literate programming system. Now, one of the irks about Sweave is that it always ...
12
votes
1answer
4k views

Replacing a substring

I've got a string like this: aXYbXYc, and need to replace the XY substring with a right arrow: a $\to$ b $\to$ c. Is there any function (also provided by external packages) to help me do that?
7
votes
1answer
2k views

Recommendations for substitution of non-free fonts with LaTeX typefaces?

I'm trying to create a LaTeX template for reports we use in our organization. The original template is in .doc format, and uses a few non-free fonts, specifically Gill Sans. I'm looking for a LaTeX ...