Newsgroup: it.comp.software.tex
Titolo: TeTeX e nuove macro.. come?

Ho installato una macro per disegnare formule chimiche con latex..
ma latex non trova i file .sty necessari..
A quanto ho capito dovrei modificare il file texmf.cnt per indicara il
percorso.. ci ho provato + volte ma si vede che sbaglio..
chi ne sa qualcosa??
uso Linux

Shivan wrote:

(1) Dove hai installato i file sty? 
(2) Hai dato texhash da root?
g.
-- 
Guido Milanese
Vocal Ensemble Ars Antiqua - Genoa, Italy
http://www.arsantiqua.org
***GAUDETE IN DOMINO SEMPER***

 (2) Hai dato texhash da root?
No.. per l'installazione basta scompattare i file..
Poi bisogna copiare i file in una cartella di tex..
e aggiornare quel file che ti ho detto..
ma mi sa che sbaglio sintassi..
Ecco le istruzioni..
xymtex2.doc
On-line document for XyMTeX in English
Copyright (C) 1993, 1996, 1998 by Shinsak Fujita. All rights reserved. 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
renamed and revised: xymtex1.doc
Copyright (C) 1993, 1996 by Shinsak Fujita. All rights reserved. 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
`XyMTeX' is a macro package for drawing chemical structural formulas. 
(1) Setting up 
    This package has been frozen with LHA.  Let the frozen package 
  (xymtex2.lzh) be placed in the b: directory.  To melt the frozen package 
  in the a:\tex directory, please input the following statement in the 
  command line of your display. 
     a:\tex>lha x b:\xymtex2
  Thereby, the directory <\xymtex> is automatically created as the 
  subdirectory of the a:\tex directory; and the following hierarchy of 
  directories and files is generated. 
  a---\tex---\xymtex --- hetaromh.sty, hetarom.sty, ccycle.sty, 
    |      |          |   chemstr.sty, carom.sty, lowcycl.sty, aliphat.sty, 
                      |   hcycle.sty, locant.sty, polymers.sty, chemist.sty
                      |   methylen.sty, fusering.sty
                      |
                      |   (dtx files)
                      |
                      |--\drvdvi---drv files, dvi files
                      |
                      |--\doc200--- xymtx200.tex, xymtx200.dvi,
                      |    xymyl.tex, xymadd.tex 
                      |    (other files for the document preparation)
                      |
                      |---xymtex2.doc (this document)
                      |
                      |---xymtex2.jpn (on-line document in Japanes)
                      |
                      |---readme2.doc (notes in English)
                      |
                      |---readme2.jpn (notes in Japanese)
   The package (sty) files in the \xymtex directory contains the macro 
  codes of XymTeX commands. The specification of XyMTeX commands and 
  examples of using these commands are included in the xymtex.dvi file of 
  the \doc directory. 
   The xymtx200.dvi file is a dvi file that is a manual for utilizing 
  XyMTeX (about 100 pages). The processed dvi file can be obtained in the
same 
  directory of this distribution.  It can be printed with an appropriate 
  printer driver (lips3dvi, dviprt, or others) and can be displayed with an 
  appropriate previewer (dviout, etc.). 
   The xymtx200.tex is the main file of the manuscript for creating the 
  xymtx200.dvi. The other tex files in the \doc200 directory are input files 
  which are read by the main file. 
(2) Designating a serach path 
  In order to set a search path for using XyMTeX, please add the directory 
  name to the TEXINPUTS line in \texmf.cnf, which is stored in the 
  \tex\texmf\web2c directory (for a standard distribution of LaTeX2e). 
  For example, you add 
   platex2e_inputs = .;$TEXMF/tex/platex2e//;$TEXMF/tex/latex2e//;
    $TEXMF/tex//;a:/tex/inputs//;
    a:/tex/chem//;a:/tex/xymtex//;a:/tex/opsty//
                  ~~~~~~~~~~~~~~~ <---- to be added 
(3) Writing your manuscript 
   Each command of XyMTeX can be used if you add the name of the 
   corresponding style file to the option list at the top of your 
   manuscript file, e.g. 
    \documentclass{article}
    \usepackage{epic,hetarom,hetaromh}
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  where the underlined names are XyMTeX package files containing your 
  requisite commands. If all of the XyMTeX commands are required, 
  the short-cut declaration 
    \documentclass{article}
    \usepackage{xymtex}
 
  can be used for simplicity. 
(4) Running LaTeX2e or pLaTeX2e
   You should use XyMTeX commands within LaTeX. 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%(END) 

Le istruzioni sono in formato Dos-Windows. Dovresti adattarle a Linux.
Comunque si parla di file sty, che in un normale sistema tetex vanno
copiate sotto una directory appositamente creata sotto la directory 
/usr/share/texmf/tex/latex, per esempio /usr/share/texmf/tex/latex/mystyle.
Dopodiché devi dare texhash da root.
Se non riesci provo io a installare il package e ti dico.


 g.
Ho copiato la cartella estratta con lha dall'archivio dentro:
/usr/share/texmf/tex/latex/
e poi dato il comando # texhash
Adesso funziona!!!! :D
Grazie mille!!
Dove hai trovato il comando texhash?
Ho cercato la documentazione su tetex nel mio sistema ma non la trovo..

 Ho cercato la documentazione su tetex nel mio sistema ma non la trovo..
Su molte Faq. Ad esempio vedi il paragrafo "Installing a new package" sulla
FAQ inglese (UK List of TeX Frequently Asked Questions on the Web).


 g.
Ok! Trovate, grazie