0

I would like to mirror this format of alignment, looks like a matrix but has no brackets.

maybe start a column exception?

Final result:

  • Is it only about the alignment or also about the content? Because the alignment is simply a \begin{array}{*{4}{cl}} or similar. – campa Mar 9 at 15:23
  • @campa ty hehe I'm new to LaTeX, about the content I've managed to do '''\textcircled{\raisebox{-0.9pt}{etc}}''' , mhm, but how would I sort them through the columns? I only know of arrays like [ \left( \begin{array}{ccc} x \\ y\\ z \end{array} \right)] and such – Bruno Stühler Mar 9 at 15:30
  • Does this help? Auto-numbering table environment with aligned numbers. BTW, what do you mean by 'prepositions' (Präposition auf Deutsch)? – Alan Munn Mar 9 at 15:33
  • @AlanMunn yeah I'm not really looking for a table but ty, and unfortunately it's not from german xD well a mathematical preposition would be x>0, 2 isn't a prime number... I get lost at titles hehe – Bruno Stühler Mar 9 at 15:58
  • 1
    If you're using this for exam/worksheet questions, then perhaps the tasks package might be of some help. There are various ways to make circled numbers. See Good way to make \textcircled numbers? – Alan Munn Mar 9 at 16:29
2

Perhaps something like this is what you want. Adapted from the answers linked in the comments. (The one about numbering used the tabu package, which I don't recommend, and it's not relevant to the numbering issue.)

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{array}
\usepackage{etoolbox}
\newcounter{cellnum}
\renewcommand{\thecellnum}{\textcircled{\raisebox{-.9pt}{\arabic{cellnum}}}}

\newcolumntype{N}{>{\stepcounter{cellnum}\makebox[1em][r]{\thecellnum}\hspace{0.5em}}l}
\AtBeginEnvironment{array}{\setcounter{cellnum}{-1}} % set to 0 to start at 1



\begin{document}
\[
\begin{array}{NNNN}
  2   & 5 & -2 & -5 \\ 
  a \geqq 2 & a \geqq 3 & a \geqq 4
\end{array}
\]

\[
\begin{array}{NNNN}
  2   & 5 & -2 & -5 \\ 
  a \geqq 2 & a \geqq 3 & a \geqq 4
\end{array}
\]
\end{document}

output of code

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.