How to give a line more vertical space / height
How can I give one line in LaTeX more vertical height so that something like
frac{n^n}{{2}^{2n} * {n^n}^{2}}
displays correctly with the {2}
getting enough space to look like it's above the top n
in the denominator {n^n}^{2}
.
Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)
line-spacing
add a comment |
How can I give one line in LaTeX more vertical height so that something like
frac{n^n}{{2}^{2n} * {n^n}^{2}}
displays correctly with the {2}
getting enough space to look like it's above the top n
in the denominator {n^n}^{2}
.
Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)
line-spacing
1
Could you please add a minimal example which reproduces your problem?
– CarLaTeX
1 hour ago
You can add additional space using{fboxrule=0pt fbox{...}}
– John Kormylo
1 hour ago
Please advise if the frac expression occurs in displayed or inline math.
– Mico
1 hour ago
add a comment |
How can I give one line in LaTeX more vertical height so that something like
frac{n^n}{{2}^{2n} * {n^n}^{2}}
displays correctly with the {2}
getting enough space to look like it's above the top n
in the denominator {n^n}^{2}
.
Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)
line-spacing
How can I give one line in LaTeX more vertical height so that something like
frac{n^n}{{2}^{2n} * {n^n}^{2}}
displays correctly with the {2}
getting enough space to look like it's above the top n
in the denominator {n^n}^{2}
.
Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)
line-spacing
line-spacing
edited 1 hour ago
Mico
277k30380768
277k30380768
asked 1 hour ago
Pro QPro Q
1385
1385
1
Could you please add a minimal example which reproduces your problem?
– CarLaTeX
1 hour ago
You can add additional space using{fboxrule=0pt fbox{...}}
– John Kormylo
1 hour ago
Please advise if the frac expression occurs in displayed or inline math.
– Mico
1 hour ago
add a comment |
1
Could you please add a minimal example which reproduces your problem?
– CarLaTeX
1 hour ago
You can add additional space using{fboxrule=0pt fbox{...}}
– John Kormylo
1 hour ago
Please advise if the frac expression occurs in displayed or inline math.
– Mico
1 hour ago
1
1
Could you please add a minimal example which reproduces your problem?
– CarLaTeX
1 hour ago
Could you please add a minimal example which reproduces your problem?
– CarLaTeX
1 hour ago
You can add additional space using
{fboxrule=0pt fbox{...}}
– John Kormylo
1 hour ago
You can add additional space using
{fboxrule=0pt fbox{...}}
– John Kormylo
1 hour ago
Please advise if the frac expression occurs in displayed or inline math.
– Mico
1 hour ago
Please advise if the frac expression occurs in displayed or inline math.
– Mico
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
Does this go in the right direction?
documentclass[fleqn]{article}
begin{document}
paragraph{Original:}
$frac{n^n}{{2}^{2n} * {n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {n^n}^{2}}]
paragraph{Proposal:}
$frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]
paragraph{With brackets:}
$frac{n^n}{{2}^{2n} * ( n^n)^{2}}$
[frac{n^n}{{2}^{2n} * (n^n)^{2}}]
end{document}
add a comment |
I think the denominator of your frac
expression suffers from two issues:
- a "cramped" look, i.e., the exponents are not raised much above the baseline
- first- and second-order exponents are raised to the same height
How to remedy these issues?
To address the first issue, switch to "uncramped" mode -- see the
ufrac
macro below.
To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.
Either way, using parentheses to visually "enclose" the
n^n
term may be a very good idea.
Whatever else you do, please don't use the unnecessary *
multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot
, not *
.
documentclass{article}
%% "uncramped" frac macro:
%% (Source: https://tex.stackexchange.com/a/337334/5001)
makeatletter
newcommand{ufrac}[2]{%
frac{#1}{mathpaletteufrac@den{#2}}}
newcommand{ufrac@den}[2]{#1#2}
makeatother
begin{document}
inline math mode, verb+frac+ notation
$frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
display math mode, verb+frac+ notation
smallskip
$displaystyle
frac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
inline-frac notation
smallskip
$n^n/(2^{2n} {n^n}^2)
quad
n^n/(2^{2n} (n^n)^2)$
end{document}
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%2f472826%2fhow-to-give-a-line-more-vertical-space-height%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
Does this go in the right direction?
documentclass[fleqn]{article}
begin{document}
paragraph{Original:}
$frac{n^n}{{2}^{2n} * {n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {n^n}^{2}}]
paragraph{Proposal:}
$frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]
paragraph{With brackets:}
$frac{n^n}{{2}^{2n} * ( n^n)^{2}}$
[frac{n^n}{{2}^{2n} * (n^n)^{2}}]
end{document}
add a comment |
Does this go in the right direction?
documentclass[fleqn]{article}
begin{document}
paragraph{Original:}
$frac{n^n}{{2}^{2n} * {n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {n^n}^{2}}]
paragraph{Proposal:}
$frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]
paragraph{With brackets:}
$frac{n^n}{{2}^{2n} * ( n^n)^{2}}$
[frac{n^n}{{2}^{2n} * (n^n)^{2}}]
end{document}
add a comment |
Does this go in the right direction?
documentclass[fleqn]{article}
begin{document}
paragraph{Original:}
$frac{n^n}{{2}^{2n} * {n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {n^n}^{2}}]
paragraph{Proposal:}
$frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]
paragraph{With brackets:}
$frac{n^n}{{2}^{2n} * ( n^n)^{2}}$
[frac{n^n}{{2}^{2n} * (n^n)^{2}}]
end{document}
Does this go in the right direction?
documentclass[fleqn]{article}
begin{document}
paragraph{Original:}
$frac{n^n}{{2}^{2n} * {n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {n^n}^{2}}]
paragraph{Proposal:}
$frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]
paragraph{With brackets:}
$frac{n^n}{{2}^{2n} * ( n^n)^{2}}$
[frac{n^n}{{2}^{2n} * (n^n)^{2}}]
end{document}
answered 45 mins ago
marmotmarmot
96.1k4111212
96.1k4111212
add a comment |
add a comment |
I think the denominator of your frac
expression suffers from two issues:
- a "cramped" look, i.e., the exponents are not raised much above the baseline
- first- and second-order exponents are raised to the same height
How to remedy these issues?
To address the first issue, switch to "uncramped" mode -- see the
ufrac
macro below.
To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.
Either way, using parentheses to visually "enclose" the
n^n
term may be a very good idea.
Whatever else you do, please don't use the unnecessary *
multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot
, not *
.
documentclass{article}
%% "uncramped" frac macro:
%% (Source: https://tex.stackexchange.com/a/337334/5001)
makeatletter
newcommand{ufrac}[2]{%
frac{#1}{mathpaletteufrac@den{#2}}}
newcommand{ufrac@den}[2]{#1#2}
makeatother
begin{document}
inline math mode, verb+frac+ notation
$frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
display math mode, verb+frac+ notation
smallskip
$displaystyle
frac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
inline-frac notation
smallskip
$n^n/(2^{2n} {n^n}^2)
quad
n^n/(2^{2n} (n^n)^2)$
end{document}
add a comment |
I think the denominator of your frac
expression suffers from two issues:
- a "cramped" look, i.e., the exponents are not raised much above the baseline
- first- and second-order exponents are raised to the same height
How to remedy these issues?
To address the first issue, switch to "uncramped" mode -- see the
ufrac
macro below.
To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.
Either way, using parentheses to visually "enclose" the
n^n
term may be a very good idea.
Whatever else you do, please don't use the unnecessary *
multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot
, not *
.
documentclass{article}
%% "uncramped" frac macro:
%% (Source: https://tex.stackexchange.com/a/337334/5001)
makeatletter
newcommand{ufrac}[2]{%
frac{#1}{mathpaletteufrac@den{#2}}}
newcommand{ufrac@den}[2]{#1#2}
makeatother
begin{document}
inline math mode, verb+frac+ notation
$frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
display math mode, verb+frac+ notation
smallskip
$displaystyle
frac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
inline-frac notation
smallskip
$n^n/(2^{2n} {n^n}^2)
quad
n^n/(2^{2n} (n^n)^2)$
end{document}
add a comment |
I think the denominator of your frac
expression suffers from two issues:
- a "cramped" look, i.e., the exponents are not raised much above the baseline
- first- and second-order exponents are raised to the same height
How to remedy these issues?
To address the first issue, switch to "uncramped" mode -- see the
ufrac
macro below.
To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.
Either way, using parentheses to visually "enclose" the
n^n
term may be a very good idea.
Whatever else you do, please don't use the unnecessary *
multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot
, not *
.
documentclass{article}
%% "uncramped" frac macro:
%% (Source: https://tex.stackexchange.com/a/337334/5001)
makeatletter
newcommand{ufrac}[2]{%
frac{#1}{mathpaletteufrac@den{#2}}}
newcommand{ufrac@den}[2]{#1#2}
makeatother
begin{document}
inline math mode, verb+frac+ notation
$frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
display math mode, verb+frac+ notation
smallskip
$displaystyle
frac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
inline-frac notation
smallskip
$n^n/(2^{2n} {n^n}^2)
quad
n^n/(2^{2n} (n^n)^2)$
end{document}
I think the denominator of your frac
expression suffers from two issues:
- a "cramped" look, i.e., the exponents are not raised much above the baseline
- first- and second-order exponents are raised to the same height
How to remedy these issues?
To address the first issue, switch to "uncramped" mode -- see the
ufrac
macro below.
To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.
Either way, using parentheses to visually "enclose" the
n^n
term may be a very good idea.
Whatever else you do, please don't use the unnecessary *
multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot
, not *
.
documentclass{article}
%% "uncramped" frac macro:
%% (Source: https://tex.stackexchange.com/a/337334/5001)
makeatletter
newcommand{ufrac}[2]{%
frac{#1}{mathpaletteufrac@den{#2}}}
newcommand{ufrac@den}[2]{#1#2}
makeatother
begin{document}
inline math mode, verb+frac+ notation
$frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
display math mode, verb+frac+ notation
smallskip
$displaystyle
frac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} {n^n}^2}
quad
ufrac{n^n}{2^{2n} (n^n)^2}$
bigskip
inline-frac notation
smallskip
$n^n/(2^{2n} {n^n}^2)
quad
n^n/(2^{2n} (n^n)^2)$
end{document}
answered 19 mins ago
MicoMico
277k30380768
277k30380768
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%2f472826%2fhow-to-give-a-line-more-vertical-space-height%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
Could you please add a minimal example which reproduces your problem?
– CarLaTeX
1 hour ago
You can add additional space using
{fboxrule=0pt fbox{...}}
– John Kormylo
1 hour ago
Please advise if the frac expression occurs in displayed or inline math.
– Mico
1 hour ago