From af9f00d9072665f3ff83ef571f74205c5aa43a26 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sun, 14 Sep 2025 18:39:40 +0200 Subject: [PATCH] cleanup --- main.typ | 63 -------------------------------------------------------- 1 file changed, 63 deletions(-) diff --git a/main.typ b/main.typ index 9487dd8..c6e5892 100644 --- a/main.typ +++ b/main.typ @@ -57,23 +57,6 @@ } -// #let code_cell(notebook, cell_tag) = { -// // Extract the content of a cell and display it as a code block -// let cells = notebook.cells -// let matching_cell = cells.find(x => cell_matcher(x, cell_tag)) - -// let cell_content = matching_cell.source -// let single_line = cell_content.fold("", (acc, x) => acc + x) - -// text( -// raw( -// single_line, -// lang: "python", -// block: true -// ), -// size: code_font_scale -// ) -// } #let image_cell(notebook, ..identifiers) = { let matching_cell = get_cell(notebook, ..identifiers) @@ -104,27 +87,6 @@ } -// #let image_cell(notebook, cell_tag) = { -// // Extract the output (image) of a cell and display it as an image -// let cells = notebook.cells -// let matching_cell = cells.find(x => cell_matcher(x, cell_tag)) - -// let outputs = matching_cell.outputs -// for output in outputs { -// let image_data = output.at("data", default: (:)).at("image/png", default: none) -// if image_data != none { -// align( -// center, -// image.decode( -// base64.decode(image_data), -// // height: 70% // the height should be set by the caller. This gives the flexibility to adjust the height of the image -// ) -// ) -// } -// } -// } - - #let code_reference_cell(notebook, ..identifiers) = { // Extract the output (text) of a cell and display it as a code block // This is useful for showing the code of imported functions @@ -145,28 +107,3 @@ } } } - - -// #let code_reference_cell(notebook, cell_tag) = { -// // Extract the output (text) of a cell and display it as a code block -// // This is useful for showing the code of imported functions -// let cells = notebook.cells -// let matching_cell = cells.find(x => cell_matcher(x, cell_tag)) - -// let outputs = matching_cell.outputs -// for output in outputs { -// let cell_output = output.at("text", default: (:)) -// if cell_output != none { -// let single_line = cell_output.join("") -// text( -// raw( -// single_line, -// lang: "python", -// block: true -// ), -// size: code_font_scale -// ) -// } -// } -// } -