Hot answers tagged

12

KOMA has two different systems to setup the font sizes: A (small) number of fontsize options (8pt, 9pt, 10pt, 11pt, 12pt, 14pt 17pt, 20pt) load a scrsizeXX.clo (from KOMA) or (if found) sizeXX.clo (from the extsize package) where designated fontsizes are declared. You can add more options to this list by writing a suitable sizeXX.clo or scrsizeXX.clo. In ...


11

KOMA-Script supports several ways to set the font size. First of all, if you want fontsize=<value> it tries to load a font size definition file \@fontsizefilebase<value>.clo. If this is not found, it tries \@fontsizefilebase<value>pt.clo. If this is not found, it tries size<adapted value>.clo. <adapted value> is the font size in pt but with ...


6

The following Python script for FontForge creates #!/usr/bin/env python2 import fontforge import os.path font_files = [ 'Vollkorn-Bold.otf', 'Vollkorn-BoldItalic.otf', 'Vollkorn-Italic.otf', 'Vollkorn-Regular.otf', ] def main(): for font_file_name in font_files: make_new_font(font_file_name) def ...


6

You can access the internal and the external names of the current font respectively with \the\font and \fontname\font. The former must be stringified in order to print it. Further massaging of the external font name can be added. \documentclass{article} \usepackage{fontspec} \setmainfont{Libertinus Serif} \setsansfont{TeX Gyre ...


4

For babel, you have to use \frenchbsetup{og=«, fg=»}. For polyglossia, you have nothing to do, except the package inserts a breakable space (bug?), so in case the space does break, you have to insert an unbreakable thin space by hand (\,`). % !TeX TXS-program:compile = txs:///xelatex/[--shell-escape] \documentclass[12pt]{article} ...


3

Since I do not have the font Adobe Garamond Pro I have used the font EBGaramond12, available in TeX Live. This font provides an alternate form one.01 for glyph one: \documentclass{article} \usepackage{fontspec} \usepackage{filecontents} \begin{filecontents*}{ebgaramond12.fea} languagesystem DFLT dflt; languagesystem latn dflt; feature calt { sub one by ...


3

Just call the font by its name: \documentclass{article} \usepackage{fontspec} \setmonofont{Latin Modern Mono Prop} \newfontfamily{\monott}{Latin Modern Mono} % for testing \begin{document} abcim \texttt{abcim} abcim abcim {\monott abcim} abcim \end{document} As you see, the \texttt line prints proportional typewriter type.


2

Please consider this a ›temporary‹ answer (maybe Will Robertson can provide more info). I'm still in the process of investigating that problem myself (I'm testing SkyFonts + Monotype Library Subscription + LuaLaTeX). But all the data I have so far points in the same direction: fontspec is not able to load a font installed via SkyFonts unless the font ...


2

If you don't already have them, then install Tex Gyre Pagella and TeX Gyre Pagella Math from the TeX Gyre project and then you can do this: \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} \begin{document} Some Unicode maths: $x ∈ ℕ$ in a Palatino-like font. \end{document} Run with ...


1

If you want to use csquotes you should make the quotes active, and input them (also the colon) without spaces as spaces can insert unwanted break points: \documentclass[12pt]{article} \usepackage[paperwidth=14cm,paperheight=20.5cm]{geometry} \usepackage{libertine}% use this font and geometry width to reproduce bad break \usepackage{ifxetex} \ifxetex ...


1

A \addfontfeature command will overwrite the standard font colours and other features within the specified stretch, e.g. {\addfontfeature{BoldItalicFeatures={Colour=red}}\bfseries\itshape these words are red} But this might not be too practical. A \newcommand might work: \newcommand{\mycolouredtext}[2]{{\addfontfeature{% ItalicFeatures={Colour=#1},% ...


1

Why the underscores ? Try this: \documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} \section{This stuff becomes times} This will be Times New Roman. As wanted. \textbf{\textit{And this too is ok}}. \end{document} % Local Variables: % TeX-engine: xetex % End:


1

Just for completeness: It is also possible to use the simplified version of the Friggeri CV from my github account. I modified the template so that it works with a regular Texlive installation and pdflatex, without the need for luatex and biber.


1

There's no way xesearch can work with babel-french. Both want to put - in a particular character class for exploiting the \XeTeXinterchartoks feature. However, you can directly input the en-dash and em-dash and the result is as expected, at least in your example. But malfunctions of xesearch might arise, because the character class of - will be 0 with ...



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