Hi Pedro

"which latexmk" returns the correct latexmk defined in the .envrc file
(/gnu/store/ziyaiivhq2yy84j6lp329srfbhffzqd8-profile/bin/latexmk) when
evaluating it in the shell. Also running M-: exec-path inside the
org-mode buffer shows me the path
/gnu/store/ziyaiivhq2yy84j6lp329srfbhffzqd8-profile/bin. But as soon as
I run "C-c C-e h H" I get

/gnu/store/flnyx7c4lz6qq6nsl8z6lh08rfv5lync-bash-5.2.37/bin/bash: line
1: latexmk: command not found

in the *Org PDF LaTeX Output* buffer. And I don't understand why the
PATH variable suddenly gets lost when trying to export.

> Hi,
>
> "Missing latexmk" sournd like latexmk is not in the PATH.
>
> 1. In a shell (bash, zsh), try
> which latexmk
> 2. Inside emacs, M-x eshell and then repeat
> which latexmk
>
> And send us the results...
>
> Best, /PA
>
>
> On 11/11/26 21:16, Reza wrote:
>> Hi list
>> 
>> Not sure this is the right place to ask. After updating my emacs to
>> version 31.1 I cannot hit C-c C-e anymore in an org-mode file and have
>> the proper environment variables set for the export to work. For example
>> I have this in my .envrc file
>> 
>> eval $(guix shell texlive-latexmk --search-paths)
>> 
>> which added latexmk to the PATH variable anbd allowed me to export to
>> latex when hitting C-c C-e l o. Now this is not working anymore and I
>> see the error "Missing latexmk". How can I debug this issue? I made an
>> issue in envrc [1], but I am not sure this is the culprit.
>> 
>> Thanks fgor any help!
>> 
>> Best,
>> Reza
>> 
>> [1] https://github.com/purcell/envrc/issues/146
>> 
>
> -- 
> Pedro A. Aranda
> ox-latex & ox-beamer maintainer
>
> Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
> IA: onomatopeya del rebuzno
> 2nd year of the New Koprocracy

Reply via email to