[問題] algorithm2e中tcp的上色(color)問題
在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
09/09 12:06, 2F
→
09/09 17:16, , 3F
09/09 17:16, 3F