Skip to content

Latest commit

 

History

History
121 lines (86 loc) · 3.02 KB

buaa.md

File metadata and controls

121 lines (86 loc) · 3.02 KB
marp theme paginate math
true
buaa_blue
true
katex

Marp学术主题

BUAA academic theme


作者 Moreality

YYYY/MM/DD


一、基本功能


<style scoped> section header { font-size: 1em; } section p { font-size: 1em; } section li { font-size: .9em; } </style>

本主题提供了一套北航academic slide主题, 主要基于marp-theme-academic修改构建.

  • 主题基于gaia
  • 红色 / 蓝色支持 ./theme
  • BUAA logo
  • 字体调整
  • 代码块优化
  • 一些简单的代码片段./.vscode/marp.code-snippet

二、使用方法


这是一段python代码, 支持auto-scaling

def grid2list(grid):
    list_in = [[]]
    for grid_temp in grid:
        list_out = []
        for val in grid_temp:
            for list_temp in list_in:
                list_out.append(list_temp + [val]) # 注释
        list_in = list_out
    return list_in
def grid2list(grid):
    list_in = [[]]
    for grid_temp in grid:
        list_out = []
        for val in grid_temp:
            for list_temp in list_in:
                list_out.append(list_temp + [val])
        list_in = list_out
    return list_in

这是公式的展示, 由katex渲染支持:

$$ \begin{align*} y = y(x,t) &= A e^{i\theta} \\ &= A (\cos \theta + i \sin \theta) \\ &= A (\cos(kx - \omega t) + i \sin(kx - \omega t)) \\ &= A\cos(kx - \omega t) + i A\sin(kx - \omega t) \\ &= A\cos \Big(\frac{2\pi}{\lambda}x - \frac{2\pi v}{\lambda} t \Big) + i A\sin \Big(\frac{2\pi}{\lambda}x - \frac{2\pi v}{\lambda} t \Big) \\ &= A\cos \frac{2\pi}{\lambda} (x - v t) + i A\sin \frac{2\pi}{\lambda} (x - v t) \end{align*} $$


下图是一张居中的模糊图片, 更多marp的图片语法请参考

blur:2px width:800px center


这是一个居中的表格:

Fruit Colour Amount Cost
Banana Yellow 4 £1.00
Apple Red 2 £0.60
Orange Orange 10 £2.50
Coconut Brown 1 £1.50

正文内容 正文内容 正文内容 正文内容 正文内容

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.