I have a table of requirements that have an ID associated with each one, I'm doing this via:


I'm wondering if there is a way to do for example something like:


and then reference like:

As seen in requirement \ref{requirement-user-interface}
  • Just use \refstepcounter instead of \stepcounter – egreg Jan 28 '16 at 22:46
  • You probably want \ref{..} to return FR<num>, correct? Or should it just return <num>? – Werner Jan 28 '16 at 22:46
  • \refstepcounter worked great thanks!! – Rob Jan 28 '16 at 22:55
  • Related question and answer (perhaps more complex than what you need): tex.stackexchange.com/questions/255938/… – Ethan Bolker Jan 29 '16 at 0:23

Perhaps the following template might suit your needs:

enter image description here


\usepackage{lipsum}% Just for this example


See, for example,~\ref{fr:first} and~\ref{fr:second} below:
    Reference & Description \\
    \newFR\label{fr:first}  & First \\
    \newFR\label{fr:second} & Second \\



Principally you want to use \refstepcounter{<cntr>} to increment the counter. This internally does a \stepcounter{<cntr>}, but also updates LaTeX's referencing mechanism by \the<cntr>. You'll note that I've updated \the<cntr> above to prepend it with FR. You can remove this if you only want the reference to be the number.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.