1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/fr/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that the User's Guide prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the User's Guide may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 \@ifpackageloaded{babel}{
28 % increase link area for cross-references and autoname them,
29 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
31 \renewcommand*{\equationautorefname}[1]{}%
32 \renewcommand{\sectionautorefname}{sec.\negthinspace}%
33 \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
34 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
38 \options liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
39 \use_default_options false
43 \maintain_unincluded_children false
45 \language_package default
48 \font_roman "lmodern" "default"
49 \font_sans "lmss" "default"
50 \font_typewriter "lmtt" "default"
51 \font_math "auto" "auto"
52 \font_default_family default
53 \use_non_tex_fonts false
56 \font_sf_scale 100 100
57 \font_tt_scale 100 100
59 \use_dash_ligatures false
61 \default_output_format pdf2
63 \bibtex_command default
64 \index_command default
68 \pdf_title "LyX Configuration Manual"
69 \pdf_author "LyX Team"
70 \pdf_subject "LyX-documentation Customization"
71 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarksnumbered true
74 \pdf_bookmarksopen true
75 \pdf_bookmarksopenlevel 1
80 \pdf_pdfusetitle false
81 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
84 \use_package amsmath 1
85 \use_package amssymb 1
88 \use_package mathdots 1
89 \use_package mathtools 1
91 \use_package stackrel 1
92 \use_package stmaryrd 1
93 \use_package undertilde 1
95 \cite_engine_type default
99 \paperorientation portrait
104 \notefontcolor #0000ff
116 \paragraph_separation indent
117 \paragraph_indentation default
119 \math_indentation default
120 \math_numbering_side default
125 \paperpagestyle headings
126 \tracking_changes false
127 \output_changes false
130 \html_be_strict false
136 Personnaliser \SpecialChar LyX
137 : fonctions pour l'utilisateur avancé
141 par l'équipe \SpecialChar LyX
146 \begin_layout Plain Layout
147 Merci d'envoyer vos commentaires et corrections à la liste de diffusion
148 de la documentation de \SpecialChar LyX
152 \begin_inset CommandInset href
154 target "lyx-docs@lists.lyx.org"
163 \begin_inset Quotes cld
167 \begin_inset Quotes crd
170 dans l'objet, et mettre en copie le responsable courant de ce fichier,
171 Richard Heck <rgheck@comcast.net>.
172 \begin_inset Newline newline
175 Traduction en français par : P.-H.
186 Meunier-Guttin-Cluzel
193 Merci d'envoyer vos commentaires et corrections sur la traduction à la
194 liste de diffusion de \SpecialChar LyX
197 <lyx-fr@lists.lyx.org>
205 \begin_inset Note Note
208 \begin_layout Plain Layout
209 Informations de révision :
212 \begin_layout Plain Layout
213 Traduction : remplacement de Éditer/Visionner/Insérer/Naviguer par Édition/Affic
214 hage/Insertion/Navigation, 31/10/2012 (JPC)
217 \begin_layout Plain Layout
218 Mise à jour OK pour la publication 2.0.0, Date: 21/01/2014 (JPC)
221 \begin_layout Plain Layout
222 Remplacement de « appendice » par « annexe », 31/12/2014 (JPC)
225 \begin_layout Plain Layout
226 Mise à jour pour 2.2, 19/01/2016 (JPC)
229 \begin_layout Plain Layout
230 Nouvel exemple pour le paragraphe 4.1.1.1 + quelques corrections mineures,
237 \begin_inset Newline newline
241 \begin_inset Newline newline
247 \begin_layout Standard
248 \begin_inset CommandInset toc
249 LatexCommand tableofcontents
256 \begin_layout Chapter
260 \begin_layout Standard
261 Ce manuel couvre les fonctions de personnalisation de \SpecialChar LyX
263 Nous y abordons des sujets comme les raccourcis clavier, les options d'aperçu
264 à l'écran, les options d'impression, l'envoi de commandes à \SpecialChar LyX
267 , l'internationalisation, l'installation de nouvelles classes \SpecialChar LaTeX
269 formats \SpecialChar LyX
271 Nous n'espérons pas aborder tout ce que vous pouvez modifier – nos développeurs
272 ajoutent de nouvelles fonctions plus vite que nous n'en écrivons la documentati
273 on – mais nous allons expliquer les personnalisations les plus courantes
274 et au moins vous indiquer la bonne direction pour les plus obscures d'entre
278 \begin_layout Chapter
279 Les fichiers de configuration de \SpecialChar LyX
283 \begin_layout Standard
284 Ce chapitre devrait vous aider à trouver votre chemin parmi les fichiers
285 de configuration de \SpecialChar LyX
287 Avant d'entreprendre sa lecture, consultez
289 Aide\SpecialChar menuseparator
305 pour connaître le répertoire de bibliothèques et le répertoire utilisateur
308 C'est dans celui-ci que \SpecialChar LyX
309 place ses fichiers de configuration système; le
310 répertoire utilisateur est celui dans lequel vous pouvez mettre vos versions
311 modifiées Le premier sera appelé
312 \begin_inset Flex Code
315 \begin_layout Plain Layout
323 \begin_inset Flex Code
326 \begin_layout Plain Layout
332 dans la suite de ce document.
335 \begin_layout Section
336 Qu'est-ce qu'il y a dans
337 \begin_inset Flex Code
340 \begin_layout Plain Layout
350 \begin_layout Standard
351 \begin_inset Flex Code
354 \begin_layout Plain Layout
361 et ses sous-répertoires contiennent un certain nombre de fichiers qui peuvent
362 servir à personnaliser le comportement de \SpecialChar LyX
364 Vous pouvez modifier ces fichiers depuis \SpecialChar LyX
365 lui-même avec la fenêtre
367 Outils\SpecialChar menuseparator
371 La plupart des réglages personnels que vous voudrez apporter à \SpecialChar LyX
373 se faire par l'intermédiaire de cette fenêtre.
374 Il y a cependant bien d'autres aspects du fonctionnement de \SpecialChar LyX
376 on peut agir en modifiant les fichiers de
377 \begin_inset Flex Code
380 \begin_layout Plain Layout
388 Ils entrent dans différentes catégories, qui sont décrites dans les sous-sectio
392 \begin_layout Subsection
393 Les fichiers générés automatiquement
396 \begin_layout Standard
397 Ces fichiers sont générés au moment de la configuration de \SpecialChar LyX
399 Ils définissent différentes valeurs par défaut qui sont évaluées par l'inspecti
401 Comme ils peuvent être réécrits à tout moment, il n'est pas conseillé de
405 \begin_layout Labeling
406 \labelwidthstring 00.00.0000
407 \begin_inset Flex Code
410 \begin_layout Plain Layout
416 contient les valeurs implicites pour différentes commandes.
419 \begin_layout Labeling
420 \labelwidthstring 00.00.0000
421 \begin_inset Flex Code
424 \begin_layout Plain Layout
430 contient la liste des paquetages \SpecialChar LaTeX
434 ne se sert pas directement de ce fichier, mais les informations obtenues
435 sont disponibles en faisant
437 Aide\SpecialChar menuseparator
448 \begin_layout Labeling
449 \labelwidthstring 00.00.0000
450 \begin_inset Flex Code
453 \begin_layout Plain Layout
459 donne la liste des classes de texte présentes dans le répertoire
460 \begin_inset Flex Code
463 \begin_layout Plain Layout
469 , les classes de document \SpecialChar LaTeX
470 correspondantes et leur description.
474 \begin_layout Labeling
475 \labelwidthstring 00.00.0000
476 \begin_inset Flex Code
479 \begin_layout Plain Layout
485 donne la liste des modules figurant dans vos répertoires de format (
486 \begin_inset Flex Code
489 \begin_layout Plain Layout
500 \begin_layout Labeling
501 \labelwidthstring 00.00.0000
502 \begin_inset Flex Code
505 \begin_layout Plain Layout
511 donne la liste de différentes sortes de fichiers connexes à \SpecialChar LaTeX
516 \begin_layout Labeling
517 \labelwidthstring 00.00.0000
518 \begin_inset Flex Code
521 \begin_layout Plain Layout
522 doc/\SpecialChar LaTeX
528 est généré automatiquement pendant la configuration de \SpecialChar LyX
529 , à partir du fichier
531 \begin_inset Flex Code
534 \begin_layout Plain Layout
544 \begin_layout Subsection
548 \begin_layout Standard
549 Ces répertoires figurent à la fois dans
550 \begin_inset Flex Code
553 \begin_layout Plain Layout
560 \begin_inset Flex Code
563 \begin_layout Plain Layout
570 Si un fichier existe dans les deux répertoires, c'est celui de
571 \begin_inset Flex Code
574 \begin_layout Plain Layout
583 \begin_layout Labeling
584 \labelwidthstring 00.00.0000
585 \begin_inset Flex Code
588 \begin_layout Plain Layout
594 ce répertoire contient les fichiers de définition des raccourcis clavier,
596 \begin_inset Flex Code
599 \begin_layout Plain Layout
607 \begin_inset Quotes cld
611 \begin_inset Quotes crd
614 du fichier de raccourcis, appelée
615 \begin_inset Flex Code
618 \begin_layout Plain Layout
624 , celle-ci sera détectée et utilisée en premier.
627 \begin_layout Labeling
628 \labelwidthstring 00.00.0000
631 \begin_inset Flex Code
634 \begin_layout Plain Layout
642 contains files with the extension
643 \begin_inset Flex Code
646 \begin_layout Plain Layout
654 which define the diverse citation possibilities (natbib, biblatex etc.).
656 \begin_inset CommandInset ref
658 reference "subsec:Cite-Engine-Files"
668 \begin_layout Labeling
669 \labelwidthstring 00.00.0000
670 \begin_inset Flex Code
673 \begin_layout Plain Layout
679 contient quelques fichiers graphiques qui peuvent être inclus dans les
684 \begin_layout Labeling
685 \labelwidthstring 00.00.0000
686 \begin_inset Flex Code
689 \begin_layout Plain Layout
695 contient les fichiers de la documentation de \SpecialChar LyX
696 (dont celui que vous êtes
699 \begin_inset Flex Code
702 \begin_layout Plain Layout
709 est un cas à part, comme nous venons de le voir.
710 S'il existe des version traduites des fichiers d'aide, avec le préfixe
712 \begin_inset Flex Code
715 \begin_layout Plain Layout
721 , celles-ci seront utilisées d'abord (voir le
726 \begin_inset CommandInset ref
728 reference "chap:i18n"
736 \begin_layout Labeling
737 \labelwidthstring 00.00.0000
738 \begin_inset Flex Code
741 \begin_layout Plain Layout
747 contient les fichiers d'exemples qui illustrent la façon d'utiliser certaines
749 Vous pouvez y accéder en appuyant sur le bouton
754 \begin_inset Flex Noun
757 \begin_layout Plain Layout
758 Fichier\SpecialChar menuseparator
767 \begin_layout Labeling
768 \labelwidthstring 00.00.0000
769 \begin_inset Flex Code
772 \begin_layout Plain Layout
778 contient les fichiers d'images utilisés dans l'interface
783 Il contient également les icônes utilisées dans la barre d'outils et les
784 bannières affichées au démarrage de \SpecialChar LyX
788 \begin_layout Labeling
789 \labelwidthstring 00.00.0000
790 \begin_inset Flex Code
793 \begin_layout Plain Layout
799 contient les fichiers de réaffectation clavier.
801 \begin_inset CommandInset ref
803 reference "sec:clavier"
807 pour des informations détaillées.
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
816 \begin_layout Plain Layout
822 contient les classes de texte et les fichiers de modules décrits au
823 \begin_inset CommandInset ref
825 reference "chap:classe-texte"
832 \begin_layout Labeling
833 \labelwidthstring 00.00.0000
834 \begin_inset Flex Code
837 \begin_layout Plain Layout
843 contient les scripts Python
844 \begin_inset Flex Code
847 \begin_layout Plain Layout
853 permettant d'effectuer les conversions entre versions de \SpecialChar LyX
855 Ils peuvent être exécutés depuis la ligne de commande, si vous désirez
856 par exemple faire un traitement par lots.
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
864 \begin_layout Plain Layout
870 contient quelques fichiers qui illustrent les possibilités offertes par
872 \begin_inset Flex Noun
875 \begin_layout Plain Layout
888 \begin_layout Labeling
889 \labelwidthstring 00.00.0000
890 \begin_inset Flex Code
893 \begin_layout Plain Layout
899 contient les fichiers modèles de \SpecialChar LyX
905 \begin_inset CommandInset ref
907 reference "sec:modeles"
914 \begin_layout Labeling
915 \labelwidthstring 00.00.0000
916 \begin_inset Flex Code
919 \begin_layout Plain Layout
925 contient des fichiers avec l'extension
926 \begin_inset Flex Code
929 \begin_layout Plain Layout
935 qui définissent l'interface utilisateur de \SpecialChar LyX
937 C'est-à-dire que ces fichiers définissent quels éléments apparaissent dans
938 les menus et quels éléments apparaissent dans la barre d'outils.
941 \begin_layout Labeling
942 \labelwidthstring 00.00.0000
945 \begin_inset Flex Code
948 \begin_layout Plain Layout
956 contains files with the extension
957 \begin_inset Flex Code
960 \begin_layout Plain Layout
968 which define the templates for the insertion of external material to a
971 \begin_inset CommandInset ref
973 reference "chap:Including-External-Material"
980 \begin_layout Subsection
981 Fichiers que vous n'avez pas à modifier
984 \begin_layout Standard
985 Ce sont des fichiers internes à \SpecialChar LyX
986 , et ils ne doivent pas être modifiés, sauf
987 par les développeurs.
991 \begin_layout Labeling
992 \labelwidthstring 00.00.0000
999 ce fichier contient la liste des développeurs de \SpecialChar LyX
1001 Son contenu est affiché en sélectionnant
1002 \begin_inset Flex Noun
1005 \begin_layout Plain Layout
1006 Aide\SpecialChar menuseparator
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1023 est un script \SpecialChar LaTeX
1024 utilisé pendant le processus de configuration.
1025 Ne pas le lancer directement.
1029 \begin_layout Labeling
1030 \labelwidthstring 00.00.0000
1037 est le script qui permet de reconfigurer \SpecialChar LyX
1039 Il génère des fichiers de configuration dans le répertoire dans lequel
1043 \begin_layout Subsection
1044 Autres fichiers appelant un commentaire
1047 \begin_layout Labeling
1048 \labelwidthstring 00.00.0000
1053 contient des tables de conversion faisant correspondre les différents encodages
1054 de caractères avec Unicode.
1057 \begin_layout Labeling
1058 \labelwidthstring 00.00.0000
1063 contient la liste de toutes les langues actuellement supportées par \SpecialChar LyX
1067 \begin_layout Labeling
1068 \labelwidthstring 00.00.0000
1069 \begin_inset Flex Code
1072 \begin_layout Plain Layout
1078 contient des informations sur les différentes polices.
1081 \begin_layout Labeling
1082 \labelwidthstring 00.00.0000
1083 \begin_inset Flex Code
1086 \begin_layout Plain Layout
1092 contient les traductions pour les styles de paragraphe internationalisés
1094 \begin_inset space ~
1098 \begin_inset CommandInset ref
1100 reference "subsec:I18n"
1107 \begin_layout Labeling
1108 \labelwidthstring 00.00.0000
1109 \begin_inset Flex Code
1112 \begin_layout Plain Layout
1118 contient des informations sur les glyphes encodés en Unicode et la manière
1119 dont \SpecialChar LyX
1120 les traite via \SpecialChar LaTeX
1124 \begin_layout Section
1125 Votre répertoire personnel de configuration
1128 \begin_layout Standard
1129 Même si vous utilisez \SpecialChar LyX
1130 sans être le super-utilisateur, vous pouvez avoir
1131 envie de modifier la configuration de \SpecialChar LyX
1132 pour votre usage personnel.
1134 \begin_inset Flex Code
1137 \begin_layout Plain Layout
1143 contient les fichiers personnels de configuration.
1144 C'est le répertoire qui est décrit comme
1145 \begin_inset Quotes cld
1148 Répertoire utilisateur
1149 \begin_inset Quotes crd
1154 Aide\SpecialChar menuseparator
1156 \begin_inset space ~
1160 \begin_inset space ~
1164 \begin_inset space ~
1171 Il est traité comme un miroir du répertoire
1172 \begin_inset Flex Code
1175 \begin_layout Plain Layout
1182 , et chaque fichier qui se trouve dans
1186 remplace par conséquent le fichier correspondant de
1187 \begin_inset Flex Code
1190 \begin_layout Plain Layout
1198 Chaque fichier de configuration décrit dans les sections précédentes peut
1199 se trouver soit dans le répertoire de configuration système, ce qui jouera
1200 pour tous les utilisateurs, soit dans votre répertoire personnel, pour
1201 votre propre configuration.
1204 \begin_layout Standard
1205 Pour éclaircir la situation, voici quelques exemples:
1208 \begin_layout Itemize
1209 les réglages effectués dans la fenêtre
1211 Outils\SpecialChar menuseparator
1214 sont enregistrés dans un fichier
1215 \begin_inset Flex Code
1218 \begin_layout Plain Layout
1225 \begin_inset Flex Code
1228 \begin_layout Plain Layout
1237 \begin_layout Itemize
1238 quand vous reconfigurez \SpecialChar LyX
1241 Outils\SpecialChar menuseparator
1245 fait tourner le script
1246 \begin_inset Flex Code
1249 \begin_layout Plain Layout
1255 et les fichiers résultants sont placés dans votre répertoire personnel
1257 Ça signifie que les nouvelles classes de texte que vous avez pu ajouter
1259 \begin_inset Flex Code
1262 \begin_layout Plain Layout
1268 seront ajoutées à la liste des classes de la fenêtre
1270 Document\SpecialChar menuseparator
1277 \begin_layout Itemize
1278 Si vous récupérez sur le site ftp de \SpecialChar LyX
1279 des fichiers de documentation mis
1280 à jour et que vous n'êtes pas administrateur sur votre système, vous pouvez
1281 placer ces fichiers dans
1282 \begin_inset Flex Code
1285 \begin_layout Plain Layout
1291 et ils seront ouverts directement à partir du menu d'
1298 \begin_layout Section
1299 Utiliser \SpecialChar LyX
1300 avec plusieurs configurations
1303 \begin_layout Standard
1304 La liberté offerte pour le répertoire de configuration locale peut être
1305 insuffisante si vous avez besoin de plusieurs configurations différentes.
1306 Par exemple, vous pouvez vouloir utiliser des raccourcis clavier ou des
1307 réglages d'imprimante différents selon les circonstances
1311 \begin_layout Plain Layout
1312 NdT : ou encore vouloir écrire dans des langues différentes et adapter vos
1313 configurations en conséquence.
1319 Vous pouvez y arriver en ayant plusieurs répertoires de configuration.
1320 Vous spécifiez alors lequel utiliser au moment de lancer \SpecialChar LyX
1324 \begin_layout Standard
1325 Si vous lancez \SpecialChar LyX
1326 avec l'option de ligne de commande
1334 , le programme va lire la configuration qui se trouve dans ce répertoire,
1335 et non dans le répertoire par défaut (en lançant \SpecialChar LyX
1336 sans cette option vous
1337 pouvez déterminer le répertoire par défaut).
1338 Si ce répertoire n'existe pas, \SpecialChar LyX
1339 vous propose de le créer, exactement comme
1340 il le fait avec le répertoire implicite au premier lancement du programme.
1341 Vous pouvez modifier les options de configuration dans ce
1345 supplémentaire exactement comme vous le feriez pour le répertoire implicite.
1346 Ces répertoires sont complètement indépendants (mais lisez la suite).
1347 Notez que positionner la variable d'environnement
1351 a exactement le même effet.
1354 \begin_layout Standard
1355 Quand vous avez plusieurs configurations, vous devez faire plus attention:
1356 si vous voulez ajouter un nouveau format dans
1358 MonNouveauRép/layouts
1360 , pour qu'il soit disponible dans toutes vos configurations, vous devez
1361 l'ajouter dans chaque répertoire séparément.
1362 Vous pouvez contourner ceci avec l'astuce suivante: après que \SpecialChar LyX
1364 répertoire supplémentaire, la plupart des sous-répertoires (voir plus haut)
1366 Si vous voulez que la nouvelle configuration soit le reflet d'une déjà
1367 existante, remplacez le sous-répertoire vide par un lien symbolique au
1368 sous-répertoire correspondant dans la configuration existante.
1369 Faites toutefois attention avec le sous-répertoire
1373 , car il contient un fichier écrit par le script de configuration (accessible
1376 Outils\SpecialChar menuseparator
1379 ) qui est propre à chaque configuration.
1382 \begin_layout Chapter
1388 \begin_layout Standard
1389 Tous les options de la fenêtre
1393 sont expliquées dans l'annexe
1395 La fenêtre Préférences
1399 Guide de l'utilisateur
1402 Pour certaines options, vous trouverez ici plus de précisions.
1405 \begin_layout Section
1407 \begin_inset CommandInset label
1416 \begin_layout Standard
1417 La première étape consiste à définir vos formats de fichiers si ce n'est
1419 Pour ce faire, ouvrez
1420 \begin_inset Flex Noun
1423 \begin_layout Plain Layout
1424 Outils\SpecialChar menuseparator
1433 \begin_inset Flex Noun
1436 \begin_layout Plain Layout
1437 Gestion des fichiers\SpecialChar menuseparator
1445 , appuyez sur le bouton
1446 \begin_inset Flex Noun
1449 \begin_layout Plain Layout
1457 \begin_inset Flex Noun
1460 \begin_layout Plain Layout
1466 contient le nom utilisé pour identifier le format de manière interne.
1467 Vous devrez également saisir un suffixe de nom de fichier.
1468 Toutes ces informations sont obligatoires.
1470 \begin_inset Flex Noun
1473 \begin_layout Plain Layout
1479 permet de définir une séquence de touches du clavier pour un accès rapide
1480 aux menus (par exemple, appuyer sur
1481 \begin_inset Flex Noun
1484 \begin_layout Plain Layout
1491 \begin_inset Flex Noun
1494 \begin_layout Plain Layout
1495 Document\SpecialChar menuseparator
1496 Visionner (autres formats)\SpecialChar menuseparator
1505 \begin_layout Standard
1506 Un Format peut se voir associer une
1507 \begin_inset Flex Noun
1510 \begin_layout Plain Layout
1517 \begin_inset Flex Noun
1520 \begin_layout Plain Layout
1527 Par exemple, vous pouvez vouloir utiliser Ghostview pour afficher les fichier
1529 Vous pouvez saisir le nom de la commande permettant de lancer les programmes
1530 dans les champs correspondants.
1531 La visionneuse est lancée quand vous voulez voir un graphique dans \SpecialChar LyX
1534 \begin_inset Flex Noun
1537 \begin_layout Plain Layout
1538 Document\SpecialChar menuseparator
1545 L'éditeur est lancé par exemple quand vous faites un clic-droit sur un
1546 graphique et que vous choisissez
1547 \begin_inset Flex Noun
1550 \begin_layout Plain Layout
1551 Modifier le fichier via une application externe
1556 dans le menu contextuel qui apparaît.
1559 \begin_layout Standard
1561 \begin_inset Flex Noun
1564 \begin_layout Plain Layout
1570 d'un format est facultatif, mais s'il est précisé, il doit être unique
1571 pour l'ensemble des formats.
1572 Il est utilisé pour reconnaître les fichiers de ce format à partir de leur
1574 Pour certains formats de fichier importants, il n'y a pas de type MIME
1575 officiellement répertorié dans la base
1576 \begin_inset CommandInset href
1579 target "http://www.iana.org/assignments/media-types/"
1585 De ce fait \SpecialChar LyX
1586 utilise la liste plus étoffée spécifiée par
1587 \begin_inset CommandInset href
1589 name "freedesktop.org"
1590 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1598 \begin_layout Standard
1599 La case à cocher Format de document informe \SpecialChar LyX
1600 que le format est approprié
1601 pour une exportation du document.
1602 Si la case est cochée que qu'une procédure de conversion est définie (voir
1604 \begin_inset space ~
1608 \begin_inset CommandInset ref
1610 reference "sec:Convertisseurs"
1614 ), ce format apparaîtra dans le menu
1615 \begin_inset Flex Noun
1618 \begin_layout Plain Layout
1619 Fichier\SpecialChar menuseparator
1626 Le format apparaîtra également dans le menu
1630 si une visionneuse est définie pour lui.
1631 Les formats purement graphiques, comme png, ne doivent pas utiliser cette
1633 Les formats adaptés à la fois aux graphiques et aux documents, comme pdf,
1637 \begin_layout Standard
1639 \begin_inset Flex Noun
1642 \begin_layout Plain Layout
1643 Format graphique vectoriel
1648 informe \SpecialChar LyX
1649 qu'un format peut contenir des vecteurs graphiques.
1650 Cette information est utile pour déterminer le format cible des graphiques
1651 inclus lors de l'exportation via
1652 \begin_inset Flex Noun
1655 \begin_layout Plain Layout
1662 Les graphiques inclus dans le document peuvent nécessiter une conversion
1664 \begin_inset Flex Noun
1667 \begin_layout Plain Layout
1674 \begin_inset Flex Noun
1677 \begin_layout Plain Layout
1684 \begin_inset Flex Noun
1687 \begin_layout Plain Layout
1694 \begin_inset Flex Noun
1697 \begin_layout Plain Layout
1703 ne sait pas gérer d'autres formats graphiques.
1704 Si un graphique inclus n'est pas déjà dans un des ces trois formats, il
1706 \begin_inset Flex Noun
1709 \begin_layout Plain Layout
1715 si la case est cochée, et en
1716 \begin_inset Flex Noun
1719 \begin_layout Plain Layout
1728 \begin_layout Section
1732 \begin_layout Standard
1733 Du fait que toutes les conversions d'un format à une autre se font dans
1734 la répertoire temporaire de \SpecialChar LyX
1735 , il peut être nécessaire de modifier un fichier
1736 avant de le copier dan le répertoire temporaire pour que la conversion
1737 se fasse correctement
1741 \begin_layout Plain Layout
1742 Par exemple, le fichier peut référencer d'autres fichiers ― e.g.
1743 une image ― par un nom de fichier relatif, qui peut devenir incorrect lors
1744 de la copie du fichier dans le répertoire temporaire.
1750 Ceci est effectué par un Copieur: il copie un fichier vers (ou depuis)
1751 le répertoire temporaire et peut le modifier à la volée.
1754 \begin_layout Standard
1755 La définition des copieurs peut utiliser huit variables:
1758 \begin_layout Labeling
1759 \labelwidthstring 00.00.0000
1760 \begin_inset Flex Code
1763 \begin_layout Plain Layout
1769 le répertoire système de \SpecialChar LyX
1771 \begin_inset space \thinspace{}
1775 \begin_inset space \space{}
1779 \begin_inset Flex Noun
1782 \begin_layout Plain Layout
1791 \begin_layout Labeling
1792 \labelwidthstring 00.00.0000
1793 \begin_inset Flex Code
1796 \begin_layout Plain Layout
1802 le fichier en entrée
1805 \begin_layout Labeling
1806 \labelwidthstring 00.00.0000
1807 \begin_inset Flex Code
1810 \begin_layout Plain Layout
1816 le fichier en sortie
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1824 \begin_layout Plain Layout
1830 la racine du nom (sans le suffixe) dans le répertoire temporaire \SpecialChar LyX
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1839 \begin_layout Plain Layout
1845 la chemin d'accès complet du répertoire \SpecialChar LyX
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1854 \begin_layout Plain Layout
1860 le chemin d'accès complet au ficher original \SpecialChar LyX
1861 en cours de traitement
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1869 \begin_layout Plain Layout
1875 le nom du fichier \SpecialChar LyX
1876 (sans chemin d'accès)
1879 \begin_layout Labeling
1880 \labelwidthstring 00.00.0000
1881 \begin_inset Flex Code
1884 \begin_layout Plain Layout
1891 \begin_inset Quotes cld
1894 nom \SpecialChar LaTeX
1896 \begin_inset Quotes crd
1902 \begin_layout Standard
1903 Ce dernier doit être le nom du fichier tel qu'il serait spécifié dans la
1904 commande \SpecialChar LaTeX
1914 Il n'est pertinent que pour l'exportation des fichiers appropriés à une
1918 \begin_layout Standard
1919 Les copieurs peuvent être utilisés pour à peu près n'importe quelle opération
1921 Par exemple, supposons que vous vouliez que les fichiers pdf soient copiés
1922 dans un répertoire particulier,
1925 \begin_inset Flex Code
1928 \begin_layout Plain Layout
1939 Alors vous pouvez écrire un script comme celui-ci:
1942 \begin_layout Standard
1945 \begin_inset listings
1949 \begin_layout Plain Layout
1954 \begin_layout Plain Layout
1959 \begin_layout Plain Layout
1961 TOFILE=`basename $2`
1964 \begin_layout Plain Layout
1966 cp $FROMFILE /home/you/pdf/$TOFILE
1974 \begin_layout Standard
1975 Enregistrez-le dans votre répertoire \SpecialChar LyX
1979 \begin_inset Flex Code
1982 \begin_layout Plain Layout
1985 /home/you/.lyx/scripts/pdfcopier.sh
1992 ― et rendez le exécutable, si c'est nécessaire sur votre plate-forme.
1994 \begin_inset Flex Noun
1997 \begin_layout Plain Layout
1998 Outils\SpecialChar menuseparator
2005 \begin_inset Flex Noun
2008 \begin_layout Plain Layout
2009 Gestion des fichiers\SpecialChar menuseparator
2016 \begin_inset Flex Noun
2019 \begin_layout Plain Layout
2025 ― ou l'un des autres formats PDF ― et saisissez
2028 \begin_inset Flex Code
2031 \begin_layout Plain Layout
2034 pdfcopier.sh $$i $$o
2042 \begin_inset Flex Noun
2045 \begin_layout Plain Layout
2054 \begin_layout Standard
2055 Les copieurs sont utilisés par \SpecialChar LyX
2056 dans plusieurs de ses convertisseurs internes.
2057 Par exemple, si les programmes appropriés sont trouvés lors de la configuration
2059 installera automatiquement des copieurs pour les formats
2060 \begin_inset Flex Noun
2063 \begin_layout Plain Layout
2070 \begin_inset Flex Noun
2073 \begin_layout Plain Layout
2075 \begin_inset space ~
2084 Quand le documente est exporté vers ces formats, le copieur considère que
2085 non seulement le fichier HTML, mais aussi les fichiers auxiliaires (fichiers
2086 de style, images, etc.) sont également copiés.
2087 Tous ces fichiers sont recopiés dans un sous-répertoire du répertoire dans
2088 lequel se trouvait le document \SpecialChar LyX
2092 \begin_layout Section
2094 \begin_inset CommandInset label
2096 name "sec:Convertisseurs"
2103 \begin_layout Standard
2104 Vous pouvez définir vos propres Convertisseurs pour activer les conversions
2105 entre différents formats.
2106 Ceci est défini dans
2107 \begin_inset Flex Noun
2110 \begin_layout Plain Layout
2111 Outils\SpecialChar menuseparator
2112 Préférences\SpecialChar menuseparator
2113 Gestion des fichiers\SpecialChar menuseparator
2122 \begin_layout Standard
2123 Pour définir un nouveau convertisseur, sélectionner les formats appropriés
2124 dans les menus déroulants
2125 \begin_inset Flex Noun
2128 \begin_layout Plain Layout
2135 \begin_inset Flex Noun
2138 \begin_layout Plain Layout
2144 , saisir le nom de la commande nécessaire à la conversion et appuyer sur
2146 \begin_inset Flex Noun
2149 \begin_layout Plain Layout
2156 Plusieurs variables peuvent être utilisées pour préciser les arguments
2157 des commandes de conversion:
2160 \begin_layout Labeling
2161 \labelwidthstring 00.00.0000
2162 \begin_inset Flex Code
2165 \begin_layout Plain Layout
2171 le répertoire système de \SpecialChar LyX
2175 \begin_layout Labeling
2176 \labelwidthstring 00.00.0000
2177 \begin_inset Flex Code
2180 \begin_layout Plain Layout
2186 le fichier en entrée
2189 \begin_layout Labeling
2190 \labelwidthstring 00.00.0000
2191 \begin_inset Flex Code
2194 \begin_layout Plain Layout
2200 le fichier en sortie
2203 \begin_layout Labeling
2204 \labelwidthstring 00.00.0000
2205 \begin_inset Flex Code
2208 \begin_layout Plain Layout
2214 le nom de base du fichier en entrée (c'est-à-dire sans suffixe)
2217 \begin_layout Labeling
2218 \labelwidthstring 00.00.0000
2219 \begin_inset Flex Code
2222 \begin_layout Plain Layout
2228 le chemin du fichier d'entrée
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Flex Code
2236 \begin_layout Plain Layout
2242 le chemin du fichier d'entrée original (ceci peut différer de
2243 \begin_inset Flex Noun
2246 \begin_layout Plain Layout
2252 lors de l'appel d'une séquence de convertisseurs)
2255 \begin_layout Labeling
2256 \labelwidthstring 00.00.0000
2257 \begin_inset Flex Code
2260 \begin_layout Plain Layout
2267 \begin_inset Flex Code
2270 \begin_layout Plain Layout
2276 désignant l'encodage du document
2279 \begin_layout Standard
2281 \begin_inset Flex Noun
2284 \begin_layout Plain Layout
2286 \begin_inset space ~
2294 , vous pouvez saisir les mots-clés suivants, séparés par des virgules:
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Flex Code
2302 \begin_layout Plain Layout
2308 ce convertisseur exécute \SpecialChar LaTeX
2309 ou une variante de \SpecialChar LaTeX
2310 , le fichier journal sera
2314 \begin_layout Labeling
2315 \labelwidthstring 00.00.0000
2316 \begin_inset Flex Code
2319 \begin_layout Plain Layout
2325 la conversion utilise le fichier
2326 \begin_inset Flex Noun
2329 \begin_layout Plain Layout
2338 \begin_layout Labeling
2339 \labelwidthstring 00.00.0000
2340 \begin_inset Flex Code
2343 \begin_layout Plain Layout
2349 demande une fichier \SpecialChar LyX
2351 \begin_inset Quotes cld
2355 \begin_inset Quotes crd
2358 (facile), ce qui en pratique désigne un fichier similaire au résultat d'une
2359 exportation \SpecialChar LaTeX
2363 \begin_inset Flex Code
2366 \begin_layout Plain Layout
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Flex Code
2384 \begin_layout Plain Layout
2390 la sortie est au format XML
2393 \begin_layout Standard
2394 Les trois mots-clés suivants ne sont pas vraiment des mots-clés, ils prennent
2395 un argument de la forme
2396 \begin_inset Flex Noun
2399 \begin_layout Plain Layout
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Flex Code
2413 \begin_layout Plain Layout
2419 s'il est utilisé, les messages d'erreur standard du convertisseur seront
2420 redirigés vers un fichier
2421 \begin_inset Flex Code
2424 \begin_layout Plain Layout
2432 , et le script passé en valeur sera exécuté comme:
2433 \begin_inset Flex Code
2436 \begin_layout Plain Layout
2439 script < infile.out > infile.log
2445 L'argument peut contenir
2446 \begin_inset Flex Code
2449 \begin_layout Plain Layout
2458 \begin_layout Labeling
2459 \labelwidthstring 00.00.0000
2460 \begin_inset Flex Code
2463 \begin_layout Plain Layout
2469 précise le nom du répertoire dans lequel le convertisseur placera les fichiers
2470 engendrés par la conversion.
2472 ne créera pas ce répertoire, et ne copiera rien dedans, bien qu'il le
2473 copie dans la cible.
2474 La valeur peut utiliser
2475 \begin_inset Flex Code
2478 \begin_layout Plain Layout
2484 , qui sera remplacé par le nom sans suffixe des fichiers d'entrée et de
2485 sortie, respectivement, lors de la copie du répertoire.
2486 \begin_inset Newline newline
2489 Noter que l'utilisation simultanée de
2490 \begin_inset Flex Noun
2493 \begin_layout Plain Layout
2500 \begin_inset Flex Noun
2503 \begin_layout Plain Layout
2510 Ce dernier sera ignoré si le premier est employé;
2513 \begin_layout Labeling
2514 \labelwidthstring 00.00.0000
2515 \begin_inset Flex Code
2518 \begin_layout Plain Layout
2524 détermine le nom du fichier résultat et peut contenir
2525 \begin_inset Flex Code
2528 \begin_layout Plain Layout
2536 \begin_inset Flex Noun
2539 \begin_layout Plain Layout
2545 et est optionnel même dans ce cas; la valeur
2546 \begin_inset Quotes cld
2550 \begin_inset Quotes crd
2553 est implicite s'il n'est pas activé.
2556 \begin_layout Standard
2557 Aucun de ces trois derniers mots-clés n'est utilisé dans les convertisseurs
2558 installés par \SpecialChar LyX
2562 \begin_layout Standard
2563 Il n'est pas nécessaire de définir des convertisseurs pour tous les formats
2564 entre lesquels vous désirez effectuer des conversions.
2565 Par exemple, vous remarquerez qu'il n'y a pas de convertisseur
2566 \begin_inset Quotes cld
2571 \begin_inset Quotes crd
2574 , mais \SpecialChar LyX
2575 exportera bien vers PostScript.
2576 Ceci se fait parce que \SpecialChar LyX
2577 crée d'abord un fichier \SpecialChar LaTeX
2578 (pas besoin de convertisseur
2579 pour cela) qui est ensuite converti vers DVI en utilisant le convertisseur
2581 \begin_inset Quotes cld
2586 \begin_inset Quotes crd
2589 , pour terminer par la conversion
2590 \begin_inset Quotes cld
2594 \begin_inset Quotes crd
2599 trouve ainsi les séquences de convertisseurs automatiquement, et trouvera
2600 toujours le séquence la plus courte.
2601 Vous pouvez cependant définir plusieurs méthodes de conversion entre formats
2603 Par exemple, la configuration \SpecialChar LyX
2604 standard propose cinq façons différentes
2605 de convertir \SpecialChar LaTeX
2609 \begin_layout Enumerate
2611 \begin_inset Flex Noun
2614 \begin_layout Plain Layout
2623 \begin_layout Enumerate
2624 via (DVI et) PostScript, en utilisant
2625 \begin_inset Flex Noun
2628 \begin_layout Plain Layout
2637 \begin_layout Enumerate
2638 via DVI, en utilisant
2639 \begin_inset Flex Noun
2642 \begin_layout Plain Layout
2651 \begin_layout Enumerate
2653 \begin_inset Flex Noun
2656 \begin_layout Plain Layout
2666 \begin_layout Enumerate
2668 \begin_inset Flex Noun
2671 \begin_layout Plain Layout
2681 \begin_layout Standard
2682 Pour définir de tels choix de séquences, vous devez définir plusieurs
2683 \begin_inset Quotes cld
2687 \begin_inset Quotes crd
2690 cible, comme décrit dans la
2691 \begin_inset CommandInset ref
2693 reference "sec:Formats"
2698 Par exemple, avec la configuration standard, les formats dénommés
2699 \begin_inset Flex Noun
2702 \begin_layout Plain Layout
2709 \begin_inset Flex Noun
2712 \begin_layout Plain Layout
2719 \begin_inset Flex Noun
2722 \begin_layout Plain Layout
2729 \begin_inset Flex Noun
2732 \begin_layout Plain Layout
2739 \begin_inset Flex Noun
2742 \begin_layout Plain Layout
2749 \begin_inset Flex Noun
2752 \begin_layout Plain Layout
2759 \begin_inset Flex Noun
2762 \begin_layout Plain Layout
2769 \begin_inset Flex Noun
2772 \begin_layout Plain Layout
2780 \begin_inset Flex Noun
2783 \begin_layout Plain Layout
2789 (pour Lua\SpecialChar TeX
2790 ) sont définis, qui correspondent tous au suffixe
2791 \begin_inset Flex Noun
2794 \begin_layout Plain Layout
2800 et auxquels sont associées les trois méthodes décrites ci-dessus.
2803 \begin_layout Chapter
2804 Internationaliser \SpecialChar LyX
2806 \begin_inset CommandInset label
2815 \begin_layout Standard
2816 Il est possible de traduire l'interface utilisateur de \SpecialChar LyX
2818 La dernière fois que nous avons vérifié, \SpecialChar LyX
2819 était disponible en 30 langues.
2820 La langue que vous avez choisie est appelée votre
2824 (pour plus de renseignements sur les réglages de localisation, voyez la
2825 documentation de votre système d'exploitation sur les locales.
2826 Pour Linux, la page de man de
2827 \begin_inset Flex Noun
2830 \begin_layout Plain Layout
2836 est un bon point de départ).
2839 \begin_layout Standard
2840 Notez que ces traductions fonctionnent, mais présentent quelques failles.
2841 En particulier, toutes les fenêtres ont été tracées en fonction du texte
2842 anglais, et quelques-unes des traductions sont trop grandes pour rentrer
2843 dans l'espace alloué.
2844 Ce n'est qu'un problème d'affichage sans conséquence.
2845 Vous verrez aussi que certaines traductions n'ont pas de raccourcis définis
2847 Parfois, c'est qu'il n'y a pas assez de lettres disponibles.
2848 Parfois c'est que le traducteur n'a tout simplement pas encore eu le temps
2850 Nos équipes de traduction, que vous pouvez souhaiter rejoindre
2854 \begin_layout Plain Layout
2855 Si vous parlez couramment une autre langue que l'anglais, rejoindre ces
2856 équipes est un des grands moyens de rendre service à la communauté des
2857 développeurs et utilisateurs de \SpecialChar LyX
2863 , essaieront de faire disparaître ces inconvénients dans les versions futures
2868 \begin_layout Section
2869 Traduire \SpecialChar LyX
2873 \begin_layout Subsection
2874 Traduire l'interface graphique (messages textuels)
2877 \begin_layout Standard
2879 utilise la bibliothèque GNU
2880 \begin_inset Flex Noun
2883 \begin_layout Plain Layout
2889 pour gérer l'internationalisation de l'interface.
2890 Pour que \SpecialChar LyX
2891 parle votre langue favorite dans tous les menus et fenêtres,
2892 vous avez besoin d'un fichier
2893 \begin_inset Flex Noun
2896 \begin_layout Plain Layout
2903 Quand celui-ci est disponible, vous devez générer à partir de là un fichier
2905 \begin_inset Flex Noun
2908 \begin_layout Plain Layout
2914 et installer ce dernier.
2915 Tout ce processus est expliqué dans la documentation de GNU
2916 \begin_inset Flex Noun
2919 \begin_layout Plain Layout
2926 Vous pouvez effectuer cette traduction pour votre propre besoin, mais si
2927 vous avez l'intention de la faire, vous pouvez aussi bien partager le résultat
2928 de votre travail avec la communauté \SpecialChar LyX
2930 Envoyez un message à la liste de messagerie des développeurs \SpecialChar LyX
2932 d'information sur la procédure.
2935 \begin_layout Standard
2936 En bref, voici un résumé de ce qu'il faut faire (
2942 est le code de la langue):
2945 \begin_layout Itemize
2946 télécharger le code source de \SpecialChar LyX
2948 \begin_inset CommandInset href
2950 name "page d'information sur le Web"
2951 target "https://www.lyx.org/HowToUseGIT"
2959 \begin_layout Itemize
2961 \begin_inset Flex Noun
2964 \begin_layout Plain Layout
2971 \begin_inset Flex Noun
2974 \begin_layout Plain Layout
2980 , le répertoire des fichiers
2981 \begin_inset Flex Noun
2984 \begin_layout Plain Layout
2995 \begin_inset Flex Noun
2998 \begin_layout Plain Layout
3013 \begin_inset Flex Noun
3016 \begin_layout Plain Layout
3022 n'existe pas, il peut être recréé avec la commande
3023 \begin_inset Flex Noun
3026 \begin_layout Plain Layout
3032 dans ce répertoire, ou bien vous pouvez utiliser le fichier
3033 \begin_inset Flex Noun
3036 \begin_layout Plain Layout
3042 d'une autre langue comme modèle).
3045 \begin_layout Itemize
3059 \begin_layout Plain Layout
3060 C'est un fichier texte: il peut donc être modifié par n'importe quel éditeur
3062 Mais il existe des programmes spécifiques pour gérer les modifications,
3064 \begin_inset Flex Noun
3067 \begin_layout Plain Layout
3073 (toutes plate-formes) ou
3074 \begin_inset Flex Noun
3077 \begin_layout Plain Layout
3084 Emacs est également doté d'un
3085 \begin_inset Quotes cld
3089 \begin_inset Quotes crd
3092 pour modifier les fichier
3093 \begin_inset Flex Noun
3096 \begin_layout Plain Layout
3102 , mais attention, les fichiers sont encodés en Unicode, voir
3103 \begin_inset Flex URL
3106 \begin_layout Plain Layout
3108 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3122 Pour certains menus, il y a aussi des touches de raccourci qui doivent
3124 Ces touches viennent après un
3127 \begin_inset Quotes cld
3131 \begin_inset Quotes crd
3136 , et doivent être adaptées au texte traduit.
3137 Vous devez aussi remplir les champs au début du nouveau fichier
3138 \begin_inset Flex Noun
3141 \begin_layout Plain Layout
3147 avec votre adresse e-mail, etc., pour que les gens sachent comment vous
3148 joindre pour proposer des suggestions, ou pour démolir votre travail.
3151 \begin_layout Standard
3152 Si vous voulez juste traduire pour vous-même, alors:
3155 \begin_layout Itemize
3164 \begin_inset Newline newline
3168 \begin_inset Flex Noun
3171 \begin_layout Plain Layout
3172 msgfmt -o xx.mo < xx.po
3180 \begin_layout Itemize
3182 \begin_inset Flex Noun
3185 \begin_layout Plain Layout
3191 dans votre répertoire de locales, dans le répertoire correspondant aux
3192 messages pour la langue
3199 \begin_inset Flex Noun
3202 \begin_layout Plain Layout
3209 \begin_inset Newline newline
3213 \begin_inset Flex Noun
3216 \begin_layout Plain Layout
3217 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3225 \begin_layout Standard
3226 Pour ajouter un nouveau fichier
3235 (ce qui serait mieux pour que d'autres puisent en profiter), il faut
3236 effectuer quelques changements dans \SpecialChar LyX
3237 : envoyez donc une courrier à la liste
3238 de messagerie des développeurs pour ce faire.
3241 \begin_layout Subsubsection
3245 \begin_layout Standard
3246 Il arrive quelquefois qu'un message anglophone doive être traduit de différentes
3247 façons dans le langage cible.
3248 Un exemple est le message
3249 \begin_inset Flex Code
3252 \begin_layout Plain Layout
3260 qui se traduit en français par
3261 \begin_inset Flex Noun
3264 \begin_layout Plain Layout
3273 \begin_inset Flex Noun
3276 \begin_layout Plain Layout
3282 , suivant le genre et l'initiale du mot suivant.
3284 \begin_inset Flex Code
3287 \begin_layout Plain Layout
3295 ne sait pas gérer de telles traductions ambiguës, et vous devez donc ajouter
3296 une information contextuelle au message: au lieu de
3297 \begin_inset Flex Code
3300 \begin_layout Plain Layout
3309 \begin_inset Flex Code
3312 \begin_layout Plain Layout
3321 \begin_inset Flex Code
3324 \begin_layout Plain Layout
3332 De ce fait, les deux occurrences de
3333 \begin_inset Flex Code
3336 \begin_layout Plain Layout
3344 sont différentes pour
3345 \begin_inset Flex Code
3348 \begin_layout Plain Layout
3356 et peuvent être traduites correctement pour
3357 \begin_inset Flex Noun
3360 \begin_layout Plain Layout
3365 \begin_inset space ~
3374 \begin_inset Flex Noun
3377 \begin_layout Plain Layout
3382 \begin_inset space ~
3393 \begin_layout Standard
3394 Bien entendu l'information contextuelle doit être supprimée de l'affichage
3395 lorsqu'aucune traduction n'est utilisée, c'est pourquoi il faut la mettre
3396 entre double crochets à la fin du message comme ci-dessus.
3397 Le mécanisme de traduction de \SpecialChar LyX
3398 assure que tout ce qui est entre double
3399 crochets à la fin des messages est supprimé à l'affichage du message.
3402 \begin_layout Subsection
3403 Traduire la documentation
3406 \begin_layout Standard
3407 La documentation en ligne (dans le menu
3411 ) peut (et doit !) être traduite.
3412 S'il existe une traduction de la documentation
3416 \begin_layout Plain Layout
3417 En mars 2008, au moins quelques documents avaient été traduit en14 langues,
3418 le manuel d'apprentissage étant disponible en quelques autres.
3423 , et si la locale est correctement réglée, \SpecialChar LyX
3424 affichera tout seul la version
3427 cherche les versions traduites sous le nom
3428 \begin_inset Flex Noun
3431 \begin_layout Plain Layout
3448 est le code pour la langue en cours d'utilisation.
3449 S'il n'y a pas de traduction disponible, c'est la version anglaise qui
3451 Notez que les versions traduites doivent avoir le même nom de fichier (ici
3453 \begin_inset Flex Noun
3456 \begin_layout Plain Layout
3463 Si vous vous sentez de traduire la documentation (ce qui est d'ailleurs
3464 un excellent moyen de corriger la documentation d'origine!), il y a un
3465 certain nombre de choses que vous devez faire tout de suite:
3468 \begin_layout Itemize
3469 faire un tour sur la page web de la
3470 \begin_inset CommandInset href
3472 name "traduction des documentations"
3473 target "https://www.lyx.org/WebFr.Translation"
3478 sur le site de \SpecialChar LyX
3480 De cette façon, vous pourrez voir quels documents ont déjà été traduits
3481 dans votre langue, s'il y en a.
3482 Vous y trouverez aussi qui s'occupe d'organiser l'effort de traduction
3484 Si personne ne s'en occupe, faites-nous connaître votre intérêt.
3487 \begin_layout Standard
3488 Une fois que vous vous y mettez pour de bon, voilà quelques conseils qui
3489 pourront vous éviter des ennuis:
3492 \begin_layout Itemize
3493 joignez-vous à l'équipe de documentation!
3499 Aide\SpecialChar menuseparator
3502 ) explique comment faire.
3503 C'est d'ailleurs le premier document à traduire;
3506 \begin_layout Itemize
3507 étudiez les conventions typographiques de la langue dans laquelle vous traduisez.
3508 La typographie est un art ancien et au cours des siècles, une grande variété
3509 de conventions ont vu le jour dans les différentes parties du globe.
3510 Apprenez aussi le vocabulaire spécifique des professionnels de la typographie
3512 Si vous inventez votre propre terminologie, vous allez induire les lecteurs
3516 Attention ! La typographie peut devenir une passion !
3521 \begin_layout Itemize
3522 faites une copie du document (dans les cas simples, sinon voyez la note
3524 \begin_inset space ~
3528 \begin_inset CommandInset ref
3530 reference "fn:NdT-:-Je"
3535 Ce sera votre fichier de travail.
3536 Vous pouvez l'utiliser comme fichier d'aide personnel en le mettant dans
3540 \begin_inset Flex Code
3543 \begin_layout Plain Layout
3554 \begin_inset Newline newline
3560 \begin_inset Note Greyedout
3563 \begin_layout Plain Layout
3568 pour un document complexe doté d'éléments externes (images, etc.), si vous
3569 voulez faire une copie dans un répertoire temporaire par exemple, faites
3570 attention aux liens vers les éléments externes qui peuvent être brisés
3571 quand le document est déplacé d'un endroit à un autre.
3572 La meilleure méthode est de télécharger l'arborescence \SpecialChar LyX
3575 \begin_inset Flex URL
3578 \begin_layout Plain Layout
3580 https://www.lyx.org/WebFr.HowToUseGIT
3585 ) et de modifier le ficher de documentation en place.
3593 \begin_layout Itemize
3594 de temps à autre le document original (de l'équipe \SpecialChar LyX
3597 \begin_inset CommandInset href
3599 name "l'interface d'affichage des source"
3600 target "https://www.lyx.org/trac/browser"
3605 pour voir ce qui a changé.
3606 De cette façon vous pouvez voir facilement les parties de votre document
3607 qui ont besoin d'être mises à jour
3611 \begin_layout Plain Layout
3612 NdT : Je conseille très vivement de partir des fichiers disponibles sur
3613 Trac, et de ne pas perdre de temps à traduire la version contenue dans
3614 votre distribution pour s'apercevoir trop tard que tout est périmé.
3615 J’ajoute que la meilleure solution est de récupérer l'image courante des
3616 sources de \SpecialChar LyX
3619 \begin_inset CommandInset href
3622 target "https://www.lyx.org/WebFr.HowToUseGIT"
3627 ) et de modifier directement le fichier concerné dans l'arborescence importée:
3628 de cette façon, les liens vers les images ne seront pas modifiés lors de
3629 la sauvegarde du fichier, et la version modifiée pourra être soumise sans
3630 modifications aux développeurs.
3631 \begin_inset CommandInset label
3645 \begin_layout Standard
3646 Si vous avez trouvé une erreur dans le document original, corrigez-la et
3647 dites-le au reste de l'équipe de documentation (que vous n'avez pas manqué
3648 de rejoindre, n'est-ce pas ?)
3651 \begin_layout Standard
3652 \begin_inset Branch Obsolete
3656 \begin_layout Section
3657 Support de Clavier International
3660 \begin_layout Standard
3663 [Note de l'Éditeur : La section qui suit a été écrite par
3668 Il faut la corriger pour qu'elle soit conforme à la nouvelle feuille de
3669 style de la Documentation et pour utiliser les nouvelles fonctions de la
3671 Le tout doit aussi être fusionné avec la section d'après.
3675 \begin_layout Subsection
3676 Définir ses propres réaffectations clavier : Format de fichier
3681 \begin_layout Standard
3682 Regardons d'un peu plus près un fichier de définition de clavier.
3683 C'est un fichier ASCII qui définit :
3686 \begin_layout Itemize
3687 des correspondances touche à touche ou touche à chaîne
3690 \begin_layout Itemize
3694 \begin_layout Itemize
3695 des exceptions des touches mortes
3698 \begin_layout Standard
3699 Pour définir une traduction touche à touche ou touche à chaîne, utilisez
3703 \begin_layout Quotation
3715 \begin_layout Standard
3720 est la touche à traduire et
3724 est la chaîne à insérer dans le document.
3725 Pour définir des touches mortes, faites :
3728 \begin_layout Quotation
3733 kmod touche touche_morte
3736 \begin_layout Standard
3741 est la touche du clavier et
3745 est le nom de la touche morte.
3746 Les touches mortes suivantes sont supportées (nom du raccourci entre parenthèse
3750 \begin_layout Quotation
3754 \begin_inset space \hfill{}
3760 \begin_layout Quotation
3762 \begin_inset space \hfill{}
3768 \begin_layout Quotation
3770 \begin_inset space \hfill{}
3776 \begin_layout Quotation
3778 \begin_inset space \hfill{}
3784 \begin_layout Quotation
3786 \begin_inset space \hfill{}
3792 \begin_layout Quotation
3794 \begin_inset space \hfill{}
3801 \begin_layout Plain Layout
3813 \begin_layout Quotation
3815 \begin_inset space \hfill{}
3821 \begin_layout Quotation
3823 \begin_inset space \hfill{}
3830 \begin_layout Plain Layout
3842 \begin_layout Quotation
3844 \begin_inset space \hfill{}
3850 \begin_layout Quotation
3852 \begin_inset space \hfill{}
3858 \begin_layout Quotation
3860 \begin_inset space \hfill{}
3867 \begin_layout Plain Layout
3879 \begin_layout Quotation
3881 \begin_inset space \hfill{}
3888 \begin_layout Plain Layout
3900 \begin_layout Quotation
3902 \begin_inset space \hfill{}
3908 \begin_layout Quotation
3909 hungarian umlaut (hug)
3910 \begin_inset space \hfill{}
3916 \begin_layout Quotation
3918 \begin_inset space \hfill{}
3924 \begin_layout Quotation
3926 \begin_inset space \hfill{}
3933 \begin_layout Plain Layout
3945 \begin_layout Standard
3946 Dans beaucoup de claviers internationaux il y a des exceptions dans les
3947 règles d'emploi des touches mortes, vous pouvez les définir ainsi :
3950 \begin_layout Quotation
3955 kxmod touche_morte touche chaîne_sortie
3958 \begin_layout Standard
3959 Par exemple, sur un clavier slovaque, si vous tapez caron-o, ça génère circonfle
3960 xe-o, il faut donc mettre :
3963 \begin_layout Quotation
3977 \begin_layout Standard
3978 pour le faire marcher correctement.
3979 Vous devez aussi définir comme des exceptions les touches mortes avec i
3980 et j, pour enlever le point avant d'insérer une marque d'accentuation.
3981 Je changerai ceci le moment venu, mais je n'en ai pas encore eu le temps.
3984 \begin_layout Standard
3985 Au fait, à propos des caractères : l'antislash est un caractère d'échappement,
3986 pour l'entrer, il faut taper un double antislash.
3991 ont aussi un sens différent.
3996 indique les commentaires, les guillemets entourent les commandes style
3999 Pour entrer un guillemet, il faut taper
4018 \begin_layout Standard
4019 Si vous faites un fichier de réaffectation clavier qui marche pour votre
4020 langue, merci de me l'envoyer, pour que je puisse l'inclure dans la prochaine
4021 distribution de réaffectations clavier.
4024 \begin_layout Standard
4025 Il y aura plus de mots-clés supportés à l'avenir dans les fichiers de réaffectat
4026 ion clavier, comme :
4029 \begin_layout Itemize
4034 kinclude nom_fichier
4037 \begin_inset space \hfill{}
4040 inclut un autre fichier (
4047 \begin_layout Itemize
4055 \begin_inset space \hfill{}
4058 définit un programme externe de traduction (
4065 \begin_layout Standard
4066 Il devrait aussi chercher dans
4070 les valeurs par défaut (par exemple, une option
4076 pour inclure le clavier par défaut).
4084 \begin_layout Section
4085 Les Claviers Internationaux
4086 \begin_inset CommandInset label
4095 \begin_layout Standard
4096 \begin_inset Note Note
4099 \begin_layout Plain Layout
4100 En révisant ce document en mars 2008, le relecteur anglophone n'a pas vérifié
4101 cette section par manque de compréhension de son contenu.
4102 Ce serait bien que quelqu'un s'en charge.
4103 Le traducteur francophone (SMGC) l'avait traduit tel quel, le relecteur
4104 francophone (JPC) l'a relu tel quel.
4112 \begin_layout Standard
4113 Les deux sections suivantes décrivent en détail la syntaxe des fichiers
4115 \begin_inset Flex Code
4118 \begin_layout Plain Layout
4125 \begin_inset Flex Code
4128 \begin_layout Plain Layout
4135 Ces sections devraient vous aider à concevoir votre propre réaffectation
4136 clavier si celles fournies ne vous donnent pas satisfaction.
4139 \begin_layout Subsection
4145 \begin_layout Standard
4147 \begin_inset Flex Noun
4150 \begin_layout Plain Layout
4156 fait correspondre des appuis clavier à des caractères ou à des chaînes
4158 Il définit une réaffectation clavier
4162 \begin_layout Plain Layout
4163 NdT : Keyboard MAPping.
4169 Cette section décrit les mots clés
4170 \begin_inset Flex Code
4173 \begin_layout Plain Layout
4180 \begin_inset Flex Code
4183 \begin_layout Plain Layout
4190 \begin_inset Flex Code
4193 \begin_layout Plain Layout
4200 \begin_inset Flex Code
4203 \begin_layout Plain Layout
4210 \begin_inset Flex Code
4213 \begin_layout Plain Layout
4222 \begin_layout Labeling
4223 \labelwidthstring 00.00.0000
4224 \begin_inset Flex Code
4227 \begin_layout Plain Layout
4233 fait correspondre un caractère à une chaîne
4236 \begin_layout LyX-Code
4245 \begin_layout Standard
4246 Ceci fait correspondre
4259 , le guillemet double (
4269 ) doivent être protégés par un antislash (
4278 \begin_layout Standard
4279 Voici un exemple de commande
4280 \begin_inset Flex Noun
4283 \begin_layout Plain Layout
4289 qui fait s'afficher le symbole
4290 \begin_inset Flex Noun
4293 \begin_layout Plain Layout
4299 quand on tape la touche
4300 \begin_inset Flex Noun
4303 \begin_layout Plain Layout
4312 \begin_layout LyX-Code
4320 \begin_layout Labeling
4321 \labelwidthstring 00.00.0000
4322 \begin_inset Flex Code
4325 \begin_layout Plain Layout
4331 définit un caractère accentué
4334 \begin_layout LyX-Code
4340 caractère accent autorisés
4343 \begin_layout Standard
4357 C'est le principe de la touche morte
4361 \begin_layout Plain Layout
4366 désigne une touche qui seule ne produit pas de caractère, mais qui produit
4367 le caractère accentué voulu quand elle est suivie par une autre touche
4369 Par exemple, pour écrire un
4372 \begin_inset Quotes cld
4376 \begin_inset Quotes crd
4381 sur un clavier français, il faut d'abord taper sur
4384 \begin_inset Quotes cld
4388 \begin_inset Quotes crd
4396 \begin_inset Quotes cld
4400 \begin_inset Quotes crd
4413 \begin_layout Standard
4418 puis une autre touche qui ne fait pas partie des caractères
4422 , vous obtiendrez un
4426 suivi par l'autre touche non autorisée.
4428 \begin_inset Flex Noun
4431 \begin_layout Plain Layout
4437 efface une touche morte, si vous tapez
4442 \begin_inset Flex Noun
4445 \begin_layout Plain Layout
4451 , le curseur ne recule pas mais annule l'effet que
4455 aurait pu avoir sur la touche suivante.
4458 \begin_layout Standard
4459 Dans l'exemple suivant, il est spécifié que le caractère ' doit être un
4460 accent aigu, autorisé sur les caractères a, e, i, o, u, A, E, I, O et U
4464 \begin_layout LyX-Code
4467 kmod ' acute aeiouAEIOU
4470 \begin_layout Labeling
4471 \labelwidthstring 00.00.0000
4472 \begin_inset Flex Code
4475 \begin_layout Plain Layout
4481 définit une exception au caractère accentué
4484 \begin_layout LyX-Code
4490 accent caractère résultat
4493 \begin_layout Standard
4494 Ceci définit une exception pour l'
4507 doit avoir été assigné auparavant par une déclaration
4508 \begin_inset Flex Code
4511 \begin_layout Plain Layout
4523 ne doit pas faire partie des caractères
4532 Quand vous tapez la séquence
4545 Si une telle déclaration n'existe pas dans le fichier
4546 \begin_inset Flex Code
4549 \begin_layout Plain Layout
4561 touche_accent caractère
4567 est le premier paramètre de la déclaration
4568 \begin_inset Flex Code
4571 \begin_layout Plain Layout
4582 \begin_layout Standard
4583 Avec la commande suivante, vous obtenez äi quand vous tapez acute-i ('i)
4587 \begin_layout LyX-Code
4601 \begin_layout Labeling
4602 \labelwidthstring 00.00.0000
4603 \begin_inset Flex Code
4606 \begin_layout Plain Layout
4612 Combine deux caractères accentués
4615 \begin_layout LyX-Code
4621 accent1 accent2 autorisés
4624 \begin_layout Standard
4625 Celui-ci est assez ésotérique.
4626 Il vous permet de combiner les effets de l'
4634 (dans cet ordre !) sur les caractères
4647 doivent avoir été définies par une commande
4660 \begin_layout Standard
4661 Voyez cet exemple extrait du fichier
4668 \begin_layout LyX-Code
4671 kmod ; acute aeioyvhAEIOYVH
4674 \begin_layout LyX-Code
4680 \begin_layout LyX-Code
4683 kcomb acute umlaut iyIY
4686 \begin_layout Standard
4687 Ça vous permet de taper
4691 et d'avoir l'effet de
4701 \begin_inset Flex Noun
4704 \begin_layout Plain Layout
4710 annule la dernière touche morte, donc si vous tapez
4711 \begin_inset Flex Code
4714 \begin_layout Plain Layout
4729 \begin_layout Subsection
4735 \begin_layout Standard
4736 Après que la réaffectation
4737 \begin_inset Flex Noun
4740 \begin_layout Plain Layout
4746 a été effectuée, un fichier
4747 \begin_inset Flex Code
4750 \begin_layout Plain Layout
4756 convertit les chaînes de symboles obtenues dans la police de caractères.
4757 Actuellement, la distribution de \SpecialChar LyX
4758 comprend au moins les fichiers
4759 \begin_inset Flex Code
4762 \begin_layout Plain Layout
4769 \begin_inset Flex Code
4772 \begin_layout Plain Layout
4781 \begin_layout Standard
4782 En général le fichier
4783 \begin_inset Flex Code
4786 \begin_layout Plain Layout
4792 est une suite de déclarations de la forme :
4795 \begin_layout LyX-Code
4799 numéro_du_caractère chaîne
4802 \begin_layout Standard
4803 Par exemple, pour affecter
4809 au caractère correspondant dans le jeu iso-8859-1 (233), il y a la déclaration
4813 \begin_layout LyX-Code
4821 \begin_layout Standard
4823 \begin_inset Flex Code
4826 \begin_layout Plain Layout
4835 \begin_inset Flex Code
4838 \begin_layout Plain Layout
4849 Notez que le même caractère peut servir pour plus d'une chaîne.
4851 \begin_inset Flex Code
4854 \begin_layout Plain Layout
4863 \begin_layout LyX-Code
4875 \begin_inset Newline newline
4891 \begin_layout Standard
4893 ne trouve pas de correspondance pour la chaîne produite par une touche
4894 ou une séquence avec des touches mortes, il va vérifier si elle ressemble
4895 à un caractère accentué et va essayer à l'écran de tracer un accent par
4896 dessus le caractère.
4899 \begin_layout Subsection
4903 \begin_layout Standard
4904 Il y a une autre façon d'ajouter le support pour des caractères internationaux
4905 par l'intermédiaire des touches mortes.
4906 Une touche morte marche en combinaison avec une lettre pour produire un
4908 Ici, nous allons expliquer comment créer une touche morte vraiment simple
4909 pour montrer comment elles marchent.
4912 \begin_layout Standard
4913 Supposez que vous ayez besoin du caractère circonflexe,
4917 \begin_layout Plain Layout
4918 NdT : déjà présent en français, mais nous allons conserver cet exemple.
4926 \begin_inset Quotes cld
4930 \begin_inset Quotes crd
4936 Vous devez faire correspondre la touche circonflexe à la commande \SpecialChar LyX
4938 \begin_inset Flex Code
4941 \begin_layout Plain Layout
4948 \begin_inset Flex Code
4951 \begin_layout Plain Layout
4958 Maintenant, à chaque fois que vous taperez la touche circonflexe suivie
4959 par une lettre, il y aura un accent circonflexe dessus.
4960 Par exemple, la séquence
4963 \begin_inset Quotes cld
4969 \begin_inset Flex Code
4972 \begin_layout Plain Layout
4981 \begin_inset Quotes crd
4989 \begin_inset Quotes cld
4995 \begin_inset Flex Code
4998 \begin_layout Plain Layout
5007 \begin_inset Quotes crd
5013 Cependant, si vous essayez de taper
5016 \begin_inset Quotes cld
5022 \begin_inset Flex Code
5025 \begin_layout Plain Layout
5034 \begin_inset Quotes crd
5040 va se plaindre avec un bip, car un
5043 \begin_inset Quotes cld
5049 \begin_inset Flex Code
5052 \begin_layout Plain Layout
5061 \begin_inset Quotes crd
5066 ne prend jamais d'accent circonflexe.
5068 \begin_inset Flex Noun
5071 \begin_layout Plain Layout
5077 après une touche morte fait s'afficher l'accent seul.
5078 Notez bien ce dernier point ! Si vous faites correspondre une touche à
5079 une touche morte, vous devez faire correspondre le caractère sur cette
5080 touche à une touche différente.
5081 Faire correspondre la virgule à une cédille est une mauvaise idée, car
5082 vous n'aurez plus que des cédilles à la place des virgules.
5085 \begin_layout Standard
5086 Une façon courante de créer des touches mortes est d'utiliser
5087 \begin_inset Flex Noun
5090 \begin_layout Plain Layout
5097 \begin_inset Flex Noun
5100 \begin_layout Plain Layout
5107 \begin_inset Flex Noun
5110 \begin_layout Plain Layout
5116 en combinaison avec un accent, comme
5119 \begin_inset Quotes cld
5123 \begin_inset Quotes crd
5131 \begin_inset Quotes cld
5135 \begin_inset Quotes crd
5141 Une autre méthode met en jeu
5142 \begin_inset Flex Code
5145 \begin_layout Plain Layout
5152 \begin_inset Flex Code
5155 \begin_layout Plain Layout
5164 \begin_inset space ~
5168 \begin_inset space ~
5173 ) pour configurer la touche spéciale
5174 \begin_inset Flex Code
5177 \begin_layout Plain Layout
5184 Elle agit un peu comme
5185 \begin_inset Flex Noun
5188 \begin_layout Plain Layout
5194 et permet de faire correspondre des touches à des caractères accentués.
5195 Vous pouvez aussi transformer des touches en touches mortes en les affectant
5196 à quelque chose comme
5197 \begin_inset Flex Code
5200 \begin_layout Plain Layout
5206 puis en affectant cette touche symbolique à la commande \SpecialChar LyX
5211 \begin_layout Plain Layout
5216 : C'est exactement ce que je fais dans mes fichiers
5228 \begin_inset space ~
5236 \begin_inset space ~
5241 ) est configurée comme
5245 et j'ai affecté des choses comme
5248 \begin_inset space ~
5256 \begin_inset space ~
5261 à un tas de touches symboliques
5264 \begin_inset Quotes cld
5268 \begin_inset Quotes crd
5274 C'est comme ça que j'obtiens tous mes caractères accentués.
5279 Vous pouvez transformer à peu près n'importe quelle touche en touche
5280 \begin_inset Flex Code
5283 \begin_layout Plain Layout
5290 \begin_inset Flex Code
5293 \begin_layout Plain Layout
5299 , une touche de fonction inutilisée, etc.
5300 Quant aux commandes \SpecialChar LyX
5301 qui produisent des accents, voyez à l'entrée
5302 \begin_inset Flex Code
5305 \begin_layout Plain Layout
5314 \begin_inset space ~
5318 \begin_inset space ~
5324 Là-bas il y a la liste complète.
5327 \begin_layout Subsection
5328 Enregistrer votre configuration linguistique
5331 \begin_layout Standard
5332 Vous pouvez éditer vos préférences dans la fenêtre
5334 Outils\SpecialChar menuseparator
5337 pour que \SpecialChar LyX
5338 démarre avec l'environnement linguistique que vous souhaitez,
5339 automatiquement configuré.
5342 \begin_layout LyX-Code
5346 \begin_layout Chapter
5347 Installer de nouvelles classes de document, formats et modèles
5348 \begin_inset CommandInset label
5350 name "chap:classe-texte"
5355 \begin_inset Argument 1
5358 \begin_layout Plain Layout
5359 Installer de nouvelles classes
5367 \begin_layout Standard
5368 Dans ce chapitre, nous décrivons comment créer et installer de nouveaux
5369 fichiers de format \SpecialChar LyX
5370 ou de modèle, et nous vous offrons une révision des
5371 procédures correctes d'installation de nouvelles classes de document \SpecialChar LaTeX
5375 \begin_layout Standard
5376 D'abord, quelques mots pour décrire une bonne approche de la relation entre
5378 et \SpecialChar LaTeX
5380 Ce qu'il faut bien comprendre, c'est qu'en certain sens, \SpecialChar LyX
5382 de \SpecialChar LaTeX
5384 De fait, du point de vue de \SpecialChar LyX
5385 , \SpecialChar LaTeX
5387 \begin_inset Quotes cld
5391 \begin_inset Quotes crd
5394 particulier parmi d'autres formats susceptibles de produire un résultat.
5395 D'autres formats sont DocBook, texte brut, et XHTML.
5397 est bien entendu un format particulièrement important, mais une très petite
5398 quantité d'information concernant \SpecialChar LaTeX
5399 est réellement contenue dans \SpecialChar LyX
5404 \begin_layout Plain Layout
5405 Certaines commandes sont suffisamment compliquées pour être codées
5406 \begin_inset Quotes cld
5410 \begin_inset Quotes crd
5413 dans les sources \SpecialChar LyX
5414 , mais les développeurs considèrent que c'est une mauvaise
5420 Cette information, même pour des classes standard comme
5421 \begin_inset Flex Code
5424 \begin_layout Plain Layout
5430 , est contenue dans les
5431 \begin_inset Quotes cld
5435 \begin_inset Quotes crd
5439 De même, \SpecialChar LyX
5440 ne connaît pas grand chose de DocBook ou XHTML, tout est décrit
5441 dans les fichiers de format.
5444 \begin_layout Standard
5445 Vous pouvez imaginer un fichier de format pour une classe de document donnée
5446 comme un traducteur entre les constructions \SpecialChar LyX
5447 — paragraphes et leur style
5448 associé, certains types d'inserts, etc.
5449 — et les constructions \SpecialChar LaTeX
5450 , DocBook ou XHTML correspondantes.
5451 Pratiquement tout ce que \SpecialChar LyX
5453 \begin_inset Flex Code
5456 \begin_layout Plain Layout
5462 , par exemple, est contenu dans le ficher
5463 \begin_inset Flex Code
5466 \begin_layout Plain Layout
5472 et dans les fichiers inclus par celui-ci.
5473 Pour cette raison, un étude approfondie de ces fichiers est une bonne idée
5474 si vous avez l'intention d'écrire un fichier de format.
5475 Un bon point de départ est le fichier
5476 \begin_inset Flex Code
5479 \begin_layout Plain Layout
5486 \begin_inset Flex Code
5489 \begin_layout Plain Layout
5496 \begin_inset Flex Code
5499 \begin_layout Plain Layout
5505 et de nombreux autres fichiers de format pour de classes de document \SpecialChar LaTeX
5507 C'est dans ce fichier que sont définies les sections et les constructions
5509 \begin_inset Flex Code
5512 \begin_layout Plain Layout
5518 décrit pour \SpecialChar LyX
5519 comment les paragraphes marqués en style Section, SousSection,
5521 peuvent être traduits en commandes ou balises \SpecialChar LaTeX
5523 Le fichier article.layout ne contient essentiellement que des inclusions
5525 \begin_inset Flex Code
5528 \begin_layout Plain Layout
5537 \begin_layout Standard
5538 Définir la correspondance \SpecialChar LyX
5540 n'est cependant pas la seule fonction des fichiers
5542 Leur autre but est de préciser comment les constructions \SpecialChar LyX
5545 Le fait que ces fichiers assurent ces deux fonctions est souvent source
5546 de confusion, parce qu'elles sont tout à fait séparées: expliquer à \SpecialChar LyX
5548 traduire un style de paragraphe en \SpecialChar LaTeX
5549 ne lui dit pas comment l'afficher;
5550 inversement, expliquer à \SpecialChar LyX
5551 comment afficher un paragraphe ne lui dit pas
5552 comment le traduire en \SpecialChar LaTeX
5553 (sans parler de lui dire comment \SpecialChar LaTeX
5555 Par conséquent, en général, quand vous devez définir une nouvelle construction
5557 , vous devez toujours effectuer deux tâches distinctes: (a) écrire comment
5558 la traduire en \SpecialChar LaTeX
5559 et (b) écrire comment l'afficher.
5562 \begin_layout Standard
5563 La même distinction est vraie pour les autre formats de sortie, bien que
5564 XHTML soit différent sous divers aspects, du fait que dans ce cas \SpecialChar LyX
5566 capable d'utiliser au moins partiellement l'information concernant l'affichage
5567 à l'écran pour créer l'information (sous forme de CSS) nécessaire à l'affichage
5569 Même dans ce cas, cependant, la distinction entre les mécanismes internes
5571 et la façon dont les objets sont restitués à l'extérieur reste valide,
5572 et le contrôle séparé des deux facettes reste possible.
5574 \begin_inset CommandInset ref
5576 reference "sec:Tags-for-XHTML"
5583 \begin_layout Section
5584 Installer de nouveaux fichiers \SpecialChar LaTeX
5588 \begin_layout Standard
5589 Certaines installations peuvent ne pas contenir le paquetage \SpecialChar LaTeX
5591 justement utiliser avec \SpecialChar LyX
5593 Par exemple, vous pouvez avoir besoin de Foil\SpecialChar TeX
5594 , un paquetage pour préparer
5595 des transparents pour rétroprojecteurs.
5596 Les distributions \SpecialChar LaTeX
5597 récentes comme \SpecialChar TeX
5598 Live (depuis 2008) ou MiK\SpecialChar TeX
5600 interface utilisateur pour installer de tels paquetages.
5601 Par exemple avec MiK\SpecialChar TeX
5602 , vous démarrez le programme
5603 \begin_inset Quotes cld
5607 \begin_inset space ~
5611 \begin_inset Quotes crd
5614 pour afficher une liste des paquetages disponibles.
5615 Pour installer l'un d'entre eux, il suffit d'effectuer un clic droit sur
5616 son nom ou sur le bouton correspondant de la barre d'outil.
5619 \begin_layout Standard
5620 Si votre distribution \SpecialChar LaTeX
5621 n'inclut pas un tel gestionnaire de paquetage, ou
5622 si le paquetage n'est pas disponible pour votre distribution, alors faites
5623 comme suit pour l'installer manuellement:
5626 \begin_layout Enumerate
5627 Récupérer le paquetage depuis
5628 \begin_inset CommandInset href
5631 target "http://www.ctan.org/"
5639 \begin_layout Enumerate
5640 Si le paquetage contient un fichier doté d'un suffixe
5641 \begin_inset Quotes cld
5645 \begin_inset Flex Code
5648 \begin_layout Plain Layout
5657 \begin_inset Quotes crd
5660 (c'est le cas pour Foil\SpecialChar TeX
5662 \begin_inset Quotes cld
5666 \begin_inset Quotes crd
5669 alors ouvrir une console, aller dans le répertoire de ce fichier et exécuter
5671 \begin_inset Flex Code
5674 \begin_layout Plain Layout
5684 \begin_inset Quotes cld
5688 \begin_inset Quotes crd
5691 le paquetage et vous disposez des fichiers nécessaires à l'installation.
5692 De nombreux paquetages ne sont pas reliés et vous pouvez sauter cette étape;
5695 \begin_layout Enumerate
5696 Vous devez alors décider si ce paquetage doit être disponible pour tous
5697 les utilisateurs ou seulement pour vous-même.
5701 \begin_layout Enumerate
5702 Avec les systèmes *nix (Linux, OSX, etc.), si vous souhaitez que le paquetage
5703 soit disponible pour tous les utilisateurs, installez-le dans l'arborescence
5706 \begin_inset Quotes cld
5710 \begin_inset Quotes crd
5713 , sinon installez-le dans votre arborescence \SpecialChar TeX
5715 \begin_inset Quotes cld
5719 \begin_inset Quotes crd
5723 La nécessité de créer ces arborescences, si elles n'existent pas déjà,
5724 dépend de votre système.
5725 Pour le savoir, examinez le fichier
5726 \begin_inset Flex Code
5729 \begin_layout Plain Layout
5741 \begin_layout Plain Layout
5742 Ce fichier est habituellement dans le répertoire
5746 , bien que vous puissiez exécuter la commande
5747 \begin_inset Flex Code
5750 \begin_layout Plain Layout
5763 L'emplacement de l'arborescence
5764 \begin_inset Quotes cld
5768 \begin_inset Quotes crd
5771 est définie par la variable
5772 \begin_inset Flex Code
5775 \begin_layout Plain Layout
5783 ; elle a usuellement pour valeur
5785 /usr/local/share/texmf/
5787 (installation système),
5789 /usr/local/share/texmf/
5791 (installation utilisateur) ou
5793 /usr/local/texlive/texmf-local
5795 (installation TexLive).
5796 L'emplacement de l'arborescence
5797 \begin_inset Quotes cld
5801 \begin_inset Quotes crd
5805 \begin_inset Flex Code
5808 \begin_layout Plain Layout
5821 \begin_inset Newline newline
5828 où XXXX est l'année de la distribution \SpecialChar TeX
5829 Live (si ces variables ne sont pas
5830 prédéfinies, vous devrez le faire vous-même).
5831 Vous aurez besoin d'avoir les droits d'administration système pour créer
5832 ou modifier l'arborescence
5833 \begin_inset Quotes cld
5837 \begin_inset Quotes crd
5840 , mais votre arborescence
5841 \begin_inset Quotes cld
5845 \begin_inset Quotes crd
5848 ne devrait pas nécessiter de tels droits.
5849 \begin_inset Newline newline
5852 D'une manière générale, il est recommandable d'installer dans le répertoire
5853 utilisateur parce que cette arborescence ne sera pas modifiée lors d'une
5854 mise à jour de votre système.
5855 Elle sera également sauvegardée avec tout le reste lors de le sauvegarde
5856 de votre répertoire utilisateur
5857 \begin_inset Quotes cld
5861 \begin_inset Quotes crd
5864 (que vous effectuez régulièrement, bien entendu).
5867 \begin_layout Enumerate
5868 Avec Windows, si vous souhaitez que le nouveau paquetage soit disponible
5869 pour tous les utilisateurs de votre système, allez dans le répertoire où
5871 est installé, puis dans le sous-répertoire
5879 (pour MiK\SpecialChar TeX
5880 , celui-ci sera implicitement
5897 \begin_layout Plain Layout
5898 Notez que ce chemin sera celui des installations anglophones.
5899 Pour une installation germanophone, ce serait
5900 \begin_inset Flex Code
5903 \begin_layout Plain Layout
5920 , de même pour d'autres langages.
5925 Créer dans ce répertoire un nouveau répertoire dénommé
5926 \begin_inset Flex Code
5929 \begin_layout Plain Layout
5937 et copiez tous les fichiers du paquetage dedans.
5938 Si le paquetage ne doit être accessible que par vous ou si vous n'avez
5939 pas les droits d'administration, faites de même, mais dans le répertoire
5942 avec MiK\SpecialChar TeX
5943 2.8 sur WinXP le répertoire
5944 \begin_inset Newline newline
5950 \begin_inset Flex Code
5953 \begin_layout Plain Layout
5958 Documents and Settings
5970 \begin_inset Newline newline
5974 \begin_inset Phantom HPhantom
5977 \begin_layout Plain Layout
5989 \begin_inset Flex Code
5992 \begin_layout Plain Layout
6013 \begin_inset Newline newline
6016 Avec Vista ce sera le répertoire
6017 \begin_inset Newline newline
6023 \begin_inset Flex Code
6026 \begin_layout Plain Layout
6055 \begin_layout Enumerate
6056 Vous devez alors informer \SpecialChar LaTeX
6057 de la présence de nouveaux fichiers.
6058 Ceci dépend de nouveau de la distribution \SpecialChar LaTeX
6063 \begin_layout Enumerate
6064 Avec \SpecialChar TeX
6065 Live, exécuter la commande
6066 \begin_inset Flex Code
6069 \begin_layout Plain Layout
6078 Si vous avez installé le paquetage pour tous les utilisateurs, vous aurez
6079 besoin des droits d'administration pour ce faire;
6082 \begin_layout Enumerate
6083 Avec MiK\SpecialChar TeX
6084 , si vous avez installé le paquetage pour tous les utilisateurs,
6085 démarrez le programme
6088 \begin_inset Quotes cld
6092 \begin_inset space ~
6098 \begin_inset Quotes crd
6101 et appuyez sur le bouton
6102 \begin_inset Quotes cld
6110 \begin_inset Quotes crd
6114 Sinon démarrez le programme
6115 \begin_inset Quotes cld
6123 \begin_inset Quotes crd
6130 \begin_layout Enumerate
6131 Enfin, vous devez informer \SpecialChar LyX
6132 de l'existence de nouveaux paquetages: dans
6136 Outils\SpecialChar menuseparator
6139 , puis redémarrez \SpecialChar LyX
6143 \begin_layout Standard
6144 Le paquetage est maintenant installé.
6145 Dans notre exemple, la classe de document
6146 \begin_inset Flex Code
6149 \begin_layout Plain Layout
6153 \begin_inset space ~
6161 est maintenant disponible dans
6163 Document\SpecialChar menuseparator
6164 Paramètres\SpecialChar menuseparator
6171 \begin_layout Standard
6172 Si vous souhaitez utiliser une classe de document qui ne figure pas dans
6175 Document\SpecialChar menuseparator
6176 Paramètres\SpecialChar menuseparator
6179 , vous devez créer une fichier de
6180 \begin_inset Quotes cld
6184 \begin_inset Quotes crd
6188 \begin_inset Quotes cld
6192 \begin_inset Quotes crd
6196 Ceci est le sujet du paragraphe suivant.
6199 \begin_layout Section
6200 Types de fichiers de formats
6203 \begin_layout Standard
6204 Cette section décrit les différentes variétés de fichiers contenant les
6205 informations de format: instructions pour l'affichage par \SpecialChar LyX
6206 et pour la traductio
6207 n en \SpecialChar LaTeX
6208 , DocBook ou XHTML, ou autre format de sortie désiré, des styles de
6209 paragraphe et de caractère variés.
6212 \begin_layout Standard
6213 Nous essayons ici de donner une description complète de la procédure à suivre;
6214 il y a cependant une telle variété de classes \SpecialChar LaTeX
6215 supportant des types de
6216 document très différents que nous ne pouvons pas espérer couvrir tous les
6217 cas possibles ni tous les problèmes que vous pourrez rencontrer.
6218 La liste de messagerie des utilisateurs \SpecialChar LyX
6219 est fréquentée par des personnes
6220 expérimentées dans l'écriture des formats, qui voudront partager ce qu'elles
6221 ont appris, n'hésitez pas à poser des questions sur cette liste.
6224 \begin_layout Standard
6225 Quand vous prévoyez d'écrire un nouveau format, il est extrêmement utile
6226 de regarder les formats distribués avec \SpecialChar LyX
6228 Si vous écrivez un fichier de format pour une classe de document \SpecialChar LaTeX
6230 intéresser d'autres personnes, ou si vous écrivez un module utile, vous
6231 pouvez envisager de l'insérer dans les
6232 \begin_inset CommandInset href
6234 name "pages dans le wiki LyX"
6235 target "https://wiki.lyx.org/Layouts/Layouts"
6240 , voire de le soumettre à la liste des développeurs, pour qu'il figure dans
6241 la distribution de \SpecialChar LyX
6246 \begin_layout Plain Layout
6247 Notez bien que du fait que \SpecialChar LyX
6248 est diffusé sous licence GPL (General Public
6249 License), toute contribution doit être également sous licence GPL.
6257 \begin_layout Subsection
6259 \begin_inset CommandInset label
6261 name "subsec:Modules_de_format"
6268 \begin_layout Standard
6269 Nous avons mentionné jusqu'ici les
6270 \begin_inset Quotes cld
6274 \begin_inset Quotes crd
6278 mais il existe différentes sortes de fichiers qui contiennent des informations
6280 Les fichiers de format au sens strict ont pour suffixe
6281 \begin_inset Flex Code
6284 \begin_layout Plain Layout
6290 et contiennent l'information nécessaire à \SpecialChar LyX
6291 pour les classes de document.
6292 Depuis \SpecialChar LyX
6293 1.6, cependant, les informations de format peuvent être incluses
6298 de format, qui ont pour suffixe
6299 \begin_inset Flex Code
6302 \begin_layout Plain Layout
6309 Les modules sont aux paquetages \SpecialChar LaTeX
6310 à peu près ce que sont les fichiers de
6311 format aux classes de document, et certains modules — tels que le module
6313 \begin_inset Quotes cld
6317 \begin_inset Quotes crd
6320 — offrent la fonctionnalité d'un seul paquetage.
6321 En un sens, le modules de format sont aussi similaires aux fichiers d'inclusion
6325 \begin_layout Plain Layout
6326 Ceux-ci peuvent avoir un suffixe quelconque, mais par convention il leur
6327 a été attribué le suffixe
6328 \begin_inset Flex Code
6331 \begin_layout Plain Layout
6342 — des fichiers comme
6343 \begin_inset Flex Code
6346 \begin_layout Plain Layout
6354 — dans le fait que les modules ne sont pas spécifiques du format d'un document
6355 donné, mais peuvent être utilisés avec de nombreux formats différents.
6356 Cependant l'utilisation d'un fichier d'inclusion (dans
6357 \begin_inset Flex Code
6360 \begin_layout Plain Layout
6366 par exemple) nécessite la modification du fichier de format
6367 \begin_inset Flex Code
6370 \begin_layout Plain Layout
6376 ; au lieu de cette modification, les modules sont sélectionnés dans la page
6378 \begin_inset Flex Noun
6381 \begin_layout Plain Layout
6382 Document\SpecialChar menuseparator
6391 \begin_layout Standard
6392 Rédiger des modules est la façon la plus simple de se familiariser avec
6393 l'écriture des formats, puisque ce peut être aussi simple que l'ajout d'un
6394 seul nouveau paragraphe ou insert.
6395 Mais en principe, les modules peuvent inclure tout ce que peuvent inclure
6399 \begin_layout Standard
6400 Après la création d'un nouveau module, vous devrez reconfigurer et redémarrer
6402 pour que le module apparaisse dans le menu.
6403 Cependant, les modifications que vous faites dans le module seront immédiatemen
6404 t actives, si vous ouvrez
6405 \begin_inset Flex Noun
6408 \begin_layout Plain Layout
6409 Document\SpecialChar menuseparator
6410 Paramètres\SpecialChar menuseparator
6416 , sélectionnez un module et appuyez sur
6417 \begin_inset Quotes cld
6421 \begin_inset Quotes crd
6427 Il vous est fortement recommandé de sauvegarder votre travail avant de procéder
6433 il vous est fortement recommandé de ne pas essayer de modifier des modules
6434 durant une travail productif sur un document
6437 Bien évidemment, les développeurs s'efforcent de conserver une bonne stabilité
6439 dans de telles situations, mais les erreurs de syntaxe et autres dans
6440 votre module pourraient déclencher des comportements bizarres.
6443 \begin_layout Subsubsection
6447 \begin_layout Standard
6448 Les modules sont à \SpecialChar LyX
6449 ce que les paquetages sont à \SpecialChar LaTeX
6451 Cependant, il arrive que vous souhaitiez disposer d'un insert ou d'un style
6452 de caractère pour un seul document, et écrire un module qui sera universel
6454 Vous avez alors besoin du
6455 \begin_inset Quotes cld
6459 \begin_inset Quotes crd
6466 \begin_layout Standard
6467 Vous le trouverez via
6469 Document\SpecialChar menuseparator
6470 Paramètres\SpecialChar menuseparator
6474 La grande zone textuelle vous permet de saisir ce que vous mettriez dans
6475 un fichier de format ou de module.
6476 Vous pouvez voir le format local comme un module qui n'appartient qu'au
6477 document en cours de saisie.
6478 De ce fait, vous devez saisir une balise
6479 \begin_inset Flex Code
6482 \begin_layout Plain Layout
6489 N'importe quel format est admissible, mais on utilise d'habitude le format
6490 de la version de \SpecialChar LyX
6491 utilisée (pour \SpecialChar LyX
6492 2.2, le format porte le numéro 60).
6495 \begin_layout Standard
6496 Lorsque vous avez saisi quelque chose dans la fenêtre de
6497 \begin_inset Flex Code
6500 \begin_layout Plain Layout
6508 \begin_inset Quotes cld
6516 \begin_inset Quotes crd
6519 qui se trouve en bas.
6520 Cliquer sur ce bouton entraînera une vérification de la validité du code
6521 que vous aurez saisi.
6523 vous donne cette information sans hélas l'accompagner d'un diagnostic
6524 d'erreurs explicite.
6525 Ces erreurs seront cependant affichées dans la fenêtre d'appel si vous
6526 avez activé \SpecialChar LyX
6528 Vous ne pourrez pas appliquer ou enregistrer votre format tant qu'il n'est
6532 \begin_layout Standard
6533 Les précautions indiquées à la fin de la section précédente s'appliquent
6535 Ne jouez pas avec un format local pendant un vrai travail, surtout si vous
6536 n'avez pas enregistré votre document.
6537 Ceci dit, utiliser un format local avec un document de test peut être très
6538 pratique pour essayer de nouvelles choses, voire pour aborder l’écriture
6542 \begin_layout Subsection
6543 Format pour un fichier
6544 \begin_inset Flex Code
6547 \begin_layout Plain Layout
6556 \begin_layout Standard
6557 Les deux situations que vous êtes probablement susceptibles de rencontrer
6558 quand vous voulez gérer une nouvelle classe de document \SpecialChar LaTeX
6560 \SpecialChar LaTeX2e
6562 \begin_inset Flex Code
6565 \begin_layout Plain Layout
6572 \begin_inset Flex Code
6575 \begin_layout Plain Layout
6582 Interfacer une nouveau fichier de style est assez facile, Interfacer une
6583 nouvelle classe est plus compliqué: nous allons décrire la première opération
6584 ici, et la seconde dans le paragraphe suivant.
6585 Des considérations analogues s'appliquent bien entendu si vous voulez interface
6586 r une nouvelle DTD DocBook.
6589 \begin_layout Standard
6590 La situation la plus simple se présente si votre nouvelle classe de document
6591 est fournie sous la forme d'un fichier de style à utiliser en combinaison
6592 avec une classe de document existante, déjà interfacée.
6593 Dans notre exemple, le fichier de style sera appelé
6594 \begin_inset Flex Code
6597 \begin_layout Plain Layout
6603 et il doit être utilisé avec la classe standard
6604 \begin_inset Flex Code
6607 \begin_layout Plain Layout
6616 \begin_layout Standard
6617 Commencez par copier le fichier de format de la classe de document en question
6618 dans votre répertoire local.
6621 \begin_layout LyX-Code
6622 cp report.layout ~/.lyx/layouts/ma_classe.layout
6625 \begin_layout Standard
6630 et changez la ligne :
6633 \begin_layout LyX-Code
6636 DeclareLaTeXClass{report}
6639 \begin_layout Standard
6643 \begin_layout LyX-Code
6646 DeclareLaTeXClass[report, ma_classe.sty]{report (ma_classe)}
6649 \begin_layout Standard
6653 \begin_layout LyX-Code
6655 \begin_inset Newline newline
6660 usepackage{ma_classe}
6661 \begin_inset Newline newline
6667 \begin_layout Standard
6668 près du début du fichier.
6671 \begin_layout Standard
6672 Démarrez \SpecialChar LyX
6674 \begin_inset Flex Noun
6677 \begin_layout Plain Layout
6678 Outils\SpecialChar menuseparator
6685 Redémarrez \SpecialChar LyX
6686 et essayez de créer un nouveau document.
6688 \begin_inset Quotes cld
6692 \begin_inset Flex Noun
6695 \begin_layout Plain Layout
6697 \begin_inset space ~
6706 \begin_inset Quotes crd
6709 parmi les classes de document dans la fenêtre
6710 \begin_inset Flex Noun
6713 \begin_layout Plain Layout
6714 Document\SpecialChar menuseparator
6715 Paramètres\SpecialChar menuseparator
6722 Il est probable que certaines des commandes de section devront être différentes
6723 de celles de la classe de base
6727 \begin_layout Plain Layout
6735 , vous pouvez donc jouer avec les réglages des différentes sections si vous
6737 Les informations de format pour le sectionnement se trouvent dans
6738 \begin_inset Flex Code
6741 \begin_layout Plain Layout
6747 , mais il n'est pas nécessaire de recopier ce fichier pour le modifier.
6748 Il vous suffit en effet d'ajouter vos modifications au fichier de format,
6750 \begin_inset Flex Code
6753 \begin_layout Plain Layout
6755 \begin_inset Flex Code
6758 \begin_layout Plain Layout
6769 , qui implique l'inclusion de
6770 \begin_inset Flex Code
6773 \begin_layout Plain Layout
6780 Par exemple, vous pourriez ajouter ces lignes:
6783 \begin_layout LyX-Code
6789 \begin_layout LyX-Code
6795 \begin_layout LyX-Code
6801 \begin_layout LyX-Code
6807 \begin_layout LyX-Code
6813 \begin_layout Standard
6814 pour modifier la police des titres de chapitre en police sens empattements.
6815 Ceci écrasera (ou bien, en l'occurrence, ajoutera) la déclaration existante
6816 pour le style Chapitre.
6819 \begin_layout Standard
6820 Votre nouveau paquetage peut également fournir des commandes ou des environnemen
6821 ts qui n'existent pas dans la classe de base.
6822 dans ce cas, il vous faudra ajouter ceux-ci au fichier de format.
6824 \begin_inset space ~
6828 \begin_inset CommandInset ref
6830 reference "sec:Syntaxe-des"
6834 pour savoir comment faire.
6837 \begin_layout Standard
6839 \begin_inset Flex Code
6842 \begin_layout Plain Layout
6848 peut être utilisé avec plusieurs classes de document différentes, vous
6849 trouverez sans doute plus approprié d'écrire un module que vous pourrez
6850 charger avec la classe de base.
6851 Le module le plus simple qu'il est possible d'écrire dans ce contexte est
6855 \begin_layout LyX-Code
6860 DeclareLyXModule{mon paquetage}
6863 \begin_layout LyX-Code
6869 \begin_layout LyX-Code
6872 #Support for mypkg.sty.
6875 \begin_layout LyX-Code
6879 \begin_inset Newline newline
6885 \begin_layout LyX-Code
6889 \begin_inset Newline newline
6895 \begin_layout LyX-Code
6899 \begin_inset Newline newline
6905 \begin_inset Newline newline
6911 \begin_layout Standard
6912 Un module plus compliqué pourrait modifier le comportement de constructions
6913 existantes ou d'en définir de nouvelles.
6915 \begin_inset space ~
6919 \begin_inset CommandInset ref
6921 reference "sec:Syntaxe-des"
6928 \begin_layout Subsection
6929 Format pour un fichier
6930 \begin_inset Flex Code
6933 \begin_layout Plain Layout
6942 \begin_layout Standard
6943 Deux possibilités se présentent.
6947 \begin_layout Standard
6948 Soit le fichier de classe est fondé sur une classe de document existante.
6949 Par exemple, de nombreuses classes pour une thèse sont des variantes de
6951 \begin_inset Flex Code
6954 \begin_layout Plain Layout
6961 Pour vérifier que c'est le cas pour la vôtre, cherchez une ligne comme
6964 \begin_layout LyX-Code
6972 \begin_layout Standard
6973 dans le fichier de classe.
6974 Si c'est la cas, vous pouvez essentiellement procéder comme dans la section
6975 précédente, bien que la ligne
6976 \begin_inset Flex Code
6979 \begin_layout Plain Layout
6980 Declare\SpecialChar LaTeX
6987 Si votre nouvelle classe est une thèse, et est fondée sur
6988 \begin_inset Flex Code
6991 \begin_layout Plain Layout
6997 , cette ligne doit être
7001 \begin_layout Plain Layout
7002 Et enregistrer le fichier comme
7003 \begin_inset Flex Code
7006 \begin_layout Plain Layout
7014 facilitera les choses: \SpecialChar LyX
7015 suppose que la classe de document a le même nom
7016 que le fichier de format.
7024 \begin_layout LyX-Code
7029 DeclareLaTeXClass[thesis,book]{thesis}
7032 \begin_layout Standard
7033 Soit le fichier de classe est original.
7034 Dans ce cas, vous devrez probablement créer votre propre format.
7035 Nous vous suggérons fortement de copier un fichier de format existant qui
7036 utilise une classe \SpecialChar LaTeX
7037 similaire et de le modifier si c'est possible.
7038 Utilisez au moins un fichier existant comme point de départ pour savoir
7039 quels sont les éléments dont vous devez vous occuper.
7040 Encore une fois, les spécificités sont décrites ci-après.
7043 \begin_layout Subsection
7045 \begin_inset CommandInset label
7054 \begin_layout Standard
7055 Une fois qu'un fichier de format a été crée pour une classe de document,
7056 vous désirerez peut-être créer un
7061 Un modèle est une sorte de mode d'emploi pour votre format, montrant comment
7062 il peut être utilisé, mais avec un contenu fictif.
7063 Vous pouvez jeter un œil aux divers modèles distribués avec \SpecialChar LyX
7067 \begin_layout Standard
7068 Les modèles sont créés comme les documents normaux.
7069 La seule différence est que les documents normaux contiennent tous les
7070 réglages possibles, y compris les polices et la taille du papier.
7071 Or on ne veut en général pas qu'un modèle modifie ces réglages implicites.
7072 Pour cette raison, l'auteur d'un modèle doit enlever les commandes correspondan
7074 \begin_inset Flex Code
7077 \begin_layout Plain Layout
7086 \begin_inset Flex Code
7089 \begin_layout Plain Layout
7097 du fichier modèle \SpecialChar LyX
7099 C'est faisable avec un simple éditeur de texte, comme
7100 \begin_inset Flex Code
7103 \begin_layout Plain Layout
7110 \begin_inset Flex Code
7113 \begin_layout Plain Layout
7122 \begin_layout Standard
7123 Mettez les fichiers modèles que vous avez créés et édités dans
7124 \begin_inset Flex Code
7127 \begin_layout Plain Layout
7133 , copiez ceux que vous utilisez du répertoire global de modèles
7134 \begin_inset Flex Code
7137 \begin_layout Plain Layout
7144 vers le même endroit, et redéfinissez le répertoire de modèles dans la
7146 \begin_inset Flex Noun
7149 \begin_layout Plain Layout
7150 Outils\SpecialChar menuseparator
7151 Préférences\SpecialChar menuseparator
7160 \begin_layout Standard
7162 \begin_inset Flex Code
7165 \begin_layout Plain Layout
7171 a un statut particulier.
7172 Il est chargé à chaque fois que vous créez un nouveau document avec
7173 \begin_inset Flex Noun
7176 \begin_layout Plain Layout
7177 Fichier\SpecialChar menuseparator
7183 afin d'avoir les réglages implicites.
7184 Pour créer ce modèle depuis \SpecialChar LyX
7185 , vous n'avez qu'à ouvrir un document ayant
7186 déjà les réglages voulus, et appuyer sur le bouton
7187 \begin_inset Flex Noun
7190 \begin_layout Plain Layout
7191 Enregistrer comme valeurs implicites
7199 \begin_layout Subsection
7200 Mise à jour des anciens fichiers de format
7203 \begin_layout Standard
7204 La syntaxe des fichiers de format change à chaque publication d'une nouvelle
7205 version de \SpecialChar LyX
7206 , et les anciens fichiers de format doivent donc être convertis
7207 dans la nouvelle syntaxe.
7209 lit un fichier de format écrit avec une syntaxe ancienne, il appelle
7211 \begin_inset Flex Code
7214 \begin_layout Plain Layout
7220 pour le convertir dans un fichier temporaire doté de la nouvelle syntaxe.
7221 Le fichier original reste intact.
7222 Si vous utilisez le fichier de format souvent, vous voudrez sans doute
7223 rendre les modifications permanentes, pour éviter des conversions répétitives
7224 de la part de \SpecialChar LyX
7226 Pour ce faire, vous pouvez appeler le convertisseur manuellement:
7229 \begin_layout Enumerate
7233 \begin_inset Flex Code
7236 \begin_layout Plain Layout
7249 \begin_inset Flex Code
7252 \begin_layout Plain Layout
7263 \begin_layout Enumerate
7264 exécutez la commande
7265 \begin_inset Newline newline
7269 \begin_inset Flex Code
7272 \begin_layout Plain Layout
7273 python \SpecialChar LyX
7274 Dir/scripts/layout2layout.py myclass.old myclass.layout
7280 \begin_inset Newline newline
7284 \begin_inset Flex Code
7287 \begin_layout Plain Layout
7294 est le nom de votre répertoire \SpecialChar LyX
7298 \begin_layout Standard
7299 Le convertisseur ne gère que les changements de syntaxe.
7300 Il ne peut pas gérer les modifications du contenu des fichiers inclus,
7301 ceux-ci doivent être convertis séparément.
7304 \begin_layout Subsection
7310 \begin_inset CommandInset label
7312 name "subsec:Cite-Engine-Files"
7319 \begin_layout Standard
7322 A specific form of layout files are the so-called
7323 \begin_inset Flex Code
7326 \begin_layout Plain Layout
7334 files that are located in the
7335 \begin_inset Flex Code
7338 \begin_layout Plain Layout
7347 Their purpose is to define the specifics of \SpecialChar LaTeX
7348 packages aimed at bibliography
7361 , but also the way how normal Bib\SpecialChar TeX
7362 citations (without additional packages)
7363 are handled in \SpecialChar LyX
7364 is defined in such a file.
7368 \begin_layout Standard
7371 More specifically, it is defined which packages \SpecialChar LyX
7372 needs to load, which citation
7373 commands are available, how these are to be displayed in \SpecialChar LyX
7375 the dialogs, the context menus) as well as in the XHTML and plain text
7377 Furthermore, the files specify available style variants (author-year, numerical
7378 , etc.) and their specifics.
7379 The cite engine files are also used to generate the options that are available
7382 Document\SpecialChar menuseparator
7383 Settings\SpecialChar menuseparator
7384 Bibliography\SpecialChar menuseparator
7390 \begin_layout Standard
7393 Even though a cite engine file is essentially a normal layout file that
7394 could theoretically include any layout information, it usually primarily
7395 includes some specific parameters such as
7396 \begin_inset Flex Code
7399 \begin_layout Plain Layout
7408 \begin_inset Flex Code
7411 \begin_layout Plain Layout
7420 \begin_inset Flex Code
7423 \begin_layout Plain Layout
7432 \begin_inset Flex Code
7435 \begin_layout Plain Layout
7444 The syntax of the latter two is described in
7447 \begin_inset CommandInset ref
7449 reference "subsec:Citation-engine-description"
7457 \begin_inset CommandInset ref
7459 reference "subsec:Description citation"
7465 as well as in the files themselves.
7468 \begin_layout Section
7469 Syntaxe des fichiers de format
7470 \begin_inset CommandInset label
7472 name "sec:Syntaxe-des"
7479 \begin_layout Standard
7480 Les sections suivantes vous expliquent à quoi vous vous attaquez quand vous
7481 décidez de mettre les mains dans le cambouis, et de créer ou d'éditer votre
7482 propre fichier de format.
7483 Notre conseil est d'aller doucement et d'enregistrer souvent pour faire
7485 Ce n'est pas si dur que ça, mais il y a une multitude d'options et vous
7486 pouvez vous laisser submerger si vous essayez d'en faire trop d'un coup.
7487 Il est plus facile d'utiliser des formats existants comme référence ou
7488 modèle ou de modifier un fichier de format existant pour vos besoins.
7491 \begin_layout Standard
7492 Toutes les balises décrites dans ce chapitre sont insensibles à la casse:
7494 \begin_inset Flex Code
7497 \begin_layout Plain Layout
7504 \begin_inset Flex Code
7507 \begin_layout Plain Layout
7514 \begin_inset Flex Code
7517 \begin_layout Plain Layout
7523 sont une seule et même balise.
7524 Les valeurs possibles sont inscrites entre crochets après le nom de la
7526 La valeur implicite d'une fonction quand elle n'est pas définie dans le
7527 fichier décrivant la classe de texte est
7530 \begin_inset Flex Code
7533 \begin_layout Plain Layout
7544 Si le paramètre est d'un type particulier la valeur implicite est indiquée
7546 \begin_inset Flex Code
7549 \begin_layout Plain Layout
7560 \begin_layout Subsection
7561 Déclaration et classification d'une classe de document
7564 \begin_layout Standard
7565 Les lignes qui commencent par un
7569 dans un fichier de format sont les commentaires.
7570 Il y a une exception à cette règle : tous les
7571 \begin_inset Flex Code
7574 \begin_layout Plain Layout
7580 doivent commencer par ceci :
7583 \begin_layout LyX-Code
7586 #% Do not delete the line below; configure depends on this
7590 \begin_layout Plain Layout
7591 Ne pas effacer la ligne ci-dessous ; configure compte dessus.
7599 \begin_layout LyX-Code
7604 DeclareLaTeXClass{Article (Standard Class)}
7607 \begin_layout LyX-Code
7612 DeclareCategory{Articles}
7615 \begin_layout Standard
7616 Les deuxième et troisième lignes servent lors de la (re)configuration de
7619 Le fichier de format est lu par le script \SpecialChar LaTeX
7621 \begin_inset Flex Code
7624 \begin_layout Plain Layout
7630 , dans un mode spécial où
7631 \begin_inset Flex Code
7634 \begin_layout Plain Layout
7641 La première ligne est juste un commentaire \SpecialChar LaTeX
7642 , la deuxième contient la déclaratio
7643 n obligatoire de la classe de texte et la troisième contient la classification
7644 facultative de la classe.
7645 Si ces lignes apparaissent dans un fichier appelé
7646 \begin_inset Flex Code
7649 \begin_layout Plain Layout
7655 , elles définissent alors une classe de texte appelée
7656 \begin_inset Flex Code
7659 \begin_layout Plain Layout
7665 (le nom du fichier de format) qui utilise la classe de document \SpecialChar LaTeX
7667 \begin_inset Flex Code
7670 \begin_layout Plain Layout
7676 (implicitement, le même nom que le format).
7678 \begin_inset Quotes cld
7681 Article (Standard Class)
7682 \begin_inset Quotes crd
7685 qui apparaît ci-dessus sert de description de la classe de texte dans la
7687 \begin_inset Flex Noun
7690 \begin_layout Plain Layout
7691 Document\SpecialChar menuseparator
7692 Paramètres\SpecialChar menuseparator
7700 \begin_inset Quotes cld
7704 \begin_inset Quotes crd
7707 dans l'exemple) est également utilisés dans la fenêtre
7708 \begin_inset Flex Noun
7711 \begin_layout Plain Layout
7712 Document\SpecialChar menuseparator
7713 Paramètres\SpecialChar menuseparator
7719 : les classes sont regroupées par catégories (qui sont aussi des genres
7720 de documents, les catégories typiques sont
7721 \begin_inset Quotes cld
7725 \begin_inset Quotes crd
7729 \begin_inset Quotes cld
7733 \begin_inset Quotes crd
7737 \begin_inset Quotes cld
7741 \begin_inset Quotes crd
7745 \begin_inset Quotes cld
7749 \begin_inset Quotes crd
7753 \begin_inset Quotes cld
7757 \begin_inset Quotes crd
7761 \begin_inset Quotes cld
7765 \begin_inset Quotes crd
7769 Si la troisième lignes est vide, la classe apparaîtra comme
7770 \begin_inset Quotes cld
7774 \begin_inset Quotes crd
7780 \begin_layout Standard
7781 Supposons que vous ayez écrit votre propre classe de texte qui utilise la
7783 \begin_inset Flex Code
7786 \begin_layout Plain Layout
7792 , mais dans laquelle vous avez changé l'apparence des en-têtes de sections.
7793 Si vous la mettez dans un fichier
7794 \begin_inset Flex Code
7797 \begin_layout Plain Layout
7803 , l'en-tête de ce fichier doit être :
7806 \begin_layout LyX-Code
7809 #% Do not delete the line below; configure depends on this
7812 \begin_layout LyX-Code
7817 DeclareLaTeXClass[article]{Article (avec Mes En-têtes)}
7820 \begin_layout LyX-Code
7825 DeclareCategory{Articles}
7828 \begin_layout Standard
7829 Ceci déclare une classe de texte
7830 \begin_inset Flex Code
7833 \begin_layout Plain Layout
7839 , associée avec la classe de document \SpecialChar LaTeX
7841 \begin_inset Flex Code
7844 \begin_layout Plain Layout
7851 \begin_inset Quotes cld
7854 Article (avec Mes En-têtes)
7855 \begin_inset Quotes crd
7859 Si votre classe de texte repose sur plusieurs paquetages, vous pouvez la
7863 \begin_layout LyX-Code
7866 #% Do not delete the line below; configure depends on this
7869 \begin_layout LyX-Code
7874 DeclareLaTeXClass[article,machin.sty]{Article (avec Mes En-têtes)}
7877 \begin_layout LyX-Code
7882 DeclareCategory{Articles}
7885 \begin_layout Standard
7886 Ceci indique que votre classe de texte utilise le paquetage
7887 \begin_inset Flex Code
7890 \begin_layout Plain Layout
7897 Enfin, il est aussi possible de déclarer des classes pour du code DocBook.
7898 Les déclarations ressemblent en général à :
7901 \begin_layout LyX-Code
7904 #% Do not delete the line below; configure depends on this
7907 \begin_layout LyX-Code
7912 DeclareDocBookClass[article]{SGML (DocBook Article)}
7915 \begin_layout LyX-Code
7920 DeclareCategory{Articles}
7923 \begin_layout Standard
7924 Notez que ces déclarations peuvent aussi recevoir un paramètre optionnel
7925 déclarant le nom de la classe de document (mais pas une liste).
7928 \begin_layout Standard
7929 Donc, de la manière la plus explicite, la forme d'une déclaration de format
7933 \begin_layout LyX-Code
7938 DeclareLaTeXClass[class,package.sty]{description du format}
7941 \begin_layout LyX-Code
7946 DeclareCategory{catégorie}
7949 \begin_layout Standard
7950 Il n'est nécessaire de déclarer la classe que si le nom de la classe \SpecialChar LaTeX
7952 le nom du fichier de format diffèrent, ou si des paquetages sont à spécifier.
7953 Si le nom de la classe n'est pas spécifiée, \SpecialChar LyX
7954 suppose qu'elle est identique
7955 à celle du fichier de format.
7958 \begin_layout Standard
7959 Une fois que la classe de texte a été modifiée à votre goût, tout ce que
7960 vous avez à faire est de la copier soit dans
7961 \begin_inset Flex Code
7964 \begin_layout Plain Layout
7972 \begin_inset Flex Code
7975 \begin_layout Plain Layout
7982 \begin_inset Flex Noun
7985 \begin_layout Plain Layout
7986 Outils\SpecialChar menuseparator
7987 Recon\SpecialChar softhyphen
7994 Quittez \SpecialChar LyX
7995 et redémarrez-le; votre nouvelle classe de texte devrait alors
7996 être disponible avec les autres.
7999 \begin_layout Standard
8000 Une fois le fichier de format installé, vous pouvez le modifier et vérifier
8001 l'effet de ces modifications sans reconfigurer ou redémarrer \SpecialChar LyX
8006 \begin_layout Plain Layout
8007 Avec les versions de \SpecialChar LyX
8008 antérieures à 1.6, il vous fallait redémarrer \SpecialChar LyX
8010 valider les modifications effectuées dans les fichiers de format.
8011 De ce fait, les modifications pouvaient prendre beaucoup de temps.
8016 Vous pouvez imposer un rechargement du format en service en utilisant la
8018 \begin_inset Flex Noun
8021 \begin_layout Plain Layout
8030 Cette fonction n'est implicitement liée à aucun raccourci — vous pouvez
8031 bien sûr la lier à une touche vous-même.
8032 Si vous voulez utiliser cette fonction, il vous suffit de la saisir dans
8037 \begin_layout Standard
8043 \begin_inset Flex Noun
8046 \begin_layout Plain Layout
8054 est une fonctionnalité
8055 \begin_inset Quotes cld
8059 \begin_inset Quotes crd
8071 recommandé de sauvegarder votre travail avant de procéder ainsi
8076 En fait, il vous est
8080 recommandé de ne pas essayer de modifier des formats durant une travail
8081 productif sur un document.
8082 Utilisez un document de test, les erreurs de syntaxe et autres dans votre
8083 module pourraient déclencher des comportements bizarres.
8084 En particulier, de telles erreurs pourraient inciter \SpecialChar LyX
8086 formats en service comme incorrects et à essayer de basculer sur un autre
8091 \begin_layout Plain Layout
8092 Les erreurs de syntaxe vraiment graves peuvent même stopper \SpecialChar LyX
8094 Ceci provient du fait que certaines erreurs rendent \SpecialChar LyX
8096 la moindre information de format.
8097 Faites attention\SpecialChar ldots
8103 Les développeurs s'efforcent de conserver une bonne stabilité à \SpecialChar LyX
8105 telles situations, mais il vaut mieux être sûr que regretter
8109 \begin_layout Plain Layout
8110 Puisque nous en sommes au conseils: faites des sauvegardes régulières.
8111 Et soyez gentil avec votre maman.
8119 \begin_layout Subsection
8120 Déclaration d'un module
8123 \begin_layout Standard
8124 La première ligne d'un module doit être rédigée comme suit:
8127 \begin_layout LyX-Code
8130 DeclareLyXModule[endnotes.sty]{Endnotes}
8133 \begin_layout Standard
8134 L'argument obligatoire, entre accolades, est le nom du module, tel qu'il
8136 \begin_inset Flex Noun
8139 \begin_layout Plain Layout
8140 Document\SpecialChar menuseparator
8141 Paramètres\SpecialChar menuseparator
8148 L'argument entre crochets est facultatif: il déclare n'importe quel paquetage
8150 dont dépend le module.
8151 Il est également possible d'utiliser la clé
8152 \begin_inset Flex Noun
8155 \begin_layout Plain Layout
8161 en argument optionnel: elle déclare que le module ne peut être employé
8162 que s'il existe un chemin de conversion entre les formats
8163 \begin_inset Flex Code
8166 \begin_layout Plain Layout
8173 \begin_inset Flex Code
8176 \begin_layout Plain Layout
8185 \begin_layout Standard
8186 La déclaration du module devra être suivi par des lignes descriptives comme
8191 \begin_layout Plain Layout
8192 En anglais de préférence si le module doit être diffusé par \SpecialChar LyX
8194 Cette description apparaîtra dans la liste des messages à traduire et sera
8195 donc traduite lors de la mise à jour de l'interface.
8203 \begin_layout LyX-Code
8209 \begin_layout LyX-Code
8212 #Adds an endnote command, in addition to footnotes.
8216 \begin_layout LyX-Code
8219 #You will need to add
8221 theendnotes in \SpecialChar TeX
8225 \begin_layout LyX-Code
8228 #want the endnotes to appear.
8232 \begin_layout LyX-Code
8238 \begin_layout LyX-Code
8241 #Requires: somemodule | othermodule
8244 \begin_layout LyX-Code
8247 #Excludes: badmodule
8250 \begin_layout Standard
8251 Cette description est utilisée dans
8252 \begin_inset Flex Noun
8255 \begin_layout Plain Layout
8256 Document\SpecialChar menuseparator
8257 Paramètres\SpecialChar ldots
8258 \SpecialChar menuseparator
8264 pour informer l'utilisateur de la fonction du module.
8266 \begin_inset Flex Code
8269 \begin_layout Plain Layout
8277 permet d'identifier les modules qui doivent être activés avec celui-ci;
8279 \begin_inset Flex Code
8282 \begin_layout Plain Layout
8290 permet d'identifier les modules interdits avec celui-ci.
8291 Les deux lignes sont facultatives et, comme indiqué, les modules dans une
8292 liste doivent être séparés par une barre verticale: |.
8293 Noter que les modules requis sont traités sur le mode disjonctif:
8297 des modules requis doit être utilisé.
8302 des modules exclus ne doit être utilisé.
8303 Noter également que les les modules sont identifiés par leur nom de fichier,
8305 \begin_inset Flex Code
8308 \begin_layout Plain Layout
8316 \begin_inset Flex Code
8319 \begin_layout Plain Layout
8328 \begin_inset Flex Code
8331 \begin_layout Plain Layout
8342 \begin_layout Subsection
8345 The CiteEngine file declaration
8348 \begin_layout Standard
8351 A cite engine file must begin with a line like the following:
8354 \begin_layout LyX-Code
8359 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8362 \begin_layout Standard
8365 The mandatory argument, in curly brackets, is the name of the module, as
8367 \begin_inset Flex Noun
8370 \begin_layout Plain Layout
8373 Document\SpecialChar menuseparator
8374 Settings\SpecialChar menuseparator
8381 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8383 on which the cite engine depends.
8386 \begin_layout Standard
8389 The cite engine declaration should then be followed by lines like the following
8393 \begin_layout Plain Layout
8396 Preferably in English if the module should be published with \SpecialChar LyX
8398 This description will appear in the list of messages to be translated and
8399 will be thus translated with the next interface update.
8407 \begin_layout LyX-Code
8413 \begin_layout LyX-Code
8416 # Biblatex supports many author-year and numerical styles.
8419 \begin_layout LyX-Code
8422 # It is mainly aimed at the Humanities.
8426 \begin_layout LyX-Code
8429 # customizable, fully localized and provides many features
8432 \begin_layout LyX-Code
8435 # that are not possible with BibTeX.
8436 The use of 'biber' as
8439 \begin_layout LyX-Code
8442 # bibliography processor is advised.
8445 \begin_layout LyX-Code
8451 \begin_layout Standard
8454 The description is used in
8455 \begin_inset Flex Noun
8458 \begin_layout Plain Layout
8461 Document\SpecialChar menuseparator
8462 Settings\SpecialChar menuseparator
8468 to provide the user with information about the cite engine.
8471 \begin_layout Subsection
8472 Numéro d'identification syntaxique
8475 \begin_layout Standard
8476 La première ligne non commentée doit contenir le numéro d'identification
8477 syntaxique du contenu du fichier de format:
8480 \begin_layout Description
8481 \begin_inset Flex Code
8484 \begin_layout Plain Layout
8493 \begin_inset Flex Code
8496 \begin_layout Plain Layout
8504 ] identification syntaxique du fichier de format
8507 \begin_layout Standard
8508 Ce balisage a été introduit dans \SpecialChar LyX
8510 \begin_inset space ~
8513 1.4.0 Les fichiers de format des versions antérieures n'avaient pas de numéro
8514 de format explicite et sont affectés du
8517 \begin_inset Flex Code
8520 \begin_layout Plain Layout
8524 \begin_inset space ~
8535 Le numéro de format du présent fichier est le numéro 60.
8536 mais chaque version de \SpecialChar LyX
8537 peut lire les fichiers de format d'une version
8538 plus ancienne, comme elle peut lire les documents crées avec une version
8540 Il n'y a cependant aucun moyen de revernir aux numéros d'identification
8544 \begin_layout Subsection
8545 Paramètres généraux d'une classe de texte
8546 \begin_inset CommandInset label
8548 name "subsec:Paramètres-généraux-d'une"
8555 \begin_layout Standard
8556 Voici les paramètres généraux qui décrivent l'aspect du document pour une
8557 classe complète (ceci ne veut pas dire qu'il
8561 apparaître dans le fichiers
8562 \begin_inset Flex Code
8565 \begin_layout Plain Layout
8571 plutôt que dans les modules.
8572 Un module peut contenir n'importe quelle balise de format):
8575 \begin_layout Description
8578 \begin_inset Flex Code
8581 \begin_layout Plain Layout
8594 ajoute une information qui sera incluse dans le bloc
8595 \begin_inset Flex Code
8598 \begin_layout Plain Layout
8604 quand le document est exporté en XHTML.
8605 Typiquement, ce paramètre est utilisé pour exporter de l'information en
8606 style CSS, mais il peut être utilisé pour toute information valide entre
8608 \begin_inset Flex Code
8611 \begin_layout Plain Layout
8619 \begin_inset Quotes cld
8623 \begin_inset Flex Code
8626 \begin_layout Plain Layout
8635 \begin_inset Quotes crd
8641 \begin_layout Description
8644 \begin_inset Flex Code
8647 \begin_layout Plain Layout
8660 ajoute une information au préambule du document.
8662 \begin_inset Quotes cld
8666 \begin_inset Flex Code
8669 \begin_layout Plain Layout
8678 \begin_inset Quotes crd
8684 \begin_layout Description
8687 \begin_inset Flex Code
8690 \begin_layout Plain Layout
8698 Defines the possibilities for displaying citation references.
8700 \begin_inset CommandInset ref
8702 reference "subsec:Citation-engine-description"
8711 \begin_inset Quotes eld
8715 \begin_inset Flex Code
8718 \begin_layout Plain Layout
8727 \begin_inset Quotes erd
8731 Primarily used in cite engine files (see
8732 \begin_inset CommandInset ref
8734 reference "subsec:Cite-Engine-Files"
8744 \begin_layout Description
8747 \begin_inset Flex Code
8750 \begin_layout Plain Layout
8763 définit le style à utiliser pour afficher les informations bibliographiques.
8765 \begin_inset CommandInset ref
8767 reference "subsec:Description citation"
8773 \begin_inset Quotes cld
8777 \begin_inset Flex Code
8780 \begin_layout Plain Layout
8789 \begin_inset Quotes crd
8795 Primarily used in cite engine files (see
8796 \begin_inset CommandInset ref
8798 reference "subsec:Cite-Engine-Files"
8808 \begin_layout Description
8811 \begin_inset Flex Code
8814 \begin_layout Plain Layout
8823 \begin_inset Flex Code
8826 \begin_layout Plain Layout
8836 \begin_inset Flex Code
8839 \begin_layout Plain Layout
8847 ] Determines whether
8851 or Bib\SpecialChar TeX
8852 is used to generate a Bibliography.
8853 Primarily used in cite engine files (see
8854 \begin_inset Newline newline
8858 \begin_inset CommandInset ref
8860 reference "subsec:Cite-Engine-Files"
8870 \begin_layout Description
8873 \begin_inset Flex Code
8876 \begin_layout Plain Layout
8889 décrit diverses options globales comprises par la classe du document.
8891 \begin_inset CommandInset ref
8893 reference "subsec:Section-ClassOptions"
8899 \begin_inset Quotes cld
8903 \begin_inset Flex Code
8906 \begin_layout Plain Layout
8915 \begin_inset Quotes crd
8921 \begin_layout Description
8924 \begin_inset Flex Code
8927 \begin_layout Plain Layout
8938 \begin_inset Flex Code
8941 \begin_layout Plain Layout
8950 \begin_inset space \thinspace{}
8954 \begin_inset Flex Code
8957 \begin_layout Plain Layout
8963 ] fixe le nombre implicite de colonnes (une ou deux).
8964 Peut être changé dans la fenêtre
8965 \begin_inset Flex Noun
8968 \begin_layout Plain Layout
8969 Document\SpecialChar menuseparator
8979 \begin_layout Description
8982 \begin_inset Flex Code
8985 \begin_layout Plain Layout
8999 \begin_inset Flex Code
9002 \begin_layout Plain Layout
9008 ] définit les paramètres d'un nouveau compteur.
9009 Si le compteur n'existe pas, il est créé; s'il existe, il est modifié.
9011 \begin_inset Quotes cld
9015 \begin_inset Flex Code
9018 \begin_layout Plain Layout
9027 \begin_inset Quotes crd
9031 \begin_inset Newline newline
9035 \begin_inset CommandInset ref
9037 reference "subsec:Compteurs"
9044 \begin_layout Description
9047 \begin_inset Flex Code
9050 \begin_layout Plain Layout
9060 décrit la police implicite dans le document.
9062 \begin_inset CommandInset ref
9064 reference "subsec:polices"
9068 pour une description.
9070 \begin_inset Quotes cld
9076 \begin_inset Flex Code
9079 \begin_layout Plain Layout
9088 \begin_inset Quotes crd
9094 \begin_layout Description
9097 \begin_inset Flex Code
9100 \begin_layout Plain Layout
9111 \begin_inset Flex Code
9114 \begin_layout Plain Layout
9120 ] spécifie un module inclus implicitement avec cette classe de document,
9121 donné par son nom de fichier sans suffixe
9122 \begin_inset Flex Code
9125 \begin_layout Plain Layout
9134 L'utilisateur peut toujours le retirer, mais il sera actif à l'ouverture
9135 du document (ceci s'applique pour un nouveau document, ou quand cette classe
9136 est choisie pour un document existant).
9139 \begin_layout Description
9142 \begin_inset Flex Code
9145 \begin_layout Plain Layout
9156 \begin_inset Flex Code
9159 \begin_layout Plain Layout
9165 ] indique le style qui sera appliqué aux nouveaux paragraphes, habituellement
9167 \begin_inset Flex Noun
9170 \begin_layout Plain Layout
9179 Ce sera implicitement le premier style défini si ce paramètre n'est pas
9180 fixé, mais vous êtes vivement encouragé à utiliser cette directive.
9183 \begin_layout Description
9186 \begin_inset Flex Code
9189 \begin_layout Plain Layout
9200 \begin_inset Flex Code
9203 \begin_layout Plain Layout
9209 ] indique que le module spécifié (donné par son nom de fichier sans le suffixe
9211 \begin_inset Flex Code
9214 \begin_layout Plain Layout
9222 ) ne peut pas être utilisé avec cette classe de document.
9223 Ceci peut être utilisé par exemple dans un format pour une revue pour éviter
9225 l'utilisation du module
9226 \begin_inset Flex Code
9229 \begin_layout Plain Layout
9237 (numérotation des théorèmes par sections).
9246 être utilisé dans un module: les modules ont leur propre méthode d'exclusion
9248 \begin_inset CommandInset ref
9250 reference "subsec:Modules_de_format"
9257 \begin_layout Description
9260 \begin_inset Flex Code
9263 \begin_layout Plain Layout
9273 définit un nouveau flottant.
9275 \begin_inset CommandInset ref
9277 reference "subsec:Flottants"
9283 \begin_inset Quotes cld
9287 \begin_inset Flex Code
9290 \begin_layout Plain Layout
9299 \begin_inset Quotes crd
9305 \begin_layout Description
9308 \begin_inset Flex Code
9311 \begin_layout Plain Layout
9321 définit l'information qui sera incluse dans le bloc
9322 \begin_inset Flex Code
9325 \begin_layout Plain Layout
9331 quand le document est exporté en XHTML.
9332 Notez bien que ceci écrasera toute déclaration
9335 \begin_inset Flex Code
9338 \begin_layout Plain Layout
9351 \begin_inset Flex Code
9354 \begin_layout Plain Layout
9364 antérieure (utiliser
9365 \begin_inset Newline newline
9371 \begin_inset Flex Code
9374 \begin_layout Plain Layout
9384 si vous désirez simplement ajouter du contenu).
9386 \begin_inset Quotes cld
9390 \begin_inset Flex Code
9393 \begin_layout Plain Layout
9402 \begin_inset Quotes crd
9408 \begin_layout Description
9411 \begin_inset Flex Code
9414 \begin_layout Plain Layout
9425 \begin_inset Flex Code
9428 \begin_layout Plain Layout
9434 ] définit le style utilisé pour la table des matières, la bibliographie,
9435 et similaires, lorsque le document est exporté en HTML.
9436 Pour les articles, ceci devrait normalement valoir
9439 \begin_inset Flex Code
9442 \begin_layout Plain Layout
9455 \begin_inset Flex Code
9458 \begin_layout Plain Layout
9469 Sans précisions, \SpecialChar LyX
9470 essaiera de deviner quel style utiliser.
9473 \begin_layout Description
9476 \begin_inset Flex Code
9479 \begin_layout Plain Layout
9490 \begin_inset Flex Code
9493 \begin_layout Plain Layout
9499 ] modifie les propriétés d'un compteur donné.
9500 Si le compteur n'existe pas, la directive est ignorée.
9502 \begin_inset Quotes cld
9506 \begin_inset Flex Code
9509 \begin_layout Plain Layout
9518 \begin_inset Quotes crd
9522 \begin_inset Newline newline
9526 \begin_inset CommandInset ref
9528 reference "subsec:Compteurs"
9532 pour les détails au sujet des compteurs.
9535 \begin_layout Description
9536 \begin_inset Flex Code
9539 \begin_layout Plain Layout
9548 \begin_inset Flex Code
9551 \begin_layout Plain Layout
9557 ] permet d'inclure un autre fichier de définition de format pour éviter
9558 de réécrire des commandes.
9559 C'est souvent le cas des fichiers de format standard, comme
9560 \begin_inset Flex Code
9563 \begin_layout Plain Layout
9569 , qui contient la plupart des réglages de base.
9572 \begin_layout Description
9575 \begin_inset Flex Code
9578 \begin_layout Plain Layout
9592 \begin_inset Flex Code
9595 \begin_layout Plain Layout
9601 ] cette section (re)définit le format d'un insert.
9602 Elle peut être appliquée à un insert existant pour obtenir un nouvel insert
9603 défini par l'utilisateur, e.g.
9604 un nouveau style de caractères.
9606 \begin_inset Quotes cld
9610 \begin_inset Flex Code
9613 \begin_layout Plain Layout
9622 \begin_inset Quotes crd
9626 \begin_inset Newline newline
9630 \begin_inset CommandInset ref
9632 reference "subsec:Flex-insets-and"
9639 \begin_layout Description
9642 \begin_inset Flex Code
9645 \begin_layout Plain Layout
9659 \begin_inset Flex Code
9662 \begin_layout Plain Layout
9668 ] indique la largeur de la marge gauche à l'écran, par exemple
9669 \begin_inset Quotes cld
9673 \begin_inset Flex Code
9676 \begin_layout Plain Layout
9683 \begin_inset Quotes crd
9686 (noter que ce n'est pas une
9687 \begin_inset Quotes cld
9691 \begin_inset Quotes crd
9695 \begin_inset Quotes cld
9699 \begin_inset Quotes crd
9705 \begin_layout Description
9708 \begin_inset Flex Code
9711 \begin_layout Plain Layout
9720 \begin_inset Flex Code
9723 \begin_layout Plain Layout
9731 ] An integer that determines the maximal number of names displayed in an
9732 author-year citation before the citation switches to
9733 \begin_inset Quotes eld
9737 \begin_inset Quotes erd
9741 Primarily used in cite engine files (see
9742 \begin_inset CommandInset ref
9744 reference "subsec:Cite-Engine-Files"
9754 \begin_layout Description
9757 \begin_inset Flex Code
9760 \begin_layout Plain Layout
9771 \begin_inset Flex Code
9774 \begin_layout Plain Layout
9780 ] modifies les propriétés de style d'un paragraphe donné.
9781 Si le style n'existe pas, le directive est ignorée.
9783 \begin_inset Quotes cld
9787 \begin_inset Flex Code
9790 \begin_layout Plain Layout
9799 \begin_inset Quotes crd
9805 \begin_layout Description
9808 \begin_inset Flex Code
9811 \begin_layout Plain Layout
9822 \begin_inset Flex Code
9825 \begin_layout Plain Layout
9831 ] efface un compteur existant, habituellement défini dans un fichier inclus.
9834 \begin_layout Description
9837 \begin_inset Flex Code
9840 \begin_layout Plain Layout
9851 \begin_inset Flex Code
9854 \begin_layout Plain Layout
9860 ] efface un flottant existant.
9861 C'est très utile quand vous voulez supprimer un flottant qui a été défini
9862 dans un fichier inclus.
9865 \begin_layout Description
9868 \begin_inset Flex Code
9871 \begin_layout Plain Layout
9882 \begin_inset Flex Code
9885 \begin_layout Plain Layout
9891 ] efface un style existant.
9894 \begin_layout Description
9897 \begin_inset Flex Code
9900 \begin_layout Plain Layout
9914 \begin_inset Flex Code
9917 \begin_layout Plain Layout
9923 ] indique quelle sorte de format de fichier (tel que défini dans les préférences
9925 ) est produit par cette classe.
9926 Elle est surtout utile quand
9927 \begin_inset Flex Code
9930 \begin_layout Plain Layout
9941 \begin_inset Flex Code
9944 \begin_layout Plain Layout
9954 et que l'on veut définir un nouvelle sorte de document en programmation
9956 La chaîne est redéfinie comme
9957 \begin_inset Quotes cld
9963 \begin_inset Flex Code
9966 \begin_layout Plain Layout
9977 \begin_inset Quotes crd
9981 \begin_inset Quotes cld
9987 \begin_inset Flex Code
9990 \begin_layout Plain Layout
10001 \begin_inset Quotes crd
10004 quand la directive correspondante
10005 \begin_inset Flex Code
10008 \begin_layout Plain Layout
10019 \begin_layout Description
10022 \begin_inset Flex Code
10025 \begin_layout Plain Layout
10040 \begin_inset Flex Code
10043 \begin_layout Plain Layout
10055 \begin_inset Flex Code
10058 \begin_layout Plain Layout
10067 \begin_inset Flex Code
10070 \begin_layout Plain Layout
10080 ] indique quelle sorte de document résultant sera obtenu par cette classe.
10083 \begin_layout Description
10086 \begin_inset Flex Code
10089 \begin_layout Plain Layout
10100 \begin_inset Flex Code
10103 \begin_layout Plain Layout
10110 \begin_inset Flex Code
10113 \begin_layout Plain Layout
10119 ] précise les options, données par le seconde chaîne de caractères, pour
10120 le paquetage nommé par le première chaîne.
10122 \begin_inset Quotes cld
10126 \begin_inset Flex Code
10129 \begin_layout Plain Layout
10130 PackageOptions natbib square
10136 \begin_inset Quotes crd
10139 déclenchera le chargement de
10140 \begin_inset Flex Code
10143 \begin_layout Plain Layout
10150 \begin_inset Flex Code
10153 \begin_layout Plain Layout
10159 (pour les \SpecialChar TeX
10160 perts, ceci force \SpecialChar LyX
10162 \begin_inset Newline newline
10166 \begin_inset Flex Code
10169 \begin_layout Plain Layout
10172 PassOptionsToPackage{natbib}{square}
10177 avant le chargement de
10178 \begin_inset Flex Code
10181 \begin_layout Plain Layout
10190 \begin_layout Description
10193 \begin_inset Flex Code
10196 \begin_layout Plain Layout
10207 \begin_inset Flex Code
10210 \begin_layout Plain Layout
10222 \begin_inset Flex Code
10225 \begin_layout Plain Layout
10234 \begin_inset Flex Code
10237 \begin_layout Plain Layout
10247 fixe la mise en page implicite.
10248 Peut être changée dans la fenêtre
10249 \begin_inset Flex Noun
10252 \begin_layout Plain Layout
10253 Document\SpecialChar menuseparator
10254 Paramètres\SpecialChar ldots
10263 \begin_layout Description
10266 \begin_inset Flex Code
10269 \begin_layout Plain Layout
10279 fixe le préambule du document \SpecialChar LaTeX
10281 Notez bien que ceci remplacera complètement toute autre directive
10284 \begin_inset Flex Code
10287 \begin_layout Plain Layout
10296 \begin_inset Flex Code
10299 \begin_layout Plain Layout
10309 (utiliser cette dernière directive si vous voulez seulement ajouter des
10310 éléments au contenu).
10311 Doit être fermé par
10312 \begin_inset Quotes cld
10316 \begin_inset Flex Code
10319 \begin_layout Plain Layout
10328 \begin_inset Quotes crd
10334 \begin_layout Description
10337 \begin_inset Flex Code
10340 \begin_layout Plain Layout
10351 \begin_inset Flex Code
10354 \begin_layout Plain Layout
10361 \begin_inset Flex Code
10364 \begin_layout Plain Layout
10373 \begin_inset space \thinspace{}
10377 \begin_inset Flex Code
10380 \begin_layout Plain Layout
10386 ] décrit si la classe fournit la fonctionnalité
10387 \begin_inset Flex Code
10390 \begin_layout Plain Layout
10399 Une fonctionnalité est en général le nom d'un paquetage (
10400 \begin_inset Flex Code
10403 \begin_layout Plain Layout
10412 \begin_inset Flex Code
10415 \begin_layout Plain Layout
10423 , \SpecialChar ldots
10424 ) ou d'une commande \SpecialChar LaTeX
10426 \begin_inset Flex Code
10429 \begin_layout Plain Layout
10438 \begin_inset Flex Code
10441 \begin_layout Plain Layout
10449 ,\SpecialChar ldots
10452 \begin_inset space ~
10456 \begin_inset CommandInset ref
10458 reference "chap:List-of-functions"
10462 pour une liste des fonctionnalités.
10465 \begin_layout Description
10468 \begin_inset Flex Code
10471 \begin_layout Plain Layout
10482 \begin_inset Flex Code
10485 \begin_layout Plain Layout
10491 ] indique que ce format fournit la fonctionnalité du module indiqué, qui
10492 doit être spécifié par le nom du fichier dans le suffixe
10493 \begin_inset Flex Code
10496 \begin_layout Plain Layout
10505 Ceci sera utilisé typiquement si le format inclut directement le module,
10506 plutôt que via le paramètre
10507 \begin_inset Flex Code
10510 \begin_layout Plain Layout
10518 pour indiquer qu'il doit être utilisé.
10519 Il pourrait être également utilisé dans un module fournissant une implantation
10520 équivalente de la même fonctionnalité.
10523 \begin_layout Description
10526 \begin_inset Flex Code
10529 \begin_layout Plain Layout
10540 \begin_inset Flex Code
10543 \begin_layout Plain Layout
10549 ] crée une nouveau style de paragraphe s'il n'existe pas déjà.
10550 S'il existe, l'entrée est ignorée.
10551 Doit être fermé par
10552 \begin_inset Quotes cld
10556 \begin_inset Flex Code
10559 \begin_layout Plain Layout
10568 \begin_inset Quotes crd
10574 \begin_layout Description
10577 \begin_inset Flex Code
10580 \begin_layout Plain Layout
10591 \begin_inset Flex Code
10594 \begin_layout Plain Layout
10600 ] indique que la classe nécessite la fonctionnalité
10601 \begin_inset Flex Code
10604 \begin_layout Plain Layout
10613 Plusieurs fonctionnalités doivent être séparées par des virgules.
10614 Noter que l'on ne peut requérir que des fonctionnalités reconnues (voir
10616 \begin_inset CommandInset ref
10618 reference "chap:List-of-functions"
10622 pour accéder à la liste des fonctionnalités).
10623 Si vous demandez un paquetage doté d'options spécifiques, vous pouvez utiliser
10625 \begin_inset Flex Code
10628 \begin_layout Plain Layout
10637 \begin_layout Description
10640 \begin_inset Flex Code
10643 \begin_layout Plain Layout
10654 \begin_inset Flex Code
10657 \begin_layout Plain Layout
10663 ] indique la largeur de la marge droite à l'écran, par exemple
10664 \begin_inset Quotes cld
10668 \begin_inset Flex Code
10671 \begin_layout Plain Layout
10678 \begin_inset Quotes crd
10684 \begin_layout Description
10687 \begin_inset Flex Code
10690 \begin_layout Plain Layout
10704 \begin_inset Flex Code
10707 \begin_layout Plain Layout
10713 ] fixe quels sectionnements doivent être numérotés.
10714 Correspond au compteur
10715 \begin_inset Flex Code
10718 \begin_layout Plain Layout
10726 en \SpecialChar LaTeX
10730 \begin_layout Description
10733 \begin_inset Flex Code
10736 \begin_layout Plain Layout
10749 \begin_inset Flex Code
10752 \begin_layout Plain Layout
10761 \begin_inset space \thinspace{}
10765 \begin_inset Flex Code
10768 \begin_layout Plain Layout
10774 ] fixe l'option implicite d'impression recto seul ou en recto verso.
10775 Peut être changé dans la fenêtre
10776 \begin_inset Flex Noun
10779 \begin_layout Plain Layout
10780 Document\SpecialChar menuseparator
10789 \begin_layout Description
10792 \begin_inset Flex Code
10795 \begin_layout Plain Layout
10806 \begin_inset Flex Code
10809 \begin_layout Plain Layout
10815 ] définit un nouveau style de paragraphe.
10816 Si le style n'existe pas, il est créé; s'il existe déjà, ses paramètres
10818 Doit être fermé par
10819 \begin_inset Quotes cld
10823 \begin_inset Flex Code
10826 \begin_layout Plain Layout
10835 \begin_inset Quotes crd
10839 \begin_inset Newline newline
10843 \begin_inset CommandInset ref
10845 reference "subsec:Styles-de-paragraphe"
10852 \begin_layout Description
10855 \begin_inset Flex Code
10858 \begin_layout Plain Layout
10874 \begin_inset Flex Code
10877 \begin_layout Plain Layout
10887 ] définit nom de la commande ou de l'envi\SpecialChar softhyphen
10888 ronnement mentionné ci-dessous.
10891 \begin_layout Description
10894 \begin_inset Flex Code
10897 \begin_layout Plain Layout
10912 \begin_inset Flex Code
10915 \begin_layout Plain Layout
10925 \begin_inset Flex Code
10928 \begin_layout Plain Layout
10938 ] indique le genre de balisage utilisé pour définir le titre d'un document.
10940 \begin_inset Flex Code
10943 \begin_layout Plain Layout
10949 signifie que la commande définie par
10950 \begin_inset Flex Code
10953 \begin_layout Plain Layout
10959 sera insérée après le dernier format avec
10962 \begin_inset Quotes cld
10968 \begin_inset Flex Code
10971 \begin_layout Plain Layout
10973 \begin_inset space ~
10984 \begin_inset Quotes crd
10991 \begin_inset Flex Code
10994 \begin_layout Plain Layout
11001 \begin_inset Flex Code
11004 \begin_layout Plain Layout
11010 est un environnement, dans lequel doit être inclus tous les formats avec
11014 \begin_inset Quotes cld
11020 \begin_inset Flex Code
11023 \begin_layout Plain Layout
11025 \begin_inset space ~
11036 \begin_inset Quotes crd
11044 \begin_layout Description
11047 \begin_inset Flex Code
11050 \begin_layout Plain Layout
11061 \begin_inset Flex Code
11064 \begin_layout Plain Layout
11070 ] fixe quels sectionnements sont inclus dans la table des matières.
11071 Correspond au compteur
11072 \begin_inset Flex Code
11075 \begin_layout Plain Layout
11083 en \SpecialChar LaTeX
11087 \begin_layout Subsection
11091 \begin_inset CommandInset label
11093 name "subsec:Section-ClassOptions"
11100 \begin_layout Standard
11102 \begin_inset Flex Code
11105 \begin_layout Plain Layout
11111 peut contenir les directives suivantes :
11114 \begin_layout Description
11117 \begin_inset Flex Code
11120 \begin_layout Plain Layout
11134 ] liste les tailles de police disponibles comme police principale du document,
11138 \begin_inset Quotes cld
11144 \begin_inset Flex Code
11147 \begin_layout Plain Layout
11156 \begin_inset Quotes crd
11164 \begin_layout Description
11167 \begin_inset Flex Code
11170 \begin_layout Plain Layout
11180 fixe le contenu de la ligne écrivant la DTD pour les classes produisant
11185 \begin_inset Quotes eld
11188 -//OASIS//DTD DocBook V4.2//EN
11189 \begin_inset Quotes erd
11197 \begin_layout Description
11200 \begin_inset Flex Code
11203 \begin_layout Plain Layout
11217 ] introduit certaines options de la classe de document, séparées par une
11218 virgule, qui seront ajoutées à la partie optionnelle de la commande
11219 \begin_inset Flex Code
11222 \begin_layout Plain Layout
11233 \begin_layout Description
11236 \begin_inset Flex Code
11239 \begin_layout Plain Layout
11251 chaîne="empty|plain|headings|fancy"
11253 ] liste les mises en page disponibles, séparées par un
11256 \begin_inset Quotes cld
11260 \begin_inset Quotes crd
11268 \begin_layout Standard
11270 \begin_inset Flex Code
11273 \begin_layout Plain Layout
11279 doit être fermée par
11280 \begin_inset Quotes cld
11286 \begin_inset Flex Code
11289 \begin_layout Plain Layout
11300 \begin_inset Quotes crd
11306 \begin_layout Subsection
11307 Styles de paragraphe
11308 \begin_inset CommandInset label
11310 name "subsec:Styles-de-paragraphe"
11317 \begin_layout Standard
11318 La description d'un style de paragraphe ressemble à ceci
11322 \begin_layout Plain Layout
11323 qui peut servir soit à définir un nouvel format soit à en modifier un déjà
11332 \begin_layout LyX-Code
11339 \begin_layout LyX-Code
11343 \begin_layout LyX-Code
11347 \begin_layout Standard
11348 dans lequel on peut mettre les commandes suivantes :
11351 \begin_layout Description
11354 \begin_inset Flex Code
11357 \begin_layout Plain Layout
11366 \begin_inset Flex Code
11369 \begin_layout Plain Layout
11377 =""] This paragraph will appear in the table of contents of the given type.
11378 An empty string disables.
11379 See also the OutlinerName and the IsTocCaption commands.
11383 \begin_layout Description
11386 \begin_inset Flex Code
11389 \begin_layout Plain Layout
11404 , left, right, center
11406 ] alignement de paragraphe.
11409 \begin_layout Description
11412 \begin_inset Flex Code
11415 \begin_layout Plain Layout
11430 , left, right, center
11436 des alignements possibles séparés par une virgule.
11437 Certains styles \SpecialChar LaTeX
11438 interdisent certains alignements, car ils n'auraient aucun
11440 Par exemple une énumération alignée à droite ou centrée est impossible.
11443 \begin_layout Description
11446 \begin_inset Flex Code
11449 \begin_layout Plain Layout
11460 \begin_inset Flex Code
11463 \begin_layout Plain Layout
11469 ] définit l'argument numéro <int> d'une commande ou environnement associé
11471 Ceci est utile pour des entités comme les en-têtes de section, et n'a de
11472 sens qu'avec \SpecialChar LaTeX
11474 Chaque argument (obligatoire ou facultatif) d'une commande ou d'un environnemen
11475 t — sauf l'argument obligatoire correspondant au contenu du paragraphe propremen
11476 t dit — est défini séparément, et le nombre précise l'ordre des arguments.
11477 La définition doit être close par
11480 \begin_inset Flex Code
11483 \begin_layout Plain Layout
11493 .Ainsi une commande avec deux arguments sera spécifiée comme suit:
11497 \begin_layout Quote
11503 \begin_layout Quote
11509 \begin_layout Quote
11515 \begin_layout Quote
11521 \begin_layout Quote
11527 \begin_layout Quote
11533 \begin_layout Standard
11534 Dans la définition de l'
11535 \begin_inset Flex Code
11538 \begin_layout Plain Layout
11544 , les spécifications suivantes sont possibles:
11547 \begin_layout Itemize
11550 \begin_inset Flex Code
11553 \begin_layout Plain Layout
11564 \begin_inset Flex Code
11567 \begin_layout Plain Layout
11573 définit la chaîne de caractères qui apparaîtra à la fois dans le menu (pour
11574 insérer cet argument) et dans le bouton d'insertion d'argument (sauf si
11575 vous spécifiez également un
11578 \begin_inset Flex Code
11581 \begin_layout Plain Layout
11592 Pour le menu, vous pouvez définir un accélérateur en ajoutant le caractère
11593 désiré à la chaîne, séparé par
11594 \begin_inset Quotes cld
11598 \begin_inset Quotes crd
11602 \begin_inset space \thinspace{}
11606 \begin_inset space \space{}
11610 \begin_inset Quotes cld
11614 \begin_inset Flex Code
11617 \begin_layout Plain Layout
11618 Éléments personnalisables|é
11624 \begin_inset Quotes crd
11630 \begin_layout Itemize
11633 \begin_inset Flex Code
11636 \begin_layout Plain Layout
11647 \begin_inset Flex Code
11650 \begin_layout Plain Layout
11656 définit une chaîne particulière pour le menu.
11657 Vous pouvez définir un accélérateur en ajoutant le caractère désiré à la
11659 \begin_inset Quotes cld
11663 \begin_inset Quotes crd
11667 \begin_inset space \thinspace{}
11671 \begin_inset space \space{}
11675 \begin_inset Quotes cld
11679 \begin_inset Flex Code
11682 \begin_layout Plain Layout
11683 Éléments personnalisables|é
11689 \begin_inset Quotes crd
11693 Cette spécification est facultative, si elle n'existe pas, la
11694 \begin_inset Flex Code
11697 \begin_layout Plain Layout
11703 sera utilisée pour le menu;
11706 \begin_layout Itemize
11709 \begin_inset Flex Code
11712 \begin_layout Plain Layout
11723 \begin_inset Flex Code
11726 \begin_layout Plain Layout
11732 définit un texte explicatif qui apparaît dans la bulle d'aide quand le
11733 curseur passe sur l'insertion d'argument;
11736 \begin_layout Itemize
11739 \begin_inset Flex Code
11742 \begin_layout Plain Layout
11753 \begin_inset Flex Code
11756 \begin_layout Plain Layout
11765 \begin_inset space \thinspace{}
11769 \begin_inset Flex Code
11772 \begin_layout Plain Layout
11778 ] précise si l’argument est obligatoire (1) ou optionnel (0).
11779 Les arguments obligatoires ont émis comme une chaîne vide s'ils ne sont
11780 pas précisés, alors que les arguments optionnels ne sont pas émis du tout.
11781 Implicitement, les arguments obligatoires sont insérés entre
11782 \begin_inset Flex Code
11785 \begin_layout Plain Layout
11791 , alors que les arguments optionnels sont insérés entre
11792 \begin_inset Flex Code
11795 \begin_layout Plain Layout
11804 \begin_layout Itemize
11807 \begin_inset Flex Code
11810 \begin_layout Plain Layout
11821 \begin_inset Flex Code
11824 \begin_layout Plain Layout
11830 définit une autre argument (par son numéro d'ordre) dont cet argument demande
11831 l’émission s'il est lui-même émis.
11832 Par exemple en \SpecialChar LaTeX
11833 , les arguments optionnels demandent l'émission d'autres
11834 arguments optionnels situés avant eux dans la liste (au moins vides), comme
11838 \begin_inset Flex Code
11841 \begin_layout Plain Layout
11846 command[][argument]{text}
11853 ou ceci peut être précisé par la directive
11856 \begin_inset Flex Code
11859 \begin_layout Plain Layout
11870 \begin_inset Flex Code
11873 \begin_layout Plain Layout
11882 \begin_layout Itemize
11885 \begin_inset Flex Code
11888 \begin_layout Plain Layout
11899 \begin_inset Flex Code
11902 \begin_layout Plain Layout
11908 définit un délimiteur gauche personnalisé (au lieu de
11909 \begin_inset Flex Code
11912 \begin_layout Plain Layout
11919 \begin_inset Flex Code
11922 \begin_layout Plain Layout
11929 Une rupture de ligne dans la sortie peut être indiqué par
11930 \begin_inset Flex Code
11933 \begin_layout Plain Layout
11942 \begin_layout Itemize
11945 \begin_inset Flex Code
11948 \begin_layout Plain Layout
11959 \begin_inset Flex Code
11962 \begin_layout Plain Layout
11968 définit un délimiteur droit personnalisé (au lieu de
11969 \begin_inset Flex Code
11972 \begin_layout Plain Layout
11979 \begin_inset Flex Code
11982 \begin_layout Plain Layout
11989 Une rupture de ligne dans la sortie peut être indiqué par
11990 \begin_inset Flex Code
11993 \begin_layout Plain Layout
12002 \begin_layout Itemize
12005 \begin_inset Flex Code
12008 \begin_layout Plain Layout
12019 \begin_inset Flex Code
12022 \begin_layout Plain Layout
12028 définit un argument qui sera inséré si et seulement si aucun argument n'est
12029 saisi par l'utilisateur, c'est-à-dire si aucun insert d'argument n'a été
12030 spécifié (notez qu'un insert d'argument vide masque le
12033 \begin_inset Flex Code
12036 \begin_layout Plain Layout
12047 Les arguments multiples doivent être séparés par des virgules;
12050 \begin_layout Itemize
12053 \begin_inset Flex Code
12056 \begin_layout Plain Layout
12067 \begin_inset Flex Code
12070 \begin_layout Plain Layout
12076 définit un argument inséré dans tous les cas (seul ou en plus des chaîne
12077 saisies par l’utilisateur).
12078 Les arguments multiples doivent être séparés par des virgules;
12081 \begin_layout Itemize
12084 \begin_inset Flex Code
12087 \begin_layout Plain Layout
12097 définit la police de caractères utilisée pour le contenu de l'argument,
12099 \begin_inset CommandInset ref
12101 reference "subsec:polices"
12108 \begin_layout Itemize
12111 \begin_inset Flex Code
12114 \begin_layout Plain Layout
12124 définit la police de caractères utilisée pour l'étiquette, voir
12125 \begin_inset CommandInset ref
12127 reference "subsec:polices"
12134 \begin_layout Itemize
12137 \begin_inset Flex Code
12140 \begin_layout Plain Layout
12149 \begin_inset Flex Code
12152 \begin_layout Plain Layout
12158 , Minimalistic, Conglomerate
12165 précise le style de rendu utilisé pour les cadres d'insertion et les boutons;
12168 \begin_layout Itemize
12171 \begin_inset Flex Code
12174 \begin_layout Plain Layout
12185 \begin_inset Flex Code
12188 \begin_layout Plain Layout
12194 force l'insertion de l’argument lorsque le style concerné est sélectionné
12195 (si sa valeur est 1).
12196 Actuellement, un seul argument par style ou format peut être inséré automatique
12200 \begin_layout Itemize
12203 \begin_inset Flex Code
12206 \begin_layout Plain Layout
12215 \begin_inset Flex Code
12218 \begin_layout Plain Layout
12229 \begin_inset Flex Code
12232 \begin_layout Plain Layout
12238 , insère l'argument avec une copie du co-texte, (soit du texte sélectionné,
12239 soit tout le paragraphe) comme contenu.
12242 \begin_layout Itemize
12245 \begin_inset Flex Code
12248 \begin_layout Plain Layout
12257 \begin_inset Flex Code
12260 \begin_layout Plain Layout
12271 ] Whether the contents of this argument should be output in raw form, meaning
12272 without special translations that \SpecialChar LaTeX
12275 \begin_inset Flex Code
12278 \begin_layout Plain Layout
12286 status is inherited by the inset or paragraph layout the argument belongs
12287 to, true and false change the status for the given argument only.
12290 \begin_layout Itemize
12293 \begin_inset Flex Code
12296 \begin_layout Plain Layout
12305 \begin_inset Flex Code
12308 \begin_layout Plain Layout
12311 string of characters
12321 définit des caractères qui doivent être transmis tel quels à la sortie,
12322 c'est-à-dire sans modifications particulières que \SpecialChar LaTeX
12324 Notez bien que, contrairement à
12328 , ceci nécessite une définition explicite pour les arguments, ceux-ci n’héritant
12333 de leur insert ou format parent.
12336 \begin_layout Itemize
12339 \begin_inset Flex Code
12342 \begin_layout Plain Layout
12351 \begin_inset Flex Code
12354 \begin_layout Plain Layout
12364 \begin_inset space \thinspace{}
12368 \begin_inset Flex Code
12371 \begin_layout Plain Layout
12379 ] If this is set to 1, the argument will output its content in the corresponding
12380 item in the table of contents.
12384 \begin_layout Standard
12385 Implicitement, le texte saisi dans la fenêtre de travail de \SpecialChar LyX
12387 considéré est le dernier argument de la commande si le
12390 \begin_inset Flex Code
12393 \begin_layout Plain Layout
12406 \begin_inset Flex Code
12409 \begin_layout Plain Layout
12420 Cependant, les arguments préfixés par
12423 \begin_inset Flex Code
12426 \begin_layout Plain Layout
12436 sont émis après cet argument de la fenêtre de travail.
12437 Notez que la numérotation des post-arguments repart de 1, de sorte que
12438 le premier argument suivant l’argument de la fenêtre de travail est
12441 \begin_inset Flex Code
12444 \begin_layout Plain Layout
12455 Les post-arguments sont ignorés dans tout autre
12458 \begin_inset Flex Code
12461 \begin_layout Plain Layout
12472 \begin_inset Flex Code
12475 \begin_layout Plain Layout
12484 \begin_layout Standard
12485 Les arguments de liste
12486 \begin_inset Flex Code
12489 \begin_layout Plain Layout
12498 \begin_inset Flex Code
12501 \begin_layout Plain Layout
12509 ) sont préfixés par
12510 \begin_inset Flex Code
12513 \begin_layout Plain Layout
12519 suivi par leur numéro (e.
12520 \begin_inset space \thinspace{}
12524 \begin_inset space \space{}
12528 \begin_inset Flex Code
12531 \begin_layout Plain Layout
12541 \begin_layout Description
12544 \begin_inset Flex Code
12547 \begin_layout Plain Layout
12557 noter que cette directive écrasera complètement toute déclaration
12558 \begin_inset Flex Code
12561 \begin_layout Plain Layout
12567 antérieure pour ce style.
12568 Doit être fermée par
12569 \begin_inset Flex Code
12572 \begin_layout Plain Layout
12580 \begin_inset CommandInset ref
12582 reference "subsec:I18n"
12586 pour les détails d'utilisation.
12589 \begin_layout Description
12592 \begin_inset Flex Code
12595 \begin_layout Plain Layout
12613 \begin_layout Plain Layout
12615 \begin_inset Quotes cld
12619 \begin_inset Quotes crd
12622 ici désigne un nombre réel, e.g.
12628 l'espacement vertical qui sépare du paragraphe suivant le dernier paragraphe
12629 d'une série doté de cette directive.
12630 Si le paragraphe suivant est doté d'un autre style, les séparations ne
12631 sont pas simplement additionnées, mais le maximum est pris en considération.La
12633 \begin_inset Flex Code
12636 \begin_layout Plain Layout
12642 pour le dernier paragraphe.
12645 \begin_layout Description
12648 \begin_inset Flex Code
12651 \begin_layout Plain Layout
12662 \begin_inset Flex Code
12665 \begin_layout Plain Layout
12671 fixe la catégorie pour ce style.
12672 Ceci est utilise pour regrouper les styles apparentés dans le menu déroulant
12673 des styles de la barre d'outils.
12674 N'importe quelle chaîne de caractères peut être utilisée, mais vous voudrez
12675 peut-être utiliser des catégories existantes pour vos propres styles.
12678 \begin_layout Description
12681 \begin_inset Flex Code
12684 \begin_layout Plain Layout
12694 fixe la profondeur d'une commande XML.
12695 Utilisable uniquement avec les formats XML.
12698 \begin_layout Description
12701 \begin_inset Flex Code
12704 \begin_layout Plain Layout
12715 \begin_inset Flex Code
12718 \begin_layout Plain Layout
12724 sert à copier toutes les caractéristiques d'un style déjà existant dans
12728 \begin_layout Description
12731 \begin_inset Flex Code
12734 \begin_layout Plain Layout
12745 \begin_inset Flex Code
12748 \begin_layout Plain Layout
12754 ] nomme un style dont le préambule devra être placé
12759 Ceci permet d'assurer une relation d'ordre entre les morceaux de préambule
12760 quand les définitions de macros dépendent les unes des autres.
12766 \begin_layout Plain Layout
12767 Noter que, à part cette fonctionnalité, il n'y a aucun moyen de garantir
12768 un ordonnancement des préambules.
12769 L'ordre que vous constatez avec une version de \SpecialChar LyX
12770 peut changer sans préavis
12771 dans les versions ultérieures.
12779 \begin_layout Description
12782 \begin_inset Flex Code
12785 \begin_layout Plain Layout
12813 ] fixe le type de marqueur qui se trouve à la fin du paragraphe (ou de la
12814 suite de paragraphes si
12815 \begin_inset Flex Code
12818 \begin_layout Plain Layout
12825 \begin_inset Flex Code
12828 \begin_layout Plain Layout
12835 \begin_inset Flex Code
12838 \begin_layout Plain Layout
12845 \begin_inset Flex Code
12848 \begin_layout Plain Layout
12856 \begin_inset Flex Code
12859 \begin_layout Plain Layout
12866 \begin_inset Quotes cld
12870 \begin_inset Quotes crd
12874 \begin_inset Flex Code
12877 \begin_layout Plain Layout
12884 \begin_inset Flex Code
12887 \begin_layout Plain Layout
12893 ) est un carré blanc (respectivement noir) en général placé à la fin des
12896 \begin_inset Flex Code
12899 \begin_layout Plain Layout
12905 est une chaîne de caractères explicitement donnée.
12908 \begin_layout Description
12911 \begin_inset Flex Code
12914 \begin_layout Plain Layout
12925 \begin_inset Flex Code
12928 \begin_layout Plain Layout
12934 fixe la chaîne utilisée pour le marqueur quand
12935 \begin_inset Newline newline
12939 \begin_inset Flex Code
12942 \begin_layout Plain Layout
12949 \begin_inset Flex Code
12952 \begin_layout Plain Layout
12961 \begin_layout Description
12964 \begin_inset Flex Code
12967 \begin_layout Plain Layout
12977 fixe la police utilisée à la fois pour le corps du texte
12983 \begin_inset CommandInset ref
12985 reference "subsec:polices"
12990 Noter qu'en définissant cette police on définit aussi automatiquement
12993 \begin_inset Flex Code
12996 \begin_layout Plain Layout
13006 avec la même valeur.
13007 Il faut donc définir celle-ci d'abord pour fixer
13010 \begin_inset Flex Code
13013 \begin_layout Plain Layout
13026 \begin_layout Description
13029 \begin_inset Flex Code
13032 \begin_layout Plain Layout
13043 \begin_inset Flex Code
13046 \begin_layout Plain Layout
13052 ] est utile pour forcer la portabilité de nouveaux styles vers des versions
13053 stables de \SpecialChar LyX
13055 La première version stable qui interprète cette directive est \SpecialChar LyX
13057 L'argument est un nombre qui peut être 0, -1 ou n'importe quel entier positif.
13059 \begin_inset Flex Code
13062 \begin_layout Plain Layout
13068 est positif, il sera toujours émis vers le préambule du document.
13069 Lors de la lecture d'un fichier
13073 , les définitions de style du préambule du document sont ajoutées à la classe
13075 De ce fait même les versions de \SpecialChar LyX
13076 plus anciennes peuvent gérer ce style.
13080 \begin_inset Flex Code
13083 \begin_layout Plain Layout
13093 est un numéro de version : si le style est lu, et si le numéro de version
13094 est inférieur au numéro de version du style existant dans la classe de
13095 document, le nouveau style est ignoré.
13096 Si le numéro de version est supérieur, le nouveau style remplace l'ancien.
13097 La valeur -1 signifie un numéro de version infini, c'est-à-dire que le
13098 style est toujours utilisé.
13101 \begin_layout Description
13104 \begin_inset Flex Code
13107 \begin_layout Plain Layout
13118 \begin_inset Flex Code
13121 \begin_layout Plain Layout
13130 \begin_inset space \thinspace{}
13134 \begin_inset Flex Code
13137 \begin_layout Plain Layout
13144 ne permet pas d'habitude d'insérer plus d'une espace entre deux mots,
13145 car une espace est considérée comme un séparateur de mots, non comme un
13146 caractère ou un symbole en tant que tel.
13147 C'est très bien mais c'est parfois ennuyeux, par exemple pour taper un
13148 code source de programme ou du code \SpecialChar LaTeX
13150 C'est pourquoi on peut activer
13151 \begin_inset Flex Code
13154 \begin_layout Plain Layout
13161 Noter que \SpecialChar LyX
13162 créera les espaces insécables correspondants aux espaces additionnel
13163 les pour tous les modes autres que le mode \SpecialChar LaTeX
13167 \begin_layout Description
13170 \begin_inset Flex Code
13173 \begin_layout Plain Layout
13181 sont utilisées avec l'exportation XHTML.
13183 \begin_inset CommandInset ref
13185 reference "subsec:Styles-de-paragraphe-XHTML"
13192 \begin_layout Description
13195 \begin_inset Flex Code
13198 \begin_layout Plain Layout
13208 (Utilisable uniquement avec les formats XML).
13211 \begin_layout Description
13214 \begin_inset Flex Code
13217 \begin_layout Plain Layout
13231 \begin_inset Flex Code
13234 \begin_layout Plain Layout
13243 \begin_inset space \thinspace{}
13247 \begin_inset Flex Code
13250 \begin_layout Plain Layout
13257 \begin_inset Flex Code
13260 \begin_layout Plain Layout
13266 que que le style doit être inclus dans le préambule plutôt que dans le
13268 Ceci est utile pour les classes de document qui désirent que les informations
13269 telles que le titre et l'auteur figurent dans le préambule.
13270 Notez bien que ceci ne fonctionne que pour les styles pour lesquels
13271 \begin_inset Flex Code
13274 \begin_layout Plain Layout
13283 \begin_inset Flex Code
13286 \begin_layout Plain Layout
13297 \begin_inset Flex Code
13300 \begin_layout Plain Layout
13311 \begin_layout Description
13314 \begin_inset Flex Code
13317 \begin_layout Plain Layout
13331 \begin_inset Flex Code
13334 \begin_layout Plain Layout
13343 \begin_inset space \thinspace{}
13347 \begin_inset Flex Code
13350 \begin_layout Plain Layout
13357 \begin_inset Flex Code
13360 \begin_layout Plain Layout
13366 que le style fait partie d'un bloc de titre (voir aussi
13367 \begin_inset Flex Code
13370 \begin_layout Plain Layout
13379 \begin_inset Flex Code
13382 \begin_layout Plain Layout
13390 dans les paramètres généraux).
13393 \begin_layout Description
13396 \begin_inset Flex Code
13399 \begin_layout Plain Layout
13408 \begin_inset Flex Code
13411 \begin_layout Plain Layout
13421 \begin_inset space \thinspace{}
13425 \begin_inset Flex Code
13428 \begin_layout Plain Layout
13436 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13437 of its contents in its item in the table of contents.
13438 Otherwise, only the label, if it exists, appears.
13441 \begin_layout Description
13444 \begin_inset Flex Code
13447 \begin_layout Plain Layout
13458 \begin_inset Flex Code
13461 \begin_layout Plain Layout
13467 ] est la commande \SpecialChar LaTeX
13468 permettant de déclarer un élément d'une liste.
13469 La commande doit être définie sans la barre oblique inverse qui la précède
13470 habituellement (implicitement
13471 \begin_inset Quotes cld
13475 \begin_inset Quotes crd
13478 , qui est émis comme
13479 \begin_inset Flex Code
13482 \begin_layout Plain Layout
13490 en \SpecialChar LaTeX
13494 \begin_layout Description
13497 \begin_inset Flex Code
13500 \begin_layout Plain Layout
13511 \begin_inset Flex Code
13514 \begin_layout Plain Layout
13520 ] crée un espacement supplémentaire entre les paragraphes du même style
13521 dans un environnement.
13522 Si vous emboîtez des paragraphes d'autres formats dans un environnement,
13523 ils seront espacés de
13524 \begin_inset Flex Code
13527 \begin_layout Plain Layout
13534 Mais les éléments de l'environnement seront en plus espacés de
13535 \begin_inset Flex Code
13538 \begin_layout Plain Layout
13552 \begin_layout Description
13555 \begin_inset Flex Code
13558 \begin_layout Plain Layout
13568 (Utilisable uniquement avec les formats XML).
13571 \begin_layout Description
13574 \begin_inset Flex Code
13577 \begin_layout Plain Layout
13588 \begin_inset Flex Code
13591 \begin_layout Plain Layout
13600 \begin_inset space \thinspace{}
13604 \begin_inset Flex Code
13607 \begin_layout Plain Layout
13613 ] permet de laisser un paragraphe vide, ce que \SpecialChar LyX
13614 ne permet pas d'habitude
13615 car il ne générerait rien en \SpecialChar LaTeX
13617 Il y a quelques cas où c'est pourtant utile: dans un modèle pour une lettre,
13618 les champs requis peuvent être laissés vides, pour que les gens ne les
13619 oublient pas; dans certains cas particuliers, un style peut aussi servir
13620 de séparateur, et ne pas contenir de texte.
13623 \begin_layout Description
13626 \begin_inset Flex Code
13629 \begin_layout Plain Layout
13643 \begin_inset Flex Code
13646 \begin_layout Plain Layout
13652 ] fixe l'espacement vertical entre le marqueur et le corps du texte.
13653 Sert seulement pour les marqueurs qui sont au dessus du corps du texte
13655 \begin_inset Flex Code
13658 \begin_layout Plain Layout
13665 \begin_inset Flex Code
13668 \begin_layout Plain Layout
13669 Centered_Top_Environment
13677 \begin_layout Description
13680 \begin_inset Flex Code
13683 \begin_layout Plain Layout
13694 \begin_inset Flex Code
13697 \begin_layout Plain Layout
13703 dénomme le compteur pour la numérotation automatique.
13704 Pour que le compteur soit associé à votre étiquette, il vous faut le référencer
13708 \begin_inset Flex Code
13711 \begin_layout Plain Layout
13723 Ceci fonctionnera avec les
13726 \begin_inset Flex Code
13729 \begin_layout Plain Layout
13738 \begin_inset Flex Code
13741 \begin_layout Plain Layout
13750 \begin_inset Flex Code
13753 \begin_layout Plain Layout
13762 \begin_inset Flex Code
13765 \begin_layout Plain Layout
13776 \begin_inset Newline newline
13784 \begin_inset Flex Code
13787 \begin_layout Plain Layout
13796 \begin_inset Flex Code
13799 \begin_layout Plain Layout
13807 , bien que ce cas soit un peu compliqué.
13808 Supposez que vous déclariez
13809 \begin_inset Flex Code
13812 \begin_layout Plain Layout
13813 \begin_inset Quotes cld
13816 LabelCounter monEnum
13822 \begin_inset Quotes crd
13826 Les compteurs effectivement utilisés sont alors
13827 \begin_inset Flex Code
13830 \begin_layout Plain Layout
13837 \begin_inset Flex Code
13840 \begin_layout Plain Layout
13847 \begin_inset Flex Code
13850 \begin_layout Plain Layout
13857 \begin_inset Flex Code
13860 \begin_layout Plain Layout
13866 , tout à fait comme en \SpecialChar LaTeX
13868 Ces compteurs doivent être tous déclarés séparément.
13869 \begin_inset Newline newline
13873 \begin_inset CommandInset ref
13875 reference "subsec:Compteurs"
13879 pour les détails sur les compteurs.
13882 \begin_layout Description
13885 \begin_inset Flex Code
13888 \begin_layout Plain Layout
13898 fixe la police utilisée pour le marqueur.
13900 \begin_inset CommandInset ref
13902 reference "subsec:polices"
13909 \begin_layout Description
13912 \begin_inset Flex Code
13915 \begin_layout Plain Layout
13926 \begin_inset Flex Code
13929 \begin_layout Plain Layout
13935 fixe le texte indiquent l'importance de l'indentation d'un marqueur.
13938 \begin_layout Description
13941 \begin_inset Flex Code
13944 \begin_layout Plain Layout
13955 \begin_inset Flex Code
13958 \begin_layout Plain Layout
13964 fixe le texte indiquent l'espacement horizontal entre le marqueur et le
13966 Sert seulement pour les marqueurs qui ne sont pas au dessus du corps du
13970 \begin_layout Description
13973 \begin_inset Flex Code
13976 \begin_layout Plain Layout
13987 \begin_inset Flex Code
13990 \begin_layout Plain Layout
13996 fixe la chaîne utilisée comme marqueur avec le
13999 \begin_inset Flex Code
14002 \begin_layout Plain Layout
14011 \begin_inset Flex Code
14014 \begin_layout Plain Layout
14028 \begin_inset Flex Code
14031 \begin_layout Plain Layout
14041 est indiqué, cette chaîne peut contenir les instructions de formatage particuli
14042 ères décrites dans la
14043 \begin_inset CommandInset ref
14045 reference "subsec:Compteurs"
14052 \begin_layout Description
14055 \begin_inset Flex Code
14058 \begin_layout Plain Layout
14061 LabelStringAppendix
14069 \begin_inset Flex Code
14072 \begin_layout Plain Layout
14078 est utilisée dans une annexe à la place de
14079 \begin_inset Flex Code
14082 \begin_layout Plain Layout
14091 Noter que toute directive
14092 \begin_inset Flex Code
14095 \begin_layout Plain Layout
14104 \begin_inset Newline newline
14108 \begin_inset Flex Code
14111 \begin_layout Plain Layout
14114 LabelStringAppendix
14122 \begin_layout Description
14125 \begin_inset Flex Code
14128 \begin_layout Plain Layout
14138 (Utilisable uniquement avec les formats XML).
14141 \begin_layout Description
14144 \begin_inset Flex Code
14147 \begin_layout Plain Layout
14158 \begin_inset Flex Code
14161 \begin_layout Plain Layout
14172 \begin_inset Newline newline
14179 Sensitive, Enumerate,
14180 \begin_inset Newline newline
14183 Itemize, Bibliography
14194 \begin_layout Description
14195 \begin_inset Flex Code
14198 \begin_layout Plain Layout
14206 veut dire que le marqueur est le premier mot (avant la première vraie espace).
14207 Utilisez des espaces insécables si vous voulez mettre plus d'un mot dans
14211 \begin_layout Description
14212 \begin_inset Flex Code
14215 \begin_layout Plain Layout
14223 veut dire qu'il est défini dans le style (voir
14224 \begin_inset Flex Code
14227 \begin_layout Plain Layout
14237 \begin_inset Quotes cld
14241 \begin_inset Quotes crd
14244 , au début du paragraphe.Si le
14247 \begin_inset Flex Code
14250 \begin_layout Plain Layout
14263 \begin_inset Flex Code
14266 \begin_layout Plain Layout
14276 , alors il ne sera affiché que dans le premier paragraphe de toutes séquence
14277 de paragraphes du même
14280 \begin_inset Flex Code
14283 \begin_layout Plain Layout
14296 \begin_layout Description
14299 \begin_inset Flex Code
14302 \begin_layout Plain Layout
14313 \begin_inset space ~
14317 \begin_inset space ~
14323 \begin_inset Flex Code
14326 \begin_layout Plain Layout
14336 sont des cas particuliers de
14337 \begin_inset Flex Code
14340 \begin_layout Plain Layout
14349 Le marqueur sera imprimé au dessus du paragraphe, soit au début de la lignes,
14353 \begin_layout Description
14354 \begin_inset Flex Code
14357 \begin_layout Plain Layout
14365 est un cas particulier pour les marqueurs de légende
14366 \begin_inset Quotes cld
14370 \begin_inset Quotes crd
14374 \begin_inset Quotes cld
14378 \begin_inset Quotes crd
14383 \begin_inset Flex Code
14386 \begin_layout Plain Layout
14394 signifie que le mot affiché (défini en dur) dépend du type de flottant:
14395 il est défini dans les sources comme
14396 \begin_inset Quotes cld
14400 \begin_inset Flex Code
14403 \begin_layout Plain Layout
14412 \begin_inset Quotes crd
14416 \begin_inset Flex Code
14419 \begin_layout Plain Layout
14425 est la valeur du compteur associé au flottant.
14426 Au cas où une légende est insérée en dehors d'un flottant, le
14429 \begin_inset Flex Code
14432 \begin_layout Plain Layout
14443 \begin_inset Quotes cld
14447 \begin_inset Quotes crd
14453 \begin_layout Description
14454 \begin_inset Flex Code
14457 \begin_layout Plain Layout
14465 produit le type habituel d'étiquettes d'énumération.
14468 The number type needs to be set in the
14474 \begin_inset CommandInset ref
14476 reference "subsec:Compteurs"
14483 \begin_layout Description
14486 \begin_inset Flex Code
14489 \begin_layout Plain Layout
14499 produit des symboles pour les différents niveaux.
14502 The bullet types displayed can be set via
14505 \begin_inset Flex Noun
14508 \begin_layout Plain Layout
14509 Document\SpecialChar menuseparator
14510 Paramètres\SpecialChar menuseparator
14519 \begin_layout Description
14522 \begin_inset Flex Code
14525 \begin_layout Plain Layout
14535 ne doit être utilisé qu'avec
14538 \begin_inset Flex Code
14541 \begin_layout Plain Layout
14544 LatexType BibEnvironment
14553 \begin_layout Description
14556 \begin_inset Flex Code
14559 \begin_layout Plain Layout
14569 écrasera complètement toute autre directive
14570 \begin_inset Flex Code
14573 \begin_layout Plain Layout
14580 Doit être fermée par
14581 \begin_inset Flex Code
14584 \begin_layout Plain Layout
14591 \begin_inset Newline newline
14595 \begin_inset CommandInset ref
14597 reference "subsec:I18n"
14601 pour les détails d'utilisation.
14604 \begin_layout Description
14607 \begin_inset Flex Code
14610 \begin_layout Plain Layout
14621 \begin_inset Flex Code
14624 \begin_layout Plain Layout
14630 ] fixe le nom de l'objet \SpecialChar LaTeX
14631 correspondant, soit l'environnement, soit la commande.
14634 \begin_layout Description
14637 \begin_inset Flex Code
14640 \begin_layout Plain Layout
14651 \begin_inset Flex Code
14654 \begin_layout Plain Layout
14660 ] fixe le paramètre facultatif de l'objet
14661 \begin_inset Flex Code
14664 \begin_layout Plain Layout
14671 Ce paramètre ne peut pas être changé depuis \SpecialChar LyX
14673 \begin_inset Flex Code
14676 \begin_layout Plain Layout
14682 pour les paramètres personnalisables).
14683 Ceci sera émis tel quel après tous les
14684 \begin_inset Flex Code
14687 \begin_layout Plain Layout
14693 s \SpecialChar LaTeX
14697 \begin_layout Description
14700 \begin_inset Flex Code
14703 \begin_layout Plain Layout
14714 \begin_inset Flex Code
14717 \begin_layout Plain Layout
14723 , Command, Environment, Item_Environment,
14724 \begin_inset Newline newline
14727 List_Environment, Bib_Environment
14734 ] décrit comment traduire l'environnement en \SpecialChar LaTeX
14739 \begin_layout Plain Layout
14740 \begin_inset Flex Code
14743 \begin_layout Plain Layout
14751 est peut-être trompeur, dans la mesure où ces règles s'appliquent également
14752 aux classes DocBook.
14753 Explorer les fichiers des classes DocBook (noms de fichiers
14754 \begin_inset Flex Code
14757 \begin_layout Plain Layout
14763 ) pour voir des exemples particuliers.
14772 \begin_layout Description
14773 \begin_inset Flex Code
14776 \begin_layout Plain Layout
14783 \begin_inset Quotes cld
14787 \begin_inset Quotes crd
14793 \begin_layout Description
14794 \begin_inset Flex Code
14797 \begin_layout Plain Layout
14804 \begin_inset Flex Code
14807 \begin_layout Plain Layout
14814 {\SpecialChar ldots
14823 \begin_layout Description
14824 \begin_inset Flex Code
14827 \begin_layout Plain Layout
14834 \begin_inset Flex Code
14837 \begin_layout Plain Layout
14844 }\SpecialChar ldots
14859 \begin_layout Description
14860 \begin_inset Flex Code
14863 \begin_layout Plain Layout
14869 est la même chose que
14870 \begin_inset Flex Code
14873 \begin_layout Plain Layout
14879 , sauf qu'il génère un
14880 \begin_inset Flex Code
14883 \begin_layout Plain Layout
14891 pour chaque paragraphe de l'environnement.
14894 \begin_layout Description
14895 \begin_inset Flex Code
14898 \begin_layout Plain Layout
14904 est la même chose que
14905 \begin_inset Flex Code
14908 \begin_layout Plain Layout
14915 \begin_inset Newline newline
14919 \begin_inset Flex Code
14922 \begin_layout Plain Layout
14928 est passé en paramètre de l'environnement.
14929 \begin_inset Newline newline
14933 \begin_inset Flex Code
14936 \begin_layout Plain Layout
14942 peut être défini dans la fenêtre
14943 \begin_inset Flex Noun
14946 \begin_layout Plain Layout
14947 Édition\SpecialChar menuseparator
14948 Paramètres de Paragraphe
14956 \begin_layout Description
14959 \begin_inset Flex Code
14962 \begin_layout Plain Layout
14975 \begin_inset Flex Code
14978 \begin_layout Plain Layout
14988 , mais ajoute l'argument obligatoire nécessaire (l'étiquette la plus longue)
14989 à la directive de début de l’environnement bibliographique:
14992 \begin_inset Newline newline
14996 \begin_inset Flex Code
14999 \begin_layout Plain Layout
15004 begin{thebibliography}{99}
15012 Cette directive n'est donc nécessaire que pour les environnements bibliographiq
15014 L’étiquette implicite
15015 \begin_inset Quotes cld
15019 \begin_inset Quotes crd
15022 peut être modifiée par l'utilisateur dans les réglages de paragraphe d'une
15023 entrée bibliographique.
15026 \begin_layout Standard
15027 En collectant ces derniers éléments, l'exportation \SpecialChar LaTeX
15031 \begin_layout LyX-Code
15036 LatexName[LatexParam]{\SpecialChar ldots
15040 \begin_layout Standard
15044 \begin_layout LyX-Code
15049 begin{LatexName}[LatexParam] \SpecialChar ldots
15055 \begin_layout Standard
15056 en fonction du type \SpecialChar LaTeX
15061 \begin_layout Description
15064 \begin_inset Flex Code
15067 \begin_layout Plain Layout
15078 \begin_inset Flex Code
15081 \begin_layout Plain Layout
15087 ] définit une chaîne de caractères insérée au début du contenu du style.
15088 Une rupture de ligne dans la sortie peut être indiquée par
15089 \begin_inset Flex Code
15092 \begin_layout Plain Layout
15101 \begin_layout Description
15104 \begin_inset Flex Code
15107 \begin_layout Plain Layout
15118 \begin_inset Flex Code
15121 \begin_layout Plain Layout
15127 fixe la marge gauche: si vous mettez des styles dans un environnement,
15131 \begin_inset Flex Code
15134 \begin_layout Plain Layout
15144 ne seront pas ajoutées directement, mais avec un facteur
15145 \begin_inset Formula $\frac{4}{\mathrm{profondeur}+4}$
15149 Notez que ce paramètre sert aussi quand
15152 \begin_inset Flex Code
15155 \begin_layout Plain Layout
15166 \begin_inset Flex Code
15169 \begin_layout Plain Layout
15178 \begin_inset Flex Code
15181 \begin_layout Plain Layout
15190 Il est alors ajouté à la marge manuelle ou dynamique.
15191 \begin_inset Newline newline
15195 \begin_inset Quotes cld
15199 \begin_inset Flex Code
15202 \begin_layout Plain Layout
15209 \begin_inset Quotes crd
15212 signifie que le paragraphe est indenté avec la largeur de
15213 \begin_inset Quotes cld
15217 \begin_inset Flex Code
15220 \begin_layout Plain Layout
15227 \begin_inset Quotes crd
15230 dans la police normale.
15231 Il est possible de créer une largeur négative avec
15232 \begin_inset Quotes cld
15236 \begin_inset Flex Code
15239 \begin_layout Plain Layout
15246 \begin_inset Quotes crd
15250 Cette solution a été choisie pour que l'apparence soit la même quelle que
15251 soit la police d'écran.
15254 \begin_layout Description
15257 \begin_inset Flex Code
15260 \begin_layout Plain Layout
15269 \begin_inset Flex Code
15272 \begin_layout Plain Layout
15278 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15284 \begin_inset Newline newline
15289 fixe le type de marge à gauche du format.
15293 \begin_layout Description
15294 \begin_inset Flex Code
15297 \begin_layout Plain Layout
15305 veut dire une marge fixe.
15308 \begin_layout Description
15309 \begin_inset Flex Code
15312 \begin_layout Plain Layout
15320 veut dire que la marge de gauche dépend de ce qu'il y a dans la fenêtre
15322 \begin_inset Flex Noun
15325 \begin_layout Plain Layout
15326 Édition\SpecialChar menuseparator
15328 \begin_inset space ~
15332 \begin_inset space ~
15341 Ceci sert à obtenir des listes bien mises en page sans tabulations.
15344 \begin_layout Description
15345 \begin_inset Flex Code
15348 \begin_layout Plain Layout
15356 veut dire que la marge dépend de la taille du marqueur.
15357 Ceci sert entre autres aux en-têtes numérotés.
15358 Il est évident que l'en-tête
15359 \begin_inset Quotes cld
15362 5.4.3.2.1 Très long en-tête
15363 \begin_inset Quotes crd
15366 doit avoir une marge de gauche plus grande (autant que
15367 \begin_inset Quotes cld
15371 \begin_inset Quotes crd
15375 \begin_inset Quotes cld
15378 3.2 Très long en-tête
15379 \begin_inset Quotes crd
15382 , même si les autres traitements de texte ne savent pas le faire.
15385 \begin_layout Description
15386 \begin_inset Flex Code
15389 \begin_layout Plain Layout
15397 est similaire, mais seulement la toute première ligne du paragraphe est
15398 dynamique, les autres étant statiques; ceci est utile par exemple pour
15402 \begin_layout Description
15403 \begin_inset Flex Code
15406 \begin_layout Plain Layout
15414 signifie que la marge est choisie pour que la ligne la plus longue du paragraph
15415 e touche la marge de droite.
15416 Ceci sert à typographier une adresse sur le bord droit de la page.
15420 \begin_layout Description
15423 \begin_inset Flex Code
15426 \begin_layout Plain Layout
15437 \begin_inset Flex Code
15440 \begin_layout Plain Layout
15449 \begin_inset space \thinspace{}
15453 \begin_inset Flex Code
15456 \begin_layout Plain Layout
15462 ] indique si les commandes fragiles doivent être protégées par
15463 \begin_inset Flex Code
15466 \begin_layout Plain Layout
15474 dans ce style (Note: ceci n'indique pas si cette commande elle-même doit
15478 \begin_layout Description
15481 \begin_inset Flex Code
15484 \begin_layout Plain Layout
15495 \begin_inset Flex Code
15498 \begin_layout Plain Layout
15505 \begin_inset space \thinspace{}
15509 \begin_inset Flex Code
15512 \begin_layout Plain Layout
15520 ] indique si les nouvelles lignes sont traduites ou non en sauts de ligne
15523 \begin_inset Flex Code
15526 \begin_layout Plain Layout
15537 La traduction peut être désactivée pour permettre d'éditer plus confortablement
15538 du \SpecialChar LaTeX
15539 depuis \SpecialChar LyX
15543 \begin_layout Description
15546 \begin_inset Flex Code
15549 \begin_layout Plain Layout
15560 \begin_inset Flex Code
15563 \begin_layout Plain Layout
15572 \begin_inset space \thinspace{}
15576 \begin_inset Flex Code
15579 \begin_layout Plain Layout
15585 ] indique si \SpecialChar LyX
15586 indente ou non la première ligne du paragraphe suivant.
15588 \begin_inset Flex Code
15591 \begin_layout Plain Layout
15597 veut dire qu'il ne peut pas,
15598 \begin_inset Flex Code
15601 \begin_layout Plain Layout
15607 veut dire qu'il peut s'il le veut.
15610 \begin_layout Description
15613 \begin_inset Flex Code
15616 \begin_layout Plain Layout
15627 \begin_inset Flex Code
15630 \begin_layout Plain Layout
15636 ] dénomme un style qui a remplacé ce style en cours.
15637 Ceci est utilisé pour renommer un style en conservant la rétrocompatibilité.
15640 \begin_layout Description
15643 \begin_inset Flex Code
15646 \begin_layout Plain Layout
15655 \begin_inset Flex Code
15658 \begin_layout Plain Layout
15667 \begin_inset space \thinspace{}
15671 \begin_inset Flex Code
15674 \begin_layout Plain Layout
15684 détermine si les paragraphes consécutifs du même type sont traités ensemble.
15685 Ceci a pour effet de déclencher une seule fois pour le groupe l'impression
15687 \begin_inset Flex Code
15690 \begin_layout Plain Layout
15697 Implicitement, ceci est vrai pour les environnements
15698 \begin_inset Flex Code
15701 \begin_layout Plain Layout
15708 \begin_inset Flex Code
15711 \begin_layout Plain Layout
15718 \begin_inset Flex Code
15721 \begin_layout Plain Layout
15727 et faux pour tous les autres types.
15730 \begin_layout Description
15733 \begin_inset Flex Code
15736 \begin_layout Plain Layout
15747 \begin_inset Flex Code
15750 \begin_layout Plain Layout
15759 \begin_inset space \thinspace{}
15763 \begin_inset Flex Code
15766 \begin_layout Plain Layout
15772 ] indique que les paragraphes ne seront pas séparés par une ligne vide dans
15773 le résultat \SpecialChar LaTeX
15774 , mais par un retour à la ligne; combiné avec
15775 \begin_inset Flex Code
15778 \begin_layout Plain Layout
15784 , ceci permet d'émuler une éditeur plein texte (comme l'insert code \SpecialChar TeX
15788 \begin_layout Description
15791 \begin_inset Flex Code
15794 \begin_layout Plain Layout
15805 \begin_inset Flex Code
15808 \begin_layout Plain Layout
15814 fixe l'indentation de la toute première ligne d'un paragraphe.
15816 \begin_inset Flex Code
15819 \begin_layout Plain Layout
15825 est fixé pour un format donné, à l'exception du format
15826 \begin_inset Flex Code
15829 \begin_layout Plain Layout
15835 , car l'indentation d'un paragraphe dans l'environnement
15836 \begin_inset Flex Code
15839 \begin_layout Plain Layout
15845 peut être empêchée par
15846 \begin_inset Flex Code
15849 \begin_layout Plain Layout
15856 De plus, les paragraphes de style
15857 \begin_inset Flex Code
15860 \begin_layout Plain Layout
15866 emboîtés dans d'autres environnements utilisent le
15867 \begin_inset Flex Code
15870 \begin_layout Plain Layout
15876 de l'environne\SpecialChar softhyphen
15878 Par exemple, les paragraphes
15879 \begin_inset Flex Code
15882 \begin_layout Plain Layout
15888 dans une énumération ne sont pas indentés.
15891 \begin_layout Description
15894 \begin_inset Flex Code
15897 \begin_layout Plain Layout
15911 ] fixe l'espacement vertical entre deux paragraphes dans le style.
15914 \begin_layout Description
15917 \begin_inset Flex Code
15920 \begin_layout Plain Layout
15934 ] fixe la valeur d'interligne entre paragraphes.
15936 donne le choix entre
15937 \begin_inset Flex Code
15940 \begin_layout Plain Layout
15947 \begin_inset Flex Code
15950 \begin_layout Plain Layout
15956 pour séparer les paragraphes.
15958 \begin_inset Flex Code
15961 \begin_layout Plain Layout
15967 , cette valeur n'est pas prise en compte.
15969 \begin_inset Flex Code
15972 \begin_layout Plain Layout
15979 \begin_inset Flex Code
15982 \begin_layout Plain Layout
15988 n'est pas prise en compte et tous les paragraphes sont séparés par ce paramètre
15990 \begin_inset Flex Code
15993 \begin_layout Plain Layout
15999 , en plus de l'interligne normal.
16000 L'espacement vertical est calculé par
16001 \begin_inset Flex Code
16004 \begin_layout Plain Layout
16005 valeur*DefaultHeight()
16014 est la valeur choisie pour
16015 \begin_inset Flex Code
16018 \begin_layout Plain Layout
16025 \begin_inset Flex Code
16028 \begin_layout Plain Layout
16034 est la hauteur d'une ligne dans la police normale.
16035 De cette façon, l'aspect reste le même quelle que soit la police à l'écran.
16038 \begin_layout Description
16041 \begin_inset Flex Code
16044 \begin_layout Plain Layout
16055 \begin_inset Flex Code
16058 \begin_layout Plain Layout
16067 \begin_inset space \thinspace{}
16071 \begin_inset Flex Code
16074 \begin_layout Plain Layout
16080 ] indique si le contenu du paragraphe doit être passé sous forme brute,
16081 c'est-à-dire sans les traductions spéciales dont \SpecialChar LaTeX
16086 \begin_layout Description
16089 \begin_inset Flex Code
16092 \begin_layout Plain Layout
16103 \begin_inset Flex Code
16106 \begin_layout Plain Layout
16117 Defines individual characters that should be output in raw form, meaning
16118 without special translations that \SpecialChar LaTeX
16122 \begin_layout Description
16125 \begin_inset Flex Code
16128 \begin_layout Plain Layout
16138 fixe le contenu à inclure dans le préambule \SpecialChar LaTeX
16139 quand le style est utilisé.
16140 Utile pour définir des macros, charger des paquetages, etc.
16141 requis pour ce style particulier.
16142 Doit être fermé par
16143 \begin_inset Quotes cld
16147 \begin_inset Flex Code
16150 \begin_layout Plain Layout
16159 \begin_inset Quotes crd
16165 \begin_layout Description
16168 \begin_inset Flex Code
16171 \begin_layout Plain Layout
16182 \begin_inset Flex Code
16185 \begin_layout Plain Layout
16191 ] indique le préfixe à utiliser pour créer des étiquettes référant les paragraph
16193 Ceci permet l'utilisation de références mises en forme.
16196 \begin_layout Description
16199 \begin_inset Flex Code
16202 \begin_layout Plain Layout
16213 \begin_inset Flex Code
16216 \begin_layout Plain Layout
16222 ] indique que le style requiert la fonctionnalité chaîne (voir
16223 \begin_inset CommandInset ref
16225 reference "chap:List-of-functions"
16229 pour la liste des fonctionnalités).
16230 Si vous demandez un paquetage doté d'options spécifiques, vous pouvez en
16232 \begin_inset Flex Code
16235 \begin_layout Plain Layout
16241 en tant que paramètre général pour la classe de texte (voir
16242 \begin_inset CommandInset ref
16244 reference "subsec:Paramètres-généraux-d'une"
16251 \begin_layout Description
16254 \begin_inset Flex Code
16257 \begin_layout Plain Layout
16268 \begin_inset Flex Code
16271 \begin_layout Plain Layout
16280 \begin_inset Flex Code
16283 \begin_layout Plain Layout
16289 ] réinitialise les arguments \SpecialChar LaTeX
16290 de ce style ( tels que définis par la directive
16293 \begin_inset Flex Code
16296 \begin_layout Plain Layout
16307 Ceci est utile si vous avez dupliqué un style en utilisant
16310 \begin_inset Flex Code
16313 \begin_layout Plain Layout
16323 , et que vous ne voulez pas hériter de ses arguments (obligatoires et optionnels
16327 \begin_layout Description
16330 \begin_inset Flex Code
16333 \begin_layout Plain Layout
16342 \begin_inset Flex Code
16345 \begin_layout Plain Layout
16355 \begin_inset Flex Code
16358 \begin_layout Plain Layout
16366 ] Resumes a counter that is usually reset at each new sequence of layouts.
16367 This is currently only useful when
16368 \begin_inset Flex Code
16371 \begin_layout Plain Layout
16380 \begin_inset Flex Code
16383 \begin_layout Plain Layout
16394 \begin_layout Description
16397 \begin_inset Flex Code
16400 \begin_layout Plain Layout
16411 \begin_inset Flex Code
16414 \begin_layout Plain Layout
16420 ] définit une chaîne de caractères insérée à la fin du contenu du style.
16421 Une rupture de ligne dans la sortie peut être indiquée par
16422 \begin_inset Flex Code
16425 \begin_layout Plain Layout
16434 \begin_layout Description
16437 \begin_inset Flex Code
16440 \begin_layout Plain Layout
16451 \begin_inset Flex Code
16454 \begin_layout Plain Layout
16467 \begin_layout Description
16470 \begin_inset Flex Code
16473 \begin_layout Plain Layout
16486 \begin_inset Flex Code
16489 \begin_layout Plain Layout
16499 \begin_inset Flex Code
16502 \begin_layout Plain Layout
16511 \begin_inset Flex Code
16514 \begin_layout Plain Layout
16523 \begin_inset Flex Code
16526 \begin_layout Plain Layout
16532 \begin_inset space ~
16542 ] définit l'interligne par défaut dans ce style.
16544 \begin_inset Flex Code
16547 \begin_layout Plain Layout
16554 \begin_inset Flex Code
16557 \begin_layout Plain Layout
16564 \begin_inset Flex Code
16567 \begin_layout Plain Layout
16573 correspondent respectivement à un facteur multiplicatif de 1, 1,25 et 1,667.
16574 Si vous mettez le paramètre
16575 \begin_inset Flex Code
16578 \begin_layout Plain Layout
16584 , vous devez aussi mettre une valeur numérique qui servira de facteur multiplica
16586 Notez que, contrairement aux autres paramètres,
16587 \begin_inset Flex Code
16590 \begin_layout Plain Layout
16596 implique de générer du code \SpecialChar LaTeX
16597 spécifique, qui utilise le paquetage \SpecialChar LaTeX
16599 \begin_inset Flex Code
16602 \begin_layout Plain Layout
16611 \begin_layout Description
16614 \begin_inset Flex Code
16617 \begin_layout Plain Layout
16628 \begin_inset Flex Code
16631 \begin_layout Plain Layout
16638 \begin_inset space \thinspace{}
16642 \begin_inset Flex Code
16645 \begin_layout Plain Layout
16653 ] active la correction orthographique du style.
16654 Implicitement vrai.
16657 \begin_layout Description
16660 \begin_inset Flex Code
16663 \begin_layout Plain Layout
16672 \begin_inset Flex Code
16675 \begin_layout Plain Layout
16685 \begin_inset Flex Code
16688 \begin_layout Plain Layout
16696 ] Steps the master counter of a given counter at the beginning of a new
16697 sequence of layouts.
16698 This is currently only useful when
16699 \begin_inset Flex Code
16702 \begin_layout Plain Layout
16711 \begin_inset Flex Code
16714 \begin_layout Plain Layout
16725 \begin_layout Description
16728 \begin_inset Flex Code
16731 \begin_layout Plain Layout
16741 fixe la police utilisée pour le corps du texte.
16743 \begin_inset CommandInset ref
16745 reference "subsec:polices"
16752 \begin_layout Description
16755 \begin_inset Flex Code
16758 \begin_layout Plain Layout
16769 \begin_inset Flex Code
16772 \begin_layout Plain Layout
16778 ] fixe le niveau du style dans le table des matières.
16779 Ceci est utilisé pour la numérotation automatique des en-têtes.
16782 \begin_layout Description
16785 \begin_inset Flex Code
16788 \begin_layout Plain Layout
16799 \begin_inset Flex Code
16802 \begin_layout Plain Layout
16814 \begin_inset Flex Code
16817 \begin_layout Plain Layout
16826 \begin_inset Flex Code
16829 \begin_layout Plain Layout
16839 détermine si l'indentation de la première ligne de ce paragraphe peut être
16840 réglée via le menu des réglages de paragraphe.
16844 \begin_inset Flex Code
16847 \begin_layout Plain Layout
16857 est choisi, l'indentation peut être réglée si les réglages de document
16858 utilisent un style de paragraphe avec
16859 \begin_inset Quotes cld
16863 \begin_inset Quotes crd
16867 \begin_inset Flex Code
16870 \begin_layout Plain Layout
16876 , l'indentation est toujours réglable quels que soient les réglages du document;
16878 \begin_inset Flex Code
16881 \begin_layout Plain Layout
16887 , l'indentation n'est jamais réglable.
16890 \begin_layout Description
16893 \begin_inset Flex Code
16896 \begin_layout Plain Layout
16910 ] fixe L'espacement vertical qui sépare le premier paragraphe dans une série
16911 du même style, du paragraphe qui le précède.
16912 Si le paragraphe précédent est dans un autre style, les séparations ne
16913 s'ajoutent pas, mais \SpecialChar LyX
16914 prend le maximum des deux.
16917 \begin_layout Subsection
16918 \begin_inset CommandInset label
16924 Internationalisation des styles de paragraphes
16927 \begin_layout Standard
16929 effectue depuis longtemps la traduction des informations de format, mais,
16930 jusqu'à la version 2.0, ceci ne s'appliquait qu'à l'interface utilisateur
16931 et non pas par exemple au résultat PDF.
16932 Ainsi les auteurs francophones devaient avoir recours à des astuces pénibles
16933 s'ils voulaient obtenir
16934 \begin_inset Quotes cld
16938 \begin_inset Quotes crd
16942 \begin_inset Quotes cld
16946 \begin_inset Quotes crd
16954 , ce n'est plus le cas.
16957 \begin_layout Standard
16959 \begin_inset Flex Code
16962 \begin_layout Plain Layout
16968 définit un texte qui doit apparaître dans le le document typographique,
16970 \begin_inset Flex Code
16973 \begin_layout Plain Layout
16980 \begin_inset Flex Code
16983 \begin_layout Plain Layout
16989 pour traiter correctement les documents non anglophones, et même multilingues.
16990 L'extrait suivant (du fichier
16991 \begin_inset Flex Code
16994 \begin_layout Plain Layout
17000 ) illustre le fonctionnement:
17003 \begin_layout LyX-Code
17010 \begin_layout LyX-Code
17015 theoremstyle{remark}
17018 \begin_layout LyX-Code
17023 newtheorem{claim}[thm]{
17030 \begin_layout LyX-Code
17036 \begin_layout LyX-Code
17042 \begin_layout LyX-Code
17049 claimname}{_(Claim)}
17052 \begin_layout LyX-Code
17058 \begin_layout LyX-Code
17064 \begin_layout LyX-Code
17075 claimname}{_(Claim)}}
17078 \begin_layout LyX-Code
17085 \begin_layout Standard
17086 En principe, toute commande \SpecialChar LaTeX
17087 autorisée peut apparaître dans les directives
17089 \begin_inset Flex Code
17092 \begin_layout Plain Layout
17099 \begin_inset Flex Code
17102 \begin_layout Plain Layout
17108 , mais dans la pratique elles se présenteront typiquement comme ce qui est
17110 La clé de la traduction correcte du texte typographié est la définition
17111 de le commande \SpecialChar LaTeX
17113 \begin_inset Flex Code
17116 \begin_layout Plain Layout
17124 et son utilisation avec
17125 \begin_inset Flex Code
17128 \begin_layout Plain Layout
17140 \begin_layout Standard
17142 \begin_inset Flex Code
17145 \begin_layout Plain Layout
17151 fournit ce qu'il faut pour l'internationalisation fondée sur le langage
17152 global du document.
17153 Le contenu de la directive sera inclus dans le préambule, comme avec la
17155 \begin_inset Flex Code
17158 \begin_layout Plain Layout
17165 Ce qui la rend singulière est l'utilisation de la
17166 \begin_inset Quotes cld
17170 \begin_inset Quotes crd
17174 \begin_inset Flex Code
17177 \begin_layout Plain Layout
17183 , qui sera remplacée, lorsque \SpecialChar LyX
17184 produira le résultat \SpecialChar LaTeX
17185 , par la traduction
17186 de son argument dans la langue du document
17190 \begin_layout Plain Layout
17191 Pour ceux qui s'intéressent au fonctionnement sous-jacent, la fonction
17192 \begin_inset Quotes cld
17196 \begin_inset Flex Code
17199 \begin_layout Plain Layout
17206 \begin_inset Quotes crd
17210 \begin_inset Flex Code
17213 \begin_layout Plain Layout
17219 , qui constitue le cœur du mécanisme de traduction de l'interface \SpecialChar LyX
17221 est étendue ici à la traduction à la volée de code \SpecialChar LaTeX
17230 \begin_layout Standard
17232 \begin_inset Flex Code
17235 \begin_layout Plain Layout
17241 est plus compliquée, car elle fournit une fonctionnalité adaptée aux documents
17242 multilingues et propose par conséquent une interface pour le paquetage
17244 \begin_inset Flex Code
17247 \begin_layout Plain Layout
17253 Son contenu sera ajouté au préambule une fois pour chaque langue utilisée
17255 Dans ce cas, l'argument de
17256 \begin_inset Flex Code
17259 \begin_layout Plain Layout
17265 sera remplacé par sa traduction dans le langage en question: l'expression
17267 \begin_inset Flex Code
17270 \begin_layout Plain Layout
17276 est remplacée par le nom de la langue (telle qu'il est connu de
17277 \begin_inset Flex Code
17280 \begin_layout Plain Layout
17290 \begin_layout Standard
17291 Un document en allemand qui inclut aussi un paragraphe en français aura
17292 donc ceci dans le préambule:
17295 \begin_layout LyX-Code
17306 claimname}{Affirmation}}
17307 \begin_inset Newline newline
17318 claimname}{Behauptung}}
17319 \begin_inset Newline newline
17326 claimname}{Behauptung}
17329 \begin_layout Standard
17332 \begin_inset Flex Code
17335 \begin_layout Plain Layout
17341 vont alors conspirer pour créer le texte correct dans le résultat imprimable.
17344 \begin_layout Standard
17345 Un point important à noter est que les traductions sont celles qui sont
17346 fournies par \SpecialChar LyX
17347 lui-même, via le fichier
17350 \begin_inset Flex Code
17353 \begin_layout Plain Layout
17365 \begin_inset Flex Code
17368 \begin_layout Plain Layout
17375 \begin_inset Flex Code
17378 \begin_layout Plain Layout
17384 ne sont effectifs que dans les fichiers de format fournis avec \SpecialChar LyX
17386 les fichiers de format créés par l'utilisateur ne seront pas explorés par
17387 les fonctions d'internationalisation, sauf si le fichier
17390 \begin_inset Flex Code
17393 \begin_layout Plain Layout
17403 est modifié en conséquence.
17404 Ceci dit, tout fichier de format créé dans le but d'être distribué avec
17406 doit inclure ces directives s'il y a lieu.
17407 Notez bien que les traductions des styles de paragraphe ne changeront jamais
17408 avec les publications de maintenance des versions de \SpecialChar LyX
17410 de la version 2.1.x à la version 2.1.y).
17411 Il est cependant très probable qu'à l'occasion d'une publication majeure
17413 de 2.0.x à 2.1.0), de nouvelles traductions ou corrections soient introduites
17417 \begin_layout Subsection
17419 \begin_inset CommandInset label
17421 name "subsec:Flottants"
17428 \begin_layout Standard
17429 Il faut définir les flottants (
17430 \begin_inset Flex Code
17433 \begin_layout Plain Layout
17440 \begin_inset Flex Code
17443 \begin_layout Plain Layout
17450 ) dans la classe elle-même.
17451 Si vous cherchez à savoir comment mettre à jour une classe déjà existante,
17452 il suffit probablement que vous ajoutiez
17455 \begin_layout LyX-Code
17456 Input stdfloats.inc
17459 \begin_layout Standard
17460 à un endroit raisonnable dans la classe
17464 \begin_layout Plain Layout
17465 N'oubliez pas de jeter aussi un
17469 \begin_layout Plain Layout
17478 il sur les compteurs dans la section suivante.
17484 Si vous voulez implémenter une classe de texte qui propose un nouveau type
17485 de flottant (comme la classe AGU fournie avec \SpecialChar LyX
17486 ), les explications ci-dessous
17487 vont sans doute vous être utiles :
17490 \begin_layout Description
17493 \begin_inset Flex Code
17496 \begin_layout Plain Layout
17507 \begin_inset Flex Code
17510 \begin_layout Plain Layout
17516 =!htbpH] définit les options de placement pour ce type de flottant.
17517 La valeur est une chaîne de paramètres de placement, les caractères autorisés
17527 \begin_inset Quotes cld
17531 \begin_inset Quotes crd
17543 \begin_inset Quotes cld
17547 \begin_inset Quotes crd
17559 \begin_inset Quotes cld
17563 \begin_inset Quotes crd
17571 \begin_inset Quotes cld
17575 \begin_inset Quotes crd
17583 \begin_inset Quotes cld
17587 \begin_inset Quotes crd
17595 \begin_inset Quotes cld
17598 ignorer les règles \SpecialChar LaTeX
17600 L'ordre des caractères est indifférent.
17601 Si aucune option n'est autorisée, utiliser la chaîne de caractères
17608 \begin_layout Description
17611 \begin_inset Flex Code
17614 \begin_layout Plain Layout
17625 \begin_inset Flex Code
17628 \begin_layout Plain Layout
17635 \begin_inset space \thinspace{}
17641 \begin_inset Flex Code
17644 \begin_layout Plain Layout
17652 ] précise si le flottant peut subir une rotation grâce au paquetage \SpecialChar LaTeX
17659 \begin_inset Flex Code
17662 \begin_layout Plain Layout
17668 si le flottant ne peut pas bénéficier de cette fonctionnalité.
17671 \begin_layout Description
17674 \begin_inset Flex Code
17677 \begin_layout Plain Layout
17688 \begin_inset Flex Code
17691 \begin_layout Plain Layout
17698 \begin_inset space \thinspace{}
17704 \begin_inset Flex Code
17707 \begin_layout Plain Layout
17715 ] précise si le flottant possède une variante étoilée qui s'étend sur les
17716 colonnes dans un paragraphe à deux colonnes.
17718 \begin_inset Flex Code
17721 \begin_layout Plain Layout
17727 si le flottant ne peut pas bénéficier de cette fonctionnalité.
17730 \begin_layout Description
17733 \begin_inset Flex Code
17736 \begin_layout Plain Layout
17750 \begin_inset Flex Code
17753 \begin_layout Plain Layout
17759 ] définit le suffixe d'un fichier auxiliaire contenant la liste des flottants
17762 écrit les légendes dans ce fichier.
17765 \begin_layout Description
17768 \begin_inset Flex Code
17771 \begin_layout Plain Layout
17782 \begin_inset Flex Code
17785 \begin_layout Plain Layout
17791 ] définit la chaîne de caractères qui se trouvera dans les menus et également
17793 Ceci est traduit dans le langage courant si
17794 \begin_inset Flex Code
17797 \begin_layout Plain Layout
17806 \begin_layout Description
17807 \begin_inset Flex Code
17810 \begin_layout Plain Layout
17816 sont utilisées avec l'exportation XHTML.
17818 \begin_inset CommandInset ref
17820 reference "sec:Tags-for-XHTML"
17827 \begin_layout Description
17830 \begin_inset Flex Code
17833 \begin_layout Plain Layout
17844 \begin_inset Flex Code
17847 \begin_layout Plain Layout
17856 \begin_inset space \thinspace{}
17860 \begin_inset Flex Code
17863 \begin_layout Plain Layout
17869 ] indique si le flottant est déjà défini dans la classe de document ou s'il
17870 faut charger le paquetage \SpecialChar LaTeX
17872 \begin_inset Flex Code
17875 \begin_layout Plain Layout
17881 pour le définir à la volée.
17882 La valeur implicite est
17883 \begin_inset Flex Code
17886 \begin_layout Plain Layout
17892 qui signifie: utiliser
17893 \begin_inset Flex Code
17896 \begin_layout Plain Layout
17903 Elle doit être positionnée sur
17904 \begin_inset Flex Code
17907 \begin_layout Plain Layout
17913 si le flottant est déjà défini par la classe de document.
17916 \begin_layout Description
17919 \begin_inset Flex Code
17922 \begin_layout Plain Layout
17933 \begin_inset Flex Code
17936 \begin_layout Plain Layout
17942 ] détermine la commande utilisée pour engendrer une liste de flottants du
17944 \begin_inset Quotes cld
17950 \begin_inset Quotes crd
17953 initial doit être omis.
17959 \begin_inset Flex Code
17962 \begin_layout Plain Layout
17968 est faux, puisqu'il n'y a alors pas de procédure pour activer cette commande.
17969 La directive est ignorée si
17970 \begin_inset Flex Code
17973 \begin_layout Plain Layout
17979 est vrai, puisqu'il y a alors une procédure.
17982 \begin_layout Description
17985 \begin_inset Flex Code
17988 \begin_layout Plain Layout
17999 \begin_inset Flex Code
18002 \begin_layout Plain Layout
18008 ] fixe le titre utilisé pour une liste des flottants du type considéré (figures,
18010 Il est utilisé pour l'étiquette à l'écran dans \SpecialChar LyX
18011 ; il est passé à \SpecialChar LaTeX
18013 utilisé comme titre, et il est également utilisé comme titre dans l'exportation
18015 Il sera traduit dans le langage du document.
18018 \begin_layout Description
18021 \begin_inset Flex Code
18024 \begin_layout Plain Layout
18035 \begin_inset Flex Code
18038 \begin_layout Plain Layout
18044 ] (paramètre facultatif) détermine si les flottants de cette classe seront
18045 numérotés en suivant un type de section du document.
18049 \begin_inset Flex Code
18052 \begin_layout Plain Layout
18063 \begin_inset Quotes cld
18067 \begin_inset Flex Code
18070 \begin_layout Plain Layout
18079 \begin_inset Quotes crd
18082 , les flottants seront numérotés chapitre par chapitre.
18085 \begin_layout Description
18088 \begin_inset Flex Code
18091 \begin_layout Plain Layout
18102 \begin_inset Flex Code
18105 \begin_layout Plain Layout
18111 ] définit le placement implicite pour cette catégorie de flottants.
18112 C'est comme en \SpecialChar LaTeX
18114 \begin_inset Flex Code
18117 \begin_layout Plain Layout
18124 \begin_inset Flex Code
18127 \begin_layout Plain Layout
18134 \begin_inset Flex Code
18137 \begin_layout Plain Layout
18144 \begin_inset Flex Code
18147 \begin_layout Plain Layout
18153 pour haut, bas, page et ici respectivement
18157 \begin_layout Plain Layout
18158 Notez que l'ordre dans lequel vous mettez ces lettres est sans importance,
18159 comme en \SpecialChar LaTeX
18166 En plus vous avez un nouveau type,
18167 \begin_inset Flex Code
18170 \begin_layout Plain Layout
18176 , qui ne correspond pas vraiment à un flottant, car il signifie de le positionne
18178 \begin_inset Quotes cld
18182 \begin_inset Quotes crd
18185 et nulle part ailleurs.
18186 Notez cependant que le type
18187 \begin_inset Flex Code
18190 \begin_layout Plain Layout
18196 est spécial et, à cause de détails d'implantation, ne peut pas être utilisé
18197 avec des flottants non définis dans la classe de document.
18198 Si vous n'avez pas compris tout ce baratin, mettez simplement
18201 \begin_inset Quotes cld
18207 \begin_inset Flex Code
18210 \begin_layout Plain Layout
18219 \begin_inset Quotes crd
18227 \begin_layout Description
18230 \begin_inset Flex Code
18233 \begin_layout Plain Layout
18244 \begin_inset Flex Code
18247 \begin_layout Plain Layout
18253 ] détermine le préfixe à utiliser lors de la création d'étiquettes référant
18254 les flottants du type considéré.
18255 Ceci permet l'utilisation de références mises en forme.
18256 Notez que vous pouvez supprimer tout préfixe défini en copiant un style
18257 en utilisant la valeur spécifique
18258 \begin_inset Quotes cld
18262 \begin_inset Quotes crd
18265 , qui doit être en capitales.
18268 \begin_layout Description
18271 \begin_inset Flex Code
18274 \begin_layout Plain Layout
18285 \begin_inset Flex Code
18288 \begin_layout Plain Layout
18294 ] fixe le style utilisé quand on définit le flottant avec
18295 \begin_inset Flex Code
18298 \begin_layout Plain Layout
18309 \begin_layout Description
18312 \begin_inset Flex Code
18315 \begin_layout Plain Layout
18326 \begin_inset Flex Code
18329 \begin_layout Plain Layout
18336 \begin_inset Quotes cld
18340 \begin_inset Quotes crd
18343 de la nouvelle classe de flottants, comme
18344 \begin_inset Quotes cld
18348 \begin_inset Quotes crd
18352 \begin_inset Quotes cld
18356 \begin_inset Quotes crd
18360 Après l'instruction
18361 \begin_inset Flex Code
18364 \begin_layout Plain Layout
18372 appropriée, vous disposez de commandes comme
18373 \begin_inset Flex Code
18376 \begin_layout Plain Layout
18385 \begin_inset Flex Code
18388 \begin_layout Plain Layout
18397 Noter que définir un flottant de type
18398 \begin_inset Flex Code
18401 \begin_layout Plain Layout
18407 définit automatiquement les compteur correspondant, de nom
18408 \begin_inset Flex Code
18411 \begin_layout Plain Layout
18420 \begin_layout Description
18423 \begin_inset Flex Code
18426 \begin_layout Plain Layout
18437 \begin_inset Flex Code
18440 \begin_layout Plain Layout
18447 \begin_inset space \thinspace{}
18451 \begin_inset Flex Code
18454 \begin_layout Plain Layout
18462 ] indique si ce flottant est défini en utilisant le paquetage \SpecialChar LaTeX
18464 \begin_inset Flex Code
18467 \begin_layout Plain Layout
18473 , soit par la classe de document ou par un paquetage, soit à la volée par
18478 \begin_layout Standard
18479 Notez que la définition d'un flottant de type
18480 \begin_inset Flex Code
18483 \begin_layout Plain Layout
18491 implique la déclaration du compteur correspondant de nom
18492 \begin_inset Flex Code
18495 \begin_layout Plain Layout
18506 \begin_layout Subsection
18507 Inserts flexibles et InsetLayout
18508 \begin_inset CommandInset label
18510 name "subsec:Flex-insets-and"
18517 \begin_layout Standard
18518 Les inserts flexibles sont de trois sortes:
18521 \begin_layout Itemize
18522 styles de caractères (
18523 \begin_inset Flex Code
18526 \begin_layout Plain Layout
18534 ): ceux-ci définissent un balisage sémantique correspondant à des commandes
18537 \begin_inset Flex Code
18540 \begin_layout Plain Layout
18551 \begin_inset Flex Code
18554 \begin_layout Plain Layout
18567 \begin_layout Itemize
18568 définis par l'utilisateur (
18569 \begin_inset Flex Code
18572 \begin_layout Plain Layout
18580 ): ceux-ci permettent de définir des inserts repliables personnalisés, similaire
18581 s au code \SpecialChar TeX
18582 , aux notes de bas de page, etc.
18583 Un exemple évident est l'insert de note en fin de document, défini dans
18585 \begin_inset Flex Code
18588 \begin_layout Plain Layout
18599 \begin_layout Itemize
18603 \begin_inset Flex Code
18606 \begin_layout Plain Layout
18616 : à utiliser avec les classes DocBook.
18619 \begin_layout Standard
18620 Les inserts flexibles sont définis en utilisant la directive
18621 \begin_inset Flex Code
18624 \begin_layout Plain Layout
18632 , qui va être expliquée dans la suite.
18635 \begin_layout Standard
18637 \begin_inset Flex Code
18640 \begin_layout Plain Layout
18648 a une autre fonction: elle permet de personnaliser le style de différents
18651 \begin_inset Flex Code
18654 \begin_layout Plain Layout
18662 permet de personnaliser les paramètres de style pour les notes de bas de
18663 page, les notes en marge, les inserts de note, les inserts de code \SpecialChar TeX
18665 les branches, les listings, les index, les boîtes, les tables, les algorithmes,
18670 , aussi bien que de définir des inserts flexibles.
18673 \begin_layout Standard
18675 \begin_inset Flex Code
18678 \begin_layout Plain Layout
18686 doit commencer par une lignes de la forme:
18689 \begin_layout LyX-Code
18695 \begin_layout Standard
18697 \begin_inset Flex Code
18700 \begin_layout Plain Layout
18706 indique l'insert dont le style doit être défini, et il y a quatre cas.
18709 \begin_layout Enumerate
18710 Le style d'un insert préexistant doit être modifié.
18711 Dans ce cas, peuvent être
18712 \begin_inset Flex Code
18715 \begin_layout Plain Layout
18721 un quelconque des éléments suivants:
18722 \begin_inset Flex Code
18725 \begin_layout Plain Layout
18734 \begin_inset Flex Code
18737 \begin_layout Plain Layout
18746 \begin_inset Flex Code
18749 \begin_layout Plain Layout
18758 \begin_inset Flex Code
18761 \begin_layout Plain Layout
18772 \begin_inset Flex Code
18775 \begin_layout Plain Layout
18786 \begin_inset Flex Code
18789 \begin_layout Plain Layout
18798 \begin_inset Flex Code
18801 \begin_layout Plain Layout
18810 \begin_inset Flex Code
18813 \begin_layout Plain Layout
18822 \begin_inset Flex Code
18825 \begin_layout Plain Layout
18834 \begin_inset Flex Code
18837 \begin_layout Plain Layout
18846 \begin_inset Flex Code
18849 \begin_layout Plain Layout
18858 \begin_inset Flex Code
18861 \begin_layout Plain Layout
18870 \begin_inset Flex Code
18873 \begin_layout Plain Layout
18882 \begin_inset Flex Code
18885 \begin_layout Plain Layout
18894 \begin_inset Flex Code
18897 \begin_layout Plain Layout
18906 \begin_inset Flex Code
18909 \begin_layout Plain Layout
18918 \begin_inset Flex Code
18921 \begin_layout Plain Layout
18930 \begin_inset Flex Code
18933 \begin_layout Plain Layout
18942 \begin_inset Flex Code
18945 \begin_layout Plain Layout
18954 \begin_inset Flex Code
18957 \begin_layout Plain Layout
18969 \begin_layout Enumerate
18970 Le style d'un insert flexible doit être défini.
18972 \begin_inset Flex Code
18975 \begin_layout Plain Layout
18981 doit être de la forme
18982 \begin_inset Flex Code
18985 \begin_layout Plain Layout
18992 \begin_inset Flex Code
18995 \begin_layout Plain Layout
19001 peut être n'importe quel identificateur valide qui n'est pas utilisé dans
19002 un insert existant.
19003 L'identificateur peut inclure des espaces, mais alors il faut enclore l'ensembl
19004 e entre apostrophes.
19005 Noter que la définition d'un insert flexible
19009 aussi inclure une entrée
19010 \begin_inset Flex Code
19013 \begin_layout Plain Layout
19022 , précisant quel est le type d'insert qu'il définit.
19025 \begin_layout Enumerate
19026 Le style d'une branche utilisateur doit être défini.
19028 \begin_inset Flex Code
19031 \begin_layout Plain Layout
19037 doit être de la forme
19038 \begin_inset Quotes cld
19042 \begin_inset Flex Code
19045 \begin_layout Plain Layout
19052 \begin_inset Quotes crd
19056 \begin_inset Flex Code
19059 \begin_layout Plain Layout
19065 peut être un identificateur de branche valide défini dans le document utilisate
19067 L'identificateur peur contenir des espaces, mais dans ce cas la chaîne
19068 toute entière doit être enclose entre apostrophes.
19069 Le principal intérêt de cette fonctionnalité est est de permettre l’inclusion
19071 de branches spécifiques suivant les besoins de l'utilisateur.
19074 \begin_layout Enumerate
19075 Le style d'une légende utilisateur (ou de classe) doit être défini.
19077 \begin_inset Flex Code
19080 \begin_layout Plain Layout
19086 doit être de la forme
19087 \begin_inset Quotes cld
19091 \begin_inset Flex Code
19094 \begin_layout Plain Layout
19101 \begin_inset Quotes crd
19105 \begin_inset Flex Code
19108 \begin_layout Plain Layout
19114 spécifie le nom de la légende tel qu'il apparaît dans le menu.
19115 Voir la légende standard
19118 \begin_inset Flex Code
19121 \begin_layout Plain Layout
19131 , les légendes spécifiques des classes KOMA-Script
19134 \begin_inset Flex Code
19137 \begin_layout Plain Layout
19146 \begin_inset Flex Code
19149 \begin_layout Plain Layout
19161 Légendes multilingues
19166 \begin_inset Flex Code
19169 \begin_layout Plain Layout
19179 pour des applications.
19182 \begin_layout Standard
19184 \begin_inset Flex Code
19187 \begin_layout Plain Layout
19195 peut inclure les entrées suivantes:
19198 \begin_layout Description
19201 \begin_inset Flex Code
19204 \begin_layout Plain Layout
19213 \begin_inset Flex Code
19216 \begin_layout Plain Layout
19224 =""] This inset will appear in the table of contents of the given type.
19225 An empty string disables.
19226 See also the OutlinerName and the IsTocCaption commands.
19227 This is only implemented for Flex insets.
19231 \begin_layout Description
19234 \begin_inset Flex Code
19237 \begin_layout Plain Layout
19246 \begin_inset Flex Code
19249 \begin_layout Plain Layout
19259 définit un numéro d'argument d'une commande ou d'un environnement associé
19261 La définition doit être close par
19264 \begin_inset Flex Code
19267 \begin_layout Plain Layout
19279 \begin_inset CommandInset ref
19281 reference "subsec:Styles-de-paragraphe"
19288 \begin_layout Description
19291 \begin_inset Flex Code
19294 \begin_layout Plain Layout
19304 définit un préambule pour les modifications de commandes de langue; voir
19306 \begin_inset CommandInset ref
19308 reference "subsec:I18n"
19315 \begin_layout Description
19318 \begin_inset Flex Code
19321 \begin_layout Plain Layout
19332 \begin_inset Flex Code
19335 \begin_layout Plain Layout
19341 ] définit la couleur d'arrière-plan de l'insert.
19347 \begin_inset CommandInset ref
19349 reference "chap:Names-of-colors"
19353 pour une liste des noms de couleur disponibles.
19357 \begin_layout Description
19360 \begin_inset Flex Code
19363 \begin_layout Plain Layout
19374 \begin_inset Flex Code
19377 \begin_layout Plain Layout
19386 \begin_inset space \thinspace{}
19390 \begin_inset Flex Code
19393 \begin_layout Plain Layout
19399 ] indique s'il faut utiliser le contenu de l'insert comme une étiquette,
19400 quand l'insert est fermé.
19402 \begin_inset Quotes cld
19406 \begin_inset Quotes crd
19412 \begin_layout Description
19415 \begin_inset Flex Code
19418 \begin_layout Plain Layout
19429 \begin_inset Flex Code
19432 \begin_layout Plain Layout
19438 ] fonctionne comme les styles de paragraphe, voir
19439 \begin_inset CommandInset ref
19441 reference "subsec:Styles-de-paragraphe"
19446 Notez que vous devez spécifier le type complet, e.
19447 \begin_inset space \thinspace{}
19451 \begin_inset space ~
19457 \begin_inset Flex Code
19460 \begin_layout Plain Layout
19475 \begin_layout Description
19478 \begin_inset Flex Code
19481 \begin_layout Plain Layout
19492 \begin_inset Flex Code
19495 \begin_layout Plain Layout
19504 \begin_inset space \thinspace{}
19508 \begin_inset Flex Code
19511 \begin_layout Plain Layout
19517 ] indique si l'utilisateur peut utiliser le dialogue
19518 \begin_inset Flex Noun
19521 \begin_layout Plain Layout
19522 Édition\SpecialChar menuseparator
19524 \begin_inset Newline linebreak
19527 Paramètres de paragraphe
19532 pour personnaliser le paragraphe.
19535 \begin_layout Description
19538 \begin_inset Flex Code
19541 \begin_layout Plain Layout
19552 \begin_inset Flex Code
19555 \begin_layout Plain Layout
19564 \begin_inset Flex Code
19567 \begin_layout Plain Layout
19576 \begin_inset Flex Code
19579 \begin_layout Plain Layout
19587 , décrivant l'appa\SpecialChar softhyphen
19588 rence du cadre et des boutons de l'insert.
19589 les notes de bas de page utilisent en général
19590 \begin_inset Flex Code
19593 \begin_layout Plain Layout
19601 , les inserts des code \SpecialChar TeX
19603 \begin_inset Flex Code
19606 \begin_layout Plain Layout
19614 , et les styles de caractères
19615 \begin_inset Flex Code
19618 \begin_layout Plain Layout
19629 \begin_layout Description
19632 \begin_inset Flex Code
19635 \begin_layout Plain Layout
19646 \begin_inset Flex Code
19649 \begin_layout Plain Layout
19656 \begin_inset space \thinspace{}
19660 \begin_inset Flex Code
19663 \begin_layout Plain Layout
19671 ] n'est utilisé que lorsque
19672 \begin_inset Flex Code
19675 \begin_layout Plain Layout
19682 \begin_inset Flex Code
19685 \begin_layout Plain Layout
19692 Indique si l'environnement se trouvera à part dans le résultat imprimable
19693 ou bien apparaîtra inclus dans le texte environnant.
19694 S'il est positionné à faux, on suppose que l'environnement \SpecialChar LaTeX
19696 espaces (avec un caractère retour ligne inclus) après les balises
19697 \begin_inset Flex Code
19700 \begin_layout Plain Layout
19713 \begin_inset Flex Code
19716 \begin_layout Plain Layout
19730 \begin_inset Quotes cld
19734 \begin_inset Quotes crd
19740 \begin_layout Description
19741 \begin_inset Flex Code
19744 \begin_layout Plain Layout
19752 est requis pour fermer la déclaration d'un
19755 \begin_inset Flex Code
19758 \begin_layout Plain Layout
19771 \begin_layout Description
19772 \begin_inset Flex Code
19775 \begin_layout Plain Layout
19783 définit la police utilisée pour le texte du corps de l'insert
19789 \begin_inset space ~
19793 \begin_inset CommandInset ref
19795 reference "subsec:polices"
19800 Noter qu'en définissant cette police on définit aussi automatiquement
19801 \begin_inset Flex Code
19804 \begin_layout Plain Layout
19812 avec la même valeur.
19813 Il faut donc définir celle-ci d'abord pour fixer
19814 \begin_inset Flex Code
19817 \begin_layout Plain Layout
19828 \begin_layout Description
19831 \begin_inset Flex Code
19834 \begin_layout Plain Layout
19837 FixedWidthPreambleEncoding
19845 \begin_inset Flex Code
19848 \begin_layout Plain Layout
19857 \begin_inset space \thinspace{}
19861 \begin_inset Flex Code
19864 \begin_layout Plain Layout
19870 ] force un encodage à taille fixe pour les éléments traduits du code des
19872 \begin_inset Flex Code
19875 \begin_layout Plain Layout
19882 \begin_inset Flex Code
19885 \begin_layout Plain Layout
19891 engendré par ce format.
19892 Ceci est nécessaire pour les paquetages \SpecialChar LaTeX
19897 qui ne fonctionnent pas avec des encodages à taille variable comme
19902 Ce réglage est ignoré lors de l'utilisation de moteurs admettant complètement
19903 Unicode comme Xe\SpecialChar TeX
19904 ou Lua\SpecialChar TeX
19908 \begin_layout Description
19911 \begin_inset Flex Code
19914 \begin_layout Plain Layout
19917 ForceLocalFontSwitch
19925 \begin_inset Flex Code
19928 \begin_layout Plain Layout
19937 \begin_inset space \thinspace{}
19941 \begin_inset Flex Code
19944 \begin_layout Plain Layout
19950 ] lors de l'utilisation de babel, force l'utilisation un commutateur de
19957 \begin_inset Flex Code
19960 \begin_layout Plain Layout
19972 , à la place d'un commutateur
19979 \begin_inset Flex Code
19982 \begin_layout Plain Layout
19997 \begin_layout Description
20000 \begin_inset Flex Code
20003 \begin_layout Plain Layout
20014 \begin_inset Flex Code
20017 \begin_layout Plain Layout
20026 \begin_inset space \thinspace{}
20030 \begin_inset Flex Code
20033 \begin_layout Plain Layout
20039 ] impose le langage
20040 \begin_inset Quotes cld
20044 \begin_inset Quotes crd
20047 , conduisant à un résultat de gauche à droite (Left-to-Right, latin), e.
20048 \begin_inset space \thinspace{}
20052 \begin_inset space \space{}
20055 en code \SpecialChar TeX
20060 \begin_layout Description
20063 \begin_inset Flex Code
20066 \begin_layout Plain Layout
20077 \begin_inset Flex Code
20080 \begin_layout Plain Layout
20089 \begin_inset space \thinspace{}
20093 \begin_inset Flex Code
20096 \begin_layout Plain Layout
20102 ] force un saut de ligne dans le résultat \SpecialChar LaTeX
20103 avant le début de l'insert et
20105 Ceci garantit que l’insert apparaît en lignes isolées, pour la lisibilité.
20108 \begin_layout Description
20111 \begin_inset Flex Code
20114 \begin_layout Plain Layout
20125 \begin_inset Flex Code
20128 \begin_layout Plain Layout
20137 \begin_inset space \thinspace{}
20141 \begin_inset Flex Code
20144 \begin_layout Plain Layout
20151 \begin_inset Flex Code
20154 \begin_layout Plain Layout
20162 doit être utilisé, ou bien si l'utilisateur peut modifier le style de paragraph
20163 e utilisé dans l'insert.
20165 \begin_inset Quotes cld
20169 \begin_inset Quotes crd
20175 \begin_layout Description
20178 \begin_inset Flex Code
20181 \begin_layout Plain Layout
20192 \begin_inset Flex Code
20195 \begin_layout Plain Layout
20204 \begin_inset space \thinspace{}
20208 \begin_inset Flex Code
20211 \begin_layout Plain Layout
20217 ] fonctionne comme les styles de paragraphe, voir
20218 \begin_inset space ~
20222 \begin_inset CommandInset ref
20224 reference "subsec:Styles-de-paragraphe"
20231 \begin_layout Description
20232 \begin_inset Flex Code
20235 \begin_layout Plain Layout
20241 sont utilisées avec l'exportation XHTML.
20243 \begin_inset CommandInset ref
20245 reference "sec:Tags-for-XHTML"
20252 \begin_layout Description
20255 \begin_inset Flex Code
20258 \begin_layout Plain Layout
20269 \begin_inset Flex Code
20272 \begin_layout Plain Layout
20281 \begin_inset space \thinspace{}
20285 \begin_inset Flex Code
20288 \begin_layout Plain Layout
20294 ] indique s'il faut inclure le contenu de cet insert dans les chaînes créées
20296 \begin_inset Quotes cld
20301 for all table of contents, regardless of the AddToToc setting
20304 \begin_inset Quotes crd
20308 L'utilisateur ne voudra pas, par exemple, que le contenu d'une note de
20309 bas de page dans un titre de section soit incluse dans la tables des matières
20310 affichée dans le plan, mais voudra habituellement voir affiché le contenu
20311 d'un style de caractère.
20313 \begin_inset Quotes cld
20317 \begin_inset Quotes crd
20323 \begin_layout Description
20326 \begin_inset Flex Code
20329 \begin_layout Plain Layout
20338 \begin_inset Flex Code
20341 \begin_layout Plain Layout
20351 \begin_inset space \thinspace{}
20355 \begin_inset Flex Code
20358 \begin_layout Plain Layout
20366 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20367 of its contents in its item in the table of contents.
20368 Otherwise, only the label appears.
20371 \begin_layout Description
20374 \begin_inset Flex Code
20377 \begin_layout Plain Layout
20388 \begin_inset Flex Code
20391 \begin_layout Plain Layout
20400 \begin_inset space \thinspace{}
20404 \begin_inset Flex Code
20407 \begin_layout Plain Layout
20413 ] fonctionne comme les styles de paragraphe, voir
20414 \begin_inset CommandInset ref
20416 reference "subsec:Styles-de-paragraphe"
20423 \begin_layout Description
20426 \begin_inset Flex Code
20429 \begin_layout Plain Layout
20439 définit la police utilisée pour le marqueur.
20441 \begin_inset CommandInset ref
20443 reference "subsec:polices"
20448 Noter que cette directive ne peut jamais apparaître avant
20449 \begin_inset Flex Code
20452 \begin_layout Plain Layout
20460 , sinon elle sera sans effet.
20463 \begin_layout Description
20466 \begin_inset Flex Code
20469 \begin_layout Plain Layout
20480 \begin_inset Flex Code
20483 \begin_layout Plain Layout
20489 ] définit la chaîne de caractères qui apparaîtra sur le bouton ou ailleurs
20490 en tant que marquer d'insert.
20491 Quelques types d'inserts (
20492 \begin_inset Flex Code
20495 \begin_layout Plain Layout
20498 code \SpecialChar TeX
20505 \begin_inset Flex Code
20508 \begin_layout Plain Layout
20514 ) modifient ce marqueur à la volée.
20517 \begin_layout Description
20520 \begin_inset Flex Code
20523 \begin_layout Plain Layout
20533 définit un préambule dépendant de la langue, voir
20534 \begin_inset space ~
20538 \begin_inset CommandInset ref
20540 reference "subsec:I18n"
20547 \begin_layout Description
20550 \begin_inset Flex Code
20553 \begin_layout Plain Layout
20564 \begin_inset Flex Code
20567 \begin_layout Plain Layout
20573 ] définit le nom du code \SpecialChar LaTeX
20574 correspondant, soit un environnement, soit une
20578 \begin_layout Description
20581 \begin_inset Flex Code
20584 \begin_layout Plain Layout
20595 \begin_inset Flex Code
20598 \begin_layout Plain Layout
20604 ] définit le paramètre facultatif pour le
20605 \begin_inset Flex Code
20608 \begin_layout Plain Layout
20616 correspondant, y compris des paires de crochets
20617 \begin_inset Flex Code
20620 \begin_layout Plain Layout
20627 Ce paramètre ne peut pas être modifié depuis \SpecialChar LyX
20629 \begin_inset Flex Code
20632 \begin_layout Plain Layout
20638 pour les paramètres personnalisables).
20639 Il sera émis tel quel après tous les
20640 \begin_inset Flex Code
20643 \begin_layout Plain Layout
20649 s \SpecialChar LaTeX
20653 \begin_layout Description
20656 \begin_inset Flex Code
20659 \begin_layout Plain Layout
20668 \begin_inset Flex Code
20671 \begin_layout Plain Layout
20674 Command, Environment, None
20680 \begin_inset Flex Code
20683 \begin_layout Plain Layout
20693 précise comment le style doit être traduit en \SpecialChar LaTeX
20700 \begin_layout Plain Layout
20703 \begin_inset Flex Code
20706 \begin_layout Plain Layout
20716 est peut-être trompeur, puisque ces règles s'appliquent aussi aux classes
20718 Voir les fichiers de classe SGML pour des exemples spécifiques.
20727 \begin_layout Description
20730 \begin_inset Flex Code
20733 \begin_layout Plain Layout
20744 \begin_inset Quotes cld
20747 rien de particulier
20748 \begin_inset Quotes crd
20754 \begin_layout Description
20757 \begin_inset Flex Code
20760 \begin_layout Plain Layout
20773 \begin_inset Flex Code
20776 \begin_layout Plain Layout
20785 {\SpecialChar ldots
20794 \begin_layout Description
20797 \begin_inset Flex Code
20800 \begin_layout Plain Layout
20813 \begin_inset Flex Code
20816 \begin_layout Plain Layout
20825 }\SpecialChar ldots
20840 \begin_layout Standard
20841 En rassemblant ceci, la sortie \SpecialChar LaTeX
20845 \begin_layout LyX-Code
20850 LatexName[LatexParam]{\SpecialChar ldots
20854 \begin_layout Standard
20858 \begin_layout LyX-Code
20863 begin{LatexName}[LatexParam] \SpecialChar ldots
20869 \begin_layout Standard
20873 \begin_inset Flex Code
20876 \begin_layout Plain Layout
20888 \begin_layout Description
20891 \begin_inset Flex Code
20894 \begin_layout Plain Layout
20905 \begin_inset Flex Code
20908 \begin_layout Plain Layout
20914 ] définit une chaîne de caractères insérée au début du contenu du style.
20915 Une rupture de ligne dans la sortie peut être indiquée par
20916 \begin_inset Flex Code
20919 \begin_layout Plain Layout
20928 \begin_layout Description
20931 \begin_inset Flex Code
20934 \begin_layout Plain Layout
20945 \begin_inset Flex Code
20948 \begin_layout Plain Layout
20957 \begin_inset Flex Code
20960 \begin_layout Plain Layout
20969 \begin_inset Flex Code
20972 \begin_layout Plain Layout
20981 \begin_inset Flex Code
20984 \begin_layout Plain Layout
20992 (indiquant une définition vide terminant les définitions de styles de caractère
20994 Cette entrée est requise dans les inserts flexibles et n'est significative
20996 Parmi d'autres choses, elle détermine dans quel menu cet insert va apparaître.
20998 \begin_inset Flex Code
21001 \begin_layout Plain Layout
21008 \begin_inset Flex Code
21011 \begin_layout Plain Layout
21018 \begin_inset Flex Code
21021 \begin_layout Plain Layout
21028 \begin_inset Quotes cld
21032 \begin_inset Quotes crd
21036 \begin_inset Flex Code
21039 \begin_layout Plain Layout
21046 \begin_inset Quotes cld
21050 \begin_inset Quotes crd
21055 \begin_inset Flex Code
21058 \begin_layout Plain Layout
21064 peut être positionné à
21065 \begin_inset Quotes cld
21069 \begin_inset Quotes crd
21073 \begin_inset Flex Code
21076 \begin_layout Plain Layout
21083 \begin_inset Quotes cld
21087 \begin_inset Quotes crd
21091 \begin_inset Flex Code
21094 \begin_layout Plain Layout
21100 , en le positionnant
21105 \begin_inset Flex Code
21108 \begin_layout Plain Layout
21117 \begin_layout Description
21120 \begin_inset Flex Code
21123 \begin_layout Plain Layout
21134 \begin_inset Flex Code
21137 \begin_layout Plain Layout
21146 \begin_inset space \thinspace{}
21150 \begin_inset Flex Code
21153 \begin_layout Plain Layout
21159 ] indique si plusieurs paragraphes sont autorisés dans cet insert.
21160 Ceci positionnera aussi
21161 \begin_inset Flex Code
21164 \begin_layout Plain Layout
21172 à la même valeur et
21173 \begin_inset Flex Code
21176 \begin_layout Plain Layout
21184 à la valeur opposée.
21185 Ceux-ci peuvent être repositionnés s'ils sont utilisés
21190 \begin_inset Flex Code
21193 \begin_layout Plain Layout
21203 \begin_inset Quotes cld
21207 \begin_inset Quotes crd
21213 \begin_layout Description
21216 \begin_inset Flex Code
21219 \begin_layout Plain Layout
21230 \begin_inset Flex Code
21233 \begin_layout Plain Layout
21242 \begin_inset space \thinspace{}
21246 \begin_inset Flex Code
21249 \begin_layout Plain Layout
21255 ] indique si les commandes fragiles de cet insert doivent êtres protégées
21257 \begin_inset Flex Code
21260 \begin_layout Plain Layout
21274 sur le fait que la commande elle-même doive être protégée).
21276 \begin_inset Quotes cld
21280 \begin_inset Quotes crd
21286 \begin_layout Description
21289 \begin_inset Flex Code
21292 \begin_layout Plain Layout
21301 \begin_inset Flex Code
21304 \begin_layout Plain Layout
21317 \begin_inset Flex Code
21320 \begin_layout Plain Layout
21333 \begin_layout Description
21336 \begin_inset Flex Code
21339 \begin_layout Plain Layout
21348 \begin_inset Flex Code
21351 \begin_layout Plain Layout
21362 \begin_inset Flex Code
21365 \begin_layout Plain Layout
21372 \begin_inset Flex Code
21375 \begin_layout Plain Layout
21382 Ceci est utilisé pour renommer un
21383 \begin_inset Flex Code
21386 \begin_layout Plain Layout
21392 en conservant la compatibilité.
21395 \begin_layout Description
21398 \begin_inset Flex Code
21401 \begin_layout Plain Layout
21415 \begin_inset Flex Code
21418 \begin_layout Plain Layout
21428 \begin_inset space \thinspace{}
21434 \begin_inset Flex Code
21437 \begin_layout Plain Layout
21445 ] fonctionne comme avec les styles de paragraphe, voir
21446 \begin_inset CommandInset ref
21448 reference "subsec:Styles-de-paragraphe"
21455 \begin_layout Description
21458 \begin_inset Flex Code
21461 \begin_layout Plain Layout
21475 \begin_inset Flex Code
21478 \begin_layout Plain Layout
21488 \begin_inset space \thinspace{}
21494 \begin_inset Flex Code
21497 \begin_layout Plain Layout
21505 ] fonctionne comme avec les styles de paragraphe, voir
21506 \begin_inset CommandInset ref
21508 reference "subsec:Styles-de-paragraphe"
21515 \begin_layout Description
21518 \begin_inset Flex Code
21521 \begin_layout Plain Layout
21531 fonctionne comme avec les styles de paragraphe, voir
21532 \begin_inset CommandInset ref
21534 reference "subsec:Styles-de-paragraphe"
21541 \begin_layout Description
21544 \begin_inset Flex Code
21547 \begin_layout Plain Layout
21558 \begin_inset Flex Code
21561 \begin_layout Plain Layout
21567 ] indique le préfixe à utiliser pour créer des étiquettes référant les paragraph
21569 Ceci permet l'utilisation de références mises en forme.
21572 \begin_layout Description
21575 \begin_inset Flex Code
21578 \begin_layout Plain Layout
21589 \begin_inset Flex Code
21592 \begin_layout Plain Layout
21600 As with paragraph styles, see
21603 \begin_inset CommandInset ref
21605 reference "subsec:Styles-de-paragraphe"
21612 \begin_layout Description
21615 \begin_inset Flex Code
21618 \begin_layout Plain Layout
21629 \begin_inset Flex Code
21632 \begin_layout Plain Layout
21641 \begin_inset space \thinspace{}
21645 \begin_inset Flex Code
21648 \begin_layout Plain Layout
21654 ] réinitialise les arguments \SpecialChar LaTeX
21655 de ce style (définis via la directive
21656 \begin_inset Flex Code
21659 \begin_layout Plain Layout
21666 Ceci est utile si vous avez dupliqué un style via
21669 \begin_inset Flex Code
21672 \begin_layout Plain Layout
21682 mais que vous ne voulez pas hériter de ses arguments (obligatoires et optionnels
21686 \begin_layout Description
21689 \begin_inset Flex Code
21692 \begin_layout Plain Layout
21703 \begin_inset Flex Code
21706 \begin_layout Plain Layout
21713 \begin_inset space \thinspace{}
21717 \begin_inset Flex Code
21720 \begin_layout Plain Layout
21728 ] indique si l'insert doit utiliser la police de caractères environnante
21729 ou bien utiliser la sienne propre.
21731 \begin_inset Quotes cld
21735 \begin_inset Quotes crd
21738 , utiliser la police de caractères environnante.
21741 \begin_layout Description
21744 \begin_inset Flex Code
21747 \begin_layout Plain Layout
21758 \begin_inset Flex Code
21761 \begin_layout Plain Layout
21767 ] définit une chaîne de caractères insérée à la fin du contenu du style.
21768 Une rupture de ligne dans la sortie peut être indiquée par
21769 \begin_inset Flex Code
21772 \begin_layout Plain Layout
21781 \begin_layout Description
21784 \begin_inset Flex Code
21787 \begin_layout Plain Layout
21798 \begin_inset Flex Code
21801 \begin_layout Plain Layout
21808 \begin_inset space \thinspace{}
21812 \begin_inset Flex Code
21815 \begin_layout Plain Layout
21823 ] active le correcteur orthographique sur le contenu de cet insert.
21825 \begin_inset Quotes cld
21829 \begin_inset Quotes crd
21835 \begin_layout Subsection
21837 \begin_inset CommandInset label
21839 name "subsec:Compteurs"
21846 \begin_layout Standard
21847 Il faut définir les compteurs (
21848 \begin_inset Flex Code
21851 \begin_layout Plain Layout
21858 \begin_inset Flex Code
21861 \begin_layout Plain Layout
21868 ) dans la classe elle-même.
21869 Les compteurs standard sont définis dans le fichier
21872 \begin_inset Flex Code
21875 \begin_layout Plain Layout
21886 Si vous cherchez à savoir comment mettre à jour une classe déjà existante,
21887 il suffit probablement que vous ajoutiez
21890 \begin_layout LyX-Code
21891 Input stdcounters.inc
21894 \begin_layout Standard
21895 à un endroit raisonnable dans la classe.
21898 \begin_layout Standard
21899 Mais si vous voulez définir des compteurs à votre guise, vous pouvez le
21901 La déclaration d'un compteur doit commencer par
21904 \begin_layout LyX-Code
21912 \begin_layout Standard
21914 \begin_inset Flex Code
21917 \begin_layout Plain Layout
21923 est le nom du compteur.
21924 Et elle doit se terminer par
21925 \begin_inset Flex Code
21928 \begin_layout Plain Layout
21939 \begin_layout Standard
21940 Les paramètres suivants peuvent également être utilisés:
21943 \begin_layout Description
21946 \begin_inset Flex Code
21949 \begin_layout Plain Layout
21958 \begin_inset Flex Code
21961 \begin_layout Plain Layout
21971 positionne la valeur initiale du compteur, valeur à laquelle il sera réinitiali
21972 sé quand cela sera nécessaire.
21973 Normalement, la valeur désirée est la valeur implicite,
21974 \begin_inset space ~
21980 \begin_layout Description
21983 \begin_inset Flex Code
21986 \begin_layout Plain Layout
21997 \begin_inset Flex Code
22000 \begin_layout Plain Layout
22007 \begin_inset Quotes erd
22011 \begin_inset Quotes erd
22014 ] définit comment le compteur s'affiche.
22015 Fixer ce paramètre positionne également
22016 \begin_inset Flex Code
22019 \begin_layout Plain Layout
22022 LabelStringAppendix
22028 Les arguments spécifiques suivants peuvent être utilisés:
22032 \begin_layout Itemize
22033 \begin_inset Flex Code
22036 \begin_layout Plain Layout
22046 sera remplacé par l'expansion de
22047 \begin_inset Flex Code
22050 \begin_layout Plain Layout
22059 \begin_inset Newline newline
22063 \begin_inset Flex Code
22066 \begin_layout Plain Layout
22069 LabelStringAppendix
22075 \begin_inset Flex Code
22078 \begin_layout Plain Layout
22090 \begin_layout Itemize
22091 les valeurs du compteur peuvent être exprimées par des macros à la \SpecialChar LaTeX
22093 \begin_inset Flex Code
22096 \begin_layout Plain Layout
22115 \begin_inset Flex Code
22118 \begin_layout Plain Layout
22128 \begin_inset Flex Code
22131 \begin_layout Plain Layout
22139 : 1, 2, 3,\SpecialChar ldots
22141 \begin_inset Flex Code
22144 \begin_layout Plain Layout
22152 pour les lettres en bas de casse: a, b, c, \SpecialChar ldots
22154 \begin_inset Flex Code
22157 \begin_layout Plain Layout
22165 pour les lettres en capitales: A, B, C, \SpecialChar ldots
22167 \begin_inset Flex Code
22170 \begin_layout Plain Layout
22178 pour la numérotation en bas de casse romaine: i, ii, iii, \SpecialChar ldots
22180 \begin_inset Flex Code
22183 \begin_layout Plain Layout
22191 pour la numérotation capitale romaine: I, II, III.
22195 \begin_layout Standard
22199 \begin_inset Flex Code
22202 \begin_layout Plain Layout
22212 est indéfini, une valeur implicite est construite comme suit: si le compteur
22213 a un compteur maître
22214 \begin_inset Flex Code
22217 \begin_layout Plain Layout
22226 \begin_inset Flex Code
22229 \begin_layout Plain Layout
22238 \begin_inset Newline newline
22242 \begin_inset Flex Code
22245 \begin_layout Plain Layout
22257 est utilisée; sinon la chaîne
22258 \begin_inset Flex Code
22261 \begin_layout Plain Layout
22274 \begin_layout Description
22277 \begin_inset Flex Code
22280 \begin_layout Plain Layout
22283 LabelStringAppendix
22291 \begin_inset Flex Code
22294 \begin_layout Plain Layout
22301 \begin_inset Quotes erd
22305 \begin_inset Quotes erd
22309 \begin_inset Flex Code
22312 \begin_layout Plain Layout
22320 , mais pour les annexes.
22323 \begin_layout Description
22324 \begin_inset Flex Code
22327 \begin_layout Plain Layout
22336 \begin_inset Flex Code
22339 \begin_layout Plain Layout
22346 \begin_inset Quotes erd
22350 \begin_inset Quotes erd
22353 ] définit un format à utiliser pour les références mises en forme utilisant
22355 Par exemple, on peut vouloir que les références aux numéros de section
22357 \begin_inset Quotes cld
22361 \begin_inset space ~
22365 \begin_inset Quotes crd
22369 La chaîne devra contenir
22370 \begin_inset Quotes cld
22374 \begin_inset Quotes crd
22378 Ceci sera remplacé par la valeur courante du compteur.
22379 Ainsi, pour les sections, ce sera: Section ##.
22382 \begin_layout Description
22383 \begin_inset Flex Code
22386 \begin_layout Plain Layout
22395 \begin_inset Flex Code
22398 \begin_layout Plain Layout
22405 \begin_inset Quotes erd
22409 \begin_inset Quotes erd
22412 ] contient le nom d'un autre compteur: le compteur actuel sera remis à zéro
22413 à chaque fois que l'autre augmentera.
22415 \begin_inset Flex Code
22418 \begin_layout Plain Layout
22425 \begin_inset Flex Code
22428 \begin_layout Plain Layout
22437 \begin_layout Subsection
22438 Description de police
22439 \begin_inset CommandInset label
22441 name "subsec:polices"
22448 \begin_layout Standard
22449 Une description de police ressemble à :
22452 \begin_layout LyX-Code
22466 \begin_layout LyX-Code
22470 \begin_layout LyX-Code
22474 \begin_layout Standard
22475 et les commandes suivantes sont disponibles :
22478 \begin_layout Description
22479 \begin_inset Flex Code
22482 \begin_layout Plain Layout
22493 \begin_inset Flex Code
22496 \begin_layout Plain Layout
22505 \begin_inset Flex Code
22508 \begin_layout Plain Layout
22515 \begin_inset Flex Code
22518 \begin_layout Plain Layout
22525 \begin_inset Flex Code
22528 \begin_layout Plain Layout
22535 \begin_inset Flex Code
22538 \begin_layout Plain Layout
22545 \begin_inset Flex Code
22548 \begin_layout Plain Layout
22555 \begin_inset Flex Code
22558 \begin_layout Plain Layout
22565 \begin_inset Flex Code
22568 \begin_layout Plain Layout
22575 \begin_inset Flex Code
22578 \begin_layout Plain Layout
22585 \begin_inset Flex Code
22588 \begin_layout Plain Layout
22595 \begin_inset Flex Code
22598 \begin_layout Plain Layout
22605 \begin_inset Flex Code
22608 \begin_layout Plain Layout
22615 \begin_inset Flex Code
22618 \begin_layout Plain Layout
22625 \begin_inset Flex Code
22628 \begin_layout Plain Layout
22635 \begin_inset Flex Code
22638 \begin_layout Plain Layout
22645 \begin_inset Flex Code
22648 \begin_layout Plain Layout
22655 \begin_inset Flex Code
22658 \begin_layout Plain Layout
22665 \begin_inset Flex Code
22668 \begin_layout Plain Layout
22675 \begin_inset Flex Code
22678 \begin_layout Plain Layout
22685 \begin_inset Flex Code
22688 \begin_layout Plain Layout
22697 \begin_layout Description
22698 \begin_inset Flex Code
22701 \begin_layout Plain Layout
22710 \begin_inset Flex Code
22713 \begin_layout Plain Layout
22722 \begin_inset Flex Code
22725 \begin_layout Plain Layout
22732 \begin_inset Flex Code
22735 \begin_layout Plain Layout
22744 \begin_layout Description
22745 \begin_inset Flex Code
22748 \begin_layout Plain Layout
22755 \begin_inset Flex Code
22758 \begin_layout Plain Layout
22764 ] avec les arguments valides suivants:
22765 \begin_inset Flex Code
22768 \begin_layout Plain Layout
22775 \begin_inset Flex Code
22778 \begin_layout Plain Layout
22785 \begin_inset Flex Code
22788 \begin_layout Plain Layout
22795 \begin_inset Flex Code
22798 \begin_layout Plain Layout
22805 \begin_inset Flex Code
22808 \begin_layout Plain Layout
22815 \begin_inset Flex Code
22818 \begin_layout Plain Layout
22825 \begin_inset Flex Code
22828 \begin_layout Plain Layout
22835 \begin_inset Flex Code
22838 \begin_layout Plain Layout
22845 \begin_inset Flex Code
22848 \begin_layout Plain Layout
22855 \begin_inset Flex Code
22858 \begin_layout Plain Layout
22865 \begin_inset Flex Code
22868 \begin_layout Plain Layout
22875 \begin_inset Newline linebreak
22879 \begin_inset Flex Code
22882 \begin_layout Plain Layout
22889 Chacun de ceux-ci (dés)active l'attribut correspondant.
22890 \begin_inset Newline newline
22894 \begin_inset Flex Code
22897 \begin_layout Plain Layout
22903 active la mise en évidence, et
22904 \begin_inset Flex Code
22907 \begin_layout Plain Layout
22914 Si ce dernier point vous intrigue, souvenez-vous que le réglage de police
22915 du contexte courant est généralement hérité du contexte environnant.
22917 \begin_inset Flex Code
22920 \begin_layout Plain Layout
22928 désactiverait la mise en évidence qui était active de toutes façons, par
22929 exemple dans un environnement de théorème.
22933 \begin_layout Description
22934 \begin_inset Flex Code
22937 \begin_layout Plain Layout
22946 \begin_inset Flex Code
22949 \begin_layout Plain Layout
22958 \begin_inset Flex Code
22961 \begin_layout Plain Layout
22970 \begin_layout Description
22971 \begin_inset Flex Code
22974 \begin_layout Plain Layout
22983 \begin_inset Flex Code
22986 \begin_layout Plain Layout
22995 \begin_inset Flex Code
22998 \begin_layout Plain Layout
23005 \begin_inset Flex Code
23008 \begin_layout Plain Layout
23015 \begin_inset Flex Code
23018 \begin_layout Plain Layout
23027 \begin_layout Description
23028 \begin_inset Flex Code
23031 \begin_layout Plain Layout
23038 \begin_inset Flex Code
23041 \begin_layout Plain Layout
23048 \begin_inset Flex Code
23051 \begin_layout Plain Layout
23058 \begin_inset Flex Code
23061 \begin_layout Plain Layout
23070 \begin_inset Flex Code
23073 \begin_layout Plain Layout
23080 \begin_inset Flex Code
23083 \begin_layout Plain Layout
23090 \begin_inset Flex Code
23093 \begin_layout Plain Layout
23100 \begin_inset Flex Code
23103 \begin_layout Plain Layout
23110 \begin_inset Flex Code
23113 \begin_layout Plain Layout
23122 \begin_layout Subsection
23125 \begin_inset CommandInset label
23127 name "subsec:Citation-engine-description"
23131 Citation engine description
23134 \begin_layout Standard
23138 \begin_inset Flex Code
23141 \begin_layout Plain Layout
23149 blocks, as used mainly in cite engine files (see
23150 \begin_inset CommandInset ref
23152 reference "subsec:Cite-Engine-Files"
23159 ), define the citation commands provided by a specific
23160 \begin_inset Quotes eld
23164 \begin_inset Quotes erd
23168 A cite engine, in \SpecialChar LyX
23169 terms, is way specific way to format citations, using
23170 numbers, author names and/or years.
23171 Currently, \SpecialChar LyX
23172 supports three such engine types, namely:
23175 \begin_layout Enumerate
23178 \begin_inset Flex Code
23181 \begin_layout Plain Layout
23189 : the default Bib\SpecialChar TeX
23190 way to format citations, a simple numeric style (e.
23191 \begin_inset space \thinspace{}
23195 \begin_inset Quotes eld
23199 \begin_inset Quotes erd
23205 \begin_layout Enumerate
23208 \begin_inset Flex Code
23211 \begin_layout Plain Layout
23219 : Harvard-styled citations using author names and publication year (e.
23220 \begin_inset space \thinspace{}
23224 \begin_inset Quotes eld
23227 Smith and Miller (2017b)
23228 \begin_inset Quotes erd
23234 \begin_layout Enumerate
23237 \begin_inset Flex Code
23240 \begin_layout Plain Layout
23248 : extended numerical citations that also allow for author or title next
23250 \begin_inset space \thinspace{}
23254 \begin_inset Quotes eld
23257 Smith and Miller [1]
23258 \begin_inset Quotes erd
23264 \begin_layout Standard
23267 \begin_inset Flex Code
23270 \begin_layout Plain Layout
23278 blocks look like this:
23281 \begin_layout LyX-Code
23287 \begin_layout LyX-Code
23293 \begin_layout LyX-Code
23299 \begin_layout LyX-Code
23302 citeyearpar[][]=parencite*
23305 \begin_layout LyX-Code
23311 \begin_layout LyX-Code
23317 \begin_layout Standard
23321 \begin_inset Flex Code
23324 \begin_layout Plain Layout
23332 denotes the engine.
23333 The individual lines respectively define a cite command or cite command
23334 paradigm supported by this engine.
23335 The line can be as simple as a cite command that is used both to name the
23336 respective \SpecialChar LyX
23337 command and the \SpecialChar LaTeX
23338 output or more complex in order to differentiate
23340 The full syntax is:
23343 \begin_layout LyX-Code
23346 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23349 \begin_layout Itemize
23352 \begin_inset Flex Code
23355 \begin_layout Plain Layout
23363 : The name as used in the
23364 \begin_inset Flex Code
23367 \begin_layout Plain Layout
23379 \begin_layout Standard
23382 For portability reasons, we try to use the same name for same-formatted
23383 commands in different cite packages (thus many names stem from natbib,
23384 and thus we need to differentiate a
23385 \begin_inset Flex Code
23388 \begin_layout Plain Layout
23396 sometimes, if the \SpecialChar LaTeX
23397 command names differ).
23401 \begin_layout Itemize
23404 \begin_inset Flex Code
23407 \begin_layout Plain Layout
23415 : a (comma-separated) list of commands that fall back to the given
23416 \begin_inset Flex Code
23419 \begin_layout Plain Layout
23427 in the current engine.
23428 This eases the switch of citation packages and engines.
23430 \begin_inset Flex Code
23433 \begin_layout Plain Layout
23442 \begin_inset Flex Code
23445 \begin_layout Plain Layout
23453 in layout definitions.
23456 \begin_layout Itemize
23459 \begin_inset Flex Code
23462 \begin_layout Plain Layout
23470 : The actual \SpecialChar LaTeX
23471 command that is output.
23475 \begin_layout Standard
23478 \begin_inset Flex Code
23481 \begin_layout Plain Layout
23490 \begin_inset Flex Code
23493 \begin_layout Plain Layout
23503 \begin_inset Flex Code
23506 \begin_layout Plain Layout
23515 \begin_inset Flex Code
23518 \begin_layout Plain Layout
23526 will be output to \SpecialChar LaTeX
23530 \begin_layout Standard
23536 \begin_layout Itemize
23539 Capitalization indicates that the command also has a capitalized form (
23540 \begin_inset Flex Code
23543 \begin_layout Plain Layout
23555 \begin_inset Flex Code
23558 \begin_layout Plain Layout
23569 These usually enforce up-casing of name prefixes (
23574 \begin_inset Formula $\Rightarrow$
23584 \begin_layout Itemize
23588 \begin_inset Flex Code
23591 \begin_layout Plain Layout
23599 indicate the number of optional arguments (there can be 0–2).
23602 \begin_layout Itemize
23606 \begin_inset Flex Code
23609 \begin_layout Plain Layout
23617 indicates there is a starred version of the command (
23618 \begin_inset Flex Code
23621 \begin_layout Plain Layout
23633 \begin_inset Flex Code
23636 \begin_layout Plain Layout
23651 \begin_layout Standard
23654 By default, the starred version means: Output all authors even if it should
23656 \begin_inset Quotes eld
23660 \begin_inset Quotes erd
23664 \begin_inset Flex Code
23667 \begin_layout Plain Layout
23678 \begin_layout Standard
23681 If the star has a different meaning for a given command, it can be specified
23683 \begin_inset Flex Code
23686 \begin_layout Plain Layout
23689 <!_stardesc!_stardesctooltip>
23695 Maximal two translatable macro keywords, marked by the prefix
23696 \begin_inset Flex Code
23699 \begin_layout Plain Layout
23708 The first points to the string that replaces the
23709 \begin_inset Quotes eld
23713 \begin_inset Quotes erd
23716 checkbox label in the citation dialog, the second one to an optional tool
23717 tip for this checkbox.
23721 \begin_layout Standard
23724 Note that these two macros have to be defined in a
23725 \begin_inset Flex Code
23728 \begin_layout Plain Layout
23736 (see next section), dropping the
23737 \begin_inset Flex Code
23740 \begin_layout Plain Layout
23748 from the prefix, like this:
23751 \begin_layout LyX-Code
23754 _stardesc Sta&rred command label
23757 \begin_layout LyX-Code
23760 _stardesctooltip Tooltip for the starred command checkbox.
23764 \begin_layout Itemize
23768 \begin_inset Flex Code
23771 \begin_layout Plain Layout
23779 indicates that this command features
23780 \begin_inset Quotes eld
23783 qualified citation lists
23784 \begin_inset Quotes erd
23792 -specific feature for multi-reference citations where an individual pre-
23793 and postnote can be given to each reference in the list.
23794 Please refer to the
23798 manual for details.
23801 \begin_layout Subsection
23802 \begin_inset CommandInset label
23804 name "subsec:Description citation"
23808 Description d'une insertion de citation
23811 \begin_layout Standard
23813 \begin_inset Flex Code
23816 \begin_layout Plain Layout
23822 servent à décrire comment les citations bibliographiques doivent être affichées
23823 , à la fois dans \SpecialChar LyX
23824 (dans la fenêtre de citation et dans les bulles d'aide,
23825 par exemple) et dans le résultat XHTML.
23826 Un tel bloc se présente comme suit:
23829 \begin_layout LyX-Code
23835 \begin_layout LyX-Code
23841 \begin_layout LyX-Code
23847 \begin_layout LyX-Code
23853 \begin_layout Standard
23859 \begin_layout LyX-Code
23865 \begin_layout LyX-Code
23871 \begin_layout LyX-Code
23877 \begin_layout LyX-Code
23883 \begin_layout Standard
23886 Dans le premier cas,
23888 les différentes lignes définissent l'affichage de l'information correspondant
23889 à une article ou à un livre, respectivement, et une telle définition peut
23890 être créée pour tout type d'entrée apparaissant dans un fichier Bib\SpecialChar TeX
23893 définit un format implicite dans le code source qui sera utilisé si aucune
23894 définition spécifique n'est fournie.
23896 prédéfinit plusieurs formats dans le fichier
23897 \begin_inset Flex Code
23900 \begin_layout Plain Layout
23906 , qui est inclus dans la plupart des classes de document \SpecialChar LyX
23910 \begin_layout Standard
23913 In the second case, the lines define how a specific citation command (in
23915 \begin_inset Flex Code
23918 \begin_layout Plain Layout
23929 \begin_inset Flex Code
23932 \begin_layout Plain Layout
23942 ) is to be displayed on the citation inset label, in the citation dialog,
23943 menu or XHTML output.
23945 defines such formats for the citation style variants it supports via
23947 Document\SpecialChar menuseparator
23948 Setting\SpecialChar menuseparator
23949 Bibliography\SpecialChar ldots
23953 \begin_inset Flex Code
23956 \begin_layout Plain Layout
23964 files that are shipped with \SpecialChar LyX
23966 \begin_inset CommandInset ref
23968 reference "subsec:Cite-Engine-Files"
23978 \begin_layout Standard
23979 Les définitions utilisent un langage simple qui permet
23980 \begin_inset space ~
23983 de remplacer les clés Bib\SpecialChar TeX
23985 les clés doivent être encloses entre caractères
23988 \begin_inset Flex Code
23991 \begin_layout Plain Layout
24000 \begin_inset Flex Code
24003 \begin_layout Plain Layout
24014 Une définition simple serait par exemple:
24017 \begin_layout LyX-Code
24021 \begin_inset Quotes eld
24025 \begin_inset Quotes erd
24031 \begin_layout Standard
24032 Ceci imprimerait le nom de l'auteur, suivi d'une virgule, suivi du titre,
24033 entre double guillemets, suivi d'un point.
24036 \begin_layout Standard
24037 Bien entendu, vous voudrez parfois n'imprimer une clé que si elle existe.
24038 Ceci est obtenu par une construction conditionnelle, comme:
24039 \begin_inset Flex Code
24042 \begin_layout Plain Layout
24044 \begin_inset space ~
24053 Ceci signifie: si la clé
24054 \begin_inset Flex Code
24057 \begin_layout Plain Layout
24063 existe, alors imprimer
24064 \begin_inset Quotes cld
24068 \begin_inset Quotes crd
24071 suivi de la clé volume.
24072 On peut aussi introduire une clause
24073 \begin_inset Flex Code
24076 \begin_layout Plain Layout
24082 dans l'expression conditionnelle, comme dans:
24083 \begin_inset Newline newline
24087 \begin_inset Flex Code
24090 \begin_layout Plain Layout
24091 {%author%[[%author%]][[%editor%, ed.]]}
24097 \begin_inset Newline newline
24101 \begin_inset Flex Code
24104 \begin_layout Plain Layout
24110 est imprimée si elle existe; sinon la clé
24111 \begin_inset Flex Code
24114 \begin_layout Plain Layout
24120 est imprimée, suivi de
24121 \begin_inset Quotes cld
24125 \begin_inset Quotes crd
24129 Noter que la clé est encore enclose entre caractères
24130 \begin_inset Flex Code
24133 \begin_layout Plain Layout
24139 ; la clause conditionnelle entière est enclose entre accolades, et les clauses
24141 \begin_inset Flex Code
24144 \begin_layout Plain Layout
24151 \begin_inset Flex Code
24154 \begin_layout Plain Layout
24160 sont encloses entre double crochets
24161 \begin_inset Quotes cld
24165 \begin_inset Quotes crd
24169 \begin_inset Quotes cld
24173 \begin_inset Quotes crd
24177 Il ne peut avoir d'espaces entre ces marqueurs.
24180 \begin_layout Standard
24183 Next to the entry keys, there are some special keys that can be used for
24184 these conditionals:
24187 \begin_layout Itemize
24190 \begin_inset Flex Code
24193 \begin_layout Plain Layout
24196 {%dialog%[[true]][[false]]}
24202 \begin_inset Quotes eld
24206 \begin_inset Quotes erd
24209 part for dialogs and menus, the
24210 \begin_inset Quotes eld
24214 \begin_inset Quotes erd
24217 part for other contexts (workarea, export)
24220 \begin_layout Itemize
24223 \begin_inset Flex Code
24226 \begin_layout Plain Layout
24229 {%export%[[true]][[false]]}
24235 \begin_inset Quotes eld
24239 \begin_inset Quotes erd
24242 part for export and menus, the
24243 \begin_inset Quotes eld
24247 \begin_inset Quotes erd
24250 part for other contexts (workarea, dialog)
24253 \begin_layout Itemize
24256 \begin_inset Flex Code
24259 \begin_layout Plain Layout
24268 \begin_inset Quotes eld
24272 \begin_inset Quotes erd
24275 part if another item follows (e.
24276 \begin_inset space \thinspace{}
24279 g., in a citation with multiple keys)
24282 \begin_layout Itemize
24285 \begin_inset Flex Code
24288 \begin_layout Plain Layout
24291 {%second%[[true]][[false]]}
24297 \begin_inset Quotes eld
24301 \begin_inset Quotes erd
24304 if this is the second of multiple items, else the
24305 \begin_inset Quotes eld
24309 \begin_inset Quotes erd
24315 \begin_layout Itemize
24318 \begin_inset Flex Code
24321 \begin_layout Plain Layout
24324 {%ifstar%[[true]][[false]]}
24330 \begin_inset Quotes eld
24334 \begin_inset Quotes erd
24337 part for starred citation commands (such as
24338 \begin_inset Flex Code
24341 \begin_layout Plain Layout
24351 ), the false part for unstarred
24354 \begin_layout Itemize
24357 \begin_inset Flex Code
24360 \begin_layout Plain Layout
24363 {%ifentrytype:<type>%[[true]][[false]]}
24369 \begin_inset Quotes eld
24373 \begin_inset Quotes erd
24376 if the current entry type matches
24377 \begin_inset Flex Code
24380 \begin_layout Plain Layout
24388 , else the false part (e.g., in a citation definition:
24389 \begin_inset Flex Code
24392 \begin_layout Plain Layout
24395 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24403 \begin_layout Itemize
24406 \begin_inset Flex Code
24409 \begin_layout Plain Layout
24412 {%ifmultiple:<authortype>%[[true]][[false]]}
24418 \begin_inset Quotes eld
24422 \begin_inset Quotes erd
24425 if the current author type (author, editor etc.) has multiple authors, else
24426 the false part (e.g., in a bibliography definition:
24427 \begin_inset Flex Code
24430 \begin_layout Plain Layout
24433 {%ifmultiple:editor%[[eds.]][[ed.]]}
24441 \begin_layout Itemize
24444 \begin_inset Flex Code
24447 \begin_layout Plain Layout
24450 {%ifqualified%[[true]][[false]]}
24456 \begin_inset Quotes eld
24460 \begin_inset Quotes erd
24463 part if the current citation is a qualified citation list (a specific
24467 format for multi-reference citations), the false part if this is not the
24471 \begin_layout Standard
24475 \begin_inset Flex Code
24478 \begin_layout Plain Layout
24486 prints the author key as it is recorded in the bibliography file.
24487 This might not be what you want, since it will result in a string such
24489 \begin_inset Quotes eld
24492 Miller, Peter and Smith, Mary and White, Jane
24493 \begin_inset Quotes erd
24497 \begin_inset Quotes eld
24501 \begin_inset Quotes erd
24504 is used by Bib\SpecialChar TeX
24505 to delimit authors).
24507 therefore provides some methods to get properly formatted name lists (which
24508 will also get translated).
24509 The following keys are provided:
24512 \begin_layout Enumerate
24515 For name lists with pre- and surname, suitable for the main authors/editors
24516 of a bibliography item.
24518 \begin_inset Flex Code
24521 \begin_layout Plain Layout
24529 part denotes the kind of list that is requested (e.g.
24531 \begin_inset Flex Code
24534 \begin_layout Plain Layout
24546 \begin_layout Itemize
24549 \begin_inset Flex Code
24552 \begin_layout Plain Layout
24555 %abbrvnames:<nametype>%
24560 : Provides a name list which is abbreviated (with
24561 \begin_inset Quotes eld
24565 \begin_inset Quotes erd
24569 \begin_inset Flex Code
24572 \begin_layout Plain Layout
24583 \begin_layout Itemize
24586 \begin_inset Flex Code
24589 \begin_layout Plain Layout
24592 %fullnames:<nametype>%
24597 : Provides a full name list (never abbreviated with
24598 \begin_inset Quotes eld
24602 \begin_inset Quotes erd
24608 \begin_layout Itemize
24611 \begin_inset Flex Code
24614 \begin_layout Plain Layout
24617 %forceabbrvnames:<nametype>%
24622 : Provides a name list which is always abbreviated (with
24623 \begin_inset Quotes eld
24627 \begin_inset Quotes erd
24631 \begin_inset Flex Code
24634 \begin_layout Plain Layout
24646 \begin_layout Enumerate
24649 Alternative name lists with pre- and surname, if the order of pre- and surname
24650 inside the bibliography item differs (as in:
24651 \begin_inset Quotes eld
24654 Miller, John: Some text, in: Mary Smith, ed.: A volume
24655 \begin_inset Quotes erd
24662 \begin_layout Itemize
24665 \begin_inset Flex Code
24668 \begin_layout Plain Layout
24671 %abbrvbynames:<nametype>%
24676 : Provides a name list which is abbreviated (with
24677 \begin_inset Quotes eld
24681 \begin_inset Quotes erd
24685 \begin_inset Flex Code
24688 \begin_layout Plain Layout
24699 \begin_layout Itemize
24702 \begin_inset Flex Code
24705 \begin_layout Plain Layout
24708 %fullbynames:<nametype>%
24713 : Provides a full name list (never abbreviated with
24714 \begin_inset Quotes eld
24718 \begin_inset Quotes erd
24724 \begin_layout Itemize
24727 \begin_inset Flex Code
24730 \begin_layout Plain Layout
24733 %forceabbrvbynames:<nametype>%
24738 : Provides a name list which is always abbreviated (with
24739 \begin_inset Quotes eld
24743 \begin_inset Quotes erd
24747 \begin_inset Flex Code
24750 \begin_layout Plain Layout
24762 \begin_layout Enumerate
24765 And finally name lists which consist of family names only, as used in author-yea
24767 these do not take a
24768 \begin_inset Flex Code
24771 \begin_layout Plain Layout
24779 part, but always return either an author list or, if this does not exist,
24780 an editor list (as common in author-year labels):
24784 \begin_layout Itemize
24787 \begin_inset Flex Code
24790 \begin_layout Plain Layout
24798 : Provides a name list which is abbreviated (with
24799 \begin_inset Quotes eld
24803 \begin_inset Quotes erd
24807 \begin_inset Flex Code
24810 \begin_layout Plain Layout
24821 \begin_layout Itemize
24824 \begin_inset Flex Code
24827 \begin_layout Plain Layout
24835 : Provides a full name list (never abbreviated with
24836 \begin_inset Quotes eld
24840 \begin_inset Quotes erd
24846 \begin_layout Itemize
24849 \begin_inset Flex Code
24852 \begin_layout Plain Layout
24855 %forceabbrvciteauthor%
24860 : Provides a name list which is always abbreviated (with
24861 \begin_inset Quotes eld
24865 \begin_inset Quotes erd
24869 \begin_inset Flex Code
24872 \begin_layout Plain Layout
24884 \begin_layout Standard
24887 The order of pre- and surname in the former two lists can be adjusted by
24891 \begin_layout Itemize
24894 \begin_inset Flex Code
24897 \begin_layout Plain Layout
24900 !firstnameform %surname%, %prename%
24905 (first author in lists of type 1)
24908 \begin_layout Itemize
24911 \begin_inset Flex Code
24914 \begin_layout Plain Layout
24917 !othernameform %surname%, %prename%
24922 (other authors in lists of type 1)
24925 \begin_layout Itemize
24928 \begin_inset Flex Code
24931 \begin_layout Plain Layout
24934 !firstbynameform %prename% %surname%
24939 (first author in lists of type 2)
24942 \begin_layout Itemize
24945 \begin_inset Flex Code
24948 \begin_layout Plain Layout
24951 !otherbynameform %prename% %surname%
24956 (other authors in lists of type 2)
24959 \begin_layout Standard
24962 This allows you to configure namings like
24963 \begin_inset Quotes eld
24966 Miller, Peter and Mary Smith: \SpecialChar ldots
24967 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24969 \begin_inset Quotes erd
24975 \begin_layout Standard
24976 Il existe enfin une autre syntaxe possible dans ces définitions, qui se
24977 présente comme suit:
24978 \begin_inset Flex Code
24981 \begin_layout Plain Layout
24988 Ceci définit une entité d'information utilisée pour créer du
24989 \begin_inset Quotes cld
24993 \begin_inset Quotes crd
24997 De manière évidente, nous ne souhaitons pas exporter des balises HTML en
24998 écrivant du texte normal, aussi doivent elles être enclose entre
24999 \begin_inset Quotes cld
25003 \begin_inset Quotes crd
25007 \begin_inset Quotes cld
25011 \begin_inset Quotes crd
25017 \begin_layout Standard
25018 Deux définitions spéciales sont également disponibles dans un bloc
25019 \begin_inset Flex Code
25022 \begin_layout Plain Layout
25028 Un exemple de la première définition est celle-ci:
25031 \begin_layout LyX-Code
25033 \begin_inset Quotes eld
25037 \begin_inset Quotes erd
25043 \begin_layout Standard
25044 Ceci est une abréviation, ou macro-instruction, et peut être employée comme
25046 \begin_inset Flex Code
25049 \begin_layout Plain Layout
25058 \begin_inset Flex Code
25061 \begin_layout Plain Layout
25067 exactement comme s'il s'agissait de sa définition.
25068 Exprimons par conséquent un
25072 évident: n'utilisez pas:
25075 \begin_layout LyX-Code
25079 \begin_layout Standard
25082 ne devrait pas se perdre dans une boucle infinie, mais cela peut prendre
25083 un moment avant qu'il s'en sorte.
25086 \begin_layout Standard
25087 Le second type de définitions particulières se présente comme ceci:
25090 \begin_layout LyX-Code
25096 \begin_layout Standard
25097 Ceci définit un segment de texte susceptible de traduction, ce qui permet
25098 de traduire les parties appropriées de la bibliographie
25103 Cette syntaxe peut être incluse dans une définition normale en la considérant
25105 \begin_inset Flex Code
25108 \begin_layout Plain Layout
25115 Plusieurs d'entre elles sont prédéfinies dans
25116 \begin_inset Flex Code
25119 \begin_layout Plain Layout
25129 \begin_inset Flex Code
25132 \begin_layout Plain Layout
25142 Notez bien que ce ne sont pas des macro-instructions, au sens défini ci-dessus:
25143 elles ne seront pas interprétées.
25146 \begin_layout Standard
25147 Voici donc un exemple utilisant toutes ces fonctionnalités:
25148 \begin_inset VSpace defskip
25154 \begin_layout Standard
25158 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
25161 \begin_layout Standard
25162 \begin_inset VSpace defskip
25165 Ceci défini une macro qui imprime le nom de l'auteur, suivi d'un virgule,
25167 \begin_inset Flex Code
25170 \begin_layout Plain Layout
25176 existe, ou bien imprime le nom de l'éditeur, suivi de
25177 \begin_inset Flex Code
25180 \begin_layout Plain Layout
25186 ou de sa traduction (implicitement, apparaîtra
25187 \begin_inset Quotes cld
25191 \begin_inset Quotes crd
25195 \begin_inset Flex Code
25198 \begin_layout Plain Layout
25205 Notez que ceci est déjà défini dans
25206 \begin_inset Flex Code
25209 \begin_layout Plain Layout
25215 , vous pouvez donc l'utiliser dans vos propres définitions, ou redéfinitions,
25216 si vous chargez ce fichier d'abord.
25219 \begin_layout Section
25220 Directives pour l'exportation XHTML
25221 \begin_inset CommandInset label
25223 name "sec:Tags-for-XHTML"
25230 \begin_layout Standard
25231 Comme pour \SpecialChar LaTeX
25232 ou DocBook, la présentation du résultat HTML créé par \SpecialChar LyX
25234 par les informations de format.
25235 En général, \SpecialChar LyX
25236 produit une présentation implicite raisonnable, et comme indiqué
25237 plus haut, il construira même des règles implicites CSS à partir des autres
25238 directives de format.
25239 Par exemple, \SpecialChar LyX
25240 essaiera d'utiliser l'information du bloc
25241 \begin_inset Flex Code
25244 \begin_layout Plain Layout
25250 du style Chapter pour écrire une CSS qui mettra en forme les titres de
25251 chapitres de manière appropriée.
25254 \begin_layout Standard
25255 Dans de nombreux cas, vous n'aurez donc sans doute rien à faire du tout
25256 pour obtenir un résultat XHTML acceptable pour vos environnements propres,
25257 vos inserts personnalisés, et ainsi de suite.
25258 Mais dans certains cas vous devrez faire quelque chose, et \SpecialChar LyX
25260 conséquent un certain nombre de directives de format qui peuvent être utilisées
25261 pour personnaliser le XHTML et les CSS qui sont créés.
25264 \begin_layout Standard
25265 Notez qu'il existe deux directives,
25266 \begin_inset Flex Code
25269 \begin_layout Plain Layout
25276 \begin_inset Flex Code
25279 \begin_layout Plain Layout
25285 , qui peuvent apparaître en dehors des déclarations de style et d'insert.
25287 \begin_inset CommandInset ref
25289 reference "subsec:Paramètres-généraux-d'une"
25293 pour les détails sur celles-ci.
25296 \begin_layout Subsection
25297 Styles de paragraphe
25298 \begin_inset CommandInset label
25300 name "subsec:Styles-de-paragraphe-XHTML"
25307 \begin_layout Standard
25308 Le type de XHTML que \SpecialChar LyX
25309 crée pour un paragraphe dépend s'il s'agit d'un paragraphe
25310 normal, d'une commande ou d'un environnement, ce qui est déterminé par
25311 le contenu de la directive correspondante
25312 \begin_inset Flex Code
25315 \begin_layout Plain Layout
25325 \begin_layout Standard
25326 Pour une commande ou un paragraphe normal, le résultat XHTML a la forme
25330 \begin_layout LyX-Code
25334 \begin_inset Quotes erd
25338 \begin_inset Quotes erd
25344 \begin_layout LyX-Code
25348 \begin_inset Quotes erd
25352 \begin_inset Quotes erd
25355 >Étiquette</labeltag>
25358 \begin_layout LyX-Code
25361 Contenu du paragraphe
25364 \begin_layout LyX-Code
25370 \begin_layout Standard
25371 Les balises d'étiquette sont bien entendu omises si le paragraphe n'est
25375 \begin_layout Standard
25376 Pour un environnement qui n'est pas du type liste, le XHTML prend la forme:
25379 \begin_layout LyX-Code
25383 \begin_inset Quotes erd
25387 \begin_inset Quotes erd
25393 \begin_layout LyX-Code
25397 \begin_inset Quotes erd
25401 \begin_inset Quotes erd
25405 \begin_inset Quotes erd
25409 \begin_inset Quotes erd
25412 >Étiquette d'environnement</labeltag>Premier paragraphe.</itemtag>
25415 \begin_layout LyX-Code
25418 <itemtag>Second paragraphe.</itemtag>
25421 \begin_layout LyX-Code
25427 \begin_layout Standard
25428 Noter que l'étiquette n'est émise que pour le premier paragraphe, comme
25429 ce serait le cas pour une théorème, par exemple.
25432 \begin_layout Standard
25433 Pour une liste, nous avons une de ces formes:
25436 \begin_layout LyX-Code
25440 \begin_inset Quotes erd
25444 \begin_inset Quotes erd
25450 \begin_layout LyX-Code
25454 \begin_inset Quotes erd
25458 \begin_inset Quotes erd
25462 \begin_inset Quotes erd
25466 \begin_inset Quotes erd
25469 >Étiquette de liste</labeltag>Premier élément.</itemtag>
25472 \begin_layout LyX-Code
25476 \begin_inset Quotes erd
25480 \begin_inset Quotes erd
25484 \begin_inset Quotes erd
25488 \begin_inset Quotes erd
25491 >Étiquette de liste</labeltag>Second élément.</itemtag>
25494 \begin_layout LyX-Code
25500 \begin_layout LyX-Code
25504 \begin_layout LyX-Code
25508 \begin_inset Quotes erd
25512 \begin_inset Quotes erd
25518 \begin_layout LyX-Code
25522 \begin_inset Quotes erd
25526 \begin_inset Quotes erd
25529 >Étiquette de liste</labeltag><itemtag attr=
25530 \begin_inset Quotes erd
25534 \begin_inset Quotes erd
25537 >Premier élément.</itemtag>
25540 \begin_layout LyX-Code
25544 \begin_inset Quotes erd
25548 \begin_inset Quotes erd
25551 >Étiquette de liste</labeltag><itemtag attr=
25552 \begin_inset Quotes erd
25556 \begin_inset Quotes erd
25559 >Second élément.</itemtag>
25562 \begin_layout LyX-Code
25568 \begin_layout Standard
25569 Noter la différence en ce qui concerne l'ordre des balises
25570 \begin_inset Flex Code
25573 \begin_layout Plain Layout
25580 \begin_inset Flex Code
25583 \begin_layout Plain Layout
25590 L'ordre obtenu dépend du positionnement de
25591 \begin_inset Flex Code
25594 \begin_layout Plain Layout
25601 \begin_inset Flex Code
25604 \begin_layout Plain Layout
25610 est fausse (valeur implicite), vous obtiendrez la première forme, avec
25611 l'étiquette dans l'élément; s'il la valeur est vraie, vous obtiendrez la
25612 seconde forme, avec l'étiquette en dehors de l'élément.
25615 \begin_layout Standard
25616 Les balises et les attributs spécifiques émis pour chaque type de paragraphe
25617 peuvent être contrôlés par les directives de format que nous allons décrire.
25618 Comme indiqué ci-dessus, cependant, \SpecialChar LyX
25619 utilise des valeurs implicites raisonnable
25620 s pour la plupart d'entre elles, vous n'aurez donc pas grand-chose à faire
25621 pour produire un résultat XHTML satisfaisant.
25622 Pensez aux directives disponibles comme un supplément pour obtenir un réglage
25623 à votre convenance.
25626 \begin_layout Description
25629 \begin_inset Flex Code
25632 \begin_layout Plain Layout
25641 \begin_inset Flex Code
25644 \begin_layout Plain Layout
25652 précise les informations d'attribut à émettre avec la balise principale.
25654 \begin_inset Flex Code
25657 \begin_layout Plain Layout
25658 \begin_inset Quotes cld
25662 \begin_inset Quotes crd
25671 Implicitement, \SpecialChar LyX
25673 \begin_inset Newline newline
25677 \begin_inset Flex Code
25680 \begin_layout Plain Layout
25681 \begin_inset Quotes cld
25685 \begin_inset Quotes crd
25694 \begin_inset Flex Code
25697 \begin_layout Plain Layout
25703 est le nom du style en bas de casse, par exemple: chapter.
25704 Ceci ne doit contenir
25708 information de style: utiliser
25709 \begin_inset Flex Code
25712 \begin_layout Plain Layout
25721 \begin_layout Description
25724 \begin_inset Flex Code
25727 \begin_layout Plain Layout
25738 \begin_inset Flex Code
25741 \begin_layout Plain Layout
25750 \begin_inset space \thinspace{}
25754 \begin_inset Flex Code
25757 \begin_layout Plain Layout
25763 ] indique s'il faut émettre l'information CSS implicite engendrée par \SpecialChar LyX
25765 ce style, même si une information complémentaire est explicitement émise
25767 \begin_inset Flex Code
25770 \begin_layout Plain Layout
25777 Positionner cette directive à
25778 \begin_inset Flex Code
25781 \begin_layout Plain Layout
25787 vous permet de modifier ou de compléter la CSS créée, plutôt que de l'écraser
25790 \begin_inset Flex Code
25793 \begin_layout Plain Layout
25802 \begin_layout Description
25805 \begin_inset Flex Code
25808 \begin_layout Plain Layout
25817 \begin_inset Flex Code
25820 \begin_layout Plain Layout
25828 définit la balise utilisée pour les paragraphes ou environnements isolés,
25830 \begin_inset Flex Code
25833 \begin_layout Plain Layout
25839 dans les exemples ci-dessus.
25841 \begin_inset Flex Code
25844 \begin_layout Plain Layout
25853 \begin_layout Description
25856 \begin_inset Flex Code
25859 \begin_layout Plain Layout
25868 \begin_inset Flex Code
25871 \begin_layout Plain Layout
25879 définit les attributs des balises
25880 \begin_inset Flex Code
25883 \begin_layout Plain Layout
25891 \begin_inset Flex Code
25894 \begin_layout Plain Layout
25895 \begin_inset Quotes cld
25898 class=`nomstyle_item'
25899 \begin_inset Quotes crd
25908 Ceci ne doit contenir
25912 information de style: utiliser
25913 \begin_inset Flex Code
25916 \begin_layout Plain Layout
25925 \begin_layout Description
25928 \begin_inset Flex Code
25931 \begin_layout Plain Layout
25940 \begin_inset Flex Code
25943 \begin_layout Plain Layout
25951 définit la balise utilisée pour les étiquettes de paragraphe et d'élément,
25953 \begin_inset Flex Code
25956 \begin_layout Plain Layout
25962 dans les exemples ci-dessus.
25964 \begin_inset Flex Code
25967 \begin_layout Plain Layout
25974 \begin_inset Flex Code
25977 \begin_layout Plain Layout
25984 \begin_inset Flex Code
25987 \begin_layout Plain Layout
25994 \begin_inset Newline newline
25998 \begin_inset Flex Code
26001 \begin_layout Plain Layout
26002 Centered_Top_Environment
26007 , auquel cas elle vaut implicitement
26008 \begin_inset Flex Code
26011 \begin_layout Plain Layout
26020 \begin_layout Description
26023 \begin_inset Flex Code
26026 \begin_layout Plain Layout
26035 \begin_inset Flex Code
26038 \begin_layout Plain Layout
26046 définit les attributs de la balise
26047 \begin_inset Flex Code
26050 \begin_layout Plain Layout
26058 \begin_inset Quotes erd
26062 Ceci ne doit contenir
26066 information de style: utiliser
26067 \begin_inset Flex Code
26070 \begin_layout Plain Layout
26079 \begin_layout Description
26082 \begin_inset Flex Code
26085 \begin_layout Plain Layout
26096 \begin_inset Flex Code
26099 \begin_layout Plain Layout
26108 \begin_inset space \thinspace{}
26112 \begin_inset Flex Code
26115 \begin_layout Plain Layout
26121 ], significatif uniquement pour les environnements de liste, contrôle si
26122 la balise d'étiquetage est émise avant ou dans la balise d'élément.
26123 Ceci est utilisé par exemple dans l'environnement de description, où l'on
26125 \begin_inset Flex Code
26128 \begin_layout Plain Layout
26129 \begin_inset Quotes cld
26132 <dt>\SpecialChar ldots
26133 </dt><dd>\SpecialChar ldots
26135 \begin_inset Quotes crd
26145 \begin_inset Flex Code
26148 \begin_layout Plain Layout
26154 : la balise d'étiquetage est dans la balise d'élément.
26157 \begin_layout Description
26160 \begin_inset Flex Code
26163 \begin_layout Plain Layout
26173 définit l'information à émettre dans la section
26174 \begin_inset Flex Code
26177 \begin_layout Plain Layout
26183 quand ce style est utilisé.
26184 Ceci pourrait être utilisé par exemple pour inclure un bloc
26185 \begin_inset Flex Code
26188 \begin_layout Plain Layout
26194 définissant un gestionnaire
26195 \begin_inset Flex Code
26198 \begin_layout Plain Layout
26207 \begin_layout Description
26210 \begin_inset Flex Code
26213 \begin_layout Plain Layout
26223 définit l'information à émettre dans la section
26224 \begin_inset Flex Code
26227 \begin_layout Plain Layout
26233 quand ce style est utilisé.
26234 Ceci pourrait être utilisé par exemple pour inclure un bloc
26235 \begin_inset Flex Code
26238 \begin_layout Plain Layout
26244 définissant un gestionnaire
26245 \begin_inset Flex Code
26248 \begin_layout Plain Layout
26255 Doit être fermé par
26258 \begin_inset Flex Code
26261 \begin_layout Plain Layout
26274 \begin_layout Description
26277 \begin_inset Flex Code
26280 \begin_layout Plain Layout
26289 \begin_inset Flex Code
26292 \begin_layout Plain Layout
26300 définit la balise utilisé pour l'étiquette principale, qui remplace
26301 \begin_inset Flex Code
26304 \begin_layout Plain Layout
26310 dans les exemples ci-dessus.
26312 \begin_inset Flex Code
26315 \begin_layout Plain Layout
26324 \begin_layout Description
26327 \begin_inset Flex Code
26330 \begin_layout Plain Layout
26341 \begin_inset Flex Code
26344 \begin_layout Plain Layout
26353 \begin_inset space \thinspace{}
26357 \begin_inset Flex Code
26360 \begin_layout Plain Layout
26366 ] identifie ce style comme celui à utiliser pour créer la balise
26367 \begin_inset Flex Code
26370 \begin_layout Plain Layout
26376 dans le fichier XHTML.
26377 Implicitement fausse.
26379 \begin_inset Flex Code
26382 \begin_layout Plain Layout
26388 la positionne à vraie pour l'environnement
26389 \begin_inset Flex Code
26392 \begin_layout Plain Layout
26401 \begin_layout Subsection
26407 \begin_layout Standard
26408 L'exportation XHTML des inserts peut également être contrôlée par l'information
26409 résidant dans les fichiers de format
26413 \begin_layout Plain Layout
26414 Pour le moment, ceci n'est exact que pour les inserts de
26415 \begin_inset Quotes cld
26419 \begin_inset Quotes crd
26422 (les inserts dans lesquels vous pouvez effectuer une saisie), mais n'est
26423 pas exact pour les inserts de
26424 \begin_inset Quotes cld
26428 \begin_inset Quotes crd
26431 (inserts associés à des boîtes de dialogue).
26437 Là encore, \SpecialChar LyX
26438 essaie de produire implicitement un résultat raisonnable, et
26439 il crée des règles CSS implicites.
26440 Mais tout peut être personnalisé.
26443 \begin_layout Standard
26444 Le résultat XHTML produit par \SpecialChar LyX
26445 pour un insert a la forme suivante:
26448 \begin_layout LyX-Code
26452 \begin_inset Quotes erd
26456 \begin_inset Quotes erd
26462 \begin_layout LyX-Code
26472 \begin_layout LyX-Code
26476 \begin_inset Quotes erd
26480 \begin_inset Quotes erd
26485 Contenu de l'insert.
26490 \begin_layout LyX-Code
26496 \begin_layout Standard
26497 Si l'insert permet de saisir plusieurs paragraphes — c'est-à-dire, si
26498 \begin_inset Flex Code
26501 \begin_layout Plain Layout
26507 est vrai — alors le contenu de l'insert sera exporté également en paragraphes
26508 formatés en fonction des styles utilisés pour ces paragraphes (standard,
26509 citation et similaire).
26510 La balise d'étiquetage est bien entendu omise si la paragraphe n'a pas
26511 d'étiquette et, pour le moment, est toujours
26512 \begin_inset Flex Code
26515 \begin_layout Plain Layout
26522 La balise interne est facultative et, implicitement, n'apparaît pas.
26525 \begin_layout Standard
26526 Les balises et attributs spécifiques émis pour chaque insert peuvent être
26527 contrôlés au moyen des directives de format suivantes:
26530 \begin_layout Description
26533 \begin_inset Flex Code
26536 \begin_layout Plain Layout
26547 \begin_inset Flex Code
26550 \begin_layout Plain Layout
26556 ] précise les informations d'attribut à émettre avec la balise principale.
26558 \begin_inset Flex Code
26561 \begin_layout Plain Layout
26562 \begin_inset Quotes cld
26565 class=`moninsert' onclick=`\SpecialChar ldots
26567 \begin_inset Quotes crd
26576 Implicitement, \SpecialChar LyX
26578 \begin_inset Flex Code
26581 \begin_layout Plain Layout
26582 \begin_inset Quotes cld
26586 \begin_inset Quotes crd
26595 \begin_inset Flex Code
26598 \begin_layout Plain Layout
26604 est le nom \SpecialChar LyX
26605 de l'insert en bas de casse et avec les caractères non alphanumériq
26606 ues remplacés par des caractères
26607 \begin_inset Quotes cld
26611 \begin_inset Quotes crd
26614 , par exemple: footnote.
26617 \begin_layout Description
26620 \begin_inset Flex Code
26623 \begin_layout Plain Layout
26634 \begin_inset Flex Code
26637 \begin_layout Plain Layout
26646 \begin_inset space \thinspace{}
26650 \begin_inset Flex Code
26653 \begin_layout Plain Layout
26659 ] indique s'il faut émettre l'information CSS implicite engendrée par \SpecialChar LyX
26661 cet insert, même si une information complémentaire est explicitement émise
26663 \begin_inset Flex Code
26666 \begin_layout Plain Layout
26673 Positionner cette directive à
26674 \begin_inset Flex Code
26677 \begin_layout Plain Layout
26683 vous permet de modifier ou de compléter la CSS créée, plutôt que de l'écraser
26686 \begin_inset Flex Code
26689 \begin_layout Plain Layout
26698 \begin_layout Description
26701 \begin_inset Flex Code
26704 \begin_layout Plain Layout
26715 \begin_inset Flex Code
26718 \begin_layout Plain Layout
26724 ] fixe l'attribut de la balise interne.
26726 \begin_inset Newline newline
26730 \begin_inset Flex Code
26733 \begin_layout Plain Layout
26734 \begin_inset Quotes cld
26737 class=`nominsert_inner'
26738 \begin_inset Quotes crd
26749 \begin_layout Description
26752 \begin_inset Flex Code
26755 \begin_layout Plain Layout
26766 \begin_inset Flex Code
26769 \begin_layout Plain Layout
26775 ] détermine la balise interne, et remplace
26776 \begin_inset Flex Code
26779 \begin_layout Plain Layout
26785 dans les exemples ci-dessus.
26786 Implicitement absente.
26789 \begin_layout Description
26792 \begin_inset Flex Code
26795 \begin_layout Plain Layout
26806 \begin_inset Flex Code
26809 \begin_layout Plain Layout
26816 \begin_inset space \thinspace{}
26820 \begin_inset Flex Code
26823 \begin_layout Plain Layout
26831 ] indique si cet insert représente un bloc autonome de texte (comme une
26832 note de bas de page) ou bien représente du contenu inclus dans le texte
26833 environnant (comme une branche).
26835 \begin_inset Flex Code
26838 \begin_layout Plain Layout
26847 \begin_layout Description
26850 \begin_inset Flex Code
26853 \begin_layout Plain Layout
26864 \begin_inset Flex Code
26867 \begin_layout Plain Layout
26873 ] définit une étiquette pour cet insert, pouvant inclure une référence à
26875 Par exemple, pour une note de bas de page, ce peut être
26876 \begin_inset Flex Code
26879 \begin_layout Plain Layout
26888 Cette directive est facultative, et n'a pas de valeur implicite.
26891 \begin_layout Description
26894 \begin_inset Flex Code
26897 \begin_layout Plain Layout
26907 définit l'information à émettre dans la section
26908 \begin_inset Flex Code
26911 \begin_layout Plain Layout
26917 quand ce style est utilisé.
26918 Ceci pourrait être utilisé par exemple pour inclure un bloc
26919 \begin_inset Flex Code
26922 \begin_layout Plain Layout
26928 définissant un gestionnaire
26929 \begin_inset Flex Code
26932 \begin_layout Plain Layout
26941 \begin_layout Description
26944 \begin_inset Flex Code
26947 \begin_layout Plain Layout
26957 définit l'information CSS à inclure quand ce style est utilisé.
26958 Noter que le contenu sera automatiquement enclos dans un bloc
26959 \begin_inset Flex Code
26962 \begin_layout Plain Layout
26968 créé par la directive, il n'est donc besoin d'inclure que la CSS elle-même.
26971 \begin_layout Description
26974 \begin_inset Flex Code
26977 \begin_layout Plain Layout
26988 \begin_inset Flex Code
26991 \begin_layout Plain Layout
26997 ] définit la balise utilisé pour l'étiquette principale, qui remplace
26998 \begin_inset Flex Code
27001 \begin_layout Plain Layout
27007 dans les exemples ci-dessus.
27008 La valeur implicite dépend du réglage de
27009 \begin_inset Flex Code
27012 \begin_layout Plain Layout
27019 \begin_inset Flex Code
27022 \begin_layout Plain Layout
27028 est vrai, la valeur implicite est
27029 \begin_inset Flex Code
27032 \begin_layout Plain Layout
27038 ; s'il est faux, la valeur implicite est
27039 \begin_inset Flex Code
27042 \begin_layout Plain Layout
27051 \begin_layout Subsection
27055 \begin_layout Standard
27056 Le résultat XHTML pour les flottants peut être contrôlé par les informations
27058 Le résultat a la forme suivante:
27061 \begin_layout LyX-Code
27065 \begin_inset Quotes erd
27069 \begin_inset Quotes erd
27075 \begin_layout LyX-Code
27078 Contenu du flottant.
27081 \begin_layout LyX-Code
27087 \begin_layout Standard
27088 La légende, si elle est présente, est un insert séparé et sera émis en tant
27090 Son apparence pourra être contrôlée par la directive InsetLayout pour les
27091 inserts de légende.
27094 \begin_layout Description
27097 \begin_inset Flex Code
27100 \begin_layout Plain Layout
27109 \begin_inset Flex Code
27112 \begin_layout Plain Layout
27120 précise les informations d'attribut à émettre avec la balise principale.
27122 \begin_inset Flex Code
27125 \begin_layout Plain Layout
27126 \begin_inset Quotes cld
27129 class=`monflottant' onclick=`\SpecialChar ldots
27131 \begin_inset Quotes crd
27140 Implicitement, \SpecialChar LyX
27142 \begin_inset Flex Code
27145 \begin_layout Plain Layout
27146 \begin_inset Quotes cld
27151 class=`float float-typefloat'
27154 \begin_inset Quotes crd
27163 \begin_inset Flex Code
27166 \begin_layout Plain Layout
27172 est le nom \SpecialChar LyX
27173 de l'insert (tel qu'il est déterminé par la déclaration de
27175 \begin_inset CommandInset ref
27177 reference "subsec:Flottants"
27181 ) en bas de casse et avec les caractères non alphanumériques remplacés par
27183 \begin_inset Quotes cld
27187 \begin_inset Quotes crd
27191 \begin_inset Flex Code
27194 \begin_layout Plain Layout
27203 \begin_layout Description
27206 \begin_inset Flex Code
27209 \begin_layout Plain Layout
27219 définit l'information CSS à inclure quand ce flottant est utilisé.
27224 Noter que le contenu sera automatiquement enclos dans un bloc
27225 \begin_inset Flex Code
27228 \begin_layout Plain Layout
27234 créé par la directive, il n'est donc besoin d'inclure que la CSS elle-même.
27237 \begin_layout Description
27240 \begin_inset Flex Code
27243 \begin_layout Plain Layout
27252 \begin_inset Flex Code
27255 \begin_layout Plain Layout
27263 définit la balise utilisé pour l'étiquette principale, qui remplace
27264 \begin_inset Flex Code
27267 \begin_layout Plain Layout
27273 dans les exemples ci-dessus.
27275 \begin_inset Flex Code
27278 \begin_layout Plain Layout
27284 , cette valeur devra rarement être modifiée.
27287 \begin_layout Subsection
27288 Mise en page de la bibliographie
27291 \begin_layout Standard
27292 La bibliographie peut être mise en forme via les blocs
27293 \begin_inset Flex Code
27296 \begin_layout Plain Layout
27304 \begin_inset space ~
27308 \begin_inset CommandInset ref
27310 reference "subsec:Description citation"
27317 \begin_layout Subsection
27318 CSS créés par \SpecialChar LyX
27322 \begin_layout Standard
27323 Nous avons mentionné plusieurs fois que \SpecialChar LyX
27324 créera des règles CSS implicites
27325 pour les paragraphes et les inserts, fondées sur les autres informations
27326 de format fournies.
27327 Ici, nous préciserons quelle information est utilisée par \SpecialChar LyX
27331 \begin_layout Standard
27332 Pour le moment, \SpecialChar LyX
27333 engendre tout seul des CSS seulement pour les informations
27334 de police, en utilisant les directives
27335 \begin_inset Flex Code
27338 \begin_layout Plain Layout
27345 \begin_inset Flex Code
27348 \begin_layout Plain Layout
27355 \begin_inset Flex Code
27358 \begin_layout Plain Layout
27365 \begin_inset Flex Code
27368 \begin_layout Plain Layout
27374 spécifiées dans la déclaration
27375 \begin_inset Flex Code
27378 \begin_layout Plain Layout
27385 \begin_inset space ~
27389 \begin_inset CommandInset ref
27391 reference "subsec:polices"
27395 .) La traduction est essentiellement directe et évidente, par exemple
27396 \begin_inset Flex Code
27399 \begin_layout Plain Layout
27400 \begin_inset Quotes cld
27404 \begin_inset Quotes crd
27413 \begin_inset Flex Code
27416 \begin_layout Plain Layout
27417 \begin_inset Quotes cld
27420 font-family: sans-serif;
27421 \begin_inset Quotes crd
27430 La correspondance entre les tailles en \SpecialChar LyX
27431 et les tailles en CSS est un peu
27432 moins évidente main néanmoins intuitive.
27434 \begin_inset Flex Code
27437 \begin_layout Plain Layout
27444 \begin_inset Flex URL
27447 \begin_layout Plain Layout
27457 \begin_layout Chapter
27458 Insérer un objet externe
27459 \begin_inset CommandInset label
27461 name "chap:Insérer-un-Objet"
27468 \begin_layout Standard
27471 \begin_inset Box Shadowbox
27481 height_special "totalheight"
27486 backgroundcolor "none"
27489 \begin_layout Plain Layout
27490 Avertissement: cette partie des la documentation n'a pas été mise à jour
27491 depuis un certain temps.
27492 Nous espérons qu'elle est toujours correcte, mais ce n'est pas garanti.
27500 \begin_layout Standard
27501 L'utilisation d'éléments créés par des logiciels extérieurs à \SpecialChar LyX
27503 en détail dans le manuel
27508 Cette partie du manuel couvre ce qui se passe derrière la scène pour permettre
27509 d'écrire un mécanisme d'inclusion pour un nouvel élément.
27512 \begin_layout Section
27513 Comment fonctionne-t-il ?
27516 \begin_layout Standard
27517 L'insertion d'objet externe repose sur le concept de
27523 \begin_layout Plain Layout
27524 NdT : Traduction de
27525 \begin_inset Quotes cld
27529 \begin_inset Quotes crd
27540 Un cadre définit comment \SpecialChar LyX
27541 doit s'interfacer avec un type d'objet donné.
27542 Tel qu'il est distribué, \SpecialChar LyX
27543 possède des cadres prédéfinis pour les figures
27544 XFig, pour les diagrammes Dia, pour différents formats d'images rastérisées,
27545 pour gnuplot, et d'autres.
27546 Vous pouvez en consulter la liste avec
27547 \begin_inset Flex Noun
27550 \begin_layout Plain Layout
27551 Insertion\SpecialChar menuseparator
27553 \begin_inset space ~
27562 En outre, il est possible de créer votre propre cadre pour supporter un
27563 type donné d'objet.
27564 Nous décrirons plus loin en détail ce qu'il faut faire, et nous espérons
27565 que vous nous enverrez tous les cadres que vous créerez pour que nous puissions
27566 les inclure dans de futures versions de \SpecialChar LyX
27570 \begin_layout Standard
27571 Un autre concept de base est qu'il faut faire la distinction entre le fichier
27572 d'origine qui sert de point de départ et le fichier transformé qui est
27573 inclus avec votre document exporté ou imprimé.
27574 Voyons par exemple une figure produite avec
27575 \begin_inset Flex Code
27578 \begin_layout Plain Layout
27585 L'application XFig elle-même travaille sur un fichier avec l'extension
27587 \begin_inset Flex Code
27590 \begin_layout Plain Layout
27597 Dans XFig, vous créez et modifiez votre figure.
27598 Quand c'est fini, vous enregistrez le fichier
27599 \begin_inset Flex Code
27602 \begin_layout Plain Layout
27609 Quand vous voulez inclure la figure dans votre document, vous invoquez
27611 \begin_inset Flex Code
27614 \begin_layout Plain Layout
27620 pour créer un fichier PostScript qui sera aisément inclus dans votre fichier
27623 Dans ce cas, le fichier
27624 \begin_inset Flex Code
27627 \begin_layout Plain Layout
27633 est le fichier d'origine, et le fichier PostScript est le fichier transformé.
27636 \begin_layout Standard
27637 Cette distinction est importante pour pouvoir mettre à jour l'objet pendant
27638 l'écriture de votre document.
27639 En outre, elle vous donne la flexibilité requise pour supporter des formats
27640 d'exportation différents.
27641 Par exemple, dans le cas de l'exportation en Ascii, ce n'est pas vraiment
27642 une super idée d'inclure la figure en PostScript brut.
27643 À la place, vous préférerez soit inclure une référence à la figure, soit
27644 essayer un convertisseur graphique vers Ascii pour rendre un résultat final
27645 approchant du graphique d'origine.
27646 L'insertion d'objet externe vous permet de le faire, car il est paramétré
27647 avec les différents formats d'exportation supportés par \SpecialChar LyX
27651 \begin_layout Standard
27652 En plus de supporter la génération de fichiers transformés différents selon
27653 le format d'exportation, l'insertion d'objet externe travaille en étroite
27654 collaboration avec les applications d'édition et de visualisation.
27655 Dans le cas d'une figure XFig, vous pouvez invoquer Xfig sur le fichier
27656 d'origine d'un simple clic depuis la fenêtre d'objet externe de \SpecialChar LyX
27658 visualiser le fichier transformé PostScript avec Ghostview d'un autre clic.
27659 Il n'y a plus à se bagarrer avec la ligne de commande ou avec des explorateurs
27660 de fichiers pour localiser et manipuler le fichier d'origine et le fichier
27662 De cette façon, vous pouvez enfin profiter à plein des nombreuses applications
27663 différentes qui servent à la production de documents, et serez finalement
27667 \begin_layout Section
27668 Le fichier de configuration d'un cadre externe
27671 \begin_layout Standard
27672 Il est assez facile de définir de nouveaux cadres externes dans \SpecialChar LyX
27674 Cependant, sachez que si vous le faites de façon négligente, vous introduirez
27679 une faille de sécurité facilement exploitable.
27680 Avant de commencer, lisez donc plus bas ce qui concerne la sécurité
27681 \begin_inset space ~
27685 \begin_inset CommandInset ref
27686 LatexCommand pageref
27687 reference "sec:La-question-de"
27694 \begin_layout Standard
27695 Ceci dit, nous vous encourageons à créer des cadres intéressants et à nous
27699 \begin_layout Standard
27700 Les cadres externes sont définis dans le fichier
27703 \begin_inset Flex Code
27706 \begin_layout Plain Layout
27714 files that are stored in the
27715 \begin_inset Flex Code
27718 \begin_layout Plain Layout
27721 LyXDir/lib/xtemplates/
27727 Each template is defined in a file of its own.
27736 \begin_layout Plain Layout
27737 NdT : Nous rappelons que
27738 \begin_inset Quotes cld
27742 \begin_inset Quotes crd
27745 est la traduction de
27746 \begin_inset Quotes cld
27750 \begin_inset Quotes crd
27753 dans ce contexte de l'objet externe.
27761 Vous pouvez mettre votre propre version dans
27764 \begin_inset Flex Code
27767 \begin_layout Plain Layout
27775 or copy existing templates to that directory in order to modify them.
27781 \begin_layout Standard
27782 Un fichier de configuration de cadre typique se présente comme ceci:
27785 \begin_layout LyX-Code
27791 \begin_layout LyX-Code
27794 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
27797 \begin_layout LyX-Code
27803 \begin_layout LyX-Code
27809 \begin_layout LyX-Code
27815 \begin_layout LyX-Code
27821 \begin_layout LyX-Code
27827 \begin_layout LyX-Code
27830 AutomaticProduction true
27833 \begin_layout LyX-Code
27839 \begin_layout LyX-Code
27845 \begin_layout LyX-Code
27851 \begin_layout LyX-Code
27854 TransformCommand Rotate RotationLatexCommand
27857 \begin_layout LyX-Code
27860 TransformCommand Resize ResizeLatexCommand
27863 \begin_layout LyX-Code
27866 Product "$$RotateFront$$ResizeFront
27869 \begin_layout LyX-Code
27876 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
27879 \begin_layout LyX-Code
27882 $$ResizeBack$$RotateBack"
27885 \begin_layout LyX-Code
27891 \begin_layout LyX-Code
27894 UpdateResult "$$AbsPath$$Basename.pstex_t"
27897 \begin_layout LyX-Code
27900 Requirement "graphicx"
27903 \begin_layout LyX-Code
27906 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27909 \begin_layout LyX-Code
27912 ReferencedFile latex "$$AbsPath$$Basename.eps"
27915 \begin_layout LyX-Code
27918 ReferencedFile dvi "$$AbsPath$$Basename.eps"
27921 \begin_layout LyX-Code
27927 \begin_layout LyX-Code
27933 \begin_layout LyX-Code
27936 TransformCommand Rotate RotationLatexCommand
27939 \begin_layout LyX-Code
27942 TransformCommand Resize ResizeLatexCommand
27945 \begin_layout LyX-Code
27948 Product "$$RotateFront$$ResizeFront
27951 \begin_layout LyX-Code
27958 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
27961 \begin_layout LyX-Code
27964 $$ResizeBack$$RotateBack"
27967 \begin_layout LyX-Code
27970 UpdateFormat pdftex
27973 \begin_layout LyX-Code
27976 UpdateResult "$$AbsPath$$Basename.pdftex_t"
27979 \begin_layout LyX-Code
27982 Requirement "graphicx"
27985 \begin_layout LyX-Code
27988 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
27991 \begin_layout LyX-Code
27994 ReferencedFile latex "$$AbsPath$$Basename.pdf"
27997 \begin_layout LyX-Code
28003 \begin_layout LyX-Code
28009 \begin_layout LyX-Code
28012 Product "$$Contents(
28014 "$$AbsPath$$Basename.asc
28019 \begin_layout LyX-Code
28022 UpdateFormat asciixfig
28025 \begin_layout LyX-Code
28028 UpdateResult "$$AbsPath$$Basename.asc"
28031 \begin_layout LyX-Code
28037 \begin_layout LyX-Code
28043 \begin_layout LyX-Code
28046 Product "<graphic fileref=
28048 "$$AbsOrRelPathMaster$$Basename.eps
28053 \begin_layout LyX-Code
28059 \begin_layout LyX-Code
28065 \begin_layout LyX-Code
28068 UpdateResult "$$AbsPath$$Basename.eps"
28071 \begin_layout LyX-Code
28074 ReferencedFile docbook "$$AbsPath$$Basename.eps"
28077 \begin_layout LyX-Code
28080 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
28083 \begin_layout LyX-Code
28089 \begin_layout LyX-Code
28092 Product "[XFig: $$FName]"
28095 \begin_layout LyX-Code
28101 \begin_layout LyX-Code
28107 \begin_layout Standard
28108 Comme vous pouvez le constater, le cadre est inséré entre
28109 \begin_inset Flex Code
28112 \begin_layout Plain Layout
28122 \begin_inset Flex Code
28125 \begin_layout Plain Layout
28134 Il contient un en-tête spécifiant quelques réglages généraux et, pour chaque
28135 format primaire de document reconnu, une section
28136 \begin_inset Flex Code
28139 \begin_layout Plain Layout
28149 \begin_inset Flex Code
28152 \begin_layout Plain Layout
28163 \begin_layout Subsection
28167 \begin_layout Description
28170 \begin_inset Flex Code
28173 \begin_layout Plain Layout
28176 AutomaticProduction
28177 \begin_inset space ~
28187 indique si le fichier représenté par le cadre doit être créé par \SpecialChar LyX
28189 Cette directive doit apparaître une et une seule fois.
28192 \begin_layout Description
28195 \begin_inset Flex Code
28198 \begin_layout Plain Layout
28202 \begin_inset space ~
28212 précise un patron global utilisé dans l'échange dans la spécification des
28213 fichiers pour filtrer les fichiers désignés.
28214 S'il y a plus d'un suffixe possible (e.g.
28216 \begin_inset Flex Code
28219 \begin_layout Plain Layout
28228 \begin_inset Flex Code
28231 \begin_layout Plain Layout
28239 ), utiliser une syntaxe comme
28240 \begin_inset Flex Code
28243 \begin_layout Plain Layout
28252 Cette directive doit apparaître une et une seule fois.
28255 \begin_layout Description
28258 \begin_inset Flex Code
28261 \begin_layout Plain Layout
28265 \begin_inset space ~
28275 fixe le texte apparaissant dans le bouton.
28276 Cette directive doit apparaître une et une seule fois.
28279 \begin_layout Description
28282 \begin_inset Flex Code
28285 \begin_layout Plain Layout
28289 \begin_inset space ~
28293 \begin_inset space ~
28303 décrit le texte d'aide utilisé dans la fenêtre de dialogue
28304 \begin_inset Quotes cld
28308 \begin_inset Quotes crd
28312 Fournir suffisamment d'informations pour que l'utilisateur comprenne ce
28313 que le cadre peut faire pour lui.
28314 Cette directive doit apparaître une et une seule fois.
28317 \begin_layout Description
28320 \begin_inset Flex Code
28323 \begin_layout Plain Layout
28327 \begin_inset space ~
28337 indique le format du fichier original.
28338 Ce doit être le nom d'un format reconnu par \SpecialChar LyX
28340 \begin_inset space ~
28344 \begin_inset CommandInset ref
28346 reference "sec:Formats"
28352 \begin_inset Quotes eld
28356 \begin_inset Flex Code
28359 \begin_layout Plain Layout
28368 \begin_inset Quotes erd
28371 si le cadre peut gérer des fichiers originaux dans plus d'un format.
28373 tentera d'analyser le fichier pour en déduire le format dans ce cas.
28374 Cette directive doit apparaître une et une seule fois.
28377 \begin_layout Description
28380 \begin_inset Flex Code
28383 \begin_layout Plain Layout
28387 \begin_inset space ~
28397 est un nom original pour le cadre.
28398 Il ne soit pas contenir de macros de substitution (voir ci-après).
28401 \begin_layout Description
28404 \begin_inset Flex Code
28407 \begin_layout Plain Layout
28411 \begin_inset space ~
28414 Rotate|Resize|Clip|Extra
28421 spécifie quelles transformations sont reconnues par ce cadre.
28422 Elle peut apparaître zéro ou plusieurs fois.
28423 Elle active les options correspondantes dans la fenêtre de dialogue.
28425 \begin_inset Flex Code
28428 \begin_layout Plain Layout
28436 doit avoir soit une directive
28437 \begin_inset Flex Code
28440 \begin_layout Plain Layout
28448 correspondante, soit une directive
28449 \begin_inset Flex Code
28452 \begin_layout Plain Layout
28461 \begin_inset Flex Code
28464 \begin_layout Plain Layout
28473 Sinon, la transformation ne sera pas reconnue par ce cadre.
28477 \begin_layout Subsection
28481 \begin_layout Description
28484 \begin_inset Flex Code
28487 \begin_layout Plain Layout
28491 \begin_inset space ~
28494 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
28501 décrit le format de document primaire relevant de cette définition de format.
28502 Tous les cadres n'ont pas de représentation raisonnable dans tous les formats
28503 de fichier documentaire.
28504 Définissez cependant une section
28505 \begin_inset Flex Code
28508 \begin_layout Plain Layout
28516 pour tous les formats, et utilisez un texte bidon lorsqu'il n'existe pas
28518 Ainsi vous verrez au minimum une référence à l'objet externe dans le document
28522 \begin_layout Description
28525 \begin_inset Flex Code
28528 \begin_layout Plain Layout
28532 \begin_inset space ~
28540 \begin_inset space ~
28554 définit une macro additionnelle
28555 \begin_inset Flex Code
28558 \begin_layout Plain Layout
28570 pour la substitution par
28571 \begin_inset Flex Code
28574 \begin_layout Plain Layout
28584 \begin_inset Flex Code
28587 \begin_layout Plain Layout
28599 peut elle-même contenir des macros de substitution.
28600 L'avantage par rapport à l'usage direct de
28601 \begin_inset Flex Code
28604 \begin_layout Plain Layout
28617 \begin_inset Flex Code
28620 \begin_layout Plain Layout
28628 est que la valeur substituée par
28629 \begin_inset Flex Code
28632 \begin_layout Plain Layout
28644 est nettoyée de sorte qu'elle est un argument facultatif valide dans le
28645 format documentaire.
28646 Cette directive doit apparaître une et une seule fois.
28649 \begin_layout Description
28652 \begin_inset Flex Code
28655 \begin_layout Plain Layout
28659 \begin_inset space ~
28669 spécifie le texte inséré dans le document exporté.
28670 C'est en fait la directive la plus importante et elle peut être assez compliqué
28672 Cette directive doit apparaître une et une seule fois.
28675 \begin_layout Description
28678 \begin_inset Flex Code
28681 \begin_layout Plain Layout
28685 \begin_inset space ~
28699 spécifie un élément de préambule qui sera inclus dans le préambule \SpecialChar LaTeX
28701 Il doit être défini par
28702 \begin_inset Flex Code
28705 \begin_layout Plain Layout
28715 \begin_inset Flex Code
28718 \begin_layout Plain Layout
28727 Cette directive doit apparaître une et une seule fois.
28730 \begin_layout Description
28733 \begin_inset Flex Code
28736 \begin_layout Plain Layout
28740 \begin_inset space ~
28744 \begin_inset space ~
28754 désigne les fichiers créés par la procédure de conversion et requis par
28755 un format d'exportation particulier.
28756 Si le nom d'un fichier est relatif, il est interprété relativement au document
28758 Cette directive peut apparaître zéro ou plusieurs fois.
28761 \begin_layout Description
28764 \begin_inset Flex Code
28767 \begin_layout Plain Layout
28771 \begin_inset space ~
28781 désigne le nom d'un paquetage \SpecialChar LaTeX
28783 Le paquetage est inclus via
28784 \begin_inset Flex Code
28787 \begin_layout Plain Layout
28797 dans le préambule \SpecialChar LaTeX
28799 Cette directive peut apparaître zéro ou plusieurs fois.
28802 \begin_layout Description
28805 \begin_inset Flex Code
28808 \begin_layout Plain Layout
28812 \begin_inset space ~
28816 \begin_inset space ~
28819 RotationLatexCommand
28826 spécifie que la commande \SpecialChar LaTeX
28827 native doit être utilisée pour effectuer les
28829 Cette directive peut apparaître une fois ou pas du tout.
28832 \begin_layout Description
28835 \begin_inset Flex Code
28838 \begin_layout Plain Layout
28842 \begin_inset space ~
28846 \begin_inset space ~
28856 spécifie que la commande \SpecialChar LaTeX
28857 native doit être utilisée pour effectuer les
28858 changements de taille.
28859 Cette directive peut apparaître une fois ou pas du tout.
28862 \begin_layout Description
28865 \begin_inset Flex Code
28868 \begin_layout Plain Layout
28872 \begin_inset space ~
28876 \begin_inset space ~
28879 RotationLatexOption
28886 spécifie que les rotations sont effectuées via un paramètre facultatif.
28887 Cette directive peut apparaître une fois ou pas du tout.
28893 \begin_layout Description
28896 \begin_inset Flex Code
28899 \begin_layout Plain Layout
28903 \begin_inset space ~
28907 \begin_inset space ~
28917 spécifie que les changements de taille sont effectuées via un paramètre
28919 Cette directive peut apparaître une fois ou pas du tout
28922 \begin_layout Description
28925 \begin_inset Flex Code
28928 \begin_layout Plain Layout
28932 \begin_inset space ~
28936 \begin_inset space ~
28946 spécifie que les recadrages sont effectuées via un paramètre facultatif.
28947 Cette directive peut apparaître une fois ou pas du tout
28952 \begin_layout Description
28955 \begin_inset Flex Code
28958 \begin_layout Plain Layout
28962 \begin_inset space ~
28966 \begin_inset space ~
28976 spécifie qu'un paramètre supplémentaire facultatif est utilisé.
28977 Cette directive peut apparaître une fois ou pas du tout
28982 \begin_layout Description
28985 \begin_inset Flex Code
28988 \begin_layout Plain Layout
28992 \begin_inset space ~
29002 spécifie le format de fichier du fichier converti.
29003 Ce doit être le nom d'un format reconnu par \SpecialChar LyX
29004 (voir la fenêtre de dialogue
29006 \begin_inset Flex Noun
29009 \begin_layout Plain Layout
29012 Outils\SpecialChar menuseparator
29013 Préférences\SpecialChar menuseparator
29015 \begin_inset space ~
29019 \begin_inset space ~
29022 fichiers\SpecialChar menuseparator
29024 \begin_inset space ~
29028 \begin_inset space ~
29037 Cette directive doit apparaître une et une seule fois.
29038 Si le format du fichier résultant est PDF, vous devez spécifier le format
29042 \begin_inset Flex Code
29045 \begin_layout Plain Layout
29055 , qui est le format PDF utilisé pour insérer des graphiques.
29056 Les autres formats PDF définis servent aux exportations du document.
29059 \begin_layout Description
29062 \begin_inset Flex Code
29065 \begin_layout Plain Layout
29069 \begin_inset space ~
29079 spécifie le nom du fichier converti.
29080 Le nom de fichier doit être absolu.
29081 Cette directive doit apparaître une et une seule fois.
29084 \begin_layout Subsection
29085 Définitions du préambule
29088 \begin_layout Standard
29089 La configuration du cadre externe peut contenir des définitions additionnelles
29090 de préambule incluses dans
29091 \begin_inset Flex Code
29094 \begin_layout Plain Layout
29104 \begin_inset Flex Code
29107 \begin_layout Plain Layout
29116 Elle peuvent être utilisées par les cadres dans la section
29117 \begin_inset Flex Code
29120 \begin_layout Plain Layout
29131 \begin_layout Section
29132 Le mécanisme de substitution
29135 \begin_layout Standard
29136 Quand la fenêtre d'objet externe invoque un programme externe, il le fait
29137 selon la commande définie dans le fichier de configuration des cadres.
29138 Ces commandes peuvent contenir diverses macros qui sont interprétées avant
29140 Les commandes sont toujours exécutées dans le répertoire du document.
29143 \begin_layout Standard
29144 Ainsi, quand un objet externe est affiché, un mécanisme de substitution
29145 génère son nom, et la plupart des autres directives reconnaissent la substituti
29146 on de manière similaire.
29149 \begin_layout Standard
29150 Les macros disponibles sont les suivantes :
29153 \begin_layout Description
29156 \begin_inset Flex Code
29159 \begin_layout Plain Layout
29162 $$AbsOrRelPathMaster
29169 est le est le chemin d'accès, absolu ou relatif au document maître \SpecialChar LyX
29173 \begin_layout Description
29176 \begin_inset Flex Code
29179 \begin_layout Plain Layout
29182 $$AbsOrRelPathParent
29189 est le est le chemin d'accès, absolu ou relatif au document \SpecialChar LyX
29193 \begin_layout Description
29196 \begin_inset Flex Code
29199 \begin_layout Plain Layout
29209 est le chemin d'accès absolu.
29212 \begin_layout Description
29215 \begin_inset Flex Code
29218 \begin_layout Plain Layout
29228 est le nom du fichier sans chemin d'accès et sans suffixe.
29231 \begin_layout Description
29234 \begin_inset Flex Code
29237 \begin_layout Plain Layout
29243 \begin_inset Quotes cld
29247 \begin_inset Quotes crd
29257 la macro dépliera le contenu du fichier de nom
29258 \begin_inset Flex Code
29261 \begin_layout Plain Layout
29270 \begin_layout Description
29273 \begin_inset Flex Code
29276 \begin_layout Plain Layout
29286 est le suffixe (point inclus).
29289 \begin_layout Description
29292 \begin_inset Flex Code
29295 \begin_layout Plain Layout
29306 \begin_inset Quotes cld
29310 \begin_inset Quotes crd
29313 si le fichier est en format JPEG, sinon sera la chaîne
29314 \begin_inset Quotes cld
29318 \begin_inset Quotes crd
29322 Ceci est utile pour éviter des conversions inutiles pour les formats de
29323 sortie admettant à la fois les types PNG et JPEG.
29324 Le modèle prédéfini
29325 \begin_inset Quotes cld
29329 \begin_inset Quotes crd
29332 utilise cette macro avec le moteur pdf\SpecialChar TeX
29336 \begin_layout Description
29339 \begin_inset Flex Code
29342 \begin_layout Plain Layout
29352 est le nom du fichier spécifié dans la fenêtre d'objet externe.
29353 Il est soit absolu, soit relatif au document \SpecialChar LyX
29357 \begin_layout Description
29360 \begin_inset Flex Code
29363 \begin_layout Plain Layout
29374 \begin_inset Quotes cld
29378 \begin_inset Quotes crd
29382 \begin_inset Flex Code
29385 \begin_layout Plain Layout
29393 (absolu ou relatif au document \SpecialChar LyX
29397 \begin_layout Description
29400 \begin_inset Flex Code
29403 \begin_layout Plain Layout
29413 est le chemin d'accès relatif au document maître \SpecialChar LyX
29417 \begin_layout Description
29420 \begin_inset Flex Code
29423 \begin_layout Plain Layout
29433 est le chemin d'accès relatif au document \SpecialChar LyX
29437 \begin_layout Description
29440 \begin_inset Flex Code
29443 \begin_layout Plain Layout
29453 désigne le chemin absolu du répertoire système.
29454 Typiquement utilisé pour pouvoir trouver les différents scripts auxiliaires
29455 fournis avec \SpecialChar LyX
29459 \begin_layout Description
29462 \begin_inset Flex Code
29465 \begin_layout Plain Layout
29475 est le nom et le chemin absolu d'un fichier temporaire qui sera automatiquement
29476 effacé quand le document sera fermé, ou l'objet externe effacé.
29479 \begin_layout Standard
29480 Toutes la macros de chemin contiennent un séparateur de répertoire final,
29481 vous pouvez donc construire par exemple le nom de fichier absolu avec
29482 \begin_inset Flex Code
29485 \begin_layout Plain Layout
29488 $$AbsPath$$Basename$$Extension
29496 \begin_layout Standard
29497 Les macros ci-dessus sont substituées dans toutes les directives sauf indiqué.
29499 \begin_inset Flex Code
29502 \begin_layout Plain Layout
29510 reconnaît également les substitutions suivantes si elles sont autorisées
29512 \begin_inset Flex Code
29515 \begin_layout Plain Layout
29524 \begin_inset Flex Code
29527 \begin_layout Plain Layout
29538 \begin_layout Description
29541 \begin_inset Flex Code
29544 \begin_layout Plain Layout
29554 partie initiale de la commande de changement de taille.
29557 \begin_layout Description
29560 \begin_inset Flex Code
29563 \begin_layout Plain Layout
29573 partie finale de la commande de changement de taille.
29576 \begin_layout Description
29579 \begin_inset Flex Code
29582 \begin_layout Plain Layout
29592 partie initiale de la commande de rotation.
29595 \begin_layout Description
29598 \begin_inset Flex Code
29601 \begin_layout Plain Layout
29611 partie finale de la commande de rotation.
29614 \begin_layout Standard
29615 La valeur de la chaîne de la directive
29616 \begin_inset Flex Code
29619 \begin_layout Plain Layout
29627 reconnaît également les substitutions suivantes si elles sont autorisées
29631 \begin_inset Flex Code
29634 \begin_layout Plain Layout
29643 \begin_inset Flex Code
29646 \begin_layout Plain Layout
29657 \begin_layout Description
29660 \begin_inset Flex Code
29663 \begin_layout Plain Layout
29673 option de recadrage.
29676 \begin_layout Description
29677 \begin_inset Flex Code
29680 \begin_layout Plain Layout
29688 option supplémentaire.
29691 \begin_layout Description
29692 \begin_inset Flex Code
29695 \begin_layout Plain Layout
29703 option de changement de taille.
29706 \begin_layout Description
29707 \begin_inset Flex Code
29710 \begin_layout Plain Layout
29718 option de rotation.
29721 \begin_layout Standard
29722 Vous pouvez vous demander pourquoi les macros de chemin d'accès sont aussi
29724 Il y a deux raisons principales:
29727 \begin_layout Enumerate
29728 les chemins d'accès relatifs et absolus doivent rester relatifs et absolus,
29730 Les utilisateurs peuvent avoir des raisons de préférer l'un ou l'autre.
29731 Les chemins relatifs sont utiles pour des documents portables sur différentes
29732 machines, par exemple.
29733 Les chemins absolus peuvent être requis par certains logiciels;
29736 \begin_layout Enumerate
29738 traite les chemins d'accès relatifs différemment de \SpecialChar LyX
29739 et d'autres logiciels
29740 dans des fichiers inclus encapsulés.
29741 Pour \SpecialChar LyX
29742 , par exemple, un chemin relatif est toujours relatif au document
29743 qui contient le nom de fichier.
29744 Pour \SpecialChar LaTeX
29745 , il est toujours relatif au document maître.
29746 Ces deux définitions sont identiques si vous n'avez qu'un seul document.,
29747 mais diffèrent si vous avez un document maître qui inclut des sous-documents.
29748 Ceci signifie que les chemins relatifs doivent être transformés pour être
29749 transmis à \SpecialChar LaTeX
29751 Heureusement \SpecialChar LyX
29752 fait ceci automatiquement si vous choisissez les macros de
29753 substitution correctes.
29756 \begin_layout Standard
29757 Donc, quelle macro faut-il choisir dans une nouvelle définition de cadre?
29758 La règle n'est pas difficile:
29761 \begin_layout Itemize
29763 \begin_inset Flex Code
29766 \begin_layout Plain Layout
29774 si un chemin absolu est requis;
29777 \begin_layout Itemize
29779 \begin_inset Flex Code
29782 \begin_layout Plain Layout
29785 $$AbsOrRelPathMaster
29790 si la chaîne substituée est du type entrée pour \SpecialChar LaTeX
29794 \begin_layout Itemize
29796 \begin_inset Flex Code
29799 \begin_layout Plain Layout
29802 $$AbsOrRelPathParent
29807 pour préserver le choix de l'utilisateur.
29810 \begin_layout Standard
29811 Des cas spéciaux existent pour lesquels cette règle n'est pas valable, et
29812 par exemple lorsque des chemins relatifs sont requis, mais elle fonctionne
29813 correctement d'habitude.
29814 Un exemple de cas tordu est la directive
29815 \begin_inset Flex Code
29818 \begin_layout Plain Layout
29821 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
29826 dans le cadre Xfig indiqué ci-dessus: il n'est pas possible d'utiliser
29827 le nom absolu parce que la copieur pour les fichiers
29828 \begin_inset Flex Code
29831 \begin_layout Plain Layout
29839 nécessite le nom relatif pour réécrire le contenu du fichier.
29842 \begin_layout Section
29843 La question de la sécurité
29844 \begin_inset CommandInset label
29846 name "sec:La-question-de"
29853 \begin_layout Standard
29854 L'insertion d'objet externe crée une interface avec un paquet de programmes
29855 externes et le fait de manière automatique, nous devons donc en examiner
29856 les conséquences en matière de sécurité.
29857 En particulier, comme vous avez la possibilité d'inclure vos propres noms
29858 de fichier ou de paramètres et qu'ils sont interprétés pour former une
29859 commande, il semble possible de créer un document malveillant qui exécute
29860 des commandes indésirables quand un utilisateur le visualise ou l'imprime.
29861 C'est quelque chose que nous voulons absolument éviter.
29864 \begin_layout Standard
29865 Cependant, comme les commandes du programme externe sont définies seulement
29866 dans le fichier de configuration des cadres, il n'y a pas de problème de
29867 sécurité si \SpecialChar LyX
29868 est configuré correctement avec seulement des cadres sûrs.
29869 Ceci parce que les programmes externes sont invoqués via l'appel système
29871 \begin_inset Flex Code
29874 \begin_layout Plain Layout
29880 et non via l'appel système
29881 \begin_inset Flex Code
29884 \begin_layout Plain Layout
29891 Il n'est donc pas possible d'exécuter des commandes arbitraires via le
29892 shell à partir du nom de fichier ou des paramètres.
29895 \begin_layout Standard
29896 Ceci implique aussi qu'il y a des restrictions dans les commandes définissables
29897 dans un cadre d'objet externe.
29898 En particulier, les pipes et les redirections ne sont pas disponibles.
29899 C'était obligatoire pour que \SpecialChar LyX
29901 Si vous voulez utiliser quelques-unes des fonctions du shell, vous devez
29902 écrire un script sûr pour le faire de manière contrôlée, puis définir ce
29903 script comme commande.
29907 \begin_layout Standard
29908 Il est possible de créer un cadre qui interagit directement avec le shell,
29909 mais comme cela permettrait à un utilisateur malveillant d'exécuter des
29910 commandes arbitraires en écrivant des noms de fichier ou des paramètres
29911 bien choisis, nous vous recommandons d'utiliser en général des scripts
29912 sûrs qui fonctionnent avec l'appel système
29913 \begin_inset Flex Code
29916 \begin_layout Plain Layout
29922 d'une manière contrôlée.
29923 Bien sûr, si vous êtes dans un environnement dans lequel vous avez confiance,
29924 il est tentant de ne pas se fouler et d'utiliser des scripts shell ordinaires.
29925 Si vous faites cela, sachez que vous allez
29929 créer dans votre système une faille de sécurité facile à exploiter.
29930 Il est évident que de tels cadres non sécurisés ne seront jamais inclus
29931 dans la distribution standard de \SpecialChar LyX
29932 , même si nous encourageons les gens à
29933 nous proposer de nouveaux cadres dans la tradition du logiciel libre.
29934 Mais \SpecialChar LyX
29935 tel que vous vous le procurez par les voies officielles de distribution
29936 ne contiendra jamais de cadres non sécurisés.
29939 \begin_layout Standard
29940 L'insertion d'objet externe est un outil très puissant, et vous devez faire
29941 attention à ne pas mettre en péril la sécurité avec cette puissance.
29942 Une légère erreur dans une seule ligne d'un script apparemment inoffensif
29943 peut ouvrir la voie à d'énormes problèmes.
29944 Si vous n'avez pas une compréhension claire de ce qui est en jeu, nous
29945 vous recommandons de consulter un professionnel de la sécurité, ou de contacter
29946 l'équipe de développement de \SpecialChar LyX
29947 si vous vous demandez si votre cadre est
29949 Faites le avant de l'utiliser dans un environnement que vous ne contrôlez
29953 \begin_layout Chapter
29955 Liste des fonctions utilisables dans les styles
29956 \begin_inset CommandInset label
29958 name "chap:List-of-functions"
29965 \begin_layout Standard
29967 \begin_inset Tabular
29968 <lyxtabular version="3" rows="11" columns="8">
29969 <features tabularvalignment="middle">
29970 <column alignment="left" valignment="top">
29971 <column alignment="left" valignment="top">
29972 <column alignment="left" valignment="top">
29973 <column alignment="left" valignment="top">
29974 <column alignment="left" valignment="top">
29975 <column alignment="left" valignment="top">
29976 <column alignment="left" valignment="top">
29977 <column alignment="left" valignment="top">
29979 <cell alignment="left" valignment="top" usebox="none">
29982 \begin_layout Plain Layout
29988 <cell alignment="left" valignment="top" usebox="none">
29991 \begin_layout Plain Layout
29997 <cell alignment="left" valignment="top" usebox="none">
30000 \begin_layout Plain Layout
30006 <cell alignment="left" valignment="top" usebox="none">
30009 \begin_layout Plain Layout
30015 <cell alignment="center" valignment="top" usebox="none">
30018 \begin_layout Plain Layout
30024 <cell alignment="center" valignment="top" usebox="none">
30027 \begin_layout Plain Layout
30033 <cell alignment="center" valignment="top" usebox="none">
30036 \begin_layout Plain Layout
30042 <cell alignment="center" valignment="top" usebox="none">
30045 \begin_layout Plain Layout
30053 <cell alignment="left" valignment="top" usebox="none">
30056 \begin_layout Plain Layout
30062 <cell alignment="left" valignment="top" usebox="none">
30065 \begin_layout Plain Layout
30071 <cell alignment="left" valignment="top" usebox="none">
30074 \begin_layout Plain Layout
30080 <cell alignment="left" valignment="top" usebox="none">
30083 \begin_layout Plain Layout
30089 <cell alignment="center" valignment="top" usebox="none">
30092 \begin_layout Plain Layout
30098 <cell alignment="center" valignment="top" usebox="none">
30101 \begin_layout Plain Layout
30107 <cell alignment="center" valignment="top" usebox="none">
30110 \begin_layout Plain Layout
30116 <cell alignment="center" valignment="top" usebox="none">
30119 \begin_layout Plain Layout
30127 <cell alignment="left" valignment="top" usebox="none">
30130 \begin_layout Plain Layout
30136 <cell alignment="left" valignment="top" usebox="none">
30139 \begin_layout Plain Layout
30145 <cell alignment="left" valignment="top" usebox="none">
30148 \begin_layout Plain Layout
30154 <cell alignment="left" valignment="top" usebox="none">
30157 \begin_layout Plain Layout
30163 <cell alignment="center" valignment="top" usebox="none">
30166 \begin_layout Plain Layout
30172 <cell alignment="center" valignment="top" usebox="none">
30175 \begin_layout Plain Layout
30181 <cell alignment="center" valignment="top" usebox="none">
30184 \begin_layout Plain Layout
30190 <cell alignment="center" valignment="top" usebox="none">
30193 \begin_layout Plain Layout
30201 <cell alignment="left" valignment="top" usebox="none">
30204 \begin_layout Plain Layout
30210 <cell alignment="left" valignment="top" usebox="none">
30213 \begin_layout Plain Layout
30219 <cell alignment="left" valignment="top" usebox="none">
30222 \begin_layout Plain Layout
30228 <cell alignment="left" valignment="top" usebox="none">
30231 \begin_layout Plain Layout
30237 <cell alignment="center" valignment="top" usebox="none">
30240 \begin_layout Plain Layout
30246 <cell alignment="center" valignment="top" usebox="none">
30249 \begin_layout Plain Layout
30255 <cell alignment="center" valignment="top" usebox="none">
30258 \begin_layout Plain Layout
30264 <cell alignment="center" valignment="top" usebox="none">
30267 \begin_layout Plain Layout
30275 <cell alignment="left" valignment="top" usebox="none">
30278 \begin_layout Plain Layout
30284 <cell alignment="left" valignment="top" usebox="none">
30287 \begin_layout Plain Layout
30293 <cell alignment="left" valignment="top" usebox="none">
30296 \begin_layout Plain Layout
30302 <cell alignment="left" valignment="top" usebox="none">
30305 \begin_layout Plain Layout
30311 <cell alignment="center" valignment="top" usebox="none">
30314 \begin_layout Plain Layout
30320 <cell alignment="center" valignment="top" usebox="none">
30323 \begin_layout Plain Layout
30329 <cell alignment="center" valignment="top" usebox="none">
30332 \begin_layout Plain Layout
30338 <cell alignment="center" valignment="top" usebox="none">
30341 \begin_layout Plain Layout
30349 <cell alignment="left" valignment="top" usebox="none">
30352 \begin_layout Plain Layout
30358 <cell alignment="left" valignment="top" usebox="none">
30361 \begin_layout Plain Layout
30367 <cell alignment="left" valignment="top" usebox="none">
30370 \begin_layout Plain Layout
30376 <cell alignment="left" valignment="top" usebox="none">
30379 \begin_layout Plain Layout
30385 <cell alignment="center" valignment="top" usebox="none">
30388 \begin_layout Plain Layout
30394 <cell alignment="center" valignment="top" usebox="none">
30397 \begin_layout Plain Layout
30403 <cell alignment="center" valignment="top" usebox="none">
30406 \begin_layout Plain Layout
30412 <cell alignment="center" valignment="top" usebox="none">
30415 \begin_layout Plain Layout
30423 <cell alignment="left" valignment="top" usebox="none">
30426 \begin_layout Plain Layout
30432 <cell alignment="left" valignment="top" usebox="none">
30435 \begin_layout Plain Layout
30441 <cell alignment="left" valignment="top" usebox="none">
30444 \begin_layout Plain Layout
30450 <cell alignment="left" valignment="top" usebox="none">
30453 \begin_layout Plain Layout
30459 <cell alignment="center" valignment="top" usebox="none">
30462 \begin_layout Plain Layout
30468 <cell alignment="center" valignment="top" usebox="none">
30471 \begin_layout Plain Layout
30477 <cell alignment="center" valignment="top" usebox="none">
30480 \begin_layout Plain Layout
30486 <cell alignment="center" valignment="top" usebox="none">
30489 \begin_layout Plain Layout
30497 <cell alignment="left" valignment="top" usebox="none">
30500 \begin_layout Plain Layout
30506 <cell alignment="left" valignment="top" usebox="none">
30509 \begin_layout Plain Layout
30515 <cell alignment="left" valignment="top" usebox="none">
30518 \begin_layout Plain Layout
30524 <cell alignment="left" valignment="top" usebox="none">
30527 \begin_layout Plain Layout
30533 <cell alignment="center" valignment="top" usebox="none">
30536 \begin_layout Plain Layout
30542 <cell alignment="center" valignment="top" usebox="none">
30545 \begin_layout Plain Layout
30551 <cell alignment="center" valignment="top" usebox="none">
30554 \begin_layout Plain Layout
30560 <cell alignment="center" valignment="top" usebox="none">
30563 \begin_layout Plain Layout
30571 <cell alignment="left" valignment="top" usebox="none">
30574 \begin_layout Plain Layout
30580 <cell alignment="left" valignment="top" usebox="none">
30583 \begin_layout Plain Layout
30589 <cell alignment="left" valignment="top" usebox="none">
30592 \begin_layout Plain Layout
30598 <cell alignment="left" valignment="top" usebox="none">
30601 \begin_layout Plain Layout
30607 <cell alignment="center" valignment="top" usebox="none">
30610 \begin_layout Plain Layout
30616 <cell alignment="center" valignment="top" usebox="none">
30619 \begin_layout Plain Layout
30625 <cell alignment="center" valignment="top" usebox="none">
30628 \begin_layout Plain Layout
30634 <cell alignment="center" valignment="top" usebox="none">
30637 \begin_layout Plain Layout
30645 <cell alignment="left" valignment="top" usebox="none">
30648 \begin_layout Plain Layout
30654 <cell alignment="left" valignment="top" usebox="none">
30657 \begin_layout Plain Layout
30663 <cell alignment="left" valignment="top" usebox="none">
30666 \begin_layout Plain Layout
30672 <cell alignment="left" valignment="top" usebox="none">
30675 \begin_layout Plain Layout
30681 <cell alignment="center" valignment="top" usebox="none">
30684 \begin_layout Plain Layout
30690 <cell alignment="center" valignment="top" usebox="none">
30693 \begin_layout Plain Layout
30699 <cell alignment="center" valignment="top" usebox="none">
30702 \begin_layout Plain Layout
30708 <cell alignment="center" valignment="top" usebox="none">
30711 \begin_layout Plain Layout
30719 <cell alignment="center" valignment="top" usebox="none">
30722 \begin_layout Plain Layout
30728 <cell alignment="center" valignment="top" usebox="none">
30731 \begin_layout Plain Layout
30737 <cell alignment="center" valignment="top" usebox="none">
30740 \begin_layout Plain Layout
30746 <cell alignment="center" valignment="top" usebox="none">
30749 \begin_layout Plain Layout
30755 <cell alignment="center" valignment="top" usebox="none">
30758 \begin_layout Plain Layout
30764 <cell alignment="center" valignment="top" usebox="none">
30767 \begin_layout Plain Layout
30773 <cell alignment="center" valignment="top" usebox="none">
30776 \begin_layout Plain Layout
30782 <cell alignment="center" valignment="top" usebox="none">
30785 \begin_layout Plain Layout
30799 \begin_layout Chapter
30800 Noms des couleurs disponibles utilisables dans les styles
30801 \begin_inset CommandInset label
30803 name "chap:Names-of-colors"
30810 \begin_layout Standard
30811 Les couleurs énumérées ci-après sont les couleurs standard et celles que
30812 vous pouvez régler dans les préférences \SpecialChar LyX
30816 \begin_layout Section
30822 \begin_layout Standard
30825 The following are no real colors, but rather act on color definitions:
30828 \begin_layout Description
30836 \begin_layout Description
30844 \begin_layout Description
30849 pas de couleur particulière – réinitialisation ou couleur implicite
30852 \begin_layout Section
30858 \begin_layout Standard
30861 These are fixed colors that cannot me customized:
30864 \begin_layout Description
30870 \begin_layout Description
30876 \begin_layout Description
30882 \begin_layout Description
30888 \begin_layout Description
30894 \begin_layout Description
30900 \begin_layout Description
30906 \begin_layout Description
30912 \begin_layout Description
30918 \begin_layout Description
30924 \begin_layout Description
30930 \begin_layout Description
30936 \begin_layout Description
30942 \begin_layout Description
30948 \begin_layout Description
30954 \begin_layout Description
30960 \begin_layout Description
30966 \begin_layout Description
30972 \begin_layout Description
30978 \begin_layout Section
30984 \begin_layout Standard
30987 These are the colors allocated to specific elements in
30991 Outils\SpecialChar menuseparator
30997 \begin_layout Description
31005 \begin_layout Description
31013 \begin_layout Description
31021 \begin_layout Description
31029 \begin_layout Description
31037 \begin_layout Description
31042 étiquette de branche
31045 \begin_layout Description
31050 fond de bouton d'insert
31053 \begin_layout Description
31058 bordure de bouton d'insert
31061 \begin_layout Description
31066 fond du bouton d'insert (pointé)
31069 \begin_layout Description
31074 barre de modification
31077 \begin_layout Description
31082 texte modifié auteur 1
31085 \begin_layout Description
31090 texte modifié auteur 2
31093 \begin_layout Description
31098 texte modifié auteur 3
31101 \begin_layout Description
31106 texte modifié auteur 4
31109 \begin_layout Description
31114 texte modifié auteur 5
31117 \begin_layout Description
31122 texte d'insert repliable
31125 \begin_layout Description
31130 cadre d'insert repliable
31133 \begin_layout Description
31141 \begin_layout Description
31146 fond d'insert de commande
31149 \begin_layout Description
31154 cadre d'insert de commande
31157 \begin_layout Description
31162 fond de commentaire
31165 \begin_layout Description
31170 étiquette de commentaire
31173 \begin_layout Description
31181 \begin_layout Description
31189 \begin_layout Description
31192 deletedtextmodifier
31194 modificateur de texte supprimé
31197 \begin_layout Description
31202 barre de profondeur
31205 \begin_layout Description
31210 marqueur de fin de ligne
31213 \begin_layout Description
31218 erreur \SpecialChar LaTeX
31222 \begin_layout Description
31227 étiquette de note de bas de page
31230 \begin_layout Description
31233 foreground foreground color
31236 \begin_layout Description
31244 \begin_layout Description
31249 fond d'insert grisé
31252 \begin_layout Description
31257 étiquette d'insert grisé
31260 \begin_layout Description
31265 texte d'insert grisé
31268 \begin_layout Description
31276 \begin_layout Description
31281 complétion en ligne
31284 \begin_layout Description
31292 \begin_layout Description
31300 \begin_layout Description
31308 \begin_layout Description
31313 texte \SpecialChar LaTeX
31317 \begin_layout Description
31325 \begin_layout Description
31330 étiquette de note en marge
31333 \begin_layout Description
31341 \begin_layout Description
31349 \begin_layout Description
31354 cadre mathématique (non pointé)
31357 \begin_layout Description
31362 cadre mathématique (pointé)
31365 \begin_layout Description
31373 \begin_layout Description
31378 fond de macro mathématique
31381 \begin_layout Description
31386 macro mathématique désactivée
31389 \begin_layout Description
31394 cadre de macro mathématique
31397 \begin_layout Description
31402 fond dynamique de macro mathématique
31405 \begin_layout Description
31410 étiquette de macro mathématique
31413 \begin_layout Description
31418 macro mathématique : nouveau paramètre
31421 \begin_layout Description
31426 macro mathématique : ancien paramètre
31429 \begin_layout Description
31437 \begin_layout Description
31440 nonunique_inlinecompletion
31442 complétion en ligne (choix multiples)
31445 \begin_layout Description
31453 \begin_layout Description
31461 \begin_layout Description
31466 saut de page / saut de ligne
31469 \begin_layout Description
31474 marqueur de paragraphe
31477 \begin_layout Description
31482 texte d'insert fantôme
31485 \begin_layout Description
31493 \begin_layout Description
31501 \begin_layout Description
31506 cadre d'expression régulière
31509 \begin_layout Description
31512 scroll color that indicates when a row can be scrolled
31515 \begin_layout Description
31523 \begin_layout Description
31531 \begin_layout Description
31539 \begin_layout Description
31547 \begin_layout Description
31555 \begin_layout Description
31560 ligne on/off de tableau
31563 \begin_layout Description
31571 \begin_layout Description