Align units of equations and units of corresponding legends below each other











up vote
2
down vote

favorite












I am using this code to align equation units of right the equation and to create nice equation legends.



Minimum Working Example:



documentclass{article}
usepackage{amsmath}
usepackage{booktabs}
usepackage{tabularx}
usepackage{siunitx}

%--------------------------------------------------------------------------------------------
% ---- The following part is to align the units of right the equations: ---------------------
%--------------------------------------------------------------------------------------------

makeatletter%
providecommandadd@text{}%
newcommandaddunit[1]{%
gdefadd@text{[si{#1}]gdefadd@text{}}}%
renewcommandtagform@[1]{%
maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
}%
makeatother%

%--------------------------------------------------------------------------------------------
% ---- The following part is for equation legends including symbol, description and unit ----
%--------------------------------------------------------------------------------------------

newenvironment{legend*}{%
parvspace{abovedisplayskip}noindent%
begingroup%
leftskip = 3em% Indent from left, alternative 4em
noindenttext{hspace{0.2em} where}%
parvspace{abovedisplayskip}noindent%
tabularx{columnwidth}{>{(}l<{)} @{hspace{2em}} l @{hspace{2em}} >{raggedrightarraybackslash}>{[} c<{]}}}%
{endtabularxparvspace{2em}%
par%
endgroup%
}%

%--------------------------------------------------------------------------------------------
% ---- Document part ------------------------------------------------------------------------
%--------------------------------------------------------------------------------------------

begin{document}

begin{equation}
V = BC addunit{squaremeter}
end{equation}

begin{legend*}
V & Filter volume & si{cubicmeter}\
B & Density of the filter & si{kilogrampercubicmeter}\
C & Filter mass & si{kilogram}\
end{legend*}

end{document}




Screenshot of the result:



Screenshot of the current state





Description of the issue:



As you can see, this is looking nice but not perfect. Therefore I want to align the units of the legend flushed right in one line with the unit of the equation.





Screenshot of the desired state:



Screenshot of the desired state



How can I modify this code?










share|improve this question




























    up vote
    2
    down vote

    favorite












    I am using this code to align equation units of right the equation and to create nice equation legends.



    Minimum Working Example:



    documentclass{article}
    usepackage{amsmath}
    usepackage{booktabs}
    usepackage{tabularx}
    usepackage{siunitx}

    %--------------------------------------------------------------------------------------------
    % ---- The following part is to align the units of right the equations: ---------------------
    %--------------------------------------------------------------------------------------------

    makeatletter%
    providecommandadd@text{}%
    newcommandaddunit[1]{%
    gdefadd@text{[si{#1}]gdefadd@text{}}}%
    renewcommandtagform@[1]{%
    maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
    }%
    makeatother%

    %--------------------------------------------------------------------------------------------
    % ---- The following part is for equation legends including symbol, description and unit ----
    %--------------------------------------------------------------------------------------------

    newenvironment{legend*}{%
    parvspace{abovedisplayskip}noindent%
    begingroup%
    leftskip = 3em% Indent from left, alternative 4em
    noindenttext{hspace{0.2em} where}%
    parvspace{abovedisplayskip}noindent%
    tabularx{columnwidth}{>{(}l<{)} @{hspace{2em}} l @{hspace{2em}} >{raggedrightarraybackslash}>{[} c<{]}}}%
    {endtabularxparvspace{2em}%
    par%
    endgroup%
    }%

    %--------------------------------------------------------------------------------------------
    % ---- Document part ------------------------------------------------------------------------
    %--------------------------------------------------------------------------------------------

    begin{document}

    begin{equation}
    V = BC addunit{squaremeter}
    end{equation}

    begin{legend*}
    V & Filter volume & si{cubicmeter}\
    B & Density of the filter & si{kilogrampercubicmeter}\
    C & Filter mass & si{kilogram}\
    end{legend*}

    end{document}




    Screenshot of the result:



    Screenshot of the current state





    Description of the issue:



    As you can see, this is looking nice but not perfect. Therefore I want to align the units of the legend flushed right in one line with the unit of the equation.





    Screenshot of the desired state:



    Screenshot of the desired state



    How can I modify this code?










    share|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I am using this code to align equation units of right the equation and to create nice equation legends.



      Minimum Working Example:



      documentclass{article}
      usepackage{amsmath}
      usepackage{booktabs}
      usepackage{tabularx}
      usepackage{siunitx}

      %--------------------------------------------------------------------------------------------
      % ---- The following part is to align the units of right the equations: ---------------------
      %--------------------------------------------------------------------------------------------

      makeatletter%
      providecommandadd@text{}%
      newcommandaddunit[1]{%
      gdefadd@text{[si{#1}]gdefadd@text{}}}%
      renewcommandtagform@[1]{%
      maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
      }%
      makeatother%

      %--------------------------------------------------------------------------------------------
      % ---- The following part is for equation legends including symbol, description and unit ----
      %--------------------------------------------------------------------------------------------

      newenvironment{legend*}{%
      parvspace{abovedisplayskip}noindent%
      begingroup%
      leftskip = 3em% Indent from left, alternative 4em
      noindenttext{hspace{0.2em} where}%
      parvspace{abovedisplayskip}noindent%
      tabularx{columnwidth}{>{(}l<{)} @{hspace{2em}} l @{hspace{2em}} >{raggedrightarraybackslash}>{[} c<{]}}}%
      {endtabularxparvspace{2em}%
      par%
      endgroup%
      }%

      %--------------------------------------------------------------------------------------------
      % ---- Document part ------------------------------------------------------------------------
      %--------------------------------------------------------------------------------------------

      begin{document}

      begin{equation}
      V = BC addunit{squaremeter}
      end{equation}

      begin{legend*}
      V & Filter volume & si{cubicmeter}\
      B & Density of the filter & si{kilogrampercubicmeter}\
      C & Filter mass & si{kilogram}\
      end{legend*}

      end{document}




      Screenshot of the result:



      Screenshot of the current state





      Description of the issue:



      As you can see, this is looking nice but not perfect. Therefore I want to align the units of the legend flushed right in one line with the unit of the equation.





      Screenshot of the desired state:



      Screenshot of the desired state



      How can I modify this code?










      share|improve this question















      I am using this code to align equation units of right the equation and to create nice equation legends.



      Minimum Working Example:



      documentclass{article}
      usepackage{amsmath}
      usepackage{booktabs}
      usepackage{tabularx}
      usepackage{siunitx}

      %--------------------------------------------------------------------------------------------
      % ---- The following part is to align the units of right the equations: ---------------------
      %--------------------------------------------------------------------------------------------

      makeatletter%
      providecommandadd@text{}%
      newcommandaddunit[1]{%
      gdefadd@text{[si{#1}]gdefadd@text{}}}%
      renewcommandtagform@[1]{%
      maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
      }%
      makeatother%

      %--------------------------------------------------------------------------------------------
      % ---- The following part is for equation legends including symbol, description and unit ----
      %--------------------------------------------------------------------------------------------

      newenvironment{legend*}{%
      parvspace{abovedisplayskip}noindent%
      begingroup%
      leftskip = 3em% Indent from left, alternative 4em
      noindenttext{hspace{0.2em} where}%
      parvspace{abovedisplayskip}noindent%
      tabularx{columnwidth}{>{(}l<{)} @{hspace{2em}} l @{hspace{2em}} >{raggedrightarraybackslash}>{[} c<{]}}}%
      {endtabularxparvspace{2em}%
      par%
      endgroup%
      }%

      %--------------------------------------------------------------------------------------------
      % ---- Document part ------------------------------------------------------------------------
      %--------------------------------------------------------------------------------------------

      begin{document}

      begin{equation}
      V = BC addunit{squaremeter}
      end{equation}

      begin{legend*}
      V & Filter volume & si{cubicmeter}\
      B & Density of the filter & si{kilogrampercubicmeter}\
      C & Filter mass & si{kilogram}\
      end{legend*}

      end{document}




      Screenshot of the result:



      Screenshot of the current state





      Description of the issue:



      As you can see, this is looking nice but not perfect. Therefore I want to align the units of the legend flushed right in one line with the unit of the equation.





      Screenshot of the desired state:



      Screenshot of the desired state



      How can I modify this code?







      horizontal-alignment equations tabularx legend units






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 7 at 13:06

























      asked Dec 7 at 13:00









      Dave

      719516




      719516






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Use an X column:



          documentclass{article}
          usepackage{amsmath}
          usepackage{booktabs}
          usepackage{tabularx}
          usepackage{siunitx}

          %--------------------------------------------------------------------------------------------
          % ---- The following part is to align the units of right the equations: ---------------------
          %--------------------------------------------------------------------------------------------

          makeatletter
          providecommandadd@text{}
          newcommandaddunit[1]{%
          gdefadd@text{(si{#1})gdefadd@text{}}
          }
          renewcommandtagform@[1]{%
          maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
          }
          makeatother

          %--------------------------------------------------------------------------------------------
          % ---- The following part is for equation legends including symbol, description and unit ----
          %--------------------------------------------------------------------------------------------

          newenvironment{legend*}{%
          parvspace{abovedisplayskip}noindent
          begingroup
          tabularx{columnwidth}{
          @{hspace{3em}}
          >{(}l<{)}
          @{hspace{2em}}
          l
          @{hspace{2em}}
          >{raggedrightarraybackslash}>{hfill(} X<{)qquadhphantom{theequation}}
          @{}
          }multicolumn{3}{@{hspace{3em}}l@{}}{where}\[1ex]
          }%
          {endtabularxparvspace{2em}%
          par
          endgroup
          }%

          %--------------------------------------------------------------------------------------------
          % ---- Document part ------------------------------------------------------------------------
          %--------------------------------------------------------------------------------------------

          begin{document}

          begin{equation}
          V = BC addunit{squaremeter}
          end{equation}

          begin{legend*}
          V & Filter volume & si{cubicmeter}\
          B & Density of the filter & si{kilogrampercubicmeter}\
          C & Filter mass & si{kilogram}\
          end{legend*}

          end{document}


          enter image description here






          share|improve this answer



















          • 1




            @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
            – egreg
            Dec 7 at 13:20










          • Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
            – Dave
            Dec 7 at 13:25












          • @Dave Personal opinion. Do as it is common in your field.
            – egreg
            Dec 7 at 13:37










          • Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
            – Dave
            Dec 7 at 13:58












          • @Dave There's the s column type
            – egreg
            Dec 7 at 14:05











          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',
          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%2f463686%2falign-units-of-equations-and-units-of-corresponding-legends-below-each-other%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          Use an X column:



          documentclass{article}
          usepackage{amsmath}
          usepackage{booktabs}
          usepackage{tabularx}
          usepackage{siunitx}

          %--------------------------------------------------------------------------------------------
          % ---- The following part is to align the units of right the equations: ---------------------
          %--------------------------------------------------------------------------------------------

          makeatletter
          providecommandadd@text{}
          newcommandaddunit[1]{%
          gdefadd@text{(si{#1})gdefadd@text{}}
          }
          renewcommandtagform@[1]{%
          maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
          }
          makeatother

          %--------------------------------------------------------------------------------------------
          % ---- The following part is for equation legends including symbol, description and unit ----
          %--------------------------------------------------------------------------------------------

          newenvironment{legend*}{%
          parvspace{abovedisplayskip}noindent
          begingroup
          tabularx{columnwidth}{
          @{hspace{3em}}
          >{(}l<{)}
          @{hspace{2em}}
          l
          @{hspace{2em}}
          >{raggedrightarraybackslash}>{hfill(} X<{)qquadhphantom{theequation}}
          @{}
          }multicolumn{3}{@{hspace{3em}}l@{}}{where}\[1ex]
          }%
          {endtabularxparvspace{2em}%
          par
          endgroup
          }%

          %--------------------------------------------------------------------------------------------
          % ---- Document part ------------------------------------------------------------------------
          %--------------------------------------------------------------------------------------------

          begin{document}

          begin{equation}
          V = BC addunit{squaremeter}
          end{equation}

          begin{legend*}
          V & Filter volume & si{cubicmeter}\
          B & Density of the filter & si{kilogrampercubicmeter}\
          C & Filter mass & si{kilogram}\
          end{legend*}

          end{document}


          enter image description here






          share|improve this answer



















          • 1




            @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
            – egreg
            Dec 7 at 13:20










          • Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
            – Dave
            Dec 7 at 13:25












          • @Dave Personal opinion. Do as it is common in your field.
            – egreg
            Dec 7 at 13:37










          • Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
            – Dave
            Dec 7 at 13:58












          • @Dave There's the s column type
            – egreg
            Dec 7 at 14:05















          up vote
          3
          down vote



          accepted










          Use an X column:



          documentclass{article}
          usepackage{amsmath}
          usepackage{booktabs}
          usepackage{tabularx}
          usepackage{siunitx}

          %--------------------------------------------------------------------------------------------
          % ---- The following part is to align the units of right the equations: ---------------------
          %--------------------------------------------------------------------------------------------

          makeatletter
          providecommandadd@text{}
          newcommandaddunit[1]{%
          gdefadd@text{(si{#1})gdefadd@text{}}
          }
          renewcommandtagform@[1]{%
          maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
          }
          makeatother

          %--------------------------------------------------------------------------------------------
          % ---- The following part is for equation legends including symbol, description and unit ----
          %--------------------------------------------------------------------------------------------

          newenvironment{legend*}{%
          parvspace{abovedisplayskip}noindent
          begingroup
          tabularx{columnwidth}{
          @{hspace{3em}}
          >{(}l<{)}
          @{hspace{2em}}
          l
          @{hspace{2em}}
          >{raggedrightarraybackslash}>{hfill(} X<{)qquadhphantom{theequation}}
          @{}
          }multicolumn{3}{@{hspace{3em}}l@{}}{where}\[1ex]
          }%
          {endtabularxparvspace{2em}%
          par
          endgroup
          }%

          %--------------------------------------------------------------------------------------------
          % ---- Document part ------------------------------------------------------------------------
          %--------------------------------------------------------------------------------------------

          begin{document}

          begin{equation}
          V = BC addunit{squaremeter}
          end{equation}

          begin{legend*}
          V & Filter volume & si{cubicmeter}\
          B & Density of the filter & si{kilogrampercubicmeter}\
          C & Filter mass & si{kilogram}\
          end{legend*}

          end{document}


          enter image description here






          share|improve this answer



















          • 1




            @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
            – egreg
            Dec 7 at 13:20










          • Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
            – Dave
            Dec 7 at 13:25












          • @Dave Personal opinion. Do as it is common in your field.
            – egreg
            Dec 7 at 13:37










          • Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
            – Dave
            Dec 7 at 13:58












          • @Dave There's the s column type
            – egreg
            Dec 7 at 14:05













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Use an X column:



          documentclass{article}
          usepackage{amsmath}
          usepackage{booktabs}
          usepackage{tabularx}
          usepackage{siunitx}

          %--------------------------------------------------------------------------------------------
          % ---- The following part is to align the units of right the equations: ---------------------
          %--------------------------------------------------------------------------------------------

          makeatletter
          providecommandadd@text{}
          newcommandaddunit[1]{%
          gdefadd@text{(si{#1})gdefadd@text{}}
          }
          renewcommandtagform@[1]{%
          maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
          }
          makeatother

          %--------------------------------------------------------------------------------------------
          % ---- The following part is for equation legends including symbol, description and unit ----
          %--------------------------------------------------------------------------------------------

          newenvironment{legend*}{%
          parvspace{abovedisplayskip}noindent
          begingroup
          tabularx{columnwidth}{
          @{hspace{3em}}
          >{(}l<{)}
          @{hspace{2em}}
          l
          @{hspace{2em}}
          >{raggedrightarraybackslash}>{hfill(} X<{)qquadhphantom{theequation}}
          @{}
          }multicolumn{3}{@{hspace{3em}}l@{}}{where}\[1ex]
          }%
          {endtabularxparvspace{2em}%
          par
          endgroup
          }%

          %--------------------------------------------------------------------------------------------
          % ---- Document part ------------------------------------------------------------------------
          %--------------------------------------------------------------------------------------------

          begin{document}

          begin{equation}
          V = BC addunit{squaremeter}
          end{equation}

          begin{legend*}
          V & Filter volume & si{cubicmeter}\
          B & Density of the filter & si{kilogrampercubicmeter}\
          C & Filter mass & si{kilogram}\
          end{legend*}

          end{document}


          enter image description here






          share|improve this answer














          Use an X column:



          documentclass{article}
          usepackage{amsmath}
          usepackage{booktabs}
          usepackage{tabularx}
          usepackage{siunitx}

          %--------------------------------------------------------------------------------------------
          % ---- The following part is to align the units of right the equations: ---------------------
          %--------------------------------------------------------------------------------------------

          makeatletter
          providecommandadd@text{}
          newcommandaddunit[1]{%
          gdefadd@text{(si{#1})gdefadd@text{}}
          }
          renewcommandtagform@[1]{%
          maketag@@@{llap{add@textqquad}(ignorespaces#1unskip@@italiccorr)}%
          }
          makeatother

          %--------------------------------------------------------------------------------------------
          % ---- The following part is for equation legends including symbol, description and unit ----
          %--------------------------------------------------------------------------------------------

          newenvironment{legend*}{%
          parvspace{abovedisplayskip}noindent
          begingroup
          tabularx{columnwidth}{
          @{hspace{3em}}
          >{(}l<{)}
          @{hspace{2em}}
          l
          @{hspace{2em}}
          >{raggedrightarraybackslash}>{hfill(} X<{)qquadhphantom{theequation}}
          @{}
          }multicolumn{3}{@{hspace{3em}}l@{}}{where}\[1ex]
          }%
          {endtabularxparvspace{2em}%
          par
          endgroup
          }%

          %--------------------------------------------------------------------------------------------
          % ---- Document part ------------------------------------------------------------------------
          %--------------------------------------------------------------------------------------------

          begin{document}

          begin{equation}
          V = BC addunit{squaremeter}
          end{equation}

          begin{legend*}
          V & Filter volume & si{cubicmeter}\
          B & Density of the filter & si{kilogrampercubicmeter}\
          C & Filter mass & si{kilogram}\
          end{legend*}

          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 7 at 13:19

























          answered Dec 7 at 13:11









          egreg

          704k8618763155




          704k8618763155








          • 1




            @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
            – egreg
            Dec 7 at 13:20










          • Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
            – Dave
            Dec 7 at 13:25












          • @Dave Personal opinion. Do as it is common in your field.
            – egreg
            Dec 7 at 13:37










          • Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
            – Dave
            Dec 7 at 13:58












          • @Dave There's the s column type
            – egreg
            Dec 7 at 14:05














          • 1




            @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
            – egreg
            Dec 7 at 13:20










          • Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
            – Dave
            Dec 7 at 13:25












          • @Dave Personal opinion. Do as it is common in your field.
            – egreg
            Dec 7 at 13:37










          • Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
            – Dave
            Dec 7 at 13:58












          • @Dave There's the s column type
            – egreg
            Dec 7 at 14:05








          1




          1




          @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
          – egreg
          Dec 7 at 13:20




          @Dave Fixed. I would not use this alignment, though; in the equation the unit should be next to the formula, say two quads from it; in the legend, just after the description.
          – egreg
          Dec 7 at 13:20












          Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
          – Dave
          Dec 7 at 13:25






          Thanks a lot for your help! You said "in the equation the unit should be next to the formula, [...]; in the legend, just after the description." Oh, is this a rule or just an opinion? :-)
          – Dave
          Dec 7 at 13:25














          @Dave Personal opinion. Do as it is common in your field.
          – egreg
          Dec 7 at 13:37




          @Dave Personal opinion. Do as it is common in your field.
          – egreg
          Dec 7 at 13:37












          Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
          – Dave
          Dec 7 at 13:58






          Yes, when thinking about it - I think you are right! It is better to keep them close to each other. But something else makes me headache: Do you have an idea on how to auto-write the third table column always as si{<column content>}? How can we add that to the modification? It would be nice, so in the text there is no need to write si{<unit>} anymore, just <unit>...
          – Dave
          Dec 7 at 13:58














          @Dave There's the s column type
          – egreg
          Dec 7 at 14:05




          @Dave There's the s column type
          – egreg
          Dec 7 at 14:05


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f463686%2falign-units-of-equations-and-units-of-corresponding-legends-below-each-other%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

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents