# Tag Info

## New answers tagged fonts

0

\documentclass{article} \usepackage[T1]{fontenc}% order changed. \usepackage[utf8]{inputenc} \usepackage[slovak]{babel} \usepackage{enumerate} \title{\textbf{Rešerš}} \author{Milan} \makeindex \newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\\\} \babelhyphenation[slovak]{ob-cho-dní-kov väč-ši-nou} \begin{document} \maketitle obchodníkov väčšinou ...

3

\bf does not maintain the font family, except being used in an explicit group {...} or an environment. Use the safer \bfseries for this to be sure!!!! This is one reason why the \bf ,\it, \sc, \tt and \rm shouldn't be used any longer -- they are deprecated since 1993. See the differences in the output of the following code: (I did not clean up, ...

1

\documentclass{beamer} \usefonttheme{professionalfonts} \usepackage[sfmath]{kpfonts} \begin{document} $g$ in math mode g in text mode \end{document}

3

One can use lmodern, but redefine the functions \', \H, and \", though that may have some danger associated with it. As wipet points out, this approach breaks hyphenation, which in itself is enough to recommend against its use. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern,stackengine,scalerel,graphicx} ...

8

You can \usepackage{lmodern} to get a version somewhat in between. In particular, the ring on Å is a circle (though somewhat thicker than the original). The accents are less slanted as well, especially for Ő and Ű. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} A\'A\AA ...

2

If you need a clone of Helvetica, you might prefer TeX Gyre Heros. For example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tgheros} \renewcommand*\familydefault{\sfdefault} \usepackage{microtype} \begin{document} \Huge{tial} \textbf{tial} \end{document} Alternatively, you might browse the TeX Font Catalogue listing of sans serifs. As ...

2

What you claim to be Arial, in the first screen shot, isn't Arial at all. Instead, it's Computer Modern Sans Serif (aka CMSS). The following screeshot provides a comparison of Helvetica Neue in the upper line and true Arial in the lower line. Given that Arial is a (not-so-well-thought-out) clone of Helvetica, the differences are unsurprisingly rather ...

6

Try TeX Gyre Heros, from its homepage: TeX Gyre Heros is based on the URW Nimbus Sans L kindly released by URW++ Design and Development Inc. under GFL (independently of the GPL release accompanying Ghostscript). The Vietnamese glyphs were added by Han The Thanh. TeX Gyre Heros can be used as a replacement for a popular font Helvetica, also ...

2

Your TeX distribution is a little bit outdated and that causes your problem. Please see The following lines: Mine system: Version 3.14159265-2.6-1.40.16 ... (preloaded format=pdflatex 2016.1.29) ... Your system: 3.14159265-2.6-1.40.16 ... (preloaded format=pdflatex 2016.1.10) ... % ...

0

sansmath It is easy to achieve sans serif math with the sansmath package. For sansmath to be able to pick up the correct font it has to be loaded after the sans serif font (here package helvet). \documentclass{article} \usepackage{helvet} \usepackage{sansmath} % load sansmath after the font \begin{document} \sffamily\sansmath $g$ in math mode g in text ...

3

I create a macro, \dblacc{} for adding a double accent to characters. It works even for accenting an ogonek. \documentclass{article} \usepackage{stackengine,tipx,lmodern} \usepackage[T1]{fontenc} \newcommand\dblgr{\setbox0=\hbox{x}% \setbox2=\hbox{\raisebox{-\ht0}{\{}\kern-2.7pt\{}}}\dp2=0pt\box2} ...

5

