Skip to main content

New answers tagged

1 vote

Old LaTeX Template

The oldstandard font has a similar look to your image. Crucially, it also has an accompanying math font. The following example should be enough to get you started. Compile with lualatex or xelatex. \...
mbert's user avatar
  • 5,096
0 votes

Getting siunitx to use text numerals, but only when it isn't in a table

Here is an updated version of Mico's solution that: Ensures the lining number style of numbers is preserved in math mode Reflects the deprecation of \SI in favor of \qty \documentclass{article} \...
Christoph Thiede's user avatar
3 votes
Accepted

What is the default font used for code blocks

\documentclass{article} \begin{document} This is an inline \texttt{code} span. \begin{verbatim} This is a code block. \end{verbatim} \end{document} produces a terminal output and log that ends <...
David Carlisle's user avatar
5 votes
Accepted

Blank export using Garamond fonts

It makes little sense using XeLaTeX for a document using garamondx, because the fonts used by the package are only available in Type1 format. You can install them with getnonfreefonts, but they have ...
egreg's user avatar
  • 1.2m
2 votes

Looking for Math Font to match IBM Plex Serif / Sans

IBM has released official Plex Math fonts with full OpenType maths tables as of 30 August 2024. These may be used straightforwardly in XeTeX and LuaTeX with: % assuming \usepackage{plex-otf} is ...
SRSR333's user avatar
  • 598
2 votes

In my Tex file, this type of error show. So what i do to resolve it

No error at all. You're using txfonts and LaTeX just informs you that the default assignments for math fonts are overridden by the package. The key is LaTeX Font Info. Messages in the log file can be ...
egreg's user avatar
  • 1.2m
0 votes

Matching a polished, lighter and "shinier" font typeface

This short article (identifying a typeface) may be of interest to you. Small items like the differences in the "J"s in "Joshi", or the use of old-style numerals (compare the 5 in &...
bishopcranmer's user avatar
1 vote
Accepted

Font shape and size substitution error when using dingbat in the same document as esvect

stix uses \DeclareMathSizes{10}{10}{7.5}{6} But font U/esvect/m/n is not available in size 7.5pt. Uesvect.fd defines only some sizes: \DeclareFontShape{U}{esvect}{m}{n}{% <5><6><...
cabohah's user avatar
  • 15.6k
0 votes

Helvetica-font-not-embedded

I was able to solve the Helvetica font issue by using Adobe printer. Here are the instructions: https://github.com/ChunbiaoZhu/PDF-eXpress-check 1. open your pdf file, 2. select file -> print 3. ...
Giuseppe Silano's user avatar
1 vote
Accepted

How to deal with Bold Small Caps Cyrilic in chapter headers?

You need a sans serif font that, besides supporting Cyrillic (more precisely, the T2A encoding), has small caps. There aren't many, I'm afraid, actually one, namely Ysabeau In all cases, change the ...
egreg's user avatar
  • 1.2m
1 vote
Accepted

How to set a Cyrilic font for a single chapter

lmodern has no support for Cyrillic. You can choose the standard cmr family for it. \documentclass[a4paper,oneside]{book} \usepackage[T2A,T1]{fontenc} \usepackage[russian,english]{babel} \usepackage{...
egreg's user avatar
  • 1.2m
1 vote

Change operator math font with Arial set as the main text font

What do I need to do in order to change the operator font [to] Times ... Roman? The following answer borrows heavily from this answer by @egreg posted in early 2012. % !TEX TS-program = lualatex \...
Mico's user avatar
  • 519k
0 votes

Get rid of Type 3 fonts in PDF for manuscript

I encountered the same error while submitting a pdf in order to get it published. However, the itemize obeject created bitmap bulletpoints. These bulletpoints were of type3 and caused the error. Since ...
Jonas Friedrich's user avatar
3 votes
Accepted

Complex Ligatures in CMU Serif

Fonts aren't required to have any ligature you'd like to. New Computer Modern Roman has some more than CMU Serif. \documentclass{article} \usepackage{fontspec} \setmainfont{NewCM10}[ Extension=.otf,...
egreg's user avatar
  • 1.2m
10 votes
Accepted

How do I input box-drawing characters?

You want \usepackage{pmboxdraw} \documentclass{article} \usepackage{pmboxdraw} \begin{document} \begin{verbatim} NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 1.2T 0 ...
egreg's user avatar
  • 1.2m
1 vote

Use greek letters not as part of a math equation

With pdftex: \documentclass{article} \usepackage[LGR,T1]{fontenc} \usepackage[english]{babel} \begin{document} English \foreignlanguage{greek}{ελληνικά} English. \end{document}
Javier Bezos's user avatar
  • 10.8k
3 votes

Use greek letters not as part of a math equation

using lualatex, you can mix English and Greek texts: \documentclass{standalone} \usepackage[greek, english]{babel} \babelprovide[onchar=ids fonts]{greek} \babelfont{rm}{DejaVu Sans} \babelfont[greek]{...
ebcontrol's user avatar
  • 594
4 votes

What is the default font of report documentclass?

The report class has no “default font”. Several classes don't, actually. If the class (or some package you load) doesn't choose a main document font, you get the LaTeX default, which depends on the ...
egreg's user avatar
  • 1.2m
1 vote

What is the default font of report documentclass?

It is still unclear, what you are trying, because you don't need any \setmainfont{…} to have get the default font or to get any of the Latin Modern families like Latin Modern Roman. So maybe your ...
cabohah's user avatar
  • 15.6k
2 votes

how can I prevent fontinst introducing spurious spaces into fd files?

After finding missing files and editing them, I tried with fontinst from TL 2012 on and always the line \DeclareFontFamily{T1}{xxx}{\hyphenchar \font =\m @ne} was written. I see no reason for such ...
egreg's user avatar
  • 1.2m
3 votes

Having one math symbol be in a different font from the others

Before redefining a command, it’s very important to know what it does. If you run LaTeX on \documentclass{article} \usepackage{newtxtext,newtxmath} \show\sum in interactive mode, you'll be presented ...
egreg's user avatar
  • 1.2m
4 votes
Accepted

Having one math symbol be in a different font from the others

Have fixed the \sum symbol from the default cmex font family, you can change the font name whatever you like, and the MWE is \documentclass{book} \usepackage{newtxtext,newtxmath} \makeatletter \let\...
MadyYuvi's user avatar
  • 14.7k
5 votes

Does have subgather command like subequation? (elsevier format) (I wanna 1a,1b,1c)

You need to encase the gather environment in a subequations environment in order to change the numbering system of the equations in question from (1)-(2)-(3) to (1a)-(1b)-(1c) Three additional ...
Mico's user avatar
  • 519k
2 votes
Accepted

Why can't I use the emerald package on overleaf?

Look at the page on CTAN, namely https://ctan.org/pkg/emerald I add a screenshot: The license doesn't allow free distribution, so TeX Live cannot include it and Overleaf is based on TeX Live. ...
egreg's user avatar
  • 1.2m

Top 50 recent answers are included