Overline in Asciidoctor-pdf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Overline in Asciidoctor-pdf

Clemens
Hello,

I want to print an X overlined (symbol for average value).

However it seems [.overline]#X# is not supported in asciidoctor-pdf.

Is there another way, how to do it.

I played around with the inline_quoted.html.slim and generate underline. However overline was not possible.

Thank you for your help.

Best regards,

Clemens
Reply | Threaded
Open this post in threaded view
|

Re: Overline in Asciidoctor-pdf

mojavelinux
Administrator
The PDF library in Asciidoctor PDF (Prawn) does not provide overline formatting. If it did, we could add support for it based on the overline role.

However, since it seems you're creating mathematical symbols, what you probably want to be doing is using the stem support. It can be a little tricky to set up, but once you do, you can add mathematical symbols wherever you want without restoring to styling hacks.


Hint: You probably want to use the Docker container (https://github.com/asciidoctor/docker-asciidoctor) because asciidoctor-mathematical can be tough to install due to its use of native libraries.

Cheers,

-Dan

On Mon, Feb 18, 2019 at 12:48 AM Clemens [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,

I want to print an X overlined (symbol for average value).

However it seems [.overline]#X# is not supported in asciidoctor-pdf.

Is there another way, how to do it.

I played around with the inline_quoted.html.slim and generate underline. However overline was not possible.

Thank you for your help.

Best regards,

Clemens


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


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Overline in Asciidoctor-pdf

Clemens
Dear Dan, thank you for your suggestion. I will try to do that.

Cheers,

Clemens
Reply | Threaded
Open this post in threaded view
|

Re: Overline in Asciidoctor-pdf

mojavelinux
Administrator
I look forward to hearing how it works out. Good luck!

-Dan

On Mon, Feb 18, 2019 at 1:36 AM Clemens [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Dear Dan, thank you for your suggestion. I will try to do that.

Cheers,

Clemens


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


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux