{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

69
votes
3answers
110k 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. ...
1
vote
1answer
42 views

Ignoring LATEX special characters

I have to add in a Latex document a page with the code from program I use for the report. However, when I simply copy and paste the code into Latex, I get a ton of warnings. Is there a way to tell ...
10
votes
2answers
527 views

Decrease length of underscore character in normal text (gender_gap)

I use the underscore character _ in normal text mode (not typewriter). However, it is quite long. How can I decrease its length so that it is shorter? I followed the Tex FAQ on how to typeset an ...
11
votes
1answer
143 views

ebgaramond swashy Q, LaTeX vs. Lilypond

I am using LaTeX (pdflatex) and Lilypond together for a critical music edition, using the EB Garamond typeface for both. The two programs are giving me different glyphs for "Q": LaTeX provides a ...
1
vote
1answer
46 views

Listing Python code with Strings and all characters

I have a little issue concerning the representation of a string in Python. I have the following Python Code #!/usr/bin/env python import sys import math import string from vmtk import pypes from ...
0
votes
0answers
48 views

linguistic options of JabRef 3.2

I am puzzled with some foreign languages such as Czech and Polish, because author names are often written with characters which are ignored by JabRef. Is there a mean to code them in order that they ...
4
votes
1answer
97 views

How to type special character— a Y with a line through it

The symbol I'm looking for is similar to the one produced by \mathfrak{X}, but with a Y instead of an X. I've spent hours looking for this, combed through every character list I can find, tried ...
76
votes
5answers
160k views

How to type special/accented letters in LaTeX?

How to type these special letters from European languages in latex? ä, é, and L'?
0
votes
0answers
28 views

Biblatex not printing umlauts [duplicate]

I have a bibliography entry with a german umlaut in the name. In the .bib file the character is correctly escaped: author={B{\"o}ttcher} The corresponding entry in the .bbl file no longer contains ...
0
votes
0answers
45 views

Foreign characters in ShareLatex vs. TexStudio

I have not been able to get TexStudio to properly display Turkish characters (öçşiğüİı) using a variety of solutions such as \usepackage[turkish]{babel} \usepackage[utf8]{inputenc} However, ...
173
votes
2answers
262k 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 ...
0
votes
3answers
108 views

How to activate on LaTeX greek and latin characters

I try to use LaTeX writing paper Greek and English text, without using separate commands for Greek or English (like: \begin{otherlanguage}{greek}), but using both Greek and Latin characters under the ...
3
votes
2answers
71 views

How to make a capital V with a brevis or macron over it?

I'm doing linguistics, and I need to show short and long vowels. The tipa package handles vowels with the brevis or macron sign over them, but if I use a capital V \={V} or \u{V} I don't get a ...
3
votes
4answers
2k views

Problem with umlaut in Texworks [duplicate]

I can't seem to input the syntax for an umlaut. Here is what I write \documentclass[12pt]{article} \setlength\parindent{0pt} \usepackage{amsmath} \numberwithin{equation}{section} \usepackage{color}...
0
votes
1answer
38 views

Two local problems after inserting language package

I am now writing a lecture notes on Advanced Number Theory, and I use University Lecture Series LaTex packages of AMS. Then I faced two problems. First, if I include my native language package (...
2
votes
0answers
58 views

Weird invalid character error [closed]

I get this weird error with this code and I have no idea why: ! Text line contains an invalid character. l.45 ^^@ ^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^... A funny ...
11
votes
3answers
585 views

Repeat characters n times

I wanted to create a new command, which allows me to repeat any characters I want for n times. After some searching and trying, I came up with this: \usepackage{multido} \newcommand{\myrepeat}[2]{% ...
2
votes
1answer
146 views

Check if a string is just numbers or includes letters

Well, the title pretty much says it all, I'm looking for a way to tell if a string has any letters in it or if it's made up of just numbers. I used biblatex as a tag here because of my question's ...
3
votes
1answer
224 views

Insert Unicode private char

How I type the unicode char  in latex?
36
votes
2answers
2k views

Should I use ~ or \mbox?

~ stands for a non-breaking space, and \mbox{<text>} creates a box with text in it that cannot be broken (since its a "box"). I understand that \mbox has broader application than ~ (e.g. when ...
3
votes
3answers
82 views

Package inputenc Error: Unicode char ẁ (U+1E81)

I'm trying to use the 'ẁ' character in my text, however it doesn't show on the right hand side of latex and throws the following error: Package inputenc Error: Unicode char ẁ (U+1E81) I tried adding ...
1
vote
1answer
49 views

How to fix weird `\'i` behavior when using biblatex?

I started to use biblatex not so long ago. Everything is working properly in general, however, I have had some trouble with the special character \'i, used in order to obtain the character "í". It ...
6
votes
2answers
401 views

Adding complex phonetic symbols to LaTeX

I am trying to add symbols from the International Phonetic Alphabet to my thesis. For some of the characters, I have no idea how to add them to TeX. The retroflex is giving me troubles. \...
72
votes
7answers
210k 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: \texttt{Samp\_Dist\...
2
votes
1answer
31 views

Problem with Icelandic characters in Beamer

I am doing a Beamer presentation based on an article, so I do a lot of copy and paste from one document to another. Basically everything is working fine, but for some reason, the Icelandic special ...
2
votes
0answers
72 views

Why do people still use things like \^{} rather than \symbol{94}?

Why do people still use things like \^{} rather than \symbol{94} when the latter gives you the actual ASCII character while the former just gives you something which LaTeX considers a lookalike? ...
1
vote
1answer
57 views

Active character in a command

I would like \forall to trigger a certain behavior (for the purpose of the example below: change the text color to red), which is cancelled when the next ( is encountered. I can make this work when ...
8
votes
1answer
398 views

How can i prevent LaTex from converting a apostrophe combination to this weird character?

I want to write this But it becomes to this in the resulting PDF file How can i prevent LaTex from converting the apostrophe combination to this weird character?
8
votes
1answer
879 views

Typesetting phonetic symbols: Unicode or tipa?

On TeX.SX there are a lot of questions of the form "How do I typeset [some phonetic symbol]?" For example: Typesetting modifier letter U+02ED The near-close, near-front unrounded vowel symbol The ...
1
vote
0answers
37 views

Count Characters without Spaces [duplicate]

I'm writing my BSc thesis right now in LaTeX using texmaker. The maximum amount of characters (without spaces) for the thesis is 70'000. Is there a decent way to count this? Copy-pasting it into Word ...
7
votes
2answers
622 views

TikZ UML diagram special character problem

I'm trying to create an UML diagram using TikZ and pgf-umlcd, unfortunately I seem to have some kind of special character problem and was not able to figure out how to escape them right, an example ...
-2
votes
1answer
66 views

Put plus, minus, time and divide sign in a square [duplicate]

For circumscribed circle, it is $\otimes$, $\ominus$, I get it, but how do you put them inside a square? i have seen something similar in here and here.
4
votes
1answer
111 views

XeLaTeX + \setmainfont{CMU Serif} produces wrong characters

When I'm compiling with XeLaTeX and I use \setmainfont{CMU Serif}, the resulting characters are off by one. This means that an a becomes a b, a 1 becomes a 2, etc. \documentclass{article} \...
7
votes
2answers
132 views

Expansion of \char in \def

In answering another question, I ran into some issues trying to use a combination of \def and \char. Consider the following example: \documentclass{minimal} \usepackage{etoolbox} \usepackage{xstring}...
2
votes
1answer
73 views

Define a LaTeX command that takes character as argument, instead of taking it in { }

I want to define a command that takes two of its arguments as the first two characters after; just like \left( and right) take the first character after them, even if they're braces left\{ and right\}....
0
votes
0answers
32 views

“Unicode char \u8:‒ not set up for use with LaTeX.” [duplicate]

While trying to compile my latex document, I get the following error: "Unicode char \u8:‒ not set up for use with LaTeX." The line number associated to the error seems meaningless. It points to a ...
8
votes
1answer
242 views

Country flags unicode char

I am trying to define new unicode chars for country flags. Unfortunately flags are encoded using two regional indicator symbols according to the ISO 3166-1 alpha-2 two-letter country codes. So 🇩🇪 ...
4
votes
2answers
654 views

IPA characters in plain TeX

Is there a way to type IPA characters in TeX? There is the tipa package for LaTeX, but what about plain TeX? I don't have any experience with installing fonts in TeX and can't find any good resource ...
2
votes
1answer
29 views

Greek language in suftesi document class

I am trying to create a report using suftesi document class. I write my report using both greek and latin characters. The problem, however, is that I cannot print greek characters. I tried this and ...
0
votes
0answers
84 views

command for calligraphic lowercase latin and greek letters

I am wondering whether calligraphic type command exists, that supports both Greek and Latin (lowercase) characters in math-environment. Let's say that I have: \documentclass{article} \usepackage{...
3
votes
2answers
52 views

ring over a with macron?

I am trying to put a ring over an a with a macron, but i cannot position the ring properly. it shows up too far to the left and not in the center. this is the best that i have been able to do: \...
2
votes
2answers
156 views

How to get Unicode characters into HTML output

I am trying to make a book in both print and ebook. To make the print book I generate a PDF with xelatex. I have reconstructed all the source files to be encoded in UTF-8 and the Cyrillic and ...
10
votes
1answer
455 views

How to be able to use ∞ in latex document?

I would like to use the unicode character ∞ in a LaTeX document. I use the default font. If this character is not defined in this font, I can replace it by $\infty$. How can I do that? I tried to ...
5
votes
2answers
129 views

Multi-substring replace

I'm attempting to automate Werner's answer to my question here. In short, in order to sort the Norwegian letters Æ Ø Å (they come at the end of the regular Latin alphabet) correctly dtlsort needs ...
2
votes
0answers
63 views

Which encoding used in LaTeX sources to convert PDF file accents to the doc format correctly?

I have the following configuration file in my LaTeX source: % !TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{...
2
votes
0answers
62 views

Ignore special characters in \newcommand argument to generate section labels? [closed]

I am editing a rather large document and have replaced \section, \subsection etc with \newcommand macros that include \section etc but also spacing and other commands. I am trying to get it to ...
3
votes
1answer
64 views

What methods are available to typeset Chinese?

What is the main way to support Chinese currently? For example, this is one way: \documentclass[UTF8]{article} \usepackage[english]{babel} \usepackage{ctex} % <====================================...
16
votes
2answers
1k views

How to write a letter “ģ”

In my language we use the letter "ģ" representing LATIN SMALL LET­TER G WITH CEDILLA with code U+0123. How can I write it with pure latex? Solution Ok I got what I wanted, thanks to WriteLatex utf-8 ...
2
votes
1answer
64 views

Why \ell produce a character like grave in PDF?

\`{}$\ell$ \bye produces a PDF, then I search ` in it, finding two, why?
6
votes
2answers
497 views

WriteLatex utf-8 ģ symbol problem

I need to use ģ symbol in my presentation. This symbol has 0123 utf-8 code. But when I am typing it in writeLatex it compiles with error: Package ucs Error: Unknown Unicode character 291 = U+0123, (...