Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[UKenglish,a4paper,11pt]{report}
- \usepackage{babel}
- %% Adjustments
- \addtolength{\topmargin}{-1\baselineskip}
- \addtolength{\textheight}{4\baselineskip}
- \pretolerance = 2000
- \tolerance = 5000 \hbadness = \tolerance
- %% Smaller font
- \usepackage{mathptmx}
- %% LISTINGS
- \usepackage[final]{listings}
- \lstset{
- xleftmargin=1.5em,
- framexleftmargin=1em,
- framextopmargin=0.5ex,
- %% THE FRAME:
- framerule=1pt,
- frame=tblr
- }
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \usepackage{lipsum} % for demo
- \begin{document}
- \subsubsection{Lorem} % some fiddling to get the "wrong spacing just right":
- \lipsum[1-3]
- \subsubsection{Ipsum}
- \lipsum[1] and then some text
- \begin{lstlisting}
- Here is a listing with
- three lines of code;
- The bottom border is placed on the next page!
- \end{lstlisting}
- Can you believe it..?!
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment