* ODT with some, but not all, graphics aligned on the right margin @ 2023-02-07 16:12 Eelco Vriezekolk [not found] ` <d6ae917b-a037-4e03-a442-a050fdb7d368n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Eelco Vriezekolk @ 2023-02-07 16:12 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1211 bytes --] Hello, From Markdown I want to create a manual in various formats, including HTML and ODT (OpenDocument). My manual contains images. Most are figures (in their own paragraph), but others should appear inside a paragraph, with text flowing around it. For HTML this works: [image: Screenshot 2023-02-07 at 17.07.25.png] The .float-class is defined in a CSS-stylesheet, and works fine: However, I cannot get this to work right in the ODT output. I define a 'float' graphics style in the reference file, but it is not being picked up in the ODT-output. No amount of experimenting and searching the web have helped so far. I can get *all* figures to be right-aligned, but that is not what I want. I want to be able to indicate that some selected images appear inline. Can this be done? How? -- 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/d6ae917b-a037-4e03-a442-a050fdb7d368n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 55070 bytes --] [-- Attachment #2: Screenshot 2023-02-07 at 17.07.25.png --] [-- Type: image/png, Size: 33356 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <d6ae917b-a037-4e03-a442-a050fdb7d368n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: ODT with some, but not all, graphics aligned on the right margin [not found] ` <d6ae917b-a037-4e03-a442-a050fdb7d368n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2023-02-07 16:53 ` John MacFarlane [not found] ` <2D74B45D-A8A8-439D-9B60-F7711A1E6139-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: John MacFarlane @ 2023-02-07 16:53 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw I don't think there's an easy way to do this in ODT. custom-style works for docx but not odt. You could probably use a filter that emits raw opendocument XML, but I don't have time to walk through that now. > On Feb 7, 2023, at 8:12 AM, Eelco Vriezekolk <eelco-GsmfYmMHemE@public.gmane.org> wrote: > > Hello, > > From Markdown I want to create a manual in various formats, including HTML and ODT (OpenDocument). > My manual contains images. Most are figures (in their own paragraph), but others should appear inside a paragraph, with text flowing around it. For HTML this works: > > <Screenshot 2023-02-07 at 17.07.25.png> > > The .float-class is defined in a CSS-stylesheet, and works fine: > > > > However, I cannot get this to work right in the ODT output. I define a 'float' graphics style in the reference file, but it is not being picked up in the ODT-output. No amount of experimenting and searching the web have helped so far. > I can get *all* figures to be right-aligned, but that is not what I want. I want to be able to indicate that some selected images appear inline. > > Can this be done? How? > > > > -- > 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/d6ae917b-a037-4e03-a442-a050fdb7d368n%40googlegroups.com. > <Screenshot 2023-02-07 at 17.07.25.png> ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <2D74B45D-A8A8-439D-9B60-F7711A1E6139-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: ODT with some, but not all, graphics aligned on the right margin [not found] ` <2D74B45D-A8A8-439D-9B60-F7711A1E6139-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2023-02-07 21:04 ` Eelco Vriezekolk [not found] ` <a556d276-429e-b2db-2e83-7d89d26a74c7-GsmfYmMHemE@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Eelco Vriezekolk @ 2023-02-07 21:04 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hmm, that's a disappointment. Please have my vote for addition of styles-support in ODT. In my experience, the use of styles in OpenDocument is superior to that in Miicrosoft Word. But for now, I will make do with Word and docx. Thanks for the clarification! On 07/02/2023 17:53, John MacFarlane wrote: > I don't think there's an easy way to do this in ODT. custom-style works for docx but not odt. > You could probably use a filter that emits raw opendocument XML, but I don't have time to walk through that now. > >> On Feb 7, 2023, at 8:12 AM, Eelco Vriezekolk <eelco-GsmfYmMHemE@public.gmane.org> wrote: >> >> Hello, >> >> From Markdown I want to create a manual in various formats, including HTML and ODT (OpenDocument). >> My manual contains images. Most are figures (in their own paragraph), but others should appear inside a paragraph, with text flowing around it. For HTML this works: >> >> <Screenshot 2023-02-07 at 17.07.25.png> >> >> The .float-class is defined in a CSS-stylesheet, and works fine: >> >> >> >> However, I cannot get this to work right in the ODT output. I define a 'float' graphics style in the reference file, but it is not being picked up in the ODT-output. No amount of experimenting and searching the web have helped so far. >> I can get *all* figures to be right-aligned, but that is not what I want. I want to be able to indicate that some selected images appear inline. >> >> Can this be done? How? >> >> >> >> -- >> 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/d6ae917b-a037-4e03-a442-a050fdb7d368n%40googlegroups.com. >> <Screenshot 2023-02-07 at 17.07.25.png> -- Eelco Vriezekolk ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <a556d276-429e-b2db-2e83-7d89d26a74c7-GsmfYmMHemE@public.gmane.org>]
* Re: ODT with some, but not all, graphics aligned on the right margin [not found] ` <a556d276-429e-b2db-2e83-7d89d26a74c7-GsmfYmMHemE@public.gmane.org> @ 2023-02-08 11:10 ` Günter Dannoritzer 0 siblings, 0 replies; 4+ messages in thread From: Günter Dannoritzer @ 2023-02-08 11:10 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 3268 bytes --] Hi Eelco, I created a LUA-Filter that uses the Align-Classes and provides for docx the correct alignment. Maybe it helps for adjusting and using for odt. Regards, Günter if FORMAT ~= "docx" then print("Only docx target -- not: ", FORMAT) print("... ending") return end function Image (img) align = 'left' for k, v in pairs(img.classes) do --print('-->', k, v) if v == 'center' then align = 'center' elseif v == 'right' then align = 'right' end end ret_img = { pandoc.RawInline('openxml', string.format('<w:pPr><w:jc w:val="%s"/></w:pPr>', align)), img } return ret_img end Eelco Vriezekolk schrieb am Dienstag, 7. Februar 2023 um 22:05:00 UTC+1: > Hmm, that's a disappointment. Please have my vote for addition of > styles-support in ODT. In my experience, the use of styles in > OpenDocument is superior to that in Miicrosoft Word. > But for now, I will make do with Word and docx. > > Thanks for the clarification! > > On 07/02/2023 17:53, John MacFarlane wrote: > > I don't think there's an easy way to do this in ODT. custom-style works > for docx but not odt. > > You could probably use a filter that emits raw opendocument XML, but I > don't have time to walk through that now. > > > >> On Feb 7, 2023, at 8:12 AM, Eelco Vriezekolk <ee...-GsmfYmMHemE@public.gmane.org> wrote: > >> > >> Hello, > >> > >> From Markdown I want to create a manual in various formats, including > HTML and ODT (OpenDocument). > >> My manual contains images. Most are figures (in their own paragraph), > but others should appear inside a paragraph, with text flowing around it. > For HTML this works: > >> > >> <Screenshot 2023-02-07 at 17.07.25.png> > >> > >> The .float-class is defined in a CSS-stylesheet, and works fine: > >> > >> > >> > >> However, I cannot get this to work right in the ODT output. I define a > 'float' graphics style in the reference file, but it is not being picked up > in the ODT-output. No amount of experimenting and searching the web have > helped so far. > >> I can get *all* figures to be right-aligned, but that is not what I > want. I want to be able to indicate that some selected images appear inline. > >> > >> Can this be done? How? > >> > >> > >> > >> -- > >> 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/d6ae917b-a037-4e03-a442-a050fdb7d368n%40googlegroups.com > . > >> <Screenshot 2023-02-07 at 17.07.25.png> > > -- > Eelco Vriezekolk > > -- 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/2a798e1d-13d6-4a1d-a348-cda27ce363a4n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 4763 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-08 11:10 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-02-07 16:12 ODT with some, but not all, graphics aligned on the right margin Eelco Vriezekolk [not found] ` <d6ae917b-a037-4e03-a442-a050fdb7d368n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-02-07 16:53 ` John MacFarlane [not found] ` <2D74B45D-A8A8-439D-9B60-F7711A1E6139-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2023-02-07 21:04 ` Eelco Vriezekolk [not found] ` <a556d276-429e-b2db-2e83-7d89d26a74c7-GsmfYmMHemE@public.gmane.org> 2023-02-08 11:10 ` Günter Dannoritzer
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).