Text FormattingRestate item of list

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ChoKamir
Posts: 12
Joined: Tue Jan 18, 2011 12:22 pm

Restate item of list

Post by ChoKamir »

Hi,

Is it possible to restate somewhere in the document the text of an item of a list? For instance something like this:

~~~~~~~~~~~~~~~~~~~~~~
This is a list of items:
  • This is question number 1
  • This is question number 3
  • This is the last question
Now we have here some text, and some more text. And further more this text answers '1. This is question number 1'.
~~~~~~~~~~~~~~~~~~~~~~~~

In my thesis at the begin i've a list of all the research question and I would like to restate them later in the document when they are answered. Just retyping doesn't seem handy, because when i change the research question slightly i've to go through my text and change all the 'references' too.
Thanks for any help,

ChoKamir

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Restate item of list

Post by localghost »

Is there something against »Copy & Paste«?


Thorsten
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Restate item of list

Post by frabjous »

If you don't like copy and paste, you could define a command for each one.

Code: Select all

\newcommand{\colorquestion}{What is your favorite color?}%
\begin{itemize}
\item \colorquestion
\end{itemize}

The answer to ``\colorquestion'' is ``Blue''.
ChoKamir
Posts: 12
Joined: Tue Jan 18, 2011 12:22 pm

Re: Restate item of list

Post by ChoKamir »

Hmmm... ok, if that is the only way, i'll take that.

What i've against copy-paste, is that in a document of 200p you lose track of where you refere to that question. So I've the research question in the list changes (which happens now and then) i've to search the whole document and replace all the instance. Which is error prone.

Thanks for the suggestion with the commands.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Restate item of list

Post by localghost »

ChoKamir wrote:Hmmm... ok, if that is the only way, i'll take that. […]
If the problem is solved with that, then please mark the topic accordingly as written in Section 3 of the Board Rules.


Thorsten
Post Reply