Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main #105

Merged
merged 2 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Node.js CI

on:
push:
branches: ["main"]
branches: ["main", "pretext"]
pull_request:
branches: ["main"]
branches: ["main", "pretext"]

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions packages/unified-latex-ctan/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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,
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/unified-latex-ctan/package/amsart/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./provides";
33 changes: 33 additions & 0 deletions packages/unified-latex-ctan/package/amsart/provides.ts
Original file line number Diff line number Diff line change
@@ -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 = {};
9 changes: 0 additions & 9 deletions packages/unified-latex-ctan/package/latex2e/provides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
Expand Down