Closed ashton314 closed 11 months ago
I don't really use citar with latex-mode; updating my Emacs build to test this.
Any chance this earlier issue sheds any light?
https://github.com/emacs-citar/citar/issues/370
I doubt it, since it seems you are installing AucTeX ...
So I can reproduce it, but have no idea what's going on. The backtrace, IUC, shows that AucTeX is trying load that file; not citar. We rely on AucTeX to parse the citations and such.
Any ideas @aikrahguzar?
This, from straight, may have some hints?
https://github.com/radian-software/straight.el/issues/240
EDIT: seems you ran into this issue before with Elpaca?
https://github.com/progfolio/elpaca/issues/14
But it's been awhile, so the solution prog provides doesn't work.
auctex is such a headache—I forget why I had it installed in the first place. I think I wanted some nice capf functionality, but it's just not worth it. (Wasn't good with auctex to begin with.)
Something funny happened the first time I tried using citar without auctex, so I installed it again. But after removing it from that example file I sent, citar worked like a charm.
Ugh. Auctex, why can't you just be normal?!
Oh! New problem! Sorry @bdarcus .
Without Auctex, the popup shows as normal. However, when I select a citation, I get an error that says "Please install AUTeX".
Debugger entered--Lisp error: (error "Please install AUCTeX")
error("Please install AUCTeX")
citar-latex--macro-bounds()
citar-latex-insert-citation(("culpepperFortifyingMacros2012") nil nil)
citar--major-mode-function(insert-citation ignore ("culpepperFortifyingMacros2012") nil)
citar-insert-citation(("culpepperFortifyingMacros2012") nil)
funcall-interactively(citar-insert-citation ("culpepperFortifyingMacros2012") nil)
command-execute(citar-insert-citation)
Yeah, so you'll have to figure out how to install it with elpaca.
Maybe ask a follow-up to that issue?
Sorry—I missed a message in this thread. I bet I can figure it out now. I'll let you know if it goes sideways. Thank you so much for your help and the speedy response!
Try this:
(use-package latex
:elpaca (auctex
:files ("*.el" "*.info" "dir"
"doc" "etc" "images" "latex" "style")
:pre-build
(("./autogen.sh")
("./configure" "--with-texmf-dir=$(dirname $(kpsexpand '$TEXMFHOME'))")
("make")
("make" "install")))
:demand)
Description
When I try to invoke
citar-insert-citation
from a LaTeX file, I get an error sayingCannot open load file: No such file or directory, tex-site
. However, the command works just fine if I'm in an org-mode buffer.Debugger
``` Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "tex-site") require(tex-site) load-with-code-conversion("/Users/ashton/Projects/emacs-debugging/elpaca/buil..." "/Users/ashton/Projects/emacs-debugging/elpaca/buil..." t t) require(tex nil t) byte-code("\300\301!\210\300\302\303\304#\210\300\305!\210\300\306!\210\307\310\311\312\313DD\314\315\316\317\320&\7\210\307\321\311\312\322DD\323\315\301\317\324\325\326&\11\210..." [require citar tex nil t reftex-parse reftex-cite custom-declare-variable citar-latex-cite-commands funcall function #f(compiled-function () #*Backtrace*
bufferReproducing
Here's an example that should work with Emacs 29.1-rc1 (haven't had time to upgrade from the rc yet) with the
--init-directory
flag. You will need to update the path incitar-bibliography
.early-init.el
init.el
Load that up, then open a
.tex
file, then try to runcitar-insert-citation
.Expected behavior
Just insert the darn citation like it used to! :)
Emacs version
GNU Emacs 29.1.50 (build 1, aarch64-apple-darwin22.6.0, NS appkit-2299.70 Version 13.5 (Build 22G74)) of 2023-07-31