\documentclass[12pt,titlepage]{article} \usepackage{amsmath} \usepackage{mathrsfs} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools} \usepackage{graphicx} \usepackage{color} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage{xparse} \usepackage{hyperref} %----Macros---------- % % Unresolved issues: % % \righttoleftarrow % \lefttorightarrow % % \color{} with HTML colorspec % \bgcolor % \array with options (without options, it's equivalent to the matrix environment) % Of the standard HTML named colors, white, black, red, green, blue and yellow % are predefined in the color package. Here are the rest. \definecolor{aqua}{rgb}{0, 1.0, 1.0} \definecolor{fuschia}{rgb}{1.0, 0, 1.0} \definecolor{gray}{rgb}{0.502, 0.502, 0.502} \definecolor{lime}{rgb}{0, 1.0, 0} \definecolor{maroon}{rgb}{0.502, 0, 0} \definecolor{navy}{rgb}{0, 0, 0.502} \definecolor{olive}{rgb}{0.502, 0.502, 0} \definecolor{purple}{rgb}{0.502, 0, 0.502} \definecolor{silver}{rgb}{0.753, 0.753, 0.753} \definecolor{teal}{rgb}{0, 0.502, 0.502} % Because of conflicts, \space and \mathop are converted to % \itexspace and \operatorname during preprocessing. % itex: \space{ht}{dp}{wd} % % Height and baseline depth measurements are in units of tenths of an ex while % the width is measured in tenths of an em. \makeatletter \newdimen\itex@wd% \newdimen\itex@dp% \newdimen\itex@thd% \def\itexspace#1#2#3{\itex@wd=#3em% \itex@wd=0.1\itex@wd% \itex@dp=#2ex% \itex@dp=0.1\itex@dp% \itex@thd=#1ex% \itex@thd=0.1\itex@thd% \advance\itex@thd\the\itex@dp% \makebox[\the\itex@wd]{\rule[-\the\itex@dp]{0cm}{\the\itex@thd}}} \makeatother % \tensor and \multiscript \makeatletter \newif\if@sup \newtoks\@sups \def\append@sup#1{\edef\act{\noexpand\@sups={\the\@sups #1}}\act}% \def\reset@sup{\@supfalse\@sups={}}% \def\mk@scripts#1#2{\if #2/ \if@sup ^{\the\@sups}\fi \else% \ifx #1_ \if@sup ^{\the\@sups}\reset@sup \fi {}_{#2}% \else \append@sup#2 \@suptrue \fi% \expandafter\mk@scripts\fi} \def\tensor#1#2{\reset@sup#1\mk@scripts#2_/} \def\multiscripts#1#2#3{\reset@sup{}\mk@scripts#1_/#2% \reset@sup\mk@scripts#3_/} \makeatother % \slash \makeatletter \newbox\slashbox \setbox\slashbox=\hbox{$/$} \def\itex@pslash#1{\setbox\@tempboxa=\hbox{$#1$} \@tempdima=0.5\wd\slashbox \advance\@tempdima 0.5\wd\@tempboxa \copy\slashbox \kern-\@tempdima \box\@tempboxa} \def\slash{\protect\itex@pslash} \makeatother % math-mode versions of \rlap, etc % from Alexander Perlis, "A complement to \smash, \llap, and lap" % http://math.arizona.edu/~aprl/publications/mathclap/ \def\clap#1{\hbox to 0pt{\hss#1\hss}} \def\mathllap{\mathpalette\mathllapinternal} \def\mathrlap{\mathpalette\mathrlapinternal} \def\mathclap{\mathpalette\mathclapinternal} \def\mathllapinternal#1#2{\llap{$\mathsurround=0pt#1{#2}$}} \def\mathrlapinternal#1#2{\rlap{$\mathsurround=0pt#1{#2}$}} \def\mathclapinternal#1#2{\clap{$\mathsurround=0pt#1{#2}$}} % Renames \sqrt as \oldsqrt and redefine root to result in \sqrt[#1]{#2} \let\oldroot\root \def\root#1#2{\oldroot #1 \of{#2}} \renewcommand{\sqrt}[2][]{\oldroot #1 \of{#2}} % Manually declare the txfonts symbolsC font \DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n} \SetSymbolFont{symbolsC}{bold}{U}{txsyc}{bx}{n} \DeclareFontSubstitution{U}{txsyc}{m}{n} % Manually declare the stmaryrd font \DeclareSymbolFont{stmry}{U}{stmry}{m}{n} \SetSymbolFont{stmry}{bold}{U}{stmry}{b}{n} % Manually declare the MnSymbolE font \DeclareFontFamily{OMX}{MnSymbolE}{} \DeclareSymbolFont{mnomx}{OMX}{MnSymbolE}{m}{n} \SetSymbolFont{mnomx}{bold}{OMX}{MnSymbolE}{b}{n} \DeclareFontShape{OMX}{MnSymbolE}{m}{n}{ <-6> MnSymbolE5 <6-7> MnSymbolE6 <7-8> MnSymbolE7 <8-9> MnSymbolE8 <9-10> MnSymbolE9 <10-12> MnSymbolE10 <12-> MnSymbolE12}{} % Declare specific arrows from txfonts without loading the full package \makeatletter \def\re@DeclareMathSymbol#1#2#3#4{% \let#1=\undefined \DeclareMathSymbol{#1}{#2}{#3}{#4}} \re@DeclareMathSymbol{\neArrow}{\mathrel}{symbolsC}{116} \re@DeclareMathSymbol{\neArr}{\mathrel}{symbolsC}{116} \re@DeclareMathSymbol{\seArrow}{\mathrel}{symbolsC}{117} \re@DeclareMathSymbol{\seArr}{\mathrel}{symbolsC}{117} \re@DeclareMathSymbol{\nwArrow}{\mathrel}{symbolsC}{118} \re@DeclareMathSymbol{\nwArr}{\mathrel}{symbolsC}{118} \re@DeclareMathSymbol{\swArrow}{\mathrel}{symbolsC}{119} \re@DeclareMathSymbol{\swArr}{\mathrel}{symbolsC}{119} \re@DeclareMathSymbol{\nequiv}{\mathrel}{symbolsC}{46} \re@DeclareMathSymbol{\Perp}{\mathrel}{symbolsC}{121} \re@DeclareMathSymbol{\Vbar}{\mathrel}{symbolsC}{121} \re@DeclareMathSymbol{\sslash}{\mathrel}{stmry}{12} \re@DeclareMathSymbol{\bigsqcap}{\mathop}{stmry}{"64} \re@DeclareMathSymbol{\biginterleave}{\mathop}{stmry}{"6} \re@DeclareMathSymbol{\invamp}{\mathrel}{symbolsC}{77} \re@DeclareMathSymbol{\parr}{\mathrel}{symbolsC}{77} \makeatother % \llangle, \rrangle, \lmoustache and \rmoustache from MnSymbolE \makeatletter \def\Decl@Mn@Delim#1#2#3#4{% \if\relax\noexpand#1% \let#1\undefined \fi \DeclareMathDelimiter{#1}{#2}{#3}{#4}{#3}{#4}} \def\Decl@Mn@Open#1#2#3{\Decl@Mn@Delim{#1}{\mathopen}{#2}{#3}} \def\Decl@Mn@Close#1#2#3{\Decl@Mn@Delim{#1}{\mathclose}{#2}{#3}} \Decl@Mn@Open{\llangle}{mnomx}{'164} \Decl@Mn@Close{\rrangle}{mnomx}{'171} \Decl@Mn@Open{\lmoustache}{mnomx}{'245} \Decl@Mn@Close{\rmoustache}{mnomx}{'244} \makeatother % Widecheck \makeatletter \DeclareRobustCommand\widecheck[1]{{\mathpalette\@widecheck{#1}}} \def\@widecheck#1#2{% \setbox\z@\hbox{\m@th$#1#2$}% \setbox\tw@\hbox{\m@th$#1% \widehat{% \vrule\@width\z@\@height\ht\z@ \vrule\@height\z@\@width\wd\z@}$}% \dp\tw@-\ht\z@ \@tempdima\ht\z@ \advance\@tempdima2\ht\tw@ \divide\@tempdima\thr@@ \setbox\tw@\hbox{% \raise\@tempdima\hbox{\scalebox{1}[-1]{\lower\@tempdima\box \tw@}}}% {\ooalign{\box\tw@ \cr \box\z@}}} \makeatother % \mathraisebox{voffset}[height][depth]{something} \makeatletter \NewDocumentCommand\mathraisebox{moom}{% \IfNoValueTF{#2}{\def\@temp##1##2{\raisebox{#1}{$\m@th##1##2$}}}{% \IfNoValueTF{#3}{\def\@temp##1##2{\raisebox{#1}[#2]{$\m@th##1##2$}}% }{\def\@temp##1##2{\raisebox{#1}[#2][#3]{$\m@th##1##2$}}}}% \mathpalette\@temp{#4}} \makeatletter % udots (taken from yhmath) \makeatletter \def\udots{\mathinner{\mkern2mu\raise\p@\hbox{.} \mkern2mu\raise4\p@\hbox{.}\mkern1mu \raise7\p@\vbox{\kern7\p@\hbox{.}}\mkern1mu}} \makeatother %% Fix array \newcommand{\itexarray}[1]{\begin{matrix}#1\end{matrix}} %% \itexnum is a noop \newcommand{\itexnum}[1]{#1} %% Renaming existing commands \newcommand{\underoverset}[3]{\underset{#1}{\overset{#2}{#3}}} \newcommand{\widevec}{\overrightarrow} \newcommand{\darr}{\downarrow} \newcommand{\nearr}{\nearrow} \newcommand{\nwarr}{\nwarrow} \newcommand{\searr}{\searrow} \newcommand{\swarr}{\swarrow} \newcommand{\curvearrowbotright}{\curvearrowright} \newcommand{\uparr}{\uparrow} \newcommand{\downuparrow}{\updownarrow} \newcommand{\duparr}{\updownarrow} \newcommand{\updarr}{\updownarrow} \newcommand{\gt}{>} \newcommand{\lt}{<} \newcommand{\map}{\mapsto} \newcommand{\embedsin}{\hookrightarrow} \newcommand{\Alpha}{A} \newcommand{\Beta}{B} \newcommand{\Zeta}{Z} \newcommand{\Eta}{H} \newcommand{\Iota}{I} \newcommand{\Kappa}{K} \newcommand{\Mu}{M} \newcommand{\Nu}{N} \newcommand{\Rho}{P} \newcommand{\Tau}{T} \newcommand{\Upsi}{\Upsilon} \newcommand{\omicron}{o} \newcommand{\lang}{\langle} \newcommand{\rang}{\rangle} \newcommand{\Union}{\bigcup} \newcommand{\Intersection}{\bigcap} \newcommand{\Oplus}{\bigoplus} \newcommand{\Otimes}{\bigotimes} \newcommand{\Wedge}{\bigwedge} \newcommand{\Vee}{\bigvee} \newcommand{\coproduct}{\coprod} \newcommand{\product}{\prod} \newcommand{\closure}{\overline} \newcommand{\integral}{\int} \newcommand{\doubleintegral}{\iint} \newcommand{\tripleintegral}{\iiint} \newcommand{\quadrupleintegral}{\iiiint} \newcommand{\conint}{\oint} \newcommand{\contourintegral}{\oint} \newcommand{\infinity}{\infty} \newcommand{\bottom}{\bot} \newcommand{\minusb}{\boxminus} \newcommand{\plusb}{\boxplus} \newcommand{\timesb}{\boxtimes} \newcommand{\intersection}{\cap} \newcommand{\union}{\cup} \newcommand{\Del}{\nabla} \newcommand{\odash}{\circleddash} \newcommand{\negspace}{\!} \newcommand{\widebar}{\overline} \newcommand{\textsize}{\normalsize} \renewcommand{\scriptsize}{\scriptstyle} \newcommand{\scriptscriptsize}{\scriptscriptstyle} \newcommand{\mathfr}{\mathfrak} \newcommand{\statusline}[2]{#2} \newcommand{\tooltip}[2]{#2} \newcommand{\toggle}[2]{#2} % Theorem Environments \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newtheorem{lemma}{Lemma} \newtheorem{prop}{Proposition} \newtheorem{cor}{Corollary} \newtheorem*{utheorem}{Theorem} \newtheorem*{ulemma}{Lemma} \newtheorem*{uprop}{Proposition} \newtheorem*{ucor}{Corollary} \theoremstyle{definition} \newtheorem{defn}{Definition} \newtheorem{example}{Example} \newtheorem*{udefn}{Definition} \newtheorem*{uexample}{Example} \theoremstyle{remark} \newtheorem{remark}{Remark} \newtheorem{note}{Note} \newtheorem*{uremark}{Remark} \newtheorem*{unote}{Note} %------------------------------------------------------------------- \begin{document} %------------------------------------------------------------------- \section*{Rod McGuire} \hypertarget{title}{}\section*{{TITLE}}\label{title} \noindent\hyperlink{ugly_display_of_pre_blocks}{Ugly display of ``pre'' blocks}\dotfill \pageref*{ugly_display_of_pre_blocks} \linebreak \noindent\hyperlink{working_ampersand_escaping}{Working Ampersand Escaping}\dotfill \pageref*{working_ampersand_escaping} \linebreak \noindent\hyperlink{captions_in_tables}{Captions in Tables}\dotfill \pageref*{captions_in_tables} \linebreak \noindent\hyperlink{2_column_vs_1_column}{2 column vs. 1 column}\dotfill \pageref*{2_column_vs_1_column} \linebreak \noindent\hyperlink{2_column}{2 column}\dotfill \pageref*{2_column} \linebreak \noindent\hyperlink{some_internal_1_columns}{Some internal 1 columns}\dotfill \pageref*{some_internal_1_columns} \linebreak \noindent\hyperlink{1_column_with_nobang}{1 column with !NoBang}\dotfill \pageref*{1_column_with_nobang} \linebreak \noindent\hyperlink{label_examples_with_sometimes_atom_wrappers}{!Label examples with sometimes !Atom wrappers}\dotfill \pageref*{label_examples_with_sometimes_atom_wrappers} \linebreak \noindent\hyperlink{label_2_column}{!Label 2 column}\dotfill \pageref*{label_2_column} \linebreak \noindent\hyperlink{label_2_column_nobang}{!Label 2 column !NoBang}\dotfill \pageref*{label_2_column_nobang} \linebreak \noindent\hyperlink{label_1_column}{!Label 1 column}\dotfill \pageref*{label_1_column} \linebreak \noindent\hyperlink{label_1_column_nobang}{!Label 1 column !NoBang}\dotfill \pageref*{label_1_column_nobang} \linebreak \noindent\hyperlink{array_example}{Array example}\dotfill \pageref*{array_example} \linebreak \noindent\hyperlink{hand_fed_example_to_show_the_gm_script_is_working}{hand fed example to show the GM script is working}\dotfill \pageref*{hand_fed_example_to_show_the_gm_script_is_working} \linebreak \noindent\hyperlink{types_with_recursive_structure}{Types with Recursive Structure}\dotfill \pageref*{types_with_recursive_structure} \linebreak \noindent\hyperlink{type_pair_in_full}{type ``pair'' in full}\dotfill \pageref*{type_pair_in_full} \linebreak \noindent\hyperlink{various_types}{Various types}\dotfill \pageref*{various_types} \linebreak \noindent\hyperlink{pair}{``pair''}\dotfill \pageref*{pair} \linebreak \noindent\hyperlink{twin_a_subtype_of_pair}{``twin'', a subtype of ``pair''}\dotfill \pageref*{twin_a_subtype_of_pair} \linebreak \noindent\hyperlink{any_structure_can_be_twinned}{any ``structure'' can be twinned}\dotfill \pageref*{any_structure_can_be_twinned} \linebreak \noindent\hyperlink{cartesian_product_as_a_type}{cartesian product as a type}\dotfill \pageref*{cartesian_product_as_a_type} \linebreak \noindent\hyperlink{take_1}{take 1}\dotfill \pageref*{take_1} \linebreak \hypertarget{ugly_display_of_pre_blocks}{}\subsection*{{Ugly display of ``pre'' blocks}}\label{ugly_display_of_pre_blocks} (I had to take wraping pre in to get title acceptible) Display of is rather ugly with all the extra white space. It really needs some CSS styling. (LETS SEE If I can directly put in a block and change it) (ANY BETTER?) The is the same but only colored. (I recall that I had to put in a ``The'' at the start of this pgh so I wouldn't get a parse error.) \begin{verbatim}o = {a: 1, b: 2 }\end{verbatim} \hypertarget{working_ampersand_escaping}{}\subsection*{{Working Ampersand Escaping}}\label{working_ampersand_escaping} Example showing correct ampersand escaping in ID attribute, td as textnode, td containg XML. Note that spaces are INCORRECTLY stripped from around QUOT APOS and the item. \hypertarget{captions_in_tables}{}\subsection*{{Captions in Tables}}\label{captions_in_tables} Giving table captions example. A caption property can be plain text (!Caption) where the characters ``{\tt \symbol{60}}'' and ``{\tt \symbol{62}}'' can appear but wind up being escaped, or XML (!XMLCaption) where those brackets if they appear are assumed to delimit XHTML entities such as . (THE jso shown above may not have been correctly updated to reflect this example that works) \hypertarget{2_column_vs_1_column}{}\subsection*{{2 column vs. 1 column}}\label{2_column_vs_1_column} 3) 2 column vs 1 column-with-header display examples. \hypertarget{2_column}{}\subsubsection*{{2 column}}\label{2_column} \hypertarget{some_internal_1_columns}{}\subsubsection*{{Some internal 1 columns}}\label{some_internal_1_columns} Example with some internal objects displayed in 1 column-with-header (full display) \hypertarget{1_column_with_nobang}{}\subsubsection*{{1 column with !NoBang}}\label{1_column_with_nobang} 3c) 1 column-with-header with top level that suppresses property names that start with bang (!). \hypertarget{label_examples_with_sometimes_atom_wrappers}{}\subsection*{{!Label examples with sometimes !Atom wrappers}}\label{label_examples_with_sometimes_atom_wrappers} \hypertarget{label_2_column}{}\subsubsection*{{!Label 2 column}}\label{label_2_column} \hypertarget{label_2_column_nobang}{}\subsubsection*{{!Label 2 column !NoBang}}\label{label_2_column_nobang} \hypertarget{label_1_column}{}\subsubsection*{{!Label 1 column}}\label{label_1_column} \hypertarget{label_1_column_nobang}{}\subsubsection*{{!Label 1 column !NoBang}}\label{label_1_column_nobang} \hypertarget{array_example}{}\subsection*{{Array example}}\label{array_example} It looks here that JSON.stringify and JSON.parse really don't know how to handle arrays. \hypertarget{hand_fed_example_to_show_the_gm_script_is_working}{}\subsubsection*{{hand fed example to show the GM script is working}}\label{hand_fed_example_to_show_the_gm_script_is_working} \hypertarget{types_with_recursive_structure}{}\subsection*{{Types with Recursive Structure}}\label{types_with_recursive_structure} \hypertarget{type_pair_in_full}{}\subsubsection*{{type ``pair'' in full}}\label{type_pair_in_full} Define ``pair''. Generated ID for pn: Generated table for p: Generated table for pn: \hypertarget{various_types}{}\subsubsection*{{Various types}}\label{various_types} \hypertarget{pair}{}\subsubsection*{{``pair''}}\label{pair} A pair has two parts. The map ``swapped'' (aka. ``transpose'') switches the parts, and $swapped(swapped(p)) = p$. \hypertarget{twin_a_subtype_of_pair}{}\subsubsection*{{``twin'', a subtype of ``pair''}}\label{twin_a_subtype_of_pair} A twin is a pair in which both components are the same. Essentially $twin = pair \wedge (?p1 = ?p2)$, though this formulation doesn't notice that ``swapped'' is now an identity. \hypertarget{any_structure_can_be_twinned}{}\subsubsection*{{any ``structure'' can be twinned}}\label{any_structure_can_be_twinned} A small definition of this is: Then with type inference from ``twin'', essentially $s.twinned = s.twinned \wedge twin$, this becomes: as \hypertarget{cartesian_product_as_a_type}{}\subsubsection*{{cartesian product as a type}}\label{cartesian_product_as_a_type} \hypertarget{take_1}{}\paragraph*{{take 1}}\label{take_1} The END. category: people [[!redirects Rod Mc Guire]] [[!redirects Rod McGuire]] [[!redirects RodMcGuire]] \end{document}