Tag Info

184

To typeset accented characters inside bibliography fields for processing with BibTeX, encase them in curly braces. To list but a few accented characters: {\"a} {\^e} {\i} {\.I} {\o} {\'u} {\aa} {\c c} {\u g} {\l} {\~n} {\H o} {\v r} {\ss} The word Birkhäuser should therefore be entered as Birkh{\"a}user. Addendum: There is an obvious follow-up ...

89

(This is fairly basic stuff, but perhaps it's worth repeating it.) The following ten characters have special meanings in (La)TeX: & % $# _ { } ~ ^ \ Outside \verb, the first seven of them can be typeset by prepending a backslash; for the other three, use the macros \textasciitilde, \textasciicircum, and \textbackslash. \documentclass{article} ... 58 With pdfLaTeX Save your file as UTF-8 and put \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} % load a font with all the characters in your preamble. Then you can just type the characters normally into your source file. With XeLaTeX or LuaLaTeX ALternatively you can use XeLaTeX or LuaLaTeX which accept UTF-8 input natively. ... 54 You may prefer the character from the tt font: \documentclass{article} \begin{document} \texttt{Samp\_Dist\_Corr} \verb|Samp_Dist_Corr| \texttt{Samp\char_Dist\char_Corr} Or probably better add \usepackage[T1]{fontenc} then all the above forms will use the character from the font. \end{document} 47 You can type texdoc lshort in a command line (Command Prompt on Windows, Terminal on Linux/Mac OS X). Then have a look at Table 2.2 in Section 2.4.8. I'll quote it for you here. 42 I don't know precisely. The special characters are #$ % ^ & _ \ { } The first six are in the upper row of the keyboard, together with @. I'm excluding those that are more commonly used in text, that is ! ( ) - + =. The other non alphabetic ASCII characters ([];:'"|,<.>/?) are used in text. The choice of \ as the escape character for the ...

42

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. ...

38

You need to enclose the \ss macro in braces: (it's also a good idea to enclose the \" within the braces of the 'o'.) Gei{\ss}ler, J{\"o}rg Otherwise, TeX can't tell whether the macro is \ss or \ssler. Usually macros can also be delimited by spaces in LaTeX, but this won't work in your bib file because the space is used by BibTeX to delimit parts of ...

34

Best package for the job is manuscript \documentclass{article} \usepackage{manuscript,lipsum} \begin{document} \lipsum[1-3] \end{document}

34

Fancy anarchy with TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \tikzset{mydeco/.style={decoration={random steps,segment length=.6,amplitude=.5},decorate,line cap=round}} \tikzset{anarchy/.pic={ \draw[ultra thick,mydeco,decorate,red,fill=red](0,0)--(1,.3)--cycle; \draw[ultra ...

33

You can use the \textcolor command from the xcolor package to give a color to each character of the logo. Running texdef -t latex LaTeXe in a terminal, you can get the implememtation of the LaTeX2e logo: \mbox {\m@th \if b\expandafter \@car \f@series \@nil \boldmath \fi \LaTeX \kern .15em2$_{\textstyle \varepsilon }$} Since the \LaTeXe command is ...

31

You can use \textunderscore also. \documentclass{article} % \begin{document} Samp\textunderscore Distt\textunderscore Corr \texttt{Samp\textunderscore Distt\textunderscore Corr} \end{document} Underscore is not merging at the bottom of D actually. It is very close to it.

28

There are canonical ways to fix both of these problems. For the underscore: \usepackage{underscore} For the rendering of < and >: \usepackage[T1]{fontenc} \usepackage{lmodern}

28

Free version with the default font and pdflatex: \documentclass[12pt]{article} \usepackage{graphicx,rotate} \begin{document} \rule[1.3ex]{.25em}{1pt}\kern-.1em% \reflectbox{\small\ttfamily/}% \kern-.1em\rule[-.2ex]{.4em}{1pt}% \makebox{{\raisebox{.15em}{{\large\textcircled{ \ttfamily\kern-.35em% ...

27

Type \&. This is a very basic question covered by all introductory material on LaTeX. You should consider taking a look into such an introduction (for example lshort.pdf, 1.3.2).

27

With the following setup, you can just type these characters normally, and the copy-paste text in the pdf (the OCR layer) will be correct, too. Your source .tex document should be encoded in UTF8, of course, or you could use latin1, or some other input encoding that includes the characters you desire and is listed in the inputenc documentation. % !TEX ...

25

The “official” way, is to activate stylistic set 5 feature, StylisticSet=5 fontspec option. If you to use it locally then you can define a “font family” with that option, and if you want it globally you should pass it to \setmainfont. This is also the most portable way, as the glyph name (W.alt) or the private use area code point (U+E02F) can change in the ...

25

With the graphicx package, you can do it as follows: \rotatebox[origin=c]{180}{B} This rotates around the center of the letter. You can also rotate around other points: \rotatebox[origin=tr]{180}{B} will rotate around the top right of the box. See page 8 of this document for all the relevant options. Following from what egreg pointed out, you may need a ...

25

I used xelatex here, and specified the font that firefox used on my system to display your title. But switched to Arial for the arms as MS PGothic has a Yen in the backslash slot (long story:-) \documentclass{article} \usepackage{fontspec} \setmainfont{MS Gothic} \setsansfont{Arial} \begin{document} \textsf{¯\char92\string_}(ツ)\textsf{\string_/¯ } ...

25

The information about 1ex is stored in the font; it is usually the height of a lowercase ‘x’, but it need not be necessarily. You can access the height of an uppercase ‘X’ by \fontcharht\fontX A way for expressing lengths in this ‘unit of measure’ is \newcommand{\eX}{\dimexpr\fontcharht\font`X\relax} so you can say something like \vspace{1.2\eX} ...

21

A fairly elementary way of stripping special meaning from things is to \detokenize them: \documentclass{article} \begin{document} \texttt{\detokenize{Samp_Dist_Corr}} \texttt{\detokenize{a@b\c_d&e~f g}} \end{document} Note how a space is inserted after a "control sequence". See What are the exact semantics of \detokenize?

20

When using \usepackage[utf8]{inputenc} you can have it directly. Consider the following .bib file: @BOOK {Goe, AUTHOR = "Gödel", TITLE = "Die Vollständigkeit der Axiome des logischen Funktionenkalküls.", PUBLISHER = "Monatshefte für Mathematik und Physik", YEAR = 1930 } for example. Then \documentclass{article} ...

20

If using LuaLaTeX rather than XeLaTeX is an option for you -- fortunately, Lua(La)TeX and polyglossia have started playing nice with each other, beginning a few months ago -- you may achieve your goal as follows. First, define an "OpenType feature file", such as # Scripts and languages # If the font uses others, they should be defined here too ...

20

This works with pdflatex. \documentclass{article} \usepackage{CJKutf8} \newcommand{\textoverline}{$\overline{\mbox{\phantom{L}}}$} \begin{document} \begin{CJK}{UTF8}{min} \textoverline\verb|\_(ツ)_/|\textoverline \end{CJK} \end{document} And for XeLaTeX, an alternative to David's answer \documentclass{article} \usepackage{fontspec} ...

19

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 ...

19

There are two ways to write IPA symbols in LaTeX. One uses regular pdfLaTeX and the tipa package; the other uses XeLaTeX or LuaLaTeX and you can enter the symbols directly into your source, assuming you have the correct fonts. The SIL Doulos font is an excellent Unicode IPA font that is widely used in Linguistics. You can download it here. I'll outline ...

18

In PDFTeX/XeTeX colouring is done by inserting pdfliteral nodes around coloured items, these nodes would then interfere with mark positioning in this case, something like: <base><start-color><mark><stop-color> LuaTeX can use an alternate mechanism thanks to its "attribute" registers; attributes is a way to annotate input without ...

18

The ccicons package seems to be what you are looking for. (I've never used it myself though.) With the command ccLogo you will get one of these: There is also a cclicenses package, but the icons are not as clear nor as up-to-date.

18

It is definitely not 0xFF, but “Control-L” or ASCII 0x0C (decimal 12), called “form feed” (this is why your viewer shows it as FF). As you probably know, Knuth started using computers when they weren't like the ones we use today. When the teletype was the only interface, character Control-L was used to tell the teletype “advance to the end of the form”, so ...

Only top voted, non community-wiki answers of a minimum length are eligible