Nous sommes le Lun 21 Juil, 2025 13:08
Supprimer les cookies

installation d'un package personnel

Sur le logiciel libre en général ou un logiciel libre en particulier

Jeu 26 Jan, 2006 23:50

Bonsoir

voila mon petit probleme j'ai crée mon package afin de crée une bibliotheque de composant electronique

Code: Tout sélectionner
%% Informations générales
\NeedsTeXFormat{LaTeX2e}[1999/01/01]
\ProvidesPackage{schema}[2003/01/01]

%% Chargement des extensions
\Requireusepackage{pst-circ}
\Requireusepackage{pstcol}
\Requireusepackage{pstricks}
\Requireusepackage{array}
\Requireusepackage[a4paper,width=17cm]{geometry}
\Requireusepackage{circ}

%% Définition des commandes
\newcommand{\inverseur}
{
   \begin{figure}[ht]
   \begin{pspicture}(-1,-1)(6,5)
   %\psgrid[subgriddiv=1,griddots=10]
   %description des fils

   \pnode(0,4){A}
   \pnode(3,4){B}
   \pnode(2,3){C}
   \pnode(6,3.25){E}
   \pnode(2,1){D}
   \pnode(0,1){F}
   \pnode(6,1){H}
   \pnode(3,5){I}
   \pnode(6,5){J}
   %mise en place de l'aop

   \OA[ OAipluslabel =$i_+$,OAiminuslabel =$i_-$,OAioutlabel =$i_s$](B)(C)(E)
   \resistor[labeloffset=0,tensionlabel=$u1$,tensioncolor =black, tensionlabelcolor          =black](B)(A){$R1$}
   \resistor[labeloffset=0](I)(J){$R2$}

   %mise en place des fils des tensions et masse

   \ground(D)
   \ground(F)
   \ground(H)
   \wire(I)(B)
   \wire(J)(E)
   \wire(C)(D)
   \tension(F)(A){$Ue$}
   \tension(H)(E){$Us$}
   \end{pspicture}
   \end{figure}
}

%% Fin du package
\endinput


uen fois ceci écrit j'ai repris mis dans mon programme ceci:

Code: Tout sélectionner
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{pst-circ}
\usepackage{pstcol}
\usepackage{pstricks}
\usepackage{array}
\usepackage[a4paper,width=17cm]{geometry}
\usepackage{circ}
\usepackage{schema}


et dans le coprs de mon programme

\inverseur

voici mon fichier log:


