tkz-euclide, FillAngle

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
8
down vote

favorite
1












tkzFillAngle makes a small mistake when filling an angle and I don't know why.



Here is my minimum working example:



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
node at (0:1) (point) ;
node at (30:1) (otherpoint) ;
node at (0:0) (O) ;
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
draw [dashed] (O.center)--(point);
draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


Here is what I get. Note how the filling doesn't go all the way to the corner of the angle. Any idea what I'm doing wrong?



enter image description here







share|improve this question


















  • 1




    Welcome to TeX.SE. I see an error of compilation: Missing chars ;.
    – Sebastiano
    Aug 15 at 18:52











  • @CarLaTeX Now I'm using Papeeria and I have this bit of error. Can you try here: papeeria.com. That is not, of course, the problem. In my opinion, there are some coordinate errors.
    – Sebastiano
    Aug 15 at 19:04











  • @Sebastiano When I compile the code in texpad (using the mactex distribution), I don't get any errors. Also I don't see where I could have misplaced a ;
    – Fabian
    Aug 15 at 19:05






  • 3




    Use coordinate instead of node : coordinate (O) at (0:0); Nodes are extended objects, they come with inner sep and outer sep.
    – marmot
    Aug 15 at 19:09







  • 1




    @Sebastiano you're right there is a wrong ";" at the end of the tkzFillAngle instruction.
    – CarLaTeX
    Aug 16 at 6:34














up vote
8
down vote

favorite
1












tkzFillAngle makes a small mistake when filling an angle and I don't know why.



Here is my minimum working example:



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
node at (0:1) (point) ;
node at (30:1) (otherpoint) ;
node at (0:0) (O) ;
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
draw [dashed] (O.center)--(point);
draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


Here is what I get. Note how the filling doesn't go all the way to the corner of the angle. Any idea what I'm doing wrong?



enter image description here







share|improve this question


















  • 1




    Welcome to TeX.SE. I see an error of compilation: Missing chars ;.
    – Sebastiano
    Aug 15 at 18:52











  • @CarLaTeX Now I'm using Papeeria and I have this bit of error. Can you try here: papeeria.com. That is not, of course, the problem. In my opinion, there are some coordinate errors.
    – Sebastiano
    Aug 15 at 19:04











  • @Sebastiano When I compile the code in texpad (using the mactex distribution), I don't get any errors. Also I don't see where I could have misplaced a ;
    – Fabian
    Aug 15 at 19:05






  • 3




    Use coordinate instead of node : coordinate (O) at (0:0); Nodes are extended objects, they come with inner sep and outer sep.
    – marmot
    Aug 15 at 19:09







  • 1




    @Sebastiano you're right there is a wrong ";" at the end of the tkzFillAngle instruction.
    – CarLaTeX
    Aug 16 at 6:34












up vote
8
down vote

favorite
1









up vote
8
down vote

favorite
1






1





tkzFillAngle makes a small mistake when filling an angle and I don't know why.



Here is my minimum working example:



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
node at (0:1) (point) ;
node at (30:1) (otherpoint) ;
node at (0:0) (O) ;
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
draw [dashed] (O.center)--(point);
draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


Here is what I get. Note how the filling doesn't go all the way to the corner of the angle. Any idea what I'm doing wrong?



enter image description here







share|improve this question














tkzFillAngle makes a small mistake when filling an angle and I don't know why.



Here is my minimum working example:



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
node at (0:1) (point) ;
node at (30:1) (otherpoint) ;
node at (0:0) (O) ;
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
draw [dashed] (O.center)--(point);
draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


Here is what I get. Note how the filling doesn't go all the way to the corner of the angle. Any idea what I'm doing wrong?



enter image description here









share|improve this question













share|improve this question




share|improve this question








edited Aug 16 at 6:06









Alain Matthes

71k7154289




71k7154289










asked Aug 15 at 18:51









Fabian

433




