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 [file-size]

The tag has no usage guidance.

0
votes
0answers
16 views

Include images with lower resolution [duplicate]

I need to include many JPG images in a LaTeX document. They are quite "heavy" (many MBs each), but in my document they will be printed in a very small size (~2x2 cm). Obviously \includegraphics[width=...
2
votes
0answers
73 views

How to flatten or postprocess a Latex generated PDF to crop image outside of viewport? [closed]

I have a large PDF document that includes lot of complex figures. To build these figures I used the viewport feature of the \includeGraphics command from Graphics package extensively. I am aware that ...
1
vote
0answers
49 views

How are fonts included from included PDFs? (avoid redundancy in fonts) [duplicate]

I'm currently writing a larger LaTeX document with many included PDF files that are primarily generated from two sources: IPE and GNUPLOT. IPE outputs .pdf directly. GNUPLOT outsputs .tex and .eps ...
1
vote
1answer
113 views

What's making my file large?

I'm working on a document which incorporates a lot of figures and tables etc. The PDF file size is creeping up and up, to the point that github complains about it now too. I've already got a list of ...
2
votes
1answer
87 views

why is pstool-psfrag reducing pdf file size?

I am using pstool & psfrag (with pdflatex) to replace text in eps files generated by Adobe Illustator. I noticed that the pdf files produced by pstool (using the \psfragfig command) are way ...
1
vote
2answers
216 views

Embedding images explodes generated PDF size

I am using $ pdflatex --version pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) kpathsea version 6.2.3 to compile a 30-page pdf output. Twelve of the pages look like this (the rest are only ...
6
votes
2answers
226 views

Size limit of an output file

I am designing a set of macros to have exercises in a book and write the answers at the end while typesetting the answers just after the questions in the exercise file. (See MWE for an example). (The ...
1
vote
1answer
304 views

pdf file size of moderncv too large

When I pdflatex my moderncv.tex I obtain a file size of 150 kB. This seems too big since I don't include any picture yet. And in fact after gs -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dNOPAUSE -...
1
vote
1answer
941 views

Reduce quality of joined PDFs [duplicate]

I'm using the package pdfpages to join many PDF documents. Some of them are scanned. Is there an option to reduce quality of those documents in order to make the resulting file size smaller?
7
votes
0answers
594 views

Using Ghostscript to compress pdf with 3D content

I have used Ghostscript to compress the pdf output of some large files as it seems to do a better job of getting rid of duplicate font information than Adobe Acrobat (which sometimes loses certain ...
1
vote
0answers
151 views

Tips for making a lightweight long document [closed]

I wonder what tips should we keep in mind to keep a long document lightweight. I've written 3 chapters from my thesis with ~30 figs and some math, and document size is exponentially increasing (10MB ...
4
votes
0answers
233 views

PDF optimization packages/options

I noticed that when compiling any document in TeX, the resulting PDF can be reduced in size by quite much. For example, take \documentclass{article} \begin{document} Lorem ipsum dolor sit amet, ...
5
votes
2answers
192 views

Filesize command amount dependent?

When writing a cv I decided to separate tex file from content. I copied the content to a csv file in order to load it with datatool. But this greatly increases the size of the PDF: Complete content ...
5
votes
1answer
865 views

Reduce pdf file size for large image produced by pgfplots

I created a plot using pgfplots. The plot is embedded in a document. The total size of the document is about 26 MB, while the plot is 12.5 MB. The plot contains a lot of data which makes the pdf ...
1
vote
2answers
3k views

Is there a way to compress pdf file? [duplicate]

I am generating my PDF document (thesis) with LuaLaTeX. Almost all of my figures are made with the pgfplots package and do not exceed 40 kB. The document is 178 pages. The size of this document is 34 ...
1
vote
1answer
2k views

How to reducing EPS file size for document?

I have eps files of 10-15 MB that i have generated from matlab. These figures are basically data plots and because of that file sizes are so high. When i am using these files for pdf then output pdf ...
2
votes
0answers
105 views

Wrong file size of PDF [closed]

My code, \documentclass[a4paper,11pt]{book} \begin{document} \IfFileExists{\jobname.pdf} {\edef\Size{\pdffilesize{\jobname.pdf}}} {\def\Size{0}} The file size is \Size~Byte\\ \edef\jobsize{\...
9
votes
5answers
2k views

Best LaTeX editor for LARGE documents

First of all, yes, I am aware of the question LaTeX Editors/IDEs. The reason why I am asking this question is because I'm curious about people's experience with writing really large documents (100+ ...
9
votes
1answer
833 views

Large bibtex/biblatex database

I'm not sure if it is a good idea to maintain a single large bibtex database or if I should split it into multiple smaller ones. I have compiled a very large India-specific database (over 100,000 ...
28
votes
2answers
7k views

How to optimize pdf with many links and simple pages

So... I can play tic-tac-toe (naughts and crosses) in a pdf: each board configuration is one page, and each cell of the board is a link which goes to the page corresponding to playing that move. The ...
12
votes
1answer
914 views

Is there a limit to the size of a tex-file?

I've been writing a document for some time now. It is steadily growing and hopefully will continue to do so. Lately I realised that -- although I just recently bought a new MacBook -- when I work on ...
5
votes
1answer
1k views

How to decrease the file size of pdf with a lot of (clipped and downscaled) png images

I am writing a report that includes a results section with a lot of generated images. These images are .png files. Judging by the file size of the resulting pdf, these images are included in their ...
1
vote
0answers
92 views

How can I reduce the size of figures and/or the size of the final PDF document? [duplicate]

I usually include .pdf figures (vector graphics) in LaTeX files. The problem is that when I compile everything, the resulting file, which also has .pdf extension, is too large. The size of the final ...
3
votes
1answer
122 views

What's most important if I want to produce a lightweight document?

If for some reason I want to create the lightest document (in terms of the weight of the output file, not the font), what would be some good practices? Specifically in terms of: Packages: do they add ...
1
vote
1answer
346 views

Help to change svg package to include a 600dpi pdf instead of creating huge pdf with vector graphic. (Downgrade PDF)

I am using the svg package to include an svg file with transparent 3D graphic and latex code to be set at the right label positions. I tried many different methods to do that (matlab->eps+tex file) ...
3
votes
1answer
3k views

Matlab->plot2svg->Inkscape->pdf+latex->includesvg = slow rendering pdf + large file. How to solve that?

I have the following workflow. I use matlab to produce 3D plots with transparency and I want to use the workflow of setting the text inside the figure in latex. I am using Texniccenter and MikTex the ...
16
votes
2answers
1k views

Transparency vs image compression dilemma

I have a bunch of raster images that I want to include in a poster. For aesthetic reasons I want to replace the image background by a transparent one. So far, I have been grabbing the images I had ...
0
votes
1answer
237 views

Large document txt to pdf

I have about 2 million lines of LaTeX code in a .txt file, and my computer cannot copy and paste it into ShareLatex so that I could compile it. Is there a better way I could get the LaTeX document ...
0
votes
2answers
1k views

What size should MacTex be? I'm trying to download it and it's huge! [duplicate]

I'm totally new to LaTeX and similar programs. I'm actually trying to get started with LyX as I want something easy to use and basic. I'm trying to download the MacTeX 'distribution' (I think that's ...
13
votes
1answer
914 views

Why does LuaLaTeX produce smaller files than pdfLaTeX in this example?

I am discovering LuaLaTeX... I want to produce pdf files from my tex sources as small as possible. If I compile the following code with LuaLaTeX, the size of the generated pdf is 9 kB. \...
1
vote
1answer
1k views

Reducing File size

I am using XeTeX+bibTeX to compile my LaTeX file. I have around 34 pages, which includes over 20 high Quality images (Large size which are rescaled) and I am using a5paper for the book document class. ...
10
votes
0answers
81 views

Why does compiling TikZ with latex-dvips-ps2pdf produce a much much bigger PDF than with pdflatex? [duplicate]

The following MWE simulates the problem. Compile it with pdflatex -shell-escape. \documentclass[preview,varwidth,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{common.tex} \...
7
votes
2answers
12k views

Is there a pdf crop utility for windows that will give smaller files?

The answers to this question contain pdf cropping utilities that will give smaller files than Eric Doviak's original, but as far as I can tell they only work in Linux. Is there a way to make them ...
4
votes
1answer
326 views

On how double precision numbers are encoded in a pdf file

Imagine the following tikz/pgfplots code: % compile as: lualatex --jobname=figname-f1 figname.tex \documentclass[10pt]{book} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.6} \...
7
votes
2answers
2k views

moderncv - filesize of pdf too big

I managed to work out how to create a job application that is entirely written in the moderncv style. I use the moderncv class itself for my CV and the attachments (making each document a section with ...
3
votes
1answer
589 views

Is it possible to adjust natively the size of the PDF file during compilation with pdflatex?

I am a beginner in LaTeX, tentatively using it for industrial documents. I am working on a laboratory report containing little text and a large number of pictures. I prefer to leave the pictures at ...
7
votes
1answer
944 views

Is it possible to reduce the file size of generated PDF by clipping the included images with \includegraphics' viewport?

I noticed that clipping images with \includegraphics' viewport does not reduce the file size of generated PDF output. I might miss other settings. Is it possible to reduce the file size of generated ...
10
votes
3answers
2k views

Embedding Type 1C fonts using LuaLaTeX

As pointed out in the answer to PDF file size with LuaLaTeX vs XeLaTeX, the difference between using Type 1 and Type 1C fonts in two documents made a big difference in file size. File size is ...
17
votes
1answer
1k views

Why does TeX Live's pdflatex produce smaller PDFs than MiKTeX's pdflatex?

When building my master thesis, I've found that the size of the produced PDF differs if I use Tex Live on Ubuntu compared to MiKTeX on Windows; for the latter, the size is about 50% greater (from ...
5
votes
0answers
138 views

Is it possible to reduce pdf file size by optimizing images in texniccenter? [duplicate]

Possible Duplicate: How to make the PDFs produced by pdflatex smaller? I have some images in PNG. Those are large in size. I am editing using texniccenter, utilizing this pdflatex.exe. Now, my ...
2
votes
0answers
131 views

Get a smaller pdf file out of pdflatex [duplicate]

Possible Duplicate: How to make the PDFs produced by pdflatex smaller? I'm using the moderncv package to create my CV. Now I was wondering if there is a way to get a smaller output, because the ...
33
votes
3answers
6k views

pdfcrop generates larger file?

I use pdfcrop to remove margins from a 10MB PDF, 400pages. Margins are properly removed, but the resulting PDF is 51MB large? Any suggestions?
6
votes
2answers
202 views

Will reusing \sbox-ed cmds reduce DVI/PDF size?

I wonder wheither reusing \sbox'es decreases only .tex code or also its final output whether DVI/PDF/... i.e. does TeX expand them while writing DVI or PDF or does the viewer do that? For example ...
1
vote
1answer
295 views

why is GnuPlot .tex to .pdf, large compared with raster images?

Raster scanned articles tend to be quite a bit larger than vector graphics based articles. In practice when I make a plot with gnuplot, the resulting pdf is large compared for what it displays. I look ...
27
votes
1answer
2k views

Why does pdflatex produce bigger output files than latex+dvipdfm?

Consider this sample code: \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1-4] \end{document} When I compile this with latex and then use dvipdfm, the output file is 7893 ...
21
votes
2answers
48k views

What to download, proTeXt or MiKTeX?

What exactly is included in the proTeXt's 1.1GB package and why would you rather download that compared to just downloading the humble 170MB MiKTeX basic install? Also, why is proTeXt's file size so ...
5
votes
0answers
188 views

How to include PDF as graphics and as attachment without using extra file space [duplicate]

Possible Duplicate: Attach displayed image to the PDF without storing it twice Is it at all possible to include a PDF as a graphic in the document and also as an internal attachment to the final ...
2
votes
1answer
528 views

pgfplots and final size of the externalized pdf image

I have the following piece of code: % command: pdflatex --jobname=try-f1 try.tex \documentclass[12pt]{book} \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \pgfrealjobname{try} \begin{document}...
3
votes
1answer
772 views

PDF printer decreases filesize of pdflatex output considerably. Why?

This is probably not exactly a TeX question, but I assume many people concerned with TeX might also have ideas about this issue. If I compile the following "minimum" example with pdflatex on Windows, ...
143
votes
3answers
63k views

How to make the PDFs produced by pdfLaTeX smaller?

I feel that the PDFs produced by pdflatex are too huge. So for example my 50 page book with no illustrations is 500KB. I feel it should be more like 50K or even less. The .tex files together are just ...