This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2) (format=pdflatex 2005.6.7) 26 JAN 2006 23:48
entering extended mode
%&-line parsing enabled.
(e:/programme/TeXLive/texmf/web2c/cp8bit.tcx)
**D:/essai*cricuit/inverseur.tex
(d:/essai cricuit/inverseur.tex{e:/programme/TeXLive/texmf-var/pdftex/config/pd
ftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7j> and hyphenation patterns for english, dumylang, nohyphenation, fr
ench, basque, loaded.
(e:/programme/TeXLive/texmf/tex/latex/extsizes/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(e:/programme/TeXLive/texmf/tex/latex/base/size12.clo
File: size12.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(e:/programme/TeXLive/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package

(e:/programme/TeXLive/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 38.
))
(e:/programme/TeXLive/texmf/tex/latex/pst-circ/pst-circ.sty
Package: pst-circ 2002/09/21 package wrapper for PSTricks pst-circ.tex

(e:/programme/TeXLive/texmf/tex/generic/pst-circ/pst-circ.tex
`pst-circ' v1.2,(Original idea: A.Premoli I.Maio,Design: M.Luque,Code: C.Jorsse
n, H.Voss) (e:/programme/TeXLive/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v97 patch 14 <1999/12/23> (tvz)
\pst@dima=\dimen103
\pst@dimb=\dimen104
\pst@dimc=\dimen105
\pst@dimd=\dimen106
\pst@dimg=\dimen107
\pst@dimh=\dimen108
\pst@hbox=\box26
\pst@boxg=\box27
\pst@cnta=\count87
\pst@cntb=\count88
\pst@cntc=\count89
\pst@cntd=\count90
\pst@cntg=\count91
\pst@cnth=\count92
\pst@toks=\toks14
(e:/programme/TeXLive/texmf/tex/generic/pstricks/pstricks.con)
\psunit=\dimen109
\psxunit=\dimen110
\psyunit=\dimen111
\pslinewidth=\dimen112
\pst@customdefs=\toks15
\pslinearc=\dimen113
\everypsbox=\toks16
\psframesep=\dimen114
\pslabelsep=\dimen115
\theoverlaybox=\box28
)
(e:/programme/TeXLive/texmf/tex/generic/pstricks/pst-node.tex
v97 patch 11, 2000/11/09
\psrow=\count93
\pscol=\count94
\psmatrixcnt=\count95
\psrowsep=\skip43
\pscolsep=\skip44
)
(e:/programme/TeXLive/texmf/tex/generic/pstricks/pst-key.tex
keyval: 1998/07/23 v1.11 key=value parser (DPC)
)
(e:/programme/TeXLive/texmf/tex/generic/pstricks/multido.tex
v1.4, 93/01/14 <tvz>
\multido@count=\count96
\multidocount=\count97
\multido@stuff=\toks17
)
\Pst@circ@position=\dimen116
\pst@circ@count@i=\count98
\pst@circ@count@ii=\count99
\pst@circ@count@iii=\count100
))
(e:/programme/TeXLive/texmf/tex/latex/graphics/pstcol.sty
Package: pstcol 2001/06/20 v1.1 PSTricks color colompatibility (DPC)

(e:/programme/TeXLive/texmf/tex/latex/pstricks/pstricks.sty
Package: pstricks 1997/03/25 package wrapper for PSTricks pstricks.tex

(e:/programme/TeXLive/texmf/tex/generic/pstricks/pstricks.tex))
(e:/programme/TeXLive/texmf/tex/latex/graphics/color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)

(e:/programme/TeXLive/texmf/tex/latex/texlive/color.cfg
File: color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 125.

(e:/programme/TeXLive/texmf/tex/latex/pdftexdef/pdftex.def
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
\Gread@gobject=\count101
))
! Undefined control sequence.
<recently read> \c@lor@to@ps

l.41 \psset@bordercolor{white}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @white\endcsname \@@
}
l.41 \psset@bordercolor{white}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.42 \psset@doublecolor{white}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @white\endcsname \@@
}
l.42 \psset@doublecolor{white}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.43 \psset@linecolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @black\endcsname \@@
}
l.43 \psset@linecolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.44 \psset@fillcolor{white}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @white\endcsname \@@
}
l.44 \psset@fillcolor{white}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.45 \psset@hatchcolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @black\endcsname \@@
}
l.45 \psset@hatchcolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.46 \psset@gridcolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @black\endcsname \@@
}
l.46 \psset@gridcolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.47 \psset@gridlabelcolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...\string \color @black\endcsname \@@
}
l.47 \psset@gridlabelcolor{black}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.48 \psset@shadowcolor{darkgray}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...ring \color @darkgray\endcsname \@@
}
l.48 \psset@shadowcolor{darkgray}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.49 \psset@subgridcolor{gray}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ... \string \color @gray\endcsname \@@
}
l.49 \psset@subgridcolor{gray}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

) (e:/programme/TeXLive/texmf/tex/latex/tools/array.sty
Package: array 1998/05/13 v2.3m Tabular extension package (FMi)
\col@sep=\dimen117
\extrarowheight=\dimen118
\NC@list=\toks18
\extratabsurround=\skip45
\backup@length=\skip46
)
(e:/programme/TeXLive/texmf/tex/latex/geometry/geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
\Gm@cnth=\count102
\Gm@cntv=\count103
\c@Gm@tempcnt=\count104
\Gm@bindingoffset=\dimen119
\Gm@wd@mp=\dimen120
\Gm@odd@mp=\dimen121
\Gm@even@mp=\dimen122
\Gm@dimlist=\toks19

(e:/programme/TeXLive/texmf/tex/latex/geometry/geometry.cfg))
(e:/programme/TeXLive/texmf/tex/latex/circ/circ.sty
Package: circ 1997/04/23 v1.0d for typeset circuit diagrams
\X*max=\dimen123
\X*min=\dimen124
\*X*=\dimen125
\*Y*=\dimen126
\**X=\dimen127
\**Y=\dimen128
\***X=\dimen129
\***Y=\dimen130
\*bbox=\box29
\box*=\box30
\ic*=\dimen131
\ht*=\dimen132
\wd*=\dimen133
\dp*=\dimen134
\cc*=\count105
\*spc=\dimen135
\ldd*=\toks20
\rud*=\toks21
\llpos*=\toks22
\ldpos*=\toks23
\rlpos*=\toks24
\rdpos*=\toks25
\ulpos*=\toks26
\udpos*=\toks27
\dlpos*=\toks28
\ddpos*=\toks29
\cnta*=\count106
\cntb*=\count107
\name*=\toks30
\ld*pin=\toks31
\ru*pin=\toks32
\m*pin=\toks33
\rmacros=\toks34
\outerspace=\dimen136
\*Ilist=\toks35
\*Olist=\toks36
\pin*spc=\dimen137
\pin*ind=\dimen138
\io*ind=\dimen139
\mid*ind=\dimen140
\pinnum*spc=\dimen141
\CIRCfinit=\toks37
)

! LaTeX Error: File `schema.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
<read *>

l.10 \pagestyle
{empty}^^M
*** (cannot \read from terminal in nonstop modes)


Here is how much of TeX's memory you used:
2809 strings out of 95317
34779 string characters out of 1187944
115642 words of memory out of 1571127
5897 multiletter control sequences out of 10000+50000
4702 words of font info for 16 fonts, out of 1000000 for 2000
14 hyphenation exceptions out of 1000
24i,0n,19p,224b,37s stack positions out of 5000i,500n,6000p,200000b,40000s
0 PDF objects out of 300000
0 named destinations out of 131072
1 words of extra memory for PDF output out of 65536
No pages of output.
noir_desir

Messages : 346

Ven 27 Jan, 2006 00:08

merci
linol

Messages : 436

Ven 27 Jan, 2006 00:18

j'ai pas tous compris

par contre pour le log je me suis trompé
j'ai compilé en pdf directement donc voici le log pour le .ps (encore une fois désolé)

Code: Tout sélectionner
! LaTeX Error: File `schema.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
<read *>
         
l.10 \pagestyle
               {empty}^^M
*** (cannot \read from terminal in nonstop modes)
noir_desir

Messages : 346

Ven 27 Jan, 2006 00:30

salut
J'ai résolu le problème d'une part je me suis trompé sur le la commande \RequirePackage
Je pensais (hormis l'erreur de syntaxe) que le logiciel ne tenais pas compte des majuscules.
ça à l'air de marché
JE remercie ceux qui mon aidée pour l'autre message.
voila bon a fermé
:-)
noir_desir

Messages : 346

Ven 27 Jan, 2006 00:36

Essaie de changer la commande \Requireusepackage par \RequirePackage. Je pense que le problème vient de là.

EDIT: trop tard ... Mais sinon, ma question reste quand même valable ;-)

Est-ce que tu as créé ce fichier juste pour définir la commande \inverseur, qui va te dessiner la figure? Si oui, tu peux aussi mettre le code de la figure dans un fichier que tu apelles par exemple inverseur.tex et l'insérer dans le document via la commande \input{inverseur.tex} C'est ce que je fais d'habitude pour garder le texte de mes documents plus "propre"
hjs

Messages : 532

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit