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
0
votes
0answers
8 views

Keywords with $- sign - Listings

I am trying to create a snippet of code and want to use $output=0 as a keyword in one specific colour, however, it is not accepted by morekeywords as a new keyword.
3
votes
1answer
79 views

Several minus signs

Compare this: - versus -- versus --- versus ---- versus ----- versus ------ \\ \texttt{- versus -- versus --- versus ---- versus ----- versus ------} In normal Text-Mode, more 'Minus' will just make ...
1
vote
1answer
24 views

Character merge

Is there any way to merge two characters in LaTeX? For example, I would like to combine the two symbols \# and 1 to get #1 Thanks in advance
8
votes
4answers
373 views

Get the first and second character of a macro argument

I have a situation where I need the first and second character of a macro argument extracted separately. The input is always two characters long and is always non-special text. I am aware there are ...
1
vote
2answers
62 views

Special characters, cmap, copy-paste pdf text to text editor

I have pretty bad issue with special characters. When I copy-paste the text from my pdf file to some other text programs I obtained: t˛e klas˛e zwi˛azków n˛a and I expect: tę klasę związków ną. I don'...
1
vote
3answers
100 views

Display ß in small caps [duplicate]

When I use ß in headings - which I want to be in small caps - it gets replaced by a double S. Is there a way to still have a ß there, which is also the same height as the other letters? Just to ...
2
votes
5answers
252 views

latex table: include '\n' in a table cell?

\begin{table} \begin{tabular}{l | l | c | c } Name & Hex & dezimal & C-char \\ <cr> & 0x0D & 13 & '\\r' \\ % should read '\r' <lf> ...
1
vote
1answer
74 views

Special characters \{ and \} in mtpro2 [duplicate]

