I am using the
fancyvrb package in
I have chosen to display line numbers as I am displaying some code.
(The code I am displaying is Maple, which unfortunately is not supported by the listings package).
As some of the lines of my code are too long to fit across the page, I break them manually in my
I place a carriage return character at the end of this manual break to indicate to the reader that this line of code continues on the next line of displayed text. On the next line of text, I place an arrow symbol (left-to-right) to indicate to the reader that this line of text is a continuation of the line of code. (For completeness, the last line of text of such a broken line of code does not contain a carriage return character).
In such circumstances (i.e. of these manually-broken lines with explicit break and continuation characters), I would like to write a special numbering macro that appends a lower case letter to the line number assigned, (following an alphabetical sequence starting with
a ), and ending at the last line of continuation.
Following such a broken line of code, the numbering for the next line of code would then resume normally and the lower case letter counter would reset to
I have looked carefully through the
fancyvrb package documentation but to write such a macro is beyond me. I have also tried to find samples of macros performing similar tasks, however I have been unsuccessful.
Any help would be much appreciated(!)