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
ls
```
%% Cell type:markdown id: tags:
## Gitlab
https://gricad-gitlab.univ-grenoble-alpes.fr
- 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](https://gricad-gitlab.univ-grenoble-alpes.fr/profile/keys).
- Create a README.md and fill it with few lines of markdown code.
- Commit and push:
```
hg st
hg add
hg commit -m "Modify README.md"
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
revision.tex:
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
rebuttal.pdf: rebuttal.md
pandoc $< -o $@
clean:
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