* Re: eliminate styles for docx
[not found] ` <bc70a725-5c2b-4ef5-aec9-ba9da8d56fcb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-09-21 17:53 ` John MacFarlane
[not found] ` <m2o8zd35a6.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-09-22 11:33 ` John Muccigrosso
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2019-09-21 17:53 UTC (permalink / raw)
To: Chris Corbett, pandoc-discuss
What format are you converting from?
Simplest thing would be to put the whole thing in a code
block (except the signature); then it will all be monospace in Word.
Chris Corbett <chrisacorbett-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> I'm a pandoc newbie and I've searched the group, but haven't found out how
> to do what I want to do.
>
> I have a business application that is producing text file reports that are
> sent to the printer using enscript which basically is sending it using a
> single non-proportional font. The code producing the report ensures that
> everything has the correct alignment up by having the right amount of
> spaces between each column.
>
> I have a requirement to convert this report to a docx file because we want
> to have the ability to draw a signature on it. So I'm using pandoc to do
> that conversion. But when I do that, I end up with a document with
> multiple styles and its messing up all of the alignment.
>
> I've just spent the last couple of hours manipulating all of the styles
> setup within my document. But I'm not getting very far, very fast. Is
> there a way that I can add a tag to my input file to force pandoc to use a
> single style for everything? I'm not sure what is polite on this group, so
> I'm not attaching anything. But I would be happy to do so if it would help
> anyone help me.
>
> Thanks!
>
>
> --
> 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/bc70a725-5c2b-4ef5-aec9-ba9da8d56fcb%40googlegroups.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eliminate styles for docx
[not found] ` <bc70a725-5c2b-4ef5-aec9-ba9da8d56fcb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-09-21 17:53 ` John MacFarlane
@ 2019-09-22 11:33 ` John Muccigrosso
2019-09-23 13:11 ` Emmanuel Charpentier
2019-09-27 14:22 ` Chris Corbett
3 siblings, 0 replies; 6+ messages in thread
From: John Muccigrosso @ 2019-09-22 11:33 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 613 bytes --]
Silly question maybe, but what happens if you just put a ".docx" extension
on the text file? On my Mac with version 11 of Word, it asks what line
endings to use and then just opens as monospaced text.
--
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/6404fd3b-dad9-4fec-a394-b93ff9387398%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 926 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eliminate styles for docx
[not found] ` <bc70a725-5c2b-4ef5-aec9-ba9da8d56fcb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-09-21 17:53 ` John MacFarlane
2019-09-22 11:33 ` John Muccigrosso
@ 2019-09-23 13:11 ` Emmanuel Charpentier
2019-09-27 14:22 ` Chris Corbett
3 siblings, 0 replies; 6+ messages in thread
From: Emmanuel Charpentier @ 2019-09-23 13:11 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2776 bytes --]
From the goddamn' documentation <https://pandoc.org/MANUAL.html>:
- -B FILE, --include-before-body=FILE|URL
Include contents of FILE, verbatim, at the beginning of the document body
(e.g. after the <body> tag in HTML, or the \begin{document} command in
LaTeX). This can be used to include navigation bars or banners in HTML
documents. This option can be used repeatedly to include multiple files.
They will be included in the order specified. Implies --standalone.
- -A FILE, --include-after-body=FILE|URL
Include contents of FILE, verbatim, at the end of the document body (before
the </body> tag in HTML, or the \end{document} command in LaTeX). This
option can be used repeatedly to include multiple files. They will be
included in the order specified. Implies --standalone.
with the corresponding "structural variables":
- include-before
contents specified by -B/--include-before-body (may have multiple values)
- include-after
contents specified by -A/--include-after-body (may have multiple values)
This may do the trick.
Le vendredi 20 septembre 2019 22:35:19 UTC+2, Chris Corbett a écrit :
>
> I'm a pandoc newbie and I've searched the group, but haven't found out how
> to do what I want to do.
>
> I have a business application that is producing text file reports that are
> sent to the printer using enscript which basically is sending it using a
> single non-proportional font. The code producing the report ensures that
> everything has the correct alignment up by having the right amount of
> spaces between each column.
>
> I have a requirement to convert this report to a docx file because we want
> to have the ability to draw a signature on it. So I'm using pandoc to do
> that conversion. But when I do that, I end up with a document with
> multiple styles and its messing up all of the alignment.
>
> I've just spent the last couple of hours manipulating all of the styles
> setup within my document. But I'm not getting very far, very fast. Is
> there a way that I can add a tag to my input file to force pandoc to use a
> single style for everything? I'm not sure what is polite on this group, so
> I'm not attaching anything. But I would be happy to do so if it would help
> anyone help me.
>
> Thanks!
>
>
>
--
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/6dbcfbd5-9b52-43f6-82f2-fd1b60b75851%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 4228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: eliminate styles for docx
[not found] ` <bc70a725-5c2b-4ef5-aec9-ba9da8d56fcb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
` (2 preceding siblings ...)
2019-09-23 13:11 ` Emmanuel Charpentier
@ 2019-09-27 14:22 ` Chris Corbett
3 siblings, 0 replies; 6+ messages in thread
From: Chris Corbett @ 2019-09-27 14:22 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1868 bytes --]
I wanted to thank everyone for their answers. The solution I went with is
to add ~~~ at the beginning and end of the text file. And then I just had
to change the font and font size for one style within the reference docx.
On Friday, September 20, 2019 at 3:35:19 PM UTC-5, Chris Corbett wrote:
>
> I'm a pandoc newbie and I've searched the group, but haven't found out how
> to do what I want to do.
>
> I have a business application that is producing text file reports that are
> sent to the printer using enscript which basically is sending it using a
> single non-proportional font. The code producing the report ensures that
> everything has the correct alignment up by having the right amount of
> spaces between each column.
>
> I have a requirement to convert this report to a docx file because we want
> to have the ability to draw a signature on it. So I'm using pandoc to do
> that conversion. But when I do that, I end up with a document with
> multiple styles and its messing up all of the alignment.
>
> I've just spent the last couple of hours manipulating all of the styles
> setup within my document. But I'm not getting very far, very fast. Is
> there a way that I can add a tag to my input file to force pandoc to use a
> single style for everything? I'm not sure what is polite on this group, so
> I'm not attaching anything. But I would be happy to do so if it would help
> anyone help me.
>
> Thanks!
>
>
>
--
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/16693d6e-9da7-426f-b44b-a3ca9c8076d4%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2436 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread