Skip to main content

Questions tagged [clip]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
67 views

How to clip a rectangle on a QR Code with TikZ?

I'd like to clip a rectangle at the center of a QR Code, however it can't satisfy my request. The first one clips reversed, then I switch the order of node and clip commands, the second one couldn't ...
Axia's user avatar
  • 514
0 votes
1 answer
90 views

Extracting an Interior Portion from a Tikz ClipPicture

Consider the MWE: \documentclass{article} \usepackage{tikz} \usepackage{graphicx} % % COMPILED WITH PDFLATEX \newif\ifdeveloppath \tikzset{/tikz/develop clipping path/.is if=...
DDS's user avatar
  • 9,500
1 vote
1 answer
56 views

\includegraphics clips one particular image differently after conversion?

I was sent a png image by an author (Janusz Bie\'n) and converted to jpg (pngtopnm Rubricella.png | pnmtojpeg >Rubricella.jpg) to reduce file size (jpg lossiness not an issue here). The resulting ...
Karl Berry's user avatar
  • 2,112
0 votes
1 answer
44 views

How can I resolve the issue of the excess blank space?

I generated the following tikz codes through a software (with slight modifications), but I noticed a large blank space below the figure. Therefore, I wanted to use 'clip' (for example, \clip (-50,-...
licheng's user avatar
  • 795
0 votes
1 answer
42 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
  • 65
0 votes
1 answer
53 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
80 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
235 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
187 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
45 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
  • 5,317
1 vote
1 answer
150 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
  • 664
6 votes
2 answers
242 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
4 votes
1 answer
1k 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
  • 799
0 votes
0 answers
126 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,322
2 votes
2 answers
464 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
328 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
  • 33
1 vote
1 answer
105 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
95 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
489 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
370 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
5 votes
2 answers
254 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
2 votes
3 answers
752 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,495
6 votes
2 answers
284 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
746 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
60 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
1k 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,049
1 vote
1 answer
110 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
  • 567
2 votes
1 answer
242 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
63 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
193 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
231 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
1k 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
860 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
300 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
  • 589
6 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
  • 529
9 votes
2 answers
490 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,624
1 vote
1 answer
1k 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
135 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,235
2 votes
1 answer
474 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
182 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
  • 485
2 votes
0 answers
114 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
  • 17.1k
5 votes
1 answer
814 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
145 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,290
3 votes
1 answer
335 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
159 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
285 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
  • 25.6k
0 votes
1 answer
260 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,900
20 votes
3 answers
10k 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