Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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}.

0
votes
0answers
31 views

Latex: Picture - scale/crop according to defined size - possible?

I'm facing a problem, for which I can't find a solution in any of the forums. Maybe one of you guys can help... For a project, I need one page with images, that all are there in a specific size and ...
1
vote
1answer
67 views

Output PDF should only be part of the page

I have a paper that was accepted and now I have to convert my Latex document to their style. All of it is hidden inside the document class. An example code is of the form \documentclass{ws-m3as} \...
2
votes
1answer
44 views

Cropping images to box

Is there any easy way in (Lua)LaTeX to crop an image to a specific bounding box, but only cropping on the one dimension which is too large for the box? A solution to crop on the height could be the ...
0
votes
1answer
28 views

Troubles using `standalone` class with subfig

I would like to generate a figure which I want to embed in another document as PDF. For this I would like to use the standalone class, which I've used before. But now I run into great troubles. The ...
0
votes
1answer
74 views

crop margins but include pdfs full paper size

I want to include different kinds of PDFs. For one kind (a normal page just generated outside of LaTeX) I want the margins added by the crop package. But others are full size photos for which I want ...
5
votes
1answer
68 views

Cropping standalone documents using the beamer option

I have a beamer presentation in which a figure takes a bit long to compile. And I do not want to use externalize. Figures in non-beamer documents can be conveniently produced with standalone. However, ...
1
vote
0answers
24 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 ...
0
votes
1answer
99 views

Cropping some part of a `tikzpicture`

I have a code for two intersecting circles: \begin{tikzpicture} \draw (0,0) circle (1cm); \draw (2,-2) circle (2cm); \end{tikzpicture} which outputs this: And I want to zoom into the ...
0
votes
1answer
19 views

Crop figures generated by “picture” environment

I've got this piece this MWE: \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} My equation \begin{equation*} \setlength{\unitlength}{1cm} \fbox{\begin{picture}(17,5)(-1.5,0) ...
1
vote
0answers
36 views

Koma-Script: Adding margin for printing

For printing purposes I need to add 3 mm margin to all four sides. MWE #1 \documentclass{scrbook} \usepackage{newpxtext} \usepackage{blindtext} \begin{document} \blinddocument \end{document} ...
1
vote
1answer
125 views

Exporting all equations from a document as individual pdf files in macOS or Linux

Usually one has a report, paper, draft, letter, etc in tex and needs to make presentations from them. Then, exporting all the equations in individual cropped nice pdf's is very useful. It's rather ...
1
vote
1answer
55 views

Cropping a figure at a given angle

I have a plot a graph and I need to crop it like an arc. Can anybody help me that how I can figure it out using latex? Thank you.
1
vote
1answer
64 views

Limit cropping on one side?

I have a workflow that uses one of several tools that crop a generated pdf (either the standalone class with crop=true, or the pdfcrop or dvipng tools). In some cases I want to limit the cropping on ...
3
votes
2answers
234 views

Cropping a Greek Letter in mathmode

My problem sounds simple, but I did not find something useful until now: I would like to "crop" a single letter in mathmode. Like for example, I just want to have the lower third of \Omega, i.e. the ...
0
votes
0answers
38 views

Importing figures from a pdf or word file [duplicate]

I have saved required figures for my article in a word file (and obviously I can generate a pdf of the same) such that every page has a single figure and these figures are of different dimension. I ...
2
votes
1answer
46 views

pstricks is cropping my image too small

