LibreOffice and Word Files: End the Formatting Fights

If you swap documents with Microsoft Office users all day, a few settings make LibreOffice save the right format, keep layouts intact and stop nagging you.

FREE$34.95UpdateStar PremiumShare a link to claimYour colleague sends a .docx, you edit it in LibreOffice, hit save, and suddenly a dialog asks whether you really want to keep the format. You click something, send the file back, and the reply comes in: "Why can't I open this?" Or the document opens fine, but the lines break differently and page three now starts in the middle of a table. LibreOffice reads and writes Microsoft Office formats very well, but its defaults are tuned for its own OpenDocument format. Five settings fix that.

Step 1: Save in Word, Excel and PowerPoint formats by default

If most of your files go to Microsoft Office users, make their formats your default, so every new document is saved the way they expect.

  1. Open Tools > Options.
  2. Go to Load/Save > General.
  3. In the Default file format and ODF settings area, pick the text document type in the Document type list.
  4. Under Always save as, choose the Microsoft Word entry that ends in .docx.
  5. Repeat for spreadsheets (the Excel entry ending in .xlsx) and presentations (the PowerPoint entry ending in .pptx), then click OK.

From now on, the save dialog suggests the Microsoft format automatically. You can still choose any other format in the File type box of File > Save As for a single document.

Step 2: Stop the "keep current format" question

Every time you save in a non-OpenDocument format, LibreOffice warns you that some formatting might not be kept. That warning is useful once and annoying the hundredth time.

  1. Open Tools > Options > Load/Save > General.
  2. Untick Warn when not saving in ODF or default format.

If you followed Step 1, Microsoft formats are now your default, so the warning wouldn't appear for them anyway. Leave the option on if you sometimes save in formats such as RTF or plain text, where formatting really can get lost.

Trick 3: Keep layouts stable with matching fonts

Many Word documents use Calibri or Cambria. If those fonts aren't installed on your PC, LibreOffice substitutes something else, and that's where shifting line and page breaks come from. LibreOffice ships with Carlito and Caladea, two free fonts designed as stand-ins for Calibri and Cambria with matching character widths. You can tell LibreOffice exactly which replacement to use.

  1. Open Tools > Options > LibreOffice > Fonts.
  2. Tick Apply replacement table.
  3. In the Font field, enter Calibri. In the Replace with field, choose Carlito.
  4. Click Apply to add the rule to the replacement table.
  5. Repeat with Cambria and Caladea, then click OK.

The best part: the replacement only affects how LibreOffice displays and prints the document. It doesn't change the font settings saved in the file, so your colleague still sees Calibri on their PC. The Always and Screen only checkboxes in each row fine-tune the behavior. Leave both empty and the font is replaced on screen and in print, but only when the original isn't installed, which is the right choice for most people.

Trick 4: Send a PDF that stays editable

Sometimes the safest way to share a document is a PDF, because it looks the same everywhere. LibreOffice can embed the full editable document inside that PDF.

  1. Choose File > Export As > Export as PDF.
  2. On the General page, tick Hybrid PDF (embed ODF file).
  3. Click Export and save the file.

Everyone else opens it as a normal PDF, while you can open the same file in LibreOffice later and keep editing. For a quick PDF without options, use File > Export As > Export Directly as PDF instead.

Trick 5: Convert a whole folder of old Office files

Got a folder full of ancient .doc and .xls files from a previous job or an old backup? Converting them one by one is tedious. The Document Converter wizard does them all in one go.

  1. Choose File > Wizards > Document Converter.
  2. Choose the Microsoft Office option and select which document types you want to convert.
  3. Choose the source folder and a target folder for the converted files.
  4. Follow the wizard to the end.

The wizard copies and converts the files into OpenDocument format, so your originals stay untouched.

Bonus: Make LibreOffice open Office files on double-click

If double-clicking a .docx still launches another app, change the file association in Windows. In File Explorer, right-click a file of that type, choose Open with > Choose another app, select LibreOffice, and make sure Always use this app is ticked.

A word on macros

Excel and Word files with VBA macros are a classic way to sneak malware onto a PC. LibreOffice's macro settings live under Tools > Options > Load/Save > VBA Properties. With Executable code unticked, VBA code is commented out so you can inspect it, but it won't run. Only enable it for files you trust.

Our verdict

LibreOffice is a fully capable partner for Microsoft Office files once you stop fighting its defaults. Home users, students, freelancers and small offices that exchange documents with Word and Excel users benefit most. Do one thing today: set Always save as to the Microsoft formats and add the Calibri to Carlito rule, and those formatting fights are history.

Related on UpdateStar

about author