The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
96 views

ConTeXt: Height fitting with row spanning in a table

How can I shrink the height of the foo cell to fit its content? \starttext \startTABLE \NC foo \NC[nr=2]\input knuth \NC \NR \NC bar \NC \NR \stopTABLE \stoptext ...
2
votes
1answer
65 views

Rectangle fitting some text and scaled circuit from circuitikz

I am trying to draw rectangle with some text on the left and with electrical schema on the right (all inside one rectangle) I am using following packages: \usepackage{circuitikz} \usepackage{tikz} ...
5
votes
1answer
58 views

Tikz fit library: fitting only one dimension and accumulating calls

The fit library is very useful for adjusting the size of a node to fit other nodes inside it. It is also useful in conjunction with shift to make a node span to the width/height of other nodes but ...
4
votes
2answers
86 views

How to fit the width of a tcolorbox to a long title (single line)?

Using "clip title=false" enables a tcolorbox long title to sit on a single line. However, the width of the tcolorbox itself remains fitted to the content. How can the tcolorbox width be fitted to the ...
3
votes
1answer
134 views

TikZ - Tables Highlight and fit text

What would be a way to create a table with the diagonal elements highlighted as such. I used the example found here to get the above figure with this (not great) code \documentclass{article} ...
6
votes
3answers
196 views

Tikz fit variable number of nodes

I would like to draw a rectangle or ellipse over some nodes I am drawing with tikz. I know how to do that if the number of nodes is fixed: I just enumerate them. I was wondering if there is a way to ...
5
votes
2answers
117 views

Tikz, nodes in a tree become not fitted.

I want to draw 4 trees and I want to have some nodes in each of them fitted like in the first picture. But what is coming out is in the second picture. What is wrong with the code? Thanks in advance!! ...
2
votes
1answer
60 views

Fit inside enumerate

\begin{enumerate} \item $\mathcal{D}(m)=0$ for $m\in\mathbb{Z}$, \item $\mathcal{D}(x^{-1})=-x^{-1}\sigma(x^{1})\mathcal{D}(x)$, \item $\mathcal{D}(x^{n})=\left( {\sigma ({x^{n - 1}}) + ...
13
votes
2answers
309 views

Discretize line directions in Tikz

In a printed circuit board (pcb) layout, the lines can only direct horizontally, vertically and diagonally. Such that every line is a combination of a horizontal/vertical part combined with a diagonal ...
2
votes
1answer
281 views

Tikz cylinder alignment and fit

I've tried fitting a cylinder to the height of both a block and another cylinder as shown in the code below. Cylinder 2 should fit exactly to the top edge of Block 1 and the bottom edge of Cylinder 1, ...
3
votes
2answers
230 views

fit nodes inside part of multipart shape (TikZ)

Is it possible to use the fit library to fit nodes only inside the the second half? MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart, fit} \begin{document} ...
2
votes
0answers
41 views

Reduce font size to fit container [duplicate]

I would like to create a series of containers in the same size but with different contents, making such that the contained text reduces its font size if it would not fit the container otherwise. Is ...
2
votes
2answers
173 views

Wrapping table headings in tabular

I have troubles wrapping text in my table headers even though I specify the column width with p{1cm}. How can I force a table cell width? The table main body is generated by stata and ideally the ...
0
votes
1answer
94 views

How to fit a table of figures with various sizes into a page

I'm trying to fit four figures with various sizes into a table on one page. I started with the following code, but couldn't figure out how to get it work. How can I achieve that? begin{figure} ...
2
votes
0answers
107 views

ConTeXt: Set mixedcolumns maximum height for vertical rule

Background Looking to ensure that the height of a vertical rule for the first page of a section is the same as the subsequent sections. Code Minimum working example to illustrate the issue: ...
8
votes
1answer
433 views

Making the text fit in a specific space in Latex

I'm trying to fit my text in a specific space, as it's a Graph explanation. I would like to make something like the graph below: Is it possible to make the text fit in that space? LaTex does it by ...
3
votes
2answers
186 views

How to make Tikz Node Content fit?

I'm trying to make a decision tree with Tikz, but the text in my nodes overlap. Does anyone know how to fix that? Thanks so much! \begin{tikzpicture} \node {{Lorem ipsum dolor sit amet, ...
1
vote
1answer
277 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. ...
5
votes
3answers
3k 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
349 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
263 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 ...
8
votes
2answers
969 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
282 views

Fitting equation inside a column [closed]

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
688 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
517 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
192 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 ...
10
votes
1answer
531 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} ...
11
votes
3answers
441 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} ...
14
votes
1answer
2k 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
2k 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
113 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 ...
8
votes
2answers
910 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
874 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
366 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
868 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. ...
10
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} ...
4
votes
2answers
1k 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/, ...