![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
27 Mar
2007
27 Mar
'07
6 a.m.
John R. Culleton wrote:
I have a situation where I wish to import a file and have the line endings and the spaces honored as in \typefile. But I want any font changes (e.g. \it) honored as well. I tried the plain TeX commands \obeylines and \obeyspaces. The line endings and typeface changes were honored but the spaces were not.
Is there a convenient way to do this? I can preprocess the file through e.g. sed to patch in \crlf and hard spaces but this seems a bit clumsy.
You could try with \processingverbatimtrue . If you are lucky, that will trigger \obeyspaces into outputting \hboxes instead of actual spaces. Good luck, Taco