From 980fe36268e4153a4bc3c2f12b8171821e876d09 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Thu, 26 Sep 2024 12:12:43 +0800 Subject: [PATCH] update templates --- templates/README.txt | 10 +++++++--- templates/article/Makefile | 4 ++-- templates/article/template.tex | 5 +++-- vim/templates/article.tex | 5 +++-- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/templates/README.txt b/templates/README.txt index cb75550..3cb93d3 100644 --- a/templates/README.txt +++ b/templates/README.txt @@ -1,7 +1,11 @@ This directory contains LaTeX templates for the team of Dr. Zaikun Zhang. +Before starting, under the directory containing the main TeX file, create a symbolic named "ref.bib" +to the universal BibTeX file, which should be a local copy of +https://github.com/equipez/bibliographie/blob/main/ref.bib + Usage: -- `make` or `make all` to compile everything and get the BibTeX file. -- `make pdf` to get the pdf file. -- `make bib` to get the bib file. +- `make` or `make pdf` to get the pdf file. +- `make bib` to get the BibTeX file. +- `make all` to compile everything and get the BibTeX file. diff --git a/templates/article/Makefile b/templates/article/Makefile index c929a6e..feb1a9c 100644 --- a/templates/article/Makefile +++ b/templates/article/Makefile @@ -3,14 +3,14 @@ LC := latexmk LCFLAGS := -file-line-error -halt-on-error -interaction=nonstopmode -all: pdf bib - pdf: *.tex $(LC) $(LCFLAGS) $^ bib: pdf *.bib getbib +all: pdf bib + .PHONY: clean clean: $(LC) -c diff --git a/templates/article/template.tex b/templates/article/template.tex index 33adc9a..929a731 100644 --- a/templates/article/template.tex +++ b/templates/article/template.tex @@ -222,7 +222,7 @@ \newcommand{\TT}{\mathcal{T}} \newcommand{\ZZ}{\mathbb{Z}} \newcommand{\NN}{\mathbb{N}} -\newcommand{\FF}{\mathbb{F}} +\newcommand{\FF}{\mathcal{F}} \newcommand{\CC}{\mathbb{C}} \newcommand{\XX}{\mathcal{X}} \newcommand{\sset}{\mathcal{S}} @@ -293,6 +293,7 @@ \renewcommand{\pp}{\mathbf{p}} \renewcommand{\ggg}{\mathbf{g}} \newcommand{\GG}{\mathbf{G}} +\DeclareMathOperator{\expc}{\mathbb{E}} \renewcommand{\Pr}{\mathbb{P}} \newcommand{\lb}{\underline} \newcommand{\ub}{\overline} @@ -372,7 +373,7 @@ This is an article template for the team of Zaikun Zhang. -\cite{Zhang_2014} +I am citing~\cite{Zhang_2014} as an example. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% References diff --git a/vim/templates/article.tex b/vim/templates/article.tex index 7160aa1..45679ca 100644 --- a/vim/templates/article.tex +++ b/vim/templates/article.tex @@ -11,7 +11,7 @@ % https://github.com/equipez/bibliographie/blob/main/ref.bib % When the paper is finished, run `getbib` in the current directory to get the BibTeX file % containing only the cited references. The name will be xyz.bib if this TeX file is xyz.tex. -\newcommand{\universalbib}{/home/zaikunzhang/Bureau/bibliographie/ref.bib} +\newcommand{\universalbib}{ref.bib} \ifdraft{\IfFileExists{\universalbib}{\renewcommand{\bibfile}{\universalbib}}{}}{} % 20221018: \iscite does not work as intended. % The counter `cite' is used to count the number of citations. @@ -223,7 +223,7 @@ \newcommand{\TT}{\mathcal{T}} \newcommand{\ZZ}{\mathbb{Z}} \newcommand{\NN}{\mathbb{N}} -\newcommand{\FF}{\mathbb{F}} +\newcommand{\FF}{\mathcal{F}} \newcommand{\CC}{\mathbb{C}} \newcommand{\XX}{\mathcal{X}} \newcommand{\sset}{\mathcal{S}} @@ -294,6 +294,7 @@ \renewcommand{\pp}{\mathbf{p}} \renewcommand{\ggg}{\mathbf{g}} \newcommand{\GG}{\mathbf{G}} +\DeclareMathOperator{\expc}{\mathbb{E}} \renewcommand{\Pr}{\mathbb{P}} \newcommand{\lb}{\underline} \newcommand{\ub}{\overline}