On 3/19/25 9:55 AM, José Matos wrote:
On Wed, 2025-03-19 at 11:29 +0100, Pavel Sanda wrote:
I do not have super strong opinion here, but I think that not having font
style buttons was deliberate omission to make little push toward semantic
text styles rather then just to use font tweaks used by default by various
*office editors.
As Pavel said.
Notice that you still have the key shortcuts if you want to do it fast. :-)
Emphasis is already there. This is the semantic equivalent of italics. If you add the Logical Markup module to your document, you will also get Strong (for bold), which will appear on the dropdown toolbar button next to emphasis and noun. This could then also be added to the toolbar directly, in the way described below.

You can add toolbar buttons yourself if you want. Here's how to do it:

1. Copy the stdtoolbars.inc file from the ui/ subdirectory of your installation to the ui/ subdirectory of your user directory.

2. Add the line

    Item "Toggle bold" "font-bold"

at an appropriate place in the file (presumably, near the one for font-emph). Similarly for other things, of course.

3. Create an icon for the toolbar. See the ones in the images/ subdirectory for ideas. (You could repurpose one of those.) The name should be, e.g., font-bold.png. I believe you can just put it in the images/ subdirectory of your user directory. In this case, however, font-bold already has an icon.

The functions font-underline and font-ital also exist. See Help> LyX Functions.

Riki


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to