Skip to content

Commit

Permalink
Deprecate/fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ascholerChemeketa committed Nov 21, 2024
1 parent aa8bbf5 commit 55420dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xsl/pretext-assembly.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,15 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
</xsl:copy>
</xsl:template>

<!-- Change listing captions to titles if there is not already a title -->
<xsl:template match="listing/caption" mode="repair">
<xsl:if test="not(parent::listing/title)">
<title>
<xsl:apply-templates select="node()|@*" mode="repair"/>
</title>
</xsl:if>
</xsl:template>


<!-- ############################## -->
<!-- Killed, in Chronological Order -->
Expand Down
7 changes: 7 additions & 0 deletions xsl/pretext-common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11644,6 +11644,13 @@ http://andrewmccarthy.ie/2014/11/06/swung-dash-in-latex/
<xsl:with-param name="message" select="'use of a favicon in HTML output is no longer accomplished with a &quot;favicon&quot; element inside &quot;docinfo&quot;. Instead use the publication file and put a &quot;@favicon&quot; attribute on the &quot;html&quot; element. Set its value to &quot;simple&quot; for equivalent behavior. Until you remove the element in &quot;docinfo&quot;, we will try to honor your intent.'"/>
</xsl:call-template>
<!-- -->
<!-- 2024-11-19 listing no longer has caption, uses title only -->
<xsl:call-template name="deprecation-message">
<xsl:with-param name="occurrences" select="$document-root//listing/caption"/>
<xsl:with-param name="date-string" select="'2024-11-19'" />
<xsl:with-param name="message" select="'Use of caption in listings is no longer supported. Listings should only have a title. We will try to honor your intent.'"/>
</xsl:call-template>
<!-- -->
</xsl:template>

<!-- Miscellaneous -->
Expand Down

0 comments on commit 55420dd

Please sign in to comment.