# Tag Info

6

It's probably better to use ^^^^043a which produces a character token, rather than use \char"043A which is a non expandable primitive accessing a font position. The character token is usable in more contexts (such as writing to tables of contents) and generally has less restrictions than \char. the ^^^^ notation (and \char"043A) will work in luatex or ...

5

In the past a use case for ucs was when Greek input was needed; since TeX Live 2013 the situation has changed and full support for Greek input (monotonic and polytonic) is available with \usepackage[utf8]{inputenc} provided the greek or polutonikogreek is passed to babel. Note that the package ucs and the utf8x options to inputenc are not compatible with ...

4

add \XeTeXlinebreaklocale "bo" after \begin{document} \documentclass{article} \usepackage{fontspec} \setmainfont{Microsoft Himalaya} \usepackage{microtype} \begin{document} \XeTeXlinebreaklocale "bo" །།འདིར་སྨྲས་པ། \begin{quotation} གལ་ཏེ་འདི་དག་ཀུན་སྟོང་ན། །འབྱུང་བ་མེད་ཅིང་འཇིག་པ་མེད།།གང་ཞིག་སྤང་དང་འགོག་པ་ལས། །མྱ་ངན་འདའ་བར་འགྱུར་བར་འདོད། \end{quotation} ...

4

You can take the missing characters from a font that has them: \documentclass{book} \usepackage{fontspec} \usepackage{minted} \usepackage{newunicodechar} \setmonofont{Ubuntu Mono} \newfontfamily{\freeserif}{FreeSerif} \newunicodechar{⦃}{\makebox[.5em]{\freeserif⦃}} \newunicodechar{⦄}{\makebox[.5em]{\freeserif⦄}} \begin{document} \begin{minted}{java} Π ...

2

The reason why the behavior differs when LuaTeX or XeTeX is used, is explained here. The XeTeX uses xdvipdfmx and this converter sets the UTF8 to UCS2 conversion automatically. On the other hand, when we are using direct pdfTeX primitives (like in LuaTeX) then the UTF8 to UCS2 conversion must be done at macro level. And the hyperref package does this when ...

2

\=i is supposed to give a macron over a dotted i. To get a macron over an i without the dot, write \=\i. \documentclass{article} \begin{document} \=i \=\i \end{document}

2

It's easy to see what font your browser is using. If I "inspect element" on your code above (as viewed in FF/Windows) it says Segoe UI Symbol so \documentclass{book} \usepackage{minted} \usepackage{fontspec} \setmonofont{Segoe UI Symbol} \begin{document} \texttt{Π ⦃a : D₀⦄} \begin{minted}{java} Π ⦃a : D₀⦄ \end{minted} \end{document} produces ...

1

I want to supplement the David's answer. He wrote that there is no possibility to deal with NFD utf8 codes in 8bit TeX (i.e. in pdfTeX) because the base character is set to horizontal mode and it is not accessible when we read the next code. This is not exactly true because pdfTeX includes encTeX extension. This extension is able to declare utf8 codes as ...

1

I gave an answer above yesterday. Through a new research of Polyglossia Package, I find out a new solution to Tibetan line-breaks. In fact, Polyglossia is supporting Tibetan now and I was totally misled by Tom who commented on this question. This is my example. \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{eledmac} ...

1

The tex-file contained ... metóda \begin{lstlisting}add_gaps_to_graph_default(...)\end{lstlisting}, ktorá. ... It works after changing to ... metóda add\_gaps\_to\_graph\_default(...), I thought lstlisting was something similar to verbatim. It successfully generates pdf file now. Thanks for MWE suggestion Steven! I'm a bit surprised error was not ...

1

If this is what you expect to see in your LaTeX / XeTeX output … then you may just have to change the name of the font, which may be outdated in the example you got. I modified your example like this (with comments removed): \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari]{Lohit-Devanagari} % Hindi -> Devanagari ...

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