# LatexParseOptions

Options for dependency-free LaTeX parsing.

Class 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[LatexParseOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L21)

**Modifiers**

sealed

Options for dependency-free LaTeX parsing.

## Inheritance

- object
- LatexParseOptions

## Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [LatexParseOptions.CreateProfile](/api/latex/officeimo-latex-latexparseoptions/#method-createprofile-officeimo-latex-latexdocumentprofile)

### Accepted by parameters 7

- Method [LatexDocument.Load](/api/latex/officeimo-latex-latexdocument/#method-load-string-officeimo-latex-latexparseoptions-text-encoding) parameter `options`
- Method [LatexDocument.LoadAsync](/api/latex/officeimo-latex-latexdocument/#method-loadasync-string-officeimo-latex-latexparseoptions-text-encoding-threading-cancellationtoken) parameter `options`
- Method [LatexDocument.LoadResult](/api/latex/officeimo-latex-latexdocument/#method-loadresult-string-officeimo-latex-latexparseoptions-text-encoding) parameter `options`
- Method [LatexDocument.LoadResultAsync](/api/latex/officeimo-latex-latexdocument/#method-loadresultasync-string-officeimo-latex-latexparseoptions-text-encoding-threading-cancellationtoken) parameter `options`
- Method [LatexDocument.Parse](/api/latex/officeimo-latex-latexdocument/#method-parse-string-officeimo-latex-latexparseoptions) parameter `options`
- Method [LatexDocument.ParseResult](/api/latex/officeimo-latex-latexdocument/#method-parseresult-string-officeimo-latex-latexparseoptions) parameter `options`
- Method [LatexTokenizer.Tokenize](/api/latex/officeimo-latex-latextokenizer/#method-tokenize-string-officeimo-latex-latexparseoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public LatexParseOptions()` [#](#constructor-ctor)

[LatexParseOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L21)

## Methods

`public static LatexParseOptions CreateProfile(LatexDocumentProfile profile)` [#](#method-createprofile-officeimo-latex-latexdocumentprofile)

[LatexParseOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L27)

Creates bounded parsing options for the requested named profile.

Parameters

**profile OfficeIMO.Latex.LatexDocumentProfile required**

Returns

`LatexParseOptions`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public LatexDocumentProfile Profile { get; set; }` [#](#property-profile)

[LatexParseOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L36)

Semantic profile. Defaults to OfficeIMO.

`public int? MaxInputLength { get; set; }` [#](#property-maxinputlength)

[LatexParseOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L38)

Maximum input characters.

`public long? MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[LatexParseOptions.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L40)

Maximum encoded bytes accepted by file and stream loading APIs.

`public int MaxTokenCount { get; set; }` [#](#property-maxtokencount)

[LatexParseOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L42)

Maximum tokens.

`public int MaxNestingDepth { get; set; }` [#](#property-maxnestingdepth)

[LatexParseOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L44)

Maximum nested groups and environments.

`public ISet<string> VerbatimEnvironmentNames { get; }` [#](#property-verbatimenvironmentnames)

[LatexParseOptions.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L50)

Environment names whose bodies are opaque. Commands, comments, groups, math, and table separators inside these environments are retained as source but never interpreted semantically.

`public LatexMacroExpansion MacroExpansion { get; set; }` [#](#property-macroexpansion)

[LatexParseOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L53)

Macro expansion mode. Parsing itself never expands macros.

`public int MaxExpansionDepth { get; set; }` [#](#property-maxexpansiondepth)

[LatexParseOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L56)

Maximum recursive safe macro expansion depth.

`public int MaxExpansionLength { get; set; }` [#](#property-maxexpansionlength)

[LatexParseOptions.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L59)

Maximum characters produced by explicit safe macro expansion.

`public int MaxExpansionInputLength { get; set; }` [#](#property-maxexpansioninputlength)

[LatexParseOptions.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L62)

Maximum input characters accepted by one explicit safe macro expansion step.

`public int MaxExpansionTokenCount { get; set; }` [#](#property-maxexpansiontokencount)

[LatexParseOptions.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Parsing/LatexParseOptions.cs#L65)

Maximum tokens consumed across one explicit safe macro expansion.

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