Normally I often use the sign -- to display a long minus sign — in my text. However, after using the fontspec package and setting my main font to "HelveticaNeue" the long minus sign isn't displayed anymore, but the two minus signs theirselves. Is there any possibility to change that behavior? Thanks for any hint.  \documentclass[11pt,titlepage,a4paper]{article} \usepackage{fontspec} \setsansfont[Scale=0.9]{HelveticaNeue} \renewcommand\familydefault{\sfdefault} \begin{document} This is some text -- this is some other text. %not showing endash \end{document}
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.
108034
I've been using -16 in my LaTeX code to write negative numbers.  But the problem with that, is in many displays and LaTeX rendering kits, it displays the - sign as extremely long and separated from all the other mathematical symbols (e.g. the 16).  Since I knew that LaTeX is an extremely thorough, powerful and complex language, I thought there definitely must be a way to pass this slightly annoying problem.  I don't really want my users looking at a mile-long negative sign.  Is there a way?  Example:
82713
I wish to use the symbol as in the following picture, however, I can not find it. Can someone help me?
61768
It is well known that you can make the font italic or bold using \textit{} or \textbf{}. However, if I have an italic or bold font, what command can I use to make it nonitalic or nonbold?
2909
i want to set the main font in my beamer as "Consolas" i do like this :  \documentclass{beamer} \usepackage{fontspec} \usetheme{Warsaw} \begin{document} \setmainfont{Consolas} \begin{frame} we discuss the ambiguities of existing security definitions and then provide a general framework for defining AKE security when involve strong adversary capabilities \end{frame} \end{document}   but after compile it , the font doesn't change, it is the same with that before the main font was set. what's the reason?
433
The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text?   How do I find the right name of the font? How do I select the font? How do I restrict the scope of the font change?     There are separate answers for different flavors of TeX (quick links):
47311
How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in , but with the paragraphs all in sans-serif.  For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?  (And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)
48858
I'm currently working in sharelatex online Latex editor, using XeLaTeX. I had all the fonts working using the fontspec package, however once moved to the Fonts folder there is no way to make them work:  \setmainfont{./Fonts/Merriweather-Regular.ttf}%   [Ligatures=TeX,   BoldFont=./Fonts/Merriweather-Bold.ttf,   ItalicFont=./Fonts/Merriweather-Italic.ttf,   BoldItalicFont=./Fonts/Merriweather-BoldItalic.ttf]   Even replacing the ./Fonts/, /Fonts/, Fonts/, etc.  Does anyone know how to make it work?
112489
Getting the message: font-not-found see fontspec documentation. I'm using cls file abbreviated at the bottom of this page whose origin is latextemplates.com/template/friggeri-resume-cv. I've tried all sorts of fonts from system fonts and tex fonts. Nothing seems to work! I would like to get fonts like in  to work, but I would be happy if I can just get one font to work!  \ProvidesClass{friggeri-cv}[2012/04/30 CV class] \NeedsTeXFormat{LaTeX2e}  \DeclareOption{print}{\def\@cv@print{}} \DeclareOption*{% \PassOptionsToClass{\CurrentOption}{article}% } \ProcessOptions\relax \LoadClass{article}   %%%%%%%%%% % Colors % %%%%%%%%%%  \RequirePackage{xcolor}  \definecolor{white}{RGB}{255,255,255} ...  %%%%%%%%% % Fonts % %%%%%%%%% \RequirePackage{fontspec} \RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math} \RequirePackage[T1]{fontenc}  \RequirePackage{libertine}  \newfontfamily\bodyfont[]{\rm} \newfontfamily\thinfont[]{\biolinum} \newfontfamily\headingfont[]{\sc}  \defaultfontfeatures{Mapping=tex-text} \setmainfont[Mapping=tex-text, Color=textcolor]{Tex Gyre Heros}  %\setmathfont{XITS Math}  %%%%%%%%%% % Header % %%%%%%%%%%  \RequirePackage{tikz}  \newcommand{\rolefont}{%   \fontsize{14pt}{24pt}\selectfont%   \thinfont%   \color{white}% }  \newcommand{\header}[3]{%   \begin{tikzpicture}[remember picture,overlay]     \node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum    height=4cm] (box) at (current page.north){};     \node [anchor=center] (name) at (box) {%       \fontsize{40pt}{72pt}\color{header}%       {\thinfont #1}{\bodyfont  #2}     }; \node [anchor=north] at (name.south) {%   \fontsize{14pt}{24pt}\color{header}%   \thinfont #3%     };   \end{tikzpicture}   \vspace{2.5cm}   \vspace{-2\parskip} }  ...  %%%%%%%%%%%%%%%%  % Other tweaks %  %%%%%%%%%%%%%%%%  \RequirePackage[left=6.1cm,top=2cm,right=1.5cm,bottom=2.5cm,nohead,nofoot]{geometry} \RequirePackage{hyperref}
13372
I want to use arial font, but it doesn't generate any document. I'm using Texpad software. I tried with helvet package, but it doesn't work. Here's my code, maybe I'm not right. Can you help me?  \documentclass[10pt, a4paper]{article}  \usepackage{fontspec} \setmainfont{Arial} \usepackage{lipsum} \usepackage[ampersand]{easylist}  \begin{document}  \tableofcontents \newpage \section{TITLE} \section{TITLE} \subsection{Subtitle} \subsection{Subtitle} \section{TITLE} \lipsum \subsection{Subtitle} \subsection{Subtitle} \subsubsection{Title} \begin{easylist} &amp; Title &amp; Title &amp;&amp; Subtitle &amp;&amp;&amp; Title &amp; Title \end{easylist} \subsubsection{Title} \subsection{Subtitle} \section{TITLE} \subsection{Subtitle} \subsubsection{Title}  \end{document}
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}
18896
I've heard that you should use \[ ... \] for displayed equations instead of  $$ ... $$, but why is that?  I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a syntax-highlighting text editor, I can see that easily based on the color of the symbols.  Is there any reason for this suggestion?
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.
61891
I am trying to get a ẞ in my LaTeX document. How can I do this? I already tried:   Using other fonts: dejavu and libertine Using \MakeUppercase{ß}, which sometimes produces nothing, sometimes produces "SS" Using {\sc ß}, which sometimes produces nothing, sometimes produces "SS" Using XeTeX and lualatex: Just leaves out ẞ and warns about the Glyph that it could not find Using \symbol{"1E9E}, which also produces nothing   How can I do this?
72176
I read many things about people wanting math mode in sans-serif font and doing crazy things with packages and options to get that, but I did not find anything that would simply make my math mode font non-italic.  Is there an (easy) way to set math mode font to be non-italic?  And is there a way to do that globally for the whole document?
6342
I want to write something basic like "10 $US" but sometimes it makes the text look weird. It changes the font and writes italic text. And sometimes it will insert a newline. For example in my .  How can I safely insert a dollar sign?
43673
How do I get straight quotation marks, i.e., " and ' in TeX?  (No, \verb changes the font and this is unacceptable.)  [Edit]  I forgot to mention that I’m using XeLaTeX, and fontspec is a necessity.  The first two proposed answers did work, without fontspec.