An error inside a klammer is reported at your document; the image search path

Assembled from development commit 632297b7657a. Since 1b00738: when something
goes wrong while a klammer is being applied, the report begins with the
line of your document that applied it, then lists the klammers being
applied and where inside the klammer set the fault was raised; the
Python binding's line and column are the application's too. The default
image search path is the document's directory, imgsrc beside it and
../imgsrc, and a not-found report shows exactly those.
This commit is contained in:
ack committed 2026-09-25 22:12:48 +02:00
1 parent 1b00738654
commit 5c29da52dc
9 files changed
+135 -15

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@
@@@
]#
@@@state Image_search_path :desc Series of directories for image search
:value . imgsrc ../imgsrc ../dbg
@@@state Image_search_path :desc Directories searched for an image's file, relative to the document
:value . imgsrc ../imgsrc
@@@
@@@state Image_output_dir :desc Output directory for images :value img @@@
+4 -1
View File
@@ -98,7 +98,10 @@ class Image_cache:
"latex" : ["png", "jpg", "jpeg", "JPEG", "pdf", "eps"] }
if not os.path.exists(self.dir):
os.makedirs(self.dir)
self.search = self.search + [f"{os.path.dirname(cache_dir)}/imgsrc"]
# The search path is the Image_search_path state variable and nothing
# else (until 2026-09-25 an imgsrc beside the CACHE directory was
# appended -- /dev/imgsrc when the cache is in /dev/shm -- and every
# not-found report named it).
def construct_cache_filename(self, target, filename):
basename, ext = os.path.splitext(filename)