-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with inserting citation in LaTeX file: "No such file or directory tex-site" #798
Comments
I don't really use citar with latex-mode; updating my Emacs build to test this. Any chance this earlier issue sheds any light? 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? radian-software/straight.el#240 EDIT: seems you ran into this issue before with Elpaca? 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".
|
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
*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
The text was updated successfully, but these errors were encountered: