The main purpose of the {preview} package is the extraction of selected elements from a LaTeX source, like formulas or graphics, into separate pages of a DVI file.

learn more… | top users | synonyms

6
votes
1answer
540 views

Customizing preview-latex command to use LaTeX when in TeX-Pdf mode

In short: Is there a way to tell preview-latex to NOT use pdflatex instead of just toggling TeX-Pdf mode every time I want to re-generate previews? I have a somewhat odd setup. AucTeX + GNU Emacs 24 ...
4
votes
2answers
304 views

AUCTeX: how to jump to PDF (with synctex) without recompile when inline preview has been created?

I'm using Aquamacs 2.4 on MacOS X 10.6.8 with pdflatex (TeXLive 2011). My problem: I can create inline previews of formulas, figures etc. in the source code with AUCTeX which is very helpful - e. ...
3
votes
2answers
226 views

Add -shell-escape option to the LaTeX invocation of preview-latex in AUCTeX

I need preview-latex to use the -shell-escape option when it invokes PDFLaTeX, which is required by the minted package for syntax highlighting, as it invokes python. How can I do that?
5
votes
1answer
1k views

AUCTeX, preview-latex, and Ghostscript (Emacs)

I'll keep this short and sweet; Emacs can't find gs, which has been installed via brew and works fine. Error PDF2DSC sentinel: Searching for program: No such file or directory, gs MWE ...
2
votes
1answer
392 views

Crop a float containing subfigures horizontally with Preview or Standalone package

I have a float containing subfigures. I want to "export" it as a single item so that I can include it elsewhere as one object. I tried to use the Preview package with [active,floats,tightpage], but it ...
3
votes
1answer
179 views

Crop to floats with Preview but skip caption?

I would like my 'figure' environments to be exported tightly cropped. If I use this: \usepackage[floats,active,tightpage]{preview} the caption is included. If I use this (of course, with real ...
1
vote
1answer
175 views

Preview in auctex on debian stable works in dvi mode, but fails on pdf mode

My auctex renders preview images on my debian stable system (6.0.6) if I set it to dvi mode, but it fails if I set auctex to pdf mode. I assume there is either a mistake in my emacs configuration ...
1
vote
1answer
399 views

How can I get fancy-preview to work?

I would like to add fancy-preview to a document that I have created. I thought it would be best to get to learn how to use it on a simple example, so I found this TeX.SE question. I then tried to work ...
19
votes
3answers
912 views

How to make a smarter cropping with standalone or preview packages?

The arrow tail at the bottom left corner is not properly cropped. \documentclass[tikz,border=0pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3,line width=3pt] ...
2
votes
2answers
190 views

How can I make the size of the PDF equal to the of the chessboard?

I have this piece of LaTeX: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} % Source: http://tex.stackexchange.com/a/15278/5645 ...
4
votes
3answers
169 views

How to trim the left and right white spaces when a table is previewed?

The following table has unwanted right and left white spaces. But you cannot see them because the figure has been converted to PNG with alpha channel enabled. How to trim the left and right white ...
5
votes
1answer
400 views

How to make a new tex command in org-mode-latex?

In a general tex-file, one can easily define a new command, for my case, let me take this as an example: To put this code in header \newcommand{\dd}{\,\mathrm{d}} I can use the shorter command to ...
7
votes
1answer
169 views

Add additional info to a preview

The following example works in so far as it shows the image in the source latex file and disregards everything else. Is there some way of performing the same task but also list information about each ...
3
votes
1answer
670 views

preview and standalone crop too much of tikz picture

When I try to fit the page size to my tikz image, too much is cropped. No matter whether I use \documentclass{standalone}, \documentclass[preview=true]{standalone} or ...
4
votes
2answers
443 views

Is there a “smarter” way to know the size of \psbarcode?

The size of 2D barcode depends on the first argument of \psbarcode. I usually do trial and error to find the size of \pspicture such that I get a tight output. \documentclass{article} ...
0
votes
1answer
222 views

preview-latex generates .png previews but does not place them in the buffer

