The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
2answers
31 views

Tkz-euclide problem: figure layout is larger than the real picture

When I use the tkz-euclide object (altitude and bisector) the figure layout is larger than the real picture dimension. How can I do to center and fit my images? \PassOptionsToPackage{table, ...
5
votes
1answer
57 views

Fitting circuitikz labels into boxes

I tried to draw an equivalent circuit for a resistor using the following code: \documentclass{standalone} \usepackage[european,cuteinductor]{circuitikz} \usetikzlibrary{positioning, fit, calc} ...
1
vote
2answers
72 views

Fit a large table into a landscape page

I have this table and I want to fit it nicely into a landscape page. I can't make it look right. The cells should be multi-lined for it to work. Please let me know what is wrong: ...
1
vote
1answer
72 views

Equation wider than tcolorbox in twocolumn

I have a large equation I would like to fit within tcolorbox in a \twocolumn page without split it. Could you please help me to fix this? i tired even \begin{minipage}[c]{5in} but with no luck MWE ...
12
votes
1answer
182 views

Tightly fit a circle around points

When using \node[circle, fit=(A) (B) (C)], the resulting circle is too big and doesn't touch the corners of the C node: \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} ...
2
votes
1answer
58 views

How can I align text between fitted and positioned nodes?

I'm trying to build a diagram of variable-sized lumps aligned to a regular underlying grid. Here's my MWE: \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{positioning,fit,chains} ...
1
vote
1answer
44 views

Using fit for a box through a node

Hi i try to use the command fit to make a box around nodes. But the edge nodes should be only half in the box. \begin{tikzpicture} \node at (0,0) (CE1) ...
3
votes
2answers
219 views

Adjusting edge alignment and positioning of fitted node

I would like to achieve the following: Namely a top left node, a bottom left node with the same width as the top left node (with possibly different height), and a right node with the total height ...
3
votes
1answer
228 views

How can I increase the padding around nodes in a fitted box?

I have code: \documentclass[tikz,border=10pt]{standalone} \usepackage{verbatim} \usepackage{textcomp} \usetikzlibrary{shapes,arrows,fit} \begin{document} \tikzset{ sum/.style = {draw, circle, ...
0
votes
1answer
60 views

Fit or Compress Text in scrbook [duplicate]

I would like to create a mass-market paperback size book using scrbook. The book in question is approximately 400 pages long at 6x9 dimensions. I would like the text to still be readable, but I'd like ...
3
votes
1answer
105 views

Make item of list fit in page width

The tile just overflows the page, thus its content is lost. How I can make it to break the line and continue below? Here is my code: \documentclass{article} \usepackage{graphicx} ...
0
votes
0answers
95 views

how can i fit long equation in pretty table in beamer Warsaw

i would like to pretty table in my presentation in beamer by using Beautiful table samples but my equation can't fit the table in one line ...
2
votes
1answer
36 views

Fitting a table in the page with no column names broken by hyphenation

I´m trying to fit a table in the page so it has text width and looks fine. In fact, the code below fits the table, but it breaks column names (e.g. "Ditado" becomes "Di-tado"). It´s possible to do ...
0
votes
1answer
302 views

Why resizebox is not working on my informs template [closed]

I have to use informs class for journal Operations research and I have a very large rotated table, I used resizebox to fit it on the page, when I just used the class article, but when I used the ...
8
votes
2answers
276 views

How to perform not rectangular fit with tikz?

In the following tikz MWE I am using the fit library to draw a red box: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \node ...
4
votes
1answer
201 views

TIkZ: fit clipped nodes

I would like to draw a box that encloses several shapes using the fit option. But when some shapes are clipped, fit still takes the whole shape into. Here is a minimal working example. ...
2
votes
1answer
97 views

Autoscale to fit images between paragraphs

Does anyone know to to place an image to fill up a space between paragraphs? My situation is that I have two minipages that must fall on the same page, but they dont take up all the space. Right now ...
2
votes
0answers
89 views

How to print gnuplot fit params in a tikz node?

I have defined a macros for curve fitting and plot as: \newcommand{\logfit}[4]{\addplot[no markers, black, line width=0.15pt] gnuplot [raw gnuplot] { %command for log fit f(x) = b*log(x) + c; b=0; ...
4
votes
1answer
133 views

Adjust text within table using Tabulary

Problem: After looking into already existing threads about Tabulary, I could not find out what was wrong with the following code. The text does not adjust within the table. Code: ...
3
votes
1answer
188 views

node positioned by fit: how to center a node text?

I wonder why node's text of node positioned by fit is not centered? Edit: As suggested Peter Grill in his comment, I change previous MWE with more realistic example: ...
2
votes
2answers
239 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
893 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
195 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
437 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
390 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
681 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
233 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
74 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
568 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
917 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, ...
4
votes
2answers
1k 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
47 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 ...
3
votes
2answers
2k 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
242 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} ...
9
votes
2answers
864 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
278 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
567 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. ...
10
votes
3answers
14k 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} ...
12
votes
3answers
780 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
396 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
3k 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
434 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 & ...
5
votes
1answer
1k 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
855 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
414 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
637 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
914 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} ...
18
votes
1answer
4k 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} ...
17
votes
2answers
3k 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. ...
1
vote
0answers
118 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 ...