Skip to content

lstinputlisting line ranges not supported #6950

Description

@MarcBoule

Thanks for the fixes in #5567, I think the last thing related to this would be to handle a few remaining options for specifying line ranges in
\lstinputlisting. The code snippets appearing in the paper at https://arxiv.org/html/2601.09829 are now rendered much better, but in that work, the code of one of the source files was broken up into many separate figures in the paper, and the following variants for line ranges don't seem to be taken into account in the arXiv html port of the paper:

\lstinputlisting[linerange={2-34}]{listings/wirepair.pro}
\lstinputlisting[linerange={161-175,180-190,193-200,204-206}]{listings/wirepair.pro}

The above code excerpts from the paper's LaTeX file render figures 5 and 13 in the paper, and at those places (and some others) they unfortunately render the entire source file (wirepair.pro) instead of only the selected lines. The other syntax below is properly handled (figure 12 in the paper, for example, which renders correctly).

\lstinputlisting[firstline=146, lastline=159]{listings/wirepair.pro}

So if the linerange={x-y} or linerange={x1-y1,x2-y2[,...]} option format can be supported for \lstinputlisting, then I think the listings in the html version of the paper will be spot-on!

All the best,

Marc Boulé

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions