How to include only certain sections of a document?

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

How to include only certain sections of a document?

nrcastillo
Hello! I have a lot of notes consisting of a title, then the content, then references and some extra info. I want to compile a lot of these notes into one, but I want to include only the content, that is, title and content (not references, etc.), or maybe just a section of the note. How may I approach this? I've looked in the user manual but I think the 'include' option includes all of the document. Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: How to include only certain sections of a document?

mojavelinux
Administrator
I think that include tags (or lines) is the feature you're looking for:


Best Regards,

-Dan

On Mon, Apr 20, 2020 at 1:25 PM nrcastillo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello! I have a lot of notes consisting of a title, then the content, then references and some extra info. I want to compile a lot of these notes into one, but I want to include only the content, that is, title and content (not references, etc.), or maybe just a section of the note. How may I approach this? I've looked in the user manual but I think the 'include' option includes all of the document. Thank you.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-to-include-only-certain-sections-of-a-document-tp7919.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: How to include only certain sections of a document?

nrcastillo
Thanks for your quick response. This definitely is what I want.
I have a question though: should the 'tag::' and 'end::' lines be commented out in AsciiDoc files? I get it when they're in other files but I'd suppose that they're implemented in Asciidoctor, thing is, I get them when rendering them in VSCode if I dont comment them out. Thanks for your help.
Reply | Threaded
Open this post in threaded view
|

Re: How to include only certain sections of a document?

mojavelinux
Administrator
It's up to you whether you comment them out (meaning put them at the end of a line comment).

Best Regards,

-Dan


On Mon, Apr 20, 2020 at 7:20 PM nrcastillo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thanks for your quick response. This definitely is what I want.
I have a question though: should the 'tag::' and 'end::' lines be commented out in AsciiDoc files? I get it when they're in other files but I'd suppose that they're implemented in Asciidoctor, thing is, I get them when rendering them in VSCode if I dont comment them out. Thanks for your help.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-to-include-only-certain-sections-of-a-document-tp7919p7922.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