Hi, Tried to lyx the following LaTeX-source: ----------------------------------------------------------------- \documentclass[a4paper,twoside]{article} \begin{document} <<search>>= <? /*************************************************************************** * search.php * * ============ * ***************************************************************************/ ?> <? require("_includes/config.inc"); ................. (more text - left out!) require($header); ?> <? require($footer); ?> @ \end{document} --------------------------------------------- using the command:
reLyX -d search.ltx search.lyx ------------------------------------------------------------ produced the following error messages: Unrecognized escape \d passed through at ../share/lyx/reLyX/reLyXmain.pl line 87. reLyX, the LaTeX to LyX translator. Revision date 2000/06/06 Reading LaTeX command syntax (search.nwl: Splitting Preamble Creating LyX preamble Reading layout file Cleaning... Expecting `$', got \end in ` ' at ../share/lyx/reLyX/Text/TeX.pm line 397, <TeXOpenFile0002> line 98. Can't locate object method "environment" via package "Text::TeX::Begin::Group" at ../share/lyx/reLyX/Text/TeX.pm line 400, <TeXOpenFile0002> line 98. Compilation failed in require at ./reLyX line 52, <TeXOpenFile0002> line 98. Exited due to fatal Error! ------------------------------------------------------------------------------ The same file was smoothly translated into LyX-code when using reLyX from WITHIN LyX ! Of course you'll be asking: why is this guy then using the command-line version of reLyX ??? Simply put: because I have a bunch of source-files to incorporate into a noweb-document and need a possibility to batch-process them before inputting each as a noweb-scrap into a LyX wrapper. Inputting each as "original" text is not feasible as I can't add C-returns into the sources BEFORE inserting them into LyX (neither by inserting the text "as paragraphs" nor as "lines"). And yes, I have already discussed the problem with Edmar Wienskoski Jr. who maintains the "literate programming" section. He thinks that the stand-alone reLyX may be outdated and no longer maintained, which would be fatal for my problem 8-P... Any hints would be appreciated regards Wolfram Schwenzer