public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: MarLinn <monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Documentation for ODT output
Date: Mon, 14 Dec 2020 22:23:52 +0100	[thread overview]
Message-ID: <9dd3c5be-dbcd-158f-8943-2bada99f6de6@gmail.com> (raw)
In-Reply-To: <b330dbd0-add8-449c-b84e-41e4aa0398d9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

I am the author of the ODT reader, so I might be able to help.

The short answer to your examples is this: there is no simple markup.

OpenDocument files split structure and styling into two parts. Either 
into two separate parts in one stand-alone XML or into two separate XML 
files in the ODT zip. "Centring something" is part of the styling in 
this model.

So if you want to centre something in a filter, here's roughly what you 
need to do:

  * Create your own template based on the default template
  * In that template, create a custom style that looks the way you want,
    including centring.
  * In the filter, create your elements and simply apply your custom
    style to them.

This gets more fun with images because images are floating elements, 
possibly in a frame. One of the simpler ways to style them is with the 
same approach via "frame styles". That doesn't sound surprising, 
considering the names, but frame styles are not the best-known feature 
of ODT.

-- 
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/9dd3c5be-dbcd-158f-8943-2bada99f6de6%40gmail.com.

[-- Attachment #2: Type: text/html, Size: 1979 bytes --]

  parent reply	other threads:[~2020-12-14 21:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-14 14:01 Stephan Boltzmann
     [not found] ` <9506a809-476b-4063-9c3b-ec89b7bf71bcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-14 17:31   ` John MacFarlane
     [not found]     ` <m2pn3cz43q.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-14 18:46       ` Stephan Boltzmann
     [not found]         ` <b330dbd0-add8-449c-b84e-41e4aa0398d9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-14 21:23           ` MarLinn [this message]
     [not found]             ` <9dd3c5be-dbcd-158f-8943-2bada99f6de6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-12-15 13:22               ` Stephan Boltzmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9dd3c5be-dbcd-158f-8943-2bada99f6de6@gmail.com \
    --to=monkleyon-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).