433







  • 1




    Welcome to TeX.SE. I see an error of compilation: Missing chars ;.
    – Sebastiano
    Aug 15 at 18:52











  • @CarLaTeX Now I'm using Papeeria and I have this bit of error. Can you try here: papeeria.com. That is not, of course, the problem. In my opinion, there are some coordinate errors.
    – Sebastiano
    Aug 15 at 19:04











  • @Sebastiano When I compile the code in texpad (using the mactex distribution), I don't get any errors. Also I don't see where I could have misplaced a ;
    – Fabian
    Aug 15 at 19:05






  • 3




    Use coordinate instead of node : coordinate (O) at (0:0); Nodes are extended objects, they come with inner sep and outer sep.
    – marmot
    Aug 15 at 19:09







  • 1




    @Sebastiano you're right there is a wrong ";" at the end of the tkzFillAngle instruction.
    – CarLaTeX
    Aug 16 at 6:34












  • 1




    Welcome to TeX.SE. I see an error of compilation: Missing chars ;.
    – Sebastiano
    Aug 15 at 18:52











  • @CarLaTeX Now I'm using Papeeria and I have this bit of error. Can you try here: papeeria.com. That is not, of course, the problem. In my opinion, there are some coordinate errors.
    – Sebastiano
    Aug 15 at 19:04











  • @Sebastiano When I compile the code in texpad (using the mactex distribution), I don't get any errors. Also I don't see where I could have misplaced a ;
    – Fabian
    Aug 15 at 19:05






  • 3




    Use coordinate instead of node : coordinate (O) at (0:0); Nodes are extended objects, they come with inner sep and outer sep.
    – marmot
    Aug 15 at 19:09







  • 1




    @Sebastiano you're right there is a wrong ";" at the end of the tkzFillAngle instruction.
    – CarLaTeX
    Aug 16 at 6:34







1




1




Welcome to TeX.SE. I see an error of compilation: Missing chars ;.
– Sebastiano
Aug 15 at 18:52





Welcome to TeX.SE. I see an error of compilation: Missing chars ;.
– Sebastiano
Aug 15 at 18:52













@CarLaTeX Now I'm using Papeeria and I have this bit of error. Can you try here: papeeria.com. That is not, of course, the problem. In my opinion, there are some coordinate errors.
– Sebastiano
Aug 15 at 19:04





@CarLaTeX Now I'm using Papeeria and I have this bit of error. Can you try here: papeeria.com. That is not, of course, the problem. In my opinion, there are some coordinate errors.
– Sebastiano
Aug 15 at 19:04













@Sebastiano When I compile the code in texpad (using the mactex distribution), I don't get any errors. Also I don't see where I could have misplaced a ;
– Fabian
Aug 15 at 19:05




@Sebastiano When I compile the code in texpad (using the mactex distribution), I don't get any errors. Also I don't see where I could have misplaced a ;
– Fabian
Aug 15 at 19:05




3




3




Use coordinate instead of node : coordinate (O) at (0:0); Nodes are extended objects, they come with inner sep and outer sep.
– marmot
Aug 15 at 19:09





Use coordinate instead of node : coordinate (O) at (0:0); Nodes are extended objects, they come with inner sep and outer sep.
– marmot
Aug 15 at 19:09





1




1




@Sebastiano you're right there is a wrong ";" at the end of the tkzFillAngle instruction.
– CarLaTeX
Aug 16 at 6:34




@Sebastiano you're right there is a wrong ";" at the end of the tkzFillAngle instruction.
– CarLaTeX
Aug 16 at 6:34










3 Answers
3






active

oldest

votes

















up vote
10
down vote



accepted










You need to use coordinate instead of node.



See here: TikZ: difference between node and coordinate?.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
coordinate (point) at (0:1);
coordinate (otherpoint) at (30:1);
coordinate (O) at (0:0);
tkzFillAngle[fill=orange, size=0.3,
opacity=0.4](point,O,otherpoint)% no ; here
draw [dashed] (O)--(point);
draw (O)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


