如何使小节的所有行按顺序排列并留有空格

如何使小节的所有行按顺序排列并留有空格
\subsection{CLOSED :}
If the operator results in the same set that it operates upon , then the algebraic system is               called ' CLOSED ' .

Example :

1. Set of an integer is closed under + , - , $\times$ operator.

2. Set of an integer is not closed under / operator.

Let A = \{ $\alpha$,$\beta$,$\psi$ \}

我想要这些我没有得到的空间并且按相同的顺序。

答案1

您的代码中犯了几个错误。

  1. 数学符号应限制在公式内;内联公式被 或 包围\(...\)$...$因此,第一个示例的运算符列表中的每个项目都应位于$符号之间。相反,整个最终公式必须被 包围$...$:也是A一个数学符号。

  2. 切勿在逗号或其他标点符号前留空格,除非您使用法语书写,而法语中分号、冒号、问号和询问号前应留有空格。

  3. 不要使用大写字母来强调;最常用的方法是斜体,但 LaTeX 有一个抽象命令\emph。定义的单词不应放在引号之间。

  4. 对于枚举列表,LaTeX 提供了enumerate环境。我不会在“示例:”行前留出垂直空间。

\documentclass{article}
\begin{document}

\section{Algebraic systems}

\subsection{Closedness}

If the operator results in the same set that it operates upon, then the
algebraic system is called \emph{closed}.

Examples:
\begin{enumerate}
\item The set of integers is closed under the $+$, $-$, $\times$ operators.

\item The set of integers is not closed under the $/$ operator.
\end{enumerate}

Let $A = \{\alpha,\beta,\psi\}$

\end{document}

在此处输入图片描述

答案2

如果你真的想要这样的东西,可以这样做:

\documentclass{article}

\begin{document}
\subsection{CLOSED :}
If the operator results in the same set that it operates upon , then the
algebraic system is called ' CLOSED ' .

\vspace{1\baselineskip} \noindent
Example :

\vspace{1\baselineskip} \noindent
1. Set of an integer is closed under + , - , $\times$ operator.

\vspace{1\baselineskip} \noindent
2. Set of an integer is not closed under / operator.

\vspace{1\baselineskip} \noindent
Let A = \{ $\alpha$,$\beta$,$\psi$ \}
\end{document}

在此处输入图片描述

不过,我可能会这样写:

\documentclass{article}

\begin{document}

\subsection{CLOSED :}
If the operator results in the same set that it operates upon, then the
algebraic system is called `CLOSED'.

\vspace{\baselineskip}\noindent
Example:
\begin{enumerate}
    \item Set of an integer is closed under +, -, $\times$ operator.
    \item Set of an integer is not closed under / operator.
\end{enumerate}
Let A = \{$\alpha$, $\beta$, $\psi$\}
\end{document}

在此处输入图片描述

或者也许为示例定义一些更花哨的东西。

相关内容