I am going to try to explain my situation.
I have a document that has a small font and prints in code. Unfortunately it only uses one side of the document, leaving a big white space on the other. I am trying to fill the other side up to save space.
Here is a sample
\documentclass[10pt]{article}
\textwidth = 520pt \textheight = 700pt \voffset = -90pt \oddsidemargin
= -10pt \usepackage{listings} \usepackage{color}
\usepackage{lmodern}
\usepackage{scrextend} \changefontsizes[8pt]{8pt}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb, language=Java, aboveskip=0mm, belowskip=0mm,
showstringspaces=false, columns=flexible,
basicstyle={\small\ttfamily}, numbers=none,
numberstyle=\tiny\color{gray}, keywordstyle=\color{blue},
commentstyle=\color{dkgreen}, stringstyle=\color{mauve},
breaklines=true, breakatwhitespace=true tabsize=90 }
\begin{document}
\begin{lstlisting}
public void selectionSort(int[] numbers) {
int min, temp;
for (int x = 0; x < numbers.length; x++) {
min = x;
for (int y = x; y < numbers.length; y++) {
if (numbers[y] > numbers[min]) {
min = y;}
}
temp = numbers[x];
numbers[x] = numbers[min];
numbers[min] = temp;
} }
\end{lstlisting}
\end{document}
If you compile, you will find that the entire RHS is white space. I want to fill that space with other text. Below is a quick screenshot of what is going on
>
marks so that people can read and use it easily.