#125 Labels in \lstinputlisting doesn't show

None
duplicate
nobody
texmakerx (141)
1
2015-06-29
2010-12-14
No

When using \lstinputlisting{firstline=x, lastline=x, firstnumer=x, caption={xtz},label={TESTLABEL}] {filename.xyz}
then the label (TESTLABEL) does not show in structure window, and it does not pop up when using \ref

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2010-12-14

    well , maybe it is because it is a rather uncommon construction.
    tmx looks for \label-commands. So if the backslash is missing, it is no command for tmx.
    Where does the command \lstinputlisting come from anyway ?

     
  • Casper Hansen

    Casper Hansen - 2010-12-17

    It comes from the listnig package. It is used to insert source code to document.

    ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/listings.pdf

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-06-29
    • status: open --> duplicate
    • Group: -->
    • Priority: 5 --> 1
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks