2010/5/15 biyanip <
biy...@gmail.com>:
> Hi ,
> I want to put a question answer format in latex as follows:
>
> Q1: blah blah
> blah blah..
>
> A1: Blah blah
> blah blah..
>
>
>
> How do i do it?
>
> Can i use enumeration?
>
yes...
\begin{itemize}
% replace the bullet with Q1:
\item[Q1:] Blah blah \newline
blah blah..
% replace the bullet with A1:
\item[A1:] Blah blah \newline
blah blah..
\end{itemize}
It also works in the enumerate environment (numbers --instead of
bullet-- are replaced by the provided characters).
Please, use this trick with care (usualy with short lists when bullets
may be replaced by one or two characters) because margins and indents
are not computed again to suit those replacements, what may break the
document good looking aspect. Another items environment suitable for
that purpose it description...
\begin{description}
% Q1: is strongly empasis (bold)
\item[Q1:] Blah blah \newline
blah blah..
% A1: is bolded...
\item[A1:] Blah blah \newline
blah blah..
\end{itemize}
If you are a professional (i mean a teacher/instructor or alike),
please consider packages like:
exercise
http://www.ctan.org/tex-archive/macros/latex/contrib/exercise/
answers
http://ctan.org/pkg/answers
exam
http://tug.ctan.org/pkg/exam
probsoln
http://www.ctan.org/tex-archive/macros/latex/contrib/probsoln/
Regards