<< | 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.
Feature | Inset | Layout | Cleaner Code |
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. | 2 | 0 | - |
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. | 4 | 0 | - |
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. | 4 | 0 | - |
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 | 0 | 3 | Inset |
Development, Misc