Commit 5b3b4829 authored by paugier's avatar paugier
Browse files

Gitlab + Latex repositories

parent f5058f81
......@@ -663,5 +663,76 @@
%% Cell type:code id: tags:
``` bash
%% Cell type:markdown id: tags:
## Gitlab
- Create a repository
- Clone it with Mercurial locally
Note the difference between the https and ssh addresses. To use ssh, one first has to [setup a ssh key](
- Create a and fill it with few lines of markdown code.
- Commit and push:
hg st
hg add
hg commit -m "Modify"
hg push
Note the difference with `hg add` and `git add`!
%% Cell type:markdown id: tags:
## Example of a Latex project
It's very useful to use a Makefile. Everything can be compiled just with the command `make`. Complicated Makefile syntaxes are not mandatory!
The commands `latexmk` and `latexdiff` can be really useful!
Here is a simple example:
name := my_paper
LATEX := pdflatex -shell-escape -synctex=1
.PHONY: all clean cleanall
all: $(name).pdf
hg cat -r 0.2.0 $(name).tex > $(name)_submitted.tex
latexdiff -c PICTUREENV=minted $(name)_submitted.tex $(name).tex > revision.tex
rm -f $(name)_submitted.tex
revision.pdf: revision.tex
latexmk -pdf -pdflatex="$(LATEX)" revision.tex
rm -f revision.tex
revision: revision.tex revision.pdf clean
pandoc $< -o $@
rm -f *.log *.aux *.out *.bbl *.blg *.tmp
rm -rf _minted-$(name)
cleanall: clean
rm -f $(name).pdf
$(name).pdf: $(name).tex
latexmk -pdf -pdflatex="$(LATEX)" $(name).tex
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment