Skip to main content

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
1 vote
1 answer
75 views

Scale from A4 to A5 for documentclass book

Original question: I found the answer from Simon Dispa with the following proposal: % !TeX TS-program = pdflatex \mag=1414 % added <<<<< \PassOptionsToPackage{usegeometry, paper=a5, ...
Thomas J's user avatar
1 vote
1 answer
39 views

Adding Text to the White Space of a Cropped Image

Consider the code: \documentclass{book} \usepackage{pstricks} \usepackage{graphicx} \usepackage[active,tightpage]{preview} \PreviewEnvironment{pspicture} % Paddings. \PreviewBorder=1cm\relax \...
DDS's user avatar
  • 9,768
1 vote
1 answer
86 views

trim and clip \includegraphics PDF leaves selectable text artefact

I regularly use \includegraphics with trim + clip option to e.g. include a single panel from a larger figure in a .pdf file. I recently noticed in the Evince PDF editor I can select text objects from ...
pip's user avatar
  • 1,887
1 vote
1 answer
39 views

Crop package for books, with content aligned to inner margin

I am trying to use the crop package on a book document, but I would like to have a bleed area and crop marks only for the top, bottom, and outer part, not the inner one. \documentclass{book}% \...
Federico Pirani's user avatar
3 votes
1 answer
167 views

How to properly crop a math operator? A command for the direct factor symbol?

I am sorry if this has already been answered, but neither chatgpt provided me with a satisfying answer nor have I found what I am looking for on the stack exchange. I would like to know if there is a &...
julio_es_sui_glace's user avatar
0 votes
1 answer
760 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,344
1 vote
1 answer
82 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
55 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
58 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,892
0 votes
1 answer
163 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
62 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
  • 105
4 votes
3 answers
320 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
  • 9,768
5 votes
1 answer
259 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
  • 9,768
1 vote
1 answer
115 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
101 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
453 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
  • 9,768
1 vote
1 answer
70 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
  • 851
1 vote
1 answer
205 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
179 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
646 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
981 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
34 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,919
1 vote
1 answer
87 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
  • 9,768
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
  • 809
1 vote
2 answers
1k 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
342 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,322
1 vote
1 answer
186 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
155 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
  • 99
0 votes
1 answer
113 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,209
0 votes
0 answers
64 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
  • 9,768
1 vote
2 answers
149 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
129 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
  • 574
1 vote
1 answer
210 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
  • 643
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
  • 3,043
0 votes
1 answer
30 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
106 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,104
2 votes
0 answers
113 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
242 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
  • 976
3 votes
1 answer
306 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
277 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
206 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
  • 259
0 votes
0 answers
103 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,803
2 votes
1 answer
68 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,873
1 vote
1 answer
32 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.9k
2 votes
2 answers
413 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
84 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,270
2 votes
1 answer
319 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,120
0 votes
0 answers
331 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

1
2 3 4 5