public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BP Jonsson <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Emulating captions for multi-column?
Date: Sun, 24 Jun 2018 12:11:34 +0200	[thread overview]
Message-ID: <CAFC_yuR=sRT05cRjg9s5rJTdDVJmVaX22znN+9zvvBXvJ0gGqA@mail.gmail.com> (raw)
In-Reply-To: <b0c877cb-a42c-a806-4f3d-53a3474a9ce8-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>

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

What about a paragraph in a div with class "caption" and then the classic
CSS:

```css
div.caption p {
    /* center box in container */
    margin-left: auto;
    margin-right: auto;
    /* set width of para */
    width: 50%;
}
```

lör 23 juni 2018 kl. 17:40 skrev Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>:

> I'm enjoying div based columns. Sometimes I specify my own columns [1] or
> create a simple div and let CSS lay it out via "column-count: N" [2].
>
> [1]: http://pandoc.org/MANUAL.html#columns
> [2]: https://developer.mozilla.org/en-US/docs/Web/CSS/column-count
>
> This is preferable to tables when I don't care about rows. For example,
> this is an easy way to layout a nested list---which I have trouble with in
> table cells.
>
> However, is there a way to emulate a (centered) table caption for these
> structures?
>
> Below, I have a paragraph with a centered span preceding the div.
>
> ```
> [Lepora and Goodin's (2013) dimensions]{style="text-align: center"}.
>
> :::::::::::::: {.columns style="border: 1px solid #d8d8d8" }
> ::: {.column width="50%"}
> - `BF` (Badness Factor): the morally badness of the principal wrongdoing
> - `RF` (Responsibility Factor) = `f(V, Kc, Kw)`
>     - `V`: voluntariness
>     - `Kc`: knowledge of contribution
>     - `Kw`: knowledge of wrongness
> :::
> ::: {.column width="50%"}
> - `CF` (Contribution Factor) = `f(C, Prox, Rvse, Temp, Pr, Resp)`
>     - `C`: centrality
>     - `Prox`: proximity
>     - `Rvse`: reversibility
>     - `Temp`: temporality
>     - `Pr`: planning role
>     - `Resp`: responsiveness
> - `SP` (Shared Purpose): extent of overlap, strength, and guidance
> relative to purposes of wrong-doers
> :::
> ::::::::::::::
> ```
>
> The problem is this won't be centered, because a centered span within a
> left-justified paragraph is still left. Maybe this caption simulacrum could
> be put in a div (rather than a span) but I wonder if I'm over-complicmating
> things.
>
> --
> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/b0c877cb-a42c-a806-4f3d-53a3474a9ce8%40reagle.org
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

------------------------------
SavedURI :Show URLShow URLSavedURI :
SavedURI :Hide URLHide URLSavedURI :
https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvwhttps://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvw
<https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvw>
<https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvw>
------------------------------

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuR%3DsRT05cRjg9s5rJTdDVJmVaX22znN%2B9zvvBXvJ0gGqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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

      parent reply	other threads:[~2018-06-24 10:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-23 15:40 Joseph Reagle
     [not found] ` <b0c877cb-a42c-a806-4f3d-53a3474a9ce8-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2018-06-24 10:04   ` BPJ
     [not found]     ` <CADAJKhCFse7-fcDahy=uaSARTCxsr+dMFroP8OdYtgPyCOviQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-25 12:11       ` Joseph Reagle
2018-06-24 10:11   ` BP Jonsson [this message]

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='CAFC_yuR=sRT05cRjg9s5rJTdDVJmVaX22znN+9zvvBXvJ0gGqA@mail.gmail.com' \
    --to=bpjonsson-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).