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

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Wed Jun 15 16:43:20 UTC 2016


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

schweer-guest pushed a commit to branch schweer/bar
in repository debian-edu-doc.

commit ffcc498c4c4082387c942f912f86348b951903c2
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.
---
 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