enter image description here






share|improve this answer


















  • 1




    @Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
    – CarLaTeX
    Aug 15 at 19:15

















up vote
5
down vote













It is possible to define the points as just done @CarlaTex but it is also possible to define them with the macro tkzDefPoint[< options >](x,y)name



The tkzFillAngle macro is not documented in the manual, but is quoted.
The manual contains the tkzMarkAngle macro which is used in the same way without being documented either.



The manual documents two macros that allow drawing angular sectors
tkzDrawSector and tkzFillSector which allows to plot angular sectors.
In order to understand the difference between these two macros, I drew the angular sector with each one without drawing the sides.



tkzDrawSector draws the contour of the corner:



draw-euclidetkzFillSector colors it without drawing its contour:



fill-euclide



It is of course possible to draw and colour the angular sector at the same time.
In the example you gave, as the magnification is of factor 5, I put a radius 5 times smaller (2mm)



tkz-euclide Macros don't need semicolons.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
% tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzMarkAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzFillSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
tkzDrawSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
draw [dashed] (O.center)--(point.center);
draw (O.center)--(otherpoint.center);
tkzDrawPoints(O,point,otherpoint)
endtikzpicture
captionasdf
endfigure*
enddocument


Output with tkzDrawSector:



draw-euclide-1



Output with tkzFillSector:



fill-euclide-1
Translated with www.DeepL.com/Translator






share|improve this answer






















  • in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
    – Alain Matthes
    Aug 16 at 6:14










  • @AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
    – AndréC
    Aug 16 at 6:19






  • 1




    Thanks for this nice overview! This cleared a lot of things up!
    – Fabian
    Aug 16 at 15:57

















up vote
2
down vote













With only tkz-euclide



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
% node at (0:1) (point) ;
% node at (30:1) (otherpoint) ;
% node at (0:0) (O) ;
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
tkzDrawSegment[dashed](O,point)
tkzDrawSegment(O,otherpoint)
% draw [dashed] (O.center)--(point);
% draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


With only tikz it's possible to fill an angle. You have beautiful examples with the geometry lessons in the pgfmanual. And now you can use a pic with the recent version.






share|improve this answer




















  • Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
    – CarLaTeX
    Aug 16 at 6:30










  • Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
    – Fabian
    Aug 16 at 15:58










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f446191%2ftkz-euclide-fillangle%23new-answer', 'question_page');

);

Post as a guest






























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
10
down vote



accepted










You need to use coordinate instead of node.



See here: TikZ: difference between node and coordinate?.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
coordinate (point) at (0:1);
coordinate (otherpoint) at (30:1);
coordinate (O) at (0:0);
tkzFillAngle[fill=orange, size=0.3,
opacity=0.4](point,O,otherpoint)% no ; here
draw [dashed] (O)--(point);
draw (O)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


enter image description here






share|improve this answer


















  • 1




    @Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
    – CarLaTeX
    Aug 15 at 19:15














up vote
10
down vote



accepted










You need to use coordinate instead of node.



See here: TikZ: difference between node and coordinate?.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
coordinate (point) at (0:1);
coordinate (otherpoint) at (30:1);
coordinate (O) at (0:0);
tkzFillAngle[fill=orange, size=0.3,
opacity=0.4](point,O,otherpoint)% no ; here
draw [dashed] (O)--(point);
draw (O)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


enter image description here






share|improve this answer


















  • 1




    @Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
    – CarLaTeX
    Aug 15 at 19:15












up vote
10
down vote



accepted







up vote
10
down vote



accepted






You need to use coordinate instead of node.



See here: TikZ: difference between node and coordinate?.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
coordinate (point) at (0:1);
coordinate (otherpoint) at (30:1);
coordinate (O) at (0:0);
tkzFillAngle[fill=orange, size=0.3,
opacity=0.4](point,O,otherpoint)% no ; here
draw [dashed] (O)--(point);
draw (O)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


