Hot answers tagged

7

Alternatively, you can ask fontspec to scale the fonts according to your main font instead of using a trial-and-error number. This is done by using either MatchLowercase or MatchUppercase as an argument to the Scale option. In your case, you can declare your font as: \newfontfamily{\ezra}{Ezra SIL}[Scale=MatchLowercase] If you are using other fonts in ...


6

This works for roughly the reasons explained in the comments: \documentclass{beamer} \usefonttheme{professionalfonts} \usefonttheme{serif} \usepackage{fontspec} \setmainfont{Latin Modern Sans}%TeX Gyre Schola} % \setsansfont{Latin Modern Sans} \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math} \usepackage{siunitx} \sisetup{% detect-all,% } ...


6

OpenType support in TeX as of when I first wrote xfrac in early 2004 was basically non-existent - XeTeX hadn't even been released back then. Therefore, the package was never designed with that in mind. Besides, the fundamental purpose was to provide a way to write nice fractions for fonts that didn't include them. The package could very likely be made ...


5

In the new version, the code for the option is (from fontspec-keyval.dtx) % \paragraph{Inter-word space} % These options set the relevant \cmd\fontdimen s for the % font being loaded. % \begin{macrocode} \@@_keys_define_code:nnn {fontspec} {WordSpace} { \bool_if:NF \l_@@_firsttime_bool { \_fontspec_parse_wordspace:w #1,,,\q_stop } } ...


5

You can scale the font when you create your new font family with an additional font feature: \documentclass[twocolumn,10pt]{article} \usepackage{polyglossia} \setmainlanguage{dutch} \usepackage{fontspec} \newfontfamily{\ezra}{Ezra SIL}[Scale=0.8] \DeclareTextFontCommand{\textezra}{\ezra} \begin{document} Nadruk op het in acht nemen van de geboden. ...


3

Here I create \altfrac{}{}. It does not require fontspec, it obeys math mode, its font is larger than that of \sfrac, the denominator lies on the baseline, while the top of the numerator I tries to lay at the top of the normal text font. The numbers are presented in \footnotesize. The slash is a horizontally stretched / to give it more of the fractional ...


2

You need to use the professionalfonts theme if using your own configuration to avoid unexpected weirdnesses cropping up at inconvenient moments. You do not need fontenc as far as I can tell. You do need lmodern because otherwise the default maths will still use Computer Modern, even though fontspec switches text to Latin Modern. I am not sure exactly what ...


2

It looks like cmlgc package is not compatible with Unicode fonts as used by xetex, if I remove that the font warnings go and you get small caps output \documentclass[11pt,oneside]{book} \usepackage[labelfont={sc,color=blue}, textfont={small,it}, labelsep=endash]{caption} \usepackage{subcaption} \usepackage{fontspec} ...


2

The best is if you install CMU also in the /Library/Fonts folder. Otherwise, you can get the same with a slightly more complicated code: \documentclass[12pt]{article} \usepackage{environ} \usepackage[no-math]{fontspec} \newfontfamily{\tipacm}[ Extension=.otf, UprightFont=*rm, %ItalicFont=*ti,% no IPA here BoldFont=*bx, %BoldItalicFont=*bi,% no ...


1

What you are looking for is called "NFSS family name" (where "NFSS" stands for New Font Selection Scheme). Section 5.2 of the fontspec manual: In fontspec, the family names are auto-generated based on the fontname of the font; for example, writing \fontspec{Times New Roman} for the first time would generate an internal font family name of ...


1

CMU Serif is not part of Mac OSX system fonts. You have to make the TeXLive (MacTeX) fonts known to your system: Run kpsewhich --var-value TEXMFLOCAL which shows the directoty of your local tree. This is by default for a Mac ~/Library/texmf/ but can be different on your machine. Then save the font files into ~/Library/texmf/fonts/opentype/ and run texhash ...


1

Inspecting the Vollkorn typeface site, there is no Vollkorn Math nor Vollkorn Greek support. So you will have to choose some fitting Math Font, maybe Euler Math (alternatively, you can try to approach the Greek Capital Gamma as a Cyrillic Capital G).


1

By default, LaTeX doesn't hyphenate typewriter type text. With fontspec you can revert this decision quite easily, but you have to newly define a monospaced font. \documentclass{scrartcl} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \setmonofont{Latin Modern Mono}[HyphenChar={-}] \usepackage{tabu} ...


1

fontspec v2.5a (2016/02/01) "bugs fixed" solves the issue. I am not sure which release note specifically addresses the problem (although I would like to know). Version 2.5 did not include fontspec.cfg where Ligatures=TeX was specified as default feature. Ligatures=TeX is a default option for fontspec-loaded fonts. I therefore did not specify it in my ...


1

It is not really a direct answer to your question, but you can access the icons of FontAwesome directly with the package fontawesome you are loading. Just the macro names are partly different. %%%%%%%%%%%%%%%%%%%%%%% FOR ICONS %%%%%%%%%%%%%%%%%%%%%%%%% Linux icon: \faLinux \\ StackExchange icon: \faStackExchange \\ GitHub icon: \faGithub \\ Skype icon: ...



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