{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

2
votes
2answers
75 views

Umlaut appears on unwanted position

I am using the following imports to be able to write German umlauts. \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} This works just fine, but I am having trouble writing the following ...
1
vote
0answers
38 views

inputenc errors caused by different LaTeX environments?

On my iMac, \usepackage[utf8]{inputenc} get's me Package inputenc Error: Keyboard character used is undefined. I don't get this error on my MacBook. Conversely, \usepackage[latin1]{inputenc} ...
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 ...
4
votes
1answer
98 views

Completely lost with BibTeX

I'm new to LaTeX, and have managed to transfer an essay I'd written in Word into LaTeX fairly satisfactorily, but I'm now trying to sort out the bibliography using BibTeX and I'm completely lost. I ...
3
votes
1answer
66 views

How to get these symbols in LaTeX? [duplicate]

In my book I found a few of weird symbols: They are used as mark of ellipse, parabola and hyperbola, respectively (E-like, P-like and H-like letters in these images). How to get them in LaTeX ...
0
votes
1answer
47 views

writing “_” like a character

I would like to write \texttt{set_x} where "_" is an character and not a "math instruction". But Latex recognise it like a math instruction and ask for the missing $$...How can I do?
2
votes
1answer
31 views

Substitute characters in text-mode with their math equivalent

