Hot answers tagged

14 votes
Accepted

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

Words, even without accents should not be in math italic, so \text{unde} and \text{și}
user avatar
10 votes

What about "exotic" characters in xstring?

In UTF-8, non-ASCII characters take several bytes, and xstring's \StrLen might be counting these bytes... however, it seems to be something entirely different, as @SandyG noted. The following example ...
user avatar
  • 22.6k
6 votes

What about "exotic" characters in xstring?

When dealing with -- as you put it -- "exotic" (but still single-glyph and utf8-encoded, right?) characters at a low level, it's best not to work with pdf(La)TeX; instead, do work with a TeX ...
user avatar
  • 439k
6 votes

What about "exotic" characters in xstring?

As other answers wrote, counting characters in Unicode is somewhat ill-defined. While other answers showed how to count Unicode codepoints, this can lead to rather unexpected results. E.g. ä might be ...
user avatar
5 votes

How can I use any Noto font with latex?

I will assume you want a mainly English document with other scripts and languages. Here is my solution. I use LuaLaTeX with fontspec and babel, and I define the font for every script. This is nice ...
user avatar
4 votes

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

If you really want larger font size in the display, you can avoid \mathlarger, but I'd not do it: a math display is already prominent enough. In any case, you need \text for textual parts in math ...
user avatar
  • 992k
4 votes

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

In addition to rendering text-type words that may appear in a math expression in text mode (via a \text directive, say), you may want to execute a single \large instruction before entering math mode ...
user avatar
  • 439k
4 votes

What about "exotic" characters in xstring?

This is not a general issue with accented ("exotic") characters, only with some characters, notably ā and other "overlined" characters such as ē, ī, etc, and "caroned" ...
user avatar
  • 21.4k
4 votes
Accepted

Compilation Failure of Minimal Test Chinese Document with TeX Live 2022

You have a rather old version of ctex installed under /home/yang/texmf/tex/latex/ctex. This version overwrites the much newer version installed with TeX Live 2022 but it is not compatible with the ...
user avatar
3 votes

Encoding error in LaTeX - all umlauts, etc. are correctly presented

One simple way to find out which entry is responsible for the error is to give the Unicode character in question a definition that can easily be searched for in the output. For example something like \...
user avatar
  • 159k
3 votes
Accepted

Encoding error in LaTeX - all umlauts, etc. are correctly presented

(Converting Comment to Answer) This is likely a case in which a "weird invisible character" is in your bib file, probably from copying and pasting stuff from the internet (e. g. author ...
user avatar
2 votes
Accepted

Testing bookmark glyphs (testbmgl.tex) fails

The test file assumes that the option unicode is set to false -- this is no longer the case in hyperref as it now uses unicode always. You can force it back by adding unicode=false (we do that in the ...
user avatar
2 votes
Accepted

After loading unicode-math, how do I remap one symbol (character) to another?

Assigning a \mathcode of "8000 makes a character “math active”. When used in math mode, such a 〈character〉 is replaced by an active character token having the original character code (TeXbook p. ...
user avatar
  • 22.6k
1 vote

LaTeX Error: Unicode character

Thanks to @DavidCarlisle suggestion "I had to install babel russian" and also thanks to @Rmano suggestion about "switch T2A,T1 to T1, T2A" (it really works). So my solution is: ...
user avatar
1 vote

After loading unicode-math, how do I remap one symbol (character) to another?

Just to point out the "internal unicode-math API" option, which the OP appears to prefer: \documentclass{article} \usepackage[math-style=ISO, partial=upright]{unicode-math} \setmainfont{STIX-...
user avatar
  • 1,976

Only top scored, non community-wiki answers of a minimum length are eligible