sharelatex 中的 bibtex 和 biblatex 自定义

sharelatex 中的 bibtex 和 biblatex 自定义

所以我已经与这个问题斗争了两天。结果:点头好...图片是我尝试做的例子。第一个是手工制作的,后面的“lähteet”是 biblatex 正在做的。我无法制作自定义围兜,因为我使用的是 sharelatex.com...

这就是我所做的,看起来确实如此。

\usepackage[backend=bibtex,
style=authoryear-icomp,
bibencoding=ascii
%style=alphabetic
%style=reading
]{biblatex}
\usepackage{xpatch}

%\bibliographystyle{IEEEtran}
\addbibresource{luettelo}
\renewcommand\@biblabel[1]{}

\xpatchbibmacro{date+extrayear}{\printtext[parens]}{%
  \setunit{\addperiod\space}%
  \printtext%
}{}{}
\xpatchbibmacro{edition}{\printtext[parens]}{%
  \setunit{\addperiod\space}%
  \printtext%
}{}{}
\DeclareFieldFormat[inbook]{title}{#1}
\DeclareFieldFormat[article]{title}{#1}
\xpatchbibmacro*{in:}{\bibstring{in}}{%
      \setunit{}  
      \printtext%
}{}{}

\renewcommand\@biblabel[1]{}

这是.bib 文件:

@article{einstein,
  author =       "Albert Einstein",
  title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
                 [{On} the electrodynamics of moving bodies]",
  journal =      "Annalen der Physik",
  volume =       "322",
  number =       "10",
  pages =        "891--921",
  year =         "1905",
  DOI =          "http://dx.doi.org/10.1002/andp.19053221004"
}

@book{latexcompanion,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The \LaTeX\ Companion",
    year      = "1993",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"
}

@misc{knuthwebsite,
    author    = "Donald Knuth",
    title     = "Knuth: Computers and Typesetting",
    url       = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html"
}

@article{Shabana,
    author    = "Shabana, Ahmed A",
    title     = "Computational Dynamics",
    year      = "2001",
    publisher = "John Wiley & Sons.",
    pages     = "522 s."   
}
@inbook{inbook,
  author       = "Hirsjärvi, S., Remes, P. & Sajavaara, P", 
  title        = "Tutki ja kirjoita",
  chapter      = 8,
  pages        = {201-213},
  publisher    = {The name of the publisher},
  year         = 2005,
  address      = {The address of the publisher},
  edition      = 10,
  note         = {An optional note}
}

我的问题是:在 sharelatex 中是否可以自定义这么多内容?或者有其他库可以使用吗?任何现成的样式都不适合。

另一个问题是,我可以让 Latex 库读取 bib 文件并以正确的样式和正确的顺序打印它们吗?

需要帮助...

示例样式

答案1

我将回答我的问题或解决方案:

使用:

\begin{thebibliography}{99}
\bibitem[Enstein(1905]{Ein05}Einstein, A. 1905. Zur Elektrodynamik bewegter Köper.Germany.522 s.
\end{thebibliography} 

并摆脱编号\renewcommand\@biblabel[1]{}代码

引用使用\usepackage[round]{natbib}包,引用代码为\citep{Ein05},所以结果是 (Einstein, 1905)

相关内容