mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] alignment of figure captions


Chronological Thread 
  • From: Kai Sattler <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] alignment of figure captions
  • Date: Fri, 26 Nov 2004 16:36:50 +0100

Hi,

I'm a newby to TeXmacs, and I like TeXmacs very much. In order
to conform to the document layout of a project I have to change
the style of the appearance of figure captions, especially the
alignment. However I don't know exactly how this can be performed.
I copied the style package env-float.ts into ~/.TeXmacs/packages
and tried to modify the line


<assign|big-figure*|<macro|type|name|fig|cap|<surround|<vspace*|1fn><no-indent>|<vspace|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>|<table|<row|<cell|<arg|fig>>>|<row|<cell|>>|<row|<\cell>

<with|font-size|0.84|<surround|<figurename|<arg|name><figuresep><list-caption|<arg|type>|<arg|cap>>>||<arg|cap>>>
</cell>>>>>>>>

The assignment above is the original line and gives centered
figure caption.


What I changed first was to place the figure caption aligned
to the left:


<assign|big-figure*|<macro|type|name|fig|cap|<surround|<vspace*|1fn><no-indent>|<vspace|1fn>|<tabular*|<tformat|<twith|table-width|1par>|<cwith|3|3|1|1|cell-hyphen|t>|<cwith|3|3|1|1|cell-halign|l>|<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>|<table|<row|<cell|<arg|fig>>>|<row|<cell|tom>>|<row|<\cell>

<with|font-size|1.00|<surround|<figurename|<arg|name><figuresep>><list-caption|<arg|type>|<arg|cap>>||<arg|cap>>>
</cell>>>>>>>>

This has also the effect that as soon as the caption text takes
more than one line, the following lines are also aligned to the
left margin, like:

Figure 1: This is a rather long description of the content shown
in the figure above ...


However, what I would like to get is the caption text aligned like:

Figure 1: This is a rather long description of the content shown
in the figure above ...

where "Figure 1:" is aligned to the left margin, and where the
caption text starts 25mm from the left margin, with all following
lines also aligned to this position.

Does someone have an idea how this can be achieved?

I'm using TeXmacs version 1.0.3.

Kai



Archive powered by MHonArc 2.6.19.

Top of page