Questions tagged [crop]

{crop} is about cropping, trimming or clipping some element in (La)TeX. Examples are the trim and clip options of \includegraphics. For path-clipping in TikZ or PSTricks use {path-clipping}.

Filter by
Sorted by
Tagged with
4 votes
2 answers
404 views

How to Crop an Image Precisely in the Shape of a Norman Window

A Norman Window looks like a semicircle atop a rectangle; for example, If would like to be able to take an existing rectangular image and crop it so that what is cut out resembles the perimeter of a ...
user avatar
  • 5,285
1 vote
1 answer
48 views

Crop ellipse to fit in between other shapes in Tikz

Assuming I have two shapes and I want to add a circular shape (like an ellipse). How can I crop this ellipse so that it fits in between the other shapes like sketched below? I don't want to add white ...
user avatar
  • 749
1 vote
1 answer
40 views

pdf file containing a cropped image is displayed as if the image is not cropped already

I have come across this code here(How to manipulate an externally-generated pdf figure in LateX?) that allows me to send some labels/annotations to an image in a pdf file. The pdf file is already ...
user avatar
0 votes
1 answer
22 views

Cropping figures cuts the upper caption

I tried to crop the blank space above and below the image with \includegraphics[trim=left bottom right top, clip]. It worked very well at the bottom, however at the top it cuts the title (caption). ...
user avatar
  • 1
0 votes
0 answers
194 views

How to crop .eps and use in Latex

How do I crop an .eps file for use in LaTeX when using macOS? I tried the instructions here: What is a good workflow for importing and cropping EPS images? and it didn't work. Specifically, I began ...
user avatar
  • 111
2 votes
1 answer
422 views

Compile LaTeX to PNG of specific width and DPI quality and cropped as much as possible

I want to compile LaTeX files directly to PNG (preferably skipping PDF) and to have the outputted PNG be as cropped as possible around the content. The PNG output needs to very high quality and cannot ...
user avatar
2 votes
1 answer
31 views

crop-package interfering with paragraph counter using everypar

Steven B. Segletes has devised a well working way to count paragraphs that doesn't seem to interfere with all the (many) packages that I am using in my book. Apart for one exception: The crop-package ...
user avatar
  • 2,817
1 vote
1 answer
70 views

How to Scale the Display Size of a Cropped Image

The basis of the following code Cf. How can I clip an image via a bezier-path? Consider \documentclass{article} \usepackage{tikz} \usepackage{graphicx} \newif\ifdeveloppath \tikzset{/...
user avatar
  • 5,285
4 votes
1 answer
219 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
1 vote
2 answers
243 views

Compile LaTeX document to PNG automatically

I want to export chemical lewis structures as transparent PNG-files in order to use them in Word documents. So I want to achieve whats described in this post. I just can't get it to work because my ...
user avatar
2 votes
1 answer
134 views

Image handling, zooming rotating panning and viewport

I am struggling to understand how to properly manipulate graphics. My graphics currently have a rotated viewport, I need a rotated image but a normal rectangular viewport. Is there a way to adjust the ...
user avatar
  • 1,200
1 vote
1 answer
44 views

Crop package, want three outside edges to have bleed

I have formatted a document for printing, and the printer is saying that I need a bleed of 0.125' on the outside three edges. I am printing a booklet (using `booklet'), so the outside edges look like: ...
user avatar
  • 63
0 votes
1 answer
77 views

scrlttr2, crop and headheight

I write a letter with scrlttr2 and try to colorize the background of the header. For some reason, I need some crop marks. So I maximize my letter from DIN-A4 to DIN-A3 with the package crop. But now, ...
user avatar
  • 15
0 votes
1 answer
49 views

Tightening the bottom bound on eps file created from inkscape

I have this (image of a) pdf file I've tried several ways to convert it to eps with a tight bounding box. I've tried, among many other things inkscape in.pdf -D --export-eps=out.eps and then epstool ...
user avatar
  • 2,079
1 vote
0 answers
55 views

How to Save a Trapezoidally Formed Paragraph as a Trapezoidal Image

I have produced a trapezoidally-shaped paragraph of words as follows. \documentclass{article} \usepackage{scalefnt} \usepackage{lipsum} \begin{document} \thispagestyle{empty} \parshape 16 % The ...
user avatar
1 vote
2 answers
64 views

Resizing an image to make it span the paperheight while trimming the width to fit paperwidth

The title maybe says it all; I'd like to have a figure that first centers and resizes an image to fit the paperheight, and then trims the image to fit paperwidth. Until now, I've done the trimming ...
user avatar
1 vote
1 answer
63 views

