I am writing a class file and want to use fontspec and unicode-math if the compiler is luatex or xetex. If the compiler is pdftex I would like to define default fonts like cmr and phv instead. I am trying to use \sys_if_engine* in the cls-file but getting the error: sys not defined or somethins like that. Can I get around this?
51222
How can I detect inside a TeX file which engine (pdftex/xetex/luatex) is used to compile the file? Is there a LaTeX package that provides this functionality?
1242
Recently I switched from pdflatex to xelatex to be able to use OpenType fonts. I like to use variables highlighted using \mathcal for specific variables, while I used to use \mathscr-typeset variables for matrices. But when I compile with XeLaTeX they look exaclty the same.  Old code  \documentclass{standalone} \usepackage{mathrsfs} \begin{document} $\mathcal{C} = \mathscr{C}$ \end{document}   Output        New code  \documentclass{standalone} \usepackage{unicode-math} \begin{document} $\mathcal{C} = \mathscr{C}$ \end{document}   Output        Broken code  I tried to get back the glyphs from mathrsfs, but it failed this way.  \documentclass{standalone} \usepackage{unicode-math} \usepackage{mathrsfs} \begin{document} $\mathcal{C} = \mathscr{C}$ \end{document}   Output        Question: How can I get back the behaviour? In principle I'd like to have the old \mathcal letters from the pdflatex-version of Computer/Latin Modern.    Alternate solutions (Addendum 2016/05/11)
64479
(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.)  Consider the minimal example  \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \setmathfont{lmmath-regular.otf} \begin{document} \begin{equation*}   \int f(x) \, \mathrm{d}x \end{equation*} \end{document}   When compiled with lualatex the space between the integral sign and f(x) is too large, larger than what I get if I compile with xelatex (or if I'm not using unicode-math).   With lualatex:       With xelatex:       Without unicode-math:      I'm using a recently updated TeXlive 2011, and the same thing happens with Asana-Math.otf or xits-math.otf as math font. Can this be corrected somehow?
1210
In the preamble I have:  \documentclass[a4paper,11pt]{article} \usepackage{fontspec} \setmainfont{Arial}   What can be inferred about the real font pt size for the following?  \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge
118387
How can I get universal in my new environment normalfont instead of italic (default)? I thought it was something simple like  \newtheorem{exercise}{ \normalfont}[chapter] `   but doesn't work. I could not find something similar but I think it is something simple, even for me as a new user to LaTeX.
59057
I want to define a command \filepath so that I can use \filepath{foo_bar.cpp} and it is printed in monospaced font.  Also, why does this not work? I get strange errors:  \newcommand{\filepath}[1]{\verb!#1!}
81644
When I compile with LuaLaTeX and TL2016 this MWE   \documentclass{article}  \usepackage[no-math]{fontspec} \usepackage{luatex85} \usepackage{shellesc}  \setmainfont{Minion Pro}  \begin{document}  \huge{huge} \textbf{\huge{huge}}  \Huge{Huge} \textbf{\Huge{Huge}}   \end{document}   I have this .pdf.     Any help? With TL2015 all is correct. Thanks
9615
I use MikTeX as my compiler for Windows. The problem is that it uses Type3 (raster) fonts even though I've stated:  \usepackage[T1]{fontenc}   in the preamble.  As far as I've understood, this will force the compiler to use vector fonts instead.  Have I misunderstood something? Can I reconfigure my installation to always use vector fonts?
62720
I’m developing a (non-public) custom class which has a comparing Xindy style file (.xdy). I’m installing the class feels etc. according to TDS with a script (or by unzipping to the right directories). But I couldn’t figure out a robust way to install the Xindy file, since it doesn’t use kpsewhich. So what is the best place to save such a style? It should   work with TeX Live and MikTeX be as easy as possible ideally not requiring to change .profile or something like that   I don’t know what systems the users have. But I guess most of them are basic users without any knowledge about installing packages or using the Terminal/Bash/…  Deployment via CTAN is not possible since the class/style is exclusive and non-public.
47427
I want to create a document class based on a KOMA-Script class. If myclass.cls contains the following  \ProvidesClass{myclass}[2011/08/31] \LoadClass[paper=a5]{scrartcl}   then compiling a document whose first line is \documentclass{myclass} generates the warning   LaTeX Warning: Unused global option(s):     [paper=a5].   The same problem occurs with scrbook and scrreprt. What am I doing wrong?
44588
I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a PDF with no warnings or errors but it only contains the second line. Using the inputenc package results in an error Unicode char ... not set up for use with LaTeX.  \documentclass{minimal} \begin{document} číčí abcd \end{document}   pdflatex handles the document fine. My version of lualatex is  This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736)   Thanks for any pointers.  EDIT: For bonus points, how would I use the Bitstream Charter fonts? I use the mathdesign package, but with them (and even when loading fontspec, fontenc and/or luaotfload), the non-ASCII characters are missing :/   \usepackage[bitstream-charter]{mathdesign}
9541
1st example:  \starttypescript [\s!serif] [paratype]   \definefontsynonym [ParatypeSerif-Regular] [\s!name:PTSerif-Regular] [\s!features=\s!default]   \definefontsynonym [ParatypeSerif-Italic] [\s!name:PTSerif-Italic] [\s!features=\s!default]   \definefontsynonym [ParatypeSerif-Bold] [\s!name:PTSerif-Bold] [\s!features=\s!default]   \definefontsynonym [ParatypeSerif-BoldItalic] [\s!name:PTSerif-BoldItalic] [\s!features=\s!default] \stoptypescript   2nd example:  \definefont[SerifS][\s!file:GenBkBasR at \smallfontsize]   Is \s! only related to fonts? Should I use it in my typescript files?
19555
Occasionally, I see other people's documents starting with two lines like that:  % !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode   It's clear to me that the first line declares the engine that should be used for compilation, and the second lines states the text encoding of the input file. It's not clear to me, however, when and why I should use such expressions.  More detailed questions on this subject matter would be:   How can I compile without determining which engine I want to use so that I would even need that comment? Which editors/programs pick up on these directives? Who introduced them? Is there any "documentation" of possible values etc.? Are there more such expressions? Are they standardized in any way? Can I add options to the compilation engine, e.g. pdflatex -enable-write18 or xelatex -interaction=nonstopmode? What does the "TS" in TS-program stand for? What additional value does the encoding line provide if I'm already using inputenc? Are there any downsides to using them or reasons not to use them?   Meta: Even though it technically contains multiple questions, I'm pretty sure this question conforms with our standards as a catch-all question on a narrow topic. I guess I know some partial answers to some of my questions, but I'll leave that up for people who have experience with these expressions. I just wanted to provide a question that allows for a maximal amount of information on this subject matter.
35082
So I downloaded a template for a CV. It uses XeLaTeX. I would like to change the font but I lost hope to find myself how I am supposed to do that. My OS is Windows 7. Here is a functional code that uses the original font Fontin. I downloaded it to make it work, and I would like to use something else (and something that uses accents (I speak french) !)  \documentclass[a4paper,10pt]{article} % Default font size and paper size \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{textpos} \usepackage{fontspec} % For loading fonts \defaultfontfeatures{Mapping=tex-text} \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}  \usepackage{xunicode,xltxtra,url,parskip} % Formatting packages  \usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors  \usepackage[big]{layaureo}   \usepackage{hyperref} % Required for adding links   and customizing them \definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document  \usepackage{titlesec} % Used to customize the \section command \titleformat{\section}{\Large\raggedright}{}{0em}{} % Text formatting of sections \titlespacing{\section}{0pt}{2pt}{2pt} % Spacing around sections \usepackage{vmargin} \usepackage{fullpage}  \begin{document} \setmarginsrb{25mm}{0mm}{30mm}{0mm}{1cm}{5mm}{1mm}{10mm} \pagestyle{empty} % Removes page numbering  \font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section  \par{\Huge TacTac \textsc{TicToc} - OncheOnche \bigskip\par}  \par{\Huge \hspace{8mm}  huehuehue \bigskip\par}  \section{Données personnelles} \begin{textblock}{.9}(0,0) \rule{97mm}{0.09mm} \end{textblock} \begin{tabular}{rl} \textsc{Date de naissance:} &amp; 01 brumeneige 3030 \\ \textsc{Adresse:} &amp; Somewhere, sometimes \\ \textsc{Téléphone:} &amp; +123456789\\ \textsc{Email:} &amp; what about \end{tabular}   \section{Objectifs}\titlerule  I met a traveler from an antic land who said : Two vast and trunkless legs of stone stand in the desert... \\  %---------------------------------------------------------------------------------------- %   EDUCATION %-------------------------------------------------------------------------------                      ---------    \end{document}   I believe the problem comes from the lines  \defaultfontfeatures{Mapping=tex-text} \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}   But I don't know what I must change, where does the compiler look for the fonts... I saw other questions that look like mine, but all used Linux. I also saw that there could be some problems with fonts using spaces in their name (seriously...?)... Anyway. Someone got an idea ?
37383
I'm new to use Ubuntu and need to use Microsoft TTF fonts with LibreOffice. Can anyone guide me how to do this using command line? I have already downloaded desired TTF file on my Ubuntu desktop.
122070
I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text that belongs to the secondary language. On the long run, this can become cumbersome.  In XeLaTeX I am using the XeTeXinterchartoks mechanism  that allows me to change automatically the hyphenation rules and/or the font without explicitingly declaring them. The  involves grouping together the glyphs of a Unicode Block and then automatically applying tex commands when transitioning from a group to another one.  For those not familiar with the XeTeXinterchartoks, more info can be found at  pages 13-14.  Lately I got interested in Lua(La)Tex. I want to know if there is a way to achieve similar results in LuaTex. As was pointed in a previous question,  but it was suggested that there are other, more powerful ways to achieve the same goal.  So the questions are   How can I change the hyphenation rules/font automatically according to the glyphs used without declaring them?  Can someone provide a minimum working example or at least point me to some references? One of the drawbacks of XeTeXinterchartoks is that the settings are global. Is there a way in LuaTeX to set this feature (if it exists) on and off, thus providing more flexibility?
43925
I would like to change the system (console) font of my ubuntu server to a custom () font. Is this possible?  I've tried to use:  dpkg-reconfigure console-setup   but the only allows me to choose from the default system fonts.