Skip to content

Commit c35b992

Browse files
committed
fixes to page.prefix
page.prefix has now no space before page number (if not specified within the prefix itself). HTML: show prefix; PDF: when in draft mode, red color applied to prefix too
1 parent 164e895 commit c35b992

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

z-lib/article.html5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $if(title)$
6565
<div property="isPartOf" typeof="PublicationVolume">
6666
<meta property="volumeNumber" content="$volume$" />
6767
<meta property="datePublished" content="$year$" />
68-
<p property="isPartOf" typeof="Periodical"><span property="name" resource="$journal.url$" content="$journal.title$">$journal.title$</span>$if(issuedisplay)$. $issuedisplay$$if(issuepagination)$$if(page.end)$, $page.start$&ndash;$page.end$$else$$page.start$$endif$$endif$$endif$
68+
<p property="isPartOf" typeof="Periodical"><span property="name" resource="$journal.url$" content="$journal.title$">$journal.title$</span>$if(issuedisplay)$. $issuedisplay$$if(issuepagination)$, $if(page.prefix)$$page.prefix$$if(page.end)$$page.start$&nbsp;&ndash;&nbsp;$page.prefix$$page.end$$else$$page.start$$endif$$else$$if(page.end)$$page.start$&ndash;$page.end$$else$$page.start$$endif$$endif$$endif$$endif$
6969
$if(journal.eissn)$<br />ISSN <span property="issn">$journal.eissn$</span>$endif$
7070
</p>
7171
</div>
@@ -92,9 +92,9 @@ $if(issuepagination)$$else$
9292
Art. <span property="value">#$article.id$</span></p>
9393
$endif$$endif$
9494
$if(issuepagination)$
95-
<meta property="pageStart" content="$if(page.prefix)$$page.prefix$ $endif$$page.start$" />
95+
<meta property="pageStart" content="$if(page.prefix)$$page.prefix$$endif$$page.start$" />
9696
$if(page.end)$
97-
<meta property="pageEnd" content="$if(page.prefix)$$page.prefix$ $endif$$page.end$" />
97+
<meta property="pageEnd" content="$if(page.prefix)$$page.prefix$$endif$$page.end$" />
9898
$endif$
9999
$endif$
100100
</div>

z-lib/article.latex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ $else$
417417
\lfoot{\small\sffamily \url{$journal.url$}}
418418
$endif$
419419
% right footer (ID (if issuepagination false) + page (with optional prefix))
420-
\rfoot{\small\sffamily $if(article.id)$$if(issuepagination)$$else$Art.~\#$article.id$ \\ p.$endif$$endif$$if(page.prefix)$ $page.prefix$$endif$ $if(draft)$\color{red} $endif$\thepage}
420+
\rfoot{\small\sffamily $if(article.id)$$if(issuepagination)$$else$Art.~\#$article.id$ \\ p.$endif$$endif$$if(draft)$\color{red} $else$ $endif$$if(page.prefix)$$page.prefix$$endif$\thepage}
421421
% custom: for more behaved footnotes
422422
\usepackage{etoolbox}
423423
% no superscript footnote marks, by egreg from https://tex.stackexchange.com/a/96400
@@ -715,7 +715,7 @@ $-- custom: first page header and footer --$
715715
$if(article.doi)$\lhead{\small\sffamily \url{$journal.url$} \\ \url{https://doi.org/$article.doi$}}$endif$
716716
$endif$
717717
% right footer (ID + page (with optional prefix))
718-
\rfoot{\small\sffamily $if(issuepagination)$$else$$if(article.id)$Art.~\#$article.id$ \\ p.$endif$$endif$$if(page.prefix)$ $page.prefix$$endif$ $if(draft)$\color{red} $endif$\thepage}
718+
\rfoot{\small\sffamily $if(issuepagination)$$else$$if(article.id)$Art.~\#$article.id$ \\ p.$endif$$endif$$if(draft)$\color{red} $else$ $endif$$if(page.prefix)$$page.prefix$$endif$\thepage}
719719
$if(copyright)$
720720
% left footer: copyright block
721721
\lfoot{\small\sffamily Copyright \copyright~$if(copyright.year)$$copyright.year$$endif$ $if(copyright.holder)$$copyright.holder$$endif$ \\ $if(copyright.text)$$copyright.text$ \\$endif$ $if(copyright.link)$\url{$copyright.link$}$endif$}

0 commit comments

Comments
 (0)