Writing text next to a table












1















I have this code:



begin{center}
$left.% Use `left.` if don't want arrow on this side.
begin{tabular}{r r r }
toprule
strength & region & comments \
midrule
$H_B ll H_0$ & Landau levels \
$ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
& $ell$-lmixing & $ell$ not good \
$H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
& Intermediate regime & $J$ and $I$ good, $F$ not good \
& Zeeman effect & $F$ good \
bottomrule
end{tabular}
quad
rightupdownarrow% Use `right.` if don't want arrow on this side.
rotatebox[origin=100]{0}{Landau limit}$
caption{HAILO}
end{center}


that generates:



enter image description here



What I would like:




  • how can I make the entries in the first column (strengh, region, comments) centred with the columns contents?


  • How can I have the Landau limit text at the top right corner of the table, like I drew with the red arrow?



Thanks.










share|improve this question



























    1















    I have this code:



    begin{center}
    $left.% Use `left.` if don't want arrow on this side.
    begin{tabular}{r r r }
    toprule
    strength & region & comments \
    midrule
    $H_B ll H_0$ & Landau levels \
    $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
    & $ell$-lmixing & $ell$ not good \
    $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
    & Intermediate regime & $J$ and $I$ good, $F$ not good \
    & Zeeman effect & $F$ good \
    bottomrule
    end{tabular}
    quad
    rightupdownarrow% Use `right.` if don't want arrow on this side.
    rotatebox[origin=100]{0}{Landau limit}$
    caption{HAILO}
    end{center}


    that generates:



    enter image description here



    What I would like:




    • how can I make the entries in the first column (strengh, region, comments) centred with the columns contents?


    • How can I have the Landau limit text at the top right corner of the table, like I drew with the red arrow?



    Thanks.










    share|improve this question

























      1












      1








      1








      I have this code:



      begin{center}
      $left.% Use `left.` if don't want arrow on this side.
      begin{tabular}{r r r }
      toprule
      strength & region & comments \
      midrule
      $H_B ll H_0$ & Landau levels \
      $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
      & $ell$-lmixing & $ell$ not good \
      $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
      & Intermediate regime & $J$ and $I$ good, $F$ not good \
      & Zeeman effect & $F$ good \
      bottomrule
      end{tabular}
      quad
      rightupdownarrow% Use `right.` if don't want arrow on this side.
      rotatebox[origin=100]{0}{Landau limit}$
      caption{HAILO}
      end{center}


      that generates:



      enter image description here



      What I would like:




      • how can I make the entries in the first column (strengh, region, comments) centred with the columns contents?


      • How can I have the Landau limit text at the top right corner of the table, like I drew with the red arrow?



      Thanks.










      share|improve this question














      I have this code:



      begin{center}
      $left.% Use `left.` if don't want arrow on this side.
      begin{tabular}{r r r }
      toprule
      strength & region & comments \
      midrule
      $H_B ll H_0$ & Landau levels \
      $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
      & $ell$-lmixing & $ell$ not good \
      $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
      & Intermediate regime & $J$ and $I$ good, $F$ not good \
      & Zeeman effect & $F$ good \
      bottomrule
      end{tabular}
      quad
      rightupdownarrow% Use `right.` if don't want arrow on this side.
      rotatebox[origin=100]{0}{Landau limit}$
      caption{HAILO}
      end{center}


      that generates:



      enter image description here



      What I would like:




      • how can I make the entries in the first column (strengh, region, comments) centred with the columns contents?


      • How can I have the Landau limit text at the top right corner of the table, like I drew with the red arrow?



      Thanks.







      tables text






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      SuperCiociaSuperCiocia

      23638




      23638






















          2 Answers
          2






          active

          oldest

          votes


















          3














          How about this, based on bigdelim and makecell? The margin for the caption was obtained by trial and error – it depends on the text of the last column.



          documentclass{article}
          usepackage{geometry}
          usepackage{amssymb}
          usepackage{caption, booktabs, bigdelim, makecell}%
          renewcommand{theadfont}{normalsizebfseries}

          begin{document}

          begin{table}[!htb]
          centering
          captionsetup{margin={0pt,28mm},skip=6pt}
          caption{HAILO}
          begin{tabular}{r r r c@{}l}
          cmidrule[heavyrulewidth]{1-3}
          thead{strength} & thead{region} & thead{comments} & rdelimupdownarrow{7}{*} & Landau limit \
          cmidrule{1-3}
          $H_B ll H_0$ & Landau levels \
          $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
          & $ell$-lmixing & $ell$ not good \
          $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
          & Intermediate regime & $J$ and $I$ good, $F$ not good \
          & Zeeman effect & $F$ good \
          cmidrule[heavyrulewidth]{1-3}
          end{tabular}
          end{table}

          end{document}


          enter image description here






          share|improve this answer































            2














            Without use of booktabs for the table (but clines instead) and with use of tikz with a n arrow that its height is found with tests:



            documentclass{article}
            usepackage{amssymb}
            usepackage{caption}
            usepackage{tikz}
            usepackage{multirow}
            begin{document}
            begin{center}
            $% Use `left.` if don't want arrow on this side.
            begin{tabular}[t]{r r r c l}cline{1-3}
            multicolumn{1}{c}{strength} & multicolumn{1}{c}{region} & multicolumn{1}{c}{comments} &multirow{6}{*}{begin{tikzpicture}draw[<->](0,0)--(0,2.9cm);end{tikzpicture}}&Landau limit\
            cline{1-3}
            $H_B ll H_0$ & Landau levels &&\
            $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good&&\
            & $ell$-lmixing & $ell$ not good &&\
            $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good &&\
            & Intermediate regime & $J$ and $I$ good, $F$ not good &&\
            & Zeeman effect & $F$ good &&\
            cline{1-3}
            end{tabular}
            rotatebox[origin=100]{0}{}$
            captionof{table}{HAILO}
            end{center}
            end{document}


            Output:



            enter image description here



            PS: Just as a start...



            (Needed packages for OP's non working example:



            usepackage{booktabs}
            usepackage{amssymb}
            usepackage{rotating}


            and



            usepackage{caption}


            for the fix with captionof{table} instead of caption{}



            )






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "85"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478598%2fwriting-text-next-to-a-table%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              How about this, based on bigdelim and makecell? The margin for the caption was obtained by trial and error – it depends on the text of the last column.



              documentclass{article}
              usepackage{geometry}
              usepackage{amssymb}
              usepackage{caption, booktabs, bigdelim, makecell}%
              renewcommand{theadfont}{normalsizebfseries}

              begin{document}

              begin{table}[!htb]
              centering
              captionsetup{margin={0pt,28mm},skip=6pt}
              caption{HAILO}
              begin{tabular}{r r r c@{}l}
              cmidrule[heavyrulewidth]{1-3}
              thead{strength} & thead{region} & thead{comments} & rdelimupdownarrow{7}{*} & Landau limit \
              cmidrule{1-3}
              $H_B ll H_0$ & Landau levels \
              $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
              & $ell$-lmixing & $ell$ not good \
              $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
              & Intermediate regime & $J$ and $I$ good, $F$ not good \
              & Zeeman effect & $F$ good \
              cmidrule[heavyrulewidth]{1-3}
              end{tabular}
              end{table}

              end{document}


              enter image description here






              share|improve this answer




























                3














                How about this, based on bigdelim and makecell? The margin for the caption was obtained by trial and error – it depends on the text of the last column.



                documentclass{article}
                usepackage{geometry}
                usepackage{amssymb}
                usepackage{caption, booktabs, bigdelim, makecell}%
                renewcommand{theadfont}{normalsizebfseries}

                begin{document}

                begin{table}[!htb]
                centering
                captionsetup{margin={0pt,28mm},skip=6pt}
                caption{HAILO}
                begin{tabular}{r r r c@{}l}
                cmidrule[heavyrulewidth]{1-3}
                thead{strength} & thead{region} & thead{comments} & rdelimupdownarrow{7}{*} & Landau limit \
                cmidrule{1-3}
                $H_B ll H_0$ & Landau levels \
                $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
                & $ell$-lmixing & $ell$ not good \
                $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
                & Intermediate regime & $J$ and $I$ good, $F$ not good \
                & Zeeman effect & $F$ good \
                cmidrule[heavyrulewidth]{1-3}
                end{tabular}
                end{table}

                end{document}


                enter image description here






                share|improve this answer


























                  3












                  3








                  3







                  How about this, based on bigdelim and makecell? The margin for the caption was obtained by trial and error – it depends on the text of the last column.



                  documentclass{article}
                  usepackage{geometry}
                  usepackage{amssymb}
                  usepackage{caption, booktabs, bigdelim, makecell}%
                  renewcommand{theadfont}{normalsizebfseries}

                  begin{document}

                  begin{table}[!htb]
                  centering
                  captionsetup{margin={0pt,28mm},skip=6pt}
                  caption{HAILO}
                  begin{tabular}{r r r c@{}l}
                  cmidrule[heavyrulewidth]{1-3}
                  thead{strength} & thead{region} & thead{comments} & rdelimupdownarrow{7}{*} & Landau limit \
                  cmidrule{1-3}
                  $H_B ll H_0$ & Landau levels \
                  $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
                  & $ell$-lmixing & $ell$ not good \
                  $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
                  & Intermediate regime & $J$ and $I$ good, $F$ not good \
                  & Zeeman effect & $F$ good \
                  cmidrule[heavyrulewidth]{1-3}
                  end{tabular}
                  end{table}

                  end{document}


                  enter image description here






                  share|improve this answer













                  How about this, based on bigdelim and makecell? The margin for the caption was obtained by trial and error – it depends on the text of the last column.



                  documentclass{article}
                  usepackage{geometry}
                  usepackage{amssymb}
                  usepackage{caption, booktabs, bigdelim, makecell}%
                  renewcommand{theadfont}{normalsizebfseries}

                  begin{document}

                  begin{table}[!htb]
                  centering
                  captionsetup{margin={0pt,28mm},skip=6pt}
                  caption{HAILO}
                  begin{tabular}{r r r c@{}l}
                  cmidrule[heavyrulewidth]{1-3}
                  thead{strength} & thead{region} & thead{comments} & rdelimupdownarrow{7}{*} & Landau limit \
                  cmidrule{1-3}
                  $H_B ll H_0$ & Landau levels \
                  $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good\
                  & $ell$-lmixing & $ell$ not good \
                  $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \
                  & Intermediate regime & $J$ and $I$ good, $F$ not good \
                  & Zeeman effect & $F$ good \
                  cmidrule[heavyrulewidth]{1-3}
                  end{tabular}
                  end{table}

                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 hours ago









                  BernardBernard

                  172k776204




                  172k776204























                      2














                      Without use of booktabs for the table (but clines instead) and with use of tikz with a n arrow that its height is found with tests:



                      documentclass{article}
                      usepackage{amssymb}
                      usepackage{caption}
                      usepackage{tikz}
                      usepackage{multirow}
                      begin{document}
                      begin{center}
                      $% Use `left.` if don't want arrow on this side.
                      begin{tabular}[t]{r r r c l}cline{1-3}
                      multicolumn{1}{c}{strength} & multicolumn{1}{c}{region} & multicolumn{1}{c}{comments} &multirow{6}{*}{begin{tikzpicture}draw[<->](0,0)--(0,2.9cm);end{tikzpicture}}&Landau limit\
                      cline{1-3}
                      $H_B ll H_0$ & Landau levels &&\
                      $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good&&\
                      & $ell$-lmixing & $ell$ not good &&\
                      $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good &&\
                      & Intermediate regime & $J$ and $I$ good, $F$ not good &&\
                      & Zeeman effect & $F$ good &&\
                      cline{1-3}
                      end{tabular}
                      rotatebox[origin=100]{0}{}$
                      captionof{table}{HAILO}
                      end{center}
                      end{document}


                      Output:



                      enter image description here



                      PS: Just as a start...



                      (Needed packages for OP's non working example:



                      usepackage{booktabs}
                      usepackage{amssymb}
                      usepackage{rotating}


                      and



                      usepackage{caption}


                      for the fix with captionof{table} instead of caption{}



                      )






                      share|improve this answer




























                        2














                        Without use of booktabs for the table (but clines instead) and with use of tikz with a n arrow that its height is found with tests:



                        documentclass{article}
                        usepackage{amssymb}
                        usepackage{caption}
                        usepackage{tikz}
                        usepackage{multirow}
                        begin{document}
                        begin{center}
                        $% Use `left.` if don't want arrow on this side.
                        begin{tabular}[t]{r r r c l}cline{1-3}
                        multicolumn{1}{c}{strength} & multicolumn{1}{c}{region} & multicolumn{1}{c}{comments} &multirow{6}{*}{begin{tikzpicture}draw[<->](0,0)--(0,2.9cm);end{tikzpicture}}&Landau limit\
                        cline{1-3}
                        $H_B ll H_0$ & Landau levels &&\
                        $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good&&\
                        & $ell$-lmixing & $ell$ not good &&\
                        $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good &&\
                        & Intermediate regime & $J$ and $I$ good, $F$ not good &&\
                        & Zeeman effect & $F$ good &&\
                        cline{1-3}
                        end{tabular}
                        rotatebox[origin=100]{0}{}$
                        captionof{table}{HAILO}
                        end{center}
                        end{document}


                        Output:



                        enter image description here



                        PS: Just as a start...



                        (Needed packages for OP's non working example:



                        usepackage{booktabs}
                        usepackage{amssymb}
                        usepackage{rotating}


                        and



                        usepackage{caption}


                        for the fix with captionof{table} instead of caption{}



                        )






                        share|improve this answer


























                          2












                          2








                          2







                          Without use of booktabs for the table (but clines instead) and with use of tikz with a n arrow that its height is found with tests:



                          documentclass{article}
                          usepackage{amssymb}
                          usepackage{caption}
                          usepackage{tikz}
                          usepackage{multirow}
                          begin{document}
                          begin{center}
                          $% Use `left.` if don't want arrow on this side.
                          begin{tabular}[t]{r r r c l}cline{1-3}
                          multicolumn{1}{c}{strength} & multicolumn{1}{c}{region} & multicolumn{1}{c}{comments} &multirow{6}{*}{begin{tikzpicture}draw[<->](0,0)--(0,2.9cm);end{tikzpicture}}&Landau limit\
                          cline{1-3}
                          $H_B ll H_0$ & Landau levels &&\
                          $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good&&\
                          & $ell$-lmixing & $ell$ not good &&\
                          $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good &&\
                          & Intermediate regime & $J$ and $I$ good, $F$ not good &&\
                          & Zeeman effect & $F$ good &&\
                          cline{1-3}
                          end{tabular}
                          rotatebox[origin=100]{0}{}$
                          captionof{table}{HAILO}
                          end{center}
                          end{document}


                          Output:



                          enter image description here



                          PS: Just as a start...



                          (Needed packages for OP's non working example:



                          usepackage{booktabs}
                          usepackage{amssymb}
                          usepackage{rotating}


                          and



                          usepackage{caption}


                          for the fix with captionof{table} instead of caption{}



                          )






                          share|improve this answer













                          Without use of booktabs for the table (but clines instead) and with use of tikz with a n arrow that its height is found with tests:



                          documentclass{article}
                          usepackage{amssymb}
                          usepackage{caption}
                          usepackage{tikz}
                          usepackage{multirow}
                          begin{document}
                          begin{center}
                          $% Use `left.` if don't want arrow on this side.
                          begin{tabular}[t]{r r r c l}cline{1-3}
                          multicolumn{1}{c}{strength} & multicolumn{1}{c}{region} & multicolumn{1}{c}{comments} &multirow{6}{*}{begin{tikzpicture}draw[<->](0,0)--(0,2.9cm);end{tikzpicture}}&Landau limit\
                          cline{1-3}
                          $H_B ll H_0$ & Landau levels &&\
                          $ H_B lessapprox H_0 $& $n$-mixing & $n$ not good&&\
                          & $ell$-lmixing & $ell$ not good &&\
                          $H_B ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good &&\
                          & Intermediate regime & $J$ and $I$ good, $F$ not good &&\
                          & Zeeman effect & $F$ good &&\
                          cline{1-3}
                          end{tabular}
                          rotatebox[origin=100]{0}{}$
                          captionof{table}{HAILO}
                          end{center}
                          end{document}


                          Output:



                          enter image description here



                          PS: Just as a start...



                          (Needed packages for OP's non working example:



                          usepackage{booktabs}
                          usepackage{amssymb}
                          usepackage{rotating}


                          and



                          usepackage{caption}


                          for the fix with captionof{table} instead of caption{}



                          )







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 2 hours ago









                          koleygrkoleygr

                          12.3k11038




                          12.3k11038






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478598%2fwriting-text-next-to-a-table%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Why is a white electrical wire connected to 2 black wires?

                              Waikiki

                              What are all the squawk codes?