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

2
votes
2answers
61 views

How to make table floats work with preview/standalone environment?

Couldn't make a table float work inside the preview environment: \documentclass[fontsize=16pt]{scrartcl} \usepackage[active,tightpage]{preview} \setlength{\PreviewBorder}{25pt} \begin{document} ...
0
votes
0answers
11 views

Preview package for combining eps figures

I was planning to use preview package for combining my subfigures (made by caption and subcaption packages) to one figure but I can't get even the basic example working. Here is my try: ...
1
vote
1answer
26 views

Set colour of equations when using preview package

I use the preview package to export a pdf containing only my equations by putting the following in the preamble \usepackage[active,tightpage,displaymath,textmath]{preview} ...
0
votes
0answers
35 views

strange preview latex problem with tikz and maketitle

The following example does not procude the expected preview: \documentclass{article} \usepackage{tikz} \begin{document} \title{a} \maketitle $a$ \end{document} Instead of the inline math a ...
8
votes
1answer
49 views

“Extra }, or forgotten \endgroup” when combining “fixltx2e” and “preview” packages

In a two-column document with figure* floats, where the preview package is set up to preview floats, compilation seems to fail if the fixltx2e package is loaded: \documentclass[twocolumn]{article} ...
2
votes
0answers
57 views

preview generates error

when attempting to view a latex document in texniccenter I get MiKTeX Problem Report Message: Some PostScript specials could not be rendered. Data: Error: /undefined in H.S Operand stack: ...
0
votes
1answer
75 views

AUCTeX and TikZ does not work in emacs for me : HELP T

This is no duplicate. I am unsure how things work here. But I wasn't able to save my last username as it was a temporary username and cannot access my previous post which was marked as duplicate. ...
1
vote
0answers
50 views

AUCTeX and TikZ does not work in emacs for me : plz help? [duplicate]

I've looked around for resolutions however, could not find any. Indeed the one response that is pointed out, I already tried. I did the following sudo gedit .emacs and embedded the code provided ...
1
vote
0answers
82 views

Aquamacs opening TexShop viewer instead of Skim

When I click View in Aquamacs after clicking Latex, it opens TexShop and a TexShop viewer. I want it to open Skim. I have set preferences to Skim as per other posts on this site. This behavior happens ...
3
votes
0answers
46 views

PreviewMacro for todonotes

I like auctex with Preview and would like my todonote \todo's shown in my emacs browser. However, this will either not show at all or consist of the \tikzpicture building blocks, namely each line ...
2
votes
0answers
91 views

Windows TeX editor with live preview

I'm looking for a TeX editor for Windows that would offer a live preview of fully-rendered PDFs, like what Latexian does on Mac OS - preferably freeware, but if such an editor is payware, I'm ...
3
votes
0answers
28 views

opening pdf at the cursor on lyx

While creating a preview on lyx , I expect the pdf to show me the position of the text at which cursor is positioned. The default behaviour seem to open pdf at first page. How can I change this ...
1
vote
1answer
106 views

Journal of Statistical Software class breaks preview in AUCTeX

I'm using AUCTeX 11.86-11 on Debian stable. The jss.sty style file contained in the JSS style file zip archive breaks AUCTeX's preview for me even with a simple file. NOTE: the jsslogo.jpg file is ...
2
votes
0answers
67 views

Emacs' Preview LaTeX: Using different background colors depending on environment

In Emacs' Preview LaTeX, I would like included graphics (e.g., what's inside \includegraphics) to look different than all other previewed environments. Otherwise, graphics that have black lines ...
3
votes
0answers
46 views

Is it possible to make AUCTeX preview of equations work with beamer?

When I generate preview images (using C-c C-p C-p) for the following document, the images are correctly generated but they are placed in wrong places in the buffer. Is it just me or MS Windows users? ...
2
votes
1answer
88 views

tikz library calc and auctex preview in emacs fails

The emacs-variable preview-default-preamble contains the statement \PreviewEnvironment{tikzpicture} so tikz pictures are processed by preview, which usually works fine. But preview in emacs fails if ...
0
votes
1answer
133 views

Instant Preview of Latex to PDF in silent mode with fast compiling

Please i am working on a project should provide fast compiling of Latex files in silent mode so the user should not see any process and just preview the final pdf file produced and i need it faster ...
2
votes
1answer
144 views

Using \usepackage[active,tightpage]{preview} does not generate any page

What is wrong with this code? \documentclass{article} \usepackage[active,tightpage]{preview} \begin{document} \(1 + 1 = 2\) \end{document} I get this error. $ pdflatex bar.tex This is pdfTeX, ...
9
votes
2answers
136 views

I'm using the standalone package. How can I get regular paragraph breaks?

I'm using the standalone class to render images for individual math problems that will be displayed in an app, so the cropping functionality is essential. However, the package seems to destroy ...
3
votes
0answers
70 views

Equations as pictures in text

