Tag Info

New answers tagged

6

In addition to egreg's answer the other reason is same reason \sin gives an error, or \hat etc. By far the most common reason for encountering a ^ in text mode is that the author has gone blah blah and 1 + x^2 = 2, blah ... but forgotten to mark the math mode region. Making math mode commands an error in text mode is an explicit design decision that ...


10

Yes, there is a very basic one: when input lines are being read, if TeX finds two consecutive ^ characters, it interprets the input in a very peculiar way: if the ^^ combination is followed by two hexadecimal lowercase digits (0123456789abcdef), then TeX transforms the four bytes into the byte corresponding to the hexadecimal number; otherwise TeX computes ...


1

Try with moredelim: \documentclass{standalone} \usepackage{listings} \usepackage{color} \lstset{ language=bash, stringstyle=\color{red}, commentstyle=\color{green}, showspaces=false, showstringspaces=false, moredelim=[s]'', } \begin{document} \begin{lstlisting} file_name=$(cut -d '"' -f 2) # This shoud be a comment echo "This should ...


0

How about this one? \font\vse=cmr10 at 5pt \setbox0=\hbox{a} This is a \raise\ht0\rlap{\hbox to \wd0{\hfil\vse e\hfil}}\box0 Test. in plain TeXnique.


18

You can also have a lot of fun with OpenType Fonts. Please compare input and output. The font is UnifrakturMaguntia (OFL). The font replaces all instances of umlauts to the pendant with the e above (StylisticSet=15). For capital letters we can choose to have the e next to the letter using StylisticSet=14. StylisticSet=11 implements a heuristics to replace ...


40

You can use the great Fraktur font by Yannis Haralambous: \documentclass{article} \usepackage{yfonts} \begin{document} \textfrak{Clavier"ubung Clavier*ubung} \textfrak{"a *a "o *o "u *u} \end{document} The “older” orthography with a small “e” above the vowel is obtained by prefixing the vowel with * instead of " that produces the standard umlaut. ...



Top 50 recent answers are included