Search found 2 matches

by knip
Thu Mar 14, 2013 9:01 pm
Forum: Text Formatting
Topic: Avoid Page Preak between Listing Border and first Line
Replies: 1
Views: 2623

Avoid Page Preak between Listing Border and first Line

How is it possible to avoid a page break between the frame border and the first line of code as it is shown here?
listings-page-break.jpg
Similarly, I have created a command to my examples that uses the package amsthm .

\newcommand{\newExmp}[1]{
\vspace{1em}
\begin{samepage}
\hrule
\begin{exmp ...
by knip
Mon Mar 11, 2013 4:47 pm
Forum: Text Formatting
Topic: Matrix Alignment Error
Replies: 1
Views: 4188

Matrix Alignment Error

I didn't understand why the following code works.

\begin{tabular}{l|lllllllllll|}
& (j-1)(k-j) & (j-1)(k-j-1) & (j-1)(k-j-2) & \dots & j-1 & 0 & - & - & - & \dots & - \\
& (j-2)(k-j+1) & (j-2)(k-j) & (j-1)(k-j-1) & \dots & \dots & j-2 & 0 & - & - & \dots & - \\
& \vdots & \vdots & \vdots & \dots ...