pretext-cli and publication file

66 views
Skip to first unread message

Sean Fitzpatrick

unread,
Feb 18, 2022, 4:55:07 PM2/18/22
to PreTeXt support
At today's drop-in meeting I was working with Steven for a bit on using the CLI.

In the project.ptx file that is created from the CLI, I have the line

<publication>publication/publication.ptx</publication>

in each of my targets.

I have a publication file at that location, with the lines

<source webwork-problems="../generated-assets/webwork/webwork-representations.ptx">
    <directories external="../assets" generated="../generated-assets"/>
</source>

But when I run 'pretext build html -w -d' I get the following message:

PTX: a publisher file specifying /publication/source/@generated is not in use. WeBWorK representations will be in /home/sean/Documents/APEXCalculusPTX-CLI/ptx/../generated-assets/webwork

Despite this message, the WeBWorK representations are, in fact, being generated in 
/home/sean/Documents/generated-assets/webwork

So I think this means I can ignore this message?

Rob Beezer

unread,
Feb 18, 2022, 5:02:55 PM2/18/22
to pretext...@googlegroups.com
Shooting from the hip:

Try removing

source/@webwork-problems

Functional? No error message?

Rob Beezer

unread,
Feb 23, 2022, 2:01:32 PM2/23/22
to pretext...@googlegroups.com
Dear Sean,

If you were able to confirm my suspicions, then I could upgrade the error
message to suggest the "fix".

Rob

Sean Fitzpatrick

unread,
Feb 23, 2022, 2:12:03 PM2/23/22
to pretext...@googlegroups.com
Dear Rob,

I haven't had an opportunity to test.
Company over the long weekend and no school this week.

I'll try to get to it soon.

Sean

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/7jplLzQbipk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/6b8eb0c1-eaba-3c22-5e0e-f11a745cc6e0%40ups.edu.

Rob Beezer

unread,
Feb 23, 2022, 2:19:35 PM2/23/22
to pretext...@googlegroups.com
Thanks, no real rush. Just didn't want it to get lost.

On 2/23/22 11:11, Sean Fitzpatrick wrote:
> Dear Rob,
>
> I haven't had an opportunity to test.
> Company over the long weekend and no school this week.
>
> I'll try to get to it soon.
>
> Sean
>
> On Wed., Feb. 23, 2022, 12:01 p.m. Rob Beezer, <bee...@ups.edu
> <mailto:bee...@ups.edu>> wrote:
>
> Dear Sean,
>
> If you were able to confirm my suspicions, then I could upgrade the error
> message to suggest the "fix".
>
> Rob
>
> On 2/18/22 14:02, Rob Beezer wrote:
> > Shooting from the hip:
> >
> > Try removing
> >
> > source/@webwork-problems
> >
> > Functional?  No error message?
> >
> > On February 18, 2022 1:55:07 PM PST, Sean Fitzpatrick
> <dsfitz...@gmail.com <mailto:dsfitz...@gmail.com>> wrote:
> >> At today's drop-in meeting I was working with Steven for a bit on using the
> >> CLI.
> >>
> >> In the project.ptx file that is created from the CLI, I have the line
> >>
> >> <publication>publication/publication.ptx</publication>
> >>
> >> in each of my targets.
> >>
> >> I have a publication file at that location, with the lines
> >>
> >> <source
> >> webwork-problems="../generated-assets/webwork/webwork-representations.ptx">
> >>     <directories external="../assets" generated="../generated-assets"/>
> >> </source>
> >>
> >> But when I run 'pretext build html -w -d' I get the following message:
> >>
> >> PTX: a publisher file specifying /publication/source/@generated is not in
> >> use. WeBWorK representations will be in
> >> /home/sean/Documents/APEXCalculusPTX-CLI/ptx/../generated-assets/webwork
> >>
> >> Despite this message, the WeBWorK representations are, in fact, being
> >> generated in
> >> /home/sean/Documents/generated-assets/webwork
> >>
> >> So I think this means I can ignore this message?
> >>
> >
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "PreTeXt support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pretext-support/7jplLzQbipk/unsubscribe
> <https://groups.google.com/d/topic/pretext-support/7jplLzQbipk/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> pretext-suppo...@googlegroups.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>.
> <https://groups.google.com/d/msgid/pretext-support/6b8eb0c1-eaba-3c22-5e0e-f11a745cc6e0%40ups.edu>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPb3FPntrKk-K40Bo7qfXU1GqfUO1uuHoU2fbync0dURJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPb3FPntrKk-K40Bo7qfXU1GqfUO1uuHoU2fbync0dURJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Feb 23, 2022, 2:32:15 PM2/23/22
to pretext...@googlegroups.com
Right. That crossed my mind, and I figured it was a non-issue for CLI *authors
and publishers*, but perhaps you'll need adjustments on the *developer* end (or
not!).

Rob

Sean Fitzpatrick

unread,
Mar 4, 2022, 4:50:23 PM3/4/22
to PreTeXt support
Some progress on this: there was a file extension mismatch: the publication file specified webwork-representations.ptx, but what is created is webwork-representations.xml

Fixing that gets rid of the CLI warning. (But as you suggest, this shouldn't need to be specified in the first place -- there's a bit of a mismatch between latest PTX and the current pretext-cli.)
There is still a PTX warning. It complains about not being able to find a publisher file specifying /publication/source/@generated (this should  be /publication/source/directories/@generated)

Rob Beezer

unread,
Mar 4, 2022, 5:10:05 PM3/4/22
to pretext...@googlegroups.com
On 3/4/22 13:50, Sean Fitzpatrick wrote:
> There is still a PTX warning. It complains about not being able to find a
> publisher file specifying /publication/source/@generated (this should  be
> /publication/source/directories/@generated)

Is this a bigger problem than a typo in the warning?

Making an issue for the inaccurate warning text would be a big help.

Sean Fitzpatrick

unread,
Mar 4, 2022, 5:57:15 PM3/4/22
to pretext...@googlegroups.com
Everything seems to work correctly despite the warning.
I believe Alex was going to look into it.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/ed9574e9-d592-3328-8f93-f93dc745537c%40ups.edu.

Alex Jordan

unread,
Mar 4, 2022, 6:44:32 PM3/4/22
to pretext...@googlegroups.com
I do not understand why the warning is triggered. This evening I
intend to "pretext init" the sample webwork chapter and see if I can
get the same warning to trigger.

The warning says the wrong thing, and I think it should say what I opened here:
https://github.com/PreTeXtBook/pretext/pull/1675
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPb6%2Bz%3DwWvqgBor0kPgCF---zCRYdFbmvFwW92F4ksNg1g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages