thys2/Journal/isabelle.sty
author Chengsong
Mon, 01 Nov 2021 10:40:21 +0000
changeset 369 e00950ba4514
child 382 aef235b965bb
permissions -rw-r--r--
added all files in Journal folder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
369
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     1
%%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     2
%% macros for Isabelle generated LaTeX output
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     3
%%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     4
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     5
%%% Simple document preparation (based on theory token language and symbols)
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     6
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     7
% isabelle environments
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     8
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     9
\newcommand{\isabellecontext}{UNKNOWN}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    10
\newcommand{\setisabellecontext}[1]{\def\isabellecontext{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    11
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    12
\newcommand{\isastyle}{\UNDEF}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    13
\newcommand{\isastylett}{\UNDEF}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    14
\newcommand{\isastyleminor}{\UNDEF}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    15
\newcommand{\isastyleminortt}{\UNDEF}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    16
\newcommand{\isastylescript}{\UNDEF}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    17
\newcommand{\isastyletext}{\normalsize\normalfont\rmfamily}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    18
\newcommand{\isastyletxt}{\normalfont\rmfamily}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    19
\newcommand{\isastylecmt}{\normalfont\rmfamily}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    20
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    21
\newcommand{\isaspacing}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    22
  \sfcode 42 1000 % .
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    23
  \sfcode 63 1000 % ?
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    24
  \sfcode 33 1000 % !
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    25
  \sfcode 58 1000 % :
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    26
  \sfcode 59 1000 % ;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    27
  \sfcode 44 1000 % ,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    28
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    29
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    30
%symbol markup -- \emph achieves decent spacing via italic corrections
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    31
\newcommand{\isamath}[1]{\emph{$#1$}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    32
\newcommand{\isatext}[1]{\emph{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    33
\DeclareRobustCommand{\isascriptstyle}{\def\isamath##1{##1}\def\isatext##1{\mbox{\isaspacing\isastylescript##1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    34
\newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    35
\newcommand{\isactrlsup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    36
\DeclareRobustCommand{\isactrlbsub}{\emph\bgroup\math{}\sb\bgroup\mbox\bgroup\isaspacing\isastylescript}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    37
\DeclareRobustCommand{\isactrlesub}{\egroup\egroup\endmath\egroup}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    38
\DeclareRobustCommand{\isactrlbsup}{\emph\bgroup\math{}\sp\bgroup\mbox\bgroup\isaspacing\isastylescript}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    39
\DeclareRobustCommand{\isactrlesup}{\egroup\egroup\endmath\egroup}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    40
\newcommand{\isactrlbold}[1]{{\bfseries\upshape\boldmath#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    41
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    42
\newenvironment{isaantiq}{{\isacharat\isacharbraceleft}}{{\isacharbraceright}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    43
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    44
\newdimen\isa@parindent\newdimen\isa@parskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    45
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    46
\newenvironment{isabellebody}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    47
\isamarkuptrue\par%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    48
\isa@parindent\parindent\parindent0pt%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    49
\isa@parskip\parskip\parskip0pt%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    50
\isaspacing\isastyle}{\par}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    51
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    52
\newenvironment{isabellebodytt}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    53
\isamarkuptrue\par%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    54
\isa@parindent\parindent\parindent0pt%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    55
\isa@parskip\parskip\parskip0pt%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    56
\isaspacing\isastylett}{\par}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    57
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    58
\newenvironment{isabelle}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    59
{\begin{trivlist}\begin{isabellebody}\item\relax}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    60
{\end{isabellebody}\end{trivlist}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    61
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    62
\newenvironment{isabellett}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    63
{\begin{trivlist}\begin{isabellebodytt}\item\relax}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    64
{\end{isabellebodytt}\end{trivlist}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    65
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    66
\newcommand{\isa}[1]{\emph{\isaspacing\isastyleminor #1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    67
\newcommand{\isatt}[1]{\emph{\isaspacing\isastyleminortt #1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    68
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    69
\newcommand{\isaindent}[1]{\hphantom{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    70
\newcommand{\isanewline}{\mbox{}\par\mbox{}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    71
\newcommand{\isasep}{}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    72
\newcommand{\isadigit}[1]{#1}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    73
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    74
\newcommand{\isachardefaults}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    75
\def\isacharbell{\isamath{\bigbox}}%requires stmaryrd
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    76
\chardef\isacharbang=`\!%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    77
\chardef\isachardoublequote=`\"%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    78
\chardef\isachardoublequoteopen=`\"%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    79
\chardef\isachardoublequoteclose=`\"%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    80
\chardef\isacharhash=`\#%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    81
\chardef\isachardollar=`\$%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    82
\chardef\isacharpercent=`\%%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    83
\chardef\isacharampersand=`\&%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    84
\chardef\isacharprime=`\'%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    85
\chardef\isacharparenleft=`\(%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    86
\chardef\isacharparenright=`\)%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    87
\chardef\isacharasterisk=`\*%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    88
\chardef\isacharplus=`\+%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    89
\chardef\isacharcomma=`\,%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    90
\chardef\isacharminus=`\-%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    91
\chardef\isachardot=`\.%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    92
\chardef\isacharslash=`\/%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    93
\chardef\isacharcolon=`\:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    94
\chardef\isacharsemicolon=`\;%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    95
\chardef\isacharless=`\<%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    96
\chardef\isacharequal=`\=%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    97
\chardef\isachargreater=`\>%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    98
\chardef\isacharquery=`\?%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    99
\chardef\isacharat=`\@%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   100
\chardef\isacharbrackleft=`\[%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   101
\chardef\isacharbackslash=`\\%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   102
\chardef\isacharbrackright=`\]%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   103
\chardef\isacharcircum=`\^%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   104
\chardef\isacharunderscore=`\_%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   105
\def\isacharunderscorekeyword{\_}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   106
\chardef\isacharbackquote=`\`%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   107
\chardef\isacharbackquoteopen=`\`%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   108
\chardef\isacharbackquoteclose=`\`%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   109
\chardef\isacharbraceleft=`\{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   110
\chardef\isacharbar=`\|%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   111
\chardef\isacharbraceright=`\}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   112
\chardef\isachartilde=`\~%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   113
\def\isacharverbatimopen{\isacharbraceleft\isacharasterisk}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   114
\def\isacharverbatimclose{\isacharasterisk\isacharbraceright}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   115
\def\isacartoucheopen{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   116
\def\isacartoucheclose{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   117
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   118
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   119
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   120
% keyword and section markup
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   121
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   122
\newcommand{\isakeyword}[1]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   123
{\emph{\normalfont\bfseries\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   124
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   125
\newcommand{\isacommand}[1]{\isakeyword{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   126
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   127
\newcommand{\isakeywordcontrol}[1]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   128
{\emph{\normalfont\bfseries\itshape\def\isacharunderscore{\isacharunderscorekeyword}#1\,}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   129
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   130
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   131
\newcommand{\isamarkupsection}[1]{\section{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   132
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   133
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   134
\newcommand{\isamarkupparagraph}[1]{\paragraph{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   135
\newcommand{\isamarkupsubparagraph}[1]{\subparagraph{#1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   136
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   137
\newif\ifisamarkup
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   138
\newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   139
\newcommand{\isaendpar}{\par\medskip}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   140
\newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\isabeginpar}{\isaendpar}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   141
\newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   142
\newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   143
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   144
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   145
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   146
% styles
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   147
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   148
\def\isabellestyle#1{\csname isabellestyle#1\endcsname}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   149
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   150
\newcommand{\isabellestyledefault}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   151
\def\isastyle{\small\normalfont\ttfamily\slshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   152
\def\isastylett{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   153
\def\isastyleminor{\small\normalfont\ttfamily\slshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   154
\def\isastyleminortt{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   155
\def\isastylescript{\footnotesize\normalfont\ttfamily\slshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   156
\isachardefaults%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   157
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   158
\isabellestyledefault
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   159
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   160
\newcommand{\isabellestylett}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   161
\def\isastyle{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   162
\def\isastylett{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   163
\def\isastyleminor{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   164
\def\isastyleminortt{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   165
\def\isastylescript{\footnotesize\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   166
\isachardefaults%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   167
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   168
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   169
\newcommand{\isabellestyleit}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   170
\def\isastyle{\small\normalfont\itshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   171
\def\isastylett{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   172
\def\isastyleminor{\normalfont\itshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   173
\def\isastyleminortt{\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   174
\def\isastylescript{\footnotesize\normalfont\itshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   175
\isachardefaults%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   176
\def\isacharunderscorekeyword{\mbox{-}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   177
\def\isacharbang{\isamath{!}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   178
\def\isachardoublequote{}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   179
\def\isachardoublequoteopen{}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   180
\def\isachardoublequoteclose{}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   181
\def\isacharhash{\isamath{\#}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   182
\def\isachardollar{\isamath{\$}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   183
\def\isacharpercent{\isamath{\%}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   184
\def\isacharampersand{\isamath{\&}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   185
\def\isacharprime{\isamath{\mskip2mu{'}\mskip-2mu}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   186
\def\isacharparenleft{\isamath{(}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   187
\def\isacharparenright{\isamath{)}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   188
\def\isacharasterisk{\isamath{*}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   189
\def\isacharplus{\isamath{+}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   190
\def\isacharcomma{\isamath{\mathord,}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   191
\def\isacharminus{\isamath{-}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   192
\def\isachardot{\isamath{\mathord.}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   193
\def\isacharslash{\isamath{/}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   194
\def\isacharcolon{\isamath{\mathord:}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   195
\def\isacharsemicolon{\isamath{\mathord;}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   196
\def\isacharless{\isamath{<}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   197
\def\isacharequal{\isamath{=}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   198
\def\isachargreater{\isamath{>}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   199
\def\isacharat{\isamath{@}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   200
\def\isacharbrackleft{\isamath{[}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   201
\def\isacharbackslash{\isamath{\backslash}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   202
\def\isacharbrackright{\isamath{]}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   203
\def\isacharunderscore{\mbox{-}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   204
\def\isacharbraceleft{\isamath{\{}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   205
\def\isacharbar{\isamath{\mid}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   206
\def\isacharbraceright{\isamath{\}}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   207
\def\isachartilde{\isamath{{}\sp{\sim}}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   208
\def\isacharbackquoteopen{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   209
\def\isacharbackquoteclose{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   210
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   211
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   212
\newcommand{\isabellestyleliteral}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   213
\isabellestyleit%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   214
\def\isacharunderscore{\_}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   215
\def\isacharunderscorekeyword{\_}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   216
\chardef\isacharbackquoteopen=`\`%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   217
\chardef\isacharbackquoteclose=`\`%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   218
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   219
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   220
\newcommand{\isabellestyleliteralunderscore}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   221
\isabellestyleliteral%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   222
\def\isacharunderscore{\textunderscore}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   223
\def\isacharunderscorekeyword{\textunderscore}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   224
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   225
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   226
\newcommand{\isabellestylesl}{%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   227
\isabellestyleit%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   228
\def\isastyle{\small\normalfont\slshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   229
\def\isastylett{\small\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   230
\def\isastyleminor{\normalfont\slshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   231
\def\isastyleminortt{\normalfont\ttfamily}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   232
\def\isastylescript{\footnotesize\normalfont\slshape}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   233
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   234
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   235
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   236
% cancel text
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   237
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   238
\usepackage[normalem]{ulem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   239
\newcommand{\isamarkupcancel}[1]{\isa{\xout{#1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   240
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   241
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   242
% tagged regions
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   243
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   244
%plain TeX version of comment package -- much faster!
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   245
\let\isafmtname\fmtname\def\fmtname{plain}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   246
\usepackage{comment}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   247
\let\fmtname\isafmtname
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   248
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   249
\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   250
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   251
\newcommand{\isakeeptag}[1]%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   252
{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   253
\newcommand{\isadroptag}[1]%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   254
{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   255
\newcommand{\isafoldtag}[1]%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   256
{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   257
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   258
\isakeeptag{document}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   259
\isakeeptag{theory}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   260
\isakeeptag{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   261
\isakeeptag{ML}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   262
\isakeeptag{visible}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   263
\isadroptag{invisible}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   264
\isakeeptag{important}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   265
\isakeeptag{unimportant}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   266
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   267
\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}