![制作类似此图的图表](https://linux22.com/image/354407/%E5%88%B6%E4%BD%9C%E7%B1%BB%E4%BC%BC%E6%AD%A4%E5%9B%BE%E7%9A%84%E5%9B%BE%E8%A1%A8.png)
答案1
tikzpicture
我认为你不需要像这张图那样用大锤:
\documentclass{article}
\usepackage{amsmath}
\usepackage{rotating}
\newcommand\longvertarrow[1][]{\rotatebox{-90}{$\xrightarrow{\hspace{4em}}$#1}}
\begin{document}
\begin{tabular}{c}
File of program\\[-1.5ex]
\longvertarrow[~] \\
\fbox{\enspace Pre processor\enspace}\\[-1ex]
\longvertarrow \\
Source program
\end{tabular}
\end{document}
答案2
请务必先阅读手册。这很有帮助,尤其是当您要求tikz
基础知识时。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node[draw=none] (a) {File of program};
\node[draw=black,below=2 of a] (b) {Pre processor};
\node[draw=none,below=2 of b] (c) {Source program};
\draw[->] (a) -- (b);
\draw[->] (b) -- (c);
\end{tikzpicture}
\end{document}