From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32929 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mf Newsgroups: gmane.text.pandoc Subject: Re: Customize CodeBlock font size in docx Date: Tue, 11 Jul 2023 13:13:59 +0200 Message-ID: <782d9773-1c50-9b79-b05f-361a9df87127@gmail.com> References: <71cbadfc-e399-4cd2-becd-95fc94278adfn@googlegroups.com> <3fe3c11f-bed0-fa56-4c2a-a4a96793f4a3@gmail.com> <7e333365-fe50-4652-8274-aa83c66e213an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37653"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDZYJ4HW2QPBB6XSWSSQMGQEEIGE25I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 11 13:14:07 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f184.google.com ([209.85.208.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qJBJn-0009ap-7j for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Jul 2023 13:14:07 +0200 Original-Received: by mail-lj1-f184.google.com with SMTP id 38308e7fff4ca-2b701e0bb10sf49709121fa.3 for ; Tue, 11 Jul 2023 04:14:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689074046; cv=pass; d=google.com; s=arc-20160816; b=UMUDNa+lDHPpiGO88QFqt/5Fs14/py9aztR9ySphjxVR8JYwlHcClDQ1DE6LwwneKn LL/203UqJqODRsHSm5yn2D5DvR0jeYA3UMyR3nAPrwoD1Ok1YG2tWrV3WeeRpB2aOXXU sozZHNy1pszLBzDlMyYE8XdilW4vz1DX4YiqS+1No9GygwhIn8Cy1i5KB0fxUEi8Pdse TPQyl3p0CAanMmcN27CWvuGYdNH6d2IoA3fc0jP2nQTlrkGRZIh8GGR14qTzr9wLBL4r 7wPK539P6QFGNHsV3+llwpF+/7mSXt4SFwjeVBC7j1sF6kg50nApVBIAqgfHr4yRo8SW RYRg== 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:content-transfer-encoding :in-reply-to:content-language:from:references:to:subject:user-agent :mime-version:date:message-id:sender:dkim-signature:dkim-signature; bh=dvfvD5rjO1/UkuFSIr/nMoeevJsET3icgyx8XhSnUDM=; fh=9r34WoOhqzq5q0wAFSQFgKCRgk4jnkyKIsuVBsoxsp0=; b=NFYXKavmyaoH6OQh21+AWd8z5muA3UpSDz5TpQP3Vu5P96mkxUcw/GtWcNb7TlLIDk lr9nv3HF+W1LQJwlvv2QEN7wa3P0cGgkhyp3iV2f45QYe6iHbPmQwuZXls+PpTmb3xKo dtDyKjBCv0HFkc26Wk2APYAoEfLVktrcf86ZR7l+2ApNdI6urZNdlGmDovxUqtZrN/zr nZTqe8w7+HB/DZMi6G1zOkeezs+x0WFWqN1re8ONEvLr2hyjRJB2wq54rztE3PNiMcJ1 Ik+CFcLlS/hCgSn5zPvADM0M650g3zi/su5ViS5cO9ZdEYWEf6OeNeprFXg9K2HNCeJ3 ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RHfCrfto; spf=pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 as permitted sender) smtp.mailfrom=massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689074046; x=1691666046; 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 :content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=dvfvD5rjO1/UkuFSIr/nMoeevJsET3icgyx8XhSnUDM=; b=k52LCePr9XWfCqoUrmzrrMqR4j7aY1oISnbv8ex/8qLfCMlQjLKmtPFjTVIm1vlwUo 0BbSVHJpNIH35P9jabRrgDPamqp93kBlg+V0Q6PVmSZX7Kur+zaDnMsR1/HNffwVtTbZ hvvya5T+oY4Uvex6fwFHxNyDP316OAc2BIolSiuSKVtYAqQl/0rP7Nn2ejIna2P7blfk hJj2g5Mk0o8m1aDx+iHkb4yatLpSDEyaZ86iB/UVxbWHgWwPqaNem65FEcGUV5luaeMH mgzdN0MbQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689074046; x=1691666046; 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 :content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=dvfvD5rjO1/UkuFSIr/nMoeevJsET3icgyx8XhSnUDM=; b=Dqmq0tVuQ53yLZCUy47gzdR/xzN+QTu2mbRJpU9IA6WS4qnPFQyRWZlgiqNQWwd6ct PkCLB8a82wJw6ftTSAVhmwU7PdQWeBWlMF0psjLa3q5ZmYZxiabV5yslPKr3VvdOtTr3 GI0jnGxO3CCjpDiHqAOdZEnTZT/Vyz6CycvBOdbvmRbEOtswhtr7XOujRndNGB8Ued4s iNb6XlUSIQ652GIvW9T4MpzoTdbJC7eCa+EaXpGBIR0i+yb8K8hPKyCvhncR+hbDn4O2 HojwHhBZXueg2YrHSj67D8W X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689074046; x=1691666046; 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 :content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=dvfvD5rjO1/UkuFSIr/nMoeevJsET3icgyx8XhSnUDM=; b=k2jsmbNd0/Q7YZGBM7dQ+KfgPq/ghrmGHu81X1IRZUq5W78nBu1AriY3jbZdhq6h/j oyJlMfvktoTQVlJZmdgv2eDnzddkZaJicKZ7R7CX0jfgA/LEhl4qvmaLlWy6/TSL3Lbb IwiCS3WkSta4YQ62qAWnCUIDpZpY3RbSfIFwHzyJHoL0xIiqfgSnPjXmcj7SUy4b/KN/ 9AWuJvRF7U3CpZG/okrv Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLanAGQd+IDozsCydhGE7z0Ltf55owdGUZo6yAdIf65NFLRVuCaW TSYjMqXIzWH+LQ+MropMfkE= X-Google-Smtp-Source: APBJJlEQZrE1lWS/QBN0PG+5lzS0LhpiwvacYFbZwT8Vf28SlxHDfMUVKBLY5YjpL5rucSDCJcRLHg== X-Received: by 2002:a2e:98c7:0:b0:2b6:e2c1:9816 with SMTP id s7-20020a2e98c7000000b002b6e2c19816mr14362546ljj.20.1689074046393; Tue, 11 Jul 2023 04:14:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:bc0d:0:b0:2b6:fdbe:2e76 with SMTP id b13-20020a2ebc0d000000b002b6fdbe2e76ls10662ljf.2.-pod-prod-01-eu; Tue, 11 Jul 2023 04:14:01 -0700 (PDT) X-Received: by 2002:a05:6512:3450:b0:4f8:6533:3341 with SMTP id j16-20020a056512345000b004f865333341mr11217075lfr.20.1689074041595; Tue, 11 Jul 2023 04:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689074041; cv=none; d=google.com; s=arc-20160816; b=ZHQeqJJsZ6POkzEo8BOLjqxgLY/spIt1npTtq5qIi7M0WVddnHj3lkrgmmR3NQcFhx 8M6Kufb8cj3gEgXUMamywBP9/nFAXjqamKzVV4/JJxOpDH1wpmDA1Dd3xNV3JX96P5F4 VsE7c2qkuI271/X6gKAnur9GdQ4ZVsIuONRD08JKfTffFxUErzwxYUkN6g1HgM0Uy3jo 9XVzyswF5/WX69dS/cdEP6YcF6DUX5VlLGJkXemVSPVnEZ7Gl9dAQhqk9m22GY7Rj2rI qVCe9GVTejve3X/+ItRgsntsV/qTFuuoZ6Xz+DjYt0f/gCsQAXCSdFUCPAnThDRouHfQ fwCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=RZafhsOFGq7XayHyjPjrUi9W+6sK/lhJVns1saumsB4=; fh=9r34WoOhqzq5q0wAFSQFgKCRgk4jnkyKIsuVBsoxsp0=; b=ljMwMA/mcmZ5HqXWOZOnFDb29QBQbTcKsmmOlvYTRFDdW1OGZ4BWf/eBya6PzcQncc Yq4e+/1Us5RaRJ4ie/evPodCM6/hhR6KiEkstYfCYGyvWLKiAU7CkErDrT3tBHYS+0hM MVNJC5tkyhUCw6TreLjvd/WHz+rXpH5BiUluyYW3QEzC+oWO7ztbWRoymiwOEq+qP8KN pYRzjSn1BOFajjCw7AW26yVYa87aZorJH9t8B542drLIm1vgH6qJpWiyTFMPCIO9DAPr +M5EpZ6o+RuMRJngUyOW0bfgGFhbV6GC0aUswCtRf9mLPLhyyQsWLh70rR9WwrqDzPUf ygiQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RHfCrfto; spf=pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 as permitted sender) smtp.mailfrom=massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com. [2a00:1450:4864:20::235]) by gmr-mx.google.com with ESMTPS id g8-20020a0565123b8800b004fbcd4b8b84si117906lfv.0.2023.07.11.04.14.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 04:14:01 -0700 (PDT) Received-SPF: pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 as permitted sender) client-ip=2a00:1450:4864:20::235; Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b700e85950so84579691fa.3 for ; Tue, 11 Jul 2023 04:14:01 -0700 (PDT) X-Received: by 2002:a2e:a311:0:b0:2b6:fa42:1b1d with SMTP id l17-20020a2ea311000000b002b6fa421b1dmr13135781lje.29.1689074040968; Tue, 11 Jul 2023 04:14:00 -0700 (PDT) Original-Received: from [192.168.1.52] (host-95-229-108-50.business.telecomitalia.it. [95.229.108.50]) by smtp.gmail.com with ESMTPSA id n10-20020a2e720a000000b002b70a8478ddsm408977ljc.44.2023.07.11.04.14.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 04:14:00 -0700 (PDT) Content-Language: en-US In-Reply-To: <7e333365-fe50-4652-8274-aa83c66e213an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RHfCrfto; spf=pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::235 as permitted sender) smtp.mailfrom=massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32929 Archived-At: There are two styles: - "Code Block" paragraph style, that I made smallcaps in my example - "Verbatim Char" character style, that I made blue I did not check, but I suspect inline code is blue but not smallcaps,=20 because it should take only the "Verbatim Char" character style. You should also notice that "Verbatim Char" has many derived styles for=20 syntax highlighting, that are used once you specify the language of your=20 code block. So if you want to change only code blocks, you'll work on the "Code=20 Block" paragraph style, leaving the character styles untouched. Il 11/07/23 11:39, Sylvain Hubert ha scritto: > Thanks, I do see the "Source Code" style now. >=20 > But changing it seems to affect not just code blocks but inline code as= =20 > well, which is unwanted: >=20 > pandoc -o code-block.docx <<<' > `inline code` >=20 > ```c > #include > int main() { > =C2=A0 =C2=A0 return 0; > } > ``` > ' >=20 > Is it possible to customize code blocks *only*? > On Tuesday, 11 July 2023 at 15:17:03 UTC+8 Bastien DUMONT wrote: >=20 > pandoc -o code-block.docx <<< ' > ~~~ > print("Hello World!") > ~~~ > ' >=20 > You get a document with a code block that you can copy-paste into > your reference doc and customize there (its Paragraph style). >=20 > 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. > > > > 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 opti= on > > --reference-doc=3Dreference.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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > [2]https://groups.google.com/d/msgid/ > > > > pandoc-discuss/cff22eb0-a9d4-4e03-aa77-b83c42c04a57n%40googlegroups.c= om . > > > > References: > > > > [1] mailto:pandoc-discus...-/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 > --=20 > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 > . > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/7e333365-fe50-4652-8274-= aa83c66e213an%40googlegroups.com . --=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/782d9773-1c50-9b79-b05f-361a9df87127%40gmail.com.