Debian Codegraph @

texmf-dist/doc/latex/circledtext/circledtext.tex

raw
1 \documentclass[full]{l3doc}
2 \usepackage[scheme=plain]{ctex}
3 \usepackage{enumitem}
4 \usepackage{indentfirst}
5 \usepackage{titling}
6 \usepackage{geometry}
7 \usepackage{fancyvrb-ex}
8 \usepackage{circledtext}
9
10 \IndexPrologue
11 {
12 \section*{Index}
13 \markboth{Index}{Index}
14 \addcontentsline{toc}{section}{Index}
15 The~italic~numbers~denote~the~pages~where~the~
16 corresponding~entry~is~described,~
17 numbers~underlined~point~to~the~definition,~
18 all~others~indicate~the~places~where~it~is~used.
19 }
20
21 \newcommand\tikzmark[1]{\tikz \coordinate[overlay, remember picture] (#1);}
22
23 \geometry{
24 left=4.5cm,
25 right=2cm,
26 top=2cm,
27 bottom=2cm,
28 }
29 \hypersetup {
30 CJKbookmarks,
31 bookmarksopen,
32 bookmarksopenlevel=3,
33 pdfstartview=FitH,
34 pdfinfo = {
35 Title = The package circledtext ,
36 Subject = A LaTeX3 package ,
37 Author = Geng Nan
38 }
39 }
40
41 \DoNotIndex{\begin, \end}
42 \setlength{\parskip}{\medskipamount}
43 \DeclareDocumentEnvironment { noteen } { +b } {
44 \par\textbf{\textsf{NOTE:~}}#1\par
45 } {}
46 \DeclareDocumentEnvironment { notezh } { +b } {
47 \par\textbf{\textsf{注意:~}}#1\par
48 } {}
49
50 \AtEndDocument{
51 \newgeometry{
52 left=2cm,
53 right=2cm,
54 top=2cm,
55 bottom=2cm
56 }
57 \PrintIndex
58 }
59
60 \ExplSyntaxOn
61 \dim_new:N \l__my_syntax_dim
62 \box_new:N \g__my_syntax_box
63 \NewDocumentEnvironment { Syntax } { s }
64 {
65 \dim_set:Nn \l__my_syntax_dim
66 { \textwidth }
67 \hbox_gset:Nw \g__my_syntax_box
68 \small \ttfamily
69 \begin{minipage}[t]{\l__my_syntax_dim}
70 \raggedright\obeyspaces\obeylines
71 }
72 {
73 \end{minipage}
74 \hbox_gset_end:
75 \IfValueF { #1 } { \smallskip }
76 \box_use_drop:N \g__my_syntax_box
77 \smallskip
78 }
79
80 \DeclareDocumentEnvironment { Description } { o +b } {
81 \hbox_set:Nn \l_tmpa_box { #1 }
82 \dim_set:Nn \l_tmpa_dim { \box_wd:N \l_tmpa_box }
83 \begin{itemize}[labelwidth=\l_tmpa_dim, align=left]
84 #2
85 \end{itemize}
86 } { }
87
88 \keys_define:nn { circled/doc } {
89 opt .tl_set:N = \l_opt_tl,
90 desc .tl_set:N = \l_desc_tl,
91 init .tl_set:N = \l_init_tl,
92 init .initial:n = init-none,
93 }
94
95 \box_new:N \l__option_box
96 \NewDocumentEnvironment { option } { m +b } {
97 \keys_set:nn { circled/doc } { #1 }
98 \hbox_set:Nw \l__option_box
99 \small \ttfamily
100 \begin{minipage}[t]{\textwidth}
101 \obeyspaces\obeylines
102 \textcolor{red}{
103 \l_opt_tl
104 \exp_args:Nx\SpecialOptionIndex{\l_opt_tl}
105 }
106 {~}\l_desc_tl
107 \hfill(
108 \tl_if_eq:NnTF \l_init_tl { init-none } { no~value }
109 { initially~\texttt{\l_init_tl} }
110 )
111 \end{minipage}
112 \hbox_gset_end:
113 \box_use_drop:N \l__option_box
114 #2
115 \medskip
116 } { }
117
118 \DeclareDocumentCommand \opt { O{} m }
119 { \__codedoc_cmd:no {#1} { #2 } }
120 \ExplSyntaxOff
121
122 \def\vers{\texttt{v1.1.2} }
123
124 \begin{document}
125 \title{
126 \circledtext[charf=\LARGE]{带}\circledtext[charf=\LARGE]{圈}%
127 文字排版\\\pkg{circledtext} 宏包
128 \rlap{\makebox[4cm][r]{
129 \normalsize $\Longrightarrow$ \color{red}
130 \protect\hyperlink{en}{English Version}
131 \protect\hypertarget{zh}{}
132 }}
133 }
134 \author{\textit{耿楠} \texttt{<[email protected]>}}
135 \date{\the\year 年\the\month 月\the\day 日\qquad \vers
136 \thanks{\url{https://github.com/registor/circledtext}}
137 \thanks{\url{https://gitee.com/nwafu_nan/circledtext}}
138 }
139 \maketitle
140
141 {\small
142 \tableofcontents
143 }
144 \newpage
145
146 \begin{documentation}
147
148 \section{引言}
149
150 \pkg{circledtext}是一个基于\pkg{l3draw}用\pkg{expl3}开发的
151 排版带圈文字的宏包,它提供了唯一的一个排版命令\tn{circledtext}%
152 用于对其必选参数中的文本按指定的基字符大小缩放后,再为其添加
153 圆形边框,然后排版输出。其带星号``*''命令\tn{circledtext*}用于
154 实现反色阴文排版输出。可以通过该命令的命令选项或\tn{circledtextset}%
155 命令设置排版输出的不同外观。
156
157 \section{用户接口}
158
159 \subsection{\cs{circledtext}排版命令}
160
161 \begin{function}{\circledtext}
162 \begin{syntax}
163 \cs{circledtext} \oarg{外观选项} \marg{文本}
164 \end{syntax}
165 \end{function}
166
167 按设置的\oarg{外观选项}对指定的\marg{文本}添加圆圈后排版输出。
168
169 该命令仅有一个必选参数\marg{文本},用于指定需要排版的文本。
170
171 在\oarg{外观选项}中可以通过key-value的方式设置颜色、字体、字号、线宽等外观。
172
173 外观也可以通过\cs{circledtextset}命令,以逗号分隔key-value列表进行设置。
174
175 通过\oarg{外观选项}设置的外观参数仅对当前命令局部有效,
176 通过\cs{circledtextset}命令设置的外观参数对后续所有命令有效。
177
178 其星号版本命令用于反色阴文输出。
179
180 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
181 \centering
182 \circledtext{五}\quad
183 \circledtext{888}\quad
184 \circledtext*{五}\quad
185 \circledtext*{888}
186 \end{SideBySideExample}
187
188 \subsection{\cs{circledtextset}外观选项设置命令}
189
190 \begin{function}{\circledtextset}
191 \begin{syntax}
192 \cs{circledtextset} \marg{外观选项}
193 \end{syntax}
194 \end{function}
195
196 用于设置外围圆圈及文本的外观。
197
198 在\marg{外观选项}中可以通过key-value方式设置颜色、
199 字体、字号、线宽等外观。
200
201 通过\cs{circledtextset}命令设置的外观参数对后续所有命令有效。
202
203 \section{外观选项}
204
205 \begin{option}{ opt = basechar, desc = {= \meta{基字符}}, init=好/x }
206 设置尺寸测度基字符,如果使用|xetex|或|luatex|引擎编译
207 则初始值为中文“好”字,否则使用英文字母``x''。
208 \end{option}\\
209 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
210 \centering
211 \circledtext{五}\quad
212 \circledtext{一佰}\quad
213 \circledtext[basechar=M]{999}
214 \end{SideBySideExample}
215
216 \bigskip
217
218 \begin{option}{ opt = charf, desc = {= \meta{格式命令}}, init=\tn{normalsize} }
219 设置文本格式,初始值为\tn{normalsize}。
220 \end{option}\\
221 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
222 \centering
223 \circledtext{五}\qquad
224 \circledtext[charf=\Huge]{九}
225 \end{SideBySideExample}
226
227 % 字体设置会影响后续内容,原因还未查明
228 \bigskip
229
230 \begin{option}{ opt = boxtype, desc = {= \meta{外框类型}}, init=o }
231 设置外框类型,目前支持:
232 \end{option}\\
233 \begin{Description}
234 \item |o|---实心填充圆(小写英文字母``|o|'')。
235 \item |o+|---十字填充圆。
236 \item |ox|---对角十字填充圆(小写英文字母``|x|'')。
237 \item |ox+|---米字填充圆。
238 \item |x+|---米字背景(边框为圆但不显示)。
239 \item |O|---实心填充正方形(大写英文字母``|O|'')。
240 \item |O+|---十字填充正方形。
241 \item |OX|---对角十字填充正方形(小写英文字母``|X|'')。
242 \item |OX+|---米字填充正方形。
243 \item |X+|---米字背景(边框为正方形但不显示)。
244 \item |oo|---同心圆背景。
245 \item |Oo|---前景色填充正方叠加背景色圆背景。
246 \item |OO|---同心正方形背景。
247 \end{Description}
248 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
249 \centering
250 \circledtext[boxtype=o ]{甲}\quad
251 \circledtext[boxtype=o+ ]{乙}\quad
252 \circledtext[boxtype=ox ]{丙}\quad
253 \circledtext[boxtype=ox+]{丁}\quad
254 \circledtext[boxtype=x+ ]{戊}
255 \end{SideBySideExample}
256
257 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
258 \centering
259 \circledtext[boxtype=O ]{甲}\quad
260 \circledtext[boxtype=O+ ]{乙}\quad
261 \circledtext[boxtype=OX ]{丙}\quad
262 \circledtext[boxtype=OX+]{丁}\quad
263 \circledtext[boxtype=X+ ]{戊}
264 \end{SideBySideExample}
265
266 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
267 \centering
268 \circledtextset{boxcolor=red}
269 \circledtext[boxtype=oo ]{车}\quad
270 \circledtext[boxtype=Oo ]{马}\quad
271 \circledtext[boxtype=OO ]{炮}\quad
272 \circledtext*[boxtype=oo ]{车}\quad
273 \circledtext*[boxtype=Oo ]{马}\quad
274 \circledtext*[boxtype=OO ]{炮}
275 \end{SideBySideExample}
276
277 \bigskip
278
279 \begin{option}{ opt = charshrink, desc = {= \meta{文本缩放系数}}, init=0.75 }
280 设置文本缩放系数。
281 \end{option}\\
282 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
283 \centering
284 \circledtext[charshrink=0.75]{甲}\quad
285 \circledtext[charshrink=1.00]{乙}\quad
286 \circledtext[charshrink=0.50]{丙}\quad
287 \circledtext[charshrink=0.35]{丁}
288 \end{SideBySideExample}
289
290 \bigskip
291
292 \begin{option}{ opt = resize, desc = {= \meta{缩放方式}}, init=none }
293 设置缩放类型,目前支持:
294 \end{option}\\
295 \begin{Description}
296 \item |none|---无缩放。
297 \item |real|---使用字符实际宽高缩放。
298 \item |base|---使用基字符缩放。
299 \end{Description}
300 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
301 \centering
302 \circledtextset{width=2cm}
303 \circledtext[resize=none]{10}\quad
304 \circledtext[resize=real]{15}\quad
305 \circledtext[resize=base]{20}
306 \end{SideBySideExample}
307
308 \bigskip
309
310 \begin{option}{ opt = xscale, desc = {= \meta{x方向缩放系数}}, init=1 }
311 设置x方向缩放系数。
312 \end{option}\\
313 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
314 \centering
315 \circledtextset{resize=real}
316 \circledtext[xscale=0.5]{15}\quad
317 \circledtext[xscale=1.0]{15}\quad
318 \circledtext[xscale=1.5]{15}
319 \end{SideBySideExample}
320
321 \bigskip
322
323 \begin{option}{ opt = yscale, desc = {= \meta{y方向缩放系数}}, init=1 }
324 设置y方向缩放系数。
325 \end{option}\\
326 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
327 \centering
328 \circledtextset{resize=real}
329 \circledtext[yscale=0.5]{15}\quad
330 \circledtext[yscale=1.0]{15}\quad
331 \circledtext[yscale=1.5]{15}
332 \end{SideBySideExample}
333
334 \bigskip
335
336 \begin{option}{ opt = width, desc = {= \meta{宽度}}, init=无 }
337 设置宽度。
338 \end{option}\\
339 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
340 \centering
341 \circledtextset{resize=real}
342 \circledtext[width=0.5em]{15}\quad
343 \circledtext[width=1.0em]{15}\quad
344 \circledtext[width=1.5em]{15}
345 \end{SideBySideExample}
346
347 \bigskip
348
349 \begin{option}{ opt = height, desc = {= \meta{高度}}, init=无 }
350 设置高度。
351 \end{option}\\
352 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
353 \centering
354 \circledtextset{resize=real}
355 \circledtext[height=1.0ex]{15}\quad
356 \circledtext[height=2.0ex]{15}\quad
357 \circledtext[height=3.0ex]{15}
358 \end{SideBySideExample}
359
360 \bigskip
361
362 \begin{option}{ opt = boxlinewidth, desc = {= \meta{边框线宽}}, init=0.4pt }
363 设置边框线宽。
364 \end{option}\\
365 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.44\linewidth,gobble=2]
366 \centering
367 \circledtext{100}\quad
368 \circledtext[boxlinewidth=1.0pt]{1000}\quad
369 \circledtext[boxlinewidth=2.0pt]{一佰三十}
370 \end{SideBySideExample}
371
372 \bigskip
373
374 \begin{option}{ opt = crosslinewidth, desc = {= \meta{背景线线宽}}, init=0.3pt }
375 设置背景线线宽。
376 \end{option}\\
377 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.44\linewidth,gobble=2]
378 \centering
379 \circledtextset{boxtype=o+}
380 \circledtext{三}\quad
381 \circledtext[crosslinewidth=1.0pt]{三}\quad
382 \circledtext[crosslinewidth=2.0pt]{三}
383 \end{SideBySideExample}
384
385 \bigskip
386
387 \begin{option}{ opt = crosscolorratio, desc = {= \meta{背景线颜色比例}}, init=30 }
388 设置背景线颜色点边框颜色的比例(\%)。
389 \end{option}\\
390 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.38\linewidth,gobble=2]
391 \centering
392 \circledtextset{boxtype=ox+,crosslinewidth=2pt}
393 \circledtext[crosscolorratio=10]{15}\quad
394 \circledtext[crosscolorratio=80]{15}
395 \end{SideBySideExample}
396
397 \bigskip
398
399 \begin{option}{ opt = boxcolor, desc = {= \meta{边框颜色}}, init=black }
400 设置边框颜色。
401 \end{option}\\
402 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
403 \centering
404 \circledtextset{boxtype=ox+}
405 \circledtext{15}\quad
406 \circledtext[boxcolor=red]{15}\quad
407 \circledtext[boxcolor=blue]{15}
408 \end{SideBySideExample}
409
410 \bigskip
411
412 \begin{option}{ opt = charcolor, desc = {= \meta{文本颜色}}, init=black }
413 设置文本颜色。
414 \end{option}\\
415 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
416 \centering
417 \circledtextset{boxtype=ox+,boxcolor=red}
418 \circledtext{15}\quad
419 \circledtext[charcolor=red]{15}\quad
420 \circledtext[charcolor=blue]{15}
421 \end{SideBySideExample}
422
423 \bigskip
424
425 \begin{option}{ opt = boxfill, desc = {= \meta{背景颜色}}, init=无 }
426 设置背景填充颜色。
427 \end{option}\\
428 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
429 \centering
430 \circledtextset{boxtype=ox+,boxcolor=red}
431 \circledtext{15}\quad
432 \circledtext[boxfill=red!30]{15}\quad
433 \circledtext[boxfill=blue!30]{15}
434 \end{SideBySideExample}
435
436 \bigskip
437
438 \begin{option}{ opt = charstroke, desc = {= \meta{笔画类型}}, init=无 }
439 设置文本笔画类型。
440 \end{option}\\
441 \begin{Description}
442 \item |none|---原始笔画轮廓。
443 \item |solid|---实线笔画轮廓。
444 \item |dashed|---虚线笔画轮廓。
445 \item |invisible|---隐藏笔画轮廓。
446 \end{Description}
447 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
448 \centering
449 \circledtextset{boxtype=ox+,boxcolor=red,
450 charf=\sffamily\bfseries\Huge}
451 \circledtext{五}\quad
452 \circledtext[charstroke=solid]{五}\quad
453 \circledtext[charstroke=dashed]{五}\quad
454 \circledtext[charstroke=invisible]{五}
455 \end{SideBySideExample}
456
457 \bigskip
458
459 \begin{option}{ opt = dashpattern, desc = {= \meta{背景线线型}}, init=无 }
460 设置背景线线型。
461 \end{option}\\
462 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.25\linewidth,gobble=2]
463 \centering
464 \circledtextset{boxtype=ox+,boxcolor=red,
465 charstroke=invisible,charf=\Huge}
466 \circledtext{五}\quad
467 \circledtext[dashpattern={1.5mm,1mm,2mm,1.5mm}]{五}
468 \end{SideBySideExample}
469
470 \title{
471 \circledtext{C}ircled\circledtext{T}ext Package \pkg{circledtext}
472 \rlap{\makebox[4cm][r]{
473 \normalsize $\Longrightarrow$ \color{red}
474 \protect\hyperlink{zh}{中文版本}
475 \protect\hypertarget{en}{}
476 }}
477 }
478 \author{Nan Geng \texttt{<[email protected]>}}
479 \date{\today\qquad \vers}
480 \maketitle
481
482 \section{Introduction}
483
484 \pkg{circledtext} is a text with circle package based on%
485 \pkg{l3draw} by \pkg{expl3}. This package provides a macro
486 \tn{circledtext} to create arbitrary ``circled'' text. The
487 starred macro can create negative ``circled'' text.
488 a macro \tn{circledtextset} to set the format of ``circled''
489 text.
490
491 \section{Interface}
492
493 \subsection{\cs{circledtext} macro}
494
495 \begin{function}{\circledtext}
496 \begin{syntax}
497 \cs{circledtext} \oarg{options} \marg{text}
498 \end{syntax}
499 \end{function}
500
501 According to \oarg{options} to create ``circled''
502 \marg{text}.
503
504 \oarg{options} are key-value for color, font, size and so on.。
505
506 Macro's \oarg{options} are local setting.
507
508 If global settings are needed, the \cs{circledtextset} macro is required.
509
510 The starred version can create negative ``circled'' text.
511
512 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
513 \centering
514 \circledtext{8}\quad
515 \circledtext{888}\quad
516 \circledtext*{8}\quad
517 \circledtext*{888}
518 \end{SideBySideExample}
519 \subsection{\cs{circledtextset} macro}
520
521 \begin{function}{\circledtextset}
522 \begin{syntax}
523 \cs{circledtextset} \marg{options}
524 \end{syntax}
525 \end{function}
526
527 Used to set the appearance of ``circled'' text.
528
529 In \marg{options} you can set the appearance of the
530 color, font, size, linewidth, etc. by key-value lists.
531
532 The appearance seted by the \cs{circledtextset} are
533 valid for all subsequent macros.
534
535 \section{options}
536
537 \begin{option}{ opt = basechar, desc = {= \meta{base char}}, init=好/x }
538 Set size measurement base character. If compiled with xetex or luatex engine,
539 the initial value is ``好'' in Chinese, otherwise the initial value is the
540 letter ``x'' in English.
541 \end{option}\\
542 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
543 \centering
544 \circledtext{8}\quad
545 \circledtext{100}\quad
546 \circledtext[basechar=M]{three}
547 \end{SideBySideExample}
548
549 \bigskip
550
551 \begin{option}{ opt = charf, desc = {= \meta{format macro(s)}}, init=\tn{normalsize} }
552 Set text formats.
553 \end{option}\\
554 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
555 \centering
556 \circledtext{8}\qquad
557 \circledtext[charf=\Huge]{9}
558 \end{SideBySideExample}
559
560 \bigskip
561
562 \begin{option}{ opt = boxtype, desc = {= \meta{box type}}, init=o }
563 Set box type, currently as follows:
564 \end{option}\\
565 \begin{Description}
566 \item |o|---filled circle(lowercase "o").
567 \item |o+|---filled circle with cross.
568 \item |ox|---filled circle with diagonal cross(lowercase "x").
569 \item |ox+|---filled circle with diagonal cross and cross.
570 \item |x+|---diagonal cross and cross(hided circle bg).
571 \item |O|---filled square(capital "O").
572 \item |O+|---filled square with cross.
573 \item |OX|---filled square with diagonal cross(capital "X").
574 \item |OX+|---filled square with diagonal cross and cross.
575 \item |X+|---diagonal cross and cross(hided square bg).
576 \item |oo|---2 concentric circles.
577 \item |Oo|---filled square with fg color and filled circle with bg color.
578 \item |OO|---2 concentric squares.
579 \end{Description}
580 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
581 \centering
582 \circledtext[boxtype=o ]{10}\quad
583 \circledtext[boxtype=o+ ]{11}\quad
584 \circledtext[boxtype=ox ]{12}\quad
585 \circledtext[boxtype=ox+]{13}\quad
586 \circledtext[boxtype=x+ ]{14}
587 \end{SideBySideExample}
588
589 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
590 \centering
591 \circledtext[boxtype=O ]{10}\quad
592 \circledtext[boxtype=O+ ]{11}\quad
593 \circledtext[boxtype=OX ]{12}\quad
594 \circledtext[boxtype=OX+]{13}\quad
595 \circledtext[boxtype=X+ ]{14}
596 \end{SideBySideExample}
597
598 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
599 \centering
600 \circledtextset{boxcolor=red}
601 \circledtext[boxtype=oo ]{88}\quad
602 \circledtext[boxtype=Oo ]{88}\quad
603 \circledtext[boxtype=OO ]{88}\quad
604 \circledtext*[boxtype=oo ]{88}\quad
605 \circledtext*[boxtype=Oo ]{88}\quad
606 \circledtext*[boxtype=OO ]{88}
607 \end{SideBySideExample}
608
609 \bigskip
610
611 \begin{option}{ opt = charshrink, desc = {= \meta{text shrink}}, init=0.75 }
612 Set text shrink ratio.
613 \end{option}\\
614 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
615 \centering
616 \circledtext[charshrink=0.75]{8}\quad
617 \circledtext[charshrink=1.00]{8}\quad
618 \circledtext[charshrink=0.50]{8}\quad
619 \circledtext[charshrink=0.35]{8}
620 \end{SideBySideExample}
621
622 \bigskip
623
624 \begin{option}{ opt = resize, desc = {= \meta{resize type}}, init=none }
625 Set resize type, currently as follows:
626 \end{option}\\
627 \begin{Description}
628 \item |none|---No scaling.
629 \item |real|---Scaling with real size or ratio.
630 \item |base|---Scaling with base size.
631 \end{Description}
632 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
633 \centering
634 \circledtextset{width=2cm}
635 \circledtext[resize=none]{10}\quad
636 \circledtext[resize=real]{15}\quad
637 \circledtext[resize=base]{20}
638 \end{SideBySideExample}
639
640 \bigskip
641
642 \begin{option}{ opt = xscale, desc = {= \meta{x factor}}, init=1 }
643 Set x-direction scaling factor.
644 \end{option}\\
645 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
646 \centering
647 \circledtextset{resize=real}
648 \circledtext[xscale=0.5]{15}\quad
649 \circledtext[xscale=1.0]{15}\quad
650 \circledtext[xscale=1.5]{15}
651 \end{SideBySideExample}
652
653 \bigskip
654
655 \begin{option}{ opt = yscale, desc = {= \meta{y factor}}, init=1 }
656 Set y-direction scaling factor.
657 \end{option}\\
658 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
659 \centering
660 \circledtextset{resize=real}
661 \circledtext[yscale=0.5]{15}\quad
662 \circledtext[yscale=1.0]{15}\quad
663 \circledtext[yscale=1.5]{15}
664 \end{SideBySideExample}
665
666 \bigskip
667
668 \begin{option}{ opt = width, desc = {= \meta{width}}, init=null }
669 Set width.
670 \end{option}\\
671 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
672 \centering
673 \circledtextset{resize=real}
674 \circledtext[width=0.5em]{15}\quad
675 \circledtext[width=1.0em]{15}\quad
676 \circledtext[width=1.5em]{15}
677 \end{SideBySideExample}
678
679 \bigskip
680
681 \begin{option}{ opt = height, desc = {= \meta{height}}, init=null }
682 Set height.
683 \end{option}\\
684 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
685 \centering
686 \circledtextset{resize=real}
687 \circledtext[height=1.0ex]{15}\quad
688 \circledtext[height=2.0ex]{15}\quad
689 \circledtext[height=3.0ex]{15}
690 \end{SideBySideExample}
691
692 \bigskip
693
694 \begin{option}{ opt = boxlinewidth, desc = {= \meta{line width}}, init=0.4pt }
695 Set box line width.
696 \end{option}\\
697 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.44\linewidth,gobble=2]
698 \centering
699 \circledtext{100}\quad
700 \circledtext[boxlinewidth=1.0pt]{1000}\quad
701 \circledtext[boxlinewidth=2.0pt]{one}
702 \end{SideBySideExample}
703
704 \bigskip
705
706 \begin{option}{ opt = crosslinewidth, desc = {= \meta{cross width}}, init=0.3pt }
707 Set cross line width.
708 \end{option}\\
709 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.44\linewidth,gobble=2]
710 \centering
711 \circledtextset{boxtype=o+}
712 \circledtext{8}\quad
713 \circledtext[crosslinewidth=1.0pt]{8}\quad
714 \circledtext[crosslinewidth=2.0pt]{8}
715 \end{SideBySideExample}
716
717 \bigskip
718
719 \begin{option}{ opt = crosscolorratio, desc = {= \meta{bg}}, init=30 }
720 Set the ratio of the cross line color to box color(\%).
721 \end{option}\\
722 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.38\linewidth,gobble=2]
723 \centering
724 \circledtextset{boxtype=ox+,crosslinewidth=2pt}
725 \circledtext[crosscolorratio=10]{15}\quad
726 \circledtext[crosscolorratio=80]{15}
727 \end{SideBySideExample}
728
729 \bigskip
730
731 \begin{option}{ opt = boxcolor, desc = {= \meta{box color}}, init=black }
732 Set box color.
733 \end{option}\\
734 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.50\linewidth,gobble=2]
735 \centering
736 \circledtextset{boxtype=ox+}
737 \circledtext{15}\quad
738 \circledtext[boxcolor=red]{15}\quad
739 \circledtext[boxcolor=blue]{15}
740 \end{SideBySideExample}
741
742 \bigskip
743
744 \begin{option}{ opt = charcolor, desc = {= \meta{text color}}, init=black }
745 Set text color.
746 \end{option}\\
747 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
748 \centering
749 \circledtextset{boxtype=ox+,boxcolor=red}
750 \circledtext{15}\quad
751 \circledtext[charcolor=red]{15}\quad
752 \circledtext[charcolor=blue]{15}
753 \end{SideBySideExample}
754
755 \bigskip
756
757 \begin{option}{ opt = boxfill, desc = {= \meta{fill color}}, init=null }
758 Set fill color.
759 \end{option}\\
760 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
761 \centering
762 \circledtextset{boxtype=ox+,boxcolor=red}
763 \circledtext{15}\quad
764 \circledtext[boxfill=red!30]{15}\quad
765 \circledtext[boxfill=blue!30]{15}
766 \end{SideBySideExample}
767
768 \bigskip
769
770 \begin{option}{ opt = charstroke, desc = {= \meta{stroke}}, init=none }
771 Set character stroke type.
772 \end{option}\\
773 \begin{Description}
774 \item |none|---Original stroke.
775 \item |solid|---Solid stroke.
776 \item |dashed|---dashed stroke.
777 \item |invisible|---Hide stroke.
778 \end{Description}
779 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.45\linewidth,gobble=2]
780 \centering
781 \circledtextset{boxtype=ox+,boxcolor=red,
782 charf=\sffamily\bfseries\Huge}
783 \circledtext{8}\quad
784 \circledtext[charstroke=solid]{8}\quad
785 \circledtext[charstroke=dashed]{8}\quad
786 \circledtext[charstroke=invisible]{8}
787 \end{SideBySideExample}
788
789 \bigskip
790
791 \begin{option}{ opt = dashpattern, desc = {= \meta{cross style}}, init=null }
792 Set cross style.
793 \end{option}\\
794 \begin{SideBySideExample}[frame=single,numbers=left,xrightmargin=.25\linewidth,gobble=2]
795 \centering
796 \circledtextset{boxtype=ox+,boxcolor=red,
797 charstroke=invisible,charf=\Huge}
798 \circledtext{8}\quad
799 \circledtext[dashpattern={1.5mm,1mm,2mm,1.5mm}]{8}
800 \end{SideBySideExample}
801
802 \end{documentation}
803
804 \end{document}