Skip to content

Commit 4f5d8db

Browse files
committed
update regarding natbib and todo
1 parent 23c0020 commit 4f5d8db

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

templates/article/template.tex

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99

1010
%% Bibliography
11-
% Use natbib the citations like [ref1, ref2, ref3, ref4] appear in the order of citation instead of in the
12-
% order of appearance in the BibTeX file. In addition, consecutive citations become ranges.
13-
% Note that the natbib package has to be loaded before the following lines.
14-
%\usepackage[sort&compress]{natbib}
11+
% Use natbib the citations like [ref1, ref2, ref3, ref4] appear in the order of citation instead of
12+
% in the order of appearance in the BibTeX file. In addition, consecutive citations become ranges.
13+
% Note that the natbib package has to be loaded before the following lines. In the TeX file, order
14+
% the references chronologically, so that we can produce both orders by switching the natbib package
15+
% on and off.
16+
%\usepackage[sort&compress]{natbib} % Use the natbib package always.
1517
\newcommand{\bibfile}{\jobname.bib} % Name of the BibTeX file.
1618
% ref.bib should be a symbolic link to the universal BibTeX file, which should be a local copy of
1719
% https://github.com/equipez/bibliographie/blob/main/ref.bib
@@ -79,7 +81,7 @@
7981
%% Todo notes
8082
\ifdraft{
8183
\setlength{\marginparwidth}{1.92cm}
82-
\usepackage[tickmarkheight=3pt,textsize=small,backgroundcolor=blue!16,linecolor=purple,bordercolor=purple]{todonotes}
84+
\usepackage[tickmarkheight=3pt,textsize=scriptsize,backgroundcolor=blue!16,linecolor=purple,bordercolor=purple]{todonotes}
8385
}{
8486
\newcommand{\todo}[1]{}
8587
\newcommand{\listoftodos}{}
@@ -407,6 +409,7 @@ \section{Example section~1}
407409
\begin{proof}
408410
This is the proof for Theorem~\ref{thm:example}.
409411
Recall Definition~\ref{def:example}.
412+
\todo{An example for TODO.}
410413
The proof is complete.
411414
\end{proof}
412415

vim/templates/article.tex

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99

1010

1111
%% Bibliography
12-
% Use natbib the citations like [ref1, ref2, ref3, ref4] appear in the order of citation instead of in the
13-
% order of appearance in the BibTeX file. In addition, consecutive citations become ranges.
14-
% Note that the natbib package has to be loaded before the following lines.
15-
%\usepackage[sort&compress]{natbib}
12+
% Use natbib the citations like [ref1, ref2, ref3, ref4] appear in the order of citation instead of
13+
% in the order of appearance in the BibTeX file. In addition, consecutive citations become ranges.
14+
% Note that the natbib package has to be loaded before the following lines. In the TeX file, order
15+
% the references chronologically, so that we can produce both orders by switching the natbib package
16+
% on and off.
17+
%\usepackage[sort&compress]{natbib} % Use the natbib package always.
1618
\newcommand{\bibfile}{\jobname.bib} % Name of the BibTeX file.
1719
% ref.bib should be a symbolic link to the universal BibTeX file, which should be a local copy of
1820
% https://github.com/equipez/bibliographie/blob/main/ref.bib
@@ -80,7 +82,7 @@
8082
%% Todo notes
8183
\ifdraft{
8284
\setlength{\marginparwidth}{1.92cm}
83-
\usepackage[tickmarkheight=3pt,textsize=small,backgroundcolor=blue!16,linecolor=purple,bordercolor=purple]{todonotes}
85+
\usepackage[tickmarkheight=3pt,textsize=scriptsize,backgroundcolor=blue!16,linecolor=purple,bordercolor=purple]{todonotes}
8486
}{
8587
\newcommand{\todo}[1]{}
8688
\newcommand{\listoftodos}{}

0 commit comments

Comments
 (0)