{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

3
votes
1answer
26 views

TeXstudio disable character shortcut (Ctrl+Alt+U)

I'm currently using an English keyboard with an "International" configuration to write in spanish. I use the shortcut AltGr+A to write "á", AltGr+E for "é", and so on for each vowel. In TeXstudio I ...
0
votes
1answer
92 views

Inputenc error: unicode char u8 - texstudio

I started write some TeX document, but I have problem with special characters (polish characters like (ś, ć, ę etc.). It's my error message package inputenc error: unicode char u8: not set up ...
1
vote
2answers
40 views

Handwrite letter V in Inline Math Mode [duplicate]

What package and command do I have to insert to write letter V in a handwriting style using Inline Math Mode? Below is the result I want to obtain:
1
vote
1answer
43 views

How to insert Chinese characters in the following template?

I download a template from the website. But I cannot use Chinese characters in it. \usepackage{charter} this is the font it uses I think. I changed it but it did not work. I also change ...
3
votes
1answer
26 views

How avoid “\T1\ss ” as output from \immediate\write and get ß?

\usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[ansinew]{inputenc} ... \newwrite\outfile \immediate\openout\outfile=\jobname.txt % aßbc is a replacement for a long german text-block, ...
4
votes
1answer
48 views

TexStudio - polyglossia - xelatex : how to create symbols

I'm using TexStudio to write my thesis and I just changed to polyglossia and xelatex because I'm need to write down words in a lot of different languages. Since I do this however, a lot of commands ...
3
votes
1answer
53 views

Allowing line break at C++ operators ('::', '->', …) in \lstinline

The following picture shows my problem: How can I tell \lstinline to break lines at specific C++ operators? For example: FooFactory::instance()->createFoo() should be broken as follows: ... ...
3
votes
1answer
48 views

Smashing diacritics on all uppercase characters

I need all uppercase letters with diacritics to have the same height (depth) of the corresponding naked uppercase letter. Motivation: obtaining a regular baseline grid when stretching the baseline is ...
1
vote
1answer
1k views

Is there a nice way to make a strikethrough for the square subset character in LaTeX?

I am working on some math that uses the square subset notation. I need a good way to strikethrough the character in LaTeX. I have tried using the package "cancel" but the strikethrough it produces ...
5
votes
1answer
31 views

substitute a character from one script to another

I am working in XeLaTeX + Memoir, and I have two documents: one typeset in English and another typeset in Arabic. As the two documents are related, I am using the package xr to establish ...
4
votes
3answers
4k views

How to set UTF8 in a lstlisting? (Error received)

I need to copy and past some UTF8 code into a lstlisting, but unfortunately, I receive the following error : ! Package inputenc Error: Unicode char \u8:�\lst@FillFixed@\lst@EC� not set up for use ...
1
vote
1answer
31 views

Command character insertions using polyglossia and Greek with XeLaTeX

At the advice of a past question (Text related packages advised to avoid combining) I am looking into changing my document dependencies from textgreek to polyglossia, but because of restrictions to my ...
5
votes
4answers
3k 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} ...
0
votes
1answer
72 views

German characters problem [duplicate]

My LaTeX document does not properly represent German character. In my opinion, I have my preamble set correctly. what needs to be set correctly, so that the characters such as Ä, ß, etc. are ...
1
vote
0answers
25 views

Change font only for numeral in text mode

I want to change the font used in 0123456789 to the same as defined in $0123456789$. I know that I can do it to math mode with this command: \DeclareMathSymbol{8}{\mathalpha}{mymathnumerals}{`8} Is ...
6
votes
2answers
495 views

What is the role of an unescaped circumflex or hat character “ ^ ”?

Is there any use for the unescaped ^ in (La)TeX, when not in math mode? If not, I couldn't see why it's necessary to escape it.
1
vote
1answer
51 views

double quote charater (’"’) with listings create problem

I have don't know how to fix the double quote character (’"’) with the listing package. Listing get this as the beginning of a string but it is not. Here is the colored minimal example to show the ...
33
votes
3answers
2k views

Display historical characters “uͤ”, “oͤ” and “aͤ”?

I'm trying to display the above mentioned symbols. These are German historical letters which I need to mention in my thesis. I just found how to display letters with an "o" above them, but nothing ...
9
votes
4answers
3k views

Set size of \colorbox for a single character

my question is simple (or not) I want to set the size of the \colorbox command or \fcolorbox command for a single character. The problem is the next: As seen in the image, the height and width are ...
43
votes
6answers
117k 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: ...
0
votes
0answers
508 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} ...
3
votes
1answer
57 views

Typing the symbol “&” in place of “and”

While writing the reference in .bib file, I want to mention the address of publication of the book which contains "&" symbol. While executing the main.tex file I am getting error as "! Misplaced ...
4
votes
1answer
54 views

I-macron without space [duplicate]

I want to write the name Ibn-Sīnā with macrons over the i and the a. I found out that can I add macrons using \=a and that I need \=i\ to avoid the dot over the i. When I write Ibn-S\=i\n\=a I get ...
4
votes
2answers
261 views

Checking in LaTeX for a specific character?

I have a LaTeX problem that I cannot solve by myself. I have a repeating arrangement of characters which I want to format automatically in LaTeX. 1H-NMR (400 MHz; DMSO-d6): \textdelta 12.41 (s, ...
53
votes
4answers
94k views

How to type special/accented letters in LaTeX?

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

How to Produce the Anarchy Symbol

I was wondering if it's possible to produce the anarchy symbol (the circled 'A') in LaTeX. I tried googling "latex anarchist" and got nothing but merchandise and porn, and while I'm not complaining, ...
5
votes
3answers
324 views

A custom “letter” in text mode

I am trying to typeset a letter x (in both lower- and uppercase) that has a small circle overlaid exactly onto the (perceived) middle of the character. My current best effort is x\llap{$\circ$}, but ...
7
votes
1answer
50 views

How to use active character properly?

Suppose I use ' as active character to insert another symbol: {\tt A'C B} \def\adef#1{\catcode`#1=13 \begingroup \lccode`\~=`#1\lowercase{\endgroup\def~}} ...
1
vote
1answer
32 views

Underscore in fbox [duplicate]

How can I write the character _ in an \fbox? \fbox{PART one_Part two} Doesn't work.
4
votes
2answers
122 views

Setting a fallback font for non-Arabic charset not supported by a certain Arabic font

the desired Arabic font is Droid Arabic Naskh source here. Problem is that when I compile the document using xetex I get funny boxes instead of non-Arabic charset as in the MWE below: MWE ...
2
votes
1answer
63 views

How to make listings package break TeX code only after control sequences?

Package listings always likes to break TeX code after backslashes. How to make it always break before backslashes? \documentclass{article} \usepackage{listings} \begin{document} ...
4
votes
1answer
377 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 ...
16
votes
2answers
2k views

How to use phonetic IPA characters in LaTeX

I wish to write a paper about linguistics, so I thought about trying LaTeX. Sadly I couldn't figure out how to write the unique characters I need for my work, for example epsilon with a little tilde ...
3
votes
1answer
135 views

verbatiminput formatting of gretl output, minus sign missing

I'm preparing econometrics tutorials and this year we changed the software (now using gretl). I want to include regression output from a text file. However, the \verbatiminput command does not ...
2
votes
1answer
74 views

Is this the best way to put unicode in a non-UTF-8 source?

I want to put the following phrase into a book. Khabarovsk (Russian: Хабаровск) is located 30 kilometers (19 mi) from the Chinese border. The source is NOT UTF-8 and I don't have the option to ...
7
votes
1answer
11k views

Problem with special characters in listings

I'm having problems with my TeX document. I'm trying to import my java file in listings to get syntax colouring and stuff. My java files contains comments in Danish, which means they contain special ...
3
votes
4answers
123 views

Replacing # for use inside \label

we currently use unique IDs inside our documents that can be extended by adding one or more tags. A tag always starts with an hash character eg. MY.REQ.ID.42#TAG1#TAG2 The following code is part of a ...
5
votes
2answers
236 views

How would I mix German and Icelandic diacritic characters in a single English document?

I'm trying to use the letter-classic class of the following version: \ProvidesClass{letter-classic}[2003/03/04 v1.1] The goal is to mix UTF-8 characters from German and Icelandic in an English ...
5
votes
1answer
146 views

Not colored digits after characters in lstlisting code

I am writing a LaTeX document with Verilog code and I would like to have colored digits in these occasions: simple digits (for example # 30) bus (for example [3:0]) binary or hex representation ...
6
votes
2answers
316 views

How to color diacritical marks?

I would like to have the diacritical marks stand out visually by being colored differently. For example, can I have â in which the circumflex is in red, and the 'a' is in black? When I use ...
8
votes
2answers
278 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 ...
3
votes
1answer
78 views

Problem with underscore character

I'm writing my thesis in latex, and I've included some figures and some labels with character _ in the name. Now that i'm adding \listoffigures, i find some errors with missing $ inserted. How can I ...
2
votes
1answer
76 views

escape special characters in `\foreach` loop

Is there a way to escape underscores (or other special characters) in variable names in a \foreach loop when calling file names? E.g., \foreach \x in {file\_1, name\_2}{Here is \x.} gives correct ...
48
votes
3answers
74k 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. ...
0
votes
0answers
29 views

latex Maya numbers error [duplicate]

I found an error for the current Maya numbers generated by LaTeX: Here is the LaTeX code \documentclass{article} \usepackage{mathabx} \newcommand\mathbfont{\usefont{U}{mathb}{m}{n}} ...
2
votes
1answer
83 views

Strange characters appearing with alpha and beta [closed]

I used a python regex file to edit a section of LaTex that contained alpha and beta. Here it is: Jacobi & $\JacobiP{\alpha}{\beta}{n}@{x}$ \MarkDefn[P z 3 - ...
0
votes
0answers
22 views

Special chararacter writing [duplicate]

I need to write a special character similar as when you write "\aa", i.e., a with circle above, but I need the same for "u", i.e., u with a circle above, how to do it?
8
votes
1answer
131 views

Using a backslash and the following by it non-ASCII char

I'm writing a text with a special char of backslash (\), the text requires to containt the char and the following non-ASCII symbol (cyrillic), so for example I type: text \ц other text and I have ...
2
votes
1answer
100 views

Special character in \url

I am stuck with a problem of a url to some website I try to put a link to. The URL is: http://pl.wikipedia.org/wiki/Prawo_Lewisa-Mogridge’a and Latex have an issue with the ’ symbol. I put it the ...
4
votes
1answer
224 views

Using Swedish characters in Sublime Text 3/LaTeXTools/Skim workflow?

I’ve recently moved from TexShop to Sublime Text 3/LaTeXTools/Skim for my Latex work. Occasionally I typeset texts in Swedish including “å”, “ä”, “ö” etc characters. However, when I open such a ...