MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: More Page Break Problems

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14563] Re: More Page Break Problems
  • From: Selwyn Hollis <shollis at peachnet.campus.mci.net>
  • Date: Fri, 30 Oct 1998 03:07:33 -0500
  • Organization: fair
  • References: <719djv$l94@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

My sympathies. Pagebreaking is a HUGE weakness for Mathematica. I've
probably spent hundreds of hours struggling to get decent page breaks.
The primary reason for MY woes is that line and page breaks depend on
whether cell brackets are shown. So if you're working with cell
brackets on and printing with cell brackets off, page breaks will not
be where you expect. So the only way to get reliable page breaks on
screen is to work with cell brackets off, which is a royal pain in the
%&$#.

As result of your previous post about inserting page breaks without
going to the Option Inspector, I've made my life a lot easier by
creating a little palette that lets me easily turn cell brackets and
page breaks on and off, insert a page break cell (thanks, Rolf Mertig)
and ``refresh" the window. The notebook is attached. I hope it will be
of help.

Selwyn


AES wrote:

> I continue to have frustrating page-break battles with Mathematica (3.0,
> Mac, OS 8.0).  Typical example:
>
> *  There's a plot which comes in the middle of page 5.
>
> *  It's followed by a short Subsubsection which comments on the plot,
>    and which I want to keep on the same page..
>
> *  Then there's a new Subsection heading which starts a new topic,
>    and which I want to force to start a new page..
>
> That is, I want the Subsubsection to stay on page 5, below the plot
> (where there's plenty of room for it), then the Subsection to start on
> page 6 (even though there's enough space for it at the bottom of page
> 5).
>
> Left to itself, there's enough room on page 5 so that Mathematica
> paginates with both the Subsubsection and the Subsection heading on
> that page, below the plot.  So, I've put "PageBreakAbove->True" in the
> Subsection cell.
>
> But that seems to lock me into a situation where the screen display
> (with "Show PageBreaks" turned on) shows a standard (but unnecessary
> and unwanted) page break below the plot and above the Subsubsection
> (not the Subsection), and then immediately another forced page break
> just below the Subsubsection and above the Subsection.   In other
> words, the three-line Subsubsection is on a page all by itself (on
> screen).
>
> And when I print it, this three line Subsubsection prints *twice*, at
> the top of two successive pages (6 and 7), pushing the Subsubsection
> heading to page 8.
>
> I've examined the cells; I don't see anything odd in any of them.
>
> Not the first time things like this have happened . . .
>
> siegman at ee.stanford.edu

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Dr. Selwyn Hollis
Associate Professor of Mathematics
Armstrong Atlantic State University
Savannah, GA 31419 USA
<http://www.math.armstrong.edu/faculty/hollis/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


 filename="brackets&Breaks.nb"

(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the
notebook  starts with the line of stars above.

To get the notebook into a Mathematica-compatible application, do one of
the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be sent
directly in email or through ftp in text mode.  Newlines can be CR, LF
or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info at wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from  Wolfram
Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      5253,        152]*)
(*NotebookOutlinePosition[      6501,        195]*) (* 
CellTagsIndexPosition[      6457,        191]*)
(*WindowFrame->Palette*)