You can use font={\usebeamercolor[fg]{block title}}. The reason for using font here is that \usebeamercolor as I understand it essentially inserts a \color{<color name>}, so you cannot use it as a colour name directly. \documentclass{beamer} \usepackage{tikz} \begin{document} \frame{ \begin{tikzpicture} \draw (0, 5) node (n1) ...

1

I don't have a bib file available, so I called \chapter*{\bibname} directly. \documentclass{book} \usepackage{showframe} \begin{document} \bgroup% make changes termporary \makeatletter \def\@makeschapterhead#1{% %\vspace*{50\p@}% \vspace*{25\p@}% {\parindent \z@ \raggedright \normalfont \interlinepenalty\@M %\Huge \bfseries ...

4

Document The font iwona does not contain an alternative for the ampersand. Therefore, a different font is needed for this symbol, when the more common form is preferred. The following example uses the ampersand from the CM Bright fonts (also package cm-super should be installed). Two alternatives are in the comments. \documentclass[a4paper,12pt]{article} ...

0

Changing the font in this way doesn't instantly affect the Persian script. After that, you need to close the TexStudio and reopen it so that the changes are applied on Persian!

5

\documentclass{article} \usepackage{fontspec} \newfontface\grmusic{Musica.ttf} \begin{document} Greek music symbols: \grmusic \char"1D200 \char"1D201 \char"1D202 \char"1D203 \char"1D204 \char"1D205 \char"1D206 \char"1D207 \end{document} Alternative fonts are: Aegean, Alexander, ALPHABETUM Unicode, Aroania, Avdira, Cardo, EversonMono, and New Athena ...

0

\documentclass[10pt,a4paper,titlepage]{book} \usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{showframe} \usepackage{cases} \usepackage{graphicx} \begin{document} \noindent \resizebox{\linewidth}{!}{\parbox{1.15\linewidth}{% \begin{subnumcases}{} ...

1

The difference between the begin and end is that \{ picks up the current font which is typically roman at the start but monospace by the end. Clearly that's not intended, here I change both begin and end lines to move the braces inside the scope of the font change. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} ...

2

Three solutions: use the \medmath command from nccmath: it reduces the size to about 80 % of \displaystyle, replace subnumcases by an align environment inside subequations. The brace can be obtained as an option of the empheq environment, and the long line will be split with either aligned or multlined (from mathtools, which is loaded by empheq): Code: ...

1

You can easily obtain a horrible document mixing Utopia as text font and Palatino (mathpazo) for math by doing \documentclass{article} \usepackage[T1]{fontenc} \usepackage{mathpazo} \renewcommand{\rmdefault}{put} \usepackage[math]{blindtext} % just to produce mock text \begin{document} \blindmathtrue \blindmathpaper \end{document} Even more ...

2

The package cmbright doesn't make sense with XeLaTeX/fontspec, because it loads legacy fonts. You can use the CM-Unicode version of CMBright. \documentclass[10pt,a4paper]{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{french} \setmainfont{cmunb}[ Extension=.otf, UprightFont=*mr, ItalicFont=*mo, BoldFont=*bx, ...

2

Well, I'm not sure but I think package lmodern should be part of the basic installation of MiKTeX. Please see the following image. I called the MiKTeX Package manager and filtered for lm (Latin Modern). Then you can see if Latin Modern is instaled, if you see an date in column installed. BTW: Do not forget to call package lmodern to activate Latin Modern ...

0

I will answer this question of my own for documentation purpose: MikTeX by default doesn't come with any scalable fonts that pdfTeX is happy with - who knows exactly what makes pdfTeX happy except cm-super... When using MikTeX, if encounter auto expansion is only possible with scalable fonts error, install cm-super fonts family, execute initexmf --mkmaps ...

2

Looks like the default monospaced font is used in texshade, so all you need is to add \ttfamily at the start of adjustwidth. I also had to add \usepackage[T1]{fontenc} to get an exact match.

6

You will get these warnings if you are using option fontsize=16pt before setting a scalable font. To avoid the warnings you can load package fix-cm before the document class. Then the default font will be also scalable. \RequirePackage{fix-cm} \documentclass[fontsize=16pt,DIV=calc]{scrbook} \usepackage{ebgaramond} \begin{document} Textt \end{document} ...

1

Answering my own question : this is brand new. This page points to something called TeX Gyre DejaVu Math (OTF), version 1.106. The archive is dated May 16, 2006, the font and documentation being dated May 8, 2016. The font is now named "TeX Gyre DejaVu Math", contrasting with the text fonts, which are named Deja Vu xxx, xxx being Serif, Sans or Sans Mono. ...

1

First of all, let's get away with the SizeFeatures option. If you declare \setmainfont{Zapfino}[ SizeFeatures={Size=20}, % ... other options ... ] you're basically telling to use size 20 independently of the context. If I do it and ask for \fontsize{30}{36}\selectfont, I get LaTeX Font Warning: Font shape `EU1/Zapfino(0)/m/n' in size <30> not ...

3

You can use etoolbox to insert commands at the begin of the document. It will not work for arbitrary font commands, as floats resets the fonts at the begin, but a change of familydefault will work: \documentclass{article} \usepackage{rotating,lipsum} \usepackage{etoolbox} \AtBeginEnvironment{sidewaystable}{\renewcommand\familydefault{mdput}} ...

2

As it happens, the stylistic alternative sets are not accessible as a font feature. If the code chosen as the answer to this question is run for Gentium Basic, the following features are discovered: aalt, ccmp, mark, mkmk. Running the same code with Gentium Plus results in: aalt, c2sc, ccmp, kern, mark, mkmk, smcp, liga, ss01, ss04, ss05, ss06, ...

0

Something like this? \documentclass[8pt,a4paper]{article} \usepackage{fontspec} \usepackage{microtype} \newfontfamily\csa{Dekar} \newcommand{\abc}[1]{% % \begingroup\csa\footnotesize\textls[130]{#1}% \endgroup} \begin{document} Hello Kitty \abc{DIN 103} by Sanrio. \end{document} And related, see this wonderful answer: Grouping and ...

2

The error you get is ! Undefined control sequence. \abc ...{#1}\endgroup \normalfont \normalfontsize l.14 Hello Kitty \abc{DIN 103} by Sanrio. that means the undefined control sequence is \normalfontsize. On the other hand, you don't need to restore the font and its size, because the group already limits the ...

3

The problem is not related to standalone. You need it as your input has a preamble but you would get a similar problem with a normal input. The problem is the \subimport* command. It changes the search pathes and so files in the texmf-tree are no longer found. This is normally not really a problem as you seldom input files from there in the document body. ...

2

A crude workaround is the redefinition of the symbols using the literate feature. It comes with some limitations: Every upright symbol needs to be replaced. Symbols inside keywords, ... are not recognized. Italic correction is not applied between slanted and upright text. Example: \documentclass{article} \usepackage[english]{babel} ...

4

Make the \ttfamily font available to the main document, which I did by typing \setbox0=\hbox{\ttfamily} as the last thing in the preamble, which leaves the document in \rmfamily while loading the \ttfamily. There may be more official ways of providing for a font family. With Xelatex for example, \usepackage{fontspec} \newfontfamily{\ttfamily}{Courier New} ...

0

While it is possible to use these fonts with lualatex (by using the correct fontencoding and not using fontspec) I wouldn't recommend it. The hyphenation will be wrong and you will get problems with non-ascii-chars like umlauts. If you want to switch to lualatex do it properly and use open type fonts. If you want to try it out do it like this: ...

0

Your tex file looks wired. My code for including fonts did always look different from that. Dante has a good fontspec example on their ftp. ftp://ftp.dante.de/tex-archive/macros/latex/contrib/fontspec/fontspec-example.tex \documentclass{article} \usepackage{fontspec} \setmainfont{TeX Gyre Pagella} \setsansfont{TeX Gyre Heros}[Scale=MatchLowercase] ...

3

In the first case (an 8-bit engine), the set up \newunicodechar{∫}{\int} uses active characters to make the multi-byte sequence ∫ expand to the control sequence \int. It is that which is therefore important. A quick \show reveals that \int expands to \intop\nolimits and that \intop is defined (\mathchardef) as \mathchar"1352. That's then the 'raw' ...

1

Redefine the command: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathpazo} \usepackage{textcomp} \renewcommand{\textuparrow}{$\uparrow$} \begin{document} \textuparrow \end{document} You can change the error into a warning by loading the package with the warn option. \documentclass{article} ...

4

You don't need map, enc, tfm, vf. xetex has the necessary code to extract the information built-in, for luatex you need a fontloader like e.g. luaotfload. You normally also don't need fd-files. fontspec tries hard to guess which font or font feature is needed for some font shape and then builts the NFSS-structure on-the-fly. But it can fail, that's why ...

1

Here is an suggestion which needs KOMA-Script version 3.20 or newer. No additional toc package is needed. \documentclass{scrartcl}[2016/05/10] \usepackage{fontspec} \setmainfont[Numbers=OldStyle]{Cambria} \setsansfont{Calibri} \newfontfamily\NoOldStyleNumsSerif{Cambria} \newcommand\tocmainfont[1]{% \NoOldStyleNumsSerif #1% } \RedeclareSectionCommands[ ...

2

URW's LetterGothic can be installed using the getnonfreefonts scripts. Download the scripts from here. Follow the instructions to unzip the archive and install the script using texlua. Use sudo getnonfreefonts-sys to install the fonts on your system. Important: do NOT use getnonfreefonts. ONLY use getnonfreefonts-sys. The installation provides both ...

6

I don't think that uarial is a good choice. It is a rather curious mix between Arial and Helvetica. As you can see in the following picture the "C", "t" and "a" are from Helvetica, while the "G" and "R" is from arial. Also as you discovered the metrics are not really good. It is naturally possible to correct this by manipulating the tfm, but I don't think ...

2

For correct typesetting, it should be italic. See the other answers and comments with links. Leave as is and you are correct. This is a feature of rather recent versions of mhchem. You do not get math font! \ce{NO_x} will render NO in upright text font and x in italic text font. Try another text font (for instance \sffont) and you'll see. Put the ...

3

\ce{NO_{\text{x}}} does the trick! MWE \documentclass{article} \usepackage{mhchem} \begin{document} \ce{NO_{\text{x}}} \end{document} BUT: The x shall be italic!

1

it's often possible to isolate or "quarantine" special settings by hiding them in a group. braces {...} will do this, but i find it much easier to read \begingroup .... \endgroup this will not work for changes that are made globally. fortunately, in this case, font resettings are local.

2

It seems indeed that the the cyrillic glyphs were removed from the last available for download on the GUST.org version 2.004. An older version is available for download on fontsquirrel. Original answer, not correct I have recently run into a similar problem. I was surprised to learn from the ArTourter answer that the Cyrillic glyphs were removed due to a ...

1

The package Libertine (as of the version published on february 11, 2014) provides the \useosf command, which, if used after loading the math font, sets old-style figures only for text (including headers). \documentclass[12pt]{memoir} \usepackage{textcomp} \usepackage[T1]{fontenc} \usepackage{libertine} \usepackage[libertine]{newtxmath} \useosf ...

1

Short answer: 'no'. Longer answer: As you are using a shared/managed (La)TeX installation you can only use the font files that are included as part of the set up. You can't run the script getnonfreefonts on the server so you cannot use those fonts.

3

classically ! is mathclose but unicode math sets it as mathpunct which makes two adjacent ones have \thinmuskip between them. You can use {!}{!} to avoid that. Unicode has a !! character which unicode-math makes available as \Exclam but unfortunately it's not in this font, the log shows Missing character: There is no ‼ (U+203C) in font ...

0

As structure is used as parent of many elements, you might have to redefine more than just the frametitle. \documentclass{beamer} \setbeamerfont{structure}{shape=\itshape} \setbeamerfont{frametitle}{shape=\normalfont,size=\Large} \begin{document} \begin{frame}{Title} \begin{itemize} \item \structure{make me italic!} \item \structure{me too!} ...

Top 50 recent answers are included