The tag has no wiki summary.

learn more… | top users | synonyms

19
votes
3answers
703 views

How to clip a TeX box using low-level PS commands?

I like to clip an arbitrary TeX box (\hbox) but without using larger graphic related packages like PGF/TikZ or PSTricks. This is intended to be used in packages which should not force the user to also ...
12
votes
3answers
551 views

How to Reverse Clip on Custom Path Defined by Ellipse Intersections

Suppose I have two ellipses with known locations, major and minor axes, and rotation angles. What I would like to do is define a custom path that primarily uses one ellipse but follows the other at ...
12
votes
2answers
199 views

How to keep the line cap when clipping a path?

This question is kind of the opposite of Disable "clip" and "use as bounding box" in TikZ. Is it posisble to clip a path but let the line caps lokk as the path would end at the ...
11
votes
4answers
1k views

TikZ: complicated paths, e.g. for complex integrals

I would like to illustrate lecture notes on complex analysis, which by its nature is a lot about how the lines of integration are running through the complex plane. However, I'm having trouble finding ...
11
votes
2answers
2k views

Tikz clip shapes with another (built in) shape

I have some geometry that I need to clip. I would like to use the built in node shapes like diamonds, stars, etc... http://www.texample.net/tikz/examples/node-shapes/ Basically I use standard tikz ...
11
votes
2answers
137 views

With TikZ, is it possible to only clip horizontally or vertically?

With TikZ, is it possible to only clip horizontally or vertically? Normally, when clipping, e.g., \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikz} \clip (-1,-1) rectangle ...
10
votes
2answers
890 views

How to control borders of intersected nodes (rectangles)

I am trying to superpose 2 rectangles; one blue, one red, and have the intersection area with a mix of blue and red. I have problems with the borders though. I am not getting the thickness of the ...
9
votes
1answer
770 views

Clipping tikz and raster pictures zigzag style

Is there a way to achieve this kind of clipping for raster images as well, not only for tikz pictures? -- Solved, see Edit #1. Are there any easier solution to achieve this with TikZ? -- Solved, see ...
8
votes
1answer
383 views

How is the interior of a path determined when reverse clipping?

I'm been playing around with [reverseclip] from How can I invert a 'clip' selection within TikZ?. It works quite well. When you apply [reverseclip] it seems to add another part to your ...
8
votes
1answer
86 views

How come only part of the interior of this path is used for clipping?

Here is an example document and the output I get from it. \documentclass[convert={size=480}]{standalone} \usepackage{tikz} \tikzset{ little circle/.style = { fill = black, ...
8
votes
1answer
214 views

Crop ternary plot

I want to crop the top part of the ternary plot given below at x = 0.7 because I don't have any datapoints in that region and want to save space. How can I do this? \documentclass{standalone} ...
7
votes
2answers
427 views

change draw color in a clipped region in tikz/pgf

I use \clip to clip a rectangular region of a drawing in a tikzpicture. I would like to have the lines in the clipped region to have a different color than their color in the original drawing. Would ...
7
votes
3answers
731 views

Draw only part of a rectangle in Tikz

How can I draw only parts of a rectangle? I want to omit a small part of the rectangle to put some text in. As I'm using various complex rectangles, I do not want to construct own "open rectangles". ...
7
votes
1answer
119 views

How to use even-odd filling rule either as a clipper or with gradient?

I just noticed that even-odd filling rule can only be used for solid and hatched filling. Sometimes, I need even-odd rule for gradient and as a clipper. How to do so? My code speaks the details. ...
7
votes
0answers
106 views

Fore-edge painting package for books?

I would like to add fore-edge painting to the edge of each page, so that when the pages are fanned, it reveals text or an image. It seems it would be easy enough to slice up an image(Tikz/PGF), or ...
7
votes
0answers
220 views

tikz clip rounded corners

How to apply this Tikz solution (Rounded corners only at one side of a TikZ node) to have the same effect on clipping? I want to clip things (images) using that rectangle with differently rounded ...
6
votes
3answers
578 views

Clipping a formula to make a nice compliment

I just found a nice cartoon and wonder if this is possible with LaTeX as well. If you draw "128 \sqrt{e 980}" on the blackboard (sqrt written with the root character) and erase the approximately ...
6
votes
1answer
158 views

Number of intersection points

In this examle from pgfmanual p 132, how to use \t the number of intersections point outside \fill command. I tried \def\Nb{\t} but it dosen't work. \begin{tikzpicture} \clip (-2,-2) rectangle (2,2); ...
6
votes
1answer
165 views

How to clip overlaying surfaces/paths instead of filling them with white?

The following code \newcommand*{\arcthickness}{0.3} \newcommand*{\myarc}[4]{ % x,y,radius,text % node is positioned by splitting the arc in two parts % see ...
6
votes
1answer
332 views

Drawing full nodes whose center is not clipped by some path

Goal I would like to draw full nodes whose center is not clipped by some path. How the solution would possibly work? To be better understood I would describe it in two steps: clip before drawing ...
5
votes
1answer
126 views

Use a part of a path to make a cycle

I have two pathes the firt is to be fully drawed, but only a part of the second using intersection point with the first. Here an example: I want to draw only the upper part of the square (dashed) as ...
4
votes
3answers
461 views

How to scale and clip a path at the same time?

Again, i started a question here, and i found the solution. But i think this method maybe useful for others. The problem: i exported the TikZ code of one path from Inkscape; then, i wanted to use it ...
4
votes
2answers
611 views

PGF/TikZ Clipping & Drawing: How to customize lines?

I have gotten some undesirable behavior with PGF/TikZ related to clipping and drawing paths with different color, say gray. So I tried with no success to exchange between \clip[draw=gray], ...
4
votes
1answer
64 views

Correct clipping of 3D tikz for adjustbox?

Consider the following MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} ...
4
votes
1answer
82 views

Strange color in PSTricks

I draw a figure in pstricks, the code is here: \documentclass{minimal} \usepackage[dvipsnames]{pstricks} \definecolor{bg}{cmyk}{0,0,0.1,0} \begin{document} ...
4
votes
1answer
104 views

TikZ: Using a line with thickness as clipping region?

In TikZ, is it possible to clip away a line? I would like to create a thin layer around an arrow in which nothing should be drawn (i.e. keep what is there at the moment the arrow is drawn) to create ...
2
votes
2answers
180 views

How to fill a specified area using TikZ

I want to fill some regions which are only parts of a shape in a TikZ drawing (marked as "Here" in the following drawings): \documentclass{standalone} \usepackage[tikz]{bclogo} ...
2
votes
1answer
60 views

How to avoid the tiny white line between clipped areas and gobbed line width

The is a tiny unwanted white line between blue areas (it is a MWE ;-) ) and the black border line is cut by the clipping line. How to avoid this two problems ? It's not visible on a png image but ...
1
vote
0answers
48 views

Tikz: shading region bounded by several curves with previously named path tikz

This two questions have been answered sepatly it should be interesting to be able to shade a region using previously named path. Is there a possibility to combine this two macros ? ...