\align 不起作用

\align 不起作用
\begin{align}

At most \euro 2 million should be invested in renaissance

\\

At least \euro 1.5 million should be invested in modern art

\\

The investment in contemporary art should be at least half of the combined total investment in renaissance, neoclassicism and romanticism

\\

The combined total investment in renaissance and contemporary art should be at most \euro 5 million

\end{align}

我可能犯了一个基本的错误,但这就是我得到的结果:

在此处输入图片描述

显然,我希望它们对齐并编号。如果有人知道我做错了什么,请帮忙。

答案1

该环境align用于排版数学。

既然您说了一些有关编号的事情,那么您可能想要这样的东西:

\documentclass[10pt,a4paper]{article}
\usepackage{paralist}
\usepackage{eurosym}
\begin{document}

\begin{enumerate}[(1)]
    \item At most \euro 2 million should be invested in renaissance
    \item At least \euro 1.5 million should be invested in modern art
    \item The investment in contemporary art should be at least half of the combined total investment in renaissance, neoclassicism and romanticism
    \item The combined total investment in renaissance and contemporary art should be at most \euro 5 million
\end{enumerate}

\end{document}

输出:

在此处输入图片描述

答案2

alignamsmath对齐数学的构造。你可能想到了flushleft(或flushright):

\begin{flushleft}
At most \euro 2 million should be invested in renaissance
\\
At least \euro 1.5 million should be invested in modern art
\\
The investment in contemporary art should be at least half of the combined total investment in renaissance, neoclassicism and romanticism
\\
The combined total investment in renaissance and contemporary art should be at most \euro 5 million
\end{flushleft}

请注意,\\\\已更改为\\。如果您需要更大的垂直跳跃,则可以使用,例如\\[10pt]

相关内容