用于创建安装手册的包?

用于创建安装手册的包?

我想为用户创建安装手册。我的一般结构是,我想要单独的步骤,并且在每个步骤中,我希望在左侧有一个图像/屏幕截图,在右侧有一个描述。是否有任何软件包对此有帮助?或者我必须自己构建它。

例子:

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}

在此处输入图片描述

相关内容