public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to control indentation of code blocks in docx?
@ 2020-08-11 16:10 Mikhail Matrosov
       [not found] ` <14f38de3-e8ad-4882-9ad0-cf108a56323cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Mikhail Matrosov @ 2020-08-11 16:10 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1181 bytes --]

I convert AsciiDoc to Word via DocBook. The db->docx conversion is done 
with Pandoc and is the most interesting.

I provide a reference file with --reference-doc. I specified indentation 
for the Body Text style in the reference file. Now the text is indented. 
But source code is not.

[image: Clipboard01.png]

I could have altered the "Source Code" style, but I have code in both 
regular text and in table cells. I want code in the regular text to be 
indented. I want code in table cells not to be indented.

How can I achieve this? Most of my code is in tables cells, so I can leave 
the code unindented by default, and indent it manually with some mark-up 
for regular text. But how do I do this? Can I specify some custom Word 
style for a block, for instance?

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1695 bytes --]

[-- Attachment #2: Clipboard01.png --]
[-- Type: image/png, Size: 26383 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to control indentation of code blocks in docx?
       [not found] ` <14f38de3-e8ad-4882-9ad0-cf108a56323cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-08-11 16:17   ` Leonard Rosenthol
       [not found]     ` <CALu=v3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Leonard Rosenthol @ 2020-08-11 16:17 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 2029 bytes --]

You could it using a custom style on the non-table versions

::: {custom-style="Indented Code"}
code goes here...
:::

On Tue, Aug 11, 2020 at 12:10 PM Mikhail Matrosov <
mikhail.matrosov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> I convert AsciiDoc to Word via DocBook. The db->docx conversion is done
> with Pandoc and is the most interesting.
>
> I provide a reference file with --reference-doc. I specified indentation
> for the Body Text style in the reference file. Now the text is indented.
> But source code is not.
>
> [image: Clipboard01.png]
>
> I could have altered the "Source Code" style, but I have code in both
> regular text and in table cells. I want code in the regular text to be
> indented. I want code in table cells not to be indented.
>
> How can I achieve this? Most of my code is in tables cells, so I can leave
> the code unindented by default, and indent it manually with some mark-up
> for regular text. But how do I do this? Can I specify some custom Word
> style for a block, for instance?
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw%40mail.gmail.com.

[-- Attachment #1.2: Type: text/html, Size: 3041 bytes --]

[-- Attachment #2: Clipboard01.png --]
[-- Type: image/png, Size: 26383 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to control indentation of code blocks in docx?
       [not found]     ` <CALu=v3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2020-08-11 16:22       ` Mikhail Matrosov
       [not found]         ` <CADhDkKxUJiK9uEcuLKD=abMQuHGP12P9jyUCt-=XZvfTT_bpGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Mikhail Matrosov @ 2020-08-11 16:22 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 3004 bytes --]

What do you mean? This snippet is not something asciidoc can parse.

-----
Best regards, Mikhail Matrosov


On Tue, Aug 11, 2020 at 7:17 PM Leonard Rosenthol <leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org>
wrote:

> You could it using a custom style on the non-table versions
>
> ::: {custom-style="Indented Code"}
> code goes here...
> :::
>
> On Tue, Aug 11, 2020 at 12:10 PM Mikhail Matrosov <
> mikhail.matrosov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>> I convert AsciiDoc to Word via DocBook. The db->docx conversion is done
>> with Pandoc and is the most interesting.
>>
>> I provide a reference file with --reference-doc. I specified indentation
>> for the Body Text style in the reference file. Now the text is indented.
>> But source code is not.
>>
>> [image: Clipboard01.png]
>>
>> I could have altered the "Source Code" style, but I have code in both
>> regular text and in table cells. I want code in the regular text to be
>> indented. I want code in table cells not to be indented.
>>
>> How can I achieve this? Most of my code is in tables cells, so I can
>> leave the code unindented by default, and indent it manually with some
>> mark-up for regular text. But how do I do this? Can I specify some custom
>> Word style for a block, for instance?
>>
>> --
>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com
>> <https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/jzwKbGjIQCs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email 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/CALu%3Dv3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADhDkKxUJiK9uEcuLKD%3DabMQuHGP12P9jyUCt-%3DXZvfTT_bpGw%40mail.gmail.com.

[-- Attachment #1.2: Type: text/html, Size: 4636 bytes --]

[-- Attachment #2: Clipboard01.png --]
[-- Type: image/png, Size: 26383 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to control indentation of code blocks in docx?
       [not found]         ` <CADhDkKxUJiK9uEcuLKD=abMQuHGP12P9jyUCt-=XZvfTT_bpGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2020-08-11 16:26           ` Leonard Rosenthol
  0 siblings, 0 replies; 4+ messages in thread
From: Leonard Rosenthol @ 2020-08-11 16:26 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 4122 bytes --]

Sorry - missed the fact that you were starting with AsciiDoc and then going
to DocBook and only then to DocX.

What I showed you is how, in Pandoc Markdown, you can set a custom style
that Word will pick up.

You'd need to have some way to get that same information into the DocBook
output from AsciiDoc, for Pandoc to then pick up.

On Tue, Aug 11, 2020 at 12:22 PM Mikhail Matrosov <
mikhail.matrosov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> What do you mean? This snippet is not something asciidoc can parse.
>
> -----
> Best regards, Mikhail Matrosov
>
>
> On Tue, Aug 11, 2020 at 7:17 PM Leonard Rosenthol <leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org>
> wrote:
>
>> You could it using a custom style on the non-table versions
>>
>> ::: {custom-style="Indented Code"}
>> code goes here...
>> :::
>>
>> On Tue, Aug 11, 2020 at 12:10 PM Mikhail Matrosov <
>> mikhail.matrosov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>>> I convert AsciiDoc to Word via DocBook. The db->docx conversion is done
>>> with Pandoc and is the most interesting.
>>>
>>> I provide a reference file with --reference-doc. I specified indentation
>>> for the Body Text style in the reference file. Now the text is indented.
>>> But source code is not.
>>>
>>> [image: Clipboard01.png]
>>>
>>> I could have altered the "Source Code" style, but I have code in both
>>> regular text and in table cells. I want code in the regular text to be
>>> indented. I want code in table cells not to be indented.
>>>
>>> How can I achieve this? Most of my code is in tables cells, so I can
>>> leave the code unindented by default, and indent it manually with some
>>> mark-up for regular text. But how do I do this? Can I specify some custom
>>> Word style for a block, for instance?
>>>
>>> --
>>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/pandoc-discuss/14f38de3-e8ad-4882-9ad0-cf108a56323cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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/jzwKbGjIQCs/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email 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/CALu%3Dv3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/CADhDkKxUJiK9uEcuLKD%3DabMQuHGP12P9jyUCt-%3DXZvfTT_bpGw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CADhDkKxUJiK9uEcuLKD%3DabMQuHGP12P9jyUCt-%3DXZvfTT_bpGw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3KQORx8u4swCygKs-aOyJ2uW5n6ASKK_iWQAdK8hw9A8w%40mail.gmail.com.

[-- Attachment #1.2: Type: text/html, Size: 6197 bytes --]

[-- Attachment #2: Clipboard01.png --]
[-- Type: image/png, Size: 26383 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-11 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 16:10 How to control indentation of code blocks in docx? Mikhail Matrosov
     [not found] ` <14f38de3-e8ad-4882-9ad0-cf108a56323cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-11 16:17   ` Leonard Rosenthol
     [not found]     ` <CALu=v3JqVOw0aK_2-mnFOhReT5o2xLyO6tM9QQXw7YTFG03YAw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-11 16:22       ` Mikhail Matrosov
     [not found]         ` <CADhDkKxUJiK9uEcuLKD=abMQuHGP12P9jyUCt-=XZvfTT_bpGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-11 16:26           ` Leonard Rosenthol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).