[pdftex] Typesetting a paper collection

Hans Hagen pragma at wxs.nl
Mon Oct 14 17:11:11 CEST 2002


At 04:31 AM 10/9/2002 +0200, Magnus Lie Hetland wrote:
>Hi!
>
>I'm trying to type set a paper collection -- basically a book-like
>introductory part prepended to a bunch of articles. I could typeset
>all the articles separately, but putting it all in the same file seems
>nice, since I can get a common page numbering, TOC, index etc.
>
>Are there any common tools for this sort of thing? The only thing I've
>been able to sniff up so far is bibunit (and chapterbib) for
>typesetting the paper bibliographies... But it seems I'll still have
>to hack things quite a bit to make this work in any reasonable manner.
>(E.g. hack the headings for the paper-chapters.) Also, I can't get
>bibunit to work with harvard.sty (although it may just be that I can't
>get bibunit to work, period :])
>
>If nothing else, can I include multi-page pdf files in pdflatex? (I
>guess I could always just use a standard pdf file concatenation
>tool...)
>
>Any pointers would be appreciated.

This is how thanhs thesis-tugboat-issue was done:

% output=pdftex interface=en

\starttext

% \showframe

% The official spec says: 1in + 39pc + 1in which is a few
% points wider than letter width. If really needed we can
% use a dedicated papersize:
%
% \definepapersize
%   [tugboat]
%   [height=11in,
%    width=\dimexpr(2in+39pc)]
%
% \setuppapersize
%   [tugboat]
%   [tugboat]

\setuppapersize
   [letter]
   [letter]

% Tugboat is typeset in 10 points Computer Modern Roman.

\setupbodyfont
   [10pt]

% The basine of the header line should be at 4pc from the
% top. For consistency we place the top of the footer line
% at 4pc from the bottom. Normally a tugboat does not have
% a footerline.

\setuplayout
   [topspace=0cm,
    header=\dimexpr(4pc+\dp\strutbox),
    headerdistance=1pc,
    bottomspace=0cm,
    footer=4pc,
    backspace=1in,
    width=middle,
    height=middle]

% We force the header and footer lines in a certain
% direction.

\setupheader[before=\vfill]
\setupfooter[after=\vfill]

% We use a doublesided layout, and do ou rown pagenumer
% placement.

\setuppagenumbering
   [alternative=doublesided,
    location=]

% There is the normal tugboat header ...

\setupheadertexts
   [TUGBoat, Volume 21 (2000), No. 4][pagenumber]
   [pagenumber][TUGBoat, Volume 21 (2000), No. 4]

% ... and a special footer.

\setupfootertexts
   [Micro-typographic extensions to the \TeX\ typesetting system]
   [\ifcase\slicedpagenumber\else\slicedpagenumber\fi]
   [\ifcase\slicedpagenumber\else\slicedpagenumber\fi]
   [Micro-typographic extensions to the \TeX\ typesetting system]

% Here starts the real thing. First the cover page:

\startstandardmakeup

\centeredbox{Cover with graphic}

\stopstandardmakeup

% Next comes Barbara's introduction. We set the pagenumber
% to the one following issue 3.

\setuppagenumber[number=315]

\title{Defeating the Lion}

\startcolumns
   \dorecurse {149} {Barbara's introduction }
\stopcolumns

% We need to make sure that the thesis starts at a right
% page.

\page [right]

% Here comes the main thing.

\slicepages
   [xthesis.pdf]
   [n=0,                        % triggers full page clipping
    voffset=1in,                % probably thanhs origin
    height=23.55cm,             % a compromize for page 46
    width=22cm,                 % wide margins
    offset=\dimexpr(-1in- 2pt)] % experimental value
   [offset=\dimexpr(-1in+19pt)] % experimental value

\stoptext

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma at wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------




More information about the pdftex mailing list