# ConvertTo-OfficeLatexMarkdown

Converts LaTeX to Markdown with fidelity diagnostics.

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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Latex.LatexDocument`

**Outputs**

`OfficeIMO.Latex.Markdown.LatexToMarkdownResult`

**Source**

[ConvertToOfficeLatexMarkdownCommand.cs:11](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Latex/ConvertToOfficeLatexMarkdownCommand.cs#L11) 

Converts LaTeX to Markdown with fidelity diagnostics.

## Syntax

```
ConvertTo-OfficeLatexMarkdown
[-FailOnLoss]
[-Options <LatexToMarkdownOptions>]
[-OutputPath <String>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-convertto-officelatexmarkdown-switchparameter-latextomarkdownoptions-string-string)

Parameter set: `Path`

```
ConvertTo-OfficeLatexMarkdown
-Document <LatexDocument>
[-FailOnLoss]
[-Options <LatexToMarkdownOptions>]
[-OutputPath <String>]
[<CommonParameters>]
```

[#](#method-convertto-officelatexmarkdown-latexdocument-switchparameter-latextomarkdownoptions-string)

Parameter set: `Document`

## Examples

### Example 1

```powershell
ConvertTo-OfficeLatexMarkdown -Path 'C:\Path'
```

### Example 2

```powershell
ConvertTo-OfficeLatexMarkdown -Document 'Value'
```

## Parameters

**-FailOnLoss SwitchParameter optional**

Throw when a source feature cannot be mapped exactly.

**-Options LatexToMarkdownOptions optional**

Optional conversion settings.

**-OutputPath String optional**

Optional Markdown destination path.

**-Path String requiredposition: 0sets: Path**

Path to a LaTeX file.

**-Document LatexDocument requiredpipeline: True (ByValue)sets: Document**

LaTeX document to convert.

## 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:B3CDFCAD8DA28A1B7BAEE14BE06BE5086312E36D964E8CD46A3930C2F14557C0 -->
