how one can write a nice vector parser, something that does pgfvecparse{A=B-C; D=E x F;} The...
What are the unusually-enlarged wing sections on this P-38 Lightning?
Defamation due to breach of confidentiality
Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank
Physiological effects of huge anime eyes
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact
(How) Could a medieval fantasy world survive a magic-induced "nuclear winter"?
How to avoid supervisors with prejudiced views?
What would be the main consequences for a country leaving the WTO?
The Ultimate Number Sequence Puzzle
Pulling the principal components out of a DimensionReducerFunction?
Why did early computer designers eschew integers?
Are the names of these months realistic?
Is it ok to trim down a tube patch?
Aggressive Under-Indexing and no data for missing index
Does higher Oxidation/ reduction potential translate to higher energy storage in battery?
Is French Guiana a (hard) EU border?
Can this note be analyzed as a non-chord tone?
Does the Idaho Potato Commission associate potato skins with healthy eating?
How do I fit a non linear curve?
In the "Harry Potter and the Order of the Phoenix" video game, what potion is used to sabotage Umbridge's speakers?
free fall ellipse or parabola?
Is there such a thing as a proper verb, like a proper noun?
Help! I cannot understand this game’s notations!
how one can write a nice vector parser, something that does pgfvecparse{A=B-C; D=E x F;}
The Next CEO of Stack Overflowhow to draw pitch, yaw and roll with 3d plotPass a 3d coordinate via pgfkeystkz-euclide, define points outside of tikzpictureHow to draw star in TikZ backgroundTikz: draw a vector pointing from one point to anotherHow to draw an elliptical arc in TikZ given only opposite extreme points (vertices) of the ellipse?How can one plot in 3D a matrix with LaTeX?Line up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?begin{figure}… end{figure} is not working with tikz packagetikz pic: no pgfpointanchor possible inside the pic definitionHow to add a label to a vector and an angle?
I am often use coordinates of points to draw figure in geometry. I know that, we can add, minus coordinates of points, example
begin{tikzpicture}
tkzDefPoints{0/0/C',3/0/D',1/1/B'}
coordinate (A') at ($(B')+(D')-(C')$);
end{tikzpicture}
If I have two points A(1,2,3)
and B(4,5,6)
, how can I define vector AB
as (B)-(A)
?
tikz-pgf tikzmark
add a comment |
I am often use coordinates of points to draw figure in geometry. I know that, we can add, minus coordinates of points, example
begin{tikzpicture}
tkzDefPoints{0/0/C',3/0/D',1/1/B'}
coordinate (A') at ($(B')+(D')-(C')$);
end{tikzpicture}
If I have two points A(1,2,3)
and B(4,5,6)
, how can I define vector AB
as (B)-(A)
?
tikz-pgf tikzmark
Among the existing proposals, to my knowledge this one might be the most promising one. The open problem, though, is that the transformation is to "recorded". Some advanced transformation recording can be found here. But it seems that you are looking for something else.
– marmot
51 mins ago
add a comment |
I am often use coordinates of points to draw figure in geometry. I know that, we can add, minus coordinates of points, example
begin{tikzpicture}
tkzDefPoints{0/0/C',3/0/D',1/1/B'}
coordinate (A') at ($(B')+(D')-(C')$);
end{tikzpicture}
If I have two points A(1,2,3)
and B(4,5,6)
, how can I define vector AB
as (B)-(A)
?
tikz-pgf tikzmark
I am often use coordinates of points to draw figure in geometry. I know that, we can add, minus coordinates of points, example
begin{tikzpicture}
tkzDefPoints{0/0/C',3/0/D',1/1/B'}
coordinate (A') at ($(B')+(D')-(C')$);
end{tikzpicture}
If I have two points A(1,2,3)
and B(4,5,6)
, how can I define vector AB
as (B)-(A)
?
tikz-pgf tikzmark
tikz-pgf tikzmark
edited 2 hours ago
minhthien_2016
asked 2 hours ago
minhthien_2016minhthien_2016
1,4101917
1,4101917
Among the existing proposals, to my knowledge this one might be the most promising one. The open problem, though, is that the transformation is to "recorded". Some advanced transformation recording can be found here. But it seems that you are looking for something else.
– marmot
51 mins ago
add a comment |
Among the existing proposals, to my knowledge this one might be the most promising one. The open problem, though, is that the transformation is to "recorded". Some advanced transformation recording can be found here. But it seems that you are looking for something else.
– marmot
51 mins ago
Among the existing proposals, to my knowledge this one might be the most promising one. The open problem, though, is that the transformation is to "recorded". Some advanced transformation recording can be found here. But it seems that you are looking for something else.
– marmot
51 mins ago
Among the existing proposals, to my knowledge this one might be the most promising one. The open problem, though, is that the transformation is to "recorded". Some advanced transformation recording can be found here. But it seems that you are looking for something else.
– marmot
51 mins ago
add a comment |
1 Answer
1
active
oldest
votes
If you use the coordinates only for drawing, simply define each components of points as variable and then define coordinate points using them. For example:
documentclass[margin=3.14159mm]{standalone}
usepackage{tikz,tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{125}
begin{tikzpicture}
[scale=0.9,
tdplot_main_coords,
axis/.style={-latex,thick},
vector/.style={-stealth,red,very thick},
vector guide/.style={dashed,thick}]
%standard tikz coordinate definition using x, y, z coords
% A(2,4,3), B(3,-1,4)
defAx{2}
defAy{4}
defAz{3}
defBx{-1}
defBy{3}
defBz{4}
coordinate (O) at (0,0,0);
coordinate (A) at (Ax,Ay,Az);
coordinate (B) at (Bx,By,Bz);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,5) node[anchor=south]{$z$};
%Dot at point
fill [blue] (A) circle (2pt);
fill [blue] (B) circle (2pt);
%draw a vector from O to A and O to B
draw[vector guide] (O)node[left=1mm]{} -- (A)node[above=-1mm,right]{$P_1(Ax,Ay,Az)$};
draw[vector guide] (O) -- (B)node[above=-1mm,right]{$P_2(Bx,By,Bz)$};
%draw vector D=AB
draw[vector] (A) -- (B)node[midway,above,sloped]{$mathbf{D}$};
end{tikzpicture}
end{document}
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour ago
add a comment |
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%2f482518%2fhow-one-can-write-a-nice-vector-parser-something-that-does-pgfvecparse-a-b%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
If you use the coordinates only for drawing, simply define each components of points as variable and then define coordinate points using them. For example:
documentclass[margin=3.14159mm]{standalone}
usepackage{tikz,tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{125}
begin{tikzpicture}
[scale=0.9,
tdplot_main_coords,
axis/.style={-latex,thick},
vector/.style={-stealth,red,very thick},
vector guide/.style={dashed,thick}]
%standard tikz coordinate definition using x, y, z coords
% A(2,4,3), B(3,-1,4)
defAx{2}
defAy{4}
defAz{3}
defBx{-1}
defBy{3}
defBz{4}
coordinate (O) at (0,0,0);
coordinate (A) at (Ax,Ay,Az);
coordinate (B) at (Bx,By,Bz);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,5) node[anchor=south]{$z$};
%Dot at point
fill [blue] (A) circle (2pt);
fill [blue] (B) circle (2pt);
%draw a vector from O to A and O to B
draw[vector guide] (O)node[left=1mm]{} -- (A)node[above=-1mm,right]{$P_1(Ax,Ay,Az)$};
draw[vector guide] (O) -- (B)node[above=-1mm,right]{$P_2(Bx,By,Bz)$};
%draw vector D=AB
draw[vector] (A) -- (B)node[midway,above,sloped]{$mathbf{D}$};
end{tikzpicture}
end{document}
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour ago
add a comment |
If you use the coordinates only for drawing, simply define each components of points as variable and then define coordinate points using them. For example:
documentclass[margin=3.14159mm]{standalone}
usepackage{tikz,tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{125}
begin{tikzpicture}
[scale=0.9,
tdplot_main_coords,
axis/.style={-latex,thick},
vector/.style={-stealth,red,very thick},
vector guide/.style={dashed,thick}]
%standard tikz coordinate definition using x, y, z coords
% A(2,4,3), B(3,-1,4)
defAx{2}
defAy{4}
defAz{3}
defBx{-1}
defBy{3}
defBz{4}
coordinate (O) at (0,0,0);
coordinate (A) at (Ax,Ay,Az);
coordinate (B) at (Bx,By,Bz);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,5) node[anchor=south]{$z$};
%Dot at point
fill [blue] (A) circle (2pt);
fill [blue] (B) circle (2pt);
%draw a vector from O to A and O to B
draw[vector guide] (O)node[left=1mm]{} -- (A)node[above=-1mm,right]{$P_1(Ax,Ay,Az)$};
draw[vector guide] (O) -- (B)node[above=-1mm,right]{$P_2(Bx,By,Bz)$};
%draw vector D=AB
draw[vector] (A) -- (B)node[midway,above,sloped]{$mathbf{D}$};
end{tikzpicture}
end{document}
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour ago
add a comment |
If you use the coordinates only for drawing, simply define each components of points as variable and then define coordinate points using them. For example:
documentclass[margin=3.14159mm]{standalone}
usepackage{tikz,tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{125}
begin{tikzpicture}
[scale=0.9,
tdplot_main_coords,
axis/.style={-latex,thick},
vector/.style={-stealth,red,very thick},
vector guide/.style={dashed,thick}]
%standard tikz coordinate definition using x, y, z coords
% A(2,4,3), B(3,-1,4)
defAx{2}
defAy{4}
defAz{3}
defBx{-1}
defBy{3}
defBz{4}
coordinate (O) at (0,0,0);
coordinate (A) at (Ax,Ay,Az);
coordinate (B) at (Bx,By,Bz);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,5) node[anchor=south]{$z$};
%Dot at point
fill [blue] (A) circle (2pt);
fill [blue] (B) circle (2pt);
%draw a vector from O to A and O to B
draw[vector guide] (O)node[left=1mm]{} -- (A)node[above=-1mm,right]{$P_1(Ax,Ay,Az)$};
draw[vector guide] (O) -- (B)node[above=-1mm,right]{$P_2(Bx,By,Bz)$};
%draw vector D=AB
draw[vector] (A) -- (B)node[midway,above,sloped]{$mathbf{D}$};
end{tikzpicture}
end{document}
If you use the coordinates only for drawing, simply define each components of points as variable and then define coordinate points using them. For example:
documentclass[margin=3.14159mm]{standalone}
usepackage{tikz,tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{125}
begin{tikzpicture}
[scale=0.9,
tdplot_main_coords,
axis/.style={-latex,thick},
vector/.style={-stealth,red,very thick},
vector guide/.style={dashed,thick}]
%standard tikz coordinate definition using x, y, z coords
% A(2,4,3), B(3,-1,4)
defAx{2}
defAy{4}
defAz{3}
defBx{-1}
defBy{3}
defBz{4}
coordinate (O) at (0,0,0);
coordinate (A) at (Ax,Ay,Az);
coordinate (B) at (Bx,By,Bz);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,5) node[anchor=south]{$z$};
%Dot at point
fill [blue] (A) circle (2pt);
fill [blue] (B) circle (2pt);
%draw a vector from O to A and O to B
draw[vector guide] (O)node[left=1mm]{} -- (A)node[above=-1mm,right]{$P_1(Ax,Ay,Az)$};
draw[vector guide] (O) -- (B)node[above=-1mm,right]{$P_2(Bx,By,Bz)$};
%draw vector D=AB
draw[vector] (A) -- (B)node[midway,above,sloped]{$mathbf{D}$};
end{tikzpicture}
end{document}
answered 2 hours ago
ferahfezaferahfeza
7,19411933
7,19411933
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour ago
add a comment |
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour ago
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour ago
Would you mind if I added a supplement to your answer?
– Steven B. Segletes
1 hour 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%2f482518%2fhow-one-can-write-a-nice-vector-parser-something-that-does-pgfvecparse-a-b%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
Among the existing proposals, to my knowledge this one might be the most promising one. The open problem, though, is that the transformation is to "recorded". Some advanced transformation recording can be found here. But it seems that you are looking for something else.
– marmot
51 mins ago