Skip to content

Commit

Permalink
LMTX fixes
Browse files Browse the repository at this point in the history
Closes #38.
  • Loading branch information
gucci-on-fleek committed Oct 15, 2022
1 parent aa03eb9 commit 7d66935
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 33 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ All notable changes to lua-widow-control will be listed here, in reverse chronol

## Unreleased

- Fully support inserts/footnotes in LuaMetaTeX ([#38](https://github.com/gucci-on-fleek/lua-widow-control/issues/38)).

- Add support for presets in ConTeXt.

## v2.2.2 (2022-08-23)
Expand Down
8 changes: 5 additions & 3 deletions source/lua-widow-control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ elseif latex then
elseif optex then
SMALL_FONT = 7
elseif context then
SMALL_FONT = 3
SMALL_FONT = fonts.definers.define({
name = "LMRoman7-Regular",
size = tex.sp("7pt"),
})
end

--[[ Table to hold the alternate paragraph versions.
Expand Down Expand Up @@ -660,8 +663,7 @@ local function mark_inserts(head)

local insert_class
if lmtx then
-- FIXME: temporarily hardcode the main "footnote" class
insert_class = 4 -- insert.index
insert_class = insert.index
else
insert_class = insert.subtype
end
Expand Down
28 changes: 14 additions & 14 deletions tests/context/draft.mkiv.tltext

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions tests/context/draft.tltext

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/context/presets.mkiv.tltext

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/context/presets.tltext

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d66935

Please sign in to comment.