General ⇒ Align question parts
Align question parts
I need to type maths questions with a few parts within a question.
how do i align the questions at the parts?
Example:
1.#(a) blah blah blah
##(b) blah blah blah
##(c) ...
(## is used to create the indent in this post).
i tried using \begin{align*} but the whole question shifts to the center.
much thanks for the help
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Align question parts
Code: Select all
\begin{enumerate}
\item \begin{enumerate}
\item foo
\item bar
\end{enumerate}
\item foobar
\end{enumerate}
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Align question parts
is there a way to start the enumerate on the same line as the current text?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Align question parts
In this case you have to provide a minimal working example (MWE) which shows this effect since the latter one is the default behaviour.mojopy wrote:yes, this was what i tried but i get (1) insead of 1., which the latter is what i want.
That's a thing I do not know. And in my opinion this wouldn't make sense. To realise this, it would be necessary to redefine this environment or create a new one. At the moment I can't offer this.mojopy wrote:is there a way to start the enumerate on the same line as the current text?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Align question parts
If you are trying to prepare Q. ppr, try the exam pkg. It has many options for setting Q. pprs.
Thanks,
Arif