|
55 | 55 | \href{https://github.com/OpenLogicProject/fitch/issues}{issues} with |
56 | 56 | it.}} |
57 | 57 |
|
58 | | -\date{Version 1.0-beta\\ October 15, 2023} |
| 58 | +\date{Version 1.0-beta2\\ October 15, 2023} |
59 | 59 |
|
60 | 60 | \begin{document} |
61 | 61 | \maketitle |
@@ -256,14 +256,14 @@ \subsection{Generic justifications} |
256 | 256 |
|
257 | 257 | \subsection{Scope} |
258 | 258 |
|
259 | | -The commands |\hypo|, |\have|, |\open|, |\close|, |
260 | | -|\r|, |\ii|, and so forth are only available inside an |
261 | | -|nd| environment. These commands may have a different meaning |
262 | | -elsewhere in the same document. The only commands provided by the |
263 | | -|fitch.sty| package which are visible outside an |nd| |
264 | | -environment are the command |\ndref| described in |
265 | | -Section~\ref{subsec-ndref}, and the command |\nddim| and the |
266 | | -dimension |\ndindent| described in Section~\ref{sec-customization}. |
| 259 | +The commands |\hypo|, |\have|, |\open|, |\close|, |\r|, |\ii|, and so |
| 260 | +forth are only available inside an |nd| environment. These commands |
| 261 | +may have a different meaning elsewhere in the same document. The only |
| 262 | +commands provided by the |fitch.sty| package which are visible |
| 263 | +outside an |nd| environment are the command |\ndref| described in |
| 264 | +Section~\ref{subsec-ndref}, the commands |\ndrules|, |\ndjustformat|, |
| 265 | +|\ndrefformat|, and |\nddim|, and the dimension |\ndindent| described |
| 266 | +in Section~\ref{sec-customization}. |
267 | 267 |
|
268 | 268 | \subsection{Breaking it across pages}\label{subsec-break} |
269 | 269 |
|
@@ -433,15 +433,17 @@ \section{Customization}\label{sec-customization} |
433 | 433 | \begin{fitchproof}[linethickness=1pt] |
434 | 434 | \fitchset{hsep=1em,indent=1em}\end{verbatim} |
435 | 435 |
|
436 | | -In addition, the macros used |
437 | | -to generate the table containing the proof, |
438 | | -to format justifications, and to initialize macros to produce |
439 | | -justifications in the proof can be customized: |
| 436 | +In addition, the macros used to generate the table containing the |
| 437 | +proof, to format justifications, format line number references, and to |
| 438 | +initialize macros to produce justifications in the proof can be |
| 439 | +customized: |
440 | 440 | \begin{center} |
441 | 441 | \begin{tabular}{ll} |
442 | | - \meta{rules} & |ndrules|\\ |
443 | | - \meta{justformat} & |ndjustformat|\\ |
444 | | - \meta{arrayenv} & |array| |
| 442 | + option & default\\\hline |
| 443 | + |rules=|\meta{macroname} & |ndrules|\\ |
| 444 | + |justformat=|\meta{macroname} & |ndjustformat|\\ |
| 445 | + |refformat=|\meta{macroname} & |ndrefformat|\\ |
| 446 | + |arrayenv=|\meta{envname} & |array| |
445 | 447 | \end{tabular} |
446 | 448 | \end{center} |
447 | 449 | For compatibility with earlier versions of |fitch.sty|, the default |
@@ -483,23 +485,34 @@ \section{Customization}\label{sec-customization} |
483 | 485 | \newcommand{\ndjustformat}[2]{#1, #2} |
484 | 486 | \end{verbatim} |
485 | 487 | The first argument takes the rule name, the second the reference list. |
| 488 | +It is used to typeset the justification. |
486 | 489 |
|
487 | | -\cmd{\ndrules} and \cmd{\ndjustformat} can be redefined using |
488 | | -\cmd{\renewcommand}, or you can define your own commands to set the |
489 | | -rule names or the justification format, and pass the names (without |
490 | | -initial |\|) as an option to the \cmd{\usepackage} or individual |
491 | | -\cmd{\nd} or \cmd{\fitchproof} commands. |
| 490 | +\DescribeMacro{\ndrefformat} |
| 491 | +The macro \cmd{\ndrefformat} is defined as |
| 492 | +\begin{verbatim} |
| 493 | + \newcommand{\ndrefformat}[1]{#1} |
| 494 | +\end{verbatim} |
| 495 | +It is used to typeset the line numbers in justifications. |
| 496 | +
|
| 497 | +\cmd{\ndrules}, \cmd{\ndjustformat}, and \cmd{\ndrefformat} can |
| 498 | +be redefined using \cmd{\renewcommand}, or you can define your own |
| 499 | +commands to provide the rule names, the justification format, and line |
| 500 | +number format, and pass the names (without initial |\|) as an option |
| 501 | +to the \cmd{\usepackage} or individual \cmd{\nd} or \cmd{\fitchproof} |
| 502 | +commands. |
492 | 503 | \begin{LTXexample} |
493 | 504 | \newcommand{\myjust}[2] |
494 | | - {#2 (by \textsf{#1})} |
| 505 | + {#2 by \textsf{#1}} |
495 | 506 | \newcommand{\myrules}{ |
496 | 507 | \ndrules % include standard rules |
497 | 508 | \def\ds{\by{DS}}} |
| 509 | +\renewcommand{\ndrefformat}[1]{(#1)} |
498 | 510 | $ |
499 | 511 | \begin{nd}[rules=myrules, |
500 | 512 | justformat=myjust, |
501 | | - indent=2cm, |
502 | | - linethickness=1.5pt] |
| 513 | + indent=1.5cm, |
| 514 | + linethickness=1.5pt, |
| 515 | + justsep=1cm] |
503 | 516 | \hypo {1} {A\vee B} |
504 | 517 | \hypo {2} {\neg B} |
505 | 518 | \open |
|
0 commit comments