0

I am trying the interesting scontents package.

I am quickly facing issues like the environment content is not displayed while I set that key to print-env=true.

Where am I wrong?

\documentclass{article}
\usepackage{scontents}

\begin{document}

\begin{scontents}[print-env=true, write-out=TestFile,overwrite=true]

Something for main A.

\end{scontents}

\end{document}
2
  • Feels like a package bug to me, the documentation says nothing about it. As workaround you can obviously do a getstored afterwards
    – user202729
    Apr 3, 2022 at 6:09
  • It is documented and with the word NOT in capital letters :D Apr 4, 2022 at 1:16

1 Answer 1

2

Use write-env not write-out. That will also store the content so that it can be printed:

\documentclass{article}
\usepackage{scontents}

\begin{document}

\begin{scontents}[print-env=true, write-env=TestFile,overwrite=true]
Something for main A.

\end{scontents}

\end{document}

1
  • my bad ! thank you.
    – JeT
    Apr 3, 2022 at 17:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .