# Tag Info

18

The key /pgf/decoration/raise will move these decorations by the specified amount. You can add this as simply raise in the decoration specification, e.g. your first brace would be: \draw [decorate,decoration={brace,mirror,amplitude=10pt,raise=5pt},xshift=0pt,yshift=-4pt] (A) -- (B) node [black,midway,yshift=-15pt] {\footnotesize $1$}; However, in your ...

18

With tkz-euclide 3.02, \usetkzobj{all} (or \usetkzobjall) is not necessary according to the manual: With the new version 3.02 you don’t need this line anymore. All objects are now loaded. Removing this command will make the error disappear.

16

You can do this by first marking the angles, then "clipping" them by covering them with white, and finally drawing the rest of the picture. It's a bit of a hack and might not work in every case, but it works here. \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{tkz-euclide} \usetkzobj{all} % Thanks to Jan Hlavacek for giving an example % (...

14

Here is one way to do it which adapts the code you were already using to draw the cylinders (i.e. using ellipses). This method uses the intersections library to calculate the intersection point of a line drawn radially out from the centre of the ellipse to the edge of the ellipse. \documentclass[tikz,margin=0.5cm]{standalone} \usetikzlibrary{intersections}...

11

Why doing manual calculations? The problem (which has been explained in other answers) can be easily solved if instead of manual calculations one uses the tools provided by the package, so instead of the error-prone manual calculation of the third vertex B: \tkzDefPoint(0,1){A} \tkzDefPoint(1.62,0){B} \tkzDefPoint(0,-1){C} you should simply use \...

11

