Questions tagged [pattern]

about defining or using graphical patterns, which can be used to fill a path. PDF and PostScript know tiling and shading patterns. Patterns are supported by [tikz-pgf] and [pstricks] - please also use the corresponding tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

TikZ: make a nice pattern at a smal area if using \usetikzlibrary{patterns}

How can I make a nice pattern if I use \usetikzlibrary{patterns} (if possible not \usetikzlibrary{patterns.meta})? E.g. pattern lines not so thick and no overlap and smaler line distances. I don't ...
cis's user avatar
  • 8,105
3 votes
1 answer
197 views

Add pattern to LaTeX table cell

I created I timetable using the LaTeX tabular environment, and I want to add diagonal strips to some empty cells, as shown in the picture below: This is the pattern I would like to have: How can I ...
Saïd Maanan's user avatar
2 votes
0 answers
34 views

It is possible to integrate this pattern new command in the standard pattern procedure with a special name?

I answered to this question Rotate a set of points in Tikz figure with a new command that I extended to create new patterns. This is the code with some example of pattern created: \documentclass{...
Raffaele Santoro's user avatar
4 votes
2 answers
205 views

Help to draw and hatch a parallelogram

I have the following picture: I tried to draw it with tikz: \documentclass[tikz,border=1mm,usenames,dvipsnames]{standalone} \usepackage{tikz, pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{...
JoudaBouda's user avatar
0 votes
1 answer
190 views

Tikz renders filled lines as dashed with `Lines`

I am attempting to reproduce a pattern fill from the tikz documentation. Specifically, I run \usetikzlibrary {patterns,patterns.meta} \begin{tikzpicture} \draw[pattern={Lines[angle=45,distance={3pt/...
Seraf Fej's user avatar
  • 133
2 votes
2 answers
299 views

How to draw a hierarchical matrix pattern?

How to draw a hierarchical matrix pattern like this one (using TikZ or not)? And how to add a little square matrix between the product between the two retangular matrices? Is it possible to create a ...
jvictormata's user avatar
0 votes
1 answer
97 views

How to draw a sparse matrix pattern (using TikZ or not)?

I would like to draw sparsity patterns with overlapping blocks and at the same time be able to write operations in the picture like in the figure below:
jvictormata's user avatar
3 votes
0 answers
109 views

Latest German dictionary pattern

I have included the format file latest German pattern from: https://ctan.org/tex-archive/language/hyphenation/dehyph-exptl?lang=en I have generated 45 German words in InDesign (using Duden Dictionary) ...
Baskar's user avatar
  • 69
-4 votes
1 answer
94 views

Help to draw a pattern in tikz [closed]

I would like to draw the following picture: When I use the pattern feature it does not let me color in the shapes, could someone help?
xousious's user avatar
0 votes
1 answer
103 views

Tikz: Draw and fill a pattern beside a path

In TikZ: How to draw a pattern at the border of a not closed tikz path, the solution draws a hatched pattern beside a line. I would like to adapt it to also fill in the space behind the pattern to ...
user1476176's user avatar
  • 1,225
0 votes
0 answers
51 views

Alternatives to Pattern Fill with Alignment Function

It is well documented that the origin position of a TikZ pattern cannot easily be changed as the pattern is essentially drawn on an invisible canvas behind all the elements so that it aligns within ...
Harry's user avatar
  • 938
2 votes
1 answer
76 views

Hatching a smooth cycle

I'd like to hatch a smooth circle, but everything I try ends up getting some weird part. My code is \documentclass[tikz,border={5pt}]{standalone} \usepackage{color} \usetikzlibrary{calc} \...
Mrcrg's user avatar
  • 301
3 votes
3 answers
81 views

How to use latex code to output a triangular pattern like this?

(The Gelfand pattern on some paper.) I have tried to use align and my code is \begin{align} \left( \begin{aligned} \lambda_{1d}& &\lambda_{2d}& &\cdots& &\lambda_{d-1,d}& &...
Enze Shi's user avatar
2 votes
2 answers
309 views

Set dots pattern more evenly with TikZ

I am working on a three-column dotted grid template for note-taking/writing cheatsheets if TeX'd ones are not allowed. I have the following code: \documentclass{article} \usepackage[margin=1.5cm,...
Max R's user avatar
  • 308
2 votes
1 answer
121 views

How to customize "dots" pattern Tikz without redefining it

Is there a simple way to customize the dots pattern? With "simple" I mean not like this post (several lines to customize the dots). For example, I have this code: \begin{center} \begin{...
Peluche's user avatar
  • 613
3 votes
1 answer
214 views

How to use external SVG images to generate border patterns around page content?

I want to use a small SVG floral pattern unit, much like the one in the image below, (it is just a prototype, which I am not finished working on) to create a border around my page content in LaTeX: ...
GPWR's user avatar
  • 267
2 votes
1 answer
85 views

How to apply transparency on pattern in pgf

I've created a shape with pgf and i would like to add an option for transparency (to a part of my shape). I change the opacity with \pgfsetstrokeopacity and \pgfsetfillopacity. It works except that ...
westornd's user avatar
1 vote
1 answer
66 views

Applying different fill pattern in loop

I am trying to create a vertical section with different height blocks and fill each block with different patterns using the following code. My approach: I have saved the patterns name as a list of ...
Amartya's user avatar
  • 143
1 vote
1 answer
479 views

Two-color fill pattern with continuous diagonal lines with TikZ

I'm trying to create (with overleaf) a two-color fill pattern with continuous diagonal lines. I have copied most of the code from here (many thanks to the stackexchange community). However, my result ...
Flow's user avatar
  • 13
5 votes
1 answer
382 views

writing in Meander / Greek Key pattern

a longtime listener, first time caller here. I am wanting to set some text into a Meander aka Greek Key (image below), i.e. so that instead of the usual horizontal lines of text, the text moves ...
Aiden D Ansari's user avatar
7 votes
1 answer
237 views

How to tile brick on the parabolic cylinder

I want to draw the brick kilns as below picture. Please help me tile brick on the parabola cyclider wall. Thank you in advance! MWE is \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{3d,...
Nam Tran Le's user avatar
2 votes
1 answer
508 views

Gantt bars with multicolour diagonal stripes

I have used pgfgantt to produce a simple Gantt chart for the work packages of my project: \documentclass{article} \usepackage{pgfgantt} \begin{document} \begin{ganttchart}[expand chart=\textwidth]{1}...
Psychonaut's user avatar
  • 3,142
9 votes
2 answers
441 views

TikZ - Line join and line cap in a pattern

is it possible to modify the line join and line cap when defining a pattern? I tried for example the commands \pgfsetroundjoin \pgfsetroundcap but it does not work. Here is what I get: \documentclass{...
Bastien's user avatar
  • 449
1 vote
0 answers
59 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 ...
Majid's user avatar
  • 11
1 vote
0 answers
23 views

Hyphenation pattern file format [duplicate]

If I open a pattern table, the first line looks like: 2 2 .aa6l .ab3a4s What does the numbers mean and the rest of the file?
fritz Becker's user avatar
1 vote
1 answer
1k views

north east lines pattern on function using Tikz

Patterns works nice with plane line made with a simple \draw command, when the \draw is a plot function the pattern does not work as I espect This is my code \documentclass[border=1pt]{standalone} \...
Alejandro Munoz Ossa's user avatar
3 votes
1 answer
2k views

TikZ: set the line width of the pattern

Is there an easy way to control the line width (and inevitably the line distance) of a pattern decoration? I want a uniform line hatching, e.g. red / blue, with line width, say 3mm. BTW: I need this ...
cis's user avatar
  • 8,105
4 votes
2 answers
783 views

Tikz : Customize dotted line on a portion of the segment

I am looking to change the pattern of a segment in the middle of it or after a predefined distance in cm or pt for example. I have tried to look at the draw pattern but without finding any good ...
RedWest's user avatar
  • 65
0 votes
1 answer
153 views

Pgfplots/Tikz : How to reproduce the same graphic?

I am trying to reproduce the same graphic as below in Latex : For the moment the best result I got is the following: I cannot find a solution to put more space between the patterns lines and I have ...
Louis De Montalte's user avatar
3 votes
2 answers
2k views

Background pattern for equations (to defeat PhotoMath)

I'm a math teacher and I'm dealing with the problem of doing math tests with my students at home. I recently found out that there are certain background patterns that can prevent apps like PhotoMath ...
mattinodigitale's user avatar
1 vote
1 answer
61 views

Check if macro argument is a tikz pattern

Is it possible to check if a given argument is a defined tikz pattern (using the pattern library)? I'd like to have a macro \IfPatternTF{#1}{executed if #1 is a pattern}{executed if #1 isn't a ...
Peter Gerdes's user avatar
0 votes
0 answers
279 views

Guitar Strumming Pattern in Latex

I want to make a guitar song book with Latex and i would like to add some Strumming Patterns. Do anybody have a idea how to make Strumming Pattern with the Arrows up and down and the numbers under ...
Don Quijote de la Mancha's user avatar
0 votes
2 answers
173 views

Creating a fill pattern for a parabolic plot

For the parabolic plot shown in the MWE below. I need to replace the fill pattern (represented by the blue lines) with arrows pointing downwards towards the black line. \documentclass{article} \...
Silva's user avatar
  • 743
-1 votes
1 answer
1k views

filling the area under a plotted function in tikz

For the shown MWE: I need to fill the area under the function plotted in tikz using the "Plot Command". However, using the "Fill" option in the "Draw command" does not ...
Silva's user avatar
  • 743
3 votes
1 answer
2k views

Diagonal Tikz patterns

Could somebody please help me? The north east and north west lines aren't working how I thought they would as it's just showing lots of little lines. I found this workaround which works perfectly. The ...
trieasyboid's user avatar
0 votes
2 answers
285 views

How can I overlap patterns in a Venn diagram legend?

I've drawn a Venn diagram using tikzpicture, with different patterns filling the different circles. I've also used a matrix to draw the diagram's legend off to the side. It's easy enough to create ...
laskdfjiweioeiecoin's user avatar
1 vote
1 answer
454 views

Hatching Shear and moment diagrams using Stanli package in 2D and 3D

Regarding drawing internal force diagrams through the use of the Stanli package. The following parameters are required for 2D internal forces command: Start point End point Value at start point Value ...
Silva's user avatar
  • 743
1 vote
1 answer
1k views

How can I fill a tikzpicture "fill" with a pattern?

I'm using the following to generate a Venn diagram, per the example here: \documentclass{book} \usepackage{pgfplots,tikz} \usetikzlibrary{patterns} \begin{document} \begin{center} \begin{tikzpicture}...
laskdfjiweioeiecoin's user avatar
1 vote
1 answer
182 views

I would like to know how to use two variables in a foreach loop

In the picture LaTeX does what I want, but only for a little bit. I would like the arrows to go all the way to the middle of the circle but decreasing in length as they go down. Here is my code. I get ...
Aurelius_Nero's user avatar
3 votes
2 answers
396 views

TikZ: offsetting a fill pattern

TikZ provides fill patterns (section 15.5.1 in the docs). Instead of filling a path with a single solid color, it is also possible to fill it with a tiling pattern. Imagine a small tile that contains ...
usernumber's user avatar
1 vote
0 answers
75 views

How can TikZ patterns be programmatically aligned for all shapes which use a pattern?

Very similar to Correcting TikZ pattern offsets but I couldn't figure out how to do this programmatically. Specifically, I have some nodes I'd like to use arbitrarily in text, formulae, figures, ...
mbarbar's user avatar
  • 21
4 votes
1 answer
365 views

Horizontal gap between side-by-side tcolorbox environments

I'm trying to create a modern layout for my CV using the tcolorbox package. Here's what I've accomplished so far: \documentclass{article} %%% \usepackage{geometry} \geometry{ paperheight=842pt, ...
Flickboy's user avatar
2 votes
1 answer
4k views

Tikz pattern fill

I am using tikz for the first time and I don't know how to make this image. I can make the outline but not the patterned fill for the partial rectangle. What I want is: What I can make is: Here is ...
NullPointer's user avatar
3 votes
1 answer
2k views

How to get a tikz-pattern transparent?

I would like to draw an orange box with green diagonal stripes in it, where the whole thing should be a bit transparent. I used this as a baseline for creating the pattern. Now, I'm wondering, why the ...
Deep-Learner's user avatar
18 votes
1 answer
3k views

Correcting TikZ pattern offsets

I have some automatic placed nodes which should be filled with a pattern. However, I noticed that the pattern offset depends on the node position, which makes the nodes looks different. Minimal ...
Martin Scharrer's user avatar
0 votes
0 answers
33 views

Grid pattern parallel to borders [duplicate]

Attempting to reproduce this picture from an old book (sorry for the resolution) I used tikz's patterns library to generate the grid, which provides an honorable result. However, with the default ...
BambOo's user avatar
  • 8,811
3 votes
2 answers
175 views

Path decoration disappears when adding a pattern

I would like to fill the area under a curve with a pattern. The curve has arrows as decoration. Filling the area with a color works fine. If I replace the fill with a pattern the arrow decorations ...
luki's user avatar
  • 1,796
12 votes
3 answers
1k views

TikZ: How to draw a pattern at the border of a not closed tikz path

"Based on the solution provided at TikZ: How to draw a pattern at the border of a tikz path I was able to do all the graphics in my thesis, except for one shape. As you can see in the graphic" ( ;-) ...
white_gecko's user avatar
  • 2,111
1 vote
1 answer
75 views

Diamonds pattern between two functions

I would like to have a diamonds pattern (or another pattern between) the two red functions. Additionally, it would be great to have the dotted line style of $H_{S_2}(\beta)$ represented at the left of ...
Paul's user avatar
  • 551
5 votes
1 answer
789 views

Custom hatched pattern imitating hand drawing

Following this great question, I have been drawing a picture that simulates hand drawing. I want to fill some solids with a simple hatch pattern, however I don't know how to apply the path decorator ...
jsb's user avatar
  • 454