两行方程式中的文字

两行方程式中的文字

我做了一个等式。但我希望单词“Factor Mecânico de Filler”在两行中。例如,“Factor Mecânico”在一行,而“de Filler”在另一行。可以吗?

   \documentclass[12pt,twoside,a4paper,openright]{report}
        \usepackage[portuguese]{babel}
        \usepackage[utf8]{inputenc}
        \usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead]{geometry}
        \usepackage{mathtools}

    \begin{document}

            \begin{equation}
            \label{equacao_}
            \text{Factor Mecânico de \textit{Filler}} = \frac{[\text{\% \textit{Filler} efectivo} \times \text{Índice de Tracção] (Modificado)}}{[\text{\% \textit{Filler} efectivo} \times \text{Índice de Tracção] (Original)}}
            \end{equation}

            \end{document}

答案1

我将把您的文本放在表格环境中(没有列分隔符)。或者您可以使用stackengine包及其\Centerstack命令。

我还重写了右侧成员,我认为这样看起来更好。以下是两种方法的说明:

\documentclass[12pt,twoside,a4paper,openright]{report}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead]{geometry}
\usepackage{mathtools}
\usepackage{stackengine}
\setstackEOL{\\} 

\begin{document}

\begin{equation}
\label{equacao_}
\begin{tabular}{@{}c@{}} {Factor Mecânico} \\ de\textit{Filler}\end{tabular} = \frac{[\text{\% \textit{Filler} efectivo} \times \text{Índice de Tracção] (Modificado)}}{[\text{\% \textit{Filler} efectivo} \times \text{Índice de Tracção] \rlap{(Original)}\hphantom{(Modificado)}}}
\end{equation}

\begin{equation}
\label{equacao_}
\Centerstack{Factor Mecânico\\ de\textit{Filler}} = \frac{[\text{\% \textit{Filler} efectivo} \times \text{Índice de Tracção] (Modificado)}}{[\text{\% \textit{Filler} efectivo} \times \text{Índice de Tracção] \rlap{(Original)}\hphantom{(Modificado)}}}
\end{equation}

\end{document} 

在此处输入图片描述

相关内容