“\Ualgocf@original@chapter” undefined when using algorithm2e with natbib
来源:互联网 发布:数据接口自己能换吗 编辑:程序博客网 时间:2024/06/03 12:17
Is it possible to just use plainnat
without using the package natbib
? When I do so, multiple author references don't work too well. I get
[author et al (year)auhtor1, author2 and author3]
when what I want is just
[author et al (year)]
Anyway to fix this?
If I add \usepackage{natbib}
I just get an error:
Undefined control sequence.\chtapter ...ace {10\p@ }}\algocf@original@chapter1.1 \begin{thebibliography}{28}
So using plainnat
without natbib
is the closest I got to get this working.
Example:
\documentclass[a4paper,12pt]{article}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{graphicx}\usepackage{rotating}\usepackage{listings}\usepackage[ruled,vlined]{algorithm2e}\usepackage[ngerman,english]{babel}\usepackage{babelbib,url} \usepackage{breakcites}%\usepackage{natbib}%\usepackage[square, comma, sort&compress]{natbib}\usepackage[latin1]{inputenc}\usepackage{pslatex}\usepackage{setspace}\setstretch{2} \begin{document} \cite{DPS2000}\newpage\pagebreak\nocite{*}\bibliographystyle{plainnat}\bibliography{references}\end{document}
It compiles fine but I get
[author et al (year)auhtor1, author2 and author3]
style referencing and if I uncomment natbib
it won't compile.
2 Answers
The problem is that the algorithm2e
expects \chapter
to be defined. It makes some changes to how the bibliography is printed which do not make sense. One fix is to do
\let\chapter\section
before loading algorithm2e
: the problem should be go away.
Load algorithm2e
after natbib
.
- “\Ualgocf@original@chapter” undefined when using algorithm2e with natbib
- Android: NullPointerException when using RelativeLayout with measure()
- Android: NullPointerException when using RelativeLayout with measure()
- Android: NullPointerException when using RelativeLayout with measure()
- Undefined variable from import when using wx...错误
- 【Link】undefined reference to `_intel_fast_memcpy' when using intrinsics
- Track Original Repo When Fork
- cannot read property original of undefined
- CHAPTER 3 Using Modules
- [Unresolved] Webpy bug when using sessions with generator and normal function handlers
- Tomcat SSL配置 Connector attribute SSLCertificateFile must be defined when using SSL with APR解决
- Resolution of error reporting when using maven3 test function together with nexus
- Tomcat SSL配置 Connector attribute SSLCertificateFile must be defined when using SSL with APR解决
- Tomcat SSL配置 Connector attribute SSLCertificateFile must be defined when using SSL with APR解决
- Tomcat配置Https报错-Connector attribute SSLCertificateFile must be defined when using SSL with APR
- errror with IBus blocks Keyboard input when using IntelliJ or Pycharm
- Connector attribute SSLCertificateFile must be defined when using SSL with A
- Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法
- svn:database disk image is malformed问题解决方法
- ubuntu10.04开启framebuffer(转)
- codeforces 106C Buns
- win8实现视屏播放的功能
- linux 时间编程
- “\Ualgocf@original@chapter” undefined when using algorithm2e with natbib
- Design Pattern学习笔记之状态机模式(State Patterns)
- android ImageView-----图片放大或者缩小
- zoj3471
- JS写的计时器,把代码贴上,可以参考
- svn:版本库 xxx 不存在||svn: No such revision xxx"
- 选择排序法,指针来也
- 由表单中onsubmit="return false;"想到的
- mysql修改表名,列名,列类型,添加表列,删除表列