Note that there are some explanatory texts on larger screens.

plurals
  1. POFormatting source listings with listings & framed packages
    primarykey
    data
    text
    <p>I currently have a problem, that listings package cannot spread source files across multiple pages. In the doc is written, that the "framed" package should be used for various formatting option. Unfortunately I did not find any docs for the "framed" package. My current source formatting looks like this for C# sources:</p> <p><a href="http://www.free.image.hosting.net/uploads/88987a1ef4.png" rel="nofollow noreferrer">Source Formatting http://www.free.image.hosting.net/uploads/88987a1ef4.png</a></p> <hr> <h2>Unfortunately the image service no longer exists and I can't find that image, since the post was posted more than 5 years ago. What I remember is that the formatted source code part, which should be visible on the next page, was just truncated and did not show up at all.</h2> <p>My formatting for "listings" package is:</p> <pre><code>\newcommand{\sourceFormatterCSharp} { \lstset { language=[Sharp]C , captionpos=b %, frame=lines , morekeywords={var, get, set} , basicstyle=\footnotesize\ttfamily , keywordstyle=\color{blue} , commentstyle=\color{darkgreen} , stringstyle=\color{darkred} , backgroundcolor=\color{lightgrey} , numbers=left , numberstyle=\scriptsize , stepnumber=2 , numbersep=5pt , breaklines=true , tabsize=2 , showstringspaces=false , emph={double, bool, int, unsigned, char, true, false, void, get, set} , emphstyle=\color{blue} , emph={Assert, Test} , emphstyle=\color{red} , emph={[2]\#using, \#define, \#ifdef, \#endif} , emphstyle={[2]\color{blue}} , frame=shadowbox , rulesepcolor=\color{grey} , lineskip={-1.5pt} % single line spacing } } % first optional param is placement % param1 file name without extension % param2 chapter number, e.g. 1 or 2 ... % param3 caption to use \newcommand{\embedCSharp}[4][htbp] { \sourceFormatterCSharp \includeListing{#1}{#4}{#3:#2}{#3/#2.cs} } </code></pre> <p>Can anybody help me achieving <strong>similar looking</strong> results using "framed" package or any other for my source to look like this but be distributable across pages? <em>An example how to embed a listing in the frame would not satisfy, since I was so far myself.</em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload