Function to include one document within another?
#214
Closed
opened 4 years ago by anthrolisp
·
5 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
In Scribble, it's possible to include one document within another, through @include-section["file.scrbl"]. Is it possible to do something similar with Pollen, especially with poly.pm documents?
Many thanks in advance!
Check out this comment in the Pollen Users repo
How difficult would it be to create an include function to work with poly.pm files with support for multiple (e.g. html, txt and pdf) outputs? Many thanks in advance!
Starting from the Pollen fourth tutorial on making a multple-output project based on a poly output type with additional support for txt, latex and pdf in pollen.rkt file, and following from the suggestion linked here, I added the following to the pollen.rkt
Adding a line to the cv.poly.pm file:
Contents of "new.poly.pm":
Working from within the pollen server, the html output works fine.
However, I get an error for txt output:
and pdf output:
Thanks again!
I can see that your
root
needs to dispatch on(current-poly-target)
, as described by this section.I’m not yet persuaded that there’s a bug or gap here. For instance, with
txt
, the issue is that you’re insertingdecode-paragraphs
without updating the underlying tag functions. That’s what the error message indicates: something like'("**" "really" "**")
is not a validtxexpr-element?
. You can fix it by putting a@
tag on the front, turning it into a splicing txexpr. And so on.Closing as abandoned. Please reopen if needed.