-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with samepage=true #15
Comments
Internally, Here are some related links. You might try asking a question about |
I'm closing this, since it's due to |
Dear colleagues, Did this issue make any progress since 2014? I encountered the same issue a few days ago. I use
and the bottom frame separator was rejected on the next page. Regards, Luc. |
@lucbouge Unfortunately, I am not aware of any progress. |
I am trying to prevent an environment from splitting over 2 pages. The option samepage=true prevents the block from splitting, but the label (part of the frame) is still placed on a separate page.
Example code showing the problem is included below.
\documentclass[a4paper,notitlepage]{article}
\usepackage{minted}
\newminted{cpp}{mathescape, numbersep=5pt, frame=lines, samepage=true, fontsize=\small,label=C++ interface}
\title{Test}
\author{Pieter}
\begin{document}
\section{Test document}
This is a test
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
yyy yyy yyyyy yyyy y yyyy yyy yyy yy yyyyy yyyyyyyyy yyyy yyyyy
yyy yyy yyyyy yyyy y yyyy yyy yyy yy yyyyy yyyyyyyyy yyyy yyyyy
yyy yyy yyyyy yyyy y yyyy yyy yyy yy yyyyy yyyyyyyyy yyyy yyyyy
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
\begin{cppcode}
struct xxx
{
int i;
int j;
int x;
int y;
int z;
public:
void test1();
}
\end{cppcode}
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
\subsection{End of test}
xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxxx xxxx x xxxxxx xxxx
\end{document}
The text was updated successfully, but these errors were encountered: