如何设置符号的字体?

如何设置符号的字体?

Epsilon 字体与其他字体完全不同。它需要与其他字体相同链接。

以下是我使用 xelatex 呈现的 pdf 的 tex。

\documentclass[10pt]{extarticle}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{hyphenat}
\usepackage{mathtools}
\usepackage{esint}
\usepackage[no-math]{fontspec}
\usepackage[hiresbb]{graphicx}
\usepackage[paperwidth=324pt, margin=10pt]{geometry}

\newcommand{\lt}{<}
\newcommand{\hyphen}{\hyp}
\newcommand{\gt}{>}

\setmainfont[
     Path = /var/www/html/_default/DeployCode/jagan/common/cms/v2.0/fonts/MinionPro/,
     Extension  = .otf,
     Ligatures  = TeX,
     BoldFont   = MinionProBold,
     ItalicFont = MinionProItalic,
     BoldItalicFont = MinionProBoldItalic
]{MinionProRegular}

\usepackage[italic]{mathastext}
\pagestyle{empty}
\newsavebox{\mybox}
\newlength{\mywidth}
\newlength{\myheight}
\newlength{\mydepth}
\setlength{\topskip}{0pt}
\setlength{\parindent}{0pt}
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}

    \fontsize{12pt}{13.5pt}\selectfont
\begin{lrbox}{\mybox}
    \begin{minipage}{\textwidth}$Q = CV = A{\varepsilon} {\varepsilon _0}\dfrac{V\alpha}{d}$\end{minipage}
\end{lrbox}

\settowidth {\mywidth}  {\usebox{\mybox}}
\settoheight{\myheight} {\usebox{\mybox}}
\settodepth {\mydepth}  {\usebox{\mybox}}

\newwrite\foo
\immediate\openout\foo=\jobname.sizes
    \immediate\write\foo{"Depth" : "\the\mydepth",}
    \immediate\write\foo{"Height" : "\the\myheight",}
    \addtolength{\myheight} {\mydepth}
    \immediate\write\foo{"TotalHeight" : "\the\myheight",}
    \immediate\write\foo{"Width" : "\the\mywidth"}
\closeout\foo

\begin{document}
    \color[RGB]{0, 0, 0}
    \pagecolor[RGB]{255, 255, 255}
    \usebox{\mybox}
\end{document}

在此处输入图片描述

相关内容