Package: asciidoc
Version: 8.6.9-3
Severity: normal

Hallo,

1.
When using asciidoc the -b (backend) option works,
but when using a2x using this -b option doesnt work,
although according to the man page of a2x it should.

in the same man page there is is reference to a2x-backend.py,
but this file doesn't seem to be part of the asciidoc package:
$ dpkg -L asciidoc | grep back
/usr/share/doc/asciidoc/doc/latex-backend.txt
/usr/share/doc/asciidoc/examples/website/latex-backend.txt

So there is either something missing or the man page is wrong,
i guess something is missing, since:
$ a2x -b slidy 02_statistics_for_laboratory_animal_science.asc 
a2x: ERROR: missing slidy backend
(the same error for the common latex backend)

2. (possibly related to the backend option?)
According to the asciidoc documentation online,
http://asciidoc.org/chunked/ch25.html
one should be able to use -a latexmath (also tried with -a latexmathml :)
to insert math into latex and xhtml11 and html5,
(it does not say slidy, though that's html as well..),
running a asciidoc file with math in it,
doesn't produce the math symbols unfortunately:
$ asciidoc -b html5 -a latexmath 
02_statistics_for_laboratory_animal_science.asc 
$ asciidoc -b xhtml11 -a latexmath 
02_statistics_for_laboratory_animal_science.asc 
$ asciidoc -b slidy -a latexmathml 
02_statistics_for_laboratory_animal_science.asc 
$ a2x -f xhtml -a latexmathml 02_statistics_for_laboratory_animal_science.asc 
So either the deb version, the asciidoc docu online or osi layer 8 is the 
problem here?

Some asciidoc code u can use to reproduce:
"
= Statistics for laboratory animal science
:author: Wim Bertels
//next line commented out or not doesnt seem to matter
//:backend: slidy
:max-width: 45em
:data-uri:
:icons:
:toc:
:numbered:
:website: http://projectwerk.khleuven.be/projects/proefdierkunde_stat
:encoding: UTF-8
:lang: en
:copyright: Wim Bertels
//probleem met slidy en math, later bekijken

This work is licensed under a Creative Commons 
Attribution-NonCommercial-ShareAlike 4.0 International License.

== Central limit theorem
== Central limit theorem

The distribution of a sample average will always follow the normal distribution 
if n is big enough

* Powerfull?
* What is the variable?

latexmath:[\bar{X} \sim N(\mu,\sigma^{2}/n)]
"

mvg,
Wim

-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=nl_BE.utf8, LC_CTYPE=nl_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages asciidoc depends on:
ii  python      2.7.9-1
pn  python:any  <none>

Versions of packages asciidoc recommends:
ii  dblatex        0.3.5-2
ii  docbook-utils  0.6.14-3
ii  libxml2-utils  2.9.1+dfsg1-5+deb8u1
ii  xmlto          0.0.25-2

Versions of packages asciidoc suggests:
ii  source-highlight   3.1.7-1+b1
pn  vim-addon-manager  <none>

-- no debconf information

Reply via email to