User Tools

Site Tools


latex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
latex [2010/12/26 19:34] – created tkbletsclatex [2011/03/19 17:42] (current) – [Figures as EPS or PDF] tkbletsc
Line 7: Line 7:
 (The state of science publishing blows, and so does latex.) (The state of science publishing blows, and so does latex.)
  
 +Anyway, here are some notes for this crap.
 ===== Figures as EPS or PDF ===== ===== Figures as EPS or PDF =====
-If you want to use an actually good tools (e.g. Visio, Excel) instead of [[http://www.gnuplot.info/|anemic command-line crap]] to produce charts and figures, you'll need to convert them to the format your latex can handle (there is just one).+If you want to use actually good tools (e.g. Visio, Excel) instead of [[http://www.gnuplot.info/|anemic command-line crap]] to produce charts and figures, you'll need to convert them to the format your latex can handle (there is just one).
  
-If you're using plain latexit has to be eps.  To +If you're using pdflatexthe figure has to be a PDF.  On Windows: 
 +  - Install CutePDF, a free PDF writer 
 +  - Print your figure to a PDF 
 +  - Use the ''pdfcrop'' tool (part of the ''texlive-extra-utils'' package on Ubuntu) to crop it from a full page to just what you drew. 
 +  - Include the cropped PDF file in your document
  
 +If you're using plain latex, it has to be EPS.  To get one on Windows:
 +  - Add a printer with a postscript driver with output set to FILE:
 +  - Print your figure to a postscript file
 +  - Use this perl script to add a bounding box, effectively cropping it from a full page to just what you drew. {{:tightboundingbox.pl.txt|TightBoundingBox.pl}}
 +  - Include the trimmed EPS file in your document
  
 +If you have an EPS and need a PDF, use ''epstopdf'' (part of ''texlive-font-utils'' on Ubuntu).  If the reverse is true, you could try to concoct something out of ''pdf2ps'', ''ps2eps'', and maybe more.
 ===== pdflatex paper size ===== ===== pdflatex paper size =====
  
  
-Anyway, if you're using pdflatex and the paper size is wrong, even though it worked fine with plain latex, put this below your ''\documentclass'':+If you're using pdflatex and the paper size is wrong, even though it worked fine with plain latex, put this below your ''\documentclass'':
   \setlength{\pdfpagewidth}{8.5in}   \setlength{\pdfpagewidth}{8.5in}
   \setlength{\pdfpageheight}{11in}   \setlength{\pdfpageheight}{11in}
   \usepackage{graphicx}   \usepackage{graphicx}
-Why?  As the [[http://hughanchor.blogspot.com/2006/01/pdflatex-and-letter-paper.html|guy]] found this said, "I have no idea why" GREAT JOB, LATEX!+Why?  As the [[http://hughanchor.blogspot.com/2006/01/pdflatex-and-letter-paper.html|post learned this from]] said, "I have no idea why" GREAT JOB, LATEX!
  
  
latex.1293420877.txt.gz · Last modified: 2010/12/26 19:34 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki