Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etienne-monier/2020-thesis
The code to generate a wonderfull thesis with tufte-book template
https://github.com/etienne-monier/2020-thesis
Last synced: about 1 month ago
JSON representation
The code to generate a wonderfull thesis with tufte-book template
- Host: GitHub
- URL: https://github.com/etienne-monier/2020-thesis
- Owner: etienne-monier
- Created: 2020-10-28T14:16:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T14:03:09.000Z (about 4 years ago)
- Last Synced: 2024-01-23T01:58:32.752Z (12 months ago)
- Language: TeX
- Size: 16.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My PhD manuscript
This is my PhD manuscript which can be viewed [here](https://etienne-monier.github.io/publications/monier2020thesis.pdf).
I post the codes online for insparation about the template or the TikZ figures handling system.
## Generate the manuscript
The manuscript can be generated very easily by simply typing
```
$ git clone https://github.com/etienne-monier/2020-Thesis.git Manuscript
$ cd Manuscript
$ latexmk
```## Some words about the template
The template is based on the [`tufte-book`](https://ctan.org/pkg/tufte-latex) document class. This style is sometimes painful, especially for figures which is redefined in the class style file. Some examples:
1. The `label` command becomes weak in `tufte-book` class. It means that you cannot make a nice
```
\begin{figure}
\includegraphics{...}
\caption{...}
\label{...}
\end{figure}
```but you have to specify the label in the `caption` command with a `protect` before.
```
\begin{figure}
\includegraphics{...}
\caption{\protect\label{...}...}
\end{figure}
```Same thing for `ref` in the caption.
```
\begin{figure}
\includegraphics{...}
\caption{\protect\label{...} ... \protect\subref{...} ... }
\end{figure}
```2. Specifying `[b]` to place figures in the bottom of a page generally places it at the end of the chapter.
3. I used 4 kind of figure display : with side / below caption with textwidth / pagewidth width.
4. The only compatible package for subfigures is the obsolete [`subfigure` package](https://ctan.org/pkg/subfigure).
The main reasons I whatever used it:
* That's simply beatiful !
* The right margins are perfect to write notes in the paper version.## Some words about the figure system
I simply love making TikZ figures ! I find it sublime :)
The main problem when using it only:
* a memory error rapidly appears when making lots of pgfplots figures,
* the compilation time becomes excessive
* generally, you can attempt to resize your figure, which makes the font size smaller than the main content font size.To solve this, I externalized everything with separated `.tikz` files to execute separately (thanks to the `standalone` document class). I finally made a small recipe in the `.latexmkrc` file to automatically generate the pdf graphics based on the tikz file.
Beware ! To that end, each separate execution needs to reach the style files located in the `/style` folder. For simplicity, I just linked them in the texmf folder:
```
$ cd ~/.texmf/tex/latex/
$ ln -s /path/to/Manuscript/style/
```## License
![Licence Creative Commons](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)
Ce(tte) œuvre est mise à disposition selon les termes de la [Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International](http://creativecommons.org/licenses/by-nc-sa/4.0/).