You are on page 1of 1

8 Recording

The package provides some macros and options to take records during compilation. This is
done by LATEX file operations to save some data to a file for later usage. The main application
scenario is depicted in Section 8.3 on the next page where information about example solutions
is recorded and read again in Section 8.4 on page 132.

8.1 Macros

N 2014-11-28 \tcbstartrecording[hfile namei]


Opens a file denoted by hfile namei for writing the records. The default file name is
\jobname.records. See Section 8.3 on the next page for an example application.
N 2014-11-28 \tcbrecord{hcontenti}
Records any hcontenti to the record file. \tcbrecord is implemented as \immediate\write.
\tcbstartrecording has to be called before; otherwise, \tcbrecord is silently ignored.

\tcbrecord{\string\solution{\thetcbcounter}{solutions/exercise-\thetcbcounter.tex}}

N 2014-11-28 \tcbstoprecording
Closes the current record file which was opened by \tcbstartrecording before.
N 2014-11-28 \tcbinputrecords[hfile namei]
Opens a file denoted by hfile namei for reading the records via \input. The default file
name is the name of the last used record file for saving. \tcbstoprecording has to be
called before.

8.2 Options

N 2014-11-28 /tcb/record=hcontenti (style, no default)


Records any hcontenti to the record file, see \tcbrecord. This key can be used several
times to write several lines.
record={\string\solution{\thetcbcounter}{solutions/exercise-\thetcbcounter.tex}}

N 2014-11-28 /tcb/no recording


Disables \tcbrecord and /tcb/record inside the current group.

128

You might also like