Defining new Command in tkz-euclide
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
How to define a new command
tkzDefRelativePoint[#1,#2,#3](20:2)C
This command defines a point from #1 and takes the slope of the line #2 , #3 as x axis.
tkzDefRelativePoint[A,A,B](20:2)C
This command defines a point from A and takes the slope of the line A , B as x axis.
This is done here using
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
MWE
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
%
%tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
tkz-euclide
add a comment |Â
up vote
4
down vote
favorite
How to define a new command
tkzDefRelativePoint[#1,#2,#3](20:2)C
This command defines a point from #1 and takes the slope of the line #2 , #3 as x axis.
tkzDefRelativePoint[A,A,B](20:2)C
This command defines a point from A and takes the slope of the line A , B as x axis.
This is done here using
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
MWE
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
%
%tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
tkz-euclide
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
How to define a new command
tkzDefRelativePoint[#1,#2,#3](20:2)C
This command defines a point from #1 and takes the slope of the line #2 , #3 as x axis.
tkzDefRelativePoint[A,A,B](20:2)C
This command defines a point from A and takes the slope of the line A , B as x axis.
This is done here using
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
MWE
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
%
%tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
tkz-euclide
How to define a new command
tkzDefRelativePoint[#1,#2,#3](20:2)C
This command defines a point from #1 and takes the slope of the line #2 , #3 as x axis.
tkzDefRelativePoint[A,A,B](20:2)C
This command defines a point from A and takes the slope of the line A , B as x axis.
This is done here using
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
MWE
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
tkzFindSlopeAngle(A,B)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[A](20:2)C
endscope
%
%tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
tkz-euclide
asked Aug 14 at 9:17
sandu
3,15042351
3,15042351
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
Of course, in this case, the bracketed term is not "optional", but just part of the syntax.
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
deftkzDefRelativePoint[#1,#2,#3](#4)#5%
tkzFindSlopeAngle(#2,#3)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[#1](#4)#5
endscope
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
%tkzFindSlopeAngle(A,B)
%tkzGetAngletkzangle
%beginscope[rotate=tkzangle]
%tkzDefShiftPoint[A](20:2)C
%endscope
%
tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Of course, in this case, the bracketed term is not "optional", but just part of the syntax.
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
deftkzDefRelativePoint[#1,#2,#3](#4)#5%
tkzFindSlopeAngle(#2,#3)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[#1](#4)#5
endscope
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
%tkzFindSlopeAngle(A,B)
%tkzGetAngletkzangle
%beginscope[rotate=tkzangle]
%tkzDefShiftPoint[A](20:2)C
%endscope
%
tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
add a comment |Â
up vote
4
down vote
accepted
Of course, in this case, the bracketed term is not "optional", but just part of the syntax.
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
deftkzDefRelativePoint[#1,#2,#3](#4)#5%
tkzFindSlopeAngle(#2,#3)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[#1](#4)#5
endscope
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
%tkzFindSlopeAngle(A,B)
%tkzGetAngletkzangle
%beginscope[rotate=tkzangle]
%tkzDefShiftPoint[A](20:2)C
%endscope
%
tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Of course, in this case, the bracketed term is not "optional", but just part of the syntax.
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
deftkzDefRelativePoint[#1,#2,#3](#4)#5%
tkzFindSlopeAngle(#2,#3)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[#1](#4)#5
endscope
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
%tkzFindSlopeAngle(A,B)
%tkzGetAngletkzangle
%beginscope[rotate=tkzangle]
%tkzDefShiftPoint[A](20:2)C
%endscope
%
tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
Of course, in this case, the bracketed term is not "optional", but just part of the syntax.
documentclass[border=2pt]standalone
usepackage[usenames,dvipsnames,svgnames]xcolor
usepackagetkz-euclide
usetkzobjall
definecolorfondpaillecmyk0,0,0.1,0
pagecolorfondpaille
colorMaroon
deftkzDefRelativePoint[#1,#2,#3](#4)#5%
tkzFindSlopeAngle(#2,#3)
tkzGetAngletkzangle
beginscope[rotate=tkzangle]
tkzDefShiftPoint[#1](#4)#5
endscope
begindocument
begintikzpicture
tkzInit[xmax=4, ymax=3]
tkzAxeXY
tkzGrid[color=orange]
tkzDefPoint(1,0)A
tkzDefPoint(3,2)B
tkzDefShiftPoint[A](20:2)C'
%
%tkzFindSlopeAngle(A,B)
%tkzGetAngletkzangle
%beginscope[rotate=tkzangle]
%tkzDefShiftPoint[A](20:2)C
%endscope
%
tkzDefRelativePoint[A,A,B](20:2)C
%
tkzDrawSegment(A,B)
tkzDrawSegment[color=red](A,C)
tkzDrawPoints(A,B,C,C')
tkzLabelPoints(A,B,C,C')
endtikzpicture
enddocument
answered Aug 14 at 10:18
Steven B. Segletes
146k9185387
146k9185387
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f445982%2fdefining-new-command-in-tkz-euclide%23new-answer', 'question_page');
);
Post as a guest
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
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
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