# Tag Info

0

The warning appears with fontspec version 2.7h, but disappears with version 2.7i (just downloaded). However, you should be using \symbf{R}.

0

A good sans-serif companion for Palatino is Optima (also available as the clone URW Classico). A math font that matches Palatino well is Euler. All three fonts are by the same designer. Some ways you can get them: If you can use LuaLaTeX or XeLaTeX, you can load unicode-math, set the Roman font to Palatino (TeX Gyre Pagella), the sans-serif font to ...

0

The different font families were designed to have an harmonious, pleasing look when used together. Don't mix willy-nilly. Take a look at Peter Wilson's "A few notes on book design" (available as memdesign on CTAN). Typesetting is an art and a profession with it's rules, product of literally centuries of experience. Yes, you can break the rules, they aren't ...

1

There are international symbols (characters) for phonetics. Check e.g. the "The Comprehensive LaTeX Symbol List" on CTAN. You'd probably need to get/install/configure special fonts for this.

4

The text font seems to be similar to Palatino, which can be used with the newpx package, and the math font seems to be the standard computer modern. To change only the text font, you can load the package newpxtext. For example, using the following code \documentclass{article} \usepackage{newpxtext} \usepackage{amsmath,amssymb,amsthm,mathrsfs} \theoremstyle{...

3

Build your own. The IPA Extensions Unicode block has ɐɑ in it (U+0250 and U+0251). Turning ɐ upside-down (that old trick!) will do it. You need a font with IPA Extensions, and the \rotatebox command from the graphicx package. MWE \documentclass{article} \usepackage{graphicx} \usepackage{fontspec} \setmainfont{Noto Serif}%Charis SIL}[StylisticSet=5] ...

8

You could switch to a font that is made for this use case, e.g. Charis SIL. It has wide Unicode support including IPA and it has a stylistic style set for switching to a two-story italic a. Example: \documentclass{article} \usepackage{fontspec} \setmainfont{Charis SIL}[StylisticSet=5] \begin{document} aáäå \textit{aáäå} [ʃ ʒ] [ɕ ʑ] [ʂ ʐ] \end{document} ...

2