Is there a way to compile a document with pdflatex and render all displaymath into graphics which are then included in the document instead of the equation code itself? Analogous to what you can do ...
1
vote
1answer
94 views

Pop-ups for a preview of raster images (.jpg,.tiff etc.) as they are while writing LaTeX code

I usually have a lot of figures to comment in my latex document sometimes for me would be helpful have a look to the figures as they are (not a preview of the final formatted results) just a very fast ...
3
votes
2answers
126 views

Turn off equation numbers when using 'preview' package

I am trying to export all of the equations from my document. I have added \usepackage[active,displaymath,tightpage]{preview} then compiled, and then from a command line run: pdfcrop output.pdf ...
1
vote
1answer
81 views

Preview problems in AUCTeX when using certain document classes

I just changed document class to lipics (class files here) which is used for various conference proceedings, i.e. \documentclass[a4paper,UKenglish]{lipics} I now have problems rendering previews in ...
0
votes
0answers
87 views

Control Auctex Preview colors

In the Auctex Preview Appearance section in customize, it is possible to set "Preview Reference Face". This is the only place I can find where the colour of the small .png files created by Preview ...
3
votes
1answer
71 views

How to get a tight output when using pst-tree package and standalone class?

\documentclass[preview,border=3pt,varwidth]{standalone} \usepackage{pst-tree} \psset{levelsep=2,treesep=-2,angleA=90,angleB=-90,arm=12pt} \def\psedge#1#2{\ncangle{#2}{#1}} \begin{document} ...
4
votes
1answer
82 views

Emacs, preview-latex, sseq

I like using preview-latex in Emacs. I have been working a lot with spectral sequences lately and so I would like to get the figures I draw in sseq to show up in preview-latex. So far no luck. Does ...
6
votes
1answer
109 views

How to remove the white space on the top of the following table?

How to remove the white space on the top of the following table? \documentclass[preview,border=0pt,varwidth]{standalone} \usepackage[table]{xcolor} \usepackage{array} \usepackage{longtable} ...
3
votes
2answers
145 views

Difference with standalone and preview? [duplicate]

I have a table, but for cleanliness (I'll use the figure in a paper and in talks), I'd like to compile to a single PDF and include it with includegraphics instead of having the table rendered within ...
4
votes
1answer
164 views

fancy-preview with other \ref-like commands (such as \autoref and \cref)

I finally got fancy-preview working, and I found the place (around line 97) in the script to add to the list of environments which it catches (to add propositions and so on). But what I can't find ...
4
votes
1answer
401 views

Preview TikZ figure in AUCTeX?

I am using AUCTeX on Emacs. Recently I began to draw pics using TikZ, but the problem is AUCTeX doesn't generate preview of this environment. (However, it does generate preview for the general figure ...
6
votes
1answer
391 views

AUCTeX preview font size too small

I have Emacs 24 and AUCTex on a Windows 7 machine, however the preview font size is just way too small. Is there a way to make them bigger?
1
vote
1answer
180 views

Aquamacs Preview doesn't work

I've been using aquamacs 2.4 on my osx 10.7.5. After it crashed with my font change operation, the preview menu bar disappeared and doen't appear again after rerunning the program. Although I ...
2
votes
1answer
64 views

How to prevent preview from discarding my PostScript constants defined in the preamble?

Considerations: I have to use beamer document class to create a step-by-step tutorial. I have to use preview package to trim everything outside pspicture. Using standalone document class is not ...
6
votes
2answers
2k views

Is it possible to type LaTeX code and see its real time preview in LyX?

I'm new to LyX. I have just given it a try and written my first article. I discovered a panel from Menu > View > View Source. It shows the source code of my article. But as far as I see, I am ...
2
votes
3answers
149 views

Why do I have to put fillcolor setting inside preview environment?

It seems to me this problem related to PSTricks so I have to modify the previous question. \psset{fillstyle=solid,linecolor=red} that I define globally outside the preview environment can affect the ...
2
votes
2answers
335 views

AUCTeX preview-latex previews are ugly (too narrow)

Is there a way to fix Emacs AUCTeX's preview-latex to make the previews look less ugly? Specifically, they are squashed vertically to a height of exactly one line of text. I have screenshots to show ...
3
votes
1answer
103 views

How to preserve the indentation when using standalone or preview?

The following output has no correct paragraph indentation after incorporating standalone documentclass or preview package. \documentclass[border=12pt,preview]{standalone} \parindent=12pt% does not ...
6
votes
1answer
121 views

Is there an option to trim the remaining whitespace to the right?

\documentclass{article} \usepackage[active,tightpage]{preview} \PreviewBorder=12pt \begin{document} \begin{preview} $ \frac{1}{3}=0.333\ldots \Rightarrow 1=3\times\frac{1}{3}=3\times ...
6
votes
1answer
495 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
275 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
204 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
301 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
155 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
165 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
357 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
795 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
181 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
164 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
323 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 ...