[Build] Refactor for import style update
This commit is contained in:
@@ -5,8 +5,11 @@
|
||||
|
||||
This repository contains a collection of LaTeX files, helping you get started with LaTeX quickly.
|
||||
|
||||
Breaking change in the current version: the time complexity commands now require the math environment. You may use the following vim-regex to fix issues in your code:
|
||||
`:%s/ \\tc\([olt]\){\(.*)}\([, .\n]\)/ \$\\tc\1{\2}\$\3/g` (execute first) and `:%s/\\text{\\tc\([olt]\){\(.*\)}}/\\tc\1{\2}/g`
|
||||
# Note on future import updates
|
||||
A future version (TBD) will also include combined files (i.e. quite large files in the `dist` directory, current `dist` directory will be renamed)
|
||||
such that TeXlab will provide completion for the commands provided here.
|
||||
|
||||
The current import method will continue to be supported, but new projects should switch to the new import style
|
||||
|
||||
|
||||
# Getting started
|
||||
@@ -25,4 +28,4 @@ The editors are ordered in terms of ease of use and my personal preference list
|
||||
<a href="https://store.janishutz.com/donate" target="_blank"><img src="https://store-cdn.janishutz.com/static/support-me.jpg" width="150px"></a>
|
||||
</div>
|
||||
|
||||
[LaTeX helper files](https://git.janishutz.com/janishutz/latex) © 2024 by [Janis Hutz](https://janishutz.com) is licensed under [Creative Commons Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/)
|
||||
[LaTeX helper files](https://git.janishutz.com/janishutz/latex) © 2025 by [Janis Hutz](https://janishutz.com) is licensed under [Creative Commons Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/)
|
||||
|
||||
50
build.sh
Executable file
50
build.sh
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "
|
||||
▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄
|
||||
█ █ █ █ █ █ █▄█ █ █ █ █ █ █ █ █ █ █ ▄ █ █ █
|
||||
█ █ █ ▄ █▄ ▄█ ▄▄▄█ █ █ █▄█ █ ▄▄▄█ █ █ ▄ █ ▄▄▄█ █ █ █ █ ▄▄▄▄▄█
|
||||
█ █ █ █▄█ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄█ █ █▄▄▄█ █▄▄█▄█ █▄▄▄▄▄
|
||||
█ █▄▄▄█ █ █ █ █ ▄▄▄██ █ █ ▄ █ ▄▄▄█ █▄▄▄█ ▄▄▄█ ▄▄▄█ ▄▄ █▄▄▄▄▄ █
|
||||
█ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
||||
█▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||
|
||||
==> Building <==
|
||||
|
||||
"
|
||||
|
||||
mkdir dist/
|
||||
echo "\\input{\\dir/config/config.tex}" > ./dist/minimal.tex
|
||||
|
||||
# Build minimal scope
|
||||
cat ./main/core.tex >> ./dist/minimal.tex
|
||||
cat ./main/style/style.tex >> ./dist/minimal.tex
|
||||
cat ./main/style/common.tex >> ./dist/minimal.tex
|
||||
|
||||
|
||||
# Build most
|
||||
cat ./dist/minimal.tex > ./dist/most.tex
|
||||
cat ./main/math.tex >> ./dist/most.tex
|
||||
cat ./main/cs.tex >> ./dist/most.tex
|
||||
cat ./main/index.tex >> ./dist/most.tex
|
||||
cat ./main/style/counters.tex >> ./dist/most.tex
|
||||
cat ./main/style/cs.tex >> ./dist/most.tex
|
||||
cat ./main/style/math.tex >> ./dist/most.tex
|
||||
cat ./main/style/language.tex >> ./dist/most.tex
|
||||
|
||||
|
||||
# Build recommended
|
||||
cat ./dist/most.tex > ./dist/recommended.tex
|
||||
cat ./extra/bib.tex >> ./dist/recommended.tex
|
||||
cat ./extra/glossary.tex >> ./dist/recommended.tex
|
||||
|
||||
|
||||
# Build full
|
||||
cat ./dist/recommended.tex > ./dist/full.tex
|
||||
cat ./extra/minted.tex >> ./dist/full.tex
|
||||
|
||||
|
||||
# Copy letter
|
||||
cp ./scopes/letter.tex ./dist/letter.tex
|
||||
|
||||
echo "==> Done"
|
||||
13
include.tex
13
include.tex
@@ -8,30 +8,29 @@
|
||||
\edef\temp{#1}
|
||||
\ifx \temp\recommended
|
||||
\typeout{[CustomLaTeXHelperLoader]: Loading config recommended}
|
||||
\input{\dir/dist/recommended.tex}
|
||||
\input{\dir/scopes/recommended.tex}
|
||||
\loadRecommended
|
||||
\else
|
||||
\ifx \temp\minimal
|
||||
\typeout{[CustomLaTeXHelperLoader]: Loading config minimal}
|
||||
\input{\dir/dist/minimal.tex}
|
||||
\input{\dir/scopes/minimal.tex}
|
||||
\loadMinimal
|
||||
\else
|
||||
\ifx \temp\most
|
||||
\typeout{[CustomLaTeXHelperLoader]: Loading config most}
|
||||
\input{\dir/dist/most.tex}
|
||||
\input{\dir/scopes/most.tex}
|
||||
\loadMost
|
||||
\else
|
||||
\ifx \temp\full
|
||||
\typeout{[CustomLaTeXHelperLoader]: Loading config full}
|
||||
\input{\dir/dist/full.tex}
|
||||
\input{\dir/scopes/full.tex}
|
||||
\loadFull
|
||||
\else
|
||||
\ifx \temp\letters
|
||||
\typeout{[CustomLaTeXHelperLoader]: Loading config letter}
|
||||
\input{\dir/dist/minimal.tex}
|
||||
\input{\dir/scopes/minimal.tex}
|
||||
\loadMinimal
|
||||
% \input{\dir/config/config.tex}
|
||||
\input{\dir/dist/letter.tex}
|
||||
\input{\dir/scopes/letter.tex}
|
||||
\else
|
||||
\typeout{[CustomLaTeXHelperLoader]: INVALID CONFIG SPECIFIED, NOTHING LOADED!}
|
||||
\fi
|
||||
|
||||
Reference in New Issue
Block a user