Newsgroup: it.comp.software.tex
Titolo: ochem.sty

ciao,
ho un problema con ochem (macro per latex per disegnare molecole organiche e
biologiche) purtroppo il manuale e' in tedesco, c'e' qualcuno in lista, che lo
usa?
ecco il mio problema:
Il mio file di tex:
**************************ochem.tex**************************
\documentclass[a4paper,italian]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{ochem}
\begin{document}
\begin{chemistry}[phenol]
formula(C,C){ring(){ 3: bond(90) atom("OH",L);}}
\end{chemistry}
\begin{chemistry}[intro2a]
formula(L,R){bond(30;-30;30,=;-30)}
formula(L,R){atom("HOOC",L,R)bond(30; -30; 30) atom ("COOH", L)}
\end{chemistry}
\end{document}
**************************fine****************************
usando il comando latex ochem.tex
ottengo un file dvi vuoto, e un file ochem.chm
*********************************ochem.chm*******************
font(" \usefont{T1}{cmss} {m}{n} \fontsize{10}{12.0pt}\selectfont")
schema("phenol.ctx")
formula(C,C){ring(){ 3: bond(90) atom("OH",L);}}
endschema
schema("intro2a.ctx")
formula(L,R){bond(30;-30;30,=;-30)}
formula(L,R){atom("HOOC",L,R)bond(30; -30; 30) atom ("COOH", L)}
endschema
**************************fine***************************
vi posto anche il file ochem.log:
*************ochem.log**********************
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=latex 2001.1.1)  2 JAN 2001
23:04
**ochem.tex
(ochem.tex
LaTeX2e <1998/12/01> patch level 1
Babel <v3.6x> and hyphenation patterns for american, british, french, german, n
german, italian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/report.cls
Document Class: report 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo
File: size10.clo 1999/01/07 v1.4a Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 1999/02/24 v1.9t Standard LaTeX package
(/usr/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 1999/02/24 v1.9t Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 25.
))
(/usr/share/texmf/tex/latex/base/inputenc.sty beta test version
Package: inputenc 1998/03/05 v0.97 Input encoding file (test version: still lia
ble to change)
(/usr/share/texmf/tex/latex/base/latin1.def
File: latin1.def 1998/03/05 v0.97 Input encoding file (test version: still liab
le to change)
))
(/usr/share/texmf/tex/generic/babel/babel.sty
Package: babel 1999/05/05 v3.6x The Babel package
(/usr/share/texmf/tex/generic/babel/italian.ldf
Language: italian 1999/05/01 v1.2l Italian support from the babel system
(/usr/share/texmf/tex/generic/babel/babel.def
File: babel.def 1999/05/05 v3.6x Babel common definitions
\babel@savecnt=\count88
\U@D=\dimen103
)))
(/usr/share/texmf/tex/latex/base/ochem.sty
package OCHEM Version 3-0d 2000-04-19 
(c) 1993-1996, 1999, 2000 Ingo Kloeckl
(/usr/share/texmf/tex/latex/graphics/color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)
(/usr/share/texmf/tex/latex/config/color.cfg)
Package color Info: Driver file: dvips.def on input line 125.
(/usr/share/texmf/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def
File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
(/usr/share/texmf/tex/latex/tools/verbatim.sty
Package: verbatim 1997/04/30 v1.5k LaTeX2e package for verbatim enhancements
\every@verbatim=\toks14
\verbatim@line=\toks15
\verbatim@in@stream=\read1
)
\c@schema=\count89
\verb@chem=\write3
\openout3 = `ochem.chm'.
\c@chemcnt=\count90
)
(/usr/share/texmf/tex/latex/base/biochem.sty) (ochem.aux)
\openout1 = `ochem.aux'.
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 20.
LaTeX Font Info:    ... okay on input line 20.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 20.
LaTeX Font Info:    ... okay on input line 20.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 20.
LaTeX Font Info:    ... okay on input line 20.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 20.
LaTeX Font Info:    ... okay on input line 20.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 20.
LaTeX Font Info:    ... okay on input line 20.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 20.
LaTeX Font Info:    ... okay on input line 20.
LaTeX Font Info:    Try loading font information for T1+cmss on input line 20.
(/usr/share/texmf/tex/latex/base/t1cmss.fd
File: t1cmss.fd 1998/03/27 v2.5g Standard LaTeX font definitions
)
ochem: cannot find phenol.ctx
ochem: cannot find intro2a.ctx
[1
] (ochem.aux) ) 
Here is how much of TeX's memory you used:
 1083 strings out of 10886
 12155 string characters out of 97339
 61589 words of memory out of 263001
 4055 multiletter control sequences out of 10000+0
 5164 words of font info for 16 fonts, out of 400000 for 1000
 22 hyphenation exceptions out of 1000
 24i,5n,21p,185b,168s stack positions out of 300i,100n,500p,50000b,4000s
Output written on ochem.dvi (1 page, 6568 bytes).
**********************fine**************************************
da quello che ho capito dal manuale bisogna usare un programma perl chiamato
chemie.pl
 in questo modo:
chemie.pl
 ochem.chm
ma a questo punto ho un errore che riporto:
******************************
/usr/local/bin/
chemie.pl
: =: command not found
/usr/local/bin/
chemie.pl
: []: command not found
/usr/local/bin/
chemie.pl
: =: command not found
/usr/local/bin/
chemie.pl
: []: command not found
/usr/local/bin/
chemie.pl
: =: command not found
/usr/local/bin/
chemie.pl
: []: command not found
/usr/local/bin/
chemie.pl
: syntax error near unexpected token `(1'
/usr/local/bin/
chemie.pl
: /usr/local/bin/
chemie.pl
: line 51: `$true = (1==1);'
***********************fine*************************
qualcuno in lista sa dirmi come posso risolvere questo errore?
grazie Dario
-- 
-----------------------------------------------------------------------------
email:sido...@tiscalinet.it
CICAP (Comitato Italiano per il Controllo delle Affermazioni sul Paranormale)
http://www.cicap.org
http://www.cicap.org/piemonte
-----------------------------------------------------------------------------

 
Secondo me non hai il perl installato a dovere... 
Ale
-- 
Alessandro Russo
----------------
Istituto di Analisi Numerica - CNR
via Ferrata, 1
I-27100 Pavia (ITALY)
e-mail: 
ru...@ian.pv.cnr.it

Secondo me non hai il perl installato a dovere... 
Puo' darsi che manchi semplicemente lo she bang nel file 
chemie.pl
, che
quindi viene interpretato come script di shell (e siccome non lo e', genera
quegli errori di sintassi).
Si puo' provare qualcosa come:
     perl 
chemie.pl
 ochem.chm
oppure modificare 
chemie.pl
 e aggiungerci una prima riga cosi':
    #!/usr/bin/perl
(aggiustare il percorso secondo che cosa dice 'which perl').
Mi spiace per il ritardo: ci avevo gia' guardato, ma ho realizzato solo ora
di che cosa potesse trattarsi. Di fatto, nella copia di 
chemie.pl
 che ho
prelevato io manca lo she bang.
Ciao.