# Tag Info

## New answers tagged fonts

3

You can use tocloft and its \cftXfont family of commands: \documentclass[a4paper,12pt]{book} % Packages \usepackage[english]{babel} \usepackage{blindtext} \usepackage{titlesec} \usepackage[titles]{tocloft} \titlespacing*{\chapter}{0pt}{-50pt}{20pt} \titleformat{\chapter}[display]{\normalfont\scshape\huge\bfseries}{\chaptertitlename\ ...

2

The standard package pifont provides three Christian-style crosses and the Star of David. I could do with a crescent for Islam, as well, and some other things but am not sure where to find them right now: \documentclass{standalone} \usepackage{pifont} \begin{document} \ding{61} \ding{62} \ding{63} \ding{65} \end{document} wasysym offers an alternative ...

4

You should install all packages in the texlive family that bear the name recommended; in general I recommend a full install, so these problems are solved at the beginning. However, the package that contains the source for the European Modern fonts are installed by sudo apt-get install texlive-fonts-recommended This should get you in synch. However, this ...

3

use \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage{amsfonts} ...

1

TeX Gyre Pagella does not support Greek. This is true of the opentype fonts as well as the type1 variants. It is true that the fonts include Greek glyphs but these do not constitute support for typesetting Greek text. Many fonts, especially those designed to support mathematics, include some Greek characters even though they are not designed to typeset Greek ...

1

Using \usepackage[bitstream-charter]{mathdesign} makes your entire document conform to the mdbch font family. To adjust the boldness of your ToC/LoT/LoF titles, you can add \renewcommand\cfttoctitlefont{\normalfont\Huge\mdseries} \let\cftlottitlefont\cfttoctitlefont \let\cftloftitlefont\cfttoctitlefont to your preamble. The first command adjusts the ...

3

If you have no objections to use xelatex, you can try the FakeBold option of fontspec. See the following example: % !TEX program=xelatex \documentclass{article} \usepackage{fontspec} \newfontfamily\darktt[AutoFakeBold=2.5]{Latin Modern Mono} \newfontfamily\blacktt[AutoFakeBold=5]{Latin Modern Mono} \def\test{abcde ABCDE} \begin{document} ...

5

Just to ease you to choose the better font conveniently. Apparently, I have made it several decades ago, here (click). \documentclass[preview,border=12pt,multi]{standalone} \usepackage{filecontents} \begin{filecontents*}{template.tex} \documentclass[preview,border=12pt,12pt]{standalone} \usepackage[T1]{fontenc} \usepackage{\fonttouse} ...

2

Use \usepackage[T1]{fontenc} \usepackage{kpfonts} \usepackage[utf8]{inputenc}

0

Ok, I managed to get somewhere, but not sure how correct it is. Basically, it's all about setting basewidth=, but to a correct value, which I've obtained by using \widthof from package calc. Now, the problem is that we must have an expandable macro for basewidth= - and also, I think when basewidth= is processed, the {lstlisting} environment still doesn't ...

0

With xelatex, the definition of fonts is done this way (at least I do it this way): \usepackage{xltxtra} \setmainfont{Palatino} \setsansfont{Tahoma} Concerning the titles, you're right by using the sectsty package. But there is a more efficient way to define the font to use for all title or just for chapter. \usepackage{sectsty} % Allows your to ...

1

Run with pdflatex or xelatex. It works with both. \documentclass{scrartcl} \usepackage{ifxetex} \ifxetex \usepackage{unicode-math} \newfontfamily\fTitle{Arial} \setmainfont{TeXGyreBonum-Regular} \setsansfont[Scale=0.95]{TeXGyreHeros-Regular} \setmathfont{TeXGyreBonumMath-Regular} \else \usepackage[T1]{fontenc} \usepackage[scale=0.95]{tgheros} ...

1

I suppose that you load the marvosym and awesome packe not before fontspec. This works without a problem with lualatex (up-to-date TL2014): \documentclass{article} \usepackage{fontawesome} \usepackage{marvosym} \usepackage{fontspec} \usepackage{libertine} \usepackage[english]{babel} \begin{document} \sffamily foo \Telefon\ from MArvoSym, \faInfoSign\ and ...

0

When facing such a problem some time ago (in my case, the main font was not recognized at all by the printer), I decided to convert all fonts to curves. Of course, this blows up file-size (can be more than ten times the original size), and the resulting pdf is no longer a good choice for on-screen reading, but printing on paper is absolutely safe. Although I ...

3

Monospaced fonts usually set up two features: no hyphenation, and no stretching or shrinking of the interword spaces. Courier, selected by \usepackage{courier} is no exception. The reason is that enabling hyphenation or flexible interword space would have undesired effects on listings, which are the main use for monospaced fonts. Moreover, long texts in ...

0

I would like to point out the following site: http://math.stanford.edu/~jyzhao/latexfonts.php Also, you can make your own true-type font in font forge. Using svg files with font forge and the above link, you should be able to easily create and use your own font. Make sure to follow the instructions on the above site precisely: actually make a copy of your ...

3

With utf8 the Unicode character € is mapped to \texteuro, which requires textcomp. The definition of \texteuro is \DeclareTextCommandDefault{\texteuro} {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro} If the TS1 font for the current family is known not to have the Euro symbol (that is, it belongs to class 5), the glyph is faked by means ...

7

LaTeX does not need to check anything, the T1 encoding doesn't include euro by definition. It is in the TS1 encoding (as used by textcomp) and of course in the EU1 and EU2 encodings used by lua and xe latex.

3

You can make your life easier if you could switch to xelatex or lualatex: \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage{libertine} \usepackage[polutonikogreek,english]{babel} \begin{document} The starting verse of the Iliad is \begin{quotation} Μῆνιν ἄειδε, θεά, Πηληιάδεω Ἀχιλῆος \end{quotation} and it's really great. \end{document} ...

5

It's a good question, because the issue can happen to other users. For several years, the only practical way for inputting Greek was through a transliteration table (a for alpha, b for beta, 'a for alpha with tonos and so on). TeX Live 2012 included the lgrx package that allowed direct UTF-8 input of Greek, so that a UTF-8 document like ...

