As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [clip]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Removing borders only from the shared area of intersected shapes

I need to intersect two circles and have the borders around them except the borders inside the shared area. It is the tikz code I am trying to write, I have removed all borders but have no idea how to ...
Puya's user avatar
  • 45
0 votes
1 answer
42 views

"FPeval" along with "clip" when multiplied with 10 gives wrong answer while it does not happen with other numbers

\newcounter{tenMarksQ} \setcounter{tenMarksQ}{0} \DTLforeach{Q}{\Marks=Marks} { \ifnum\Marks=10 \addtocounter{tenMarksQ}{1} \fi } \FPeval{\10}{clip(10*\thetenMarksQ)} \section{ELABORATE ON:...
Srini Vasan's user avatar
0 votes
1 answer
63 views

axis lines on top fill between and clip marker don t work together

Taken independently the options work. But together : the fields are above the axes and the 1 is not displayed Field 2 and 3 are above axis Different color for Line and Field I tried several proposed ...
Latlock's user avatar
3 votes
3 answers
227 views

Arrow lost inside a loop

I have this code: \documentclass[a4paper]{article} \usepackage{tikz} \usepackage[margin=.5cm]{geometry} \begin{document} \thispagestyle{empty} \begin{tikzpicture}[scale=2] \draw[gray!...
Raffaele Santoro's user avatar
0 votes
1 answer
69 views

Using fillbetween in pgfplot

I need to colour the area between the first and the second line of the graph in green and the area between the second and the third line of the graph in red: I am trying to do this with fillbetween, ...
Matteo Bulgarelli's user avatar
0 votes
0 answers
28 views

How can one turn off the clip mode of pdfrender

pdfrender looks like a nice package to play with text. Many of its features are almost self-explanatory except one: clip. In more detail, according to the manual one can use pdfrender like xcolor, in ...
user avatar
0 votes
0 answers
30 views

Includegraphics clipped parts still here even if not visible

I am trying to use \includegraphics to remove unwanted parts of a pdf image. The current syntax I use is: \begin{tikzpicture}[remember picture,overlay] \node[inner sep = 0pt, anchor = center] (...
Vincent's user avatar
  • 4,527
1 vote
1 answer
67 views

Clip a rectangle by the size of another (small) rectangle

I'm trying to make a hole in the 2nd rectangle by the dimension of the 3rd rectangle. It seems that \clip, as it specified in the manual, is clipping all the subsequent drawings. Is there an invert ...
Mafsi's user avatar
  • 644
6 votes
2 answers
212 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 ...
Terry Panda's user avatar
4 votes
1 answer
623 views

What is the meaning of the commands "clip" and "trim" during image insertion?

I use the following command (taken on internet) to crop a .pdf image: \includegraphics[trim={0.0cm 4.0cm 0.0cm 4.0cm},clip, scale=0.8,page=1,angle=90]{aircraft_attitude/Q3_project_scheme.pdf} I ...
g_don's user avatar
  • 767
0 votes
0 answers
100 views

Problems with \clip

I have a problem with the \clip command. I want to do something like \spy but add some labels etc. only to the magnified picture. Since this is not straightforward, I want to clip a zoomed graph with ...
Excelsior's user avatar
  • 2,282
2 votes
2 answers
351 views

Reverse TikZ stroke direction to use with fill rules

This question is inspired by my own answer: How to draw the crossings in a tikz picture? where I draw the blue ellipse in four stages. I was thinking that it should be possible to draw with only one \...
hpekristiansen's user avatar
2 votes
2 answers
283 views

How to fill the area under a 3d parametric curve with variable height?

I have a scalar field f(x,y)=1-x and a curve C given as the graph of g(x)=4x(1-x). My goal is to fill the area between the curve (x,g(x),f(x,g(x))) and its projection (x,g(x),0). Up to this point, I'm ...
Joe S's user avatar
  • 31
1 vote
1 answer
100 views

Graph whit Tikz

I wanto to draw this graph whit Tikz: I have this code: \begin{tikzpicture}[scale=0.2] \begin{scope} ...
Arnold Fernández's user avatar
0 votes
4 answers
92 views

Filling the area enclosed by two arcs and a rectangle

I am trying to fill the area marked gray below. I found some examples with circles doing this kind a thing using clip. But I could not find the way to do that with arcs. \documentclass[a4paper,...
Soyeb Jim's user avatar
  • 475
0 votes
1 answer
270 views

TikZ: clipping inside the box

I can clip everything that is outside of a box \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[] \clip (-1, 0) rectangle (1, 1); \draw (0, 0) circle (2 and .5); \end{...
usernumber's user avatar
0 votes
1 answer
313 views

Clipping a fill between region in pgfplots

I'm trying to create a drawing of the cylinder that is created when integrating the solid of revolution using the shell method. I'm trying to clip the "bottom" of the cylinder using the black arc. E....
pwesterbaan's user avatar
4 votes
2 answers
226 views

ConTeXt: Pixel-perfect figure span across a two-page spread

Background Looking to split external figures across two pages, evenly, for a seamless layflat photobook. Problem The seam between two pages is misaligned for illustrations that span two pages. This ...
Dave Jarvis's user avatar
  • 11.3k
2 votes
3 answers
565 views

Crop/clip 3d tikz drawing

I have prepared a 3D drawing using tikz-3dplot and now I want to clip a specific part of this drawing in order to magnify it (focus on the circle for instance in the example below). Is there any ...
Guuk's user avatar
  • 1,483
6 votes
2 answers
250 views

How can I hide the source code that overflows a listing's frame?

I've two side-by-side listing boxes that compare input and ouput code. How can I tell LaTeX to hide the code that is printed outside the listing boxes? Here is the LaTeX code: \documentclass[...
Yvkevitch's user avatar
1 vote
1 answer
634 views

Tikz fill only the A - B - C of three shapes

I am trying to draw a graph that can be represented as boolean operations on three shapes: A, B, C. The graph is A - B - C (or A - (B U C)). However, I have no Idea how to draw it using \clip or other ...
Eric Stdlib's user avatar
0 votes
0 answers
55 views

How to add mathematical symbol with \hat and multiple clips in glossary?

I want to add a Symbol in the glossary with this command: \newglossaryentry{hU1}}{name={$\hat{u}_{1}$}, description={amplitude}, type=symbolslist, sort=amplitude} The Error I get then: Argument of \...
TKeleven012's user avatar
3 votes
1 answer
916 views

How to apply a clipping mask with TikZ

Without rewriting the code, I want the part where the circles overlap to be transparent so it appears white (or whatever colour is hiding behind the circles). Graphic designers might refer to this ...
voices's user avatar
  • 2,009
1 vote
1 answer
96 views

Asymmetrical margins on tikz drawing

I am working on this picture. It is almost completed, but for some reason I can't trim the left margin so there is some annoying extra space. (If you open the image on a new tab is easier to see). It'...
Rodrigo's user avatar
  • 557
2 votes
1 answer
160 views

tikz node exceeding axis

I have an axis environment in a tikzpicture with a straight line exceeding the axis. At the end of the line I add a node whose text partially also exceeds the axis and is clipped. Clipping the line is ...
user172294's user avatar
0 votes
0 answers
59 views

How to embedding the clipping values from illustrator image

Here I using cutwin package for clipping images wrap around text and the values of each and every line need manual intervention. I have an illustrator clipping values of the image. Is there any ...
Rajesh Kumar's user avatar
0 votes
0 answers
167 views

Image clipping around the text

If there any latex package available for clipping the images. Here I using cutwin package, but it will produce tedious work to fix the text around the images. Here we have more images like that, we ...
Rajesh Kumar's user avatar
4 votes
1 answer
214 views

Clipped symbol in table caption

I want to place a clipped math symbol in table caption. This MWE works until I uncomment the marked line \documentclass{amsart} \usepackage{trimclip} \begin{document} \begin{table} \caption{Clipped ...
Anvita's user avatar
  • 237
3 votes
1 answer
971 views

How to use fill inside the \draw command in Tikz/PGF?

I am quite new at trying Tikz and PGFplots so apologies if this question is rather naive.I have been trying to fill the area under this manually made curve and I have tried to use \clip and \draw[clip....
14thTimeLord's user avatar
3 votes
1 answer
668 views

filling an intersection between shapes

I need assistance in finding out how to fill the intersection between the shapes RO1, RO2, RO4, RO5 in the following. Assistance appreciated. \documentclass[border=5]{standalone} \usepackage{tikz} \...
mdf's user avatar
  • 47
4 votes
1 answer
241 views

How to change the opacity of a surface out of a rectangular area?

I made the following simple MWE to explain constrain function: \begin{tikzpicture}‎‎[scale=1] ‎\begin{axis}[xlabel=$x$‎, ‎ylabel=$y$‎, ‎zlabel={$z$}]‎‎ \addplot3 ‎[‎‎surf‎, ‎samples=20‎, ‎domain=-4:...
Mikasa's user avatar
  • 517
5 votes
2 answers
1k views

tikz: clip image with rounded corners and border

I want to round corners of image and I want to have border around: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shadows.blur,fadings} \tikzset{ photo/.style={ inner sep=1pt,clip,...
brownian's user avatar
  • 519
9 votes
2 answers
380 views

Drawing stones and pebbles under seafloor

in order to do some technical drawings, I intend to reproduced a (schematized) pebbled sea floor. I could manage to do a MWE, but this is as far as I can possibly get. \documentclass{article} \...
Marco's user avatar
  • 93
21 votes
1 answer
1k views

Eraser tool for TikZ

I am asking for a style (or something similar), let us call it ERASE. The imaginary tool works as a convenient inverse clip or eraser within a scope. The specific way is asked within the comment in ...
CampanIgnis's user avatar
  • 4,559
1 vote
1 answer
853 views

How can I modify attachfile icon?

I'm working on an moderncv and trying to edit the default attachfile icon (Pushpin) to use the Paperclip, but it returns an error. Here is my MWE: \documentclass[11pt,spanish,a4paper,sans]{moderncv} ...
Sergio's user avatar
  • 47
5 votes
1 answer
134 views

Clipping at node – making a pattern

I want to add a pattern to a node in TikZ; how can I, for example, fill in the number 5 with the numbers 5 (ie a picture in a picture ...)? Here is my MWE: \documentclass[border=5pt,tikz]{standalone}...
current_user's user avatar
  • 5,215
2 votes
1 answer
425 views

Shading Circle Segments in a complex Venn diagram

I have a Venn diagram with some overlapping ellipses that I segmented into sections using lines. I want to use this to make a few figures, and I am wondering wether there is a clever / clean way to ...
Tivaro's user avatar
  • 25
3 votes
1 answer
166 views

How to fill the intersection among four curves?

In my problem, all curves are plot from data instead of explicit function. And what I want to do is to fill those little curved rectangles with different colors. How could I do it? Here is the tex ...
Di Miao's user avatar
  • 475
2 votes
0 answers
112 views

Actually crop vectors in included pdf image with includegraphics trim/crop? [duplicate]

I've seen How can I crop included PDF documents? - but it doesn't quite address my problem. Let me illustrate with MWE - this is test1.tex, which you can compile with pdflatex test1.tex, which ...
sdaau's user avatar
  • 16.9k
3 votes
1 answer
724 views

Clipping more complicated shapes in TikZ

I have tried to understand TikZ clipping better but I am stuck. I'd like to clip the area bounded by the blue contour in this picture: Unfortunately, the MWE is rather lengthy, and based on Alain ...
user avatar
3 votes
2 answers
138 views

Coloring a truncated/trimmed part of a character

MWE \documentclass{article} \usepackage{trimclip,graphicx} \def\normala{a} \def\trima{\rotatebox[origin=center]{25}{% \clipbox{2.5pt 0pt 0pt 0pt}{\rotatebox[origin=center]{-25}{a}}}} \begin{...
Özgür's user avatar
  • 3,252
3 votes
1 answer
325 views

How to discard an area of a pdf page using pdfpages?

I'm writing a text tha includes some pdf pages from external document. This specific page is driving me crazy. I'd like to include it without this specific area: Anyone knows how to do this using ...
Daniel Valencia C.'s user avatar
2 votes
3 answers
158 views

Add a pin not counted in bounding box

I would like to use Tikz to annotate some terms in equations. I have attempted the following \documentclass{article} \usepackage{tikz} \pagestyle{empty} \begin{document} \newcommand{\tikzbox}[2]{\...
Federico Poloni's user avatar
6 votes
1 answer
247 views

Asymptote 3d: Remove the flicker from the dots of a dice to play?

I coded my first figure with Asymptote in 3d which is a dice to play with faces numbered by one to six points representing numbers 1 to 6 in a classic way. This dice can be manipulated with the mouse. ...
AndréC's user avatar
  • 23.5k
0 votes
1 answer
243 views

Clip an A3 tikz overlay to two A4 pages

The design of a two-page spread for chapter openings involves a shaded background which runs across both pages. I have constructed this with: \documentclass{article} \usepackage[a3paper,landscape,...
Peter Flynn's user avatar
  • 2,686
20 votes
3 answers
9k views

How to scale and then trim an image?

I am trying to create a document that requires the inclusion of images at a precise size (h x w inches). I would like to reuse the document template, so I would like to create a command that would ...
Amaru's user avatar
  • 301