Hot answers tagged

5

use the SizeFeature instead of Scale. The last line shows that the two 10pt lines have the same height: \documentclass[10pt]{article} \usepackage{fontspec} \parindent=0pt \setmainfont{DejaVu Serif} \setsansfont[Scale=MatchLowercase]{Latin Modern Sans} \newfontfamily\dejavuseriften[SizeFeatures={Size=10}]{DejaVu Serif} \newfontfamily\dejavuseriftwelve[...


4

Internally, beamer replaces certain fonts. Apparently the you don't have the replacement font in a place where XeLaTeX can find it, so it doesn't appear. To suppress this replacement, you can either load the beamer class with the professionalfont option, or add \usefonttheme{professionalfonts} to your preamble. (Note the difference!) See section 18.1 of the ...


3

Here is a possible solution using the Saab font. I don't know anything about the Gurmukhi script, and the Saab font doesn't seem to recognize the Gurmukhi script tag, even though it should, so there may be problems with the font. For small sections of Punjabi text, this may be sufficient. For whole documents you would need to write your own version of a ...


3

It doesn't make much sense to use XeLaTeX without fontspec. In particular, you can see that the .bbl file contains \refsection{0} \sortlist[entry]{anyt/global/} \entry{luka}{article}{} \name{author}{1}{}{% {{hash=8778d2a5968de5f48517c0ace345d5a1}{% family={Modrić}, family_i={M\bibinitperiod}, given={Luka},...


2

If you don't want to see the parent entry conf1, you might want to have a look at the mincrossrefs option (pp. 51, 24 of the biblatex docs). By default it is set to 2. That means that if you have two entries in your bibliography that crossref the same entry, that entry is automatically added to the bibliography even if it wasn't cited. You can effectively ...


2

You are using titlesec, tocloft, and titletoc in the same class file. You should include the option titles when loading tocloft. Compare the MWE (btw, your MWE is not really minimal) \documentclass{book} \usepackage{tocloft} \usepackage{setspace} \usepackage{titlesec} \usepackage{titletoc} \usepackage{blindtext} \titlecontents{chapter}[0mm]{\addvspace{...


1

My advice is to not use Scale in this way. You'll note that you are defining a 'new font family' with \newfontfamily, so it is not reasonable to expect it to intuit that this 'new' family is in fact not new. Perhaps a better way is to use the regular LaTeX2e font command, \DeclareTextCommand: \documentclass[10pt]{article} \parindent 0pt \usepackage{...


1

Disclaimer: I am the author of the package discussed below. This does not answer the question as such. Rather, it answers a related question which is how the same thing may be done using pdfLaTeX or, indeed, LaTeX. I assume this is legitimate since when people ask how to use a font, even if they specifically say they can't use Xe/LuaTeX, enthusiasts ...



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