Document ClassesTwo documents class in the same file

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
wadoud
Posts: 11
Joined: Fri Aug 14, 2015 7:01 pm

Two documents class in the same file

Post by wadoud »

hi all, another question again!!!!
i use a book as document class for my thesis and i want to use another document class as article in the anex of my thesis, the question is: is it possible, if yes how?
best regards
Last edited by cgnieder on Sun Aug 16, 2015 11:56 am, edited 1 time in total.
Reason: fixed typo in title

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: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Two documents class in the same file

Post by Stefan Kottwitz »

The easiest way would be using the pdfpages package to include the other part.

Stefan
Last edited by cgnieder on Sun Aug 16, 2015 11:57 am, edited 1 time in total.
LaTeX.org admin
wadoud
Posts: 11
Joined: Fri Aug 14, 2015 7:01 pm

Re: Two documents class in the same file

Post by wadoud »

hi stefan,
my thesis must include my publiation (article must be in style as in jounal) in annexe.
how can i do this
Last edited by cgnieder on Sun Aug 16, 2015 11:57 am, edited 1 time in total.
Reason: fixed typo in title
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Two documents class in the same file

Post by Stefan Kottwitz »

As I said, with pdfpages, which preserves the original formatting. Click the link to see the package manual, there it's written how it can be used.

Stefan
Last edited by cgnieder on Sun Aug 16, 2015 11:57 am, edited 1 time in total.
LaTeX.org admin
wadoud
Posts: 11
Joined: Fri Aug 14, 2015 7:01 pm

Re: Two documents class in the same file

Post by wadoud »

hi
i use pdfpage but only the first page of paper is appeared
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Two documents class in the same file

Post by Stefan Kottwitz »

wadoud wrote:hi
i use pdfpage but only the first page of paper is appeared
So how did you use it? It should have been like

Code: Select all

\includepdf[pages=-]{filename}
with - meaning all pages, or pages=2-8 for selected pages, for example. I assume you forgot the pages option, per default it's just 1.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Two documents class in the same file

Post by Johannes_B »

There is an optional command available to specify which pages to include, it is described as the very first option. pages=-
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
wadoud
Posts: 11
Joined: Fri Aug 14, 2015 7:01 pm

Re: Two documents class in the same file

Post by wadoud »

ok thank you for the advice, i will try
Post Reply