https://github.com/timgoll/tex_base
tex base layout
https://github.com/timgoll/tex_base
Last synced: 4 months ago
JSON representation
tex base layout
- Host: GitHub
- URL: https://github.com/timgoll/tex_base
- Owner: TimGoll
- Created: 2018-10-08T07:38:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T11:32:37.000Z (about 5 years ago)
- Last Synced: 2025-02-23T09:23:22.753Z (over 1 year ago)
- Language: TeX
- Size: 7.96 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TeX Base
TeX Base is my baselayout used and created by me. It follows a constant design line though the complete file and introduces many nice to have commands.
## Images
There are two types of predefined image boxes. Single and double image box. Additionally the single image bo can be used without a description.
```tex
\imgbox[width]{path}{ref}{title}
\imgboxdesc[width]{path}{ref}{title}{desc}
\doubleimgboxdesc{ref_all}{path1}{title1}{ref1}{path2}{title2}{ref2}{desc_all}{title_all}
```
To create an imagebox with multiple images or images without the same dimension, a basebox has to be initialized.
```tex
\baseboxdesc{content}{ref}{title}{desc}
```
## Code
Adding code to your document is very easy thanks to these new boxes. One is with a description, the other without.
```tex
\codeboxdesc[fist_line]{lang}{path}{ref}{title}{desc}
\codebox[fist_line]{lang}{path}{ref}{title}
```
A more minimalistic version for some single line uses like command line prints, this command combination can be used.
```tex
\highlightbox{width}{
\inlinetext{code}
}
```
A great feature is the in code referencing. Up to 9 markings per listing can be defined with a `\llabel` where the symbols in the front and back are escape characters defined in `inc/syntax_highlight.tex`. They now can be referenced everywhere in code with `\refnum`.
```tex
\refnum{line_ref}
```
```txt
/*@\llabel{line_ref}@*/
```
## Other Commands
A wrapper for the tex `\ref` command has been added. It adds a prefix to the reference in text. This prefix is defined in `inc/styling.tex`
```tex
\refn[type]{ref}
```
Inline code highlight is done with this command:
```tex
\code{code}
```