Tag Info

Hot answers tagged

7

My development version of fontspec might be out of sync with the current TeX Live version on this matter — I know I recently fixed an issue that involved \addfontfeatures incorrectly creating new font families. In my development version, the 2nd use of \addfontfeatures line in the log file doesn't lead into the ‘Font Family (…) created’ message. However, I ...


6

I see the effect with TexLive 2013, but not with 2014 and miktex. So you will probably have to update something (fontspec?). The effect disappears if I add \unskip after \begin{document}. So it looks like an spurious space somewhere.


5

Ulrike has shown that this is a fontspec issue. The actually faulty code is \tl_put_right:Nn \document { \tl_set_eq:NN \cyrillicencoding \g_fontspec_encoding_tl \tl_set_eq:NN \latinencoding \g_fontspec_encoding_tl } which is used to do something 'really late', just before the start of the document. The problem is that this gets added after the ...


5

The syntax is not \ifx<firsttoken><secondtoken>{<true code>}\else{<false code>}\fi The correct one is \ifx<firsttoken><secondtoken><true code>\else<false code>\fi So you can remove the braces around {#1} and {#2} (which, in the case of \usepackage{fontspec} act as a group delimiter).


4

File hsrm-beamer-demo.tex loads package dtklogos, which contains in lines 138 to 147: \ifluatex \RequirePackage{fontspec} \newfontface\DANTEFONT{DANTE} \providecommand*\DANTE[1][]{\DANTEFONT DANTE} \else \providecommand*\DANTE[1][]{% \begingroup \usefont{OT1}{dante}{m}{n}\selectfont DANTE% \endgroup} \fi DANTE is a special font ...


3

Replacing \usepackage[cross,center,width=216mm,height=303mm]{crop} % bleed is 6mm by \usepackage[mirror,cross,center,width=216mm,height=303mm]{crop} % bleed is 6mm \makeatletter \newsavebox\WholePageBigBox \renewcommand*\CROP@genreflect[1]{% \leavevmode \savebox\WholePageBigBox{\hb@xt@\paperwidth{\vbox ...


3

The document @Sverre wrote, but with LuaLaTeX gives a correct output. However, as @UlrikeFischer said, it seems to be “wrong” in many ways. %!TEX TS-program = lualatex \documentclass{article} \usepackage[utf8]{luainputenc} \usepackage[T1]{fontenc} \usepackage{mathptmx} % Times font \usepackage{helvet} % Helvetica font \usepackage{courier} % Courier font ...


3

This does look like a possible fontspec problem, since loading the font manually does allow small caps to be selected. (I didn't realise Seravek was bundled with Mavericks.) It might take me a little while to get around to fixing this. In the meantime you can use an ugly form of font loading: \documentclass[a4paper]{article} \usepackage{fontspec} ...


3

Usually, you should not use unicode-math package to specify the font of non-predefined unicode block. The package is not intended to set CJK fonts for math formula. Moreover, you should not use CMU Serif as a math font, since it lacks most of the math glyphs and the opentype math table. To typeset Japanese in XeTeX, it is preferred to use xeCJK package or ...


3

Your document includes the following line in the preamble: \renewcommand{\familydefault}{\sfdefault} This sets the default font family to sans serif. So the settings of the serif font have no effect unless you explicitly request serif using something like \rmfamily or \textrm{}. If you remove that line from the preamble, you will get the normal ...


3

This is somehow strange but it seems that \defaultfontfeatures needs to be before \newfontfamily: \documentclass{article} \usepackage{lipsum} \usepackage{fontspec} \defaultfontfeatures[\myfont]{Scale=2} \newfontfamily\myfont{Times New Roman} \begin{document} \myfont \lipsum[1] \end{document}


2

My previous comment seems to solve the question and is posted here now as an answer: I just tried the example using TeX Gyre Pagella, because the Arno font is not available (to me). Microtype was updated 2013/05/23 and I used the the beta7 before that. In both cases you can use letterspacing with LuaLaTeX. The 2nd example works for me on an updated TeXLive ...


2

You should load fontspec after sfmath. Incidentally, \vect is not extensible and should be replaced, in my opinion, with the \vv command from the esvect package. In addition, you have eight styles for arrow tips. \documentclass[png,border=2pt]{standalone} \usepackage[no-math]{fontspec} \usepackage{sfmath} \begin{document} $\bar 1$ $\vec 1 \vec W \vv{ ...


2

Version 2.4a of fontspec no longer loads the package fixltx2e, cf. fontspec's README file: Change history -------------- - v2.4a (2014/06/21) * No longer load fixltx2e.sty -- this package should really be loaded before \documentclass. The problem occurs when the fragile command \raisebox is used in a section heading. fixltx2e makes the command ...


1

Sorry, but I had enough problems without having to deal with your fonts, etc. \documentclass{article} \usepackage{graphicx} \newlength{\tempwidth} \newlength{\temptest} \newcount{\templines} \newcommand{\myFrame}[1]% #1 = text {\settowidth{\tempwidth}{#1}% \ifdim\tempwidth>6cm \templines=0 \loop\advance\templines by 1 \temptest = 2\baselineskip% ...


1

A possible workaround is detailed here, where the problematic character is substituted with the same character from another font. For example: \documentclass{minimal} \usepackage{fontspec} \setmainfont{IM FELL English PRO} %change this to your preferred alternative font \newfontfamily\myaltfont{Arial} \begin{document} Eleph{\myaltfont\`{a}}nt ...


1

On OSX, I was able to get things working in the following way: Install to default user location (/Users/john/Library/Fonts) mkluatexfontdb --force --verbose=-1 -vvv That's all it took!



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