enter image description here






share|improve this answer














You need to use coordinate instead of node.



See here: TikZ: difference between node and coordinate?.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
coordinate (point) at (0:1);
coordinate (otherpoint) at (30:1);
coordinate (O) at (0:0);
tkzFillAngle[fill=orange, size=0.3,
opacity=0.4](point,O,otherpoint)% no ; here
draw [dashed] (O)--(point);
draw (O)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 16 at 6:24









Alain Matthes

71k7154289




71k7154289










answered Aug 15 at 19:11









CarLaTeX

25.4k442110




25.4k442110







  • 1




    @Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
    – CarLaTeX
    Aug 15 at 19:15












  • 1




    @Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
    – CarLaTeX
    Aug 15 at 19:15







1




1




@Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
– CarLaTeX
Aug 15 at 19:15




@Fabian You're welcome, thank you for accepting my answer! We always like to help users who post an MWE. Your question is perfect.
– CarLaTeX
Aug 15 at 19:15










up vote
5
down vote













It is possible to define the points as just done @CarlaTex but it is also possible to define them with the macro tkzDefPoint[< options >](x,y)name



The tkzFillAngle macro is not documented in the manual, but is quoted.
The manual contains the tkzMarkAngle macro which is used in the same way without being documented either.



The manual documents two macros that allow drawing angular sectors
tkzDrawSector and tkzFillSector which allows to plot angular sectors.
In order to understand the difference between these two macros, I drew the angular sector with each one without drawing the sides.



tkzDrawSector draws the contour of the corner:



draw-euclidetkzFillSector colors it without drawing its contour:



fill-euclide



It is of course possible to draw and colour the angular sector at the same time.
In the example you gave, as the magnification is of factor 5, I put a radius 5 times smaller (2mm)



tkz-euclide Macros don't need semicolons.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
% tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzMarkAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzFillSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
tkzDrawSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
draw [dashed] (O.center)--(point.center);
draw (O.center)--(otherpoint.center);
tkzDrawPoints(O,point,otherpoint)
endtikzpicture
captionasdf
endfigure*
enddocument


Output with tkzDrawSector:



draw-euclide-1



Output with tkzFillSector:



fill-euclide-1
Translated with www.DeepL.com/Translator






share|improve this answer






















  • in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
    – Alain Matthes
    Aug 16 at 6:14










  • @AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
    – AndréC
    Aug 16 at 6:19






  • 1




    Thanks for this nice overview! This cleared a lot of things up!
    – Fabian
    Aug 16 at 15:57














up vote
5
down vote













It is possible to define the points as just done @CarlaTex but it is also possible to define them with the macro tkzDefPoint[< options >](x,y)name



The tkzFillAngle macro is not documented in the manual, but is quoted.
The manual contains the tkzMarkAngle macro which is used in the same way without being documented either.



The manual documents two macros that allow drawing angular sectors
tkzDrawSector and tkzFillSector which allows to plot angular sectors.
In order to understand the difference between these two macros, I drew the angular sector with each one without drawing the sides.



tkzDrawSector draws the contour of the corner:



draw-euclidetkzFillSector colors it without drawing its contour:



fill-euclide



It is of course possible to draw and colour the angular sector at the same time.
In the example you gave, as the magnification is of factor 5, I put a radius 5 times smaller (2mm)



tkz-euclide Macros don't need semicolons.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
% tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzMarkAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzFillSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
tkzDrawSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
draw [dashed] (O.center)--(point.center);
draw (O.center)--(otherpoint.center);
tkzDrawPoints(O,point,otherpoint)
endtikzpicture
captionasdf
endfigure*
enddocument


Output with tkzDrawSector:



draw-euclide-1



Output with tkzFillSector:



fill-euclide-1
Translated with www.DeepL.com/Translator






