public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Back references with citations
@ 2016-04-01 19:48 R (Chandra) Chandrasekhar
       [not found] ` <56FED081.40709-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: R (Chandra) Chandrasekhar @ 2016-04-01 19:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

The hyperref package in LaTeX has an option for back references, where 
there is a link back from the reference in the "References" section to 
the point where it is (first) cited in the main text.

Looking at the Pandoc demos, there is one example that seems to have 
this working:

pandoc -s -S --bibliography biblio.json --filter pandoc-citeproc --csl 
chicago-fullnote-bibliography.csl CITATIONS -o example24b.html

where the output is shown at

http://pandoc.org/demo/example24b.html

Is this feature dependent on the specific csl file that is used during 
compilation of the document?

I have not been able to achieve it with the ieee-with-url.csl file, with 
these command line options, for a file called PPP.md as input and 
PPP.html as output:

pandoc --to html --smart --standalone --css=default.css 
--filter=pandoc-citeproc --bibliography=perl.bib --csl=ieee-with-url.csl 
--metadata link-citations=true --output PPP.html PPP.md

The forward link works fine; I am after the reverse link or back reference.

What should I be doing to get back references?

Thanks.

Chandra


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Back references with citations
       [not found] ` <56FED081.40709-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-04-03 23:37   ` John MACFARLANE
       [not found]     ` <20160403233752.GC55527-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MACFARLANE @ 2016-04-03 23:37 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

From pandoc-citeproc man page:

       link-citations
              If this has a true value, citations in author-date and numerical
              styles  will  be hyperlinked to their corresponding bibliography
              entries.  The default is not to add hyperlinks.

So, try adding

    link-citations: true

to your YAML metadata, or use --metadata link-citations=true on the
command line.

+++ R (Chandra) Chandrasekhar [Apr 02 16 01:18 ]:
>The hyperref package in LaTeX has an option for back references, where 
>there is a link back from the reference in the "References" section to 
>the point where it is (first) cited in the main text.
>
>Looking at the Pandoc demos, there is one example that seems to have 
>this working:
>
>pandoc -s -S --bibliography biblio.json --filter pandoc-citeproc --csl 
>chicago-fullnote-bibliography.csl CITATIONS -o example24b.html
>
>where the output is shown at
>
>http://pandoc.org/demo/example24b.html
>
>Is this feature dependent on the specific csl file that is used during 
>compilation of the document?
>
>I have not been able to achieve it with the ieee-with-url.csl file, 
>with these command line options, for a file called PPP.md as input and 
>PPP.html as output:
>
>pandoc --to html --smart --standalone --css=default.css 
>--filter=pandoc-citeproc --bibliography=perl.bib 
>--csl=ieee-with-url.csl --metadata link-citations=true --output 
>PPP.html PPP.md
>
>The forward link works fine; I am after the reverse link or back reference.
>
>What should I be doing to get back references?
>
>Thanks.
>
>Chandra
>
>-- 
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/56FED081.40709%40gmail.com.
>For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Back references with citations
       [not found]     ` <20160403233752.GC55527-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2016-04-04  4:17       ` R (Chandra) Chandrasekhar
       [not found]         ` <5701EAD0.5000005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: R (Chandra) Chandrasekhar @ 2016-04-04  4:17 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Yes, I have already done both

link-citations: true

in my YAML metadata block and also

--metadata link-citations=true

in the pandoc command line invocation

to no avail.

I see that footnotes have backlinks by default.

So, are back references for citationss dependent on the csl being used? 
I suspect that a csl that puts citations in superscripts, like 
footnotes, might provide back references by default.

Thanks.

On 04/04/16 05:07, John MACFARLANE wrote:
>  From pandoc-citeproc man page:
>
>        link-citations
>               If this has a true value, citations in author-date and
> numerical
>               styles  will  be hyperlinked to their corresponding
> bibliography
>               entries.  The default is not to add hyperlinks.
>
> So, try adding
>
>     link-citations: true
>
> to your YAML metadata, or use --metadata link-citations=true on the
> command line.
>
> +++ R (Chandra) Chandrasekhar [Apr 02 16 01:18 ]:
>> The hyperref package in LaTeX has an option for back references, where
>> there is a link back from the reference in the "References" section to
>> the point where it is (first) cited in the main text.
>>
>> Looking at the Pandoc demos, there is one example that seems to have
>> this working:
>>
>> pandoc -s -S --bibliography biblio.json --filter pandoc-citeproc --csl
>> chicago-fullnote-bibliography.csl CITATIONS -o example24b.html
>>
>> where the output is shown at
>>
>> http://pandoc.org/demo/example24b.html
>>
>> Is this feature dependent on the specific csl file that is used during
>> compilation of the document?
>>
>> I have not been able to achieve it with the ieee-with-url.csl file,
>> with these command line options, for a file called PPP.md as input and
>> PPP.html as output:
>>
>> pandoc --to html --smart --standalone --css=default.css
>> --filter=pandoc-citeproc --bibliography=perl.bib
>> --csl=ieee-with-url.csl --metadata link-citations=true --output
>> PPP.html PPP.md
>>
>> The forward link works fine; I am after the reverse link or back
>> reference.
>>
>> What should I be doing to get back references?
>>
>> Thanks.
>>
>> Chandra
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/56FED081.40709%40gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>

-- 
------------------
R (Chandra) Chandrasekhar
Web: http://swanlotus.org
email: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Back references with citations
       [not found]         ` <5701EAD0.5000005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-04-04  5:14           ` John MacFarlane
       [not found]             ` <20160404051408.GC54820-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2016-04-04  5:14 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I'm sorry, I'm not sure I understand what you are
