{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.
17
votes
2answers
15k 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.
...
26
votes
3answers
11k views
How to type special/accented letters in LaTeX?
How to type these special letters from European languages in latex?
ä, é, and L'?
12
votes
3answers
1k 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 ...
23
votes
2answers
10k 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 ...
10
votes
1answer
402 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 ...
12
votes
1answer
255 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 ...
9
votes
3answers
1k 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 ...
16
votes
4answers
775 views
How can I fix my most common LaTeX complaints? “_,<,>”
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 ...
11
votes
1answer
352 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 ...
13
votes
2answers
393 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 ...
6
votes
2answers
289 views
Extracting characters from the new libertine (with pdflatex)
The issue: I need to access e.g. libertine's delta glyph in pdflatex.
This question notes that the \libertineGlyph command is no longer provided by the latest version of the libertine package. It ...
11
votes
2answers
1k 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 ...
10
votes
1answer
185 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 ...
8
votes
1answer
828 views
Problem copying text from latex PDF - special characters
I am using LaTeX in a portuguese document, with special characters such as tilde or cedilla. I have a sample document with the following content:
\documentclass{book}
\usepackage[utf8]{inputenc}
...
11
votes
3answers
692 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 ...
10
votes
2answers
339 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}
...
5
votes
2answers
699 views
Underscore in words
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:
...
3
votes
1answer
369 views
Average number of characters in one line
How can I calculate the average number of the characters per line of my document?
2
votes
1answer
556 views
How to write directly French characters in Emacs and print them in LaTeX?
I am editing LaTeX with Emacs. I would like to write in French. At the moment I have to write special French characters for instance like this: \'e prints é. If I write directly é in Emacs, the ...
0
votes
1answer
10k views
How to type & in LaTeX? [duplicate]
Possible Duplicate:
Escape character in LaTeX
I'm trying to type the word & but I encounter with error :
misplaced alignment tab character &
And when I put it into verbatim it ...
24
votes
3answers
840 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. ...
15
votes
2answers
255 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 ...
13
votes
1answer
182 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), ⟨ɲ⟩ ...
8
votes
2answers
654 views
Using non-ASCII characters in packages
What is the best way to use non-ASCII (say, Cyrillic) characters in a .sty file?
If it's used in a LaTeX file that uses \inputenc[utf8]{inputenc}, than one can just use utf8 encoding in the .sty file ...
22
votes
4answers
751 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 ...
19
votes
2answers
628 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.
...
10
votes
2answers
196 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 ...
7
votes
2answers
430 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 ...
7
votes
2answers
815 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 ...
13
votes
1answer
5k 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 ...
11
votes
2answers
1k 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 ...
6
votes
1answer
202 views
How to enter a Latin Capital Letter D With Hook (Ɗ)?
How can I insert a Latin Capital Letter D With Hook into a LaTeX formula?
Ɗ
4
votes
2answers
251 views
How to detect words starting with # in listings package?
I am writing some code with the listings package and I need to detect the words starting with the number sign (#) and apply certain style. For example, if I have this code:
something #foo ...
4
votes
2answers
441 views
Include binary data
How do I include binary data (e.g. the contents of a binary file) in a LaTeX generated PDF-document? If I just copy and paste them into a verbatim environment it results in garbage.
2
votes
2answers
853 views
How can I overscore a character?
I am using Anki to create flash cards for Boolean identities. I prefer to use an overscore as opposed to a prime for negated variables. Can this be accomplished with LaTeX?
EDIT: The header and ...
0
votes
1answer
271 views
Random character varients being used with fontspec
I'm trying to get the hang of xelatex and fontspec and I'm a little confused about how character variants are selected. I'm using the font Bickham Script Pro.
Confusion (1)
Some words are ...
6
votes
1answer
153 views
Copy Czech characters from PDF with charter font
I wanna be able to copy czech characters from PDF, but for some reason it doesn´t work.
here is my code:
\usepackage{cmap}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{charter}
...
5
votes
2answers
143 views
How to detect a tab character when processing a literate in lstlistings?
In the solution to Making more easy the itemized of item with tabulation system, I am counting up the number of spaces in order to determine the type of leading character to insert. However, if the I ...
5
votes
2answers
360 views
babel \L command reverses letters, inserts Ł symbol
It's time for Eyal's babel+Hebrew (or right-to-left) incompatibility of the week; and this time, it's hyperref again.
If you have:
\documentclass{article}
\usepackage[hebrew,english]{babel}
...
5
votes
4answers
193 views
Symbols to avoid while creating new commands
I experienced some problems when creating \newcommand that have some numbers in their names; I can't find docs about that, about the accepted charset for the commands in LaTeX.
5
votes
4answers
2k views
Script-r Symbol
The near-ubiquitous undergraduate reference on electrodynamics, "Introduction to Electrodynamics" by David Griffiths make extensive use of a script-r symbol, defined to be \vector{\scriptr} \equiv ...
5
votes
4answers
4k views
Missing $ inserted
I am new to latex. I am trying to compile someone else's document. I have all the correct packages installed, but I get the following error:
*Overfull \hbox <37.8394pt too wide> in paragraph ...
4
votes
1answer
52 views
Count chars with xstring
I have the following code, which was provided by the xstring author Christian Tellechea, thank you very much. The idea is to count the number of character inside a structure that do belong to a ...
4
votes
1answer
337 views
How to handle special characters in LaTeX?
I am working on one file which has some special chacters.
König IR : KA}unig ,K ~ A}unig
% : Comment in latex (so no text after this %)
- : escape
I get different output ...
4
votes
1answer
137 views
XeLaTeX: WordInitial, Inner and WordFinal seem to match everywhere
I am creating a blackletter font and would like to use it with XeLaTeX. I try to use initial/medial/final substitution for letters, like s/ſ, but the context seems to match even when it should not.
...
3
votes
1answer
118 views
Special characters in input file
I want to have my sections in independent .txt files in the folder of my assignment. So I use \input{text.txt}. The problem is, I write in Danish and we have the 'æ' 'ø' 'å' characters that aren't ...
3
votes
2answers
519 views
Output ASCII code as character on terminal in Latex?
If I have a letter/character, I can output its ASCII value using \number and backtick command:
*\typeout{\number`a}
97
What do I do if I have "97", and I want to show "a" in terminal? I have ...
3
votes
2answers
213 views
Umlauts in label
I'm using LuaLaTeX and wonder why I cannot label theorems with words containing umlauts. For example:
\documentclass[a4paper,12pt]{article}
\usepackage{luatextra}
\usepackage[utf8]{luainputenc}
...
3
votes
2answers
496 views
How to make overlaid text?
Is there a nice way to overlay text in the space of one character?
So if text is overlaid as I described it would almost result in a black square.
3
votes
1answer
343 views
Make emacs speller work with accented/modified letters
In continuation to this question I was wondering, now that my document is full of \' and other accents, the emacs speller balks on all the words... Is there a way to get a spell-checker to understand ...
