Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pagebreak in parbox or minipage

3,235 views
Skip to first unread message

Herbert Voss

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to
i have

\newcommand{\Out}[1]
{\vspace{0.2cm}\noindent\tt\footnotesize\fbox{\begin{minipage}{1.0\columnwidth}
#1%
\end{minipage}\normalsize\rm\vspace{0.2cm}}}

for a framed text. this works fine, but when this minipage
is longer than the rest of the page, latex inserts a newpage.
is it possible that latex puts the text as much as possible
on the first page with a frame and the rest on the next page?

+----------+
| text |
| |
pagebreak here
| |
| the rest|
+----------+

thanks
Herbert

--
vo...@perce.de
http://perce.de/voss

Andreas zum Winkel

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to
> for a framed text. this works fine, but when this minipage
> is longer than the rest of the page, latex inserts a newpage.
> is it possible that latex puts the text as much as possible
> on the first page with a frame and the rest on the next page?

Hi,

this is discussed in the actual thread "breaking minipages across pages" in
this group.

Peter writes:
> LaTeX does not break boxes (e.g., parbox, minipage) across pages.
>peter.r...@boeing.com


--
Have a nice doc
Andreas zum Winkel


Vepxistqaosani

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to Herbert Voss
Your problem is slightly different from the one discussed in the other thread. What
you are asking for cannot be done easily -- and it cannot be done well with TeX
alone.

I suspect that pstricks might help you; you might also try searching CTAN for
"frame".

I should be interested to hear of other solutions; mine are (of course!) in plain
TeX and involve home-grown PostScript \special's.

Fred


Herbert Voss wrote:

> i have
>
> \newcommand{\Out}[1]
> {\vspace{0.2cm}\noindent\tt\footnotesize\fbox{\begin{minipage}{1.0\columnwidth}
> #1%
> \end{minipage}\normalsize\rm\vspace{0.2cm}}}
>

> for a framed text. this works fine, but when this minipage
> is longer than the rest of the page, latex inserts a newpage.
> is it possible that latex puts the text as much as possible
> on the first page with a frame and the rest on the next page?
>

mstrach

unread,
Apr 12, 2000, 3:00:00 AM4/12/00
to
On Wed, 12 Apr 2000, Vepxistqaosani wrote:

<SNIP>

>I should be interested to hear of other solutions; mine are (of course!) in plain
>TeX and involve home-grown PostScript \special's.
>
>Fred
>
>
>Herbert Voss wrote:

<SNIP>

>> +----------+
>> | text |
>> | |
>> pagebreak here
>> | |
>> | the rest|
>> +----------+
>>
>> thanks
>> Herbert

Could:

\begin{longtable}{ | p{ --somewidth--} | }

be used as a bit of a cheat?

Mike


James Kilfiger

unread,
Apr 12, 2000, 3:00:00 AM4/12/00
to
Vepxistqaosani wrote:
> What you are asking for [broken \fbox] cannot be done easily -- and it

> cannot be done well with TeX alone.
>
>I should be interested to hear of other solutions; mine are (of
>course!) in plain TeX and involve home-grown PostScript \special's.

Two posibilities:
Hacking changebar. This probably ought to be done
anyway, the changebar internals could be used for all sorts of `break
the rule over a page' problems.
Omega has a device to put a character at the start of each line (to
allow a style of quoting with guillmets at the start of each line of the
quote) This could be hijacked for making vertical rules that break over
pages.

James

Herbert Voss

unread,
Apr 12, 2000, 3:00:00 AM4/12/00
to
thank you all,

i tried listings-package with extendedchars=true and language={}
and it works

0 new messages