I precompile my preamble using Mylatexformat. Since I work on a Mac and a PC it would be great if the same file could be compiled on both systems.
It works great on my PC using this:
%&C:\Users\foo\mylatexformat
\endofdump
Non-precompiled build works on the Mac, but when I use mylatexformat and change the first line to
%&/Users/foo/mylatexformat
then I get an error and it seems that the .fmt file is just not found...
So I got 2 questions:
- Did I do something wrong with the Mac there?
- Is there any way to make that switch automatic so that I do not need to change the first line?
I am using miktex and xetex and Texstudio on both systems.
Command: xelatex -shell-escape -interaction=nonstopmode -file-line-error -synctex=1 -output-driver="xdvipdfmx -z0 -V7" %.tex
%&myformat? To get the search path for format files, usekpsewhich -show-path=fmt(I hope MiKTeX supports this, otherwise see the MiKTeX documentation about where is searchs for format files — or use TeXLive instead of MiKTeX).