[debian-edu-commits] debian-edu/ 01/04: Add common/dblatex.xsl to configure Xetex. Thanks to victory.

Holger Levsen holger at layer-acht.org
Wed Jun 15 16:49:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository debian-edu-doc.

commit 517bbfc832c8672db1e7055814d88cee909db941
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Wed Jun 15 18:36:33 2016 +0200

    Add common/dblatex.xsl to configure Xetex. Thanks to victory.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 documentation/common/dblatex.xsl | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/documentation/common/dblatex.xsl b/documentation/common/dblatex.xsl
new file mode 100644
index 0000000..1023347
--- /dev/null
+++ b/documentation/common/dblatex.xsl
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+
+  <xsl:param name="latex.encoding">utf8</xsl:param>
+  <xsl:param name="latex.class.options">10pt,onecolumn</xsl:param>
+  <xsl:param name="xetex.font">
+   <xsl:choose>
+    <xsl:when test="contains(/article/@lang,'ja')">
+	<xsl:text>\usepackage{xeCJK}
</xsl:text>
+	<xsl:text>\setCJKmainfont{IPAPGothic}
</xsl:text>
+	<xsl:text>\setCJKsansfont{IPAPMincho}
</xsl:text>
+	<xsl:text>\setCJKmonofont{IPAexGothic}
</xsl:text>
+	<xsl:text>\setmainfont{Kochi Gothic}
</xsl:text>
+	<xsl:text>\setsansfont{IPAPMincho}
</xsl:text>
+	<xsl:text>\setmonofont{IPAexGothic}
</xsl:text>
+    </xsl:when>
+   </xsl:choose>
+  </xsl:param>
+
+</xsl:stylesheet>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-doc.git



More information about the debian-edu-commits mailing list