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 indeedboth 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. macrosand their unnumbered variants to use these new rendering macros instead ofthe 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 specialrendering for propositions that is different from the rendering oftheorems, 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 andlet 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 captionsare rendered when defining the customized macros 'render-small-table'and 'render-big-table'.Best wishes, --Joris
Archive powered by MHonArc 2.6.24.