diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 6b263a4f..7a41557a 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -2,9 +2,9 @@ name: Node.js CI on: push: - branches: ["main"] + branches: ["main", "pretext"] pull_request: - branches: ["main"] + branches: ["main", "pretext"] jobs: build: 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/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..69cbc037 --- /dev/null +++ b/packages/unified-latex-ctan/package/amsart/provides.ts @@ -0,0 +1,33 @@ +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 }, + }, + title: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + }, + urladdr: { + signature: "o m", + renderInfo: { breakAround: true, inParMode: true }, + } +} + +export const environments: EnvInfoRecord = {}; 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 } },