public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Slide attributes with pandoc 2.8
@ 2019-12-01 11:17 Paulo Soares
       [not found] ` <cef24253-7731-417c-a1ee-48153c4344bf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Paulo Soares @ 2019-12-01 11:17 UTC (permalink / raw)
  To: pandoc-discuss


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

In the user's guide it is said that:

"... heading attributes will turn into slide attributes (on a <div> or 
<section>) in HTML slide formats, allowing you to style individual slides."

I've been using that regularly prior to version 2.8 but now it seems to not 
be working anymore. Can anyone confirm this?

--
Paulo Soares

-- 
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/cef24253-7731-417c-a1ee-48153c4344bf%40googlegroups.com.

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

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

* Re: Slide attributes with pandoc 2.8
       [not found] ` <cef24253-7731-417c-a1ee-48153c4344bf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-12-01 16:28   ` John MacFarlane
       [not found]     ` <m2muccui0x.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2019-12-01 16:28 UTC (permalink / raw)
  To: Paulo Soares, pandoc-discuss


Indeed.  This is related to the following changelog item:

  Replace Element and makeHierarchical with makeSections. Now that
  we have Divs, we can use them to represent the structure of
  sections, and we don’t need a special Element type. makeSections
  reorganizes a block list, adding Divs with class section around
  sections, and adding numbering if needed. This change also fixes
  some longstanding issues recognizing section structure when the
  document contains Divs (#3057, see also #997).

I didn't mean to break this feature.  We might want to think
about whether to carry over all heading attributes to the
surrounding div in makeSections, or just to do this for slides.

You might add an issue to our tracker so that we don't lose sight
of this regression.


Paulo Soares <psoares.gm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> In the user's guide it is said that:
>
> "... heading attributes will turn into slide attributes (on a <div> or 
> <section>) in HTML slide formats, allowing you to style individual slides."
>
> I've been using that regularly prior to version 2.8 but now it seems to not 
> be working anymore. Can anyone confirm this?
>
> --
> Paulo Soares
>
> -- 
> 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/cef24253-7731-417c-a1ee-48153c4344bf%40googlegroups.com.

-- 
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/m2muccui0x.fsf%40johnmacfarlane.net.


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

* Columns not working (Was: Slide attributes with pandoc 2.8)
       [not found]     ` <m2muccui0x.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2019-12-02 16:11       ` Joseph Reagle
       [not found]         ` <8ceff551-7222-1085-523b-150b92233d74-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Reagle @ 2019-12-02 16:11 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


On 12/1/19 11:28 AM, John MacFarlane wrote:
>   Replace Element and makeHierarchical with makeSections. Now that
>   we have Divs, we can use them to represent the structure of
>   sections, and we don’t need a special Element type. 

I just noticed that my columns (like that below) no longer render as columns. 

```
:::::::::::::: {.columns}
::: {.column width="40%"}
# left column

left content
:::
::: {.column width="60%"}
# right column

right content
:::
::::::::::::::
```

The resulting HTML looks like 

```
<div class="columns">
<section id="left-column" class="column" width="40%">
<h1>left column</h1>
<p>left content</p>
</section><section id="right-column" class="column" width="60%">
<h1>right column</h1>
<p>right content</p>
</section>
</div>
```

When it worked, it was a //div/div, not //div/section . Is this related to the issue above?

-- 
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/8ceff551-7222-1085-523b-150b92233d74%40reagle.org.


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

* Re: Columns not working (Was: Slide attributes with pandoc 2.8)
       [not found]         ` <8ceff551-7222-1085-523b-150b92233d74-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
