PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

Option to suppress/knowl-ize objectives #408

Closed mitchkeller closed 7 years ago

mitchkeller commented 8 years ago

Default or opt-in method to prevent the output of objectives (or hide them in a knowl). See the thread at https://groups.google.com/d/msg/mathbook-xml-support/X1dLnVC_-WY/TA7aDGa-AwAJ

rbeezer commented 8 years ago

Basic implementation at e30713bc, this will be an add-on once that settles down.

rbeezer commented 7 years ago

Opt-in knowlization implemented at 51b07e3. Perhaps the easiest feature request ever at 3 lines.

Switch is

html.knowl.objectives = yes|no

I'm going to leave eliminating these entirely as a job for custom XSL as a modification of source, not a job for conversion. So in a thin layer you can do:

<xsl:template match="objectives" />
<xsl:template match="objectives" mode="xref-knowl" />

No harm in making the knowl, but maybe you would want to keep the objectives top-secret? ;-)

I should write-up this sort of thing more carefully: #604