• Incorrect rendering of pdf in TeXStudio built-in viewer
    by Matsmath on February 5, 2025 at 6:42 am

    The following Japanese text is rendered incorrectly in the default viewer in TeXstudio (TeXstudio 4.7.2 (Build: 4.7.2+ds-2build3)Qt5.15.13、Qt5.15.12 R is used for compiling (?), ubuntu linux). \documentclass[12pt]{jarticle} \begin{document} あ・い・う(え・お) \end{document} I compile this with platex, throught the dvi->pdf chain. Printing the file seems fine, and rendering the pdf with Google Chrome also seems fine. In TeXstudio, the center dot (nakaten) is left-aligned, and there is also an unnecessary half-width space between the opening (left) parentheses and the letter え. Are there any dirty tricks in the settings to overcome this? Shall I just change the pdf viewer?

  • How to write Persian text by babel in the sample?
    by M. Logic on February 5, 2025 at 5:50 am

    First a minimal working sample is as follows. \documentclass{ctexbook} \usepackage{babel} \babelprovide{russian} \babelfont[russian]{rm}[ItalicFont={NewCM10-Italic.otf}, BoldFont={NewCM10-Bold.otf}, BoldItalicFont={NewCM10-BoldItalic.otf}]{NewCM10-Regular.otf} \babelfont[russian]{sf}[ItalicFont={NewCMSans10-Oblique.otf}, BoldFont={NewCMSans10-Bold.otf}, BoldItalicFont={NewCMSans10-BoldOblique.otf}]{NewCMSans10-Regular.otf} \babelfont[russian]{tt}[ItalicFont={NewCMMono10-Italic.otf}, BoldFont={NewCMMono10-Bold.otf}, BoldItalicFont={NewCMMono10-BoldOblique.otf}]{NewCMMono10-Regular.otf} \babelprovide{greek} \babelfont[greek]{rm}[ItalicFont={NewCM10-Italic.otf}, BoldFont={NewCM10-Bold.otf}, BoldItalicFont={NewCM10-BoldItalic.otf}]{NewCM10-Regular.otf} \babelfont[greek]{sf}[ItalicFont={NewCMSans10-Oblique.otf}, BoldFont={NewCMSans10-Bold.otf}, BoldItalicFont={NewCMSans10-BoldOblique.otf}]{NewCMSans10-Regular.otf} \babelfont[greek]{tt}[ItalicFont={NewCMMono10-Italic.otf}, BoldFont={NewCMMono10-Bold.otf}, BoldItalicFont={NewCMMono10-BoldOblique.otf}]{NewCMMono10-Regular.otf} \babelprovide{hebrew} \babelfont[hebrew]{rm}[ItalicFont={NewCM10-Italic.otf}, BoldFont={NewCM10-Bold.otf}, BoldItalicFont={NewCM10-BoldItalic.otf}]{NewCM10-Regular.otf} \babelfont[hebrew]{sf}[ItalicFont={NewCMSans10-Oblique.otf}, BoldFont={NewCMSans10-Bold.otf}, BoldItalicFont={NewCMSans10-BoldOblique.otf}]{NewCMSans10-Regular.otf} \babelfont[hebrew]{tt}[ItalicFont={NewCMMono10-Italic.otf}, BoldFont={NewCMMono10-Bold.otf}, BoldItalicFont={NewCMMono10-BoldOblique.otf}]{NewCMMono10-Regular.otf} \babelprovide{persian}% \babelfont[persian]{rm}{Amiri} %\babelfont[persian]{sf}{} %\babelfont[persian]{tt}{ALM Fixed} \begin{document} \tableofcontents \section{测试} 你好!Hi! \foreignlanguage{russian}{Привет!} \foreignlanguage{greek}{Γεια σου!} \foreignlanguage{hebrew}{היי!} \foreignlanguage{persian}{مقالهٔ برگزیده} \end{document} As you see, I'm writing a Chinese document involving English, Russian, Greek, Hebrew, and Persian. Since ctex does some settings on Chinese and English, and babel does some settings on Russian, Greek and Persian. But those on Persian doesn't work when to compile the file by XeLaTex. Then how to solve it? Maybe because \babelfont[persian]{rm}{Amiri} doesn't refer to Persian otf fonts in TeX? If so, are there any Persian otf fonts in TeX just like new computer modern in TeX?

  • Error: You must invoke LaTeX with the -shell-escape flag
    by NK_MI on February 5, 2025 at 4:21 am

    I am trying to upload an article (which is typset using Overleaf) to the arXiv, and keep getting this error message. I searched all the questions on this site, but I can't find anything related to this. I'm not sure how to resolve this.

  • \renewcommand* not working for biblatex macro
    by avi9526 on February 5, 2025 at 4:00 am

    I use nature style (this cannot be changed because of the huge amount of other settings that I need from it) Im trying to change citation style. This code common for next 2 samples \newbibmacro{aycite}{% \defcounter{maxnames}{1}% \ifnameundef{labelname} {\printfield{labeltitle}% \setunit{\printdelim{nonameyeardelim}}} {\printnames[surname]{labelname}% \setunit{\printdelim{nameyeardelim}}} \printfield{year}} This not working, citations delimiter still comma \newcommand*{\multicitedelim}{\addsemicolon\space} \DeclareCiteCommand{\aycite}[\mkbibparens] {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% \usebibmacro{aycite}} {\multicitedelim} {\usebibmacro{postnote}} \renewcommand*{\cite}{\aycite} ChatGPT told me to try \edef\multicitedelim{\unexpanded{\addsemicolon\space}} \DeclareCiteCommand{\aycite}[\mkbibparens] {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% \usebibmacro{aycite}} {\multicitedelim} {\usebibmacro{postnote}} \renewcommand*{\cite}{\aycite} and it worked. My question is - why?

  • Image extending into bottom margin with height larger than specified in \includegraphics
    by corndog on February 5, 2025 at 3:31 am

    I would like to include an image at the bottom of a page of text that takes up the remaining space on the page, minus a 2em margin between the text and the picture. To do this I calculate the desired length with \def\heightleft{\dimexpr\textheight - \pagetotal - 2em\relax}% and set that as the height in includegraphics. For some reason though it seems to make the picture slightly larger than desired and it extends into the bottom margin. Attached is a MWE showing the problem with some context — I want to center a pair of images if they are both small enough, but be sure that I leave at least a 2em margin between the text and images if they are too tall. MWE showing the problem: \documentclass{article} \usepackage{graphicx} \usepackage[bottom=1in, showframe]{geometry} \usepackage{lipsum} \usepackage{calc} \newsavebox\picturesbox \newlength\vertoffset \setlength{\parindent}{0pt} \NewDocumentCommand{\imagetest}{mm}{% \lipsum[1-3]\par% \def\heightleft{\dimexpr\textheight - \pagetotal - 2em\relax}% \def\widthleft{\dimexpr(\textwidth - 2em)/2\relax}% \savebox\picturesbox[\textwidth]{% \raisebox{-0.5\height}{% \includegraphics[keepaspectratio, height=\heightleft, width=\widthleft]{#1}% }% \hfill% \raisebox{-0.5\height}{% \includegraphics[keepaspectratio, height=\heightleft, width=\widthleft]{#2}% }% }% \def\pictureheight{\dimexpr\ht\picturesbox+\dp\picturesbox\relax}% \def\picturewidth{\wd\picturesbox}% \setlength{\vertoffset}{\maxof{2em}{\dimexpr(\textheight - \pagetotal - \pictureheight)/2\relax}}% \wlog{picture height}% \wlog{\the\pictureheight}% \wlog{vertical space}% \wlog{\the\heightleft} \wlog{picture width}% \wlog{\the\picturewidth}% \wlog{horizontal space}% \wlog{\the\widthleft}% \wlog{vertical offset}% \wlog{\the\vertoffset}% \vspace{\vertoffset}% \usebox{\picturesbox}% } \begin{document} \imagetest{example-image-16x10}{example-image-9x16} \newpage \imagetest{example-image-16x10}{example-image-1x1} \end{document} The outputs of the log statements are picture height 333.30986pt vertical space 333.3026pt picture width 430.00462pt horizontal space 205.0023pt vertical offset 20.00003pt and the output PDF looks like

  • NEW VER‌ION OF MACTEX HAVE PROBLEM WITH BEAMER
    by Tony Stark on February 5, 2025 at 2:29 am

    \documentclass[12pt]{beamer} % Document class declaration in the preamble \usepackage[utf8]{vietnam} % Package inclusion in the preamble %\usepackage[T1]{fontenc} % Commented out, but if needed, keep in preamble \usepackage{lmodern} % Package inclusion in the preamble \usetheme{Madrid} % Theme selection in the preamble \begin{document} % Start of the document body \author{Võ Xuân Cường Thịnh} \title{Bài 5: TÍNH CHẤT HOÁ HỌC CỦA BASE} %\subtitle{} %\logo{} %\institute{} %\date{} %\subject{} %\setbeamercovered{transparent} %\setbeamertemplate{navigation symbols}{} \begin{frame}[plain] \maketitle \end{frame} \begin{frame} \frametitle{} % You should add a title here \end{frame} \end{document} % End of the document I have ju‌st updat‌ed Mactex and when I compile a new beamer file I have this problem Please sh‌ow me the s‌lution

  • Smart enumerated notes enviroment
    by Ak2399 on February 5, 2025 at 1:49 am

    I'm looking for creating an environment called notes where it acts like the enumerate environment but it also detects how many \items have been used to create different outputs, the desired behaviour is like this: \begin{notes} \item something \end{notes} \begin{notes} \item something 1 \item something 2 \end{notes} \begin{notes} As a bonus, this wouldn't be rendered. or alternatively it would be rendered as is. \end{notes} Would output With some help with ChatGPT, I have came up with this semi-solution: \documentclass{article} \usepackage{environ} \makeatletter % We define a new environment "notes" that collects its entire body in \BODY \NewEnviron{notes}{% % Define a scratch counter to count the items \newcount\notesItemCounter \notesItemCounter=0 %--- First pass: we "execute" the body in a group with \item redefined %--- so that each \item increments our scratch counter. \begingroup \def\item{\global\advance\notesItemCounter by 1\relax}% \BODY \endgroup %--- Now act according to the number of items found \ifnum\notesItemCounter>0 \ifnum\notesItemCounter=1 % Exactly one \item => print "Note: ..." and show the text \noindent \textbf{Note:} \begingroup \def\item{}% remove \item so it does not print any bullet/number \BODY \endgroup \else % Two or more items => print "Notes:" and enumerate \noindent \textbf{Notes:} \begin{enumerate} \BODY \end{enumerate} \fi \fi } \makeatother \begin{document} %----------------------------- % Zero items: prints nothing \begin{notes} This text is not in an \item, so we expect nothing to appear. \end{notes} %----------------------------- % One item: prints "Note: something" \begin{notes} \item something \end{notes} %----------------------------- % Two or more items: enumerates them \begin{notes} \item first note \item second note \end{notes} \end{document} But it prints the Body twice:

  • Custom command to autofill values from quadratic equations not working after new page command
    by Oregon Math Tutor on February 4, 2025 at 11:16 pm

    Here's the custom command a friend wrote for me (probably used AI): % Color commands for variables and values \newcommand{\avar}{\textcolor{red}{a}} \newcommand{\aval}[1]{\textcolor{red}{#1}} \newcommand{\bvar}{\textcolor{blue}{b}} \newcommand{\bval}[1]{\textcolor{blue}{#1}} \newcommand{\cvar}{\textcolor[rgb]{0,0.25,0}{c}} \newcommand{\cval}[1]{\textcolor[rgb]{0,0.25,0}{#1}} % Command for colored quadratic formula \newcommand{\colorqf}[3]{% \frac{-(\bval{#2})\pm\sqrt{(\bval{#2})^2-4(\aval{#1})(\cval{#3})}}{2(\aval{#1})}% } This code renders this output for quadratic equations problems for my students: [![see image][1]][1] Unfortunately, the custom code isn't auto filling the correct values for the equations after the \end{tasks} and \newpage commands. I restarted these commands: \begin{tasks}[resume](2) % Add [resume] option to continue numbering``` [![values incorrect][2]][2] Trouble shooting this level of code is way, way beyond my pay grade. So your help is massively appreciated! mwe: ```\documentclass[12pt]{exam} \usepackage{amsmath} \usepackage{cancel} \usepackage{caption} \usepackage{amssymb} \usepackage{mathrsfs} \usepackage{framed} \usepackage{tasks} \usepackage{xcolor} % First ensure xcolor is loaded % Color commands for variables and values \newcommand{\avar}{\textcolor{red}{a}} \newcommand{\aval}[1]{\textcolor{red}{#1}} \newcommand{\bvar}{\textcolor{blue}{b}} \newcommand{\bval}[1]{\textcolor{blue}{#1}} \newcommand{\cvar}{\textcolor[rgb]{0,0.25,0}{c}} \newcommand{\cval}[1]{\textcolor[rgb]{0,0.25,0}{#1}} % Command for colored quadratic formula \newcommand{\colorqf}[3]{% \frac{-(\bval{#2})\pm\sqrt{(\bval{#2})^2-4(\aval{#1})(\cval{#3})}}{2(\aval{#1})}% } % Command for boxed final answeTher with yellow highlight \newcommand{\finalanswer}[1]{\ensuremath{\colorbox{yellow}{\boxed{#1}}}} \usepackage[margin=0.5in, top=1in]{geometry} \everymath{\displaystyle} \setlength{\parindent}{0pt} % removes paragraph indentation % Header setup \pagestyle{headandfoot} \runningheadrule \header{Algebra 2 Assignment 9A: Quadratic Formula Practice} {} {02/13/2025} \newcommand{\pagetop}{% \vspace{1cm} % Space after header \fbox{\fbox{\parbox{\dimexpr\textwidth-4\fboxsep-4\fboxrule}{ \textbf{Use the Quadratic Formula to solve each equation. Write answers as: (a) exact values (simplified radicals) and as (b) decimals rounded to nearest hundredth.} }}}\par \vspace{0.5mm} } \settasks{after-item-skip=2em, % Reduced vertical spacing after-skip=1cm, % Reduced row spacing label-width=2em, item-indent=3em, label=(\arabic*), column-sep=2em } \begin{document} \pagetop \begin{tasks}(2) %Prob #1 \task $\openup2\jot \begin{aligned}[t] & {-}x^2+7x-3=0 \\ & \avar=\aval{-1}, \bvar=\bval{7}, \cvar=\cval{-3} \\ & \begin{aligned} x &= \colorqf{-1}{7}{-3} \\ &= \frac{-7\pm\sqrt{49-12}}{2} \\ &= \frac{-7\pm\sqrt{37}}{-2} \\ &= \finalanswer{\frac{7\pm\sqrt{37}}{2}} \end{aligned} \end{aligned}$ %Prob #2 \task $\openup2\jot \begin{aligned}[t] & x^2+6x=10 \\ &\text{Set equation equal to zero.}\\ & x^2+6x-10=0 \\ & \avar=\aval{1}, \bvar=\bval{6}, \cvar=\cval{-10} \\ & \begin{aligned} x &= \colorqf{1}{6}{-10} \\ &= \frac{-6\pm\sqrt{36+40}}{2} \\ &= \frac{-6\pm\sqrt{76}}{2} \\ &= \finalanswer{-3\pm\sqrt{19}} \end{aligned} \end{aligned}$ \end{tasks} % End first tasks environment \newpage \setcounter{task}{4} % Change from addtocounter to setcounter \begin{tasks}[resume](2) % Add [resume] option to continue numbering %%%% Prob #5 \task % Will be number 5 $\openup2\jot \begin{aligned}[t] & 2x^2+1=5-7x \\ &\text{Set equation equal to zero.}\\ & 2x^2+7x-4=0 \\ & \avar=\aval{4}, \bvar=\bval{-36}, \cvar=\cval{81} \\ & \begin{aligned} x &= \colorqf{4}{-36}{81} \\ &= \frac{36\pm\sqrt{1296-1296}}{8} \\ &= \frac{36\pm0}{8} \\ &= \finalanswer{\frac{9}{2}=4\frac{1}{2}=4.5} \end{aligned} \end{aligned}$ \task % Will be number 6 \end{tasks} \end{document} ``` [1]: https://i.sstatic.net/kaULAHb8.png [2]: https://i.sstatic.net/65KvXadB.png

  • Cannot get bold parentheses with unicode-math
    by HerpDerpington on February 4, 2025 at 10:16 pm

    I am trying to properly get bold parentheses with unicode-math. I tried this: \documentclass{article} \usepackage{unicode-math} % You may remove this to see that % this does not cause the issue. \usepackage{bm} \setmathfont[% BoldFont=NewCMMath-Bold.otf% ]{NewCMMath-Regular.otf} \begin{document} \[ ( \symbf{(} \] \[ \symbfup{(} \symbfit{(} \] \[ \mathbf{(} \] \[ \text{\boldmath$($} \] % hacky \[ \boldsymbol{(} \bm{(} \] \end{document} The result is: So it seems only the three "bad" solutions work. As far as I known, \boldsymbol and \bm should not be used and switching into text mode and back is hacky.

  • Why `\allowbreak` not working
    by Eugene Zhang on February 4, 2025 at 10:15 pm

    I have met with a problem with the justification of a paragraph using \allowbreak in LaTeX. The MWE LaTeX code is as below: \documentclass[11pt,twoside]{article}% \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{geometry} \newtheorem{theorem}{Theorem}[section] \begin{document} \begin{proof} Then $(\psi_n(x_1,\cdots,x_n))$ is a $n-$type of $\mathfrak{P}\,$ for $\,\mathfrak{P}\vDash\psi_n[\mathcal{P}^{1}(\varnothing),\cdots,\mathcal{P}^{n}(\varnothing)]$. Clearly $\{\allowbreak\eta_1(x_1),\cdots, \eta_n(x_1),\cdots,\psi_2(x_1,x_2),\cdots, \psi_n(x_1,x_2,\cdots,x_n)\cdots\}$ generates a maximum consistent set of formulas involving $\varnothing$ that is the only complete type of $\mathfrak{P}$. \end{proof} \end{document} The problem happens at\eta_n(x_1),... for it does not break there. I am totally lost because there is no \left bracket at all. Thanks.

  • Put text on each mounted pdf's last page
    by mf67 on February 4, 2025 at 8:55 pm

    Is it possible to put a foot (end) note on each mounted pdf's last page? I could do it by \includepdf[pages=1-3]{file1.pdf} \includepdf[pages=4,pagecommand={//some text//}]{file1.pdf} \includepdf[pages=1-2]{file2.pdf} \includepdf[pages=3,pagecommand={//some other text//}]{file2.pdf} but it would require to know which page is the very last for each pdf.

  • Get rid of additional spacing due to \color in newtcolorbox
    by Crob on February 4, 2025 at 8:39 pm

    \usepackage{tcolorbox} \newtcolorbox{tbox}[1][]{ #1, before upper={ \everydisplay{\color{red}} } } \begin{document} \begin{tcolorbox} \[a^2+n^2=c^2\] \end{tcolorbox} \begin{tbox} \[a^2+n^2=c^2\] \end{tbox} \end{document} I just want to change the color of math mode in my custom tcolorbox, but using \everydisplay{} adds a space at the bottom of the box and I don't understand why. How can I get rid of that and just get the default spacing of tcolorbox ? EDIT: Similar issue in Strange vertical spacing after colored equation However, the two solutions don't work here. I don't know how to use \begingroup...\endgroup because I would have to begin in before upper and end in after upper which doesn't seem to work. The 2nd solution is to use \mathcolor but how can I use it in \newtcolorbox? Also, I don't use lualatex

  • Unexpected roundoff with fpeval length comparison
    by rallg on February 4, 2025 at 8:01 pm

    This MWE shows it all. Same with pdflatex or lualatex: \documentclass{article} \newlength\mytemplength \setlength\mytemplength{8.5in} \newlength\myotherlength \setlength\myotherlength{8.5in} \edef\myresulta{\fpeval{\mytemplength<8.499in}} % expect 0, meaning false \edef\myresultb{\fpeval{\mytemplength<8.5in}} % expect 0, meaning false \edef\myresultc{\fpeval{\mytemplength<8.5001in}} % expect 1, meaning true \edef\myresultd{\fpeval{\mytemplength<\mytemplength}} % expect 0, meaning false \edef\myresulte{\fpeval{\mytemplength<\myotherlength}} % expect 0, meaning false \typeout{MYRESULTA=\myresulta} % provides 0, as expected \typeout{MYRESULTB=\myresultb} % provides 1, NOT expected \typeout{MYRESULTC=\myresultc} % provides 1, as expected \typeout{MYRESULTD=\myresultd} % provides 0, as expected \typeout{MYRESULTE=\myresulte} % provides 0, as expected \begin{document} foo \end{document} I realize that the length is not stored as inches. Nevertheless, I expect that when I retrieve the stored length, and compare it to 8.5in, the conversion of 8.5in should use the same algorithm as was used when a length is stored. But it seems that this is not the case. Thus, a roundoff error occurs. I can handle this by creating additional lengths, so that I compare stored values to stored values. I can handle this by comparing a stored length to a tweaked value. But I am mystified as to why the stored length is not equal to its unstored value.

  • IPE editor: Is there a way to draw a curve with an arrow in the middle?
    by Hao S on February 4, 2025 at 7:12 pm

    If I draw a 3 pointed curve and select the mid point arrow option, the arrow does not appear in the middle. Is there a way to make the arrow appear in the middle? I've searched the documentation and it seems this feature is not currently implemented. Is there a workaround for this? Having the arrow at the end makes it almost impossible to draw a directed graph as the arrow at the endpoint just disappears behind the node. Edge bd is directed but the arrow is behind the node.

  • Why is \symsfup generating glyphs with serifs?
    by HerpDerpington on February 4, 2025 at 6:33 pm

    Consider this example: \documentclass{article} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} \setmathfont[version=sans]{New Computer Modern Sans Math} \begin{document} \[ T|\symsfup{T}|\symup{T} \] \mathversion{sans} \[ T|\symsfup{T}|\symup{T} \] \end{document} which renders as Why does the \symsfup{T} have serifs? It is both in the sans version and also inside \symsfup (the same would occur with only \symsf).

  • xelatex listing greek letters cannot be captured by literal replacement
    by drcicero on February 4, 2025 at 4:39 pm

    This other question and answer describes how some utf8 letters can be enabled with xelatex and lstlistings. However it seems this does not work for all characters, and i dont see why. The following snippet demonstrates that it in xelatex is possible to map the hex code 2318 representing the character ⌘ to the latex expression \ensuremath{\alpha}, but its not possible to map the hexcode 945 representing the character "α" to the latex expression (\cmd) (or to anything else). \documentclass{article} \usepackage{fontspec} \usepackage{libertine} % or any other font \usepackage{listings} \usepackage{menukeys} \makeatletter %for xelatex: \lst@InputCatcodes \def\lst@DefEC{% \lst@CCECUse \lst@ProcessLetter ^^^^2318% ⌘ cmd ^^^^2423% ␣ invisiblespace ^^^945% α alpha ^^00} \lst@RestoreCatcodes \makeatother \lstset{ extendedchars=true, literate= {⌘}{\ensuremath{\alpha}}1 {α}{{(\cmd)}}1 {␣}{{\textvisiblespace}}1, showstringspaces=false, columns=flexible, keepspaces=true} \begin{document} Here is a listing: \begin{lstlisting} Mac␣users praαaess ⌘-C \end{lstlisting} \end{document} With pdflatex both literal replacements work, i.e., $ latexmk -pvc test.tex </dev/null produces the following pdf: However, with xelatex, as described above, only one of the two literal replacement works, .i.e. $ latexmk -pvc -xelatex test.tex </dev/null produces the following pdf: It seems to me that xelatex simply ignores literal instructions for some letters but not for others. I wonder if there is a workaround to make it possible to have literal instructions for greek letters in xelatex? Maybe some more special @ commands?

  • How can I use pandoc with equations that will work in Canvas LMS?
    by Josiah Yoder on February 4, 2025 at 4:14 pm

    I love combining Git, Pandoc markdown, and LaTeX to manage course content for Canvas LMS (from Instructure). But like others, I find it a little tricky to get equations to work in Markdown. How can I make sure my equations will show up properly for my students? (Unlike the linked question, numbering equations is not my goal. Just getting them to display to students correctly when pasting the pandoc-to-HTML into Canvas's HTML editor.)

  • How to Specify Which Font to Use to Get Rid of the 'Font shape undefined' Warning?
    by kalle on February 4, 2025 at 3:53 pm

    I would like to specify which bold font to use, since I receive the following warnings: Package microtype Info: Loading generic protrusion settings for font family (microtype) `Grandview.ttf' (encoding: TU). (microtype) For optimal results, create family-specific settings. (microtype) See the microtype manual for details. LaTeX Font Warning: Font shape `TU/Grandview.ttf(0)/b/n' undefined (Font) using `TU/Grandview.ttf(0)/m/n' instead on input line 1. Package microtype Info: Loading generic protrusion settings for font family (microtype) `IBMPlexMath-Regular.ttf' (encoding: TU). (microtype) For optimal results, create family-specific settings. (microtype) See the microtype manual for details. LaTeX Font Warning: Font shape `TU/IBMPlexMath-Regular.ttf(1)/b/n' undefined (Font) using `TU/IBMPlexMath-Regular.ttf(1)/m/n' instead on input line 2. LaTeX Font Warning: Font shape `TU/IBMPlexMath-Regular.ttf(2)/b/n' undefined (Font) using `TU/IBMPlexMath-Regular.ttf(2)/m/n' instead on input line 2. LaTeX Font Warning: Font shape `TU/IBMPlexMath-Regular.ttf(3)/b/n' undefined (Font) using `TU/IBMPlexMath-Regular.ttf(3)/m/n' instead on input line 2. My MWE is the following: \documentclass{scrartcl} \usepackage{microtype} \usepackage{fontspec} \usepackage{plex-mono} \usepackage{unicode-math} \setmainfont{GrandviewLight}[ BoldFont = GrandviewBold.ttf , ItalicFont = GrandviewItalic.ttf , BoldItalicFont = GrandviewBoldItalic.ttf, UprightFont = GrandviewLight.ttf] \setsansfont{Grandview.ttf} \setmathfont{IBMPlexMath-Regular.ttf} \usepackage{amsmath} \let\equation\gather \let\endequation\endgather \usepackage{amstext} \usepackage[]{bm} \usepackage[separate-uncertainty=true,multi-part-units=single]{siunitx} \usepackage{physics} \AtBeginDocument{\RenewCommandCopy\qty\SI} \begin{document} In a theory with a $U(1)$ gauge symmetry and action \begin{equation*} S=\int\!\mathrm{d}^dx\sqrt{-g}\left[\left(M^d_\textsf{P}\right)^{d-2}\frac{R^d}{2}-\frac{F^2}{4g^2}+\dots\right], \end{equation*} \end{document} There is no bold IBM Plex maths font, I thought maybe I could use fakebold instead. Would that be an option, and if so, how can I realise this? For the text, I'd like to use GrandviewLight for the normal text, but Grandview for upright text in equations, and GrandviewBold for bold in text. I think I set this up like this, but I still receive the warning LaTeX Font Warning: Font shape `TU/Grandview.ttf(0)/b/n' undefined (Font) using `TU/Grandview.ttf(0)/m/n' instead on input line 1. which makes me think it is not done correctly. How can I use the regular font for bold and the light font for normal text? Thank you very much for your insights and corrections to my code!

  • remove the period after the figure citation in the text
    by Ulisses on February 4, 2025 at 3:53 pm

    I have a problem removing the period after citing questions. I'll try to explain what's going on. I'm preparing a list of exercises, in most questions I use the \label function so I can reference it later. When I use \ref{} in the text, a period appears after the question number. The point only appears after I reference the questions, that is, when I reference the figures the point does not appear. Este é a parte do código e isto é o que aparece no pdf. From what I understand, the point after the reference to the questions serves to differentiate it from the reference to the figures, is that correct? Could someone help me, please? Below is my code \documentclass[11pt,twoside,a4paper]{article} \usepackage[hmargin=1cm,vmargin=2.5cm]{geometry} \usepackage[portuguese]{babel} % Linguagem português \usepackage[colorlinks=true,allcolors=blue]{hyperref} \usepackage{enumext} \begin{document} O enunciado a seguir refere-se às questões \ref{q1} e \ref{q2}. \begin{enumext}[list-indent=0pt,save-ans=test,show-ans=false] \item \label{q10} \dots \item \label{q1} Qual é o módulo \dots \item \label{q2} Qual o menor valor \dots \end{enumext} \end{document}

  • Creating a fixed image size using standalone
    by alisonmb7 on February 4, 2025 at 3:44 pm

    I'm using standalone to try and create images of maths problems I can combine into worksheets. I'd like to create a kind of template for them all so they all have the same width but the size of my resultant image seems to change depending on the contents. On top of that my font size doesn't seem to change. I've taken bits of other people's code so still figuring out what I need and don't need but this is what I have (some of the packages are for images I've removed). I'd like it to be roughly A4 landscape width with a large font, in an attempt to improve the quality of the png. Any thoughts? Thank you. \documentclass[14pt, preview, border={10pt 10pt 10pt 10pt}]{standalone} \renewcommand{\familydefault}{\sfdefault} \usepackage{amsfonts, amssymb, amsmath} \usepackage{tgadventor} \setlength{\textwidth}{28cm} \usepackage[paperheight=19cm, paperwidth=28cm]{geometry} \usepackage[dvipsnames]{xcolor} \definecolor{Example}{RGB}{0, 255, 35} \usepackage{tikz} \begin{document} \raggedright \textcolor{Example}{Example}\\ [16pt] The vector $\begin{pmatrix}\text{3} \\ \text{4}\end{pmatrix}$ translates A to B. Which of these vectors translates B to A?\\ [16pt] \begin{tabular}{p{3cm}p{3cm}p{3cm}p{3cm}} $\begin{pmatrix}\text{-3} \\ \text{4}\end{pmatrix}$& $\begin{pmatrix}\text{3} \\ \text{4}\end{pmatrix}$& $\begin{pmatrix}\text{-3} \\ \text{-4}\end{pmatrix}$& $\begin{pmatrix}\text{3} \\ \text{-4}\end{pmatrix}$\\ \end{tabular} \end{document}

  • How can I use some semi-exotic characters in a source-code listing?
    by John on February 4, 2025 at 3:34 pm

    Below is some text that I copy-pasted from the Isabelle theorem-prover interface. shows "P ≠ Q" and "P ≠ l" and "l ∩ m = m" and "∀P. P ≤ P" and "S ⟶ T" and "⟦U⟧ ⟹ V" and " ℝ ≠ ℕ" I'd like to typeset this with the listings package, thus: \documentclass[11pt,notitlepage,openany,oneside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \RequirePackage[svgnames]{xcolor} \usepackage{listings} %\usepackage{isabelle-listings} \begin{document} \begin{lstlisting}{language=Pascal} lemma times_assoc: fixes a::nat and b and c shows "P ≠ Q" and "P ≠ l" and "l ∩ m = m" and "∀P. P ≤ P" and "S ⟶ T" and "⟦U⟧ ⟹ V" and " ℝ ≠ ℕ" sorry end \end{lstlisting} \end{document} You can see that I'm telling the Listings package that it's Pascal rather than Isabelle, because telling it that I'm using Isabelle doesn't help, and the isabelle language-definition file is huge and (I believe) a red-herring for this question. Just as an FYI, the intended eventual output is something like this: and the isabelle listings language-description already does the coloring and bold-ing nicely when there are no special characters, so it's only the funny characters that are giving me trouble. My problem is that the result, upon running this with pdflatex I get the dreaded "LaTeX Error: Invalid UTF-8 byte sequence". When I switch to LuaLaTeX, things get a little better. I get the expected Package inputenc Warning: inputenc package ignored with utf8 based engines. and then a little later, the more significant Missing character: There is no ≠ (U+2260) in font ec-lmr10! Missing character: There is no ≠ (U+2260) in font ec-lmr10! Missing character: There is no ∩ (U+2229) in font ec-lmr10! Missing character: There is no ∀ (U+2200) in font ec-lmr10! Missing character: There is no ≤ (U+2264) in font ec-lmr10! Missing character: There is no ⟶ (U+27F6) in font ec-lmr10! Missing character: There is no ⟦ (U+27E6) in font ec-lmr10! Missing character: There is no ⟧ (U+27E7) in font ec-lmr10! Missing character: There is no ⟹ (U+27F9) in font ec-lmr10! Missing character: There is no ℝ (U+211D) in font ec-lmr10! Missing character: There is no ≠ (U+2260) in font ec-lmr10! Missing character: There is no ℕ (U+2115) in font ec-lmr10! ] (/compile/output.aux) I confess that at this point, I'm out of my depth in LaTeX. I don't know what ec-lmr10 is, or why it's being used, or what font I could be using to include these characters, and even if I knew what font that was, how to say "please use it during lstlistings. I've done my best to look for related questions (I read a lot about "LaTeX Error: Invalid UTF-8 byte sequence", for instance), but I'm in the position of not even knowing what words to search for. So: is there a way to typeset this kind of thing using listings?

  • How can I prevent ligatures from converting `--` into an en‐dash in my custom macro?
    by Isin Altinkaya on February 4, 2025 at 3:01 pm

    I am using pdfLaTex. I'm trying to define a command \cmd that prints its argument in a typewriter font (i.e. using \texttt for code formatting). For example, I want \cmd{--my-command} to print exactly --my-command (with two separate hyphens), but instead it produces an en‐dash followed by my-command (i.e. “–my-command”). My original macro: \newcommand{\cmd}[1]{\texttt{\detokenize{#1}}} I’ve tried several methods to “break” the ligature, including: Disabling hyphen ligatures: \usepackage{microtype} \DisableLigatures[-]{encoding = *, family = * } \newcommand{\cmd}[1]{\texttt{\detokenize{#1}}} Disabling all ligatures: \usepackage{microtype} \DisableLigatures[]{encoding = *, family = * } \newcommand{\cmd}[1]{\texttt{\detokenize{#1}}} Manually inserting a zero-width kern between hyphens (using xstring): \usepackage{xstring} \newcommand{\cmd}[1]{% \StrSubstitute{#1}{--}{-\kern0pt-}[\temp]% \texttt{\temp}% } Disabling all ligatures: \usepackage{microtype} \DisableLigatures{} \newcommand{\cmd}[1]{\texttt{\detokenize{#1}}} Disabling all ligatures: \usepackage{microtype} \DisableLigatures{family=rm*} \newcommand{\cmd}[1]{\texttt{\detokenize{#1}}} None of these methods work as expected; the output still ligatures the two hyphens.

  • How to add arrows from one point on one plot to another point on second plot in tikz and pgfplots
    by Mr.Price on February 4, 2025 at 2:57 pm

    I have the following code to plot 3 lines from which 2 are just a translation of main plot 2 points up and down. I want to highlight that fact by adding arrows pointing up and down (of length 2 point) from middle plot to two other plots. How can I do that nicely in tikz and pgfplots without manually calculating the position of points on plot and adding/subtracting 2 from y coordinate? I would like to add these arrows every 20% of plot length (so 5 arrows in total). \documentclass[tikz, margin=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes, backgrounds, arrows.meta, fit,decorations.pathreplacing} \usepackage[dvipsnames]{xcolor} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \pgfplotsset{compat=1.18} \usepackage{polski} \begin{document} \begin{tikzpicture}[ % show background grid, background grid/.style={thin, dotted, draw=gray,step=.5cm}, >=Stealth, remember picture, ] \begin{axis}[ xmin=-3.5, xmax=3.99, ymin=-4.5, ymax=4.99, xtick distance=1, ytick distance=1, xticklabels=\empty, yticklabels=\empty, extra y ticks={1}, % Dodatkowy tick na osi Y (dla b=1) extra y tick labels={$1$}, % Oznaczenie wartości b extra x ticks={1}, % Dodatkowy tick na osi Y (dla b=1) extra x tick labels={$1$}, % Oznaczenie axis lines=middle, % Osie przechodzą przez środek axis line style={-Stealth}, % Strzałki na osiach axis on top, % Osie na wierzchu xlabel={$X$}, % Oznaczenie osi X ylabel={$Y$}, % Oznaczenie osi Y xlabel style={at={(ticklabel* cs:1)}, anchor=north east}, % Pozycja etykiety X ylabel style={at={(ticklabel* cs:1)}, anchor=north west}, % Pozycja etykiety Y grid=both, % Dodaj siatkę grid style={dotted, gray!50}, % Styl siatki: kropkowana, szara set layers, % Włącz warstwy clip mode=individual, legend style={font=\tiny, scale=0.8, legend cell align=left}, legend pos=south west% Zmniejsza legendę ] \begin{pgfonlayer}{axis foreground} \addplot [domain=-3:3, samples=100, thick, color=Red] {x} node[pos=0.9, above] {\textbf{$\textcolor{Red}{f}$}}; \addplot [domain=-3:3, samples=100, thick, color=Orchid] {x+2} node[pos=0.9, above] {\textbf{$\textcolor{Orchid}{g}$}}; \addplot [domain=-3:3, samples=100, thick, color=Cerulean] {x-2} node[pos=0.9, above] {\textbf{$\textcolor{Cerulean}{h}$}}; \end{pgfonlayer} \end{axis} \end{tikzpicture} \end{document}

  • "guia" Gregorian Chant symbol setting and vertical space in Tetragram using Musixtex
    by ABV on February 4, 2025 at 2:55 pm

    It is needed to move the "Guia" symbol to the right corner of the staff; also is needed to configure the vertical space between staff inside tetragram. The basic code is as follow: \documentclass[% border={2pt 7pt 15pt -17pt},% left bottom right top %border=8pt varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{musicography} \usepackage{scalerel}%Escalar símbolos \usepackage{musixtex} \input musixlyr% \input musixlit% \input {musixgre}%gregoriano %\input musixps% \usepackage{gregoriotex}%Additiona package \usepackage{amsmath}% \usepackage{amssymb}% %$\shortmid$ and $\mid$ \usepackage{xcolor} \xdefinecolor{red-undar}{RGB}{179,35,79} \usepackage{fontawesome5} %\usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage{lmodern} %\usepackage{graphicx} \usepackage{lilyglyphs} \usepackage{rotating,lilyglyphs}% \usepackage{trimclip} \begin{document} \begin{music} \hsize=\linewidth% \resetlyrics \setlyrics{Letras}{Be-ne-{\hspace{1.5cm}-dic-tus D\'o-mi-nus} De-us Is-ra-el: {\hspace{4.5cm}quia visitávit, et fecit redemptiónem} ple-bis su-{\ae}: Et er-{{\hspace{2.3cm}-éxit cornu sal}}-{\'u}-tis no-bis: {{\hspace{4.1cm}in domo David pú-}} e-ri-su-i. Si-cut {{\hspace{2.1cm}locútus est per}} os san-ctó-rum, {{\hspace{5.5cm}qui a s{\ae}culo sunt, prophe}}-t{\'a}-rum ei-us: Sa-l{\'u}-{{\hspace{0.7cm}tem ex inimicis nostris, et de manu ómnium}} qui o-dér-unt nos:}% \setsongraise{1}{0.15cm} \font\A=phvb8t at 6pt% added for letter type. \font\B=phvb8t at 13pt% added for letter type. \instrumentnumber{1} \nobarnumbers \setlines14 \setclef1{4000} \setstaffs11 \setaltoclefsymbol1\gregorianCclef% \newcommand{\guia}[1]{\loff{\zcharnote #1{\GreCustos3{}}}}% \newcommand{\ustt}[1]{\raisebox{0.2\Interligne}{\kern-1.4pt \ust {#1}\kern1.4pt}}% normal size \ust centered and put higher for notes on a line \newcommand{\usttt}[1]{\zcharnote {#1}{\A\textbf\medtype \kern0.3pt\raisebox{0.1\Interligne}-\kern0.3pt}}% shorter \ust % \newcommand{\btt}[1]{\zcharnote {#1}{\A\textbf{\kern1.16pt \raisebox{-0.9\Interligne}{\lilyGlyph{rests.M1neomensural}}\kern-1.16pt}}}% vertical bar below center of note head (original distance) \newcommand{\ptt}[1]{\kern-4pt\pt {#1}\kern4pt}% point closer to note head (original distance is defined for larger \nq) % %\newcommand{\caeg}{\zcharnote{5}{\hbsk\begin{tikzpicture}%Barra Vertical %\draw[line width=0.5pt,draw=black] (0.35,-0.295) -- ++(0,0.15); % %\end{tikzpicture}}}% works, but quite complicated if there is an existing symbol in amssymb % \newcommand{\caeg}{\charnote{b}{\kern-4.1pt$\A\textbf\shortmid$\kern4.1pt}\hbsk}% see differences in spacing % \newcommand{\dsbr}{\notes\zcharnote M{\kern-1.1pt$\A\textbf\mid\hspace{-0.125cm}\mid$\kern1.1pt}\hbsk\en}% see differences in spacing % \newcommand{\sbr}{\notes\zcharnote M{\kern-1.1pt$\A\textbf\mid$\kern1.1pt}\hbsk\en}% see differences in spacing % \newcommand{\sbre}{\zcharnote O{\kern-1.6pt$\A\textbf\mid$}}% see differences in spacing % \startpiece% \A\assignlyrics{1}{Letras}% \addspace{0.5\afterruleskip}% \notes\diapunc{M}\issluru1{N}\diapunc{N}\hbsk\tsslur1{a}\nolyr\diapunc{a}\lyr\Hpause{a}{2}\sk\sk\sk\diapunc{_b}\diapunc{a}\diapunc{N}\diapunc{a}\diapunc{a}\sk\roffset{1.3}{\guia{j}}\en% \zalaligne% \notes\lyr\Hpause{a}{5}\sk\sk\sk\sk\sk\sk\diapunc{N}\diapunc{M}\issluru0N\diapunc{N}\hbsk\tsslur0{a}\nolyr\diapunc{a}\issluru0N\diapunc{N}\hbsk\tsslur0{M}\nolyr\diapunc{M}\roffset{1.3}{\guia{h}}\en% \zalaligne% \notes\diapunc{M}\issluru0N\diapunc{N}\hbsk\tsslur0{a}\nolyr\diapunc{a}\lyr\Hpause{a}{4}\sk\sk\sk\sk\sk\diapunc{_b}\diapunc{a}\diapunc{N}\diapunc{a}\roffset{1.3}{\guia{j}}\en% \zalaligne% \notes\lyr\Hpause{a}{5}\sk\sk\sk\sk\sk\sk\diapunc{N}\diapunc{M}\issluru0N\diapunc{N}\hbsk\tsslur0{a}\nolyr\diapunc{a}\issluru0N\diapunc{N}\hbsk\tsslur0{M}\nolyr\diapunc{M}\roffset{1.3}{\guia{h}}\en% \zalaligne% \notes\diapunc{M}\issluru0N\diapunc{N}\hbsk\tsslur0{a}\nolyr\diapunc{a}\lyr\Hpause{a}{5}\sk\sk\sk\sk\sk\sk\diapunc{_b}\diapunc{a}\diapunc{N}\diapunc{a}\roffset{1.3}{\guia{j}}\en% \zalaligne% \notes\lyr\Hpause{a}{7}\sk\sk\sk\sk\sk\sk\sk\sk\diapunc{N}\diapunc{M}\issluru0N\diapunc{N}\hbsk\tsslur0{a}\nolyr\diapunc{a}\issluru0N\diapunc{N}\hbsk\tsslur0{M}\nolyr\diapunc{M}\roffset{1.3}{\guia{h}}\en% \zstoppiece% \end{music} \end{document} The current output is as follow:

  • Using Deployment Diagrams in Latex (using tikz or tikz-uml)
    by Stephan1403 on February 4, 2025 at 1:54 pm

    For my bachelors thesis I wanted to include a Deployment Diagram. For my other diagrams I found that using tikz-uml was the best. Unfortunately there seems to be no option to draw the 3d Boxes used in deployment diagrams with tikz-uml. What is the best way to include a deployment diagrams in my latex? P.s. this is my reference for tikz-uml: https://perso.ensta-paris.fr/~kielbasi/tikzuml/var/files/doc/tikzumlmanual.pdf

  • Runaway Argument error due to restatable in newenvironment in Latex
    by Clément Michaud on February 4, 2025 at 11:04 am

    I'm trying to wrap a restatable block in my own environment using \newenvironment to be able to customize my blocks and restate them but when I try to do that I get the following error: Runaway argument? ! File ended while scanning use of \thmt@collect@body. \par <*> ...mp/843342bb-1eed-41c5-9012-92b0e9271a56.tex Here is the simple code that raises this error: \documentclass{article} \usepackage{thmtools} \usepackage{thm-restate} \newenvironment{test}[2]{\begin{restatable}{#1}{#2}}{\end{restatable}} \begin{document} \begin{test}{thm}{test2} test \end{test} \end{document} This is compiled with pdfLatex and with version 2024. I also tried with NewEnviron from the environ package. With this, the command that is supposed to be used for restating the theorem gives an error: Undefined control sequence.. Can anyone help me figure out what's wrong? Is it an issue with restatable? Thank you in advance.

  • Possible package clash -- XeLaTex + mla + graphicx?
    by crmdgn on February 4, 2025 at 2:23 am

    I'm using MacTex 2024. This code \documentclass[12pt,letterpaper]{article} \usepackage{mla} \usepackage{graphicx} \begin{document} \begin{mla} Blah blah text text \begin{figure} \includegraphics[width=0.75\textwidth]{photo.jpg} \end{figure} \end{mla} \end{document} produces these errors: LaTeX Error: Cannot determine size of graphic in photo.jpg (no BoundingBox). [...5\textwidth]{photo.jpg}] LaTex Font Warning: Font shape `TU/ptm/m/n' undefined (Font) using `TU/lmr/m/n instead on input line 10 What is going on and how do I fix it?

  • TikZ Layers on custom code
    by Emanuele Nardi on February 4, 2025 at 12:57 am

    I'm working on adapting the code from How to Optimize a TikZ Animation of Quicksort? to use TikZ with layers. I want to add a layer that draws a rectangle with a very thick line. Additionally, I would like to include a line between the 7th and 8th elements, exactly in the middle of the vector. Furthermore, the labels should be positioned between the colored cells. More details are provided in the code. Desired output This is my current output: This is the output I would like to achieve: Code \documentclass[tikz, border=.2cm]{standalone} \usetikzlibrary{chains} % slide 11/52 \newcommand*\tikzqsset{\pgfqkeys{/tikz/qs}} \tikzqsset{ % default cell style vector/.style = {draw, shape=rectangle, minimum size = +0.7cm, outer sep = +0pt}, label/.style = {node distance = 0pt,font = \ttfamily\scriptsize}, % /tikz/label exists already % cells styles undiscovered/.style = {fill = white}, left/.style = {fill = red!30}, between/.style = {fill = yellow!30}, right/.style = {fill = blue!30}, % parsing style parse/.style args={#1#2}{qs/sc-#1/.try, node contents={#2}}, % defining styles sc-l/.style={in front of path, qs/undiscovered}, sc-L/.style={in front of path, qs/left}, sc-b/.style={in front of path, qs/between}, sc-r/.style={in front of path, qs/undiscovered}, sc-R/.style={in front of path, qs/right}, } \NewDocumentCommand{\DividiEtImpera}{ m }{ \tikz\path[node distance=+0pt, start chain=going right] { foreach[count=\i] \v in {#1}{ node[on chain, qs/vector, qs/parse/.expand once=\v] } } []; \tikz\draw[very thick] (chain-1.north west) rectangle (chain-16.south east); } \begin{document} \DividiEtImpera{l0, L1, L2, L3, L4, l5, b6, b7, b8, b9, b10, r11, r12, R13, R14, R15} % maxL label below and between 1 and 4 % maxRR label below and between 6 and 7 % maxLL label below and between 8 and 10 % maxR label below and between 13 and 15 \end{document}

  • Special enumerated list inside a display-math environment
    by Cherryblossoms on February 3, 2025 at 9:49 pm

    As in the above image, I need to define a set consisting of constraints. These constraints need to be cross-referenced elsewhere in the document, so I also need to label them. I am unable to find a solution to this. I tried align/aligned, but the tag comes on the right, which I don't want (it doesn't appear inside the set). The above way will make my overall set neat. An enumerate environment seems to be a possible option, except I am getting errors.

  • LuaLaTeX ignores kerning pairs among math glyphs
    by FKranhold on February 3, 2025 at 8:44 pm

    (This issue might be somewhat related to this question.) Consider the following MWE: \documentclass{scrartcl} \usepackage{unicode-math} \setmathfont{MinionMath-Regular} \begin{document} $abcff,$ \end{document} When compiled with LuaLaTeX (you need the Minion Math font for this), the result looks as follows: Clearly, some kerning information is either missing or ignored here. However, it looks as if this is not an issue of the font: A quick inspection with FontForge shows that the font contains information for many kerning pairs, including “ff” and “f,” (the “italic f” being the unicode character U+1D453): I believe there must be a way to tell LuaLaTeX all these values. Even if LuaLaTeX cannot get these values from the OTF file itself (which would surprise me), I’d expect that one can tell LuaLaTeX all these kerning values manually, similar to this solution, but somehow adapted to the math font. (For completeness, I should mention that staircaise kerning for subscripts and superscripts works fine.) Update: I have just noticed that with TeX Gyre Pagella Math as math font, there is a quite noticable kerning effect at “cf” and “ff” – so apparently, the concept of kerning math glyphs is something LuaLaTeX is (in principle) perfectly capable of: