Multicol 帮助格式

Multicol 帮助格式

我正在尝试为我的一个班级创建一张笔记表。但是,老天爷啊,我无法强制我的文本进入下一栏。我正在使用包multicol;我试过使用\columnbreak\newpage命令,但它们总是在分栏前切断内容(好像我从来没有写过它)。

我想知道是否有人可以看看我的代码并建议我需要做什么?这是我的代码:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=0.5in]{geometry}
\usepackage{mathrsfs}
\usepackage{multicol}
\usepackage{amsmath}
\begin{document}
\noindent

\begin{multicols}{3}

\textit{Riemann Integrals \& Properties}
\begin{align*}
    \mathscr{U}(\mathscr{P},f) &= \sum_{i=1}^{\infty}M_{i} \Delta x_{i} \\
    \mathscr{L}(\mathscr{P},f) &= \sum_{i=1}^{\infty}m_{i} \Delta x_{i} \\
    \mathscr{L}(\mathscr{P},f) &\leq \mathscr{U}(\mathscr{P},f) \\
    \overline{\int_{a}^{b}}f &= \text{inf}\{ \mathscr{U}(\mathscr{P},f)\} \\
    \underline{\int_{a}^{b}}f &= \text{sup}\{ \mathscr{L}(\mathscr{P},f)\} \\
\end{align*}

\begin{center}
  \hrule
\end{center}

If $\mathscr{P}^{*}$ is a refinement of $\mathscr{P}$,
then the following holds true:
\begin{align*}
    \mathscr{L}(\mathscr{P},f) &\leq \mathscr{L}(\mathscr{P}^{*},f) \\
    &\leq \mathscr{U}(\mathscr{P}^{*},f) \leq \mathscr{U}(\mathscr{P},f) \\
\end{align*}

\begin{center}
  \hrule
\end{center}

Let $f$ be a bounded real-value function on the closed and bounded interval $[a,b]$. If $\overline{\int_{a}^{b}}f = \underline{\int_{a}^{b}}f$, then $f \in \mathscr{R}[a,b]$.  $\overline{\int_{a}^{b}}f = -\underline{\int_{b}^{a}}f$ follows if $f \in \mathscr{R}[a,b] \\$.


Let $f$ be a real-valued function on $[a,b]$. If $f$ is continuous or monotone on $[a,b]$, then $f \in \mathscr{R}[a,b] \\$.


If $f \in \mathscr{R}[a,b]$, then it follows that  $|f|,f^{2} \in \mathscr{R}[a,b]. \\$.


Let $f$ be a bounded real-valued function on $[a,b]$, and suppose $a<c<b$. Then $f \in \mathscr{R}[a,b] \iff f \in \mathscr{R}[a,c]$ and $f \in \mathscr{R}[c,b]$. If so: $\int_{a}^{b}f=\int_{a}^{c}f + \int_{b}^{c}f. \\ \\$ 
\begin{center}
  \hrule
\end{center}
\begin{align*}
     & \text{Let} f,g \in \mathscr{R}[a,b]. \: \text{Then,} \\
     & a) \: f+g \in \mathscr{R}[a,b] \: with \int_{a}^{b}(f+g) = \int_{a}^{b}f+\int_{a}^{b}g  \\
     & b) \: cf \in \mathscr{R}[a,b] \: with \int_{a}^{b}cf = c\int_{a}^{b}f \\
     & c) \: fg \in \mathscr{R}[a,b] \\
     & d) \: |f|\in \mathscr{R}[a,b] \: with \left| \int_{a}^{b}f \right| \leq \int_{a}^{b} |f| \\
\end{align*}

\textit{F.T.C. I \& II}


\end{multicols*{3}}

\end{document}

答案1

如果你在编译时查看控制台上的输出,你会发现

! LaTeX Error: \begin{multicols} on input line 44 ended by \end{multicols*{3}}.


See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.94 \end{multicols*{3}}

? 

也就是说,你的文本根本不会消失。LaTeX 拒绝编译代码并告诉你哪里出了问题。

解决方案是更换

\end{multicols*{3}}

\end{multicols}

以便匹配

\begin{multicols}

前面提到过。{3}是环境的一个参数multicols,但只需要在开头指定。也就是说,语法是

\begin{multicols}{3}

...

\end{multicols}

相关内容