Details at: 
http://edusantana.github.io/asciidoc/asciidoc-with-page-on-references.html

Add this to your asciidoc file:

// a2x:  --dblatex-opts "-P insert.xref.page.number=yes"

You will get this result Label[page] for references.

You can use xref with xrefstyle attribute:

Look at +++<xref linkend="MouseButtons" xrefstyle="select: label pageabbrev 
quotedtitle"/>+++ 

[[MouseButtons]] 
=== Learn Mouse Buttons 
Voluptatem qui consequatur quis.


Try it yourself

wget http://edusantana.github.io/asciidoc/page/pageconfig.adoc
wget http://edusantana.github.io/asciidoc/page/simple-reference-with-page.adoc
a2x -f pdf pageconfig.adoc
a2x -f pdf simple-reference-with-page.adoc


If someone know how to change the default behavior of the first case to the 
second, please share.

Em terça-feira, 11 de novembro de 2014 11h27min05s UTC-3, Iiro Laiho 
escreveu:
>
> Not actually. I am looking for something like LaTeX's \cite[p. 435]{refkey
> } command.
>
> -- Iiro Laiho
>
> maanantai, 10. marraskuuta 2014 1.51.51 UTC+2 Eduardo Santana kirjoitti:
>>
>>
>> Is this what you are looking for?
>>
>> == chapters
>>
>> See <<COOPER>>.
>>
>>
>> [bibliography]
>> Example Bibliography
>> --------------------
>> The bibliography list is a style of AsciiDoc bulleted list.
>>
>> [bibliography]
>> .Books
>> - [["COOPER", "COOPER, 2012, p. 29"]]
>> COOPER, Steve; SAHAMI, Mehran. 
>> _Education Reflections on Stanford’s MOOCs_.
>> Comunications of the ACM. Volume 56, Número 2. Fevereiro de 2013.
>>
>>
>>
>>
>>
>>
>>
>> Em domingo, 9 de novembro de 2014 18h18min01s UTC-3, Iiro Laiho escreveu:
>>>
>>> Is there some easy way to add page numbers to bibliography references in 
>>> asciidoc? It should output something like following:
>>>
>>>
>>> Moon is the only natural satellite of Earth.[themoon, p. 4] 
>>>>  
>>>> *Bibliography*
>>>>
>>> [themoon] Smith, J. (1969) *The Moon*. ISBN 123-45678-9-4
>>>
>>>  
>>> -- Iiro Laiho
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to asciidoc+unsubscr...@googlegroups.com.
To post to this group, send email to asciidoc@googlegroups.com.
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to