Skip to content
Snippets Groups Projects
Commit a0815e3c authored by Alice Brenon's avatar Alice Brenon
Browse files

Take example snippets into separate files to get syntax coloration for free and support for .docx

parent 103ea1c1
No related branches found
No related tags found
No related merge requests found
*.docx
*.docx*
*.pdf
snippets/*
!snippets/*.md
FIGURES = ressources/cathète_t9.png
SNIPPETS = $(wildcard snippets/*.md)
FILE_NAME = ICHLL_Brenon
DEPEDENCIES = $(FIGURES) $(SNIPPETS:%.md=%.png)
all: $(FILE_NAME).pdf
ICHLL_Brenon.pdf: $(DEPEDENCIES)
ICHLL_Brenon.docx: $(DEPEDENCIES)
%.pdf: %.md
pandoc $^ -o $@
pandoc $< -o $@
%.png: %.pdf
pdftocairo -png -singlefile -r 400 $^ $(basename $@)
%.docx: %.md
pandoc $^ -o $@
pandoc $< -o $@
---
header-includes:
\pagestyle{empty}
\usepackage{graphicx}
\usepackage[left=0cm,top=0cm,right=0cm,nohead,nofoot]{geometry}
\geometry{
paperwidth=5.6cm,
paperheight=0.5cm,
margin=0cm
}
---
```xml
<div xml:id="cathète-0"></div>
```
---
header-includes:
\pagestyle{empty}
\usepackage{graphicx}
\usepackage[left=0cm,top=0cm,right=0cm,nohead,nofoot]{geometry}
\geometry{
paperwidth=12.4cm,
paperheight=1.4cm,
margin=0cm
}
---
```xml
<div xml:id="cathète-0">
<head>CATHÈTE (<interp theme="domain">Archit.</interp>)</head>
</div>
```
---
header-includes:
\pagestyle{empty}
\usepackage{graphicx}
\usepackage[left=0cm,top=0cm,right=0cm,nohead,nofoot]{geometry}
\geometry{
paperwidth=12.4cm,
paperheight=1.8cm,
margin=0cm
}
---
```xml
<div xml:id="cathète-0">
<head>CATHÈTE (<interp theme="domain">Archit.</interp>)</head>
<div type="sense" n="0"></div>
</div>
```
---
header-includes:
\pagestyle{empty}
\usepackage{graphicx}
\usepackage[left=0cm,top=0cm,right=0cm,nohead,nofoot]{geometry}
\geometry{
paperwidth=13.8cm,
paperheight=4.7cm,
margin=0cm
}
---
```xml
<div xml:id="cathète-0">
<lb/><head>CATHÈTE (<interp theme="domain">Archit.</interp>).</head>
<div type="sense" n="0">
<p>
On désigne ainsi la ligne
<lb/>d’aplomb qui passe par l’œil de la volute du chapiteau
<lb/>ionique et qui sert, comme point fixe, au tracé de cette
<lb/>volute.
</p>
</div>
</div>
```
---
header-includes:
\pagestyle{empty}
\usepackage{graphicx}
\usepackage[left=0cm,top=0cm,right=0cm,nohead,nofoot]{geometry}
\geometry{
paperwidth=13.8cm,
paperheight=3.5cm,
margin=0cm
}
---
```xml
<div xml:id="cathète-0">
<lb /><head>CATHÈTE</head> (Archit.). On désigne ainsi la ligne
<lb />d’aplomb qui passe par l’œil de la volute du chapiteau
<lb />ionique et qui sert, comme point fixe, au tracé de cette
<lb />volute.
</div>
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment