请帮助将下面的 tikz 图片制作成适合投影仪幻灯片的大小,并在顶部添加尺寸,因为它可能会影响没有图片的其他幻灯片

请帮助将下面的 tikz 图片制作成适合投影仪幻灯片的大小,并在顶部添加尺寸,因为它可能会影响没有图片的其他幻灯片
\documentclass{beamer}
\mode<presentation>
{
   \usetheme[secheader]{Madrid}
   \useoutertheme{Smoothbars}
   \usefonttheme[onlylarge]{structurebold}
   \setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries} 
   \usefonttheme{professionalfonts}
}
\subject{...}
\AtBeginSubsection[]
{
    \begin{frame}<beamer>
        \frametitle{Plan wyk?du}
        \tableofcontents[currentsection,currentsubsection]
    \end{frame}
}
\usepackage{mathrsfs,amsmath}
\usepackage{mathrsfs}
\usepackage{hyperref}
\usepackage[english]{babel}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{verbatim}
\usepackage{
%graphicx,
caption,subcaption}
\newcommand{\noi}{\noindent}

\usepackage{tikz}
%\usepackage{xcolor}
\usetikzlibrary{intersections,arrows.meta,automata,er,calc,backgrounds,mindmap,folding,patterns,decorations.markings,fit,
%snakes,
shapes,matrix,positioning,shapes.geometric,through,arrows,decorations}

\newcommand{\vertex}{\node[vertex]}
\newcounter{Angle}

\definecolor{myblue}{rgb}{24,40,120}

\begin{frame}

\begin{tikzpicture}
    \tikzstyle{every node}=[draw,shape=circle];
    \node (v0) at (0:3) {$V_0$};
        \node (v1) at (72:3) {$V_1$};
        \node (v2) at (2*72:3) {$V_2$};
        \node (v3) at (3*72:3) {$V_3$};
        \node (v4) at (4*72:3) {$V_4$};
        \node (v5) at (5*72:3) {$V_5$};
        \node (v6) at (6*72:3) {$V_6$};
        \node (v7) at (0:6) {$V_7$};
        \node (v8) at (72:6) {$V_8$};
        \node (v9) at (2*72:6) {$V_9$};
        \node (v10) at (3*72:6) {$V_{10}$};
        \node (v11) at (4*72:6) {$V_{11}$};
        \node (v12) at (5*72:6) {$V_{12}$};
        \node (v13) at (6*72:6) {$V_{13}$};

                \draw (v0) -- (v1) 
                (v1) -- (v2)
                (v2) -- (v3)
                (v3) --(v4)
                (v4) --(v5)
                (v5) --(v6)
                (v6) --(v0)
                (v7) -- (v8) 
                (v8) -- (v9)
                (v9) -- (v10)
                (v10) --(v11)
                (v11) --(v12)
                (v12) --(v13)
                (v13) --(v7)
                (v0) --(v7)
                (v1) --(v8)
                (v2) --(v9)
                (v3) --(v10)
                (v4) --(v11)
                (v5) --(v12)
                (v6) --(v13); 

    \end{tikzpicture}

\end{frame}
\end{document}

上面的图片也不适合一页。需要帮助如果我添加,\setbeamersize{text margin left=1.15in,text margin right=1.15in}那么我的所有幻灯片都会有问题

答案1

对于投影机来说,1.15 英寸的边距非常大,我不会使用这么大的边距。纸张总宽度只有 12.8 厘米,所以大约一半的页面都是空白边距。

如果你真的必须使用它们,你可以使用以下方法缩放图像\begin{tikzpicture}[scale=0.55]

\documentclass{beamer}

%\usepackage[hmargin=1.15in,vmargin=1.115in]{geometry}
\usepackage{verbatim}
\usepackage{
%graphicx,
caption,subcaption}
\newcommand{\noi}{\noindent}

\usepackage{tikz}
%\usepackage{xcolor}
\usetikzlibrary{intersections,arrows.meta,automata,er,calc,backgrounds,mindmap,folding,patterns,decorations.markings,fit,
%snakes,
shapes,matrix,positioning,shapes.geometric,through,arrows,decorations}

\newcommand{\vertex}{\node[vertex]}
\newcounter{Angle}

\setbeamersize{text margin left=1.15in,text margin right=1.15in}

\begin{document}

\begin{frame}
\begin{tikzpicture}[scale=0.55]
    \tikzset{every node/.style={draw,shape=circle}}
    \node (v0) at (0:3) {$V_0$};
        \node (v1) at (72:3) {$V_1$};
        \node (v2) at (2*72:3) {$V_2$};
        \node (v3) at (3*72:3) {$V_3$};
        \node (v4) at (4*72:3) {$V_4$};
        \node (v7) at (0:6) {$V_7$};
        \node (v8) at (72:6) {$V_8$};
        \node (v9) at (2*72:6) {$V_9$};
        \node (v10) at (3*72:6) {$V_{10}$};
        \node (v11) at (4*72:6) {$V_{11}$};

                \draw (v0) -- (v1) 
                (v1) -- (v2)
                (v2) -- (v3)
                (v3) --(v4)
                (v4) --(v0)
                (v0) --(v1)
                (v1) --(v0)
                (v7) -- (v8) 
                (v8) -- (v9)
                (v9) -- (v10)
                (v10) --(v11)
                (v11) --(v7)
                (v7) --(v8)
                (v8) --(v7)
                (v0) --(v7)
                (v1) --(v8)
                (v2) --(v9)
                (v3) --(v10)
                (v4) --(v11)
                (v0) --(v7)
                (v1) --(v8); 

    \end{tikzpicture}

\end{frame}

\end{document}

在此处输入图片描述

适合冬眠者的版本。

\documentclass{beamer}
\usepackage{verbatim}
\usepackage{caption,subcaption}
\newcommand{\noi}{\noindent}

\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\newcounter{Angle}

\setbeamersize{text margin left=1.15in,text margin right=1.15in}

\begin{document}

\begin{frame}
\begin{tikzpicture}[scale=0.55]
    \node[regular polygon,draw,regular polygon sides=5,minimum
    size=3.27cm,rotate=-90] (small 5gon){};
    \node[regular polygon,draw,regular polygon sides=5,minimum
    size=6.54cm,rotate=-90] (large 5gon){};
    \begin{scope}[every node/.append style={draw,shape=circle,fill=white}]
     \foreach \X [count=\Y starting from 0,evaluate=\Y as \Z using {int(\Y+1)}] in {7,...,11}
     {\node (v\Y) at (small 5gon.corner \Z){$V_\Y$};
     \node (v\X) at (large 5gon.corner \Z){$V_{\X}$};
     \draw (v\Y) -- (v\X);}
    \end{scope}
\end{tikzpicture}
\end{frame}
\end{document}

相关内容