share|improve this answer






















  • in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
    – Alain Matthes
    Aug 16 at 6:14










  • @AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
    – AndréC
    Aug 16 at 6:19






  • 1




    Thanks for this nice overview! This cleared a lot of things up!
    – Fabian
    Aug 16 at 15:57












up vote
5
down vote










up vote
5
down vote









It is possible to define the points as just done @CarlaTex but it is also possible to define them with the macro tkzDefPoint[< options >](x,y)name



The tkzFillAngle macro is not documented in the manual, but is quoted.
The manual contains the tkzMarkAngle macro which is used in the same way without being documented either.



The manual documents two macros that allow drawing angular sectors
tkzDrawSector and tkzFillSector which allows to plot angular sectors.
In order to understand the difference between these two macros, I drew the angular sector with each one without drawing the sides.



tkzDrawSector draws the contour of the corner:



draw-euclidetkzFillSector colors it without drawing its contour:



fill-euclide



It is of course possible to draw and colour the angular sector at the same time.
In the example you gave, as the magnification is of factor 5, I put a radius 5 times smaller (2mm)



tkz-euclide Macros don't need semicolons.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
% tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzMarkAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzFillSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
tkzDrawSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
draw [dashed] (O.center)--(point.center);
draw (O.center)--(otherpoint.center);
tkzDrawPoints(O,point,otherpoint)
endtikzpicture
captionasdf
endfigure*
enddocument


Output with tkzDrawSector:



draw-euclide-1



Output with tkzFillSector:



fill-euclide-1
Translated with www.DeepL.com/Translator






share|improve this answer














It is possible to define the points as just done @CarlaTex but it is also possible to define them with the macro tkzDefPoint[< options >](x,y)name



The tkzFillAngle macro is not documented in the manual, but is quoted.
The manual contains the tkzMarkAngle macro which is used in the same way without being documented either.



The manual documents two macros that allow drawing angular sectors
tkzDrawSector and tkzFillSector which allows to plot angular sectors.
In order to understand the difference between these two macros, I drew the angular sector with each one without drawing the sides.



tkzDrawSector draws the contour of the corner:



draw-euclidetkzFillSector colors it without drawing its contour:



fill-euclide



It is of course possible to draw and colour the angular sector at the same time.
In the example you gave, as the magnification is of factor 5, I put a radius 5 times smaller (2mm)



tkz-euclide Macros don't need semicolons.



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
% tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzMarkAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint);
% tkzFillSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
tkzDrawSector[R with nodes,fill=orange, opacity=0.4](O,2mm)(point,otherpoint)
draw [dashed] (O.center)--(point.center);
draw (O.center)--(otherpoint.center);
tkzDrawPoints(O,point,otherpoint)
endtikzpicture
captionasdf
endfigure*
enddocument


Output with tkzDrawSector:



draw-euclide-1



Output with tkzFillSector:



fill-euclide-1
Translated with www.DeepL.com/Translator







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 16 at 6:14

























answered Aug 15 at 20:51









AndréC

2,872728




2,872728











  • in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
    – Alain Matthes
    Aug 16 at 6:14










  • @AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
    – AndréC
    Aug 16 at 6:19






  • 1




    Thanks for this nice overview! This cleared a lot of things up!
    – Fabian
    Aug 16 at 15:57
















  • in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
    – Alain Matthes
    Aug 16 at 6:14










  • @AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
    – AndréC
    Aug 16 at 6:19






  • 1




    Thanks for this nice overview! This cleared a lot of things up!
    – Fabian
    Aug 16 at 15:57















in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
– Alain Matthes
Aug 16 at 6:14




in the next version of tkz-euclide, I changed some options. No tkzMark,tkzFill, tkzDraw are specific macros. It's not possible to fill with draw or to draw with mark etc...
– Alain Matthes
Aug 16 at 6:14












@AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
– AndréC
Aug 16 at 6:19




