From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33491 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: iandol Newsgroups: gmane.text.pandoc Subject: Re: How to set margin for Typst? Date: Fri, 8 Dec 2023 18:01:33 -0800 (PST) Message-ID: <76d39afe-f9c9-4f2e-8a08-d79627538e5bn@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_44986_812104697.1702087293093" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15634"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC2PTEMIZYERB7UUZ6VQMGQEF4UQ7QA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 09 03:01:39 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rBmew-0003x2-BZ for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 09 Dec 2023 03:01:38 +0100 Original-Received: by mail-oo1-f56.google.com with SMTP id 006d021491bc7-58dc2d926e7sf3273275eaf.0 for ; Fri, 08 Dec 2023 18:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1702087297; x=1702692097; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=gOnFf0p9VWlfcpzL2ToIsiTakrtwX++GKo/AxV7xbpw=; b=NJCWfSA9nxOdGCzvMFfv+EnvustWCycVBARtAFDIl8HN/5/Bv6OCQvdf7Hi5XxYEhP FsoE3izfdzJiLnDxTpNPuVYTGJlz4aR/xpl3Nbuc+NAsrNSvtofKxPA6m+HW5uddgFs9 5uAytj5G8whZAXzsapkl8Ei01hzfhzglORh1X3wePCuVsm07VvC6jYZ/yMwHsfR+N01/ hUpf9G6k4Dxf+6MJ7ozqCFmzPtUie9EJwJGYGQfYEV8EdwrtYWABqOX3If4i8CPRQVTF KR9M0HChSzhBa5+YokL8UYUClwIIFo+wuzbv3onT4tZiiAzn9xHnCxqFD8YdCPaTxHyX y6Tg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702087297; x=1702692097; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=gOnFf0p9VWlfcpzL2ToIsiTakrtwX++GKo/AxV7xbpw=; b=b5h7qEsisCc2SWIy7CDSNvMgWSvXkEi/vL4q1Fz78STTxdiB/bi/TifvaKx/WQQdeH cxoeW74JDCch7Ek08ZiNjcuSiUNXGD31Yj3eEzlqiLEIwDoC7as19JWCAajPY/PNt56d YxxiKR5zvDSmvSjE8sgYnXUkv+LlirL/BVvkNv3Gq1vaVB2CnIin9QJxjJFvou/JS/Lo ayTdBlPEFeJeeNGnXZo4mRQ5ihtJh+820BSP6oFOiC/zi3dLyq5h2Cei8FMlCGG429rb bTHxiQdAENohNCChe/jKJ/i7JIbgbm6NYN1q9V8nF2k4flT6S2Ab3/f18yTbDbuZ9/lC wxyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702087297; x=1702692097; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=gOnFf0p9VWlfcpzL2ToIsiTakrtwX++GKo/AxV7xbpw=; b=Y1ipSVs4xNhTuCw/UZrcIzregNOsWIoevXF+8M4uL2i11enBmJPJAkrP42dvWylF/U MH/bz81BI/jqua3I30qCfU3ka2TL38gkLo6oXHbueaTesk0c8F8kBe6wwQ48Rz8nCVUH WekTQRWtcl1WfVpvSgZ1qvUsDGAkj0hFIwsNmipwX70Xzcpodo09AOkor2aHhOwaquMl xgyg059LE2P9OIZyUI1BrzEWIc89SLkmQOXW6E8uJ7AaCYVAaw3tYpcZeICUigaOb9ZJ RXJwQTw+UMTsQ7jPLF8kmGxlV3h37ckMLKuH6qRve6/DFYteLS Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YzQYw3NNfgEnzt629wcg/i0jQzrTrvfJ/4kl6pxNTMF3YO/ZT3c 4/2f2nI/sEyfNb8NQJyNoUo= X-Google-Smtp-Source: AGHT+IH5J/0CW5NDxiiZsQRVAS/M5kmht24A7nI62h4zR+sUXhChjE5h8RU0RNhYB1YlwJoL6rtJoA== X-Received: by 2002:a4a:5e06:0:b0:590:a6d5:c1d9 with SMTP id h6-20020a4a5e06000000b00590a6d5c1d9mr622040oob.19.1702087297160; Fri, 08 Dec 2023 18:01:37 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:1aca:b0:58d:5ec9:ea68 with SMTP id bu10-20020a0568201aca00b0058d5ec9ea68ls4186866oob.1.-pod-prod-07-us; Fri, 08 Dec 2023 18:01:34 -0800 (PST) X-Received: by 2002:a05:6830:43a8:b0:6d9:db32:c3d7 with SMTP id s40-20020a05683043a800b006d9db32c3d7mr844361otv.7.1702087293797; Fri, 08 Dec 2023 18:01:33 -0800 (PST) In-Reply-To: X-Original-Sender: iandol-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33491 Archived-At: ------=_Part_44986_812104697.1702087293093 Content-Type: multipart/alternative; boundary="----=_Part_44987_1640331255.1702087293093" ------=_Part_44987_1640331255.1702087293093 Content-Type: text/plain; charset="UTF-8" In YAML metadata: margin: {x: 1.75cm, y: 2cm} works with the Typst template, however I assume given the docmentation for the -M option: > Values will be parsed as YAML boolean or string values Suggests that YAML lists cannot be passed via the command line. In which case the solution is to use a metadata or a defaults file to pass these options? Cheers, Ian On Thursday 7 December 2023 at 23:33:03 UTC+8 Cerdo wrote: > Hi, > > I am trying to set the margins when converting a Markdown file to a PDF > with Typst. > According to the documentation > , this should be > possible by setting the variable *margin *as > *dictionary with the fields defined in the Typst documentation: x, y, top, > bottom, left, right.* > > How do I define the dictionary? > As far, I have tried: > > - -V margin=top:1mm > - > - -V margin="top:1mm" > - -V margin="(top:1mm)" > - -V margin="{\"top\":"1mm"}" > - and many other combinations > > What is the correct way to provide this "dictionary"? > > Best, > Cerdo > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/76d39afe-f9c9-4f2e-8a08-d79627538e5bn%40googlegroups.com. ------=_Part_44987_1640331255.1702087293093 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In YAML metadata:=C2=A0margin: {x: 1.75cm, y: 2cm} works with= the Typst template, however I assume given the docmentation for the -M opt= ion:

>=C2=A0Values will be parsed a= s YAML boolean or string values

Suggests that = YAML lists cannot be passed via the command line. In which case the solutio= n is to use a metadata or a defaults file to pass these options?
=
Cheers, Ian

On Thursday 7 December 2023 at 23= :33:03 UTC+8 Cerdo wrote:
Hi,

I am trying to set the margins when con= verting a Markdown file to a PDF with Typst.
According to the documentation, this should be possible by setting the variable margin as=C2=A0
dictionary with the fields defined in the Typst = documentation: x, y, top, bottom, left, right.

How do I define the dictionary?
As far, I have tried:
  • -V margin=3Dtop:1mm
  • -V margin=3D"top:1mm"
  • -V margin=3D"(top:1mm)"
  • -V margin=3D"{\"top\":= "1mm"}"
  • and many other combinations
= What is the correct way to provide this "dictionary"?
<= br>
Best,
Cerdo

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/76d39afe-f9c9-4f2e-8a08-d79627538e5bn%40googlegroups.= com.
------=_Part_44987_1640331255.1702087293093-- ------=_Part_44986_812104697.1702087293093--