Précédent   Forum des professionnels en informatique > Autres langages > Autres langages > Latex
Latex Forum d'entraide sur LaTeX. Avant de poster -> FAQ LaTeX
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 22/01/2012, 18h23   #1
Invité de passage
 
Homme mokrane mahdi
Étudiant
Inscription : octobre 2011
Messages : 22
Détails du profil
Informations personnelles :
Nom : Homme mokrane mahdi
Localisation : Algérie

Informations professionnelles :
Activité : Étudiant
Secteur : Enseignement

Informations forums :
Inscription : octobre 2011
Messages : 22
Points : 4
Points : 4
Par défaut Modèle LaTeX inexecutable

Salut tout le monde!

Je viens de publier un article dans un journal international, j'ai télécharger le modèle LaTeX utilisé par le journal mais je n'arrive pas l’exécuter, en effet, on m'envoie un message message d'erreur que je n'arrive pas à comprendre. Donc, voilà le code si quelqu'un puisse bien m'aider j'en serai très reconnaissant!

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
\documentclass[mathpazo]{article}
%%%%% journal  info %%%%%%%%%
\setcounter{page}{1}
\renewcommand\thisnumber{1}
\renewcommand\thisyear {200x}
\renewcommand\thismonth{xxx}
\renewcommand\thisvolume{xx}
%%%%%%%%   end  %%%%%%%%%%%%%

%%%%% author macros %%%%%%%%%
% place your own macros HERE
%%%%% end %%%%%%%%%

\begin{document}

%%%%% title and author(s):
% \markboth{Author(s)}{Short Title}
% \title{Title}

\markboth{Authors}{Short Title}
\title{Here is the Title}

% single author:
% \author[AUTHOR]{AUTHOR\corrauth}
% \address{address of AUTHOR}
% \email{{\tt email address of AUTHOR} (AUTHOR)}
\author[Only Author]{Only Author\corrauth}
\address{School of Mathematical Sciences, Beijing International University,
Beijing 12345, China.}
\email{{\tt email@address} (Only Author)}

% multiple authors:
% Please mark \corrauth after the name of the corresponding author.
% different addresses:
%\author[AUTHOR1 and AUTHOR2]{AUTHOR1\affil{1}\comma\corrauth and AUTHOR2\affil{2}}
%\address{\affilnum{1}\ address of AUTHOR1\\
%\affilnum{2}\ address of AUTHOR2}
%
%same address:
%\author[AUTHOR1, AUTHOR2 and AUTHOR3]{AUTHOR1, AUTHOR2\corrauth and AUTHOR3}
%\address{address of AUTHOR1, AUTHOR2 and AUTHOR3}
%
%\emails{{\tt email of AUTHOR1} (AUTHOR1), {\tt email of AUTHOR2} (AUTHOR2), {\tt email of AUTHOR3} (AUTHOR3)}
%

%%%%% Begin Abstract %%%%%%%%%%%
\begin{abstract}
The abstract should provide a brief summary of the main findings of
the paper. The abstract should not be too long. Normally, it should
not be longer than half page.
\end{abstract}
%%%%% end %%%%%%%%%%%

%%%%% Keywords %%%%%%%%%%%
\keywords{Moving mesh method, conservative interpolation, iterative
method, $l^2$ projection.}

%%%% AMS subject classifications %%%%
\ams{65M10, 78A48}

%%%% maketitle %%%%%
\maketitle

%%%% Start %%%%%%
\section{Introduction}
\label{sec1} In the past two decades, there has been important
progress in developing adaptive mesh methods for PDEs. Mesh
adaptivity is usually of two types in form: local mesh refinement
and moving mesh method.

\section{Preparation of manuscript}
\label{sec2} The Title Page should contain the article title,
authors' names and complete affiliations, footnotes to the title,
and the postal address for manuscript correspondence (including
e-mail address and fax numbers). The Abstract should provide a brief
summary of the main findings of the paper.

References should be cited in the text by a number in square brackets. Literature cited should appear on a
separate page at the end of the article and should be styled and punctuated using standard abbreviations for
journals (see Chemical Abstracts Service Source Index, 1989). For unpublished lectures of symposia,
include title of paper, name of sponsoring society in full, and date. Give titles of unpublished reports
with "(unpublished)" following the reference. Only articles that have been published or are in press
should be included in the references. Unpublished results or personal communications should be cited
as such in the text.
Please note the sample at the end of this paper.

Equations should be typewritten whenever possible and the number
placed in parentheses at the right margin. Reference to equations
should use the form "Eq.~(1.1)" or simply "(1.1)." Superscripts and
subscripts should be typed or handwritten clearly above and below
the line, respectively.

