[問題] algorithm2e中tcp的上色(color)問題

看板LaTeX作者 (稻草人騎士)時間9年前 (2014/09/05 18:54), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
在algorithm2e中使用tcp的時候 如果tcp中的註解太長時會自動換行到下一行。 這時如果對tcp中的問字上色,不論是\color或是\textcolor的方式 都會使該行的行號一起被上色 像是: 1 for i=1 to 100 do // This is a very very very | very very long comment. 2 |do something |-- 有沒有辦法使得行號的1不要變成紅色? 試過了\color,\textcolor和\tcp的順序組合,不過看來是沒效。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.109.23.210 ※ 文章網址: http://www.ptt.cc/bbs/LaTeX/M.1409914479.A.44F.html

09/07 22:28, , 1F
09/07 22:28, 1F

09/09 12:06, , 2F
所以要改linenumber的style。樓上好久不見~
09/09 12:06, 2F

09/09 17:16, , 3F
好久不見啊~剛好看到有興趣的就google了一下XD
09/09 17:16, 3F
文章代碼(AID): #1K2PPlHF (LaTeX)