In my master .tex file, the command LaTeX > Insert > Citation Based on Current Word works fine.
However if I try to run the same command in the child files, I get a dialogue box with the error message "Failure running ³Citation Based on Current Selection². plus a long list of paths.
This is what I have set in Preferences > Variables: ³BIBINPUTS ~/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents/refs.bib"
Anyone know what the problem is?
Ross
Hi Ross,
On 28 Jun 2015, at 21:13 , Ross Ahmed rossahmed@googlemail.com wrote:
In my master .tex file, the command LaTeX > Insert > Citation Based on Current Word works fine.
However if I try to run the same command in the child files, I get a dialogue box with the error message "Failure running “Citation Based on Current Selection…”. plus a long list of paths.
This is what I have set in Preferences > Variables: “BIBINPUTS ~/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents/refs.bib"
Anyone know what the problem is?
as far as I know `BIBINPUTS` need to be a list of directories. Please try to use the following as value for `BIBINPUTS`:
$HOME/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents:.
Here `.` specifies the current directory. `:` is used to separate each directory entry. Therefore the above value means that
$HOME/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents
and
.
should be searched for bibliography files.
You need to specify the name of your `.bib` file in your document via the command
\bibliography{refs}{}
or via
\addbibresource{refs.bib}
if you use biber.
Ross
If that does not help, then please just ask again. It would also be super helpful if you could provide a minimal example together with steps to reproduce the problem.
Kind regards, René
Hi René
Unfortunately I cannot get the citation completion to work in the child files, just the master file.
I'm not sure how I would convert my files into a MWE, but I'm using the thesis template from latextemplates.com and the files can be downloaded here: http://www.latextemplates.com/template/masters-doctoral-thesis
I noticed someone was having the same problem as me here, but it didn't seem that a solution was found: http://textmate.1073791.n5.nabble.com/Textmate-Latex-Citation-Inclusion-does...
Ross Ahmed Ecologist -- 07875533906 Twitter: @RossAhmed LinkedIn: Ross Ahmed
On 29 Jun 2015, at 11:05, René Schwaiger sanssecours@f-m.fm wrote:
Hi Ross,
On 28 Jun 2015, at 21:13 , Ross Ahmed rossahmed@googlemail.com wrote:
In my master .tex file, the command LaTeX > Insert > Citation Based on Current Word works fine.
However if I try to run the same command in the child files, I get a dialogue box with the error message "Failure running “Citation Based on Current Selection…”. plus a long list of paths.
This is what I have set in Preferences > Variables: “BIBINPUTS ~/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents/refs.bib"
Anyone know what the problem is?
as far as I know `BIBINPUTS` need to be a list of directories. Please try to use the following as value for `BIBINPUTS`:
$HOME/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents:.
Here `.` specifies the current directory. `:` is used to separate each directory entry. Therefore the above value means that
$HOME/Library/Mobile Documents/M6HJR9W95L~com~textasticapp~textastic/Documents
and
.
should be searched for bibliography files.
You need to specify the name of your `.bib` file in your document via the command
\bibliography{refs}{}
or via
\addbibresource{refs.bib}
if you use biber.
Ross
If that does not help, then please just ask again. It would also be super helpful if you could provide a minimal example together with steps to reproduce the problem.
Kind regards, René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Ross,
On 04 Jul 2015, at 20:17 , Ross Ahmed rossahmed@googlemail.com wrote:
Hi René
Unfortunately I cannot get the citation completion to work in the child files, just the master file.
I'm not sure how I would convert my files into a MWE, but I'm using the thesis template from latextemplates.com and the files can be downloaded here: http://www.latextemplates.com/template/masters-doctoral-thesis
just downloaded the LaTeX template. Since the bib file `Bibliography.bib` is already included in the project folder you do not need to set `BIBINPUTS`! This would only be necessary if your bibliography file is located somewhere else.
To get the citation completion also working in included files you need to specify a so-called master file. This is the file you translate to produce your (PDF-)document. In your case this is the file `main.tex`. One way to specify that `main.tex` is your master file is to write a comment of the form:
%!TEX root = path_to_masterfile
at the top of an included file.
E.g.: If you want to get the citation completion to work in `Chapters/Chapter1.tex`, then add the following at the top of the file `Chapter1.tex`:
%!TEX root = ../main.tex
`..` specifies the folder one level above the current folder `Chapters`.
You can also use the command “Set Master File” inside “Bundles→LaTeX→File Preferences” to set the master file.
I hope this helps. If it does not, then please provide a description of the problems you encountered.
I noticed someone was having the same problem as me here, but it didn't seem that a solution was found: http://textmate.1073791.n5.nabble.com/Textmate-Latex-Citation-Inclusion-does...
Ross Ahmed Ecologist -- 07875533906 Twitter: @RossAhmed LinkedIn: Ross Ahmed
Kind regards, René