答案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}