Tag Info

Hot answers tagged

19

The long tailed Q is not an independent glyph in Linux Libertine; it is actually bundled with the u in one single character. As a consequence, you have to create the glyph. I'm not an expert on Fontforge, but it is quite straightforward. Go to the font download page in sourceforge and get the source files; ...


10

The quotation (and hence the question:-) seem to be mixing up different concepts. There is the difference between having fonts at a design size or simply magnifying them. (so the difference between cmr10 scaled to 12pt and cmr12, as shown in other answers). Note this is really a distinction about the computer modern fonts rather than about TeX or the ...


8

An example is worth a thousand words; I used Plain TeX for better showing what's going on, with the explicit sizes shown. \font\testhuge=cmr17 \font\testhugescaled=cmr17 at 10pt \font\testbig=cmr12 \font\testbigscaled=cmr12 at 10pt \font\testsmall=cmr7 \font\testsmallscaled=cmr7 at 10pt \font\testtiny=cmr5 \font\testtinyscaled=cmr5 at 10pt ...


6

As mentioned in comment (quicker than my answer...), there are 'normal' numbers available in EB Garamond. You can access them like here: % arara: lualatex \documentclass{article} \usepackage{fontspec} \setmainfont[Numbers=Lining]{EB Garamond} \begin{document} Test: 123456 \end{document}


6

Example of "correctly balanced thickness", using Computer Modern, and with a large zoom factor on the PDF before I made the screenshot: \documentclass{article} \begin{document} {\Huge ABCDEF} ABCDEF \end{document} Compare the height of the A to the width of its right serif. The larger size is roughly 281 pixels high, and the serif is roughly 85 pixels ...


6

You have to set the transitions correctly and never use \fontspec in the document body. \documentclass{article} \usepackage[no-math]{fontspec} \usepackage{ucharclasses} \setmainfont{Khmer MN} % the only one I have supporting Khmer \newfontfamily{\lmodern}{Latin Modern Roman} \newfontfamily{\lucidacal}{Lucida Calligraphy OT}[Scale=MatchUppercase] ...


5

beamer uses the Sans Serif font as default. So setting \setsansfont{TeX Gyre Heros} instead of \setmainfont{TeX Gyre Heros} works for me. MWE \documentclass{beamer} \usefonttheme{professionalfonts} \usepackage{unicode-math} \setsansfont{TeX Gyre Heros} \begin{document} \begin{frame} \textsc{Test text} \textsf{Test text} \end{frame} \end{document} ...


5

This is ugly like hell and needs a lot of adjustment in order to work. Furthermore, it is likely to produce horrible results in long passages of text and to break down all of the wonderful typesetting features of LaTeX. However, I couldn't miss this chance to prove egreg wrong. :-D (Even if he obviously already knew this was possible and could do it much ...


4

Fonts for fontspec are looked for using the OPENTYPEFONTS and TTFONTS variables. The setting in texmf.cnf is % TrueType outline fonts. TTFONTS = .;$TEXMF/fonts/{truetype,opentype}//;$OSFONTDIR// % OpenType outline fonts. OPENTYPEFONTS = .;$TEXMF/fonts/{opentype,truetype}//;$OSFONTDIR// The difference between the two variables is evident. The variable ...


4

