1
公式编号居中显示
问题:如果有两个等式排成一列,如下:
a+b=1
c+d=2 (1)
其右端的编号(1)如何显示在两个等式的中间?
如果用 eqnarray环境,只能将编号显示在上面或下面等式的后面,如:
\begin{eqnarray}
a+b &=& 1 \nonumber \\
c+d &=& 2
\end{eqnarray}
则显示为:
编号显示在第二个等式的后面。
可以使用下面的语句,使得编号显示在两个等式的中间:
\begin{equation}
\begin{array}{l}
a+b=1 \\
c+d=2
\end{array}
\end{equation}
有时上下列等式之间显得拥挤,可在每个等式前加上\displaystyle来避免这种情况,如:
\begin{equation}
\begin{array}{l}
\displaystyle a+b=1 \\
\displaystyle c+d=2
\end{array}
\end{equation}
此外,利用 split环境也可以将编号写在中间,如:
\begin{equation}
\begin{split}
a+b=1\\
c+d=2
\end{split}
\end{equation}
这个
方法
快递客服问题件处理详细方法山木方法pdf计算方法pdf华与华方法下载八字理论方法下载
是网友 xhpan于 2009年 8月 1日提供的,在此表示感谢!
在交叉引用中,博主习惯上用符号”eq:n”,来标示文章中需要引用的第 n个公式,如:
2
\begin{equation}
\begin{array}{l}
\displaystyle a+b=1 \\
\displaystyle c+d=2
\end{array}
\label{eq:1}
\end{equation}
按说 Tex文件中出现\ref{eq:1}的地方,在编译后就会自动出现公式的编号,然而实际上什么都没有显示。
博主尝试用其它符号来标示此公式,如\label{eq1},一切又恢复正常,看来 array环境中用来标示引用的符
号不可任意选择!使用 split环境不存在这个问题。
随心所欲加编号
\begin{align}
a+b=1 \\
c+d=2
\tag{1.1.1}
\end{align}
\begin{align}
a+b=3 \\
c+d=4
\tag{1.1.2}
\end{align}
对分块矩阵加横线和竖线:
\begin{eqnarray}
\left( \begin{matrix}
\Pi+BF_{1}^{\frac{1}{2}}UF_{1}^{\frac{1}{2}}{{B}^{\text{T}}} &\vline&
{{Y}^{\text{T}}}F_{1}^{\frac{1}{2}} \\
\hline
F_{1}^{\frac{1}{2}}Y &\vline& -U \\
\end{matrix} \right)<0
\end{eqnarray}
\vline %竖线
\hline %横线
2)~~矩阵中小数点对齐的例子.
\begin{eqnarray}
&&A_1=\left[\begin{array}{r@{ }l@{~~~~}r@{ }l} 1& &-2&\\-2& &4&
\end{array}\right],\\
&&A_2=\left[\begin{array}{r@{.}l@{~~~~}r@{.}l} 1&1 &-2&7\\-2&3 &4&6
\end{array}\right].
\end{eqnarray}
公式大小调试:
用命令 \displaystyle 可以调整在文字中过小的公式.
$f(z)\thickapprox{\displaystyle\frac{1+\frac{1}{2}z+z^2+\frac{1}{2}z^3}{1-\frac{1}{2}z+z^2}}.$
用命令 \textstyle 可以调整公式中过大的情况. 如下:
\begin{eqnarray}
&&\!\!\!\!\!{\bm z}^{\rm T}(t)\{A_q^{\rm T}[P(t)+I]A_q-[P(t)+I]\}{\bm z}(t)+ \nonumber\\
&&\!\!\!\!\!{\textstyle\sum\limits_{i=1}^m}\varint\nolimits_{t-\tau_i}^t\!\!{\bm
z}^{\rm T}(s)\{A_q^{\rm T}A_q-I\}{\bm z}(s){\rm d}s\leqslant 0.
\end{eqnarray}
3
\linespread{1.3}是 1.5倍行距
字号设置专题:
四号:\zihao{4}
小四号:\zihao{-4}
字号对应关系:
二号:22pt 小二:18pt 三号:16pt 小三:15pt
四号:14pt 小四:12pt 五号:10.5pt 小五:9pt
字间距
只适用于 CJK 和 xeCJK
\renewcommand{\CJKglue}{\hskip 宽度}
最好设置为弹性长度比如
\renewcommand{\CJKglue}{\hskip 1pt plus 0.08\baselineskip}
行间距
\linespread{因子}
或者
\renewcommand{\baselinestretch}{因子}
比如
\linespread{1.5}
或者
\renewcommand{\baselinestretch}{1.5}
段间距
设置\parskip 的值,比如
\setlength{\parskip}{0.5\baselineskip}
4
首行缩进
如果默认首行不缩进,则使用 indentfirst 宏包
\usepackage{indentfirst}
指定某段首行缩进,在段首加
\indent
指定某段首行不缩进,在段首加
\noindent
设置缩进量
\setlength\parindent{2em}
悬挂缩进
在要悬挂缩进的段落前加上
\noindent
\hangafter=1
\setlength{\hangindent}{2em}
分别是: 1. 取消首行缩进;2. 设置从第1行之后开始悬挂缩进;3. 设置悬挂缩进量
居中、左对齐、右对齐
Beamer中如何使用 New Time Roma 字体?
\usefonttheme{serif} %绝对好使
使 Beamer自动换页:
\begin{frame}[allowframebreaks]
\end{frame}
设置公式字体:
5
\def\mathfamilydefault{\rmdefault}
使 beamer文本两端对齐:
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm} %两端对齐
\raggedright %两端对齐
Beamer 中\item的用法:
\begin{itemize}
\item 编译的次序有点变化, 依次为: \textcolor{blue}{\LaTeX{}} $\dashrightarrow$ \textcolor{blue}{Bib}
$\dashrightarrow$
\textcolor{blue}{\LaTeX{}} $\dashrightarrow$ \textcolor{blue}{\LaTeX{}}.
({\kaishu 要完成第二步所说的~\textcolor{blue}{Bib}~编译,
点击~{{\textcolor{Orange}{WinEdt}}} 窗口的~\everb|Bib|~编译键即可.})
\item 编译的第二步用来生成``{\heiti 参考文献}''.
例如, 沿用前述的例子, 若在文中使用~\verb|\cite{pawlak82RoughSets}|, 则在``{\heiti 参考文
献}''中呈现以下结果: \\
\begin{quote}
Zdzislaw Pawlak.
\textrm{Rough sets}.
{ International Journal of Computer Information Science},
5:341--356, 1982.
\end{quote}
\item 修改~\verb|\bibliographystyle{ }|~的选项, 您还可以方便地调用\CCTunderdot{数十种}不同的参
考文献
格式
pdf格式笔记格式下载页码格式下载公文格式下载简报格式下载
.
\footnote{ 一 般 地 , 知 名 杂 志 和 出 版 公 司 , 比 如 ~\textcolor{blue}{ELSEVIER} 、
\textcolor{blue}{Springer}、\textcolor{blue}{IEEE}~等在其网站
提供了自己的
模板
个人简介word模板免费下载关于员工迟到处罚通告模板康奈尔office模板下载康奈尔 笔记本 模板 下载软件方案模板免费下载
, 并定制了专门的参考文献格式. }
\end{itemize}
\begin{itemize}
\item<1-> 在~{{\textcolor{Orange}{WinEdt}}} 窗口新建一个空白文档.
\item<2-> 在~{{\textcolor{Orange}{WinEdt}}} 窗口点击~\textcolor{blue}{Insert}
$\dashrightarrow$ \textcolor{blue}{Bib\TeX{}\ Items}, 选择相应的文献类型.
比方您手头要存储的~Article 或者~Book 类文献信息.
\begin{center}
\centering\includegraphics[width=75mm]{bib.pdf}
\end{center}
\end{itemize}
Block的用法:
\begin{block}{Generalized Formulation}
\vspace{-2em}
\begin{align*}
\text{min(max)}&\quad\sum_{(i,j)\in A}f(c_{ij})x_{ij}\\
\text{s.t.}&\quad \sum_{ji,j)\in A}x_{ij}-\sum_{jj,i)\in
A}\mu_{ji}x_{ji}=b(i)\quad\text{for all}\,i\in\mathbb{N}\\
{}&l_{ij}\leq x_{ij}\leq u_{ij}\quad\text{for all}(i,j)\in A
6
\end{align*}
\end{block}
将\evarymath{\displaystyle}加入导言区,能够使任何一个分数或积分号变大。
给公式加颜色:在导言区输入\usepackage{xcolor}
然后在需要加颜色的公式处:
${\color{red} {x}^{2}+{y}^{2}=1}$
{\color{red}${x}^{2}+{y}^{2}=1$}
花体字母的编写方法:
使用“\usepackage{mathrsfs}”宏包,然后使用$\mathscr{A}$命令,运行结果为:A .
若使用$\mathfrak{ABCD }$,运行结果为:ABCD . 这种花体在\usepackage{amssymb}下也可运行.
若使用$\mathbb{ABCD}$,运行结果为: .
\boldmath给公式加粗
如何实现定理、定义、推论等的统一编号:
默认的定理环境是没有统一编号的,所以可以添加定理环境的计数器,并使用和定理相同的计数器,
即:
\newtheorem{thm}{Theorem}[section] %如果不采用章节号做前缀,则不用[section]
\newtheorem{defn}[thm]{Definition} %这句定义使得 defn环境和 thm共享编号
\newtheorem{lem}[thm]{Lemma} %这句定义使得 lem环境和 thm共享编号
定理、定义等的应用:
\usepackage{amsthm} % 使用定理
在\begin{document}下面输入
\newtheorem{Thm}{\textbf{Theorem}}
\newtheorem{Lem}{\textbf{Lemma}}
\newtheorem{Def}{\textbf{Definition}}
\newtheorem{Rem}{\textbf{Remark}}
\newtheorem{Exam}{\textbf{Example}}
\newtheorem{Sup}{\textbf{Assumption}}
\newtheorem{Cor}{\textbf{Collary}}
应用时:
\begin{Thm}
\begin{proof}
dgyjefgyj
\end{proof}
\end{Thm}
\begin{Def}
sdfgasdg
\end{Def}
7
在上面定理、引理环境下,\text{}命令会失去效用,此时要用\textup{}代替\text{}. \text{}命令其他格式:
\textup{} %文本形式
\textit{} %意大利斜体字
\textsl{} %斜体字
\textsc{} %Small caps
\textmd{} %中等字体
\textbf{} %黑体字
\textrm{} %罗马体
\textsf{} %Sans字体
\texttt{} %打字机字体