@unified-latex/unified-latex-ctan
Advanced tools
Comparing version 1.0.7 to 1.0.8
175
index.js
@@ -45,5 +45,39 @@ var __defProp = Object.defineProperty; | ||
import { arg } from "@unified-latex/unified-latex-builder"; | ||
import { match as match6 } from "@unified-latex/unified-latex-util-match"; | ||
import { updateRenderInfo } from "@unified-latex/unified-latex-util-render-info"; | ||
// ../unified-latex-util-replace/dist/index.js | ||
import { visit } from "@unified-latex/unified-latex-util-visit"; | ||
import { match as match5 } from "@unified-latex/unified-latex-util-match"; | ||
import { trimEnd as trimEnd3, trimStart as trimStart4 } from "@unified-latex/unified-latex-util-trim"; | ||
import { visit as visit2 } from "@unified-latex/unified-latex-util-visit"; | ||
import { match as match4 } from "@unified-latex/unified-latex-util-match"; | ||
import { | ||
splitOnCondition, | ||
unsplitOnMacro | ||
} from "@unified-latex/unified-latex-util-split"; | ||
import { | ||
trim, | ||
trimEnd as trimEnd2, | ||
trimStart as trimStart3 | ||
} from "@unified-latex/unified-latex-util-trim"; | ||
import { match } from "@unified-latex/unified-latex-util-match"; | ||
import { trimEnd, trimStart as trimStart2 } from "@unified-latex/unified-latex-util-trim"; | ||
import { match as match2 } from "@unified-latex/unified-latex-util-match"; | ||
import { trimStart } from "@unified-latex/unified-latex-util-trim"; | ||
import { match as match3 } from "@unified-latex/unified-latex-util-match"; | ||
function lastSignificantNodeIndex(nodes, parbreaksAreInsignificant) { | ||
for (let i = nodes.length - 1; i >= 0; i--) { | ||
const node = nodes[i]; | ||
if (match.whitespace(node) || match.comment(node) || parbreaksAreInsignificant && match.parbreak(node)) { | ||
continue; | ||
} | ||
return i; | ||
} | ||
return void 0; | ||
} | ||
// utils/enumerate.ts | ||
import { splitOnMacro } from "@unified-latex/unified-latex-util-split"; | ||
import { trim } from "@unified-latex/unified-latex-util-trim"; | ||
import { trim as trim2, trimEnd as trimEnd4 } from "@unified-latex/unified-latex-util-trim"; | ||
function cleanEnumerateBody(ast, itemName = "item") { | ||
@@ -53,3 +87,7 @@ let { segments, macros: macros13 } = splitOnMacro(ast, itemName); | ||
const segment = segments[i]; | ||
trim(segment); | ||
if (i === 0) { | ||
trimEnd4(segment); | ||
} else { | ||
trim2(segment); | ||
} | ||
if (segment.length > 0 && i > 0) { | ||
@@ -59,17 +97,46 @@ segment.unshift({ type: "whitespace" }); | ||
} | ||
let body = macros13.map((node, i) => { | ||
let insertParbreakBefore = /* @__PURE__ */ new WeakSet(); | ||
let body = macros13.flatMap((node, i) => { | ||
var _a; | ||
const segment = segments[i + 1]; | ||
const trailingComments = popTrailingComments(segment); | ||
node.args = node.args || []; | ||
node.args.push(arg(segment, { openMark: "", closeMark: "" })); | ||
updateRenderInfo(node, { inParMode: true }); | ||
return node; | ||
if (i > 0 || ((_a = segments[0]) == null ? void 0 : _a.length) > 0) { | ||
insertParbreakBefore.add(node); | ||
} | ||
return [node, ...trailingComments]; | ||
}); | ||
if (segments[0].length === 0) { | ||
body = body.flatMap((macro, i) => i === 0 ? macro : [{ type: "parbreak" }, macro]); | ||
} else { | ||
body = body.flatMap((macro) => [{ type: "parbreak" }, macro]); | ||
body = body.flatMap((node) => insertParbreakBefore.has(node) ? [{ type: "parbreak" }, node] : node); | ||
body.unshift(...segments[0]); | ||
for (let i = 0; i < body.length - 1; i++) { | ||
const node = body[i]; | ||
const nextNode = body[i + 1]; | ||
if (!match6.parbreak(nextNode)) { | ||
continue; | ||
} | ||
if (match6.comment(node)) { | ||
node.suffixParbreak = true; | ||
} | ||
if (match6.macro(node) && node.args && node.args[node.args.length - 1].closeMark === "") { | ||
const args = node.args[node.args.length - 1].content; | ||
const lastArg = args[args.length - 1]; | ||
if (match6.comment(lastArg)) { | ||
lastArg.suffixParbreak = true; | ||
} | ||
} | ||
} | ||
body.unshift(...segments[0]); | ||
return body; | ||
} | ||
function popTrailingComments(nodes) { | ||
let lastNodeIndex = lastSignificantNodeIndex(nodes, true); | ||
if (lastNodeIndex === nodes.length - 1 || lastNodeIndex == null && nodes.length === 0) { | ||
return []; | ||
} | ||
if (lastNodeIndex == null) { | ||
lastNodeIndex = -1; | ||
} | ||
return nodes.splice(lastNodeIndex + 1); | ||
} | ||
@@ -178,3 +245,3 @@ // package/exam/provides.ts | ||
// package/latex2e/provides.ts | ||
import { trim as trim2 } from "@unified-latex/unified-latex-util-trim"; | ||
import { trim as trim3 } from "@unified-latex/unified-latex-util-trim"; | ||
var macros5 = { | ||
@@ -333,2 +400,6 @@ "\\": { signature: "!s o" }, | ||
footnotetext: { signature: "o m", renderInfo: { inParMode: true } }, | ||
caption: { | ||
signature: "o m", | ||
renderInfo: { inParMode: true, breakAround: true } | ||
}, | ||
sqrt: { signature: "o m", renderInfo: { inMathMode: true } }, | ||
@@ -338,9 +409,22 @@ frac: { signature: "m m", renderInfo: { inMathMode: true } }, | ||
ensuremath: { signature: "m", renderInfo: { inMathMode: true } }, | ||
abstract: { | ||
signature: "m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
maketitle: { renderInfo: { breakAround: true } }, | ||
doublespacing: { renderInfo: { breakAround: true } }, | ||
singlespacing: { renderInfo: { breakAround: true } }, | ||
author: { signature: "m", renderInfo: { breakAround: true } }, | ||
author: { | ||
signature: "m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
date: { signature: "m", renderInfo: { breakAround: true } }, | ||
thanks: { signature: "m", renderInfo: { breakAround: true } }, | ||
title: { signature: "m", renderInfo: { breakAround: true } }, | ||
thanks: { | ||
signature: "m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
title: { | ||
signature: "o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
pagenumbering: { signature: "m", renderInfo: { breakAround: true } }, | ||
@@ -358,14 +442,35 @@ pagestyle: { signature: "m", renderInfo: { breakAround: true } }, | ||
rule: { signature: "o m m" }, | ||
part: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
chapter: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
section: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
subsection: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
subsubsection: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
paragraph: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
subparagraph: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
appendix: { renderInfo: { breakAround: true } }, | ||
frontmatter: { renderInfo: { breakAround: true } }, | ||
mainmatter: { renderInfo: { breakAround: true } }, | ||
backmatter: { renderInfo: { breakAround: true } }, | ||
bibitem: { signature: "o m" }, | ||
part: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
chapter: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
section: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
subsection: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
subsubsection: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
paragraph: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
subparagraph: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
appendix: { renderInfo: { breakAround: true, inParMode: true } }, | ||
frontmatter: { renderInfo: { breakAround: true, inParMode: true } }, | ||
mainmatter: { renderInfo: { breakAround: true, inParMode: true } }, | ||
backmatter: { renderInfo: { breakAround: true, inParMode: true } }, | ||
bibitem: { signature: "o m", renderInfo: { hangingIndent: true } }, | ||
cite: { signature: "o m" }, | ||
@@ -399,4 +504,3 @@ textrm: { signature: "m", renderInfo: { inParMode: true } }, | ||
bibliography: { signature: "m", renderInfo: { breakAround: true } }, | ||
bibliographystyle: { signature: "m", renderInfo: { breakAround: true } }, | ||
caption: { signature: "m", renderInfo: { breakAround: true } } | ||
bibliographystyle: { signature: "m", renderInfo: { breakAround: true } } | ||
}; | ||
@@ -406,3 +510,3 @@ var environments5 = { | ||
processContent: (nodes) => { | ||
trim2(nodes); | ||
trim3(nodes); | ||
return nodes; | ||
@@ -431,3 +535,6 @@ } | ||
"tabular*": { signature: "m o m", renderInfo: { alignContent: true } }, | ||
thebibliography: { signature: "m" }, | ||
thebibliography: { | ||
signature: "m", | ||
processContent: (nodes) => cleanEnumerateBody(nodes, "bibitem") | ||
}, | ||
math: { renderInfo: { inMathMode: true } } | ||
@@ -630,2 +737,3 @@ }; | ||
align: { renderInfo: { inMathMode: true, alignContent: true } }, | ||
aligned: { renderInfo: { inMathMode: true, alignContent: true } }, | ||
"alignat*": { renderInfo: { inMathMode: true, alignContent: true } }, | ||
@@ -649,3 +757,4 @@ alignat: { renderInfo: { inMathMode: true, alignContent: true } }, | ||
remark: { signature: "!o" }, | ||
example: { signature: "!o" } | ||
example: { signature: "!o" }, | ||
proof: { signature: "o" } | ||
}; | ||
@@ -748,3 +857,3 @@ | ||
// package/systeme/libs/parser.ts | ||
import { match } from "@unified-latex/unified-latex-util-match"; | ||
import { match as match7 } from "@unified-latex/unified-latex-util-match"; | ||
import { decorateArrayForPegjs } from "@unified-latex/unified-latex-util-pegjs"; | ||
@@ -758,3 +867,3 @@ import { SystemePegParser } from "@unified-latex/unified-latex-util-pegjs"; | ||
import { printRaw } from "@unified-latex/unified-latex-util-print-raw"; | ||
import { match as match2 } from "@unified-latex/unified-latex-util-match"; | ||
import { match as match8 } from "@unified-latex/unified-latex-util-match"; | ||
import { arrayJoin } from "@unified-latex/unified-latex-util-split"; | ||
@@ -779,3 +888,3 @@ | ||
import { deleteComments } from "@unified-latex/unified-latex-util-comments"; | ||
import { visit } from "@unified-latex/unified-latex-util-visit"; | ||
import { visit as visit3 } from "@unified-latex/unified-latex-util-visit"; | ||
import { updateRenderInfo as updateRenderInfo2 } from "@unified-latex/unified-latex-util-render-info"; | ||
@@ -782,0 +891,0 @@ import { getArgsContent } from "@unified-latex/unified-latex-util-arguments"; |
{ | ||
"name": "@unified-latex/unified-latex-ctan", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "unified-latex tools relating to specific CTAN packages", | ||
@@ -8,13 +8,13 @@ "main": "index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-builder": "^1.0.7", | ||
"@unified-latex/unified-latex-builder": "^1.0.8", | ||
"@unified-latex/unified-latex-types": "^1.0.7", | ||
"@unified-latex/unified-latex-util-arguments": "^1.0.7", | ||
"@unified-latex/unified-latex-util-comments": "^1.0.7", | ||
"@unified-latex/unified-latex-util-match": "^1.0.7", | ||
"@unified-latex/unified-latex-util-pegjs": "^1.0.7", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.0.7", | ||
"@unified-latex/unified-latex-util-render-info": "^1.0.7", | ||
"@unified-latex/unified-latex-util-split": "^1.0.7", | ||
"@unified-latex/unified-latex-util-trim": "^1.0.7", | ||
"@unified-latex/unified-latex-util-visit": "^1.0.7", | ||
"@unified-latex/unified-latex-util-arguments": "^1.0.8", | ||
"@unified-latex/unified-latex-util-comments": "^1.0.8", | ||
"@unified-latex/unified-latex-util-match": "^1.0.8", | ||
"@unified-latex/unified-latex-util-pegjs": "^1.0.8", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.0.8", | ||
"@unified-latex/unified-latex-util-render-info": "^1.0.8", | ||
"@unified-latex/unified-latex-util-split": "^1.0.8", | ||
"@unified-latex/unified-latex-util-trim": "^1.0.8", | ||
"@unified-latex/unified-latex-util-visit": "^1.0.8", | ||
"color": "^4.2.3" | ||
@@ -21,0 +21,0 @@ }, |
// utils/enumerate.ts | ||
import { arg } from "@unified-latex/unified-latex-builder"; | ||
import { match as match6 } from "@unified-latex/unified-latex-util-match"; | ||
import { updateRenderInfo } from "@unified-latex/unified-latex-util-render-info"; | ||
// ../unified-latex-util-replace/dist/index.js | ||
import { visit } from "@unified-latex/unified-latex-util-visit"; | ||
import { match as match5 } from "@unified-latex/unified-latex-util-match"; | ||
import { trimEnd as trimEnd3, trimStart as trimStart4 } from "@unified-latex/unified-latex-util-trim"; | ||
import { visit as visit2 } from "@unified-latex/unified-latex-util-visit"; | ||
import { match as match4 } from "@unified-latex/unified-latex-util-match"; | ||
import { | ||
splitOnCondition, | ||
unsplitOnMacro | ||
} from "@unified-latex/unified-latex-util-split"; | ||
import { | ||
trim, | ||
trimEnd as trimEnd2, | ||
trimStart as trimStart3 | ||
} from "@unified-latex/unified-latex-util-trim"; | ||
import { match } from "@unified-latex/unified-latex-util-match"; | ||
import { trimEnd, trimStart as trimStart2 } from "@unified-latex/unified-latex-util-trim"; | ||
import { match as match2 } from "@unified-latex/unified-latex-util-match"; | ||
import { trimStart } from "@unified-latex/unified-latex-util-trim"; | ||
import { match as match3 } from "@unified-latex/unified-latex-util-match"; | ||
function lastSignificantNodeIndex(nodes, parbreaksAreInsignificant) { | ||
for (let i = nodes.length - 1; i >= 0; i--) { | ||
const node = nodes[i]; | ||
if (match.whitespace(node) || match.comment(node) || parbreaksAreInsignificant && match.parbreak(node)) { | ||
continue; | ||
} | ||
return i; | ||
} | ||
return void 0; | ||
} | ||
// utils/enumerate.ts | ||
import { splitOnMacro } from "@unified-latex/unified-latex-util-split"; | ||
import { trim } from "@unified-latex/unified-latex-util-trim"; | ||
import { trim as trim2, trimEnd as trimEnd4 } from "@unified-latex/unified-latex-util-trim"; | ||
function cleanEnumerateBody(ast, itemName = "item") { | ||
@@ -10,3 +44,7 @@ let { segments, macros: macros2 } = splitOnMacro(ast, itemName); | ||
const segment = segments[i]; | ||
trim(segment); | ||
if (i === 0) { | ||
trimEnd4(segment); | ||
} else { | ||
trim2(segment); | ||
} | ||
if (segment.length > 0 && i > 0) { | ||
@@ -16,17 +54,46 @@ segment.unshift({ type: "whitespace" }); | ||
} | ||
let body = macros2.map((node, i) => { | ||
let insertParbreakBefore = /* @__PURE__ */ new WeakSet(); | ||
let body = macros2.flatMap((node, i) => { | ||
var _a; | ||
const segment = segments[i + 1]; | ||
const trailingComments = popTrailingComments(segment); | ||
node.args = node.args || []; | ||
node.args.push(arg(segment, { openMark: "", closeMark: "" })); | ||
updateRenderInfo(node, { inParMode: true }); | ||
return node; | ||
if (i > 0 || ((_a = segments[0]) == null ? void 0 : _a.length) > 0) { | ||
insertParbreakBefore.add(node); | ||
} | ||
return [node, ...trailingComments]; | ||
}); | ||
if (segments[0].length === 0) { | ||
body = body.flatMap((macro, i) => i === 0 ? macro : [{ type: "parbreak" }, macro]); | ||
} else { | ||
body = body.flatMap((macro) => [{ type: "parbreak" }, macro]); | ||
body = body.flatMap((node) => insertParbreakBefore.has(node) ? [{ type: "parbreak" }, node] : node); | ||
body.unshift(...segments[0]); | ||
for (let i = 0; i < body.length - 1; i++) { | ||
const node = body[i]; | ||
const nextNode = body[i + 1]; | ||
if (!match6.parbreak(nextNode)) { | ||
continue; | ||
} | ||
if (match6.comment(node)) { | ||
node.suffixParbreak = true; | ||
} | ||
if (match6.macro(node) && node.args && node.args[node.args.length - 1].closeMark === "") { | ||
const args = node.args[node.args.length - 1].content; | ||
const lastArg = args[args.length - 1]; | ||
if (match6.comment(lastArg)) { | ||
lastArg.suffixParbreak = true; | ||
} | ||
} | ||
} | ||
body.unshift(...segments[0]); | ||
return body; | ||
} | ||
function popTrailingComments(nodes) { | ||
let lastNodeIndex = lastSignificantNodeIndex(nodes, true); | ||
if (lastNodeIndex === nodes.length - 1 || lastNodeIndex == null && nodes.length === 0) { | ||
return []; | ||
} | ||
if (lastNodeIndex == null) { | ||
lastNodeIndex = -1; | ||
} | ||
return nodes.splice(lastNodeIndex + 1); | ||
} | ||
@@ -33,0 +100,0 @@ // package/exam/provides.ts |
// package/latex2e/provides.ts | ||
import { trim as trim2 } from "@unified-latex/unified-latex-util-trim"; | ||
import { trim as trim3 } from "@unified-latex/unified-latex-util-trim"; | ||
// utils/enumerate.ts | ||
import { arg } from "@unified-latex/unified-latex-builder"; | ||
import { match as match6 } from "@unified-latex/unified-latex-util-match"; | ||
import { updateRenderInfo } from "@unified-latex/unified-latex-util-render-info"; | ||
// ../unified-latex-util-replace/dist/index.js | ||
import { visit } from "@unified-latex/unified-latex-util-visit"; | ||
import { match as match5 } from "@unified-latex/unified-latex-util-match"; | ||
import { trimEnd as trimEnd3, trimStart as trimStart4 } from "@unified-latex/unified-latex-util-trim"; | ||
import { visit as visit2 } from "@unified-latex/unified-latex-util-visit"; | ||
import { match as match4 } from "@unified-latex/unified-latex-util-match"; | ||
import { | ||
splitOnCondition, | ||
unsplitOnMacro | ||
} from "@unified-latex/unified-latex-util-split"; | ||
import { | ||
trim, | ||
trimEnd as trimEnd2, | ||
trimStart as trimStart3 | ||
} from "@unified-latex/unified-latex-util-trim"; | ||
import { match } from "@unified-latex/unified-latex-util-match"; | ||
import { trimEnd, trimStart as trimStart2 } from "@unified-latex/unified-latex-util-trim"; | ||
import { match as match2 } from "@unified-latex/unified-latex-util-match"; | ||
import { trimStart } from "@unified-latex/unified-latex-util-trim"; | ||
import { match as match3 } from "@unified-latex/unified-latex-util-match"; | ||
function lastSignificantNodeIndex(nodes, parbreaksAreInsignificant) { | ||
for (let i = nodes.length - 1; i >= 0; i--) { | ||
const node = nodes[i]; | ||
if (match.whitespace(node) || match.comment(node) || parbreaksAreInsignificant && match.parbreak(node)) { | ||
continue; | ||
} | ||
return i; | ||
} | ||
return void 0; | ||
} | ||
// utils/enumerate.ts | ||
import { splitOnMacro } from "@unified-latex/unified-latex-util-split"; | ||
import { trim } from "@unified-latex/unified-latex-util-trim"; | ||
import { trim as trim2, trimEnd as trimEnd4 } from "@unified-latex/unified-latex-util-trim"; | ||
function cleanEnumerateBody(ast, itemName = "item") { | ||
@@ -13,3 +47,7 @@ let { segments, macros: macros2 } = splitOnMacro(ast, itemName); | ||
const segment = segments[i]; | ||
trim(segment); | ||
if (i === 0) { | ||
trimEnd4(segment); | ||
} else { | ||
trim2(segment); | ||
} | ||
if (segment.length > 0 && i > 0) { | ||
@@ -19,17 +57,46 @@ segment.unshift({ type: "whitespace" }); | ||
} | ||
let body = macros2.map((node, i) => { | ||
let insertParbreakBefore = /* @__PURE__ */ new WeakSet(); | ||
let body = macros2.flatMap((node, i) => { | ||
var _a; | ||
const segment = segments[i + 1]; | ||
const trailingComments = popTrailingComments(segment); | ||
node.args = node.args || []; | ||
node.args.push(arg(segment, { openMark: "", closeMark: "" })); | ||
updateRenderInfo(node, { inParMode: true }); | ||
return node; | ||
if (i > 0 || ((_a = segments[0]) == null ? void 0 : _a.length) > 0) { | ||
insertParbreakBefore.add(node); | ||
} | ||
return [node, ...trailingComments]; | ||
}); | ||
if (segments[0].length === 0) { | ||
body = body.flatMap((macro, i) => i === 0 ? macro : [{ type: "parbreak" }, macro]); | ||
} else { | ||
body = body.flatMap((macro) => [{ type: "parbreak" }, macro]); | ||
body = body.flatMap((node) => insertParbreakBefore.has(node) ? [{ type: "parbreak" }, node] : node); | ||
body.unshift(...segments[0]); | ||
for (let i = 0; i < body.length - 1; i++) { | ||
const node = body[i]; | ||
const nextNode = body[i + 1]; | ||
if (!match6.parbreak(nextNode)) { | ||
continue; | ||
} | ||
if (match6.comment(node)) { | ||
node.suffixParbreak = true; | ||
} | ||
if (match6.macro(node) && node.args && node.args[node.args.length - 1].closeMark === "") { | ||
const args = node.args[node.args.length - 1].content; | ||
const lastArg = args[args.length - 1]; | ||
if (match6.comment(lastArg)) { | ||
lastArg.suffixParbreak = true; | ||
} | ||
} | ||
} | ||
body.unshift(...segments[0]); | ||
return body; | ||
} | ||
function popTrailingComments(nodes) { | ||
let lastNodeIndex = lastSignificantNodeIndex(nodes, true); | ||
if (lastNodeIndex === nodes.length - 1 || lastNodeIndex == null && nodes.length === 0) { | ||
return []; | ||
} | ||
if (lastNodeIndex == null) { | ||
lastNodeIndex = -1; | ||
} | ||
return nodes.splice(lastNodeIndex + 1); | ||
} | ||
@@ -190,2 +257,6 @@ // package/latex2e/provides.ts | ||
footnotetext: { signature: "o m", renderInfo: { inParMode: true } }, | ||
caption: { | ||
signature: "o m", | ||
renderInfo: { inParMode: true, breakAround: true } | ||
}, | ||
sqrt: { signature: "o m", renderInfo: { inMathMode: true } }, | ||
@@ -195,9 +266,22 @@ frac: { signature: "m m", renderInfo: { inMathMode: true } }, | ||
ensuremath: { signature: "m", renderInfo: { inMathMode: true } }, | ||
abstract: { | ||
signature: "m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
maketitle: { renderInfo: { breakAround: true } }, | ||
doublespacing: { renderInfo: { breakAround: true } }, | ||
singlespacing: { renderInfo: { breakAround: true } }, | ||
author: { signature: "m", renderInfo: { breakAround: true } }, | ||
author: { | ||
signature: "m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
date: { signature: "m", renderInfo: { breakAround: true } }, | ||
thanks: { signature: "m", renderInfo: { breakAround: true } }, | ||
title: { signature: "m", renderInfo: { breakAround: true } }, | ||
thanks: { | ||
signature: "m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
title: { | ||
signature: "o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
pagenumbering: { signature: "m", renderInfo: { breakAround: true } }, | ||
@@ -215,14 +299,35 @@ pagestyle: { signature: "m", renderInfo: { breakAround: true } }, | ||
rule: { signature: "o m m" }, | ||
part: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
chapter: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
section: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
subsection: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
subsubsection: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
paragraph: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
subparagraph: { signature: "s o m", renderInfo: { breakAround: true } }, | ||
appendix: { renderInfo: { breakAround: true } }, | ||
frontmatter: { renderInfo: { breakAround: true } }, | ||
mainmatter: { renderInfo: { breakAround: true } }, | ||
backmatter: { renderInfo: { breakAround: true } }, | ||
bibitem: { signature: "o m" }, | ||
part: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
chapter: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
section: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
subsection: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
subsubsection: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
paragraph: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
subparagraph: { | ||
signature: "s o m", | ||
renderInfo: { breakAround: true, inParMode: true } | ||
}, | ||
appendix: { renderInfo: { breakAround: true, inParMode: true } }, | ||
frontmatter: { renderInfo: { breakAround: true, inParMode: true } }, | ||
mainmatter: { renderInfo: { breakAround: true, inParMode: true } }, | ||
backmatter: { renderInfo: { breakAround: true, inParMode: true } }, | ||
bibitem: { signature: "o m", renderInfo: { hangingIndent: true } }, | ||
cite: { signature: "o m" }, | ||
@@ -256,4 +361,3 @@ textrm: { signature: "m", renderInfo: { inParMode: true } }, | ||
bibliography: { signature: "m", renderInfo: { breakAround: true } }, | ||
bibliographystyle: { signature: "m", renderInfo: { breakAround: true } }, | ||
caption: { signature: "m", renderInfo: { breakAround: true } } | ||
bibliographystyle: { signature: "m", renderInfo: { breakAround: true } } | ||
}; | ||
@@ -263,3 +367,3 @@ var environments = { | ||
processContent: (nodes) => { | ||
trim2(nodes); | ||
trim3(nodes); | ||
return nodes; | ||
@@ -288,3 +392,6 @@ } | ||
"tabular*": { signature: "m o m", renderInfo: { alignContent: true } }, | ||
thebibliography: { signature: "m" }, | ||
thebibliography: { | ||
signature: "m", | ||
processContent: (nodes) => cleanEnumerateBody(nodes, "bibitem") | ||
}, | ||
math: { renderInfo: { inMathMode: true } } | ||
@@ -291,0 +398,0 @@ }; |
@@ -185,2 +185,3 @@ // package/mathtools/provides.ts | ||
align: { renderInfo: { inMathMode: true, alignContent: true } }, | ||
aligned: { renderInfo: { inMathMode: true, alignContent: true } }, | ||
"alignat*": { renderInfo: { inMathMode: true, alignContent: true } }, | ||
@@ -204,3 +205,4 @@ alignat: { renderInfo: { inMathMode: true, alignContent: true } }, | ||
remark: { signature: "!o" }, | ||
example: { signature: "!o" } | ||
example: { signature: "!o" }, | ||
proof: { signature: "o" } | ||
}; | ||
@@ -207,0 +209,0 @@ export { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1010277
5006