作者jsb (jsb)
看板LaTeX
标题Re: [问题] 线上加上 symbol
时间Mon Sep 5 12:12:43 2011
我把它改成不受限字型大小的版本了:(顺便多加了几种组合)
\begin{itemize}
\item Empty circle on solid line: \hspace{0.1em}\rule[0.55ex]{2.6em}{0.1ex}\hspace{-1.53em}$\circ$\hspace{1.2em}
\item Empty circle on broken line: $- - -\hspace{-1.67em}\circ$\hspace{1.2em}
\item Solid circle on solid line: \hspace{0.1em}\rule[0.55ex]{2.6em}{0.1ex}\hspace{-1.53em}$\bullet$\hspace{1.2em}
\item Solid circle on broken line: $- - -\hspace{-1.67em}\bullet$\hspace{1.2em}
\item Solid circle on solid line: \hspace{0.1em}\rule[0.55ex]{2.6em}{0.1ex}\hspace{-1.7em}$\times$\hspace{1.2em}
\item Solid circle on broken line: $- - -\hspace{-1.8em}\times$\hspace{1.2em}
\item \hspace{0.1em}\rule[0.55ex]{2.6em}{0.1ex}\hspace{-1.53em}$\circ$\hspace{1.2em}
\item $- - -\hspace{-1.67em}\circ$\hspace{1.2em}
\item \hspace{0.1em}\rule[0.55ex]{2.6em}{0.1ex}\hspace{-1.53em}$\bullet$\hspace{1.2em}
\item $- - -\hspace{-1.67em}\bullet$\hspace{1.2em}
\item \hspace{0.1em}\rule[0.55ex]{2.6em}{0.1ex}\hspace{-1.7em}$\times$\hspace{1.2em}
\item $- - -\hspace{-1.8em}\times$\hspace{1.2em}
\end{itemize}
上面六行是有加说明的;下面六行是为了要看看对齐得怎麽样。
在我的电脑上看起来是没问题,
大家可以测试看看。
整个复制贴上的版友记得把 PTT 的自动换行接回来。
※ 引述《killyou (xxx)》之铭言:
: ※ 引述《Volodos (Volodos)》之铭言:
: 这样如何? 用\rule[raise]{width}{thickness}划实线, $- - -$画虚线,
: 再用\hspace{-width}把後面的 o/x 往前移,
: 後面补上\hspace{width}避免後面的文字也叠到.
: A (\rule[3pt]{32pt}{.4pt}\hspace{-18pt}$\circ$\hspace{14pt}),
: B ($- - -\hspace{-19.5pt}\circ$\hspace{14pt}),
: C (\rule[3pt]{32pt}{.4pt}\hspace{-20pt}$\times$\hspace{12pt}),
: D ($- - -\hspace{-21pt}\times$\hspace{12pt}).
: 这是complie结果 http://ppt.cc/8rl5
: : 试试看这两个方式
: : 不确定是不是你所想要的
: : \hbox to 3em{\rlap{\raise .5ex\hbox{\vrule width3em height.7pt
: : depth0pt}}\hfil o\hfil}
: : \def\leaderfill{\cleaders\hbox to .25em{\raise.5ex\hbox{\hss\vrule width.2em
: : height.7pt depth0pt\hss}\hss}\hskip1em}
: : \mbox{}\leaderfill o\leaderfill \mbox{}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.162.107.151
1F:→ jsb:更正:所有的 0.55ex 都改成 0.56ex 的话符号和线比较不会跑开 09/05 12:21