Anton - interesting problem.

I haven't run into this one myself, though I fully understand the situation.

I would think that a separate character style, say "Verbatim Header" that is based on the Header style would be the best option - perhaps using the formula that you defined.

Currently, I end up writing such things in Lua filters (as I am more comfortable in Lua and I don't have to wait for updates to pandoc) - but I think that if you agree with the suggestion above, we'd want that in pandoc including in the standard reference.docx.

Leonard

On Thu, Aug 6, 2020 at 4:17 PM Anton Shepelev <anton.txt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I asked:

> As  distinct  from  other  Markdown processors and
> other output formats, while rendering DOCX  output
> with  Pandoc,  inline  `verbatim`  text in headers
> does not work so well, because it inherits not on-
> ly  the  font,  but  also  the  font size from the
> `Verbatim Char' style. I do realise that it is the
> right  thing  to  do for running text because most
> monospace fonts look  better  at  a  slightly  de-
> creased  size  (e.g. 12pt Times New Roman and 11pt
> Courier New), but I still should like to see  nice
> typewriter text in headers:
>
>              ## The `switch` keyword

I wonder who nobody replied.  What is your method of
typsetting such headers:

# The `switch` keyword
# The `ref` and `out` keywords
# The `far` and `near` modifiers
# The `printf()` function

Do you fix them in your Lua filters?  Is  it  better
to  have  this  functionality in a Lua filters on in
Pandoc itself?

--
Please, do not forward replies to my e-mail.

--
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/20200806231710.dd08c7f61a90ea23c708d507%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/CALu%3Dv3JVngmSBL23Lmckh89FT0ivtxnd2%2Bo%2B%3DUchr1ZF%2BVdGeg%40mail.gmail.com.