TKZ is a collection of packages that extend the functionality of the drawing package TikZ.

learn more… | top users | synonyms

49
votes
1answer
4k views

AucTeX extension for TikZ

Is there an AucTeX extension which supports the TikZ syntax and that one of the tkz-collection as well? In particular I want thinks like: syntax highlighting proper indentation that ...
15
votes
1answer
14k views

pgfplots axis scaling

Is it possible to define in pgfplots that y should correspond to Y cm in my plot? I know how to do this in tkz-fct, so let me add an tkz-fct example to make more clear what I want: ...
13
votes
6answers
1k views

Second Derivative

I would like to make a function analysis and I'm trying to make a tabular which includes the first and second derivatives and the curve arrow which indicates the monotonicity of my function and I ...
11
votes
2answers
1k views

filled quarter circle

As usual I am typeseting some old exams. I ran into this image shown below I ran into some problems when trying to tikz it up. In the minimal example below I have been able to almost recreate this ...
10
votes
3answers
387 views

Easiest way to fill the region defined by a number of paths

I have a number of paths, quad-circles in this case, which intersect to define a complex region in the middle of the graph. How do I fill the A - B - C - D region in the image below? I prefer a ...
10
votes
1answer
7k views

How to shorten the length of an arrow?

I use tkz-graph.sty from Altermundus. When I make an arrow from vertex A to vertex B, the arrow is too long: it goes from the center of A to the center of B. Can I shorten the arrow on both ends by a ...
9
votes
5answers
1k views

How to draw tangent to two touching circles and marking the points

This question may seem repetitive to many, but as I am very new to Latex, even after reading many posts, could not get to draw what I wanted, so asking. I want to draw as the following. I have ...
9
votes
3answers
3k views

Label Points in a circle in tikz

Consider the slight modification of the construction from the solution to this question: Variables and basic arithmetics and tikz-euclide \documentclass{minimal} \usepackage{tkz-euclide} ...
9
votes
3answers
228 views

tkz* commands vs draw/path

I am learning TikZ and am confused about two apparent completely different ways to go about things, although they seem completely compatible and intermixable: \begin{tikzpicture} \draw[color=black] ...
9
votes
1answer
349 views

Drawing balls in a rectangle

I am trying to replicate the following figure here and this is what I have so far \documentclass[12pt,a4paper]{standalone} \usepackage{tikz,tkz-euclide,pgfplots} \usetkzobj{all} ...
9
votes
2answers
4k views

Placing a figure inside a multirow table cell

Is it possible to place a figure within a multirow cell? The vertical alignment is ruined. Does it have to do anything with tikz's bounding boxes? The following mwe produces the following result ...
8
votes
4answers
2k views

Piecewise defined function in tikz or tkz-fct

How to define and plot a piecewise defined function in tikz or tkz-fct? For example consider the function f(x) = 1 for x < 0, x for 0 <= x < 1, cos(x) for x >= 1 Edit: After Torbjørn T.'s ...
8
votes
2answers
423 views

Individual value labels in Kiviat Diagram

I'm using the tkz-kiviat package to draw spider graphs and am quite happy with it. I can see how to add a axis label but how can I label the individual values of each node? There doesn't seem to be a ...
7
votes
2answers
439 views

Intersection of two tkz-fct funktions

Is it possible to mark the intersection point of two tkz-fct functions and print it's coordinates? For example in this case: \documentclass{article} \usepackage{tkz-fct} \begin{document} ...
6
votes
1answer
188 views

decorating with tkz-berge

In my continuing quest to draw circles and lines willy-nilly, I've made the following use of tkz-berge: \documentclass[11pt]{standalone} \usepackage{tkz-berge} \usetikzlibrary{shapes,snakes,mindmap} ...
5
votes
5answers
358 views

How to divide a segment into n equal pieces in tikz

I want to divide a vector in n pieces. But I want to do this in tikz. Years ago I made my drawing in CorelDraw and the result was this: Now I want to make it in tikz with this code: ...
5
votes
2answers
1k views

