Mon Mar 29, 2010 1:00 pm Post
Mon Mar 29, 2010 1:23 pm Post
Code: Select all
\makepagestyle{simple}
\makeevenhead{simple}{\rightmark}{}{\leftmark}
\makeoddhead{simple}{\rightmark}{}{\leftmark}
\makeevenfoot{simple}{}{\thepage}{}
\makeoddfoot{simple}{}{\thepage}{}
\pagestyle{simple}
\markright{\myauthor\hfill\mytitle\hfill\today}
Mon Mar 29, 2010 2:04 pm Post
Mon Mar 29, 2010 4:54 pm Post
Code: Select all
\def\mytitle{Something Something}
Code: Select all
\def\mytitle{Title}
Mon Mar 29, 2010 5:33 pm Post
Mon Mar 29, 2010 5:34 pm Post
Mon Mar 29, 2010 7:47 pm Post
Code: Select all
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/xhtml"
version="1.0">
<xsl:import href="memoir.xslt"/>
<xsl:output method='text' encoding='utf-8'/>
<xsl:strip-space elements="*" />
<xsl:template match="/">
<xsl:apply-templates select="html:html/html:head"/>
<xsl:apply-templates select="html:html/html:body"/>
<xsl:call-template name="latex-footer"/>
</xsl:template>
<xsl:template name="latex-document-class">
<xsl:text>\documentclass[oneside,article]{memoir}
\usepackage{layouts}[2001/04/29]
\usepackage{xmpincl} % Seems to be required to get the pdf to generate??
\makepagestyle{simple}
\makeevenhead{simple}{\rightmark}{}{\leftmark}
\makeoddhead{simple}{\rightmark}{}{\leftmark}
\makeevenfoot{simple}{}{\thepage}{}
\makeoddfoot{simple}{}{\thepage}{}
\pagestyle{simple}
\markright{\myauthor\hfill\mytitle\hfill\today}
\def\mypagestyle{simple}
</xsl:text>
</xsl:template>
<xsl:template name="latex-begin-body">
<xsl:text>%
% Main Content
%
% Layout settings
\setlength{\parindent}{1em}
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Mon Mar 29, 2010 8:09 pm Post
Code: Select all
LaTeX XSLT: test.xslt
Code: Select all
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/xhtml"
version="1.0">
<xsl:import href="memoir.xslt"/>
<xsl:output method='text' encoding='utf-8'/>
<xsl:strip-space elements="*" />
<xsl:template match="/">
<xsl:apply-templates select="html:html/html:head"/>
<xsl:apply-templates select="html:html/html:body"/>
<xsl:call-template name="latex-footer"/>
</xsl:template>
<xsl:template name="latex-document-class">
<xsl:text>\documentclass[oneside,article]{memoir}
\usepackage{layouts}[2001/04/29]
\usepackage{xmpincl} % Seems to be required to get the pdf to generate??
</xsl:text>
</xsl:template>
<xsl:template name="latex-title">
<xsl:text>
\makepagestyle{simple}
\makeevenhead{simple}{\rightmark}{}{\leftmark}
\makeoddhead{simple}{\rightmark}{}{\leftmark}
\makeevenfoot{simple}{}{\thepage}{}
\makeoddfoot{simple}{}{\thepage}{}
\pagestyle{simple}
\markright{\myauthor\hfill\mytitle\hfill\today}
\def\mypagestyle{simple}
</xsl:text>
</xsl:template>
<xsl:template name="latex-begin-body">
<xsl:text>%
% Main Content
%
% Layout settings
\setlength{\parindent}{1em}
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Mon Mar 29, 2010 11:46 pm Post
Mon Mar 29, 2010 11:50 pm Post
In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 1048 on Mon Feb 06, 2012 9:07 pm
Users browsing this forum: gomerser and 1 guest