I have a big block of tex commands (about 80 lines in length) that set up 
theorem environments using the amsthm​ and thmtools​ packages.

To this bunch of tex commands there is also a corresponding LyX module that 
defines the theorems in the editor (paragraph styles, section 5.3.7 in the 
customization manual).

I want to avoid this 80 lines code block in my document preamble. It clutters 
the document structure.

Of course, one can insert the code block as it is inside this:

Preamble
⟨80 lines of code go here⟩
EndPreamble

But this adds the big code block right into my preamble, which, as I said, I 
want to avoid.

The other option is to save the code block in a tex file (`myPreable.tex` for 
example) and to load it into my document:

Preamble
\input{myPreamble}EndPreamble

But this means that the file `myPreamble.tex` must be located in the root 
directory of the LyX project.

Is there any way to load the code block while it is located in the 
"Applications/LyX.app/Contents/Resources/layouts/" directory? I am about to 
send this module file and all its accompanying files to a colleague, and I want 
to spare him from the task of taking care which files go where.

I hope my question is clear.
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to