看板 LaTeX 關於我們 聯絡資訊
※ 引述《ballII (無限期徵才)》之銘言: : 我用這行指令: : \renewcommand{\refname}{} : 原本該顯示「References」的地方會變成空白, : 但仍保有很大的留白,看起來很古怪。 : 我該如何讓這塊留白空間完全消失呢? 我想這篇會是妳要找的: https://goo.gl/8aAt15 因為 thebibliography 環境使用的是 \section*{\refname} (有些 cls 則是使用 \chapter) 所以即使你讓 \refname 為空,他依然會留個空白在那 那是原本 \section 或 \chapter 的 這邊他給出了一個可行的解決方法如下: --- \renewcommand{\section}[2]{}% --- 但這有些壞處,只能救急: 1. 隱藏了所有在這指令之後的所有 \section 環境 heading 所以後面如果有 \section 環境會使得這些環境都沒有 heading 2. 在目錄中仍然會顯示 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.168.72.226 ※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1488792675.A.7E6.html
Marsden: 如果要比較好的方式去達到你的目的 03/06 17:41
Marsden: https://goo.gl/k8GAEk 可以考慮重新定義環境 03/06 17:42
Marsden: 還可以順便解決前面的 counter 問題 03/06 17:44
--- 還有個另外的方式就是使用 tocbibind 這個 package \usepackage[other]{tocbibind} 參數中使用 other 可以在 preamble 區使用 \tocotherhead 定義 想要的格式,在這裡可以創建一個額外的環境然後引入: \newcommand\blankref[2]{} \tocotherhead{blankref} 這樣也可以達到讓 Reference 沒有 heading 的目的 ※ 編輯: Marsden (118.168.72.226), 03/06/2017 18:23:47
ballII: 謝謝! 03/06 20:24