pstricks seems to automatically crop out all surrounding whitespace in an image. How can I stop this? For example, the code \begin{pspicture}(-2, -2)(2, 2) \psdots(0, 0) \end{pspicture} just ...
3
votes
2answers
82 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{...
0
votes
1answer
47 views

Crop image with left size given

I want to crop an image but I don't want to define how much should be croped but how much should be left. The idea is if I have a command \pic{lines=5,path=picture.jpg} I want to only show the bottom (...
0
votes
1answer
31 views

Cannot give length variable to crop package?

I don't understand why, but the following code fails with the error ! Missing \endcsname inserted. <to be read again> \myStock l.607 \AtBeginDocument {...
3
votes
2answers
65 views

Printing on larger page to be cut to smaller paper

I have a normal printer that prints A4 (297x210mm) papers, but occasionally I want to print text that is to end up on smaller paper than that. For that I think I can cut the paper afterwards to get ...
1
vote
1answer
54 views

5mm margin is not 5mm?

I'm using package geometry and crop in order to print a paper in a professional printer. I set in the geometry package an internal margin of 5mm, and in crop I use an external 5mm margin. So I'd ...
3
votes
1answer
167 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 ...
4
votes
1answer
232 views

Best way to define a Latex document with crop mark for printing

I'd like to do a document that will be printed by a professional printer. To print it I need to add a margin around the document so that during the page cutting no blank margin will appear. Here is ...
1
vote
0answers
100 views

Setting PDF boxes correctly in LaTeX

This question is similar to How to get correct PDF boxes (especially regarding bleeding and the TrimBox) in ConTeXt which deals with ConTeXt. I am using (Lua)LaTeX to produce a5-sized booklet for ...
2
votes
2answers
86 views

How to get a fgruler on three sides of a page?

My current approach only makes to rulers sticked together so the start of the ruler is different to the edge of the actual (printed) page: \documentclass{scrartcl} \usepackage[ type=lowerright ,...
0
votes
1answer
173 views

Cropping is wrong with long formatting text in svg→pdf+pdf_tex

I need to include vector graphics in my document. The text in the graphic needs to be formatted. My current workflow is Draw graphic and enter text in "Plain Latex" Export/save as SVG Convert to PDF +...
0
votes
0answers
44 views

packages crop and pdfx result in cropped pages

My printer (person) asked me to give him a PDF-X4 file. Furthermore the pages need an extra margin (in German "Beschnittrand") for graphics that reach the paper edge. I'm using the packages crop and ...
3
votes
1answer
91 views

How to avoid empty page before large (full-page) image?

If I insert a full-page image with height > \textheight, then an empty page will be inserted before the image. How can I avoid that? See minimal example: \documentclass[twocolumn]{scrbook} \...
1
vote
2answers
153 views

Is it possible to crop a picture in a different shape than a rectangular one?

I would like to add some picture to an existing one that I annotate. For that, I do it in tikz with the command \node[draw=black,anchor=south west] at (0,0.4){\includegraphics{ex.png}}; Note that I ...
5
votes
3answers
436 views

Trim margins of the entire document

Is there a way to trim the margins of the entire document by LaTeX? I need to do that temporarily, to make more comfortable my typesetting work. I figured out to pass this option by command line with ...
3
votes
1answer
518 views

How to get correct PDF boxes (especially regarding bleeding and the TrimBox) in ConTeXt

I am currently typesetting a book in ConTeXt and have been wondering how to get correct PDF Boxes when creating a PDF/X file for printing. According to a page on Context Garden this should be possible ...
0
votes
1answer
160 views

What are these spurious lines when using geometry package?

The finished book size is 170mm x 240mm. The continuous black rectangle shows the boundary around the text only. What is causing the two extra separate lines to appear at the side and bottom? Also, is ...
0
votes
0answers
100 views

PDF image takes up the whole page [duplicate]

I tried to include a pdf image that I saved from Matlab. It is a square image, but it takes up the whole page because big margins appear. I would like text to be written in these blank spaces. There'...
0
votes
0answers
32 views

\includegraphics[trim = {…}, clip]{picture} embeds full picture file [duplicate]

I use \includegraphics[trim = {...}, clip]{picture} a lot to crop pictures. I recently noticed that the generated pdf still includes the full picture. For example, in Evince it is possible to right ...
2
votes
0answers
105 views

How to find out if a PDF file has data not visible within the bounding box? [closed]

I am embedding a small area of a large webpage into a document compiled with pdflatex (using \includegraphics). A raster image / screenshot produces artifacts when zooming in, so instead I am saving ...
1
vote
0answers
76 views

Crop inserted PDF page - permanently

I'd like to include a part of another PDF in my LaTeX document. I've found parameters for "includeimage" in another StackExchange answer which would work in theory: \includegraphics[clip, trim=0.5cm ...
2
votes
0answers
233 views

How to crop background from eps plot automatically?

For images I found the solution provided in this Q&A (How to crop background from image automatically?) very helpful and easy to use. Now I also want to use this for my from Matlab exported plots ...
2
votes
1answer
495 views

Latex cutting off figures because of white space

Now I've seen variations of this question but none of them solve my issue. Latex is cropping my figure's legend because it is on the right of the image so I suppose it has too much "white space" (?)....
1
vote
1answer
64 views

How can I change the color of the frame in the crop package?

I'm using the following code to set the logical and physical page sizes: \geometry{paperwidth=5.25in, paperheight=8.25in, margin=0.625in} \usepackage[letter,frame,center,noinfo]{crop} This draws a ...
0
votes
1answer
49 views

Interference between crop, (new)geometry and iftoggle

To center a cropped page in combination with \newgeometry one can add \makeatletter\CROP@center\makeatother after each change of geometry (https://tex.stackexchange.com/a/118824/61658). Using the \...
0
votes
1answer
89 views

Add crop marks to 2x2 cards on A4

I use miktex to join a bunch of cards into A4 landscape pages, 2x2 per page. I was looking into how to add crop lines to it: - 1 horizontal + 1 vertical lines - both in the middle of the page, going ...
4
votes
1answer
148 views

Incorrect crop of tikzpicture in standalone when using komaoptions

MWE \RequirePackage{luatex85} \documentclass[ tikz, border=0cm, class=scrbook, ]{standalone} \usetikzlibrary{backgrounds} \pagecolor{lightgray} % \KOMAoptions are actually included via a shared ...
2
votes
1answer
248 views

PdfLatex crops the image while converting

I'm using pdfLaTeX, Vim and LaTeX suite on Ubuntu, with the graphics package. I've exported an image from Matlab to EPS format, but the automatic conversion (I'm not sure what converts it to pdf) ...
1
vote
1answer
399 views

How can I crop an included .pgf image?

I have inserted using \input a .pgf image but I have a lot of white space between the image and the caption. I would like to crop the image so that I can reduce the white space. Is there any way I can ...
5
votes
1answer
154 views

LuaLaTeX (0.95.0 TL-2016) has problem with crop and microtype packages being together

This should probably be a bug report and not a question, however I am not sure where to put it (LuaLaTeX? crop package? microtype package?) and so I hope it shall find its way to those who can do ...
0
votes
0answers
79 views

Print <A4 at 100%

What LaTeX package is best used to show crop marks on a page, so that I can print a LaTeX pdf page on an A4 sheet of paper at 100% in order to check the physical font size display. In doing so, I don'...
3
votes
4answers
312 views

Cropping a pstricks page/image

How do I go about cropping an image to specific x and y dimensions? I've tried using standalone and the crop parameter, but the result is always a full page. Here's the code I am using right now: \...
2
votes
2answers
194 views

How to choose top 50 % of pdf page?

I would like to select the top part (50 %) of the PDF document and put two of such documents one after another. The bottom 50 % is blank. Here an example code which lists two PDF documents side by ...
2
votes
2answers
383 views

Cropping a plot with an image

I have a plot with an image, which is created with the below code, and renders as the top plot in the image below. If I decide part of the plot contains unnecessary data, how do I crop this out such ...
0
votes
1answer
252 views

Tikz cropping inside another document

I have already found and read some questions related to the issue of cropping a tikz picture. The problem here is that I have a tikz code coming from R that is then imported in a new document. \...