I recently just started running into a special character error for curly braces, like { and } in the example below: \documentclass{article} \usepackage{times} \usepackage[complete,...
2
votes
2answers
47 views

Cannot assign \c{char} to a const variable

Why and is there a solution? \documentclass{article} \usepackage[utf8]{inputenc} \inputencoding{latin1} \usepackage{xparse} \usepackage{etoolbox} \ExplSyntaxOn \tl_const:Nx \lang_and { croatian=...
0
votes
0answers
35 views

combining diacritics

I'm trying to combine the diacritics \d and \^. For the letter e for example with the help of some kerning: \^{\kern-.4em}{\d{e}}. The result does not paste well here Two problems. I should not have ...
0
votes
0answers
179 views

Package inputenc Error: Invalid UTF-8 byte sequence using {lstlisting}

I have the next code error codealcance.tex 58 Package inputenc Error: Invalid UTF-8 byte sequence. See the inputenc package documentation for explanation. Type H <return> for immediate help....
0
votes
0answers
20 views

Error: Unicode character ​ (U+200B) [duplicate]

I'm getting this error marcoteorico.tex 31 Package inputenc Error: Unicode character ​ (U+200B) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for ...
1
vote
1answer
41 views

Character replacement does not work correctly

I am replacing a character. It works fine if I give that character as input directly. But when that character is extracted from a string, and then fed in to command for the reassignment it does not ...
3
votes
0answers
42 views

How to use char č in \choicemenu

I'm starting with LaTex and I'm doing on fillable form. One of options in form is dropdown list (\choicemenu). One of choices is "Oče", but when I compile file into PDF the letter č becomes c (Oče ...
3
votes
5answers
140 views

separating characters in a string

I want to write a macro that will separate the characters in a given string with some condition. If I have a string abcdef<ghi>jkl<mn>opqrs I want to access each character as a string for ...
1
vote
1answer
49 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, "...
2
votes
1answer
270 views

RMarkdown french accents/special characters

I want to use the LaTeX syntax for writing french accents/special characters in RMarkdown, but it doesn't work. \'{a} for instance doesn't compile but is literally printed in the pdf document. So far ...
6
votes
3answers
1k views

How to format K notation for continued fractions

Over here is a recent paper on continued fractions, and I was wondering how I could format Gauss' K notation in this fashion. Here is a picture to demonstrate what I mean: I am unsure how to format ...
0
votes
0answers
25 views

How can I write a 7 with line? [duplicate]

Is it possible to write (or even better, temporarily redefine) 7 so that it is always output with line in the PDF output? Something like \newcommand{\7}{\sout{7}} generates a line which spans the ...
1
vote
2answers
50 views

Special N character [duplicate]

I'm trying to write a special N character in TeX, it looks like this: I tried using $\mathcal{N}$, it similar but not quite the same. Could you help me?
3
votes
1answer
72 views

Text difficult to copy-paste in some reader only on a specific PDF generated with PDFLatex

So, it's a strange question: I know that LaTeX has some problems with the copy-paste from a PDF which, sometimes, need thing like the package cmap. But at this point I never needed such thing, as my ...
1
vote
1answer
61 views

insertion of musical rhythm cell in a text - special characters?

I'm writing a document using \documentclass{tufte-book} How can I insert in a text special characters specific to music (rhythm cells corresponding to : double eighth note, two eighth notes, black). ...
0
votes
0answers
51 views

Adjusting spacing in mathdesign

I like mathdesign package, but spacing between some letters looks pretty awful, for example, look at the letter A: I've found the solution here: Make Characters Active via Macro in Math Mode. So, ...
1
vote
1answer
31 views

Defining a character as a macro and preserving its original function

I would like to redefine a character (say .) in such a way that it does its original function and also performs another task (for example runs certain command, say \mycommand). I wrote the following, ...
0
votes
0answers
23 views

\subfloat not working if file has accented characters with \usepackage[portuguese]{babel}

If I use \usepackage[main=english,portuguese]{babel} there is no problem with files with accented characters. But I cannot write in Portuguese. But if I use \usepackage[portuguese]{babel} than using \...
1
vote
1answer
79 views

Letters are missing with calligra

Whith \calligra, letters like \ and \u{g} disappear. How can I fix this? See the demo below. Without calligra, it works. With, it doesn't. \documentclass[12pt,letterpaper]{report} \usepackage[cam,...
0
votes
0answers
64 views

Keyboard character is undefined even though there's no exotic character

What could be causing this error? I see no exotic characters in my line 17. I'm new to TeX, this is my first document. Tried googling this error, but most of the time it is obvious with some exotic ...
2
votes
1answer
84 views

Microtype: How to disable protrusion for single characters?

I want to disable the protrusion for endashes and emdashes. The line filling does not look good there ... But how to do so? According to the answers here, I tried to manipulate the font packages but ...
4
votes
1answer
694 views

XeLaTeX and font Libertinus: Missing character for upright T in math mode

If I compile the following MWE \documentclass{article} \usepackage{libertinus} \newcommand*{\Gt}{G_{\mathrm{T}}} \newcommand*{\gt}{g_{\mathrm{T}}} \begin{document} Let $\Gt = \langle \gt \rangle$ ...
0
votes
0answers
44 views

Problem with special characters while using LaTeX and the TeXMAKER

When I type déterminer la bonne réponse I get: d~A©terminer la bonne r~A©ponse
1
vote
2answers
76 views

BibTex: Special Characters cause errors

I have following problem: in my main.bib I have this article: @article{tableviewvideo, title={Swift UITableView Tutorial with Custom Cells - Beginner Series}, author={Allen, S}, year={2017}, ...
2
votes
2answers
64 views

How can I figure out if the first character of an argument is \?

I have defined a new command that displays a box around whatever I want inside, and want it to act differently depending on whether its argument is just plain text or another command (e.g. \...
3
votes
2answers
66 views

Rendering italics and small-caps with diacritics, or manually composing diacritics

I'm trying to render an italicized small-caps u with macron, but the result is never in small-caps. The reason for this combination is that my headers are rendered in small-caps, and one of my chapter ...
3
votes
1answer
312 views

Trying to write letters like ä or ü using XeLaTeX?

As I pre-write my thesis in Word I would appreciate to make a direct copy&paste into Kile. More when writting directly in Kile using something like \"u makes the text seems unstructured. I know ...
5
votes
1answer
340 views

How to print double backslash? [duplicate]

Is there an easy way to print "\\" in a Latex document? I tried using \\\ and it threw an error.
6
votes
2answers
1k views

How do I make LaTeX understand Unicode characters ↔︎ and ↕︎

I understand that LaTeX has horrible Unicode support, and if I want Unicode I should be using XeTeX. And I have read Entering Unicode characters in LaTeX but it doesn't seem to do what I want. What I ...
9
votes
3answers
454 views

Handling optional commas in text

I'm writing a document in Danish using the memoir LaTeX class. In Danish we have two different systems for placing commas in a text; one system uses many commas, the other system uses fewer commas. I ...
1
vote
1answer
56 views

XeTeX: How to *globally* replace an ASCII character with another symbol?

A few months ago, I asked whether the “EB Garamond” font contains a short-arched version of the letter f. I have now found out how to access this letter because it actually exists. Writing \...
0
votes
1answer
52 views

how to write a becarre '(U+266E)? [duplicate]

How can insert in the text special characters as "%" without begin a comment or insert a "becarre" (keyboard shortcut)?
1
vote
0answers
71 views

XeTeX: Exclude characters from being rendered as italics in math mode (unicode-math)

So I'm relatively new to TeX in general and decided to go with XeTeX, mainly because I really like the approach to render the characters and symbols as actual Unicode-chars, so that you can expect ...
5
votes
2answers
422 views

Using characters to delimit commands (like markdown)

I recently came accross the \DefineShortVerb command of the fancyvrb package, which lets you "define a special character as an abbreviation to enclose verbatim text", so for example: \documentclass{...
0
votes
0answers
102 views

Character comes out as a black square

I am using Overleaf and I inserted this character 'ŋ' in the text of my document. There is no error and all the other characters as œ and ø work fine, but only this one when compiled is showed as a ...
2
votes
1answer
133 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 ...
1
vote
1answer
53 views

How to type character - in LaTeX?

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/...
2
votes
2answers
79 views

How to mix characters from different languages in LaTeX?

I cannot mix characters from different languages ​​in one document. When I add \usepackage[T1]{fontenc}, there are problems with the cyrillic characters. When I add T2A, there are problems with other ...
0
votes
0answers
34 views

synctex doesn't work with a `.tex` file contains `\input` command which pathname include chinese characters

synctex doesn't work with a .tex file contains \input command which pathname include chinese characters when I ctrl+click on a .pdf page, TeXworks's error reporter will say "no file name ...
0
votes
1answer
23 views

Invalid character in my array of a function…Code Check

I'm getting an invalid character error from the following array that I'm entering in my document. I don't see any characters that could be invalid: \begin{equation*} f(\textbf{x}) = \left[\begin{...
0
votes
0answers
35 views

How to insert open square bracket in text mode?

I try to add reference with list of many research papers like this \textbf{Reference} [1] R. Agrawal , T. Imieli ´nski , A. Swami , Mining association rules between sets of items in large databases, ...
0
votes
0answers
17 views

latexmk generates oddly spaced letters

In the following text the words sich and kostenlose have oddly spaced letters in them, specifically i, c and e. How can I fix this? I am using latexmk version 4.61 and MiKTeX. Here is my working ...
0
votes
0answers
66 views

Why LaTex equation doesn't recognize characters such as “(” , “+” or hat?

I have this equation coded in LaTex : \^{y}$_i^k$ = $R_k^i$($x_i$) I would like to print it to LaTex equation format thanks to the commande : \begin{equation} \label{...} ... \end{equation} so ...

1
2 3 4 5
12