GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
1
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
XML
Browse code
- Revamped TODO formatting so that it works better in LaTeX. \fbox{} doesn't
linewrap.
master
1 parent
820a283
commit
59e15a0bc55754d9357c62608db0ac69061b801f
nstanger
authored
on 12 Jun 2012
Patch
Showing
1 changed file
modules/meta-elements.xml
Ignore Space
Show notes
View
modules/meta-elements.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Meta-elements that affect how embedded markup is interpreted/processed. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Completely ignore the markup, i.e., treat it as if it doesn't even exist. --> <template name="omit" match="omit" /> <!-- Process the markup, but embed it inside a comment in the output document. (Note: "It is an error if instantiating the content of xsl:comment creates nodes other than text nodes.") --> <template name="comment" match="comment"> <common formats="/latex/xelatex/"> <xsl:call-template name="newline-internal" /> <xsl:text>\begin{comment}</xsl:text> <xsl:apply-templates /> <xsl:text>\end{comment}</xsl:text> <xsl:call-template name="newline-internal" /> </common> <common formats="/html/xhtml/"> <xsl:comment> <xsl:apply-templates /> </xsl:comment> </common> </template> <!-- Identify and highlight to-do items that are not yet completed. --> <template name="todo" match="todo|to-do|incomplete|check"> <common formats="/latex/xelatex/"> <xsl:text>\textbf{[!!TODO!! </xsl:text> <xsl:apply-templates /> <xsl:text> !!]}</xsl:text> </common> <common formats="/html/xhtml/"> <strong>[!!TODO <xsl:apply-templates /> !!]</strong> </common> </template> </stylesheet>
<?xml version="1.0" encoding="utf-8"?> <!-- Meta-elements that affect how embedded markup is interpreted/processed. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Completely ignore the markup, i.e., treat it as if it doesn't even exist. --> <template name="omit" match="omit" /> <!-- Process the markup, but embed it inside a comment in the output document. (Note: "It is an error if instantiating the content of xsl:comment creates nodes other than text nodes.") --> <template name="comment" match="comment"> <common formats="/latex/xelatex/"> <xsl:call-template name="newline-internal" /> <xsl:text>\begin{comment}</xsl:text> <xsl:apply-templates /> <xsl:text>\end{comment}</xsl:text> <xsl:call-template name="newline-internal" /> </common> <common formats="/html/xhtml/"> <xsl:comment> <xsl:apply-templates /> </xsl:comment> </common> </template> <!-- Identify and highlight to-do items that are not yet completed. --> <template name="todo" match="todo|to-do|incomplete|check"> <common formats="/latex/xelatex/"> <xsl:text>\fbox{\textbf{!!</xsl:text> <xsl:apply-templates /> <xsl:text>!!}}</xsl:text> </common> <common formats="/html/xhtml/"> <strong style="border: 1px solid black;">!!<xsl:apply-templates />!!</strong> </common> </template> </stylesheet>
Show line notes below