Notebook[{
Cell[BoxData[GridBox[{
        {
          ButtonBox[
            StyleBox[\(Show\ Brackets\),
              "Subsubsection",
              ShowStringCharacters->True],
            ButtonFunction:>CompoundExpression[ 
                SetOptions[ 
                  InputNotebook[ ], ShowCellBracket -> True]],
            ButtonEvaluator->Automatic]},
        {
          ButtonBox[
            StyleBox[\(Hide\ Brackets\),
              "Subsubsection",
              ShowStringCharacters->True],
            ButtonFunction:>CompoundExpression[ 
                SetOptions[ 
                  InputNotebook[ ], ShowCellBracket -> False]],
            ButtonEvaluator->Automatic]},
        {
          ButtonBox[
            StyleBox[\(Show\ Page\ Breaks\),
              "Subsubsection",
              ShowStringCharacters->True],
            ButtonFunction:>CompoundExpression[ 
                SetOptions[ 
                  InputNotebook[ ], ShowPageBreaks -> True]],
            ButtonEvaluator->Automatic]},
        {
          ButtonBox[
            StyleBox[\(Hide\ Page\ Breaks\),
              "Subsubsection",
              ShowStringCharacters->True],
            ButtonFunction:>CompoundExpression[ 
                SetOptions[ 
                  InputNotebook[ ], ShowPageBreaks -> False]],
            ButtonEvaluator->Automatic]},
        {
          ButtonBox[
            StyleBox[\(Make\ Page\ Break\),
              "Subsubsection",
              ShowStringCharacters->True],
            ButtonFunction:>CompoundExpression[ 
                NotebookWrite[ 
                  InputNotebook[ ], 
                  Cell[ 
                    TextData[ " "], "Text", CellMargins -> {{0, 0},
{-10,
                     -4}}, CellBracketOptions -> {"Thickness" -> 4,
"Color" ->
                     RGBColor[ 1, 0, 0]}, CellElementSpacings -> {
                    "CellMinHeight" -> 1}, PageBreakBelow -> True, 
                    GeneratedCell -> True, Magnification -> 0.5,
CellTags -> 
                    "PageBreakCell"]]],
            ButtonEvaluator->Automatic]},
        {
          ButtonBox[
            StyleBox["Refresh",
              "Subsubsection",
              ShowStringCharacters->True],
            ButtonFunction:>CompoundExpression[ 
                SetOptions[ 
                  InputNotebook[ ], Editable -> True]],
            ButtonEvaluator->Automatic]}
        },
      RowSpacings->0,
      ColumnSpacings->0]], NotebookDefault,
  PageBreakAbove->True],

Cell[BoxData[
    \(SetOptions::"optnf" \( : \ \) 
      "\!\(Editable\) is not a known option for \!\($Failed\)."\)],
"Message"],

Cell["\<\
Your options are:
\tabort (or a) to abort current calculation \tcontinue (or c) to
continue
\texit (or quit) to exit Mathematica \tinspect (or i) to enter an
interactive dialog \tshow (or s) to show current operation (and then
continue) \ttrace (or t) to show all operations\ \>", "Print"],

Cell["\<\

Your options are:
\tabort (or a) to abort current calculation \tcontinue (or c) to
continue
\texit (or quit) to exit Mathematica \tinspect (or i) to enter an
interactive dialog \tshow (or s) to show current operation (and then
continue) \ttrace (or t) to show all operations\ \>", "Print"],

Cell["\<\

Your options are:
\tabort (or a) to abort current calculation \tcontinue (or c) to
continue
\texit (or quit) to exit Mathematica \tinspect (or i) to enter an
interactive dialog \tshow (or s) to show current operation (and then
continue) \ttrace (or t) to show all operations\ \>", "Print"]
},
FrontEndVersion->"Macintosh 3.0",
ScreenRectangle->{{0, 1152}, {0, 850}}, Editable->False,
WindowToolbars->{},
PageWidth->326,
WindowSize->{119, 105},
WindowMargins->{{Automatic, 175}, {138, Automatic}},
WindowFrame->"Palette",
WindowElements->{},
WindowFrameElements->"CloseBox",
WindowClickSelect->False,
ScrollingOptions->{"PagewiseScrolling"->True}, ShowCellBracket->False,
CellMargins->{{0, 0}, {Inherited, 0}}, Active->True,
CellOpen->True,
ShowCellLabel->False,
ShowCellTags->False,
ImageMargins->{{0, Inherited}, {Inherited, 0}}, Magnification->1,
MacintoshSystemPageSetup->"\<\
00<0001804P000000]P2:?oQon82n at 960dL5:0?l0080001804P000000]P2:001
0000I00000400`<300000BL?00400 at 0000000000000006P801T1T00000000000
00000000000000000000000000000000\>"
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not
using Mathematica, you must remove the line containing CacheID at the
top of  the file.  The cache data will then be recreated when you save
this file  from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1710, 49, 2499, 65, 109, NotebookDefault,
  PageBreakAbove->True],
Cell[4212, 116, 129, 2, 214, "Message"], Cell[4344, 120, 299, 8, 494,
"Print"], Cell[4646, 130, 300, 9, 508, "Print"], Cell[4949, 141, 300,
9, 508, "Print"] }
]
*)



(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)



  • Prev by Date: Re: Bubble help in palwttes
  • Next by Date: Re: mg[14547] Multiplying Piecewise Continuous Functions.
  • Previous by thread: More Page Break Problems
  • Next by thread: Problem with Show. FAQ