Writer2LaTeX

Cara mudah mengubah file .odt (Libre Office Writer) menjadi .tex (LaTeX).

Writer2LaTeX is a utility written in java. It converts documents in OpenDocument format—in particular documents containing formulas— into other formats. It is actually a collection of four converters: Writer2LaTeX, Writer2xhtml, Writer2BibTeX, Calc2xhtml. sumber

Writer2LaTeX provides Writer export filters for LaTeX and BibTeX. This enables you to typeset your Writer documents with LaTeX, which does a better job typesetting text, in particular text with formulas. Writer2LaTeX gives you extensive control over the export of formatting. It can convert your document with as much formatting as possible preserved, or you can completely control the LaTeX code generated for each style in the source document—or even remove all formatting. sumber

Install Writer2LaTeX

  1. Download Writer2LaTeX di sini atau sini. Format filenya adalah .oxt. Versi terakhir saat tulisan ini dibuat adalah v1.4.
  2. Buka Libre Office Writer. Pastikan javascript aktif. (Cek lewat menu Tools > Options, pilih Libre Office > Advanced, contreng Use a Java runtime environment.)
  3. Klik menu Tools > Extension Manager > Add, lalu pilih file writer2latex.oxt.

Konversi file

  1. Buka file .odt
  2. Klik menu File > Export, pilih format LaTeX 2e [Writer2LaTeX] (.tex), lalu klik Save.
  3. Atur setting sesuai yang diperlukan, atau biarkan saja apa adanya (default), lalu klik Export.

Selamat mencoba, semoga bermanfaat.

Writer2LaTeX
Writer2LaTeX

Catatan:

  • File hasil konversi biasanya tidak saya pakai begitu saja, melainkan diolah lebih lanjut secara manual (atau diambil bagian teks/konten utamanya) kemudian digabung dengan file naskah LaTeX yang lain.
  • Cara ini akan efektif bila heading, subheading dst dalam dokumen .odt dibuat menggunakan fitur Styles and formatting secara konsisten. Hasilnya, heading, subheading, dan subsubheading otomatis akan diubah menjadi \section, \subsection, dan \subsubsection. Lihat contoh file .odt dan isi file latex hasil konversi.
  • Untuk menampilkan panel Styles and Formatting di Libre Office Writer, klik menu Format > Styles and formatting, atau tekan tombol F11.
  • File .odt
    File .odt

    Latex file
    Latex file

Baca juga:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s