Text Formattingenumerate and tabular enviornment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

enumerate and tabular enviornment

Post by Mini »

Hello,

I want to achieve something like as attached. ie. 'Mark' on rightmost column in positions as shown (ie. first line of the question) and numbered and aligned as shown.

I've tried using enumerate and the tabular environment together, but they dont seem to like each other :(

Any suggestions?

Thanks
Attachments
extract2.pdf
(32.61 KiB) Downloaded 182 times

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

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

enumerate and tabular enviornment

Post by frabjous »

It's hard to guess, but those look like margin notes to me (e.g., using the \marginpar command), not another column of text.

Perhaps something like this will give you an idea of how to do obtain something like them:

Code: Select all

\documentclass{article}
\newcommand{\markamount}[1]{\marginpar{\hfill\fbox{\large \textbf{#1}}}}
\begin{document}

\textbf{Some Exam Questions}\marginpar{\hfill Marks}

\begin{enumerate}
\item \markamount{3} Here is a question. 
\item \markamount{4} And another. 
\end{enumerate}

\end{document}
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Re: enumerate and tabular enviornment

Post by Mini »

Thanks for that.

However the 'Marks' dont align with the question.. so it must be something else?

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

enumerate and tabular enviornment

Post by frabjous »

Mini wrote:Thanks for that.

However the 'Marks' dont align with the question.. so it must be something else?

Thanks again
Please provide a minimal working example in which they do not align.
Post Reply