From 23ddd014720f539d946561d2c180134474c448a5 Mon Sep 17 00:00:00 2001 From: Bo-Y-G Date: Thu, 11 Jul 2024 17:56:27 +0000 Subject: [PATCH 1/2] Modified amsart macros --- .../package/amsart/index.ts | 1 + .../package/amsart/provides.ts | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 packages/unified-latex-ctan/package/amsart/index.ts create mode 100644 packages/unified-latex-ctan/package/amsart/provides.ts diff --git a/packages/unified-latex-ctan/package/amsart/index.ts b/packages/unified-latex-ctan/package/amsart/index.ts new file mode 100644 index 00000000..2abbd054 --- /dev/null +++ b/packages/unified-latex-ctan/package/amsart/index.ts @@ -0,0 +1 @@ +export * from "./provides"; diff --git a/packages/unified-latex-ctan/package/amsart/provides.ts b/packages/unified-latex-ctan/package/amsart/provides.ts new file mode 100644 index 00000000..f2153281 --- /dev/null +++ b/packages/unified-latex-ctan/package/amsart/provides.ts @@ -0,0 +1,29 @@ +import { + MacroInfoRecord, + EnvInfoRecord, +} from "@unified-latex/unified-latex-types"; + +export const macros: MacroInfoRecord = { + author: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + }, + address: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + }, + curraddr: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + }, + email: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + }, + urladdr: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + } +} + +export const environments: EnvInfoRecord = {}; From aa8ca17c09089e5c95a387136dadd5c0159d30cd Mon Sep 17 00:00:00 2001 From: Bo-Y-G Date: Thu, 18 Jul 2024 04:44:24 +0000 Subject: [PATCH 2/2] Added amsart to ctan packages, and removed repeated macros from latex2e --- packages/unified-latex-ctan/index.ts | 3 +++ packages/unified-latex-ctan/package/amsart/provides.ts | 4 ++++ packages/unified-latex-ctan/package/latex2e/provides.ts | 9 --------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/unified-latex-ctan/index.ts b/packages/unified-latex-ctan/index.ts index 42ca6a8d..e30bf2d8 100644 --- a/packages/unified-latex-ctan/index.ts +++ b/packages/unified-latex-ctan/index.ts @@ -1,3 +1,4 @@ +import * as amsart from "./package/amsart"; import * as cleveref from "./package/cleveref"; import * as exam from "./package/exam"; import * as geometry from "./package/geometry"; @@ -20,6 +21,7 @@ import * as multicol from "./package/multicol"; * the standard macros for LaTeX. */ export const macroInfo = { + amsart: amsart.macros, cleveref: cleveref.macros, exam: exam.macros, geometry: geometry.macros, @@ -43,6 +45,7 @@ export const macroInfo = { * the standard environments for LaTeX. */ export const environmentInfo = { + amsart: amsart.environments, cleveref: cleveref.environments, exam: exam.environments, geometry: geometry.environments, diff --git a/packages/unified-latex-ctan/package/amsart/provides.ts b/packages/unified-latex-ctan/package/amsart/provides.ts index f2153281..69cbc037 100644 --- a/packages/unified-latex-ctan/package/amsart/provides.ts +++ b/packages/unified-latex-ctan/package/amsart/provides.ts @@ -20,6 +20,10 @@ export const macros: MacroInfoRecord = { signature: "o m", renderInfo: { breakAround: true, inParMode: true }, }, + title: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + }, urladdr: { signature: "o m", renderInfo: { breakAround: true, inParMode: true }, diff --git a/packages/unified-latex-ctan/package/latex2e/provides.ts b/packages/unified-latex-ctan/package/latex2e/provides.ts index a82482d4..5e423889 100644 --- a/packages/unified-latex-ctan/package/latex2e/provides.ts +++ b/packages/unified-latex-ctan/package/latex2e/provides.ts @@ -194,20 +194,11 @@ export const macros: MacroInfoRecord = { maketitle: { renderInfo: { breakAround: true } }, doublespacing: { renderInfo: { breakAround: true } }, singlespacing: { renderInfo: { breakAround: true } }, - author: { - signature: "m", - renderInfo: { breakAround: true, inParMode: true }, - }, date: { signature: "o m", renderInfo: { breakAround: true } }, thanks: { signature: "m", renderInfo: { breakAround: true, inParMode: true }, }, - // amsart document class adds an optional argument - title: { - signature: "o m", - renderInfo: { breakAround: true, inParMode: true }, - }, pagenumbering: { signature: "m", renderInfo: { breakAround: true } }, pagestyle: { signature: "m", renderInfo: { breakAround: true } }, thispagestyle: { signature: "m", renderInfo: { breakAround: true } },