As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
37 views

LyX preview of child document in main document not working

This is a LyX specific question. I would like to work with a main document and insert different parts (e.g. chapters) into the main document as child documents. One can do this in LyX using Insert >...
Alwin's user avatar
  • 445
0 votes
0 answers
27 views

Inserting linebreak between subfigures with active preview package

I would like to create subfigures with multiple rows with preview mode active. Positioning subfigures sidy by side works just fine: \documentclass[a4paper,11pt]{article} \usepackage{tikz} \usepackage{...
kilsen's user avatar
  • 335
1 vote
0 answers
50 views

how does photomath implement an instant latex preview? [closed]

how does photomath expert implement an instant latex preview? is there an app/software that does the same? i tried a lot of latex editors and they all need to be manually recompiled and much slower. ...
l3tt3rsnumbers0nly's user avatar
0 votes
0 answers
96 views

Preview package error

I'm running into an error using the preview package. The output below is from SageMath. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{graphicx} \...
Ben Salisbury's user avatar
1 vote
1 answer
52 views

mdframed creates small white lines around the content, how do I get rid of them?

I use mdframed to create a black background in a preview environment. Since I could not figure out how to color the preview border black as well, I set it to 0 and included a black line around the ...
Lando Lingens's user avatar
6 votes
1 answer
265 views

My legacy PSTricks code is not compilable anymore

The following code worked several years ago but it does not now. I lost my conscious and I might be in a generation gap. I attempted to compile with either lualatex or latex->dvips->ps2pdf ...
Second Person Shooter's user avatar
4 votes
1 answer
76 views

Interesting behavior of preview

If you compile this code (note that \begin{document} is commented): % arara: pdflatex \documentclass{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} %\begin{document} \...
CarLaTeX's user avatar
  • 60.5k
2 votes
2 answers
907 views

Skim not opening or updating on build with Sublime Text 4 and LaTeXTools on Mac

I am building a pdf from ST4 with LaTeXTools. The build is fine. ST4's console's shows this after the build: Welcome to thread Thread-11 Running "latexmk -cd -f -pdf -interaction=nonstopmode -...
Guillaume V's user avatar
1 vote
1 answer
188 views

TexShop preview document-surround colour

I would like to change the colour of the TexShop preview window background surrounding a preview document, rather than behind document pages (see note). I would like to change it from the default grey ...
johnbrc's user avatar
  • 585
0 votes
0 answers
141 views

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 ...
Les.61's user avatar
  • 1
1 vote
0 answers
364 views

VSCode - LaTeX preview not working

When I try to preview any LaTeX document I write in VSCode, I get the error message Cannot view file PDF file. File not found C:.... How can I fix this? It would be really convenient for me if I could ...
Advas's user avatar
  • 11
2 votes
2 answers
325 views

How to get a page without white border?

It want a PDF (or PNG) output of a Latex document on one long page, trimmed without the white borders, in minimal runtime. The preview and standalone packages have this built in in some way and I ...
Nobody-Knows-I-am-a-Dog's user avatar
1 vote
0 answers
126 views

after TexShop update to 4.68, Preview window is blank gray: no text, nothing

I am using Mac OS 10.15.7; yesterday upgraded TexShop to 4.68; after the upgrade TexShop Preview window is blank gray, while there are no errors in the console. If I print this window to Mac OS ...
Kkk's user avatar
  • 11
1 vote
1 answer
158 views

Using the Boadilla theme in beamer, there are previews of text that will appear later in the current slide - how to disable?

The question is contained in the title. I am writing a presentation using Boadilla theme in beamer/LaTeX. When I have a slide which uses \onslide<1->{hello} follow by \onslide<2->{second ...
mordecai iwazuki's user avatar
0 votes
1 answer
162 views

pst-pdf and beamer conflict

Follow up to this question reporting conflict between [auto-]pst-pdf and hyperref. This is apparently due to the fact that pst-pdf uses preview internally, and preview is currently incompatible with ...
Hugo Raguet's user avatar
0 votes
0 answers
186 views

Why did the math preview in vscode fail when including physics package?

My code is written as follows: \documentclass[12pt]{article} \renewcommand{\baselinestretch}{1.5} \usepackage{hyperref} \usepackage{amsmath} \usepackage{amssymb} \usepackage{esint} \usepackage{...
Formic_'s user avatar
  • 33
1 vote
0 answers
156 views

TexStudio inline preview problem

I use texstudio as my editor and on one of my computer where I have reinstalled miketex and Texstudio, with the attached preview settings. But I get the following error message when doing inline ...
relinquere's user avatar
1 vote
2 answers
166 views

How to obtain a tight diagram with standaloneframe?

In order to avoid writing the following code, I need to use overlays provided by beamer. Unpleasant Code \documentclass[pstricks]{standalone} \usepackage{pst-node} \begin{document} \begin{...
Second Person Shooter's user avatar
1 vote
0 answers
118 views

A problem with instant preview in Lyx

I have started using XYmatrix. it was recommended to me to enable instant preview. it worked great but now I see that it started to warp my previews. it "shrunk" them. original: preview: ...
Yonatan Marom's user avatar
1 vote
0 answers
158 views

multiline equation preview sublime

The preview works just fine for any single line equation. However, it does not work for multiline equations. Is there any solutions or work around? I am writing math derivation so having the preview ...
Codelearner777's user avatar
4 votes
0 answers
156 views

Proper toolchain for pdfLaTeX and psfrag including hyperref

I am writing a comprehensive scientific thesis. In December 2020, my toolchain stopped working, which combined pdfLaTeX, pstool to apply psfrag, and hyperref. I reported the issue here pdfLaTeX fails ...
Tobias's user avatar
  • 91
0 votes
0 answers
49 views

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, ...
Elo Elena's user avatar
0 votes
0 answers
274 views

How to preview a DVI (rather than a PDF) in TeXstudio

TeXstudio is very slow when compiling and previewing a 400-page book. I was told that previewing a DVI is faster than PDF, so I want to preview a DVI instead. How do I do that in TeXstudio? By ...
Echeban's user avatar
  • 585
2 votes
1 answer
68 views

Redefine commands / Remove left spacing for equations in LaTeX Preview (also in Emacs AUCTeX)

When I run \documentclass{article} \usepackage{amsmath} \usepackage[active, tightpage, displaymath]{preview} \begin{document} \begin{equation*} 1+2 = 3 \end{equation*} \end{document} I get the ...
HBS's user avatar
  • 541
1 vote
0 answers
228 views

LaTeX Sublime Text Equation Preview

I recently installed Sublime Text 3 and am attempting to produce a pdf document with some complex math. However, my equation previewer is not functioning correctly for math environments. When I change ...
Laura's user avatar
  • 11
0 votes
1 answer
168 views

Background color for documents generated by the preview package

My question is very simple: is it possible to use \pagecolor from xcolor (or related packages) to change the background color of a document generated by the preview package? I've tried to add \...
Link-D's user avatar
  • 3
2 votes
1 answer
376 views

Hide the displayed part of a linked page when hovering over the link in ToC

I'm using the hyperref package and when I hover over an entry in the table of contents (which points to a section) I get a glimpse of the beginning of that section. I've searched some options in the ...
Abovegame's user avatar
2 votes
1 answer
170 views

TeXstudio 3.0.0 equations do not preview, even though I have the option enabled [closed]

This is similar to the issue Roland Salz had, but I have already followed the advice in that post, and toggled that setting, and restarted, but it doesn't seem to change anything. It seems like me ...
Romaji's user avatar
  • 31
0 votes
0 answers
39 views

double flash in texshop preview

I am using Texshop 4.44 on a Mac running El Capitan, and I use an external editor. When I preview a .tex file using pdftex, the screen image shows a double flash before settling down and working ...
Marty Isaacs's user avatar
1 vote
1 answer
57 views

auctex preview-latex does not take into account newcommands

I have slightly complex symbols that I do not want to re-type in latex so I define \newcommands that abbreviate them. For example \begin{document} blah blah \newcommand{\ds}[1]{\Delta\{#1\}} \[ \{...
fakedrake's user avatar
  • 123
1 vote
0 answers
285 views

latexmk and xpdf previewing

I'm trying to use continuous updating with a combination of latexmk and xpdf. I set up my config file exactly as outlined in the latexmk documentation $pdf_previewer = "start xpdf -remote %R %O %S"; $...
Christof's user avatar
1 vote
0 answers
98 views

Export and view with lyx

I have control + R for previewing pdf by command "buffer-view". I use Alt+ R to "buffer-export". I would like to export and view by combining thes two commands. I tried short-cuts CTR+R: buffer-view; ...
Vaibhav's user avatar
  • 6,435
0 votes
0 answers
223 views

Change colour of highlighting of preview search results (TeXShop)?

[enter image description here][2][![enter image description here][3]][3]Is it possible to change the highlight colour of search results in the document in the preview window (not in list of search ...
Kim's user avatar
  • 1
2 votes
0 answers
68 views

Remove space above displaymath at start of preview environment

Here is a minimal code example. \documentclass[12pt]{article} \usepackage[active,tightpage]{preview} \begin{preview}%\setlength{\baselineskip}{0pt} \[a=b=c\] \end{preview} \end{document} I get the ...
MB4E's user avatar
  • 1,030
1 vote
1 answer
87 views

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 ...
MB4E's user avatar
  • 1,030
4 votes
1 answer
270 views

TikZ and AUCTeX: Different results

Consider the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thick,fill=yellow!50] (0,0) circle (3); \draw[thick,fill=orange!50] (0,0) ...
Philipp Imhof's user avatar
0 votes
0 answers
407 views

Sublime text Math preview opens console window on every change in math fields

I am using latex in Sublime Text 3. The package Math Preview is certainly smart, but it opens up a console window on top of sublime on every change and this steals focus in about 3s, and the math ...
LaugeRoenberg's user avatar
14 votes
4 answers
52k views

PDF Preview in Visual Studio Code

In this question, the setup of LaTeX in VS Code is explained in one of the answers. I followed the instructions, and am indeed able to compile a LaTeX document in VS Code, with the PDF output as ...
Marie. P.'s user avatar
  • 635
1 vote
1 answer
53 views

Unexpected outputs from standalone class with preview and crop options

I am designing a logo composed of two letters and am using the standalone class. I would expect the newer crop option to give me a "tighter" PDF output than the older preview option, but the reverse ...
chandra's user avatar
  • 2,990
1 vote
2 answers
1k views

Disable preview-latex

Just started using Emacs for editing my .tex documents after a long time away. I am rusty. I installed auctex and setup my environment nicely. Most things are working, but the fly in the ointment is ...
user2751530's user avatar
  • 1,090
0 votes
0 answers
199 views

cooltooltips with Preview on Mac

When I try to use the 'cooltooltips' package for adding notes to my PDFs and I try to view them with Preview (10.1) on Mac it does not work. When I hover over 'This text' nothing happens. Does anyone ...
Jan Kreischer's user avatar
1 vote
1 answer
405 views

AUCTeX fails to generate previews

I am trying to generate previews using AUCTeX on Emacs GUI in my tex buffer but I get a "stop" sign error everywhere. See example below: When I click on the stop sign and select "View Error" I get ...
wissam124's user avatar
3 votes
0 answers
63 views

\pagecolor ignored when preview package used

When I use the standalone package's preview option, pagecolor is ignored. MWE: \documentclass[preview]{standalone} \usepackage{xcolor} \usepackage{lipsum} \pagecolor{red} \begin{document} \color{...
speedstyle's user avatar
0 votes
0 answers
231 views

Texshop preview does not reload

I am using Lyx with Texshop as my preview viewer. I have the following problem: At random times, when I recompile my document using Lyx, all I get in the Texshop window is this: In other words, the ...
underpi's user avatar
1 vote
0 answers
61 views

Set the background colour in preview

I'm using the preview package to generate pages of formulas. What I want is to specify the background colour in all of the pages. It seems like the pagecolor package doesn't interact nicely with ...
Loovjo's user avatar
  • 113
0 votes
0 answers
311 views

preview-latex in separate section file

Original Question 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. ...
Зоран Пантић's user avatar
1 vote
2 answers
268 views

Preview's "tightpage" is too tight

I'm using the preview package to generate tightly boxed maths environments. Unfortunately, it seems to be clipping out the edges (some subscripts are not showing in the final pdf). Is there a way to ...
preferred_anon's user avatar
2 votes
1 answer
111 views

Typesetting single chapters in large book while preserving all cross-references, accurate page numbering, etc

I'm writing a large book (using tufte-book) that will likely be 500 pages. My computer has enough working memory that I can typeset the full text but this book is about art and the digital document ...
David G. Stork's user avatar
1 vote
2 answers
457 views

In org-mode why does org-latex-create-formula-image-program gives extra information?

In my .emacs I have (setq org-latex-create-formula-image-program 'imagemagick) It's working so I get a preview of the formula with c-c c-x c-l but I also get an unwanted information linktoc = all, ...
Raoul HATTERER's user avatar
0 votes
0 answers
33 views

Logic behind Standalone Precompiled graphics

I want to compile my expensive graphics to a PDF such that I can integrate the files in my main document. I am using pgfplots and groupplots for that purpose. So let's say I have two graphics looking ...
Sibylse's user avatar
  • 299

1
2 3 4 5