我们如何将下面提到的公式分成两行?
$\displaystyle \boldsymbol{{\left( {x\log x} \right)^{\log \log x}}\left\{ {\frac{1}
{{x\log x}}\left( {\log x + \log \log x} \right) + \left( {\log \log x} \right)\left( {\frac{1}{x} + \frac{1}{{x\log x}}} \right)} \right\} }$
仅供参考:我正在使用两列布局,并且这个符号与下一列重叠。
编辑:添加了存在上述问题的示例 tex 文件:
\documentclass[addpoints,answers,10pt]{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{nonfloat}
\usepackage{caption}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{ifpdf}
\usepackage{chemfig}
\usepackage[export]{adjustbox}
\begin{document} \begin{multicols}{2} \begin{questions}
\question[4] Ref: (111)\\If\ $\displaystyle \boldsymbol{y = {\left( {x\log x} \right)^{\log \log x}} }$ , then\ $\displaystyle \boldsymbol{\frac{{dy}}
{{dx}} = }$
\begin{choices} \choice $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{\log \log x}}\left\{ {\frac{1}
{{x\log x}}\left( {\log x + \log \log x} \right) + \left( {\log \log x} \right)\left( {\frac{1}
{x} + \frac{1}
{{x\log x}}} \right)} \right\} }$
\choice $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{x\log x}}\log \log x\left[ {\frac{2}
{{\log x}} + \frac{1}
{x}} \right] }$
\choice $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{x\log x}}\frac{{\log \log x}}
{x}\left[ {\frac{1}
{{\log x}} + 1} \right] }$
\choice none of these
\end{choices}
\end{questions}
\end{multicols}
\end{document}
答案1
您的问题是由于一对线断线造成的\left
\right
。由于我不知道的原因,这无法解决。当您需要这样做时,请根据需要使用\big
、\bigg
、\Big
或。\Bigg
添加breqn
包允许此功能。
请注意,您也不能使用\boldsymbol
换行符或对齐标记 ( &
)。我不建议以这种方式使用粗体数学反正,但作为一种解决方法,您可以单独加粗每一行。
\documentclass[addpoints,answers,10pt]{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{nonfloat}
\usepackage{caption}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{ifpdf}
\usepackage{chemfig}
\usepackage[export]{adjustbox}
\usepackage{mwe}
\newcommand{\dydx}{\frac{\mathrm{d}y}{\mathrm{d}x}}
\begin{document}
\begin{multicols}{2}
\begin{questions}
\question[4] Ref: (111)
If $\displaystyle \boldsymbol{y = {\left( {x\log x} \right)^{\log \log x}}}$ , then $\displaystyle \boldsymbol{\dydx =}$
\begin{choices}
\choice \parbox{\linewidth}{
\def\mypr#1{\left(#1\right)} % clarity
\def\mybr#1{\left\{#1\right\}} % clarity
\begin{align*}
\boldsymbol{\mypr{x\log x}^{\log \log x}} &\boldsymbol{\Big\{\frac{1}{x\log x} \mypr{\log x + \log \log x}} \\
&\boldsymbol{+ \mypr{\log \log x} \mypr{\frac{1}{x} + \frac{1}{x\log x}} \Big\}}
\end{align*}
}
\choice\parbox{\linewidth}{
\begin{equation*}
\boldsymbol{{\left( {x\log x} \right)^{x\log x}}\log \log x\left[ {\frac{2}
{{\log x}} + \frac{1}
{x}} \right] }
\end{equation*}
}
\choice \parbox{\linewidth}{
\begin{equation*}
\boldsymbol{{\left( {x\log x} \right)^{x\log x}}\frac{{\log \log x}}
{x}\left[ {\frac{1}
{{\log x}} + 1} \right] }
\end{equation*}
}
\choice none of these
\end{choices}
\question \lipsum
\end{questions}
\end{multicols}
\end{document}