Alternatives to achieve certain output formatDynamically 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

Multi tool use
Alternatives to achieve certain output format
Why does Mjolnir fall down in Age of Ultron but not in Endgame?
How to patch glass cuts in a bicycle tire?
Pirate democracy at its finest
Need to read my home electrical meter
Why isn't 'chemically-strengthened glass' made with potassium carbonate to begin with?
Why didn't Thanos use the Time Stone to stop the Avengers' plan?
Is the field of q-series 'dead'?
Where have Brexit voters gone?
How to let other coworkers know that I don't share my coworker's political views?
When the Torah was almost lost and one (or several) Rabbis saved it?
I know that there is a preselected candidate for a position to be filled at my department. What should I do?
Why are GND pads often only connected by four traces?
Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?
How to reverse input order?
Best material to absorb as much light as possible
Could a 19.25mm revolver actually exist?
Can a British citizen living in France vote in both France and Britain in the European Elections?
Does pair production happen even when the photon is around a neutron?
Construct a word ladder
Count Even Digits In Number
Compaq Portable vs IBM 5155 Portable PC
Is there an online tool which supports shared writing?
Have 1.5% of all nuclear reactors ever built melted down?
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
Consider the following MWE
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
begindocument
$displaystyle
setstretch1.5
beginarrayccccccccccccccccccccccc
^12 mathrmC&+&^1 mathrmH &longrightarrow& ^13mathrmN&+&gamma\
&&&&^13 mathrmN& longrightarrow&^13 mathrmC&+&e^+&+&nu\
&&&&&&^13 mathrmC&+&^mathrml mathrmH& longrightarrow&^14 mathrmN&+&gamma\
&&&&&&&&&&^14 mathrmN&+&^mathrml mathrmH& longrightarrow&^15 mathrmO&+&gamma\
&&&&&&&&&&&&&&^15 mathrmO& longrightarrow&^15 mathrmN&+&e^+&+&nu\
&&&&&&&&&&&&&&&&^15 mathrmN&+&^1 mathrmH &longrightarrow&^12 mathrmC&+&^4 mathrmHe
endarray
$
enddocument
with the output
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
add a comment |
Consider the following MWE
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
begindocument
$displaystyle
setstretch1.5
beginarrayccccccccccccccccccccccc
^12 mathrmC&+&^1 mathrmH &longrightarrow& ^13mathrmN&+&gamma\
&&&&^13 mathrmN& longrightarrow&^13 mathrmC&+&e^+&+&nu\
&&&&&&^13 mathrmC&+&^mathrml mathrmH& longrightarrow&^14 mathrmN&+&gamma\
&&&&&&&&&&^14 mathrmN&+&^mathrml mathrmH& longrightarrow&^15 mathrmO&+&gamma\
&&&&&&&&&&&&&&^15 mathrmO& longrightarrow&^15 mathrmN&+&e^+&+&nu\
&&&&&&&&&&&&&&&&^15 mathrmN&+&^1 mathrmH &longrightarrow&^12 mathrmC&+&^4 mathrmHe
endarray
$
enddocument
with the output
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
add a comment |
Consider the following MWE
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
begindocument
$displaystyle
setstretch1.5
beginarrayccccccccccccccccccccccc
^12 mathrmC&+&^1 mathrmH &longrightarrow& ^13mathrmN&+&gamma\
&&&&^13 mathrmN& longrightarrow&^13 mathrmC&+&e^+&+&nu\
&&&&&&^13 mathrmC&+&^mathrml mathrmH& longrightarrow&^14 mathrmN&+&gamma\
&&&&&&&&&&^14 mathrmN&+&^mathrml mathrmH& longrightarrow&^15 mathrmO&+&gamma\
&&&&&&&&&&&&&&^15 mathrmO& longrightarrow&^15 mathrmN&+&e^+&+&nu\
&&&&&&&&&&&&&&&&^15 mathrmN&+&^1 mathrmH &longrightarrow&^12 mathrmC&+&^4 mathrmHe
endarray
$
enddocument
with the output
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
Consider the following MWE
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
begindocument
$displaystyle
setstretch1.5
beginarrayccccccccccccccccccccccc
^12 mathrmC&+&^1 mathrmH &longrightarrow& ^13mathrmN&+&gamma\
&&&&^13 mathrmN& longrightarrow&^13 mathrmC&+&e^+&+&nu\
&&&&&&^13 mathrmC&+&^mathrml mathrmH& longrightarrow&^14 mathrmN&+&gamma\
&&&&&&&&&&^14 mathrmN&+&^mathrml mathrmH& longrightarrow&^15 mathrmO&+&gamma\
&&&&&&&&&&&&&&^15 mathrmO& longrightarrow&^15 mathrmN&+&e^+&+&nu\
&&&&&&&&&&&&&&&&^15 mathrmN&+&^1 mathrmH &longrightarrow&^12 mathrmC&+&^4 mathrmHe
endarray
$
enddocument
with the output
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
arrays chemistry
asked 9 hours ago
SitoSito
3241212
3241212
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
It's a matter of opinion whether this is less clunky...it eliminates all &
tab characters, but requires multiple stackunder
s 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
usepackagemathtools,setspace,stackengine
begindocument
renewcommandstackalignmentl
renewcommandstacktypeL
setstackgapL1.4baselineskip
stackMath
$displaystyle
^12mathrmC+^1mathrmHlongrightarrow stackunder^13mathrmN+gamma
^13mathrmNlongrightarrow stackunder^13mathrmC+e^++nu
^13mathrmC+^mathrmlmathrmHlongrightarrow stackunder^14mathrmN+gamma
^14mathrmN+^mathrmlmathrmHlongrightarrow stackunder^15mathrmO+gamma
^15mathrmOlongrightarrow stackunder^15mathrmN+e^++nu
^15mathrmN+^1mathrmHlongrightarrow ^12mathrmC+^4mathrmHe
$
enddocument
add a comment |
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 c
s you had in the array to *23c
.
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
% Usage:
% dataoperand-1operator-1operand-2operator-2operand-3operator-3operand-4
% Simple example:
% dataa+b-c*d
newcommanddata[7]%
ensuremath%
mathrm#1 & mathrm#2 & mathrm#3 & mathrm#4 & mathrm#5 & mathrm#6 & mathrm#7
%
%
begindocument
$displaystyle
setstretch1.5
beginarray*23c
data^12 C+ ^1 H longrightarrow ^13 N +gamma \
&&&& data^13 Nlongrightarrow ^13 C + e^+ +nu \
&&&&&& data^13 C+ ^1 H longrightarrow ^14 N +gamma \
&&&&&&&&&& data^14 N+ ^1 H longrightarrow ^15 O +gamma \
&&&&&&&&&&&&&& data^15 Olongrightarrow ^15 N + e^+ +nu \
&&&&&&&&&&&&&&&& data^15 N+ ^1 H longrightarrow ^12 C +^4 He\
endarray
$
enddocument
add a comment |
Enough simple?
documentclassreport
usepackagemhchem,parskip
defaphantomce^12C + ^1H ->
defbphantomce^13N ->
begindocument
ce^12C + ^1H -> ^13N + gammapar
ace^13N -> ^13C + $e^+$ + nupar
abce^13C + ^1H -> ^14N + gamma
enddocument
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
It's a matter of opinion whether this is less clunky...it eliminates all &
tab characters, but requires multiple stackunder
s 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
usepackagemathtools,setspace,stackengine
begindocument
renewcommandstackalignmentl
renewcommandstacktypeL
setstackgapL1.4baselineskip
stackMath
$displaystyle
^12mathrmC+^1mathrmHlongrightarrow stackunder^13mathrmN+gamma
^13mathrmNlongrightarrow stackunder^13mathrmC+e^++nu
^13mathrmC+^mathrmlmathrmHlongrightarrow stackunder^14mathrmN+gamma
^14mathrmN+^mathrmlmathrmHlongrightarrow stackunder^15mathrmO+gamma
^15mathrmOlongrightarrow stackunder^15mathrmN+e^++nu
^15mathrmN+^1mathrmHlongrightarrow ^12mathrmC+^4mathrmHe
$
enddocument
add a comment |
It's a matter of opinion whether this is less clunky...it eliminates all &
tab characters, but requires multiple stackunder
s 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
usepackagemathtools,setspace,stackengine
begindocument
renewcommandstackalignmentl
renewcommandstacktypeL
setstackgapL1.4baselineskip
stackMath
$displaystyle
^12mathrmC+^1mathrmHlongrightarrow stackunder^13mathrmN+gamma
^13mathrmNlongrightarrow stackunder^13mathrmC+e^++nu
^13mathrmC+^mathrmlmathrmHlongrightarrow stackunder^14mathrmN+gamma
^14mathrmN+^mathrmlmathrmHlongrightarrow stackunder^15mathrmO+gamma
^15mathrmOlongrightarrow stackunder^15mathrmN+e^++nu
^15mathrmN+^1mathrmHlongrightarrow ^12mathrmC+^4mathrmHe
$
enddocument
add a comment |
It's a matter of opinion whether this is less clunky...it eliminates all &
tab characters, but requires multiple stackunder
s 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
usepackagemathtools,setspace,stackengine
begindocument
renewcommandstackalignmentl
renewcommandstacktypeL
setstackgapL1.4baselineskip
stackMath
$displaystyle
^12mathrmC+^1mathrmHlongrightarrow stackunder^13mathrmN+gamma
^13mathrmNlongrightarrow stackunder^13mathrmC+e^++nu
^13mathrmC+^mathrmlmathrmHlongrightarrow stackunder^14mathrmN+gamma
^14mathrmN+^mathrmlmathrmHlongrightarrow stackunder^15mathrmO+gamma
^15mathrmOlongrightarrow stackunder^15mathrmN+e^++nu
^15mathrmN+^1mathrmHlongrightarrow ^12mathrmC+^4mathrmHe
$
enddocument
It's a matter of opinion whether this is less clunky...it eliminates all &
tab characters, but requires multiple stackunder
s 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
usepackagemathtools,setspace,stackengine
begindocument
renewcommandstackalignmentl
renewcommandstacktypeL
setstackgapL1.4baselineskip
stackMath
$displaystyle
^12mathrmC+^1mathrmHlongrightarrow stackunder^13mathrmN+gamma
^13mathrmNlongrightarrow stackunder^13mathrmC+e^++nu
^13mathrmC+^mathrmlmathrmHlongrightarrow stackunder^14mathrmN+gamma
^14mathrmN+^mathrmlmathrmHlongrightarrow stackunder^15mathrmO+gamma
^15mathrmOlongrightarrow stackunder^15mathrmN+e^++nu
^15mathrmN+^1mathrmHlongrightarrow ^12mathrmC+^4mathrmHe
$
enddocument
answered 8 hours ago


