Align equations within one columnAlign Equations Over Multiple Tabular RowsAligned equations in tablesAdd...
Generate basis elements of the Steenrod algebra
Overlapping String-Blocks
How do free-speech protections in the United States apply in public to corporate misrepresentations?
Why was this person allowed to become Grand Maester?
Is it possible to have a wealthy country without a middle class?
Why are trash cans referred to as "zafacón" in Puerto Rico?
How come the nude protesters were not arrested?
How to handle (one's own) self-harm scars (on the arm), in a work environment?
Why does logistic function use e rather than 2?
Second (easy access) account in case my bank screws up
US doctor working in Tripoli wants me to open online account
I have a problematic assistant manager, but I can't fire him
60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race
Non-aqueous eyes?
Are polynomials with the same roots identical?
Why we don’t make use of the t-distribution for constructing a confidence interval for a proportion?
Which languages would be most useful in Europe at the end of the 19th century?
How can I get an unreasonable manager to approve time off?
Wooden cooking layout
How to communicate to my GM that not being allowed to use stealth isn't fun for me?
A map of non-pathological topology?
How can I search for all contacts without email?
Can I utilise a baking stone to make crepes?
Warning about needing "authorization" when booking ticket
Align equations within one column
Align Equations Over Multiple Tabular RowsAligned equations in tablesAdd extra space only between two specific columns of a tabular without adding extra columnsEquation align two column to one column with page widthtabu package - gaps in vertical linesWhat options are there to globally format tables also allowing local overrides?How do I align equations?Vertically align checkmark in table columnAlign equationsHow to align equations in two columns?Custom styling for printing glossary in document - textwidth for tabular style & print headersTop alignment using longtable and multicolumn
I have the following table in latex:
usepackage{booktabs}
usepackage{amsmath}
%%%
begin{table}
begin{tabular}{l@{hskip 4.8cm} c}
toprule
multicolumn{1}{l}{Conversion} & multicolumn{1}{c}{Formula} \
midrule
RR to OR & $mbox{OR} = cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm]
d to OR & $mbox{OR} = exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d} = cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d} = cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
bottomrule
end{tabular}
end{table}
I would like to align the equations in the right column, but for some reason I just cannot figure out how to do it. I have found a few similar questions on stackexchange (e.g., here). Most of the solutions use begin{aligned}
and end{aligned}
. The problem with that is that I do not know where to place the aligned environment since I only need it for the right-hand column.
Thanks a million!
tables equations vertical-alignment
New contributor
add a comment |
I have the following table in latex:
usepackage{booktabs}
usepackage{amsmath}
%%%
begin{table}
begin{tabular}{l@{hskip 4.8cm} c}
toprule
multicolumn{1}{l}{Conversion} & multicolumn{1}{c}{Formula} \
midrule
RR to OR & $mbox{OR} = cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm]
d to OR & $mbox{OR} = exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d} = cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d} = cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
bottomrule
end{tabular}
end{table}
I would like to align the equations in the right column, but for some reason I just cannot figure out how to do it. I have found a few similar questions on stackexchange (e.g., here). Most of the solutions use begin{aligned}
and end{aligned}
. The problem with that is that I do not know where to place the aligned environment since I only need it for the right-hand column.
Thanks a million!
tables equations vertical-alignment
New contributor
1
You could use a three column tabular and split up the equations at the = sign into a right and a left aligned column. The spacing between the columns can be adjusted using @{width of your choice}.
– leandriis
9 hours ago
1
Related and most likely interesting: tex.stackexchange.com/q/78788/134144
– leandriis
9 hours ago
add a comment |
I have the following table in latex:
usepackage{booktabs}
usepackage{amsmath}
%%%
begin{table}
begin{tabular}{l@{hskip 4.8cm} c}
toprule
multicolumn{1}{l}{Conversion} & multicolumn{1}{c}{Formula} \
midrule
RR to OR & $mbox{OR} = cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm]
d to OR & $mbox{OR} = exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d} = cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d} = cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
bottomrule
end{tabular}
end{table}
I would like to align the equations in the right column, but for some reason I just cannot figure out how to do it. I have found a few similar questions on stackexchange (e.g., here). Most of the solutions use begin{aligned}
and end{aligned}
. The problem with that is that I do not know where to place the aligned environment since I only need it for the right-hand column.
Thanks a million!
tables equations vertical-alignment
New contributor
I have the following table in latex:
usepackage{booktabs}
usepackage{amsmath}
%%%
begin{table}
begin{tabular}{l@{hskip 4.8cm} c}
toprule
multicolumn{1}{l}{Conversion} & multicolumn{1}{c}{Formula} \
midrule
RR to OR & $mbox{OR} = cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm]
d to OR & $mbox{OR} = exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d} = cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d} = cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
bottomrule
end{tabular}
end{table}
I would like to align the equations in the right column, but for some reason I just cannot figure out how to do it. I have found a few similar questions on stackexchange (e.g., here). Most of the solutions use begin{aligned}
and end{aligned}
. The problem with that is that I do not know where to place the aligned environment since I only need it for the right-hand column.
Thanks a million!
tables equations vertical-alignment
tables equations vertical-alignment
New contributor
New contributor
edited 8 hours ago
Matthias
New contributor
asked 9 hours ago
MatthiasMatthias
235
235
New contributor
New contributor
1
You could use a three column tabular and split up the equations at the = sign into a right and a left aligned column. The spacing between the columns can be adjusted using @{width of your choice}.
– leandriis
9 hours ago
1
Related and most likely interesting: tex.stackexchange.com/q/78788/134144
– leandriis
9 hours ago
add a comment |
1
You could use a three column tabular and split up the equations at the = sign into a right and a left aligned column. The spacing between the columns can be adjusted using @{width of your choice}.
– leandriis
9 hours ago
1
Related and most likely interesting: tex.stackexchange.com/q/78788/134144
– leandriis
9 hours ago
1
1
You could use a three column tabular and split up the equations at the = sign into a right and a left aligned column. The spacing between the columns can be adjusted using @{width of your choice}.
– leandriis
9 hours ago
You could use a three column tabular and split up the equations at the = sign into a right and a left aligned column. The spacing between the columns can be adjusted using @{width of your choice}.
– leandriis
9 hours ago
1
1
Related and most likely interesting: tex.stackexchange.com/q/78788/134144
– leandriis
9 hours ago
Related and most likely interesting: tex.stackexchange.com/q/78788/134144
– leandriis
9 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Well, one possibility is to change second column c
to use three columns rcl
and divide your formula into three parts: left part of formula, =
, right part of formula.
Please see the following mwe
documentclass{article}
usepackage{amsmath}
usepackage{booktabs}
begin{document}
begin{table}
begin{tabular}{l@{hskip 4.8cm} rcl} % <===============================
toprule
multicolumn{1}{l}{Conversion} & multicolumn{3}{c}{Formula} \ % <=====
midrule
RR to OR & $mbox{OR}$ & = & $cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm] % <================================
d to OR & $mbox{OR}$ & = & $exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d}$ & = & $cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d}$ & = & $cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
% ^^^^^^^^^^ <=======================================
bottomrule
end{tabular}
end{table}
end{document}
and its result:
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
add a comment |
Unless you need a caption, you can obtain the desired layout without a table. Only alignedat
, and a shorter code with the spreadlines
environment from mathtools
:
documentclass{article}
usepackage{mathtools}
usepackage{booktabs}
begin{document}
begin{spreadlines}{0.5cm}
[%
begin{alignedat}{2}
toprule
enspace & text{Conversion} & &phantom{ = }hspace{1.5em}text{Formula} \
midrule
& text{RR to OR} & hskip 4.8cmmbox{OR} & = cfrac{1-mathrm{p}_{textit{non-exposed }}}{1-mathrm{p}_{textit{exposed}}}enspace \
&text{d to OR} & mbox{OR} & = expbiggl(mathrm{d} cfrac{pi}{sqrt{3}}biggr) \
& text{r to d} & mbox{d} & = cfrac{2mathrm{r}}{sqrt{1-mathrm{r}^2}} \
& text{g to d} & mbox{d} & = cfrac{1}{mathrm{J left(df right)}} times mathrm{g} \
bottomrule
end{alignedat}
]%
end{spreadlines}
end{document}
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
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
});
}
});
Matthias is a new contributor. Be nice, and check out our Code of Conduct.
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%2f494536%2falign-equations-within-one-column%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Well, one possibility is to change second column c
to use three columns rcl
and divide your formula into three parts: left part of formula, =
, right part of formula.
Please see the following mwe
documentclass{article}
usepackage{amsmath}
usepackage{booktabs}
begin{document}
begin{table}
begin{tabular}{l@{hskip 4.8cm} rcl} % <===============================
toprule
multicolumn{1}{l}{Conversion} & multicolumn{3}{c}{Formula} \ % <=====
midrule
RR to OR & $mbox{OR}$ & = & $cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm] % <================================
d to OR & $mbox{OR}$ & = & $exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d}$ & = & $cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d}$ & = & $cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
% ^^^^^^^^^^ <=======================================
bottomrule
end{tabular}
end{table}
end{document}
and its result:
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
add a comment |
Well, one possibility is to change second column c
to use three columns rcl
and divide your formula into three parts: left part of formula, =
, right part of formula.
Please see the following mwe
documentclass{article}
usepackage{amsmath}
usepackage{booktabs}
begin{document}
begin{table}
begin{tabular}{l@{hskip 4.8cm} rcl} % <===============================
toprule
multicolumn{1}{l}{Conversion} & multicolumn{3}{c}{Formula} \ % <=====
midrule
RR to OR & $mbox{OR}$ & = & $cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm] % <================================
d to OR & $mbox{OR}$ & = & $exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d}$ & = & $cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d}$ & = & $cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
% ^^^^^^^^^^ <=======================================
bottomrule
end{tabular}
end{table}
end{document}
and its result:
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
add a comment |
Well, one possibility is to change second column c
to use three columns rcl
and divide your formula into three parts: left part of formula, =
, right part of formula.
Please see the following mwe
documentclass{article}
usepackage{amsmath}
usepackage{booktabs}
begin{document}
begin{table}
begin{tabular}{l@{hskip 4.8cm} rcl} % <===============================
toprule
multicolumn{1}{l}{Conversion} & multicolumn{3}{c}{Formula} \ % <=====
midrule
RR to OR & $mbox{OR}$ & = & $cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm] % <================================
d to OR & $mbox{OR}$ & = & $exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d}$ & = & $cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d}$ & = & $cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
% ^^^^^^^^^^ <=======================================
bottomrule
end{tabular}
end{table}
end{document}
and its result:
Well, one possibility is to change second column c
to use three columns rcl
and divide your formula into three parts: left part of formula, =
, right part of formula.
Please see the following mwe
documentclass{article}
usepackage{amsmath}
usepackage{booktabs}
begin{document}
begin{table}
begin{tabular}{l@{hskip 4.8cm} rcl} % <===============================
toprule
multicolumn{1}{l}{Conversion} & multicolumn{3}{c}{Formula} \ % <=====
midrule
RR to OR & $mbox{OR}$ & = & $cfrac{1-mbox{p}_{mbox{textit{non-exposed}}}}{1-mbox{p}_{mbox{textit{exposed}}}}$ \ addlinespace[0.5cm] % <================================
d to OR & $mbox{OR}$ & = & $exp(mbox{d} cfrac{pi}{sqrt{3}})$ \ addlinespace[0.5cm]
r to d & $mbox{d}$ & = & $cfrac{2mbox{r}}{sqrt{1-mbox{r}^2}} $ \ addlinespace[0.5cm]
g to d & $mbox{d}$ & = & $cfrac{1}{mbox{J} left( mbox{df} right)} times mbox{g} $ \
% ^^^^^^^^^^ <=======================================
bottomrule
end{tabular}
end{table}
end{document}
and its result:
answered 9 hours ago
KurtKurt
44.1k1050170
44.1k1050170
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
add a comment |
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
I do not agree that a user accepts a response leaving the user who responds to zero score :-). My compliments on your accurate code and comment.
– Sebastiano
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
Well, I didn't upvote Kurt's answer because my reputation was still too low (I am new to StackExchange Latex and you need at least 15 points)! Now that I have enough reputation (I got enough points with this question), I will upvote. So, thanks again Kurt :)
– Matthias
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
@MatthiasBurghart Don't worry, you suppose that you have upvote this answer :-). I also have voted for your good question. My most cordial greetings.
– Sebastiano
8 hours ago
add a comment |
Unless you need a caption, you can obtain the desired layout without a table. Only alignedat
, and a shorter code with the spreadlines
environment from mathtools
:
documentclass{article}
usepackage{mathtools}
usepackage{booktabs}
begin{document}
begin{spreadlines}{0.5cm}
[%
begin{alignedat}{2}
toprule
enspace & text{Conversion} & &phantom{ = }hspace{1.5em}text{Formula} \
midrule
& text{RR to OR} & hskip 4.8cmmbox{OR} & = cfrac{1-mathrm{p}_{textit{non-exposed }}}{1-mathrm{p}_{textit{exposed}}}enspace \
&text{d to OR} & mbox{OR} & = expbiggl(mathrm{d} cfrac{pi}{sqrt{3}}biggr) \
& text{r to d} & mbox{d} & = cfrac{2mathrm{r}}{sqrt{1-mathrm{r}^2}} \
& text{g to d} & mbox{d} & = cfrac{1}{mathrm{J left(df right)}} times mathrm{g} \
bottomrule
end{alignedat}
]%
end{spreadlines}
end{document}
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
add a comment |
Unless you need a caption, you can obtain the desired layout without a table. Only alignedat
, and a shorter code with the spreadlines
environment from mathtools
:
documentclass{article}
usepackage{mathtools}
usepackage{booktabs}
begin{document}
begin{spreadlines}{0.5cm}
[%
begin{alignedat}{2}
toprule
enspace & text{Conversion} & &phantom{ = }hspace{1.5em}text{Formula} \
midrule
& text{RR to OR} & hskip 4.8cmmbox{OR} & = cfrac{1-mathrm{p}_{textit{non-exposed }}}{1-mathrm{p}_{textit{exposed}}}enspace \
&text{d to OR} & mbox{OR} & = expbiggl(mathrm{d} cfrac{pi}{sqrt{3}}biggr) \
& text{r to d} & mbox{d} & = cfrac{2mathrm{r}}{sqrt{1-mathrm{r}^2}} \
& text{g to d} & mbox{d} & = cfrac{1}{mathrm{J left(df right)}} times mathrm{g} \
bottomrule
end{alignedat}
]%
end{spreadlines}
end{document}
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
add a comment |
Unless you need a caption, you can obtain the desired layout without a table. Only alignedat
, and a shorter code with the spreadlines
environment from mathtools
:
documentclass{article}
usepackage{mathtools}
usepackage{booktabs}
begin{document}
begin{spreadlines}{0.5cm}
[%
begin{alignedat}{2}
toprule
enspace & text{Conversion} & &phantom{ = }hspace{1.5em}text{Formula} \
midrule
& text{RR to OR} & hskip 4.8cmmbox{OR} & = cfrac{1-mathrm{p}_{textit{non-exposed }}}{1-mathrm{p}_{textit{exposed}}}enspace \
&text{d to OR} & mbox{OR} & = expbiggl(mathrm{d} cfrac{pi}{sqrt{3}}biggr) \
& text{r to d} & mbox{d} & = cfrac{2mathrm{r}}{sqrt{1-mathrm{r}^2}} \
& text{g to d} & mbox{d} & = cfrac{1}{mathrm{J left(df right)}} times mathrm{g} \
bottomrule
end{alignedat}
]%
end{spreadlines}
end{document}
Unless you need a caption, you can obtain the desired layout without a table. Only alignedat
, and a shorter code with the spreadlines
environment from mathtools
:
documentclass{article}
usepackage{mathtools}
usepackage{booktabs}
begin{document}
begin{spreadlines}{0.5cm}
[%
begin{alignedat}{2}
toprule
enspace & text{Conversion} & &phantom{ = }hspace{1.5em}text{Formula} \
midrule
& text{RR to OR} & hskip 4.8cmmbox{OR} & = cfrac{1-mathrm{p}_{textit{non-exposed }}}{1-mathrm{p}_{textit{exposed}}}enspace \
&text{d to OR} & mbox{OR} & = expbiggl(mathrm{d} cfrac{pi}{sqrt{3}}biggr) \
& text{r to d} & mbox{d} & = cfrac{2mathrm{r}}{sqrt{1-mathrm{r}^2}} \
& text{g to d} & mbox{d} & = cfrac{1}{mathrm{J left(df right)}} times mathrm{g} \
bottomrule
end{alignedat}
]%
end{spreadlines}
end{document}
answered 8 hours ago
BernardBernard
181k781213
181k781213
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
add a comment |
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
Thanks! In this particular case, I actually do need a caption and notes (I just deleted all the unnecessary parts from my code). But it is good to know that you can get the same layout without using a table!
– Matthias
8 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
You can put an equation in a table environment (preferably unnumbered…)
– Bernard
7 hours ago
add a comment |
Matthias is a new contributor. Be nice, and check out our Code of Conduct.
Matthias is a new contributor. Be nice, and check out our Code of Conduct.
Matthias is a new contributor. Be nice, and check out our Code of Conduct.
Matthias is a new contributor. Be nice, and check out our Code of Conduct.
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%2f494536%2falign-equations-within-one-column%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
1
You could use a three column tabular and split up the equations at the = sign into a right and a left aligned column. The spacing between the columns can be adjusted using @{width of your choice}.
– leandriis
9 hours ago
1
Related and most likely interesting: tex.stackexchange.com/q/78788/134144
– leandriis
9 hours ago