latex論文作成常用パッケージと設定コード
1850 ワード
パッケージ:
\usepackage[numbers,sort&compress]{natbib}
%引用文献のタグを圧縮する:[2,3,4]=[2-4]など、自動的にソートする
\usepackage{CJK}
使用するときは:begin{document}の前に次の項目を追加する必要があります.
一般的なフォーマットのコマンド:
1、最初の行のインデント
英語のフォーマットでは、各section{}の下にデフォルトでインデントはありません.これは面倒なので、このような言葉でインデントすることができます.
2、行間隔の調整
デフォルトのフォーマットの行の間隔は大きくて、1.5ぐらいあります.どうやって小さくしますか.
3、表の要素の支店
4、問題注のフォーマットを設定する
詳細は以下を参照してください.http://mirror.ctan.org/macros/latex/contrib/caption/caption-eng.pdf
5、参考文献の名前を設定する
\renewcommand\refname{References}
bibliography{ファイル名}%は、参考文献のツリーを生成します.
6、sectionの前の数字を設定する
7、目次に参考文献ページを導入させる
addcontentsline{toc}{section}{References}%referencesを追加
\usepackage[numbers,sort&compress]{natbib}
%引用文献のタグを圧縮する:[2,3,4]=[2-4]など、自動的にソートする
\usepackage{hyperref}
\hypersetup{hypertex=true,
colorlinks=true,
linkcolor=black,
anchorcolor=blue,
citecolor=blue}
%%% 。 。 label
% linkcolor , 。
%citecolor ,
\usepackage{CJK}
使用するときは:begin{document}の前に次の項目を追加する必要があります.
\begin{CJK*}{GBK}{} % ,
一般的なフォーマットのコマンド:
1、最初の行のインデント
英語のフォーマットでは、各section{}の下にデフォルトでインデントはありません.これは面倒なので、このような言葉でインデントすることができます.
\setlength{\parindent}{2em} % 2em,em M
2、行間隔の調整
デフォルトのフォーマットの行の間隔は大きくて、1.5ぐらいあります.どうやって小さくしますか.
\renewcommand{\baselinestretch}{1.1} %
3、表の要素の支店
ewcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
%
\tabincell[c]{ \\ }
4、問題注のフォーマットを設定する
\usepackage[margin=0pt,skip=0pt,font=small,labelfont=bf,labelsep=period]{caption}
%skip: caption 。
%font: Figure x Table x caption
%labelfont: Figure x Table x
%labelsep: Figure x 。
詳細は以下を参照してください.http://mirror.ctan.org/macros/latex/contrib/caption/caption-eng.pdf
5、参考文献の名前を設定する
\renewcommand\refname{References}
bibliography{ファイル名}%は、参考文献のツリーを生成します.
6、sectionの前の数字を設定する
\renewcommand\thesection{\Roman{section}}
\renewcommand\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}}
%Roman :
%roman:
%Alph:
%alph:
7、目次に参考文献ページを導入させる
addcontentsline{toc}{section}{References}%referencesを追加