Hot answers tagged

20

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 ...


15

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 ...


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} ...


4

Your file needs to be encoded as UTF-8, not Latin1, (or if you're using a Mac Mac Roman) With either of these encodings you will get this output. Most editors will allow you to resave the file with that encoding. You should also probably set that to be the default for future files. Output from your file saved as either Latin1 or Mac Roman: Output of ...


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.


3

You have to use Renderer=Basic. There are also far better ways to define the font, with the newer versions of fontspec \documentclass{article} \usepackage[no-math]{fontspec} \newfontfamily{\myswashfont}{Cochineal}[ Style=Swash,NFSSFamily=myswash,Renderer=Basic ] \newfontfamily{\mynonswashfont}{Cochineal}[] % just for testing ...


3

Of course you get an error: if you want to use scrartcl you have to call \usepackage[nochapters]{classicthesis} However your redefinition of \spacedlowsmallcaps makes no sense: \renewcommand{\spacedlowsmallcaps}[1]{\SC{#1}} is probably what you want. There is no need to do tricks, though. \documentclass[10pt,letterpaper]{scrartcl} ...


2

As it happens, the stylistic alternative sets are not accessible as a font feature. If the code chosen as the answer to this question is run for Gentium Basic, the following features are discovered: aalt, ccmp, mark, mkmk. Running the same code with Gentium Plus results in: aalt, c2sc, ccmp, kern, mark, mkmk, smcp, liga, ss01, ss04, ss05, ss06, ...


2

The error you get is ! Undefined control sequence. \abc ...{#1}\endgroup \normalfont \normalfontsize l.14 Hello Kitty \abc{DIN 103} by Sanrio. that means the undefined control sequence is \normalfontsize. On the other hand, you don't need to restore the font and its size, because the group already limits the ...


2

You need to delete the lua/luc-file of the font from ...\texmf-var\luatex-cache\generic\fonts\otf. It contains the old path to the font and so confuse luatex. I'm not sure if it is worth if luaotfload adds a check for this case to recreate the cachefile but you could open an issue https://github.com/lualatex/luaotfload/issues.


1

First of all, let's get away with the SizeFeatures option. If you declare \setmainfont{Zapfino}[ SizeFeatures={Size=20}, % ... other options ... ] you're basically telling to use size 20 independently of the context. If I do it and ask for \fontsize{30}{36}\selectfont, I get LaTeX Font Warning: Font shape `EU1/Zapfino(0)/m/n' in size <30> not ...


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

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 ...


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

Here is an suggestion which needs KOMA-Script version 3.20 or newer. No additional toc package is needed. \documentclass{scrartcl}[2016/05/10] \usepackage{fontspec} \setmainfont[Numbers=OldStyle]{Cambria} \setsansfont{Calibri} \newfontfamily\NoOldStyleNumsSerif{Cambria} \newcommand\tocmainfont[1]{% \NoOldStyleNumsSerif #1% } \RedeclareSectionCommands[ ...



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