書籍引文未顯示 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}

我的參考文獻中出現的是: 書籍引文截圖

我想解決這個問題的另一種方法可能是定義一個新的引用命令,要求乳膠顯示該書的出版商和地址?此外,如何使引文標題變成非斜體?

太感謝了!

最好的,達西

我不知道是否是我引用的一些包導致了發布者和地址的消失,所以我將所有包複製並貼上到這裡。

%% 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我為測試您的程式碼而創建的臨時圍脖檔案的名稱。)

一般建議:如果您認為 BibTeX 運行期間可能出現問題,最好檢查 .blg(我想是「BibTeX 日誌」的縮寫)檔案。換句話說:忽略 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}

相關內容