vivliostyle
Advanced tools
Changelog
2019.1.102 - 2019-03-04
Changelog
2019.1.101 - 2019-02-27
#b=
Viewer parameter (= Viewer.loadPublication() function) is used, and the publication has TOC data. In HTML documents, TOC is marked up with e.g. <nav role="doc-toc">
. Vivliostyle recognizes element that is selected with CSS selector [role=doc-toc], [role=directory], nav li, .toc, #toc
as a TOC element.#b=
Viewer parameter (= Viewer.loadPublication() function):
[role=doc-toc], [role=directory], nav li, .toc, #toc
are loaded.env(pub-title)
and env(doc-title)
environment variables for page headers with publication/document titles
env()
function, but env(pub-title)
and env(doc-title)
are not yet defined so far.env(pub-title)
: publication title = EPUB, Web publication, or primary entry page HTML title. Enabled when #b=
Viewer parameter (= Viewer.loadPublication() function) is used.env(doc-title)
: document title = HTML title, which may be chapter or section title in a publication composed of multiple HTML documents<title>
element in HTML, or env(pub-title) with #x=
Viewer parameter (= Viewer.loadDocument() function), the empty string "" is returned.@page
rule. This makes a lot of sense, but page size relative units may also be necessary. The pvw, pvh, pvi, pvb, pvmin, pvmax units are similar to the vw, vh, vi, vb, vmin, vmax but the reference size is the page size including page margins.calc()
function
calc()
function, min()
and max()
functions can be used inside calc()
function.calc()
is not calculated correctly
calc()
implementation is made simply reusing Adaptive Layout -epubx-expr()
function, so there are some limitations for now.userStyle=data:,/*<viewer>*/
…/*</viewer>*/
and not disappear when reloading, and can be bookmarked in browser.fontSize=
.#b=
or #x=
) is not specified, the start page is now displayed.#b=
, and when the Enter key is pressed, the document is loaded.renderAllPages=[true|false]
.renderAllPages=false
for #b=
(Book view) and renderAllPages=true
for #x=
(individual (X)HTML document).h1,h2,h3,h4,h5,h6 { break-after: avoid; }
to the default style sheet to avoid page/column breaks after headings by default.
text-justify: inter-ideograph
problem
#b=
Viewer parameter, loadEPUB()
to loadPublication()
, that is now not only for EPUB.
<style>
element.