![如何在一个命令行中更改整本书的方程式的字体大小,而不是对每个方程式都这样做](https://linux22.com/image/395230/%E5%A6%82%E4%BD%95%E5%9C%A8%E4%B8%80%E4%B8%AA%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E6%9B%B4%E6%94%B9%E6%95%B4%E6%9C%AC%E4%B9%A6%E7%9A%84%E6%96%B9%E7%A8%8B%E5%BC%8F%E7%9A%84%E5%AD%97%E4%BD%93%E5%A4%A7%E5%B0%8F%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%AF%B9%E6%AF%8F%E4%B8%AA%E6%96%B9%E7%A8%8B%E5%BC%8F%E9%83%BD%E8%BF%99%E6%A0%B7%E5%81%9A.png)
我有一本书,其中公式的字体大小比正文的字体小。请看它$\pi$
与其他字体相比有多小:
\documentclass[openany]{book}
\usepackage{amsbsy}
\usepackage{changepage}
\usepackage{geometry}
\geometry{paperheight=9.8125in,paperwidth=8in, left=.5in,
right=.5in,top=.75in,bottom=.4375in }
\usepackage{fancyhdr}
\fancypagestyle{plain}{\fancyhf{} \fancyhead[EL,OR]{\textbf
{\thepage}}\renewcommand{\headrulewidth}{0pt}}
\pagestyle{plain}
\renewcommand{\rmdefault}{pag}
\usepackage[utf8]{inputenc}
\usepackage[hyphens]{url}
\usepackage[authoryear,round]{natbib}
\newcommand{\titlefontarash}{\usefont{OT1}{pag}{b}{n}\fontsize{25}
{\baselineskip} \selectfont}
\newcommand{\basefontarash}{\usefont{OT1}{pag}{b}{n}\fontsize{18}
{\baselineskip} \selectfont}
\newcommand{\datefontarash}{\usefont{OT1}{pag}{m}{n}\fontsize{12}
{\baselineskip} \selectfont}
\begin{document}
\title{\titlefontarash respect}
\author{\basefontarash good boy}
\date{\datefontarash April 21, 2019}
{
\maketitle
\let\cleardoublepage\relax
\frontmatter
}
\vspace*{\fill}
\begin{center}
\basefontarash To beauty...
\linebreak
\linebreak
\basefontarash To nice...
\end{center}
\vspace*{\fill}
\tableofcontents
\begin{adjustwidth}{2.25in}{0pt}
\mainmatter
{Introduction}
{\chapter{beauty}
fish (\citet{fox(1994)}) number $\pi +\pi +\pi +v\pi +\pi +v\pi +\pi +\pi
+\pi +\pi +v\pi +v\pi +\pi +\pi +\pi +\pi +\pi +\pi +\pi +\pi +$ fish
\textbf{RIVER ${\boldsymbol{\pi+\pi+\pi+\pi+\pi+\pi+\pi+\pi+\pi}}$}
following .
\section{fox1}
\subsection{fox2}
\subsection{fox3}
\subsection{fox4}
\subsection{fox5}
\subsection{fox6}
\subsection{fox7}
Now we are fox...
Let us see what happens
\section{fish}
fish fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catvfish fox dog catvfish fox dog catfish fox dog catfish fox dog catfish
fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catfish fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox
dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog catfish
fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catfish fox dog cat
}
\section{fish5}
fish fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catvvfish fox dog catfish fox dog catfish fox dog catfish fox dog catfish
fox dog cat
\section{dog}
fish fox dog catvvvfish fox dog catfish fox dog catfish fox dog catfish fox
dog catfish fox dog cat
\subsection{dog ${\boldsymbol{\pi}}$}
\section{mouse}
\section{milk}
\chapter{pishi}
\end{adjustwidth}
\begin{thebibliography}{9}
\bibitem[fox(1994)]{fox(1994)}fox, T. L. (1994) \textit{fox.} New York: fox.
\end{thebibliography}
\end{document}
您知道如何在一个命令行中更改整本书的方程式的字体大小,而不是对每个方程式都这样做吗?
答案1
我认为您不需要更改字体大小。这里的问题是您使用的字母\pi
只是一个小字母。例如,将以下(无意义!)序列添加到您的 pis:+ \sqrt{145} \Omega +v\pi + a^2 +2ab + b^2 +
您可以更好地了解由此产生的数学打印:
\documentclass[openany]{book}
\usepackage{amsbsy}
\usepackage{changepage}
\usepackage{geometry}
\geometry{paperheight=9.8125in,paperwidth=8in, left=.5in,
right=.5in,top=.75in,bottom=.4375in }
\usepackage{fancyhdr}
\fancypagestyle{plain}{\fancyhf{} \fancyhead[EL,OR]{\textbf
{\thepage}}\renewcommand{\headrulewidth}{0pt}}
\pagestyle{plain}
\renewcommand{\rmdefault}{pag}
\usepackage[utf8]{inputenc}
\usepackage[hyphens]{url}
\usepackage[authoryear,round]{natbib}
\newcommand{\titlefontarash}{%
\usefont{OT1}{pag}{b}{n}\fontsize{25}{30} \selectfont% <============== 30
}
\newcommand{\basefontarash}{\usefont{OT1}{pag}{b}{n}\fontsize{18}
{\baselineskip} \selectfont}
\newcommand{\datefontarash}{\usefont{OT1}{pag}{m}{n}\fontsize{12}
{\baselineskip} \selectfont}
\begin{document}
\title{\titlefontarash respect respect respect respect respect respect
respect respect respect respect respect respect respect respect respect
respect respect respect respect respect respect respect respect }
\author{\basefontarash good boy}
\date{\datefontarash April 21, 2019}
{
\maketitle
\let\cleardoublepage\relax
\frontmatter
}
\vspace*{\fill}
\begin{center}
\basefontarash To beauty...
\linebreak
\linebreak
\basefontarash To nice...
\end{center}
\vspace*{\fill}
\tableofcontents
\begin{adjustwidth}{2.25in}{0pt}
\mainmatter
{Introduction} % <================================================ ?????
\chapter{beauty}
fish (\citet{fox(1994)}) number $\pi +15 \pi + \sqrt{145} \Omega +v\pi + a^2 +2ab + b^2 + \pi +v\pi +\pi +\pi
+\pi +\pi +v\pi +v\pi +\pi +\pi +\pi +\pi +\pi +\pi +\pi +\pi +$ fish
\textbf{RIVER ${\boldsymbol{\pi+\pi+\pi+\pi+\pi+\pi+\pi+\pi+\pi}}$}
following .
\section{fox1}
\subsection{fox2}
\subsection{fox3}
\subsection{fox4}
\subsection{fox5}
\subsection{fox6}
\subsection{fox7}
Now we are fox...
Let us see what happens
\section{fish}
fish fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catvfish fox dog catvfish fox dog catfish fox dog catfish fox dog catfish
fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catfish fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox
dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog catfish
fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catfish fox dog cat
\section{fish5}
fish fox dog catfish fox dog catfish fox dog catfish fox dog catfish fox dog
catvvfish fox dog catfish fox dog catfish fox dog catfish fox dog catfish
fox dog cat
\section{dog}
fish fox dog catvvvfish fox dog catfish fox dog catfish fox dog catfish fox
dog catfish fox dog cat
\subsection{dog ${\boldsymbol{\pi}}$}
\section{mouse}
\section{milk}
\chapter{pishi}
\end{adjustwidth}
\begin{thebibliography}{9}
\bibitem[fox(1994)]{fox(1994)}fox, T. L. (1994) \textit{fox.} New York: fox.
\end{thebibliography}
\end{document}
结果页面如下:
请注意,我改变了你的定义
\usefont{OT1}{pag}{b}{n}\fontsize{25}{30} \selectfont% <============== 30
如果您的标题长度超过一行,则30
使用它来获得更好的结果(请参阅,我在相关标题行中添加了更多单词以进行测试)。\baselineskip