Text FormattingCreating a book

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
cidadell
Posts: 3
Joined: Sat Mar 13, 2010 1:08 pm

Creating a book

Post by cidadell »

Hello,

First of all, I apologize because of my english.

I have 8 pdf files and I want to create a kind of book with these files. I want to create an index of contents and then, the 8 pdf files introducing page numbers and headings.

My first problem is for including pdf files. I create a main tex file with the typical begin and end{document} commands, and I just type:
\include{file1.pdf}
\include{file2.pdf}

and so on... obviously this doesn't work :( this only works with tex files.

Therefore, I'm able to create a title page, a table of contents... with numbers... but I don't know how to include pdf files.

My question is: there is some way to create a book with page numbers and including pdf files??

if not: the only way is by using some kind of tool which just creates a pdf file using several ones??

Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Creating a book

Post by frabjous »

Use the \includepdf command from the pdfpages package. Read the documentation for more info, including creating a table of contents.

As for a non-TeX based tool that can combine PDFs, check out pdftk. (Though you shouldn't need that if you're using pdfpages... multiple \includepdf commands will have the same result.)
cidadell
Posts: 3
Joined: Sat Mar 13, 2010 1:08 pm

Re: Creating a book

Post by cidadell »

Thank you for your answer!!

This command combines pdf... but I have a bit problem:

The format of the book is ok (table of contents, headings, page numbers...) until starts the pdf files... the pdf are included but don't have the same format: headings, page numbers...

Do you know how I can add the page numbers, headings... to these included pdfs??

Cheers
cidadell
Posts: 3
Joined: Sat Mar 13, 2010 1:08 pm

Re: Creating a book

Post by cidadell »

I think I solved the problem. I can use an "article" template instead a "book" and then generate manually the table of contents. This solution works.

Cheers.
Post Reply