Parts of mini page are not placed properly
Question:
Right now i am working in mini page, the problem is components of mini page are not placed at good place. I want to reduce the space between them and both start from the same line from top (i mean horizontally in same line)
MWE:
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
begin{document}
begin{minipage}[t]{.45textwidth}
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{minipage}
%hfill
begin{minipage}[b]{.55textwidth}
begin{align*}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{align*}
end{minipage}
end{document}
spacing minipage
add a comment |
Question:
Right now i am working in mini page, the problem is components of mini page are not placed at good place. I want to reduce the space between them and both start from the same line from top (i mean horizontally in same line)
MWE:
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
begin{document}
begin{minipage}[t]{.45textwidth}
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{minipage}
%hfill
begin{minipage}[b]{.55textwidth}
begin{align*}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{align*}
end{minipage}
end{document}
spacing minipage
add a comment |
Question:
Right now i am working in mini page, the problem is components of mini page are not placed at good place. I want to reduce the space between them and both start from the same line from top (i mean horizontally in same line)
MWE:
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
begin{document}
begin{minipage}[t]{.45textwidth}
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{minipage}
%hfill
begin{minipage}[b]{.55textwidth}
begin{align*}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{align*}
end{minipage}
end{document}
spacing minipage
Question:
Right now i am working in mini page, the problem is components of mini page are not placed at good place. I want to reduce the space between them and both start from the same line from top (i mean horizontally in same line)
MWE:
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
begin{document}
begin{minipage}[t]{.45textwidth}
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{minipage}
%hfill
begin{minipage}[b]{.55textwidth}
begin{align*}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{align*}
end{minipage}
end{document}
spacing minipage
spacing minipage
edited 2 days ago
Siba Mishra
8791723
8791723
asked 2 days ago
SandySandy
766915
766915
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The reference point for a forest
is at the bottom. You can make it at the top so it aligns with a standard line of text with adjustbox
and valign=t
. For the equation use aligned
.
Finally, decide for the spacing between the objects, here quad
is used.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
adjustbox{valign=t}{%
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}%
}% end of adjustbox (the % next to the brace is important
qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
With the baseline
option, you can vertically align the two parts so that the two instances of 140 are at the same height.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{forest} baseline, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
For vertical centering,
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
begin{adjustbox}{valign=c}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{adjustbox}qquad
$begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
If you want to set this inside a math display, omit the $
characters and exploit gathered
.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{equation*}
begin{gathered}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{gathered}qquad
begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}
end{equation*}
end{document}
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
|
show 1 more comment
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
usepackage{varwidth}
begin{document}
begin{varwidth}[t]{.45textwidth} vspace{0pt}
begin{forest} for tree={circle,draw, l sep=10pt} [140,black [2] [70
[2] [35 [5] [7] ]
] ]
end{forest}
end{varwidth}
%hfill
begin{varwidth}[t]{.55textwidth} vspace{0pt}
$ 140 = 2 times 2 times 5 times 7 = 2^2 times 5 times 7 $
end{varwidth}
end{document}
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Put it between the twovarwidth
without an empty line!
– Herbert
2 days 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
});
}
});
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%2f480232%2fparts-of-mini-page-are-not-placed-properly%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
The reference point for a forest
is at the bottom. You can make it at the top so it aligns with a standard line of text with adjustbox
and valign=t
. For the equation use aligned
.
Finally, decide for the spacing between the objects, here quad
is used.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
adjustbox{valign=t}{%
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}%
}% end of adjustbox (the % next to the brace is important
qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
With the baseline
option, you can vertically align the two parts so that the two instances of 140 are at the same height.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{forest} baseline, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
For vertical centering,
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
begin{adjustbox}{valign=c}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{adjustbox}qquad
$begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
If you want to set this inside a math display, omit the $
characters and exploit gathered
.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{equation*}
begin{gathered}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{gathered}qquad
begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}
end{equation*}
end{document}
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
|
show 1 more comment
The reference point for a forest
is at the bottom. You can make it at the top so it aligns with a standard line of text with adjustbox
and valign=t
. For the equation use aligned
.
Finally, decide for the spacing between the objects, here quad
is used.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
adjustbox{valign=t}{%
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}%
}% end of adjustbox (the % next to the brace is important
qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
With the baseline
option, you can vertically align the two parts so that the two instances of 140 are at the same height.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{forest} baseline, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
For vertical centering,
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
begin{adjustbox}{valign=c}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{adjustbox}qquad
$begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
If you want to set this inside a math display, omit the $
characters and exploit gathered
.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{equation*}
begin{gathered}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{gathered}qquad
begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}
end{equation*}
end{document}
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
|
show 1 more comment
The reference point for a forest
is at the bottom. You can make it at the top so it aligns with a standard line of text with adjustbox
and valign=t
. For the equation use aligned
.
Finally, decide for the spacing between the objects, here quad
is used.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
adjustbox{valign=t}{%
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}%
}% end of adjustbox (the % next to the brace is important
qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
With the baseline
option, you can vertically align the two parts so that the two instances of 140 are at the same height.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{forest} baseline, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
For vertical centering,
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
begin{adjustbox}{valign=c}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{adjustbox}qquad
$begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
If you want to set this inside a math display, omit the $
characters and exploit gathered
.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{equation*}
begin{gathered}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{gathered}qquad
begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}
end{equation*}
end{document}
The reference point for a forest
is at the bottom. You can make it at the top so it aligns with a standard line of text with adjustbox
and valign=t
. For the equation use aligned
.
Finally, decide for the spacing between the objects, here quad
is used.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
adjustbox{valign=t}{%
begin{forest}
for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}%
}% end of adjustbox (the % next to the brace is important
qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
With the baseline
option, you can vertically align the two parts so that the two instances of 140 are at the same height.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{forest} baseline, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}qquad
$begin{aligned}[t]
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
For vertical centering,
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
usepackage{adjustbox}
begin{document}
begin{adjustbox}{valign=c}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{adjustbox}qquad
$begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}$
end{document}
If you want to set this inside a math display, omit the $
characters and exploit gathered
.
documentclass[12pt,a4paper]{article}
usepackage{amsmath}
usepackage{forest}
begin{document}
begin{equation*}
begin{gathered}
begin{forest} baseline=center, for tree={circle,draw, l sep=10pt}
[140,black
[2]
[70
[2]
[35
[5]
[7]
]
]
]
end{forest}
end{gathered}qquad
begin{aligned}
140 &= 2 times 2 times 5 times 7&\
&= 2^2 times 5 times 7
end{aligned}
end{equation*}
end{document}
edited 2 days ago
answered 2 days ago
egregegreg
728k8819233233
728k8819233233
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
|
show 1 more comment
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
Pleased to know new things. one request, Is it possible to place right part in the middle? i am asking Just for getting additional information.
– Sandy
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
@Sandy In the middle of what?
– egreg
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
i mean middle of first part, slightly below from its original position
– Sandy
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
@Sandy Do you mean that you want the two instances of 140 being aligned?
– egreg
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
Keep left part (tree) as it is. I don't want to move it. I am asking that how the equations part can we push vertically below exact in the middle of the tree.
– Sandy
2 days ago
|
show 1 more comment
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
usepackage{varwidth}
begin{document}
begin{varwidth}[t]{.45textwidth} vspace{0pt}
begin{forest} for tree={circle,draw, l sep=10pt} [140,black [2] [70
[2] [35 [5] [7] ]
] ]
end{forest}
end{varwidth}
%hfill
begin{varwidth}[t]{.55textwidth} vspace{0pt}
$ 140 = 2 times 2 times 5 times 7 = 2^2 times 5 times 7 $
end{varwidth}
end{document}
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Put it between the twovarwidth
without an empty line!
– Herbert
2 days ago
add a comment |
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
usepackage{varwidth}
begin{document}
begin{varwidth}[t]{.45textwidth} vspace{0pt}
begin{forest} for tree={circle,draw, l sep=10pt} [140,black [2] [70
[2] [35 [5] [7] ]
] ]
end{forest}
end{varwidth}
%hfill
begin{varwidth}[t]{.55textwidth} vspace{0pt}
$ 140 = 2 times 2 times 5 times 7 = 2^2 times 5 times 7 $
end{varwidth}
end{document}
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Put it between the twovarwidth
without an empty line!
– Herbert
2 days ago
add a comment |
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
usepackage{varwidth}
begin{document}
begin{varwidth}[t]{.45textwidth} vspace{0pt}
begin{forest} for tree={circle,draw, l sep=10pt} [140,black [2] [70
[2] [35 [5] [7] ]
] ]
end{forest}
end{varwidth}
%hfill
begin{varwidth}[t]{.55textwidth} vspace{0pt}
$ 140 = 2 times 2 times 5 times 7 = 2^2 times 5 times 7 $
end{varwidth}
end{document}
documentclass[12pt,a4paper]{article}
usepackage[a4paper,vmargin=0.5in,hmargin=0.5in]{geometry}
usepackage[utf8]{inputenc}
usepackage[misc]{ifsym}
usepackage{amsmath,amsfonts,amssymb,cancel}
usepackage{array,booktabs}
usepackage{forest}
usepackage{parskip}
usepackage{tcolorbox}
usepackage{varwidth}
begin{document}
begin{varwidth}[t]{.45textwidth} vspace{0pt}
begin{forest} for tree={circle,draw, l sep=10pt} [140,black [2] [70
[2] [35 [5] [7] ]
] ]
end{forest}
end{varwidth}
%hfill
begin{varwidth}[t]{.55textwidth} vspace{0pt}
$ 140 = 2 times 2 times 5 times 7 = 2^2 times 5 times 7 $
end{varwidth}
end{document}
answered 2 days ago
HerbertHerbert
276k25419732
276k25419732
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Put it between the twovarwidth
without an empty line!
– Herbert
2 days ago
add a comment |
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Put it between the twovarwidth
without an empty line!
– Herbert
2 days ago
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Nice it works. One question how can i place second component in the middle?
– Sandy
2 days ago
Put it between the two
varwidth
without an empty line!– Herbert
2 days ago
Put it between the two
varwidth
without an empty line!– Herbert
2 days ago
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%2f480232%2fparts-of-mini-page-are-not-placed-properly%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