![用於建立安裝手冊的套件?](https://rvso.com/image/392357/%E7%94%A8%E6%96%BC%E5%BB%BA%E7%AB%8B%E5%AE%89%E8%A3%9D%E6%89%8B%E5%86%8A%E7%9A%84%E5%A5%97%E4%BB%B6%EF%BC%9F.png)
我想為使用者建立一份安裝手冊。我的一般結構是,我想要單獨的步驟,並且在每個步驟中我想要在左側顯示圖像/螢幕截圖,在右側列上顯示描述。有什麼軟體包對此有幫助嗎?或者我必須自己建造它。
例子:
Section
Image Descrption
Section
Image Descrption
...
答案1
像這樣?
\documentclass{article}
\usepackage{geometry}
\usepackage{graphicx}
\begin{document}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
\begin{minipage}{0.5\textwidth}
\includegraphics[width=0.95\textwidth]{example-image-a}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
First of all, to use \TeX\ or \LaTeX, you have to install a \TeX\ distribution.
\end{minipage}
\begin{minipage}{0.5\textwidth}
\includegraphics[width=0.95\textwidth]{example-image-b}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
Next, you need an editor. In MiK\TeX, there is already one called TeXworks, but you can install other editors if you want. I am using VS Code.
\end{minipage}
\end{document}
這樣做很痛苦,所以我們應該有一個巨集來實現它
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{graphicx}
\newenvironment{yourenv}[1]
{%
\begin{minipage}{0.5\textwidth}
\includegraphics[width=0.95\textwidth]{#1}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
}{%
\end{minipage}\ignorespacesafterend
}
\begin{document}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
\begin{yourenv}{example-image-a}
First of all, to use \TeX\ or \LaTeX, you have to install a \TeX\ distribution.
\end{yourenv}
\end{document}