change name of equation label intent

This commit is contained in:
Ulrike Fischer 2025-02-21 09:55:29 +01:00
parent 9d0b738c03
commit 0d914e2321
4 changed files with 16 additions and 4 deletions

View File

@ -4,11 +4,23 @@ All notable changes to the `luamml` package since the
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
- Ulrike Fischer, 2025-02-21
* change intent :equationlabel to :equation-label and
:noequationlabel to :no-equation-label
## 2025-02-17
### Changed
- Ulrike Fischer, 2025-02-17
* moved all patches into latex-lab
* added sockets to luamml.dtx
* changed handling of tags/labels: empty tags produces a row too and have an intent
* corrected small bugs
- Ulrike Fischer, 2024-11-29
luamml-structelemwriter.lua: moved the actualtext for e.g. stretched braces from the structure element to the mc-chunk.

View File

@ -123,7 +123,7 @@ local function write_elem(tree, stash)
end
for _, elem in ipairs(tree) do
if type(elem) ~= 'string' and not elem['tex:ignore'] then
if elem['intent']==':equationlabel' and ltx.__tag.struct.luamml.labels then
if elem['intent']==':equation-label' and ltx.__tag.struct.luamml.labels then
if #ltx.__tag.struct.luamml.labels > 0 then
-- print("CHECK LABEL STRUCTURE: ",table.serialize(elem), table.serialize(ltx.__tag.struct.luamml.labels))
local num= table.remove(ltx.__tag.struct.luamml.labels,1)

View File

@ -58,14 +58,14 @@ end
local function store_tag(xml)
local mml_row = store_get_row()
xml.intent = ':equationlabel'
xml.intent = ':equation-label'
table.insert(mml_row, 1, xml)
last_tag = nil
end
local function store_notag(xml)
local mml_row = store_get_row()
xml.intent = ':noequationlabel'
xml.intent = ':no-equation-label'
table.insert(mml_row, 1, xml)
end

View File

@ -763,7 +763,7 @@
%
% If math structure elements are created the Lbl-structure of a tag
% must be moved inside the math structure, typically as an additional column in an
% \texttt{mtable} with an intent \texttt{:equationlabel}.
% \texttt{mtable} with an intent \texttt{:equation-label} or \texttt{:no-equation-label}.
%
% The luamml-code handles this by stashing the Lbl-structure, storing the
% structure number in an array and reusing it once it creates the math structure elements.