虽然LaTeX本身提供了粗体斜体等排版命令,但是Beamer可以通过一个ulem宏包达到更丰富的效果(除了数学公式中,那里仍然需要bm宏包)。 示例如下 \usepackage{ulem} \begin{frame}{Text decorations provided by the \texttt{ulem} package} \uline{Underlined that breaks at the end of lines if they are too too lo...
\switchcolumn*我怕得有理。\switchcolumnI have reason to fear.\end{paracol}\begin{paracol}{2}[...
\usepackage{balance} %balance the last two columns in twocolumn mode(命令为\balance) \usepackage{delarray}%使array环境的[t]或者[b]选项生效,并可解决表格中的文字上下位置不对的问题 %由于重新定义array,所以须放在array后面,使用方法为$$a\begin{array}[t][{c}]b\\d\end{array}c$$ \usepackage...
\lstset{ backgroundcolor=\color{white}, %choose the background color basicstyle=\footnotesize\monaco, % size of fonts usedforthe code或改成\small\monaco稍大 numbers=left, %设置行号 numberstyle=\tiny\monaco, %设置行号字体大小 columns=fullflexible, breaklines=true, %automatic line breaking only...
\begin{document} \begin{lstlisting} inline int gcd(int a, int b) { // 如果a
◈ 利用tablarx环境,这需要在导言区中引用tablarx宏包。 使用列宽管理长文本 通过指定列宽,文本将被折行为如下示例所示的宽度。 \begin{tabular}{|l|m{14cm}|} \hline Summary &Description \\ \hline Test &\blindtext \\ \hline \end{tabular}\vspace{3mm} ...
\begin{figure*} ... \end{figure*}If your using 2 columns in a latex document, you'll usually find that a table or figure is just too big for a single column. All you do is use \begin{figure*} \end{figure*} and that will make the figure span the width of the entire page. 转...
一般情形下的必用宏包 usepackage{textcomp}usepackage{latexsym,amssymb,amsmath}usepackage{CJK,CJKnumb}%其中CJKnumb用在fancyhdr宏包时,CJK 这个环境可以在preamble里使用,%但要记得在begin{document}之前关掉之后可以再另外打开一个新的 CJK 环境.
\begin{table}[htbp]:开始表格环境,[htbp]是表格浮动位置的参数。 \centering:使表格居中。 \begin{tabular}{ccc}:开始tabular环境,{ccc}定义了三列,每列都居中。 \toprule、\midrule、\bottomrule:来自booktabs宏包,用于绘制三线表。 \caption{An example table}:设置表格标题。 \label{tab:example}:为表格添...