[luatex] lualatex with mathversion based on different text font with text font italic variables

Kunchitapadam, Baskaran (TNQ Software) n.k.baskaran at tnqsoftware.co.in
Wed Apr 20 19:11:07 CEST 2022


Hi Team

In LuaLaTeX, I have change title font "lmroman10-bold". The math 
variables "a" and "b" comes "latinmodern-math.otf". If I change 
mathversion to "bold" but not comes "bold italic".Is it possible to 
change automatically bolditalic either "latinmodern-math.otf" or 
"lmroman10-bolditalic". Is it possible to change the mathvariables 
[A-Za-z] to running text font italic by using unicode-math.sty. By using 
range, then the last \mathversion is working globally.



\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmathfont[version=normal]{latinmodern-math.otf}
\setmathfont[version=bold]{latinmodern-math.otf}
\makeatletter
\def\@maketitle{%
   \newpage
   \null
   \vskip 2em%
   \begin{center}%
   \let \footnote \thanks
     {\LARGE\mathversion{bold}\bfseries \@title \par}%
     \vskip 1.5em%
     {\large
       \lineskip .5em%
       \begin{tabular}[t]{c}%
         \@author
       \end{tabular}\par}%
     \vskip 1em%
     {\large \@date}%
   \end{center}%
   \par
   \vskip 1.5em}
\makeatother
\begin{document}
\title{This is $a+b=\alpha+\beta$ article title}
\author{Test $a+b=\alpha+\beta$}
\maketitle
\end{document}

Thanks and regards
Baskaran NK
-- 


Disclaimer: The entire content of this email message, including any files 
transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you are not the named 
addressee or part of the entity, you should not disseminate, distribute, or 
copy this email. Please notify the sender immediately by e-mail if you have 
received this email by mistake and delete this e-mail from your system. If 
you are not the intended recipient you are notified that disclosing, 
copying, distributing, or taking any action in reliance on the contents of 
this information is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20220420/5dab27a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: J798Y1ynHECbgPly.png
Type: image/png
Size: 178296 bytes
Desc: not available
URL: <https://tug.org/pipermail/luatex/attachments/20220420/5dab27a0/attachment-0001.png>


More information about the luatex mailing list.