4

You can use these icons (that are part ot the font since version 4) with this code : \documentclass[a4paper, 12pt]{article} \usepackage[x11names]{xcolor} \usepackage{array} \usepackage{fontspec} \setmainfont{Minion Pro} \usepackage{fontawesome} \def\faSkype{\FA\symbol{"F17E}} \def\faLinux{\FA\symbol{"F17C}} \def\faTh{\FA\symbol{"F00A}} ...

3

As Paul Gessler suggested, you can use \text{} instead of \mathrm{} when you want upright rather than specifically roman text. Since you are using beamer, you don't even need to load any additional packages: \documentclass{beamer} \begin{document} $abc\text{abc}$ \end{document} If you are producing an article version as well, you obviously want TeX to ...

0

Uninstalled all previous installed texlive packages and installed texlive-full. Now everything works fine. Thanks.

1

\documentclass{beamer} \usefonttheme{professionalfonts} \begin{document} $abc\mathrm{abc}$ \end{document} Then beamer doesn't change the math fonts.

2

You get what you ask for: Roman text. For advice on this, see Equivalent of \mathup for upright text in math mode?

1

A redefinition of the internal \@makechapterhead: \documentclass[a4paper,12pt,twoside,openright]{report} \usepackage[T1]{fontenc} \usepackage{mathptmx}%% Instead of times which is obsolete \makeatletter \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne ...

1

Full Computer Modern Math collection is available here as .otf files for use in any non-LaTeX programs suporting OpenType fonts. Same web page have also Computer Modern available.

4

Summarizing and combining the comments that have been posted so far, the following setup may work for you. It assumes that you're using pdfLaTeX and that you have a reasonably current TeX distribution. (If you use XeLaTeX or LuaLaTeX, different instructions would apply for the font-loading portion of the preamble.) There's one crucial piece of information ...

1

I only see the condensed light (cl) series in the opensans sample pdf. You can set your title font to this using \setbeamerfont{frametitle}{series={\fontseries{cl}}}

4

Ok, so I found the answer to my own question. It turns out I was pretty close: \setmainfont[SizeFeatures = {{Size = -8, Font = <Font_A>}, {Size = 8-12, Font = <Font_B>}, {Size = 12- , Font = <Font_C>}}]{<Typeface>} produces exactly what I wanted.

2

An example for HelveticaNeue-Light \documentclass{article} \usepackage{fontspec} \setmainfont[ ItalicFont = HelveticaNeue-Italic, BoldFont = HelveticaNeue-Bold, BoldItalicFont = HelveticaNeue-BoldItalic]{HelveticaNeue} \newfontfamily\NHLight[ ItalicFont = HelveticaNeue-LightItalic, BoldFont = HelveticaNeue-UltraLight, ...

3


3

I’m not sure that I understand your question; is it the exact form of the vowel mark in the name of God that concerns you? If so, see pp. 21 and 27 of arabdoc.pdf for getting the “dagger alif” in arabtex. I don’t know whether you can get it in arabtex without using the ASCII input notation. In arabxetex, you can get it, at least in some readily available ...

4

Assuming this is just an exercise, the trick is to load define a font specification for the font you intend to use. We can read the file t1txr.fd and use the data slightly modified: \documentclass[11pt,a4paper]{article} \DeclareFontFamily{T1}{txrnumbers}{} \DeclareFontShape{T1}{txrnumbers}{m}{n}{<->s*[1.2]t1xr}{} ...

3

You can have only upright greek letters: \setmathfont[math-style=upright,vargreek-shape=unicode]{Neo Euler}

3

Here, I build my own, by taking the \pounds from the CM font and overlaying the crossbar with white rules. EDITED to handle different text and math sizes. \documentclass[12pt]{article} \usepackage{xcolor,stackengine} \def\cobham{\ifmmode% \mathchoice{\xcobham}{\xcobham}{\scriptsize\xcobham}{\tiny\xcobham}% \else% \xcobham% \fi} ...

Top 50 recent answers are included