The following minimal example:  \documentclass{scrartcl} \usepackage{fontspec}  \begin{document}     test \emph{emph} \textit{textit} \textbf{textbf} \end{document}   outputs this:    i.e. the \emph command is not working. There are no error messages or warnings. Removing the line \usepackage{fontspec} produces the expected result (“emph” in italics). The result is the same regardless whether LuaLaTeX or XeLaTeX is used. What’s going on?  Using updated TeX Live 2016 on Linux.
63050
Compiling with either XeLaTeX or LuaLaTeX, \emph{} no longer displays text as expected, i.e. in italics. \textit{} works fine. Here is a MWE demonstrating the issue.  \documentclass{article}  \usepackage{fontspec}  \begin{document}      \emph{lorem ipsum}      \textit{lorem ipsum}  \end{document}   Here is the output I get :   I have TeXLive 2016 (MacTeX) installed. I updated it an hour ago with sudo tlmgr update --self --all.  I guess there is something wrong but what ? I'd be happy to have some help. Thank you.
46440
Using XeLaTeX the following document produces the correct result if \setmainfont{Arial} is never called (the quotation marks are proper left- and right-quotation marks). Once I try to set a font (even if it has the proper glyphs!) the output appears improperly as ``Quote me!''.  \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} ``Quote me!'' \end{document}
76681
I've updated my latex packages yesterday and have now issues with lualatex. One problem arising for me now is, that lualatex does not print bold characters using the bm package.  When I compile the following MWE with pdflatex everything looks okay, but for lualatex it doesn't:  \documentclass{article} \usepackage{bm} \begin{document} % Bold $\bm{E}$ \\ Normal $E$ % \end{document}   Output using pdflatex    using lualatex    Also trying to fall back to an earlier version of lualatex by using \RequirePackage{luatex85} does not work for me.  When having a look at the log file, there are the suspicious messages   LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 142. LaTeX Info: Redefining \bm on input line 208. [...] Missing character: There is no х (U+0445) in font cmmi10!   Can anyone tell me, what is going on here and what I need to do to solve this problem, since I am quite sure lualatex and bm worked before?
38478
I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font style. I have read the  and I understand the rules and their reasons, as well as the several other commands that are affected.  However, I find it convenient to use LaTeX for notetaking during lectures, and in that rushed environment, shortening a command by any number of keystrokes helps keep me from falling behind. \bf and its two-letter kin are still very useful to me for that reason, and once a presentation is finished I can go through and replace all appearances of \bf et al. with \textbf et al.  My question is this: is there a plan eventually to replace the short font style commands like \bf with the implementations of \textbf etc. some day, or should I expect \bf always to remain in existence but obsolete, for reasons of backward compatibility with original TeX? Original TeX has been greatly improved on in countless ways, but in the heat of transcription I sometimes miss its conciseness.
123372
I'm working through Knuth's Metafont Book as preparation for learning Metapost and I'm running into some problems working through his "experiments".  I've installed the latest TeX Live 2013 distribution on my system but I'm having problems.  Here's the code (contained in file io.mf as recommended by Knuth):  mode_setup;  em#:=10pt#; cap#:=7pt#;  thin#:=1/3pt#; thick#:=5/6pt#;  o#:=1/5pt#; define_pixels(em,cap); define_blacker_pixels(thin,thick); define_corrected_pixels(o);  curve_sidebar=round 1/18em; beginchar("O", 0.8em#, cap#, 0); "The letter O";  penpos1(thick,10); penpos2(.1[thin,thick],90-10);  penpos3(thick,180+10); penpos4(thin,270-10);  x1l=w-x3l=curve_sidebar; x2=x4=.5w;  y1=.49h; y2l=-o; y3=.51h; y4l=h+o;  penstroke z1e{down}..z2e{right}             ..z3e{up}..z4e{left}..cycle;  penlabels(1,2,3,4); endchar;   Now, when running the mf command and loading this file, I get a window that is unfortunately empty.  Supposedly a large letter "O" should appear.  $ mf This is METAFONT, Version 2.718281 (TeX Live 2013) **io (io.mf The letter O [79]) *end Output written on io.2602gf (1 character, 1724 bytes). Transcript written on io.log.  $ gftodvi io.2602gf  gftodvi: fatal: tfm file `gray.tfm' not found.   Then, when trying to use the gftodvi command I get the above error.   Any ideas why my "window" that should display the letter "O" is blank/empty? How do I resolve the gray.tfm error? Are the two related?   Note: I'm using Ubuntu 14.04, but the TeXLive installation is NOT from the Ubuntu repository.  I used the installer from  and created a local "portable" installation.
86768
I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex?  \documentclass{article} \usepackage{fontspec} \setmainfont{Noto Color Emoji} \begin{document} 😺 👅  \end{document}   Error:  $ lualatex emoji.tex  This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian)   restricted system commands enabled. (./emoji.tex LaTeX2e &lt;2018-12-01&gt;  luaotfload | main : initialization completed in 2.224 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (./emoji.aux) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./emoji.aux))  409 words of node memory still in use:    3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 48 glue_spec , 5 attribute_list, 1 write nodes    avail lists: 2:15,3:4,4:1,5:21,6:1,7:13,8:1,9:6 &lt;/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf ! error:  (file /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf) (ttf): sfnt  table not found !  ==&gt; Fatal error occurred, no output PDF file produced!
106373
Is there a font, available to -all- TeX users, that includes a glyph that can be recognized as the Unicode Replacement Character?  I realize I can use XeTeX with a  (or maybe any character not in the font), but I'm interested in using standard pdfTeX with standard LaTeX 2e and a pure ASCII input file.  The glyph typically looks like a filled black diamond with a white question mark inside it:    If no such font is available, what's the best robust strategy for getting such a glyph into a standard pdfTeX document (one whose input file has no Unicode or non-ASCII UTF-8 byte sequences in it) without using XeTeX or similar?  Inserting TikZ commands?  Raw PostScript?  Right now, for lack of a better solution, I'm using a \textbullet, simply because it's the boldest/blackest glyph I can think of, and it's available in most standard fonts.  Creating a custom font with one glyph in it is not really viable, or if it is it's a strategy of last resort, unless (perhaps) it can be done automatically and on the fly when processing the document each time.  (Reposted from the texhax mailing list: ; originally posed by Doug McKenna)
59556
What can i put into \setmathfont{&lt;...&gt;.otf} for the unicode-math package to make it all work (with XeLaTeX or LuaLaTeX)?  There are several suggestions on the  of unicode-math, but the first option is commercial, and the second and the third do not work with the following example:  % !TEX TS-program = xelatex  \documentclass{article} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} % \setmathfont{texgyrepagella-math.otf} % \setmathfont{xits-math.otf}  \begin{document} $X\setminus Y$ \end{document}   I do not get the \setminus character in the output.  The \setminus character is also missing if i do not set a math font at all (i do not know which font is used in this case).  It works with xits-math, but i do not like it.  Is it expected by the way that the \setminus character is left blank without giving any warning?
105632
The following minimal example no longer produces bold fonts in math mode, using either {\bf b} or \mathbf{b}. \documentclass{beamer}  \begin{document}  Text mode: {\bf b} $ = b$  \[ \text{Math mode with \texttt{bf}:}\quad {\bf b} = b \]  \[ \text{Math mode with \texttt{mathbf}:}\quad \mathbf{b} = b \]  \end{document}  I am using pdflatex on Ubuntu 20.04. The precise version is:  pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) kpathsea version 6.3.1 Copyright 2019 Han The Thanh (pdfTeX) et al. There is NO warranty.  Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Han The Thanh (pdfTeX) et al. Compiled with libpng 1.6.37; using libpng 1.6.37 Compiled with zlib 1.2.11; using zlib 1.2.11 Compiled with xpdf version 4.01   On a different computer, with TeX Live 2013, the pdf is created as intended, with bold fonts also in math mode. Below the output of TeX Live 2013 and TeX Live 2019 side by side.  The following error is reported in the .log file when using TeX Live 2019:  LaTeX Font Warning: Font shape `OT1/cmss/b/n' undefined (Font)     using `OT1/cmss/m/n' instead on input line 8.  The same error does not occur when using the older installation.
76313
It sounds simple but I have a really heavy issue with the "ö ü ä ß" in Latex. I use a template from my university, i have a mac and i use TeXShop if that matters.  Within there is a packages.tex with the following  (...)  \usepackage[T1]{fontenc}            % Standard package for selecting font encodings \usepackage{lmodern}                    % alternative Computer Modern-fonts for computer screens \usepackage{textcomp}                   % LaTeX support for the Text Companion fonts (...)   Also I have a thesis.tex with  (...) \usepackage[utf8]{inputenc}     % Accept different input encodings \usepackage{ifthen}                     % Conditional commands in LaTeX documents (...)   Now I tried to use  \usepackage[ngerman]{babel}   as well as  \usepackage[applemac]{inputenc}   but unfortunately it doesn't work. The best case was another error "hyphenation flashed" or something.   \documentclass[     fontsize=12pt,     a4paper,     portrait,                                    oneside,                                         openright,                                   final,                                               titlepage,                                       onecolumn,                                       bibliography=totoc,     numbers=noenddot                     ]{scrbook} \usepackage[T1]{fontenc}         \usepackage{lmodern}     \usepackage[utf8]{inputenc}      \usepackage{ifthen}          \begin{document} öä \end{document}   Now I replaced  \usepackage[utf8]{inputenc}        with  \usepackage[applemac]{inputenc}   in the minimal working example above and it worked BUT in the other document it still doesn't work :( There it gives me the error (see picture)
78256
I'm using this document class type  and I get the following error when I run it throgh XeLatex:  ! Undefined control sequence. &lt;recently read&gt; \str_case:nnn   l.72     ]{BookmanOldStyle}   I read and tried what the following post suggests (), but I still have no solution. The font files are in the right path and installed.  It was working perfectly last week, but reinstalled MikTex and started having this issue.  Any idea about what is happening?  The code I'm running is  \ifxetex     %% If the document is compiled with XeLaTeX, we load the TU Delft house     %% style fonts: Bookman Old Style (serif) for titles and Tahoma (sans-serif)     %% for text. Even if the nativefonts option was specified, we need these     %% fonts for the cover. \newfontfamily\tudrmfamily[     Path = fonts/,     Extension = .ttf,     BoldFont = *-Bold,     ItalicFont = *-Italic,     BoldItalicFont = *-BoldItalic ]{BookmanOldStyle}
44976
Prompted in part by the question , I started wondering if the \underset (from amsmath) and \underaccent (from accents) commands work equally when using XeLaTeX instead of pdflatex. The following code and associated output show that this is not the case for the XITS Math package:  \documentclass{standalone} \usepackage{amsmath,accents} \usepackage[no-math]{fontspec} \usepackage{unicode-math}    \setmathfont[version=cambria]{Cambria Math}    \setmathfont[version=lm]{Latin Modern Math}    \setmathfont[version=asana]{Asana Math}    \setmathfont[version=xits]{XITS Math} \newcommand\undersetunderaccent{$\underset{x}{A} \ \underaccent{x}{A}$} \begin{document} \Huge  \noindent \mathversion{lm}Latin Modern Math:       \undersetunderaccent\\ \mathversion{cambria} Cambria Math:      \undersetunderaccent\\ \mathversion{asana}   Asana Math:        \undersetunderaccent\\ \mathversion{xits}    XITS Math:         \undersetunderaccent \end{document}     Clearly, the output of the two commands is rather different [!] when "XITS Math" is the math font. Does the XITS Math package have to be loaded with special options to suppress this behavior, or should I plan on sending a bug report to the maintainers of the XITS Math font and/or the maintainers of the unicode-math package?  Addenda: (i) I can generate the output above using both TeXLive 2011 and MiKTeX 2.9 (both updated yesterday); the OS is Windows Vista; all math fonts on my system are the latest ones available. (ii) The problems with "XITS Math" do not arise if I run the example code above under luatlatex instead of under xelatex.
47574
I often find myself adding a lot of \textsl{} around inside \emph{} or \textit{} blocks because I find italicized digits to look too "showoffy" and "baroque" and to hinder legibility (I'm using $$ when the number has a mathematical sense, but this situation occurs in less technical texts like CVs, and such.).  Could someone help me write a renewcommand to automate this, or better, a single low level command that makes \emph, \itshape, \textit and friends choose slanted over italic for numbers? I'm not too familiar with the low level latex font selection system nor with a way to detect digits from regular letters.  Edit: MWE of what I need and what I want to avoid  \documentclass{article} \begin{document} He thought: '\emph{Why 1234567890 apples?}' then he realized '\emph{ah yes, he has \textsl{1234567890} childs}' \end{document}   gives:   I find the italicized version (first one) of 2,3,4 and 7 to look especially bad.
104474
I’m using TeXLive 2015.  Okay, so I have some sort of poltergeist in the following code. I compile it with either XeLaTeX or LuaLaTeX.  \documentclass{article} \usepackage{     fontspec, %   mathtools,     unicode-math, }  \setmathfont[ %   range = \mathcal, ]{xits-math.otf}  \begin{document}  %   $\mathtt L$     $\mathcal L$  \end{document}   The desired output – when uncommenting all lines – should be:    However, when uncommenting all lines and compiling with xelatex the script ‘L’ is missing. I found out that (re-)commenting out any of the three lines mathtools, range = \mathcal and $\mathtt L$ will restore the script ‘L’. Unfortunately, I have a scenario in which I need all three lines.  Also, compiling with lualatex doesn’t seem to yield any problems.  A similar question is , where  for the unicode-math package has come up. Is that stemming from the same issue or is there something else going on here?
44344
I usually use xelatex, but I'm exploring pdflatex now. When loading specific fonts in xelatex, I can always know what characters the font has available, since I can inspect the font file in any font viewing program, or I can find out the hard way by just entering the unicode and see if the character is displayed in the output. But how does this work with a font package?  Say, for instance, that I would like to use phonetic symbols in the  font. How do I know whether the font has phonetic symbols (I assume it does), and how do I know what command I need to type in order to make them appear? My only resource is , but this only tells me what characters/commands there are available in LaTeX2e by default (depending on the font encoding), and what symbols I can find in specific packages. Phonetic symbols, for instance, are said to be in the tipa package. Does that mean I am locked to tipa if I want to use phonetic symbols with pdflatex?  Here's a pointless MWE:  \documentclass{article} \usepackage{gentium} \begin{document} Please give me some phonetic symbols here? \end{document}
21791
I need to use the font Constantia and thus compile my document with LuaLaTeX using \usepackage{fontspec}(Editor is TeXStudio). As I do not like the OldStyle numbers, I use \setmainfont[Numbers=Lining]{Constantia}. So far, this worked perfectly, but since I updated MikTeX yesterday I get the error:   OpenType feature 'Numbers=Uppercase' (lnum) not(fontspec) available for font 'Constantia' with script(fontspec) 'CustomDefault' and language 'Default'.   Here is a MWE:  \documentclass{scrreprt} \usepackage{fontspec} \setmainfont[Numbers=Lining]{Constantia}  \begin{document}  1234567890  \end{document}   It produces the following output:    The font itself can't be the problem, as I tested it in Word where I can change the behavior:    Thank you in advance for your help.
121350
I'm using XeLaTeX to compile my document. If I write in my document --- I don't get —, but --- in my PDF document. Same for – (--) character. I'm sure that font which I'm using have this character (Myriad Pro). Are there other ways to get this characters working?If copy&amp;paste this character, it works then. But never when using -- or --- shortcuts.