| 1 |
% Sample file used with datatooltk |
| 2 |
\documentclass{article} |
| 3 |
|
| 4 |
\usepackage{datatool} |
| 5 |
|
| 6 |
% load database that was either previously saved using |
| 7 |
% \DTLwrite[format=dbtex,name=mydata]{data-raw.dbtex} or |
| 8 |
% \DTLsaverawdb{mydata}{data-raw.dbtex} |
| 9 |
% or created and saved using datatooltk |
| 10 |
|
| 11 |
\DTLread[format=dbtex]{data-raw} |
| 12 |
|
| 13 |
\begin{document} |
| 14 |
|
| 15 |
\DTLdisplaydb{mydata} |
| 16 |
|
| 17 |
% Save to a new file to test I/O: |
| 18 |
|
| 19 |
\DTLwrite[format=dbtex-2,name={mydata},overwrite=allow]{data-raw-saved} |
| 20 |
|
| 21 |
% Now try the protected version: |
| 22 |
|
| 23 |
\DTLwrite[format=dbtex-2,name={mydata},overwrite=allow,expand=protected] |
| 24 |
{data-raw-psaved} |
| 25 |
\end{document} |