I have used, instead, an old package called romanbar package to write roman numbers where you can see also the macro of the user @egreg that it is the same of the link of the comment below the question, Here there is my small code: \documentclass[12pt,a4paper]{article} \usepackage{newtxtext}%%%%%%%%%%%% <----optional (it gives a best view of ...

5

If I try this code \documentclass{article} \usepackage{mathptmx} \def\Q{{\fontfamily{ybv}\selectfont Q}} \begin{document} Q\Q \end{document} I get the following warning on the console LaTeX Font Warning: Font shape OT1/ybv/m/n' undefined (Font) using OT1/cmr/m/n' instead on input line 8. It means that Baskervald is not available in ...

0

Hi @TeXnician I really do not try to give a satisfactory answer, but making some small modifications to your file % arara: lualatex: { shell: yes } \documentclass{article} \usepackage{fontspec} \setmonofont{Fira Code}[ Contextuals=Alternate % Activate the calt feature ] \usepackage{minted} \begin{document} \begin{minted}{java} if(a<=b) return null;...

1

Thanks to Steven's inspiring answer, the following is exactly what I need: \newif\ifPublicPrinter \PublicPrintertrue \ifPublicPrinter \PassOptionsToPackage{draft}{graphicx} \fi \documentclass[addpoints]{exam} \usepackage{luacode,fontspec} \usepackage{graphicx} \usepackage{unicode-math,siunitx} \ifPublicPrinter \setmainfont{redacted-script-regular.ttf} \...

3

It is not fully clear the extent and purpose of your desired output, so I take a stab and will await feedback on what you really want. What I do here is replace every catcode 11 token with example-image that is stretched and scaled to take up the same footprint as the original letter. As to figures, I redefine \includegraphics to always output a generic ...

1

Koma-script allows you to set the main font to an arbitrary size, and scales the other dimensions appropriately. You can change \documentclass[12pt,twoside, openright]{report} to either \documentclass[twoside, openright, fontsize=13pt]{scrreprt} or to \documentclass[twoside, openright]{report} \usepackage[fontsize=13pt]{scrextend} There is a fixed ...

2


5

To answer question 1: All (or at least most) \mathXX are internally the same a, they only look different as they are from different fonts. The sym-variants are different symbols with different unicode code points. You can see the difference if you try to copy and paste from a pdf. \documentclass{article} \usepackage{unicode-math} \begin{document} \$\mathrm{a}...

6

Jut adjust the tolerances for stretchy delimiters: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{stix2} %\linespread{1.02} \delimiterfactor=900 \delimitershortfall=8pt \begin{document} \begin{pmatrix} 0 & 0 & 0 \\ 0 & 0 &...

0

Things have changed since I asked this question. The solution provided by asanka.code using BhashithaComplex font worked except for the missing "A" in ICTA. I have experimented with several fonts, namely; iskpota, Sinhala Sangam MN, macbashitha, and again with BahashithaComplex. The best font to use at the moment is iskpota.ttf. The following is the ...

8

I would guess that you have done something equivalent to this \documentclass{article} \usepackage[T1]{fontenc} %\usepackage{textcomp} \providecommand\textdegree{\ensuremath{^\circ}} \begin{document} 3\textdegree \end{document} which uses \textdegree if it is available, in which case you get But if \textdegree is not defined, it is faked using a math ...

0

I was able to fix the problem by specifying the file name of the font. \font\bf="[cmunsx]" at 14pt \font\rm="[cmunss]" at 11pt \font\tt="[cmuntt]" at 11pt

-1

For Alpine Linux, since the package ttf-font-awesome only has Font Awesome 5, you need to manually download Font Awesome 4 from https://github.com/FortAwesome/Font-Awesome/blob/v4.7.0/fonts/FontAwesome.otf and place it in folder /usr/share/fonts/X11/OTF. You can replace the tag 4.7.0 with latest release in 4.x branch.

1

The declaration \fontsize{9}{10.8} doesn't take effect until \selectfont is issued. This happens in the theorem, but not in the text above it. \documentclass{book} \usepackage{bookman} \usepackage{amsthm} \newtheoremstyle{break} %{\topsep}{\topsep}% {8pt} {8pt} {}{}% {\bfseries}{}% {\newline}{}% \theoremstyle{break} \newtheorem{test}{Test} \...

1

I would like to suggest that until the maintainer of the ebgaramond package provides an update to make it compilable under the latest versions of LuaLaTeX and XeLaTeX, you either follow Ulrike's suggestion and issue the instruction \let\swshape\undefined before loading the ebgaramond package or load the font via the fontspec-\setmainfont route. An ...

3

Here there is my MWE with the correct sub/superscripts. EDITS: By correct comments of the users. \documentclass[a4paper,12pt]{article} \usepackage{newpxtext,newpxmath} \usepackage{mathtools} \usepackage{xcolor} \begin{document} $\vec{x}^2_2$ $(\vec{x})^2_2$ $\left(\vec{x}\right)^2_2$ $\left\lVert\vec{x}\right\rVert^2_2$ \[\textbf{Improved ...

5

\documentclass{article} \usepackage{stackengine} \setstackEOL{\\} \newcounter{tmpctr} \newcommand\fancyRoman[1]{% \setcounter{tmpctr}{#1}% \setbox0=\hbox{\kern.2pt\textsf{\Roman{tmpctr}}}% \setstackgap{S}{-.6pt}% \Shortstack{\rule{\dimexpr\wd0+.1ex}{.7pt}\\\copy0\\ \rule{\dimexpr\wd0+.1ex}{.7pt}}% } \begin{document} Fancy Romans: 1--5: ...

0

I'm posting another answer because it's quite different to the other answers. Currently other answers to this question suggest using XeLaTeX or LuaLaTeX to get the desired Old English font, or pdfLaTeX to use a substitute font. This answer suggest two methods which rely on Microsoft Word to generate a suitable pdf, and then use standard packages or tools to ...

1

Edited after OP's clarification. For example, the inner names are: The word Abstract is of the family TTdcbx10. Then This paper analyzes is of the family TTdcr10 https://en.fontke.com/font/23640064/

3

In the new latex \itshape and \scshape has been splitted. They can now (if the font has the shapes) be set independently. This change means that \updefault only describes the slant (up). The new command \normalshape can be use to reset both. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} { \itshape Abc \scshape Abc ...

3

You are redefining \familydefault to be equal to \sfdefault. This means that polyglossia is looking for a sans serif cyrillicfont. You can set it up with \newfontfamily\cyrillicfontsf{Arial}[Script=Cyrillic] It would be probably also a good idea to setup \cyrillicfonttt for the typewriter font.

1

If you look into concmath.sty you will find a line \renewcommand{\rmdefault}{ccr}. This gives you a clue about the family name of the font. \documentclass{article} % \usepackage[T1]{fontenc} \newenvironment{concmath}{\fontfamily{ccr}\selectfont}{\par} \begin{document} The font of this text must be remained as it is by default. \begin{concmath} ...

3

The package is in texlive and so overleaf so you don't need to do anything special, this just tries an example from the package manual. \documentclass{article} \usepackage{allrunes} \begin{document} zz \textarc{Aabcdefg} zzz \end{document}

3

I was wondering how to get the 'Insert Table X here' in the main text. Something like this? \documentclass{article} \usepackage{lipsum} % filler text \usepackage[colorlinks,allcolors=blue]{hyperref} \usepackage[nameinlink,capitalize]{cleveref} \newcommand\PlaceInsert[1]{% \begin{center} \framebox{Insert \Cref{#1} here.} \end{center} \bigskip} \...

2

I have extended your MWE so that it is compilable by adding `documentclass{article} as the first line. % fontprob.tex SE 527806 local font change \documentclass{article} % added \usepackage{concmath} \usepackage[T1]{fontenc} \newenvironment{concmath}{\fontfamily{concmath}\selectfont}{\par} \begin{document} The font of this text must be remained as ...

0

You need to adjust the bold math variant \SetSymbolFont{operators}{bold}{OT1}{cmr} {b}{n} Thi swill affect operators like \log and \mathrm generally and make it use bold rather than bold extended. The bold math italic font in your last example is wider as math italic has wide sidebearings to make adjacent letters appear as a product of variables rather ...

1

In your Update, to apply the font to all the math text/symbols/numbers you can add the following setmathfont commands: \ifPublicPrinter \setmainfont{redacted-script-regular.ttf} \setmathfont{redacted-script-regular.ttf} \setmathfont[range=\mathup/{num}]{redacted-script-regular.ttf} \setmathfont[range=\mathrm]{redacted-script-regular.ttf} \setmathfont[range=\...

2

In PDFTeX My recommendation is to use a modern engine and Unicode when you can, and legacy fonts when you have to. (Although not everyone agrees.) In this case, you say you have to. Pick a blackletter font you like from the LaTeX Font Catalogue, and that’s available from CTAN in Type 1 format. For example, Gotik should work. If your TeX Live ...

2

The OP has indicated in comments that Microsoft Office is installed, the desired Old English font is named Old English Text MT and it is included with Microsoft Office. % Compile using XeLaTeX % Name the file university.tex % for example \documentclass{standalone} \usepackage{fontspec} \setmainfont{Old English Text MT} \begin{document} \fontsize{24pt}{28....

0

Your question is very opinion based, since there is now way of telling, what you consider good looking. Instead of answering the unanswerable question, I will rather show you where to find fonts, and how to use them. You should use monospaced fonts for code. You can find some in the LaTeX Font Catalogue. Usually you can just copy the code from the example ...

0

Thanks to this answer from another question I managed to solve this problem just by changing the sisetup to the following: \sisetup{number-math-rm=\ensuremath,text-rm=\rmfamily,unit-mode=text} Some fonts aren't set up for the default \mathrm to work, and apparently Minion Math (and Asana Math) when used in conjunction with Arno Pro is one of them.

-1

I finally figured out the issue. I commented out \usepackage{newtxsf} and now it works. I have no idea why.

0

The GhostScript installation on your system is incorrectly configured. Your test.eps clearly states that Helvetica should be used but is not included: %%DocumentFonts: Helvetica The test-eps-converted-fto.pdf still claims that Helvetica is used: pdffonts test-eps-converted-to.pdf name type encoding emb ...

3

The Type1 font file ugmr8a.pfb, which is used by mathdesign with the urw-garamond option, comes with the garamond package. This means you can fix this issue using: sudo getnonfreefonts --sys garamond I have both garamond and garamondx installed, and your sample code works without problems for me. Concerning bold italic math: the bm package still works ...

0

It includes the .afm files and you have the free converter tool afmtopfm, available here.

6

You need neither amsfonts nor amssymb when you load newtxmath, that covers everything the two packages do. Since newtxmath loads amsmath; if you want to pass options to amsmath, load it earlier. \documentclass{article} \usepackage[T1]{fontenc} %\usepackage[utf8]{inputenc} % unnecessary for releases 2018 and later of LaTeX \input{glyphtounicode} \...

2

\documentclass{article} \usepackage[T1]{fontenc} \input{glyphtounicode} \pdfgentounicode=1 \usepackage{newtxtext} \usepackage[centertags,intlimits,namelimits,sumlimits]{mathtools} \usepackage{amssymb} \usepackage{newtxmath} \begin{document} $$f \colon \mathbb{R} \to \mathbb{R}$$ such that \begin{align*} f(25) &= f(5^2) \\ &= f(3^2 + 4^2) \\ ...

2

With lualatex the combining accent more or less work (the placement is not perfect) \documentclass{book} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Linux Libertine O} \begin{document} \textsc{Test: \emph{Shōchū Sho^^^^0304chu^^^^0304}} \end{document} With xelatex (or harf mode) harfbuzz interferes and replaces the ...

0

I ran into the same error message when trying to compile a larger document with lualatex. I had initially written this document for pdflatex, so I was still using \usepackage[T1]{fontenc} in my preamble. Switching to fontspec, i.e. something like \usepackage{fontspec} \setmainfont[Mapping=tex-text]{Linux Libertine O} \setsansfont[Mapping=tex-text]{Source ...

3

You asked, Is there ... any other way to achieve the desired effect? The Stix Two Text font features smallcap/italic/letter-with-macron glyphs. The next two lines are produced with Linux Libertine O and Stix Two Text, respectively, while taking care to assure that the x-heights of the two fonts are equal. To be sure, Stix Two Text is a clone of Times ...

1

If you have figures (e.g. pdf files) generated from matplotlib then you have to change the setting of matplotlib as follow: import matplotlib matplotlib.rcParams['pdf.fonttype'] = 42 matplotlib.rcParams['ps.fonttype'] = 42 The reason is Python matplotlib uses type3 font by default. Follow this guy for more information -> http://phyletica.org/matplotlib-...

9

With the next latex (which will be released in a few days) you can do the following \documentclass{report} \DeclareEmphSequence{\bfseries,\itshape,\upshape} \begin{document} normal \emph{bold \emph{bold italic \emph{bold}}} \end{document} You can try it out already in a current tex system by using pdflatex-dev instead of pdflatex

1

On a recent TeX Live installation pandoc -V fontfamily:ClearSans -V fontfamilyoptions:sfdefault test.md -o test.pdf should work. To make sure that the right package is installed use the package manager tlmgr¹ tlmgr install clearsans Maybe you need to use sudo, depending on your installation

Top 50 recent answers are included