Tag Info

New answers tagged

1

First lets have a look on all the files. Here is, what I guess they are (but I am no expert here...). Please also have a look on Mrs. Beeton's comment below which discusses some of my misinterpretations and gives more information on certain extensions: afm: Adobe font metrics file enc: Encoding file map: mapping which tells TeX how .tfm fonts relate to ...


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}


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


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


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


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.


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


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


0

It could be because your document calls for glyphs that are unavailable in some of the fonts. If that is the problem and you absolutely have to use a font that doesn't have the required glyph, one solution is to substitute that glyph from a similar font that has it, as described at Using another font for a glyph that is not available in the current 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} ...


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

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

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

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


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


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!


0

Does this work (assuming the MinionPro package) \def\@biblabel#1{[{\figureversion{lining}#1}]}



Top 50 recent answers are included