Hi John,

the block-headings variable works, instructions are added to the preamble.

However, my conversion also includes a header that uses the sectsty package. This package redefines the \paragraph command, therefore the instructions added by the block-headings through the template are overwritten.

That's why if I add the instructions associated to the block-headings variable to my header it works.

Thanks a lot for your help

Il giorno mar 18 ott 2022 alle ore 00:33 John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ha scritto:
If you use `-t latex -s`, or if you use `—verbose` while producing a PDF, you’ll see the LaTeX intermediate file.
Check to see that it includes these lines in the preamble:

% Make \paragraph and \subparagraph free-standing
\ifx\paragraph\undefined\else
  \let\oldparagraph\paragraph
  \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
\fi
\ifx\subparagraph\undefined\else
  \let\oldsubparagraph\subparagraph
  \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
\fi

If it does, then block-headings did what it was supposed to.


> On Oct 17, 2022, at 3:26 PM, Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> I use pandoc 2.19.2
>
> Il Mar 18 Ott 2022, 00:25 John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ha scritto:
> What pandoc version?
>
> > On Oct 17, 2022, at 3:19 PM, Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > Yeah, it's a typo in the message: in metadata I wrote block-headings: true....I copied it from the manual.
> >
> > Il Mar 18 Ott 2022, 00:06 John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ha scritto:
> > It’s block-headings (with an s).
> >
> > > On Oct 17, 2022, at 12:59 PM, Claudio Di Vita <claudio.divita-Re5JQEeQqe8@public.gmane.orgm> wrote:
> > >
> > > Hi folks,
> > >
> > > I set the block-heading variable to true through the metadata block, however no changes is applied to my document.
> > >
> > > Please note that:
> > >       • Variables like urlcolor and linkcolor works fine
> > >       • If I add the LaTeX statements I found in the template to my preamble, 4th and 5th level headers are free-standing
> > > Is there any constraint/prerequisite to be met for using block-headings ?
> > >
> > > Thanks a lot, cheers
> > >
> > > Claudio
> > >
> > > --
> > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ef6821e6-6de5-4f8c-b3c9-5692df472e27n%40googlegroups.com.
> >
> > --
> > You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
> > To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/Oiuk8myUoFc/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/E53EB13B-6757-4117-B86D-D2A847FEAB10%40gmail.com.
> >
> > --
> > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16uxC%3DCzeL0%2BbdYGnQHkBgHC5PoBqkR%2BsHUmddXNf6tnHw%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/Oiuk8myUoFc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/FF4194CA-FA19-4713-9C95-6A73B56E4D5C%40gmail.com.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16uzMHBaD6q7M7DJ1Oyqt%3D1WCcKTTh4HhsQBpNd2qfzw%2BQ%40mail.gmail.com.

--
You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/Oiuk8myUoFc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0B3B83E5-1716-4F88-BD91-E560515C0AC0%40gmail.com.


--
Claudio
claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16tiBW8VJm8Q9yTttbqbhVb-MFOZsJJ0Qcuxo2Fyu%2BgEbQ%40mail.gmail.com.