Figures should be in a finished form suitable for publication. Number figures consecutively with Arabic numerals.
Lettering on drawings should be of professional quality or generated by high-resolution computer graphics and
must be large enough to withstand appropriate reduction for publication.


%%%% Acknowledgments %%%%%%%%
\section*{Acknowledgments}
The author would like to thank the referees for the helpful
suggestions.

%%%% Bibliography  %%%%%%%%%%
\begin{thebibliography}{99}
\bibitem{Goossens} Michel Goossens, Frank Mittelbach and Alexander Samarin,
The LaTeX Companion, Addison-Wesley, 1994.
\bibitem{Kopka}Helmut Kopka and Patrick W.~Daly, A Guide to LaTeX,
Addison-Wesley, 1999.
\bibitem{Knuth}Donald E. Knuth, The TeXbook,
Addison-Wesley, 1992.
\bibitem{Other}A.~N.~Other, A demonstration of the LaTeX2e class file for
the International Journal for Numerical Methods in Engineering,
Int.~J.~Numer.~Meth.~Engng,  00 (2000), 1-6.
\bibitem{Yin}Z.~Yin, H.~J.~H.~Clercx and D.~C.~Montgomery,
An easily implemented task-based parallel scheme for the Fourier
pseudospectral solver applied to 2D Navier-Stokes turbulence,
Computers \& Fluids, 33 (2004), 509-520.
\end{thebibliography}

\end{document}
Merci d'avance!
mmamokrane est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/01/2012, 19h09   #2
Membre confirmé
 
Homme
Étudiant
Inscription : octobre 2011
Messages : 242
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Produits et services télécom et Internet

Informations forums :
Inscription : octobre 2011
Messages : 242
Points : 289
Points : 289
hum...si tu a télécharger un fichier, c'est surement un .cls, donc un fichier de classe.

Pour faire au plus simple place le là où est ton documents courant, et appel le comme ceci :
Code :
1
2
3
4
\documentclass[mathpazo]
\begin{document}
\end{document}
enfin, si le nom de ton fichier est bien "mathpazo.cls"
Mr Mi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 16h26   #3
Invité de passage
 
Homme mokrane mahdi
Étudiant
Inscription : octobre 2011
Messages : 22
Détails du profil
Informations personnelles :
Nom : Homme mokrane mahdi
Localisation : Algérie

Informations professionnelles :
Activité : Étudiant
Secteur : Enseignement

Informations forums :
Inscription : octobre 2011
Messages : 22
Points : 4
Points : 4
Bonjour tout le monde!

Merci, mais je crois que cela n'a pas marché, je ne sais pas, il m'envoie le message suivant
Code :
1
2
3
l.4 renewcommand\thisnumber
                                   {1}
?
Ce qui me ramène à penser que c'est la ligne 4 qui est erronée, quoi que je ne sais pas quoi faire en revanche..!
Je crois que ça devient de plus en plus compliqué, si quelqu'un puisse bien m'aider!
mmamokrane est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 16h46   #4
Membre Expert
 
Avatar de unbonpetit
 
Enseignant
Inscription : avril 2009
Messages : 1 749
Détails du profil
Informations professionnelles :
Activité : Enseignant

Informations forums :
Inscription : avril 2009
Messages : 1 749
Points : 1 911
Points : 1 911
Poste le fichier de classe que l'on voit de quoi il s'agit !
unbonpetit est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 17h04   #5
Invité de passage
 
Homme mokrane mahdi
Étudiant
Inscription : octobre 2011
Messages : 22
Détails du profil
Informations personnelles :
Nom : Homme mokrane mahdi
Localisation : Algérie

Informations professionnelles :
Activité : Étudiant
Secteur : Enseignement

Informations forums :
Inscription : octobre 2011
Messages : 22
Points : 4
Points : 4
Bonjour tout le monde!

Bon, en fait, deux fichiers sont fournis; un fichier aamm.cls qui est le suivant:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
% aamm.cls -- For Advances in Applied Mathematics and Mechanics
% This class file is made available for use by authors who wish to
% prepare an article for publication in the Advances in Applied Mathematics and Mechanics. 
% The user may not exploit any part of the class file commercially.
%
% This class file is provided on an 'as is' basis. Authors are not allowed
% to change this file.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{aamm}
      [2008/09/10 v1.0 Class for Advances in Applied Mathematics and Mechanics]

% 

\LoadClass[twoside,11pt]{article}

\RequirePackage{graphicx}
\RequirePackage{amsfonts,amssymb,amsbsy,amsmath,amsthm}
\RequirePackage{ifthen}
\RequirePackage{cite}

