Alternatives to achieve certain output formatDynamically format labels/columns of a LaTeX table generated in...

Why were helmets and other body armour not commonplace in the 1800s?

Apt - strange requests to d16r8ew072anqo.cloudfront.net:80

Is it possible to remotely hack the GPS system and disable GPS service worldwide?

Popcorn is the only acceptable snack to consume while watching a movie

USPS Back Room - Trespassing?

Can I tell a prospective employee that everyone in the team is leaving?

What is a fully qualified name?

Can my floppy disk still work without a shutter spring?

Find the three digit Prime number P from the given unusual relationships

Count rotary dial pulses in a phone number (including letters)

Remove CiviCRM and Drupal links / banner on profile form

Is "cool" appropriate or offensive to use in IMs?

Count Even Digits In Number

A steel cutting sword?

How to reverse input order?

NIntegrate doesn't evaluate

When the Torah was almost lost and one (or several) Rabbis saved it?

Alternatives to achieve certain output format

Why do Russians almost not use verbs of possession akin to "have"?

Is it rude to call a professor by their last name with no prefix in a non-academic setting?

Why isn't 'chemically-strengthened glass' made with potassium carbonate to begin with?

Does pair production happen even when the photon is around a neutron?

How to attach cable mounting points to a bicycle frame?

How did NASA Langley end up with the first 737?



Alternatives to achieve certain output format


Dynamically format labels/columns of a LaTeX table generated in R/knitr/xtableHow can I format this in lyx?Array stretch only for certain rowsUsing nearrow and searrow to separate an equation in two alternativesSwap two array elementsarray: set width for certain columnsPlacing the middle of a predefined picture at a certain node













4















Consider the following MWE



documentclass[border=10 pt]{standalone}
usepackage{mathtools,setspace}

begin{document}
$displaystyle
{setstretch{1.5}
begin{array}{ccccccccccccccccccccccc}
^{12} mathrm{C}&+&^{1} mathrm{H} &longrightarrow& ^{13}mathrm{N}&+&gamma\
&&&&^{13} mathrm{N}& longrightarrow&^{13} mathrm{C}&+&e^{+}&+&nu\
&&&&&&^{13} mathrm{C}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{14} mathrm{N}&+&gamma\
&&&&&&&&&&^{14} mathrm{N}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{15} mathrm{O}&+&gamma\
&&&&&&&&&&&&&&^{15} mathrm{O}& longrightarrow&^{15} mathrm{N}&+&e^{+}&+&nu\
&&&&&&&&&&&&&&&&^{15} mathrm{N}&+&^{1} mathrm{H} &longrightarrow&^{12} mathrm{C}&+&^{4} mathrm{He}
end{array}}
$
end{document}


with the output
enter image description here
The output is pretty much what I'm looking for, but the way I get it seems rather clunky to me... Is there a better way to get the same output? The only relevant part here is that the same elements in each reaction need to be below each other... The spacing of the other parts doesn't have to be the same as in the picture..










