diff options
author | ax006ho <j.hoffmann@fh-aachen.de> | 2020-01-31 23:01:36 +0100 |
---|---|---|
committer | ax006ho <j.hoffmann@fh-aachen.de> | 2020-01-31 23:01:36 +0100 |
commit | 6a81604b42e0ef397d05e86ccb1b95a76f8911af (patch) | |
tree | c066c8d7d5fd7fb00151b36ed0e509ad05007a06 | |
parent | cfd414219ca14c4c49f709cb1129baeec274454b (diff) | |
download | listings-6a81604b42e0ef397d05e86ccb1b95a76f8911af.tar.gz listings-6a81604b42e0ef397d05e86ccb1b95a76f8911af.tar.bz2 |
cleared the behaviour of firstnumber and includerangemarker in the documentation
-rw-r--r-- | listings.dtx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/listings.dtx b/listings.dtx index 40b9cc9..41b07d5 100644 --- a/listings.dtx +++ b/listings.dtx @@ -2640,7 +2640,7 @@ % the number corresponding to the first input line. % % \texttt{last} continues the numbering of the most recent listing and -% \meta{number} sets it to the number. +% \meta{number} sets it to the (logical) number. % % \item[1.0] \rkeyname{name}|=|\meta{name} % @@ -3984,6 +3984,10 @@ % \item[1.2,true] \rkeyname{includerangemarker}|=|\meta{\alternative{true,false}} % % shows or hides the markers in the output. +% +% \textbf{Remark:} If |firstnumber| is set, it refers to +% the line which contains the marker. So if one wants to start a range with +% the number 1, one has to set |includerangemarker=false, firstnumber=0|. % \end{syntax} % \begin{lstsample}{\lstset{rangeprefix=\{\ ,rangesuffix=\ \}}}{} % \begin{lstlisting}% |