mailing-list for TeXmacs Users

Text archives Help


Re[2]: Problems / questions regarding TeXmacs v.2.1.1.


Chronological Thread 
  • From: "Baumann, Ingor" <address@hidden>
  • To: "address@hidden" <address@hidden>
  • Cc: TeXmacs <address@hidden>
  • Subject: Re[2]: Problems / questions regarding TeXmacs v.2.1.1.
  • Date: Sun, 23 Jan 2022 20:56:37 +0000
  • Accept-language: de-DE, en-US

Dear Joris,

Thank you very much for your e-mail and your comprehensive help. Unfortunately, I'm only now getting around to replying to you.

I didn't realize that changing the caption placement would take so much effort. I tried your suggestion, but I can't get it to work.

Would it not be possible at this point to implement such a selection routine (for the placement of the captions) in the next upcoming TeXmacs release? This would surely help many users, since the placement of captions (above tables and below figures) is common practice. Especially TeXmacs beginners would benefit from this. Don't you think so?

Best regards from Germany.

Ingor


------ Originalnachricht ------
Von: "TeXmacs" <address@hidden>
Gesendet: 12.01.2022 17:28:56
Betreff: Re: Problems / questions regarding TeXmacs v.2.1.1.

Dear Ingor,
 
On Tue, Jan 11, 2022 at 09:29:49PM +0000, Baumann, Ingor wrote:
1.) I have written a book text with figures (big-figures) and tables (big-tables). For this I used the tmbook style, which I have somewhat adapted to my needs. For the figures I would like to have captions below and for the tables above the respective object. I have tried everything, but I can't get it to work. In TeXmacs v2.1.1. big tables are also declared as big figures in the context menu. This is surprising. When I select the "Captions Above" package, all captions are displayed on top of both objects. If not, they are displayed below. There is only an "either... or". Is there perhaps a bug in the program leading to this problem? Is there a way to use the "Captions Above" package for tables and figures independently? If not, how can I realize this?
 
This kind of thing is non-trivial, since figures and tables are indeed
both based on the same rendering macros 'render-small-figure' and
'render-big-figure'.
 
There is nevertheless a general way for hacking this kind of things.
As a first step, you should create new macros for the desired rendering.
For instance, in your custom style package, you could create macros
'render-small-table' and 'render-big-table' for tables with captions above;
you could simply copy the macros from captions-above.ts and change the names.
 
As a second step, you have to hijack the 'small-table', 'big-table', etc. macros
and their unnumbered variants to use these new rendering macros instead of
the default ones. That can be achieved by saving the original definitions;
e.g., using scheme notation:
 
(assign "original-small-table" (value "small-table"))
 
You next redefine the macro by seting 'render-big-figure' _locally_ to
'render-small-figure'. Again in scheme notation:
 
(assign "small-table"
(macro "tab" "cap"
(with "render-big-figure" (value "render-big-table")
(original-small-table (arg "tab") (arg "cap")))))
 
(Note that a similar approach could be applied if you want a special
rendering for propositions that is different from the rendering of
theorems, for instance.)
 
2.) How can I display the header of the whole bibliography part in fancy style (i.e. with a line, above it chapter and section name in small capitals and the page number)? "Bibliography" is not a chapter. I have tried everything here too, but I can't get any further.
 
Same kind of reply. I would hijack the 'bibliography' macro and
let the hijacked rendering routine set the header to what you want.
 
3.) How can I set the font size and the alignment for the captions?
 
With the above solution to 1.) you may simply change the way the captions
are rendered when defining the customized macros 'render-small-table'
and 'render-big-table'.
 
Best wishes, --Joris

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.



Archive powered by MHonArc 2.6.24.

Top of page