| In: |
rtex.rb
|
| Parent: | Object |
This class allows som precompile on the given TeX-File(s) Actual a method for listings.sty is implemented.
| text | [R] |
This function supports the handling of the package listings. Listings.sty allows you the insertion of external lsitings with the command
\lstinputlisting[firstline=<first>,lastline=<last>]{Programm}
There is one Problem: Whats the value of <first> and <last>? Once a programm is finished, it is no problem. But when the program is still in develpment, you have to adapt the line numbering. It would be much nicer, if you could use something like
\lstinputlisting[fromlabel=<first>,tolabel=<last>]{Programm}
Well, I understand why it is dificult to make it in listings.sty. This method makes this work. It scans the listing file for the label and replaces it in the source.