Force Große Figur von 4x8 Unterfiguren erscheinen auf einer Seite

Force Große Figur von 4x8 Unterfiguren erscheinen auf einer Seite

Ich habe eine große Figur mit 4 x 8 Unterfiguren und möchte sie auf eine Seite zwängen, da derzeit nur etwa 20 Unterfiguren angezeigt werden und der Rest nicht erscheint.

Aktualisieren:

Ich habe versucht, dies in die Zeile zu schreiben:

\includegraphics[height=0.8\textheight]

aber es gibt einen Fehler

\begin{figure*}[t!]
\includegraphics[height=0.8\textheight]
\centering

Antwort1

Code

\documentclass[parskip]{scrartcl}
\usepackage[margin=25mm]{geometry}
\usepackage{tikz}

\begin{document}

\begin{figure}[p]
    \begin{tikzpicture}
        % calculate textwidth and textheight in cm; usually one would divide by 28.453, the 29 was chosen to avoid overfull boxes
        \pgfmathsetmacro{\mytextwidth}{\textwidth/29}\mytextwidth
        \pgfmathsetmacro{\mytextheight}{\textheight/29}\mytextheight

        % cycle through 32 numbers; you'll need to set the scaling only once; the "draw" in the node options is to show the boundaries of each picture, simply remove it once you found the right scaling factor
        % I didn't have 32 pictures ready, but if they're named systematically, you can use e.g.
        %       \includegraphics[scale=1.1]{figure\x.png}
        % which will produce "figure0.png" to "figure31.png".
        % If the numbers start at a different index, you can use
        %       \foreach \x [evaluate=\x as \y using \x+5] in {0,...,31}
        % and then
        %       \includegraphics[scale=1.1]{figure\y.png} 
        % to produce "figure5.png" to "figure36.png"
        \foreach \x in {0,...,31}
        {   \node[below right,draw] at ({\mytextwidth/4*mod(\x,4)},{\mytextheight/8*div(\x,4)}) {\includegraphics[scale=1.04]{book.png}};
        }
    \end{tikzpicture}
    \caption{The same book over and over.}
\end{figure}

\end{document}

Ausgabe

Bildbeschreibung hier eingeben

Antwort2

Ich gehe davon aus, dass Sie ein Paket wie graphicx geladen haben. Schreiben Sie dann \scalebox{0.75}{Your matrix of figures}. Natürlich ist 0,75 nur eine Annäherung an den korrekten Wert.

Antwort3

Zusätzlich zu Przemyslaws Antwort können Sie den scaleSchlüssel verwenden, um \includegraphics:

\includegraphics[scale=.75]{path/to/image}

verwandte Informationen