Search:   Help

Developers' side bar

Selected categories

Edit

Shared groups

Links

Captions

Categories: Development, Misc
<< | Page list | >>

This page gives a comparison between the 'inset' and 'layout' implementation of captions. This is intended as a decision help: Should we keep the inset implementation, or go back to the layout implementation?

In the following table, each feature/bug is marked with a number between 0 and 5. The numbers have the following meaning:

0
Implemented. In the layout case this means that it was implemented before the switch to the inset implementation.
1
Trivial to implement
2
Easy to implement
3
Implementation with medium degree of difficulty
4
Difficult to implement
5
Very difficult to implement

If an item needs some explanation (either what it is or why the implementation would be easy/difficult just add that to the relevant line in the table.

FeatureInsetLayoutCleaner Code
Correctly numbered captions00-
LaTeX code other than \caption, e.g. \captionbelow (⚠ bug 3209)

Implementation in the inset case is straightforward, but requires a bit of inset/dialog code.
20-
Layout specific captions e.g. for KOMA-Script

The implementation in the inset case would need some new layout file tags and it would need several changes throughout the whole LyX core. This is no too difficult to implement, but a lot of changes therefore rating 4.
40-
Layout specific visual appareance of the standard captions for document classes

The implementation in the inset case would need some new layout file tags and it would need to duplicate several parts of the layout file machinery. This is no too difficult to implement, but a lot of changes therefore rating 4.
40-
Caption prefix (e.g. Figure:)00Inset
Caption automatic label prefix (e.g. fig:)00Inset
Automatic label prefix in nested inset (e.g. short title)02Inset
Inside captions, other layouts than standard should probably be forbidden10-
Easy moving of caption with (C&P)

You have to select the previous paragraph for a proper Cut&Paste in the layout case. A solution to this would be to remember the layout when selecting from the beginning of the paragraph
03Inset

Development, Misc

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2008-03-19 11:14 UTC