[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ob-latex: Added support for including files with a relative
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] ob-latex: Added support for including files with a relative path |
Date: |
Tue, 05 Jul 2022 21:50:42 +0800 |
Daniel Fleischer <danflscr@gmail.com> writes:
> Ihor Radchenko [2022-07-05 Tue 19:05] wrote:
>
>> Rather than changing paths to absolute, we can simply play with the
>> working directly for latex process and set it to the directory of the
>> .org file (unless :dir argument is passed to the latex source block).
>> This is probably the most expected behavior.
>
> If I understand you correctly, changing the latex processing directory
> enables you to use relative paths in macros such as \input{}. If so,
> it's as trivial as adding `-cd' flag to `org-latex-pdf-process` when
> using `latexmk`.
It would be trivial if org-latex-pdf-process were not a custom variable.
I suspect that we may need to use something similar to what export does.
However, setting the right working directory is what other babel
backends do. The fact that ob-latex is not doing the same is an
unfortunate inconsistency and causes the input issue and can potentially
cause other problems.
Best,
Ihor