LyXHow to create a custom tool bar?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Cosm
Posts: 13
Joined: Thu Nov 07, 2013 12:53 pm

How to create a custom tool bar?

Post by Cosm »

How does one create a customized tool bar. Basically what I want is simply a toolbar with some frequently used mathsymbols.
http://wiki.lyx.org/LyX/UserInterface#toc6 was not that helpful.
I gather I have to create copy the stdtoolbars.inc and default.ui file into my user directory, and modify them there?

If that is correct, what are the needed modifications? Looking inside the stdtoolbars.inc the syntax seems to be the following (for a toolbar that contains some symbols):

Toolbar "custom_toolbar" "Custom_toolbar"
Item "forall" "math-insert \forall"
Item "exists" "math-insert \exists"
End

So that would be a toolbar of two symbols. Should I also add the images for forall and exists in to my user directory?

What modification needs to be made in the default.ui file that I copy in my user directory. Maybe: add the following line "custom_toolbar" "on,bottom" to the end of the file (inside an already existing Toolbars...End block?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Cosm
Posts: 13
Joined: Thu Nov 07, 2013 12:53 pm

Re: How to create a custom tool bar?

Post by Cosm »

I just tried it and it seems to be working.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

How to create a custom tool bar?

Post by scottkosty »

Cosm wrote:http://wiki.lyx.org/LyX/UserInterface#toc6 was not that helpful.
Hi Cosm and welcome to the board!

It sounds like you figured your problem out. Since you did not find the wiki page useful, could you please edit it and improve it if you have the time?

Thanks,

Scott
Post Reply