You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For large doc target, its supplement files may live in sub-directories like ./image, ./chapters. Currently when specified as docfiles = { "image/*.jpg", "chapters/*.tex" }, the matched files will be copied directly to typesetdir, with a flat directory structure.
This will break usages like \include{chapters/chap01.tex} in doc file. Although this use case can be resolved by appending chapters to \input@path or \l_file_search_path_seq and removing path prefix chapter/, some \input-derived package macros may not respect \input@path yet, among which pgf's \pgfutil@IfFileExists is an example, see #1238.
In pgf-tikz/pgf#1239 (comment) I found specifying just directory names in docfiles seems to work, for example docfiles = { "image", "chapter" }, but not sure if this is officially supported.
Taking ./examples/Simple-Tree in this repository as an example
First, create dummy files ./doc/images/a.jpg and ./doc/images/b.jpg
I think that's an artefact of how it's set up, but I'd be happy to document that it works - although the team tend to favour 'flat' structures as that's how TeX works ...
For large doc target, its supplement files may live in sub-directories like
./image
,./chapters
. Currently when specified asdocfiles = { "image/*.jpg", "chapters/*.tex" }
, the matched files will be copied directly totypesetdir
, with a flat directory structure.This will break usages like
\include{chapters/chap01.tex}
in doc file. Although this use case can be resolved by appendingchapters
to\input@path
or\l_file_search_path_seq
and removing path prefixchapter/
, some\input
-derived package macros may not respect\input@path
yet, among whichpgf
's\pgfutil@IfFileExists
is an example, see #1238.In pgf-tikz/pgf#1239 (comment) I found specifying just directory names in
docfiles
seems to work, for exampledocfiles = { "image", "chapter" }
, but not sure if this is officially supported.Taking
./examples/Simple-Tree
in this repository as an exampleFirst, create dummy files
./doc/images/a.jpg
and./doc/images/b.jpg
Now the structure of
./doc
becomesdocfiles = { "images/*.jpg" }
is appended tobuild.lua
l3build doc
the structure of./build/doc
will bedocfiles = { "images" }
is appended tobuild.lua
l3build doc
the structure of./build/doc
will beThe text was updated successfully, but these errors were encountered: