I was doing my report, and I face to some problem with typewriter font; it was not adjusted to the text width. I don't find any related answer or topic.  Here's my MWE:  \documentclass[12pt,a4paper]{article}  \usepackage[spanish,es-noshorthands]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathptmx}  \usepackage[title]{appendix}  \usepackage{pdflscape}  \begin{document}  \section{New Story}  A written line  \section{Another}  \begin{itemize} \item Blah blah blah blah blah blah blah blah blah blah blah  blah blah \texttt{RegistroSismico.xls}, blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. \end{itemize}  Blah blah blah blah blah blah blah blah blah blah blah  blah blah \texttt{RegistroSismico.xls}, blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah  \end{document}
121098
I am suprised that in the code below no hyphenation is done. And I can not find something about that on the web. Maybe I used the wrong words for searching.  \documentclass{scrartcl} \usepackage{xltxtra} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \usepackage{tabu}  \begin{document} \begin{ttfamily} \begin{tabu} spread \textwidth {X[l]|X[l]|X[l]|X[l]}     A&amp;     B&amp;     Sichtweise, Haltung, Akzeptanz, useability, Anwenderfreundlichkeit&amp;     D\\ \end{tabu} \end{ttfamily} \end{document}
71733
This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer).  The person had a lot of "common words" in typewriter font sprinkled around his text and he was surprised that this text would not automatically hyphenate and he had to manually insert \- to mark hypenation points.
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)
62655
I also posts this here: . The problem is that I want to have the \period symbol (also range="002E does not work) from the mainfont, but when I run this:  %!TEX TS-program = lualatex \documentclass{standalone} % \usepackage[math-style=ISO]{unicode-math} % \setmainfont{MinionPro-Regular} % \setmathfont{LatinModernMath-Regular} \setmathfont[range=\period]{MinionPro-Regular} \setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{MinionPro-Regular} \setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{MinionPro-Bold} \setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{MinionPro-It} \setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{MinionPro-BoldIt}  \begin{document}     $\bigl(x^2+5\bigr).$ \end{document}   I get the following result:    Are there any ideas to solve this problem? Thanks for help.  I may think the problem lies in the \right.- and \left.-delimiters, because you won't get the incorrect result if you use \left and \right instead of \bigl( and \bigr). It seems as if range=\period makes them visible.  Is there a possibility to fix this?
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.
19108
I don't have these fonts:  times new roman, arial and calibri..., like in microsoft office? What can I do?
23948
Is there a way to set an option of fontsize that would affect the command \verbatiminput ?  MWE:  \documentclass{article} \usepackage{verbatim}  % NOT WORKING %\makeatletter %\newcommand{\verbatimfont}[1]{\renewcommand{\verbatim@font}{\ttfamily#1}} %\makeatother  \begin{document}         \verbatiminput{test.txt} \end{document}
70224
I have some tables and figures which are (slightly) wider than the text width. This results in them aligning with the left side of my text and going far out in the right side instead of actually being centered.  I understand that using memoir and adjustwidth can solve the problem, but is there any options when using the article class?
8303
I'm using \documentclass[10pt, a4paper]{article} in my TeX file. It all works fine, except, the lower bound of each page is cut off. So some text is either cut off, or at least the text reaches the very end of the page.  Has anyone experienced the same issue?  Here is an minimal working example:  \documentclass[10pt, a4paper]{article}  \usepackage[utf8]{inputenc} \usepackage{ngerman} \usepackage[cm]{fullpage}  \setlength{\headheight}{12.4pt} \setlength{\headsep}{1.5\headheight}  \begin{document}  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f   \end{document}
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.
61550
Once in a while, you may want to (1) adjust or create a kerning pair (or, better yet, kerning class) in a font, or (2) adjust a particular glyph's sidebearings.  examples of scenario (1) would include a font that's lacking a certain kerning pair/class, such as when more ›exotic‹ variants of a glyph were overlooked by the designer: W + a is kerned, but W + á isn't. Or: adjusting punctuation spacing for a certain linguistic context, such as the famously loose puncutation spacing common in French. Scenario (2) would apply, for example, when a particular glyph is too close to (or two far away from) all its possible neighbors, whatever these may be. Such as the slash in an otherwise well-made  I recently licensed.  Obviously, you may edit the font file itself, but this may not be desirable for several reasons, and it may not be permitted by the font's EULA either. I'd like to arrive at a little survey that addresses questions like: * what »non-invasive« methods are available for these purposes? * what engines are they compatible with? * what are pros and cons?    The two options that I can think of I've already posted as answers. Feel free to edit, as there might be more to be said about them.
111508
I just saw in this posting:  the note: "the TeX Gyre Pagella font, which includes glyphs for cyrillic.". There is an MWE there, which apparently worked in 2009; here it is (I just moved the fontenc line before the babel line, because pdflatex complained):  \listfiles \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[T1,T2A]{fontenc} % before babel! \usepackage[ngerman,russian]{babel} \usepackage{tgpagella}  \begin{document}  Добро пожаловать!  \selectlanguage{ngerman}  Some german umlauts: ÄÖÜ, äöü, ß  \end{document}   I build this with pdflatex test.tex, and it fails on Texlive 2014 with:  ... This is METAFONT, Version 2.7182818 (TeX Live 2014) (preloaded base=mf)   kpathsea: Running mktexmf larm1000 ! I can't find file `larm1000'. &lt;*&gt; ...ljfour; mag:=1; nonstopmode; input larm1000  Please type another input file name ! Emergency stop. &lt;*&gt; ...ljfour; mag:=1; nonstopmode; input larm1000  Transcript written on mfput.log. grep: larm1000.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input larm1000' failed to make larm1000.tfm. kpathsea: Appending font creation commands to missfont.log.  ! Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not fo und. &lt;to be read again&gt;                     relax  l.100 \fontencoding\encodingdefault\selectfont  ?    Apparently I may be missing some package, but I have no idea which one.  Is it possible to get this example working with pdflatex, and if so - how?    EDIT: Just found , and so I managed to fix the problem by installing the TexLive lh package, then I got the document to compile:  tlmgr install lh                      # passes, font not really tgpagella? tlmgr install collection-langcyrillic # installs 36 packages, like babel-bulgarian,... lcyw, lhcyr...   With that, the output is:    ... and the cyrillic font doesn't look like tgpagella. So I installed collection-langcyrillic, but that didn't change the output either; still getting in the transcipt:  LaTeX Font Warning: Font shape `T2A/qpl/m/n' undefined (Font)              using `T2A/cmr/m/n' instead on input line 3.   ... so apparently, the output shows the cyrillic of "Computer Modern". Now, if just the cyrillic font could be made like tgpagella, that would be great...
93262
I understand from  question that the current font size can be determined.  But how can I convert this to a length value?  \documentclass[10pt,a4paper]{article} \newlength{\mytextsize}     %This part fails....     \makeatletter       \setlength{\mytextsize}{\f@size pt}    \makeatother  \begin{document}     %do something.         \end{document}   In other words, I want to use the 10pt declared in the \documentclass{...} elsewhere.
11664
I am just curious that the following format looks good to you or not? The preamble I used is just   \documentclass[12pt,a4paper]{article}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb}   I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this?
70574
I want to make a latex symbol that contains a resized math symbol using \scriptscriptsize. However, when the scope containing the symbol is subject to a font resize, the \scriptscriptsize-ed symbol is not resized appropriately.    Please see this image, and note that the rightarrow size doesn't change as much as the tilde:   Here is a snippet that demonstates the problem:  \documentclass{article} \newcommand{\isoeq}{  \kern-0em\mathrel{\raisebox{0.13em}{${\sim}$}} \kern-0.75em\mathrel{\raisebox{-0.13em}{${\scriptscriptstyle \to}$}}   }  \begin{document} {\normalsize $A \isoeq B$}, \quad {\Large $A \isoeq B$} \end{document}   Could you explain how this is done correctly such that the rightarrow $\to$ above respects resizing.
41138
I have the following LaTeX-document:  \documentclass[a4paper,11pt]{article} \usepackage[utf8x]{inputenc} \usepackage[ngerman]{babel}  \usepackage[T1]{fontenc}  \title{Sample} \author{Litb}  \begin{document}  \maketitle  \begin{abstract}  This is a report about my praxis phase at the company foo bar which I enjoyed. \end{abstract}  \end{document}   Much to my frustration, compiling with pdflatex creates a document with Bitmap-fonts. The reader's font-list shows that it uses Type3 fonts.  If I remove the fontenc loading, then I get a PDF using vector-fonts, but I heard that I should keep it, for having native German Umlauts working.  Does anyone know how I can get vector fonts with T1, and why it keeps using bitmap fonts if I have that package-load line in it?
41642
I wanted to know how to set font of a document to Times New Roman and size to 12 for text and for Chapter Heading 14 only, for the whole document. I don't want to use the fontspec package for this. Please help me out on this.