Questions tagged [preview]

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.

preview is a package that allows the extraction of selected elements from a LaTeX source, like formulas or graphics, into separate pages of a DVI file. A flexible and convenient interface allows it to specify what commands and constructs should be extracted.

218 questions
10
votes
2 answers

preview, problem with showing floats

In preparing an answer for SE, I suddenly stuck with preview package. LaTeXing the following code: \documentclass{article} \usepackage{booktabs} …
Zarko
  • 296,517
4
votes
2 answers

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 spaces when a table is…
4
votes
1 answer

Exporting preview-generated image width and height to a text file

I use the preview package to generate some pictures from the equation environment. I need the width and height of each picture. I guess the preview package does some black magic and, at some point, those values must be known (?). Is it possible to…
cjorssen
  • 10,032
  • 4
  • 36
  • 126
3
votes
1 answer

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, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) …
Lone Learner
  • 3,226
  • 24
  • 44
2
votes
0 answers

Why does my viewer not display anything?

I am looking to put equations into Keynote presentations, and all of the reading and tutorials I have viewed all tell me to do the same thing: Type up an equation, and drag and drop. But, there is one main issue: Nothing I input will typeset! I…
2
votes
1 answer

Preview package cutting off top of content

When the preview package is loaded, the tikzpicture/figure environment that I am trying to isolate becomes set too high, resulting in the top of the image being cut off. (This is similar behavior to the "Side Question" part of Code to ignore all of…
cslstr
  • 6,545
1
vote
1 answer

Environment preview and \hfill command

Here is a minimal code example. \documentclass[12pt]{article} \usepackage[active,tightpage]{preview} \begin{document} \begin{preview} $a=b$ \[ b=c \] \hfill $c=d$ \end{preview} \end{document} This is producing the following result. Without…
MB4E
  • 1,084
1
vote
0 answers

preview: why the table layout in preview is different than without it?

I try to give a variant to David Carslisle answer on question. To better see obtained results I use preview package. I was surprised, that I obtain different result in comparison when I not use it! My MWE…
Zarko
  • 296,517
0
votes
0 answers

TeXWork not typesetting

I am new to TeXworks. I have a tex file and when I open it it shows fine but when I click on the Green arrow nothing happens and the Window > Go To Preview is greyed out. What am I doing wrong? As I am new do not know what info you need to help…
Les.61
  • 1
  • 1
0
votes
0 answers

problem with online preview latex

Hello, everything was fine with my projects on Latex online, until today. The only difference I made is to add New command, after that I receive the following preview for all my previous projects, which I know were ok before. Can someone help?
0
votes
1 answer

preview-latex in separate section file

I am using Fedora30 and Emacs26.2 in i3wm, TeX 3.14159265 (TeX Live 2018), and AucTex v12.1. I am working on large project (book), and will create quite a few .tex files. Question. Is it possible to use preview-latex outside of main.tex file in…