Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NH5LessElegantNote

项目特色 Features

这是一个Typst笔记模板,是在LessElegantNote的基础上修改而成的。感谢原作者的工作。

  • 公式自动编号:支持按章节自动编号(例如 1.5, 2.3),并可手动开启或关闭。
  • 项目结构清晰:基于模块化设计,方便自定义。

使用指南 Usage

1. 准备环境

2. 快速开始

  1. 克隆或下载本仓库。
  2. 在项目根目录下创建 your .typ 文件(例如 note.typ)。
  3. 使用以下代码调用模板:
#import "template/conf.typ": conf

#show: conf.with(
  info: (
    title: "LessElegantNote:一个Typst笔记模版",
    author: "Your Name",
    date: datetime.today(),
    // cover-image: image("assets/coverimage.jpg"), // 可选本地封面图
    // cover-image-url: "https://example.com/cover.jpg", // 可选远程封面图
    style-name: "maths", // 可选风格: "maths", "literature", "book"
    equation-numbering: true, // 是否开启公式按章节自动编号,默认为 true
  )
)

= 第一章

这里是正文内容。

3. 项目结构

  • template/: 模板核心文件。
    • conf.typ: 模板入口,推荐通过此文件调用。

4. 使用远程封面图

Typst 本身不会直接从 HTTP/HTTPS 链接读取图片。使用 cover-image-url 时,请通过辅助脚本编译:

python3 template/tools/compile-with-cover-url.py note.typ note.pdf

脚本会把远程图片下载到 .typst-cache/cover-images/,并在编译时自动传给模板。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages