Page LayoutChanging Paper Size from A4 to A3 within Document

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Zervan
Posts: 5
Joined: Sat Apr 23, 2011 1:17 am

Changing Paper Size from A4 to A3 within Document

Post by Zervan »

Hello there,
I'm having a problem changing a document I started as an a4paper to an a3paper with 2 columns. It seems there is a problem using the titlepage function and some things dont work fine (like the lipsum package). I attach a MWE with all the packages I was using
Thank you for your time and attention,
Jose A.

Code: Select all

  \documentclass[pdftex,a3paper,landscape,twoside,twocolumn]{report}  % Un informe, A4, tex -> pdf
% Packages
  \usepackage[spanish,activeacute]{babel}             
  \addto\captionsspanish{%
  \renewcommand{\appendixname}{Anejo}}
  \usepackage{amsmath,amssymb,amsfonts,latexsym,cancel} 
  \usepackage{bm}                         % Permite usar negritas en modo matematico
  \usepackage{textcomp}
  \usepackage{gensymb}                    % Permite usar simbolos generales (como el tanto por mil, junto con textcomp)
  \usepackage[T1]{fontenc}                % Usar fuente Times
  \usepackage[scaled]{helvet}             % Usar fuente Helvetica 
  \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
  \usepackage[pdftex]{graphicx}           % Para usar graficos
  \usepackage[a3paper]{geometry}          % Para modificar geometria (antes de cambiar encabezados). Los margenes se cambian aqui
  \usepackage{changepage}                 % Permite cambiar los margenes de una sola pagina
  \usepackage{longtable}                  % Permite tablas que van a traves de las paginas
  \usepackage{fancyhdr}                   % Paquete para personalizar los encabezados
  \usepackage{multirow}                   % Paquete para usar multiples filas en tablas
  \usepackage{chngcntr}                   % Paquete para cambiar el contador de secciones, subsecciones
  \usepackage{import}                     % Paquete para poder incluir archivos archivos auxiliares en subcarpetas
  \usepackage{subfigure}                  % Paquete para crear subimagenes (ojo, que hay que habilitar opcion en tocloft y llamar este antes) 
  \usepackage[subfigure]{tocloft}         % Paquete para dar un mayor espacio en los table of contents (toc)
  \usepackage{lastpage}                   % Permite a LaTeX conocer numero total de paginas (para poner en pie de pagina)
  \usepackage{appendix}                   % Permite realizar apendices
  \usepackage{lipsum}                     % Escribe texto de relleno
  \renewcommand{\appendixname}{Anejos}
  \renewcommand{\appendixtocname}{Anejos}
  \renewcommand{\appendixpagename}{Anejos}
  \usepackage{pgf,pgfarrows,pgfnodes}     % Paquetes pgf y tikz para la realizacion de graficos
  \usepackage{tikz} 
  \usetikzlibrary{calc,intersections,through,backgrounds,positioning} 
  \usepackage[justification=centering]{caption} % Paquete que permite captions de tabals escribirlos en dos o mas lineas
  % Optional PGF libraries 
  \usepackage{pgflibraryarrows} 
  \usepackage{pgflibrarysnakes}
  \usepackage{hyperref}           % Paquete para crear hipervinculos OJO TIENE QUE SER EL ULTIMO PAQUETE EN CARGARSE
  \usepackage{color,soul}         % Paquete para marcar texto (highlight)
  \usepackage{wallpaper}
  \usepackage{array}              % Necesario para colortbl
  \usepackage{colortbl}           % Permite colorear celdas

% Configurare packages
  \DeclareGraphicsExtensions{.png,.pdf,.jpg}                   % Documento admite graficos con extensiones png, jpg y pdf
  \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}                % \HRule nuevo comando, linea horizontal
  \newcommand{\grad}{\hspace{-2mm}$\phantom{a}^{\circ}$}       % \grad, comando para poner el cero de grados (como ºC)
  \numberwithin{equation}{section}                             % Numera las ecuaciones empezando por la seccion
  \numberwithin{table}{section}                                % Numera las tablas por la seccion
  \cftsetindents{table}{1.5em}{3.0em}                          % Aumento espacio en toc para que no haya solapamiento
  \hypersetup{pdfborder = {0 0 0}}                             % Los vinculos no son visibles

% Margins
  \setlength{\columnsep}{0.5in}		% default=10pt
  \setlength{\columnseprule}{1pt}		% default=0pt (no line)


  \begin{document}

% Cover
  \begin{titlepage}
  \begin{center}
    This is my cover
  \end{center}
  \end{titlepage}
  \thispagestyle{empty}                            
  \cleardoublepage %start new page

% TOC
%  \tableofcontents

% Text
  \chapter{Situacion y entorno}
  \section{asdasd}
sdfsd aaSasfaSas
%\lipsum % Doesnt work

 \end{document}

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing Paper Size from A4 to A3 within Document

Post by localghost »

Zervan wrote:[…] I attach a MWE with all the packages I was using […]
This is no MWE since about 90% of the loaded packages are not related to the problem. So your understanding of a MWE is wrong.

The geometry package that you are already loading allows to alter the paper and page dimensions within the document and restore them later. Section 4 of its manual has the details. The multicol package will help with the rest.


Thorsten
Zervan
Posts: 5
Joined: Sat Apr 23, 2011 1:17 am

Changing Paper Size from A4 to A3 within Document

Post by Zervan »

I am sorry if my understanding of what a MWE is was wrong.
I'm not sure using the multicol package will work fine, as it says in the website
Multicol patches the output routine, and may clash with other packages that do the same (e.g., longtable);
I'm using already longtable (that's why I attached all the loaded packages, in case there were problems/incompatibilities between them), so I guess some problems could arise.
Maybe the key is using the geometry package options. I didn't know you could change the geometry in the document so that should work.
I will have a look at it
Zervan
Posts: 5
Joined: Sat Apr 23, 2011 1:17 am

Changing Paper Size from A4 to A3 within Document

Post by Zervan »

I finally found myself what was causing the problem.
It seems that, if I add the a3paper option in documentclass, and then when I load the package geometry, it crash and produce error. While if I just put in the geometry package, it works alright.
The only problem now is to manage to have the toc, lof and lot in double column too.
For that, I've used the multicol package.
For example, for the toc, I add

Code: Select all

  \addtocontents{toc}{\protect\begin{multicols}{2}}
before the toc and

Code: Select all

  \addtocontents{toc}{\protect\end{multicols}}
just before the end of the document. It works ok just half of the time (I compile one time and is multicolumn. Compile again and is single column again...)
Any ideas about this?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing Paper Size from A4 to A3 within Document

Post by localghost »

Zervan wrote:[…] The only problem now is to manage to have the toc, lof and lot in double column too. […]
Have a look at the multitoc package.
Post Reply