有没有人使用 LaTeX 来制作高质量的软件需求规范文档?
如果有,您有可以分享的模板吗?
答案1
似乎没有任何专门用于软件需求规范的特定类或包,原因可能是这种文档将遵循内部格式。使用标准类之一或您熟悉的任何其他类从头开发一个并不困难。我使用了 KOMA-Script 报告类作为简短模板来帮助您入门。这是最简代码。
\documentclass{scrreprt}
\usepackage{listings}
\usepackage{underscore}
\usepackage[bookmarks=true]{hyperref}
\hypersetup{
bookmarks=false, % show bookmarks bar?
pdftitle={Software Requirement Specification}, % title
pdfauthor={Yiannis Lazarides}, % author
pdfsubject={TeX and LaTeX}, % subject of the document
pdfkeywords={TeX, LaTeX, graphics, images}, % list of keywords
colorlinks=true, % false: boxed links; true: colored links
linkcolor=blue, % color of internal links
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=purple, % color of external links
linktoc=page % only page is linked
}%
\def\myversion{1.0 }
\title{%
\flushright
\rule{16cm}{5pt}\vskip1cm
\Huge{SOFTWARE REQUIREMENTS\\ SPECIFICATION}\\
\vspace{2cm}
for\\
\vspace{2cm}
Materials Ordering System\\
\vspace{2cm}
\LARGE{Release 1.0\\}
\vspace{2cm}
\LARGE{Version \myversion approved\\}
\vspace{2cm}
Prepared by Yiannis Lazarides\\
\vfill
\rule{16cm}{5pt}
}
\date{}
\usepackage{hyperref}
\begin{document}
\maketitle
\tableofcontents
\chapter*{Revision History}
\chapter{Introduction}
\section{Purpose}
\section{Project Scope and Product Features}
\section{References}
\chapter{Overall Description}
\section{Product Perspective}
\section{User Classes and Characteristics}
% add other chapters and sections to suit
\end{document}
我个人倾向于使用 XeLaTeX 来处理这样的文档,以便有更广泛的字体选择。