<< | 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:
- Implemented. In the layout case this means that it was implemented before the switch to the inset implementation.
- Trivial to implement
- Easy to implement
- Implementation with medium degree of difficulty
- Difficult to implement
- 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.
|Correctly numbered captions||0||0||-|
|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.
|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.
|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.
|Caption prefix (e.g. Figure:)||0||0||Inset|
|Caption automatic label prefix (e.g. fig:)||0||0||Inset|
|Automatic label prefix in nested inset (e.g. short title)||0||2||Inset|
|Inside captions, other layouts than standard should probably be forbidden||1||0||-|
|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