From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33515 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cerdo Newsgroups: gmane.text.pandoc Subject: Re: How to set margin for Typst? Date: Tue, 12 Dec 2023 03:47:33 -0800 (PST) Message-ID: References: <76d39afe-f9c9-4f2e-8a08-d79627538e5bn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5956_616375188.1702381653930" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31002"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDI4L4OHRMMRBV4Q4GVQMGQE65BDCIY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Dec 12 12:47:39 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rD1Eh-0007vA-4i for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 12 Dec 2023 12:47:39 +0100 Original-Received: by mail-oo1-f61.google.com with SMTP id 006d021491bc7-58db6bfe269sf5628186eaf.3 for ; Tue, 12 Dec 2023 03:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1702381658; x=1702986458; 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=/Kl8QsNLQTLgdIH3TISQK4pTujuc70RGeKAZYGvdJpM=; b=w30lAYzyigKq9IGIuiTsfARcE6qruEK9st7CtHzwlvxK9qg6vTuoWbWrJwKmDjkle0 L8wUg8xufcVk+rwYAQ9sZbW/ugkK+QmqDJDLnbnpH0nDs82sv/zkh0GRAPV6X0rEcjn+ P2Z6+OuDwaXpr31kNTFjGzCtNakkd+VfLg2xByYOsOGmNTkQWxrfWPNwRDNlxY6aT78V LlnLrBjVC2bZ2DoomdSvN9l+D2Y9KQeRSWvmnpUAKv899ocaOg8OnWYTgMEKrL3aTlN+ XDF3+WsjHf1vtVGiAT1uydXxi+cLhlyfeue6uXxPXZg/qaH8N8Cd2oDayvib4+8fkjMz zEng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702381658; x=1702986458; 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=/Kl8QsNLQTLgdIH3TISQK4pTujuc70RGeKAZYGvdJpM=; b=bn6uw7iCYaNdsj4qhdxhaMZEPOFkw81lZIObP3k2NIkzlC83uHdj4/WPFA3+hnqPk8 +YKPIEwonjhY/avcqOGgDl7NAwOX7NfcjVDmkLOIB756qC61jL/yITvOZNuyugdbgApw eLtRzeerJSY1zX3s6QgXQkDCJ08aqehUwog/+n290PfLd1qmJWg+sEX4D0kUEbMeSMrX QgaoySw1TIp63gifS9Jg/GLDXNQUlTigvufM9KluS+hmgRF8QnOCiXMmHKzCRCqUG+fu nuXqx9LMx9uVuYwGsncdqYNiSXY6xAA5cKd8F3kPIb1QOmKK2wEXstdmQMw+uQVI3KH2 EESg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702381658; x=1702986458; 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=/Kl8QsNLQTLgdIH3TISQK4pTujuc70RGeKAZYGvdJpM=; b=sYTt4hWt/B8MfPWyUWFDusWJnJEyHpWF3PCl49a5Wb6Np3M8HrVOWIfTovreVDkXBL mje9OVLXJ2reEsdkECeFg+GA+rKnNcrZCA/W2sj0T5uaFiLi+jX/lynGu2UEy2SQQRxj yijNvdvNwU0qPa6RgIqpT2hevnBbKSOSt54Dp5UWSish+p3Qvqx1gC2Uc3PshcdIlCra 92C/0XcDOR4+8S98ixDyJvXx500csWliHENrSY4cZbzlgxP9xZO+qI0BWEccdw9Cx1sK AZJDYrDqy6ez+R4ICJllacJ7rQ+4f5XeC+Gk7Qy+VMpLy9SzDV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yyq0ILgUUbYTiG7TzI+7KsH757WrKkwO88jFNIrJimSVJ7eX3h2 pYUFmYmoJOPEAxrPJuVc53g= X-Google-Smtp-Source: AGHT+IFICMkqhRalBfK/b1ubruab8p3ABiBXR8WbW5mFJfLBiRBW4TRwLigkr5AS2DqEHVM7nv+yFQ== X-Received: by 2002:a05:6820:168f:b0:58e:2f3c:9af5 with SMTP id bc15-20020a056820168f00b0058e2f3c9af5mr4519223oob.8.1702381657800; Tue, 12 Dec 2023 03:47:37 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:602:b0:58d:7468:f975 with SMTP id e2-20020a056820060200b0058d7468f975ls31156oow.0.-pod-prod-03-us; Tue, 12 Dec 2023 03:47:34 -0800 (PST) X-Received: by 2002:a05:6830:348f:b0:6d9:e9da:d786 with SMTP id c15-20020a056830348f00b006d9e9dad786mr5614355otu.3.1702381654519; Tue, 12 Dec 2023 03:47:34 -0800 (PST) In-Reply-To: <76d39afe-f9c9-4f2e-8a08-d79627538e5bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: ralf.uhlig.87-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:33515 Archived-At: ------=_Part_5956_616375188.1702381653930 Content-Type: multipart/alternative; boundary="----=_Part_5957_1695737327.1702381653930" ------=_Part_5957_1695737327.1702381653930 Content-Type: text/plain; charset="UTF-8" Thanks for the answer. I ended up creating a metadata file and passing it as --metadata-file=metadata.yaml. It contains a standard YAML dictionary: margin: top: 10mm left: 20mm right: 20mm bottom: 10mm Regards, Cerdo iandol schrieb am Samstag, 9. Dezember 2023 um 03:01:33 UTC+1: > 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/ee1e2623-c3ee-47ea-a499-c20a0f81203cn%40googlegroups.com. ------=_Part_5957_1695737327.1702381653930 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the answer. I ended up creating a metadata file and passing it a= s=C2=A0--metadata-file=3Dmetadata.yaml.
It contains a standard YAML dictionary:
margin:
= =C2=A0 top: 10mm
=C2=A0 left: 20mm
=C2=A0 right: 20mm
=C2=A0= bottom: 10mm

Regards,
Cerdo

iandol schrieb am Samstag, 9. Dezember 2023 um 03:01:= 33 UTC+1:
In = YAML metadata:=C2=A0= margin: {x: 1.75cm, y: 2cm} works with the Typst template, however I assume g= iven the docmentation for the -M option:

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

Suggests that YAML lists cannot be passed via the command line. In w= hich case the solution is to use a metadata or a defaults file to pass thes= e options?

Cheers, Ian

On Thursday 7 De= cember 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=C2=A0
dictionary with the fields defined in the Typ= st documentation: x, y, top, bottom, left, right.

=
How do I define the dictionary?
As far, I have tried:<= /div>
  • -V margin=3Dtop:1mm
  • -V margin=3D"top:1mm"
  • -V margin=3D"(top:1mm)"
  • -V margin=3D"{\"top\&quo= t;:"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 &= 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/ee1e2623-c3ee-47ea-a499-c20a0f81203cn%40googlegroups.= com.
------=_Part_5957_1695737327.1702381653930-- ------=_Part_5956_616375188.1702381653930--