tkz-euclide changing labels and size (triangle, inscribed circle)

A friend of me Torbjørn, showed me how to build the image below using tikz with the following code. \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} ...
5
votes
1answer
74 views

Make an angle bisector in a triangle

I want to draw a bisector going from the AB segment in this triangle, but I do not know how I can make it so that it does not extend beyond the triangle. Here is my work: \documentclass{article} ...
5
votes
1answer
151 views

conflict tkz-euclide and nag?

Am I doing something wrong and is this meant to happen? %\documentclass{minimal} edit: should not be used \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} ...
5
votes
1answer
605 views

How to color Petersen Graph using tkz-berge?

I am using the following code to draw a Petersen graph in LaTeX beamer: \documentclass{article} \usepackage{tkz-berge} \begin{document} \begin{tikzpicture}[rotate=90] \GraphInit[vstyle=Art] ...
5
votes
0answers
925 views

Problem to print a pdf [closed]

The problem appears with two Lexmark printers. A friend compiled this example of my package tkz-euclide: \documentclass[a4paper]{article} \usepackage[usenames,dvipsnames]{xcolor} ...
4
votes
4answers
641 views

Best way to draw scaled polygons in tikz

I want to draw pictures like this or this one . It is clear how to do this "manually" with TikZ. However is there a way to do it automatically. I.e. I just want to define the polygon (for ...
4
votes
1answer
335 views

How to reuse vertex names using the tkz-berge graph drawing package?

I'm trying to draw a graph using tkz-berge, where many of the vertices might display the same value, is there a way I can do this? Here is my code: \begin{figure}[h] \centering ...
4
votes
2answers
400 views

Get x and y coordinates of a point in tkz?

Is it possible to get the x or y coordinate of a Point with tkz? Especially if I have two points A=(a_1,a_2) and B=(b_1,b_2) I want to have a Point C=(a_1,b_2). This is related to Extract the x/y ...
4
votes
1answer
301 views

Callout pointing at wrong direction

I wonder why my callout pointer is pointing at the wrong direction. It should point towards the coordinate (-2,1). What am I doing wrong here? \documentclass[tikz]{standalone} \usepackage{kpfonts} ...
4
votes
1answer
503 views

tikz for DAG: give outline and background to labels that are out of the node?

I am using the TikZ and tkz-berge packages to create a direct acyclic graph. I've pasted my code below. I would like the variable labels "variable1", "variable2", etc to have an outline around them ...
4
votes
2answers
1k views

tkz-graph : inconsistency between edge and loop

I'm discovering the great package tkz-graph and I am experiencing some trouble with the \Loop macro. There seem to be some inconsistencies between the \Loop macro and the \Edge macro. For example, in ...
4
votes
1answer
699 views

Where can I find documentaion for tkz-graph in english

The tkz-graph / tkz-berge packages are really useful for making graphs. The official documentation available on CTAN, is however not much help. The documentation for tkz-berge only document the ...
4
votes
1answer
429 views

Scalefnt and tkz

I am trying to scale the font in a tikz picture using the scalefnt (compare this question) package. However for tkz obejects it doesn't work, for example: \documentclass{minimal} ...
4
votes
1answer
725 views

Variables and basic arithmetics and tikz-euclide

I want to draw a circle using tkz-euclide and n segments of this circle. Since I want to have n as a basic variable I need to divide in the following example. However it doesn't work, any ideas? ...
3
votes
2answers
3k views

TikZ inside pgfplot axis environment

I am trying to use the TkZ command MarkRightAngle in an axis environment, however I cannot get it to work. I get a "Missing character: There is no ; in font nullfont!" error and "Line 21: Package pgf ...
3
votes
1answer
161 views

How to color numbers in axis?

I want to color the numbers 3 in blue and -1 in green as show in the picture below. My code is this : \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
3
votes
1answer
482 views

tkz-fct produces no plots, why?

tkz-fct produces no plots, for instance I copied the following code from the manual: \documentclass{article} \usepackage{color} \usepackage{tikz}% \usepackage{tkz-euclide} ...
3
votes
1answer
243 views

How to add edges to automatically generated graphs

I have no background in drawing in LaTeX and I just came across the tkz-berge package. I want to draw a complete graph, a small-world graph and a random connected graph. The complete graph was easy ...
3
votes
1answer
243 views

Tikz lines intersect boxes

Today I just started to learn how to use the Tikz package for drawing flow-charts. I've been reading through the manual and a few online sites such as our beloved TeX.SE, but I can't seem to figure ...
3
votes
2answers
641 views

How to define new functions for plotting in tkz-fct?

Is it possible to define new functions in tkz-fct and use them to plot using \tkzFct?
3
votes
1answer
386 views

tkz-euclide, define points outside of tikzpicture

Is it possible to define points in tkz-euclide outside of the tikzpicture environment? For example I would like to have something like this exercise in elementary geometry: Exercise: Consider the ...
3
votes
1answer
32 views

Getting the font to be white in tikz

I am creating a flow chart in tikz and want the font of one of my nodes to be white (it's the one with the black background) but can't figure out how to get that done. Also, my arrow that goes from ...
3
votes
1answer
128 views

Draw vertex in middle of icosahedron

I am trying to mimic a ball-and-stick diagram where a molecule is caged in an icosahedron of other molecules. Using tkz-berg I can draw the icosahedron, using code from this SO question. How do I put ...
2
votes
1answer
42 views

How can I change the placement of a point that has automatically been placed by LaTex?

I used the command \tkzGetPoint{a} to make the angle bisector of the ABC angle. However, the point a gets placed much further below the triangle than I would like and that causes there to be a large ...
2
votes
2answers
3k views

Tkz-fct Package Error — I can't find file `tikzlibrary'.

I tried to install and use the new Tkz-fct package. The installation was OK, MikTex Package Manager says that I've successfully installed the package but if I try the most easy example from the ...
2
votes
2answers
106 views

How can I change the distance of tips of \tkzAxeXY?

I am currently trying to improve the image de.wikipedia.org/wiki/Datei:TrigEinheitskreis.png / create a free version of it. LaTeX This is what I've got so far: \documentclass{article} ...
2
votes
1answer
275 views

Control sub line width in tkz-collection

In tkz-base I can control the line width of a grid with the line width option as in the following example: \documentclass{article} \usepackage{tkz-base} \begin{document} \begin{tikzpicture} ...
2
votes
1answer
267 views

Repairing old tkz-2d TIKZ Example

I want use the following TikZ example: TikZ Example Intersecting arcs However, the package tkz-2d has been superseeded by tkz-euclide. It produces numerous errors and the ouput is a little dot. ...
2
votes
1answer
435 views

Error trying to compile tikzpicture code

Some of my tikzpicture code won't compile anymore. The following code used to compile (2 years ago), but now I get "ABD: EveryShipout initializing macros ! Package pgf Error: No shape named B is ...
1
vote
1answer
2k views

How to install tkz-2d in TeXLive 2010?

How to install tkz-2d in TeXLive 2010? My directory is /usr/local/texlive/2010 but i do not know which folder to place and even how to active.
1
vote
1answer
243 views

How can I plot 2 figures around a node using tkz-collection in a single tikz picture?

Usually I can specify a node location relative to location of another node, e.g., using left of and alike \usepackage{tikz} \usetikzlibrary{positioning} ... \matrix (first) [left of=arrow, matrix of ...
1
vote
1answer
358 views

Tkz-berge does not respond to node-distance specification

I'm having some issues with the latest version of the tkz-berge package: it seems to be ignoring node-distance specifications. If I compile this file (using example n. 39 from the tkz-berge ...
1
vote
1answer
705 views

Inserting the \markangle on tkz-euclide 1.16c

How do i insert \markangle in tkz-euclid 1.16c? \documentclass{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt} ...
1
vote
1answer
326 views

tkz-fct: control ticks of x-axis

In tkz-fct, the command \tkzDrawX draws the x-axis. Is there an option to control the size of the ticks on this axis? Is it possible to draw the axis even without ticks at all?