Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compliance : Subtitle partitioning #70

Closed
GrmpCerber opened this issue Apr 27, 2016 · 7 comments
Closed

Compliance : Subtitle partitioning #70

GrmpCerber opened this issue Apr 27, 2016 · 7 comments

Comments

@GrmpCerber
Copy link
Contributor

Subtitle partitioning is not enforced on the first slide with the reveal.js backend.

@GrmpCerber
Copy link
Contributor Author

Tracked it to 5b59a3a but I don't know how to fix it

@mojavelinux
Copy link
Member

What do you expect to happen?

@GrmpCerber
Copy link
Contributor Author

Well, according to the user manual*, the title should be splitted in two (from the last colon or any given separator) the first part being the main title, the second part being a subtitle.

In my case the document is titled like this :

= Catch phrase: Longer more explicit title introducing the real concept

Which ends up with a cumbersome first slide since the whole line is in h1.
I would expect that the subtitle would be placed underneath the title in a smaller font.

Yet, as I was writing the current answer I re-read the user manual and noticed the note stating that :

As of Asciidoctor 1.5.2, subtitle partitioning is not implemented in the HTML 5 backend.

*So I'm not sure anymore if this remark is legit

@obilodeau
Copy link
Member

I implemented preamble support not that long ago. So something like this
would work:

= title

Subtitle

== first non title slide

Content

On Thu, Apr 28, 2016, 5:29 AM Thomas [email protected] wrote:

Well, according to the user manual*, the title should be splitted in
two (from the last colon or any given separator) the first part being the
main title, the second part being a subtitle.

In my case the document is titled like this :

= Catch phrase: Longer more explicit title introducing the real concept

Which ends up with a cumbersome first slide since the whole line is in h1.
I would expect that the subtitle would be placed underneath the title in a
smaller font.

Yet, as I was writing the current answer I re-read the user manual and
noticed the note stating that :

As of Asciidoctor 1.5.2, subtitle partitioning is not implemented in the
HTML 5 backend.

*So I'm not sure anymore if this remark is legit


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#70 (comment)

@obilodeau
Copy link
Member

Since the html5 back-end does not do subtitle partitioning and that we support preamble which would achieve the same effect, I will close that issue. Feel free to re-open if you feel otherwise.

= title

Subtitle

== first nontitle slide

Content

@mojavelinux
Copy link
Member

mojavelinux commented Sep 4, 2016

As of Asciidoctor 1.5.2, subtitle partitioning is not implemented in the HTML 5 backend.

*So I'm not sure anymore if this remark is legit

Actually, it is. It's still not implemented in the HTML5 backend. But this isn't the HTML5 backend...so we need not worry about it. There's still an API for it.

I have implemented subtitle partitioning in the Bespoke converter. I think the same should be done for the Reveal.js converter. See https://github.com/asciidoctor/asciidoctor-bespoke/blob/master/templates/slim/slide_title.html.slim#L11-L16.

@mojavelinux
Copy link
Member

Basically, the title should be split into h1 and h2, and perhaps wrapped in a div to make it possible to style the group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants