Recent Changes · Search:

Support the Project

Wikipublisher

PmWiki

edit SideBar

 

Web-only text: How to omit text from the print version

Some content is only relevant when read online. How do I omit it from the printed PDF version?


A line of type: letters are at the top; the shorter pieces are spaces

Authors sometimes wish to omit paragraphs of text from the printed form of a page. There are several possible uses for online-only content:

  • a navigation aid e.g. a “Back to top” link
  • instructions e.g. “Press the Typeset button”
  • suggestions e.g. “Try this: …”

Wikipublisher includes special Web-only line markup to do this, using the =< and => markup.

=<This text is omitted from the `PDF, but renders in `HTML as a
flush left paragraph.

%left%This is a flush left paragraph.

=>This text is omitted from the `PDF, and renders in `HTML flush
right.

%right%This is a flush right paragraph.

This text is omitted from the PDF, but renders in HTML as a flush left paragraph.

This is a flush left paragraph.

This text is omitted from the PDF, and renders in HTML flush right.

This is a flush right paragraph.

Any text in a GroupHeader or GroupFooter will also be excluded from the PDF version of the page. On the other hand, any text in a GroupPrintHeader or GroupPrintFooter will only appear in the print version.

A complementary technique is “typesetting a hidden trail”. An author can wrap a list of trail pages in a >>comment<< block and use a (:typeset:) directive to create a print version of the trail content. Tip of the Week 00012 also covers this.

For more options, see Hide Text in PDF or HTML.

Category: markup

« 00025 · Edit Form · 00027 »

Creative Commons License
Edit · History · Print · Recent Changes · Search · Links
Page last modified on 11 April 2008 at 04:38 PM