Crop package, geometry and memoir leads to option clash

I need the cam option of the crop package (not provided by memoir's trimmed sizes), but when I put memoir, geometry, and crop together, I get an option clash warning. Is there away to circumvent this ...
user avatar
1 vote
1 answer
125 views

How to prevent latex from removing the margin from a PDF image

I have a chart in PDF format, which had been cropped to have no margin using pdfcrop Months later, I realized that I need to add X- and Y- axis labels. Because I don't have the original script to ...
user avatar
  • 633
0 votes
0 answers
35 views

Crop image using relative offsets [duplicate]

As of Crop an inserted image? we can crop images by using something like \documentclass{article} \usepackage{graphicx} \begin{document} % trim from left edge \includegraphics[trim={5cm 0 0 0},clip]{...
user avatar
  • 2,395
0 votes
1 answer
24 views

Image sized to pagelayout dimensions not page size

Hoping someone can provide a reasonable solution to my issue using tikz package and crop package together. Cant seem to find anything that seems to assist with my issue In my document, I have images ...
user avatar
0 votes
1 answer
83 views

Why is this PDF not cropped tightly?

Here is my MWE, adapted with cosmetic changes from Andre Stacey's hobby package, which I compiled with xelatex: \documentclass[crop]{standalone} \PassOptionsToPackage{cmyk,svgnames,dvipsnames,hyperref}...
user avatar
  • 2,882
2 votes
0 answers
65 views

LaTeXiT and lualatex: auto-crop TikZ picture fails

I'm using the very convenient LaTeXiT tool to incorporate equations and TikZ pictures within a Keynote presentation. Mostly this works smoothly, using the pdflatex engine for typesetting. However, I ...
user avatar
3 votes
1 answer
144 views

Cut middle of image with zig-zag pattern

I have an image that is too wide to be displayed on a page. I'd like to cut the middle part of the image. The edges should be ragged to help the reader understand that a part is missing. Example:
user avatar
  • 171
0 votes
1 answer
83 views

Add crop marks for business cards

I cannot believe that I am the first person struggling with this, maybe I am missing out on something obvious here but I searched thorougly and can't seem to find any info on this. I have designed ...
user avatar
0 votes
0 answers
121 views

ps2pdf does not preserve dimensions

I am using packages geometry and crop in a .tex file. Then, I convert it to .ps (using dvips) and .pdf (using ps2pdf). The problem is that in the .dvi and .ps files all areas (margins, heights and ...
user avatar
  • 143
0 votes
0 answers
75 views

Cropping content fails with lualatex, how come?

I'm new to latex, I was wondering given this simple tex code: \documentclass{standalone} \usepackage{tikz} \begin{document} \tikz \draw (0,0) circle [radius=10pt]; \end{document} In the ...
user avatar
1 vote
1 answer
65 views

Tikz coordinates on top of a picture (unit size)? → make into rulers → Make into macro (evenly sized pictures), 1 picture per page only cropped

The following code by @cis does something wonderfully, it measures the distance between two points on a picture, and then creates a ruler around the picture. \documentclass[a4paper, landscape]{article}...
user avatar
  • 1,683
1 vote
1 answer
47 views

different behaviour lualatex and xelatex using crop and tikzpagenodes pckages

Using the tikzpagenodes package to position elements in the page, I noticed that when loading the crop package, XeLaTeX and LuaLaTeX have different behaviour. XeLaTeX incorrectly calculates the ...
user avatar
  • 5,683
1 vote
1 answer
21 views

Define various Trim size through a .sty file

I'm trying to write a package, which can supports various Trim sizes through option in TeX application file, and my tags are follows: Definition in my .sty file \newif\ifsixbynine \newif\...
user avatar
  • 11.2k
2 votes
2 answers
221 views

Zoom in a Tikz mindmap

I created this mindmap to illustrate a big system that I built. As I am describing it, I need to have a small portion of the mindmap along with the text, so that the reader understands better which ...
user avatar
  • 474
1 vote
1 answer
54 views

Why are TikZ page anchors misaligned, when I am using a manual voffset?

I am trying to place some objects with the TikZ remember picture,overlay options and current page anchors. At the same time, I am using crop to create cutting marks. Unfortunately I cannot just use ...
user avatar
  • 4,514
2 votes
1 answer
152 views

How to print crop marks with KOMA-Script class scrbook

I want to print crop marks for a format smaller than a4 which is printed on a4 stock. I use KOMA-Script class scrbook and add geometry and crop packages - nothing happens. How can I have crop marks ...
user avatar
0 votes
0 answers
156 views

modifying postscript file: shifting content and resizing page or crop content

I have a program that produces postscript file. The file has a text block vertically in the middle of an A4 page. The text block fits A5 size in landscape mode. I would like to convert the ps file ...
user avatar
0 votes
2 answers
81 views

Round Crop an inserted image

I wanted to obtain the same result as shown at Crop an inserted image? by having a round (rather than rectangular) crop or viewport. Any idea of how to obtain this effect? Thanks.
user avatar
  • 331
0 votes
2 answers
107 views

creating document that automatically fits widest equation without modifying font

I have some output from a CAS computation, in the form of a sequence of (sometimes gigantic) symbolic matrices. I simply want them displayed in a pdf (the CAS can output TeX), without having to coerce ...
user avatar
  • 161
0 votes
1 answer
59 views

A general method for a document to extend as much as needed in order to fit the content of the document

I have a python script that automatically creates a LaTex document for a given input. In this document, I have a lot of proof trees (created using the bussproofs package), though it doesn't really ...
user avatar
1 vote
0 answers
33 views

Adding Color bars from print production [duplicate]

Using the crop package, we can easily add printer marks. I am look for Color Bars. I am wondering if there is a package for this?
user avatar
  • 515
1 vote
1 answer
39 views

Unexpected outputs from standalone class with preview and crop options

I am designing a logo composed of two letters and am using the standalone class. I would expect the newer crop option to give me a "tighter" PDF output than the older preview option, but the reverse ...
user avatar
  • 2,882
2 votes
2 answers
591 views

Crop A4 thesis to B5

I have a thesis with the following A4 layout (scrbook, 10pt, twoside, calculated DIV): For even sides, the \oddsidemargin changes to \evensidemargin = 98pt I'd like to keep all sizes etc. the same, ...
user avatar
  • 183
1 vote
1 answer
523 views

trim option of \animategraphics fails [closed]

When I try to crop images (see code below) with animategraphics, the animation works but the image is not cropped. When I run the code with "example-image-duck" instead of my own images the animation ...
user avatar
1 vote
1 answer
101 views

Simplest way to place cropped image on other image (Tikz)

(I'm sure lots of ppl have had this exact same problem before, but I could not find it anywhere.) I have two PNG files, A & B. Image A is like a frame, so it has an empty area in the middle. In ...
user avatar
  • 163
0 votes
0 answers
65 views

Crop a pgf image to extents

I'm generating a fair bit of plots with matplotlib for my document. For consistent white space between plots, images, etc. I'd like to crop the plot images which are pgf to the extents of the plot "...
user avatar
0 votes
2 answers
110 views

How to set up two-sided geometry for physical cropping of just two edges?

I'm trying to print a two-sided document on physical paper that is too large, which I will then cut to its final dimensions. I wish to cut each sheet of paper just twice, so I am trying to place all ...
user avatar
2 votes
3 answers
452 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
1 vote
0 answers
74 views

Hiding page numbers in pdfs inserted using includepdf command

This may not be possible but let me ask anyway (the magic of Latex is well known) I am inserting some pdfs using \includepdf command. Some of these pdfs have page numbers appearing in them at the ...
user avatar
2 votes
1 answer
42 views

reducing the size of crop marks as per requirement--how to do it?

\documentclass[twoside]{article} \usepackage{geometry} \geometry{a5paper} \usepackage[center,a4,cross]{crop} \usepackage{blindtext} \begin{document} \Blinddocument \end{document}
user avatar
  • 18.7k
1 vote
2 answers
166 views

Crop page completely

I display some nearly full page tikz(square BB's) and would like to crop the page to the image in the pdf because there is a lot of wasted space that reduces ability to show the image in higher detail....
user avatar
2 votes
1 answer
226 views

crop marks don't show up on pages with included pdf on full page

I added some crop marks using the crop package. They show up on every page, except on these with full-page pdf included (with width set to A4+bleed). On those pages they are behind the pdf. Is there ...
user avatar
4 votes
4 answers
2k views

\includegraphics: get the "scale" value of a figure whose size is expressed by "width"

Lets take this string: \boxed{\includegraphics[width=0.4\textwidth]{FIGURE.pdf}} that generates this figure: Now lets say that I need to crop the blank margins of the figure keeping the figure's ...
user avatar
0 votes
0 answers
41 views

Extract a table-float from a TeX-typeset PDF?

I have this article which was near-certainly created with LaTeX. One of its floats is a table, and I would like to extract it from the PDF, i.e. obtain a PDF with just that figure (excluding the ...
user avatar
  • 11.5k

1
2 3 4 5