[問題] bib自訂編號後,cross ref仍是預設號

看板LaTeX (論文排版)作者 (無限期徵才)時間8年前 (2017/03/04 21:29), 8年前編輯推噓0(009)
留言9則, 1人參與, 最新討論串1/2 (看更多)
我在寫履歷,希望我的著作從新到舊排列,且編號從大到小: \begin{thebibliography}{99} \newcounter{pointnumber} \setcounter{pointnumber}{8} \makeatletter \renewcommand*{\@biblabel}[1]{[\thepointnumber \addtocounter{pointnumber}{-1}]} \makeatother \bibitem{my2017paper} my 2017 paper \bibitem{my2016paper} my 2016 paper ... \bibitem{my2011paper} my 2011 paper \end{thebibliography} 共7篇著作,且成功從7編號到1。 但內文\cite的時候,號碼用是預設的1到7,無法更新成我新設的顛倒編號。 請問我該怎麼改碼?謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.163.182.84 ※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1488634196.A.55B.html

03/04 21:36, , 1F
有先把一些殘餘歷史檔案刪去然後重新 Compile 第二次嗎?
03/04 21:36, 1F
有刪光其他檔案嘗試,仍無法顯示新編號。 我相信我的碼本身無法更改cite編號,只是我不知道哪種碼才能更改cite編號。 ※ 編輯: ballII (1.163.182.84), 03/04/2017 23:36:39

03/04 23:38, , 2F
可以比較清楚地解釋一下最後想要的形式大概是要怎麼樣子?
03/04 23:38, 2F

03/04 23:40, , 3F
照現在看來應該是最後的 Reference 排序是從 7 ~ 1
03/04 23:40, 3F

03/04 23:42, , 4F
而內文 cite 時不是你要的數字?
03/04 23:42, 4F
是這樣沒錯。 我想要的樣子: 我們進行第七年研究[7]時,發現第六年的研究[6]有一些疑點。 References [7] 第七年研究 [6] 第六年研究 .... 但目前呈現的樣子,cite號碼是錯的: 我們進行第七年研究[1]時,發現第六年的研究[2]有一些疑點。 References [7] 第七年研究 [6] 第六年研究 .... ※ 編輯: ballII (1.163.182.84), 03/04/2017 23:53:07

03/05 00:02, , 5F
cite 的編號是根據生成的 .aux 檔案去弄的, 有個麻煩的方
03/05 00:02, 5F

03/05 00:04, , 6F
法是去改生成的 .aux 內容, 不過應該有更漂亮的方法..
03/05 00:04, 6F
那若不要用\cite,改用\ref配合\label呢? 要怎麼用\label顯示出同樣的倒數References清單? ※ 編輯: ballII (1.163.182.84), 03/05/2017 00:22:01

03/05 01:03, , 7F
\cite 應該是可行的, 不過要重新定義 \@auxout
03/05 01:03, 7F

03/05 01:17, , 8F
\write\@auxout{\string\bibcite{#1}{\thepointnumber}}
03/05 01:17, 8F
這行加在哪兒呢? 我加在\makeatother前一行,沒有用吔。 ※ 編輯: ballII (1.163.182.84), 03/05/2017 01:27:02

03/05 01:29, , 9F
只有放這行不行啦xDDDDDD
03/05 01:29, 9F
文章代碼(AID): #1Oki5KLR (LaTeX)
文章代碼(AID): #1Oki5KLR (LaTeX)