Hello,
I am writing to you because I am having an issue with AUCTex. I have been using it for a while now, but recently it stopped working. I will add next my Latex init section and after that the error obtained when running C-c C-a.
Init section
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'text-mode-hook 'auto-fill-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
(add-hook 'LaTeX-mode-hook 'company-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
;;(add-hook 'LaTeX-mode-hook 'prettify-symbols-mode) ; Para que salgan los simbolos en lugar de codigos
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq-default ispell-dictionary "english")
(setq TeX-parse-self t)
(setq TeX-auto-save t)
(setq-default TeX-master nil)
(setq TeX-auto-local ".auto")
;;(setq-default TeX-parse-all-errors t)
(setq-default TeX-display-help t)
(setq reftex-label-alist '(AMSTeX)) ;; Para que ponga \eqref
(setq reftex-plug-into-AUCTeX t)
;;(setq LaTeX-biblatex-use-Biber t)
(setq bibtex-dialect 'biblatex)
;;(add-hook 'LaTeX-mode-hook 'reftex-mode)
(setq LaTeX-section-hook
'(LaTeX-section-heading
LaTeX-section-title
LaTeX-section-toc
LaTeX-section-section
LaTeX-section-label))
;; para AUCTex
(use-package auctex
:defer t
:ensure t
)
;; Don't forget to configure
;; Okular to use emacs in
;; "Configuration/Configure Okular/Editor"
;; => Editor => Emacsclient. (you should see
;; emacsclient -a emacs --no-wait +%l %(format "message" format-args)
;; in the field "Command".
;; Enable synctex correlation. From Okular just press
;; Shift + Left click to go to the good line.
(if (eq system-type 'gnu/linux)
(setq TeX-source-correlate-mode t
TeX-source-correlate-start-server t)
)
;; set Okular as the default PDF viewer.
(if (eq system-type 'gnu/linux)
(eval-after-load "tex"
'(setcar (cdr (assoc 'output-pdf TeX-view-program-selection)) "Okular"))
)
(use-package company-auctex
:ensure t)
(use-package flycheck
:ensure t
:init
(global-flycheck-mode t))
(use-package ebib
:ensure t
:config
(global-set-key "\C-ce" 'ebib)
(setq ebib-bib-search-dirs (concat home "/config/latex_bib_databases/"))
(setq ebib-preload-bib-files (file-expand-wildcards (concat home "/config/latex_bib_databases/*.bib")))
(setq ebib-bibtex-dialect 'biblatex)
;;(define-key LaTeX-mode-map "\C-cb" 'ebib-insert-citation)
(define-key org-mode-map "\C-cb" 'ebib-insert-citation)
(setq ebib-citation-insert-multiple t)
;; the following defines the commands and options availables for the use of ebib-insert-citation, for more information you can see [[ebib:kremers2012][Kremers, Joost (2012)]] or [[ebib:kremers][Kremers, Joost (XXXX)]]
(add-to-list 'ebib-citation-commands '(org-mode
(("parencite" "\\parencite%<[%A]%>[%A]{%K}")
("ebib" "[[ebib:%K][%D]]")
("textcite" "\\textcite%<[%A]%>[%A]{%K}")
("cite" "\\cite%<[%A]%>[%A]{%K}")
("parencites" "\\parencites%(%<[%A]%>[%A]{%K}%)")
("textcites" "\\textcites%(%<[%A]%>[%A]{%K}%)")
("cites" "\\cites%(%<[%A]%>[%A]{%K}%)")))
)
)
Output when trying to compile the simplest document, just a Hello world!
Running `LaTeX' on `' with ``pdflatex -file-line-error --synctex=1 -interaction=nonstopmode .tex''
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>)
! Emergency stop.
<*> .tex
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on .log.
TeX Output exited abnormally with code 1 at Sat Aug 1 15:03:43
So please, It would be great if you can check that and tell me what is wrong. I thank you in advance,
Yaidel Toledo.