Difference between revisions of "Translating Table markup"
Jump to navigation
Jump to search
(New page: <pre> # Tables : placing them # replace <p><img> by equivalent command in context (@article/"table").each do |tab| if tab.at("caption") tab.swap(" \\placetable[split]{#{tab.at("capt...) |
m |
||
Line 1: | Line 1: | ||
+ | < [[HTML_to_ConTeXt]] | ||
+ | |||
<pre> | <pre> | ||
Revision as of 09:00, 16 July 2007
# Tables : placing them # replace <p><img> by equivalent command in context (@article/"table").each do |tab| if tab.at("caption") tab.swap(" \\placetable[split]{#{tab.at("caption").inner_html}}\n {\\bTABLE \n #{tab.inner_html} \\eTABLE} ") else tab.swap(" \\placetable[split]{}\n {\\bTABLE \n #{tab.inner_html} \\eTABLE} \n ") end end # Tables: remove the caption (@article/"caption").each do |cap| cap.swap("\n") end