[latexusersgroup] question answer format in latex

2,409 views
Skip to first unread message

biyanip

unread,
May 15, 2010, 1:31:41 AM5/15/10
to LaTeX Users Group
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?

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Gildas Cotomale

unread,
May 15, 2010, 2:21:45 AM5/15/10
to latexus...@googlegroups.com
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

Kalidoss Murugesan

unread,
May 15, 2010, 9:13:10 AM5/15/10
to latexus...@googlegroups.com
> I want to put a question answer format in latex as follows:
> Q1:  blah blah
> A1:  Blah blah

I prefer ``examdesign'' to ``exam'' class file.  It supports multiple-choice, fill-in-the-blanks, true-false type questions, apart (of course) from normal type of questions and answers.  You can also shuffle the questions with the same input.

--
With regards,

M. Kalidoss, 

Pravesh Biyani

unread,
May 16, 2010, 3:02:24 AM5/16/10
to latexus...@googlegroups.com
Hi

I tried downloading examdesing, exam etc packages. All of them have .ins and .dtx files, how do I get .sty files. I tried using latex command line in windows but couldnt generate one.

Thanks for your responses in anticipation.

Peter Flynn

unread,
May 16, 2010, 11:08:43 AM5/16/10
to latexus...@googlegroups.com
On Sun, May 16, 2010 at 8:02 AM, Pravesh Biyani <biy...@gmail.com> wrote:
Hi

I tried downloading examdesing, exam etc packages. All of them have .ins and .dtx files, how do I get .sty files. I tried using latex command line in windows but couldnt generate one.
Reply all
Reply to author
Forward
0 new messages