作者laba888 (喇叭)
看板LaTeX
標題Re: [問題] 請問如何用方框圈住一段文字,並加以條列式的標題
時間Tue Oct 16 01:27:17 2012
┌─ 範例 1 ──────────────────────┐
│ │
│ 範例1的內容......... │
│ │
└────────────────────────────┘
新手第一次發問
先謝謝各位大大了> <
小弟我想要打出上面那種樣式的框框
爬到了這篇討論剛好是我想問的問題
於是我想說可以先把原PO大大的指令複製下去編譯一探究竟
\documentclass[12pt,a4paper]{report}
\usepackage{fancybox,pstricks}
\newcommand{\titledbox}[2]
{\boxput*(-0.6,1){\psframebox*{ #1 }}
{\psframebox[framesep=12pt]
{\begin{minipage}[t]{0.92\textwidth}#2\end{minipage}}}
}
\begin{document}
\fontsize{12}{18pt}\selectfont
\newcounter{icount}
\renewcommand{\theicount}{\addtocounter{icount}{1}\arabic{icount}}
\begin{list}{}{
\usecounter{icount}
\renewcommand{\makelabel}[1]{\titledbox{ 狀況 \theicount }{#1}}}
\item [狀況的內文]
\item [狀況的內文]
\end{list}
\end{document}
結果跑不出來
好像是說我的黃色那行有問題
請問該怎麼修改呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.24.189.238
1F:推 saplayer:{0.92\textwidth}#2改成{0.92\textwidth#2} 10/16 03:06
2F:→ laba888:回家後馬上開來試試看! 謝謝你的解救!!! 感激不盡~~~ 10/16 21:14