Create project in app
A simple template for modern physics experiments (MPE) courses at the Physics School of PKU.
meppp-lab-report
The recommended report format of MPE course. Default arguments are shown as below:
#import "@preview/meppp:0.2.1": *
#let meppp-lab-report(
title: "",
author: "",
info: [],
abstract: [],
keywords: (),
author-footnote: [],
heading-numbering-array: ("I" ,"A", "1", "a"),
heading-suffix: ". ",
doc,
) = ...
titleis the title of the report.authoris the name of the author.infois a line (or lines) of brief information of author and the report (e.g. student ID, school, experiment date…)abstractis the abstract of the report, not shown when it is empty.keywordsare keywords of the report, only shown when the abstract is shown.author-footnoteis the phone number or the e-mail of the author, shown in the footnote.heading-numbering-arrayis the heading numbering of each level. Only shows the numbering of the deepest level.heading-suffixis the suffix of headings
It is recommended to use #show to use the template:
#show: meppp-lab-report.with(
title: [Test title],
..args
)
...your report below.
meppp-tl-table
Modify your input table to a three-lined table (AIP style), returned as a figure. Double-lines above and below the table, and a single line below the header.
#let meppp-tl-table(
caption: none,
supplement: auto,
stroke: 0.5pt,
tbl
) = ...
captionis the caption above the table, center-alignedsupplementis same as the supplement in the figure.strokeis the stroke used in the three lines (maybe five lines).tblis the input table, which must contains atable.header
Example:
#meppp-tl-table(
table(
columns: 4,
rows: 2,
table.header([Item1], [Item2], [Item3], [Item4]),
[Data1], [Data2], [Data3], [Data4],
)
)
subfigure
Counts subfigures and displays in the figure, mostly used when inserting multiple images.
#let subfigure(
body,
caption: none,
numbering: "(a)",
inside: true,
dx: 10pt,
dy: 10pt,
boxargs: (fill: white, inset: 5pt),
alignment: top + left,
) = ...
pku-logo
The logo of PKU, returned as a image
#let pku-logo(..args) = image("pkulogo.png", ..args)
Example:
#pku-logo(width: 50%)
#pku-logo()