2022 Developer Survey is open! Take survey.

Questions tagged [clip]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
2 answers
175 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 ...
user avatar
4 votes
1 answer
173 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 ...
user avatar
  • 491
0 votes
0 answers
46 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 ...
user avatar
  • 2,130
2 votes
2 answers
232 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 \...
user avatar
2 votes
2 answers
229 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 ...
user avatar
  • 31
1 vote
1 answer
96 views

Graph whit Tikz

I wanto to draw this graph whit Tikz: I have this code: \begin{tikzpicture}[scale=0.2] \begin{scope} ...
user avatar
0 votes
4 answers
82 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,...
user avatar
  • 455
0 votes
1 answer
83 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{...
user avatar
0 votes
1 answer
248 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....
user avatar
4 votes
2 answers
176 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 ...
user avatar
  • 10.9k
2 votes
3 answers
435 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 ...
user avatar
  • 1,443
6 votes
2 answers
177 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[...
user avatar
0 votes
1 answer
483 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 ...
user avatar
0 votes
0 answers
47 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 \...
user avatar
3 votes
1 answer
625 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 ...
user avatar
  • 1,969
1 vote
1 answer
93 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'...
user avatar
  • 517
2 votes
1 answer
99 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 ...
user avatar
0 votes
0 answers
56 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 ...
user avatar
0 votes
0 answers
135 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 ...
user avatar
4 votes
1 answer
160 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 ...
user avatar
  • 237
3 votes
1 answer
751 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....
user avatar
2 votes
1 answer
486 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} \...
user avatar
  • 37
4 votes
1 answer
134 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:...
user avatar
  • 415
5 votes
2 answers
789 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,...
user avatar
  • 509
9 votes
2 answers
313 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} \...
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 ...
user avatar
  • 4,439
1 vote
1 answer
643 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} ...
user avatar
  • 47
5 votes
1 answer
129 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}...
user avatar
  • 5,165
2 votes
1 answer
390 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 ...
user avatar
  • 25
3 votes
1 answer
154 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 ...
user avatar
  • 465
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 ...
user avatar
  • 16.4k
3 votes
1 answer
604 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
124 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{...
user avatar
  • 3,210
3 votes
1 answer
314 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 ...
user avatar
2 votes
3 answers
153 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]{\...
user avatar
6 votes
1 answer
228 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. ...
user avatar
  • 23.2k
0 votes
1 answer
205 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,...
user avatar
  • 2,566
20 votes
3 answers
8k 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 ...
user avatar
  • 301