banner



How To Change Citation Style In Latex

When I brand a reference at the start of a sentence I accept one citation style, but when I make a reference at the end I have another.

The class I'm using has the \cite{} command containing only the latter style.

How can I change the citation mode for some specific citation?

Instance:

The citation style for \cite{kahneman1979prospect} is:

[Kahneman and Tversky 1979]

But I can only use this way at the end of a sentence.

If I showtime the sentence citing something such as:

"According to..."

My citation style should be:

Kahneman and Tversky (1979)

Is information technology possible to create this new style (preferably a new command in the preamble)?

I've looked another classes and they have information technology implemented in a new command such equally\citeN{}:

          \def\citeN{\def\@citeseppen{-1000}%     \def\@cite##1##2{##ane\if@tempswa , ##ii]\else{]}\fi}%     \def\citeauthoryear##ane##two##3{##ii [##3}\@citedata}                  

I used the above code in my current course and preamble. Unfortunately it is still not working, but hopefully gives a starting point.

EDIT:

This is a minimal example with correct and wrong style for each example.

main.tex

          \documentclass{article}  \usepackage{natbib} \bibliographystyle{abbrvnat}  \begin{document}  \section{Commendation Fashion I}  \begin{catalog} \item According to \cite{kahneman1979prospect} \dots is wrong. \item According to \citet{kahneman1979prospect} \dots is incorrect. \item According to Kahneman and Tversky (1979) \dots is correct. \stop{itemize}  \section{Commendation Fashion Ii}  \begin{itemize} \item This is right \dots \citep{kahneman1979prospect}. \item This is incorrect \dots (Kahneman and Tversky, 1979). \end{itemize}  \bibliography{references}  \end{document}                  

references.bib

          @article{kahneman1979prospect,   title={Prospect theory: An analysis of decision under gamble},   author={Kahneman, Daniel and Tversky, Amos},   journal={Econometrica: Periodical of the econometric society},   pages={263--291},   twelvemonth={1979},   publisher={JSTOR} }                  

Output file

enter image description here

Source: https://tex.stackexchange.com/questions/391099/how-to-change-citation-style-for-specific-sentence

Posted by: hoggardtwerfell.blogspot.com

0 Response to "How To Change Citation Style In Latex"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel