How to place 2 aligned equations next to a single graph in a table?
Clash Royale CLAN TAG#URR8PPP
I want to make a table with two columns:
- on the left side, I want to put 2 aligned equations
- on the right side, I want to put a graph.
In the following MCVE, the 2 equations are on the left side but with a huge unused space between them. I want to place those 2 equation just next to the graph
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
begindocument
begintabularcc
$
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2$ \
$u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
$
&
begintikzpicture
[scale = 0.7]
%[scale = 0.7, every node/.style=scale = 0.7]
% Draw axes
draw [<->,thick] (0,5) node (yaxis) [above] $y$
|- (5,0) node (xaxis) [right] $x$;
coordinate (c) at (2,2);
fill[red] (c) circle (3pt);
draw[dashed] (yaxis |- c) node[left] $scriptstylei$
-| (xaxis -| c) node[below] $scriptstylej-1$;
coordinate (d) at (3,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (3,3);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei+1$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (4,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej+1$;
draw [thin, gray] (0,0) grid (5,5);
endtikzpicture\
endtabular
enddocument
tables horizontal-alignment pdftex
add a comment |
I want to make a table with two columns:
- on the left side, I want to put 2 aligned equations
- on the right side, I want to put a graph.
In the following MCVE, the 2 equations are on the left side but with a huge unused space between them. I want to place those 2 equation just next to the graph
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
begindocument
begintabularcc
$
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2$ \
$u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
$
&
begintikzpicture
[scale = 0.7]
%[scale = 0.7, every node/.style=scale = 0.7]
% Draw axes
draw [<->,thick] (0,5) node (yaxis) [above] $y$
|- (5,0) node (xaxis) [right] $x$;
coordinate (c) at (2,2);
fill[red] (c) circle (3pt);
draw[dashed] (yaxis |- c) node[left] $scriptstylei$
-| (xaxis -| c) node[below] $scriptstylej-1$;
coordinate (d) at (3,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (3,3);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei+1$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (4,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej+1$;
draw [thin, gray] (0,0) grid (5,5);
endtikzpicture\
endtabular
enddocument
tables horizontal-alignment pdftex
add a comment |
I want to make a table with two columns:
- on the left side, I want to put 2 aligned equations
- on the right side, I want to put a graph.
In the following MCVE, the 2 equations are on the left side but with a huge unused space between them. I want to place those 2 equation just next to the graph
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
begindocument
begintabularcc
$
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2$ \
$u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
$
&
begintikzpicture
[scale = 0.7]
%[scale = 0.7, every node/.style=scale = 0.7]
% Draw axes
draw [<->,thick] (0,5) node (yaxis) [above] $y$
|- (5,0) node (xaxis) [right] $x$;
coordinate (c) at (2,2);
fill[red] (c) circle (3pt);
draw[dashed] (yaxis |- c) node[left] $scriptstylei$
-| (xaxis -| c) node[below] $scriptstylej-1$;
coordinate (d) at (3,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (3,3);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei+1$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (4,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej+1$;
draw [thin, gray] (0,0) grid (5,5);
endtikzpicture\
endtabular
enddocument
tables horizontal-alignment pdftex
I want to make a table with two columns:
- on the left side, I want to put 2 aligned equations
- on the right side, I want to put a graph.
In the following MCVE, the 2 equations are on the left side but with a huge unused space between them. I want to place those 2 equation just next to the graph
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
begindocument
begintabularcc
$
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2$ \
$u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
$
&
begintikzpicture
[scale = 0.7]
%[scale = 0.7, every node/.style=scale = 0.7]
% Draw axes
draw [<->,thick] (0,5) node (yaxis) [above] $y$
|- (5,0) node (xaxis) [right] $x$;
coordinate (c) at (2,2);
fill[red] (c) circle (3pt);
draw[dashed] (yaxis |- c) node[left] $scriptstylei$
-| (xaxis -| c) node[below] $scriptstylej-1$;
coordinate (d) at (3,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (3,3);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei+1$
-| (xaxis -| d) node[below] $scriptstylej$;
coordinate (d) at (4,2);
fill[red] (d) circle (3pt);
draw[dashed] (yaxis |- d) node[left] $scriptstylei$
-| (xaxis -| d) node[below] $scriptstylej+1$;
draw [thin, gray] (0,0) grid (5,5);
endtikzpicture\
endtabular
enddocument
tables horizontal-alignment pdftex
tables horizontal-alignment pdftex
asked Jan 1 at 15:27
ecjbecjb
1956
1956
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I propose this somution with the equations inserted in a gathered
environment,, and a raisebox
for the graph:
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
usepackagemathtools
begindocument
begintabularcc
leavevmode $ begingathered
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2 \
u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
endgathered $
&
raisebox-0.5height- d) node[left] $scriptstylei$
-\
endtabular
enddocument
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Yes: replacegathered
withaligned
and add the ampersands for the alignment points. Personally I find it better-looking withgathered
. Or maybe aligned on the left?
– Bernard
Jan 1 at 17:00
great! Many thanks
– ecjb
Jan 1 at 17:10
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%2f468136%2fhow-to-place-2-aligned-equations-next-to-a-single-graph-in-a-table%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I propose this somution with the equations inserted in a gathered
environment,, and a raisebox
for the graph:
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
usepackagemathtools
begindocument
begintabularcc
leavevmode $ begingathered
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2 \
u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
endgathered $
&
raisebox-0.5height- d) node[left] $scriptstylei$
-\
endtabular
enddocument
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Yes: replacegathered
withaligned
and add the ampersands for the alignment points. Personally I find it better-looking withgathered
. Or maybe aligned on the left?
– Bernard
Jan 1 at 17:00
great! Many thanks
– ecjb
Jan 1 at 17:10
add a comment |
I propose this somution with the equations inserted in a gathered
environment,, and a raisebox
for the graph:
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
usepackagemathtools
begindocument
begintabularcc
leavevmode $ begingathered
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2 \
u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
endgathered $
&
raisebox-0.5height- d) node[left] $scriptstylei$
-\
endtabular
enddocument
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Yes: replacegathered
withaligned
and add the ampersands for the alignment points. Personally I find it better-looking withgathered
. Or maybe aligned on the left?
– Bernard
Jan 1 at 17:00
great! Many thanks
– ecjb
Jan 1 at 17:10
add a comment |
I propose this somution with the equations inserted in a gathered
environment,, and a raisebox
for the graph:
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
usepackagemathtools
begindocument
begintabularcc
leavevmode $ begingathered
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2 \
u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
endgathered $
&
raisebox-0.5height- d) node[left] $scriptstylei$
-\
endtabular
enddocument
I propose this somution with the equations inserted in a gathered
environment,, and a raisebox
for the graph:
documentclass[a4paper, 12pt]book
usepackagepgfplots, tikz
usepackagemathtools
begindocument
begintabularcc
leavevmode $ begingathered
fracu_i+1,j - u_i,jDelta t = kappa fracu_i,j-1 - 2u_i,j + u_i,j+1(Delta x)^2 \
u_i+1,j = u_i,j + frackappa Delta t(Delta x)^2(u_i,j-1 - 2u_i,j + u_i,j+1)
endgathered $
&
raisebox-0.5height- d) node[left] $scriptstylei$
-\
endtabular
enddocument
answered Jan 1 at 15:46
BernardBernard
167k769194
167k769194
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Yes: replacegathered
withaligned
and add the ampersands for the alignment points. Personally I find it better-looking withgathered
. Or maybe aligned on the left?
– Bernard
Jan 1 at 17:00
great! Many thanks
– ecjb
Jan 1 at 17:10
add a comment |
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Yes: replacegathered
withaligned
and add the ampersands for the alignment points. Personally I find it better-looking withgathered
. Or maybe aligned on the left?
– Bernard
Jan 1 at 17:00
great! Many thanks
– ecjb
Jan 1 at 17:10
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Many thanks @Bernard. Is it possible to alignt the 2 equations?
– ecjb
Jan 1 at 16:54
Yes: replace
gathered
with aligned
and add the ampersands for the alignment points. Personally I find it better-looking with gathered
. Or maybe aligned on the left?– Bernard
Jan 1 at 17:00
Yes: replace
gathered
with aligned
and add the ampersands for the alignment points. Personally I find it better-looking with gathered
. Or maybe aligned on the left?– Bernard
Jan 1 at 17:00
great! Many thanks
– ecjb
Jan 1 at 17:10
great! Many thanks
– ecjb
Jan 1 at 17:10
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%2f468136%2fhow-to-place-2-aligned-equations-next-to-a-single-graph-in-a-table%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