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?
[Tex/LaTex] How to insert LaTeX formulas in LibreOffice
lyxopen-officetools
Related Solutions
I implemented this for a large R&D lab. We produced several hundred (if not thousand) documents per year, and the LaTeX Users' community there wanted to be able to produce documents using 'tex as well as WYSIWYG software.
The OP was right in that a well-defined workflow is essential. Part of this is the process, but you may also need to think about training and using a common repository, and how to implement corporate design.
Process
We implemented a process that allowed people to work in LaTeX and then switch to .docx for collaborators.
- Define a class file that contains the correct formatting, etc, using article, report or book classes. Include the minimum number of up-to-date packages in the class and add the
nag
package to make sure that you (and other users) can see that those packages are not deprecated. - Create a template showing how to use the class file
- Create an SVN (or git, or whatever) repository for the class and template files, and distribute the URL of the repository to LaTeX users
- Create documents using the lab-standard class file
- Convert the tex files to .docx using Pandoc, which works on Windows, Mac, and Linux
- Get edits and peer reviews done on the .docx
- Transfer edits from the .doc or .docx document back in to 'tex manually, and complete the PDF production in LaTeX.
- Tagging the document using Adobe Acrobat for Section 508 compliance (accessibility).
N.B. Using one of the web-based editors like sharelatex.com or overleaf.com can remove the need for 5-7, especially now that they have rather good review tools.
Challenges
There were a couple of challenges we had to face to get this adopted.
- Getting the editors and reviewers something that fit with their existing process, hence the use of the .docx format
- Figuring out how to get the same class file(s) to all users, hence the SVN repository
- Making sure people know how to use it, hence the template
- Figuring out tools that let people collaborate. But that's a whole other post!
508 Compliance / Structured PDFs
The one thing that is still causing trouble is 508-compliance. I have been working (slowly) on using the pdfcomment
package to add tooltips and modifying the accessibility
package so that documents are accessible. My test PDF documents sometimes pass automated testing in Adobe Acrobat...
Repository
I've put a set of demo documents in a Github repository which may be helpful.
Note re. Pandoc
3 Dec 2017: Originally I suggested the use of latex2rtf instead of Pandoc. I am now editting this answer to suggest Pandoc as I find Pandoc is kept up to date, works well, and I like the flexibility to choose from many more input and output file types.
To add a logo to the titlepage, you can use the \titlegraphic
command in the preamble. Go to Document --> Settings --> LaTeX preamble and add
\titlegraphic{\includegraphics{uni-logo-filename}}
However, this can also be done from within the GUI. Add a new line after the author(s), and choose TitleGraphic
from the drop down menu in the top left. Then you can add the logo as you normally add images, by clicking .
For me, this placed the logo at the bottom of the page. If the same happens for you, you probably have to redefine the title page
template. Stefan Kottwitz provides the basic idea in How to customize \titlepage in beamer?
Copy the \defbeamertemplate
part to your LaTeX preamble in Document --> Settings, and change it to suit your needs. I'm not sure exactly what you want to have, but the following produced something very similar to the template, only with the logo between the authors and the affiliations.
\defbeamertemplate*{title page}{customized}[1][]
{\centering
\setbeamercolor{title}{bg=blue,fg=white}
\begin{beamercolorbox}[rounded=true,shadow=true,sep=5pt,center]{title}
\usebeamerfont{title}\inserttitle\par
\usebeamerfont{subtitle}\insertsubtitle
\end{beamercolorbox} \par\medskip
\usebeamerfont{author}\insertauthor\par\medskip
\inserttitlegraphic \par\medskip
\usebeamerfont{institute}\insertinstitute\par\medskip
\setbeamerfont{date}{size=\large}
\usebeamerfont{date}\insertdate\par
}
Best Answer
Please don't abandon LibreOffice just for this. You can insert LaTeX formulas directly using the TexMaths extension.
Installation:
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:
Configuration:
TexMaths
supports two image formats, PNG and SVG. In practice, PNG resolution is quite poor, you need to install thedvisvgm
converter for SVG.On Ubuntu, it's as simple as:
and on Fedora, it's:
After you install it, go to
TexMaths
system configuration and provide the paths forlatex
,dvipng
anddvisvgm
. See the screenshot below for reference:Finally, set the preferences to use SVG by default.
Usage:
The new toolbar is pretty simple, discover it by yourself. There are a few tips I would like to share to improve productivity though.
Shortcuts
tab of theTexMaths
system configuration, I'd suggest Ctrl+h and Ctrl+k since there is no predefined shortcut for this keyboard combination in LibreOffice.