Comments (3)
Passing -d book is a workaround, but I don't understand why it works for latex but not html.
That's because, at the moment, the validation for heading levels as they pertain to the doctype happens in the converter, not in the parser. Ideally, that validation should be moved to the parser so that it is enforced regardless of the converter. This is just a current quirk of the Asciidoctor pipeline. This would need to be enforced in the LaTeX backend to be consistent.
Level-0 sections in the content (other than the document header) are not allowed unless the doctype is book. This requirement is mostly a side-effect of needing to generate valid DocBook. It doesn't make much sense in the HTML backend, to be honest. However, you can think of it as a way of communicate intended structure of the document.
from asciidoctor-latex.
Passing -d book
is a workaround, but I don't understand why it works for latex
but not html
.
from asciidoctor-latex.
I'll take a look at it
Sent from my iPhone
On Jan 20, 2015, at 3:55 PM, Niklas Hambüchen [email protected] wrote:
Hi, a question:
If I use this diff
diff --git a/try-out/eqno-latex.adoc b/try-out/eqno-latex.adoc
index c98e741..207e51f 100644
--- a/try-out/eqno-latex.adoc
+++ b/try-out/eqno-latex.adoc
@@ -1,5 +1,6 @@
-== Numbered Equations
+= Numbered Equations+== Something
The environment
[env.equation]
is automatically
numbered by default, as in the examples below.
that changes the == heading to a =, and run with asciidoctor -b html5 -r asciidoctor-latex --attribute=stem=latexmath --backend=html eqno-latex.adoc, then I getasciidoctor: ERROR: eqno-latex.adoc: line 1: only book doctypes can contain level 0 sections
This only happens with the html backend, with the latex backend everything is fine.What's going on here?
—
Reply to this email directly or view it on GitHub.
from asciidoctor-latex.
Related Issues (20)
- Proposal to promote project to asciidoctor-latex-plus HOT 9
- dollar signs in source blocks HOT 2
- Equation number in LaTeX example does not produce expected result HOT 1
- Enhancement: Support for LaTeX tables
- Multiple math mode glitches HOT 3
- Negative line number reported in output messages
- Inline stem not quoted in the latex backend HOT 1
- Missing backslash escapes in generated .tex source HOT 1
- Latex conversion of tables with "asciidoctor" style columns fails. Table captions missing too.
- Experimental macros left out HOT 1
- Fix, potentially, for fontspec/pdflatex problem
- asterisk lists aren't converted to lists
- `method_missing': undefined method `convert_environment' HOT 3
- Image captions are not getting generated with `asciidoctor-latex` HOT 4
- asciidoctor-bibtex not working with current version HOT 1
- Multiple errors and dysfunctional .tex file HOT 1
- Non escaped underscore in constrained quotes
- Does Not Handle @ In Emails Correctly HOT 1
- % sign is transcribed as is, causing it to comment rest of line
- Issue with labels in Asciidioc to LaTeX HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciidoctor-latex.