Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git
recipe-book.cls
\renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
\renewenvironment{ingredientlist}{%
- \begin{itemize*}[label={},afterlabel={},itemjoin={{; }}]
+ \begin{itemize*}[label={},afterlabel={},itemjoin={;\space},noitemsep]
}{%
\end{itemize*}.
theme/Modern.tex
leftmargin=*,%
itemjoin=\inlinelistmarker,
- noitemsep
+ nosep
}
theme/Notebook.tex
leftmargin=*,%
itemjoin=\inlinelistmarker,
- noitemsep
+ nosep
}
xsl/latex.xsl
<xsl:text>}{</xsl:text>
<xsl:apply-templates select="key('preg', @id)/@name" />
- <xsl:text>}&#xa;</xsl:text>
+ <xsl:text>}%&#xa;</xsl:text>
<!-- Put the ingredients in a categorized list. -->
<xsl:if test="key('preg',@id)/categories/category">
<xsl:for-each select="key('preg',@id)/categories/category">
- <xsl:text>\index[catingred]{</xsl:text>
+ <xsl:text> \index[catingred]{</xsl:text>
<xsl:call-template name="split">
<xsl:with-param name="pText" select="@name" />
<xsl:with-param name="pToken" select="','" />
<xsl:with-param name="pSubst" select="'!'" />
</xsl:call-template>
<xsl:text>!</xsl:text>
<xsl:apply-templates select="../../@name" />
- <xsl:text>}&#xa;</xsl:text>
+ <xsl:text>}%&#xa;</xsl:text>
</xsl:for-each>
</xsl:if>
<!-- Put the ingredients in a flat list. -->
- <xsl:text>\index[flatingred]{</xsl:text>
+ <xsl:text> \index[flatingred]{</xsl:text>
<xsl:apply-templates select="key('preg', @id)/@name" />
- <xsl:text>}&#xa;</xsl:text>
+ <xsl:text>}%&#xa;</xsl:text>
</xsl:template>

Fixed extra spacing in lists, especially when \compactingredients is in force.

Author liantze <email>
Date 2013-02-23 17:09:49 GMT+0800
Commit 17174e60630b85a6cd69bde2cb892eedcd69f3c5
Parent 4300a8b
Delta 8 lines added, 8 lines removed