我有一本书,其中有一个缩进段落,我想在其中放置三个包括单词的后项方程。我喜欢对齐它们的 = 符号,也喜欢将三个方程组放在缩进段落的中心。你知道怎么做吗?
\documentclass[openany]{book}
\usepackage{changepage}
\usepackage{geometry}
\geometry{paperheight=9.8125in,paperwidth=8in, left=.5in,
right=.5in,top=.75in,bottom=.4375in }
\renewcommand{\rmdefault}{pag}
\begin{document}
\begin{adjustwidth}{2.25in}{0pt}
\chapter{my paragraph including equations}
This paragraph has 2.25 inch indentation with respect to the original .5
inch margin left defined by geometry.
I have a sequence of equations and I like them to be aligned so that their
equal signs "= "are aligned but I like them to be located at the center of
this indented paragraph too.
Also for some numbers $a$, $b$, and $c$, we get:
\begin{center}
$a=b+c+99999999999999999$,\\
$c=a+56$ implies $a+9$ is good,\\
$b=a$ or $c$ is good imply $b$ needs to be carefule.
\end{center}
\end{adjustwidth}
\end{document}
答案1
像这样?
\documentclass[openany]{book}
\usepackage{changepage}
\usepackage{geometry}
\geometry{paperheight=9.8125in,paperwidth=8in, left=.5in,
right=.5in,top=.75in,bottom=.4375in }
\renewcommand{\rmdefault}{pag}
\usepackage{amsmath}
\begin{document}
%\begin{adjustwidth}{2.25in}{0pt}
\chapter{my paragraph including equations}
This paragraph has 2.25 inch indentation with respect to the original .5
inch margin left defined by geometry.
I have a sequence of equations and I like them to be aligned so that their
equal signs "= "are aligned but I like them to be located at the center of
this indented paragraph too.
Also for some numbers $a$, $b$, and $c$, we get:
\begin{align*}
a & =b+c+99999999999999999,\\
c & =a+56 \text{ implies } a+9 \text{ is good,}\\
b & =a \text{ or } c \text{is good imply } b {needs to be carefule.}
\end{align*}
%\end{adjustwidth}
\end{document}
- 更新放入
\chapter
里面adjustwidth
,而是重新定义\chapter
风格 - 对于方程式中的文本,请使用包
\text
中的amsmath
如果您坚持使用自己的方法来格式化文档,请删除MWE(最小工作示例)%
之前\begind{adjustwidth}
和\end{adjustwidth}
上面的内容。
你将获得