Hi Dan,Thanks for the help. I followed your advice and replaced the _'s with \_'s, and here is what I got with tex:
frohro@frohro-D830:~/Desktop/octave-3.4.0$ cd doc/interpreter/frohro@frohro-D830:~/Desktop/octave-3.4.0/doc/interpreter$ ./munge-texi ../.. ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS < arith.txi > arith.texi-t
invalid doc file format frohro@frohro-D830:~/Desktop/octave-3.4.0/doc/interpreter$ tex arith.txi This is TeX, Version 3.1415926 (TeX Live 2009/Debian) (./arith.txi Overfull \hbox (11.37076pt too wide) in paragraph at lines 121--127[]\tenrm @DOCSTRING(sin) @DOC-STRING(cos) @DOC-STRING(tan) @DOC-STRING(sec) @DO
C-STRING(csc)| Overfull \hbox (36.37083pt too wide) in paragraph at lines 128--134[]\tenrm @DOCSTRING(asin) @DOC-STRING(acos) @DOC-STRING(atan) @DOC-STRING(asec)
@DOC-STRING(acsc)| Overfull \hbox (38.59305pt too wide) in paragraph at lines 135--141[]\tenrm @DOCSTRING(sinh) @DOC-STRING(cosh) @DOC-STRING(tanh) @DOC-STRING(sech)
@DOC-STRING(csch)| [1] Overfull \hbox (39.14862pt too wide) in paragraph at lines 165--171[]\tenrm @DOCSTRING(sind) @DOC-STRING(cosd) @DOC-STRING(tand) @DOC-STRING(secd)
@DOC-STRING(cscd)| [2]) * (Please type a command or say `\end') *\end [3] (see the transcript file for additional information) Output written on arith.dvi (3 pages, 7372 bytes). Transcript written on arith.log. frohro@frohro-D830:~/Desktop/octave-3.4.0/doc/interpreter$ Unfortunately, with make I still get the same error: make[4]: `munge-texi' is up to date.make[4]: Leaving directory `/home/frohro/Desktop/octave-3.4.0/doc/interpreter' ./munge-texi ../.. ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS < arith.txi > arith.texi-t
invalid doc file format make[3]: *** [arith.texi] Error 1make[3]: Leaving directory `/home/frohro/Desktop/octave-3.4.0/doc/interpreter'
make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/frohro/Desktop/octave-3.4.0/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/frohro/Desktop/octave-3.4.0' make: *** [all] Error 2 frohro@frohro-D830:~/Desktop/octave-3.4.0$ Thanks again for the help Dan! Rob On 03/15/2011 07:38 PM, Daniel J Sebald wrote:
[I'm copying the Octave maintainers list because the problem may originate with the core Octave m-script to tex-file translator.]On 03/15/2011 08:56 PM, Rob Frohne wrote:Hi All, I'm attempting to build a statically linked version of octave 3.4 on Ubuntu 10.10 so I can move it to a network of redhat 5 machines. Just after it builds munge-texi, I get the following complaint from running it. Can anyone give me some advice? make[4]: Leaving directory `/home/frohro/Desktop/octave-3.4.0/doc/interpreter' ./munge-texi ../.. ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS < arith.txi > arith.texi-t invalid doc file format make[3]: *** [arith.texi] Error 1 make[3]: Leaving directory `/home/frohro/Desktop/octave-3.4.0/doc/interpreter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/frohro/Desktop/octave-3.4.0/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/frohro/Desktop/octave-3.4.0' make: *** [all] Error 2Rob The file in question is this one:http://hg.savannah.gnu.org/hgweb/octave/file/41d183070c04/doc/interpreter/arith.txiI used the "raw" link to download the file and compiled the tex file as follows:[sebald@moorglade junk]$ tex arith.txi This is TeX, Version 3.141592 (Web2C 7.5.6) (./arith.txi Overfull \hbox (11.37076pt too wide) in paragraph at lines 121--127[]\tenrm @DOCSTRING(sin) @DOC-STRING(cos) @DOC-STRING(tan) @DOC-STRING(sec) @DOC-STRING(csc)| [snip] ! Missing $ inserted. <inserted text> $ <to be read again> _ l.225 @DOCSTRING(list_ primes) ?It turns out this file has three function names with underscores in them. The underscore is a special character and is the source of the error. I replaced all the "_" with "\_" and the tex file compiles.The question is why this fails. Is DOCSTRING defined correctly? Are the underscore function names something that was recently added? Should the translator be adding a character before underscores? I'll defer to the Octave maintainers list for those answers.You said that you configure your compilation with: <quote> I am working again on building octave 3.4 with static libraries. I did a ./configure --enable-static --disable-shared --disable-dh and when I make I get on the Makefile in src/ an error for line 9457 about a Missing Separator.I had to go to that line and replace the five spaces with a tab. I got the hint from this page:http://www.delorie.com/djgpp/v2faq/faq22_17.htmlThe Makefile was made with the automake tools, and somehow they messed up on this. I'm not really familiar with them or I'd make a suggestion on fixing it better.<unquote> Dan
-- Rob Frohne, Ph.D., P.E. E.F. Cross School of Engineering Walla Walla University 100 SW 4th Street College Place, WA 99324 (509) 527-2075 http://people.wallawalla.edu/~rob.frohne
<<attachment: frohro.vcf>>
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d
_______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
