开发者介绍了一个名为 Florilegium 的 LaTeX 宏包,该项目利用 Lua 语言实时计算并绘制 Delft 蓝(代尔夫特蓝)风格的花卉页边装饰 1。Florilegium 不依赖外部图像资源或导入路径,而是通过参数曲线和随机种子在 PDF 文档中直接生成独特的“花园”布局 1。所有几何图形均在 Lua 环境中完成计算,并作为 PDF 路径操作符直接写入页面 1。
该项目的灵感源自 Wong、Zongker 和 Salesin 于 1998 年发表的论文《Computer-Generated Floral Ornament》1。Florilegium 支持通过随机种子控制生成结果,确保每一页都能拥有独特且可复现的图案 1。除了基本的页边装饰功能外,宏包还提供了首字母下沉(florilegiuminitial)、标题旁小花(florilegiumbloom)以及随文档进度变化的季节效果(aging)等多种功能选项 1。项目还提供了一个纯 PostScript 版本(florilegium.ps),无需 TeX 环境即可通过 Ghostscript 进行渲染 1。Florilegium 的代码采用 MIT 许可证发布 1。
Florilegium is a newly showcased LaTeX macro package that generates procedural floral page-margin decorations by leveraging the Lua programming language. 1 Unlike traditional methods that rely on external image resources, this tool calculates all geometric shapes in real-time and writes them directly as PDF path operators, creating unique "garden" layouts without importing external graphics or paths. 1 The project’s underlying design draws inspiration from the 1998 paper Computer-Generated Floral Ornament authored by Wong, Zongker, and Salesin. 1
The package ensures reproducibility and variety through a random seed parameter, which allows each page to display distinct yet consistent patterns. 1 In addition to standard margin flowers, Florilegium offers specialized features such as drop caps (florilegiuminitial), small blooms adjacent to titles (florilegiumbloom), and seasonal effects (aging) that change the visual style as the document progresses. 1 For users requiring flexibility beyond the TeX environment, the developers also provide a pure PostScript version (florilegium.ps) that can be rendered using Ghostscript. 1 The source code for this project has been released under the MIT license. 1
评论
还没有评论,欢迎留下第一条。