有人能帮助我把我的思维导图放入投影仪中吗?
编辑:
我有该图形的这些代码,但我想如何在投影仪中适应该图形。
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}
\begin{document}
\pagestyle{empty}
\begin{comment}
:Title: Computer science mindmap
:Tags: Manual, Mindmap
Version 1.09 of PGF/TikZ added a library for drawing mindmaps. Here's an example
from the manual.
| Author: Till Tantau
| Source: The PGF/TikZ manual
\end{comment}
\begin{tikzpicture}
\path[mindmap,concept color=black,text=white]
node[concept] {Unit Root Tests}
[clockwise from=15]
child[concept color=green!50!black] {
node[concept] {Granger Causality (TY p.)}
[clockwise from=90]
child { node[concept] {Full Sample}}
child { node[concept] {Pre and Post Sample}}
}
child[concept color=blue] {
node[concept] {Cointegration Test}
[clockwise from=-30]
child { node[concept] {Full Sample} }
child { node[concept] {Pre and Post Sample} }
}
child[concept color=red] { node[concept] {Break Point Tests} [clockwise from=-90]
child { node[concept] {ZA and PPU Tests}}}
child[concept color=orange] { node[concept] {Classical Tests} [clockwise from=90]
child { node[concept] {ADF, PP, and KPSS Tests}}};
\end{tikzpicture}
\end{document}
它看起来像这样
答案1
有很多不同的方法可以缩小tikzpicture
以适合投影仪框架,例如,为 Beamer 幻灯片缩放 tikzpicture。
一种可能性是使用adjustbox
:
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}
\usepackage{adjustbox}
\begin{document}
\begin{frame}
\begin{adjustbox}{max totalsize={.9\textwidth}{.7\textheight},center}
\begin{tikzpicture}
\path[mindmap,concept color=black,text=white]
node[concept] {Unit Root Tests}
[clockwise from=15]
child[concept color=green!50!black] {
node[concept] {Granger Causality (TY p.)}
[clockwise from=90]
child { node[concept] {Full Sample}}
child { node[concept] {Pre and Post Sample}}
}
child[concept color=blue] {
node[concept] {Cointegration Test}
[clockwise from=-30]
child { node[concept] {Full Sample} }
child { node[concept] {Pre and Post Sample} }
}
child[concept color=red] { node[concept] {Break Point Tests} [clockwise from=-90]
child { node[concept] {ZA and PPU Tests}}}
child[concept color=orange] { node[concept] {Classical Tests} [clockwise from=90]
child { node[concept] {ADF, PP, and KPSS Tests}}};
\end{tikzpicture}
\end{adjustbox}
\end{frame}
\end{document}
答案2
严格来说,制作思维导图不是 beamer 的功能,而是 tikz 的功能(例如)。我从未尝试将 tikz 思维导图放在 beamer 幻灯片上,但编码将从使用一些 tikz 代码开始。我不确定是否有其他基于 LaTeX 的思维导图实现,但 tikz 在其广泛的库中包含“思维导图”,这将是解决您的问题的自然方法。谢谢