Comments (6)
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.
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.
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.
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.
ok, I have pushed an expand-file-name on the link export so it should put an absolute path in for you.
from jmax.
Thank you!
from jmax.
Related Issues (20)
- Themes don't work as expected HOT 2
- Wrong type argument: stringp, nil after every python block execution HOT 2
- doi-utils-add-bibtex-entry-from-doi gives Wrong type argument: stringp, nil on Mac HOT 1
- Flyspell error on linux. HOT 8
- Install error HOT 8
- Language error when starting jmax on windows HOT 1
- cm-wdiff-git error HOT 4
- org-ref not automatically updating HOT 1
- Windows batch file unable to handle spaces in directory names
- Error with the most recent commit HOT 3
- Loss of syntax highlighting in org-mode upon update HOT 2
- comment-or-uncomment-region does not work in org-mode HOT 1
- prompts for updates twice HOT 3
- org-babel-async-execute creates temp files HOT 6
- Way to revertback from session behavior when executing python code? HOT 2
- overlay issue HOT 9
- melpa? HOT 2
- Problem with exporting to PDF HOT 2
- Any way to include superscript at beginning of word in org-mode (technical document) HOT 4
- org-show gives an error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmax.