summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/literate/lit-2latex-jm.lprl
blob: ae544db187c8d0fec019ef379f5e39fb05b20486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\section[lit2latex_for_jm]{Lit2latex-only code for language \tr{jm} (``make-world'' files)}

\begin{code}
sub print_code_blk { # just use the std
    local($codetxt) = @_;

    if ($Lang_typeset =~ /tgrind/) {
	&std_tgrind_code_blk('c', $codetxt);	# pretend it's C
    } else {
        &std_print_code_blk($codetxt);
    }
}

sub mk_code_frag {
    local($codetxt) = @_;

    &std_mk_code_frag($codetxt);
}

# this keeps 'do'ing happy
1;
\end{code}