diff --git a/README.md b/README.md index bc7d750..9b36196 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,9 @@ This repository contains a collection of LaTeX files, helping you get started with LaTeX quickly. -# 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. +# New import scheme +I have done some tweaks to support a new import scheme, making imports much more flexible -The current import method will continue to be supported, but new projects should switch to the new import style # Getting started diff --git a/build.sh b/build.sh index 835a46d..8b562f3 100755 --- a/build.sh +++ b/build.sh @@ -14,37 +14,45 @@ echo " " mkdir dist/ -echo "\\input{\\dir/config/config.tex}" > ./dist/minimal.tex +cat ./scopes/header.tex >>./dist/minimal.sty # 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 - +cat ./main/core.tex >>./dist/minimal.sty +echo "\n" >>./dist/minimal.sty +cat ./main/style/style.tex >>./dist/minimal.sty +echo "\n" >>./dist/minimal.sty +cat ./main/style/common.tex >>./dist/minimal.sty # 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 - +cat ./dist/minimal.sty >./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/math.tex >>./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/cs.tex >>./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/index.tex >>./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/style/counters.tex >>./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/style/cs.tex >>./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/style/math.tex >>./dist/most.sty +echo "\n" >>./dist/most.sty +cat ./main/style/language.tex >>./dist/most.sty # Build recommended -cat ./dist/most.tex > ./dist/recommended.tex -cat ./extra/bib.tex >> ./dist/recommended.tex -cat ./extra/glossary.tex >> ./dist/recommended.tex - +cat ./dist/most.sty >./dist/recommended.sty +echo "\n" >>./dist/recommended.sty +cat ./extra/bib.tex >>./dist/recommended.sty +echo "\n" >>./dist/recommended.sty +cat ./extra/glossary.tex >>./dist/recommended.sty # Build full -cat ./dist/recommended.tex > ./dist/full.tex -cat ./extra/minted.tex >> ./dist/full.tex - +cat ./dist/recommended.sty >./dist/full.sty +echo "\n" >>./dist/full.sty +cat ./extra/minted.tex >>./dist/full.sty # Copy letter -cp ./scopes/letter.tex ./dist/letter.tex +cp ./scopes/letter.tex ./dist/letter.sty echo "==> Done" diff --git a/scopes/header.tex b/scopes/header.tex new file mode 100644 index 0000000..85af3c1 --- /dev/null +++ b/scopes/header.tex @@ -0,0 +1,5 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{janishutz-helpers} + +\usepackage{import} +\import{../}{config/config.tex}