latex如何居中一行字 latex表格標題內容居中( 二 )


  • 斜體\\emph{International Joint Conference on Artificial Intelligence}
  • 加粗\\textbf{The proceedings are designed for printing on A4paper.}為加粗
  • 交叉引用~\\ref{ssec:first}為引用當前文件的位置,其對應位置上的代碼為\\label{ssec:first},需緊跟section或者subsection 。
  • 不需轉義\\verb|\\aclfinalcopy|表示使用原文\\aclfinalcopy,不需要轉義
  • 頂格開啟新段落\\noindent
【latex如何居中一行字 latex表格標題內容居中】4. 列表
  • 有序列表
\\begin{enumerate}[(1)]
\\item 有編號的列表
\\item …
\\end{enumerate}
  • 無序列表
\\begin{itemize}
\\item Left and right margins: 2.5 cm
\\item Top margin: 2.5 cm
\\item Bottom margin: 2.5 cm
\\item Column width: 7.7 cm
\\item Column height: 24.7 cm
\\item Gap between columns: 0.6 cm
\\end{itemize}
5. 表格
  • 普通表格
\\begin{table}[t!]
\\begin{center} %表格整體居中
\\begin{tabular}{|l|rl|} %各列對齊方式
\\hline %直線
\\textbf{Type of Text} & \\textbf{Font Size} & \\textbf{Style} \\\\ %設置字體
\\hline
paper title & 15 pt & bold \\\\ %各列以&分割
author names & 12 pt & bold \\\\
author affiliation & 12 pt & \\\\
the word “Abstract\’\’ & 12 pt & bold \\\\
section titles & 12 pt & bold \\\\
subsection titles & 11 pt & bold \\\\
document text & 11 pt &\\\\
captions & 10 pt & \\\\
abstract text & 10 pt & \\\\
bibliography & 10 pt & \\\\
footnotes & 9 pt & \\\\
\\hline
\\end{tabular}
\\end{center}
\\caption{\\label{font-table} Font guide. } %文章標題
\\end{table}
  • 雙列表格
\\begin{table}
\\centering
\\small
\\begin{tabular}{cc} %一個c表示一列
\\begin{tabular}{|l|l|} %|表示是否需要豎線
\\hline
\\textbf{Command} & \\textbf{Output}\\\\\\hline
\\verb|{\\\”a}| & {\\\”a} \\\\
\\verb|{\\^e}| & {\\^e} \\\\
\\verb|{\\`i}| & {\\`i} \\\\
\\verb|{\\.I}| & {\\.I} \\\\
\\verb|{\\o}| & {\\o} \\\\
\\verb|{\\\’u}| & {\\\’u} \\\\
\\verb|{\\aa}| & {\\aa} \\\\\\hline
\\end{tabular} &
\\begin{tabular}{|l|l|} %第二個表格
\\hline
\\textbf{Command} & \\textbf{Output}\\\\\\hline
\\verb|{\\c c}| & {\\c c} \\\\
\\verb|{\\u g}| & {\\u g} \\\\
\\verb|{\\l}| & {\\l} \\\\
\\verb|{\\~n}| & {\\~n} \\\\
\\verb|{\\H o}| & {\\H o} \\\\
\\verb|{\\v r}| & {\\v r} \\\\
\\verb|{\\ss}| & {\\ss} \\\\\\hline
\\end{tabular}
\\end{tabular}
\\caption{Example commands for accented characters, to be used in, \\emph{e.g.}, \\BibTeX\\ names.}\\label{tab:accents}
\\end{table}
  • 跨列表格
\\begin{table*}[t!] %這里的星表示當為2列的文章時,此表格為1列表格 。
\\centering
\\begin{tabular}{lll}
output & natbib & previous ACL style files\\\\
\\hline
\\citep{Gusfield:97} & \\verb|\\citep| & \\verb|\\cite| \\\\
\\citet{Gusfield:97} & \\verb|\\citet| & \\verb|\\newcite| \\\\
\\citeyearpar{Gusfield:97} & \\verb|\\citeyearpar| & \\verb|\\shortcite| \\\\
\\end{tabular}
\\caption{Citation commands supported by the style file.
The citation style is based on the natbib package and
supports all natbib citation commands.
It also supports commands defined in previous ACL style files
for compatibility.
}
\\end{table*}
這里t表示表格的位置,具體的有以下四種選項:
  • hHere – at the position in the text where the table environment appears.
  • tTop – at the top of a text page.
  • bBottom – at the bottom of a text page.
  • pPage of floats – on a separate float page, which is a page containing no text, only floats.
6. 引用與腳注
從上表中,可以看到5種引用格式,分別是:
\\citep{Gusfield:97} %(人名,時間)
\\citet{Gusfield:97} %人名(時間)
\\citeyearpar{Gusfield:97} %(時間)
~\\cite{Gusfield:97} %(人名,時間)
~\\cite{Gusfield:97,Aho:72} %(人名,時間;人名,時間)
這里引用參考文獻時,其別名只需要在參考文獻的第一個部分加上即可 。
  • 引用表格或圖的形式(see Table~\\ref{font-table})
  • 腳注\\footnote{This is how a footnote should appear.}
至此,我們把整個ACL2019的模板自上而下梳理了一番,從而可以更好地使用這個模板了 。至于更加深層的教程,我們會后續解答 。

推薦閱讀