Niels --

> I don't speak about F9. That doesn't really work for me. The application
> (Papers2) I am using for creating my Bibtex-files doesn't seem to write
> clean enough Bibtex for the plugin, but that's not that much of a
> problem for me.

        Hm. I have a feeling that's not actually what the problem is, but it
sounds like it would be a moot point anyway.

> Ok, I see. Syntax highlighting is my problem. Then I know where to look
> (and have to find out how I extend that locally)

        Well, on my machine, the important file is located in:

/usr/share/vim/vim73/syntax/tex.vim

On your Mac, the tex.vim syntax file will be located under the "syntax"
folder of wherever your Vimfiles are. Inside Vim, you can try:

:echo $VIMRUNTIME

to see where to start looking for the "syntax" folder.

        You then could try copying "tex.vim" into your own ~/.vim/syntax folder
(which I *think* (??) will take precedence over the system one). You can
then edit it and search for "cite". You should find a line like:

syn match  texRefZone           '\\cite\%([tp]\*\=\)\='
nextgroup=texRefOption,texCite

which matches \cite, \citet, and \citep. There are several options. The
simplest is probably to try adding a similar line like:

syn match  texRefZone           '\\shortcite\%(\*\=\)\='
nextgroup=texRefOption,texCite

for shortcite (and do something similar for your other options).

>> [ by the way, I use natbib, which gives me \citep, \citet, \citeauthor,
>> \citeyear, and much more... and it makes it much easier to switch from
>> Harvard-style to numbered citations right from within the TeX body ]
> 
> I use something where I used chicago as a base because it is nearer to
> the cite-style I need for what my professor wants from me in terms of
> citation style.

        Well, natbib is completely compatible with the chicago BST style. It's
just a different set of macros that provides me with some nice features,
especially when I hop across journals that have very different editorial
conventions. Anyway, another moot point.

        Best --
        Ted


> Niels
> 
>> On 06/27/2012 10:53 AM, Niels Kobschätzki wrote:
>>> Hi,
>>>
>>> for citations I am using the chicago-style which offers more
>>> cite-commands than just \cite. I use fairly often \shortcite. Is there a
>>> way to give shortcite the same functionality as cite?
>>>
>>> Niels
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>> Discussions
>>> will include endpoint security, mobile security and the latest in
>>> malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Vim-latex-devel mailing list
>>> Vim-latex-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>>>
>>
>> -- 
>> Ted Pavlic <t...@tedpavlic.com>

-- 
Ted Pavlic <t...@tedpavlic.com>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to