When generating previews, I get a small, empty white box with a border around it. I looked inside the .prv folder and the .png files are indeed being created. emacs has support for .png (e.g. ...
8
votes
2answers
559 views

Build cropped PDF image from LaTeX

I have created an image with pgfplots in a separate file and want to add the PDF that is built from that as an image in my report. The problem is that the image PDF created is a complete A4 format. ...
0
votes
1answer
402 views

Auctex preview: How to suppress opening a new window?

I have emacs+gtk installed on Ubuntu11. I'm just new to Auctex but very interested in it. When completed my .tex document, command C-c,C-c compiles successfully. But repeating C-c,C-c yields option ...
0
votes
1answer
440 views

Preview-latex background color

I'm using AUCTeX + preview-latex to preview math formulas. In addition, I'm using the zenburn color scheme, which has a dark background. Unfortunately, the rendered math previews have a white ...
0
votes
1answer
3k views

AUCTeX XeLaTeX preview fails: fontspec cannot-use-pdftex error

I am struggling setting up AUCTeX preview in a way that I can use it with XeLaTeX documents. When I try to generate the previews I get the following error cannot-use-pdftex generated by the ...
2
votes
0answers
126 views

make flashmode work [closed]

I am not sure whether this is an appropriate question for tex.SE. Anyway: I am trying to use Flashmode, which I discovered reading the answers to this question. Unfortunately I am not able to make it ...
3
votes
2answers
372 views

Sluggish cursor movement in emacs LaTeX-mode

I'm editing a large (around 50k words) tex file in Emacs using AUCTeX and cursor movement is quite sluggish, especially when jumping by word. This isn't a problem in any other mode. Edit: I did some ...
8
votes
5answers
6k views

Is there a TeX/LaTeX editor that can show results in real-time? [duplicate]

Possible Duplicate: What's the fastest way to preview changes as I learn TeX? This is my first post to TeX. I have taken it upon myself to learn how to type math formulations via LaTeX, ...
3
votes
4answers
2k views

Problem getting preview to work in Auctex on Windows 7

I'm trying to get preview of math formulas to work in AUCTeX. When running M-x preview-buffer on simple test document I get the following error: Preview-DviPS finished at Wed Dec 28 00:53:14 DviPS ...
2
votes
0answers
217 views

How can I see what am I writing in a TeX editor? [duplicate]

Possible Duplicate: Is there any way to get real-time compilation for LaTeX? What's the fastest way to preview changes as I learn TeX? I am new member on math.stackexchange.com and I ...
4
votes
2answers
7k views

LaTeX editor with live preview for Windows and RTL language support?

Looking for a LaTeX editor for Windows with the following features: Live preview. (Inherited live preview, not something achievable if you do some tricks.) RTL language support. (Hebrew for example) ...
10
votes
3answers
2k views

'Standalone' TikZ pictures

I want to create a TikZ picture in an external PDF file, which then can be included in my main document via \includegraphics. However, compiling a document with a TikZ picture in it produces a whole ...
3
votes
1answer
178 views

Figure preview wrapper

How do I best preview my figures? I have one file with this: \begin{figure} \begin{tikzpicture} %if tikz ... \end{tikzpicture} \includegraphics{...} %if eps \caption{...} \label{fig:..} ...
3
votes
1answer
1k views

Emacs + Auctex, Latex environment

I'm writing a document in LaTeX. The document is divided in .tex documents and compiled using a Makefile. My question is, could I see the dvi/PDF for the section of the document that I'm already ...
4
votes
3answers
1k views

preview-latex does not function

Preview-latex installs, but doesn't actually preview. When I generate the preview from the source, all I see is... the source. For example, the math equations are highlighted, but not rendered. Some ...
0
votes
1answer
815 views

tikzpicture blank in preview

Using preview-latex to preview the tikzpicture environment shows either a blank rectangle in pdf mode or simply produces no preview file in ps mode. I am using aquamacs 23.3a, using auctex and gs ...
3
votes
3answers
2k views

preview-latex in emacs auctex: empty boxes?

I originally posted this question directly on the Auctex mailing list but did not receive a response. I'll hopefully get more luck on the TeX Exchange. I was recently reminded by this post regarding ...
2
votes
1answer
3k views

Can Texmaker, as I'm typing, automatically create a preview of the document's PDF output?

Currently, I have to use the F1 key to get PDF output. I want to set up Texmaker so that it automatically shows me an in-IDE preview of the PDF file that my .tex file compiles to...as I type. How ...
1
vote
2answers
184 views

Package “preview” + parskip?

Using the "preview"-package, I want to put several paragraphs into one preview-environment. This works; however, any parskip-setting seems to be ignored. \documentclass{minimal} ...
0
votes
2answers
500 views

AUCTeX region preview in Emacs

I've installed AUCTeX and passed the circ.tex preview, however, when I'm trying to add more elements (enumerate, tabular) to preview with \PreviewEnvironment{..} in the preamble, AUCTeX ignores these ...
2
votes
2answers
185 views

Is it possibile to report the baseline of a dvipng converted image without using preview-latex?

I'm compiling .tex with pdftex and to align some PNG images created with dvipng (I love it's speed), I need to use the --depth value from this utility. But as I can read, correct values are output ...
3
votes
1answer
527 views

What kind of “magic” does preview package do to produce a tight paper size?

Actually the following method, that looks like reinventing the wheel, has been discarded once I have known the existence of preview package. % WithoutPreview.tex \documentclass{article} ...
2
votes
2answers
679 views

How to use preview and animate packages together?

I'm used to prepare tikz graphics with preview or standalone packages to crop them. Now I've started to experiment with animations and wanted to do the same. My first test was with Alexander Grahn's ...
2
votes
2answers
249 views

Ghostscript questions [related: preview package to print standalone PDFs]

Using the preview package to generate individual PDFs of images within your document has been covered, for example, in this thread. However, I am trying to understand how you can use Ghostscript to ...
8
votes
7answers
2k views

Live tex compilation

Tools like firebug allow a developer to immediately view the results of changes they make to the HTML of a webpage. Has anyone taken a similar strategy with LaTeX, so that an entire compile cycle is ...
2
votes
4answers
1k views

vim, PDF -XChange, pdflatex, TeX Live 2010, windows xp, (pdfsync)

Hope I didn't forget any. These are the packages I want to use on my computer for typesetting pdf files. Up to date I'm using vim (without any plugin but integrated syntax highlighting for .tex files) ...
7
votes
2answers
1k views

Transparency in tikz, preview package and xelatex

Is it possible to have transparency in a tikz picture while using the preview package and compiling with xelatex? The following mwe compiles without warnings/errors under both xelatex and pdflatex ...
14
votes
3answers
9k views

How to preview LaTeX in Emacs?

I want a similar layout as in SO, I use it currently as my editor but I would like to find such tool under my fingers. I am more vi-prone so having hard time to get preview-latex working with emacs. I ...
4
votes
1answer
1k views

Does tikz 2.1 no longer work with the preview package?

I used to be able to create png images of diagrams made with tikz code by using the preview package and printing the dvi output from dvips to a png file using ghostscript. The latest version of tikz ...
5
votes
3answers
1k views

Crop equations with preview package

Is it possible to avoid left space from equations previewed with preview package? \documentclass{minimal} \usepackage{amsmath} \usepackage[active,tightpage,displaymath]{preview} ...