API Reference
Cmdlet
Save-OfficeLatex
Saves an OfficeIMO LaTeX document.
Remarks
Saves an OfficeIMO LaTeX document.
Examples
Load and save a canonical LaTeX document.
PS>
$document = Get-OfficeLatex -Path .\Article.tex
$document | Save-OfficeLatex -Path .\Article-normalized.tex -Mode Canonical
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.
Syntax
Save-OfficeLatex -Document <LatexDocument> [-LineEnding <LF|CRLF|CR>] [-Mode <Preserve|Canonical>] [-Options <LatexWriterOptions>] [-PassThru] -Path <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Document LatexDocument
- LaTeX document to save.
- LineEnding OfficeLineEnding
- Canonical line ending: LF, CRLF, or CR. Omit it to retain the source preference.
- Possible values:
LF,CRLF,CR - Mode LatexWriterMode
- Writer mode. Preserve retains unchanged source; Canonical normalizes output.
- Possible values:
Preserve,Canonical - Options LatexWriterOptions
- Optional writer settings.
- PassThru SwitchParameter
- Return the saved document.
- Path String
- Destination path.
Outputs
OfficeIMO.Latex.LatexDocument