I am using Libreoffice normally, but I need have Gauss Matrix (http://en.wikipedia.org/wiki/Gaussian_elimination) in Libreoffice . I found that Latex can do that. I installed Lyx on Ubuntu. How can I write Gauss Matrix in Lyx? Also how can I export it to Libreoffice Writer?
Please don't abandon LibreOffice just for this. You can insert LaTeX formulas directly using the TexMaths extension.
Download the extension at https://extensions.libreoffice.org/extensions/texmaths-1
Open LibreOffice Writer, go to
Tools -> Extension Manager, and select the file (*.oxt) just downloaded.
Close all instances of LibreOffice and start it again.
You'll see a new toolbar:
TexMaths supports two image formats, PNG and SVG. In practice, PNG resolution is quite poor, you need to install the
dvisvgm converter for SVG.
On Ubuntu, it's as simple as:
$ sudo apt-get install texlive-extra-utils
and on Fedora, it's:
$ sudo dnf install texlive-dvisvgm
After you install it, go to
TexMaths system configuration and provide the paths for
dvisvgm. See the screenshot below for reference:
Finally, set the preferences to use SVG by default.
The new toolbar is pretty simple, discover it by yourself. There are a few tips I would like to share to improve productivity though.
- To edit a previously inserted formula, click on the image and on the correspondent toolbar button.
- Define shortcuts in the
Shortcutstab of the
TexMathssystem configuration, I'd suggest Ctrl+h and Ctrl+k since there is no predefined shortcut for this keyboard combination in LibreOffice.
The TexMaths solution does not work if you are using the snap version of LibreOffice because it does not have permission to access the /usr/ folder. Instead I use Writer2Latex.