使用较小的字体格式化证明理由

使用较小的字体格式化证明理由

我需要帮助格式化校样理由。过去,我使用过\quad\text{some short justification}.现在,我有更长的理由——仍然只有一句话,但使用上述方法它不会转到下一页。此外,我怎样才能将字体缩小以适合理由。

谢谢大家的帮助。

编辑以下是我不想要的一个例子:

对齐方式没有“换行”并且超出了页面范围。

LaTeX 代码为:

\begin{document}
\begin{align*}
  y &= x^8 +7x^6 - 5x^5 + 4x^3 - 9x^2 + 2x + 10000000 \\
    &= x^8 +7x^6 - 5x^5 + 4x^3 - 9x^2 + 2x + 9999999 + 1 \quad\text{by the craziest most difficult addition I have ever seen in my entire life!}
\end{align*}
\end{document}

当对齐方式“换行”时,第二行最好从对齐方式的开头开始缩进几个空格

答案1

为了保持一致性,我会保持字体大小与周围的文本(和数学)相似。您可以使用\parbox固定宽度且[t]操作对齐的字体将内容换行成多行:

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath,lipsum}
\begin{document}

\lipsum[1]
\begin{align*}
  f(x) &= ax^2 + bx + c \quad \text{some short justification} \\
  g(x) &= ax^2 + bx + c \quad \parbox[t]{.5\linewidth}{some longer justification that spans multiple lines}
\end{align*}
\lipsum[2]

\end{document}

相关内容