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
1 vote
0 answers
18 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 ...
  • 71
0 votes
1 answer
34 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 ...
  • 215
4 votes
1 answer
63 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. ...
  • 207
1 vote
2 answers
57 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 ...
  • 545
1 vote
1 answer
45 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
765 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 ...
2 votes
2 answers
313 views

How to write ^(caret) in latex? [duplicate]

It's as the title says. How can I write ^(caret) in Latex. If I type something like [^set], then the s in set is raised to a power. How can I display [^set] the way it is? $\wedge$ sorta works but it ...
  • 135
0 votes
1 answer
123 views

Declaring a Specific Math Symbol in a TTF Font (LuaLaTeX)

I'm trying to work around a classic problem in LaTeX for anyone that deals with Electromagnetism: define Griffiths' script-r notation. This time, I want to do it using the actual Kaufmann font he uses ...
0 votes
2 answers
86 views

Using Gentium Plus glyphs in XeLaTex

I am trying to type PUA characters (such as omicron with perispomeni) using the Gentium Plus font on macOS. I have tried setting Gentium Plus as the font for Greek using babel and fontspec but it ...
  • 3
6 votes
2 answers
2k views

German umlauts are OK, but ß appears as "SS" [duplicate]

I'm writing a paper in German, and these are my settings for font: \usepackage[utf8]{inputenc} % Required for inputting international characters \usepackage[T1]{fontenc} % Use 8-bit encoding \...
0 votes
1 answer
29 views

Latex for M, m use in the context for major and minor arc [duplicate]

How can we write these "M" here in Latex? especially Overleaf?
2 votes
1 answer
42 views

How to expandably obtain pendant of different (to be specified) category of arbitrary explicit character token?

