tag Vs Heading

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

tag Vs Heading

fleurystephane
HEllo

I try to generate a pdf file from asciidoc file but in the asciidoc file I have tag element which is considered as a heading element...

How desactivate hash heading?

Thanks
Stéphane
Reply | Threaded
Open this post in threaded view
|

Re: tag Vs Heading

mojavelinux
Administrator
Would you be able to provide an example of the AsciiDoc source. That way, I'm able to make a test for it.

Thanks!

-Dan


On Thu, Sep 4, 2014 at 9:14 AM, fleurystephane [via Asciidoctor :: Discussion] <[hidden email]> wrote:
HEllo

I try to generate a pdf file from asciidoc file but in the asciidoc file I have tag element which is considered as a heading element...

How desactivate hash heading?

Thanks
Stéphane


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



--
Reply | Threaded
Open this post in threaded view
|

Re: tag Vs Heading

fleurystephane
Thnaks Dan... That is an exemple of my source :


= Title
Some text here

== Introduction

# tag::PQMP-RG1[]
Some text comes here.
# end::PQMP-RG1[]

# tag::PQMP-RG2[]
Some text comes here.
# end::PQMP-RG2[]

== Chapter1
And So on

...And my command line :
asciidoctor -b docbook -d book -a toc -a numbered myfile.adoc
Reply | Threaded
Open this post in threaded view
|

Re: tag Vs Heading

mojavelinux
Administrator
Aha! The fix is simple. You just need to use an AsciiDoc line comment for the tag line.

[source,asciidoc]
----

some text

== Introduction

// tag::PQMP-RG1[]
text comes here
// end::PQMP-RG1[]

----

It doesn't matter what comes before the tag::[] and end::[] directives. You always want to prefix with the line syntax for the language in which you are using it. In this case, the language is AsciiDoc, so you use the double forward slash.

Cheers,

-Dan



On Fri, Sep 5, 2014 at 12:49 AM, fleurystephane [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thnaks Dan... That is an exemple of my source :


= Title
Some text here

== Introduction

# tag::PQMP-RG1[]
Some text comes here.
# end::PQMP-RG1[]

# tag::PQMP-RG2[]
Some text comes here.
# end::PQMP-RG2[]

== Chapter1
And So on

...And my command line :
asciidoctor -b docbook -d book -a toc -a numbered myfile.adoc


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



--
Reply | Threaded
Open this post in threaded view
|

Re: tag Vs Heading

fleurystephane
So simple...! I just took an example in Asciidoctor User manual but I didn't see that the defined tag was in a .rb file ... Sorry! Thanks again for *all your work*! I introduced +Asciidostor+ and +Awestruct+ on my projects at work (Bank) and we are fan! It works great...
Reply | Threaded
Open this post in threaded view
|

Re: tag Vs Heading

mojavelinux
Administrator

On Fri, Sep 5, 2014 at 1:15 AM, fleurystephane [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I introduced +Asciidostor+ and +Awestruct+ on my projects at work (Bank) and we are fan! It works great...

Great to hear it! Trust that we're going to keep improving. There are no shortage of ideas, but of course, if there are more ideas, add them to the stack. The more we hear from people using it, good or bad, the better this is going to get for all of us. Thanks for being a part of it!

Reply | Threaded
Open this post in threaded view
|

Re: tag Vs Heading

mojavelinux
Administrator
In reply to this post by fleurystephane

On Fri, Sep 5, 2014 at 1:15 AM, fleurystephane [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I just took an example in Asciidoctor User manual but I didn't see that the defined tag was in a .rb file

I clarified this in the docs. Thanks for pointing out the vagueness.