The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
93 views

Using Tikz Fit to draw a node covering a Tikz chains

A chain of nodes is drawn using tikz chains. I would like to draw a rectangle node covering the chain nodes (or, multiple rectangle nodes covering subsets of them). I am using tikz fit. ...
4
votes
3answers
107 views

Set longtable to fit the page-width

I would like to set a longtable to fit correctly the page-witdh. From now, I've this situation: and the related tex code is: \usepackage{array} \usepackage{multirow} \usepackage{longtable} ...
11
votes
2answers
158 views

Fit only the height on a node

I've been trying to get the fit key in TikZ to scale a node so that it matches only the height of it's fit nodes but I haven't been successful. I'm trying to get the red box to be the size of the blue ...
7
votes
3answers
126 views

Fitting as a background to nodes in multiple pictures

I'm using TikZ pictures to represent terms in an equation, and I want to visually group some of these terms by drawing a rectangle behind them. But each term is its own separate picture, which means I ...
7
votes
2answers
171 views

How put tick and cross mark around a node in tikz?

I want to draw something like this: This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{trees} \tikzstyle{bag} = [text width=8em, text ...
1
vote
0answers
78 views

Fitting equation inside a column

I am using twocolumn revtex mode, and for my matrix to fit inside the column I used this 'trick' \begin{equation} \resizebox{1.\hsize}{!}{ \bordermatrix{~ & \tau & r & \theta & ...
4
votes
1answer
267 views

Matrix of nodes over multiple columns in tikz

I want to create a diagram with tikz in which entries overdraw more than one column. I solved this problem already with the fit package. But now there is a problem with the look of the nodes within ...
7
votes
2answers
178 views

Can't get rid of strange underfull \hbox with TikZ fit library [duplicate]

Possible Duplicate: Badbox from PGF layer using fit This peace of code is compiled with 'Underfull \hbox (badness 1484) in paragraph at lines 23--23' message. Line 23 is \node[draw, inner ...
4
votes
1answer
110 views

Error with TikZ's Fitting Library when using coordinates

I try to use the TikZ's Fitting Library with coordinates but it didn't compile. In the manual of TikZ we got This option must be given to a node path command. The coordinates or nodes should be a ...
7
votes
1answer
248 views

Badbox from PGF layer using fit

Why does the code \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds,fit} \tikzstyle{internal} = [draw, fill, shape=circle] \begin{document} ...
9
votes
3answers
222 views

Why does fitting fail in TikZ in the second image?

I have a document with two tikz pictures, both use the fit library. As long as I only have one picture everything works fine: \documentclass[a4paper]{article} \usepackage[english]{babel} ...
10
votes
1answer
596 views

How to use “fit” to frame the nodes and labels

I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels: \documentclass{article} ...
16
votes
2answers
1k views

tikz: a big box with fixed width containing smaller boxes

I want to render with tikz something like : The surrounding big box should behave somehow like a minipage : the width is fixed, and the height should grow if we add sufficiently small boxes inside. ...
0
votes
0answers
107 views

Fit given text on a user specified number of pages [duplicate]

Possible Duplicate: Is there any package to automatically select font size and margins to optimize pages? Is it possible to make a given text fit on n pages, where n is a number chosen by ...
6
votes
2answers
486 views

Painting an ellipse that fits a row of node but is not narrow and long

I want to draw a Tikz diagram, in which an ellipse contains a row of smaller ellipses. I tried doing so using the fitting library: \begin{tikzpicture}[ every node/.style={inner sep=1pt}, ...
4
votes
3answers
613 views

Create a rectangle with the same width as another, fitted rectangle?

The title says it all. I have a few nodes, and created a fitting rectangle. Now, I'd like to create another rectangle at exactly the bottom of it, so it would look like one big rectangle has been ...
2
votes
1answer
275 views

Problem when drawing an axis-aligned bounding box around a tilted rectangle.

I need to draw an axis-aligned bounding box containing a tilted rectangle for a report about physic engines. My initial idea was to simply insert a rectangular node, apply a rotational transformation ...
5
votes
1answer
646 views

How do I include labels using Tikz's fit?

I'm creating a graph using TikZ. It's working fine, but when I try to use the fit to make a background, it's not quite large enough: Notice that the green doesn't cover the labels Gateway and Root. ...
9
votes
2answers
2k views

Why does fit not scale? (tikz)

I have a problem with the fit library in TikZ. When I scale the figure (with the tikz scale command), the fit box doesn't! Why is that? Could I somehow change it? Example: \documentclass{article} ...
3
votes
2answers
745 views

Fit around nodes and edges

I know that I can use the fit library of tikz to get a fitted background behind some nodes. How can I get the fit to be around edges as well? My current code: \begin{tikzpicture}[prefix=fig/, ...