如何在 LaTeX 中绘制三角形? 2024-5-24 • tikz-pgf 我知道如何绘制: \triangle{ABC} 它将显示 但是我该如何绘制: 答案1 PSTricks 解决方案仅用于娱乐或比较目的。使用xelatex或进行编译latex-dvips-ps2pdf。 \documentclass[pstricks,12pt]{standalone} \usepackage{pst-eucl} \begin{document} \pspicture(8,6) \pstTriangle(1,1){A}(7,1){C}(7,5){B} \pstRightAngle{A}{C}{B} \endpspicture \end{document} 答案2 和tikz, \documentclass[border=3mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)node[below left]{A} -- ++(2,0)node[below right]{C}coordinate(C) -- ++(0,2)node[below right]{B} -- cycle; \draw (C) +(-3mm,0mm) |- +(0mm,3mm); \end{tikzpicture} \end{document} 相关内容 IntelliJ IDEA 12.10 中的奇怪 UI 行为 使用 xcolor 中的 dvipscolours 和 pgf-pie 免责声明 在 Ubuntu 20.04 上使用 wicd 时有线/无线网络会定期断开连接,并且网络管理器被禁用 无法安装 Microsoft Visual C++ 2010 包 格式化除 Windows 操作系统之外的整个驱动器 Mysql大型数据库备份 如何以 root 身份在 python 中运行 C++ 程序? 用于向员工分发用户和密码的“模板” 尝试从源代码构建 gtk+3.0 失败