书籍引文未以 ecta 样式显示出版商和地址

书籍引文未以 ecta 样式显示出版商和地址

当我投入

\bibliographystyle{ecta}
\bibliography{References_NB}

以下引文未显示地址和出版商:

@book{young_1958,
    author    = "Michael Young",
    title     = "The Rise of the Meritocracy",
    year      = "1958", % Citations: 2,998
    publisher = "Thames and Hudson",
    address   = "London"
}

在正文中我做了:

\begin{document}
\cite{young_1958} says ...
\end{document}

我的参考资料中的内容是: 书籍引文截图

我认为解决这个问题的另一种方法可能是定义一个新的引用命令,要求 latex 显示书籍的出版商和地址?此外,我怎样才能使引用的标题非斜体?

太感谢了!

最好的,达西

我不知道是否是我引用的一些包导致了发布者和地址的消失,所以我把所有的包复制粘贴到这里。

%% LyX 2.1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\RequirePackage{fix-cm}
\documentclass[12pt,english]{article}

\usepackage{booktabs}
\usepackage{xcolor}
% \definecolor{blue-green}{rgb}{0.0, 0.87, 0.87}
% \definecolor{bleudefrance}{rgb}{0.19, 0.55, 0.91}
% \definecolor{com}{rgb}{0, 0, 1} % com short for comment

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1.5in,bmargin=1.5in,lmargin=1in,rmargin=1in}
\synctex=-1
\usepackage{color}
\usepackage{babel}
%\usepackage{dvipost}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{esint}
\usepackage[bottom]{footmisc}
\usepackage[table,x11names]{xcolor}
\usepackage{tabularx, array}
\usepackage{float}

% \usepackage[spanish]{babel}
% \usepackage[demo]{graphicx}
% \usepackage{multicol, latexsym, amsmath, amssymb}
% \usepackage{blindtext}
% \usepackage{subcaption}
% \usepackage{caption}
% \usepackage{tabu}
%    \usepackage{booktabs}% for better rules in the table
% \usepackage{anysize} % Soporte para el comando \marginsize
% \usepackage{hyperref}
% \setlength\parindent{0pt}
% \spanishdecimal{.}

\usepackage{fmtcount} % displaying latex counters
\usepackage{caption}
\usepackage{subcaption}
\renewcommand{\thesubfigure}{\Alph{subfigure}}

\usepackage[authoryear]{natbib}
\onehalfspacing
\usepackage[unicode=true,pdfusetitle, bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}
\usepackage{breakurl}


\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Change tracking with dvipost
% \dvipostlayout
% \dvipost{osstart color push Red}
% \dvipost{osend color pop}
% \dvipost{cbstart color push Blue}
% \dvipost{cbend color pop}
\DeclareRobustCommand{\lyxadded}[3]{\changestart#3\changeend}
\DeclareRobustCommand{\lyxdeleted}[3]{%
\changestart\overstrikeon#3\overstrikeoff\changeend}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{enumitem}       % customizable list environments
\newlength{\lyxlabelwidth}      % auxiliary length 
  \theoremstyle{plain}
  \newtheorem{lem}{\protect\lemmaname}
  \theoremstyle{remark}
  \newtheorem{rem}{\protect\remarkname}
  \theoremstyle{plain}
  \newtheorem{prop}{\protect\propositionname}

\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

\parskip        = 0.25cm
\usepackage{lmodern}
%\usepackage{subdepth}
\DeclareMathSizes{12}{11}{8}{7} % \scriptsize is 8 pt



% The following  makes the remark boldface not italic
\newtheoremstyle{remark}        
  {}{}{}{}{\bfseries}{.}{.5em}{{\thmname{#1 }}{\thmnumber{#2}}{\thmnote{ (#3)}}}
\theoremstyle{remark}
% The following  makes the proofs boldface and not italic
\renewenvironment{proof}[1][\proofname]{{\bfseries #1.}}




\setlength{\bibsep}{1.25mm}

\AtBeginDocument{
  \def\labelitemii{\(\triangleright\)}
  \def\labelitemiii{\(\circ\)}
}

\makeatother

  \providecommand{\lemmaname}{Lemma}
  \providecommand{\propositionname}{Proposition}
  \providecommand{\remarkname}{Remark}

答案1

(在收到 OP 的进一步信息后,我更新了这个答案)

% Citations: 2,998条目中存在“注释”young_1958会生成以下 BibTeX 错误消息:

You're missing a field name---line 8 of file mybib.bib
 :     year      = "1958", 
 :                         % Citations: 2,998
I'm skipping whatever remains of this entry
Warning--missing publisher in young_1958
(There was 1 error message)

(这是mybib.bib我为测试您的代码而创建的临时 bib 文件的名称。)

一般建议:如果您认为在 BibTeX 运行过程中可能出现问题,最好检查 .blg(我想是“BibTeX log”的缩写)文件。换句话说:忽略 BibTeX 错误消息,后果自负。

省略此“注释”,一切都会按预期运行。

在此处输入图片描述

\documentclass{article}
\begin{filecontents}[overwrite]{mybib.bib}
@book{young_1958,
    author    = "Michael Young",
    title     = "The Rise of the Meritocracy",
    year      = "1958", 
    publisher = "Thames and Hudson",
    address   = "London"
}
\end{filecontents}

\usepackage{natbib}
\bibliographystyle{ecta}

\begin{document}
\citet{young_1958}
\bibliography{mybib}
\end{document}

相关内容