From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32926 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.text.pandoc Subject: Re: Customize CodeBlock font size in docx Date: Mon, 10 Jul 2023 23:51:26 -0700 (PDT) Message-ID: References: <71cbadfc-e399-4cd2-becd-95fc94278adfn@googlegroups.com> <3fe3c11f-bed0-fa56-4c2a-a4a96793f4a3@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_41926_1476228799.1689058286349" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7393"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX6LT7YRQIBB37XWOSQMGQE3IAKUVI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 11 08:51:31 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f63.google.com ([209.85.161.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qJ7Df-0001ia-8f for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Jul 2023 08:51:31 +0200 Original-Received: by mail-oo1-f63.google.com with SMTP id 006d021491bc7-5668c477b8dsf2295213eaf.0 for ; Mon, 10 Jul 2023 23:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689058290; x=1691650290; 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=vxCAyn+TOM3AQwxYR4KgzxPCSirqFKWkq4Z3Z4E+JMo=; b=X7SbwEszEQXLOdVyJzU/XQ7iqkm3kwbdqUESbAsIGTIm39n7FgC4xhFWO5gMlP5DNV YvACQ9gC1vY/Ty6Ef7bp38cTMp41K2fmjg4g/foTfH0d6QHHdv7ZIKkkuq6m3WOysw2j JXmfHV6o2cnDxJWKohhRDMOsF37Cx9/WFKfZDouIiQ7ZEwJiEFFJ6bsPQUKbTPdw6fzP UYOnfQRe5+xp5qj4aAEA5U804Esbr7OTN+GRPKe6b61e7rkpIvP4Lki6cAG1vqhj4D+O 2GDo/ISn/Mg2LyrwfTMqSi4KlSi+ERm/dI6/A2e126EncdIX9dm22wGeKvc2nPV33XlN cYYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689058290; x=1691650290; 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=vxCAyn+TOM3AQwxYR4KgzxPCSirqFKWkq4Z3Z4E+JMo=; b=ITp8O93ZgKVo2WEmohDuyL/DaXyV8zl1OfBYR8ftoEPWqJzpMjjH6NwyXs+RW4Obcw 3jYOoIcWjHoFu35ENFygKml2KJDgCeEW5u1YEd+hOBV5AzPhI9c4ODM0D9udloSw7fyk sKg/NGdlE9tp1W7A0bSbK8N/k07jmCtAEAKcfeo7gbABhWwwk5kTw4twu8jPEvtsiUEz KSdX4CuZLesDIs9az79g5z4+cP80MF9rrvYQ2vlJOjIwHQgjUOkj95i6qJ8rvaf5UWAy dtUWSkKGGlr+rwMSaKVhYmApqXN2Zwlkgd+b0A3klwp6XZXUoijhAZH1mD9i3MJUcvnU hpdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689058290; x=1691650290; 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=vxCAyn+TOM3AQwxYR4KgzxPCSirqFKWkq4Z3Z4E+JMo=; b=WrjeK+1uCAQoWQ+Hwhc+mQ/iRdo8IjBhmUs9ux6WX+d1JmyfLm6lyd/TSltBVuN1DS tflUjbYaAykY8MXj4uZ+9XO7QNW2gxy5XT83r7K2RBQPOgeRZ8kr+/Mvl5SlyJsAMcsi vJAf1GUai62f79OCWJaB/z0DQQlXEbkiI9uhq5VNqhTLbzKrg00EpAp++vN4CGmi1m4p D6552ux4q4b265kbK0puaDtHwfxaeYCfAAPtMmjWAz75FDgJmS0n+2mVw/4RwVsjWVGJ phYdHnY/36WVJizxpqx4MwaNggSO9hvNsWatR8hdBoOMPeLV0a Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLZ8luLWEvBpnHPkeclZw/FAt3UAZO/JWrTm+UZ0lqn1fkz/b/iW 855ea3inZVXoB44o3WU3Zz4= X-Google-Smtp-Source: APBJJlEG21vYJE+gb8279dhRKjJFKb9Fao2kHVbNbXt5DYBf6BeqXsx/d9IyZRp4M95nGomDgi+RUA== X-Received: by 2002:a4a:3748:0:b0:563:69ba:5919 with SMTP id r69-20020a4a3748000000b0056369ba5919mr10791521oor.4.1689058289850; Mon, 10 Jul 2023 23:51:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:506:b0:563:6091:747f with SMTP id m6-20020a056820050600b005636091747fls1898265ooj.2.-pod-prod-05-us; Mon, 10 Jul 2023 23:51:27 -0700 (PDT) X-Received: by 2002:a05:6820:515:b0:566:15df:65e7 with SMTP id m21-20020a056820051500b0056615df65e7mr1174146ooj.1.1689058287006; Mon, 10 Jul 2023 23:51:27 -0700 (PDT) In-Reply-To: <3fe3c11f-bed0-fa56-4c2a-a4a96793f4a3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: champignoom-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:32926 Archived-At: ------=_Part_41926_1476228799.1689058286349 Content-Type: multipart/alternative; boundary="----=_Part_41927_1350854266.1689058286349" ------=_Part_41927_1350854266.1689058286349 Content-Type: text/plain; charset="UTF-8" Thanks, but I can't find any code block in the default reference docx. On Saturday, 1 July 2023 at 18:34:39 UTC+8 mf wrote: > Il 01/07/23 11:07, Sylvain Hubert ha scritto: > > Hi all, > > > > Does anyone know how to reduce the font size of code blocks in the docx > > output? > > You may try this: > > - export the code block in a, say, reference.docx > > - open reference.docx with Word and customize the paragraph style of the > code block, then save > > - export again the code block in another docx file, using the option > --reference-doc=reference.docx > > Pandoc should use the styles it finds in reference.docx, so the block > code should look the way you customized it with Word. > > > > > > I know I could customize the Verbatim style in the reference doc, > > but that would also unwantedly affect the inline code. > > > > Ideally it should be done with custom styles, without too much hacks of > > raw docx. > > > > Thanks! > > > -- 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/cff22eb0-a9d4-4e03-aa77-b83c42c04a57n%40googlegroups.com. ------=_Part_41927_1350854266.1689058286349 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, but I can't find any code block in the default reference docx.

On= Saturday, 1 July 2023 at 18:34:39 UTC+8 mf wrote:
Il 01/07/23 11:07, Sylvain Hubert ha = scritto:
> Hi all,
>=20
> Does anyone know how to reduce the font size of code blocks in the= docx=20
> output?

You may try this:

- export the code block in a, say, reference.docx

- open reference.docx with Word and customize the paragraph style of th= e=20
code block, then save

- export again the code block in another docx file, using the option=20
--reference-doc=3Dreference.docx

Pandoc should use the styles it finds in reference.docx, so the block= =20
code should look the way you customized it with Word.


>=20
> I know I could customize the Verbatim style in the reference doc,
> but that would also unwantedly affect the inline code.
>=20
> Ideally it should be done with custom styles, without too much hac= ks of=20
> raw docx.
>=20
> Thanks!
>=20

--
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/cff22eb0-a9d4-4e03-aa77-b83c42c04a57n%40googlegroups.= com.
------=_Part_41927_1350854266.1689058286349-- ------=_Part_41926_1476228799.1689058286349--