asking.  Are you talking about back-references from the
bibliography entries back to the citations?

link-citations only gives you references from the
citations to the bibliography.  The opposite
direction isn't really possible, since there may
be many citations to a single bibliography entry.

+++ R (Chandra) Chandrasekhar [Apr 04 16 09:47 ]:
>Yes, I have already done both
>
>link-citations: true
>
>in my YAML metadata block and also
>
>--metadata link-citations=true
>
>in the pandoc command line invocation
>
>to no avail.
>
>I see that footnotes have backlinks by default.
>
>So, are back references for citationss dependent on the csl being 
>used? I suspect that a csl that puts citations in superscripts, like 
>footnotes, might provide back references by default.
>
>Thanks.
>
>On 04/04/16 05:07, John MACFARLANE wrote:
>> From pandoc-citeproc man page:
>>
>>       link-citations
>>              If this has a true value, citations in author-date and
>>numerical
>>              styles  will  be hyperlinked to their corresponding
>>bibliography
>>              entries.  The default is not to add hyperlinks.
>>
>>So, try adding
>>
>>    link-citations: true
>>
>>to your YAML metadata, or use --metadata link-citations=true on the
>>command line.
>>
>>+++ R (Chandra) Chandrasekhar [Apr 02 16 01:18 ]:
>>>The hyperref package in LaTeX has an option for back references, where
>>>there is a link back from the reference in the "References" section to
>>>the point where it is (first) cited in the main text.
>>>
>>>Looking at the Pandoc demos, there is one example that seems to have
>>>this working:
>>>
>>>pandoc -s -S --bibliography biblio.json --filter pandoc-citeproc --csl
>>>chicago-fullnote-bibliography.csl CITATIONS -o example24b.html
>>>
>>>where the output is shown at
>>>
>>>http://pandoc.org/demo/example24b.html
>>>
>>>Is this feature dependent on the specific csl file that is used during
>>>compilation of the document?
>>>
>>>I have not been able to achieve it with the ieee-with-url.csl file,
>>>with these command line options, for a file called PPP.md as input and
>>>PPP.html as output:
>>>
>>>pandoc --to html --smart --standalone --css=default.css
>>>--filter=pandoc-citeproc --bibliography=perl.bib
>>>--csl=ieee-with-url.csl --metadata link-citations=true --output
>>>PPP.html PPP.md
>>>
>>>The forward link works fine; I am after the reverse link or back
>>>reference.
>>>
>>>What should I be doing to get back references?
>>>
>>>Thanks.
>>>
>>>Chandra
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "pandoc-discuss" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>To view this discussion on the web visit
>>>https://groups.google.com/d/msgid/pandoc-discuss/56FED081.40709%40gmail.com.
>>>
>>>For more options, visit https://groups.google.com/d/optout.
>>
>
>-- 
>------------------
>R (Chandra) Chandrasekhar
>Web: http://swanlotus.org
>email: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>------------------
>
>-- 
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5701EAD0.5000005%40gmail.com.
>For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Back references with citations
       [not found]             ` <20160404051408.GC54820-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
@ 2016-04-04  5:18               ` R (Chandra) Chandrasekhar
       [not found]                 ` <5701F909.4080302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: R (Chandra) Chandrasekhar @ 2016-04-04  5:18 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Yes, I am asking for links from the bibliography entries back to the 
(first) citation.

IIRC, the example I quoted in my original post does have these as arrows 
with a right angle nect top the bib entries. Hence my question as to 
whether it is available, but csl-specific.

Thanks.

On 04/04/16 10:44, John MacFarlane wrote:
> I'm sorry, I'm not sure I understand what you are
> asking.  Are you talking about back-references from the
> bibliography entries back to the citations?
>
> link-citations only gives you references from the
> citations to the bibliography.  The opposite
> direction isn't really possible, since there may
> be many citations to a single bibliography entry.
>
> +++ R (Chandra) Chandrasekhar [Apr 04 16 09:47 ]:
>> Yes, I have already done both
>>
>> link-citations: true
>>
>> in my YAML metadata block and also
>>
>> --metadata link-citations=true
>>
>> in the pandoc command line invocation
>>
>> to no avail.
>>
>> I see that footnotes have backlinks by default.
>>
>> So, are back references for citationss dependent on the csl being
>> used? I suspect that a csl that puts citations in superscripts, like
>> footnotes, might provide back references by default.
>>
>> Thanks.
>>
>> On 04/04/16 05:07, John MACFARLANE wrote:
>>> From pandoc-citeproc man page:
>>>
>>>       link-citations
>>>              If this has a true value, citations in author-date and
>>> numerical
>>>              styles  will  be hyperlinked to their corresponding
>>> bibliography
>>>              entries.  The default is not to add hyperlinks.
>>>
>>> So, try adding
>>>
>>>    link-citations: true
>>>
>>> to your YAML metadata, or use --metadata link-citations=true on the
>>> command line.
>>>
>>> +++ R (Chandra) Chandrasekhar [Apr 02 16 01:18 ]:
>>>> The hyperref package in LaTeX has an option for back references, where
>>>> there is a link back from the reference in the "References" section to
>>>> the point where it is (first) cited in the main text.
>>>>
>>>> Looking at the Pandoc demos, there is one example that seems to have
>>>> this working:
>>>>
>>>> pandoc -s -S --bibliography biblio.json --filter pandoc-citeproc --csl
>>>> chicago-fullnote-bibliography.csl CITATIONS -o example24b.html
>>>>
>>>> where the output is shown at
>>>>
>>>> http://pandoc.org/demo/example24b.html
>>>>
>>>> Is this feature dependent on the specific csl file that is used during
>>>> compilation of the document?
>>>>
>>>> I have not been able to achieve it with the ieee-with-url.csl file,
>>>> with these command line options, for a file called PPP.md as input and
>>>> PPP.html as output:
>>>>
>>>> pandoc --to html --smart --standalone --css=default.css
>>>> --filter=pandoc-citeproc --bibliography=perl.bib
>>>> --csl=ieee-with-url.csl --metadata link-citations=true --output
>>>> PPP.html PPP.md
>>>>
>>>> The forward link works fine; I am after the reverse link or back
>>>> reference.
>>>>
>>>> What should I be doing to get back references?
>>>>
>>>> Thanks.
>>>>
>>>> Chandra
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "pandoc-discuss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/pandoc-discuss/56FED081.40709%40gmail.com.
>>>>
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> ------------------
>> R (Chandra) Chandrasekhar
>> Web: http://swanlotus.org
>> email: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>> ------------------
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/5701EAD0.5000005%40gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>

-- 
------------------
R (Chandra) Chandrasekhar
Web: http://swanlotus.org
email: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Back references with citations
       [not found]                 ` <5701F909.4080302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-04-04 16:23                   ` John MacFarlane
  0 siblings, 0 replies; 6+ messages in thread
From: John MacFarlane @ 2016-04-04 16:23 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ R (Chandra) Chandrasekhar [Apr 04 16 10:48 ]:
>Yes, I am asking for links from the bibliography entries back to the 
>(first) citation.
>
>IIRC, the example I quoted in my original post does have these as 
>arrows with a right angle nect top the bib entries. Hence my question 
>as to whether it is available, but csl-specific.

No, there's no way to do this.  In footnote styles it's
different, because each footnote has a unique back-ref.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-04 16:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-01 19:48 Back references with citations R (Chandra) Chandrasekhar
     [not found] ` <56FED081.40709-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-03 23:37   ` John MACFARLANE
     [not found]     ` <20160403233752.GC55527-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2016-04-04  4:17       ` R (Chandra) Chandrasekhar
     [not found]         ` <5701EAD0.5000005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-04  5:14           ` John MacFarlane
     [not found]             ` <20160404051408.GC54820-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2016-04-04  5:18               ` R (Chandra) Chandrasekhar
     [not found]                 ` <5701F909.4080302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-04 16:23                   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).