I have documents of this form:


\setlength{\variableLength}{xxxx cm}


% some macros


where xxxx can take multiple values.

Is it still possible to make benefit (I have to make the compilations multiple times) of mylatex or mylatexformat?


The value is used as follows


and that's all.

  • What are "mylatex" and "mylatexformat"? Please advise. – Mico Sep 23 '15 at 13:47
  • See ctan.org/pkg/mylatex and ctan.org/pkg/mylatexformat – Colas Sep 23 '15 at 14:01
  • If \setlength{\variableLength}{xxxx cm} is the only preamble instruction that can vary, have you considered moving it out of the preamble, i.e., placing it after \begin{document}? – Mico Sep 23 '15 at 14:21
  • I think using mylatexformat instead of mylatex will do the trick. – Colas Sep 23 '15 at 14:24
  • @Mico that's impossible because I use \variableLength in a package. – Colas Sep 23 '15 at 18:07

There is a command in mylatexformat for this purpose. In your preamble, use the command \endofdump to delimit the end of the common part of your preambles.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.