On 20 July 2012 10:44, C4 - Travis <[email protected]> wrote:
> Hi,
>
> Asciidoc is great!
> I'm currently building a site and we've managed to bridge Asciidoc output
> into a wordpress setup and it is starting to look really great.
>
> I would like to export all of the pages I write as PDF versions of the web
> pages I am building...
> But, I'm running into two errors...
>
> First, here is a link to the file I am trying to test with: test file
>
> 1) asciidoc recognizes :language: objective-c
> But, a2x does not...

Actually it is probably pygments recognises objective-c but your pdf
toolchain (presumably dblatex) does not.
The PDF toolchains don't use the specified source-highlighter, they
use their own internal highlighting and dblatex doesn't support
objective-c (or calls it something else eg obj-c, try experimenting).
FOP doesn't object, but doesn't seem to highlight either.


>
> temp solution: i can get around this by removing it from the file before
> using a2x

So it will use some default language.

>
> 2) i get a parse error at the end of the first line of a code block... I've
> tried a couple different files and the error occurs always after the first
> line of code...
>
> For example, I have the following in my test file:
>
> [source]
> ----
> [N][S][a-zA-Z0-9$_]*, Name.Class
> [U][I][a-zA-Z0-9$_]*, Name.Class
> [C][4][a-zA-Z0-9$_]*, Name.Class
> [C][G][a-zA-Z0-9$_]*, Name.Label
> [Q][C][a-zA-Z0-9$_]*, Name.Class
> ----
>
>
> The error I get is:
>
> /Users/moi/Dropbox/C4Website/Tutorials/Tutorials/writeup_test.xml:456:
> parser error : Opening and ending tag mismatch: section line 442 and
> programlisting
> background.transform = CGAffineTransformMakeScale(1.5,
> 1.5);</programlisting>
>
> ^

Can you post a *really* short test file that demonstrates *this*
problem, and the xml it generates (-k) and the a2x command?

Cheers
Lex

>
>
> A full verbose error output can be found here: error file
>
> I saw 3 other posts on this "Opening and ending tag mismatch" and I went
> through my file to check for missing or extra " characters and everything
> matched up.
>
> Cheers,
> T
>
> PS thanks a lot asciidoc is great!
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/asciidoc/-/H8ZZPNCzGvsJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to