Re: [問題] 關於winedt虛框

作者: ChenMeng0518 (LSiYue)   2014-01-16 23:29:54
※ 引述《CJYan (azxyan)》之銘言:
: 新手上路~對於用winedt打出框框有使用過\fbox
: 現在我要打出虛線框
: 我有嘗試過用\dbox,\dashbox可是都不行
: 想請問有沒有方法在WINEDT打出虛框
自己定義了一個﹐使用的是 TikZ 繪圖做的﹐沒有考慮斷行和分頁。放在這裡僅僅是
提供一個思路而已。代碼﹕
\documentclass{article}
\usepackage{tikz}
\usepackage{calc}
\newsavebox{\bgbox}
\newlength{\DBW}
\newlength{\DBH}
\newlength{\DBD}
\newlength{\dbw}
\newlength{\dbth}
\newlength{\dbsep}
\setlength{\dbsep}{1mm}
\newcommand{\dashedbox}[1]{\sbox{\bgbox}{#1}%
\settowidth{\DBW}{\usebox{\bgbox}}%
\settoheight{\DBH}{\usebox{\bgbox}}%
\settodepth{\DBD}{\usebox{\bgbox}}%
\setlength{\dbw}{\dbsep+\DBW}%
\setlength{\dbth}{\dbsep+\DBH+\DBD}%
\tikz \draw[dashed] (0,0) rectangle (\dbw,\dbth) node at (0.5\dbw,0.5\dbth) {\usebox{\bgbox}};}
\begin{document}
\dashedbox{test}
\end{document}
TeX Live 中包含了 fancybox 這個套件﹐其中定義了不少好看的盒子。不過很可惜
並沒有你需要的 dashed box. 所以你可以參照我的思路﹐結合 fancybox 套件中定
義盒子的方法﹐制作出能斷行分頁的盒子。
以上就是建議了。
M
作者: CJYan (azxyan)   2014-01-17 10:42:00
感謝你的建議 我在測試看看 對這軟體還不是太熟悉..

Links booklink

Contact Us: admin [ a t ] ucptt.com