This is basically a repository of my base latex structure for a new document.
It contains all of the preamble items , packages and includes that I usually use in my writeups, so I can just clone and get started fast and easy.
I use vim + pdflatex on Linux to edit my docs with latexlivepreview to do live previews when editing.
Oh and a huge majority of the typing is actually done by ultisnips. So check out my dotfiles folder : dotfiles/.config/nvim/UltiSnips/tex.snippets for the ultisnips snippets that I wrote and use.
pacman -S texlive-most
pacman -S texlive-lang
###SECTIONS
- two line section titles / boxes
###TABLES :
-
replace tabularx with tabular*
-
tabular* colors with cellcolor only the text in the cell instead of the whole cell
-
long tables that split by column : research xtable
-
alternating lines page wide table
-
long tables auto width
-
captions for all table types command fix
-
merge tables fix row overwrite : DONE
-
matrices to appear either cutoff or white : DONE
- korean titles don't work when included in seperate .tex file, but work when part of document.tex , hmm....
The file structure is thought out as follows :
-
0_includes : Preamble file(s). I usually symlink to this file , so that All the preamble edits only need to happen in 1 file.
-
1_bibliography : bib file(s)
-
2_images : contains all images / graphs /tikz exported diagrams that will be used in the compilation of the doc.
-
3_content : This is where all the main content .tex files are supposed to live. I usually divided them up by section / chapter , i.e., only 1 section per .tex file , and then they are all combined into one file by including them in the main document.tex file which lives in the root folder. Makes the entire document structure granular , and more importantly you usually only work on 1 section at time. So when latexlivepreview renders the doc , I am not interested in scrolling through all the pages I already know are done. I just want to see current working page(s). This becomes easier if I can just comment out the individual lines that include other sections.
-
4_research : This is where other papers , images , docs , etc ... live. Basically everything that I am using to help understand and write about whatever I am writing about.
- Copy the git folder.
- Run the symlink command for the preamble.
- Clear out boilerplate / tutorial content
- Delete everything inside the 3_content folder.
- Delete / Rename all the input 3_content lines in document.tex
- Run make
- Run make again
- ... ?
- Profit
I do this for some projects so that I only have to edit one preamble file. And all the others just inherit the changes automagically. Sometimes you want to adjust the inter-column width and things like that so for those I don't symlink and just go a project by project basis.
This is obviously an example , you'll have to change the line to point it to your own git and latex folders :
ln -s /$HOME/Git/latex/0_includes/0_preamble.tex /$HOME/Documents/latex/1_Computer_Science/0_Machine_Learning/0_includes/0_preamble.tex