While in the document body I like to temporary switch back to the mode active in the LaTeX preamble, i.e. spaces between macros should be ignored. I don't mind whether I get the ! LaTeX Error: Missing \begin{document} or not.
I'm aware that this is something which is normally not done. The switch will be done by a package for loading size files.
Details: This is a follow-up question for my question Switching to different font size(s) locally. I like to load a file which is normally only loaded in the preamble inside a local scope in the document body. The problem is that it contains some spaces between macros which are ignored in the preamble but not the document.
I can't set the catcode of the space to 'ignore', because there might be spaces inside macros which should stay spaces. Ignoring all line endings by setting \endlinechar=-1 helps, but doesn't catch all spaces. I also tried to wrap the \input with \ignorespaces .. \unskip, but this removes only the first and last space, but keeps other spaces.
I currently don't understand how the preamble mode is implemented. Apparently the typesetting mechanism of TeX is trip-wired. It would be great if answers could include some explanation how this is actually done.
\everyparto give an error. (\nullfontis also selected.) – Joseph Wright Dec 01 '11 at 15:19\nullfontis what I was looking for. I just have to make sure that the\normalsizeinside the particular files does not revert it. I might post a self-answer in a while. – Martin Scharrer Dec 01 '11 at 15:35\paris what you really need. – egreg Dec 01 '11 at 16:17\nfss@catcodessets catcodes of all the characters which appear in the nfss files. – Bruno Le Floch Dec 02 '11 at 20:07