Steven B. SegletesSteven B. Segletes
166k9209426
166k9209426
add a comment |
add a comment |
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 c
s you had in the array to *23c
.
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
% Usage:
% dataoperand-1operator-1operand-2operator-2operand-3operator-3operand-4
% Simple example:
% dataa+b-c*d
newcommanddata[7]%
ensuremath%
mathrm#1 & mathrm#2 & mathrm#3 & mathrm#4 & mathrm#5 & mathrm#6 & mathrm#7
%
%
begindocument
$displaystyle
setstretch1.5
beginarray*23c
data^12 C+ ^1 H longrightarrow ^13 N +gamma \
&&&& data^13 Nlongrightarrow ^13 C + e^+ +nu \
&&&&&& data^13 C+ ^1 H longrightarrow ^14 N +gamma \
&&&&&&&&&& data^14 N+ ^1 H longrightarrow ^15 O +gamma \
&&&&&&&&&&&&&& data^15 Olongrightarrow ^15 N + e^+ +nu \
&&&&&&&&&&&&&&&& data^15 N+ ^1 H longrightarrow ^12 C +^4 He\
endarray
$
enddocument
add a comment |
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 c
s you had in the array to *23c
.
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
% Usage:
% dataoperand-1operator-1operand-2operator-2operand-3operator-3operand-4
% Simple example:
% dataa+b-c*d
newcommanddata[7]%
ensuremath%
mathrm#1 & mathrm#2 & mathrm#3 & mathrm#4 & mathrm#5 & mathrm#6 & mathrm#7
%
%
begindocument
$displaystyle
setstretch1.5
beginarray*23c
data^12 C+ ^1 H longrightarrow ^13 N +gamma \
&&&& data^13 Nlongrightarrow ^13 C + e^+ +nu \
&&&&&& data^13 C+ ^1 H longrightarrow ^14 N +gamma \
&&&&&&&&&& data^14 N+ ^1 H longrightarrow ^15 O +gamma \
&&&&&&&&&&&&&& data^15 Olongrightarrow ^15 N + e^+ +nu \
&&&&&&&&&&&&&&&& data^15 N+ ^1 H longrightarrow ^12 C +^4 He\
endarray
$
enddocument
add a comment |
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 c
s you had in the array to *23c
.
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
% Usage:
% dataoperand-1operator-1operand-2operator-2operand-3operator-3operand-4
% Simple example:
% dataa+b-c*d
newcommanddata[7]%
ensuremath%
mathrm#1 & mathrm#2 & mathrm#3 & mathrm#4 & mathrm#5 & mathrm#6 & mathrm#7
%
%
begindocument
$displaystyle
setstretch1.5
beginarray*23c
data^12 C+ ^1 H longrightarrow ^13 N +gamma \
&&&& data^13 Nlongrightarrow ^13 C + e^+ +nu \
&&&&&& data^13 C+ ^1 H longrightarrow ^14 N +gamma \
&&&&&&&&&& data^14 N+ ^1 H longrightarrow ^15 O +gamma \
&&&&&&&&&&&&&& data^15 Olongrightarrow ^15 N + e^+ +nu \
&&&&&&&&&&&&&&&& data^15 N+ ^1 H longrightarrow ^12 C +^4 He\
endarray
$
enddocument
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 c
s you had in the array to *23c
.
documentclass[border=10 pt]standalone
usepackagemathtools,setspace
% Usage:
% dataoperand-1operator-1operand-2operator-2operand-3operator-3operand-4
% Simple example:
% dataa+b-c*d
newcommanddata[7]%
ensuremath%
mathrm#1 & mathrm#2 & mathrm#3 & mathrm#4 & mathrm#5 & mathrm#6 & mathrm#7
%
%
begindocument
$displaystyle
setstretch1.5
beginarray*23c
data^12 C+ ^1 H longrightarrow ^13 N +gamma \
&&&& data^13 Nlongrightarrow ^13 C + e^+ +nu \
&&&&&& data^13 C+ ^1 H longrightarrow ^14 N +gamma \
&&&&&&&&&& data^14 N+ ^1 H longrightarrow ^15 O +gamma \
&&&&&&&&&&&&&& data^15 Olongrightarrow ^15 N + e^+ +nu \
&&&&&&&&&&&&&&&& data^15 N+ ^1 H longrightarrow ^12 C +^4 He\
endarray
$
enddocument
edited 8 hours ago
answered 8 hours ago