\newboolean{PAZO@load} % set true for mathpazo load
\newboolean{PG@odd}  % set true for first page number is odd
\newboolean{REV@art} % set true for Review Article
\newboolean{DRAFT@copy} % set true for Draft copy
\newboolean{ONE@page} % set true for the first page end at abstract
\newboolean{START@even} % set true for the book first page is even
\setboolean{PG@odd}{true}
\setboolean{REV@art}{false}
\setboolean{DRAFT@copy}{false}
\setboolean{ONE@page}{false}
\setboolean{START@even}{false}
\setboolean{PAZO@load}{false}
\DeclareOption{odd}{\setboolean{PG@odd}{true}}
\DeclareOption{even}{\setboolean{PG@odd}{false}}
\DeclareOption{review}{\setboolean{REV@art}{true}}
\DeclareOption{draft}{\setboolean{DRAFT@copy}{true}}
\DeclareOption{onepage}{\setboolean{ONE@page}{true}}
\DeclareOption{starteven}{\setboolean{START@even}{true}}
\DeclareOption{mathpazo}{\setboolean{PAZO@load}{true}}

\ProcessOptions

% general setting
\ifthenelse{\boolean{PAZO@load}}
{\RequirePackage{mathpazo}}
{}
\headsep=5mm
\headheight=5mm
\topmargin=0pt
\oddsidemargin=0pt
\evensidemargin=0pt
\textheight=205truemm
\textwidth=145truemm

\setlength{\oddsidemargin}{8mm}
\setlength{\evensidemargin}{-2mm}
\ifthenelse{\boolean{START@even}}
{ \setlength{\oddsidemargin}{-2mm} 
  \setlength{\evensidemargin}{8mm} }
{}

\setlength\footnotesep{3.5\p@}
\footskip=8truemm

\renewcommand{\baselinestretch}{1.0}
\renewcommand{\arraystretch}{1.0}
\abovedisplayskip=10pt plus 9pt minus 2.5pt%
\belowdisplayskip=10pt plus 9pt minus 2.5pt

\newlength{\titleright}
\setlength{\titleright}{2.5cm}

\AtBeginDocument{
  \immediate\write\@auxout{\string
  \newlabel{FirstPage}{{}{\thepage}}}
}

\AtEndDocument{
  \clearpage\addtocounter{page}{-1}
  \immediate\write\@auxout{\string
  \newlabel{LastPage}{{}{\thepage}}}
  \addtocounter{page}{1}
}

\newcommand\journalname{Advances in Applied Mathematics and Mechanics}
\newcommand\thisnumber{x}
\newcommand\thisyear {20xx}
\newcommand\thismonth{XXXX}
\newcommand\thisvolume{x}
\newcommand\doi{xxxx}

\def\thispagestart{\pageref{FirstPage}}
\def\thispageend{\pageref{LastPage}}

%\def\ps@firstpage{\ps@empty
%  \def\@oddfoot{\footnotesize http://www.global-sci.org/aamm \hfil \thepage \hfil 
%                \copyright \thisyear\  Global Science Press}
%  \let\@evenfoot\@oddfoot
%%  \def\@oddhead{\usebox{\lheadbox} \hfil \usebox{\rheadbox}
%  \def\@oddhead{
%      \parbox{9cm}{\footnotesize Advances in Applied Mathematics and Mechanics 
%\\ Vol.~{\bf\thisvolume}, No.~\thisnumber, pp.~\thispagestart-\thispageend}
%  \hfil
%      \parbox{4cm}{\footnotesize Adv. Appl. Math. Mech.  
%\\ \thismonth \  \thisyear}
%  }
%  \let\@evenhead\@oddhead % in case an article starts on a left-hand page
%  \let\@mkboth\@empty
%}

\def\ps@firstpage{\ps@empty
%  \def\@oddfoot{\footnotesize http://www.global-sci.org/aamm \hfil \thepage \hfil 
%                \copyright \thisyear\  Global Science Press}
\def\@oddfoot{\footnotesize http://www.global-sci.org/aamm \hfil \thepage \hfil 
                \copyright \thisyear\  Global Science Press} 
  \let\@evenfoot\@oddfoot
%  \def\@oddhead{\usebox{\lheadbox} \hfil \usebox{\rheadbox}
  \def\@oddhead{
      \parbox{9cm}{\footnotesize Advances in Applied Mathematics and Mechanics 
%\\ Adv. Appl. Math. Mech., Vol.~{\bf\thisvolume}, No.~\thisnumber, pp.~\thispagestart-\thispageend}
\\ Adv. Appl. Math. Mech., Vol.~{\bf\thisvolume}, No.~\thisnumber, pp.~xx-xx}
  \hfil
      \parbox{4.5cm}{\footnotesize DOI:~\doi 
\\  \thismonth \  \thisyear}  
%  
%  
%      \parbox{\textwidth}{\footnotesize Advances in Applied Mathematics and Mechanics 
%      \hfill \parbox{4cm}{\footnotesize Commun.~Comput.~Phys. 
%\\ \thismonth \  \thisyear}
%\\ Adv. Appl. Math. Mech., Vol.~{\bfseries\thisvolume}, No.~\thisnumber, pp.~\thispagestart-\thispageend~(\thisyear)}
}
  \let\@evenhead\@oddhead % in case an article starts on a left-hand page
  \let\@mkboth\@empty
}

\def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
%      \def\@oddhead{\footnotesize \thepage\hfil\leftmark}%
%      \def\@evenhead{\footnotesize \rightmark\hfil\thepage}%
\ifthenelse{\boolean{PG@odd}}
      { \def\@evenhead{\footnotesize \thepage\hfil\leftmark}   % The first page number is odd
        \def\@oddhead{\footnotesize \rightmark\hfil\thepage} } %
      { \def\@oddhead{\footnotesize \thepage\hfil\leftmark}    % The first page number is even
        \def\@evenhead{\footnotesize \rightmark\hfil\thepage} }%
      \let\@mkboth\markboth
}

