[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
preview: How to use Preview-PDF2DSC as default?
From: |
Yǔchēn Guō 郭宇琛 |
Subject: |
preview: How to use Preview-PDF2DSC as default? |
Date: |
Thu, 16 Nov 2023 10:53:44 +0000 |
Hello. I'm using LuaLaTeX with preview-latex. The following occurs
when I attempt to preview the document:
`preview-document' first run, attempts to use dvips, which LuaLaTeX does
not support, since it does not generate any DVI files.
begin ==================================================
Output written on testmath.pdf (560 pages, 391604 bytes).
SyncTeX written on testmath.synctex.gz.
Transcript written on testmath.log.
TeX Output exited as expected with code 1 at Thu Nov 16 11:40:06
Running `Preview-DviPS' with ``dvips -Pwww testmath.dvi -o
testmath.prv/tmpvwWqxn/preview.ps''
Parser: End of Preview snippet 1 unexpected
This is dvips(k) 2022.1 (TeX Live 2022) Copyright 2022 Radical Eye Software
(www.radicaleye.com)
/run/current-system/sw/bin/dvips: DVI file can't be opened: testmath.dvi: No
such file or directory
Preview-DviPS exited abnormally with code 1 at Thu Nov 16 11:40:06
DviPS sentinel: Opening input file: No such file or directory,
/home/yc/Downloads/tub/testmath.prv/tmpvwWqxn/preview.ps
end ==================================================
`preview-document' second run and all subsequent runs: preview-latex
switches to Preview-PDF2DSC and successfully generates all preview images.
begin ==================================================
Output written on testmath.pdf (560 pages, 391604 bytes).
SyncTeX written on testmath.synctex.gz.
Transcript written on testmath.log.
TeX Output exited as expected with code 1 at Thu Nov 16 11:42:30
Running `Preview-PDF2DSC' with ``pdf2dsc testmath.pdf
testmath.prv/tmp89R8tO/preview.dsc''
Preview-PDF2DSC finished at Thu Nov 16 11:42:31
Running `Preview-Ghostscript' with ``/run/current-system/sw/bin/rungs
-sOutputFile\=testmath.prv/tmp89R8tO/pr1-\%d.png -q -dDELAYSAFER -dNOPAUSE
-DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4
-sDEVICE\=png16m -r368.06x378.372''
Preview-Ghostscript finished at Thu Nov 16 11:42:39
end ==================================================
How can I tell preview-latex to use PDF2DSC by default?
Minimum Example
begin ==================================================
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
\[a + b = c\]
\end{document}
end ===================================================
Full log can be found at
https://codeberg.org/m0p/ublock-origin-mirror/src/branch/main/preview-latex-luatex
Regards,
Yuchen
- preview: How to use Preview-PDF2DSC as default?,
Yǔchēn Guō 郭宇琛 <=