0

Is it possible to create a latex document where some pages have a unique size [width & depth] that basically is the right size to contain all the data from some input file?

More details. I am writing a technical document where I want to include very large tables (both in width and depth.) In order for me to edit these tables efficiently I don't use a latex environment such as array or tabular. Instead I produce tables such as the one below (this is a small subset of such a table) which I can conveniently resize etc ... using e.g. tablemode in vim.

|-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------|
| Row   | Persp. |                                     |                                     |                                                          |
|-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------|
| i     | SCEN   | SCEN/MODEXP                         | FAILURE_KNOWN_TO_RAM                |                                                          |
|-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------|
| i + 1 | MISC   | MMU_FLAG = 0                        | EXP_FLAG = 0 blablablablablablabla  | OOB_FLAG = 1      blablablablablablablablablablabla      |

My strategy is to include these tables as is in my main document by putting the above text inside of a verbatim environment.

What I would like to do is have some pages of arbitrary size that can precisely fit such tables. Outside of these pages the document should be standard A4 pages.

1 Answers1

1

One possible approach would be to compile the tables using the standalone class:

\documentclass[varwidth=\maxdimen,margin=0.5cm,multi={verbatim}]{standalone}
\begin{document}

\begin{verbatim} |-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------| | Row | Persp. | | | | |-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------| | i | SCEN | SCEN/MODEXP | FAILURE_KNOWN_TO_RAM | | |-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------| | i + 1 | MISC | MMU_FLAG = 0 | EXP_FLAG = 0 blablablablablablabla | OOB_FLAG = 1 blablablablablablablablablablabla | \end{verbatim} \begin{verbatim} |-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------| | Row | Persp. | | | | |-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------| | i | SCEN | SCEN/MODEXP | FAILURE_KNOWN_TO_RAM | | |-------+--------+-------------------------------------+-------------------------------------+----------------------------------------------------------| | i + 1 | MISC | MMU_FLAG = 0 | EXP_FLAG = 0 blablablablablablabla | OOB_FLAG = 1 blablablablablablablablablablabla | \end{verbatim} \end{document}

enter image description here