Guest User

Untitled

a guest
Apr 11th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass[UKenglish,a4paper,11pt]{report}
  2. \usepackage{babel}
  3.  
  4. %% Adjustments
  5. \addtolength{\topmargin}{-1\baselineskip}
  6. \addtolength{\textheight}{4\baselineskip}
  7. \pretolerance = 2000
  8. \tolerance = 5000   \hbadness = \tolerance
  9.  
  10. %% Smaller font
  11. \usepackage{mathptmx}
  12.  
  13. %% LISTINGS
  14. \usepackage[final]{listings}
  15. \lstset{
  16.     xleftmargin=1.5em,
  17.     framexleftmargin=1em,
  18.     framextopmargin=0.5ex,
  19. %%  THE FRAME:
  20.     framerule=1pt,
  21.     frame=tblr
  22. }
  23.  
  24. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  25.  
  26. \usepackage{lipsum}     % for demo
  27. \begin{document}
  28. \subsubsection{Lorem}   % some fiddling to get the "wrong spacing just right":
  29. \lipsum[1-3]
  30. \subsubsection{Ipsum}
  31. \lipsum[1] and then some text
  32.  
  33. \begin{lstlisting}
  34. Here is a listing with
  35. three lines of code;
  36. The bottom border is placed on the next page!
  37. \end{lstlisting}
  38.  
  39. Can you believe it..?!
  40. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment