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
2 votes
1 answer
633 views

Remove particular characters from some string

Consider this code: \documentclass[12pt]{article} \usepackage{arabxetex} \usepackage{newunicodechar} \begin{document} \begin{arab} إِبرٰهۦمَِ \end{arab} \end{document} Output: The arabic ...
Sukan's user avatar
  • 839
0 votes
1 answer
65 views

Ensuring non-italicization of a character [duplicate]

I would like square brackets to never be italicized, even in a \textit environment. That is, I would like to type [ but have it always replaced with \textup{[}, and similarly for the right bracket. ...
DavidLinguist's user avatar
2 votes
0 answers
1k views

Inserting Chinese text

I am using \documentclass[UTF8,12pt, twoside]{extreport} with PDFLaTeX on TeXmaker on Windows and I successfully created PDF documents when Chinese text is not added. I need to put some pages with ...
DCJ's user avatar
  • 21
2 votes
0 answers
120 views

Special character \~{a} (ã) using bibtex not displaying [duplicate]

I am writing a document and I want to include a reference of a person called Catalão. I put the line related to the author in the entry on bibtex as: author = {P. S. Catal\~{a}o} However, when I ...
cholo14's user avatar
  • 248
2 votes
3 answers
746 views

Symbol sum is generated bad

i want generate equals to next image but the sum is generate bad \begin{equation} \label{eq:aqui-le-mostramos-como-hacerle-la-llave-grande} f(x) = \left\{ \begin{array}{ll} ...
information's user avatar
  • 1,055
9 votes
1 answer
296 views

Adjust diacritic position in emph mode

I use the the additionnal letters ḧ, ĥ, and ḋ. With the CMU font in emph mode. So, with the following MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{CMU Serif} \begin{document} \...
fauve's user avatar
  • 2,233
1 vote
1 answer
11k views

Typing 'à' on LaTeX [closed]

I would like to know how to type the letter 'à' in LaTeX. There is no grave accent on my Italian keyboard, so everytime I need that letter I just copy and paste a grave accent from the list of symbols ...
Gibbs's user avatar
  • 111
8 votes
3 answers
645 views

Redefining a letter to itself

I have no idea why anyone would actually want to do this, but I want to know how I would do it (for educational purposes). Say I make e and active token, and then make it print the character e. I ...
Andreas Storvik Strauman's user avatar
0 votes
0 answers
32 views

How to write character \ [duplicate]

I would like to write the character "\" in Latex but since it is a keyword I am struggling in doing so. Is there a way to write it somehow?
Rexam's user avatar
  • 123
3 votes
1 answer
401 views

Pgfplots: Use hash symbol in imported tables as comment symbol

I faced a very similar problem to pgfplotsinvokeforeach using parameter when you have the hash symbol as e.g. comment chars. Python uses this character for comments so I want to either use it in my ...
strpeter's user avatar
  • 5,095
1 vote
0 answers
106 views

How to input a character using its character code for a custom font

Apologies in advance, I am new to LaTeX. Feel free to point me in the direction of an already answered thread. I have a custom font that I wish to use in my article for certain mathematical ...
Dan's user avatar
  • 11
2 votes
3 answers
976 views

Printing rare characters

I need to run LaTeX on a file that contains, for example, the following words: ḥarain [unicode 1E25] and Amaziɣ [a Berber word]. These paste OK into my .tex file as they do here, but when I run the ...
Haines Brown's user avatar
0 votes
1 answer
2k views

Remove special characters [duplicate]

Is there a simple way to remove special characters (such as é, É, à, ç etc.) from a given string, via a command \removeSpecialCharacters{...}? More precisely I would like to remove all characters but ...
Colas's user avatar
  • 6,516
6 votes
2 answers
9k views

TeX and ASCII table code

Is it possible a command like \char{n} where n is a number between 0 and 255? For example \char{241} returns ñ as output. I searched the web for something similar, even within this site, but I did ...
user3204810's user avatar
  • 1,351
2 votes
1 answer
243 views

A Verbatim Caret Which Is Copy/Pastable

Is there a way to typeset a caret in a verbatim-like environment (\verb, \begin{verbatim}, or \texttt) so that it can be copy/pasted into the terminal?
Jacob Bond's user avatar
2 votes
2 answers
404 views

Change size of underscore in detokenize

My question is closely related to this one. The solution there works fine for text, but here is my scenario. I want to typeset the names of all packages specially, so it is clear what I refer to. For ...
Ciprian Tomoiagă's user avatar
0 votes
1 answer
3k views

Redefining asterisk (*) in math mode

I am attempting to use a symbol from a separate font for the centered asterisk (∗) math operator. The font in question only has the heightened (in many fonts) asterisk glyph (*), which I try to use ...
gnucchi's user avatar
  • 926
0 votes
2 answers
503 views

Changing unknown characters into known ones in Latin1

I'm currently trying to create a problem set for some students, so it involves copy-pasting from several places. But, for instance, for geometry problems, when I copy a gamma, I get "Γ", which isn't ...
Daniel Cortild's user avatar
2 votes
2 answers
637 views

How to configure axis using characters and draw graphs? (tikzpicture)

I am new to LateX and want to draw a graph with letters on my Y-axis and values on my X-axis.Unfortunately it is not working as expected. I would like to have all values (A to Z) on my Y-axis and the ...
faschulze's user avatar
7 votes
2 answers
2k views

Extract First Character (allowing for extra grouping)

I would like to extract the first character. Using xstring's \StrChar works fine for simple cases. However, when the paramter has an additional brace group, I need some expansion magic to get that to ...
Peter Grill's user avatar
0 votes
1 answer
400 views

How to add numbers with character?

how to add numbers which will automatically ignore non-numbers, file should be read from .csv file Eg.when A=10, B=20, C=NA --> here content of C contains some characters which is not a number so ...
Biki Teron's user avatar
  • 3,255
13 votes
3 answers
28k views

How to type the letter Ł

I am trying to type the word Łojasiewicz. What is the proper command to code the polish character Ł? Thank you for your help.
clark's user avatar
  • 233
4 votes
1 answer
569 views

How to increase Chinese character space?

Sometimes the spaces between Characters are too small, especially in book titles which could be seen in the following picture. Then my QUESTION is how to increase the space between Chinese ...
M. Logic's user avatar
  • 3,785
0 votes
1 answer
270 views

Tilde over Hebrew letter

I need a simple solution for making a tilde over a Hebrew sign. \tilde{א} doesn't work. I also tried it with \makebox and \libertineGlyph{uni02DC} but \makebox produces more other mistakes. Are there ...
לאה פּאַסטעך's user avatar
1 vote
1 answer
301 views

Use only one character of any package

MWE \documentclass[]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} %\usepackage{mathptmx} \begin{document} \% ‰ @ % <-- use only \usepackage{mathptmx} \...
Özgür's user avatar
  • 3,252
0 votes
0 answers
175 views

Accented Letters [duplicate]

I have to insert the accented letters as the following P\'eclet to obtain Péclet. What code should i write to obtain Pèclet for example? Thanks for help
Yella's user avatar
  • 21
3 votes
2 answers
138 views

Coloring a truncated/trimmed part of a character

MWE \documentclass{article} \usepackage{trimclip,graphicx} \def\normala{a} \def\trima{\rotatebox[origin=center]{25}{% \clipbox{2.5pt 0pt 0pt 0pt}{\rotatebox[origin=center]{-25}{a}}}} \begin{...
Özgür's user avatar
  • 3,252
1 vote
1 answer
310 views

Create alternative \textdiscount

My purpose is to create \textdiscount using / and \cdot or .(dot). Can you help me? ====================================== After from Christian Hupfer's Solution
Özgür's user avatar
  • 3,252
11 votes
1 answer
8k views

How does "\char`" work?

In LaTeX, you can use \char` followed by a symbol to get that symbol. For example \char`b or \char`\b would just yield the letter b. Which symbols/letters does that work for? Two ...
ChristianFigueroa's user avatar
0 votes
1 answer
55 views

Bug with case changing macros, capitalizing 'u' as 'V'

First I should say that I'm sorry if the question is too much broadly scoped, but I was not able to produce a MWE with this bug. My trouble is that I'm writing my PhD thesis in LaTeX (which I've used ...
Osmar Tormena Junior's user avatar
1 vote
0 answers
71 views

Is there a package or way that let's me use characters like ï and à just by typing them? [duplicate]

So i've come to find it annoying that i have to type every ï as \"{i} same with à and other such characters, isn't there a package which allows me to type it freely or program that changes it ...
IronicalCoffee's user avatar
0 votes
1 answer
134 views

What's so special about a and ㄅ

This question is very similar to my OP "What's so special about ﹑and ~". Mostly, I have just adjusted the main .TeX code a little bit for clarity. This question is about the following characters: ...
O0123's user avatar
  • 1,723
2 votes
2 answers
90 views

Use character code of macro parameter

How can the character code of a character received as a macro parameter be obtained? As an example: In the MWE below, \letterwithnum{<n>} produces the n-th letter in the alphabet. \getletternum{...
schtandard's user avatar
  • 13.9k
1 vote
1 answer
172 views

Either batch transcode (character sets) a whole list of image filenames ... or use a character encoding conversion function within the main Tex file?

I am very excited about this code by User @egreg which I will be using to display images of the stroke order of a Chinese character whenever you hover over a certain character. I changed the code a ...
O0123's user avatar
  • 1,723
0 votes
1 answer
85 views

How can I output Chinese characters in a specific font (of choice), not just any font

How can I output Chinese characters in a specific font (i.e. a font of one's choice ... for example a .ttf file installed on your computer), not just any font? And does this require anything else than ...
O0123's user avatar
  • 1,723
7 votes
1 answer
925 views

I'm having troubles with special chars in listings

I'm using TeXMaker to make a document in LaTeX. So I already made several listing blocks, and when some error occurred, I simply was making a new line, like this: {ß}{{\ss}}1 {ü}{{\"u}}1 {ä}{{\"a}}1 ...
GuTheR's user avatar
  • 73
4 votes
1 answer
707 views

Turkish character not showing correctly in hyperref / pdfcomment

MWE \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} %\usepackage[colorlinks=true,linkcolor=blue]{hyperref} % <-- \usepackage{...
Özgür's user avatar
  • 3,252
1 vote
0 answers
49 views

How can I change a specific character at the start of a verseline?

I use the package verse. I need to change specific characters at the start of a verse. E.g. if the verse is starting with A, it should be transformed to \hspace*{1mm}BA. \documentclass{book} \...
paptheo's user avatar
  • 11
0 votes
0 answers
84 views

Tiny / Short slashed in zero [duplicate]

MWE \documentclass[a4paper,11pt]{report} \begin{document} $0\!\!\!/$ \end{document} Hi, I will use zero but its inside slash. Is it possible? SOLVE: It is work for me. Related to: https://tex....
Özgür's user avatar
  • 3,252
3 votes
2 answers
1k views

Character added in custom font

MWE \documentclass{book} \begin{document} % ttf2tfm custom.ttf -p T1-WGL4.enc \newcommand\customfont[1]{{\usefont{T1}{custom}{m}{n} #1 }} ! \# \$ \% \& ( ) * + , . /\\ \customfont{! \# \$ \% \&...
Özgür's user avatar
  • 3,252
4 votes
1 answer
582 views

Transformation accent characters written in Tex

I am using UTF8 encoding now and don't need to use LaTeX macros to typeset accented characters. Would you know an automative process to convert accent characters coded with Tex macros to utf8 ...
Bendesarts's user avatar
5 votes
4 answers
998 views

How to write a character/symbol similar to \k{A} for the character L?

We have a character \k{A} which seems like merging of two letters like 'A' and 'c'. I need a character similar to merge of 'L' and 'c'. But don't want to use the already defined characters like \L or ...
G_0_pi_i_e's user avatar
5 votes
2 answers
2k views

Special characters using XeLatex (š,č,ž)

I am writing a CV, using the XeLaTeX template below: https://www.sharelatex.com/templates/cv-or-resume/professional-cv When I include special characters like č,ž,š, it left blank space in the output ...
Timotej Mrzelj's user avatar
1 vote
1 answer
203 views

How to typeset certain characters bold by default?

I'm currently writing my thesis and have a lot of equations to write down. In order to make those more readable I would like to differentiate vectors and scalars by writing vectors with bold ...
hey0's user avatar
  • 11
5 votes
2 answers
1k views

Capital Ezh (U+01B7)

What is the easiest way to obtain the capital version of tipa's letter \textyogh (which is apparently LATIN CAPITAL LETTER EZH U+01B7, Ʒ)?
Alexander Z.'s user avatar
9 votes
3 answers
560 views

\char9 (supposedly a horizontal tab) displays as a Ψ (Greek psi)

The ASCII code point 9 encodes the horizontal tab. Then why does the compilation of the following manuscript x\char9y\bye with TeX Version 3.14159265 (TeX Live 2017) yield a dvi file whose body ...
Evan Aad's user avatar
  • 10.8k
1 vote
1 answer
101 views

Automatic inclusion of the following character, but with its subscripts and superscripts?

There are such commands as \vec which adds an arrow to the top of the immediate next non-space character. However, superscripts and subscripts are excluded from the scope. Now suppose I define a ...
Rethliopuks's user avatar
0 votes
1 answer
480 views

XeTeX shows special characters as squares, even though they are covered by the family [duplicate]

Still looking for a way to get all those special chars covered that I need in my project. So I tryed to use XeTeX as it seems to work best with Unicode. And it does. Nearly. At least it shows chars ...
DonMeles's user avatar
1 vote
2 answers
282 views

Adjusting the size of \rightleftarrows in mathmode with mt2pro[lite]

I'm using \mt2pro[lite] version. The symbol \rightleftarrows near the system's characters is too large in width in my opinion. I would like that \rightleftarrows smaller and lower. I tried to insert \...
Sebastiano's user avatar
  • 51.4k
3 votes
1 answer
830 views

EPS plot to LaTeX with special characters

I'm trying to put an EPS plot made with SigmaPlot. The axis titles have some portuguese characters, like "ç" or "ã", and maybe equations. When I put the plot into LaTeX I'm not getting the special ...
Daniel Valencia C.'s user avatar

1
3 4
5
6 7
13