New answers tagged

1

Sorry, but loading \usepackage{gfsbodoni} \usepackage{tgadventor} \usepackage[scaled]{berasans} \usepackage[bitstream-charter]{mathdesign} \usepackage{scholax} \usepackage{palatino} does not make sense. The packages do, for their main job, % gfsbodoni \renewcommand{\rmdefault}{bodoni}}% if loaded with the default option % tgadventor \renewcommand{\sfdefault}...


2

According to the package documentation of gfsbodoni the package defines the command \textbodoni{} for short texts and the environment \begin{bodoni}\end{bodoni} for longer texts. Both indeed work (note that I removed some deprecated options for scrbook): \documentclass[DIV=9,twoside=false]{scrbook} \KOMAoptions{DIV=last} \usepackage{gfsbodoni} \usepackage{...


2

As documented in section 2.4 of the manual: If you use the beamer class with the default font theme (which uses sans serif fonts) and with LuaTEX- ja, you might want to change default Japanese fonts to the gothic family. The following line changes the default Japanese font family to it: \renewcommand{\kanjifamilydefault}{\gtdefault} By default this will ...


0

You could use \big/ instead of / (see comments in slashed.sty). Add \declareslashed{}{\big/}{0.05}{0}{\partial} to the preamble, then \[(i\slashed\partial-m)\psi=0\] produces


2

The document seems to have been typeset with \usepackage[sc]{mathpazo} and \usepackage{eurosym}. The key to see this is to notice PazoMath and URWPalladio in the list below. If I run pdffonts on the mentioned PDF file, I get name type encoding emb sub uni object ID ------------------------------------ -----...


3

Font in the top (Cover and Abstract) is Times New Roman. and the rest is URW Palladio, check this page on Font Catalogue for details on setting it up.


1

You can use the blacklettert1 version of the Old German fonts to be able to use standard LaTeX commands. In particular, it enables breaking ligatures up with \/, \" for umlauts and \ss for eszett. It also lets you type your source file in German that a text editor can understand. (I’ve tested with UTF-8, but it should also work with older encodings ...


6

The yswab font has a bunch of ligatures, that we can inspect with tftopl yswab (LIGTABLE (LABEL C f) (LIG C f O 204) (STOP) (LABEL C s) (LIG O 72 O 215) (LIG C s O 201) (LIG C t O 202) (LIG C z O 32) (LIG C f O 203) (STOP) (LABEL O 42) (LIG C a O 212) (LIG C e O 221) (LIG C o O 232) (LIG C u O 237) (LIG C s O ...


7

For some reason, this works. I was inspired by this question: selnolig-package and round s (s:) in fraktur (yfonts). The two techniques shown arise, one from the cited question, the other from the cited answer. \documentclass[12pt]{article} \usepackage{yfonts} \DeclareTextSymbol{\rounds}{LY}{141} \begin{document} \noindent{\textbf{\textswab{\huge{\emph{...


0

Set "pgf.preamble" to: \usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[light]{kpfonts} See: How do I use kpfonts with fontspec?


1

What happens if you remove the preamble settings and change example.pdf to example.pgf?. Or is there a reason to use pdf-format? When I render something in Matplotlib that will be put into Latex, I always choose render with Latex and maybe set some basic settings like (sans-)serif and font size, and choose the output format to be pgf. Doing this and choosing ...


2

If you have some input method that can enter Devanagari into your source file, you should use Unicode. My own preference is babel in LuaLaTeX. (Here is one of several examples.) You can use either babel or polyglossia in either LuaLaTeX or XeLaTeX, and they will support any Devanagari font you could use in your word processor. If you want to use Latin-...


0

Although you don’t say what you’re trying to do, you might have an XY-problem. That is, if your actual goal here is to be able to display Assamese numerals that show as ASCII digits in your source, there are simpler ways to do it. This works in LuaLaTeX: \documentclass{article} \tracinglostchars=3 % Halt if a font cannot display a glyph. \usepackage[...


0

You have to localize the font change: \def\mapcommand#1{{\mapfnt\xxconvert#1@}}% <-- add braces! You can also consider this simpler implementation: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \newfontface\mapfnt{Charis SIL} \ExplSyntaxOn \NewDocumentCommand{\conversiontable}{m} { \tl_set:Nn \l_israt_convert_table_tl {...


1

You could download the Noto Serif Devanagari and Noto Sans Devanagari fonts (if you haven't already done so) from Google and compile the following test document under either LuaLaTeX or XeLaTeX. (Please note that I copied and pasted the string श्र ज्ञ ऋ ् ॆऽ straight from the title of the OP's posting.) Note that the option Script=Devanagari is needed by ...


0

R Studio Server uses LaTeX and the inconsolata font is missing (not found) in your LaTeX installation. Inconsolata is called: t1-zi4b. To install, you can execute: tlmgr install inconsolata updmap-user why updmap is needed? see here Rerefence: https://stackoverflow.com/questions/34524357/inconsolata-missing-to-build-r-vignette (in @farid-cheraghi answer) PS ...


1

Interesting puzzle. It happens that \footnote uses \@makefnmark that's defined by amsart.cls as \def\@makefnmark{% \leavevmode \raise.9ex\hbox{\fontsize\sf@size\z@\normalfont\@thefnmark}% } In your case, \check@mathfonts had only been done for \Huge, so \sf@size is the subscript size corresponding to it. This can be solved by issuing \check@mathfonts at ...


0

I find one way to this question by myself. We can solve the problem in the following ways: Delete the Digits option in \setallmainfonts command. Set the digits in the math environment to be YOURFONT(mine is Times) by the following codes. The crucial point is that you should know the ENCODING and ABBREVIATION for YOURFONT which the digits are in, for example,...


0

Load \usepackage{FiraSans} with appropriate scaling, followed by the font you want as your main font, such as lmodern in PDFLaTeX or newcomputermodern in LuaLaTeX or XeLaTeX. You will then be able to use the command \firaproportional to switch to Fira Sans within a group. You could also define the helper commands \DeclareTextFontCommand\textfira{\...


8

Your problem can be reproduced by the shorter code \documentclass{article} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{ebgaramond} \begin{document} Chapter, Глава, \textbf{Chapter}, \textbf{Глава} \end{document} which results in The trouble is that ebgaramond with pdftex does not support the T2A ...


1

\documentclass{article} \usepackage[defaultfeatures={Ligatures=TeXOff}]{libertinus-otf} \begin{document} \begin{verbatim} "Test" Coding ligatures: ^= 1 != 0 \end{verbatim} \setmonofont{CascadiaCod3-Light.otf} \begin{verbatim} "Test" Coding ligatures: ^= 1 != 0 \end{verbatim} \end{document}


2

\documentclass{amsart} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node at (0,0) {$\mathcal{R}$}; \node at (1,0) {$\mathbb{R}$}; \node at (2,0) {$\mathfrak{R}$}; \end{tikzpicture} \end{document} You probably don't have the required fonts loaded; they seem to load automatically in the amsart document class. Try \usepackage{amsfonts} or \...


1

You can specify most colors and usage of \ttfamily in the column specifications. \documentclass[12pt,a4paper]{scrartcl} \usepackage[table]{xcolor} \definecolor{mygray}{gray}{.55} \definecolor{myblue}{rgb}{0.25,0.45,0.75} \definecolor{myviolet}{rgb}{0.6,0.4,0.8} \definecolor{myred}{rgb}{.6,0,0} \definecolor{mygreen}{rgb}{.31,.47,.26} \definecolor{myorange}{...


3

You should use unicode-math for this, which supports STIX2 Math. \documentclass[12pt,a4paper]{memoir} \usepackage{fontspec} \usepackage[math-style=ISO]{unicode-math} \setmainfont[ Extension=.otf, UprightFont=*-Regular, BoldFont=*-Bold, ItalicFont=*-Italic, BoldItalicFont=*-BoldItalic, ]{STIXTwoText} \setmathfont[ Extension=.otf, ]{STIXTwoMath-...


6

If you have the font installed (from Windows or Office or you have bought it) then as with any system font, it is usable with xelatex or lualatex directly. \documentclass{article} \usepackage{fontspec} \setmainfont{Ink Free} \begin{document} One two three four. \end{document} (this using lualatex)


3

If you type texdoc mathpazo at a command prompt, open the pdf file in a suitable browser, and proceed to section 5, entitled "The package mathpazo", you'll find the following information:


2

If I have understood the requirements correctly, then mathspec's \setallmonofonts command in one step usefully sets both mathtt and texttt modes to use the same font. MWE \documentclass{article} \usepackage{xcolor} \usepackage{mathspec} \setmathsfont{TeX Gyre Pagella Math} \setallmonofonts[Colour=red]{CMU Typewriter Text} \newcommand\sample{\parbox{0.8\...


1

Well, I do not really know why or where the package modifies defaults (an educational answer on that is still welcome) but it seems it enables Ligatures=TeX even for the mono font. Using the mono=false option of the package does not have any effect. However, disabling the TeX ligatures on the mono font that is loaded later on helps out and even keeps coding ...


2

The complete version (but not the "lite" subset) of the mtpro2 package provides the switch \boldmath. It must be executed prior to entering math mode. Is that bold enough for you? \documentclass[12pt]{article} \usepackage{mathtools,booktabs} \usepackage{newtxtext,mtpro2} \begin{document} \begin{tabular}{@{}rl@{}} \toprule \verb+$[{}\dotsb{}]$+ ...


1

With {NiceTabular} of nicematrix (v 5.18 of 2021-07-15), you have a command \RowStyle to specify formatting instructions for the current row. \documentclass{article} \usepackage{xcolor} \usepackage{nicematrix} \begin{document} \begin{table}[h] \centering \small \begin{NiceTabular}{ccl}[hvlines,colortbl-like] \rowcolor[HTML]{CACFD2} \RowStyle{\...


2

Simple with enumitemand its before key: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \begin{enumerate}[before=\large\itshape\bfseries] \item Proofs \begin{enumerate}[before=\normalfont\normalsize] \item Proof by Contradiction \item Mathematical Induction \item Pigeonhole Principle ...


4

How about this? \documentclass{article} \newcommand{\lbi}[1]{{\large\textbf{\textit{#1}}}} \usepackage{enumitem} \begin{document} \begin{enumerate}[label={\lbi{\arabic*.}}] \item \lbi{Proofs} \begin{enumerate} \item Proof by Contradiction \item Mathematical Induction \item Pigeonhole Principle \item Parity Argument \end{enumerate} \item \lbi{...


2

As of 2021, you can either change the operator font to something other than \mathrm with, for example, \setoperatorfont\mathsf or you can change the \mathrm font with \setmathrm. If you use \mathrm within \boldmath, you might also need to \setboldmathrm.


1

You ask in a comment how to get this to work in unicode-math and were asked to post a new question. For the sake of anyone searching for the answer (or flagging a duplicate question): To set the operatorfont to something other than \mathrm, use, for example: \setoperatorfont\mathsf This also works with math font faces you define with \setmathfontface, not ...


0

Roboto weight 300 is called Roboto-Light.ttf, so, using the recommended standard weight series names (see texdoc fntguide), you can load it using fontspec as {l} series and then set up a \textl{} command to use it. As to using numbers in command names, you can use Roman numerals (\textiii): Or alternatively, set up a generic command that takes a numeric ...


0

You can define the sub (substitute) size function to act like ssub (silent substitute) size function and just write to the log file, not the terminal. \documentclass{article} \makeatletter \DeclareSizeFunction{sub}{\sub@sfcnt\@font@info} \makeatother \usepackage{stix2} \begin{document} \boldmath $\mathcal{x} \mathbb{x}$ \end{document}


1

An old question, but it deserves an answer. I’m not sure exactly what you want, here. If you are looking for Termes as your main font, and Fira Sans for everything else, you could use the Fira Math font: \defaultfontfeatures{Scale=MatchLowercase} \setmainfont{TeX Gyre Termes}[Scale=1.0] \setsansfont{Fira Sans} \setmathfont{Fira Math} If you mean you want ...


1

To avoid ambiguity, for new readers landing, it may be helpful, for reference, to have a visual on the unicode blocks. Tex Gyre Pagella Math has Basic Latin (call it "text", but mappable) Greek and Coptic ("text") ... lots of other blocks ... and the Mathematical Alphanumeric Symbols (MAS) block: and (Sidenote: Because of the organic ...


2

Using fontspec, and the recommendeded font series names in the latex font guidelines (texdoc fntguide), Arial Black can be assigned to ub (ultrabold) series, regular width: There's a condensed version (called Narrow), which can go into the *c (for condensed) series/widths category, and there's also a rounded bold (which in the example I've put into the eb ...


2

Run in xelatex \documentclass{article} \usepackage{fontspec} \begin{document} \setmainfont{arial.ttf}myName \setmainfont{ariblk.ttf}myName \end{document} In pdflatex, using the uarial package, bold is supported, but I don't think the thicker black version is... \documentclass{article} \usepackage[scaled]{uarial} \renewcommand*\familydefault{\sfdefault} %% ...


1

Use Unicode fonts. Then you can choose really beautiful ones, there are multiple for any taste. You also will be able to mix fonts for different Unicode ranges. \documentclass[12pt, twoside, paper = B5]{scrbook} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{Libertinus Serif} \setmathfont{STIX Two Math} \setmathfont{TeX Gyre Pagella Math}[...


1

Perhaps use a larger font than a smaller bolder font. BTW use \bfseries instead of \bf. % booktitleprob.tex SE 605001 \documentclass[a4paper,12pt]{book} \usepackage{comment} % Title \usepackage{titling} \author{} \begin{comment} % the original \pretitle{\begin{center} \huge\bf} \title{\uppercase\expandafter{\romannumeral3\relax} MY\\BOOK} \posttitle{\...


3

Try the tipauni package. It will use your Times Font for the symbols. But I don't know how much of tipa Times support, perhaps you will have to switch to another font like Charis Sil instead. \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Times New Roman} \usepackage{tipauni} \begin{document} \textbf{\textipa{Q}aadi}`\textbf{wa\textcrh ad}` ...


0

\includesvg apparently treats text in your figure independently, so that it is rendered by LATEX by default. Probably the best way to solve this is to change the option inkscapelatex to false. Quote from the documentation: If option inkscapelatex=true is set, the output is split into a seperate PDF/EPS/PS file (see optioninkscapeformat) and a corresponding ...


1

old question but I have found a much better solution. \usepackage{substitutefont} \substitutefont{T3}{\rmdefault}{ptm} \substitutefont{T3}{\sfdefault}{phv} \substitutefont{T3}{\ttdefault}{cmtt} What this does - it tells the LaTeX compiler that when it encounters the respective defaults in the T3 encoding, instead of using the font specified as the default, ...


1

The dot is positioned over the stem of the d as specified in the font but if you want it centred over the whole character for some reason then you can make the base be more than a single character and let tex position a centred accent. \documentclass{article} \usepackage{unicode-math} \setmathfont[math-style=literal]{Latin Modern Math} \begin{document} $\...


5

\textup (upright) undoes the slanted shape so you can use \textup{\textsf{and}}


1

In fontspec, you can download the Neo Euler OpenType font and change the \mathrm font with \setmathrm{Neo Euler}[Scale=MatchLowercase] Unless something else in your preamble breaks it, this should change your operator font as well. In unicode-math, you can set the operator font to something different than \mathrm with: \setmathfontface\matheur{Neo Euler}[...


1

SOLVED. According to @DavidCarlisle, this did the trick: use fontspec, set mainfont, taken from \Windows\font compile pdf via LuaLateX Required code changes: \documentclass[paper=a4]{scrartcl} \usepackage{blox} \usepackage{fontspec} % as proposed by @DavidCarlisle ... \setmainfont{Calibri} % ... include a Windows-font \begin{document} ... Thanks ...


3

Additionally, why aren't the \hrules drawn before and after the tcbraster? tcbraster environment is not derived from tcolorbox, but more like a simple minipage. Therefore tcolorbox options before=<code> and after=<code> are ignored. Furthermore, \hrule will only work inside tabular-like environments. Try \par\noindent\hrulefill\par instead. To ...


Top 50 recent answers are included