From ec10295a20e4329935512854d7b0a6bc179f1dfd Mon Sep 17 00:00:00 2001 From: Shunichiro Nomura Date: Fri, 20 Sep 2024 15:46:53 +0900 Subject: [PATCH] Add phantom-paragraph function --- template.typ | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/template.typ b/template.typ index 00346e6..9fbff22 100644 --- a/template.typ +++ b/template.typ @@ -1,3 +1,10 @@ +#let phantom-paragraph() = { + set text(size: 11pt) + let a = par(box()) + a + context v(-0.8 * measure(2 * a).width) +} + #let project( id: "", title-ja: "", @@ -34,9 +41,7 @@ } it } - let a = par(box()) - a - v(-0.8 * measure(2 * a).width) + phantom-paragraph() } // Section reference settings