Here is what I want to do. I have built up my own style set for a "requirements document" that I use as a basic template here at work. The purpose of the document is to collect the requirements for a project.
I created an environment that automatically generates requirement numbers and uses tabularx to output a pretty table. Basically what you get is like this:
R001 This is the description of the requirement
R002 This is the description of the second requirement
The R001 and R002 parts are counter values output with \padzeroes from the fmtcount package.
The main content of the document, though, is a series of descriptions for each of the requirements, something like:
Code: Select all
\subsection{R001 - This is the description of the requirement}
\begin{itemize}
\item A specific requirement
\item Another specific requirement
\end{itemize}
What I would ideally like to do is just write all of the detailed requirements out using some predefined labeling scheme, and have LaTeX generate the TABLE for me (the one that I created the environment for). The issue is that I have absolutely no idea how to make a command that can "look ahead" through the document for certain data and parse it.
This would work sort of like the table of contents does.
Is this even possible? Am I getting in way over my head?
I should mention that I am a programmer by trade, and although a lot of LaTeX's internals are cryptic to me, the programming concepts required to make this work seem relatively straightfoward, so feel free to give me just a direction to go in or some documents to read and I'll figure it out!
Thanks in advance!