From: martin g. <a.m...@ic...> - 2024-01-26 11:43:36
|
while trying to use IN_TEX I came across the following questions 1. using OFF ECHO causes IN_TEX to ignore everything in the input file following the first \end{reduce}. If I use a $ terminator for the IN_TEX command, only the reduce output and nothing else is displayed. Since I would like to be able to display only the output and not the commands, how can I do this? 2. IN_TEX writes \begin{reduce} and \end{reduce} to the output LaTeX file which causes a fatal error when compiling the LaTex (TeX Live 2023). If I write \newenvironment{reduce}{}{}% before the \documentclass command the compilation works. I would expect that there is a definition of a reduce environment but find Reduce-svn6658-src -iname '*.sty' -exec grep "newenv" {} \; returns only a definition \newenvironment{describe}[1]{\par{\bf #1}\begin{indented}}{\end{indented}} for the three files: doc/misc/reduce.sty doc/primers/reduce.sty doc/util/reduce.sty Searching in *.tex finds many more but no 'reduce'. Does it exist? 3. Using IN_TEX always produces a 99 error, e.g. +++ error: (99 ("End-of-file read in file" "rlfi-01-src.tex")) ( "End-of-file read in file" "rlfi-01-src.tex") even though I have ;end; at the end of the file. Is this expected? I have compiled revision reduce 6658 (csl) from source on Slackware (kernel 5.15.145). Martin Gregory Test program and LaTeX file: --------------------rlfi-01.red------------------------- load_package rlfi ; out t ; % to drop rlfi preamble q:=(y^2+2*y)^2/(2*a); on latex, lasimp ; out "rlfi-01.tex" ; in_tex "rlfi-01-src.tex" ; shut "rlfi-01.tex" ; off latex ; % after shut to avoid writing \end{document} ;end; --------------------rlfi-01-src.tex--------------------- \documentclass[11pt,a4paper]{article} \usepackage[pdftex,bookmarks,colorlinks,linkcolor=blue]{hyperref} \title{RLFI in file read by IN\_TEX} \author{Martin Gregory} \begin{document} \maketitle We define q as follows: \begin{reduce} write q ; \end{reduce} \end{document} ;end; |