1

I want to reproduce this image (Table in Latex.png).enter image description here

I am using Texmaker. Any help with that would be greatly appreciated. I need this because I am writing an article. I am an intermediate learner of LaTeX. If to simpliy you can put only one number at the right, I would not mind. And of course, I need to b e able to reference it. I know it is a lot, but it will be a good lesson for all.

I thank you in advance for your trouble.

Mario

4
  • 1
    Welcome to LaTeX.SE. Pleae tell us which document class you employ.
    – Mico
    Mar 22, 2023 at 18:43
  • what you try so far? Try to insert each equation in the own minipage.
    – Zarko
    Mar 22, 2023 at 19:04
  • Don't you think numbering like that potentially confuses the reader? The (1) and (2) become a bit hidden compared to (3). I would use only one number.
    – mickep
    Mar 22, 2023 at 19:49
  • After looking at my document, I realize that it is looking odd. But nevertheless, the answers that I received are very instructive.
    – M. Lemelin
    Mar 24, 2023 at 15:07

3 Answers 3

1

By use of cases of mathtools package, inserted in the minipages as I mentioned in comment:

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\noindent%
\begin{minipage}{0.33\linewidth}
    \begin{equation}
        \begin{rcases}
         1   &   t>0 \\
        -1   &   t<0
        \end{rcases}
    \end{equation}
\end{minipage}%
\begin{minipage}{0.33\linewidth}
    \begin{equation}
        \begin{rcases}
         1   &   t>0 \\
        -1   &   t<0
        \end{rcases}
    \end{equation}
\end{minipage}%
\begin{minipage}{0.33\linewidth}
    \begin{equation}
        \begin{rcases}
         1   &   t>0 \\
        -1   &   t<0
        \end{rcases}
    \end{equation}
\end{minipage} 
\end{document}

enter image description here

3
  • I should have specified that I use Texmaker in conjunction with MikTex. Your solution worked but MikTex had to install 8 packages. For me, I will have to learn how to manipulate that. But the result is there. Thank you very much.
    – M. Lemelin
    Mar 23, 2023 at 19:32
  • Could you explain what is the use of the % in your code please?
    – M. Lemelin
    Mar 24, 2023 at 15:09
  • @M.Lemelin, to see, what it due, test answer, where you remove it. \noindent` remove indent of the first minipage. if after it is empty space, then minipage will move to right fortiny space. This is prevent by immediately after \noindent command. In general, % comment code in line after it.
    – Zarko
    Mar 24, 2023 at 15:20
0

Assuming you use one of the main LaTeX document classes, i.e., article, report, or book, or a document class that's based on of these classes, the following example may be of interest to you.

enter image description here

\documentclass{article} % or some other suitable document class
\usepackage{amsmath}    % for 'aligned' env.
\usepackage{showframe}  % draw frame lines around text block

\begin{document}
\[
\left.
\begin{aligned}
  x &= r\cos\phi,\\
  y &= r\sin\phi,
\end{aligned}
\right\rbrace
\refstepcounter{equation}(\theequation)
\qquad
\left.
\begin{aligned}
  x &= r\cos\phi,\\
  y &= r\sin\phi,\\
  z &= z,
\end{aligned}
\right\rbrace
\refstepcounter{equation}(\theequation)
\qquad
\left.
\begin{aligned}
  x &= r\cos\theta,\\
  y &= r\sin\theta\cos\phi,\\
  z &= z\sin\theta\sin\phi.
\end{aligned}
\right\rbrace
\refstepcounter{equation}(\theequation)
\]

\end{document}
3
  • Your solution worked when we look at the equations. Unfortunately, even though I love the idea of a box around it, the code create three box??? See the image in this link.
    – M. Lemelin
    Mar 23, 2023 at 19:40
  • I forgot to say that I thank you very much for your response. It fell reassuring to know that you can find help so fast here.
    – M. Lemelin
    Mar 23, 2023 at 19:41
  • @M.Lemelin - The rectangular frame boxes are drawn because the showframe package is loaded in the code shown above. The upshot? Don't load the showframe package in you real document.
    – Mico
    Mar 23, 2023 at 20:26
0

enter image description here

  1. Right braces for emphasis are obtained with right=\empheqbigrbrace in empheq environment
  2. Equations may get side-by-side numbering when using minipage environment. It is provided by LaTeX itself, but a better way to do it is with adjustbox environment

Code

\documentclass{book}

\usepackage{adjustbox}
\usepackage{empheq}
    
\begin{document}

\begin{adjustbox}{minipage={\dimexpr 0.333\linewidth - 1em \relax}, valign=m}
    
    \begin{empheq}[right=\empheqbigrbrace]{equation}
        \begin{alignedat}{2}
            x &= r \cos\phi,
            \\
            y &= r \sin\phi,
        \end{alignedat}
    \end{empheq}
    
\end{adjustbox}%
\hspace{\fill}%
\begin{adjustbox}{minipage={\dimexpr 0.333\linewidth - 1em \relax}, valign=m}
    
    \begin{empheq}[right=\empheqbigrbrace]{equation}
        \begin{alignedat}{2}
            x &= r \cos\phi,
            \\
            y &= r \sin\phi,
            \\
            z &= z,
        \end{alignedat}
    \end{empheq}
    
\end{adjustbox}%
\hspace{\fill}%
\begin{adjustbox}{minipage={\dimexpr 0.333\linewidth - 1em \relax}, valign=m}
    
    \begin{empheq}[right=\empheqbigrbrace]{equation}
        \begin{alignedat}{2}
            x &= r \cos\theta,
            \\
            y &= r \sin\theta \cos\phi,
            \\
            z &= r \sin\theta \sin\phi.
        \end{alignedat}
    \end{empheq}
    
\end{adjustbox}
    
\end{document}
5
  • What's the purpose of using alignedat{2} environments when there's a single alignment point per row? Should it maybe be alignedat{1} (or aligned)?
    – Mico
    Mar 22, 2023 at 19:18
  • alginedat allows for better control of spacing Mar 22, 2023 at 19:19
  • What spacing are you controlling? Please elaborate.
    – Mico
    Mar 22, 2023 at 19:57
  • alginedat does not insert spaces between columns, meaning I get to set spaces to my exact desires. tex.stackexchange.com/questions/672096/… Mar 22, 2023 at 20:05
  • I stll don't understand: Since there's just one alignment point per row, what do you mean by "I get to set spaces to my exact desires"?
    – Mico
    Mar 22, 2023 at 20:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .