How to set author.deprecations.all to "yes"?

25 views
Skip to first unread message

Wai Yan Pong

unread,
Jul 26, 2025, 2:09:13 AM7/26/25
to PreTeXt support
Hi,

     I'd like to take care of the warning
 
Rerun with the string parameter "author.deprecations.all" set to "yes" to check your source against all deprecations 

that I got runing "pretext build web"

I couldn't get a useful answers from AI for this.
 
Can someone help me out here? Thanks!

    

Rob Beezer

unread,
Jul 26, 2025, 12:36:48 PM7/26/25
to pretext...@googlegroups.com
Dear Pong,

Our human-generated documentation is superior to any AI. ;-)

For the CLI, see final paragraph of

Subsection 5.2.7: The project manifest: project.ptx
https://pretextbook.org/doc/guide/html/processing-CLI.html#cli-project-manifest

which also references

Section 28.1: String Parameters
https://pretextbook.org/doc/guide/html/publisher-string-parameters.html#publisher-string-parameters

Rob
> --
> 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-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-support/
> b5dcc62e-b8ba-42eb-8cb8-c15b39036574n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/b5dcc62e-b8ba-42eb-8cb8-
> c15b39036574n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Message has been deleted

Wai Yan Pong

unread,
Jul 29, 2025, 9:34:02 AM7/29/25
to PreTeXt support
Hi Rob,

      Yep, I have read that before. And I'm sure the human-generated doc is better than AI but I (a human reader) am not.
      In the doc, it said a "child element" (of what) then gave and example:
    
      <stringparams author.tools="yes" html.css.extra="external/custom-style.css" />

So I suppose mine would be <stringparams author.deprecations.all="yes"/> and should be put somewhere in project.ptx

I tried
<project ptx-version="2">
  <targets>
    <target name="web" format="html" source="calbook.ptx"
    <stringparams author.deprecations.all="yes"/>
    />
    <target name="print" format="pdf" source="calbook.ptx"/>
    <target name="latex" format="latex" source="calbook.ptx"/>
  </targets>
</project>
 and also put it outside the <target>'s but neither of them works.

Can you show me an working example?

Thanks,
Pong

David Austin

unread,
Jul 29, 2025, 9:40:10 AM7/29/25
to pretext...@googlegroups.com
Hi Pong,

It looks like your XML isn't properly formed.  I think you need something like this:

    <target name="web" format="html" source="calbook.ptx">
      <stringparams author.deprecations.all="yes"/>
    </target>

David

To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/25442c81-e258-454d-ab98-847d1de6079en%40googlegroups.com.
Message has been deleted

Wai Yan Pong

unread,
Aug 1, 2025, 12:06:36 PM8/1/25
to PreTeXt support
HI David,

      Thanks, it works. Moreover, now I understand the syntax.

Pong 

Reply all
Reply to author
Forward
0 new messages