OfficeIMO.Reader.Latex 3.4.5

Prefix Reserved
dotnet add package OfficeIMO.Reader.Latex --version 3.4.5
                    
NuGet\Install-Package OfficeIMO.Reader.Latex -Version 3.4.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Reader.Latex" Version="3.4.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Reader.Latex" Version="3.4.5" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Reader.Latex" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Reader.Latex --version 3.4.5
                    
#r "nuget: OfficeIMO.Reader.Latex, 3.4.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Reader.Latex@3.4.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Reader.Latex&version=3.4.5
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Reader.Latex&version=3.4.5
                    
Install as a Cake Tool

OfficeIMO.Reader.Latex

This modular adapter adds .tex ingestion backed by OfficeIMO.Latex. It extracts the bounded OfficeIMO profile and diagnoses preserved or simplified content; it does not compile TeX or load packages.

PreserveOnly mode carries the complete visible source, including preamble declarations, through block and whole-document chunks. Description items without a visible term retain their body without an added colon; label anchors remain available when chunks split.

using OfficeIMO.Reader;
using OfficeIMO.Reader.Latex;

OfficeDocumentReader reader = new OfficeDocumentReaderBuilder()
    .AddLatexHandler()
    .Build();
IReadOnlyList<ReaderChunk> chunks = reader.Read("article.tex").ToList();

Chunks retain source locations, heading hierarchy, block kind, Markdown projection, and parser/conversion warnings. Article, report, and book documents get ordered typed chunks for headings, paragraphs, lists (including description lists), figures with captions, tables, theorems, and math. Whole-document mode projects the same supported blocks instead of collapsing the file to paragraphs. Plain TeX or another document class receives an unrecognized-profile warning and a visible source fallback instead of empty output.

List items, definitions and quotations retain multiple paragraphs and nested block children. Footnotes include a typed reference and a separate definition body; block mode identifies the latter as SourceBlockKind = "footnote" and keeps its source heading path. Explicit TeX marks and nested-note insertions produce fidelity warnings. Split chunks keep the note text while reporting flattened layout.

Markdown-only content, such as an anchor without visible text, remains available in chunks. Metadata and preamble warnings reach the first emitted chunk once, including metadata-only and whole-document output. A figure's shared caption appears once in extracted text alongside its image paths.

When MaxChars splits content, each chunk retains literal prose, protected code or math source, and complete label anchors. Split Markdown flattens layout and formatting and reports that simplification. MaxChars bounds extracted text on a best-effort basis; Markdown escaping and code fences add carrier overhead, and an indivisible anchor or Unicode scalar may exceed a very small limit. Literal HTML in code or prose remains text; only projected LaTeX labels become anchors.

The handler enforces the smaller of Reader and native input limits for both seekable and non-seekable streams. Native loading reads the caller's stream directly and preserves its seekable position without an extra adapter snapshot. Parsing and writing remain owned by OfficeIMO.Latex.

Dependency footprint

  • External: None; no TeX runtime or compiler.
  • OfficeIMO: OfficeIMO.Reader.Core, OfficeIMO.Latex, and OfficeIMO.Latex.Markdown; parsing stays in the native LaTeX package.

See the complete OfficeIMO package map for related formats and conversion paths.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO.Reader.Latex:

Package Downloads
OfficeIMO.Reader.All

Composition-only preset for registering OfficeIMO.Reader's local format adapters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.4.5 165 10/10/2026
3.4.4 283 9/27/2026
3.4.3 297 9/12/2026
3.4.2 202 9/9/2026
3.4.1 212 9/7/2026
3.4.0 150 9/6/2026
3.3.0 147 9/2/2026
3.2.7 139 8/29/2026
3.2.6 247 8/22/2026
3.2.5 241 8/21/2026
3.2.4 240 8/19/2026
3.2.3 159 8/17/2026
3.2.2 358 8/13/2026
3.2.1 290 8/11/2026
3.2.0 425 8/7/2026
3.1.1 181 8/7/2026
3.1.0 157 8/6/2026
3.0.3 209 7/27/2026
3.0.2 169 7/26/2026
3.0.1 488 7/26/2026
Loading failed