{characters} is about the regular alphabetic characters that are part of some script in a language. For accented characters, add {accents}. For non-alphabetic characters, use {symbols} instead.

learn more… | top users | synonyms

68
votes
2answers
72k views

How to write “ä” and other umlauts and accented letters in bibliography?

How to write in bibliography (package natbib) letter "a" with two dots above? Specially, I mean the word Birkhäuser. Is there a general rule or way how to write such umlauts or other accented letters ...
41
votes
4answers
48k views

How to type special/accented letters in LaTeX?

How to type these special letters from European languages in latex? ä, é, and L'?
35
votes
6answers
2k views

Why is % the comment character?

I was reading a book about TeX macros and related features and I came across this rather trivial question... Can anyone explain to me why % is the comment character in LaTeX? Why this one and not ...
35
votes
2answers
33k views

Hash character in LaTeX [duplicate]

Possible Duplicate: Escape character in LaTeX How do you write the # character in LaTeX?
33
votes
3answers
44k views

Escape character in LaTeX

I need to output the below text but since \ is a special character, I cannot: [RegularExpression(@"\d+")] Also sometimes I need use dollar sign $ as well but it seems to be a special char, too. ...
33
votes
2answers
739 views

How to number the letters of a sentence?

I need to number the letters of a sentence consecutively. Every letter should have the corresponding small number centered below it (see image below). Does anybody know how to do this? I tried ...
31
votes
3answers
2k views

What's a good typewriter template?

I'm searching for a template which makes a document look like it's written with a real typewriter. Ideally, this means it's not only in mono-spaced font, but the hyphenation is adjusted accordingly. ...
30
votes
2answers
812 views

How to color the characters in LaTeX2e logo?

I want to get the LaTeX2e logo but with each character having a different color. I know that \LaTeXe produces the logo, but how do I give a color to each character?
27
votes
4answers
1k views

Coloring combining characters without changing color of a base character

Problem I am trying to find out is there a good way to paint combining characters without changing the color of the base character they are combined with. My actual problem case is to make some ...
23
votes
1answer
19k views

How to code ß (German “sharp S”) in BibTeX

I have an author called Jörg Geißler, whom I want to include in my BibTeX database. I tried to use Gei\ssler, J\"{o}rg but this doesn't work correctly. I can't generate the PDF anymore. How do I ...
22
votes
3answers
40k views

Underscores in words (text)

How can I produce the text Word_one_two in LaTeX? I tried: Samp\_Dist\_Corr But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing: ...
20
votes
2answers
456 views

Automatically getting “V” as the capital letter for “u” when typesetting latin

