# Save-OfficeLatex

Saves an OfficeIMO LaTeX document. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Latex.LatexDocument`

**Outputs**

`OfficeIMO.Latex.LatexDocument`

**Source**

[SaveOfficeLatexCommand.cs:16](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Latex/SaveOfficeLatexCommand.cs#L16) 

Saves an OfficeIMO LaTeX document.

## Syntax

```
Save-OfficeLatex
[-Document] <LatexDocument>
[-LineEnding <LF|CRLF|CR>]
[-Mode <Preserve|Canonical>]
[-Options <LatexWriterOptions>]
[-PassThru]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-save-officelatex-latexdocument-officelineending-latexwritermode-latexwriteroptions-switchparameter-string)

Parameter set: `All Parameter Sets`

## Examples

### Load and save a canonical LaTeX document.

```powershell
$document = Get-OfficeLatex -Path .\Article.tex
$document | Save-OfficeLatex -Path .\Article-normalized.tex -Mode Canonical
```

## Parameters

**-Document LatexDocument requiredposition: 0pipeline: True (ByValue)**

LaTeX document to save.

**-LineEnding OfficeLineEnding optional**

Canonical line ending: LF, CRLF, or CR. Omit it to retain the source preference.

Possible values: `LF`, `CRLF`, `CR`

**-Mode LatexWriterMode optional**

Writer mode. Preserve retains unchanged source; Canonical normalizes output.

Possible values: `Preserve`, `Canonical`

**-Options LatexWriterOptions optional**

Optional writer settings.

**-PassThru SwitchParameter optional**

Return the saved document.

**-Path String requiredposition: 1**

Destination path.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:D1875BA8D5826B4691F96EB1308F7CC5383AFD91E17712AB8B2F8E5D902E335A -->