@AlainMatthes In my opinion, the most practical (user friendly) is to make as on tikz, a single macro corresponding to a single concept like tkzSector and whose options draw, fill, mark, allow to modify its use
– AndréC
Aug 16 at 6:19




1




1




Thanks for this nice overview! This cleared a lot of things up!
– Fabian
Aug 16 at 15:57




Thanks for this nice overview! This cleared a lot of things up!
– Fabian
Aug 16 at 15:57










up vote
2
down vote













With only tkz-euclide



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
% node at (0:1) (point) ;
% node at (30:1) (otherpoint) ;
% node at (0:0) (O) ;
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
tkzDrawSegment[dashed](O,point)
tkzDrawSegment(O,otherpoint)
% draw [dashed] (O.center)--(point);
% draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


With only tikz it's possible to fill an angle. You have beautiful examples with the geometry lessons in the pgfmanual. And now you can use a pic with the recent version.






share|improve this answer




















  • Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
    – CarLaTeX
    Aug 16 at 6:30










  • Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
    – Fabian
    Aug 16 at 15:58














up vote
2
down vote













With only tkz-euclide



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
% node at (0:1) (point) ;
% node at (30:1) (otherpoint) ;
% node at (0:0) (O) ;
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
tkzDrawSegment[dashed](O,point)
tkzDrawSegment(O,otherpoint)
% draw [dashed] (O.center)--(point);
% draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


With only tikz it's possible to fill an angle. You have beautiful examples with the geometry lessons in the pgfmanual. And now you can use a pic with the recent version.






share|improve this answer




















  • Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
    – CarLaTeX
    Aug 16 at 6:30










  • Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
    – Fabian
    Aug 16 at 15:58












up vote
2
down vote










up vote
2
down vote









With only tkz-euclide



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
% node at (0:1) (point) ;
% node at (30:1) (otherpoint) ;
% node at (0:0) (O) ;
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
tkzDrawSegment[dashed](O,point)
tkzDrawSegment(O,otherpoint)
% draw [dashed] (O.center)--(point);
% draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


With only tikz it's possible to fill an angle. You have beautiful examples with the geometry lessons in the pgfmanual. And now you can use a pic with the recent version.






share|improve this answer












With only tkz-euclide



documentclassarticle
usepackagetkz-euclide
usetkzobjall
begindocument
beginfigure*
centering
begintikzpicture[scale=5]
% node at (0:1) (point) ;
% node at (30:1) (otherpoint) ;
% node at (0:0) (O) ;
tkzDefPoint(0:1)point
tkzDefPoint(30:1)otherpoint
tkzDefPoint(0:0)O
tkzFillAngle[fill=orange, size=0.3, opacity=0.4](point,O,otherpoint)
% tkz code no ;
tkzDrawSegment[dashed](O,point)
tkzDrawSegment(O,otherpoint)
% draw [dashed] (O.center)--(point);
% draw (O.center)--(otherpoint);
endtikzpicture
captionasdf
endfigure*
enddocument


With only tikz it's possible to fill an angle. You have beautiful examples with the geometry lessons in the pgfmanual. And now you can use a pic with the recent version.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 16 at 6:23









Alain Matthes

71k7154289




71k7154289











  • Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
    – CarLaTeX
    Aug 16 at 6:30










  • Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
    – Fabian
    Aug 16 at 15:58
















  • Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
    – CarLaTeX
    Aug 16 at 6:30










  • Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
    – Fabian
    Aug 16 at 15:58















Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
– CarLaTeX
Aug 16 at 6:30




Thanks for editing my answer, that's the reason for the error reported by Sebastiano, then. I didn't look at the log because I answered using Overleaf.
– CarLaTeX
Aug 16 at 6:30












Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
– Fabian
Aug 16 at 15:58




Thanks! Yeah, I know I can fill an angle with just tikz, but I need tkz-euclide for some other parts, involving equilateral triangles etc.
– Fabian
Aug 16 at 15:58

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f446191%2ftkz-euclide-fillangle%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

One-line joke