Open scruel opened 1 month ago
What version of pandoc?
It ought to be smarter; it knows the directory of the including file and could resolve the include relative to that.
$ pandoc --version pandoc 3.1.3 Features: +server +lua Scripting engine: Lua 5.4 User data directory: /home/scruel/.local/share/pandoc Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose
Same warning output with pandoc 3.2.1
The issue cannot be reproduced with Pandoc 3.2.1 on my machine. I suspect it is the issue with your folder structure. I have uploaded a folder for your testing and diagnose. The files were copied from tuna/thuthesis.
@TomBener
wget https://arxiv.org/src/2406.11068
mkdir tmp
tar xf 2406.11068 -C tmp
pandoc -s tmp/main.tex -o out.md
How exactly does TeX resolve these?
I note that tmp/sections/appendix.tex
has \input{sections/tables/vip}
and not \input{tables/vip}
-- so are all input paths, no matter where they are specified, resolved relative to the main tex file? OR is there a more complicated algorithm/search path?
Describe your proposed improvement and the problem it solves. Currently, pandoc can't parse the tex file which included other tex files:
Even with
--resource-path=2406.11068
or--resource-path=2406.11068/sections
.Describe alternatives you've considered.
cd
into the working dir, then re-executing the commands.