独立中的新行 2024-5-24 • line-breaking standalone 考虑这个例子: \documentclass[margin=1cm]{standalone} \usepackage{tikz} \begin{document} line1 line2 \begin{tikzpicture} \draw (0, 0) -- (2, 2); \end{tikzpicture} \end{document} 输出中的所有内容都在一行上: 如何换行standalone? 答案1 该varwidth选项将允许换行: \documentclass[margin=1cm,varwidth]{standalone} \usepackage{tikz} \begin{document} line1 line2 \begin{tikzpicture} \draw (0, 0) -- (2, 2); \end{tikzpicture} \end{document} 相关内容 Windows 7 64位 + JDK/JRE = 系统缓慢 断电两天后电池电量就耗尽到 0%? OS X 的 Fiddler AutoResponder 替代品 Beamer 中非常紧凑的列表 如何解决我的计算机无法自动暂停的问题?[关闭] LibreOffice 6.2.4+ 在 CentOS 7.6 上崩溃,代码为 139 Geany 文本编辑器 - 插入符号或光标 上传时出现 azure cli 错误 Windows 10 UEFI USB 电源关闭问题 无法在 18.04 中安装 nvidia ubuntu 驱动程序