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
What does $!# mean in Shell scripting?
The art of clickbait captions
Where's this lookout in Nova Scotia?
How to respond to upset student?
Why did Theresa May offer a vote on a second Brexit referendum?
Did this character show any indication of wanting to rule before S8E6?
Can my floppy disk still work without a shutter spring?
Efficient Algorithm for the boundary of a set of tiles
Can I connect my older mathematica front-end to the free wolfram engine?
Can a British citizen living in France vote in both France and Britain in the European Elections?
Remove CiviCRM and Drupal links / banner on profile form
What is the function of the corrugations on a section of the Space Shuttle's external tank?
USPS Back Room - Trespassing?
Why did the person in charge of a principality not just declare themself king?
Can I tell a prospective employee that everyone in the team is leaving?
Is it legal to meet with potential future employers in the UK, whilst visiting from the USA
Website returning plaintext password
Why aren't space telescopes put in GEO?
How to patch glass cuts in a bicycle tire?
How to ignore kerning of underbrace in math mode
Does pair production happen even when the photon is around a neutron?
How to deal with a colleague who is being aggressive?
Can a person survive on blood in place of water?
NIntegrate doesn't evaluate
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 8 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 7 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 7 hours ago
answered 7 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 44 mins 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