I'm typesetting a large amount of Latin texts using XeLaTeX and the package polyglossia. I'd like to get the small letter "u" automatically printed as "V" when turned into a capital letter (including ...
19
votes
2answers
951 views

How to get Wikipedia W from Linux Libertine?

How can I get the Wikipedia-looking crossing-w from Linux Libertine font? They talk about it on their homepage and in the wikipedia article, but I can't find an example of how to actually produce it. ...
19
votes
1answer
398 views

Is there an `ex` unit equivalent for the capital 'X' in LaTeX

In LaTeX, the ex unit represents the height of a lowercase 'x' in the current font. Is there a length in LaTeX that represents the height of a capital 'X'?
18
votes
4answers
1k views

How can I have the three source-code symbols _ < > produce themselves (_ < >) in the typeset output by default?

I use LaTeX to take quick notes about my programming work. I have a couple of frustrations: I need to use underscore a lot because of variables named with underscores. However, I have to escape ...
16
votes
3answers
321 views

How to draw a picture by using tikz as backgroud of a character?

I am writing some Chinese character and hope to draw simple pictures by tikz and use it as background of this chinese characters. In a short I'd like to get some results as this picture (ignore the ...
16
votes
1answer
319 views

Creating new characters from existing ones

In a nutshell. Is there a relatively easy way of building characters out of parts of existing ones? Rationale. (La)TeX linguists’ need for a wide palette of characters—for example, ⟨ɳ⟩ (U+0273), ⟨ɲ⟩ ...
15
votes
3answers
382 views

two t characters next to each other form one tt glyph

I am using xelatex and linux libertine font. When I write in my text something that contains two t characters next to each other, such as "rotten", it changes these two ts into one tt character. It ...
15
votes
1answer
776 views

Automatically change é to \'e – most convenient setup for accented letters?

I assume this is really basic question, I'm new to LaTeX, I read a first step tutorial to get ready to write some documents but I couldn't answer my own question at this time and I really don't know ...
15
votes
2answers
348 views

How to reduce the space between two slashes when using \url?

This is a follow-up question to Space between two slashes. Bianca Lobo's answer (defining a \twobar command with proper kerning) is nice; however, it doesn't work in the argument of the \url command ...
15
votes
4answers
585 views

Non-ASCII characters in Biblatex

I am using biblatex with backend=biber and the following .bib file: @article{concellon_synthesis_2006, title = {Synthesis of Enantiopure ({αS,βS)-} or ({αR,βS)-β-Amino} Alcohols by Complete ...
15
votes
3answers
1k views

en dash and em dash spacing

I've noticed that en dashes and em dashes run into certain numbers and letters, and I don't believe it's standard to use spaces with these. For example, if a 'b' comes before the dash or a '6' comes ...
15
votes
1answer
907 views

Rotate individual letters of the text using TikZ

I would like to rotate each character in the text of the TikZ edge label while keeping the edge label's orientation unchanged. The following code: \documentclass{standalone} \usepackage{tikz} % ...
14
votes
3answers
3k views

Rotating a letter

I'd like to rotate a letter such as, say B, to show its reflection or inversion symmetry, or even at an arbitrary angle clockwise or counter-clockwise. Is this possible using commands without drawing ...
14
votes
3answers
2k views

Outlined characters

How could I produce characters which are outlined when the character itself is in some color. A picture to illustrate what I'm after: The problems with the above are that: the outline is of no ...
14
votes
1answer
326 views

How to typeset creative commons analogous character of ©?

I'm aware how to use creative commons logo. But I'm searching for a character that I can insert in a caption to notice that the image (in my case) is under creative commons and not under ©, so it ...
14
votes
2answers
847 views

How to fix missing or incorrect mappings from glyphtounicode.tex

glyphtounicode.tex has been described as the best solution for generating copy-and-pasteable symbols. However, I find that various symbols that I need to use do not paste as the appropriate Unicode ...
13
votes
2answers
3k views

Is there a ditto symbol?

I believe that a symbol -||- is commonly used to indicate repetition of a fragment of text. The problem is that typesetting it using dashes and pipes looks kind of ugly. Is there a predefined symbol ...
13
votes
1answer
596 views

How to find out which glyphs are different in an OpenType style set?

With fontspec, and XeTeX or LuaTeX it's possible to access a font's OpenType features, including the Style Sets, e.g. like this: \addfontfeatures{RawFeature=+ss01;+ss18} TeX.sx has already taught ...
12
votes
2answers
615 views

Typesetting latin small letter u with diaeresis and caron

I'm looking for ways to typeset an ǚ. This character is necessary for typesetting pinyin (汉语拼音, the most common way of transcribing Mandarin Chinese), as it contains syllables such as lǚ (Chinese ...
12
votes
3answers
1k views

Catalan language “ela geminada”

The language setting for my document is Catalan babel. The Catalan alphabet includes a letter called ela geminada, spelled with two lower-case l separated by the interpunct · (i.e. "cel·la" or ...
12
votes
3answers
899 views

Hyperref: Scandinavian characters (æø) don't work in \url, hyperlink is wrong

Background A while ago it became possible to use the letters æ, ø and å in URLs, and some websites, like the encyclopaedia Store Norske Leksikon, has made use of this. Recently, a question was ...
12
votes
2answers
2k views

Handling of special LaTeX characters in text

I have a LaTeX file for a book chapter, which may need to be converted to Word at some point, because that is what the publishers use (sigh). This article doesn't have any math in it, but I'm still ...
12
votes
1answer
322 views

Escaped characters in typewriter font

I know a number of ways to fix this (e.g. \usepackage[T1]{fontenc}), but I want to understand what's happening in the following example. \documentclass{article} \begin{document} \noindent \$ \% ...
11
votes
2answers
673 views

Ugly d with stroke character (đ)

So, is there a font in LaTeX that will reproduce decent looking d with stroke (đ)? I'm writing a report, on Croatian, and it just looks ugly :\ mwe: \documentclass[onecolumn,11pt]{revtex4-1} ...
11
votes
4answers
378 views

How to prevent combining a character?

"EB Garamond" font combines ʿ character and the preceding letter. Consider following document: \documentclass{article} \usepackage{fontspec} \setmainfont{EB Garamond} \begin{document} aʿ bʿ cʿ dʿ ...
11
votes
2answers
378 views

Where's my backslash gone?

When I try to use one of the more "hacky" methods of getting a literal "special character" (such as backslash or a brace) then I get a different character: backslash seems to be an open quote, left ...
11
votes
2answers
2k views

Check if a string contains a given character

I want to implement an if-then-else depending on whether the argument contains a special character or not. Should I be looking here: http://www.tug.org/TUGboat/Articles/tb28-1/tb88glister.pdf, or does ...
11
votes
2answers
3k views

Error with percent sign in bib entry field when using biblatex/biber

I'm trying to use biblatex (v1.5a) with biber (v0.9.3) instead of BibTeX but I am having a problem with bib entries, where the abstract contains a percent sign. In that case, in the bbl file the ...
11
votes
2answers
305 views

Bar-less “f” and finetuning existing characters

Specific question I would like to produce an italic f without the crossbar. Can I do this relatively straightforwardly? This letter, esh (ʃ), is Unicode U+01A9, U+0283. The esh of tipa.sty only ...
11
votes
1answer
369 views

Using both a double-story and single-story g in math mode

I am writing some mathematics in which I want to use both typographic variants of the lowercase 'g' in math mode. See the Wikipedia page to see the two variants. There is a single-story and a ...
10
votes
3answers
432 views

Retrieve length of a character

I'm creating a custom command which basically prints an horizontal line, a character and another horizontal line. The code would be ...
10
votes
2answers
778 views

Non-English identifiers in \label / \ref (“Missing \endcsname inserted”)

I found that LaTeX chokes on certain non-ASCII identifiers in \ref. This works fine: \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
10
votes
2answers
167 views

How to have exactly “>>>” in a report

In my latex article, I do have to use the 3 following chars >>> . However after compiling my latex code, the displayed content is far from being >>>, but gives two chars instead : »> . How can I ...
10
votes
2answers
117 views

Expandably change letter case and use inside \csname, without a package

I want to change the letter-case of a single character argument, and use that changed letter inside a \csname. And I want to do it without an additional package. For example, I want to pass a macro ...
10
votes
1answer
320 views

Space between the two slashes in “http://” too big

I'm using a lot of links with http:// in my document, but the two slashes are too much separated, I'd like them to be more near each other. How do I do this, in a neat way? I'm using a sans-serif ...
10
votes
1answer
555 views

Tabs in output file written by xelatex and pdflatex are different

I'm trying out pgfplots with gnuplot to generate the data. This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the ...
10
votes
1answer
137 views

How to write the € symbol into a file, when using Package [utf8]{inputenc}

With the following MWE, I can write the € symbol into the file euro.txt \documentclass{article} \newwrite\tempfile \immediate\openout\tempfile="euro.txt" \begin{document} Write Euro symbol into a ...
10
votes
1answer
401 views

How do I add accented characters to PDF info without using hyperref?

Using pdflatex, I'm looking to add PDF information into by document, including an accented name (Rónán Daly). Normally I'd use hyperref to do this; however, the conference I'm submitting to is ...
10
votes
1answer
396 views

Replacing “a” in latin modern

I would like to replace the "a" (double-story minuscule) for the single-story minuscule in Latin Modern. I really hate that the printed "a" is not the same as the handwritten "a", and would like to ...