* Three centered asterisk
@ 2021-01-26 9:35 Alan
[not found] ` <049f092f-e4d3-4ccb-b549-f1443f9e354fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Alan @ 2021-01-26 9:35 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]
Sorry if this is not right place to ask.
I am writing a book in markdown, export it in MS Word with Pandoc. Is it
possible in markdown to format three asterisk to divide the text, like in
the picture bellow?
[image: Screenshot 2021-01-26 103149.png]
--
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/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1112 bytes --]
[-- Attachment #2: Screenshot 2021-01-26 103149.png --]
[-- Type: image/png, Size: 40895 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <049f092f-e4d3-4ccb-b549-f1443f9e354fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-01-26 13:24 ` Joseph Reagle
[not found] ` <a41fd6ff-26f4-8242-63cd-fc6c1dc1f726-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2021-01-26 17:22 ` John MacFarlane
1 sibling, 1 reply; 10+ messages in thread
From: Joseph Reagle @ 2021-01-26 13:24 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Would simply putting them in a code block suffice? For example,
```
*
* *
```
On 1/26/21 4:35 AM, Alan wrote:
> I am writing a book in markdown, export it in MS Word with Pandoc. Is it possible in markdown to format three asterisk to divide the text, like in the picture bellow?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <a41fd6ff-26f4-8242-63cd-fc6c1dc1f726-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
@ 2021-01-26 16:14 ` Alan
[not found] ` <9709dc4f-67ef-4814-ba0f-6b2b38b03023n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Alan @ 2021-01-26 16:14 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 895 bytes --]
Thank you for answer. I try that, but they are not centered. So the
question is how to center them, I suppose...
On Tuesday, January 26, 2021 at 2:24:37 PM UTC+1 Joseph wrote:
> Would simply putting them in a code block suffice? For example,
>
> ```
> *
> * *
> ```
>
> On 1/26/21 4:35 AM, Alan wrote:
> > I am writing a book in markdown, export it in MS Word with Pandoc. Is it
> possible in markdown to format three asterisk to divide the text, like in
> the picture bellow?
>
--
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/9709dc4f-67ef-4814-ba0f-6b2b38b03023n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1447 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <9709dc4f-67ef-4814-ba0f-6b2b38b03023n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-01-26 16:29 ` Alan
0 siblings, 0 replies; 10+ messages in thread
From: Alan @ 2021-01-26 16:29 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1196 bytes --]
I try
```
<p style="text-align: center;">\*</p>
<p style="text-align: center;">\*\*</p>
```
It works in html, but don't works in MS Word. I suppose I can edit
reference-doc, but I can't figure which style is used.
On Tuesday, January 26, 2021 at 5:14:27 PM UTC+1 Alan wrote:
> Thank you for answer. I try that, but they are not centered. So the
> question is how to center them, I suppose...
>
> On Tuesday, January 26, 2021 at 2:24:37 PM UTC+1 Joseph wrote:
>
>> Would simply putting them in a code block suffice? For example,
>>
>> ```
>> *
>> * *
>> ```
>>
>> On 1/26/21 4:35 AM, Alan wrote:
>> > I am writing a book in markdown, export it in MS Word with Pandoc. Is
>> it possible in markdown to format three asterisk to divide the text, like
>> in the picture bellow?
>>
>
--
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/e5cb7636-4dee-4a1b-98bc-c6bfb5ffbbf4n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2014 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <049f092f-e4d3-4ccb-b549-f1443f9e354fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-26 13:24 ` Joseph Reagle
@ 2021-01-26 17:22 ` John MacFarlane
[not found] ` <m27dnzd34q.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
1 sibling, 1 reply; 10+ messages in thread
From: John MacFarlane @ 2021-01-26 17:22 UTC (permalink / raw)
To: Alan, pandoc-discuss
The cleanest approach would be to use a regular horizontal rule
in your markdown, then use a filter to replace HorizontalRule
elements with some raw openxml that creates this centered
pattern.
To find the openxml you need for this, you'd needi to create a word
file, unzip it and examine the contents.
The filter itself would be pretty simple.
Alan <omvvardar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Sorry if this is not right place to ask.
>
> I am writing a book in markdown, export it in MS Word with Pandoc. Is it
> possible in markdown to format three asterisk to divide the text, like in
> the picture bellow?
>
> [image: Screenshot 2021-01-26 103149.png]
>
> --
> 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/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <m27dnzd34q.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2021-01-27 16:31 ` Alan
[not found] ` <2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Alan @ 2021-01-27 16:31 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1981 bytes --]
Thank you John for your answer. I am quite a noob, but I find this code in
word document
```
<w:pPr
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:jc w:val="center" />
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
```
But I have not idea what "use filter" means :-( Should I have create lua
filter?
On Tuesday, January 26, 2021 at 6:23:00 PM UTC+1 John MacFarlane wrote:
>
> The cleanest approach would be to use a regular horizontal rule
> in your markdown, then use a filter to replace HorizontalRule
> elements with some raw openxml that creates this centered
> pattern.
>
> To find the openxml you need for this, you'd needi to create a word
> file, unzip it and examine the contents.
>
> The filter itself would be pretty simple.
>
> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > Sorry if this is not right place to ask.
> >
> > I am writing a book in markdown, export it in MS Word with Pandoc. Is it
> > possible in markdown to format three asterisk to divide the text, like
> in
> > the picture bellow?
> >
> > [image: Screenshot 2021-01-26 103149.png]
> >
> > --
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 3225 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-01-27 17:13 ` John MacFarlane
[not found] ` <m2tur29ubk.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: John MacFarlane @ 2021-01-27 17:13 UTC (permalink / raw)
To: Alan, pandoc-discuss
To start, see
https://pandoc.org/lua-filters
You'll need a bigger chunk of xml than that to insert:
look for the whole w:p element surrounding the part you extracted.
Alan <omvvardar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Thank you John for your answer. I am quite a noob, but I find this code in
> word document
>
> ```
> <w:pPr
> xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
> <w:jc w:val="center" />
> <w:rPr>
> <w:lang w:val="en-US" />
> </w:rPr>
> </w:pPr>
>
> ```
> But I have not idea what "use filter" means :-( Should I have create lua
> filter?
> On Tuesday, January 26, 2021 at 6:23:00 PM UTC+1 John MacFarlane wrote:
>
>>
>> The cleanest approach would be to use a regular horizontal rule
>> in your markdown, then use a filter to replace HorizontalRule
>> elements with some raw openxml that creates this centered
>> pattern.
>>
>> To find the openxml you need for this, you'd needi to create a word
>> file, unzip it and examine the contents.
>>
>> The filter itself would be pretty simple.
>>
>> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > Sorry if this is not right place to ask.
>> >
>> > I am writing a book in markdown, export it in MS Word with Pandoc. Is it
>> > possible in markdown to format three asterisk to divide the text, like
>> in
>> > the picture bellow?
>> >
>> > [image: Screenshot 2021-01-26 103149.png]
>> >
>> > --
>> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n%40googlegroups.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <m2tur29ubk.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2021-01-27 20:40 ` Julien Dutant
[not found] ` <9eb5562a-0cc9-4407-b163-e39adbcc527bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Julien Dutant @ 2021-01-27 20:40 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 3518 bytes --]
Hi both,
A quicker solution is to use generic raw attributes
(https://pandoc.org/MANUAL.html#generic-raw-attribute). Insert this in the
markdown (including the lines with backticks):
```{=openxml}
<w:p>
<w:pPr><w:jc w:val="center"/></w:pPr>
<w:r><w:t>*</w:t></w:r>
</w:p>
<w:p>
<w:pPr><w:jc w:val="center"/></w:pPr>
<w:r><w:t>* *</w:t></w:r>
</w:p>
```
You can make it less distracting by removing tabs and linebreaks:
```{=openxml}
<w:p><w:pPr><w:jc
w:val="center"/></w:pPr><w:r><w:t>*</w:t></w:r></w:p><w:p><w:pPr><w:jc
w:val="center"/></w:pPr><w:r><w:t>* *</w:t></w:r></w:p>
```
J
On Wednesday, January 27, 2021 at 5:13:51 PM UTC John MacFarlane wrote:
>
> To start, see
>
> https://pandoc.org/lua-filters
>
> You'll need a bigger chunk of xml than that to insert:
> look for the whole w:p element surrounding the part you extracted.
>
> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > Thank you John for your answer. I am quite a noob, but I find this code
> in
> > word document
> >
> > ```
> > <w:pPr
> > xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
> > <w:jc w:val="center" />
> > <w:rPr>
> > <w:lang w:val="en-US" />
> > </w:rPr>
> > </w:pPr>
> >
> > ```
> > But I have not idea what "use filter" means :-( Should I have create lua
> > filter?
> > On Tuesday, January 26, 2021 at 6:23:00 PM UTC+1 John MacFarlane wrote:
> >
> >>
> >> The cleanest approach would be to use a regular horizontal rule
> >> in your markdown, then use a filter to replace HorizontalRule
> >> elements with some raw openxml that creates this centered
> >> pattern.
> >>
> >> To find the openxml you need for this, you'd needi to create a word
> >> file, unzip it and examine the contents.
> >>
> >> The filter itself would be pretty simple.
> >>
> >> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> >>
> >> > Sorry if this is not right place to ask.
> >> >
> >> > I am writing a book in markdown, export it in MS Word with Pandoc. Is
> it
> >> > possible in markdown to format three asterisk to divide the text,
> like
> >> in
> >> > the picture bellow?
> >> >
> >> > [image: Screenshot 2021-01-26 103149.png]
> >> >
> >> > --
> >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> >> > To view this discussion on the web visit
> >>
> https://groups.google.com/d/msgid/pandoc-discuss/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n%40googlegroups.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9eb5562a-0cc9-4407-b163-e39adbcc527bn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 6644 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <9eb5562a-0cc9-4407-b163-e39adbcc527bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-01-27 20:49 ` Julien Dutant
[not found] ` <6f16ac43-7f5f-408d-b01a-4a744bd143fan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Julien Dutant @ 2021-01-27 20:49 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 4509 bytes --]
BTW there's also a simple "not-in-format" filter that would allow you to
specify an alternative for all other outputs formats than MS Word
(https://github.com/pandoc/lua-filters/tree/master/not-in-format ). If,
say, you wanted to print out a horizontal rule in HTML, PDF and other
output formats, but the three asterisks in MS Word, you would copy the
not-in-format.lua file in the document's directory (or in pandoc's
data-dir, https://pandoc.org/MANUAL.html#option--data-dir) and put the
following in markdown:
::: {.not-in-format .docx}
----------
:::
```{=openxml}
<w:p><w:pPr><w:jc
w:val="center"/></w:pPr><w:r><w:t>*</w:t></w:r></w:p><w:p><w:pPr><w:jc
w:val="center"/></w:pPr><w:r><w:t>* *</w:t></w:r></w:p>
```
Best, J
On Wednesday, January 27, 2021 at 8:40:38 PM UTC Julien Dutant wrote:
> Hi both,
>
> A quicker solution is to use generic raw attributes (
> https://pandoc.org/MANUAL.html#generic-raw-attribute). Insert this in the
> markdown (including the lines with backticks):
>
> ```{=openxml}
> <w:p>
> <w:pPr><w:jc w:val="center"/></w:pPr>
> <w:r><w:t>*</w:t></w:r>
> </w:p>
> <w:p>
> <w:pPr><w:jc w:val="center"/></w:pPr>
> <w:r><w:t>* *</w:t></w:r>
> </w:p>
> ```
>
> You can make it less distracting by removing tabs and linebreaks:
>
> ```{=openxml}
> <w:p><w:pPr><w:jc
> w:val="center"/></w:pPr><w:r><w:t>*</w:t></w:r></w:p><w:p><w:pPr><w:jc
> w:val="center"/></w:pPr><w:r><w:t>* *</w:t></w:r></w:p>
> ```
>
> J
>
> On Wednesday, January 27, 2021 at 5:13:51 PM UTC John MacFarlane wrote:
>
>>
>> To start, see
>>
>> https://pandoc.org/lua-filters
>>
>> You'll need a bigger chunk of xml than that to insert:
>> look for the whole w:p element surrounding the part you extracted.
>>
>> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > Thank you John for your answer. I am quite a noob, but I find this code
>> in
>> > word document
>> >
>> > ```
>> > <w:pPr
>> > xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
>>
>> > <w:jc w:val="center" />
>> > <w:rPr>
>> > <w:lang w:val="en-US" />
>> > </w:rPr>
>> > </w:pPr>
>> >
>> > ```
>> > But I have not idea what "use filter" means :-( Should I have create
>> lua
>> > filter?
>> > On Tuesday, January 26, 2021 at 6:23:00 PM UTC+1 John MacFarlane wrote:
>> >
>> >>
>> >> The cleanest approach would be to use a regular horizontal rule
>> >> in your markdown, then use a filter to replace HorizontalRule
>> >> elements with some raw openxml that creates this centered
>> >> pattern.
>> >>
>> >> To find the openxml you need for this, you'd needi to create a word
>> >> file, unzip it and examine the contents.
>> >>
>> >> The filter itself would be pretty simple.
>> >>
>> >> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>> >>
>> >> > Sorry if this is not right place to ask.
>> >> >
>> >> > I am writing a book in markdown, export it in MS Word with Pandoc.
>> Is it
>> >> > possible in markdown to format three asterisk to divide the text,
>> like
>> >> in
>> >> > the picture bellow?
>> >> >
>> >> > [image: Screenshot 2021-01-26 103149.png]
>> >> >
>> >> > --
>> >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> >> > To view this discussion on the web visit
>> >>
>> https://groups.google.com/d/msgid/pandoc-discuss/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n%40googlegroups.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6f16ac43-7f5f-408d-b01a-4a744bd143fan%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 8113 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Three centered asterisk
[not found] ` <6f16ac43-7f5f-408d-b01a-4a744bd143fan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-01-27 22:31 ` Alan
0 siblings, 0 replies; 10+ messages in thread
From: Alan @ 2021-01-27 22:31 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 4789 bytes --]
Thank you Julien, it's working like a charm. Thank you!
On Wednesday, January 27, 2021 at 9:49:20 PM UTC+1 Julien Dutant wrote:
> BTW there's also a simple "not-in-format" filter that would allow you to
> specify an alternative for all other outputs formats than MS Word (
> https://github.com/pandoc/lua-filters/tree/master/not-in-format ). If,
> say, you wanted to print out a horizontal rule in HTML, PDF and other
> output formats, but the three asterisks in MS Word, you would copy the
> not-in-format.lua file in the document's directory (or in pandoc's
> data-dir, https://pandoc.org/MANUAL.html#option--data-dir) and put the
> following in markdown:
>
> ::: {.not-in-format .docx}
> ----------
> :::
>
> ```{=openxml}
> <w:p><w:pPr><w:jc
> w:val="center"/></w:pPr><w:r><w:t>*</w:t></w:r></w:p><w:p><w:pPr><w:jc
> w:val="center"/></w:pPr><w:r><w:t>* *</w:t></w:r></w:p>
> ```
>
> Best, J
> On Wednesday, January 27, 2021 at 8:40:38 PM UTC Julien Dutant wrote:
>
>> Hi both,
>>
>> A quicker solution is to use generic raw attributes (
>> https://pandoc.org/MANUAL.html#generic-raw-attribute). Insert this in
>> the markdown (including the lines with backticks):
>>
>> ```{=openxml}
>> <w:p>
>> <w:pPr><w:jc w:val="center"/></w:pPr>
>> <w:r><w:t>*</w:t></w:r>
>> </w:p>
>> <w:p>
>> <w:pPr><w:jc w:val="center"/></w:pPr>
>> <w:r><w:t>* *</w:t></w:r>
>> </w:p>
>> ```
>>
>> You can make it less distracting by removing tabs and linebreaks:
>>
>> ```{=openxml}
>> <w:p><w:pPr><w:jc
>> w:val="center"/></w:pPr><w:r><w:t>*</w:t></w:r></w:p><w:p><w:pPr><w:jc
>> w:val="center"/></w:pPr><w:r><w:t>* *</w:t></w:r></w:p>
>> ```
>>
>> J
>>
>> On Wednesday, January 27, 2021 at 5:13:51 PM UTC John MacFarlane wrote:
>>
>>>
>>> To start, see
>>>
>>> https://pandoc.org/lua-filters
>>>
>>> You'll need a bigger chunk of xml than that to insert:
>>> look for the whole w:p element surrounding the part you extracted.
>>>
>>> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>>
>>> > Thank you John for your answer. I am quite a noob, but I find this
>>> code in
>>> > word document
>>> >
>>> > ```
>>> > <w:pPr
>>> > xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
>>>
>>> > <w:jc w:val="center" />
>>> > <w:rPr>
>>> > <w:lang w:val="en-US" />
>>> > </w:rPr>
>>> > </w:pPr>
>>> >
>>> > ```
>>> > But I have not idea what "use filter" means :-( Should I have create
>>> lua
>>> > filter?
>>> > On Tuesday, January 26, 2021 at 6:23:00 PM UTC+1 John MacFarlane
>>> wrote:
>>> >
>>> >>
>>> >> The cleanest approach would be to use a regular horizontal rule
>>> >> in your markdown, then use a filter to replace HorizontalRule
>>> >> elements with some raw openxml that creates this centered
>>> >> pattern.
>>> >>
>>> >> To find the openxml you need for this, you'd needi to create a word
>>> >> file, unzip it and examine the contents.
>>> >>
>>> >> The filter itself would be pretty simple.
>>> >>
>>> >> Alan <omvv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>> >>
>>> >> > Sorry if this is not right place to ask.
>>> >> >
>>> >> > I am writing a book in markdown, export it in MS Word with Pandoc.
>>> Is it
>>> >> > possible in markdown to format three asterisk to divide the text,
>>> like
>>> >> in
>>> >> > the picture bellow?
>>> >> >
>>> >> > [image: Screenshot 2021-01-26 103149.png]
>>> >> >
>>> >> > --
>>> >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> >> > To view this discussion on the web visit
>>> >>
>>> https://groups.google.com/d/msgid/pandoc-discuss/049f092f-e4d3-4ccb-b549-f1443f9e354fn%40googlegroups.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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/pandoc-discuss/2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n%40googlegroups.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9339ebe0-2119-4b06-9d52-4b4d66b44b56n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 9091 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-01-27 22:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 9:35 Three centered asterisk Alan
[not found] ` <049f092f-e4d3-4ccb-b549-f1443f9e354fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-26 13:24 ` Joseph Reagle
[not found] ` <a41fd6ff-26f4-8242-63cd-fc6c1dc1f726-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2021-01-26 16:14 ` Alan
[not found] ` <9709dc4f-67ef-4814-ba0f-6b2b38b03023n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-26 16:29 ` Alan
2021-01-26 17:22 ` John MacFarlane
[not found] ` <m27dnzd34q.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-01-27 16:31 ` Alan
[not found] ` <2d307a49-d926-4fc3-a1c7-8c5f3bddd3b6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-27 17:13 ` John MacFarlane
[not found] ` <m2tur29ubk.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-01-27 20:40 ` Julien Dutant
[not found] ` <9eb5562a-0cc9-4407-b163-e39adbcc527bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-27 20:49 ` Julien Dutant
[not found] ` <6f16ac43-7f5f-408d-b01a-4a744bd143fan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-27 22:31 ` Alan
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).