Questions tagged [fill]
The fill tag has no usage guidance.
192
questions
2
votes
2
answers
75
views
Fill between f(y) and f(x) functions
I want to fill the area between an f(x) functions and an f(y) function. This is what I have so far:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz,bm}
\usepackage{...
0
votes
1
answer
46
views
Fill vertical space before paragraph
I'm working with small pages and I'll have one, two, or three short paragraphs per page.
I would like these paragraphs to be vertically centered and approximately-evenly spaced.
I am close with \...
1
vote
2
answers
64
views
How to color the area between two arcs with Tikz
I have to draw the section of a star but I do not know how to fill the area between the arcs I have drawn. Here is the code
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{...
1
vote
0
answers
20
views
How to produce answer key in exam class for the fill in the blanks questions along with multiple choice questions?
\documentclass{exam}
\begin{document}
\begin{questions}
\question Sample Question 1
\begin{choices}
\choice Option1
\choice Option2
\choice Option3
\correctchoice Option4
\end{...
7
votes
1
answer
275
views
Is it possible to fill the second column with something automatically?
Is it possible to reach a result like the following without manually repeating \hrulefill?
In the actual document, there is no \hrulefill but a TikZ grid.
\documentclass{book}
\usepackage{geometry}
\...
0
votes
1
answer
60
views
fill area with color
i want to fill this area in blue, could anyone help me pls? (i am a beginner)
thanks a lot
\usepackage{tikz}
\usetikzlibrary{decorations,arrows, intersections, through}
\usetikzlibrary{decorations....
1
vote
1
answer
97
views
how to fill color under intersection and curve?
My MWE is as follows:
\usepackage{tikz,pgfplots,tikz-3dplot}
\pgfplotsset{compat=newest}
\usetikzlibrary{calc,quotes,angles,intersections,decorations.pathreplacing,decorations.markings,math,shapes....
0
votes
1
answer
87
views
Fill a 3d surface with a gradient rather than solid colour
I wish to plot a 3d surface based on its outline coordinates provided in a file data.txt.
The following code works as expected.
\usepackage{pgfplots}
\pgfplotsset{compat = newest}
\begin{document}
...
1
vote
1
answer
54
views
Command \fillwithdottedlines (taken from exam documentclass) does not work in a table (Tabularray). Why? Can be fixed?
I have the following document which is a table (tabularray) which I want to full with empty dotted lines. I have defined the command \fillwithdottedlines as you can see in MWE. Although the command ...
1
vote
0
answers
34
views
Chronosys arrow is not aligned and the color filling is messy
I'm making a timeline using chronosys package.
I noticed that the arrow head is not perfectly aligned with the rectangle of the timeline, even in the documentation...
It's not that noticeable using ...
0
votes
1
answer
65
views
How to fill non-rectangle region below line in tikz latex beamer
I am working with beamer templates. I have set a template for usual slides with a purple line in its background, using this code:
%set purple line
\usepackage{tikz}
\usetikzlibrary{patterns}
\...
11
votes
3
answers
431
views
Fill between separately drawn random generated lines
I want to illustrate that if a magnet is broken, the pieces keep being polar. I got stuck in trying to fill in the north pole of the upper piece since I don't know how to overcome the ragged lines ...
4
votes
1
answer
216
views
Why 'yellow' isn't good for optional parameter of \fill, when it is the results of an \ifthenelse command?
Can anybody help me? Why are the 1st, 2nd and 5th code good but 3rd and 4th stop with warnings.
First code is OK
\documentclass{article}
\usepackage{ifthen}
\usepackage{tikz}
\begin{document}
\...
0
votes
0
answers
83
views
How to put diffent color in some cells in this matrix using Tikz?
I got this matrix bellow :
\begin{tikzpicture}
\matrix [nodes={fill=red!20,minimum size=15mm}]
{
\node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \...
3
votes
1
answer
108
views
chemplants: fill the default pictures with TikZ options
The chemplants package offers tools to draw simple or barely complex schemes of chemical processes. Process units and styles for streams and utilities are defined to be a sort of extension of the TikZ ...
3
votes
1
answer
89
views
Fill parts of a shape
Could you please tell me how to fill the highlighted parts of the shape with fill=gray!60?
Thank you as always.
\documentclass[]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{pgfplots}
\...
4
votes
2
answers
582
views
Undefined control sequence for TikZ, issue with \drawfill
The other colored arcs work. Why does the blue arc line give a TikZ complaint?
\begin{figure}[h]
\begin{center}
\begin{tikzpicture}[scale=1.5 ,cap = round, color = blue]
\draw [ ultra thick, blue] [...
1
vote
0
answers
116
views
How to fill a pgfgantt bar with a color gradient which fades from the center of the bar?
I'm trying to figure out how to fill a pgfgantt bar with a horizontal color gradient which fades from the center outwards. Unfortunately i'm having no luck!
I was wondering whether anyone knew how to ...
1
vote
1
answer
87
views
Setup a distance between columns in tabulate for ConTeXt
I need to create a simple block showing recipe content. A tabulate seems as the easiest way to do that. Below is an example of what I mean
\starttext
\def\leaderfill{\leaders\hbox to 0.3em{\hss.\hss}\...
2
votes
2
answers
325
views
How to fading transparent with tikz package
I want to fill small rectangle in below cover.
My code is not fading color to background color.
Please help me correct below code.
\documentclass[12pt,a4paper]{article}
\usepackage[margin=0pt,...
0
votes
1
answer
72
views
Drawing a filled shape in front of a line with even odd rule? [closed]
What I am trying to do is to draw a filled shape in "front" off a vertical line, to give the effect that the line is "behind" the shape. I think it involves the even odd rule but I ...
0
votes
1
answer
42
views
Filling between two lines and an arc
I want to fill the space between two lines and an arc with color like in the photo
This is the code I wrote:
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{...
2
votes
1
answer
74
views
Filling the wrong area after doubling
After doubling around a path, and filling the comment \fill is filling the wrong area, how can I fill what's inside, please?
\documentclass[tikz,border=2mm]{standalone}
\def\A{(2,1) to[out=80,in=0]...
0
votes
2
answers
61
views
Filling area bounded by several lines and adding a text
I'm very new to Tex and trying to draw a graph using tikz package.
So here's the code I wrote
\documentclass{article}
\usepackage{tikz}
\begin{document}
\ifx\du\undefined
\newlength{\du}
\fi
\...
3
votes
1
answer
135
views
begin/end form makes textfield inputs unfillable
I noticed a weird behavior on Latex using Overleaf. The below code produces this result, according to overleaf output:
But if I download and open the pdf using acrobat reader I see that some ...
1
vote
1
answer
159
views
Superellipse filled with a color
I would like to create a superellipse shape. I found the following question "How do I make a superellipse node shape in tikz?" with @Jake's answer that does indeed produce a superellipse. ...
0
votes
1
answer
97
views
Fill the rectangular area with a continuum of the same colors or shades of gray
I want to fill a rectangle with a continuum of colors. I want the color on the left to be black and the color on the right to be white. In between, there are different shades of gray.
This part is ...
0
votes
0
answers
26
views
Grouped `\fill`s
Is it possible to have an environment like {itemfill} that would behave something like \begin{itemize}[itemsep=\fill] from the enumerate package, so that, in the imaginary code sample:
\documentclass{...
1
vote
2
answers
72
views
How to fill a box after being created by node?
I created a testbox by using node in tikz as follows:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\node[draw, regular polygon, ...
1
vote
1
answer
80
views
Fill transparent doesn't work as expected
\documentclass[crop]{minimal}
\usepackage{tikz}
\begin{document}
\tikz
{
\draw [fill=blue] (0, 0) rectangle (2, 2);
\draw [stroke=black, circle, fill=transparent] (1, 1) circle (1);
}
\end{...
2
votes
1
answer
133
views
text on the top of page
i tried to add a box on the top of page with tikz package but i didn't add a text as it is shown in the figure.
this is my code:
\begin{tikzpicture}[remember picture, overlay]
\draw[fill=rougeECL] (...
6
votes
2
answers
299
views
Tikz fill an area of three nodes
Consider this MWE:
\documentclass[tikz, border=10pt]{standalone}
\usetikzlibrary{calc,positioning}
\begin{document}
\begin{tikzpicture}[scale=1,font=\Large]
\tikzstyle{dag} = [-,thick,draw=blue!...
6
votes
2
answers
227
views
TiKz Path Exclusion - Compound Shapes (pathfinder functionality)
On Adobe Illustrator, it is very easy to use Pathfinder to create compound shapes by (using the path exclude function with the shape to be retained in the back layer and all paths to be removed in ...
0
votes
2
answers
219
views
'Fill' image within a box while maintaining aspect ratio
I want to specify a box with certain dimensions, say \textwidth by \textheight, and then "fill" it with an image such that the image aspect ratio is maintained, there is no white space in ...
2
votes
1
answer
42
views
Tikzcd: Filling node with image pattern fails if I apply it on all cells at once
I'm trying to fill some pictures with a background image using path picture as recomended here or here. It works great if I put the style in the cell directly like |[path card]| my content, but it ...
5
votes
1
answer
58
views
MetaPost's undraw does not remove the whole border
I am running the example:
# := 0.5cm;
beginfig(1);
path tr;
tr := origin--(2#, 5#)--(8#, 5#)--(10#, 0#)--cycle;
color cl;
cl := 0.7(green + blue);
pen p;
p := pencircle scaled 2mm;
filldraw tr ...
0
votes
1
answer
68
views
fill between two functions simply
How do I fill the color like the image?
\begin{tikzpicture}
\draw (0,-1)--(0,7)
\draw (0,6)--(8,6) node [pos=0, left] {\(L-\varepsilon\)};
\draw (-1,5)--(8,5) node [pos=0, left] {\(L\)};
\draw (0,4)--...
4
votes
1
answer
208
views
How to clip text from a drawn rectangle in Tikz?
Rather than defining a specific color for some text in a drawn box, I want the text to be clipped from the box so that the paper color is visible. Here's the MWE:
\documentclass{article}
\pagestyle{...
1
vote
0
answers
130
views
How to dotfill the tcolorbox blank
The first tcolorbox is the sample example having solution. The last three tcolorboxes contain the problems without solutions, having dot lines. All tcolorboxes are the same height and BREAKABLE.
...
0
votes
2
answers
108
views
Fill between four parametric paths that together are continuous
I have a shape made up of four paths, and I'd like to fill the inside. The four paths are given in parametric form, and each consecutive pair has exactly one point common, so I'd hope this is a well-...
5
votes
4
answers
441
views
Fill a box with left-justified text, but if it doesn't fit, overflow to the left
The following ascii-art representation using a monospaced font shows the result I actually want to get with a proportional font:
20 «Ἀτρεΐδαι τε καὶ ἄλλοι ἐϋκνήμιδες Ἀχαιοί,
ὑμῖν μὲν θεοὶ ...
2
votes
0
answers
101
views
How to fill this region in tikz
How to draw this figure in tikz
The two closed curves shown can be any irregular closed curves (they may or may not look exactly like in the picture); also, the area around the point x can be a ...
1
vote
0
answers
57
views
Fill and pattern rectangle with TIkz [duplicate]
I am trying to fill and pattern my rectangles with either dots or dash line dense. But this code generates a rectangle with dash line whose space is somehow large. How can I fill them more dense via ...
1
vote
0
answers
102
views
Asymptote fill area inside implicit curve
I use Asymptote to make the graphics. I have a curve defined as contour of a surface. I want to fill by color the area inside curve. The problem is that contour returns a guide structure in Asymptote, ...
1
vote
2
answers
133
views
Keep same \vfill over different pages
I'm using \vspace{\fill} to even space out questions of an exam, but the length changes from page to page. I want the same space after every question, and the last question to be at the end of the ...
1
vote
2
answers
55
views
A captioned box that fills the page around centered text
I am trying to create a page length box around a centrally placed text with a caption beneath it. The central text is one line formula. The box should fill all available space except for at the bottom,...
0
votes
1
answer
225
views
Shade an area on one side of the curve with the boundary of the irregular shading
I need to recreate this graph, with those shading on both sides of the curve, both with the line pattern down the curve, and the shading up the curve.
Note that both limits of the shading are not ...
1
vote
2
answers
175
views
Filling remainder of the page with dots (again)
I have the same question as Filling remainder of the page with dots. That is, I want to fill the remainder of the page with dots. The accepted answer is almost perfect, but when I use it inside \begin{...
4
votes
2
answers
509
views
Draw a swimming pool in Tikz [closed]
Does anyone have an idea for how I can draw the following figure using TikZ?
Many thanks.
2
votes
1
answer
223
views
How can I obtain a closed curve in Tikz where part of it is smooth
Using commands as shown in the answers to this question, one can obtain a closed, smooth cycle. Copying the example :
\begin{tikzpicture}
\draw [red] plot [smooth cycle] coordinates {(0,0) (1,1) (3,1) ...