Tag Info

Hot answers tagged

6

Use fontspec if you want to use XeLaTeX: \documentclass{beamer} \usepackage{fontspec} \begin{document} \begin{frame} ลก and math $a+b=c$ \end{frame} \end{document}


4

The problem is the same as in Slovak (and Czech) babel gives problems with cmidrule and cline: the czech option to babel makes the - character into a shorthand and this disrupts the working of the pages option. Quick fix: \shorthandoff{-}\includepdf[pages=1,3-5]{foobar.pdf}\shorthandon{-} Better fix: \documentclass{article} \usepackage[czech]{babel} ...


4

The fixfoot package uses the .aux file for saving the fixed footnote texts, so this requires protecting fragile commands. You can solve your issue by using \unexpanded (or putting \protect before every fragile command, among which \begin, \end and \item). \documentclass{article} \usepackage{fixfoot} \begin{document} \DeclareFixedFootnote{\footone} ...


4

It appears the main language is set up at begin document, it is still US English in the preamble, it works if you delay the setting: \documentclass{article} \usepackage{polyglossia} \setmainlanguage[variant=uk]{english} \begin{document} \hyphenation{a-bun-dance} A abundance abundance abundance abundance abundance abundance abundance abundance ...


3

This is a problem similar to Set hyphenation with polyglossia but it requires a different approach, because English is treated differently: only one set of patterns for English is used by Polyglossia and it's set at begin document. \documentclass{article} \usepackage{polyglossia} \setmainlanguage[variant=uk]{english} \newcommand{\sethyphenation}[2]{% ...


3

It seems that the crucial difference is that in a current texlive bidi is Package: bidi 2015/02/17 yours is a year older. You should at least update bidi, it apparently has fixes to address this issue.


3

I don't know the answer for first two questions, as I don't use XeTeX, but I want to provide option for the third question. Thanks to Arthur's code I was able to create basic package for unicode normalization in LuaLaTeX. The code needed only slight modifications to work with current LuaTeX. I will post only main Lua file here, full project is available on ...


3

Don't load the fonts with the relative path. Load them by their font names and specify the ExternalLocation key to point to your folder: \documentclass{article} \usepackage{fontspec} \setmainfont[ExternalLocation=Fonts/]{AGaramondPro-Regular.otf}% [Ligatures=TeX, BoldFont=AGaramondPro-Bold.otf, ItalicFont=AGaramondPro-Italic.otf, ...


2

There seems to be a bug in fontspec version 2.4a, when defining the Renderer key. The following works; code is like in fontspec-xetex.sty and 3 has been changed into 4, as Graphite is choice number 4. \documentclass{article} \usepackage{fontspec} \ExplSyntaxOn \keys_define:nn {fontspec-renderer} { Renderer .choice_code:n = { \int_compare:nTF ...


1

I usually create RFC documentation for personal usage. To achieve similar format, you can use biblatex package with style=alphabetic and add \DeclareFieldFormat{labelalpha}{\thefield{entrykey}} after loading biblatex package. \documentclass{article} \usepackage[backend=bibtex, natbib=true, style=alphabetic]{biblatex} ...



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