filecontents
package replaces tabs with spaces. Is there any solution to preserve tabs in the generated file without changing the following code?
\begin{filecontents*}{textWithTabs.txt}
Aa Bb Cc
1 2 3
\end{filecontents*}
Generated file is:
Aa Bb Cc
1 2 3
Desired file is:
Aa Bb Cc
1 2 3
texdoc filecontents
says nothing about that point. – Clément Jul 9 '14 at 12:37texdoc usrguide
documents the originalfilecontents
environment, before the environment is patched by thefilecontents
package. Quoting the document: Only normal ASCII text characters (7-bit visible text) should be included in a filecontents environment. Anything else, such as tab characters, form-feeds or 8-bit characters, should not be included in a filecontents environment. There is more text about the conversion to spaces. The document does not suggest any solution around this limitation. – mvkorpel Jul 9 '14 at 12:50filecontents
version claims aboutverbatim
writing the content, in this case, the tab characters should be preserved. – user31729 Jul 9 '14 at 12:58verbatim writing
... I meant, as stated infilecontents
package manual filecontents works much like verbatim ... I misinterpreted this, that verbatim is used. – user31729 Jul 9 '14 at 13:43