word wrap in tables for LaTeX

80 views
Skip to first unread message

vivo

unread,
Dec 1, 2009, 11:25:52 AM12/1/09
to MultiMarkdown Discussion List
Hi!

I would like to be able to have table cells where the words are
automatically wrapped.

In xhtml2latex.xslt there seems to be a "switch" to enable that
feature using "J" columns in tabulary:

<xsl:otherwise>
<xsl:choose>
<xsl:when test="@class='extended'">
<xsl:text>J</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>l</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>

but I do not know how to switch on the generation of class="extended"
in xhtml.

Best Regards
Victor

vivo

unread,
Dec 2, 2009, 10:25:15 AM12/2/09
to MultiMarkdown Discussion List
Got a direct answer from Fletcher Penney (thanks!):

- quote -
You use a "+" in the column formatting line:

Sample table | long cell |
------------ | ---------+ |
test | sd lsd ls dksa dkasdkjsa dkasj dk sak jdk asdkja sdk
aslkd jaslkdjsakjdsakd asjdk jasdkjaskdjaskd sakj dk jsakjdks jdkj
sakdj k sajdk jsakd jskajdsdjk
- /quote -

(where there are no line breaks in the long string of gobbledy-gook...
Reply all
Reply to author
Forward
0 new messages