Discussion:
[MiKTeX] Split the Output to multiple PDF's
Juan Antonio Navarro
2003-04-25 17:03:42 UTC
Permalink
Hello,

I am using MiKTeX to write my thesis using LaTeX. My college is willing to
implement a virtual library with all of our tesis documents and, i dont know
why, they put some weired requirements for the files we have to deliver in
order to keep them in the library.

I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ..., bibliography.pdf,
appendix1.pdf, ...

I dont know how to actually do this since compiling each of this "units"
separatedly I wont get the page numbering correct. I had think about
manually seting the page number at the first page of each of this "units" in
order to compile them separatedly, and extract and compile the .toc file
generated from the complete document to produce the table of contents. I
just want to know if there is (i hope) a better and more effective way of
doing this.

any comments would help, thanks!

juan antonio
Indridi H. Indridason
2003-04-25 16:25:38 UTC
Permalink
I would suggest just creating the complete pdf-file as you would normally
do, and then use adobe acrobat to extract the different sections of the
paper (under Document menu).

i

---------------------------------
Indridi H. Indridason
Department of Political Science
Universite de Montreal
C.P. 6128, succursale Centre-ville
Montreal QC, H3C 3J7

Tel: (514)343-6111 ext. 3442
E-mail: ***@troi.cc.rochester.edu
***@umontreal.ca

Homepage: http://weber.ucsd.edu/~iindrida
Post by Juan Antonio Navarro
Hello,
I am using MiKTeX to write my thesis using LaTeX. My college is willing to
implement a virtual library with all of our tesis documents and, i dont know
why, they put some weired requirements for the files we have to deliver in
order to keep them in the library.
I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ..., bibliography.pdf,
appendix1.pdf, ...
I dont know how to actually do this since compiling each of this "units"
separatedly I wont get the page numbering correct. I had think about
manually seting the page number at the first page of each of this "units" in
order to compile them separatedly, and extract and compile the .toc file
generated from the complete document to produce the table of contents. I
just want to know if there is (i hope) a better and more effective way of
doing this.
any comments would help, thanks!
juan antonio
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MiKTeX-Users mailing list
https://lists.sourceforge.net/lists/listinfo/miktex-users
Michael T Metz
2003-04-25 16:15:46 UTC
Permalink
Juan:

If you have access to the full Acrobat product
you can go to the Document Menu item and "Extract
Pages". You will have to do it one section
at a time, but each time save the extracted
section with a new name. This way you can
get all of your sections out of the original
pdf.

Mike Metz


-----Original Message-----
From: miktex-users-***@lists.sourceforge.net
[mailto:miktex-users-***@lists.sourceforge.net]On Behalf Of Juan
Antonio Navarro
Sent: Friday, April 25, 2003 12:04 PM
To: MiKTeX Users
Subject: [MiKTeX] Split the Output to multiple PDF's


Hello,

I am using MiKTeX to write my thesis using LaTeX. My college is willing to
implement a virtual library with all of our tesis documents and, i dont know
why, they put some weired requirements for the files we have to deliver in
order to keep them in the library.

I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ..., bibliography.pdf,
appendix1.pdf, ...

I dont know how to actually do this since compiling each of this "units"
separatedly I wont get the page numbering correct. I had think about
manually seting the page number at the first page of each of this "units" in
order to compile them separatedly, and extract and compile the .toc file
generated from the complete document to produce the table of contents. I
just want to know if there is (i hope) a better and more effective way of
doing this.

any comments would help, thanks!

juan antonio



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Thomas Meurer
2003-04-25 16:26:43 UTC
Permalink
Hi,

try to use "texexec" which is command line tool both for Windows and Linux.
Have a look at the man page, it allows to extract pages from a pdf file and to
combine several pdf-files. Therefore, just compile your whole document with
pdflatex and code a loop over each part (or do it manually) you need to extract
using texexec.

Thomas
Post by Juan Antonio Navarro
Hello,
I am using MiKTeX to write my thesis using LaTeX. My college is willing to
implement a virtual library with all of our tesis documents and, i dont know
why, they put some weired requirements for the files we have to deliver in
order to keep them in the library.
I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ..., bibliography.pdf,
appendix1.pdf, ...
I dont know how to actually do this since compiling each of this "units"
separatedly I wont get the page numbering correct. I had think about
manually seting the page number at the first page of each of this "units" in
order to compile them separatedly, and extract and compile the .toc file
generated from the complete document to produce the table of contents. I
just want to know if there is (i hope) a better and more effective way of
doing this.
any comments would help, thanks!
juan antonio
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MiKTeX-Users mailing list
https://lists.sourceforge.net/lists/listinfo/miktex-users
Wolf-Dieter Schoene
2003-04-28 07:17:31 UTC
Permalink
Juan:

on the command level use "dvipdfm". With the flag "-s" you can select
the page range.

