I am looking for a way to change the papersize (normally A4 to A3 for one page) in my document. I need this, because I want to explicitly write out a big matrix in the appendix (I know, I could use things like
Code: Select all
\vdots
Code: Select all
\ddots
I have found several approaches, like:
- here
- or here
But they don't match my needs: they change the paper size, but the area for the text on the new page doesn't really change.
In my case I get an A3-page in landscape format - ok, that is good.
BUT:
- The text seems to be aligned to the text on the A4-page in portrait format, so I can't even use the new gained place
- The page number appears in the middle of the page (I guess at the same position, where it used to be on the former A4-page) thus messing up my matrix, because one could think that it is an element of the matrix.
Another "problem": the approach uses Koma-Script, and it seems that it doesn't get along with the
Code: Select all
\usepackage{fancyhdr}
I try to show you a working minimal example (but I'm not shure, if I'm using the correct command - please excuse me, I'm completely new to this forum and LaTeX):
Code: Select all
\documentclass{article}
\usepackage[ngerman]{babel} % für deutsche Namen (Zusammenfassung statt Abstract z.B.)
\usepackage[T1]{fontenc} % ermöglicht Umlaute
\usepackage[utf8]{inputenc} % 5 ermöglicht Umlaute
\usepackage{color} % ermöglicht farbigen Text
\usepackage{setspace} \onehalfspacing % generelle Einstellung für Abstände zwischen Zeilen
\usepackage[a4paper]{typearea} % für Einstellungen von Rändern
\usepackage{hyperref} % für klickbare Verweise
\usepackage{amsmath, amssymb}
%\geometry{left=3cm,right=3.5cm,top=3cm,bottom=3cm}
\setlength{\parindent}{0pt}
\setcounter{MaxMatrixCols}{20}
\begin{document}
\section{Hello World}
Some text .......
On the following side comes the big matrix:
\newpage
% I even have to use A2 to make it fit on the paper
% if it was possible to correctly use the available place
% a A3-page would suffice
\KOMAoptions{paper=A2,paper=landscape}
\recalctypearea
\begin{equation}
\begin{pmatrix}
Z_1 & Z_1 + Z_2 & Z_1 + Z_2 + Z_3 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\
1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
u_{1,1} & 0 & 0 & 0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 & 0 & -1 & 0\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{2,3} \cdot \Delta t & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & -1\\
%
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & Z_1 & Z_1 + Z_2 & Z_1 + Z_2 + Z_3 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{3,1} & 0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{3,2} & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{3,3} & 0 & 0 & 0 \\
u_{1,1} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 & u_{2,1} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 & u_{3,1} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 \\
0 & u_{1,2} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 & u_{2,2} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 & u_{3,2} \cdot \Delta t & 0 & 0 & 0 & 0 \\
0 & 0 & u_{1,3} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 & u_{2,3} \cdot \Delta t & 0 & 0 & 0 & 0 & 0 & u_{3,3} \cdot \Delta t & 0 & 0 & 0 \\
%
%0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{3,2} \cdot \Delta t \\
%0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{3,2} \cdot \Delta t \\
%0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & u_{3,2} \cdot \Delta t \\
\end{pmatrix}
\cdot
\begin{pmatrix}
i_{1,1} \\
i_{1,2} \\
i_{1,3} \\
SOC_{1,1} \\
SOC_{1,2} \\
SOC_{1,3} \\
i_{2,1} \\
i_{2,2} \\
i_{2,3} \\
SOC_{2,1} \\
SOC_{2,2} \\
SOC_{2,3} \\
i_{3,1} \\
i_{3,2} \\
i_{3,3} \\
SOC_{3,1} \\
SOC_{3,2} \\
SOC_{3,3} \\
\end{pmatrix}
=
\begin{pmatrix}
u_{min} + u_{0}\\
i_{max} \\
P_{max, 1} \\
P_{max, 2} \\
P_{max, 3} \\
0 \\
0 \\
0 \\
u_{min} + u_{0}\\
i_{max} \\
P_{max, 1} \\
P_{max, 2} \\
P_{max, 3} \\
0 \\
0 \\
0 \\
u_{min} + u_{0}\\
i_{max} \\
P_{max, 1} \\
P_{max, 2} \\
P_{max, 3} \\
SOC_{soll_{1}} - SOC_{start_{1}} \\
SOC_{soll_{2}} - SOC_{start_{2}} \\
SOC_{soll_{3}} - SOC_{start_{3}} \\
\end{pmatrix}
\end{equation}
\end{document}