From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29405 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: problem setting style after blocktext in docx output Date: Wed, 27 Oct 2021 16:56:14 +0000 Message-ID: References: <86c4d6cd-4ea3-41ad-aae9-c301f049a2can@googlegroups.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="2746"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB64J42FQMGQEDYDV4VY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 27 18:57:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f55.google.com ([209.85.208.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mfmF3-0000QY-Jp for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 27 Oct 2021 18:57:33 +0200 Original-Received: by mail-ed1-f55.google.com with SMTP id c25-20020a056402143900b003dc19782ea8sf2961920edx.3 for ; Wed, 27 Oct 2021 09:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635353853; cv=pass; d=google.com; s=arc-20160816; b=rFGf47b/vlH3zfMRpUF0dqgvx/pVHA6oKPRgTnTlEz9p533oFF5YDdtDRv762jUcBh fuqS6/ITAUioVSUF57XP05YAA8/W5rdONOJA31X0nMATXkQEUZCYV1CF3be0H0lt6OLm n66GlKl95a26AQ6u0KHaGwOWemyYFIzH7xMdLl4qabEnMeNdUbjDxQv1nhlwSwZlNG5g LWTCc5p8Wh0+yALRRZdOh6qPD5iFO3kB9KPRGjDadYku+Phe1SzprLJdNHLs75bn57Ah 12LhGNGtXcDWg60MGvDUv/XDNgnMmxhSambTPOe1gAHGYR5ZiU8cj0bBsNeUDD8F2zv7 0xRA== 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=i3yccdFhERgdXfNpAf/L3h89kkBr3hq6BDKblt7ivCA=; b=lccigS+wAJT+6il42wmukYlvwNVI2D9reXCDvvSx68XIxai0xmaU/hylfIbS7b5SAb 9LSCPN7Mj2ci+85vI5txvPOaJgqXJ5mSEUiKAlN9qV8a54gju+P4b5skTXb6MJ2MiTmY u+1TSr1ouu7+UyQHy82ILwpL1v8H/D+YMOuhX3JBYNsoPK3NfL+NHEp/MG9I9q0/MCVc GOIZQRCRV316jeU12cc0z9cVBZu6KolvByEztelhTyRbecaPYHELNGYRocAB0YnxuXJS MHhZLEKsjaUuzjk3l/ws58U5y+CLVrx0V5g0upBi9ftX9w0XKSoHwg/4AsONYSEbIG3a vlzw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=hhP79a0U; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 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=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=i3yccdFhERgdXfNpAf/L3h89kkBr3hq6BDKblt7ivCA=; b=EXJq4g+boCCCZvacL53G79AeVjYSp4xxUIu7rBUCQ3bGS2OivGrz2oGbBFap/vbQFH 2hSKUKJYJ7lvI8k9pDoIZqzqyeovq3aOBy2IXJQrJBsrbW5e195M/M7lqv0QstukePgI 0+of7rReOoOoQTJWyNQtIbhx/bOWeBMmRwklpc0hHlpBT6rVf2tDM3gI4foNZefl4+Vx 87bO4h+IU9cUtXdSojp1+oxuZ6BvEMjNC+cpcYFwVvNuP3cqxIiAcwXpmjHQxCmr0IM1 hOFM33uStRHyWWCgZ1sYQYmzyG7OwQArWTR4uR0Ur7OowHHRa/TWjjbAgneF4Px9D1fZ n8OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=i3yccdFhERgdXfNpAf/L3h89kkBr3hq6BDKblt7ivCA=; b=uLPdeDMJuKP1oEhnd9v0WUkMjqawx8NVwUkIOVgZDFDaHJG93MgwO6uIpGPepUObM2 U5ozHGGCuZ2CzRT4iPUxX7CIiVSnq5jPcPMY8tdEdxQDn/oP6DpQNPujmJ2YrpbWkrkt XFYwzoIIWRQ/XDbQJUHMra709G/cL9R19svOgMbopDhuxWdlK5xK5CJdI7fGf1YL109v Dz3HTSevVrlhcREOh6DHRVUW+GguuhNoucPIQQJdebbSan2Kv4uMmiwAgy+e6K+0jNUA UcZZjN+YyFt/HhqErpkUVa2jKgWbv2nbKj7e2Pnh4gok Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530Ve48cUhfvGeHhsMpV8GrmloqorP84GWZatW9FxL9s2v582Sza Nz96kcIGeXao1khM4XxmOKM= X-Google-Smtp-Source: ABdhPJx2BHcDSpAp95xvXhCaFFBtdy3U0cA0HcY4M1GGheZRCI/OuzozqyNpDxBGZTkGSqvKPVMOng== X-Received: by 2002:a17:906:4795:: with SMTP id cw21mr6533860ejc.385.1635353852941; Wed, 27 Oct 2021 09:57:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:ce96:: with SMTP id y22ls634080edv.3.gmail; Wed, 27 Oct 2021 09:57:30 -0700 (PDT) X-Received: by 2002:a05:6402:1908:: with SMTP id e8mr45776350edz.252.1635353850311; Wed, 27 Oct 2021 09:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635353850; cv=none; d=google.com; s=arc-20160816; b=zJ4fmpIsI00d9dUQPOYTz7OHixUYAt0bSF0I7KafiSHnZsTF3TLTsXt5EV0dqSTLql oIUX+L57JmiluBzgiZLA0NLAjmjkeMgZbFZ7GlQ65J40ZvDVvQHe/Ww5Wea/fOLTS3gw feqF9XWn/hqww6X5sfyJGUjt9nmb77IAuj2i3kKbKdWQSRCIDh4+v0wgGJqRGSZ3syxp ty1Bc69QYvs3YQ6TshH2xCttUU6on46TL8XsDD5HlTP3LLh0kpc8J8PwNlLYmVsVRjf9 S7jah2HOdmQ0z87SSHxFguqr+4VjAgbQre7ppfBF8TvBquqUVUVgoXSRtMAvQTyLP+Pc uXuA== 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=jImXoeeC1mlUpvYhmcE1lFkDuEJDo89ZVzmCh8eB8So=; b=dplgm5qKSNA653D06I/OkCIsCYZX+1btG0ZBmUUj991TSTglX96Iv7KTI9xTiOTRON Uw81rJAshUsPLujNzW16Pl9J1uSOb3EHfu6OWerjS3TZH5gdC3kDbCArf4tLfDFfzFqt 3JfofnNvYJzAfGAEqm7ciGWWGgwbNZ/qZu2o1F4DvnKOO2AY/qFpwmR5Xs2erYu0Dlg4 lvwaeiEzS6G5h4oHeLQGZMwBiWkzuT0QRzysH/2Ia8rcHm7oe3ShlohLhNvsJQJw7iSj KuojE4jVXJR7CS43MRzMCZ0tVK89YF8061kS0G+YBwTHH3tIN0DWVgJ3+UKmqHmPJ7Yr cRlA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=hhP79a0U; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 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 mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id 14si11165edv.4.2021.10.27.09.57.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 09:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C7FD8240027 for ; Wed, 27 Oct 2021 18:57:29 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HfZcT2w3gz9rxP for ; Wed, 27 Oct 2021 18:57:29 +0200 (CEST) Content-Disposition: inline In-Reply-To: <86c4d6cd-4ea3-41ad-aae9-c301f049a2can-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=hhP79a0U; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 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:29405 Archived-At: If all you want is to prevent indentation, you can use a filter that I wrot= e for a similar need: https://github.com/badumont/lua-filters/tree/complex-= paragraphs/complex-paragraphs (which supports other output formats and enab= les you to control more precisely what is indented or not). If you really n= eed to set a style, the following filter should work: ``` is_preceding_BlockQuote =3D false function Block(block) if block.t =3D=3D 'BlockQuote' then is_preceding_BlockQuote =3D true elseif is_preceding_BlockQuote =3D=3D true then is_preceding_BlockQuote =3D false return pandoc.Div(block, {['custom-style'] =3D 'Body Text 2'}) end end ``` Le Wednesday 27 October 2021 =C3=A0 09:32:34AM, Landon Yarrington a =C3=A9c= rit : > To clarify, in the MRE above, my goal is to get the paragraph immediately= after > the blockquote to render as "Body Text 2" according to the style in the > ref_template.docx. Using this and every other stylesheet I've made, the > following paragraphs always come out as style "First Paragraph." >=20 > On Wednesday, October 27, 2021 at 12:28:02 PM UTC-4 Landon Yarrington wro= te: >=20 > I'm trying to process block quotes in a way such that the following > paragraph directly after a block quote is styled as a continuation of= the > paragraph in which the blockquote is nested. I tried several differen= t > styles, but cannot seem to achieve this. I almost filed an issue on G= H, but > thought twice :-) >=20 > I'm using pandoc 2.15 with the following command. >=20 > `pandoc -N -t docx -f > markdown+markdown_attribute+mmd_link_attributes+simple_tables+multili= ne_tables+auto_identifiers+table_captions+yaml_metadata_block+raw_attribute= +implicit_figures+latex_macros+header_attributes > --reference-doc=3Dref_template.docx example.md -o TEST_example.docx` > Is this a user-error, a problem with my ref_template.docx, or what? >=20 > And here's `example.md` > ```` > # Heading1 >=20 > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. >=20 > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. >=20 > ## Heading 2 >=20 > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. >=20 > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. >=20 > > Block quote time. Block quote time. Block quote time. Block quote t= ime. > Block quote time. Block quote time. Block quote time. Block quote tim= e. > Block quote time. Block quote time. Block quote time. Block quote tim= e. > Block quote time. Block quote time. Block quote time. Block quote tim= e. > Block quote time. Block quote time. Block quote time. >=20 > Back to the text. Back to the text. Back to the text. Back to the tex= t. > Back to the text. >=20 > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. Here's some text. Here's some tex= t. > Here's some text. Here's some text. > ```` >=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/86c4d6cd-4ea3-41ad-aae9-c301f049a2can%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/86c4d6cd-4ea3-41ad-a= ae9-c301f049a2can%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/YXmErrRbpkRNsEje%40localhost.