\renewcommand\maketitle{\par
   \begingroup
   \global\@topnum\z@
   \@maketitle
   \thispagestyle{firstpage}
   \endgroup
   \global\let\thanks\relax
   \global\let\maketitle\relax
   \global\let\@maketitle\relax
   \global\let\@thanks\@empty
   \global\let\@author\@empty
   \global\let\@date\@empty
   \global\let\@title\@empty
   \global\let\title\relax
   \global\let\author\relax
   \global\let\date\relax
   \global\let\and\relax
}

%
\renewcommand\@maketitle{
  \normalfont\normalsize
  \global\topskip8\p@\relax % 5.5pc   "   "   "     "     "
  \vfil\null
%  \vskip 30\p@
  \@settitle
  \ifx\@empty\author 
     \else 
         \@setauthor 
         \markboth
          {\ifx\@empty\shortauthor {\footnotesize\@author}
\else {\footnotesize \noexpand\shortauthor} \fi
{\footnotesize / Commun.~Comput.~Phys., {\bf \thisvolume} (\thisyear), pp.~\thispagestart-\thispageend } 
}
          {\ifx\@empty\shortauthor {\footnotesize\@author} \else {\footnotesize \noexpand\shortauthor} 
{\footnotesize / Commun.~Comput.~Phys., {\bf \thisvolume} (\thisyear), pp.~\thispagestart-\thispageend } 
\fi}
%          {\ifx\@empty\shorttitle {\footnotesize\@title} \else {\footnotesize \shorttitle} \fi}
%          {\ifx\@empty\shortauthor {\footnotesize\@author} \else {\footnotesize \shortauthor} \fi}
  \fi
  \ifx\@empty\@address \else \@setaddress \fi
\noindent\hrulefill
  \@setabstract 
  \vspace{-12pt}
  \ifx\@empty\@both\else \@setboth\fi
  \ifx\@empty\@ams\else \@setams\fi
  \ifx\@empty\@pac\else \@setpac\fi
  \ifx\@empty\@pacs\else \@setpacs\fi
  \ifx\@empty\@keywords\else \@setkeywords\fi
  \ifthenelse{\boolean{ONE@page}}
  {}
  {\noindent\hrulefill}
  \normalsize
}

% footnote for corr author


%\setlength{\skip\footins}{2.5pc}
\renewcommand{\footnoterule}{\noindent\rule{5pc}{0.25pt}\vspace*{6pt}}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\long\def\@makefntext#1{\parindent 1em
\noindent{$\m@th^{\@thefnmark}$}#1}

%\def\corraddr#1{\footnotetext[1]{Correspondence to: #1}\stepcounter{footnote}}
\def\corraddr#1{} % do not need address anymore!


\def\email#1{\def\@email{#1}}
\let\@email=\@empty
\def\@setemail{{\it Email:} \@email}

\def\emails#1{\def\@emails{#1}}
\let\@emails=\@empty
\def\@setemails{{\it Email:} \@emails}

\def\URL#1{\def\@URL{#1}}
\let\@URL=\@empty
\def\@setURL{{\it URL:} {\tt \@URL}}