M. Al JumailyM. Al Jumaily
1,1361210
1,1361210
add a comment |
add a comment |
Enough simple?
documentclassreport
usepackagemhchem,parskip
defaphantomce^12C + ^1H ->
defbphantomce^13N ->
begindocument
ce^12C + ^1H -> ^13N + gammapar
ace^13N -> ^13C + $e^+$ + nupar
abce^13C + ^1H -> ^14N + gamma
enddocument
add a comment |
Enough simple?
documentclassreport
usepackagemhchem,parskip
defaphantomce^12C + ^1H ->
defbphantomce^13N ->
begindocument
ce^12C + ^1H -> ^13N + gammapar
ace^13N -> ^13C + $e^+$ + nupar
abce^13C + ^1H -> ^14N + gamma
enddocument
add a comment |
Enough simple?
documentclassreport
usepackagemhchem,parskip
defaphantomce^12C + ^1H ->
defbphantomce^13N ->
begindocument
ce^12C + ^1H -> ^13N + gammapar
ace^13N -> ^13C + $e^+$ + nupar
abce^13C + ^1H -> ^14N + gamma
enddocument
Enough simple?
documentclassreport
usepackagemhchem,parskip
defaphantomce^12C + ^1H ->
defbphantomce^13N ->
begindocument
ce^12C + ^1H -> ^13N + gammapar
ace^13N -> ^13C + $e^+$ + nupar
abce^13C + ^1H -> ^14N + gamma
enddocument
answered 1 hour ago
FranFran
54.3k6122184
54.3k6122184
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
0BF9bOJEAliK31 WTSIGNKcL nDSX4jY0 qzgmd CqKNQiMvPyro9O4kil4YMO