Stack Exchange Network

Stack Exchange network consists of 175 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

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
32 views

Cropped image is visible when selected with mouse

I have an image with some text. I want to attach this image in the main document while hiding the text on the image. Below is the screenshot of the image- I am using trim and clip options provided by ...
2
votes
2answers
44 views

Crop, not scale, the background image and produce an image instead of a pdf

Here is my MWE: \documentclass{standalone} \usepackage{graphicx, lipsum} \usepackage[most]{tcolorbox} \newtcolorbox{myminipage}[3][]{ breakable, blankest, watermark graphics=#3, ...
2
votes
1answer
145 views

Included PDF image has invisible, but selectable text

I am currently facing some problem when I tried to import a PDF as a graphic. The PDF with some original text beside was first cropped to remove the text and then imported using \includegraphics. ...
2
votes
2answers
62 views

Cropped image - Tikz

I have a figure created on the TikZ and it got cropped by the outer box. Is it possible to resize it such that the whole figure is displayed? The image and code are on the URLs below. Image: https://...
2
votes
1answer
45 views

Why my tikz image falls out of page margin?

I am trying to draw a simple dependency graph using tikz and lualatex. I can't figure out why the result falls out of page... Here is the code and the result: \documentclass{article} \usepackage{tikz}...
1
vote
2answers
89 views

How to convert beamer class directly to png

I am trying to use beamer to generate multiple images with some animation effect. Posting my code here (the code content is not relevant, just for easy demo the problem I met). \documentclass[border=...
1
vote
0answers
46 views

What would be the most efficient way to insert image in a document?

In terms of occupied space and performance (compiling time), what would be the most efficient way to insert image in a document : Insert images from different files (multiple .jpg, .png, etc.); ...
1
vote
1answer
76 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} \...
3
votes
1answer
137 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 ...
1
vote
1answer
60 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
2answers
254 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
103 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
26 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 ...
2
votes
1answer
612 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
40 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
45 views

Koma-Script: Adding margin for printing [closed]

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
163 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
112 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
74 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
244 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 ...
2
votes
1answer
61 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
96 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
71 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
33 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
70 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
73 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
215 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
347 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
146 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
127 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
270 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 +...
1
vote
1answer
49 views

Converting images created from \special,\put,\makebox commands into pdf using standalone

This question is related to an older question of mine: Non-PDF special ignored! Figures created using \special command. In this question, user Ulrike Fischer suggests solving my problem by creating ...
3
votes
1answer
107 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
204 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
574 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
804 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
243 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
35 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
147 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
90 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
345 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
801 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
75 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
58 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
125 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
177 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 ...
3
votes
1answer
335 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
502 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
202 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
95 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'...