日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

latex報錯:Misplaced alignment tab character &. ...Endpoints Controller and Service Acc,Latex Misplac

作者:別出BUG求求了 更新時間: 2023-11-15 編程語言

編譯后報錯:

Misplaced alignment tab character &. …Endpoints Controller and Service Acc,Latex Misplaced alignment tab character &. 的一種可能錯誤

問題解析:

某期刊真是講究,如果使用bibtex,要把.bbl里的內容粘貼到main.tex的最后。其實這個也不難,只要正常編譯完成之后把bbl中的內容復制到main.tex中即可。

但是剛開始不懂,還以為要手動把每一條參考文獻寫到bib里,于是就用了zotero中先導出 由所選條目生成條目–>再選擇參考文獻格式–>復制到剪切板–>手動復制到main.tex最后,如下所示:

\bibitem{buttafavaNonlineofsightImagingUsing2015}
Buttafava, M., Zeman, J., Tosi, A., Eliceiri, K. & Velten, A. Non-line-of-sight imaging using a time-gated single photon avalanche diode. Optics express 23, 20997–21011 (2015).

然后再次編譯的時候就會報錯:

Misplaced alignment tab character &. …, M., Zeman, J., Tosi, A., Eliceiri, K. &

log文件記錄如下:

l.416 …, M., Zeman, J., Tosi, A., Eliceiri, K. &
Velten, A. Non-line-of-si…
I can’t figure out why you would want to use a tab mark here. If you just want an ampersand, the remedy is
simple: Just type I\&' now. But if some right brace up above has ended a previous alignment prematurely, you're probably due for more error messages, and you might try typing S’ now just to see what is salvageable.

解決方案

沒看懂它的報錯信息,但這里的問題就是&比較特殊,編譯器進行了轉義而并沒有當成普通的"&"進行編譯,從而導致了某種錯誤。所以有兩種解決方法

1. 將& 改為 &

\bibitem{buttafavaNonlineofsightImagingUsing2015}

Buttafava, M., Zeman, J., Tosi, A., Eliceiri, K. \& Velten, A. Non-line-of-sight imaging using a time-gated single photon avalanche diode. Optics express 23, 20997–21011 (2015).

編譯出的結果為:

2.

2. 將&改為and

\bibitem{buttafavaNonlineofsightImagingUsing2015}

Buttafava, M., Zeman, J., Tosi, A., Eliceiri, K. and Velten, A. Non-line-of-sight imaging using a time-gated single photon avalanche diode. Optics express 23, 20997–21011 (2015).

編譯結果為
在這里插入圖片描述
當然,回到最初的問題,最好的方法還是按照投稿說明將bibtex得到的bbl文件直接復制到main.tex的最后。

原文鏈接:https://blog.csdn.net/weixin_39589455/article/details/128533712

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新