55 lines
		
	
	
	
		
			2.4 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			2.4 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version='1.0' encoding="iso-8859-1"?>
 | |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 | |
| 		xmlns:str="http://exslt.org/strings"
 | |
| 		extension-element-prefixes="str"
 | |
| 		version='1.0'>
 | |
| 
 | |
|   <!-- $FreeBSD$ -->
 | |
| 
 | |
|   <!-- The localization layer is the same preference level of this file -->
 | |
|   <xsl:param name="page.margin.bottom">2cm</xsl:param>
 | |
|   <xsl:param name="page.margin.inner">3cm</xsl:param>
 | |
|   <xsl:param name="page.margin.outer">2.5cm</xsl:param>
 | |
|   <xsl:param name="page.margin.top">2.13cm</xsl:param>
 | |
|   <xsl:param name="monospace.font.family">Courier-New</xsl:param>
 | |
|   <xsl:param name="xref.hypermarkup">1</xsl:param>
 | |
|   <xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param>
 | |
|   <xsl:param name="literal.extensions">scale.by.width</xsl:param>
 | |
|   <xsl:param name="doc.lot.show">figure,table,example</xsl:param>
 | |
|   <xsl:param name="doc.pdfcreator.show">1</xsl:param>
 | |
|   <xsl:param name="latex.output.revhistory">0</xsl:param>
 | |
|   <xsl:param name="doc.collab.show">0</xsl:param>
 | |
| 
 | |
|   <xsl:param name="latex.encoding">utf8</xsl:param>
 | |
|   <xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue</xsl:param>
 | |
| 
 | |
|   <xsl:template match="textobject"/>
 | |
| 
 | |
|   <xsl:template match="filename">
 | |
|     <xsl:choose>
 | |
|     <!-- \Url cannot stand in a section heading -->
 | |
|     <xsl:when test="$filename.as.url='1' and
 | |
|       not(ancestor::title or ancestor::refentrytitle)">
 | |
|     <xsl:text>\nolinkurl{</xsl:text><xsl:apply-templates mode="tex.escape"/><xsl:text>}</xsl:text>
 | |
|     </xsl:when>
 | |
|     <xsl:otherwise>
 | |
|       <xsl:call-template name="inline.monoseq"/>
 | |
|     </xsl:otherwise>
 | |
|     </xsl:choose>
 | |
|   </xsl:template>
 | |
| 
 | |
|   <xsl:template match="text()" mode="tex.escape">
 | |
|     <xsl:variable name="t1" select="str:replace(., '\', '\\')"/>
 | |
|     <xsl:variable name="t2" select="str:replace($t1, '^', '\^')"/>
 | |
|     <xsl:variable name="t3" select="str:replace($t2, '~', '\~')"/>
 | |
|     <xsl:variable name="t4" select="str:replace($t3, '{', '\{')"/>
 | |
|     <xsl:variable name="t5" select="str:replace($t4, '}', '\}')"/>
 | |
|     <xsl:variable name="t6" select="str:replace($t5, '%', '\%')"/>
 | |
|     <xsl:variable name="t7" select="str:replace($t6, '$', '\$')"/>
 | |
|     <xsl:variable name="t8" select="str:replace($t7, '&', '\&')"/>
 | |
|     <xsl:variable name="t9" select="str:replace($t8, '#', '\#')"/>
 | |
|     <xsl:variable name="t10" select="str:replace($t9, '_', '\_')"/>
 | |
| 
 | |
|     <xsl:value-of select="$t10"/>
 | |
|   </xsl:template>
 | |
| </xsl:stylesheet>
 |