My objective is to create a long tabular list of PSTricks inputs and their corresponding outputs side by side.
The table consists of 3 columns, i.e., Number column, Input column, & Output column. The Number column contains hyperlinks to the source code files. For example: if a reader is interested to draw a figure of torus, he just need search in the table and click the number to open its corresponding source code file.
Shortly speaking, how to separate the input and output of LTXexample? My rough idea is as follows:
- I just pass in the PSTricks routines to a macro in the Input column.
- The macro then provides a saved box containing the output.
- Then I call another macro (like \usebox) to retrieve the saved box and insert it to the Output column.
- I do step 1-3 for each row. Hyperlink numbers can be easily made using \url (it is not a big problem).