
Había buscado por un tiempo cambiar la orientación de mi documento LaTeX de horizontal a vertical de una manera que pudiera incluir otros archivos PDF sin \includepdf[..]{..}
alterar el diseño de mi documento.
El ejemplo mínimo de mi documento se ve así. Debido a muchas inclusiones de otros archivos tex, es difícil dar un ejemplo más complejo, en el contenido de mi clase de documento se proporcionan otras opciones e importaciones de paquetes (si es necesario, puede ver el código completoaquí).
archivo de clase
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{chordbook}
\LoadClass[12pt,a4paper,titlepage]{scrartcl}
\RequirePackage[chorded]{songs}
\RequirePackage{caption}
\RequirePackage[ngerman]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage{longtable}
% Header
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[OL,ER]{\textbf{\myauthor's Chordbook 2015}\\}
\fancyhead[EL,OR]{\textbf{Seite \thepage} \\ \textit{\leftmark}}
\setlength{\oddsidemargin}{0mm}
\setlength{\hoffset}{-17.4mm}
\setlength{\voffset}{-22.4mm}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{15mm}
\setlength{\headsep}{5mm}
\setlength{\textheight}{173mm}
\setlength{\textwidth}{280mm}
\setlength{\headwidth}{\textwidth}
\setlength{\marginparsep}{0mm}
\setlength{\marginparwidth}{0mm}
\setlength{\footskip}{10mm}
\setlength{\songnumwidth}{15mm}
\setlength{\versenumwidth}{10mm}
\renewcommand\printchord[1]{\sffamily\slshape\small#1}
\newcommand\chordbrk{\hspace*{6.2mm}}
\RequirePackage[final]{pdfpages}
\cfoot{}
\RequirePackage[ngerman]{varioref}
\RequirePackage{lipsum}
Documento
\documentclass[landscape]{../TeX/chordbook}
\usepackage{pdflscape}
\usepackage[%
colorlinks=true,
pdfstartview=FitV,
linkcolor=blue,
citecolor=green,
urlcolor=red,
%debug=true,
hyperfigures=true%
]{hyperref}
\begin{document}
\songcolumns{2}
\columnsep=3mm
\renewcommand{\snumbgcolor}{songnr}
\renewcommand{\notebgcolor}{notes}
\renewcommand\printchord[1]{\footnotesize\sffamily
\textit{\textcolor{linkcolor}{{#1}}}}
\clearpage
\songsection{A Capella}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Classic}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Folk and Medieval}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Fun}
\begin{songs}{}
...
\end{songs}{}
\clearpage
\songsection{Modern / Rock}{}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Oldies}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Other}
\begin{songs}{}
...
\end{songs}
\begin{appendix}
\setlength{\oddsidemargin}{0mm}
%\setlength{\hoffset}{-17.4mm}
%\setlength{\voffset}{-22.4mm}
%\setlength{\topmargin}{0mm}
%\setlength{\headheight}{15mm}
%\setlength{\headsep}{5mm}
%\setlength{\textheight}{173mm}
%\setlength{\textwidth}{280mm}
%\setlength{\headwidth}{\textwidth}
\setlength{\marginparsep}{-30mm}
\setlength{\marginparwidth}{-30mm}
%\setlength{\footskip}{10mm}
\begin{landscape}
\includepdf[pages=-,scale=0.9,landscape]{../src/appendix/i_see_fire.pdf}
\end{landscape}
\end{appendix}
\end{document}
Entonces mi problema ahora es que el pdf incluido comenzará a unos 40 mm del margen izquierdo, pero no puedo reducir esta longitud; también valores negativos para
- \hoffset
- \oddsidemargin
- \marginparsep
- \parginparwidth
no funcionó, en realidad alterar sus valores no cambió nada.
proporciono unenlacea una captura de pantalla aquí, porque no tengo suficiente reputación para subir capturas de pantalla directamente.
¿Alguien tiene una idea de lo que estoy haciendo mal?
No puedo encontrar un comando tipo interruptor o algo como portrait
...
Saludos
Hringriin
Respuesta1
La solución completa es esta:
<<<<<
\begin{landscape}
\includepdf[pages=-,scale=0.9,landscape]{../src/appendix/i_see_fire.pdf}
\end{landscape}
=====
\setlength{\textheight}{195mm}
\begin{landscape}
\includegraphics[scale=0.93]{../src/appendix/i_see_fire.pdf}
\end{landscape}
>>>>>
Por cierto, \includepdf
no hay cambios al alterar los valores .\textheight
Saludos
Hringriin