- 如何在 beamer 中使用 verbatim 环境
\begin{frame}[fragile]
... ...
\end{frame}
- 如何用 PDFLaTeX 制作可复制/粘贴的 PDF 文件
加上 ccmap 宏包
documentclass{article}
\usepackage{CJK}
\usepackage{ccmap}
... ...
- 怎样修改 itemize 环境中 item 间的垂直间距
利用 atbeginend.sty 宏包,该宏包提供了 \BeforeBegin{environment}{code-to-execute}, \AfterEnd 等命令。
这些命令可去掉环境外面和内部的空间。例如
\AfterBegin{itemize}{\addtolength{\itemsep}{-\baselineskip}}
就在环境内以重新设置 \itemsep 来压缩 items 之间的距离 。
- 怎么把当前页的页码去掉; 怎么能让首页也显示页眉?
A:1. \pagestyle{empty}
2. 将首页的格式改成 \thispagestyle{headings}
- 如何设置背景颜色? 比如黑底蓝字?
A: \documentclass[11pt]{article}
\usepackage[usenames]{color}
\begin{document}
\fcolorbox{Black}{Black}%
{\textcolor{Blue}{Blue words in Black Background!}}
\end{document}
- 怎么更改 title 和 author 的格式?
A: \posttitle
\authorfont
\postauthor
\datefont
\postdate
The titling package provides a configurable \maketitle command.
These commands control the typesetting of the document’s \maketitle command
The \title is processed between the \titlefont and \posttitle commands;
that is, like:
{\titlefont \title \posttitle}
and similarly for the \author and \date commands. The commands are
initialised to mimic the normal result of \maketitle typesetting in
the article/report classes.
For example, the default definitions of the \...title... and \...author...
commands are:
\newcommand{\titlefont}{\begin{center}\LARGE}
\newcommand{\posttitle}{\par\end{center}\vskip 0.5em}
\newcommand{\authorfont}{\begin{center}
\large \lineskip 0.5em%
\begin{tabular}[t]{c}}
\newcommand{\postauthor}{\end{tabular}\par\end{center}}
They can be renewed to obtain different effects, for instance removing
the center environment from \...title... will result in the title being
typeset as a normal paragraph.
- why the font of the formula is not so good as that in tex?
A: \documentclass[mathserif]{beamer}
-
-
- 怎样增加当前页的高度
\enlargethispage{尺寸} % 指定可增加的最大高度,负值尺寸表示减小高度
\enlargethispage*{尺寸} % 指定增加的高度
% 增加当前页高度有时可以避免难看的分页
- 如何在普通字符下面加下标
\mathop{\rm Res}\limits_{x=0}
% 或
\newcommand{\Res}{\operatornamewithlimits{Res}}
\Res\limits_{x=0}
- 如何在文字的中间划一根横线
\vbox{\vskip 1ex \hrule height 0pt depth 1pt \vskip -1ex \hbox{此处删除6个字}}
-
- 如何将下标加在两个累加符号之间?需要累加号连在一起,下标在其正下方
\mathop{\sum\sum}\limits_{i=j}
- 希腊字母怎么写粗体
% \usepackage{bm}
\bm{\alpha}
- 问一下反斜杠的写法
A: 字符环境下:\textbackslash
数学环境下:\backslash
\texttt{} 环境下:\char`\\
-
-
-
-