Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ecomaikgolf/tugraz-latex-template
TUGraz Personal LaTeX template
https://github.com/ecomaikgolf/tugraz-latex-template
latex not-professional template tugraz
Last synced: 10 days ago
JSON representation
TUGraz Personal LaTeX template
- Host: GitHub
- URL: https://github.com/ecomaikgolf/tugraz-latex-template
- Owner: ecomaikgolf
- Created: 2022-07-29T15:36:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-10T23:13:19.000Z (about 2 years ago)
- Last Synced: 2024-11-05T21:46:54.662Z (about 2 months ago)
- Topics: latex, not-professional, template, tugraz
- Language: TeX
- Homepage: https://twitter.com/ecomaikgolf
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TUGraz Personal LaTeX Template
Examples: [twocols.pdf](https://github.com/ecomaikgolf/tugraz-latex-template/files/9221979/twocols.pdf), [onecol.pdf](https://github.com/ecomaikgolf/tugraz-latex-template/files/9221973/onecol.pdf)
## Dependencies
- LaTeX compiler: `pdflatex` or `lualatex` or `xelatex`... (Recommended `lualatex`)
- Needed LaTeX packages, see `config/tugraz-style.sty`. (Recommended `texlive-full`)
- `texlogfilter`, or remove `| texlogfilter $(SUP)` from `makefile`## How to use
1. Clone repository or use template
```
git clone --depth 1 https://github.com/ecomaikgolf/tugraz-latex-template.git
cd tugraz-latex-template
```or
![image](https://user-images.githubusercontent.com/8388874/181812646-e6ffa204-a548-452f-a58a-35db0a70891d.png)
2. Edit `document.tex`, modify 'CHANGEME' values & write desired text after `\begin{document}`
3. Compile document
```
make
```
4. Open `document.pdf`### Advanced usage
I defined my own commands/enviroments with modifications, take it into consideration. For example, for code use `code` and not `lstlisting`.
- Add new packages in 'User Packages' (`document.tex`)
- Write the bibliography at 'Bibliography' (`document.tex`)
```tex
\AtEndDocument{
\if\docbibliography1
\begin{thebibliography}{9}
% \bibitem{key}
% Text
\bibitem{texbook}
Donald E. Knuth (1986) \emph{The \TeX{} Book}, Addison-Wesley Professional.\bibitem{lamport94}
Leslie Lamport (1994) \emph{\LaTeX: a document preparation system}, Addison Wesley, Massachusetts, 2nd ed.\end{thebibliography}
\fi
}```
- Insert a figure with `\fig`
```tex
\fig{example-figure}{30m}{The Figure Caption}{figurelabel}
```- Insert two figure with `\figtwo`
```tex
\figtwo{example-figure}{30m}{The Figure Caption 1}{figurelabel1}{example-figure}{30m}{The Figure Caption 2}{figurelabel2}{The General Caption}
```- Insert code listing
```tex
{
\begin{code}[main.cpp]
int
main() {
return 0;
}
\end{code}
\captionof{lstlisting}{Main Example}
}
```- Insert terminal output listing
```tex
{
\begin{terminal}[uptime]
18:00:21 up 45 min, 1 user, load average: 0,29, 0,26, 0,27
\end{terminal}
\captionof{term}{Command Example}
}
```- Insert verbatim boxed enviroment
```tex
{
\begin{verbox}
verbatimcontent
\end{verbox}
}
```- Insert command
```tex
\begin{command}
yay -S texlive-full
\end{command}
```- Open two/three/four/ncols enviroment
```tex
\begin{twocols}
\end{twocols}
\begin{threecols}
\end{threecols}
\begin{fourcols}
\end{fourcols}
\begin{ncols}{5}
\end{ncols}
```- Reference labels
```tex
As seen in \autoref{label}
```- Insert code/text "number balls" (like No Starch Press)
```tex
begin{code}[title]
int a; ¡\cb{1}¡
\end{code}
In \tb{1} we create an int
```## Configure template
The template supports some 'tuning' parameters, such as accent/secondary colors, logo, font, twocols/onecol, twocols balancing, etc.
To change these options, go to 'Options' in `document.tex` and modify the default values.
### Further configuration
Manually modify `config/tugraz-style.sty`
## Comments
I am not a LaTeX expert, this template is intended for my personal use.
Borders have to be that thick to not cause line glitching problems in some renderers (chrome, firefox...), zathura handles them well but I have to support chrome due to it's popularity