Skip to main content

Questions tagged [fill]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
3 answers
139 views

Expand \hbox to the width of parent \vbox

I have two \hboxes, one above another, inside \vbox: \documentclass{article} \begin{document} Some\vbox{\hbox{longer text above}\hbox{shorter text}}and some more text. \end{document} Which ...
Filip Ž's user avatar
0 votes
1 answer
66 views

Energy band structure

I am trying to recreate a plot depicting the energy band structure of a semiconductor, and the overall outcome is great. However, I encountered a couple of issues: I'm unable to reproduce the ...
Yusef Hamdellah's user avatar
1 vote
0 answers
14 views

Fill surface of circle with solid or transparent colour in 3dtools

I'm trying to figure out how to fill the surface of a circle plotted with 3dtools with a solid or transparent colour. For example, in the MWE below, I would like to colour the surface of the green ...
Coenraad van Schoor's user avatar
3 votes
1 answer
61 views

Filling a specific area with tikz

I am trying to fill a specific area in my tikz picture but didn't manage to do it correctly. It is a wave shape so it makes it a bit tricky to fill since it's not perfectly sinusoidal (on purpose). ...
Waxler's user avatar
  • 860
1 vote
1 answer
49 views

How to make a tcolobox stick the bottom of the page ? (and why \vfill is not perfectly working?)

I have created a MWE where one can picture my issue. \documentclass[12pt]{article} \usepackage[ left =0cm, right =0cm, top =0cm, bottom =0cm, paperwidth = 521pt, ...
OursPolaire's user avatar
4 votes
1 answer
63 views

How can I fill parts inside of closed curve?

I would like to fill all the areas separated by the dashed lines inside the closed curve using different patterns. I have managed to fill some of the areas but not all. I want to get something like ...
Nanna's user avatar
  • 43
9 votes
2 answers
292 views

TikZ: how prevent darker fill in overlapping regions?

In this TikZ picture, how do I prevent the overlapping regions from becoming darker than the rest? I want the overlap to be the same uniform color as the rest of the regions. \documentclass[tikz,...
murray's user avatar
  • 8,692
0 votes
1 answer
37 views

Filling a figure created with arc

How can I fill out this figure? I am trying hard to copy this picture. Here my code: \begin{tikzpicture} \draw[step=1cm,black,very thin] (0,0) grid (3,3); \coordinate (A) at (2,3); \coordinate (B)...
Stitz's user avatar
  • 13
3 votes
2 answers
124 views

TikZ: Shapes with an angular colour gradient

Cross-posting from Stack Overflow: https://stackoverflow.com/q/78347764/2777074 Good people! I'm trying to draw some shapes with an angular colour gradient, but I am unable to find the general syntax ...
StormyTeacup's user avatar
1 vote
1 answer
83 views

How to give the shadow effect which is shown in the below image for the white rectangle in the code?

\documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows, shapes, positioning} \begin{document} \pagestyle{empty} \pagecolor{blue!50} \begin{tikzpicture}[remember picture, overlay] \fill[...
Vishakha's user avatar
  • 119
1 vote
1 answer
127 views

Gradient colour fill with light and shadow effect on 3D objects

I wonder if it is possible to obtain a gradient colour fill to replicate the light position by means of TikZ. For example in these images (taken by a book) it is evident, that the light effect from ...
Richard's user avatar
  • 164
3 votes
3 answers
591 views

Repeat a pattern until the page is filled

General overview I make Chinese grids for handwriting exercice. The goal is to use the maximum space given in A4 page (with 1cm margin). MWE For the moment here is my code: \documentclass[a4paper]{...
fauve's user avatar
  • 2,531
2 votes
2 answers
115 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{...
PlutoDust's user avatar
0 votes
1 answer
177 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 \...
Stewart's user avatar
  • 703
1 vote
2 answers
77 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{...
Giophysics's user avatar
1 vote
0 answers
35 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{...
srini's user avatar
  • 11
7 votes
1 answer
280 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} \...
CarLaTeX's user avatar
  • 64.7k
0 votes
1 answer
129 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....
Smile's user avatar
  • 3
1 vote
1 answer
107 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....
Ben's user avatar
  • 105
2 votes
1 answer
181 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} ...
Seraf Fej's user avatar
  • 143
1 vote
1 answer
74 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 ...
miltos's user avatar
  • 2,637
3 votes
1 answer
57 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 ...
BlueMarker's user avatar
0 votes
1 answer
73 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} \...
Marja van der Wind's user avatar
11 votes
3 answers
446 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 ...
Sven Callier's user avatar
4 votes
1 answer
218 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} \...
1111pataki's user avatar
0 votes
0 answers
103 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}; & \...
GeissonB's user avatar
3 votes
1 answer
141 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 ...
user3713179's user avatar
3 votes
1 answer
105 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} \...
Will Kim's user avatar
  • 2,062
4 votes
2 answers
717 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] [...
mark's user avatar
  • 431
2 votes
0 answers
159 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 ...
ZekeMarshall's user avatar
1 vote
1 answer
111 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}\...
chainick's user avatar
4 votes
2 answers
495 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,...
Nam Tran Le's user avatar
0 votes
1 answer
93 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 ...
planetnimz's user avatar
0 votes
1 answer
57 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{...
Tarek Acila's user avatar
2 votes
1 answer
84 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]...
F.Marko's user avatar
  • 85
0 votes
2 answers
70 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 \...
user avatar
3 votes
1 answer
162 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 ...
Christianidis Vasilis's user avatar
1 vote
1 answer
183 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. ...
Xorios's user avatar
  • 317
0 votes
1 answer
126 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 ...
Svana's user avatar
  • 13
0 votes
0 answers
29 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{...
LSpice's user avatar
  • 1,468
1 vote
2 answers
74 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, ...
xdyy's user avatar
  • 590
1 vote
1 answer
113 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{...
Desmond Willowbrook's user avatar
2 votes
1 answer
156 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] (...
Fatma Belabed's user avatar
6 votes
2 answers
352 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!...
mmr's user avatar
  • 2,249
6 votes
2 answers
243 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 ...
Harry's user avatar
  • 938
1 vote
2 answers
353 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 ...
Robin Georg's user avatar
2 votes
1 answer
45 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 ...
tobiasBora's user avatar
  • 8,964
5 votes
1 answer
69 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 ...
Vladimir's user avatar
  • 589
0 votes
1 answer
69 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)--...
Alessandro Lin's user avatar
4 votes
1 answer
257 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{...
Hansel's user avatar
  • 427

1
2 3 4 5