Abbie -- I don't think that will cause a problem. That likely means that your PATH environment variable includes "/usr/texbin/" instead of "/usr/texbin". You can type:
echo $PATH at a shell prompt to verify. In fact, typing: :!echo $PATH in vim will tell you what Vim sees as its path. Check to see if "/usr/texbin" is followed by a slash. If it is, find where it's being set. It could be set in a global profile (e.g., /etc/profile or /etc/bash_profile or /etc/bashrc) or in a user profile (e.g., /etc/.bash_profile or /etc/.bashrc) or in a script included from one of those. I don't recall how TeXLive for the Mac organizes itself. I do recommend you try going to MacVim->Preferences and look for a setting to "Run in login shell" or something like that. I don't recall the actual wording (the vim-mac mailing list would be a good place to check), but there is a setting in MacVim preferences that forces all shells to be run as login shells to ensure that the same PATH that gets set when you login is used within Vim. One more thing to try.. execute :!bibtex inside vim. In fact, you can execute :!bibtex %:r inside vim to run bibtex on the TeX file you're working on at the time (and you can make a macro that runs that for you). Either way, does bibtex return an error from the shell about not being found, or does it run? --Ted On 07/01/2010 04:01 PM, Abbie Kressner wrote: > I am using MacVim, and :!which bibtex produces the following: > > /usr/texbin//bibtex > > This looks to be my problem since I think it should be > /usr/texbin/bibtex. How would I go about changing that to be correct? > > // Abbie > > On Thu, Jul 1, 2010 at 3:56 PM, Ted Pavlic <t...@tedpavlic.com > <mailto:t...@tedpavlic.com>> wrote: > > Abbie -- > > It works fine for me -- \ll runs LaTeX and BibTeX and > generates the BBL properly. (however, there was one \end{figure} > that wasn't commented out in the TeX you sent, but you said you just > now commented those out, and so that wouldn't be the source of the > problem) > > I'm starting to suspect that vim isn't picking up your path > the way it should (though I'm not sure why it's not having trouble > running latex). Are you using vim, gvim, or MacVim? I know you're > running a Mac, and there are lots of different ways to run vim on a Mac. > > Inside vim (however you run it), can you type > > :!which bibtex > > That is, the "colon" puts you into command mode, then the > exclamation point will cause vim to run "which bibtex". You should > see something like... > > /usr/bin/bibtex > > and then be prompted to press ENTER to continue. If you instead see > something like "which: no bibtex in (...)", then vim isn't importing > your path properly (in MacVim, you have to turn on a special option > use login shells so that commands run from vim are setup with your > path). > > --Ted > > > On 07/01/2010 03:12 PM, Abbie Kressner wrote: > > I have attached a tex file where I have commented out the figures > sections. I have also attached a bib file that I just created > that only > contains the references that I use (there are currently just two). > > I am not sure what you mean by "status line in Vim". I see a > bunch of > information flash across the window when I compile, and then it all > disappears when there is no "process-stopping" error. It goes > pretty > fast, so I don't have a chance to see what it says. I looked at > the log > file, but couldn't find anywhere that it specifically says it > compiled > bibtex. The following is the only relevant information I could > find... > > ] > No file *.bbl. > [14 > > > where * is the actual base filename. > > I just recently downloaded Vim-Latex in the last week or so, so > it would > be strange if it was out-dated. I found the following in > compiler.vim > that I believe you were referring to. > > " The first time we see if we need to run bibtex and if the .bbl > file > > " changes, we will rerun latex. > if runCount == 0 && Tex_IsPresentInFile('\\bibdata', > mainFileName_root.'.aux') > let bibFileName = mainFileName_root.'.bbl' > > let biblinesBefore = Tex_CatFile(bibFileName) > > echomsg "Running '".Tex_GetVarValue('Tex_BibtexFlavor')."' ..." > let temp_mp = &mp | let &mp = Tex_GetVarValue('Tex_BibtexFlavor') > exec 'silent! make '.mainFileName_root > let &mp = temp_mp > > let biblinesAfter = Tex_CatFile(bibFileName) > > " If the .bbl file changed after running bibtex, we need to > " latex again. > if biblinesAfter != biblinesBefore > echomsg 'Need to rerun because bibliography file changed...' > call Tex_Debug('Tex_CompileMultipleTimes: Need to rerun because > bibliography file changed...', 'comp') > let needToRerun = 1 > endif > endif > > Does anything seem to be wrong? > > Once again, thank you so much for taking the time to help me!! > > > On Thu, Jul 1, 2010 at 2:36 PM, Ted Pavlic <t...@tedpavlic.com > <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>> wrote: > > Hm. All of that works for me. \ll runs LaTeX three times with > relevant runs of bibtex in between to build the BBL. > > Could you send a complete minimal non-working example? Something > that can be immediately opened in Vim (perhaps even with a > minimal > bib, but I don't think the bib will matter; I can sub my own > bib in) > that causes you problems when you \ll it. > > After you run \ll, what does the status line in Vim say? For > example, mine says "Run latex 3 time(s)" right now. Also, > while \ll > is running, can you catch a glimpse of some of the other status > messages? It should report if/when it tries to run bibtex. > > Also, if you look where Vim-LaTeX is installed (e.g., in your > .vim/ftplugin/latex-suite/ or in > /usr/share/vim/vimfiles/ftplugin/latex-suite/ or similar on your > system), you should find a "compiler.vim" that has the Vim > script > that implements \ll. Is it possible that you have a very > very old > version of Vim-LaTeX that doesn't yet run bibtex? Search through > that file for "bibdata" -- you should find the relevant > section of > code that checks the AUX file for bibdata and runs bibtex as > needed. > You will also notice it references configuration variables > that can > be changed by the user. It's possible that your defaults are > either > set wrong or have been changed (?). > > --Ted > > > On 07/01/2010 01:24 PM, Abbie Kressner wrote: > > As far as I can tell, there are no errors. I deleted > all the files > except the tex file and reran the \ll compile command. > The aux file > contains the following lines. > > \bibstyle{IEEEtran} > \bibdata{/Users/abbiekre/Documents/_Papers/_Papers} > > > Also, here are the relevant lines in my beamer tex file. > > \appendix > \begin{frame}[allowframebreaks] > > \textbf{References} > > \bibliographystyle{IEEEtran} > > \bibliography{_Papers} > \end{frame} > > > Do you see any blaring errors? Any other ideas if not? > > Thanks! > > // Abbie > > Thanks in advance for anymore help! Hopefully I'll find > a solution > eventually. > > On Thu, Jul 1, 2010 at 12:38 PM, Ted Pavlic > <t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>>> wrote: > > Abbie -- > > Are you sure your LaTeX run isn't causing an error? > Vim-LaTeX will > cease processing on an error. There may be a subtle > LaTeX error > causing the Vim-LaTeX compiler to halt early > (although that > usually > would cause Vim-LaTeX to report an error). > > After LaTeX is run (by Vim-LaTeX), an "AUX" file > should be > created. > That "AUX" file should have a line in it that has > "\bibdata" > in it. > It is that line that causes Vim-LaTeX to call bibtex. > > Are there other details that might be confusing > Vim-LaTeX? > (e.g., > spaces in file names, etc.?) > > --Ted > > > On 07/01/2010 12:33 PM, Abbie Kressner wrote: > > Thank you, Ted! > > I still haven't been able to get the \ll > compiler command to > successful > compile a .bbl file. Any help would be greatly > appreciated! > > My current workaround is to call bibtex manually > from > Terminal. > Then > when I compile with \ll in MATLAB, the citations > correctly turn > from "?" > to numbers, and my reference page displays > correctly (rather > than being > blank). Removing the extra steps involved in > compiling > would be > fantastic though! > > On Thu, Jul 1, 2010 at 12:14 PM, Ted Pavlic > <t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>>>> wrote: > > Abbie -- > > > On 06/30/2010 04:46 PM, Abbie Kressner wrote: > > Do you happen to know what to do if \ll > does not > call > bibtex? > > > I'm responding to this message via the > vim-latex-devel list. > I've BCC'd you, but I advise you to continue > this > thread on > the list > where others can help too. > > So long as your LaTeX file has a > \bibliography{} > line in it, > the \ll compiler command will issue bibtex > sa needed. If > your LaTeX > file only has a \bibliography style command > but no > \bibliography > command, then Vim-LaTeX won't know to run > bibtex. In > fact, > in these > cases where there is no \bibliography > command, if > you try to run > bibtex manually it will give you an error. > > Of course, there is more than one way to > skin a cat. > However, I'm confident that if your LaTeX > document is > properly setup > for including a BibTeX bibliogrpahy, then > Vim-LaTeX will > make the > appropriate calls for you (using \ll). > > > Best -- > Ted > > -- > Ted Pavlic <t...@tedpavlic.com > <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>>>> > > > > Please visit my 2009 d'Feet ALS walk page: > http://web.alsa.org/goto/tedp > My family appreciates your support in the > fight to > defeat ALS. > > > > -- > Ted Pavlic <t...@tedpavlic.com > <mailto:t...@tedpavlic.com> <mailto:t...@tedpavlic.com > <mailto:t...@tedpavlic.com>> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>>> > > Please visit my 2009 d'Feet ALS walk page: > http://web.alsa.org/goto/tedp > My family appreciates your support in the fight to > defeat ALS. > > > > -- > Ted Pavlic <t...@tedpavlic.com <mailto:t...@tedpavlic.com> > <mailto:t...@tedpavlic.com <mailto:t...@tedpavlic.com>>> > > Please visit my 2009 d'Feet ALS walk page: > http://web.alsa.org/goto/tedp > My family appreciates your support in the fight to defeat ALS. > > > > -- > Ted Pavlic <t...@tedpavlic.com <mailto:t...@tedpavlic.com>> > > Please visit my 2009 d'Feet ALS walk page: > http://web.alsa.org/goto/tedp > My family appreciates your support in the fight to defeat ALS. > > -- Ted Pavlic <t...@tedpavlic.com> Please visit my 2009 d'Feet ALS walk page: http://web.alsa.org/goto/tedp My family appreciates your support in the fight to defeat ALS. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel