On sharelatex.com the Russian em dash works fine in document body, but does not work when used in macros. I tried to ask the support, they sent me here.    Code:  \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \pagestyle{empty}  \def\foo{ qwe "--- rty }  \begin{document}  \foo  asd "--- fgh  \end{document}   Result:
72161
The package babel with the ngerman option (and most other languages as well, but not english) provides the shorthand "|, which prevents a ligature at the given position (see p. 81 of the , e.g. Auf"|lage will result in the word Auflage without an fl-ligature (as is desired because, in German, you don't want ligatures across morpheme borders).  However, when placed in a macro, "| doesn't work anymore. Why is this and how can I circumvent it?  \documentclass{article}  %\usepackage[T1]{fontenc}% doesn't help \usepackage[ngerman]{babel}  \newcommand{\foo}{"|}  \begin{document}  ff  f"|f  f\foo f  \end{document}
77223
I've just noticed, that after rendering if I zoom the text then it look like a low quality text (look at the screen). I've heard that I can install cm-super package. I put \usepackage{cm-super} to the preamble but get an error "cm-super.sty not found". Before If I didn't have any package latex suggested me to install it right in the latex so I didn't have to visit any websites or something. Am I supposed to install it manually?  Anyway, how can I solve the problem?  I have two files in my project: latex file and .sty file. Here's how the preambles look:    In the main file:   \documentclass[10pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[english, russian]{babel} \usepackage{Lections_style}    In the lections style:     \RequirePackage{amsfonts}   \RequirePackage{amsmath}   \RequirePackage{amssymb}   \RequirePackage{graphicx}   \RequirePackage{babel,blindtext}   \RequirePackage{subfigure}   \RequirePackage{hyperref}   \RequirePackage{fancyhdr}   \RequirePackage{cite}   \RequirePackage{amsthm}   \RequirePackage{xparse}   \RequirePackage{mathabx}   \RequirePackage{array}   \RequirePackage{tabularx}   \RequirePackage{multirow}   \RequirePackage{makecell}     There're already 55 pages typed so I would be very glad if there's any solution without a lot of pain. Thank you and sorry for my English.   I've been asked to give a MWE, so here it is:      \documentclass[10pt, a4paper]{article}     \usepackage[utf8]{inputenc}      \usepackage[T2A]{fontenc}      \usepackage[english, russian]{babel}      \begin{document} Проверка текста.      \end{document}
29939
You can use the range feature of unicode-math to set the math font for a specific unicode slots or the macro accessing the glyph. I tried this with the sum sign &amp; Latin Modern, see my example:  \documentclass{scrartcl}  \usepackage{amsmath} \usepackage{unicode-math} % use unicode in math &amp; setup math fonts \setmathfont{Asana Math} %\setmathfont[range=\sum]{Latin Modern Math} % substitute Sum sign  \begin{document}  Notice the different sum sign $\sum$, as intended.   Notice also, the difference in spacing, not intended: \begin{equation}     \begin{bmatrix}         0           &amp; \frac{1}{2}   &amp; \frac{2}{3} \\         \frac{3}{4} &amp; 0             &amp; \frac{4}{5} \\         \frac{5}{6} &amp; \frac{6}{7}   &amp; 0     \end{bmatrix}     \begin{pmatrix}         A \\         B \\         C     \end{pmatrix} \end{equation} \end{document}   However, not only the sum sign, but also the spacing in the matrices changes. With Latin Modern commented out (as in the example):  With Latin Modern active (remove % before relevant line):  Why is that? BTW, I'm using Lualatex from TeXLive 2012.
106064
I've seen a similar question on BSE about entering foreign languages into 3D Text, but it doesn't help. I've tried using two different fonts (both of which support Russian). I've tried enabling International Fonts in Blender's User Preferences, but it doesn't work as well. It either types English text with Greek letters or displays empty vertical rectangles.   If anyone has been able to add text in any foreign language, please let me know.  I actually found out that it can be easily done through Text Editor, which would be probably the best way for me since I would prefer to paste my text. Can anyone perhaps guide me through?
39530
I use some russian text in my file and when I compile it to pdf text becomes diffuse and transparent. How can I fix it? (To compile source file I use latex + dvipdfm, MikTex version 2.9)  This is my code:  \documentclass[12pt]{article}  \usepackage[russian,english]{babel}  \usepackage[landscape, left=0.7cm, right=0cm, top=1.5cm, bottom=0.4cm]{geometry}  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[L]{Left} \fancyhead[R]{Right} \fancyheadoffset{-0.5cm}  \begin{document} \selectlanguage{russian}  Hello world!  Привет мир!  \end{document}
111508
I just saw in this posting:  the note: "the TeX Gyre Pagella font, which includes glyphs for cyrillic.". There is an MWE there, which apparently worked in 2009; here it is (I just moved the fontenc line before the babel line, because pdflatex complained):  \listfiles \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[T1,T2A]{fontenc} % before babel! \usepackage[ngerman,russian]{babel} \usepackage{tgpagella}  \begin{document}  Добро пожаловать!  \selectlanguage{ngerman}  Some german umlauts: ÄÖÜ, äöü, ß  \end{document}   I build this with pdflatex test.tex, and it fails on Texlive 2014 with:  ... This is METAFONT, Version 2.7182818 (TeX Live 2014) (preloaded base=mf)   kpathsea: Running mktexmf larm1000 ! I can't find file `larm1000'. &lt;*&gt; ...ljfour; mag:=1; nonstopmode; input larm1000  Please type another input file name ! Emergency stop. &lt;*&gt; ...ljfour; mag:=1; nonstopmode; input larm1000  Transcript written on mfput.log. grep: larm1000.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input larm1000' failed to make larm1000.tfm. kpathsea: Appending font creation commands to missfont.log.  ! Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not fo und. &lt;to be read again&gt;                     relax  l.100 \fontencoding\encodingdefault\selectfont  ?    Apparently I may be missing some package, but I have no idea which one.  Is it possible to get this example working with pdflatex, and if so - how?    EDIT: Just found , and so I managed to fix the problem by installing the TexLive lh package, then I got the document to compile:  tlmgr install lh                      # passes, font not really tgpagella? tlmgr install collection-langcyrillic # installs 36 packages, like babel-bulgarian,... lcyw, lhcyr...   With that, the output is:    ... and the cyrillic font doesn't look like tgpagella. So I installed collection-langcyrillic, but that didn't change the output either; still getting in the transcipt:  LaTeX Font Warning: Font shape `T2A/qpl/m/n' undefined (Font)              using `T2A/cmr/m/n' instead on input line 3.   ... so apparently, the output shows the cyrillic of "Computer Modern". Now, if just the cyrillic font could be made like tgpagella, that would be great...
14506
I was naively expecting the following code to produce the word "Jimmy" between dashes  but it produces only the dashes (commented out version also). Could someone explain (preferably one syllable words) what I'm missing, please?  \documentclass[10pt]{article}  \usepackage[T1]{fontenc}  \setlength\parindent{0pt}  %  \begin{document}  \expandafter\def\csname v0 \endcsname{Jimmy}  %\expandafter\def\csname v0 \endcsname#1{Jimmy}  -\csname v0\endcsname-  \end{document}
24780
I'm trying to display Emoji Characters inside my XeLaTeX Document. It seems to work for some glyphs like the numbers and pound sign but not for all. Here is a MWE:  \documentclass{scrartcl}  \usepackage{fontspec}  \setmainfont{Apple Color Emoji} % The emoji Font   \begin{document} \char"0030{}  %Works \char"1F60D{} % Doesent Work should out put SMILEY FACE WITH HEART SHAPED EYES \end{document}   What is the reason for this strange behavior and is there a way to include Emojis in XeLaTeX?  Edit:   It seems the Character is there. It is selectable but not visible. I can copy&amp;paste it.
72006
I've noticed that SyncTERM uses a different character encoding than the default MacOS terminal emulator, and they're incompatible with one another.  For example, say you want to print a block character in a format string.  In SyncTERM, which uses the IBM Extended ASCII character encoding, you would use an octal escape sequence like \261.  In Terminal.app (and probably iTerm2 as well), this just prints a question mark.  Since these terminals use UTF-8, you need to use the \uxxxx escape sequence.  So let's say you want to print a certain, not-ASCII, character in a format string, and you want it to work in all terminal emulators, regardless of character set.  I'm guessing you would use an entry in the terminfo database, but I'm not really familiar with terminfo.  I need some pointers here.
7182
Why do I get the error Missing \endcsname inserted at line 15?  \documentclass{article}  %\usepackage[strict]{csquotes} %\usepackage[autostyle=true]{csquotes} \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel}  \usepackage{tikz-cd}  \begin{document}  \begin{tikzcd}   f \arrow[d, "\partial"] \\   g \end{tikzcd}  \end{document}   Again I get the error if instead of option russian I use:  \usepackage[T1]{fontenc} \usepackage[german,main=english]{babel}   As the commented-out preamble lines show, I tried to invoke package csquotes, in two different ways, to avoid the problem, but that failed, too.  I do not get the error with babel option french however, as in:  \usepackage[T1]{fontenc} \usepackage[french,main=english]{babel}
107001
I want to include some Cyrillic with a TeX Gyre Pagella text and math font document. I'm using TeXLive 2019.  As indicated in , running pdflatex on the following source works just fine:  \documentclass{article}  \usepackage[T1,T2A]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{paratype} \usepackage{tgpagella} \usepackage{substitutefont} \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}  \usepackage{amsmath}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   However, running xelatex on the following surce produces output from which the indicated Cyrillic just disappears:  \documentclass{article}  \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{amsmath} % load here to avoid \dddot clash \usepackage{fontspec} \usepackage{paratype} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \usepackage{substitutefont}% \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}%  \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   Question: How should this second source be fixed so as to allow the Cyrillic to appear, too?  (I did put Map paratype-truetype.map into my local updmap.cfg file and did run updmap-user.)
100739
This is an example test.tex document. Both babel and polyglossia failed and produce the same error: \documentclass{book}  %\usepackage[vietnamese]{babel} \usepackage{polyglossia} \setdefaultlanguage{vietnamese}  \usepackage{biblatex}   \title{Sth}  \begin{document}  \maketitle  \end{document}   is the full log. And my config for VS Code: &quot;latex-workshop.latex.recipes&quot;: [     {         &quot;name&quot;: &quot;lualatex-&gt;biber&quot;,         &quot;tools&quot;: [             &quot;lualatex&quot;,             // &quot;biber&quot;,         ]     } ], &quot;latex-workshop.latex.tools&quot;: [     {         &quot;name&quot;: &quot;lualatex&quot;,         &quot;command&quot;: &quot;lualatex&quot;,         &quot;args&quot;: [             &quot;--shell-escape&quot;,             &quot;-synctex=1&quot;,             &quot;-interaction=nonstopmode&quot;,             &quot;-file-line-error&quot;,             &quot;-pdf&quot;,             &quot;%DOC%&quot;         ]     },     {         &quot;name&quot;: &quot;biber&quot;,         &quot;command&quot;: &quot;biber&quot;,         &quot;args&quot;: [             &quot;%DOCFILE%&quot;         ]     } ],  I installed all Vietnamese-related package I found using tlmgr search, notably babel-vietnamese and vntex, to no avail. When I use English language, it works. When I paste the exact document to Overleaf, it also works. So it's something on my part. How can I fix this?
113048
This has sort of been touched on in some other postings, but for path reasons I would like to avoid using a shell script and just use ImageMagick's (IM) convert command line executable directly from a \immediate\write18{...} in a macro command, but in my IM convert instructions I need to pass the % (ASCII 37) as part of a macro.  However I try to conceive of making a % - and I have tried numerous ways(!) I always end up getting the Latex code I am using for the % passed through to the command line.  The obvious one, \% goes to the shell as \% directly and that is the pattern followed by all other options.  What I obviously seem to need is some way to generate the ASCII or unicode for % and get that to the shell from LaTeX via \write18 or other.  Or have some sort of temporary suspension on the LaTeX usage of % so that it can be part of a \write18{} and not break the command as a comment starter, and so be passed with out needing to be LaTeX escaped first.
47610
This has been confusing me for some time. With the advent of UTF-8 as the de-facto standard in web development I'm not sure in which situations I'm supposed to use the HTML entities and for which ones should I just use the UTF-8 character. For example,   em dash (–, &amp;emdash;) ampersand (&amp;, &amp;amp;) 3/4 fraction (¾, &amp;frac34;)   Please do shed light on this issue. It will be appreciated.
24023
Restated Problem and a Solution  The use of a times font using the package txfonts will cause tables to be improperly displayed (see below for an image) if a character such as ę,ą or a different character with an ogonek is used.   This has something to do with the procedure involved not being local, that is, having unwanted side effects elsewhere.   An effective way of keeping whatever is done local is by enclosing it in brackets {ę}. This can be generally invoked for any mention of the character in question by mapping ę to {ę}, a to {ą} and so on in the preamble by the following:  \DeclareUnicodeCharacter {281}{{ę}} % 281 is the decimal utf-8 code of ę ...   This will solve the problem for the whole document  A more general solution still that fixes the error introduced in the source file of txfonts is described below under the heading WORKAROUND. However, if you do not want to fiddle with the way the package is called (possibly because it is called in a stylesheet you do not want to change) redefining the characters is a good solution  Initial question  I am typesetting a multilingual document with pdflatex (MikTeX, all packages up to date). I need to use Times font, and, for the time being, I cannot switch to LuaLatex or XeLatex since I am in the final phase of typesetting a book with a class provided by my publisher and I would need to adjust my code in order to use these above.   Using Polish characters with txfonts causes the tables to crash:   \documentclass{article}  \usepackage{txfonts} %\usepackage{mathptmx} \usepackage[polish, english]{babel} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc}        \newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}} \newcommand{\pl}{\selectlanguage{polish}\fontencoding{T1}} \begin{document} \textbf{A minimal example using a times font} As soon as I enter the Polish character \pl ę  \ee the tables crash  (the lines of the table get printed onto each other). \begin{table}\begin{center}\begin{tabular}{|l||l|l|} \hline type&amp;n    &amp;rel        \\ \hline \hline One line in the table &amp;260&amp; many  \\ Another line in the table      &amp;792&amp;49  \\ A third line in the table       &amp;288&amp;1  \\ \hline \end{tabular}\end{center}\caption{A test table.}\end{table} \end{document}   The alternative package mathptmx does not cause this problem; however, it does not provide the Greek characters I need. This is demonstrated in the following minimal example:  \documentclass{article}  %\usepackage{mathptmx} \usepackage{txfontsb} \usepackage[polutonikogreek,polish, english]{babel} \usepackage[utf8x]{inputenc} \usepackage[LGR,T1]{fontenc}        \newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}} \newcommand{\grrk}{\selectlanguage{polutonikogreek}\fontencoding{LGR}} \begin{document} \textbf{A minimal example using a times font} I need to  print polytonic Greek (and other special characters) using a  times font (e.g. \grrk ἐᾶν \textbf{ἐᾶν})! \ee   I use the \emph{txfonts} (or   \emph{txfontsb}) package, the alternative \emph{mathptmx} cannot find the metric files (``Couldn't find `grtm.cfg''').  \end{document}   How can I use txfonts and still prevent the tables from crashing? I have also tried out txfontsb!  Update: I see now the has nothing to do with Polish, it's the diacritic in ę (the ogonek) that causes the problem. The same problem appears in the following code with an ogonek on an m:       \documentclass{article}      \usepackage{txfonts}     \usepackage[T1]{fontenc}            \begin{document}     text with ogonek:        \k{m}       \begin{table}\begin{center}\begin{tabular}{|l||l|l|}     \hline     type&amp;n    &amp;rel        \\     \hline     \hline     One line in the table &amp;260&amp; many  \\     Another line &amp;792&amp;49  \\     A third line in the table       &amp;288&amp;1  \\     \hline     \end{tabular}\end{center}\caption{A test table.}\end{table}     \end{document}   If \k{m} is enclosed in brackets {\k{m}} the tables work fine. So it has something to do with  locality and the way txfonts apply the ogonek.
7609
Further to Tim Stone's response to my  regarding what turned out to be an en dash in an URL: Would it be reasonable for markdown mini to replace en dashes with normal hyphens? Or is that Wikipedia article's URL just a fluke?
61004
I've been using Hendrik Vogt's answer to my earlier question , in which he explained how to make the underscore character active and assign a macro to it so that it can be redefined to produce roman type in subscripts:  \catcode`_=\active \newcommand_[1]{\ensuremath{\sb{\mathrm{#1}}}}   The solution works like a charm in maths and text environments, however I've run into trouble when I use it in 'literal' environments, such as file names or references, where making _ active breaks things.  Question: How can I make the underscore produce roman subscript, yet still function as a normal character in file names, labels, references and the like? I only need the subscript function in maths environments.  MWE:  \documentclass{article}  \catcode`_=\active \newcommand_[1]{\ensuremath{\sb{\mathrm{#1}}}}  \begin{document} $D_H$ \label{sec_a} % This causes a "! Missing \endcsname inserted." error \end{document}