Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeLatex

Module
PSWriteOffice
Inputs
OfficeIMO.Latex.LatexDocument
Outputs
OfficeIMO.Latex.LatexDocument

Saves an OfficeIMO LaTeX document.

Syntax

Save-OfficeLatex
-Document <LatexDocument>
[-LineEnding <LF|CRLF|CR>]
[-Mode <Preserve|Canonical>]
[-PassThru]
[-Path] <String>
[<CommonParameters>]
#
Parameter set: Document

Examples

Load and save a canonical LaTeX document.

$document = Open-OfficeLatex -Path .\Article.tex
$document | Save-OfficeLatex -Path .\Article-normalized.tex -Mode Canonical

Parameters

-Document LatexDocument requiredpipeline: 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
-PassThru SwitchParameter optional
Return the saved document.
-Path String requiredposition: 0
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.