⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mat2tex.xsl

📁 Matlab开发环境中编辑程序文本时的高亮工具代码。
💻 XSL
字号:
<xsl:stylesheet version="1.0"	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output omit-xml-declaration="yes" /><xsl:template match="mfile"> \documentclass[a4paper,10pt]{article}  \usepackage{alltt}  \usepackage{color}  \usepackage{fullpage}  \definecolor{string}{rgb}{0.7,0.0,0.0}  \definecolor{comment}{rgb}{0.13,0.54,0.13}  \definecolor{keyword}{rgb}{0.0,0.0,1.0}  \title{<xsl:value-of select="@name"/>}  \author{\textsc{Matlab}, The Mathworks, Inc.}  \begin{document}  \maketitle  \begin{alltt}    <xsl:apply-templates/>  \end{alltt} \end{document}</xsl:template><xsl:template match="line">  <xsl:value-of select="@nb"/><xsl:apply-templates/></xsl:template><xsl:template match="keyword">  \textcolor{keyword}{<xsl:apply-templates/>}</xsl:template><xsl:template match="comment">  \textcolor{comment}{<xsl:apply-templates/>}</xsl:template><xsl:template match="string">  \textcolor{string}{<xsl:apply-templates/>}</xsl:template></xsl:stylesheet><!--There's missing a recursive function that generates LaTeX special characters.It may be useful to glance at:http://opera.inrialpes.fr/people/Tayeb.Lemlouma/MULTIMEDIA/XSLT/XML2LaTeX.xsl-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -