The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2
votes
1answer
21 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}
1
vote
2answers
58 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....
2
votes
1answer
49 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 ...
4
votes
4answers
273 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 ...
0
votes
0answers
28 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 ...
6
votes
1answer
137 views

How to print only first n items in itemization in ConTeXt?

I am creating a random quiz in ConTeXt, using itemizations. I need to only show the first 10 items, and discard the rest, never showing them. \starttext \startitemize[n] \item This is the ...
1
vote
0answers
125 views

MacTex 2019 graphics doesn't render properly [closed]

I just upgraded MacTex from 2018 to 2019 using HomeBrew, the graphics didn't render well(very blur compared with the earlier version, guess it is about some changes on the default graphics resolution ...
3
votes
1answer
120 views

IEEEtran, standalone, and XeLaTex: do not crop

I am using the following MWE. \documentclass[tikz,class=IEEEtran]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[draw, line width=5pt,blue, fill=green](boxofgreen) {This box ...
1
vote
1answer
95 views

KOMAScript binding correction destroys cropping of pages

I am trying to print my A5 document in the middle of A4 pages. With the answer to this question I was able to crop the pages on A4 pages. However now I am using the BCOR option of KOMAScript and this ...
0
votes
0answers
48 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
63 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
280 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
76 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
92 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
115 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
63 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
81 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} \...
4
votes
1answer
265 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
123 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
341 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
159 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
32 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 ...
3
votes
1answer
1k 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
55 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
58 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
212 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
165 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
91 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
249 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
68 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
100 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
94 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
38 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
75 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
100 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
252 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 ...
5
votes
1answer
477 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
197 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
146 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
393 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
54 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
136 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
246 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 ...
6
votes
3answers
717 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
983 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
304 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 ...
2
votes
0answers
194 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
118 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
440 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
1k 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" (?)....