Recent Changes
Recent Changes · Search:

TipOfTheWeek.00044 History

Hide minor edits - Show changes to output

06 October 2008 at 08:31 PM by John Rankin - Search
Changed line 5 from:
:Status:Logged
to:
:Status:Published
17 August 2008 at 09:06 AM by John Rankin - Search
Changed lines 9-10 from:
:Solution:In [[Tip(OfTheWeek.) 00043]], we saw how to use a pagelist directive to create a print-on-demand search service. That tip uses the report document class, so the printed output has a cover page, a table of contents page and is generally profligate in its appetite for paper. If both "duplex" and "sectionnewpage" are ''on'', the results can be absurd. So it makes sense to have a way to use the more frugal article class, especially if many searchers only want to select and print a few pages.
to:
:Solution:In [[Tip(OfTheWeek.) 00043]], we saw how to use a pagelist directive to create a print-on-demand search service. That tip uses the ''report'' document class, so the printed output includes front matter, such as a cover page and table of contents, so is generally profligate in its appetite for paper. If both "duplex" and "sectionnewpage" are ''on'', the results can be absurd, especially if the pages are short. So it makes sense to have a way to use the more frugal ''article'' class, used for typesetting single pages, especially if searchers only want to select and print a few pages.
Changed line 15 from:
(:pagelist citation group={$Group} list=normal fmt=article :)
to:
(:pagelist abbreviation group={$Group} list=normal fmt=article :)
Changed lines 19-21 from:
The first part of the directive is standard pagelist options: look for "citation" on pages in the current group, omitting the usual suspects like the RecentChanges page. The final option, ''fmt=article'', tells pagelist to use the special "article" format included with Wikipublisher. This turns the output into a form, with a checkbox against each page found that meets the search criteria. In the `PDF view of the page, in place of the form the results list reverts to the default definition list format.

The `PDF version is currently formatted using the "article" template.
to:
The first part of the directive is standard pagelist options: look for "abbreviation" on pages in the current group, omitting the usual suspects like the RecentChanges page. The final option, ''fmt=article'', tells pagelist to use the special "article" format included with Wikipublisher. This turns the output into a form, with a checkbox against each page found that meets the search criteria. In the `PDF view of the page, in place of the form the results list reverts to the default definition list format.

The `PDF version is formatted using the "article" template. For greater clarity, as of version 2.2.6 the fmt=report option is available, which is exactly the same as fmt=custom -- i.e. it uses the "report" template.

The ''action=links'' option (see [[Tip(OfTheWeek.) 00038]]) now also uses the article class for its output
.
16 August 2008 at 05:38 PM by John Rankin - Search
Changed lines 25-27 from:
:Picture:Attach:7th-century-alphabet.jpg

:Caption:Calligraphy from the 7'^th^' century
to:
:Picture:Attach:8th-century-alphabet.jpg

:Caption:Calligraphy from the 8'^th^' century
16 August 2008 at 05:37 PM by John Rankin - Search
Added lines 1-29:
:Subject:Search

:Summary:Turn search results into a printed article

:Status:Logged

:Need:The report document class is too wasteful for typesetting a few search results. How can we specify the article class?

:Solution:In [[Tip(OfTheWeek.) 00043]], we saw how to use a pagelist directive to create a print-on-demand search service. That tip uses the report document class, so the printed output has a cover page, a table of contents page and is generally profligate in its appetite for paper. If both "duplex" and "sectionnewpage" are ''on'', the results can be absurd. So it makes sense to have a way to use the more frugal article class, especially if many searchers only want to select and print a few pages.

As of version 2.2.6, [[Wikipublisher]] includes a special format option to do this, shown in Div(articlePagelists).

(:div id=articlePagelists"Print selected search results":)
(:markup:)
(:pagelist citation group={$Group} list=normal fmt=article :)
(:markupend:)
(:divend:)

The first part of the directive is standard pagelist options: look for "citation" on pages in the current group, omitting the usual suspects like the RecentChanges page. The final option, ''fmt=article'', tells pagelist to use the special "article" format included with Wikipublisher. This turns the output into a form, with a checkbox against each page found that meets the search criteria. In the `PDF view of the page, in place of the form the results list reverts to the default definition list format.

The `PDF version is currently formatted using the "article" template.



:Picture:Attach:7th-century-alphabet.jpg

:Caption:Calligraphy from the 7'^th^' century

:Category:[[!navigation aid]]
Page last modified on 06 October 2008 at 08:31 PM