
Estoy interesado en usar CWEB con LaTeX en Windows. Hoy descubrí que mi instalación de MikTeX viene con dos programas interesantes, cweave y ctangle. ¿Son el CWEB de Knuth y Levy? Cuando intento ejecutarlos, aparece el siguiente problema:
%cweave.exe cwebsync.w_h
This is CWEAVE, Version 3.64 (MiKTeX 2.9.6960)
Sorry, but c:\emacs\miktex\texmfs\install\miktex\bin\cweave.exe did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
c:\emacs\miktex\texmfs\data\miktex\log\cweave.log
%
El archivo de registro revela lo siguiente:
%cat c:\emacs\miktex\texmfs\data\miktex\log\cweave.log
[...]
2019-02-18 21:44:44,561-0300 INFO cweave - starting with command line: c:\emacs\miktex\texmfs\install\miktex\bin\cweave.exe cwebsync.w_h
2019-02-18 21:44:44,644-0300 FATAL cweave - MiKTeX encountered an internal error.
2019-02-18 21:44:44,645-0300 FATAL cweave - Info: path="."
2019-02-18 21:44:44,645-0300 FATAL cweave - Source: Libraries\MiKTeX\Core\Session\miktex.cpp
2019-02-18 21:44:44,646-0300 FATAL cweave - Line: 675
2019-02-18 21:44:44,656-0300 INFO cweave - finishing with exit code 1
%
He visto este tipo de error interno antes: mi MikTeX es el portátil y no todo funciona de inmediato con esta versión portátil de MikTeX. Quizás ese sea el mismo problema aquí. Sin embargo: ¿debería molestarme con estos programas desde la instalación de MikTex?
Respuesta1
Ejecutar una versión portátil no debería ser un problema si miktex\bin está en la ruta y los texmf están bien estructurados, lo sé porque si ejecuto desde cualquier parte del sistema mi copia USB portátil
ctangle C:\Users\myname\Desktop\cweb_tar\examples\wordtest.w
Obtengo correctamente wordtest.c y si hago tejido obtengo los 30k de wordtest.tex
conseguí unmensaje de error cuando no di la dirección absolutay con sensatez no huyó de un camino con espacios, etc.
Además de los archivos CTAN, hay una interesante colección relacionada enhttp://www.literateprogramming.com/cweb_download.htmly por supuesto el sitio principalhttps://www-cs-faculty.stanford.edu/~knuth/cweb.html