如何使纸张尺寸适合投影仪中的内容?

如何使纸张尺寸适合投影仪中的内容?

我如何修改页面大小(如独立页面)以适应此处的内容?所包含的图片链接在底部引用。

\documentclass{beamer} %
\usepackage{tikz}
\usepackage{verbatim}
\usetikzlibrary{arrows,shapes,backgrounds}
\begin{document}
\tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [baseline=-.5ex]
\begin{frame}
\frametitle{}
\begin{columns}
\begin{column}{0.3\paperwidth}
    % define source coordinates
    \begin{itemize}
        \item Apricot \& Peach \tikz[na] \coordinate (s-apri);
        \item Almond \& Aloe \tikz[na] \coordinate (s-almond);
        \item Rose \tikz[na] \coordinate (s-rose);
        \item Unscented \tikz[na] \coordinate (s-unscented);
        \item Lime \& Lemon \tikz[na] \coordinate (s-lime);
        \item Lavender \tikz[na] \coordinate (s-lavender);
    \end{itemize}
\end{column}
\begin{column}{0.45\paperwidth}
    \tikzstyle{background grid}=[draw, black!50,step=.5cm]
    \begin{tikzpicture}[]
        \node [inner sep=0pt,above right, yshift=1.5cm] 
            {\includegraphics[width=6cm]{daniells-pile}};
        % show origin
        \fill (0,0) circle (white,2pt);
        % define destination coordinates
        \path (1.6,1.5) coordinate (almond)
              (2.5,1.5) coordinate (rose)
              (.15,2) coordinate (apri)
              (3.5,1.5) coordinate (unscented)
              (4.5,1.5) coordinate (lime)
              (5.5,1.5) coordinate (lavender);
    \end{tikzpicture}
\end{column}
\end{columns}
\begin{tikzpicture}[overlay]
    \path[->,orange,thick] (s-apri) edge [out=20, in=180] (apri);
    \path[->,green,thick] (s-almond) edge [out=-120, in=-60] (almond);
    \path[->,red,thick] (s-rose) edge [out=-15, in=-60] (rose);
    \path[->,blue,thick] (s-unscented) edge [out=-10, in=-60] (unscented);
    \path[->,yellow,thick] (s-lime) edge [out=0, in=-60] (lime);
    \path[->,purple,thick] (s-lavender) edge [out=22, in=-60] (lavender);
   \end{tikzpicture}
   \end{frame}
   \end{document}

在此处输入图片描述

答案1

这是部分答案,作为与 OP 讨论的基础

校正的 MWE

\documentclass{beamer} %
\usepackage{tikz}
%\usepackage{verbatim}
\usetikzlibrary{arrows.meta,shapes,backgrounds}
\begin{document}
\tikzset{ % <--- corrected style definitions as "\tikzstyle" is superseeded by "\tikzset"
    every picture/.append style={remember picture},
    na/.style = {baseline=-.5ex},
}
\begin{frame}
\frametitle{}
\begin{columns}
\begin{column}{0.3\paperwidth}
    % define source coordinates
    \begin{itemize}
        \item Apricot \& Peach \tikz[na] \coordinate (s-apri);
        \item Almond \& Aloe \tikz[na] \coordinate (s-almond);
        \item Rose \tikz[na] \coordinate (s-rose);
        \item Unscented \tikz[na] \coordinate (s-unscented);
        \item Lime \& Lemon \tikz[na] \coordinate (s-lime);
        \item Lavender \tikz[na] \coordinate (s-lavender);
    \end{itemize}
\end{column}
\begin{column}{0.45\paperwidth}
    \tikzstyle{background grid}=[draw, black!50,step=.5cm]
    \begin{tikzpicture}[]
        \node [inner sep=0pt,above right, yshift=1.5cm] 
            {\includegraphics[width=6cm]{daniells-pile}};
        % show origin
        \fill[white] (0,0) circle (2pt); % <--- corrected color specification
        % define destination coordinates
        \path (1.6,1.5) coordinate (almond)
              (2.5,1.5) coordinate (rose)
              (.15,2) coordinate (apri)
              (3.5,1.5) coordinate (unscented)
              (4.5,1.5) coordinate (lime)
              (5.5,1.5) coordinate (lavender);
    \end{tikzpicture}
\end{column}
\end{columns}
\begin{tikzpicture}[overlay]
    \path[->,orange,thick] (s-apri) edge [out=20, in=180] (apri);
    \path[->,green,thick] (s-almond) edge [out=-120, in=-60] (almond);
    \path[->,red,thick] (s-rose) edge [out=-15, in=-60] (rose);
    \path[->,blue,thick] (s-unscented) edge [out=-10, in=-60] (unscented);
    \path[->,yellow,thick] (s-lime) edge [out=0, in=-60] (lime);
    \path[->,purple,thick] (s-lavender) edge [out=22, in=-60] (lavender);
   \end{tikzpicture}
   \end{frame}
   \end{document}

r

相关内容