From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32927 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Customize CodeBlock font size in docx Date: Tue, 11 Jul 2023 07:16:56 +0000 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: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11983"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB24DWSSQMGQESM7QZNI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 11 09:17:04 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f62.google.com ([209.85.128.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qJ7cO-0002wp-4e for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Jul 2023 09:17:04 +0200 Original-Received: by mail-wm1-f62.google.com with SMTP id 5b1f17b1804b1-3fbefe1b402sf33412145e9.1 for ; Tue, 11 Jul 2023 00:17:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689059823; cv=pass; d=google.com; s=arc-20160816; b=Q43Q5tDMujV1nwosf+YKYPhQiiUjbVvu42mQQbnRN8QSS7AmjoQMNo/p9yx4KTnXaA 5IkdxenI18IjxZsGCI9dC72Ik+QTPgfkjhWKrneZEKgZcjprCG7+7WfS0VyR2TVbb16m 4Tdz44Wkl/Cw4/TZp5ti5sQAVmDEqv9NZd0/038Gs6IO7NaZp4RUmUZ3TnJJecHkM1nI iPwdOadEnff0EqYo5dG4RiJ+YGBzOt2kxcVAkEDqJbm3DitHDMMiA6f5c7TgJ5Lr0lOO qdaxfZpEVt/u5Op1yuwrfvsmhttP7SXp1581AeIszfJR2KQWuCzk97oV51ej11hJ+BlG 26ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=y9WskqGALgBL28+a6dk+aVsoVyEPWEloEmpKmB55O2Q=; fh=zTk1OJJ/UIgC4n6p1b11w1SmP+rZGhoEUDeu1dHTagY=; b=MdiQKqjNpnFcndKtG4/HsT+d/LX9LZLOZAOZ6QzF9ekcktR9vVypoVKTspdQAwKU6Q fHCX5RcqiQOFhPHZ7yxzoeG4X2/Gb5pFXRMapwxpPx15gesa6Ul07G2wNHwjgI33bk5m dDPsVAI8g0zjSke5/bDPZwdvi6fok/wI4mk26ajembwMtfOTKywK+7W8BAZBuANlexA4 Um2+8UaOeDfbgA9N3Muc0PaMbeH7TWaXYS2Ktbesx3FKVNcSTTlz+Yi1dmxZqbGt0wBl ih5Jclx9/acHPpHSzZtLzJrGDI9wG2e9SLqadHKmAr2NJA/CgN8RTnCZU/CjNUnUVU9R Qulw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=UMCabEp4; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689059823; x=1691651823; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=y9WskqGALgBL28+a6dk+aVsoVyEPWEloEmpKmB55O2Q=; b=egRbJfYU53jAmvoBfUmborN58gkDexPrXJrKxu/IgimikWa28ytuxcfG9TaF1Qawz/ atN1UgvdKgbeQ3LeJtSQu8tsjoejjHq4g9ADBq039Mf6DsXODFlr5mRbZ9tMlRAbzkRB wjx/l/sW0MJguyPclOzeiopAcpoKhl+JQxdbuyikFN3GIK7mz8EsqvZQXoNuw7oXqH1D fgikHXi8lZnFouzJcDcVbesE7BWcaumFADIlfnSe0JEG32WKxrRUc1v0tUxT5p/zdSyD 0nY8K30gJUGp/uqJ/ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689059823; x=1691651823; 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=y9WskqGALgBL28+a6dk+aVsoVyEPWEloEmpKmB55O2Q=; b=j276ZbFp7vjMlBCKEh6YJIJalQR/psgiAzyx2D7XJYa1/aVK9pMLG70g1vbBMRMJFd H12E9DO/NRzm5/GI5SFacraBlsFU/NECp/CqJf2GeSW/TQnNUsVcSZwWvc3OPzjh4UPD aVhgh5D+x68NwqucxfcYPUdAFD13VlD5CRUiY9YUsK+KOx5ZfrFLR5DuUKpgZ9f5T5KG 3V4RJUTVQHRyaQufIRyXs/jBVer0 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLasSB0jgiPyD/6CCBZ13mfqp9VUH3iUHVaWILxUwLo9QJMc69s4 q4T1oRYE5Zan4d77surxFzw= X-Google-Smtp-Source: APBJJlFAH7wnC5TfWeHEyVzwnK1GR1pX76HumV6/Lbwc1hWXZjKpbKAUYSmuSTc2gc3VZlB7+amTkg== X-Received: by 2002:a05:600c:d6:b0:3fb:b1bf:7df3 with SMTP id u22-20020a05600c00d600b003fbb1bf7df3mr13673851wmm.16.1689059823008; Tue, 11 Jul 2023 00:17:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1e1b:b0:3fa:ec98:7f12 with SMTP id ay27-20020a05600c1e1b00b003faec987f12ls1863045wmb.2.-pod-prod-06-eu; Tue, 11 Jul 2023 00:16:57 -0700 (PDT) X-Received: by 2002:a5d:4841:0:b0:314:12b8:641c with SMTP id n1-20020a5d4841000000b0031412b8641cmr11922612wrs.70.1689059817858; Tue, 11 Jul 2023 00:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689059817; cv=none; d=google.com; s=arc-20160816; b=kN5ROlRlkTlebEjbVRhjUP1lghE/u0yqI5HOyVp4KsX4wKlkK0ySWBUn3MPyA6FTFo 7RaBokOGdXAzN+4TbuY23Dw4txiwQZ2lGOOXTYvD87chZvFURlEvp7n1jywlHQvLNVxd mt4ZBkzrbxKEicd8XpA7KYs3NJLpT7l27pCgGkpNHm/HWudDsYnwNj7OyrYJyDU7qKw/ Bqv6eJepjxkuNQFcUYGswiZKfl5GmF4De8Puhd+99qSmVOjKfAOyRsq1B2C60BbXL6UB DCyAeg8rwipynA0HecgSi+4YXPnmf6TqwwRq+aCx5tFnGEiSXnYK0jSFM7QgUIWucDE5 FacA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=KcMGfep9V+3hJN86FimHo1WQRMvGfWPlJK7QdBy3Oyo=; fh=zTk1OJJ/UIgC4n6p1b11w1SmP+rZGhoEUDeu1dHTagY=; b=Pdw34IUN4VtlPGiTSOAP5qb+9eAvCGsH+XjV4FWMUTz70MumqaM7ZvirGo72vcDpCI ONsKAFoeDB+8qu0t/OTWm0vNGOeiEBKKY0EWGgSi8VJA4b37j6rnvpEQyIjE+jRzj+T5 xDnVu9HeL0uQ1ZCMAB6qSWsighkVdAZtkCAkicDeJh5OgzmSvhnesOcQ0fGTjROPprko cmXX+2CyIJ7vqixD+hgiypCxPjXkEVaXr/BvqnLznCWgGZ0caM8CN9715wziFVFU1EV1 ODcOg23o9Cjb7kosHmcvaWv+jshm41gjA9JDLUy5cb+fM0hzizTECA3yWXFRMBDmNI5f k97A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=UMCabEp4; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id bw24-20020a0560001f9800b0031597ce1881si80227wrb.6.2023.07.11.00.16.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 00:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 62330240101 for ; Tue, 11 Jul 2023 09:16:57 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R0XHY0RvWz9rxF for ; Tue, 11 Jul 2023 09:16:57 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=UMCabEp4; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32927 Archived-At: pandoc -o code-block.docx <<< ' ~~~ print("Hello World!") ~~~ ' You get a document with a code block that you can copy-paste into your refe= rence doc and customize there (its Paragraph style). Le Monday 10 July 2023 =C3=A0 11:51:26PM, Sylvain Hubert a =C3=A9crit : > Thanks, but I can't find any code block in the default reference docx. >=20 > On Saturday, 1 July 2023 at 18:34:39 UTC+8 mf wrote: >=20 > 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? >=20 > You may try this: >=20 > - export the code block in a, say, reference.docx >=20 > - open reference.docx with Word and customize the paragraph style of = the > code block, then save >=20 > - export again the code block in another docx file, using the option > --reference-doc=3Dreference.docx >=20 > Pandoc should use the styles it finds in reference.docx, so the block > code should look the way you customized it with Word. >=20 >=20 > > > > 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 hack= s of > > raw docx. > > > > Thanks! > > >=20 > -- > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/cff22eb0-a9d4-4e03-aa77-b83c42c04a57n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/cff22eb0-a9d4-4e03-a= a77-b83c42c04a57n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 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 e= mail 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/ZK0B6MDlieugAOjR%40localhost.