extsizes 和 natbib / biblatex 令人困扰

extsizes 和 natbib / biblatex 令人困扰

我从rsc.org并根据本工作推荐的需求对其进行了调整。现在,它extsizes会产生问题,因此我将引用它的每一行都排除在外。它natbib还会产生问题,因此我将其替换为biblatex通常不会在我的文档中产生任何问题的。

\documentclass[a4paper,twoside,twocolumn,9pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{ngerman}
\usepackage{lipsum}
\usepackage{csquotes}
\usepackage{extsizes}
\usepackage[left=18mm,right=18mm,top=47mm,bottom=25mm]{geometry}
\usepackage{balance}
\usepackage{times,mathptmx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{textcomp}
\usepackage{sectsty}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage[pdf]{pstricks}
\usepackage{pdfpages}
\usepackage{background}
\usepackage{everypage}
\usepackage{lastpage}
\usepackage[format=plain,justification=justified,singlelinecheck=false,font={stretch=1.125,small,sf},labelfont=bf,labelsep=space]{caption}
\usepackage{lipsum}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{fnpos}
\usepackage{array}
\usepackage{droidsans}
\usepackage{charter}
\usepackage{setspace}
\usepackage[compact]{titlesec}
\usepackage[style=numeric,sorting=none,backend=bibtex8]{biblatex}
\addbibresource{sources.bib}
\usepackage[hidelinks]{hyperref}
\usepackage[all]{hypcap}
\definecolor{cream}{RGB}{222,217,201}
\backgroundsetup{scale=1,angle=0,opacity=1,color=black,contents={\begin{tikzpicture}[remember picture, overlay]
        \node at ([xshift=-10cm,yshift=-19mm] current page.north east)
    {\includegraphics[width=\paperwidth]{headerfile}};
    \end{tikzpicture}}}
\title{my title}
\author{me}
\date{\today}
\begin{document}
    \renewcommand{\figurename}{Abb.~}
    \renewcommand{\tablename}{Tab.~}
    \pagestyle{fancy}
    \makeFNbottom
    \makeatletter
    \renewcommand\LARGE{\@setfontsize\LARGE{15pt}{25}}
    \renewcommand\Large{\@setfontsize\Large{12pt}{17}}
    \renewcommand\large{\@setfontsize\large{10pt}{14}}
    \renewcommand\footnotesize{\@setfontsize\footnotesize{7pt}{10}}
    \setcounter{secnumdepth}{5}
    \renewcommand\@biblabel[1]{#1}            
    \renewcommand\@makefntext[1]{\noindent\makebox[0pt][r]{\@thefnmark\,}#1}
    \makeatother 
    \sectionfont{\sffamily\Large}
    \subsectionfont{\normalsize}
    \subsubsectionfont{\bf}
    \setstretch{1.125}
    \setlength{\skip\footins}{0.8cm}
    \setlength{\footnotesep}{0.25cm}
    \setlength{\jot}{10pt}
    \titlespacing*{\section}{0pt}{4pt}{4pt}
    \titlespacing*{\subsection}{0pt}{15pt}{1pt}
    \fancyhf{}
    \include{titlepage}
    \newpage\pagenumbering{arabic}
    \renewcommand{\headrulewidth}{0pt}
    \lfoot{name of subject -- 2018}
    \rfoot{shortname, 2018, \textbf{subtopic 1}| \thepage}
    \renewcommand{\footrulewidth}{1pt}
    \setlength{\arrayrulewidth}{1pt}
    \setlength{\columnsep}{6.5mm}
    \setlength\bibsep{1pt}
    \newlength{\figrulesep} 
    \setlength{\figrulesep}{0.5\textfloatsep} 
    \newcommand{\topfigrule}{\vspace*{-1pt}\noindent{\color{cream}\rule[-\figrulesep]{\columnwidth}{1.5pt}}}
    \newcommand{\botfigrule}{\vspace*{-2pt}\noindent{\color{cream}\rule[\figrulesep]{\columnwidth}{1.5pt}}}
    \newcommand{\dblfigrule}{\vspace*{-1pt}\noindent{\color{cream}\rule[-\figrulesep]{\textwidth}{1.5pt}}}
    \twocolumn[\begin{@twocolumnfalse}
%       \vspace{3cm}
        \sffamily
        \LARGE{\textbf{Our topic we're writing about}}\\
        \vspace{0.3cm}\\
        \large{me, the author}\\
        \normalsize{some introduction - \lipsum[1]}\\
    \end{@twocolumnfalse} \vspace{0.6cm}]
    \renewcommand*\rmdefault{bch}\normalfont\upshape
    \rmfamily
    \section*{}
    \vspace{-1cm}
    \section*{theory}
        \lipsum[2]\\one\cite{papere}, two\cite{paperz}, three\cite{paperd}, four\cite{paperv}
        \paragraph*{first subtopic}
            picture here (Abb.~\ref{pic})
            \begin{figure}[!h]\centering
                \includegraphics[width=0.6\columnwidth]{example}
                \caption{picture.\cite{papere}.}\label{pic}
            \end{figure}
    \section*{what we did and how}
        \lipsum[3].
        \subsection*{nice title 1}
            \lipsum[4]
        \subsection*{nice title 2}
            \lipsum[5]
    \section*{data and discussion}
        \lipsum[6]
        \subsection*{disc. 1}
            some text\cite{paperz}.\\
            some text (Tab.~\ref{asdf}) for writing. bla bla bla lorem ipsum dolor et piscit.
            \begin{table}[!h]\small
                \centering
                \caption{fac animalia ad trahit.}\label{asdf}
                \begin{tabular}{l|cccc}
                    value&no 1&no 2&no 3\\ \hline
                    v\textsubscript{max}&1&2&3\\
                    v\textsubscript{max}&4&5&6\\
                \end{tabular}
            \end{table}
    \section*{ending}
        \lipsum
%   \bibliography{sources} %You need to replace "rsc" on this line with the name of your .bib file
%   \bibliographystyle{rsc} %the RSC's .bst file
    \vspace{2cm}
    \printbibliography
\end{document}

我知道有些软件包可能需要在其他软件包之前包含。难道是我使用的软件包的顺序“错误”了?

我的sources.bib,它给出了以下显示的输出:

@ARTICLE{papere,
title={Synthesis of some polymer via some Polymerization and Its Evaluation in some field},
author={Bugnon, Lucienne; Morton, Colin J. H.; Novak, Petr; Vetter, Jens; Nesvadba, Peter},
journal={chemistry},
year={2000},
volume={100},
pages={1234--5678},
number={1},
}
@ARTICLE{paperz,
title={Improved Synthetic Procedure and Molecular Weight Control},
author={Neef, C. J.; Ferraris, J. P.},
journal={matter},
year={2000},
volume={100},
pages={1234--5678},
number={7},
}
@ARTICLE{paperd,
title={Synthesis of some polymer via some Polymerization and Its Evaluation in some field},
author={Lucienne Bugnon, Colin J. H. Morton, Petr Novak, Jens Vetter, Peter Nesvadba},
journal={chemistry},
year={2000},
volume={100},
pages={1234--5678},
number={1},
}
@ARTICLE{paperv,
title={Improved Synthetic Procedure and Molecular Weight Control},
author={C. J. Neef; J. P. Ferraris},
journal={matter},
year={2000},
volume={100},
pages={1234--5678},
number={7},
}

输出来自早期文件版本,没有该问题,但带有错误的引用“作为交换”。

1 P. N. J. V. P. N. Lucienne Bugnon, Colin J. H. Morton,
    Chem. Mater., 2007, 19, 2910–2914.
2 C. J. N. J. P. Ferraris, Macromolecules, 2000, 33,
    2311–2314.

答案1

问题在于biblatex您加载了ngerman包。该包已弃用,应删除。您应该使用

\usepackage[ngerman]{babel}

而是(正如您已经做的那样)。

您的.bib文件使用了错误的作者姓名格式。您需要用 分隔姓名and,例如

author={Neef, C. J. and Ferraris, J. P.},

您的代码还有很多其他问题。首先,您可能加载了比实际需要多得多的包。长度\bibsep未知,因此您无法重新定义它。并且您的示例中至少有几个\\' 不能在这些位置使用,因为它们位于\lipsum已经结束段落之后。

相关内容