summaryrefslogtreecommitdiff
path: root/macros/generic/bitelist/bitedemo.tex
blob: 6c4f9ed1038ef5195026f1ddb6600dbe9b243d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\def\filename{bitedemo.tex}  \def\filedate{2012/03/29} 
\def\fileinfo{demonstrating/testing bitelist.sty (UL)}
\expandafter\ifx\csname ProvidesPackage\endcsname\relax \else
    \edef\bitedemolatexstart{%
        \noexpand\ProvidesFile{\filename}%
                              [\filedate\space\fileinfo]%
        \noexpand\RequirePackage{bitelist}}
    \expandafter\bitedemolatexstart
\fi
\ifx\BiteMakeIf\undefined \input bitelist.sty \fi
\ifx\typeout\undefined 
    \def\typeout{\immediate\write17} 
    \newlinechar`^^J
\fi
\def\splitted  #1#2#3{>>#1|#2|#3<<}
\def\unsplitted#1{>>#1<<}
\def\spacetocomma#1#2{>>#1,#2<<}
\BiteMakeIfOnly  {\def}{\occursyesno}{no}
\BiteMakeIf      {\def}{\noshowsplit}{no}
\BiteMakeIfBraces{\def}{\noShowSplit}{no}
\typeout{^^J 
    \BiteFindByIn  {no}{\occursyesno}
                   {bonobo}{YES!}{NO!}
    \BiteFindByIn  {no}{\noshowsplit}
                   {bonobo}{bonobo}{\splitted}{\unsplitted}
    \BiteFindByInIn{no}{\noshowsplit}
                   {bonobo}{\splitted}{\unsplitted}
         ^^J
    \BiteFindByIn  {no}{\occursyesno}
                   {bobobo}{YES!}{NO!}
    \BiteFindByIn  {no}{\noshowsplit}
                   {bobobo}{bobobo}{\splitted}{\unsplitted}
    \BiteFindByInIn{no}{\noshowsplit}
                   {bobobo}{\splitted}{\unsplitted}
         ^^J
    \BiteFindByInBraces{no}{\noShowSplit}
                   {{bo}no{bo}}{\splitted}{\unsplitted}
         ^^J
    \BiteGetNextWord{bo no bo}{\spacetocomma}{\unsplitted}
    \BiteGetNextWord{bo nobo} {\spacetocomma}{\unsplitted}
    \BiteGetNextWord{bonobo}  {\spacetocomma}{\unsplitted}
         ^^J}
\endinput