Listing linerange markers sometimes not being recognised
up vote
0
down vote
favorite
I am documenting several large XSLT scripts using the lstinputlisting
command. I have set Processing Instructions in the scripts to mark off suitably-sized blocks of code to document, mostly 10–20 lines each block, in the format
<?doc val1?>
and
<?doc val2?>
(etc; many dozens of these) and included the options rangeprefix=<?doc ,rangesuffix=?>,linerange=val1-val2
After the first code block has been done (correctly), it stops recognising the PI pattern and just includes all of the rest of the script to the end of the file, even displaying the PIs that it was supposed to have recognised.
These scripts are not mine to publish here, but before I try to construct a MWE, I wanted to know if anyone else has hit this problem. It only seems to occur with larger files (the current problematic one is 92KB and 2330 lines).
This happens with both pdflatex Version 3.14159265-2.6-1.40.16 and XeLaTeX Version 3.14159265-2.6-0.99992, both with LaTeX <2016/02/01> and listings.sty 1.6 (2015/06/04)
listings
add a comment |
up vote
0
down vote
favorite
I am documenting several large XSLT scripts using the lstinputlisting
command. I have set Processing Instructions in the scripts to mark off suitably-sized blocks of code to document, mostly 10–20 lines each block, in the format
<?doc val1?>
and
<?doc val2?>
(etc; many dozens of these) and included the options rangeprefix=<?doc ,rangesuffix=?>,linerange=val1-val2
After the first code block has been done (correctly), it stops recognising the PI pattern and just includes all of the rest of the script to the end of the file, even displaying the PIs that it was supposed to have recognised.
These scripts are not mine to publish here, but before I try to construct a MWE, I wanted to know if anyone else has hit this problem. It only seems to occur with larger files (the current problematic one is 92KB and 2330 lines).
This happens with both pdflatex Version 3.14159265-2.6-1.40.16 and XeLaTeX Version 3.14159265-2.6-0.99992, both with LaTeX <2016/02/01> and listings.sty 1.6 (2015/06/04)
listings
Can you post a complete minimal working example, including an XSLT file?
– Andrew
8 mins ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am documenting several large XSLT scripts using the lstinputlisting
command. I have set Processing Instructions in the scripts to mark off suitably-sized blocks of code to document, mostly 10–20 lines each block, in the format
<?doc val1?>
and
<?doc val2?>
(etc; many dozens of these) and included the options rangeprefix=<?doc ,rangesuffix=?>,linerange=val1-val2
After the first code block has been done (correctly), it stops recognising the PI pattern and just includes all of the rest of the script to the end of the file, even displaying the PIs that it was supposed to have recognised.
These scripts are not mine to publish here, but before I try to construct a MWE, I wanted to know if anyone else has hit this problem. It only seems to occur with larger files (the current problematic one is 92KB and 2330 lines).
This happens with both pdflatex Version 3.14159265-2.6-1.40.16 and XeLaTeX Version 3.14159265-2.6-0.99992, both with LaTeX <2016/02/01> and listings.sty 1.6 (2015/06/04)
listings
I am documenting several large XSLT scripts using the lstinputlisting
command. I have set Processing Instructions in the scripts to mark off suitably-sized blocks of code to document, mostly 10–20 lines each block, in the format
<?doc val1?>
and
<?doc val2?>
(etc; many dozens of these) and included the options rangeprefix=<?doc ,rangesuffix=?>,linerange=val1-val2
After the first code block has been done (correctly), it stops recognising the PI pattern and just includes all of the rest of the script to the end of the file, even displaying the PIs that it was supposed to have recognised.
These scripts are not mine to publish here, but before I try to construct a MWE, I wanted to know if anyone else has hit this problem. It only seems to occur with larger files (the current problematic one is 92KB and 2330 lines).
This happens with both pdflatex Version 3.14159265-2.6-1.40.16 and XeLaTeX Version 3.14159265-2.6-0.99992, both with LaTeX <2016/02/01> and listings.sty 1.6 (2015/06/04)
listings
listings
asked 1 hour ago
Peter Flynn
1,46621319
1,46621319
Can you post a complete minimal working example, including an XSLT file?
– Andrew
8 mins ago
add a comment |
Can you post a complete minimal working example, including an XSLT file?
– Andrew
8 mins ago
Can you post a complete minimal working example, including an XSLT file?
– Andrew
8 mins ago
Can you post a complete minimal working example, including an XSLT file?
– Andrew
8 mins ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461645%2flisting-linerange-markers-sometimes-not-being-recognised%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you post a complete minimal working example, including an XSLT file?
– Andrew
8 mins ago