由买买提看人间百态

topics

全部话题 - 话题: amsmath
1 2 3 下页 末页 (共3页)
T*******n
发帖数: 493
1
LaTeX will not automatically break a display equation.
However, \usepackage{amsmath} will allow you to break
between display equations.
\usepackage{amsmath}
\allowdisplaybreaks
\begin{gather}
a=1 \\ % LaTeX can automatically break page here
b=2 \\ % or here if necessary
c=3
\end{gather}
Don't use eqnarray. Read the AMS-LaTeX (amsmath) manual
and use its environments instead. (eqnarray has spacing bugs)

double
T*******n
发帖数: 493
2
来自主题: TeX版 - eqnarray 后面的space 的问题
The subscript under the second \sum makes you think that
there is extra space, but if you measure it, there isn't (unless
you have loaded other packages that modify the spacing).
If you insist on adjusting the spacing but only for this
equation, try the following. I also recommend the amsmath
package's split environment instead of eqnarray, which has
known bugs in how spacing is calculated.
\documentclass{article}
\usepackage[tbtags]{amsmath}
\begin{document}
Text text text text text text text
T*******n
发帖数: 493
3
The eqnarray environment has bugs in the way it calculates spacing.
Use amsmath instead:
\usepackage{amsmath}
\begin{equation}
\begin{split}
x &= \text{first line} \\
&+ \text{second line, only one equation number}
\end{split}
\end{equation}
or
\begin{multline}
x = \text{this line flushed left} \\
\text{this line flushed right, one equation number}
\end{multline}
If you have many equations and some of them are long, use
split inside gather or align instead of inside equation.
A**********e
发帖数: 3102
4
amsmath 的 align/split 等和 \left \right 冲突,特头大。
比如说,我想打:
\left ( blah = \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
但是想在 = 处与下一行对齐。这时候 \left 和 \right 就报错了。根据 manual,
改成:
\left ( blah \right. &=
\left. \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
这时,左边的括号和`blah' 一样高,右边的和分式一样高 -_-b
如果不想手动设置括号这类 delimiter 的尺寸,想让 latex 自动处理(这个应当
是 latex 的原则吧),该咋办?amsmath 有没有提供类似的命令?
T*******n
发帖数: 493
5
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
A=B+c \tag{A}\\
B=E+e \tag{B}
\end{gather}
\end{document}
You need to load amsmath.sty.
If you need to align the equations, use align or alignat environments
instead of
gather.
e**e
发帖数: 278
6
来自主题: TeX版 - 求助,毕业论文格式
大家好,我Latex水平不怎么样,在毕业论文的格式上出了点问题,希望大家帮助,谢
谢。
我主要问题是需要在Contents 当中去掉Appendices 的目录,然后在List of Tables后
面加一个List of Appendices,但是发现我的Latex不让我这么做,不知道为什么。
我的Latex主文件如下:
\documentclass[12pt, letterpaper, amsmath, amssymb]{report}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{geometry}
\topmargin 0in \textheight 8in \oddsidemargin 0.7in \textwidth 5.6in
\input epsf
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{setspace}
\numberwithin{equation}{chapter}
\doublespacing
e**e
发帖数: 278
7
来自主题: TeX版 - 求助,毕业论文格式
参数错误,再发一次。
大家好,我Latex水平不怎么样,在毕业论文的格式上出了点问题,希望大家帮助,谢
谢。
我主要问题是需要在Contents 当中去掉Appendices 的目录,然后在List of Tables后
面加一个List of Appendices,但是发现我的Latex不让我这么做,不知道为什么。
我的Latex主文件如下:
\documentclass[12pt, letterpaper, amsmath, amssymb]{report}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{geometry}
\topmargin 0in \textheight 8in \oddsidemargin 0.7in \textwidth 5.6in
\input epsf
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{setspace}
\numberwithin{equation}{chapter}
\do
b*******t
发帖数: 33714
8
\text \textup \mathrm都可以
要加载 amsmath package
(\usepackage{amsmath})
g******g
发帖数: 145
9
来自主题: Faculty版 - 大家都用哪款latex? 上传了文件
那如果使用pdf图片的话,在ctex如何应用呢? 下面是附件3的编译(源文件好像有点
问题,应该是figure.pdf 而不是figure.eps)。
\documentclass{article}
\usepackage{amsmath}
\usepackage[dvips]{graphicx}
\usepackage{graphicx}
\usepackage{pdftex}
\begin{document}
\begin{figure}
\begin{center}
\includegraphics[scale=0.85]{figure.pdf}
\end{center}
\end{figure}
\end{document}
其中figure.pdf是想要的图片。 有什么问题吗?
‘图片是pdf,png,jpg格式的用pdflatex编译,直接生成PDF文件’
b*****n
发帖数: 71
10
来自主题: Faculty版 - 大家都用哪款latex? 上传了文件
\documentclass{article}
\usepackage{amsmath}
\usepackage[pdftex]{graphicx}
\begin{document}
\centering
\begin{figure}
\includegraphics[scale=0.85]{figure.pdf}
\end{figure}
\end{document}
pdflatex编译
p*l
发帖数: 1359
11
我的模版
\ProvidesPackage{beamerthemeclassnote}
\mode
\setbeamertemplate{caption}[numbered]
\setlength\parindent{28pt}
\setlength{\parskip}{0.75\baselineskip}
\setbeamersize{text margin left=0.5in,text margin right=0.5in}
\setbeamercolor{structure}{fg=black}
\setbeamercolor{palette primary}{fg=black,bg=white}
\setbeamertemplate{section in toc}{\vspace{12pt}\textbf{\inserttocsection}\}
\setbeamertemplate{subsection in toc}{\vspace{12pt}\hspace{18pt}\textbf{\
inserttocsubsectionnumber.}~... 阅读全帖
d******8
发帖数: 2191
12
【 以下文字转载自 USTC 讨论区 】
发信人: dd322508 (流月飞絮), 信区: USTC
标 题: Latex ref{figure}显示的是罗马数字而不是阿拉伯数字
发信站: BBS 未名空间站 (Fri Jun 25 12:24:45 2010, 美东)
图片下面是阿拉伯数字,但是引用的结果就成了罗马数字了。
\documentclass[aps,prb,showpacs,twocolumn,floats]{revtex4}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{epsfig}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{amsmath}
省去中间部分......
\begin{figure}\label{junctionmodel}
\includegraphics[width=70mm]{junctionmodel}
\caption{Color online:.....}
\end{figu
z*****n
发帖数: 7639
13
来自主题: Joke版 - 问个latex的问题
用amsmath package,
\begin{align}
\end{align}
不需要标号的行用\nonumber
d******8
发帖数: 2191
14
图片下面是阿拉伯数字,但是引用的结果就成了罗马数字了。
\documentclass[aps,prb,showpacs,twocolumn,floats]{revtex4}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{epsfig}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{amsmath}
省去中间部分......
\begin{figure}\label{junctionmodel}
\includegraphics[width=70mm]{junctionmodel}
\caption{Color online:.....}
\end{figure}
省去中间部分.......
\ref{junctionmodel} 结果为 I,而不是1.
求达人指点。谢谢!
w*******g
发帖数: 9932
15
try AMSmath
V*********r
发帖数: 666
16
不要搞太花哨的。单栏,Sans-serif字体,整齐一些就行了。
贴个简单的模板
\documentclass[11pt]{article}
\usepackage[top=1in, bottom=1.2in, left=1in, right=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{marvosym}
\usepackage{verbatim} % for multiline comment blocks
\usepackage{etoolbox}
\usepackage[english]{babel}
\usepackage{setspace} %conflict with \usepackage{needspace}
\usepackage{enumitem}
\renewcommand{\rmdefault}{phv} % Arial
\renewcommand{\sfdefault}{phv} %... 阅读全帖
c****s
发帖数: 2487
17
usepackage{amsmath}
\begin{equation}
\begin{split}
.....
z*****n
发帖数: 7639
18
usepackage{amsmath}
\begin{align}
ab &= ...
&= ...
&\le ...
\end{align}
T*******n
发帖数: 493
19
The eqnarray environment in LaTeX has flawed spacing calculations. The LaTeX
developers decided to keep the flaw as a "feature".
The amsmath package provides more useful alignment environments. For a single
equation split over several lines that is to have only one equation number,
use a combination of the "equation" and "split" environments. For aligned
equations each with its own equation number use the "align" environment (use
\notag to suppress any equation number).
The documentation for
T*******n
发帖数: 493
20
You have to break equations explicitly.
Use the "amsmath" package and read the documentation that
comes with it (texmf/doc/latex/amsldoc.dvi, or search ctan.org).
It offers many different types of multiline equation environments.
T*******n
发帖数: 493
21
\usepackage{amsmath}
...
\begin{equation}
\begin{bmatrix}
A & \smash[b]{\underbrace{\begin{matrix}B & C\end{matrix}}_{D}}
\end{bmatrix}_i
\end{equation}

C
T*******n
发帖数: 493
22
来自主题: TeX版 - 如何使公式换行?
To use align, multline, gather, etc. you need to \usepackage{amsmath}.
T*******n
发帖数: 493
23
来自主题: TeX版 - 如何实现这个公式
The following allows you to create an operator
name that typesets the same way as \lim_{x\to\infty}
(the subscribed p shifts positions depending on math
mode).
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\Min}{Minimize}
\begin{document}
in-line math $\Min_p D(p)$ in-line math\par
display math display math display math display math
\begin{equation}
\Min_p D(p)
\end{equation}
\end{document}
T*******n
发帖数: 493
24
来自主题: TeX版 - Any other way to get a "hat"?
What do you not like about \hat? The alignment or the
shape of the printed hat?
Assuming you are using LaTeX, try \usepackage{amsmath}
which uses a different algorith for aligning the hat.
Or try the accents package, found at
http://www.ctan.org/tex-archive/macros/latex/contrib/bezos/
T*******n
发帖数: 493
25
You can try this:
\usepackage{amsmath,amssymb}
\begin{equation}
x=y\tag*{$\blacksquare$}
\end{equation}
but you'll lose the equation number.
i*****o
发帖数: 42
26
我不需要[1], [2] in front of each reference,如何搞定?
GOOGLE了半天还没搞定,谢谢指点!
\documentclass[12pt,titlepage]{article}
\usepackage{graphicx}
\usepackage{caption2}
\usepackage{amsfonts}
\usepackage{amsmath,float,times,rotating}
\usepackage{amssymb,graphics, dcolumn}
\begin{thebibliography}{1}
\bibitem{kopka95} Helmut Kopka and Patrick W. Daly, 1995,``A Guide to \LaTeX2e
1995).
\bibitem{lamport94} Leslie Lamport, 1994, ``\LaTeX\ : a document preparation
system'', 2nd edition (updated for
\LaTeX2e), Addison-Wes
a*****r
发帖数: 443
27
\usepackage{amsmath}
$\pmb{\alpha}$
或者
\usepackage{bm}
$\bm{\alpha}$
推荐第二种方法 因为第一个有会莫名其妙失效
T*******n
发帖数: 493
28
\documentclass{article}
\usepackage{amsmath}
\newcommand{\chem}[1]{\ensuremath{\mathrm{#1}}}
\newcommand{\unit}[1]{\unskip\:\ensuremath{\mathrm{#1}}}
\newcommand{\degree}[0]{\ensuremath{{}^\circ}}
\begin{document}
\begin{equation}
x\overset{\text{not enough space to explain}}{=}y
\end{equation}
\begin{equation}
\chem{H_2O}_{(s)}
\xrightarrow[\text{at $T=0\degree\unit{C}$ and $P=1\unit{atm}$}]
{\Delta H_{\text{melt}}}
\chem{H_2O}_{(l)}
\end{equation}
\end{document}
J*******r
发帖数: 379
29
☆─────────────────────────────────────☆
ddyourself (dd) 于 (Tue Nov 8 13:04:09 2005) 提到:
写出相等的原因
☆─────────────────────────────────────☆
TeXnician (毕升) 于 (Tue Nov 8 20:20:32 2005) 提到:
\documentclass{article}
\usepackage{amsmath}
\newcommand{\chem}[1]{\ensuremath{\mathrm{#1}}}
\newcommand{\unit}[1]{\unskip\:\ensuremath{\mathrm{#1}}}
\newcommand{\degree}[0]{\ensuremath{{}^\circ}}
\begin{document}
\begin{equation}
x\overset{\text{not enough space to explain}}{=}y
\end{equation}
\begin{eq
T*******n
发帖数: 493
30
来自主题: TeX版 - 请教关于粗体的问题
The standard way now is
\usepackage{bm}
$\bm{\beta}$
The "bm" package comes with the AMS LaTeX (amsmath) package.
T*******n
发帖数: 493
31
What do you mean by "special"? If you want slanted
capital Greek letters, try
\usepackage{amsmath}
$\varLambda$
s***t
发帖数: 195
32
interesting. amsmath corrects this problem. no wonder i never
had this problem before. but i still think \overline is better.
T*******n
发帖数: 493
33
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\bar{\bar{A}}$
\end{document}
T*******n
发帖数: 493
34
来自主题: TeX版 - 请问如何给多行公式加框.
If there are no equation number, you can do something like this:
\usepackage{amsmath}
\begin{equation*}
\boxed{%
\begin{gathered}
x = 1 \\ y = 22 \\ z = 333
\end{gathered}
}
\end{equation*}
\begin{equation*}
\boxed{%
\begin{aligned}
x &= 1 \\ y &= 22 \\ z &= 333
\end{aligned}
}
\end{equation*}
\begin{gather*}
\boxed{%
\begin{gathered}
x = 1 \\ y = 2
\end{gathered}
}
\\
\boxed{%
\begin{gathered}
a = 1 \\ b = 2
\end{gathered}
}
\end{gather*}
T*******n
发帖数: 493
35
Here is a hack for wide equations in two-column layout.
The equations stay where they are supposed to be, but
there may be some spacing problems at page breaks.
You also lose some float functionality because of the use
of the multicol package. See the multicol documentation
for details. The definitions between \usepackage{amsmath}
and \begin{document} can be saved in a .sty file and
loaded using \usepackage{...}.
I think I posted this before. Just run it through LaTeX
and you'll see what it l
k******s
发帖数: 537
36
来自主题: TeX版 - 人多问个latex的问题
\usepackage{amsmath}
i*****g
发帖数: 32
37
\usepackage{amssymb,amsmath}
$\overset{\rightharpoonup}{x}$
T*******n
发帖数: 493
38
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\sum_{\substack{abc\\xyz}}
\end{equation}
\end{document}

work.
T*******n
发帖数: 493
39
来自主题: TeX版 - 数学公式一问
\usepackage{amsmath}
\left \{ \begin{aligned}...\end{aligned} \right .
\left \{ \begin{alignedat}...\end{alignedat} \right .
T*******n
发帖数: 493
40
来自主题: TeX版 - 数学公式一问
Complete example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{2}
x &=y && +z \\
x_1 &=y_1 && +z_1
\end{alignat}
\begin{equation}
\text{equations} =
\left\{
\begin{alignedat}{2}
x &=y && +z \\
x_1 &=y_1 && +z_1
\end{alignedat}\right .
\end{equation}
\end{document}
T*******n
发帖数: 493
41
\usepackage{amsmath}
\DeclareMathOperator{\sin}{sin} % no super- or subscript limits
\DeclareMathOperator*{\lim}{lim} % will have limits
Using \DeclareMathOperator will ensure correct font and spacing.
T*******n
发帖数: 493
42
Yeah, my example was confusing. I could have written something like
\usepackage{amsmath}
\DeclareMathOperator{\myfunc}{myfunc} % no super- or subscript limits
\DeclareMathOperator*{\mylim}{mylim} % will have limits
J*******r
发帖数: 379
43
include amsmath package,
use align environment,
then
x = & x+ \\
y+ \\
z
T*******n
发帖数: 493
44
\usepackage{amsmath}
\begin{equation}
\begin{split}
x &= x \\ &+ y \\ &+ z
\end{split}
\end{equation}
Don't use "align" in this case.
"align" is for multiple equations with common alignment,
"equation"+"split" is for breaking one single equation
into multiple lines.
You can use "split" inside "align" to break an equation
that is also aligned with other equations.
J*******r
发帖数: 379
45
try split in amsmath.

there
T*******n
发帖数: 493
46
来自主题: TeX版 - 公式里不能加引号的问题
In math mode apostrophe (single right quote) gives you prime.
To get actual quotation marks:
\usepackage{amsmath}
\begin{equation}
y=\text{``$x$'' or is it ``x''}
\end{equation}
T*******n
发帖数: 493
47
来自主题: TeX版 - 请教公式
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\argmin}{argmin}
\begin{document}
In text $\argmin_{x\in X} \{j | g(X_j) \}$ and in displayed equation
\begin{equation}
\argmin_{x\in X} \{j | g(X_j) \}
\end{equation}
\end{document}
T*******n
发帖数: 493
48
\usepackage{amsmath}
\begin{equation}
y=x \tag{12345}
\end{equation}

equation
1 2 3 下页 末页 (共3页)