I define Sans Serif fonts for text for my beamer presentation in Russian:  \usepackage{luatextra} \usepackage{polyglossia}   \setmainlanguage[babelshorthands=true]{russian} \setotherlanguage{english} \defaultfontfeatures{Renderer=Basic, Ligatures=TeX} \newfontfamily\cyrillicfonttt{CMU Typewriter Text} \newfontfamily\cyrillicfont{CMU Sans Serif} \setmainfont{CMU Sans Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text}   I would like to use Sans Serif fonts everywhere except equations.  To do it, I write  \mode&lt;presentation&gt; { \usefonttheme{professionalfonts} ... }   But there is the problem with option DeclareMathOperator. For instance, I write  \DeclareMathOperator{\Tr}{\mathrm{Tr}\,}   and obtain Sain Serif typesetting of this operator instead of desired Serif format. How to deal with this problem?
89587
When using the metropolis theme for beamer, I get text and math in Fira Sans, except for math operators. I compile the following MWE using LuaTeX.  \documentclass{beamer}  \usetheme{metropolis}  \begin{document}    \begin{frame}     Ordinary text.     \[ a^2 + b^2 = \sin^2(x) - \mathsf{y} + \mathrm{z}  \]   \end{frame}  \end{document}   The outcome for me is that a, b, 2 and x are set in Fira Sans Light Italic, and y is set in Fira Sans Light, but sin is set in the sans font of (I guess) Latin Modern. (The z is also in Latin Modern, but this is expected behaviour from beamer.)  Unsurprisingly, I get the same result if I replace \usetheme{metropolis} with  \usepackage[no-math]{fontspec} \setsansfont[ItalicFont={Fira Sans Light Italic},   BoldFont={Fira Sans},   BoldItalicFont={Fira Sans Italic}]%   {Fira Sans Light}   I guess that this is to do with beamer's patching parts of the math fonts to match the text font (see ). However, I don't understand the font system well enough to modify this.  There was , but I've no idea how to apply that answer when using fontspec, or if this is even possible.  Is there a way to change the operator font to match the upright/sans math font (i.e., Fira Sans Light)?
34058
Relevant to those:         I'm trying to change the font at math-mode: If it's with "s": \setmathsfont -  it doesn't compile, if it's without the "s: it's doesn't change the font...  Here is MWE:  \documentclass{scrartcl}   \usepackage{unicode-math} \setmathfont{Arial}  \begin{document}  \[ a+b^{2}+5 \]  \end{document}   The output is:   Can you help to understand how to change the font at math-mode?  Thank you!!
15140
In preamble, I have:  \renewcommand{\familydefault}{\sfdefault} \usepackage{arial}   but it doesn't work.  How do I set my font to Arial throughout the entire document?  UPDATE:  In short, both answers work.  It really depends on the environment. If using LaTeX and don't mind using a cloned font then choose Herbert's answer. If using XeLaTex and want to use the authentic font then choose Leo's.
113750
I get the following error when I try to typeset a beamer document.  kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+525/600 --dpi 525 mathkerncmssi8 gsftopk: fatal: map file `cid-base.map' not found. mktexpk: don't know how to create bitmap font for mathkerncmssi8. mktexpk: perhaps mathkerncmssi8 is missing from the map file. kpathsea: Appending font creation commands to missfont.log.  ) !pdfTeX error: pdflatex (file mathkerncmssi8): Font mathkerncmssi8 at 525 not found  ==&gt; Fatal error occurred, no output PDF file produced!   But if I remove sansmathaccent.sty from the TeX Live tree, the document typesets fine. Here is a minimal working example.  \documentclass[10pt]{beamer}  \begin{document}  \begin{frame}{A very short beamer document}  $e^{i\pi}+1=0$  \end{frame}  \end{document}
42799
Adding this to the style.css works:  * { font-family: "Courier New", Courier, monospace; }   Probably because Courier New is widely popular and supported. However, using this on my custom font doesn't work:  @font-face {     font-family: 'new-baskerville';     font-style: normal;     src: url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot');     src: local('new-baskerville'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot') format('embedded-opentype'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.woff') format('woff'); }   Or chaning @font-face to * doesn't work either. The files do exist in the path. Do you know why is that?
63902
What font package do I use to get the vertical Russian/German style integral signs? (subject says all)
117919
I would like to set the font for the caption label, not just its series, shape or size, I would like to set the font itself. For example, my document's font is set to be Times New Roman, but I would like the caption label to be in a font that exists in another font family or even under a different font encoding. However, the labelfont option of package caption seem to only allow attributes like normalfont, up, it, sl, sc, md, bf, rm, sf, tt and so on, it would not let me specify a literal font, like Georgia, Helvetica or others.  \usepackage[labelfont = bf]{caption}   I am not sure if I have made it clear, please let me know if it is not and I will try to make it clear as possible.  Also, the reason why I am asking this question is, I am typesetting a Chinese document in which the caption label is in Chinese, but in a font I do not like. I am trying to change the font for the caption label to another font for Chinese character.  Thanks in advance!
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)
75274
I'm compiling with XeLaTeX and in my document, when I put \Chi, or \Alpha, or any normal symbol it raises the error Undefined control sequence This is my preamble:  \usepackage[utf8]{inputenc} \usepackage{fontspec} \usepackage[spanish]{babel} \usepackage[left=3cm, right=2cm, top=3cm, bottom=3cm]{geometry} \setmainfont{Arial} \setmonofont{Inconsolata}   Update: I added \usepackage{unicode-math}, now there is no error but in the PDF there is a white space (Because Arial doesnt have greek letters). How can I set a different font for unicode-math?
62666
This is with ref to my previous question .  \documentclass[11pt,table,a4paper]{article} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{CJKutf8} \usepackage[english,russian]{babel}  \newenvironment{SChinese}{%  \CJKfamily{gbsn}%  \CJKtilde  \CJKnospace}{}   \begin{document}  \selectlanguage{russian}   Это мой первый многоязычный докладе.   Инфантильный гипертрофический стеноз привратника - это серьёзное   \selectlanguage{english}   This is my first multilingual report.   \begin{CJK}{UTF8}{}   \begin{SChinese}     这是我的第一个多语种的报告。   \end{SChinese}   \end{CJK}    \end{document}   when I try to compile it, I get following error message.  LaTeX Warning: Unused global option(s):     [table].  (./data.aux (/usr/local/texlive/2011/texmf-dist/tex/latex/cyrillic/t2acmr.fd)) (/usr/local/texlive/2011/texmf-dist/tex/latex/lm/t1lmr.fd)  LaTeX Font Warning: Font shape `T2A/lmr/m/n' undefined (Font)          using `T2A/cmr/m/n' instead on input line 15.   ! Package inputenc Error: Unicode char \u8:  not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                      l.18 ...�ный гипертрофический стеноз привра...   How can I avoid such error message.
33891
Kindly have a look at this code   \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \usepackage[small,sf,bf]{titlesec}  \setromanfont{Georgia} \usepackage{amssymb}  \newcommand{\checkbox}{$\square$} \begin{document}  If appropriate \checkbox  . Why appropriate, specify? ........... If inappropriate \checkbox . Why inappropriate, specify? .............. If appropriate \checkbox . Why appropriate, specify? ...........\\ If inappropriate \checkbox . Why inappropriate, specify? ...........  \end{document}   How can I make a dotted like, of appropriate length so that it is depressed, fainter, has consistent length so that it occupies the remaining white space in the  line or has specified length.
97691
This is a little bit off topic as it is not exactly related to TeX.  I saw recently that  was updated to 1.020 which comes with math table support.  Does any one had a chance to play with this font and use it with unicode-math, and in particular with the LuaTeX engine?  I am very interested in purchasing a complete set of this nice fonts family. However I am concerned about its usability with the unicode-math package. Unlike Cambria Math or XITS Math, Minion Math does not come with a single font, instead it has 20 (4 weights 5 optical sizes) fonts. So it will be better to know how it works before spending 700 euro.  In particular, say the following minimal document, will it use correct optical size of the fonts for each of the three formulas? I had trouble with using correct optical size of Minion Pro fonts with fontspec. I worked it out with the SizeFeatures and OpticalSize. However, I am not so sure if the same strategy will work for Minion Math with unicode-math. In addition, in Cambria Math, etc., the bold symbols and alphabets are chosen directly from the unicode math enabled fonts. But in Minion Math, from the glyph tables on their websites, there seems no bold alphabets in each font. So will the mathbf in the document below work out of box?  \documentclass{article} \usepackage{fontspec} \setmainfont{Minion Pro} \usepackage{unicode-math} \setmathfont{Minion Math} % or what ever fonts name actually is  \begin{document} \fontsize{5}{5}\selectfont \[ \mathbf{E} = mc^2 \] \fontsize{10}{10}\selectfont \[ \mathbf{E} = mc^2 \] \fontsize{36}{36}\selectfont \[ \mathbf{E} = mc^2 \] \end{document}
9196
how to change the font of the content to bold italic ?  thank you   here my cool superbe example:  \documentclass[14pt,t]{beamer} \usepackage{url} \usepackage{hyperref} \usepackage{graphicx} \usepackage{grffile} \begin{frame}\maketitle\end{frame} \begin{frame} \frametitle{test0} \begin{itemize} \item test \item test \begin{itemize} \item test \end{itemize} \end{itemize} \end{frame} \end{document}   A possible solution would be to use:  \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} \renewcommand{\rmdefault}{phv} \renewcommand{\sfdefault}{phv} %\renewcommand{\mddefault}{b}   % this content bold with b \renewcommand{\bfdefault}{phv} % Helvetica has no bx series \renewcommand{\updefault}{sl}   But it does do helvel arial bold for the whole document, and maybe there are ways to have the items/text of the slides in bold italic, and to keep normal phv for the top of the slide (frame title)?
15250
I use the babel package in order to write in greek with font "kerkis".  I want to add code in english ("courier new" font) to my latex document but I get some difficulties.  Can anybody help me, please. Thank you in advance.  \documentclass[12pt]{article} \usepackage[english,greek]{babel} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{fancybox} \usepackage{verbatim} \usepackage{courier} \usepackage{kerkis} \usepackage{float} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{tocloft} \usepackage{hyperref} \usepackage{afterpage} \usepackage{color}    \usepackage{listings}  \renewcommand{\lstlistingname}{Κώδικας}  \lstset{  %matlab   backgroundcolor=\color{white},     basicstyle=\normalsize,    % COURIER NEW?        commentstyle=\color{green},    % comment style   escapeinside={\%*}{*)},           extendedchars=true,               frame=single,                              keywordstyle=\color{blue},       % keyword style   numbers=left,                     numbersep=5pt,                     numberstyle=\normalsize\color{black},    rulecolor=\color{black},           stepnumber=1,                      stringstyle=\color{magenta},     % string style }   \begin{document}  \selectlanguage{greek} Ελληνικά: \textlatin{this word means greek}  \selectlanguage{english} Now I write in english  \selectlanguage{greek} Ελληνικά  %\selectlanguage{english}???  \begin{lstlisting}[caption = \textlatin{example1.m}] { % Entropy E = 0; for i = 1:J     if p(i) ~= 0         E = E + p(i)*log2(1/p(i));     end end } \end{lstlisting}  \end{document}
85960
I am trying for about a week to launch unicode-math package with XeLaTeX and got nothing. PDF is created well but all Cyrillic symbols in math mode are skipped. I tried using different math fonts - no progress at all. In log file, I found low-level error:  Missing character: There is no [cyrillic letter from input] in font cmmi12!   But all fonts used in document are Unicode ones.  Here is a file I want to be processed well (of course it is UTF-8).  \documentclass[12pt]{book} \usepackage{polyglossia} \setdefaultlanguage[spelling=modern]{russian} \setotherlanguage{english} \defaultfontfeatures{Ligatures={TeX}} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text}    \usepackage{amsmath, amssymb} \usepackage[russian]{hyperref}  \usepackage{unicode-math} \setmathfont{Latin Modern Math}  \frenchspacing  \begin{document} Просто буквы % Plain letters $$Память: M_{доп}(n) = \Theta(N)$$ % Memory: M_add(n) = \Theta(n) \end{document}   Looking for your help.
64104
I want to do  with the crm10 font. How can I do that? I've tried a few fonts but I don't like them.  \documentclass{scrreprt}  \usepackage{fontspec} \setmainfont{Times New Roman} \setsansfont{Arial} \newfontfamily\greekfont[Script=Greek]{Linux Libertine O} \newfontfamily\greekfontsf[Script=Greek]{Linux Libertine O} \usepackage{polyglossia} \setdefaultlanguage{greek}  \begin{document} \tableofcontents{}  \section{Αυτό είναι ελληνικά.} {\bfseries Welcome to Greek:} Αυτό είναι ελληνικά  Or Russian: Привет  Or Hebrew: מה הבעיה? \end{document}
114668
Although there are some advices that deal with the warning message:     Composite letter `\textasciicaron+c'not defined in PD1 encoding   See here, for example:  It seems that I cannot get rid of these warnings if letters appear in section (subsection) labels (\section{Example: \v{s}}). Can anyone give me some advice?  My header contains:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{tabularx}   And I also tried:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{graphicx} \usepackage{tabularx}   Many thanks! PM  ===========================================================  MINIMAL EXAMPLE:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[T1]{fontenc} \usepackage[normalem]{ulem} \usepackage{graphicx} \usepackage{tabularx} \usepackage{color} \usepackage{setspace} \usepackage{parskip} % \xdefinecolor{myStructureColor}{RGB}{51,158,51} \xdefinecolor{myAlertedColor}{RGB}{255,51,51} \xdefinecolor{myTextColor}{RGB}{60,60,60} \xdefinecolor{midGrey}{RGB}{180,180,180} \xdefinecolor{lightGrey}{RGB}{225,225,225} % \setbeamercolor{normal text}{fg=myTextColor} \setbeamercolor{structure}{fg=myStructureColor} \setbeamercolor{alerted text}{fg=myAlertedColor} \setbeamercolor{section in toc}{fg=myAlertedColor} % \setbeamerfont{structure}{shape=\scshape} \setbeamerfont{section in toc}{shape=\scshape} % \setbeamertemplate{itemize item}     {\includegraphics[width=0.06in]{backbulls/bulettA}} \setbeamertemplate{itemize subitem}     {\includegraphics[width=0.05in]{backbulls/bulettB}} \setbeamertemplate{itemize subsubitem}     {\includegraphics[width=0.05in]{backbulls/bulettC}} % \AtBeginSection[] {\begin{frame}     \frametitle{Sadr\v zaj}     \tableofcontents[currentsection] \end{frame}} % \setlength{\parskip}{1ex} % \title{Slo\v zeni linearni modeli} \date{\tiny{februar 2014. godine}} %  \begin{document}  \begin{frame} \begin{spacing}{2} \titlepage \end{spacing} \end{frame}  \section{Ve\v zba}  \begin{frame}[fragile] \frametitle{Works} previous section label works fine... \end{frame}  \section{\v Cinjenica}  \begin{frame}[fragile] \frametitle{Does not work} previous section label does not work... \end{frame}  \begin{frame} \vspace*{4\baselineskip} \begin{center}     {\LARGE{K~~~R~~~A~~~J}} \end{center} \end{frame}  \end{document}