From 34214da33243c96e8a12488057c2aad4eeb4af1e Mon Sep 17 00:00:00 2001 From: Jason Siefken Date: Wed, 12 Jun 2024 16:34:07 -0400 Subject: [PATCH 1/2] Add pretext to tested branches --- .github/workflows/on-pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: From 473cdcd0a1ed6b8912286cfc2f7c4edb812960e4 Mon Sep 17 00:00:00 2001 From: Bo-Y-G Date: Thu, 25 Jul 2024 05:05:23 +0900 Subject: [PATCH 2/2] Amsart (#104) * Added amsart to ctan packages, and removed repeated macros from latex2e --- packages/unified-latex-ctan/index.ts | 3 ++ .../package/amsart/index.ts | 1 + .../package/amsart/provides.ts | 33 +++++++++++++++++++ .../package/latex2e/provides.ts | 9 ----- 4 files changed, 37 insertions(+), 9 deletions(-) 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/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 } },