# codelst [GitHub - jneug/typst-codelst: A typst package to render sourcecode](https://github.com/jneug/typst-codelst) 支持代码高亮和行号等设置 引入方式 ``` #import "@preview/codelst:2.0.0": sourcecode ``` 使用方式 ``` #import "@preview/codelst:2.0.0": sourcecode #sourcecode[```cpp #include <iostream> int main() { return 0; } ```] ``` ```typst #import "@preview/codelst:2.0.0": sourcecode #sourcecode[```cpp #include <iostream> int main() { return 0; } ```] ``` # Algo [GitHub - platformer/typst-algorithms](https://github.com/platformer/typst-algorithms) 算法库,引入方式 ``` #import "@preview/algo:0.3.3": algo, i, d, comment ```