BibTeX, biblatex and biberChanging \cite command

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
thorpn
Posts: 53
Joined: Mon Jul 30, 2012 7:30 pm

Changing \cite command

Post by thorpn »

I have just started using \citep instead of \cite. Is there a way for me change the command \cite to "mean" \citep ? I am asking because i have a large document which i would otherwise have to comb through to find all the \cite´s :)
Last edited by thedreamshaper on Mon Apr 04, 2011 8:19 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing \cite command

Post by localghost »

You mean to assign the functionality of \citep to \cite? Then try this in the preamble.

Code: Select all

\let\cite\citep
Untested, therefore unwanted side effects cannot be ruled out.

But it should be no problem for your editor to search and replace given strings.


Thorsten
thorpn
Posts: 53
Joined: Mon Jul 30, 2012 7:30 pm

Re: Changing \cite command

Post by thorpn »

I am using TeXnicCenter, i dont know if it has a search and replace function ?
thorpn
Posts: 53
Joined: Mon Jul 30, 2012 7:30 pm

Re: Changing \cite command

Post by thorpn »

Your code worked like a charm :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing \cite command

Post by localghost »

thedreamshaper wrote:I am using TeXnicCenter, i dont know if it has a search and replace function ?
Of course it has.
thedreamshaper wrote:Your code worked like a charm […]
Then please mark the topic accordingly as clearly written in Section 3 of the Board Rules and as you have already been asked for. You are not new to the forum so you should no that. Please keep that in mind for the future so that further reminders will not be necessary.
Post Reply