是否可以使用 tikz 图像制作图库?

是否可以使用 tikz 图像制作图库?

我使用 TikZ 创建了许多图像,我想创建一个图库。它应该看起来像这样:

在此处输入图片描述

画廊应该

  • 将图像放在(灰色)背景前
  • 将图像调整为最大宽度/高度(并保持纵横比不变)

如果我能把图片放在单独的文件中,并使用类似

\begin{gallery}
    \input{tikz/myImage1.tex}[Some title]
    \input{tikz/myImage2.tex}[another title]
    \input{tikz/mathImage.tex}[This is a visualization of $f(x, y) = x^2 y^2$]
\end{gallery}

这是我目前得到的(代码也在 GitHub 上):

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb,amsmath} % needed for math
\usepackage{standalone} % needed for includestandalone
\usepackage[utf8]{inputenc} % this is needed for umlauts
\usepackage[ngerman]{babel} % this is needed for umlauts
\usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf

\usepackage{adjustbox}
\usepackage{xcolor}
\definecolor{myLightGray}{HTML}{F9F9F9}
\definecolor{borderColor}{HTML}{CCCCCC}

\usepackage{tikz} % needed for includestandalone
\usetikzlibrary{arrows,positioning, calc}

\tikzset{
    pil/.style={->,thick}
}

\newenvironment{gallery}{}{}

\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam 
erat, 
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea 
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem 
ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur 
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore 
et dolore magna aliquyam erat, sed diam voluptua. At vero eos et 
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, 
no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum 
dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod 
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam 
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. 
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum 
dolor sit amet.   

\noindent
\begin{gallery}
    \adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-1}}
    \adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-2}}
    \adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-3-1}}
    \adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-6}}
    \adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{equilateral-triangle}}
    \adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{equilateral-triangle-heights}}
\end{gallery}

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse 
molestie consequat, vel illum dolore eu feugiat nulla facilisis at 
vero eros et accumsan et iusto odio dignissim qui blandit praesent 
luptatum zzril delenit augue duis dolore te feugait nulla facilisi. 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam 
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat 
volutpat.   

\end{document}

其结果为:

迄今为止的画廊

我曾经使用过,但使用这个我必须将中\includestandalone定义的样式添加到主文档中。这样不好。\tikzsetdot-product-1.tex

答案1

要水平对齐灰色矩形中的内容center=4cm,请使用 ,这将强制使用 4cm 的正式宽度,并将内容水平居中,而无需进行任何进一步的缩放。垂直对齐可以使用valign=M后跟 来完成set vsize={2cm}{2cm}。或者,您也可以使用raise={.5\depth-.5\height}{2cm}{2cm}。请注意,两者都会将框的中间对齐到基线,这在这里没问题,但raise=2cm在其他情况下您可能需要这样做。

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb,amsmath} % needed for math
\usepackage{standalone} % needed for includestandalone
\usepackage[utf8]{inputenc} % this is needed for umlauts
\usepackage[ngerman]{babel} % this is needed for umlauts
\usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf

\usepackage{adjustbox}
\usepackage{xcolor}
\definecolor{myLightGray}{HTML}{F9F9F9}
\definecolor{borderColor}{HTML}{CCCCCC}

\usepackage{tikz} % needed for includestandalone
\usetikzlibrary{arrows,positioning, calc}

\tikzset{
    pil/.style={->,thick}
}

\newenvironment{gallery}{%
    \center
}{%
    \par\endcenter
}

\def\galleryimage#1{%
    \adjustbox{width=4cm,height=4cm,keepaspectratio, center=4cm,
    valign=M, set vsize={2cm}{2cm},
    %or: raise={.5\depth-.5\height}{2cm}{2cm},
    bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}
    {\includestandalone{#1}}%
    \space\ignorespaces
}%

\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam 
erat, 
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea 
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem 
ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur 
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore 
et dolore magna aliquyam erat, sed diam voluptua. At vero eos et 
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, 
no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum 
dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod 
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam 
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. 
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum 
dolor sit amet.   

\begin{gallery}
    \galleryimage{dot-product-1}
    \galleryimage{dot-product-2}
    \galleryimage{dot-product-3-1}

    \galleryimage{dot-product-1}
    \galleryimage{dot-product-2}
    \galleryimage{dot-product-3-1}

    \galleryimage{dot-product-6}
    \galleryimage{equilateral-triangle}
    \galleryimage{equilateral-triangle-heights}
\end{gallery}


Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse 
molestie consequat, vel illum dolore eu feugiat nulla facilisis at 
vero eros et accumsan et iusto odio dignissim qui blandit praesent 
luptatum zzril delenit augue duis dolore te feugait nulla facilisi. 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam 
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat 
volutpat.   

\end{document}

它看起来像这样:

例子

答案2

以下是正在进行的工作:

代码

\documentclass{scrartcl}
\usepackage[margin=25.4mm]{geometry}
\usepackage{tikz}
\usepackage{filecontents}
\usepackage{xifthen}

\pgfdeclarelayer{background}
\pgfsetlayers{background,main}

\newcommand{\getsizes}%
{   \path (current bounding box.south west);
    \pgfgetlastxy{\xsw}{\ysw}
    \path (current bounding box.north east);
    \pgfgetlastxy{\xne}{\yne}
    \pgfmathsetlengthmacro{\picwidth}{\xne-\xsw}
    \pgfmathsetlengthmacro{\picheight}{\yne-\ysw}
    \pgfmathsetmacro{\picscale}{\picwidth>\picheight ? (0.3*\textwidth)/\picwidth : (0.3*\textwidth)/\picheight}
    \pgfmathsetlengthmacro{\biggervalue}{\picwidth>\picheight ? \picwidth : \picheight}
    \xdef\scalefactor{\picscale}
    \xdef\picdimension{\biggervalue}
}

\newcommand{\grayback}%
{   \begin{pgfonlayer}{background}
        \fill[gray!50] (current bounding box.center) ++(-\picdimension/2,-\picdimension/2) rectangle ++(\picdimension,\picdimension);
    \end{pgfonlayer}
}

\newcommand{\adjustedtikzsize}[2]% draw commands, caption
{ \stepcounter{galleryitem}
    \smash{\vphantom{
    \begin{tikzpicture}
        #1
        \getsizes
    \end{tikzpicture}
    }}
    \begin{tikzpicture}[scale=\scalefactor]
        #1
        \grayback
        \node[below right] at (current bounding box.south west) {#2};
    \end{tikzpicture}
    \pgfmathtruncatemacro{\breaktest}{mod(\thegalleryitem,3)}
    \ifthenelse{\breaktest=0}{\par}{\hspace{0.02\textwidth}}
}

\newcounter{galleryitem}
\setcounter{galleryitem}{0}
\newenvironment{tikzgallery}[1]% gallery title
{{\Huge\textbf{#1}}\par}%
{\par}

\begin{filecontents}{picone.tex}
\draw[rotate=30,left color=red,right color=blue] (0,0) rectangle (5,2);
\end{filecontents}

\begin{filecontents}{pictwo.tex}
\draw[rotate=20,left color=green,right color=red] (0,0) rectangle (5,2);
\end{filecontents}

\begin{filecontents}{picthree.tex}
\draw[rotate=40,left color=orange,right color=blue] (0,0) rectangle (5,2);
\end{filecontents}

\begin{document}

\parindent0mm
\parskip0mm

\begin{tikzgallery}{Geometrie}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
\end{tikzgallery}

\end{document}

结果

在此处输入图片描述


编辑1:现在有:

  • 每行可选择的图片数量(部分中断n ≥ 10
  • 改进对齐
  • 图片之间的动态空间
  • 环境跨页面突破;)

代码

\documentclass{scrartcl}
\usepackage[margin=10mm]{geometry}
\usepackage{tikz}
\usepackage{filecontents}
\usepackage{xifthen}

\pgfdeclarelayer{background}
\pgfsetlayers{background,main}

\newcommand{\getsizes}%
{   \path (current bounding box.south west);
    \pgfgetlastxy{\xsw}{\ysw}
    \path (current bounding box.north east);
    \pgfgetlastxy{\xne}{\yne}
    \pgfmathsetlengthmacro{\picwidth}{\xne-\xsw}
    \pgfmathsetlengthmacro{\picheight}{\yne-\ysw}
    %\pgfmathsetmacro{\picscale}{\picwidth>\picheight ? (0.3*\textwidth)/\picwidth : (0.3*\textwidth)/\picheight}
    \pgfmathsetmacro{\picscale}{\picwidth>\picheight ? (1.05-\picturesperrow*0.05)/\picturesperrow*\textwidth/\picwidth : (1.05-\picturesperrow*0.05)/\picturesperrow*\textwidth/\picheight}
    \pgfmathsetlengthmacro{\biggervalue}{\picwidth>\picheight ? \picwidth : \picheight}
    \xdef\scalefactor{\picscale}
    \xdef\picdimension{\biggervalue}
}

\newcommand{\grayback}%
{   \begin{pgfonlayer}{background}
        \fill[gray!50] (current bounding box.center) ++(-\picdimension/2,-\picdimension/2) rectangle ++(\picdimension,\picdimension);
    \end{pgfonlayer}
}

\newcommand{\adjustedtikzsize}[2]% draw commands, caption
{ \stepcounter{galleryitem}
    \smash{\vphantom{
    \begin{tikzpicture}
        #1
        \getsizes
    \end{tikzpicture}
    }}
    \begin{tikzpicture}[scale=\scalefactor,baseline=(captionnode.north)]
        #1
        \grayback
        \node[below right] (captionnode) at (current bounding box.south west) {#2};
    \end{tikzpicture}
    \pgfmathtruncatemacro{\breaktest}{mod(\thegalleryitem,\picturesperrow)}
    \ifthenelse{\breaktest=0}{\par}{\hfill}%{\hspace{0.02\textwidth}}
}

\newcounter{galleryitem}
\setcounter{galleryitem}{0}

\newenvironment{tikzgallery}[2]% gallery title, pics per row
{{\Huge\textbf{#1}}\par\xdef\picturesperrow{#2}}%
{\par\vspace{1cm}}

\begin{filecontents}{picone.tex}
\draw[rotate=30,left color=red,right color=blue] (0,0) rectangle (5,2);
\end{filecontents}

\begin{filecontents}{pictwo.tex}
\draw[rotate=20,left color=green,right color=red] (0,0) rectangle (5,2);
\end{filecontents}

\begin{filecontents}{picthree.tex}
\draw[rotate=40,left color=orange,right color=blue] (0,0) rectangle (5,2);
\end{filecontents}

\begin{filecontents}{picfour.tex}
\draw[left color=black!10,right color=black!90] (-1,-7) rectangle (1,7);
\draw[left color=yellow,right color=violet] (0,0) circle (5);
\end{filecontents}

\begin{document}

\parindent0mm
\parskip0mm

\begin{tikzgallery}{Geometrie}{6}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}    
\end{tikzgallery}
\begin{tikzgallery}{Ti\textit{k}Z-Spielerei}{4}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}    
\end{tikzgallery}
\clearpage
\begin{tikzgallery}{Riesige Bilder}{2}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
\end{tikzgallery}

\end{document}

结果

在此处输入图片描述


编辑2:一些解释,固定galleryitem计数器:

注释代码

\documentclass{scrartcl}
% should work with all formats and margins, but probably not very well in small spapes
\usepackage[margin=10mm]{geometry}
\usepackage{tikz}
% for creating the dummy .tex files
\usepackage{filecontents}
\usepackage{xifthen}

\pgfdeclarelayer{background}
\pgfsetlayers{background,main}

\newcommand{\getsizes}%
{   
% get coordinates of bottom left and top right corner of the bounding box   
    \path (current bounding box.south west);
    \pgfgetlastxy{\xsw}{\ysw}
    \path (current bounding box.north east);
    \pgfgetlastxy{\xne}{\yne}
% use these to compute height and width of the picture
    \pgfmathsetlengthmacro{\picwidth}{\xne-\xsw}
    \pgfmathsetlengthmacro{\picheight}{\yne-\ysw}
% as the pictures are going to be set on a gray square, we need the bigger dimension; then the scaleing factor is computed: 5% \textwidth spacing subtracted to make \hfill work correctly, then basically \texttwidth/\picdim
    \pgfmathsetmacro{\picscale}{\picwidth>\picheight ? (1.05-\picturesperrow*0.05)/\picturesperrow*\textwidth/\picwidth : (1.05-\picturesperrow*0.05)/\picturesperrow*\textwidth/\picheight}
% find out if height or width is bigger, and save this info and the scale factor in a global macro
    \pgfmathsetlengthmacro{\biggervalue}{\picwidth>\picheight ? \picwidth : \picheight}
    \xdef\scalefactor{\picscale}
    \xdef\picdimension{\biggervalue}
}

\newcommand{\grayback}%
{   \begin{pgfonlayer}{background}
        %  putting the gray background; \picdimension was set by "\getsizes"
        \fill[gray!50] (current bounding box.center) ++(-\picdimension/2,-\picdimension/2) rectangle ++(\picdimension,\picdimension);
    \end{pgfonlayer}
}

\newcommand{\adjustedtikzsize}[2]% draw commands, caption
{ \stepcounter{galleryitem}
% make height and width of the box of the tikzpicture 0, also don't print anything; so the picture is "drawn" twice, the first time invisible to get the dimensions for computation of the scaling factor
    \smash{\vphantom{
    \begin{tikzpicture}
% insert the draw commands
        #1
% determine the scaling factor and the bigger of picheight and picwidth; save both to global macros     
        \getsizes
    \end{tikzpicture}
    }}
% the same picture again, but this time really drawn, with previousely set scaling factor and baseline option for aligning the pictures
    \begin{tikzpicture}[scale=\scalefactor,baseline=(captionnode.north)]
% insert the draw commands
        #1
% gray background       
        \grayback
% caption node
        \node[below right] (captionnode) at (current bounding box.south west) {#2};
    \end{tikzpicture}
% compute "pic mod picsperrow"; if zero, we need to break the line
    \pgfmathtruncatemacro{\breaktest}{mod(\thegalleryitem,\picturesperrow)}
    \ifthenelse{\breaktest=0}{\par}{\hfill}
}

%counter to keep track of the gallery items
\newcounter{galleryitem}
\setcounter{galleryitem}{0}

\newenvironment{tikzgallery}[2]% gallery title, pics per row
% ser the title in huge, globally set picsperrow, reset galleryitem counter
{{\Huge\textbf{#1}}\par\xdef\picturesperrow{#2}\setcounter{galleryitem}{0}}%
{\par\vspace{1cm}}

% some dummy .tex files which contain just plain tikz commands, no preamble, no tikzpicture environment
\begin{filecontents}{picone.tex}
\draw[rotate=30,left color=red,right color=blue] (0,0) rectangle (5,5);
\end{filecontents}

\begin{filecontents}{pictwo.tex}
\draw[rotate=20,left color=green,right color=red] (0,0) rectangle (1,9);
\end{filecontents}

\begin{filecontents}{picthree.tex}
\draw[rotate=40,left color=orange,right color=blue] (0,0) rectangle (5,2);
\end{filecontents}

\begin{filecontents}{picfour.tex}
\draw[left color=black!10,right color=black!90] (-1,-7) rectangle (1,7);
\draw[left color=yellow,right color=violet] (0,0) circle (5);
\end{filecontents}

\begin{document}

\parindent0mm
\parskip0mm

\begin{tikzgallery}{Geometrie}{6}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}    
\end{tikzgallery}
\begin{tikzgallery}{Ti\textit{k}Z-Spielerei}{3}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}    
\end{tikzgallery}
\clearpage
\begin{tikzgallery}{Riesige Bilder}{2}
    \adjustedtikzsize{\input{picone}}{one}
    \adjustedtikzsize{\input{pictwo}}{two}
    \adjustedtikzsize{\input{picthree}}{three}
    \adjustedtikzsize{\input{picfour}}{four}
    \adjustedtikzsize{\input{picfour}}{zero}    
    \adjustedtikzsize{\input{pictwo}}{un}
    \adjustedtikzsize{\input{picthree}}{deux}
    \adjustedtikzsize{\input{picone}}{trois}
\end{tikzgallery}

\end{document}

结果

在此处输入图片描述

相关内容