Skip to content

Commit a063c1c

Browse files
committed
Add quarto.doc.add_resource() and quarto.doc.add_supporting()
1 parent 9d94e49 commit a063c1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/extensions/lua-api.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Complete documentation for the Pandoc Lua API can be found in the [Lua Filters](
5656

5757
Various utility functions are provided:
5858

59-
| Function | Description |
59+
| Function | Description |
6060
|-------------------|-----------------------------------------------------|
6161
| `quarto.version` | Return the current Quarto version as a `pandoc.Version` object. |
6262
| `quarto.log.output(obj)` | Dump a text representation of the passed object to stdout. |
@@ -137,6 +137,8 @@ Extensions will sometimes want to add external dependencies (for example, a Java
137137
| `quarto.doc.attach_to_dependency(name, attach)` | Attach a file to an existing dependency. `attach` is a file path relative to the Lua filter or table with \`path\` and \`name\` for renaming the file as its copied. |
138138
| `quarto.doc.use_latex_package(pkg, opt)` | Adds a `\usepackage` statement to the LaTeX output (along an options string specified in `opt`) |
139139
| `quarto.doc.add_format_resource(path)` | Add a format resource to the document. Format resources will be copied into the directory next to the rendered output. This is useful, for example, if your format references a `bst` or `cls` file which must be copied into the LaTeX output directory. |
140+
| `quarto.doc.add_resource(path)` | Add a resource file to the current render, copying that file to the same relative location in the output directory. |
141+
| `quarto.doc.add_supporting(path)` | Add a supporting file to the current render, moving that file file to the same relative location in the output directory. |
140142

141143
For example, here we add a LaTeX package dependency:
142144

0 commit comments

Comments
 (0)