public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Centering in a grid table
@ 2023-09-16 18:10 Paul Kelleher
       [not found] ` <793cd5ee-40ed-4731-8510-85c879f9c719n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Kelleher @ 2023-09-16 18:10 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2664 bytes --]

I cannot figure out why I am able to center "Heading 1" over the A and B 
columns but not "Heading 2" over the C and D columns: 

+--------+:------------:+-------------+--+:--------------:+-------------+
|        | Heading 1    |             |  | Heading 2      |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        | A |    | B   | Q           |  | C  |      | D  | Q           |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| T      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| U      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| V      | 2 |    | 22  |             |  | 14 |      | 16 |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| W      |   | 12 |     |             |  |    | 15   |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| X      | 1 |    | 121 |             |  | 49 |      | 64 |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| Y      |   | 61 |     |             |  |    | 56.5 |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+

I'm attaching the output (not sure how else to include it here). But you 
can see what I mean if you copy/paste the above into pandoc.org/try, and 
then process with: 

pandoc --from markdown --to latex --standalone --no-highlight

Thanks for any guidance you might have!

-- 
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/793cd5ee-40ed-4731-8510-85c879f9c719n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3672 bytes --]

[-- Attachment #2: Screenshot 2023-09-16 at 1.07.26 PM.png --]
[-- Type: image/png, Size: 32702 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Centering in a grid table
       [not found] ` <793cd5ee-40ed-4731-8510-85c879f9c719n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-09-17  0:39   ` Paul Kelleher
       [not found]     ` <a398bb83-eb1b-40d2-866e-702494b9d6abn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Kelleher @ 2023-09-17  0:39 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 4837 bytes --]

Sorry, I didn't realize I could improve presentation by using Courier new. 
Here's the grid table again:

+--------+:------------:+-------------+--+:--------------:+-------------+
|        | Heading 1    |             |  | Heading 2      |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        | A |    | B   | Q           |  | C  |      | D  | Q           |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| T      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| U      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| V      | 2 |    | 22  |             |  | 14 |      | 16 |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| W      |   | 12 |     |             |  |    | 15   |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
|        |   |    |     |             |  |    |      |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| X      | 1 |    | 121 |             |  | 49 |      | 64 |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+
| Y      |   | 61 |     |             |  |    | 56.5 |    |             |
+--------+---+----+-----+-------------+--+----+------+----+-------------+

On Saturday, September 16, 2023 at 1:10:01 PM UTC-5 Paul Kelleher wrote:

> I cannot figure out why I am able to center "Heading 1" over the A and B 
> columns but not "Heading 2" over the C and D columns: 
>
> +--------+:------------:+-------------+--+:--------------:+-------------+
> |        | Heading 1    |             |  | Heading 2      |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        | A |    | B   | Q           |  | C  |      | D  | Q           |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | T      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | U      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | V      | 2 |    | 22  |             |  | 14 |      | 16 |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | W      |   | 12 |     |             |  |    | 15   |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | X      | 1 |    | 121 |             |  | 49 |      | 64 |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | Y      |   | 61 |     |             |  |    | 56.5 |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
>
> I'm attaching the output (not sure how else to include it here). But you 
> can see what I mean if you copy/paste the above into pandoc.org/try, and 
> then process with: 
>
> pandoc --from markdown --to latex --standalone --no-highlight
>
> Thanks for any guidance you might have!

-- 
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/a398bb83-eb1b-40d2-866e-702494b9d6abn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 9115 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Centering in a grid table
       [not found]     ` <a398bb83-eb1b-40d2-866e-702494b9d6abn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-09-17  6:19       ` John MacFarlane
  0 siblings, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2023-09-17  6:19 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

That's a really good question. Probably this deserves to be on the issue tracker.

Support for colspans was recently added in this syntax, and it's not entirely clear how centering SHOULD work when combined with colspans.
 
> On Sep 16, 2023, at 5:39 PM, Paul Kelleher <paul-JZTKsBFbLNkkm2bSNb+QWw@public.gmane.org> wrote:
> 
> +--------+:------------:+-------------+--+:--------------:+-------------+
> |        | Heading 1    |             |  | Heading 2      |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        | A |    | B   | Q           |  | C  |      | D  | Q           |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | T      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | U      | 1 |    | 121 | 61          |  | 49 |      | 64 | 56.5        |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | V      | 2 |    | 22  |             |  | 14 |      | 16 |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | W      |   | 12 |     |             |  |    | 15   |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> |        |   |    |     |             |  |    |      |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | X      | 1 |    | 121 |             |  | 49 |      | 64 |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+
> | Y      |   | 61 |     |             |  |    | 56.5 |    |             |
> +--------+---+----+-----+-------------+--+----+------+----+-------------+


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-17  6:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-16 18:10 Centering in a grid table Paul Kelleher
     [not found] ` <793cd5ee-40ed-4731-8510-85c879f9c719n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-09-17  0:39   ` Paul Kelleher
     [not found]     ` <a398bb83-eb1b-40d2-866e-702494b9d6abn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-09-17  6:19       ` John MacFarlane

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).