Skip to content

Commit

Permalink
Merge pull request #105 from siefkenj/main
Browse files Browse the repository at this point in the history
Merge main
  • Loading branch information
siefkenj authored Jul 24, 2024
2 parents 2e30cf1 + 473cdcd commit b557e23
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
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

0 comments on commit b557e23

Please sign in to comment.