File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ import { pythonExec } from "../../core/jupyter/exec.ts";
9595import { kTocIndent } from "../../config/constants.ts" ;
9696import { isWindows } from "../../deno_ral/platform.ts" ;
9797import { tinyTexBinDir } from "../../tools/impl/tinytex-info.ts" ;
98+ import { typstBinaryPath } from "../../core/typst.ts" ;
9899
99100const kQuartoParams = "quarto-params" ;
100101
@@ -204,6 +205,7 @@ async function quartoEnvironmentParams(_options: PandocOptions) {
204205 "paths" : {
205206 "Rscript" : await rBinaryPath ( "Rscript" ) ,
206207 "TinyTexBinDir" : tinyTexBinDir ( ) , // will be undefined if no tinytex found and quarto will look in PATH
208+ "Typst" : typstBinaryPath ( ) ,
207209 } ,
208210 } ;
209211}
Original file line number Diff line number Diff line change @@ -13,3 +13,11 @@ Returns the path to the `TinyTeX` bin directory that `quarto install tinytex` in
1313]]
1414--- @return string | nil # Path to `TinyTeX` bin directory
1515function quarto .paths .tinytex_bin_dir () end
16+
17+ --[[
18+ Returns the path to the Typst binary that Quarto itself would use for rendering Typst documents.
19+ This will be the value of the QUARTO_TYPST environment variable if set, or the path to the
20+ Typst binary bundled with Quarto.
21+ ]]
22+ --- @return string # Path to Typst binary
23+ function quarto .paths .typst () end
Original file line number Diff line number Diff line change @@ -990,6 +990,9 @@ quarto = {
990990 tinytex_bin_dir = function ()
991991 return param (' quarto-environment' , nil ).paths .TinyTexBinDir
992992 end ,
993+ typst = function ()
994+ return param (' quarto-environment' , nil ).paths .Typst
995+ end ,
993996 },
994997 json = json ,
995998 base64 = base64 ,
You can’t perform that action at this time.
0 commit comments