Use size=<length> for \tkzMarkAngle to control the radius for the arc used for the mark. Use the pos key in \tkzLabelAngle to move the label away (or closer) to the vertex of the angle. You could also try reducing a little the font size: \tkzMarkAngle[size=1.3,draw = black, fill = white, opacity=1](A,N,B) \tkzLabelAngle[pos=1.1,font=\scriptsize](A,N,...

10

Here's an example using pgfplots to draw some of the regions mentioned (the region bounded by two horizontal straight lines, the region outside a horizontal strip, the plane minus some rays, the plane minus some points): \documentclass[border=3pt,varwidth=true,varwidth=40cm]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \begin{document}...

10

After looking at the code, I think I can explain why this happens. During the calculation of the intersections of a line AB and a circle, tkz-euclide, defines a coordinate that lies on a line that is normal to AB and the same distance away from the centre of the circle as the length of AB. This coordinate is included in the bounding box, causing the ...

10

The problem is that A and B are nodes so the connections will be draw to the point on their border which is nearest, as the crow flies, from the originating point. So the connecting point is not at the centre where you think it is. Here's a minimised case: \begin{tikzpicture} [ scale=0.4, ] \node[circle,fill=black,inner sep=0pt,minimum ...

10

Here's how this can be done using tkz-euclide: \documentclass[border=5mm]{standalone} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture}[scale=2] % Define the first two points \tkzDefPoint(0,0){A} \tkzDefPoint(3.07,0){B} % Find the intersections of the circles around A and B with the given radii \tkzInterCC[R](A,2.37cm)(B,1....

10

The macro \tkzGetLength returns the length expressed in pt, if you use cm, you must convert this measurement to cm when calling it. \tkzDrawCircle[R](A,\dBD cm) instead of \tkzDrawCircle[R](A,\dBD) In addition, calculations are prohibited during the passage of parameters to allow you to choose the calculation engine (see p 57 of manual): pgf with \...

10

You need to use \coordinate instead of \node. See here: TikZ: difference between \node and \coordinate?. \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{figure*} \centering \begin{tikzpicture}[scale=5] \coordinate (point) at (0:1); \coordinate (otherpoint) at (30:1); \coordinate (...

10

I used v 3.01 for this answer. The problem is the same with tkz-euclide because it uses TikZ's options. It's why because it's possible with tkz-euclide I prefer the method : Define, Calculus, Drawing, Marking an Labelling With three lines you get all the points ! Then you just need to draw ... The order is important you need to finish with the points. If ...

9

You can use \tkzSetUpPoint[<options>] to customize the attributes for points. An example: \documentclass{article} \usepackage{tikz} \usepackage{tkz-euclide} \tkzSetUpPoint[fill=black] \begin{document} \begin{tikzpicture} \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C} \tkzDrawPoints(A,B,C) % want them filled \tkzDrawSegments(A,...

9

Your red circle is already solid, you just happen to draw things later which overlap it. If you move the \filldraw[red] (...) circle statement to the end everything looks good. Also please note that the preferred syntax for circle is circle[radius=<dim>] instead of circle(<dim>). In addition you should use -- cycle at the end of closed paths so ...

8

You need to add the line \usetkzobj{all} to your preamble straight after \usepackage{tkz-euclide}. From the README in the CTAN entry for tkz-euclide: To use the package tkz-euclide, place the following lines in the preamble of your LaTeX document. \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{tkz-euclide} loads tkz-base and TikZ. \...

8

Andrew Swann's answer is perfect, but your code is so long, that I decided to put here a shorter one. Sorry if you are not interested by this, but may be someone else will be ;) \documentclass[varwidth,border=10]{standalone} \usepackage{tikz} \usetikzlibrary{calc,angles,quotes,decorations.pathreplacing} \begin{document} \begin{tikzpicture}[scale=5, ...

8

I find your lack of faith disturbing... \documentclass[tikz]{standalone} \usetikzlibrary{shapes.geometric,calc} \begin{document} \begin{tikzpicture} \node[regular polygon,regular polygon sides=23,draw,minimum height=5cm] (a) at (0,0) {}; \draw[red] let \p1=($(a.corner 1)-(a.center)$), \n1={veclen(\x1,\y1)} in circle (\n1); \foreach \x[count=\xi] in {A,B,...,...

8

Since you're using tkz-euclide, you can use it to calculate the length of the path through the command \tkzCalcLength(A,B) and store it in a variable \tkzGetLength{ABl}. Then we can set the number of "segments" (with \ticknum) we want the path split into and with a simple calculation, we can divide the path equally into those segments. Finally, we can use \...

8

Based on Jake's answer with some refinements \documentclass[border=5mm]{standalone} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \pgfkeys{/pgf/decoration/.cd, distance/.initial = 10pt} \pgfdeclaredecoration{add dim}{final}{ \state{final}{% \pgfmathsetmacro{\dist}{\pgfkeysvalueof{/pgf/decoration/distance}} \...

8

I could not compile your code - the commands with ultra in them, among others, couldn't be found (though this could be a problem on my end; I only have TeXLive 2016). I used the tikz package instead with the following code. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Bounding rectangle \draw (0,0) rectangle (6,5); %...

8

\documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture}[>=stealth] \tkzDefPoint(0,0){A} \tkzDefPoint(6,0){B} \tkzDefPoint(6,5){C} \tkzDefPoint(0,5){D} \tkzDefPoint (3,3){E} \tkzDrawPolygon[ultra thick](A,B,C,D) \tkzDrawPoints(A,B,C,D) \tkzLabelPoints[below left](A) \tkzLabelPoints[below right](B) \...

8

E is the easiest point to find, that's just a matter of using polar coordinates. If D is at (0,0), and B is at (90:1) (polar coordinate, angle 90 radius 1), then E is at (140:1). \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections,calc,angles,quotes} \begin{document} \begin{tikzpicture}[scale=4] \coordinate [label=below:...

8

You haven't shown the whole error message. It says ! Package xcolor Error: Undefined color `Gold'. See the xcolor package documentation for explanation. Type H <return> for immediate help. ... l.16 ...own](2.5,-.5){La pente de (AC) est : \SAC} Try typing <return> to proceed. If that doesn't ...

8

I didn't try to track down the exact source of the problem, but it is a known problem, that the bounding box not only takes into account all visible objects, but also coordinates used in the computation of paths etc. I think this might also be the issue here. As a workaround, remove \tkzInit\tkzClip[space = 1] and wrap everything which should not influence ...

8

In addition to the solution given by @samcarter, it is enough to frame the figure with a rectangle \draw(-1,-1)rectangle(11,7); without using a \fbox to solve this problem. Edit: thanks a lot to marmot who saw the error I hadn't seen! \documentclass[]{article} \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{pgfplots} \usetikzlibrary{calc,patterns,...

Only top voted, non community-wiki answers of a minimum length are eligible