Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fit]

The tag has no usage guidance.

2
votes
3answers
52 views

Fit tabular* enviroment

I managed to construct a readable table. However, I do not manage to adjust the width of the headers (photo attached). Ideally, the text that does not fit will go to the next line. Would you have ...
2
votes
2answers
53 views

Make table page size [duplicate]

I am new to latex and cannot solve to fit this table to page size even though I looked up the problem in the forum. Any help would be very much appreciated. \documentclass[11pt]{article} \...
3
votes
3answers
49 views

Tikz: Calculate position based on node using fit option

I want the nodes c and d be inside q and the position of q to be determined by p. A second problem is, that the distance between p and q isn't correct even with on grid=false (I guess the width of p ...
0
votes
0answers
13 views

tikz/fit around node with label above // refer to node.label [duplicate]

I want tikz to draw an automatic fitting outer node around an inner node combined with its above-label, i. e. the size of the outer node should be computed by tikz basing on the inner-node-size and ...
1
vote
2answers
43 views

How do you fit my long equation in my page?

I put this long equation in latex in several lines however when I put Latex into PDF the equation did not appear all. Can I help me? \begin{equation}\label{eq:20} \begin{split} \{T_{1} \in (x_{1},x_{...
2
votes
1answer
29 views

Insert image so that it fills the rest of the page while not fall below a minimum size

I'm trying to make a command that adds images to page in a way that fill the rest of the page. I'm using code from How to define a figure size so that it consumes the rest of a page? and it works. But ...
4
votes
0answers
45 views

Tcolorbox: fit does not strictly start at the top

I don't know why, but when I use the fit option in tcolorbox, the fit is a bit "too high", and above the other text by a few px. Any idea why? Thanks! Zoom: MWE \documentclass[12pt]{article} \...
1
vote
1answer
133 views

how to fix the tex vertically in a cell of a table?

this is my problem: I have created a table with excel2latex add for excel but in the first column the text doesn't fit vertically. How can I make the text fit vertically into the first column without ...
1
vote
1answer
67 views

How to merge cells borders (drawing walls in a grid)?

I want a draw a wall on a gridcell. Currently I have this: %based on https://tex.stackexchange.com/a/91429/69931 \documentclass[usenames,dvipsnames]{article} \usepackage{tikz} \...
4
votes
1answer
59 views

tikz node does not fit as expected when yscale used in geometry

I am trying to make a rectangular node fit around two other nodes. This works fine as long as I do not set xslantand yscale in the enclosing scope. In the example below, the enclosing node does not ...
4
votes
2answers
67 views

fit and/or backgrounds does not work as expected in tikz-qtree

I am drawing a tree using tikz-qtree and want to draw backgrounds for two groups of nodes: the left group consisting of l, l1, l2 and the right group consisting of r, rl, l3, l4, l5. However, as shown ...
2
votes
2answers
109 views

Why my text in a fit node is not vertically centered?

I have the following abstracted code. I do not know why the text test is not centered. Do you know how to make it centered? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning, ...
4
votes
2answers
151 views

Filling a Fit Node

I'm trying to draw the following diagram using Tikz: I wrote the following to recreate a similar version of it \documentclass[11pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
1answer
57 views

How do I use a drawn arc as border?

The question is writen in the title, i got the grey filled part and it has to fit on the arc. I did it manualy but supose there is a better solution i can't figure out. Thank you in advance, Leo. \...
1
vote
1answer
605 views

Auto Fit tables to Columns Width without changing the font size

I am really tired of searching. It is very simple issue in MS-Word but how I can't run it in Latex. I have a two column document. If a table has a enough width there is no problem, but if it was ...
2
votes
2answers
173 views

How to fit the label of a fit in TikZ

The label of a fit can be placed relatively to it like: \documentclass[border=1pt]{standalone} \usepackage{tikz} \usetikzlibrary{automata,positioning,fit,backgrounds} \tikzstyle{back}=[...
0
votes
1answer
159 views

How to fit six figures with different sizes?

I want to use pictures in the order below, how can I do that?
5
votes
1answer
256 views

How to make triangle tightly (no space) enclose other triangles using “fit”?

I am trying, so far with negative result, to enclose a couple of triangles in a bigger triangle without leaving any space between them. Output (dashed green line I drew by hand; this is where I need ...
3
votes
2answers
189 views

How to prevent a node exceeding minimum size by making its contents scale-down if they are about to enlarge the node?

Is there a way to fit a text inside a node, without resizing the node, rather than fit a node around some text (which, of course, would resize the node)? Output (first triangle is empty and is ...
1
vote
2answers
217 views

Tikz Fit is not fitting over my nodes

I am making a directed acyclic graph and I want to highlight a subgraph. Sounds simple, but I am not able to get it done with the fit option. I want to highlight the whole region between nodes 800 to ...
2
votes
1answer
106 views

How to automatically fit a callout node, its pointer tip included?

I'm trying to "automatically" fit a callout node, its pointer included, but I don't manage to include the pointer tip: \documentclass[tikz,margin=3mm]{standalone} \usetikzlibrary{positioning, calc, ...
3
votes
1answer
102 views

Using a fit node over a shadow to include the shadow

I've used the a double copy shadow (from this answer) to add multiple rectangles to a node. I would now like to wrap that node and several others with a fit node, but it seems like the fit node does ...
0
votes
1answer
312 views

Text in matrix does not fit in one line

I am trying to put variables in my document but it cannot fit in one row and goes somewhere out of the page... I tried some different things, like \begin{split} or \begin{align} or just "\\" but it ...
1
vote
2answers
251 views

fitting text in to cells

I have a table with 22 columns and 5 rows, I have tried \small and chnge it vertically but it did not work just a part can be seen how to fix it might be make text more smaller or somthing so that ...
1
vote
1answer
48 views

Is using this 'fit' environment a good idea?

I saw this example document here on the site defining the following environment: \newenvironment{fit}{% \begin{adjustbox}{% max width=\textwidth,% max totalheight=\textheight,% ...
4
votes
2answers
91 views

How can I make an adjustbox enviroment with margins fit in textwidth?

I am trying to create an enviroment with colored background. I have defined it in two ways: \documentclass{article} \usepackage[x11names]{xcolor} \usepackage{adjustbox} \newsavebox{\savedbox} \...
1
vote
0answers
109 views

Can I make the lof fit on one page?

My list of figures in my thesis is currently 3 lines too long to fit on one page, but this of course looks very ugly as almost a complete page is left white. Is there a way to make the list fit into ...
3
votes
3answers
288 views

Fit Table to specific page

I have begun to compile an appendix for my dissertation and the first I want to include uses the begin{sidewaystable}command. However, due to the size of the table it doesn't fit on the same page as ...
0
votes
1answer
238 views

Auto fit boxes to fit to page

I am trying to overcome an issue that I am having. I want the colorboxes to fit onto a page without over running the footer or page and starting again on the next page. Is there a way that I can do ...
1
vote
1answer
140 views

How to make the table width fit the text?

I am trying to make my table fit the text. I tried \renewcommand{\tabcolsep}{0pt}, but it makes no difference. Your help is appreciated. The following code: \begin{tabular}{lcl} \textsc{...
5
votes
1answer
975 views

tikz: fitting width of node but automatic height

I want to create a diagram in tikz using sth like the following code: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{positioning,fit} \begin{...
1
vote
1answer
92 views

Help fixing longtabu (with rotatebox cell) to fit the page width

I am having a problem making my table to fit the pagewidth with some cells that has rotatebox. Here is my code: \documentclass[a4paper,landscape]{article} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
3answers
251 views

Scaling a table with merged cells to fit an entire page

I would like to scale the following table to fit an entire page in landscape mode. I tried: \resizebox{\textwidth}{!}{% } \usepackage{adjustbox} My code: \documentclass[12pt,a4paper]{report} %...
0
votes
1answer
53 views

Fitting URL item in articles' bibliography

I encountered a problem with fitting an URL in my bibliography. Adding a space is unsuitable because the URL is no more valid. Do you have any advice? I used the following codes: \vspace{2mm} \...
0
votes
1answer
953 views

In beamer, What's the “right way” to scale a slide element down to better fit?

I want to scale down an element in a slide so that it fits the width and/or height better. I'm willing to reduce the font size, use something like a scalebox/resizebox, or anything similar (not space ...
3
votes
2answers
203 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, ...
4
votes
1answer
559 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
446 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: \documentclass{...
0
votes
1answer
190 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 ...
13
votes
1answer
723 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
165 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
102 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) {\includegraphics[height=3ex]{Bilder/Router....
3
votes
2answers
804 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 of ...
4
votes
1answer
4k 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
121 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
496 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} \usepackage{...
0
votes
1answer
393 views

How can I fit long equation in table in beamer

I would like to insert a pretty table in my beamer presentation by using Beautiful table samples. But my equation does not fit in one line of the table. \documentclass[leqno,mathserif,hyperref={...
1
vote
1answer
62 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 ...
1
vote
1answer
1k 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 ...
7
votes
2answers
954 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 (...