\def\corrauth{\footnotemark[1]\footnotetext[1]{Corresponding author.\\
\ifx\@empty\@URL\else \@setURL\\ \fi
 \ifx\@empty\@email\else \@setemail\fi
 \ifx\@empty\@emails\else \@setemails\fi}\stepcounter{footnote}}



\def\affilnum#1{${}^{#1}$}
\def\affil#1{${}^{#1}$}
\def\comma{$^{\textrm{,}}$}

%%%%%%%%%%%%%%%%%%%%%%%%%%

% define environment for title and author
\newenvironment{titquote}{\begin{list}{}
{\setlength{\leftmargin}{0pt}
 \setlength{\rightmargin}{\titleright}
 \setlength{\topsep}{6pt}
 \setlength{\parskip}{0pt}}
 \item[]}{\end{list}}
%
% Article titles
%
% Usage: \title[Short title]{Full title}
% [Short title] is optional; use where title is too long
% or contains footnotes, 50 characters maximum
%
\renewcommand*{\title}[2][]{\gdef\shorttitle{#1}\gdef\@title{#2}}
\let\shorttitle=\empty
\def\@settitle{
%  \begin{center}%
  %\baselineskip14\p@\relax
  \begin{titquote}
  \Large  \bfseries
  \ifthenelse{\boolean{REV@art}}
  {  \item[]
     {\LARGE R}{\large EVIEW }{\LARGE A}{\large RTICLE} } % For Review Article
  {}
  \item[]
  \@title
%  \end{center}%
  \end{titquote}
}
%
% List of authors
%
% Usage \author[Short form]{List of all authors}
% The short form excludes footnote symbols linking authors to addresses
% and is used for running heads in printed version (but not on preprints)
%
\let\shortauthor=\empty
\renewcommand*{\author}[2][?]{
     \gdef\shortauthor{?} 
     \gdef\@author{#2}
   \ifthenelse{\equal{#1}{?}}
     { \gdef\shortauthor{\let\comma=\empty \let\corrauth=\empty \renewcommand{\affil}[1]{} #2} }
     { \gdef\shortauthor{#1}}
}
\def\@setauthor{%\begin{center}%
  %\bfseries
  \begin{titquote}
  \large 
%  \item[]
  \@author
  \end{titquote}
%  \end{center}%
}

%
% Affiliation (authors address)
%
% Usage: \address{Address of first author}
%        \address{Address of second author}
% Use once for each address, use symbols \dag \ddag \S \P $\|$
% to connect authors with addresses
%
\def\address#1{\def\@address{#1}}
\let\@address=\@empty
\def\@setaddress{\vspace{-12pt}
   \begin{titquote}
   %\rm\small \@address
   \rm\it\small \@address
   \end{titquote}
}
%
\def\keywords#1{\def\@keywords{#1}}
\let\@keywords=\@empty
\def\@setkeywords{
     \addtolength{\topsep}{-6pt}
     \begin{trivlist}
     %\item[]\rm\small {\sc\small Key words}: \@keywords
     \item[]\rm\small {\bf\small Key words}: \@keywords
     \end{trivlist}
}
%
%
% AMS or PACS
% Usage: \both{57.XX, 58.XX}
%
\def\both#1{\def\@both{#1}}
\let\@both=\@empty
\def\@setboth{
     \addtolength{\topsep}{-7pt}
     \begin{trivlist}
     \item[]\rm\small {\bf \small AMS subject classifications or PACS}: \@both
     \end{trivlist}
}
%
% American Mathematical Society Classification Numbers
% Usage: \ams{57.XX, 58.XX}
%
\def\ams#1{\def\@ams{#1}}
\let\@ams=\@empty
\def\@setams{
     \addtolength{\topsep}{-6.5pt}
     \begin{trivlist}
     \item[]\rm\small {\bf \small AMS subject classifications}: \@ams
     \end{trivlist}
}
%
% Physics & Astronomy Classification Numbers (more than one)
% Usage \pacs{31.10, 31.20T}
%
\def\pac#1{\def\@pac{#1}}
\let\@pac=\@empty
\def\@setpac{
     \addtolength{\topsep}{-6.5pt}
     \begin{trivlist}
     \item[]\rm\small {\bf\small PACS}: \@pac
     \end{trivlist}
}
%
% Physics & Astronomy Classification Numbers (2006) (more than one)
% Usage \pacs{31.10, 31.20T}
%
\def\pacs#1{\def\@pacs{#1}}
\let\@pacs=\@empty
\def\@setpacs{
     \addtolength{\topsep}{-6.5pt}
     \begin{trivlist}
     \item[]\rm\small {\bf\small PACS (2006)}: \@pacs
     \end{trivlist}
}
%
\newbox\abstractbox
%\renewenvironment{abstract}{%
%      \vspace{6pt plus3pt minus3pt}
%      \begin{quote}
%%      \item[]{\bfseries \abstractname.}\quad\rm\ignorespaces}
%      \rm\ignorespaces}
%      {\end{quote}\if@titlepage\newpage\else\vspace{0\p@ plus0\p@}\fi}
\renewenvironment{abstract}{%
  \ifx\maketitle\relax
    \ClassWarning{\@classname}{Abstract should precede
      \protect\maketitle\space in AMS documentclasses; reported}%
  \fi
  \global\setbox\abstractbox=\vtop \bgroup
    \normalfont\small
    \list{}{\labelwidth\z@
      % comment in v1.2
      % \leftmargin6pc %\rightmargin\leftmargin
      \leftmargin4pc %\rightmargin\leftmargin
       \itemindent\z@
      \parsep\z@ \@plus\p@
      \let\fullwidthdisplay\relax
    }%
    % v change Abstract from sc -> bf
    %\item[\hskip\labelsep\scshape\abstractname.]%
    \item[\hskip\labelsep\bfseries\abstractname.]%
}{%
  \endlist\egroup
  \ifx\@setabstract\relax \@setabstracta \fi
}
\def\@setabstract{\@setabstracta \global\let\@setabstract\relax}
\def\@setabstracta{%
  \ifvoid\abstractbox
  \else
    \skip@6\p@ \advance\skip@-\lastskip
    \advance\skip@-\baselineskip \vskip\skip@
    \box\abstractbox
    \prevdepth\z@ % because \abstractbox is a vtop
  \fi
}

% Define an environment for algorithms.
\newcounter{Algctr}[section]
\renewcommand{\theAlgctr}{\thesection.\arabic{Algctr}}
\newenvironment{FloatAlgo}[1]{%
  \refstepcounter{Algctr}%
  \begin{table}[!h]
    \noindent{\sf \footnotesize  Algorithm~\theAlgctr}: {\sf \footnotesize  #1} \\ %
    \rule{\textwidth}{2pt}
 %   \nopagebreak%
    \small\sf %
   }
   {
    \vspace{-0.4cm}
    \rule{\textwidth}{2pt}
    \end{table}%
    \normalsize%
  }   


\def\proofBox{\mbox{ }\rule[0pt]{1.5ex}{1.5ex}}
%========================= Floats, tables, figures =================
%\renewcommand{\floatpagefraction}{1}
%\floatsep=10pt plus 2.5pt minus 1pt
%\textfloatsep=10pt plus 2.5pt minus 1pt
%\intextsep=10pt plus 2.5pt minus 1pt
%%\doublerulesep=0pt
%
%\abovecaptionskip=3pt
%\belowcaptionskip=5pt
%
%%
%% Insert \small and remove colon after table/figure number
%\long\def\@makecaption#1#2{%
%  \vskip\abovecaptionskip
%  \small
%  \sbox\@tempboxa{#1 #2}%
%  \ifdim \wd\@tempboxa >\hsize
%    #1 #2\par
%  \else
%    \global \@minipagefalse
%    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
%  \fi
%  \vskip\belowcaptionskip}
%
%\@addtoreset{table}{section}
%\renewcommand\thetable{\thesection.\arabic{table}}
%\def\fnum@table{\tablename\nobreakspace\thetable:}
%
%\@addtoreset{figure}{section}
%\renewcommand\thefigure{\thesection.\arabic{figure}}
%\renewcommand\figurename{Fig.}
%\def\fnum@figure{\figurename\nobreakspace\thefigure.}

\renewcommand{\floatpagefraction}{1}
\floatsep=10pt plus 2.5pt minus 1pt
\textfloatsep=10pt plus 2.5pt minus 1pt
\intextsep=10pt plus 2.5pt minus 1pt
%\doublerulesep=0pt

\abovecaptionskip=3pt
\belowcaptionskip=5pt

%%
%% Insert \small and remove colon after table/figure number
%\long\def\@makecaption#1#2{%
%  \vskip\abovecaptionskip
%  \small
%  \sbox\@tempboxa{#1 #2}%
%  \ifdim \wd\@tempboxa >\hsize
%    #1 #2\par
%  \else
%    \global \@minipagefalse
%    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
%  \fi
%  \vskip\belowcaptionskip}
  
% caption in small font
\long\def\@makecaption#1#2{%
  \renewcommand{\baselinestretch}{0.5}\rm
  \vskip\abovecaptionskip
  \sbox\@tempboxa{\sf \footnotesize #1: #2}%
  \ifdim \wd\@tempboxa >\hsize
    {\sf \footnotesize #1: #2}\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip
  \renewcommand{\baselinestretch}{1}\rm
}  
  

%\@addtoreset{table}{section}
%\renewcommand\thetable{\thesection.\arabic{table}}
%\def\fnum@table{\tablename\nobreakspace\thetable:}
%
%\@addtoreset{figure}{section}
%\renewcommand\thefigure{\thesection.\arabic{figure}}
%\renewcommand\figurename{Fig.}
%\def\fnum@figure{\figurename\nobreakspace\thefigure.}

%======================== Section ===============================
% original article parameter
%\newcommand\section{\@startsection {section}{1}{\z@}%
%                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
%                                   {2.3ex \@plus.2ex}%
%                                   {\normalfont\Large\bfseries}}
%\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
%                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
%                                     {1.5ex \@plus .2ex}%
%                                     {\normalfont\large\bfseries}}
%\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
%                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
%                                     {1.5ex \@plus .2ex}%
%                                     {\normalfont\normalsize\bfseries}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-2ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}

%======================== Bibliography ===============================
\renewcommand\@openbib@code{\parsep \z@ \itemsep \z@ \parskip \z@ \small}

%======================== Equation ===================================
\@addtoreset{equation}{section}
\renewcommand\theequation{\thesection.\arabic{equation}}

%======================== Theorem, Lemma, etc., and proof ============
%\def\@begintheorem#1#2{\trivlist
%   \item[\hskip \labelsep{\bfseries #1\ #2.}]\itshape}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{condition}{Condition}[section]
\newtheorem{example}{Example}[section]
\newtheorem{conclusion}{Conclusion}[section]
\newtheorem{algorithm}{Algorithm}[section]
\newtheorem{assumption}{Assumption}[section]
\renewenvironment{proof} {\par{\it Proof.} \ignorespaces} {\par\medskip}

%===========================================================================


\pagestyle{headings}

\renewcommand\markboth[2]{%
  \def\@evenhead{\thepage\hfill {\footnotesize\rm #1}}%
  \def\@oddhead{{\footnotesize\rm #2}\hfill \thepage}%
}

\markboth{NM}{NM}

\endinput
Puis, il y a le fichier template.tex que j'ai inséré au début de la discussion.
Les deux fichiers sont, donc, non-téléchargeables, mais plus tôt fournis sur le site pour copier.
Voilà le lien du journal http://www.global-sci.org/aamm/ vous cliquez sur (TeX File Preparation) sur la droite de la page.
Merci d'avance!
mmamokrane est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 17h14   #6
Membre Expert
 
Avatar de unbonpetit
 
Enseignant
Inscription : avril 2009
Messages : 1 749
Détails du profil
Informations professionnelles :
Activité : Enseignant

Informations forums :
Inscription : avril 2009
Messages : 1 749
Points : 1 911
Points : 1 911
Ah, j'ai compris !!!
Il fallait simplement écrire :
Code :
\documentclass[mathpazo]{aamm}
unbonpetit est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 17h44   #7
Invité de passage
 
Homme mokrane mahdi
Étudiant
Inscription : octobre 2011
Messages : 22
Détails du profil
Informations personnelles :
Nom : Homme mokrane mahdi
Localisation : Algérie

Informations professionnelles :
Activité : Étudiant
Secteur : Enseignement

Informations forums :
Inscription : octobre 2011
Messages : 22
Points : 4
Points : 4
Comment, comment...!
Attendez, attendez on va tout recommencer..
Je crois que suis un peu perdu là! Bon, d'abord où est ce que je copie les deux codes, puis, quel code je vais changer le nom, i.e. {aamm}?
mmamokrane est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 17h51   #8
Membre Expert
 
Avatar de unbonpetit
 
Enseignant
Inscription : avril 2009
Messages : 1 749
Détails du profil
Informations professionnelles :
Activité : Enseignant

Informations forums :
Inscription : avril 2009
Messages : 1 749
Points : 1 911
Points : 1 911
La réponse que je t'ai donné fonctionne, je l'ai testé.
Au lieu d'écrire
Code :
\documentclass[mathpazo]{article}
tu écris
Code :
\documentclass[mathpazo]{aamm}
Et la compilation se passe sans aucune erreur. Il n'y a pas plus simple !!! D'ailleurs, c'est bien ce qui est donné dans le fichier "template.tex" sur ton site.
unbonpetit est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 18h01   #9
Membre Expert
 
Avatar de unbonpetit
 
Enseignant
Inscription : avril 2009
Messages : 1 749
Détails du profil
Informations professionnelles :
Activité : Enseignant

Informations forums :
Inscription : avril 2009
Messages : 1 749
Points : 1 911
Points : 1 911
Citation:
Envoyé par mmamokrane Voir le message
Bon, d'abord où est ce que je copie les deux codes, puis, quel code je vais changer le nom, i.e. {aamm}?
Le fichier aamm.cls est à copier dans ton texmf perso (dans ce cas, ne pas oublier de faire un "texhash") ou dans le même répertoire que le fichier que tu veux compiler.
unbonpetit est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 18h05   #10
Invité de passage
 
Homme mokrane mahdi
Étudiant
Inscription : octobre 2011
Messages : 22
Détails du profil
Informations personnelles :
Nom : Homme mokrane mahdi
Localisation : Algérie

Informations professionnelles :
Activité : Étudiant
Secteur : Enseignement

Informations forums :
Inscription : octobre 2011
Messages : 22
Points : 4
Points : 4
Excusez moi, mais et le deuxième fichier?
Car là ça marche pas et ça m'envoie le message (defaulf extension: cls)puis (enter the file name)
!!!!!!!!
Au secours je vais devenir foue!!!
mmamokrane est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 18h14   #11
Membre confirmé
 
Homme
Étudiant
Inscription : octobre 2011
Messages : 242
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Produits et services télécom et Internet

Informations forums :
Inscription : octobre 2011
Messages : 242
Points : 289
Points : 289
aamm -> dans ton texmf perso, à unbonpetit, depuis quand fait-on un ls-R de sont TEXMFHOME (par défaut), enfin si on fait "kpsepath tex" moi je ne vois pas les "!!" ?
template.tex -> tu t'en branle fichier de test.
Mr Mi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 18h15   #12
Membre Expert
 
Avatar de unbonpetit
 
Enseignant
Inscription : avril 2009
Messages : 1 749
Détails du profil
Informations professionnelles :
Activité : Enseignant

Informations forums :
Inscription : avril 2009
Messages : 1 749
Points : 1 911
Points : 1 911
Pour la dernière fois : le fichier template.tex dans un répertoire que tu créés pour l'occasion.

Le fichier aamm.cls dans le même répertoire que template.tex ou dans ton texmf personnel (auquel cas, lancer la commande "texhash" en ligne de commande shell).
unbonpetit est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 18h34   #13
Invité de passage
 
Homme mokrane mahdi
Étudiant
Inscription : octobre 2011
Messages : 22
Détails du profil
Informations personnelles :
Nom : Homme mokrane mahdi
Localisation : Algérie

Informations professionnelles :
Activité : Étudiant
Secteur : Enseignement

Informations forums :
Inscription : octobre 2011
Messages : 22
Points : 4
Points : 4
Boujour tout le monde!!

Un très bon Merci particulier à vous Monsieur "unbonpetit", et un autre pour tout le monde du forum. OH, si vous savez quel problème vous venez de me resoudre! Vous fournissez un très grand service Messieurs!!!

mmamokrane est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 21h45   #14
Membre Expert
 
Avatar de unbonpetit
 
Enseignant
Inscription : avril 2009
Messages : 1 749
Détails du profil
Informations professionnelles :
Activité : Enseignant

Informations forums :
Inscription : avril 2009
Messages : 1 749
Points : 1 911
Points : 1 911
Par défaut A

Citation:
Envoyé par Mr Mi Voir le message
aamm -> dans ton texmf perso, à unbonpetit, depuis quand fait-on un ls-R de sont TEXMFHOME (par défaut), enfin si on fait "kpsepath tex" moi je ne vois pas les "!!" ?
template.tex -> tu t'en branle fichier de test.
Je vois que mes propos sont scrupuleusement scrutés, avec lesquels, je le sais, tu te régales lorsque tu y trouves des erreurs.

Puisque tu es prompt à remarquer les petites erreurs chez les autres et les dénoncer, tu ne m'en voudras pas de te dire que tu pourrais faire un vrai effort sur l'orthographe (que tu massacres de façon récurrente) ainsi que sur l'intelligibilité/présentation/forme de tes propos qui sont, cette fois ci, à la limite de l'incompréhensible ? Sans parler de verbe « se branler » (conjugué avec une faute) qui a sans doute un meilleur synonyme.

Merci.
Au fait, je suis pas modo, moi
unbonpetit est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/01/2012, 13h56   #15
Membre confirmé
 
Homme
Étudiant
Inscription : octobre 2011
Messages : 242
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Produits et services télécom et Internet

Informations forums :
Inscription : octobre 2011
Messages : 242
Points : 289
Points : 289
m'enfin mé ct just une kestion!*


*librement inspiré de skyblog
Mr Mi est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 16h39.


 
 
 
 
Partenaires

Hébergement Web