The ansi target, txt table styles, kdesc reference from ref/, typeface and table-width fixes (from dev fcec5e2e77ac)
Since the previous release: Machine::read_string() (the fs::path/std::string overload pair split); kdesc -c and -u rendered from the ref/ reflection klammerset; a fit column's tex width measured in TeX over every entry; @typeface resolving to the family its css declares (a store directory name now works in html) and hieroglyphs in @unicode_examples set in their typeface; the ansi target -- plain text with the type styles a terminal can show, identical to txt once the escape sequences are stripped -- with the txt @table carrying :header_style, :style and :hline; @block anchoring, @table spacing and the Image_quality state variable; and the rewritten doc/klammertext_for_llm.md.
This commit is contained in:
1 parent
760fda5470
commit
9b0d0d7897
34 files changed
+895
-394
No files matched your search
@@ -70,12 +70,20 @@ class Block(klammer_base.Klammer_base):
|
||||
# NOT latex_util.block(): a textblock is absolutely positioned and
|
||||
# does not participate in the normal flow, so breaking the paragraph
|
||||
# around it would move the surrounding text.
|
||||
#
|
||||
# The trailing \par\kern0pt gives the block's vbox zero depth.
|
||||
# textpos anchors :point against the box HEIGHT alone, so content
|
||||
# whose last line has depth -- an @image, whose [c] minipage sits
|
||||
# half below the baseline -- was anchored a quarter of its height
|
||||
# too low (2in for a page-high picture) until 2026-09-08.
|
||||
to_x, to_y = [float(e) for e in self.to.split()]
|
||||
pt_x, pt_y = [float(e) for e in self.point.split()]
|
||||
result = f"""
|
||||
\\begin{{textblock}}{{{self.width}}}[{pt_x},{pt_y}]({to_x},{to_y})
|
||||
\\setlength{{\\textwidth}}{{\\linewidth}}
|
||||
\\vspace*{{-1\\parskip}}
|
||||
{self.content.strip()}
|
||||
\\par\\kern0pt
|
||||
\\end{{textblock}}
|
||||
"""
|
||||
return result
|
||||
|
||||
Reference in new issue
Block a user