Repository navigation
xdoc-v0.25.0
v0.25.0 - 2026/11/21
Compared with v0.23.0 (812138203), through tag v0.25.0 (838a61af6). These notes cover CLI behavior and shared engine changes used by the CLI.
- Default tab spacing in PDF/PNG increased from 36 pt to 72 pt for paragraphs without authored tab stops or a
defTabSzsetting. ExplicittabLststops anddefTabSzvalues, including0, are respected. Regenerate PDF orxdoc pptx previewoutput to check alignment on slides that rely on default tabs. - Newly authored fade exits retain their final opacity on completion. For
fade-outoreffect: "fade"withphase: "exit",set-slide-animationswritesfill="hold"onp:animEffect/p:cBhvr/p:cTn. - PDF/PNG exports now space points by elapsed days on continuous date axes in 2D line and area charts, including compatible combo layers, and fit trendlines using cached date serials. Calendar axes support the 1904 workbook epoch (
c:date1904), separate day, month, or year units for major and minor ticks and grid lines, and tick and label placement at explicit crossings.- Supported source-linked formats control date labels. Unsupported formats fall back to ISO
YYYY-MM-DD, and month and weekday names are rendered in English. - Missing dates leave gaps. A nonempty invalid or out-of-range date invalidates the layer's date coordinates. A shared axis can still use dates from other layers and omit the affected layer's points. Two valid explicit bounds can also keep a calendar axis visible without data points. Without a usable date range, rendering falls back to ordinal categories.
- Line and area layers with the same category axis ID share a calendar scale. If a bar or column layer uses that ID, those layers share ordinal category slots and ignore day-based trendline forecast offsets.
- Supported source-linked formats control date labels. Unsupported formats fall back to ISO
- Corrected PDF/PNG chart painting and value/category scaling across multiple chart families:
- Zero-length bar and column segments (such as zero values in clustered, stacked, or percent-stacked charts) no longer paint 1-point bars, fills, shadows, or outlines, while preserving categories, data labels, and minimum nonzero bar sizes.
- Bubble charts now preserve fill and outline opacity in PDF graphics state without leaking alpha to subsequent strokes or points.
- Style 10 stock charts (
upBars/downBars) now resolve theme-tinted automatic fills and theme text outlines (matching style 2 defaults) while honoring explicit fill,noFill, and line width. - Combo charts with automatic line markers use the global series theme palette for marker fills and outlines in both plots and legends, keeping explicit marker overrides and connecting line pens.
- Crowded horizontal histogram interval labels stagger into two rows when measured bin width and frame height permit (reserving the extra row in plot layout), preserving single-row layouts, explicit rotations, and existing narrow-frame fallbacks.
- Box-and-whisker charts ignore nonfinite values, derive automatic value-axis domains from visible marks only (whiskers plus mean markers and outliers only when enabled), and size box widths from the authored category gap width.
- Compact radar charts with explicit finite
min/maxbounds and no explicitmajorUnitfit radial numeric tick labels more closely when an outer partial interval leaves the rim unlabeled; explicitmajorUnitvalues remain authoritative. - 2D contour charts with centered category slots (
crossBetween="between") and no explicit plot-area outline now draw the two outer closing frame lines opposite the category and series axes. Single-interval 2D contour and 3D surface legends (linear and logarithmic) now include the terminal swatch and preserve authoredbandFmtsettings and legend-entry deletions. - 3D horizontal bar charts draw enclosing back/side wall frame strokes behind the bars based on projected face visibility (omitting edges already drawn by the floor). 3D category labels with explicit
low/highplacement honor reversed value axes, and 3D surface depth labels choose horizontal side placement from camera and projected depth direction while respecting explicit rotations and collapsed depth axes. - 2D column corner legends budget top clearance against final axis-label bands and fall back to top padding plus side reservation when reserving the full legend block above the plot would leave too little vertical room. Manual
factor-positioned plot areas clamp to keep axis-label insets inside the chart frame without distorting explicitedgefar boundaries or shrinking the authored inner plot size when the frame is exhausted. - Regenerate affected PDF or
xdoc pptx previewoutput before applying manual axis, legend, or label workarounds.
- Improved PDF/PNG text layout, Arabic/RTL shaping, mixed-script wrapping, decorations, and emoji selection:
- Arabic contextual forms and lam-alef ligatures now inform line wrapping and bidirectional layout, while preserving logical Unicode text.
- Mixed-script runs whose embedded font covers only part of the text (for example, an Arabic font missing Latin glyphs) now fall back per character to standard PDF WinAnsi fonts for missing WinAnsi letters, digits, and punctuation while keeping supported glyphs in the authored face.
- Mixed-script line wrapping keeps digits grouped across ASCII and fullwidth numeric and clock separators (including
:,:,.,,, and/, while still ending an alphanumeric identifier before a fullwidth comma) so clock times wrap as a unit, and allows a fresh Latin token after CJK closing punctuation. - Hanging list markers clamp to the frame's reading-start edge with their reserved first-line gap while preserving continuation margins. Tab stops stay aligned across hard line breaks, including RTL text on the default tab grid.
- DrawingML wavy underlines (
u="wavy") are now preserved and rendered as a bounded filled zigzag vector path in PDF output, independent of strikethrough. Superscript and subscript runs retain their authored nominal point size in the parser while PDF applies baseline scaling (0.65x, leaving0%shifts unscaled) and calibrated vertical shift at render time. - PDF text glow now uses a rounded spread kernel with calibrated blur and spread below selectable foreground text.
- Bitmap emoji in PDF can now be selected, copied, and extracted as Unicode text for sequences up to 512 UTF-16BE bytes.
- Improved OMML equation extraction and PDF vector math typesetting:
- OMML whitespace marked
xml:space="preserve"onm:t, including whitespace-only runs, is retained in rendering and exported as\spacein LaTeX. - In display equations, n-ary operators honor explicit
m:limLocvalues (undOvrfor above/below,subSupfor side limits). With no explicit setting, integrals use side limits and other large operators use above/below limits. Exported LaTeX can wrap Unicode operators in\mathop{...}with\limitsor\nolimits. Inline formulas and nested script positions can use\nolimitseven for explicitundOvr. - The LaTeX changes affect
xdoc convertwith--to json,--to md, or--to text, andxdoc extract --parts resources(resources.math[].latex). Slide titles and outlines inxdoc extract --parts mapcan also change when they contain formula text. - PDF display equations can use larger glyph variants from fallback fonts with OpenType
MATHtables. Multi-glyph assemblies remain unsupported. Short radicals keep proportional hooks, nested fractions use tighter spacing, and tall delimiters retain their stroke weight. Inline formulas use their measured width so surrounding text can wrap more accurately.
- OMML whitespace marked
- Corrected preset shape geometry, Office pattern fills, and SVG picture strokes in PDF/PNG output:
roundRectnow draws four quarter-circle corner arcs derived from the shorter side and the clamped DrawingML adjustment (0–50000, falling back to a rectangle at0).leftRightCircularArrownow dispatches to the shared circular-arrow geometry generator; both circular arrows join at exact ellipse crossings and handle collapsed zero radii.upDownArrowderives head height from the shorter side (capped at half height) and closes cleanly to a diamond when the heads meet. Malformed, underscore-containing, or nonfinitea:gdadjustment values are ignored so preset defaults stay in effect.- Pattern fills
wdUpDiag,ltDnDiag,ltUpDiag, andpct40(alongsidepct20) now match Office's physical lattice and 1pt square sample tiles, and disjoint opaque rectangular pattern cells are batched into a single PDF fill operator to avoid viewer subpixel seam thickening. - Non-scaling strokes (
vector-effect="non-scaling-stroke") in SVG pictures with explicit absolute rootwidth/height(and no inline CSS size overrides) resolve their pen in the SVG viewport before the Picture frame's anisotropic fit; responsive SVGs, converted EMF/WMF metafiles, and fill consumers retain assigned-viewport behavior.
- Development builds using the repository trust profile report a new
authContract.trustProfileSha256inxdoc schemabecause the profile adds a local SDK development issuer key. Refresh pinned digests for automation that uses those builds. Production builds derive their digest from the approved trust manifest.