Definitely closer... it generated a TOC which the HTML doesn't have, but that's not a huge deal.
Thanks! On Tuesday, April 30, 2013 5:43:46 PM UTC-7, Lex Trotman wrote: > > > > > On 1 May 2013 04:49, Al Harrington <[email protected] <javascript:>>wrote: > >> The question is.. what should the command be to generate a the sample PDF >> file from that sample AsciiDoc template? If you take the sample article >> text file and run asciidoc article.txt it produces the HTML just fine. If >> you run the following it produces a "book" format, not the nice article >> format linked in the example: >> >> a2x --doctype-article -f pdf article.txt >> >> Should I be using a different command? Or is there some option (i.e. >> maybe --asciidoc-opts) that I need to make it look like the example article >> PDF? >> > > It looks like the pdf linked was generated by FOP not dblatex, ie: > > a2x --fop article.txt > > Cheers > Lex > > > >> >> Thanks. >> >> -al >> >> On Monday, April 29, 2013 10:23:46 PM UTC-7, Lex Trotman wrote: >>> >>> >>> >>> >>> On 30 April 2013 14:54, Al Harrington <[email protected]> wrote: >>> >>>> Hello, >>>> >>>> I'm new to asciidoc and am trying to generate a PDF as shown in the >>>> Examples and Overview (http://www.methods.co.nz/** >>>> asciidoc/index.html#_overview_**and_examples<http://www.methods.co.nz/asciidoc/index.html#_overview_and_examples>) >>>> >>>> section. This is the example: The same AsciiDoc article >>>> template<http://www.methods.co.nz/asciidoc/article.txt> produced >>>> this HTML file <http://www.methods.co.nz/asciidoc/article.html> and >>>> this PDF file <http://www.methods.co.nz/asciidoc/article.pdf> via >>>> DocBook markup generated by AsciiDoc. >>>> >>>> I've created a simple test file (on Ubuntu) and am able to generate an >>>> html document (using asciidoc command line) that looks like the example. >>>> But when I try to use a2x to generate a PDF file it ends up being >>>> formatted like a book. I've tried the doctype option to say article, but >>>> that didn't help. Can someone tell me the correct commands to take my >>>> text >>>> file (like the article template above) and make a PDF (again, like the >>>> example above)? >>>> >>> >>> Not enough info, stick the test file on a pastebin and let us know the >>> commands you ran, what docbook toolchain you are using, and the version of >>> asciidoc. >>> >>> Cheers >>> Lex >>> >>> >>>> >>>> Thanks! >>>> >>>> -al >>>> >>>> p.s. I actually used to create LaTeX documents WAY back in the day... >>>> I'm starting to have flashbacks to the late 80's... :) >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "asciidoc" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to asciidoc+u...@**googlegroups.com. >>>> To post to this group, send email to [email protected]. >>>> >>>> Visit this group at >>>> http://groups.google.com/**group/asciidoc?hl=en<http://groups.google.com/group/asciidoc?hl=en> >>>> . >>>> For more options, visit >>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>> . >>>> >>>> >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "asciidoc" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/asciidoc?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