@ 2019-12-02 19:34           ` John MacFarlane
       [not found]             ` <yh480kh82ifrmk.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  2019-12-05 17:12           ` John MacFarlane
  1 sibling, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2019-12-02 19:34 UTC (permalink / raw)
  To: Joseph Reagle, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:

> On 12/1/19 11:28 AM, John MacFarlane wrote:
>>   Replace Element and makeHierarchical with makeSections. Now that
>>   we have Divs, we can use them to represent the structure of
>>   sections, and we don’t need a special Element type. 
>
> I just noticed that my columns (like that below) no longer render as columns. 

That is related, and it has to do with your use of level-1
headings inside the columns.  Don't do that: level-1 headings
are for slide divisions.

Alternatively, you could put something between the opening
fence and the level-1 heading (say, an HTML comment).
But if pandoc sees something like

:::
# section heading

...
:::

it will now parse it as a section (and in slide shows, a
slide, if the heading matches slide level).

-- 
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/yh480kh82ifrmk.fsf%40johnmacfarlane.net.


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

* Re: Columns not working (Was: Slide attributes with pandoc 2.8)
       [not found]             ` <yh480kh82ifrmk.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2019-12-02 20:54               ` Joseph Reagle
  0 siblings, 0 replies; 6+ messages in thread
From: Joseph Reagle @ 2019-12-02 20:54 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


On 12/2/19 2:34 PM, John MacFarlane wrote:
> That is related, and it has to do with your use of level-1
> headings inside the columns.  Don't do that: level-1 headings
> are for slide divisions.

It seems to happen for most (any?) heading in documents (I wasn't prompted by a slides example).

> Alternatively, you could put something between the opening
> fence and the level-1 heading (say, an HTML comment).

That works, but is a kludgey... Is it okay if I add the following to my CSS? (I'm not following the section/div changes motivating this.)

```
div.columns section.column {
	display: inline-block; vertical-align: top; width: 50%;
}

````


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

* Re: Columns not working (Was: Slide attributes with pandoc 2.8)
       [not found]         ` <8ceff551-7222-1085-523b-150b92233d74-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
  2019-12-02 19:34           ` John MacFarlane
@ 2019-12-05 17:12           ` John MacFarlane
  1 sibling, 0 replies; 6+ messages in thread
From: John MacFarlane @ 2019-12-05 17:12 UTC (permalink / raw)
  To: Joseph Reagle, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


I'm going to add a special-case check to makeSections so that it
leaves column and columns divs alone.

Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:

> On 12/1/19 11:28 AM, John MacFarlane wrote:
>>   Replace Element and makeHierarchical with makeSections. Now that
>>   we have Divs, we can use them to represent the structure of
>>   sections, and we don’t need a special Element type. 
>
> I just noticed that my columns (like that below) no longer render as columns. 
>
> ```
> :::::::::::::: {.columns}
> ::: {.column width="40%"}
> # left column
>
> left content
> :::
> ::: {.column width="60%"}
> # right column
>
> right content
> :::
> ::::::::::::::
> ```
>
> The resulting HTML looks like 
>
> ```
> <div class="columns">
> <section id="left-column" class="column" width="40%">
> <h1>left column</h1>
> <p>left content</p>
> </section><section id="right-column" class="column" width="60%">
> <h1>right column</h1>
> <p>right content</p>
> </section>
> </div>
> ```
>
> When it worked, it was a //div/div, not //div/section . Is this related to the issue above?
>
> -- 
> 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/8ceff551-7222-1085-523b-150b92233d74%40reagle.org.

-- 
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/m2blsmae84.fsf%40johnmacfarlane.net.


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

end of thread, other threads:[~2019-12-05 17:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-01 11:17 Slide attributes with pandoc 2.8 Paulo Soares
     [not found] ` <cef24253-7731-417c-a1ee-48153c4344bf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-12-01 16:28   ` John MacFarlane
     [not found]     ` <m2muccui0x.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-12-02 16:11       ` Columns not working (Was: Slide attributes with pandoc 2.8) Joseph Reagle
     [not found]         ` <8ceff551-7222-1085-523b-150b92233d74-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2019-12-02 19:34           ` John MacFarlane
     [not found]             ` <yh480kh82ifrmk.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-12-02 20:54               ` Joseph Reagle
2019-12-05 17:12           ` 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).