Page LayoutAnnex Layout

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Annex Layout

Post by sw3quant »

I am using the package "appendix". My MWE is below.

On the page of the annex I get "A Blah" followed by a the rest of the page empty and then the pdf document starting on the next page.

I have two formatting questions:

1. How do I get it to write "Appendix A: Blah"?
2. How do I get it to shrink the first page of the PDF document by the correct amount, so that I the "Appendix A: blah" occurs and then the document is straight away below it? Ie I dont get a whole empty page. (I assume this means I will have the first page of the PDF a different size to the subsequent pages).

many thanks

Code: Select all

\documentclass[10pt]{article}
\usepackage[titletoc,toc,title]{appendix}
\usepackage[textwidth=19.1cm,textheight=24cm]{geometry}
\usepackage{fancyhdr}
\usepackage{framed}
\usepackage{breqn}
\usepackage{pdfpages}
\usepackage{xcolor}
\usepackage{varwidth}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{headings}
\setcounter{page}{1}
\pagenumbering{arabic}
\setlength{\headheight}{25.2pt}
\pagestyle{fancy}
\fancyhf{}
\lhead{\fancyplain{}{Blah Ltd.}}
\rhead{\fancyplain{}{\today}}
\rfoot{\fancyplain{}{\thepage}}
\begin{document}
\tableofcontents
\begin{appendices}
\renewcommand{\thesubsection}{\Alph{subsection}}
\centering
\subsection{\textcolor{blue}{Blah}}
\includepdf[pages=-, frame=true, scale=0.8, pagecommand={}]{D:/blah.pdf}
\subsection{\textcolor{blue}{Blah Blah}}
\includepdf[pages=-, frame=true, scale=0.8, pagecommand={}]{D:/blahblah.pdf}
\end{appendices}
\end{document} 

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Annex Layout

Post by Johannes_B »

Includepdf always puts the original contents on their own page. But you could use \includegraphics instead.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Re: Annex Layout

Post by sw3quant »

Are you suggesting that I convert the PDF into an image first and then include?

If so the loss of vectorised format sounds like it would not look so good for presentation purposes.

Many thanks!
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Annex Layout

Post by cgnieder »

sw3quant wrote:Are you suggesting that I convert the PDF into an image first and then include?
You can include PDFs with \includegraphics just like an image:

Code: Select all

\includeqraphics{myfile.pdf}
This way you can use trim, clip, scale and whatever other graphicx option you want to fit the included PDF the way you need it.

Regards
site moderator & package author
Post Reply