Giter VIP home page Giter VIP logo

Comments (6)

jkitchin avatar jkitchin commented on September 28, 2024

does it work if you use an absolute path to your bibliography?

John


John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

On Mon, Sep 22, 2014 at 10:58 AM, Andreas [email protected] wrote:

I started prototyping a document and played with inserting citation links
with org-ref.
Unfortunately I ran in to some problems.

I have setup org-ref for my default bibliography in
~/research/bibliography.bib as well as for reftex.
If I only insert cite: links this works as expected and I can click the
links and open pdf links etc.

If I try to export my document to a latex file with the org export command
(C-c C-e) then the resulting tex file will not have any links to any
bibliography files as expected.
Now if I add the bibliography key:
bibliography:~/research/bibliography.bib this will exports to the tex file,
however it seems tex does not support the ~ character for linking to $HOME.
There are two ways to remedy this that I have found, either add "\string"
in front of the link, or add/copy a link in ~/texmf/bibtex/bib/ to your bib
file which makes it possible to just add "bibliography" to the tex file
loosing the path from the end.

However, doing any of these two solutions breaks org-ref linking to the
bibliography and org-ref can no longer find the bibliography file.

What I want to avoid is to have to copy my global bibliography to the
local directory with the org file while still being able to export to latex.
Have I missed some detail of how to deal with this issue?
Is there a smart way already to avoid this and still being able to export
to tex with a global bib file, and if not could this be fixed with an
expand file name for "~" in the bibliography link?


Reply to this email directly or view it on GitHub
#34.

from jmax.

Xparx avatar Xparx commented on September 28, 2024

Yes that works. Both org-ref and latex compiling works if an absolute path is supplied.
This could be a working solution for now.
It does make the document less agnostic between my machines and user names though.

regards
Andreas

from jmax.

jkitchin avatar jkitchin commented on September 28, 2024

what do you think would be better: an absolute file expansion, or relative
file name expansion?

John


John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

On Mon, Sep 22, 2014 at 7:23 PM, Andreas [email protected] wrote:

Yes that works, both org-ref and latex compiling works if an absolute path
is supplied.
This could be a working solution for now.
It does make the document less agnostic between my machines and user names
though.

regards
Andreas


Reply to this email directly or view it on GitHub
#34 (comment).

from jmax.

Xparx avatar Xparx commented on September 28, 2024

I can't see any obvious reasons to picking one over the other but it seems to me that an absolute path would be somewhat more transparent, and if you auto complete the path in the org-ref link this is probably what you enter anyway.

from jmax.

jkitchin avatar jkitchin commented on September 28, 2024

ok, I have pushed an expand-file-name on the link export so it should put an absolute path in for you.

from jmax.

Xparx avatar Xparx commented on September 28, 2024

Thank you!

from jmax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.