I'm looking for a TeXway to substitute - (or other characters) while in text-mode with their math equivalent (i.e. $-$) in one environment/group. I'm looking for a 'switch' (\foo # and not \foo{#}). ...
1
vote
0answers
76 views

Making the Swedish characters å, ä and ö appear [closed]

I need to use the following preamble but can not make the Swedish letters å, ä and ö appear. The part in Swedish is in the separate file called intro_summary.tex. I'm using TeXShop as my editor. I ...
3
votes
1answer
60 views

Auto convert LaTeX escape codes to UTF-8 characters?

How do I—e.g., with AucTeX—automatically convert escaped characters like \~n to ñ for use with \usepackage[utf8]{inputenc}? I could do something like this: sed \ -e "s/\\'a/á/" \ -e ...
0
votes
1answer
113 views

How to get a circle over A

As given on this website, the command \AA is what I am looking for. However it simply produces rA instead of putting a circle over the top vertex of A. How do I fix this? I am trying to get someone's ...
6
votes
1answer
176 views

PNAS style and non-latin characters in author's name

I am using style PNAStwo (for a submission to PNAS). However, its fonts for authors, affiliations and abstract seem do not contain non-latin characters like ł (\l) or ø (\o), and produce some random ...
6
votes
5answers
4k 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 ...
2
votes
0answers
45 views

how to generate a PDF with real UTF characters [duplicate]

I'm using these settings: \epstopdfsetup{outdir=./} \usepackage[italian]{babel} \usepackage[T1]{fontenc} \selectlanguage{italian} \usepackage[utf8]{inputenc} \usepackage{hyperref} in order to write ...
38
votes
4answers
34k views

How to type special/accented letters in LaTeX?

How to type these special letters from European languages in latex? ä, é, and L'?
53
votes
2answers
47k 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 ...
7
votes
1answer
49 views

Character table on style files

What is the reason to insert the code below at the beginning of a style file? For example, the code below can be found on lipsum.sty. %% \CharacterTable %% {Upper-case ...
1
vote
0answers
51 views

How to beautify '+' sign [duplicate]

I am writing a document with LaTeX covering the basics of programming with C++ and unfortunately the '+' signs look kind of ugly to me: They seem to be too big, too thin (regarding the rest of the ...
7
votes
5answers
119 views

Multiple diacritics on one character

As linguistics student, I have to put more than one thing on a character every now and then. For example, I need to type ā̆. I thought I could simply do that by typing \={\u{a}}, but then the macron ...
14
votes
3answers
336 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 ...
2
votes
0answers
99 views

Replacing a glyph in one font with a glyph from another

I am a newbie with LaTeX when it comes to fonts. I would like to replace the double story "a" in Latin Modern for a single story "a" version (and similarly for the "g"). I just prefer my typeset ...
5
votes
1answer
100 views

Strange behaviour with \detokenize and underscore

I just learned about \detokenize, so this question is likely a naive one. Nonetheless, based on what I thought that I understood about \detokenize, I would have expected \detokenize{_} to render as ...
17
votes
3answers
24k 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: ...
7
votes
1answer
132 views

Dealing with word boundaries in a pl file

What is the easiest way to express replacement rules like “If a letter follows, replace ‘s’ by ‘ſ’” and “If a non-letter/word-boundary follows, replace ‘g’ by ‘g.final’” in a pl file? Context I am ...
12
votes
3answers
848 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 ...
5
votes
1answer
142 views

Can I prevent a package from redefining a command?

I like to use runes and letters from other non-standard alphabets as mathematical symbols. However, now the allrunes package is interfering with my other mathematical typesetting. Take this minimal ...
0
votes
0answers
140 views

How to replace (unicode) characters by ü,ğ,ş etc.?

\documentclass[11pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[T1]{fontenc} ...
9
votes
1answer
117 views

Inventing New Character for TeX

how can I invent a new symbol/character for TeX. For example, say I want to type the Tengwar letter ungwe (2 IV: http://en.wikipedia.org/wiki/File:Tengwar_alphabet.png), or any other symbol that I ...
2
votes
1answer
195 views

`Don't talk to me': - How to render apostrophe within single quotation?

I have issues rendering with LaTeX `Don't talk to me': I have this title as bibliographic entry in Zotero (it starts exactly like that). LaTeX & Biber complain when I try to parse the .bib file ...
4
votes
1answer
130 views

The simplest way to input π in text mode (textual)?

What is the simplest way to input π in text mode if there is only this one greek letter in the whole English text? May be there is one line of code can make it. The following excellent example is ...
9
votes
1answer
71 views

How can I execute some code at each occurence of an EOL character in a listing?

My question is very similar to Peter Grill's, How to detect a tab character when processing a literate in lstlistings? I'm trying to count the number of ^^M characters encountered in my listing ...
4
votes
1answer
118 views

inputenc[utf8] error with input-function of external tex files

I got a problem with inputenc[utf8]. My document is in German and uses 'ä, ö, ü' which usually works fine with the following preamble: \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
6
votes
0answers
97 views

Special characters in graphics filenames

This is my third question in the series of transforming some (~167) documents from HTML to LaTeX. The other questions were related to {inputenc} and {wrapfig}. The original document have several ...
14
votes
1answer
296 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 ...
3
votes
1answer
56 views

catoptions destroys french active characters ! and :

A user of my menukeys package reported, that there’s an issue with the activ characters in french, i.e. !, ;, ? and :. I found out that it’s not a bug in menukeys but catoptions seems to interferre ...
5
votes
1answer
438 views

Error: Command \" invalid in math mode on input line x

I'm receiving the following error Command \" invalid in math mode on input line 60. where my input lines 58-61 are \begin{equation} \label{1} \Delta x=x_{efter}-x_{före} \end{equation} The ...
6
votes
2answers
107 views

Use detokenize with command line input that has underscores

I'm calling a script where I give a command line input to LaTeX: pdflatex "\def\myvar{given_test} \input{figures.tex}" And then in the script, I try to use this "given_test" input and print it: ...
8
votes
1answer
88 views

Measuring the true height of a character

Suppose you have got a character that sits above the reference point. When you measure its height, the empty space above reference point gets also included in its height measurement but that is not ...
2
votes
3answers
620 views

Producing “chandrabindu-halanth” symbol in devanagari

Can the above image be produced using the devanagari package. To produce it I used the skt package but I am curious to know if this image (that is the chandrabindu along with the halanth) can be ...
8
votes
2answers
142 views

If \@percentchar represents %, is there a macro for #?

If \@percentchar represents %, is there a macro for #? I have tried \@sharpchar and \@numberchar but both do not exist. Do you have any idea what is the correct macro name for #?
1
vote
0answers
228 views

MikTex doesn't accept “ù” character [closed]

I'm using MikTex and pdfLatex. In the preamble I'm using \usepackage[latin1]{inputenc} because I'm writing in italian, and the text is coded in UTF-8. This works nicely for every type of ...
9
votes
2answers
247 views

Align position of decimal point within table of numbers, text and percentage values

I have asked sthg similar with a MWE today answered by David C., but this is a more difficult follow-up question. Also I have just made a new account :) The Question is simple: I want the numbers to ...
2
votes
2answers
155 views

Align position of decimal point within tabularx

I have made a table with 5 columns, of which I'd like the last 4 to be of the same width. Therefore I was told I should use tabluarx. Using this package my output looks fine, but I have also numbers ...
5
votes
4answers
2k views

German character not rendered to pdf

I just started using LaTeX, and need to use the character "ü". I already have this in main file : %%% Sprach- und zeichensatzspezifische Pakete \usepackage[latin9]{inputenc} \usepackage[T1]{fontenc} ...
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 ...
1
vote
1answer
112 views

Error message with the package inputenc [duplicate]

I'm trying to do a presentation in spanish using beamer and so far my source looks like this: \documentclass{beamer} \usetheme{AnnArbor} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
1answer
108 views

Macro to get character width in ConTeXt

Background Looking to adjust the location of the first letter in a word based on its width. Problem The calculation resembles: \define[1]\StyleChapterChar{% \cldcontext{string.sub("#1",1,1)}% } ...
6
votes
1answer
3k views

How to get text above and below double harpoon (reversible reaction) symbols in an equation

I'm working on the Chemwiki Dynamic Textbook Project at UC Davis, California and I've run into a problem. I need to formulate a symbol containing double harpoons (as in a reversible reaction, e.g. ...
16
votes
3answers
296 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 ...
4
votes
1answer
183 views

Problem using the German letter “eszett” ß in theorem environment

I have the following problem(s) using some special German letters: I would like to keep the two lines \usepackage[latin1]{inputenc} \usepackage[ngerman]{babel} Unfortunately, the symbol ß is not ...
4
votes
2answers
809 views

Babel - Romanian ' or \c

I want to use some shortcuts to produce special character in Romanian. One of them is to use the command \c but also I know that is possible to use the following character: ' . example \c si or 'si ...