Login  Register

Centering the title and subtitle text

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Centering the title and subtitle text

m4rt1n
I have the following markup at the beginning of my document:

My Fancy Document
=================
John Doe
:Email: john@doe.com

image::images/logo.svg[align="center",height=100]

The image ends up being centered. Is there a way to center the title and the subtitle as well?

Thanks!
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Centering the title and subtitle text

mojavelinux
Administrator
This is purely a styling (i.e., theme) issue. One way to solve it is to simply provide your own styles, either by supplying a custom stylesheet or including style information in a docinfo file.

It would be nice, I think, if it were possible to apply roles to the document header. This is not currently possible. If it were, you could use a not so semantic, but quick fix using:

[.text-center]
= Document Title

But that's won't work at the moment.

Cheers,

-Dan

On Thu, Jan 22, 2015 at 7:36 AM, m4rt1n [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I have the following markup at the beginning of my document:

My Fancy Document
=================
John Doe
:Email: [hidden email]

image::images/logo.svg[align="center",height=100]

The image ends up being centered. Is there a way to center the title and the subtitle as well?

Thanks!



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Centering-the-title-and-subtitle-text-tp2690.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--