As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [characters]

{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.

Filter by
Sorted by
Tagged with
200 votes
6 answers
496k 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
1 answer
125 views

How to include character count with spaces and specify which sections are to be included

I want to add character count including spaces in my report. So far I've found a command, which provides me this: \documentclass{report} \begin{document} }{% \newcommand{\charactercount}[1]{ \...
0 votes
0 answers
58 views

Is there a way to remove specific characters from argument of a macro?

Suppose we have a macro saying, \NewDocumentCommand\foo{m}{#1} When it eats an argument, I want it to print whatever is in the argument without specific characters. For instance, I want to remove ...
0 votes
0 answers
30 views

How not to lose special characters in Bibtex file?

My bibfile includes special characters. When I open the file with TexShop (4.70) which I used to create this file on my Mac, I see my special characters. When I open the file with Texmaker (5.1.3), I ...
3 votes
2 answers
124 views

Character for missing paragraph

I am looking for a character to indicate a missing paragraph. It is used in German schools when correcting essays. The character is used like this and looks like the red one here (source): I have ...
0 votes
1 answer
84 views

What character is this? [duplicate]

Does anyone know what character this is? How do I reproduce it in LaTeX? It came from a PDF written with LaTeX (which I obviously don't have the source code for).
0 votes
0 answers
33 views

Why is LaTeX printing an em-dash for the vertical bar (character 124)? [duplicate]

I have lately seen a strange behaviour of my MikTeX installation and cannot explain it to myself. If I have the following code: \documentclass{minimal} \begin{document} | \char124 \end{...
1 vote
1 answer
53 views

How to put a verbatim section in place of teaser figure in acmart document?

I would like to use a graphic built from monospaced characters as a teaser figure in an acmart document. Elsewhere in the document I've used verbatim sections inside of table*s to do this, creating ...
13 votes
4 answers
7k views

Special L for Lie Derivative

Does anyone happen to know how to typeset the special L character found, for example, in eq. 2.41 in this paper: http://arxiv.org/pdf/1107.5792v2.pdf that is being used for the Lie derivative? Thanks ...
1 vote
1 answer
362 views

Problem with accent in portuguese

I'm making some document in portuguese. Everything is working fine, but when I open the PDF and try to copy the characters, those with accent make some mess. What I mean is that I write, for exemple, "...
0 votes
0 answers
22 views

How to mention passwords in LaTeX documents with special caracters? [duplicate]

right now I am writing a technical report for my collegue. Therefore it is nessecary to mention a password in the document. I did a simple \documentclass[11pt,parskip=full,a4paper]{scrartcl} ... \...
0 votes
0 answers
30 views

Latex complex number symbol ℂ in text [duplicate]

I want to write $\mathbb{C}$ as a text in my references (.bib) file. it is a text and it is not inside math dollar.
0 votes
1 answer
78 views

How to type a BOX that occupies the size of a Chinese character symbol

If a Chinese character does not exist in the font, the resulting pdf document will not display the Chinese character correctly and will be replaced with a large box. Just like this box down here: The ...
0 votes
1 answer
42 views

Vertical alignment of lines change based on letters having a descender or tail

I am currently having issues with vertial alignment based on the type of character being inputted. If I use a character that has some sort of descender or tail, it adjusts the height of the \hrule ...
0 votes
1 answer
139 views

Uppercase epsilon-like letter in text mode: what is it and how do I get it?

Here it is, circled in red. It looks like a greek epsilon, ε, but it is upper case. To me, it looks like a \mathcal{E}, but I'm not sure as it is in text. Furthermore, I don't know if this book was ...
37 votes
5 answers
35k views

Writing a backslash in the \texttt environment

How do you go about writing a backslash inside \texttt? The $\backslash$ trick makes the font inconsistent. The reason I am asking is that I am writing some introductory computer science material and ...
12 votes
3 answers
6k 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 ...
0 votes
0 answers
30 views

How to reduce "new list of" character?

how to reduce font size in "new list of""? and why when I insert "\listofmaps" does it appear red? \documentclass[a4paper, 12pt, twoside ,titlepage]{article} %%% packages \...
1 vote
1 answer
35 views

Character ĵ being displayed as a black box

I'm writing a document in which I try to use the following characters used in Esperanto: ĉ, ĥ, ĵ, ŭ, ŝ, Ĉ, Ĥ, Ĵ, Ŭ, Ŝ. Until now I was using base latex and it was working just fine, but I switched to ...
233 votes
14 answers
952k 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\...
0 votes
1 answer
119 views

Character ñ in basque language [closed]

I'm trying to put the character ñ with basque language. I've seen that in some languages you can use \~{n} but it doesn't work. I need to put it in the text format, not like $\tilde{n}$. Can someone ...
0 votes
1 answer
43 views

Any useful command to fix this error:LaTeX Error: Unicode character ⌊ (U+230A)

I am using Arxiv template example of overleaflatex. Sometimes I got some errors that I regarding Unicode characters that can fix. In my research paper I have used the latex symbol r_\ell. I have got ...
47 votes
7 answers
3k views

Is there any reason to prefer a unicode symbol versus its LaTeX command counterpart?

For example, consider the Swedish letter "Å" which is also the symbol for a unit of length in chemistry. When writing a document, there are three different ways to achieve this character: Å ...
0 votes
0 answers
40 views

How to make my non-latin pdflatex document more copy-paste friendly?

I write and typeset articles in languages that do not use the latin alphabet using pdflatex. I have received requests from foreigners to make it easier to run the document in Google Translator. ...
0 votes
0 answers
48 views

Transferring the concepts "string" and "character" into TeX/LaTeX

(Looking at packages like l3string, xstring and stringstrings tempted me to post the following: ) The concepts "string" and "character" to me seem not well defined in (La)TeX. ...
0 votes
0 answers
25 views

How to insert a star symbol in tikz [duplicate]

I would need to insert black or white five -pointed stars in a tikz figure, but I don't know the computer coding of these special characters... where can I find them?
1 vote
2 answers
40 views

import multi external files into forest

I want to import many input text files inside a forest. Here is an example to illustrate my idea: input1.txt This line is a long sentence that may need more space to fit inside a single line. This is ...
1 vote
1 answer
55 views

Import extrenal text into forest

I want to import a text file into forest and have it as it is without using latex symbols. I found verbatiminput as possible choice but it doesn't work as I expect and outputs some strange chars: Here ...
1 vote
2 answers
97 views

How to write the string "^^^^" into a file

I am trying to write "^^^" into an already opened file (under the variable \myfile) using the command \immediate\write\myfile{"^^^"} This, however results in an error. I am ...
3 votes
2 answers
2k views

German Umlaute ä, ö, ß, ... are not shown in PDF file

I have a problem writing German Umlaute like, ä, ö, ß, .... They show up as cryptical signs but not as Umlaute in the pdf- file. Here is my latex code \documentclass[11pt,a4paper,german,fleqn,oneside‎...
2 votes
1 answer
653 views

Special characters æøå in Table

I have the problem that whenever I set the preamble right so that I can use the characters æ ø å in the text of the document with no problem, the special characters in tables that are entered look ...
0 votes
2 answers
46 views

Using different encodings at the same time

I need to write a letter which looks like the small greek epsilon but in large (like a capital). I found on page 17 of this document the possibility of using \m{E} for it, which comes close enough. ...
12 votes
2 answers
1k views

Writing Biblical Hebrew texts with different coloring for consonants, vowel and accent signs

I have got the following problem: I am using Biblical Hebrew texts written in XeTeX but I would like to color consonants as well as vowel and accent signs differently. I have read Coloring combining ...
1 vote
2 answers
1k views

How do I get an Uvular Trill <ʀ> IPA symbol?

I've tried looking at a tutorial online, which tells me that ;R should produce the ʀ symbol that I want to represent an uvular trill, but this only seems to produce a normal capitalised R. What do I ...
3 votes
2 answers
226 views

list of supported chars for current LaTeX configuration

I am calling pdfLaTeX with text entered in a web form. I would like to replace important chars not supported by LaTeX with the right LaTeX command. How can I get a list of chars supported by LaTeX so ...
3 votes
2 answers
324 views

How do I put the "$_" string in a \section?

How do I put the "$_" string in a \section? When I try \section{$\_} it gives me Missing $ inserted error. When I try \section{\$\_} it gives me Extra }, or forgotten $. error. When I try \section{\...
22 votes
2 answers
9k 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 ...
13 votes
4 answers
16k 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 ...
1 vote
0 answers
21 views

Make paragraph with special character or programming source code?

Is there an easy way to type a programming command line or paragraph with special character ? example this: @Test(name = "Login", urlPatterns = { "/login" }) public class Login ...
104 votes
7 answers
123k views

How does one type Chinese in LaTeX?

Can anyone describe how one can type Chinese in LaTeX? When I compile this: \documentclass{article} \begin{document} 你好吗? \end{document} the resulting document shows nothing. For reference my IME ...
0 votes
1 answer
93 views

Italic ampersand displayed weirdly?

I want an italic ampersand, yet it looks weird to me: \documentclass{article} \begin{document} \textit{\&} \end{document} I just want an ampersand in italics, yet it should still look like ...
3 votes
2 answers
2k 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 ...
36 votes
10 answers
50k 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 \...
1 vote
1 answer
81 views

How to type character - in LaTeX? [closed]

I need to insert -max_target_seqs 100 -outfmt “6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore qseq sseq” -task megablast (source https://www.ncbi.nlm.nih.gov/...
20 votes
5 answers
6k 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 IPA ...
4 votes
1 answer
85 views

Special characters in a glossary entry cause an error if printed uppercase

I have a glossary entry that defines a word beginning with a special character "ś". Unfortunately I need to use this entry at the beginning of a sentence so it must be written uppercase. ...
2 votes
0 answers
84 views

Formatting multiple characters and glyphs/accents within the same word

As an extension to the macros (\FormatChar - \FormatChars - \ColorNthChar - \colorrange) posted in: Apply command on nth character of a word Emphasizing Arabic text characters Apply command on ...
1 vote
2 answers
81 views

Is it possible to redefine the character code of space?

If I execute the code \tt\catcode` =12\relax test I get: I also can emulate the same effect using \char32 in place of <space>. Is it possible to change the character code of <space>, so ...
1 vote
1 answer
64 views

Using small capitals causes missing characters

For some reason using small capitals \textsc{} causes missing characters. For example, the following code: \documentclass[12pt]{article} \begin{document} \textsc{Hello world} Hello world \end{...
7 votes
3 answers
920 views

How can I show S-comma in LaTeX math mode?

I am writing my bachelor's thesis and it needs to be written in Romanian. While writing some math formula, I wanted to write "and". It translates to "și". As it turns out, my ...

1
2 3 4 5
13