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
0 votes
1 answer
96 views

How to write "zero with short slash" in TeX?

There is a similar application in the shortcuts below. However, I want the end parts of the slash to be deleted. So how can we create the fourth zero? Like \pmzerocomputer . Thank you. \documentclass{...
Özgür's user avatar
  • 3,270
1 vote
1 answer
60 views

How to crop half the page of an existing PDF?

I have a PDF document that was improperly scanned, so that the content (images) only occupies the top half of the portrait page. I'd like to crop all the pages, to remove the empty bottom half, and ...
Rodrigo's user avatar
  • 113
0 votes
2 answers
39 views

Producing crop marks fit for octavo signature layout

Normally I use the crop package within a book class to produce individual sheets with crop marks. Now I would like to produce sheets for octavo signature binding, that is, eight pages on each side of ...
Frigo's user avatar
  • 257
2 votes
1 answer
45 views

standalone's multi option doesn't crop page's content

The standalone documentation claims: If [the multi] option is activated multiple pages are supported. Each page will be cropped to its content plus the selected border (as long either preview or crop ...
Denis Bitouzé's user avatar
1 vote
0 answers
29 views

Inserting a command in a def causes a bug [duplicate]

When I execute the following command, it works: \makeatletter\CROP@center\makeatother But, when I include this command in a \def, as shown below, it no longer works: \def\...
Colas's user avatar
  • 6,658
0 votes
1 answer
108 views

TikZ standalone fails to generate PDF with tight layout when using loops

Something quite strange happens when I try to add loops in my code (they are actually not really loops, but edges from one node to itself, controlled by in and out arguments. The following is the code ...
maurizio's user avatar
  • 281
0 votes
1 answer
48 views

incompatibility between crop and minted packages?

I'm having problems when using both the crop package (for adding crop marks) and the minted package (for syntax highlighting of code). Just the loading of the two packages causes pdflatex to hang. ...
Stuart's user avatar
  • 95
3 votes
3 answers
228 views

Adding a Border to an Oval-Shaped Cropped Image

Consider the code \documentclass{book} \usepackage{graphicx} \usepackage[abs]{overpic} \usepackage{tikz} \definecolor{Gold}{RGB}{228,168,73} \begin{document} \thispagestyle{empty} \begin{center} ...
DDS's user avatar
  • 8,491
5 votes
1 answer
239 views

How to Make an Ordinary Page Border Resemble This Tcolorbox

I know that I can produce (ordinary) page borders, for example, as follows: \documentclass{article} \usepackage[margin=.75in,paperwidth=16cm,paperheight=24cm]{geometry} \usepackage[a4,frame,noinfo,...
DDS's user avatar
  • 8,491
1 vote
1 answer
92 views

How to use the spread option for a tcolorbox together with the crop package?

When I use a spreading tcolorbox together with the geometry and crop packages, tcolorbox ignores the page offsets given by crop. This does not happen with non-spreading tcolorboxes as shown in my MWE. ...
Pazukulele's user avatar
1 vote
0 answers
73 views

Titlepage bleed in KOMA-Script with Crop

My document is using the KOMA-Script scrartcl class. I wish to add a bleed around every page for printing using the crop package. I'm also using geometry for the titlepage only (as my institution ...
playduck's user avatar
4 votes
2 answers
447 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 ...
DDS's user avatar
  • 8,491
1 vote
1 answer
65 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 ...
TiMauzi's user avatar
  • 831
1 vote
1 answer
127 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 ...
Naif Alsalem's user avatar
0 votes
1 answer
108 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). ...
Andrea's user avatar
  • 1
0 votes
0 answers
544 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 ...
Zack's user avatar
  • 111
2 votes
1 answer
750 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 ...
Ungar Linski's user avatar
2 votes
1 answer
33 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 ...
Florian's user avatar
  • 2,909
1 vote
1 answer
84 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{/...
DDS's user avatar
  • 8,491
4 votes
1 answer
960 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
  • 779
1 vote
2 answers
859 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 ...
user363808's user avatar
2 votes
1 answer
286 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 ...
Bob's user avatar
  • 1,240
1 vote
1 answer
153 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: ...
RBoston's user avatar
  • 65
0 votes
1 answer
137 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, ...
Bigga's user avatar
  • 57
0 votes
1 answer
91 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 ...
Leo Simon's user avatar
  • 2,169
0 votes
0 answers
59 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 ...
DDS's user avatar
  • 8,491
1 vote
2 answers
122 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 ...
L. Nielsen's user avatar
1 vote
1 answer
113 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 ...
ezgranet's user avatar
  • 554
1 vote
1 answer
184 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 ...
Ali's user avatar
  • 633
0 votes
0 answers
38 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]{...
Raven's user avatar
  • 2,963
0 votes
1 answer
27 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 ...
Andy Scott's user avatar
0 votes
1 answer
101 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}...
chandra's user avatar
  • 3,084
2 votes
0 answers
95 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 ...
Henry DeYoung's user avatar
1 vote
1 answer
223 views

Using chronosys package in standalone class

I want to include a timeline in a beamer presentation. To that end I wrote this code: \documentclass{article} \usepackage{chronosys} \usepackage{xcolor} \definecolor{first-period}{HTML}{b3e2cd} \...
Tonechas's user avatar
  • 974
3 votes
1 answer
254 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:
mrks's user avatar
  • 171
0 votes
1 answer
194 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 ...
supaeasy's user avatar
0 votes
0 answers
183 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 ...
Marcus's user avatar
  • 143
0 votes
0 answers
90 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 ...
JammingThebBits's user avatar
1 vote
1 answer
71 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}...
O0123's user avatar
  • 1,753
2 votes
1 answer
62 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 ...
TeXtnik's user avatar
  • 5,803
1 vote
1 answer
29 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\...
MadyYuvi's user avatar
  • 13.4k
2 votes
2 answers
363 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 ...
Pedro's user avatar
  • 474
1 vote
1 answer
75 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 ...
TobiBS's user avatar
  • 5,170
2 votes
1 answer
277 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 ...
user855443's user avatar
  • 1,080
0 votes
0 answers
276 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 ...
suseuser04's user avatar
0 votes
2 answers
306 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.
Dan Cat's user avatar
  • 333
0 votes
2 answers
113 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 ...
grobber's user avatar
  • 181
0 votes
1 answer
68 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 ...
Michael Novak's user avatar
1 vote
0 answers
36 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?
CasperYC's user avatar
  • 649
1 vote
1 answer
62 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 ...
chandra's user avatar
  • 3,084

1
2 3 4 5