[racket] Scribble: Page break in LaTeX output

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Oct 31 08:00:58 EDT 2010

2010/10/31 Matthew Flatt <mflatt at cs.utah.edu>:
> At Sun, 31 Oct 2010 11:05:14 +0100, Jens Axel Søgaard wrote:
>> What is the simplest way to generate a page break in the LaTeX output?
>
> I don't think we have anything built in, but you can use `element' to
> construct an element using "newpage" as the style, which will generate
> a `\newpage{}' in the Latex output while using the "newpage" style
> (effectively ignored) for HTML.
>
> ----------------------------------------
>
> #lang scribble/doc
> @(require scribble/core)
>
> Page 1
>
> @element["newpage" ""]
>
> Page 2

Thanks, works as a charm.

--
Jens Axel Søgaard


Posted on the users mailing list.