New answers tagged

0

Not all of biblatex's customisation features are available as key-value options. In particular field formatting is almost exclusively dealt with via \DeclareFieldFormat, which does not use key-value syntax, but instead works like a normal macro definition. In your case you probably want something like \DeclareFieldFormat{addendum}{% \begin{singlespace} ...


0

\documentclass[letterpaper,12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{asymptote} %asyengine on first compile or any time I edit asymptote code (use //for comments in asy) \usepackage{multicol} %to make columns \usepackage{array} %to make tables \usepackage{makecell} %to make tables \setlength{\columnseprule}{0.4pt} %to make vertical ...


1

There are some excellent answers already. Below are some steps that worked for me on macOS BigSur in March 2021 with TexLive 2020, with the intent of compiling with pdfLatex. It follows closely this 2016 step-by-step guide: https://theoryl1.wordpress.com/2016/01/15/fontawesome-in-pdftex/ and I am posting here for reference for my future self and hopefully ...


2

You need to issue \bibliography{<bibfile>} or \addbibresource{<bibfile>.bib} after you have loaded biblatex. \bibliography{testa} \usepackage[maxlevel=3]{csquotes} \usepackage[backend=biber,citestyle=verbose-trad2,bibstyle=verbose-trad2]{biblatex} will not work, but \usepackage[maxlevel=3]{csquotes} \usepackage[backend=biber, style=verbose-trad2]...


0

This is a memoir-style copy of the part entries for the ToC. The chapter and section entries can be taken from your own code, the first answer or the memoir manual of course. Below is a figure of the output. \newcommand{\TOCind}{40pt}% indent lmarg-nr %-----------------------------------------------------------% % PART ...


1

After a little bit of more investigation, I could reproduce the behaviour outside of lstlisting as well. This brought me to this question. The answer is, that the font I'm using is missing these unicode characters, which is also shown in the extended log - but not shown as a warning when compiling, such as: Missing character: There is no μ in font [lmroman10-...


3

A couple of tools combine to figure out what's going on. First string-functions.com, converts your Ansi strings to the seemingly identical μ and µ respectively (set the input encoding to ISO8859-1 and the output to UTF-8). Copy-pasting from your quoted source also works, but I wanted to start from the known-different characters. Pasting those two mus into ...


0

The default font for \texttt is Computer Modern Typewriter. To use that font you can use \ttfamily to select the Computer Modern Typewriter family (Latin Modern Typewriter in XeTeX to allow for enhanced Unicode support). (and 4.) There is no font family called monofont. As a result, you got the warning: LaTeX Font Warning: Font shape `TU/monofont/m/n' ...


0

One thing I just discovered is that filenames that include an extra dot (.) in their name, not including the dot before the file extension will throw this error in XeTeX. I had a series of PDF plots produced with a function in R, and pdfinfo showed identical size statistics for all of them, but those with an extra dot in their filenames had issues with ...


0

Although it makes no difference to LaTeX, you have an extra space in “…\!= \!…”, probably you wanted: “\!=\!”. But you should rather replace all the hand-crafted spacing \! and \, with spaces and let (La)TeX handle the spacing… LaTeX is trying to justify your text. If you add: \begin{flushleft} <your_code_here> \end{flushleft} the wide spacing will ...


0

In the meantime your code is different from the image: \documentclass[a4paper,12pt]{article} \usepackage{newtxtext} \usepackage{mathtools,amssymb} \usepackage{mathrsfs} \usepackage{parskip} \begin{document} $\boldsymbol{\mathcal{X}}_\mathrm{m}\!= \![{\boldsymbol{X}_{\mathrm{m},1}}, {\boldsymbol{X}_{\mathrm{m},2}}, \! \cdots\!, {\boldsymbol{X}_{\mathrm{m},...


0

If you are using standard CMR family, then please follow the below tags: \documentclass{book} \usepackage{fix-cm} \makeatletter \renewcommand\normalsize{% \@setfontsize\normalsize{10.5}{12}% \abovedisplayskip 12\p@ \@plus2\p@ \@minus5\p@% \abovedisplayshortskip \z@ \@plus3\p@% \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@% \...


1

Theorems and similar environment in tcolorbox have two parameters, the first one is the theorem title and the second is the label suffix which will be added to the label prefix declares as fourth mandatory parameter in tcbtheorem declaration. In \newtcbtheorem[number within=section]{theorem}{Theorem}{}{theo} theo is the preffix so, when you declare \begin{...


3

I don't see the stripes in xpdf but I do in firefox/pdf.js rendering. \xrfill makes a rule out of repeated small adjacent panels, each separately coloured, which is asking a lot of the pdf renderer. It is simpler to render a single rule with a single colour as in the example below \documentclass{article} \usepackage{xhfill} \begin{document} Foo \xrfill[...


2

You can set up a math alphabet based on the main font. \documentclass{article} \usepackage{mathspec} \setmainfont{NotoSans}[ Extension = .ttf, NFSSFamily = NotoSans, Ligatures = TeX, UprightFont = *-Regular, BoldFont = *-Bold, ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic, Numbers = ...


0

New answer: I ended up reinstalling Ubuntu 20.04 LTS on my laptop (for various reasons, this is one of them), but if you ever come across an issue like this, try reinstalling the fonts from Microsoft. sudo apt install ttf-mscorefonts-installer --reinstall There is something complicated going on with .ini, .exe, and other stuff related to fontspec which ...


3

You get a clear error: ! No room for a new \write. \e@ch@ck ...message {No room for a new \string #4} \fi \fi l.382 \lstlistoflistings pdftex and xetex have only 16 write registers for files (numbered from 0 to 15) and they have been used up. This means that writing to a file from then on is wrong, ...


0

I suspect that the problem is with the versions of the fonts installed in fonts/lato/ and fonts/raleway/. If so, adding the command \tracinglostchars=2 in your preamble will give you a warning that the current font does not have each Cyrillic letter. (By default, the warnings are silently buried in your .log file.) Here’s a version of the document class ...


1

I fixed my problem by removing from the mydocumentclass.sty the command : \renewcommand\familydefault{\sfdefault}. It forced the font to be Sans Serif. It wrote the following code in the file mydocumentclass.sty : \setmainfont{Barlow} [Path=./Barlow/, Extension= .ttf, UprightFont= *-Regular, ItalicFont= *-Italic, BoldFont= *-Bold, BoldItalicFont = *-...


4

\documentclass[a4paper, landscape]{article} \usepackage{lmodern} \usepackage[most]{tcolorbox} \usepackage{fontawesome5} \usepackage[hmargin=2cm]{geometry} \usetikzlibrary{shapes.symbols, positioning} \newtcolorbox{mybox}[4][]{% enhanced, width=9cm, height=2cm, fontupper=\small\sffamily, fonttitle=\large\sffamily\bfseries\slshape, ...


1

LaTeX was written with anglo-american typographical traditions in mind. KOMA-Skript offers a way to let your document look more "continental european".


0

It's not difficult to adapt the answer given in this answer: Randomized fonts for handwritten look to use fontspec instead of the PSNFSS naming system used by the old fonts. We just need to change \rndfont command to use the name of the font family defined using \newfontfamily: \newcommand*{\rndfont}{\pgfmathrandomitem\z{fontlist}\csname\z\endcsname} ...


0

Quick-and-dirty way: the trick is to use overlay to hide the size of the text to LaTeX. You have to adjust manually the coordinates, though. \documentclass{article} \usepackage{lipsum} \usepackage{tikz} \begin{document} % This is attached to the start of the paragraph, do not insert % blank lines \tikz[overlay, scale=2, transform shape] \node [font=\...


1

Based on your comments, you might have an XY-problem. What you say you want is sans-serif math for captions. The problem you’re having is that unicode-math supports either range= or version=, but not both together. (There’s a warning about this buried in the manual.) If that’s what you actually want, load a sans-serif math font with version=, and don’t ...


2

This works for me: \documentclass{article} \usepackage{unicode-math} \usepackage{xepersian} \settextfont{Scheherazade} \setlatintextfont{Times New Roman} \setmathfont{TeX Gyre Termes Math} \begin{document} سلام \begin{latin} Hello \end{latin} \[ a + b = 3 \] \end{document}


2

You can set the booleans mentioned by David in the document. Be aware that this are internal commands of unicode-math, so it would be good to make a feature request for an official interface: \documentclass{article} \usepackage{unicode-math} \ExplSyntaxOn \bool_gset_false:N \g__um_upGreek_bool %or true \bool_gset_true:N \g__um_upgreek_bool %or false \...


1

That is a similar problem as in https://tex.stackexchange.com/a/568498/2388 but here with standalone and not subfiles. By emptying the hook before loading the file you can avoid the problem (I had to use the fandol fontset, as the default errors for me): \documentclass[fontset=fandol]{ctexart} \usepackage{standalone} \usepackage{tikz} \begin{document} %\...


10

Define dictionary words separated by || using the \setsepchar macro. Then, after \begin{document}, issue \def\currentword{}\tokencyclexpress and before \end{document}, issue \endtokencyclexpress. This sets up an environment where all the tokens of the document are screened in search of dictionary words first. If found, highlighting is added to the input ...


2

The options you mention just set boolean flags so it should be easy enough to add another option with a different combination {ISO} { \bool_gset_false:N \g__um_bfliteral_bool \bool_gset_false:N \g__um_bfupGreek_bool \bool_gset_false:N \g__um_bfupgreek_bool \bool_gset_false:N \g__um_bfupLatin_bool ...


0

The answer given in the comments by Przemysław Scherwentke works perfectly: simply use \resizebox{\textwidth}{!}{\input{m1.pgf}}


1

Hm, fit to one page? Yeah, if you will reduce font size to almost unreadable size and increase text block. I would rather have normal font, define text block accordingly and have table on two pages. By using longtable, displaystyle in the first column and define text block with geometry package: \documentclass{article} \usepackage[showframe, ...


1

To have any chance at all to fit the table on the page, you've got to allow line breaks in the formulas for F_{12}, F_{13}, and especially F_{13}. In the solution below, this is done with the help of the aligned environment of the amsmath package. I would also replace \frac expressions with inline-style fractional terms, e.g., replace \frac{1}{500} with 1/...


1

You can search "texgyrehero" in your computer and you can get a font texgyreheros-italic.otf, set mathsf to it like \documentclass{article} \usepackage{fontspec} \setmathsf{texgyreheros-italic.otf} \newcommand{\sfmu}{\mathsf{μ}} \begin{document} \[ \sfmu : X \to Y \] \end{document} Another solution: Use unicode-math package First you can refer ...


Top 50 recent answers are included