This question is about categories of explicit character tokens. If you apply \string to an explicit character token, you get the category 12 pendant of that explicit character token. (Exception: If ...
0 votes
0 answers
49 views

umlauts converted to strange characters

I am having trouble with TeXShop version 4.62 macOS BigSur. I am quite new to LaTeX and am modifying a .tex file from a colleague. Deleting the .pdf and using 'typset' 'LaTeX' of the .tex file works ...
0 votes
1 answer
184 views

Greek characters not shown in pdf file!

I have a huge problem, I don't know what happened but suddenly Greek characters are not shown in the PDF file after the compilation! I even did copy-paste in old TeX codes that worked fine and now ...
  • 1
0 votes
0 answers
22 views

Fixed-pitch font encoding that includes DEC/Microsoft/IBM PC line-drawing characters

Is there a LaTeX fixed-pitch font encoding that includes the DEC line-drawing characters (that Microsoft and IBM included in early PCs)? In X-windows, these are displayed using "dec" in the &...
0 votes
0 answers
46 views

How to write a non-equation word as a word

For preparing my CV using overleaf, I have to included a link which contains the word E_certificate The output, without even enclosing the words between $ $ , prints the certificate as a subscript to ...
0 votes
0 answers
64 views

Missing special characters with txfonts and XeLaTex in bibliography

Special characters like "ń" and "ł" aren't shown in bibliography. I checked the raw logs and found it: Missing character: There is no ł ("142) in font ntx-Regular-tlf-t1! ...
  • 11
3 votes
3 answers
161 views

Expandable macro that extracts the first character of UTF-8/cyrillic string without additional packages

I would like to have an expandable macro that extracts the first (and sometimes the second) character of UTF-8/Cyrillic text strings without using additional packages. No simple solutions from TeX or ...
0 votes
2 answers
78 views

How can I input multiple txt files with special characters into my main tex file?

I am very new to LaTex and learning it with TexMaker. I want to make a book. For this book i have 99 txt-files (each a chapter). I want to import this chapters into my main tex-file with the command \...
0 votes
0 answers
51 views

How to embed literal curly braces in listings package

I am using the listings package and the language selected is Delphi. I have noticed that in the editor, the use of curly braces in the code -- as happens when compiler directives are included in the ...
1 vote
1 answer
53 views

What is causing punctuation to appear around my matrices?

I have an input file called mathchar.tex, which I rely on pretty heavily: \mathchardef\Gamma="7400 \mathchardef\Delta="7401 \mathchardef\Theta="7402 \mathchardef\Lambda="7403 \...
  • 257
1 vote
0 answers
59 views

How to change font for specific characters?

I would like to use a font (e.g. ebgaramond) except for some characters (e.g. all digits) for which I would prefer another font (e.g. ebgaramond-math). What is the easiest solution for in pure ...
  • 251
1 vote
2 answers
72 views

How to check the empty space after the letter inside of \newcommand?

I have the trouble that I write the book in Azerbaijani, and I successfully use FontSpec. The only problem is following: When I use\newcommand\ə{\char"04D9} as the command, it removes all space ...
0 votes
0 answers
24 views

Circling letter in \item[] in the \itemize environment [duplicate]

When I want to circle number 1-10, I use \documentclass{article} \usepackage{xcolor} \usepackage{pifont} \begin{document} \begin{itemize} \item[\ding{192}] text \item[\textcolor{red}{\ding{183}}] \tt ...
1 vote
1 answer
176 views

Write strange i in Latex

I saw this letter i in some papers and wanted to use it in one of my documents; couldn't find how to get it to appear.
2 votes
1 answer
122 views

TeXbook, Appendix C: Character Codes -- what exactly is the third table shown in that appendix about?

Sorry for not providing a Minimal Working/Demonstrating Example. The question is not about code but about understanding what is written in the TeXbook. TeXbook, Appendix C: Character Codes presents ...
3 votes
1 answer
106 views

Check if at least one substring in a list can be found in a string

There are several solutions both integrated in TeX and proposed on this side for checking if a substring can be found in a given string (such as IfSubStr, IfStringInList and others). As for example, \...
  • 1,691
3 votes
1 answer
35 views

Detection if image path contains string fails

For a project I would like to check if my included image is located in the sub-folder graphs or not. To check that I wrote a small MWE: \documentclass[% reprint, amsfonts, floatfix, amsmath,amssymb, ...
  • 1,691
1 vote
1 answer
121 views

What is the LaTex code for this K and X? [duplicate]

I've recently come across this symbols from this paper. Could you inform what are the code of this K and X? I tried \mathcal K and \mathcal X to no avail.
  • 811
7 votes
1 answer
246 views

The concept of boxes in TeX

Am I right that TeX considers a text in terms of boxes (rectangles) where each character (char) is in a rectangle with three dimensions (height, width and depth (hwd)) and the origin point? And that ...
  • 515
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: Å ...
3 votes
2 answers
349 views

Curved 'A' character in math mode

I'm looking for a way to write more or less the following character in math mode (it'a a sort of omega with a bar): How can I do it?
1 vote
1 answer
142 views

Unicode in pdfLatex says it only supports up to 255 code points when I'm trying to use a Japanese letter

I hope you are doing well. This is a very quick question. I want to insert some characters from the Unicode table in a formula but unfortunately I can't find a way. I would appreciate your help. For ...
0 votes
1 answer
192 views

Undefined control sequence \centerdot [duplicate]

I am getting an "Undefined control sequence" error when I try to use the \centerdot command, even though that command is shown in many references as the way to insert a centered dot. What ...
3 votes
3 answers
163 views

Conditional newcommand depending on characters

I have a basic command I created, aimed to simply bold and move a text to gain time : \newcommand*\Cote[1]{\footnotesize\emph{\textbf{#1}}} When I want this result, I still have to use this command \...
  • 165
0 votes
1 answer
114 views

Functions on Latex

Is there a way to write functions on latex? For example... def some_function{input}: \command{input} I've been thinking of using newcommand but I want to be able to use a variable for the input so ...
2 votes
2 answers
192 views

How can I insert a nine-pointed star in a LaTeX document?

I am typesetting a Bahá'í book and I want to insert a nine-pointed star in it. Is there a way to generate it on the fly? What would be the best way to do this otherwise? Unfortunately this is a common ...
3 votes
1 answer
105 views

Change symbol drawn in tikz by a character in the pdf text

I was drawing my set of dice, like the following code: \documentclass{article} \usepackage {ifthen} \usepackage {tikz} \tikzset% {% pics/die/.style={% code={% \begin{scope}[x=1ex,y=...
0 votes
1 answer
83 views

I cannot write the '@'symbol [closed]

how can I write the around '@' symbol in LaTex? I'm trying to input some text inside a lslisting: \begin{lstlisting} @some text some text \end{lstlisting} The '@' doesn't come up or sometimes ...
0 votes
2 answers
207 views

How to add support for a single missing character?

I keep getting this error: [WARNING] Missing character: There is no ❯ (U+276F) (U+276F) in font Roboto Mono Nerd Font Complet Is there any way to add support for this entire font, or at least for ...
0 votes
2 answers
95 views

How to create a new symbol (with adjustable colors) in tikz

I have a naive question --- How to create a new symbol like the figure below (with adjustable colors) in the tikz? I believe that it is doable with tikzpicture. For example, using tikzpicture, are we ...
  • 2,179
0 votes
1 answer
55 views

How to add a tilde "~" in between two letters (\alpha and l)? I attached my text below:

\documentclass[a4paper, pointlessnumbers, %draft, parskip=half, automark ]{scrartcl} \setlength{\parindent}{0pt} \usepackage[a4paper, left=2.2cm, right=2.2cm, top=2.5cm, ...
1 vote
1 answer
64 views

Print caron using biber [closed]

I am trying to cite a paper with the following authors: author={Flaj{\v{\s}}manov{\'a}, Jana and {\v{S}}iler, Martin and Jedli{\v{c}}ka, Petr and Hrub{\`y}, Franti{\v{s}}ek and Brzobohat{\`y}, Oto ...
  • 11
4 votes
2 answers
605 views

Character "l" replaced with double arrow in mathcal?

Very trivial situation: calling in math environment $\mathcal{Cl}$ replaces the letter "l" with a vertical double arrow. Where is this coming from i.e. with what macro/syntax is this ...
  • 43
2 votes
1 answer
46 views

Treating spaces and hyphen in a hangman command

I want to make a hangman command with latex, which use would be \hangman[]{word to guess}, with the following specifications: a switch \ifhide allow to show the hangman or the answer; both hangman or ...
1 vote
1 answer
73 views

Non-ASCII escape characters

I'm using all ASCII characters in my code blocks, so I need to reach for non-ASCII ones for the escape characters. I expected Xetex to deal with this just fine; alas, it doesn't seem to be the case. \...
  • 1,047
-1 votes
1 answer
120 views

How to write this: “------------------\r\n“

When I try to write the above expression I get an error stating: "Undefined control sequence". The same when I try to write this: ‘\r\n’. Any ideas?
8 votes
3 answers
431 views

Single-width "10" for card game presentation

I play and teach bridge, and the shape of hands is very important. For instance: KJ854 Q9842 8 A3 is easy to recognize as equal-length majors (top two rows). But then there's the ten. Various style ...
  • 189
2 votes
2 answers
269 views

How to get accented letters (ogonek) in a specific font?

I need to use a specific font (New Aster LT Standard), and I am running into issues with 2 characters in my text. One is the polish ogonek on the name "Dąbrówka", the other is an accented ...
3 votes
1 answer
233 views

Writing ॐ in latex

I am trying to write a document in Bengali, where at a point I need to write the sanskrit letter ॐ. However, I am not able to write it yet. Here is my working example: \documentclass{article} \...
  • 43

1
2 3 4 5
13