Document ClassesCompiling external pdf files and pages numbers

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
lucaexp
Posts: 4
Joined: Mon Jun 16, 2008 5:40 pm

Compiling external pdf files and pages numbers

Post by lucaexp »

Hello :)

i have to create, in my thesis, an appendix with a fortran codes
i have those code in several pdf files.

codes in pdf files are structurated in two page each folio (too much codes :P )
and i chose to compile them with a landscape structure using angle=90
i used:

\appendix

\chapter{Bla Bla Bla}
\section{Bla1}
\label{Bla1} bla bla bla introductions bla bla
\newpage
\includepdf[pages=-,angle=90,offset=0 25]{code1.pdf}

\section{Bla2}
\label{Bla2} bla bla bla introductions again bla bla
\newpage
\includepdf[pages=-,angle=90,offset=0 25]{code2.pdf}

etcetera

all work good but there is a problem.
there are no number pages down. i don't know why.
my goal is compiling those pdf files but have at the bottom of the pages the normal sequence of pages of my thesys.
this is beacuse section name appears in my index, and there are some comments before each program codes as you can see from the latex codes. and if there is'nt a page number in the bottom were be difficult, for the reader, find those comment.

i hope that i was clear in my exposition, and sorry for my english, i'm workin on it
:lol:

tnx for reading me

Luca


edit: i use miktek and winedt editor
:)

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Compiling external pdf files and pages numbers

Post by Stefan Kottwitz »

Hi Luca,

try the pagecommand option:

Code: Select all

\includepdf[pages=-,angle=90,offset=0 25,pagecommand={\thispagestyle{plain}}]{code1.pdf}
or insert the pagestyle you are using instead of plain.

Stefan
LaTeX.org admin
lucaexp
Posts: 4
Joined: Mon Jun 16, 2008 5:40 pm

Re: Compiling external pdf files and pages numbers

Post by lucaexp »

great! it works well!!!
:D

tnx Stefan!
you make me an happy man
:mrgreen:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Compiling external pdf files and pages numbers

Post by Stefan Kottwitz »

It's good to hear that it's working.

Stefan
LaTeX.org admin
J77
Posts: 1
Joined: Mon Jul 07, 2008 10:10 am

Re: Compiling external pdf files and pages numbers

Post by J77 »

This has also just saved me many hours of painful number placement :)

Nice one!
Post Reply