看板 LaTeX 關於我們 聯絡資訊
※ 引述《wrjih (吃芝麻掉燒餅)》之銘言: : 我想建一個keywords的environment, 其輸出結果為: : Keywords: aaaa, bbbb, cccc, dddd, eeee, ffff, ..... : xxxx, yyyy, zzzz : 其中keywords的左右會向內縮排1cm : 目前寫了一個style file定義如下: : \def\keywordname{{\bf Keywords:}} : \newenvironment{keywords}{% : \list{}{\advance\topsep by0.35cm\relax\small : \leftmargin=1cm : \labelwidth=\z@ : \listparindent=\z@ : \itemindent\listparindent : \rightmargin\leftmargin : \item[\hskip\labelsep\bfseries\keywordname]} : \quotation : } : {\endquotation\endlist} : 以上的這個定義, 可以做到左右margin內縮1cm, 但是第2行會內縮 (i.e. 首行凸排) : 想請問, 要如何修改, 才能達到我希望的keywords environment? \newenvironment{keywords}{% \noindent{\bf Keywords:} } {} 這樣就能做到了阿 @@|| 不過你的 keywords 的定義為什麼這麼複雜呢 @________@ 列舉一小段 某期刊的定義 \newenvironment{keywords}{\global\keywordstrue% \par\addvspace{11pt}% \keywordfont \noindent{\itshape Keywords:\ }\ignorespaces }{% \par\addvspace{26pt plus 4pt} \@afterheading} -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.80.33