Re: [pollen] Combining multiple input pages into single output.

2019-02-15 Thread Ifeoluwapo Eleyinafe
Sir you are so so helpful. It worked. So simply. Thanks so much. I placed this code at the bottom of the first file in my index.ptree and then I removed the file refrence from the index.ptree. Worked perfect. Had to use build path because windows is too awesome. ◊(define fileList

Re: [pollen] Combining multiple input pages into single output.

2019-02-14 Thread Ifeoluwapo Eleyinafe
Thanks so much. I'll get working on it to see how it pans out. pagetree->list looks like exactly what I need and I think 'get-pagetree' will be useful too. Thanks again. On Thursday, February 14, 2019 at 1:28:10 PM UTC-5, Matthew Butterick wrote: > > `require` is a compile-time command, but

Re: [pollen] Combining multiple input pages into single output.

2019-02-14 Thread Matthew Butterick
`require` is a compile-time command, but `for-each` doesn't happen until run time. So there is a timing mismatch. I think you probably want `dynamic-require`, which lets you import identifiers at run time: ◊(map (λ (fileName) (dynamic-require fileName 'doc)) fileList) As for generating a list

Re: [pollen] Combining multiple input pages into single output.

2019-02-14 Thread Ifeoluwapo Eleyinafe
I know this is an old post but I'm hoping anyone can help. I'm trying to see is if this process can be automated for any files listed in the index.ptree. I'm thinking the code should look something like this: ◊(define fileList (file->list index.ptree)) ;Not sure how to get the exact path here

Re: [pollen] Combining multiple input pages into single output.

2017-09-24 Thread Karim Chellaoui
This works! Thanks a lot! Le dim. 24 sept. 2017 à 21:53, Matthew Butterick a écrit : > If you use the submodule technique, you need to `provide` the identifiers > from inside the submodule, then you also need to insert them in the body of > the source file: > > #lang pollen > >

Re: [pollen] Combining multiple input pages into single output.

2017-09-24 Thread Matthew Butterick
If you use the submodule technique, you need to `provide` the identifiers from inside the submodule, then you also need to insert them in the body of the source file: #lang pollen ◊(module art1-submod racket/base (require "article1.html.pm") (provide doc)) ◊(require (prefix-in art1:

Re: [pollen] Combining multiple input pages into single output.

2017-09-23 Thread Matthew Butterick
> On Sep 23, 2017, at 3:29 AM, Karim Chellaoui wrote: > > I'm new to Pollen, I read the tutorial but couldn't find the way to apply > this answer. I'm getting confused: how to effectively insert submodule > ch1-submod in the main file? I tried different functions but it

[pollen] Combining multiple input pages into single output.

2017-03-10 Thread osubboti
Hello, everyone. If there are way to combine multiple source pages to generate single output. Say, we have chapter1.poly.pm, chapter2.poly.pm The use case - HTML output (chapter1.html. chapter2.html) vs PDF output (single output). The simple solution that comes to mind - just combine the