[問題] algorithm2e下字體不使用斜體
我使用的package是algorithm2e,
但在使用"\While"、"\If"、"\For"等函式下,
condition的部份都會被限制為是"數學模式",
請問 有辦法可以在condition的地方不使用數學模式嗎?
以下為例子:
1. \begin{algorithm}
2. \If{current is a goal}{
3. \Return success;
4. }
5. \end{algorithm}
我期望能夠看到第2行的"is a goal" 是正體字,
這樣才能區分出"current"為變數,"is a goal"為敘述。
請問是否可以達成這個目標呢?
又或者 各位鄉民大大有什麼樣的建議?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.109.23.169
※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1444628159.A.4FE.html
推
10/12 16:32, , 1F
10/12 16:32, 1F
→
10/13 11:31, , 2F
10/13 11:31, 2F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章