Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] titles/captions above tables?

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] titles/captions above tables?


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] titles/captions above tables?
  • Date: Mon, 3 Oct 2005 11:44:10 +0200

Hi Kris,

On Sun, Oct 02, 2005 at 04:41:43PM -0700, Kris Kuhlman wrote:
> Does anybody have have any idea either how to modify the tables so
> they have the title first, or setup a new table type which has the
> title first, or a better way of getting the same thing done?

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.

Best wishes, Joris
<TeXmacs|1.0.5.9>

<style|source>

<\body>
  <assign|render-small-figure|<macro|type|name|fig|cap|<tabular*|<tformat|<cwith|1|1|1|1|cell-hyphen|t>|<cwith|1|-1|1|-1|cell-lsep|0spc>|<cwith|1|-1|1|-1|cell-rsep|0spc>|<twith|table-valign|B>|<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>>>
  </cell>>|<row|<cell|>>|<row|<cell|<resize|<arg|fig>|l-2fn||r+2fn||>>>>>>>>

  <assign|render-big-figure|<\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>>>>>>>
  </macro>>

  \;
</body>

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



Archive powered by MHonArc 2.6.19.

Top of Page