Wolf-Dieter
Post by Juan Antonio Navarro
Hello,
I am using MiKTeX to write my thesis using LaTeX. My college is willing to
implement a virtual library with all of our tesis documents and, i dont know
why, they put some weired requirements for the files we have to deliver in
order to keep them in the library.
I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ..., bibliography.pdf,
appendix1.pdf, ...
I dont know how to actually do this since compiling each of this "units"
separatedly I wont get the page numbering correct. I had think about
manually seting the page number at the first page of each of this "units" in
order to compile them separatedly, and extract and compile the .toc file
generated from the complete document to produce the table of contents. I
just want to know if there is (i hope) a better and more effective way of
doing this.
any comments would help, thanks!
juan antonio
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MiKTeX-Users mailing list
https://lists.sourceforge.net/lists/listinfo/miktex-users
--
***********************************************************************
Wolf-Dieter Schöne

Fritz-Haber-Institut der Max-Planck-Gesellschaft
Abt. Physikalische Chemie
Faradayweg 4-6
14195 Berlin (Dahlem)

Tel.: +49-30-8413-4829
Fax : +49-30-8413-3155

Email: ***@fhi-berlin.mpg.de
Homepage: http://w3.rz-berlin.mpg.de/~schoene
***********************************************************************
Dr Francis J. Wright
2003-04-29 11:35:34 UTC
Permalink
From: "Juan Antonio Navarro" <***@mail.udlap.mx>
To: "MiKTeX Users" <miktex-***@lists.sourceforge.net>
Sent: Friday, April 25, 2003 6:03 PM
Subject: [MiKTeX] Split the Output to multiple PDF's
Post by Juan Antonio Navarro
I am using MiKTeX to write my thesis using LaTeX. My college is willing to
implement a virtual library with all of our tesis documents and, i dont know
why, they put some weired requirements for the files we have to deliver in
order to keep them in the library.
I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ...,
bibliography.pdf,
Post by Juan Antonio Navarro
appendix1.pdf, ...
I dont know how to actually do this since compiling each of this "units"
separatedly I wont get the page numbering correct. I had think about
manually seting the page number at the first page of each of this "units" in
order to compile them separatedly, and extract and compile the .toc file
generated from the complete document to produce the table of contents. I
just want to know if there is (i hope) a better and more effective way of
doing this.
I would format the whole document as a single PDF file and then chop it up
using Ghostscript. Here is an extract from the Ghostscript documentation
(gs8.00/doc/Use.htm#PDF):

-----

Using Ghostscript with PDF files

Ghostscript is normally built to interpret both PostScript and PDF files,
examining each file to determine automatically whether its contents are PDF
or PostScript. All the normal switches and procedures for interpreting
PostScript files also apply to PDF files, with a few exceptions. In
addition, the pdf2ps utility uses Ghostscript to convert PDF to (Level 2)
PostScript.

Switches for PDF files
Here are some command line options specific to PDF

-dFirstPage=pagenumber
Begins interpreting on the designated page of the document.
-dLastPage=pagenumber
Stops interpreting after the designated page of the document.

-----

I have not tried to do this myself, but Ghostscript very successfully solved
the inverse problem for me, namely concatenating a number of PDF files.

Francis
Armin Rump
2003-04-30 03:30:49 UTC
Permalink
Post by Juan Antonio Navarro
Post by Juan Antonio Navarro
I am currently having problems since they ask that every "unit" of the
document should be sent as a separate .PDF file, ie: titlepage.pdf,
thankyoupage.pdg, tableofcontents.pdf, chapter1.pdf, ...,
bibliography.pdf,
Post by Juan Antonio Navarro
appendix1.pdf, ...
I am using a construction of if-conditionals and \input commands
to achieve that in what some would probably call a dirty hack.
I did this because I found it handy to work on one chapter at a
time, print it and proof-read without worrying about the rest.

If I latex the main file, it produces the whole thesis, if I
latex a chapter, it produces the respective chapter. Page
numbers always start from 1 in my case, you'd have to set it to
the proper value in the if statements, I have no clue how you
would do that dynamically. Also you wouldn't want a
bibliography after each chapter for your purpose.

You'd still have to slice the toc and bib out of the main
document though, so maybe Francis' solution with Ghostscript is
better for your purpose.

Below the code - in case you want to try it.

Armin

---------------

main.tex:

\newif\iftoplevel \topleveltrue % toplevel ensures that header
% is only called once.
\input{head.tex}
\pagenumbering{arabic}
\setcounter{page}{0}
\tableofcontents
\setcounter{chapter}{0}
\input{intro.tex}
\input{matmet.tex}
\input{results.tex}
\input{discussion.tex}
\bibliographystyle{/texmf/tex/latex/natbib/plainnat}
\bibliography{/thesis/citation/arthesis}
\end{document}


head.tex:

\documentclass[11pt,a4paper,oneside,portrait,openany]{book} \usepackage[dvips]{graphicx}
\usepackage{longtable}
\usepackage{times}
\usepackage{natbib}
...
\begin{document}
\endinput


results.tex (as any other chapter):

\iftoplevel \else \input{toplevel.tex} \fi
\newif\ifseclevel \secleveltrue
\chapter{Results}
\label{res}
....
chapter text
....
\iftoplevel \endinput \else
\bibliographystyle{/texmf/tex/latex/natbib/plainnat}
\bibliography{/thesis/citation/arthesis}
\end{document} \fi

Loading...