TransWikia.com

Writing a class + template with default sections

TeX - LaTeX Asked by Dschoni on April 1, 2021

I’m right now writing a class for technical manuals to be used inside my company. This class holds e.g. the company logo and defines some macros for e.g. specific Corporate Identity styling of code listings etc. (I got this working already)

We have sections inside our documents, that have only minor changes between documents e.g. a paragraph about legal implications. My question is, where to define such a paragraph, to be re-used over several documents. I’m guessing it would be possible to maintain such sections as seperate .tex files inside the class’ file-tree and input or include from there. I imagine my file-tree to look something like this:

.
└── mytexmf/
    └── tex/
        └── latex/
            └── my_class/
                ├── My_Class.cls
                ├── my_company_logo.png
                ├── foo.tex
                └── bar.tex

When someone is using my class, will they be able to write something like

documentclass{My_class}
begin{document}
input{foo}
input{bar}
Some more text
end{document}

and if yes, is that good practice?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP