mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] titles/captions above tables?


Chronological Thread 
  • From: Kris Kuhlman <address@hidden>
  • To: Joris van der Hoeven <address@hidden>, address@hidden
  • Subject: Re: [TeXmacs] titles/captions above tables?
  • Date: Mon, 03 Oct 2005 11:54:03 -0700

Joris van der Hoeven wrote:
The standard way of doing this is to create your own package,
say my-table.ts, in ~/.TeXmacs/packages. Just copy the rendering
routines for tables into this file and customize them.

In this case you should customize the macros render-small-figure and/or
render-big-figure from env-float.ts, as explained in section 3.4.2 of

Help -> Reference guide -> Standard TeXmacs styles

I attached a simple my-table.ts package which illustrates what you want.


Thanks for the help. What I am really looking for is to have the figures handled in the default fashion (title below figure), while the tables handled like the my-table package you sent does.

Looking at the documentation for the conditional statements, I tried to put something together, but it doesn't work (no figures or tables at all, so I guess the if-then isn't working). Am I on the right path here?

Thanks for all the help so far.

Kris
<TeXmacs|1.0.5.9>

<style|source>

<\body>
<assign|render-big-figure|<\macro|type|name|fig|cap>

<assign|tabchoice|<macro|type|name|fig|cap|<padded-normal|1fn|1fn|<tabular*|<tformat|<twith|table-width|1par>|<cwith|1|1|1|1|cell-hyphen|t>|<cwith|1|-1|1|-1|cell-lsep|0spc>|<cwith|1|-1|1|-1|cell-rsep|0spc>|<cwith|1|1|1|1|cell-lsep|1.5fn>|<cwith|1|1|1|1|cell-rsep|1.5fn>|<cwith|3|3|1|1|cell-lsep|0spc>|<cwith|3|3|1|1|cell-rsep|0spc>|<table|<row|<\cell>

<small|<\surround|<figure-name|<arg|name><figure-sep>><list-caption|<arg|type>|<arg|cap>>|>
<arg|cap>
</surround>>
</cell>>|<row|<cell|>>|<row|<cell|<arg|fig>>>>>>>>>

<assign|figchoice|<\macro|type|name|fig|cap>

<padded-normal|1fn|1fn|<tabular*|<tformat|<twith|table-width|1par>|<cwith|3|3|1|1|cell-hyphen|t>|<cwith|1|-1|1|-1|cell-lsep|0spc>|<cwith|1|-1|1|-1|cell-rsep|0spc>|<cwith|2|2|1|1|cell-height|0.5fn>|<cwith|3|3|1|1|cell-lsep|1.5fn>|<cwith|3|3|1|1|cell-rsep|1.5fn>|<table|<row|<cell|<arg|fig>>>|<row|<cell|>>|<row|<\cell>

<small|<\surround|<figure-name|<arg|name><figure-sep>><list-caption|<arg|type>|<arg|cap>>|>
<arg|cap>
</surround>>
</cell>>>>>>


<compound|<if|<equal|<arg|type>|fig>|<value|figchoice>|<value|tabchoice>>>
</macro>>
</macro>>

\;
</body>

<\initial>
<\collection>
<associate|preamble|true>
</collection>
</initial>


Archive powered by MHonArc 2.6.19.

Top of page