Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page references #218

Closed
trans opened this issue Sep 11, 2014 · 3 comments
Closed

Page references #218

trans opened this issue Sep 11, 2014 · 3 comments

Comments

@trans
Copy link

trans commented Sep 11, 2014

Is there any way to insert page references so that the page number is given? e.g.

    <a id="foo">

    ... blah blah blah some pages later ...

    See <page-number ref="foo" />.

So it will replace <page-number ref="#foo" /> with the page number that <a id="foo"> is on.

@rlpowell
Copy link

So according to http://alistapart.com/article/boom , the way to do this is:

a.pageref::after {
content: " on page " target-counter(attr(href), page)
}

target-counter is from http://www.w3.org/TR/css-gcpm-3/ ; for WeasyPrint support of GCPM, see #216

So: The answer seems to be "no", unless someone goes and works on the code.

@SimonSapin
Copy link
Member

target-counter() is discussed here: #23

@liZe
Copy link
Member

liZe commented Aug 14, 2015

@trans can we close this issue as a duplicate of #23?

@liZe liZe closed this as completed Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants