AUCTeXdisabling latex-preview-pane and -nw option

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
Post Reply
davidebond
Posts: 1
Joined: Fri Aug 20, 2021 10:39 am

disabling latex-preview-pane and -nw option

Post by davidebond »

Hi. I have created a file .emacs in order to use latex-preview-pane when I open a file.tex. How can I disable this feature, starting emacs with the -nw option? If I launch emacs -nw file.tex in a terminal (in Windows 10 pro), the buffer is splitted in two windows, but the terminal is not able to read pdf file. I would in this case that the file will be open with an external viewer (Edge), only once the file is compiled.

Can you give me some suggestion?

After the # signs I paste my .emacs file.

Thanks and best,

davide

Code: Select all

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-enabled-themes (quote (tango-dark)))
 '(custom-safe-themes
   (quote
    ("dfe9d067ad3dd3bef0fc86827863c77c95b854dfac7fefb4100f4339a66a0596" default)))
 '(doc-view-ghostscript-program "C:\\Program Files\\gs\\gs9.53.3\\bin\\gswin64c.exe")
 '(package-selected-packages (quote (latex-preview-pane pdf-tools auctex))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired.  See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)

(add-to-list 'package-archives
             '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(setq doc-view-ghostscript-program "C:\\Program Files\\gs\\gs9.53.3\\bin\\gswin64c.exe")

;;(latex-preview-pane-enable)

;;(setq TeX-PDF-mode t)

(add-hook 'LaTeX-mode-hook 'latex-preview-pane-mode)


;;NB: bisogna installare ghostscript per windows, e da emacs pdftools e latex-preview-pane

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
Post Reply