share|improve this question



























    4















    Consider the following MWE



    documentclass[border=10 pt]{standalone}
    usepackage{mathtools,setspace}

    begin{document}
    $displaystyle
    {setstretch{1.5}
    begin{array}{ccccccccccccccccccccccc}
    ^{12} mathrm{C}&+&^{1} mathrm{H} &longrightarrow& ^{13}mathrm{N}&+&gamma\
    &&&&^{13} mathrm{N}& longrightarrow&^{13} mathrm{C}&+&e^{+}&+&nu\
    &&&&&&^{13} mathrm{C}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{14} mathrm{N}&+&gamma\
    &&&&&&&&&&^{14} mathrm{N}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{15} mathrm{O}&+&gamma\
    &&&&&&&&&&&&&&^{15} mathrm{O}& longrightarrow&^{15} mathrm{N}&+&e^{+}&+&nu\
    &&&&&&&&&&&&&&&&^{15} mathrm{N}&+&^{1} mathrm{H} &longrightarrow&^{12} mathrm{C}&+&^{4} mathrm{He}
    end{array}}
    $
    end{document}


    with the output
    enter image description here
    The output is pretty much what I'm looking for, but the way I get it seems rather clunky to me... Is there a better way to get the same output? The only relevant part here is that the same elements in each reaction need to be below each other... The spacing of the other parts doesn't have to be the same as in the picture..










    share|improve this question

























      4












      4








      4








      Consider the following MWE



      documentclass[border=10 pt]{standalone}
      usepackage{mathtools,setspace}

      begin{document}
      $displaystyle
      {setstretch{1.5}
      begin{array}{ccccccccccccccccccccccc}
      ^{12} mathrm{C}&+&^{1} mathrm{H} &longrightarrow& ^{13}mathrm{N}&+&gamma\
      &&&&^{13} mathrm{N}& longrightarrow&^{13} mathrm{C}&+&e^{+}&+&nu\
      &&&&&&^{13} mathrm{C}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{14} mathrm{N}&+&gamma\
      &&&&&&&&&&^{14} mathrm{N}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{15} mathrm{O}&+&gamma\
      &&&&&&&&&&&&&&^{15} mathrm{O}& longrightarrow&^{15} mathrm{N}&+&e^{+}&+&nu\
      &&&&&&&&&&&&&&&&^{15} mathrm{N}&+&^{1} mathrm{H} &longrightarrow&^{12} mathrm{C}&+&^{4} mathrm{He}
      end{array}}
      $
      end{document}


      with the output
      enter image description here
      The output is pretty much what I'm looking for, but the way I get it seems rather clunky to me... Is there a better way to get the same output? The only relevant part here is that the same elements in each reaction need to be below each other... The spacing of the other parts doesn't have to be the same as in the picture..










      share|improve this question














      Consider the following MWE



      documentclass[border=10 pt]{standalone}
      usepackage{mathtools,setspace}

      begin{document}
      $displaystyle
      {setstretch{1.5}
      begin{array}{ccccccccccccccccccccccc}
      ^{12} mathrm{C}&+&^{1} mathrm{H} &longrightarrow& ^{13}mathrm{N}&+&gamma\
      &&&&^{13} mathrm{N}& longrightarrow&^{13} mathrm{C}&+&e^{+}&+&nu\
      &&&&&&^{13} mathrm{C}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{14} mathrm{N}&+&gamma\
      &&&&&&&&&&^{14} mathrm{N}&+&^{mathrm{l}} mathrm{H}& longrightarrow&^{15} mathrm{O}&+&gamma\
      &&&&&&&&&&&&&&^{15} mathrm{O}& longrightarrow&^{15} mathrm{N}&+&e^{+}&+&nu\
      &&&&&&&&&&&&&&&&^{15} mathrm{N}&+&^{1} mathrm{H} &longrightarrow&^{12} mathrm{C}&+&^{4} mathrm{He}
      end{array}}
      $
      end{document}


      with the output
      enter image description here
      The output is pretty much what I'm looking for, but the way I get it seems rather clunky to me... Is there a better way to get the same output? The only relevant part here is that the same elements in each reaction need to be below each other... The spacing of the other parts doesn't have to be the same as in the picture..







      arrays chemistry






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago









      SitoSito

      3241212




      3241212






















          3 Answers
          3






          active

          oldest

          votes


















          3














          It's a matter of opinion whether this is less clunky...it eliminates all & tab characters, but requires multiple stackunders and some bracing.



          The appearance is a bit different, however "the same elements of each reaction are below each other", as requested by the OP. While there are no other alignments that apply one may observe that the spacing on any given line is "correct".



          documentclass[border=10 pt]{standalone}
          usepackage{mathtools,setspace,stackengine}
          begin{document}
          renewcommandstackalignment{l}
          renewcommandstacktype{L}
          setstackgap{L}{1.4baselineskip}
          stackMath
          $displaystyle
          ^{12}mathrm{C}+^{1}mathrm{H}longrightarrow stackunder{^{13}mathrm{N}+gamma}{
          ^{13}mathrm{N}longrightarrow stackunder{^{13}mathrm{C}+e^{+}+nu}{
          ^{13}mathrm{C}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{14}mathrm{N}+gamma}{
          ^{14}mathrm{N}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{15}mathrm{O}+gamma}{
          ^{15}mathrm{O}longrightarrow stackunder{^{15}mathrm{N}+e^{+}+nu}{
          ^{15}mathrm{N}+^{1}mathrm{H}longrightarrow ^{12}mathrm{C}+^{4}mathrm{He}
          }}}}}
          $
          end{document}


          enter image description here






          share|improve this answer































            2














            I suggest to align your entries like the way I did (using Tab) to make it easier to read and modify if needed.
            I have used newcommand to create a way for you to enter the data of a row and every cell in the array is encapsulated by mathrm{...}.
            Also, I changed the 23 cs you had in the array to *{23}{c}.



            Output



            documentclass[border=10 pt]{standalone}
            usepackage{mathtools,setspace}
            % Usage:
            % data{operand-1}{operator-1}{operand-2}{operator-2}{operand-3}{operator-3}{operand-4}
            % Simple example:
            % data{a}{+}{b}{-}{c}{*}{d}
            newcommand{data}[7]{%
            ensuremath{%
            mathrm{#1} & mathrm{#2} & mathrm{#3} & mathrm{#4} & mathrm{#5} & mathrm{#6} & mathrm{#7}
            }%
            }%
            begin{document}
            $displaystyle
            {setstretch{1.5}
            begin{array}{*{23}{c}}
            data{^{12} C}{+} {^{1} H} {longrightarrow} {^{13} N} {+}{gamma} \
            &&&& data{^{13} N}{longrightarrow} {^{13} C} {+} {e^{+}} {+}{nu} \
            &&&&&& data{^{13} C}{+} {^{1} H} {longrightarrow} {^{14} N} {+}{gamma} \
            &&&&&&&&&& data{^{14} N}{+} {^{1} H} {longrightarrow} {^{15} O} {+}{gamma} \
            &&&&&&&&&&&&&& data{^{15} O}{longrightarrow} {^{15} N} {+} {e^{+}} {+}{nu} \
            &&&&&&&&&&&&&&&& data{^{15} N}{+} {^{1} H} {longrightarrow} {^{12} C} {+}{^{4} He}\
            end{array}}
            $
            end{document}





            share|improve this answer

































              0














              Enough simple?



              documentclass{report}
              usepackage{mhchem,parskip}
              defa{phantom{ce{^12C + ^1H ->}}}
              defb{phantom{ce{^13N ->}}}
              begin{document}
              ce{^12C + ^1H -> ^13N + gamma}par
              ace{^13N -> ^13C + $e^+$ + nu}par
              abce{^13C + ^1H -> ^14N + gamma}
              end{document}



              mwe







              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%2f492326%2falternatives-to-achieve-certain-output-format%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                3














                It's a matter of opinion whether this is less clunky...it eliminates all & tab characters, but requires multiple stackunders and some bracing.



                The appearance is a bit different, however "the same elements of each reaction are below each other", as requested by the OP. While there are no other alignments that apply one may observe that the spacing on any given line is "correct".



                documentclass[border=10 pt]{standalone}
                usepackage{mathtools,setspace,stackengine}
                begin{document}
                renewcommandstackalignment{l}
                renewcommandstacktype{L}
                setstackgap{L}{1.4baselineskip}
                stackMath
                $displaystyle
                ^{12}mathrm{C}+^{1}mathrm{H}longrightarrow stackunder{^{13}mathrm{N}+gamma}{
                ^{13}mathrm{N}longrightarrow stackunder{^{13}mathrm{C}+e^{+}+nu}{
                ^{13}mathrm{C}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{14}mathrm{N}+gamma}{
                ^{14}mathrm{N}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{15}mathrm{O}+gamma}{
                ^{15}mathrm{O}longrightarrow stackunder{^{15}mathrm{N}+e^{+}+nu}{
                ^{15}mathrm{N}+^{1}mathrm{H}longrightarrow ^{12}mathrm{C}+^{4}mathrm{He}
                }}}}}
                $
                end{document}


                enter image description here






                share|improve this answer




























                  3














                  It's a matter of opinion whether this is less clunky...it eliminates all & tab characters, but requires multiple stackunders and some bracing.



                  The appearance is a bit different, however "the same elements of each reaction are below each other", as requested by the OP. While there are no other alignments that apply one may observe that the spacing on any given line is "correct".



                  documentclass[border=10 pt]{standalone}
                  usepackage{mathtools,setspace,stackengine}
                  begin{document}
                  renewcommandstackalignment{l}
                  renewcommandstacktype{L}
                  setstackgap{L}{1.4baselineskip}
                  stackMath
                  $displaystyle
                  ^{12}mathrm{C}+^{1}mathrm{H}longrightarrow stackunder{^{13}mathrm{N}+gamma}{
                  ^{13}mathrm{N}longrightarrow stackunder{^{13}mathrm{C}+e^{+}+nu}{
                  ^{13}mathrm{C}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{14}mathrm{N}+gamma}{
                  ^{14}mathrm{N}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{15}mathrm{O}+gamma}{
                  ^{15}mathrm{O}longrightarrow stackunder{^{15}mathrm{N}+e^{+}+nu}{
                  ^{15}mathrm{N}+^{1}mathrm{H}longrightarrow ^{12}mathrm{C}+^{4}mathrm{He}
                  }}}}}
                  $
                  end{document}


                  enter image description here






                  share|improve this answer


























                    3












                    3








                    3







                    It's a matter of opinion whether this is less clunky...it eliminates all & tab characters, but requires multiple stackunders and some bracing.



                    The appearance is a bit different, however "the same elements of each reaction are below each other", as requested by the OP. While there are no other alignments that apply one may observe that the spacing on any given line is "correct".



                    documentclass[border=10 pt]{standalone}
                    usepackage{mathtools,setspace,stackengine}
                    begin{document}
                    renewcommandstackalignment{l}
                    renewcommandstacktype{L}
                    setstackgap{L}{1.4baselineskip}
                    stackMath
                    $displaystyle
                    ^{12}mathrm{C}+^{1}mathrm{H}longrightarrow stackunder{^{13}mathrm{N}+gamma}{
                    ^{13}mathrm{N}longrightarrow stackunder{^{13}mathrm{C}+e^{+}+nu}{
                    ^{13}mathrm{C}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{14}mathrm{N}+gamma}{
                    ^{14}mathrm{N}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{15}mathrm{O}+gamma}{
                    ^{15}mathrm{O}longrightarrow stackunder{^{15}mathrm{N}+e^{+}+nu}{
                    ^{15}mathrm{N}+^{1}mathrm{H}longrightarrow ^{12}mathrm{C}+^{4}mathrm{He}
                    }}}}}
                    $
                    end{document}


                    enter image description here






                    share|improve this answer













                    It's a matter of opinion whether this is less clunky...it eliminates all & tab characters, but requires multiple stackunders and some bracing.



                    The appearance is a bit different, however "the same elements of each reaction are below each other", as requested by the OP. While there are no other alignments that apply one may observe that the spacing on any given line is "correct".



                    documentclass[border=10 pt]{standalone}
                    usepackage{mathtools,setspace,stackengine}
                    begin{document}
                    renewcommandstackalignment{l}
                    renewcommandstacktype{L}
                    setstackgap{L}{1.4baselineskip}
                    stackMath
                    $displaystyle
                    ^{12}mathrm{C}+^{1}mathrm{H}longrightarrow stackunder{^{13}mathrm{N}+gamma}{
                    ^{13}mathrm{N}longrightarrow stackunder{^{13}mathrm{C}+e^{+}+nu}{
                    ^{13}mathrm{C}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{14}mathrm{N}+gamma}{
                    ^{14}mathrm{N}+^{mathrm{l}}mathrm{H}longrightarrow stackunder{^{15}mathrm{O}+gamma}{
                    ^{15}mathrm{O}longrightarrow stackunder{^{15}mathrm{N}+e^{+}+nu}{
                    ^{15}mathrm{N}+^{1}mathrm{H}longrightarrow ^{12}mathrm{C}+^{4}mathrm{He}
                    }}}}}
                    $
                    end{document}


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 8 hours ago









                    Steven B. SegletesSteven B. Segletes

                    166k9209426




                    166k9209426























                        2














                        I suggest to align your entries like the way I did (using Tab) to make it easier to read and modify if needed.
                        I have used newcommand to create a way for you to enter the data of a row and every cell in the array is encapsulated by mathrm{...}.
                        Also, I changed the 23 cs you had in the array to *{23}{c}.



                        Output



                        documentclass[border=10 pt]{standalone}
                        usepackage{mathtools,setspace}
                        % Usage:
                        % data{operand-1}{operator-1}{operand-2}{operator-2}{operand-3}{operator-3}{operand-4}
                        % Simple example:
                        % data{a}{+}{b}{-}{c}{*}{d}
                        newcommand{data}[7]{%
                        ensuremath{%
                        mathrm{#1} & mathrm{#2} & mathrm{#3} & mathrm{#4} & mathrm{#5} & mathrm{#6} & mathrm{#7}
                        }%
                        }%
                        begin{document}
                        $displaystyle
                        {setstretch{1.5}
                        begin{array}{*{23}{c}}
                        data{^{12} C}{+} {^{1} H} {longrightarrow} {^{13} N} {+}{gamma} \
                        &&&& data{^{13} N}{longrightarrow} {^{13} C} {+} {e^{+}} {+}{nu} \
                        &&&&&& data{^{13} C}{+} {^{1} H} {longrightarrow} {^{14} N} {+}{gamma} \
                        &&&&&&&&&& data{^{14} N}{+} {^{1} H} {longrightarrow} {^{15} O} {+}{gamma} \
                        &&&&&&&&&&&&&& data{^{15} O}{longrightarrow} {^{15} N} {+} {e^{+}} {+}{nu} \
                        &&&&&&&&&&&&&&&& data{^{15} N}{+} {^{1} H} {longrightarrow} {^{12} C} {+}{^{4} He}\
                        end{array}}
                        $
                        end{document}





                        share|improve this answer






























                          2














                          I suggest to align your entries like the way I did (using Tab) to make it easier to read and modify if needed.
                          I have used newcommand to create a way for you to enter the data of a row and every cell in the array is encapsulated by mathrm{...}.
                          Also, I changed the 23 cs you had in the array to *{23}{c}.



                          Output



                          documentclass[border=10 pt]{standalone}
                          usepackage{mathtools,setspace}
                          % Usage:
                          % data{operand-1}{operator-1}{operand-2}{operator-2}{operand-3}{operator-3}{operand-4}
                          % Simple example:
                          % data{a}{+}{b}{-}{c}{*}{d}
                          newcommand{data}[7]{%
                          ensuremath{%
                          mathrm{#1} & mathrm{#2} & mathrm{#3} & mathrm{#4} & mathrm{#5} & mathrm{#6} & mathrm{#7}
                          }%
                          }%
                          begin{document}
                          $displaystyle
                          {setstretch{1.5}
                          begin{array}{*{23}{c}}
                          data{^{12} C}{+} {^{1} H} {longrightarrow} {^{13} N} {+}{gamma} \
                          &&&& data{^{13} N}{longrightarrow} {^{13} C} {+} {e^{+}} {+}{nu} \
                          &&&&&& data{^{13} C}{+} {^{1} H} {longrightarrow} {^{14} N} {+}{gamma} \
                          &&&&&&&&&& data{^{14} N}{+} {^{1} H} {longrightarrow} {^{15} O} {+}{gamma} \
                          &&&&&&&&&&&&&& data{^{15} O}{longrightarrow} {^{15} N} {+} {e^{+}} {+}{nu} \
                          &&&&&&&&&&&&&&&& data{^{15} N}{+} {^{1} H} {longrightarrow} {^{12} C} {+}{^{4} He}\
                          end{array}}
                          $
                          end{document}





                          share|improve this answer




























                            2












                            2








                            2







                            I suggest to align your entries like the way I did (using Tab) to make it easier to read and modify if needed.
                            I have used newcommand to create a way for you to enter the data of a row and every cell in the array is encapsulated by mathrm{...}.
                            Also, I changed the 23 cs you had in the array to *{23}{c}.



                            Output



                            documentclass[border=10 pt]{standalone}
                            usepackage{mathtools,setspace}
                            % Usage:
                            % data{operand-1}{operator-1}{operand-2}{operator-2}{operand-3}{operator-3}{operand-4}
                            % Simple example:
                            % data{a}{+}{b}{-}{c}{*}{d}
                            newcommand{data}[7]{%
                            ensuremath{%
                            mathrm{#1} & mathrm{#2} & mathrm{#3} & mathrm{#4} & mathrm{#5} & mathrm{#6} & mathrm{#7}
                            }%
                            }%
                            begin{document}
                            $displaystyle
                            {setstretch{1.5}
                            begin{array}{*{23}{c}}
                            data{^{12} C}{+} {^{1} H} {longrightarrow} {^{13} N} {+}{gamma} \
                            &&&& data{^{13} N}{longrightarrow} {^{13} C} {+} {e^{+}} {+}{nu} \
                            &&&&&& data{^{13} C}{+} {^{1} H} {longrightarrow} {^{14} N} {+}{gamma} \
                            &&&&&&&&&& data{^{14} N}{+} {^{1} H} {longrightarrow} {^{15} O} {+}{gamma} \
                            &&&&&&&&&&&&&& data{^{15} O}{longrightarrow} {^{15} N} {+} {e^{+}} {+}{nu} \
                            &&&&&&&&&&&&&&&& data{^{15} N}{+} {^{1} H} {longrightarrow} {^{12} C} {+}{^{4} He}\
                            end{array}}
                            $
                            end{document}





                            share|improve this answer















                            I suggest to align your entries like the way I did (using Tab) to make it easier to read and modify if needed.
                            I have used newcommand to create a way for you to enter the data of a row and every cell in the array is encapsulated by mathrm{...}.
                            Also, I changed the 23 cs you had in the array to *{23}{c}.



                            Output



                            documentclass[border=10 pt]{standalone}
                            usepackage{mathtools,setspace}
                            % Usage:
                            % data{operand-1}{operator-1}{operand-2}{operator-2}{operand-3}{operator-3}{operand-4}
                            % Simple example:
                            % data{a}{+}{b}{-}{c}{*}{d}
                            newcommand{data}[7]{%
                            ensuremath{%
                            mathrm{#1} & mathrm{#2} & mathrm{#3} & mathrm{#4} & mathrm{#5} & mathrm{#6} & mathrm{#7}
                            }%
                            }%
                            begin{document}
                            $displaystyle
                            {setstretch{1.5}
                            begin{array}{*{23}{c}}
                            data{^{12} C}{+} {^{1} H} {longrightarrow} {^{13} N} {+}{gamma} \
                            &&&& data{^{13} N}{longrightarrow} {^{13} C} {+} {e^{+}} {+}{nu} \
                            &&&&&& data{^{13} C}{+} {^{1} H} {longrightarrow} {^{14} N} {+}{gamma} \
                            &&&&&&&&&& data{^{14} N}{+} {^{1} H} {longrightarrow} {^{15} O} {+}{gamma} \
                            &&&&&&&&&&&&&& data{^{15} O}{longrightarrow} {^{15} N} {+} {e^{+}} {+}{nu} \
                            &&&&&&&&&&&&&&&& data{^{15} N}{+} {^{1} H} {longrightarrow} {^{12} C} {+}{^{4} He}\
                            end{array}}
                            $
                            end{document}






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 8 hours ago

























                            answered 8 hours ago









                            M. Al JumailyM. Al Jumaily

                            1,1361210




                            1,1361210























                                0














                                Enough simple?



                                documentclass{report}
                                usepackage{mhchem,parskip}
                                defa{phantom{ce{^12C + ^1H ->}}}
                                defb{phantom{ce{^13N ->}}}
                                begin{document}
                                ce{^12C + ^1H -> ^13N + gamma}par
                                ace{^13N -> ^13C + $e^+$ + nu}par
                                abce{^13C + ^1H -> ^14N + gamma}
                                end{document}



                                mwe







                                share|improve this answer




























                                  0














                                  Enough simple?



                                  documentclass{report}
                                  usepackage{mhchem,parskip}
                                  defa{phantom{ce{^12C + ^1H ->}}}
                                  defb{phantom{ce{^13N ->}}}
                                  begin{document}
                                  ce{^12C + ^1H -> ^13N + gamma}par
                                  ace{^13N -> ^13C + $e^+$ + nu}par
                                  abce{^13C + ^1H -> ^14N + gamma}
                                  end{document}



                                  mwe







                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    Enough simple?



                                    documentclass{report}
                                    usepackage{mhchem,parskip}
                                    defa{phantom{ce{^12C + ^1H ->}}}
                                    defb{phantom{ce{^13N ->}}}
                                    begin{document}
                                    ce{^12C + ^1H -> ^13N + gamma}par
                                    ace{^13N -> ^13C + $e^+$ + nu}par
                                    abce{^13C + ^1H -> ^14N + gamma}
                                    end{document}



                                    mwe







                                    share|improve this answer













                                    Enough simple?



                                    documentclass{report}
                                    usepackage{mhchem,parskip}
                                    defa{phantom{ce{^12C + ^1H ->}}}
                                    defb{phantom{ce{^13N ->}}}
                                    begin{document}
                                    ce{^12C + ^1H -> ^13N + gamma}par
                                    ace{^13N -> ^13C + $e^+$ + nu}par
                                    abce{^13C + ^1H -> ^14N + gamma}
                                    end{document}



                                    mwe








                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 1 hour ago









                                    FranFran

                                    54.3k6122184




                                    54.3k6122184






























                                        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%2f492326%2falternatives-to-achieve-certain-output-format%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

                                        Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                                        Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                                        Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...