I have some extensive calls of \renewcommand{} that are cluttering my document.tex file. I would like to save them in a separate file (costum_definitions).

Consider the following example:


% begin definitions
% end definitions


I would like to include everything between % begin definitions and % end definitions in a separate file and call on that file in one line to make the commands available in my document.

  • 6
    And what is the problem? Simply do it and then use \input (or \usepackage if you called the file custom_definitions.sty). Dec 10, 2019 at 8:02

1 Answer 1

\input{costum_definitions} % include custom definitions from separate file

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .