6
votes
2answers
378 views

Expand command read from file

I have a file, that contains a list of latex commands each command per line. Now I want to read this file line per line and execute/expand the macros automatically. I tried the following but this only ...
4
votes
2answers
314 views

Solutions to problem sheets

For writing problem sheets I have a customized theorem environment called pr for the problem and a specialcomment called solution for the solution. See example below. Now my question is, if it is ...
2
votes
1answer
2k views

How to generate LaTeX documents with Perl

I have to generate Software Requirement Specification documents in LaTeX. I have to use Perl to accomplish this. The documents consist of tables, lists, pictures, TOC, table of figures, headings and ...
22
votes
3answers
502 views

How to compute the remaining space on the current page

Is there a way to compute the remaining space on the current page and issue an optional command?