There is a stray space in the file lltjp-listings.sty 194 % hook! 195 \lst@AddToHook{Init}{ 196 \luatexcatcodetable\CatcodeTableLTJlistings\ltj@@listing@jpcmd 197 \lccode`\~="FFFFF\lowercase{\def~{\ltj@lst@ProcessJALetter}}%" (line numbers added for convenience) that should be % hook! \lst@AddToHook{Init}{%<--------HERE!!! ...


4

Using the scrbook-class of KOMA-Script: Serif-Font in all headings (chapter, section, etc.) \documentclass{scrbook} \usepackage{fontspec} \addtokomafont{disposition}{\rmfamily} \begin{document} \chapter{Hello World} Test \end{document} Or explicitly set the font with fontspec: \documentclass{scrbook} \usepackage{fontspec} ...


4

You can load unicode-math and define \setmathfont{Latin Modern Math} \setmathfont[version=table]{XITS Math} The former is the font to be used all over the document, the latter is the one to be used inside your tabulars by issuing \mathversion{table} Change the fonts to the ones you like (choose one with math support...) MWE ...


3

I used the xpatch package to hook into the command for typesetting the chapter head. This will change the font for all chapters. \documentclass{book} \usepackage{fontspec,xpatch} \makeatletter \xpatchcmd{\@makechapterhead}{\normalfont}{\fontspec{Latin Modern Roman}}{}{} \makeatother \begin{document} \part{title} \chapter{chapter title} ...


3

Unbalanced thickness may refer to the fact that a scaled font produces as a consequence thicker large characters and thinner small characters, always in comparison to the ┬źnormal┬╗ or intended size of the given font. If you have a family typeface with different optical sizes (as, for instance, Minion Pro), you can balance the character weight, so that ...


2

Upon re-reading the question, I realized I did not try the following: \usepackage{fontspec} \usepackage[OT1]{fontenc} \usepackage{boisik} which is actually the solution. I'll leave it here for future reference. My apologies and thanks for your time. Edit: Minimal working example as requested: \documentclass{book} \usepackage{amssymb} ...


2

Nice test file, a workaround is to put some text after the bold text, even invisible text such as a zero width space seems to be enough: \documentclass{article} \usepackage{graphicx} \usepackage{fontspec} \setmainfont{Times New Roman} \newfontfamily\test[AutoFakeBold = 5]{Times New Roman} \begin{document} \test Test \textbf{Bold Test} ...


2

Simply add these line in your preamble \renewcommand{\glossarypreamble}{\footnotesize} MWE: \documentclass[12pt]{article} \usepackage{fontspec} \usepackage[backend=biber,backref=true]{biblatex} \begin{filecontents*}{\jobname.bib} @article{example, author = {Doe, John}, title = {Some things I did}, year = {2014}, journal = {J.~Irrep. ...


2

I always recommend that my students learn to use a Unicode IPA keyboard overlay. I've used the Keyman and MSKLC keyboards for Windows, but there are Linux and Mac options available at that page too. When the keyboard is turned on, certain keys (=, &, <, >, etc.) are activated to modify the key that's pressed next in fairly consistent ways. For ...


2

With -up-to-date TL 2014 and xelatex and lualatex *File List* article.cls 2014/09/29 v1.4h Standard LaTeX document class size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) fontspec.sty 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX expl3.sty 2014/11/25 v5471 L3 programming layer (loader) expl3-code.tex 2014/11/25 v5471 L3 programming ...


2

I think you're looking for the ifplatform package. Shell escape must be enabled for this to work, but try the following: \documentclass{article} \usepackage{ifplatform} \usepackage{polyglossia} \usepackage{fontspec} \iflinux \setmainfont{Liberation Serif} \else \ifwindows \setmainfont{Times New Roman} \fi \usepackage{lipsum} \begin{document} ...


1

Yes, you can, provided you properly define the font. \documentclass{article} \usepackage[quiet]{fontspec} \newfontfamily\dejavu[% DejaVu Sans Extension = .ttf, BoldFont = *-Bold, ItalicFont = *-Oblique, ]{DejaVuSans} \begin{document} \textbf{\dejavu\addfontfeature{BoldFont = *-BoldOblique}Test} \end{document}


1

I use a glyph called by index with a font I have, in this case XITS Math. \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{Asana Math} \newfontfamily{\test}{XITS Math} \begin{document} {\test\XeTeXglyph4491} $A\mathrel{\text{\test\XeTeXglyph4491}}B$ ...


1

This is more a comment which would be too long: I am not getting any error. Could you please be more specific? What does the error say? What does your MWE look like? In the following I print two leafs for you, which look nice and work without problems: % arara: xelatex \documentclass{article} \usepackage{fontspec} \usepackage{textcomp} ...



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