1 #LyX 2.4 created this file. For more info see https://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#PO-Mode
3120 Pour certains menus, il y a aussi des touches de raccourci qui doivent
3122 Ces touches viennent après un
3125 \begin_inset Quotes cld
3129 \begin_inset Quotes crd
3134 , et doivent être adaptées au texte traduit.
3135 Vous devez aussi remplir les champs au début du nouveau fichier
3136 \begin_inset Flex Noun
3139 \begin_layout Plain Layout
3145 avec votre adresse e-mail, etc., pour que les gens sachent comment vous
3146 joindre pour proposer des suggestions, ou pour démolir votre travail.
3149 \begin_layout Standard
3150 Si vous voulez juste traduire pour vous-même, alors:
3153 \begin_layout Itemize
3162 \begin_inset Newline newline
3166 \begin_inset Flex Noun
3169 \begin_layout Plain Layout
3170 msgfmt -o xx.mo < xx.po
3178 \begin_layout Itemize
3180 \begin_inset Flex Noun
3183 \begin_layout Plain Layout
3189 dans votre répertoire de locales, dans le répertoire correspondant aux
3190 messages pour la langue
3197 \begin_inset Flex Noun
3200 \begin_layout Plain Layout
3207 \begin_inset Newline newline
3211 \begin_inset Flex Noun
3214 \begin_layout Plain Layout
3215 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3223 \begin_layout Standard
3224 Pour ajouter un nouveau fichier
3233 (ce qui serait mieux pour que d'autres puisent en profiter), il faut
3234 effectuer quelques changements dans \SpecialChar LyX
3235 : envoyez donc une courrier à la liste
3236 de messagerie des développeurs pour ce faire.
3239 \begin_layout Subsubsection
3243 \begin_layout Standard
3244 Il arrive quelquefois qu'un message anglophone doive être traduit de différentes
3245 façons dans le langage cible.
3246 Un exemple est le message
3247 \begin_inset Flex Code
3250 \begin_layout Plain Layout
3258 qui se traduit en français par
3259 \begin_inset Flex Noun
3262 \begin_layout Plain Layout
3271 \begin_inset Flex Noun
3274 \begin_layout Plain Layout
3280 , suivant le genre et l'initiale du mot suivant.
3282 \begin_inset Flex Code
3285 \begin_layout Plain Layout
3293 ne sait pas gérer de telles traductions ambiguës, et vous devez donc ajouter
3294 une information contextuelle au message: au lieu de
3295 \begin_inset Flex Code
3298 \begin_layout Plain Layout
3307 \begin_inset Flex Code
3310 \begin_layout Plain Layout
3319 \begin_inset Flex Code
3322 \begin_layout Plain Layout
3330 De ce fait, les deux occurrences de
3331 \begin_inset Flex Code
3334 \begin_layout Plain Layout
3342 sont différentes pour
3343 \begin_inset Flex Code
3346 \begin_layout Plain Layout
3354 et peuvent être traduites correctement pour
3355 \begin_inset Flex Noun
3358 \begin_layout Plain Layout
3363 \begin_inset space ~
3372 \begin_inset Flex Noun
3375 \begin_layout Plain Layout
3380 \begin_inset space ~
3391 \begin_layout Standard
3392 Bien entendu l'information contextuelle doit être supprimée de l'affichage
3393 lorsqu'aucune traduction n'est utilisée, c'est pourquoi il faut la mettre
3394 entre double crochets à la fin du message comme ci-dessus.
3395 Le mécanisme de traduction de \SpecialChar LyX
3396 assure que tout ce qui est entre double
3397 crochets à la fin des messages est supprimé à l'affichage du message.
3400 \begin_layout Subsection
3401 Traduire la documentation
3404 \begin_layout Standard
3405 La documentation en ligne (dans le menu
3409 ) peut (et doit !) être traduite.
3410 S'il existe une traduction de la documentation
3414 \begin_layout Plain Layout
3415 En mars 2008, au moins quelques documents avaient été traduit en14 langues,
3416 le manuel d'apprentissage étant disponible en quelques autres.
3421 , et si la locale est correctement réglée, \SpecialChar LyX
3422 affichera tout seul la version
3425 cherche les versions traduites sous le nom
3426 \begin_inset Flex Noun
3429 \begin_layout Plain Layout
3446 est le code pour la langue en cours d'utilisation.
3447 S'il n'y a pas de traduction disponible, c'est la version anglaise qui
3449 Notez que les versions traduites doivent avoir le même nom de fichier (ici
3451 \begin_inset Flex Noun
3454 \begin_layout Plain Layout
3461 Si vous vous sentez de traduire la documentation (ce qui est d'ailleurs
3462 un excellent moyen de corriger la documentation d'origine!), il y a un
3463 certain nombre de choses que vous devez faire tout de suite:
3466 \begin_layout Itemize
3467 faire un tour sur la page web de la
3468 \begin_inset CommandInset href
3470 name "traduction des documentations"
3471 target "https://www.lyx.org/WebFr.Translation"
3476 sur le site de \SpecialChar LyX
3478 De cette façon, vous pourrez voir quels documents ont déjà été traduits
3479 dans votre langue, s'il y en a.
3480 Vous y trouverez aussi qui s'occupe d'organiser l'effort de traduction
3482 Si personne ne s'en occupe, faites-nous connaître votre intérêt.
3485 \begin_layout Standard
3486 Une fois que vous vous y mettez pour de bon, voilà quelques conseils qui
3487 pourront vous éviter des ennuis:
3490 \begin_layout Itemize
3491 joignez-vous à l'équipe de documentation!
3497 Aide\SpecialChar menuseparator
3500 ) explique comment faire.
3501 C'est d'ailleurs le premier document à traduire;
3504 \begin_layout Itemize
3505 étudiez les conventions typographiques de la langue dans laquelle vous traduisez.
3506 La typographie est un art ancien et au cours des siècles, une grande variété
3507 de conventions ont vu le jour dans les différentes parties du globe.
3508 Apprenez aussi le vocabulaire spécifique des professionnels de la typographie
3510 Si vous inventez votre propre terminologie, vous allez induire les lecteurs
3514 Attention ! La typographie peut devenir une passion !
3519 \begin_layout Itemize
3520 faites une copie du document (dans les cas simples, sinon voyez la note
3522 \begin_inset space ~
3526 \begin_inset CommandInset ref
3528 reference "fn:NdT-:-Je"
3533 Ce sera votre fichier de travail.
3534 Vous pouvez l'utiliser comme fichier d'aide personnel en le mettant dans
3538 \begin_inset Flex Code
3541 \begin_layout Plain Layout
3552 \begin_inset Newline newline
3558 \begin_inset Note Greyedout
3561 \begin_layout Plain Layout
3566 pour un document complexe doté d'éléments externes (images, etc.), si vous
3567 voulez faire une copie dans un répertoire temporaire par exemple, faites
3568 attention aux liens vers les éléments externes qui peuvent être brisés
3569 quand le document est déplacé d'un endroit à un autre.
3570 La meilleure méthode est de télécharger l'arborescence \SpecialChar LyX
3573 \begin_inset Flex URL
3576 \begin_layout Plain Layout
3578 https://www.lyx.org/WebFr.HowToUseGIT
3583 ) et de modifier le ficher de documentation en place.
3591 \begin_layout Itemize
3592 de temps à autre le document original (de l'équipe \SpecialChar LyX
3595 \begin_inset CommandInset href
3597 name "l'interface d'affichage des source"
3598 target "https://www.lyx.org/trac/browser"
3603 pour voir ce qui a changé.
3604 De cette façon vous pouvez voir facilement les parties de votre document
3605 qui ont besoin d'être mises à jour
3609 \begin_layout Plain Layout
3610 NdT : Je conseille très vivement de partir des fichiers disponibles sur
3611 Trac, et de ne pas perdre de temps à traduire la version contenue dans
3612 votre distribution pour s'apercevoir trop tard que tout est périmé.
3613 J’ajoute que la meilleure solution est de récupérer l'image courante des
3614 sources de \SpecialChar LyX
3617 \begin_inset CommandInset href
3620 target "https://www.lyx.org/WebFr.HowToUseGIT"
3625 ) et de modifier directement le fichier concerné dans l'arborescence importée:
3626 de cette façon, les liens vers les images ne seront pas modifiés lors de
3627 la sauvegarde du fichier, et la version modifiée pourra être soumise sans
3628 modifications aux développeurs.
3629 \begin_inset CommandInset label
3643 \begin_layout Standard
3644 Si vous avez trouvé une erreur dans le document original, corrigez-la et
3645 dites-le au reste de l'équipe de documentation (que vous n'avez pas manqué
3646 de rejoindre, n'est-ce pas ?)
3649 \begin_layout Standard
3650 \begin_inset Branch Obsolete
3654 \begin_layout Section
3655 Support de Clavier International
3658 \begin_layout Standard
3661 [Note de l'Éditeur : La section qui suit a été écrite par
3666 Il faut la corriger pour qu'elle soit conforme à la nouvelle feuille de
3667 style de la Documentation et pour utiliser les nouvelles fonctions de la
3669 Le tout doit aussi être fusionné avec la section d'après.
3673 \begin_layout Subsection
3674 Définir ses propres réaffectations clavier : Format de fichier
3679 \begin_layout Standard
3680 Regardons d'un peu plus près un fichier de définition de clavier.
3681 C'est un fichier ASCII qui définit :
3684 \begin_layout Itemize
3685 des correspondances touche à touche ou touche à chaîne
3688 \begin_layout Itemize
3692 \begin_layout Itemize
3693 des exceptions des touches mortes
3696 \begin_layout Standard
3697 Pour définir une traduction touche à touche ou touche à chaîne, utilisez
3701 \begin_layout Quotation
3713 \begin_layout Standard
3718 est la touche à traduire et
3722 est la chaîne à insérer dans le document.
3723 Pour définir des touches mortes, faites :
3726 \begin_layout Quotation
3731 kmod touche touche_morte
3734 \begin_layout Standard
3739 est la touche du clavier et
3743 est le nom de la touche morte.
3744 Les touches mortes suivantes sont supportées (nom du raccourci entre parenthèse
3748 \begin_layout Quotation
3752 \begin_inset space \hfill{}
3758 \begin_layout Quotation
3760 \begin_inset space \hfill{}
3766 \begin_layout Quotation
3768 \begin_inset space \hfill{}
3774 \begin_layout Quotation
3776 \begin_inset space \hfill{}
3782 \begin_layout Quotation
3784 \begin_inset space \hfill{}
3790 \begin_layout Quotation
3792 \begin_inset space \hfill{}
3799 \begin_layout Plain Layout
3811 \begin_layout Quotation
3813 \begin_inset space \hfill{}
3819 \begin_layout Quotation
3821 \begin_inset space \hfill{}
3828 \begin_layout Plain Layout
3840 \begin_layout Quotation
3842 \begin_inset space \hfill{}
3848 \begin_layout Quotation
3850 \begin_inset space \hfill{}
3856 \begin_layout Quotation
3858 \begin_inset space \hfill{}
3865 \begin_layout Plain Layout
3877 \begin_layout Quotation
3879 \begin_inset space \hfill{}
3886 \begin_layout Plain Layout
3898 \begin_layout Quotation
3900 \begin_inset space \hfill{}
3906 \begin_layout Quotation
3907 hungarian umlaut (hug)
3908 \begin_inset space \hfill{}
3914 \begin_layout Quotation
3916 \begin_inset space \hfill{}
3922 \begin_layout Quotation
3924 \begin_inset space \hfill{}
3931 \begin_layout Plain Layout
3943 \begin_layout Standard
3944 Dans beaucoup de claviers internationaux il y a des exceptions dans les
3945 règles d'emploi des touches mortes, vous pouvez les définir ainsi :
3948 \begin_layout Quotation
3953 kxmod touche_morte touche chaîne_sortie
3956 \begin_layout Standard
3957 Par exemple, sur un clavier slovaque, si vous tapez caron-o, ça génère circonfle
3958 xe-o, il faut donc mettre :
3961 \begin_layout Quotation
3975 \begin_layout Standard
3976 pour le faire marcher correctement.
3977 Vous devez aussi définir comme des exceptions les touches mortes avec i
3978 et j, pour enlever le point avant d'insérer une marque d'accentuation.
3979 Je changerai ceci le moment venu, mais je n'en ai pas encore eu le temps.
3982 \begin_layout Standard
3983 Au fait, à propos des caractères : l'antislash est un caractère d'échappement,
3984 pour l'entrer, il faut taper un double antislash.
3989 ont aussi un sens différent.
3994 indique les commentaires, les guillemets entourent les commandes style
3997 Pour entrer un guillemet, il faut taper
4016 \begin_layout Standard
4017 Si vous faites un fichier de réaffectation clavier qui marche pour votre
4018 langue, merci de me l'envoyer, pour que je puisse l'inclure dans la prochaine
4019 distribution de réaffectations clavier.
4022 \begin_layout Standard
4023 Il y aura plus de mots-clés supportés à l'avenir dans les fichiers de réaffectat
4024 ion clavier, comme :
4027 \begin_layout Itemize
4032 kinclude nom_fichier
4035 \begin_inset space \hfill{}
4038 inclut un autre fichier (
4045 \begin_layout Itemize
4053 \begin_inset space \hfill{}
4056 définit un programme externe de traduction (
4063 \begin_layout Standard
4064 Il devrait aussi chercher dans
4068 les valeurs par défaut (par exemple, une option
4074 pour inclure le clavier par défaut).
4082 \begin_layout Section
4083 Les Claviers Internationaux
4084 \begin_inset CommandInset label
4093 \begin_layout Standard
4094 \begin_inset Note Note
4097 \begin_layout Plain Layout
4098 En révisant ce document en mars 2008, le relecteur anglophone n'a pas vérifié
4099 cette section par manque de compréhension de son contenu.
4100 Ce serait bien que quelqu'un s'en charge.
4101 Le traducteur francophone (SMGC) l'avait traduit tel quel, le relecteur
4102 francophone (JPC) l'a relu tel quel.
4110 \begin_layout Standard
4111 Les deux sections suivantes décrivent en détail la syntaxe des fichiers
4113 \begin_inset Flex Code
4116 \begin_layout Plain Layout
4123 \begin_inset Flex Code
4126 \begin_layout Plain Layout
4133 Ces sections devraient vous aider à concevoir votre propre réaffectation
4134 clavier si celles fournies ne vous donnent pas satisfaction.
4137 \begin_layout Subsection
4143 \begin_layout Standard
4145 \begin_inset Flex Noun
4148 \begin_layout Plain Layout
4154 fait correspondre des appuis clavier à des caractères ou à des chaînes
4156 Il définit une réaffectation clavier
4160 \begin_layout Plain Layout
4161 NdT : Keyboard MAPping.
4167 Cette section décrit les mots clés
4168 \begin_inset Flex Code
4171 \begin_layout Plain Layout
4178 \begin_inset Flex Code
4181 \begin_layout Plain Layout
4188 \begin_inset Flex Code
4191 \begin_layout Plain Layout
4198 \begin_inset Flex Code
4201 \begin_layout Plain Layout
4208 \begin_inset Flex Code
4211 \begin_layout Plain Layout
4220 \begin_layout Labeling
4221 \labelwidthstring 00.00.0000
4222 \begin_inset Flex Code
4225 \begin_layout Plain Layout
4231 fait correspondre un caractère à une chaîne
4234 \begin_layout LyX-Code
4243 \begin_layout Standard
4244 Ceci fait correspondre
4257 , le guillemet double (
4267 ) doivent être protégés par un antislash (
4276 \begin_layout Standard
4277 Voici un exemple de commande
4278 \begin_inset Flex Noun
4281 \begin_layout Plain Layout
4287 qui fait s'afficher le symbole
4288 \begin_inset Flex Noun
4291 \begin_layout Plain Layout
4297 quand on tape la touche
4298 \begin_inset Flex Noun
4301 \begin_layout Plain Layout
4310 \begin_layout LyX-Code
4318 \begin_layout Labeling
4319 \labelwidthstring 00.00.0000
4320 \begin_inset Flex Code
4323 \begin_layout Plain Layout
4329 définit un caractère accentué
4332 \begin_layout LyX-Code
4338 caractère accent autorisés
4341 \begin_layout Standard
4355 C'est le principe de la touche morte
4359 \begin_layout Plain Layout
4364 désigne une touche qui seule ne produit pas de caractère, mais qui produit
4365 le caractère accentué voulu quand elle est suivie par une autre touche
4367 Par exemple, pour écrire un
4370 \begin_inset Quotes cld
4374 \begin_inset Quotes crd
4379 sur un clavier français, il faut d'abord taper sur
4382 \begin_inset Quotes cld
4386 \begin_inset Quotes crd
4394 \begin_inset Quotes cld
4398 \begin_inset Quotes crd
4411 \begin_layout Standard
4416 puis une autre touche qui ne fait pas partie des caractères
4420 , vous obtiendrez un
4424 suivi par l'autre touche non autorisée.
4426 \begin_inset Flex Noun
4429 \begin_layout Plain Layout
4435 efface une touche morte, si vous tapez
4440 \begin_inset Flex Noun
4443 \begin_layout Plain Layout
4449 , le curseur ne recule pas mais annule l'effet que
4453 aurait pu avoir sur la touche suivante.
4456 \begin_layout Standard
4457 Dans l'exemple suivant, il est spécifié que le caractère ' doit être un
4458 accent aigu, autorisé sur les caractères a, e, i, o, u, A, E, I, O et U
4462 \begin_layout LyX-Code
4465 kmod ' acute aeiouAEIOU
4468 \begin_layout Labeling
4469 \labelwidthstring 00.00.0000
4470 \begin_inset Flex Code
4473 \begin_layout Plain Layout
4479 définit une exception au caractère accentué
4482 \begin_layout LyX-Code
4488 accent caractère résultat
4491 \begin_layout Standard
4492 Ceci définit une exception pour l'
4505 doit avoir été assigné auparavant par une déclaration
4506 \begin_inset Flex Code
4509 \begin_layout Plain Layout
4521 ne doit pas faire partie des caractères
4530 Quand vous tapez la séquence
4543 Si une telle déclaration n'existe pas dans le fichier
4544 \begin_inset Flex Code
4547 \begin_layout Plain Layout
4559 touche_accent caractère
4565 est le premier paramètre de la déclaration
4566 \begin_inset Flex Code
4569 \begin_layout Plain Layout
4580 \begin_layout Standard
4581 Avec la commande suivante, vous obtenez äi quand vous tapez acute-i ('i)
4585 \begin_layout LyX-Code
4599 \begin_layout Labeling
4600 \labelwidthstring 00.00.0000
4601 \begin_inset Flex Code
4604 \begin_layout Plain Layout
4610 Combine deux caractères accentués
4613 \begin_layout LyX-Code
4619 accent1 accent2 autorisés
4622 \begin_layout Standard
4623 Celui-ci est assez ésotérique.
4624 Il vous permet de combiner les effets de l'
4632 (dans cet ordre !) sur les caractères
4645 doivent avoir été définies par une commande
4658 \begin_layout Standard
4659 Voyez cet exemple extrait du fichier
4666 \begin_layout LyX-Code
4669 kmod ; acute aeioyvhAEIOYVH
4672 \begin_layout LyX-Code
4678 \begin_layout LyX-Code
4681 kcomb acute umlaut iyIY
4684 \begin_layout Standard
4685 Ça vous permet de taper
4689 et d'avoir l'effet de
4699 \begin_inset Flex Noun
4702 \begin_layout Plain Layout
4708 annule la dernière touche morte, donc si vous tapez
4709 \begin_inset Flex Code
4712 \begin_layout Plain Layout
4727 \begin_layout Subsection
4733 \begin_layout Standard
4734 Après que la réaffectation
4735 \begin_inset Flex Noun
4738 \begin_layout Plain Layout
4744 a été effectuée, un fichier
4745 \begin_inset Flex Code
4748 \begin_layout Plain Layout
4754 convertit les chaînes de symboles obtenues dans la police de caractères.
4755 Actuellement, la distribution de \SpecialChar LyX
4756 comprend au moins les fichiers
4757 \begin_inset Flex Code
4760 \begin_layout Plain Layout
4767 \begin_inset Flex Code
4770 \begin_layout Plain Layout
4779 \begin_layout Standard
4780 En général le fichier
4781 \begin_inset Flex Code
4784 \begin_layout Plain Layout
4790 est une suite de déclarations de la forme :
4793 \begin_layout LyX-Code
4797 numéro_du_caractère chaîne
4800 \begin_layout Standard
4801 Par exemple, pour affecter
4807 au caractère correspondant dans le jeu iso-8859-1 (233), il y a la déclaration
4811 \begin_layout LyX-Code
4819 \begin_layout Standard
4821 \begin_inset Flex Code
4824 \begin_layout Plain Layout
4833 \begin_inset Flex Code
4836 \begin_layout Plain Layout
4847 Notez que le même caractère peut servir pour plus d'une chaîne.
4849 \begin_inset Flex Code
4852 \begin_layout Plain Layout
4861 \begin_layout LyX-Code
4873 \begin_inset Newline newline
4889 \begin_layout Standard
4891 ne trouve pas de correspondance pour la chaîne produite par une touche
4892 ou une séquence avec des touches mortes, il va vérifier si elle ressemble
4893 à un caractère accentué et va essayer à l'écran de tracer un accent par
4894 dessus le caractère.
4897 \begin_layout Subsection
4901 \begin_layout Standard
4902 Il y a une autre façon d'ajouter le support pour des caractères internationaux
4903 par l'intermédiaire des touches mortes.
4904 Une touche morte marche en combinaison avec une lettre pour produire un
4906 Ici, nous allons expliquer comment créer une touche morte vraiment simple
4907 pour montrer comment elles marchent.
4910 \begin_layout Standard
4911 Supposez que vous ayez besoin du caractère circonflexe,
4915 \begin_layout Plain Layout
4916 NdT : déjà présent en français, mais nous allons conserver cet exemple.
4924 \begin_inset Quotes cld
4928 \begin_inset Quotes crd
4934 Vous devez faire correspondre la touche circonflexe à la commande \SpecialChar LyX
4936 \begin_inset Flex Code
4939 \begin_layout Plain Layout
4946 \begin_inset Flex Code
4949 \begin_layout Plain Layout
4956 Maintenant, à chaque fois que vous taperez la touche circonflexe suivie
4957 par une lettre, il y aura un accent circonflexe dessus.
4958 Par exemple, la séquence
4961 \begin_inset Quotes cld
4967 \begin_inset Flex Code
4970 \begin_layout Plain Layout
4979 \begin_inset Quotes crd
4987 \begin_inset Quotes cld
4993 \begin_inset Flex Code
4996 \begin_layout Plain Layout
5005 \begin_inset Quotes crd
5011 Cependant, si vous essayez de taper
5014 \begin_inset Quotes cld
5020 \begin_inset Flex Code
5023 \begin_layout Plain Layout
5032 \begin_inset Quotes crd
5038 va se plaindre avec un bip, car un
5041 \begin_inset Quotes cld
5047 \begin_inset Flex Code
5050 \begin_layout Plain Layout
5059 \begin_inset Quotes crd
5064 ne prend jamais d'accent circonflexe.
5066 \begin_inset Flex Noun
5069 \begin_layout Plain Layout
5075 après une touche morte fait s'afficher l'accent seul.
5076 Notez bien ce dernier point ! Si vous faites correspondre une touche à
5077 une touche morte, vous devez faire correspondre le caractère sur cette
5078 touche à une touche différente.
5079 Faire correspondre la virgule à une cédille est une mauvaise idée, car
5080 vous n'aurez plus que des cédilles à la place des virgules.
5083 \begin_layout Standard
5084 Une façon courante de créer des touches mortes est d'utiliser
5085 \begin_inset Flex Noun
5088 \begin_layout Plain Layout
5095 \begin_inset Flex Noun
5098 \begin_layout Plain Layout
5105 \begin_inset Flex Noun
5108 \begin_layout Plain Layout
5114 en combinaison avec un accent, comme
5117 \begin_inset Quotes cld
5121 \begin_inset Quotes crd
5129 \begin_inset Quotes cld
5133 \begin_inset Quotes crd
5139 Une autre méthode met en jeu
5140 \begin_inset Flex Code
5143 \begin_layout Plain Layout
5150 \begin_inset Flex Code
5153 \begin_layout Plain Layout
5162 \begin_inset space ~
5166 \begin_inset space ~
5171 ) pour configurer la touche spéciale
5172 \begin_inset Flex Code
5175 \begin_layout Plain Layout
5182 Elle agit un peu comme
5183 \begin_inset Flex Noun
5186 \begin_layout Plain Layout
5192 et permet de faire correspondre des touches à des caractères accentués.
5193 Vous pouvez aussi transformer des touches en touches mortes en les affectant
5194 à quelque chose comme
5195 \begin_inset Flex Code
5198 \begin_layout Plain Layout
5204 puis en affectant cette touche symbolique à la commande \SpecialChar LyX
5209 \begin_layout Plain Layout
5214 : C'est exactement ce que je fais dans mes fichiers
5226 \begin_inset space ~
5234 \begin_inset space ~
5239 ) est configurée comme
5243 et j'ai affecté des choses comme
5246 \begin_inset space ~
5254 \begin_inset space ~
5259 à un tas de touches symboliques
5262 \begin_inset Quotes cld
5266 \begin_inset Quotes crd
5272 C'est comme ça que j'obtiens tous mes caractères accentués.
5277 Vous pouvez transformer à peu près n'importe quelle touche en touche
5278 \begin_inset Flex Code
5281 \begin_layout Plain Layout
5288 \begin_inset Flex Code
5291 \begin_layout Plain Layout
5297 , une touche de fonction inutilisée, etc.
5298 Quant aux commandes \SpecialChar LyX
5299 qui produisent des accents, voyez à l'entrée
5300 \begin_inset Flex Code
5303 \begin_layout Plain Layout
5312 \begin_inset space ~
5316 \begin_inset space ~
5322 Là-bas il y a la liste complète.
5325 \begin_layout Subsection
5326 Enregistrer votre configuration linguistique
5329 \begin_layout Standard
5330 Vous pouvez éditer vos préférences dans la fenêtre
5332 Outils\SpecialChar menuseparator
5335 pour que \SpecialChar LyX
5336 démarre avec l'environnement linguistique que vous souhaitez,
5337 automatiquement configuré.
5340 \begin_layout LyX-Code
5344 \begin_layout Chapter
5345 Installer de nouvelles classes de document, formats et modèles
5346 \begin_inset CommandInset label
5348 name "chap:classe-texte"
5353 \begin_inset Argument 1
5356 \begin_layout Plain Layout
5357 Installer de nouvelles classes
5365 \begin_layout Standard
5366 Dans ce chapitre, nous décrivons comment créer et installer de nouveaux
5367 fichiers de format \SpecialChar LyX
5368 ou de modèle, et nous vous offrons une révision des
5369 procédures correctes d'installation de nouvelles classes de document \SpecialChar LaTeX
5373 \begin_layout Standard
5374 D'abord, quelques mots pour décrire une bonne approche de la relation entre
5376 et \SpecialChar LaTeX
5378 Ce qu'il faut bien comprendre, c'est qu'en certain sens, \SpecialChar LyX
5380 de \SpecialChar LaTeX
5382 De fait, du point de vue de \SpecialChar LyX
5383 , \SpecialChar LaTeX
5385 \begin_inset Quotes cld
5389 \begin_inset Quotes crd
5392 particulier parmi d'autres formats susceptibles de produire un résultat.
5393 D'autres formats sont DocBook, texte brut, et XHTML.
5395 est bien entendu un format particulièrement important, mais une très petite
5396 quantité d'information concernant \SpecialChar LaTeX
5397 est réellement contenue dans \SpecialChar LyX
5402 \begin_layout Plain Layout
5403 Certaines commandes sont suffisamment compliquées pour être codées
5404 \begin_inset Quotes cld
5408 \begin_inset Quotes crd
5411 dans les sources \SpecialChar LyX
5412 , mais les développeurs considèrent que c'est une mauvaise
5418 Cette information, même pour des classes standard comme
5419 \begin_inset Flex Code
5422 \begin_layout Plain Layout
5428 , est contenue dans les
5429 \begin_inset Quotes cld
5433 \begin_inset Quotes crd
5437 De même, \SpecialChar LyX
5438 ne connaît pas grand chose de DocBook ou XHTML, tout est décrit
5439 dans les fichiers de format.
5442 \begin_layout Standard
5443 Vous pouvez imaginer un fichier de format pour une classe de document donnée
5444 comme un traducteur entre les constructions \SpecialChar LyX
5445 — paragraphes et leur style
5446 associé, certains types d'inserts, etc.
5447 — et les constructions \SpecialChar LaTeX
5448 , DocBook ou XHTML correspondantes.
5449 Pratiquement tout ce que \SpecialChar LyX
5451 \begin_inset Flex Code
5454 \begin_layout Plain Layout
5460 , par exemple, est contenu dans le ficher
5461 \begin_inset Flex Code
5464 \begin_layout Plain Layout
5470 et dans les fichiers inclus par celui-ci.
5471 Pour cette raison, un étude approfondie de ces fichiers est une bonne idée
5472 si vous avez l'intention d'écrire un fichier de format.
5473 Un bon point de départ est le fichier
5474 \begin_inset Flex Code
5477 \begin_layout Plain Layout
5484 \begin_inset Flex Code
5487 \begin_layout Plain Layout
5494 \begin_inset Flex Code
5497 \begin_layout Plain Layout
5503 et de nombreux autres fichiers de format pour de classes de document \SpecialChar LaTeX
5505 C'est dans ce fichier que sont définies les sections et les constructions
5507 \begin_inset Flex Code
5510 \begin_layout Plain Layout
5516 décrit pour \SpecialChar LyX
5517 comment les paragraphes marqués en style Section, SousSection,
5519 peuvent être traduits en commandes ou balises \SpecialChar LaTeX
5521 Le fichier article.layout ne contient essentiellement que des inclusions
5523 \begin_inset Flex Code
5526 \begin_layout Plain Layout
5535 \begin_layout Standard
5536 Définir la correspondance \SpecialChar LyX
5538 n'est cependant pas la seule fonction des fichiers
5540 Leur autre but est de préciser comment les constructions \SpecialChar LyX
5543 Le fait que ces fichiers assurent ces deux fonctions est souvent source
5544 de confusion, parce qu'elles sont tout à fait séparées: expliquer à \SpecialChar LyX
5546 traduire un style de paragraphe en \SpecialChar LaTeX
5547 ne lui dit pas comment l'afficher;
5548 inversement, expliquer à \SpecialChar LyX
5549 comment afficher un paragraphe ne lui dit pas
5550 comment le traduire en \SpecialChar LaTeX
5551 (sans parler de lui dire comment \SpecialChar LaTeX
5553 Par conséquent, en général, quand vous devez définir une nouvelle construction
5555 , vous devez toujours effectuer deux tâches distinctes: (a) écrire comment
5556 la traduire en \SpecialChar LaTeX
5557 et (b) écrire comment l'afficher.
5560 \begin_layout Standard
5561 La même distinction est vraie pour les autre formats de sortie, bien que
5562 XHTML soit différent sous divers aspects, du fait que dans ce cas \SpecialChar LyX
5564 capable d'utiliser au moins partiellement l'information concernant l'affichage
5565 à l'écran pour créer l'information (sous forme de CSS) nécessaire à l'affichage
5567 Même dans ce cas, cependant, la distinction entre les mécanismes internes
5569 et la façon dont les objets sont restitués à l'extérieur reste valide,
5570 et le contrôle séparé des deux facettes reste possible.
5572 \begin_inset CommandInset ref
5574 reference "sec:Tags-for-XHTML"
5581 \begin_layout Section
5582 Installer de nouveaux fichiers \SpecialChar LaTeX
5586 \begin_layout Standard
5587 Certaines installations peuvent ne pas contenir le paquetage \SpecialChar LaTeX
5589 justement utiliser avec \SpecialChar LyX
5591 Par exemple, vous pouvez avoir besoin de Foil\SpecialChar TeX
5592 , un paquetage pour préparer
5593 des transparents pour rétroprojecteurs.
5594 Les distributions \SpecialChar LaTeX
5595 récentes comme \SpecialChar TeX
5596 Live (depuis 2008) ou MiK\SpecialChar TeX
5598 interface utilisateur pour installer de tels paquetages.
5599 Par exemple avec MiK\SpecialChar TeX
5600 , vous démarrez le programme
5601 \begin_inset Quotes cld
5605 \begin_inset space ~
5609 \begin_inset Quotes crd
5612 pour afficher une liste des paquetages disponibles.
5613 Pour installer l'un d'entre eux, il suffit d'effectuer un clic droit sur
5614 son nom ou sur le bouton correspondant de la barre d'outil.
5617 \begin_layout Standard
5618 Si votre distribution \SpecialChar LaTeX
5619 n'inclut pas un tel gestionnaire de paquetage, ou
5620 si le paquetage n'est pas disponible pour votre distribution, alors faites
5621 comme suit pour l'installer manuellement:
5624 \begin_layout Enumerate
5625 Récupérer le paquetage depuis
5626 \begin_inset CommandInset href
5629 target "http://www.ctan.org/"
5637 \begin_layout Enumerate
5638 Si le paquetage contient un fichier doté d'un suffixe
5639 \begin_inset Quotes cld
5643 \begin_inset Flex Code
5646 \begin_layout Plain Layout
5655 \begin_inset Quotes crd
5658 (c'est le cas pour Foil\SpecialChar TeX
5660 \begin_inset Quotes cld
5664 \begin_inset Quotes crd
5667 alors ouvrir une console, aller dans le répertoire de ce fichier et exécuter
5669 \begin_inset Flex Code
5672 \begin_layout Plain Layout
5682 \begin_inset Quotes cld
5686 \begin_inset Quotes crd
5689 le paquetage et vous disposez des fichiers nécessaires à l'installation.
5690 De nombreux paquetages ne sont pas reliés et vous pouvez sauter cette étape;
5693 \begin_layout Enumerate
5694 Vous devez alors décider si ce paquetage doit être disponible pour tous
5695 les utilisateurs ou seulement pour vous-même.
5699 \begin_layout Enumerate
5700 Avec les systèmes *nix (Linux, OSX, etc.), si vous souhaitez que le paquetage
5701 soit disponible pour tous les utilisateurs, installez-le dans l'arborescence
5704 \begin_inset Quotes cld
5708 \begin_inset Quotes crd
5711 , sinon installez-le dans votre arborescence \SpecialChar TeX
5713 \begin_inset Quotes cld
5717 \begin_inset Quotes crd
5721 La nécessité de créer ces arborescences, si elles n'existent pas déjà,
5722 dépend de votre système.
5723 Pour le savoir, examinez le fichier
5724 \begin_inset Flex Code
5727 \begin_layout Plain Layout
5739 \begin_layout Plain Layout
5740 Ce fichier est habituellement dans le répertoire
5744 , bien que vous puissiez exécuter la commande
5745 \begin_inset Flex Code
5748 \begin_layout Plain Layout
5761 L'emplacement de l'arborescence
5762 \begin_inset Quotes cld
5766 \begin_inset Quotes crd
5769 est définie par la variable
5770 \begin_inset Flex Code
5773 \begin_layout Plain Layout
5781 ; elle a usuellement pour valeur
5783 /usr/local/share/texmf/
5785 (installation système),
5787 /usr/local/share/texmf/
5789 (installation utilisateur) ou
5791 /usr/local/texlive/texmf-local
5793 (installation TexLive).
5794 L'emplacement de l'arborescence
5795 \begin_inset Quotes cld
5799 \begin_inset Quotes crd
5803 \begin_inset Flex Code
5806 \begin_layout Plain Layout
5819 \begin_inset Newline newline
5826 où XXXX est l'année de la distribution \SpecialChar TeX
5827 Live (si ces variables ne sont pas
5828 prédéfinies, vous devrez le faire vous-même).
5829 Vous aurez besoin d'avoir les droits d'administration système pour créer
5830 ou modifier l'arborescence
5831 \begin_inset Quotes cld
5835 \begin_inset Quotes crd
5838 , mais votre arborescence
5839 \begin_inset Quotes cld
5843 \begin_inset Quotes crd
5846 ne devrait pas nécessiter de tels droits.
5847 \begin_inset Newline newline
5850 D'une manière générale, il est recommandable d'installer dans le répertoire
5851 utilisateur parce que cette arborescence ne sera pas modifiée lors d'une
5852 mise à jour de votre système.
5853 Elle sera également sauvegardée avec tout le reste lors de le sauvegarde
5854 de votre répertoire utilisateur
5855 \begin_inset Quotes cld
5859 \begin_inset Quotes crd
5862 (que vous effectuez régulièrement, bien entendu).
5865 \begin_layout Enumerate
5866 Avec Windows, si vous souhaitez que le nouveau paquetage soit disponible
5867 pour tous les utilisateurs de votre système, allez dans le répertoire où
5869 est installé, puis dans le sous-répertoire
5877 (pour MiK\SpecialChar TeX
5878 , celui-ci sera implicitement
5895 \begin_layout Plain Layout
5896 Notez que ce chemin sera celui des installations anglophones.
5897 Pour une installation germanophone, ce serait
5898 \begin_inset Flex Code
5901 \begin_layout Plain Layout
5918 , de même pour d'autres langages.
5923 Créer dans ce répertoire un nouveau répertoire dénommé
5924 \begin_inset Flex Code
5927 \begin_layout Plain Layout
5935 et copiez tous les fichiers du paquetage dedans.
5936 Si le paquetage ne doit être accessible que par vous ou si vous n'avez
5937 pas les droits d'administration, faites de même, mais dans le répertoire
5940 avec MiK\SpecialChar TeX
5941 2.8 sur WinXP le répertoire
5942 \begin_inset Newline newline
5948 \begin_inset Flex Code
5951 \begin_layout Plain Layout
5956 Documents and Settings
5968 \begin_inset Newline newline
5972 \begin_inset Phantom HPhantom
5975 \begin_layout Plain Layout
5987 \begin_inset Flex Code
5990 \begin_layout Plain Layout
6011 \begin_inset Newline newline
6014 Avec Vista ce sera le répertoire
6015 \begin_inset Newline newline
6021 \begin_inset Flex Code
6024 \begin_layout Plain Layout
6053 \begin_layout Enumerate
6054 Vous devez alors informer \SpecialChar LaTeX
6055 de la présence de nouveaux fichiers.
6056 Ceci dépend de nouveau de la distribution \SpecialChar LaTeX
6061 \begin_layout Enumerate
6062 Avec \SpecialChar TeX
6063 Live, exécuter la commande
6064 \begin_inset Flex Code
6067 \begin_layout Plain Layout
6076 Si vous avez installé le paquetage pour tous les utilisateurs, vous aurez
6077 besoin des droits d'administration pour ce faire;
6080 \begin_layout Enumerate
6081 Avec MiK\SpecialChar TeX
6082 , si vous avez installé le paquetage pour tous les utilisateurs,
6083 démarrez le programme
6086 \begin_inset Quotes cld
6090 \begin_inset space ~
6096 \begin_inset Quotes crd
6099 et appuyez sur le bouton
6100 \begin_inset Quotes cld
6108 \begin_inset Quotes crd
6112 Sinon démarrez le programme
6113 \begin_inset Quotes cld
6121 \begin_inset Quotes crd
6128 \begin_layout Enumerate
6129 Enfin, vous devez informer \SpecialChar LyX
6130 de l'existence de nouveaux paquetages: dans
6134 Outils\SpecialChar menuseparator
6137 , puis redémarrez \SpecialChar LyX
6141 \begin_layout Standard
6142 Le paquetage est maintenant installé.
6143 Dans notre exemple, la classe de document
6144 \begin_inset Flex Code
6147 \begin_layout Plain Layout
6151 \begin_inset space ~
6159 est maintenant disponible dans
6161 Document\SpecialChar menuseparator
6162 Paramètres\SpecialChar menuseparator
6169 \begin_layout Standard
6170 Si vous souhaitez utiliser une classe de document qui ne figure pas dans
6173 Document\SpecialChar menuseparator
6174 Paramètres\SpecialChar menuseparator
6177 , vous devez créer une fichier de
6178 \begin_inset Quotes cld
6182 \begin_inset Quotes crd
6186 \begin_inset Quotes cld
6190 \begin_inset Quotes crd
6194 Ceci est le sujet du paragraphe suivant.
6197 \begin_layout Section
6198 Types de fichiers de formats
6201 \begin_layout Standard
6202 Cette section décrit les différentes variétés de fichiers contenant les
6203 informations de format: instructions pour l'affichage par \SpecialChar LyX
6204 et pour la traductio
6205 n en \SpecialChar LaTeX
6206 , DocBook ou XHTML, ou autre format de sortie désiré, des styles de
6207 paragraphe et de caractère variés.
6210 \begin_layout Standard
6211 Nous essayons ici de donner une description complète de la procédure à suivre;
6212 il y a cependant une telle variété de classes \SpecialChar LaTeX
6213 supportant des types de
6214 document très différents que nous ne pouvons pas espérer couvrir tous les
6215 cas possibles ni tous les problèmes que vous pourrez rencontrer.
6216 La liste de messagerie des utilisateurs \SpecialChar LyX
6217 est fréquentée par des personnes
6218 expérimentées dans l'écriture des formats, qui voudront partager ce qu'elles
6219 ont appris, n'hésitez pas à poser des questions sur cette liste.
6222 \begin_layout Standard
6223 Quand vous prévoyez d'écrire un nouveau format, il est extrêmement utile
6224 de regarder les formats distribués avec \SpecialChar LyX
6226 Si vous écrivez un fichier de format pour une classe de document \SpecialChar LaTeX
6228 intéresser d'autres personnes, ou si vous écrivez un module utile, vous
6229 pouvez envisager de l'insérer dans les
6230 \begin_inset CommandInset href
6232 name "pages dans le wiki LyX"
6233 target "https://wiki.lyx.org/Layouts/Layouts"
6238 , voire de le soumettre à la liste des développeurs, pour qu'il figure dans
6239 la distribution de \SpecialChar LyX
6244 \begin_layout Plain Layout
6245 Notez bien que du fait que \SpecialChar LyX
6246 est diffusé sous licence GPL (General Public
6247 License), toute contribution doit être également sous licence GPL.
6255 \begin_layout Subsection
6257 \begin_inset CommandInset label
6259 name "subsec:Modules_de_format"
6266 \begin_layout Standard
6267 Nous avons mentionné jusqu'ici les
6268 \begin_inset Quotes cld
6272 \begin_inset Quotes crd
6276 mais il existe différentes sortes de fichiers qui contiennent des informations
6278 Les fichiers de format au sens strict ont pour suffixe
6279 \begin_inset Flex Code
6282 \begin_layout Plain Layout
6288 et contiennent l'information nécessaire à \SpecialChar LyX
6289 pour les classes de document.
6290 Depuis \SpecialChar LyX
6291 1.6, cependant, les informations de format peuvent être incluses
6296 de format, qui ont pour suffixe
6297 \begin_inset Flex Code
6300 \begin_layout Plain Layout
6307 Les modules sont aux paquetages \SpecialChar LaTeX
6308 à peu près ce que sont les fichiers de
6309 format aux classes de document, et certains modules — tels que le module
6311 \begin_inset Quotes cld
6315 \begin_inset Quotes crd
6318 — offrent la fonctionnalité d'un seul paquetage.
6319 En un sens, le modules de format sont aussi similaires aux fichiers d'inclusion
6323 \begin_layout Plain Layout
6324 Ceux-ci peuvent avoir un suffixe quelconque, mais par convention il leur
6325 a été attribué le suffixe
6326 \begin_inset Flex Code
6329 \begin_layout Plain Layout
6340 — des fichiers comme
6341 \begin_inset Flex Code
6344 \begin_layout Plain Layout
6352 — dans le fait que les modules ne sont pas spécifiques du format d'un document
6353 donné, mais peuvent être utilisés avec de nombreux formats différents.
6354 Cependant l'utilisation d'un fichier d'inclusion (dans
6355 \begin_inset Flex Code
6358 \begin_layout Plain Layout
6364 par exemple) nécessite la modification du fichier de format
6365 \begin_inset Flex Code
6368 \begin_layout Plain Layout
6374 ; au lieu de cette modification, les modules sont sélectionnés dans la page
6376 \begin_inset Flex Noun
6379 \begin_layout Plain Layout
6380 Document\SpecialChar menuseparator
6389 \begin_layout Standard
6390 Rédiger des modules est la façon la plus simple de se familiariser avec
6391 l'écriture des formats, puisque ce peut être aussi simple que l'ajout d'un
6392 seul nouveau paragraphe ou insert.
6393 Mais en principe, les modules peuvent inclure tout ce que peuvent inclure
6397 \begin_layout Standard
6398 Après la création d'un nouveau module, vous devrez reconfigurer et redémarrer
6400 pour que le module apparaisse dans le menu.
6401 Cependant, les modifications que vous faites dans le module seront immédiatemen
6402 t actives, si vous ouvrez
6403 \begin_inset Flex Noun
6406 \begin_layout Plain Layout
6407 Document\SpecialChar menuseparator
6408 Paramètres\SpecialChar menuseparator
6414 , sélectionnez un module et appuyez sur
6415 \begin_inset Quotes cld
6419 \begin_inset Quotes crd
6425 Il vous est fortement recommandé de sauvegarder votre travail avant de procéder
6431 il vous est fortement recommandé de ne pas essayer de modifier des modules
6432 durant une travail productif sur un document
6435 Bien évidemment, les développeurs s'efforcent de conserver une bonne stabilité
6437 dans de telles situations, mais les erreurs de syntaxe et autres dans
6438 votre module pourraient déclencher des comportements bizarres.
6441 \begin_layout Subsubsection
6445 \begin_layout Standard
6446 Les modules sont à \SpecialChar LyX
6447 ce que les paquetages sont à \SpecialChar LaTeX
6449 Cependant, il arrive que vous souhaitiez disposer d'un insert ou d'un style
6450 de caractère pour un seul document, et écrire un module qui sera universel
6452 Vous avez alors besoin du
6453 \begin_inset Quotes cld
6457 \begin_inset Quotes crd
6464 \begin_layout Standard
6465 Vous le trouverez via
6467 Document\SpecialChar menuseparator
6468 Paramètres\SpecialChar menuseparator
6472 La grande zone textuelle vous permet de saisir ce que vous mettriez dans
6473 un fichier de format ou de module.
6474 Vous pouvez voir le format local comme un module qui n'appartient qu'au
6475 document en cours de saisie.
6476 De ce fait, vous devez saisir une balise
6477 \begin_inset Flex Code
6480 \begin_layout Plain Layout
6487 N'importe quel format est admissible, mais on utilise d'habitude le format
6488 de la version de \SpecialChar LyX
6489 utilisée (pour \SpecialChar LyX
6496 , le format porte le numéro
6505 \begin_layout Standard
6506 Lorsque vous avez saisi quelque chose dans la fenêtre de
6507 \begin_inset Flex Code
6510 \begin_layout Plain Layout
6518 \begin_inset Quotes cld
6526 \begin_inset Quotes crd
6529 qui se trouve en bas.
6530 Cliquer sur ce bouton entraînera une vérification de la validité du code
6531 que vous aurez saisi.
6533 vous donne cette information sans hélas l'accompagner d'un diagnostic
6534 d'erreurs explicite.
6535 Ces erreurs seront cependant affichées dans la fenêtre d'appel si vous
6536 avez activé \SpecialChar LyX
6538 Vous ne pourrez pas appliquer ou enregistrer votre format tant qu'il n'est
6542 \begin_layout Standard
6543 Les précautions indiquées à la fin de la section précédente s'appliquent
6545 Ne jouez pas avec un format local pendant un vrai travail, surtout si vous
6546 n'avez pas enregistré votre document.
6547 Ceci dit, utiliser un format local avec un document de test peut être très
6548 pratique pour essayer de nouvelles choses, voire pour aborder l’écriture
6552 \begin_layout Subsection
6553 Format pour un fichier
6554 \begin_inset Flex Code
6557 \begin_layout Plain Layout
6566 \begin_layout Standard
6567 Les deux situations que vous êtes probablement susceptibles de rencontrer
6568 quand vous voulez gérer une nouvelle classe de document \SpecialChar LaTeX
6570 \SpecialChar LaTeX2e
6572 \begin_inset Flex Code
6575 \begin_layout Plain Layout
6582 \begin_inset Flex Code
6585 \begin_layout Plain Layout
6592 Interfacer une nouveau fichier de style est assez facile, Interfacer une
6593 nouvelle classe est plus compliqué: nous allons décrire la première opération
6594 ici, et la seconde dans le paragraphe suivant.
6595 Des considérations analogues s'appliquent bien entendu si vous voulez interface
6596 r une nouvelle DTD DocBook.
6599 \begin_layout Standard
6600 La situation la plus simple se présente si votre nouvelle classe de document
6601 est fournie sous la forme d'un fichier de style à utiliser en combinaison
6602 avec une classe de document existante, déjà interfacée.
6603 Dans notre exemple, le fichier de style sera appelé
6604 \begin_inset Flex Code
6607 \begin_layout Plain Layout
6613 et il doit être utilisé avec la classe standard
6614 \begin_inset Flex Code
6617 \begin_layout Plain Layout
6626 \begin_layout Standard
6627 Commencez par copier le fichier de format de la classe de document en question
6628 dans votre répertoire local.
6631 \begin_layout LyX-Code
6632 cp report.layout ~/.lyx/layouts/ma_classe.layout
6635 \begin_layout Standard
6640 et changez la ligne :
6643 \begin_layout LyX-Code
6646 DeclareLaTeXClass{report}
6649 \begin_layout Standard
6653 \begin_layout LyX-Code
6656 DeclareLaTeXClass[report, ma_classe.sty]{report (ma_classe)}
6659 \begin_layout Standard
6663 \begin_layout LyX-Code
6665 \begin_inset Newline newline
6670 usepackage{ma_classe}
6671 \begin_inset Newline newline
6677 \begin_layout Standard
6678 près du début du fichier.
6681 \begin_layout Standard
6682 Démarrez \SpecialChar LyX
6684 \begin_inset Flex Noun
6687 \begin_layout Plain Layout
6688 Outils\SpecialChar menuseparator
6695 Redémarrez \SpecialChar LyX
6696 et essayez de créer un nouveau document.
6698 \begin_inset Quotes cld
6702 \begin_inset Flex Noun
6705 \begin_layout Plain Layout
6707 \begin_inset space ~
6716 \begin_inset Quotes crd
6719 parmi les classes de document dans la fenêtre
6720 \begin_inset Flex Noun
6723 \begin_layout Plain Layout
6724 Document\SpecialChar menuseparator
6725 Paramètres\SpecialChar menuseparator
6732 Il est probable que certaines des commandes de section devront être différentes
6733 de celles de la classe de base
6737 \begin_layout Plain Layout
6745 , vous pouvez donc jouer avec les réglages des différentes sections si vous
6747 Les informations de format pour le sectionnement se trouvent dans
6748 \begin_inset Flex Code
6751 \begin_layout Plain Layout
6757 , mais il n'est pas nécessaire de recopier ce fichier pour le modifier.
6758 Il vous suffit en effet d'ajouter vos modifications au fichier de format,
6760 \begin_inset Flex Code
6763 \begin_layout Plain Layout
6765 \begin_inset Flex Code
6768 \begin_layout Plain Layout
6779 , qui implique l'inclusion de
6780 \begin_inset Flex Code
6783 \begin_layout Plain Layout
6790 Par exemple, vous pourriez ajouter ces lignes:
6793 \begin_layout LyX-Code
6799 \begin_layout LyX-Code
6805 \begin_layout LyX-Code
6811 \begin_layout LyX-Code
6817 \begin_layout LyX-Code
6823 \begin_layout Standard
6824 pour modifier la police des titres de chapitre en police sens empattements.
6825 Ceci écrasera (ou bien, en l'occurrence, ajoutera) la déclaration existante
6826 pour le style Chapitre.
6829 \begin_layout Standard
6830 Votre nouveau paquetage peut également fournir des commandes ou des environnemen
6831 ts qui n'existent pas dans la classe de base.
6832 dans ce cas, il vous faudra ajouter ceux-ci au fichier de format.
6834 \begin_inset space ~
6838 \begin_inset CommandInset ref
6840 reference "sec:Syntaxe-des"
6844 pour savoir comment faire.
6847 \begin_layout Standard
6849 \begin_inset Flex Code
6852 \begin_layout Plain Layout
6858 peut être utilisé avec plusieurs classes de document différentes, vous
6859 trouverez sans doute plus approprié d'écrire un module que vous pourrez
6860 charger avec la classe de base.
6861 Le module le plus simple qu'il est possible d'écrire dans ce contexte est
6865 \begin_layout LyX-Code
6870 DeclareLyXModule{mon paquetage}
6873 \begin_layout LyX-Code
6879 \begin_layout LyX-Code
6882 #Support for mypkg.sty.
6885 \begin_layout LyX-Code
6889 \begin_inset Newline newline
6895 \begin_layout LyX-Code
6905 \begin_inset Newline newline
6911 \begin_layout LyX-Code
6915 \begin_inset Newline newline
6921 \begin_inset Newline newline
6927 \begin_layout Standard
6928 Un module plus compliqué pourrait modifier le comportement de constructions
6929 existantes ou d'en définir de nouvelles.
6931 \begin_inset space ~
6935 \begin_inset CommandInset ref
6937 reference "sec:Syntaxe-des"
6944 \begin_layout Subsection
6945 Format pour un fichier
6946 \begin_inset Flex Code
6949 \begin_layout Plain Layout
6958 \begin_layout Standard
6959 Deux possibilités se présentent.
6963 \begin_layout Standard
6964 Soit le fichier de classe est fondé sur une classe de document existante.
6965 Par exemple, de nombreuses classes pour une thèse sont des variantes de
6967 \begin_inset Flex Code
6970 \begin_layout Plain Layout
6977 Pour vérifier que c'est le cas pour la vôtre, cherchez une ligne comme
6980 \begin_layout LyX-Code
6988 \begin_layout Standard
6989 dans le fichier de classe.
6990 Si c'est la cas, vous pouvez essentiellement procéder comme dans la section
6991 précédente, bien que la ligne
6992 \begin_inset Flex Code
6995 \begin_layout Plain Layout
6996 Declare\SpecialChar LaTeX
7003 Si votre nouvelle classe est une thèse, et est fondée sur
7004 \begin_inset Flex Code
7007 \begin_layout Plain Layout
7013 , cette ligne doit être
7017 \begin_layout Plain Layout
7018 Et enregistrer le fichier comme
7019 \begin_inset Flex Code
7022 \begin_layout Plain Layout
7030 facilitera les choses: \SpecialChar LyX
7031 suppose que la classe de document a le même nom
7032 que le fichier de format.
7040 \begin_layout LyX-Code
7045 DeclareLaTeXClass[thesis,book]{thesis}
7048 \begin_layout Standard
7049 Soit le fichier de classe est original.
7050 Dans ce cas, vous devrez probablement créer votre propre format.
7051 Nous vous suggérons fortement de copier un fichier de format existant qui
7052 utilise une classe \SpecialChar LaTeX
7053 similaire et de le modifier si c'est possible.
7054 Utilisez au moins un fichier existant comme point de départ pour savoir
7055 quels sont les éléments dont vous devez vous occuper.
7056 Encore une fois, les spécificités sont décrites ci-après.
7059 \begin_layout Subsection
7061 \begin_inset CommandInset label
7070 \begin_layout Standard
7071 Une fois qu'un fichier de format a été crée pour une classe de document,
7072 vous désirerez peut-être créer un
7077 Un modèle est une sorte de mode d'emploi pour votre format, montrant comment
7078 il peut être utilisé, mais avec un contenu fictif.
7079 Vous pouvez jeter un œil aux divers modèles distribués avec \SpecialChar LyX
7083 \begin_layout Standard
7084 Les modèles sont créés comme les documents normaux.
7085 La seule différence est que les documents normaux contiennent tous les
7086 réglages possibles, y compris les polices et la taille du papier.
7087 Or on ne veut en général pas qu'un modèle modifie ces réglages implicites.
7088 Pour cette raison, l'auteur d'un modèle doit enlever les commandes correspondan
7090 \begin_inset Flex Code
7093 \begin_layout Plain Layout
7102 \begin_inset Flex Code
7105 \begin_layout Plain Layout
7113 du fichier modèle \SpecialChar LyX
7115 C'est faisable avec un simple éditeur de texte, comme
7116 \begin_inset Flex Code
7119 \begin_layout Plain Layout
7126 \begin_inset Flex Code
7129 \begin_layout Plain Layout
7138 \begin_layout Standard
7139 Mettez les fichiers modèles que vous avez créés et édités dans
7140 \begin_inset Flex Code
7143 \begin_layout Plain Layout
7149 , copiez ceux que vous utilisez du répertoire global de modèles
7150 \begin_inset Flex Code
7153 \begin_layout Plain Layout
7160 vers le même endroit, et redéfinissez le répertoire de modèles dans la
7162 \begin_inset Flex Noun
7165 \begin_layout Plain Layout
7166 Outils\SpecialChar menuseparator
7167 Préférences\SpecialChar menuseparator
7176 \begin_layout Standard
7178 \begin_inset Flex Code
7181 \begin_layout Plain Layout
7187 a un statut particulier.
7188 Il est chargé à chaque fois que vous créez un nouveau document avec
7189 \begin_inset Flex Noun
7192 \begin_layout Plain Layout
7193 Fichier\SpecialChar menuseparator
7199 afin d'avoir les réglages implicites.
7200 Pour créer ce modèle depuis \SpecialChar LyX
7201 , vous n'avez qu'à ouvrir un document ayant
7202 déjà les réglages voulus, et appuyer sur le bouton
7203 \begin_inset Flex Noun
7206 \begin_layout Plain Layout
7207 Enregistrer comme valeurs implicites
7215 \begin_layout Subsection
7216 Mise à jour des anciens fichiers de format
7219 \begin_layout Standard
7220 La syntaxe des fichiers de format change à chaque publication d'une nouvelle
7221 version de \SpecialChar LyX
7222 , et les anciens fichiers de format doivent donc être convertis
7223 dans la nouvelle syntaxe.
7225 lit un fichier de format écrit avec une syntaxe ancienne, il appelle
7227 \begin_inset Flex Code
7230 \begin_layout Plain Layout
7236 pour le convertir dans un fichier temporaire doté de la nouvelle syntaxe.
7237 Le fichier original reste intact.
7238 Si vous utilisez le fichier de format souvent, vous voudrez sans doute
7239 rendre les modifications permanentes, pour éviter des conversions répétitives
7240 de la part de \SpecialChar LyX
7242 Pour ce faire, vous pouvez appeler le convertisseur manuellement:
7245 \begin_layout Enumerate
7249 \begin_inset Flex Code
7252 \begin_layout Plain Layout
7265 \begin_inset Flex Code
7268 \begin_layout Plain Layout
7279 \begin_layout Enumerate
7280 exécutez la commande
7281 \begin_inset Newline newline
7285 \begin_inset Flex Code
7288 \begin_layout Plain Layout
7289 python \SpecialChar LyX
7290 Dir/scripts/layout2layout.py myclass.old myclass.layout
7296 \begin_inset Newline newline
7300 \begin_inset Flex Code
7303 \begin_layout Plain Layout
7310 est le nom de votre répertoire \SpecialChar LyX
7314 \begin_layout Standard
7315 Le convertisseur ne gère que les changements de syntaxe.
7316 Il ne peut pas gérer les modifications du contenu des fichiers inclus,
7317 ceux-ci doivent être convertis séparément.
7320 \begin_layout Subsection
7326 \begin_inset CommandInset label
7328 name "subsec:Cite-Engine-Files"
7335 \begin_layout Standard
7338 A specific form of layout files are the so-called
7339 \begin_inset Flex Code
7342 \begin_layout Plain Layout
7350 files that are located in the
7351 \begin_inset Flex Code
7354 \begin_layout Plain Layout
7363 Their purpose is to define the specifics of \SpecialChar LaTeX
7364 packages aimed at bibliography
7377 , but also the way how normal Bib\SpecialChar TeX
7378 citations (without additional packages)
7379 are handled in \SpecialChar LyX
7380 is defined in such a file.
7384 \begin_layout Standard
7387 More specifically, it is defined which packages \SpecialChar LyX
7388 needs to load, which citation
7389 commands are available, how these are to be displayed in \SpecialChar LyX
7391 the dialogs, the context menus) as well as in the XHTML and plain text
7393 Furthermore, the files specify available style variants (author-year, numerical
7394 , etc.) and their specifics.
7395 The cite engine files are also used to generate the options that are available
7398 Document\SpecialChar menuseparator
7399 Settings\SpecialChar menuseparator
7400 Bibliography\SpecialChar menuseparator
7406 \begin_layout Standard
7409 Even though a cite engine file is essentially a normal layout file that
7410 could theoretically include any layout information, it usually primarily
7411 includes some specific parameters such as
7412 \begin_inset Flex Code
7415 \begin_layout Plain Layout
7424 \begin_inset Flex Code
7427 \begin_layout Plain Layout
7436 \begin_inset Flex Code
7439 \begin_layout Plain Layout
7448 \begin_inset Flex Code
7451 \begin_layout Plain Layout
7460 The syntax of the latter two is described in
7463 \begin_inset CommandInset ref
7465 reference "subsec:Citation-engine-description"
7473 \begin_inset CommandInset ref
7475 reference "subsec:Description citation"
7481 as well as in the files themselves.
7484 \begin_layout Section
7485 Syntaxe des fichiers de format
7486 \begin_inset CommandInset label
7488 name "sec:Syntaxe-des"
7495 \begin_layout Standard
7496 Les sections suivantes vous expliquent à quoi vous vous attaquez quand vous
7497 décidez de mettre les mains dans le cambouis, et de créer ou d'éditer votre
7498 propre fichier de format.
7499 Notre conseil est d'aller doucement et d'enregistrer souvent pour faire
7501 Ce n'est pas si dur que ça, mais il y a une multitude d'options et vous
7502 pouvez vous laisser submerger si vous essayez d'en faire trop d'un coup.
7503 Il est plus facile d'utiliser des formats existants comme référence ou
7504 modèle ou de modifier un fichier de format existant pour vos besoins.
7507 \begin_layout Standard
7508 Toutes les balises décrites dans ce chapitre sont insensibles à la casse:
7510 \begin_inset Flex Code
7513 \begin_layout Plain Layout
7520 \begin_inset Flex Code
7523 \begin_layout Plain Layout
7530 \begin_inset Flex Code
7533 \begin_layout Plain Layout
7539 sont une seule et même balise.
7540 Les valeurs possibles sont inscrites entre crochets après le nom de la
7542 La valeur implicite d'une fonction quand elle n'est pas définie dans le
7543 fichier décrivant la classe de texte est
7546 \begin_inset Flex Code
7549 \begin_layout Plain Layout
7560 Si le paramètre est d'un type particulier la valeur implicite est indiquée
7562 \begin_inset Flex Code
7565 \begin_layout Plain Layout
7576 \begin_layout Subsection
7577 Déclaration et classification d'une classe de document
7580 \begin_layout Standard
7581 Les lignes qui commencent par un
7585 dans un fichier de format sont les commentaires.
7586 Il y a une exception à cette règle : tous les
7587 \begin_inset Flex Code
7590 \begin_layout Plain Layout
7596 doivent commencer par ceci :
7599 \begin_layout LyX-Code
7602 #% Do not delete the line below; configure depends on this
7606 \begin_layout Plain Layout
7607 Ne pas effacer la ligne ci-dessous ; configure compte dessus.
7615 \begin_layout LyX-Code
7620 DeclareLaTeXClass{Article (Standard Class)}
7623 \begin_layout LyX-Code
7628 DeclareCategory{Articles}
7631 \begin_layout Standard
7632 Les deuxième et troisième lignes servent lors de la (re)configuration de
7635 Le fichier de format est lu par le script \SpecialChar LaTeX
7637 \begin_inset Flex Code
7640 \begin_layout Plain Layout
7646 , dans un mode spécial où
7647 \begin_inset Flex Code
7650 \begin_layout Plain Layout
7657 La première ligne est juste un commentaire \SpecialChar LaTeX
7658 , la deuxième contient la déclaratio
7659 n obligatoire de la classe de texte et la troisième contient la classification
7660 facultative de la classe.
7661 Si ces lignes apparaissent dans un fichier appelé
7662 \begin_inset Flex Code
7665 \begin_layout Plain Layout
7671 , elles définissent alors une classe de texte appelée
7672 \begin_inset Flex Code
7675 \begin_layout Plain Layout
7681 (le nom du fichier de format) qui utilise la classe de document \SpecialChar LaTeX
7683 \begin_inset Flex Code
7686 \begin_layout Plain Layout
7692 (implicitement, le même nom que le format).
7694 \begin_inset Quotes cld
7697 Article (Standard Class)
7698 \begin_inset Quotes crd
7701 qui apparaît ci-dessus sert de description de la classe de texte dans la
7703 \begin_inset Flex Noun
7706 \begin_layout Plain Layout
7707 Document\SpecialChar menuseparator
7708 Paramètres\SpecialChar menuseparator
7716 \begin_inset Quotes cld
7720 \begin_inset Quotes crd
7723 dans l'exemple) est également utilisés dans la fenêtre
7724 \begin_inset Flex Noun
7727 \begin_layout Plain Layout
7728 Document\SpecialChar menuseparator
7729 Paramètres\SpecialChar menuseparator
7735 : les classes sont regroupées par catégories (qui sont aussi des genres
7736 de documents, les catégories typiques sont
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 \begin_inset Quotes cld
7773 \begin_inset Quotes crd
7777 \begin_inset Quotes cld
7781 \begin_inset Quotes crd
7785 Si la troisième lignes est vide, la classe apparaîtra comme
7786 \begin_inset Quotes cld
7790 \begin_inset Quotes crd
7796 \begin_layout Standard
7797 Supposons que vous ayez écrit votre propre classe de texte qui utilise la
7799 \begin_inset Flex Code
7802 \begin_layout Plain Layout
7808 , mais dans laquelle vous avez changé l'apparence des en-têtes de sections.
7809 Si vous la mettez dans un fichier
7810 \begin_inset Flex Code
7813 \begin_layout Plain Layout
7819 , l'en-tête de ce fichier doit être :
7822 \begin_layout LyX-Code
7825 #% Do not delete the line below; configure depends on this
7828 \begin_layout LyX-Code
7833 DeclareLaTeXClass[article]{Article (avec Mes En-têtes)}
7836 \begin_layout LyX-Code
7841 DeclareCategory{Articles}
7844 \begin_layout Standard
7845 Ceci déclare une classe de texte
7846 \begin_inset Flex Code
7849 \begin_layout Plain Layout
7855 , associée avec la classe de document \SpecialChar LaTeX
7857 \begin_inset Flex Code
7860 \begin_layout Plain Layout
7867 \begin_inset Quotes cld
7870 Article (avec Mes En-têtes)
7871 \begin_inset Quotes crd
7875 Si votre classe de texte repose sur plusieurs paquetages, vous pouvez la
7879 \begin_layout LyX-Code
7882 #% Do not delete the line below; configure depends on this
7885 \begin_layout LyX-Code
7890 DeclareLaTeXClass[article,machin.sty]{Article (avec Mes En-têtes)}
7893 \begin_layout LyX-Code
7898 DeclareCategory{Articles}
7901 \begin_layout Standard
7902 Ceci indique que votre classe de texte utilise le paquetage
7903 \begin_inset Flex Code
7906 \begin_layout Plain Layout
7913 Enfin, il est aussi possible de déclarer des classes pour du code DocBook.
7914 Les déclarations ressemblent en général à :
7917 \begin_layout LyX-Code
7920 #% Do not delete the line below; configure depends on this
7923 \begin_layout LyX-Code
7928 DeclareDocBookClass[article]{SGML (DocBook Article)}
7931 \begin_layout LyX-Code
7936 DeclareCategory{Articles}
7939 \begin_layout Standard
7940 Notez que ces déclarations peuvent aussi recevoir un paramètre optionnel
7941 déclarant le nom de la classe de document (mais pas une liste).
7944 \begin_layout Standard
7945 Donc, de la manière la plus explicite, la forme d'une déclaration de format
7949 \begin_layout LyX-Code
7954 DeclareLaTeXClass[class,package.sty]{description du format}
7957 \begin_layout LyX-Code
7962 DeclareCategory{catégorie}
7965 \begin_layout Standard
7966 Il n'est nécessaire de déclarer la classe que si le nom de la classe \SpecialChar LaTeX
7968 le nom du fichier de format diffèrent, ou si des paquetages sont à spécifier.
7969 Si le nom de la classe n'est pas spécifiée, \SpecialChar LyX
7970 suppose qu'elle est identique
7971 à celle du fichier de format.
7974 \begin_layout Standard
7975 Une fois que la classe de texte a été modifiée à votre goût, tout ce que
7976 vous avez à faire est de la copier soit dans
7977 \begin_inset Flex Code
7980 \begin_layout Plain Layout
7988 \begin_inset Flex Code
7991 \begin_layout Plain Layout
7998 \begin_inset Flex Noun
8001 \begin_layout Plain Layout
8002 Outils\SpecialChar menuseparator
8003 Recon\SpecialChar softhyphen
8010 Quittez \SpecialChar LyX
8011 et redémarrez-le; votre nouvelle classe de texte devrait alors
8012 être disponible avec les autres.
8015 \begin_layout Standard
8016 Une fois le fichier de format installé, vous pouvez le modifier et vérifier
8017 l'effet de ces modifications sans reconfigurer ou redémarrer \SpecialChar LyX
8022 \begin_layout Plain Layout
8023 Avec les versions de \SpecialChar LyX
8024 antérieures à 1.6, il vous fallait redémarrer \SpecialChar LyX
8026 valider les modifications effectuées dans les fichiers de format.
8027 De ce fait, les modifications pouvaient prendre beaucoup de temps.
8032 Vous pouvez imposer un rechargement du format en service en utilisant la
8034 \begin_inset Flex Noun
8037 \begin_layout Plain Layout
8046 Cette fonction n'est implicitement liée à aucun raccourci — vous pouvez
8047 bien sûr la lier à une touche vous-même.
8048 Si vous voulez utiliser cette fonction, il vous suffit de la saisir dans
8053 \begin_layout Standard
8059 \begin_inset Flex Noun
8062 \begin_layout Plain Layout
8070 est une fonctionnalité
8071 \begin_inset Quotes cld
8075 \begin_inset Quotes crd
8087 recommandé de sauvegarder votre travail avant de procéder ainsi
8092 En fait, il vous est
8096 recommandé de ne pas essayer de modifier des formats durant une travail
8097 productif sur un document.
8098 Utilisez un document de test, les erreurs de syntaxe et autres dans votre
8099 module pourraient déclencher des comportements bizarres.
8100 En particulier, de telles erreurs pourraient inciter \SpecialChar LyX
8102 formats en service comme incorrects et à essayer de basculer sur un autre
8107 \begin_layout Plain Layout
8108 Les erreurs de syntaxe vraiment graves peuvent même stopper \SpecialChar LyX
8110 Ceci provient du fait que certaines erreurs rendent \SpecialChar LyX
8112 la moindre information de format.
8113 Faites attention\SpecialChar ldots
8119 Les développeurs s'efforcent de conserver une bonne stabilité à \SpecialChar LyX
8121 telles situations, mais il vaut mieux être sûr que regretter
8125 \begin_layout Plain Layout
8126 Puisque nous en sommes au conseils: faites des sauvegardes régulières.
8127 Et soyez gentil avec votre maman.
8135 \begin_layout Subsection
8136 Déclaration d'un module
8139 \begin_layout Standard
8140 La première ligne d'un module doit être rédigée comme suit:
8143 \begin_layout LyX-Code
8146 DeclareLyXModule[endnotes.sty]{Endnotes}
8149 \begin_layout Standard
8150 L'argument obligatoire, entre accolades, est le nom du module, tel qu'il
8152 \begin_inset Flex Noun
8155 \begin_layout Plain Layout
8156 Document\SpecialChar menuseparator
8157 Paramètres\SpecialChar menuseparator
8164 L'argument entre crochets est facultatif: il déclare n'importe quel paquetage
8166 dont dépend le module.
8167 Il est également possible d'utiliser la clé
8168 \begin_inset Flex Noun
8171 \begin_layout Plain Layout
8177 en argument optionnel: elle déclare que le module ne peut être employé
8178 que s'il existe un chemin de conversion entre les formats
8179 \begin_inset Flex Code
8182 \begin_layout Plain Layout
8189 \begin_inset Flex Code
8192 \begin_layout Plain Layout
8201 \begin_layout Standard
8202 La déclaration du module devra être suivi par des lignes descriptives comme
8207 \begin_layout Plain Layout
8208 En anglais de préférence si le module doit être diffusé par \SpecialChar LyX
8210 Cette description apparaîtra dans la liste des messages à traduire et sera
8211 donc traduite lors de la mise à jour de l'interface.
8219 \begin_layout LyX-Code
8225 \begin_layout LyX-Code
8228 #Adds an endnote command, in addition to footnotes.
8232 \begin_layout LyX-Code
8235 #You will need to add
8237 theendnotes in \SpecialChar TeX
8241 \begin_layout LyX-Code
8244 #want the endnotes to appear.
8248 \begin_layout LyX-Code
8254 \begin_layout LyX-Code
8257 #Requires: somemodule | othermodule
8260 \begin_layout LyX-Code
8263 #Excludes: badmodule
8266 \begin_layout Standard
8267 Cette description est utilisée dans
8268 \begin_inset Flex Noun
8271 \begin_layout Plain Layout
8272 Document\SpecialChar menuseparator
8273 Paramètres\SpecialChar ldots
8274 \SpecialChar menuseparator
8280 pour informer l'utilisateur de la fonction du module.
8282 \begin_inset Flex Code
8285 \begin_layout Plain Layout
8293 permet d'identifier les modules qui doivent être activés avec celui-ci;
8295 \begin_inset Flex Code
8298 \begin_layout Plain Layout
8306 permet d'identifier les modules interdits avec celui-ci.
8307 Les deux lignes sont facultatives et, comme indiqué, les modules dans une
8308 liste doivent être séparés par une barre verticale: |.
8309 Noter que les modules requis sont traités sur le mode disjonctif:
8313 des modules requis doit être utilisé.
8318 des modules exclus ne doit être utilisé.
8319 Noter également que les les modules sont identifiés par leur nom de fichier,
8321 \begin_inset Flex Code
8324 \begin_layout Plain Layout
8332 \begin_inset Flex Code
8335 \begin_layout Plain Layout
8344 \begin_inset Flex Code
8347 \begin_layout Plain Layout
8358 \begin_layout Subsection
8361 The CiteEngine file declaration
8364 \begin_layout Standard
8367 A cite engine file must begin with a line like the following:
8370 \begin_layout LyX-Code
8375 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8378 \begin_layout Standard
8381 The mandatory argument, in curly brackets, is the name of the module, as
8383 \begin_inset Flex Noun
8386 \begin_layout Plain Layout
8389 Document\SpecialChar menuseparator
8390 Settings\SpecialChar menuseparator
8397 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8399 on which the cite engine depends.
8402 \begin_layout Standard
8405 The cite engine declaration should then be followed by lines like the following
8409 \begin_layout Plain Layout
8412 Preferably in English if the module should be published with \SpecialChar LyX
8414 This description will appear in the list of messages to be translated and
8415 will be thus translated with the next interface update.
8423 \begin_layout LyX-Code
8429 \begin_layout LyX-Code
8432 # Biblatex supports many author-year and numerical styles.
8435 \begin_layout LyX-Code
8438 # It is mainly aimed at the Humanities.
8442 \begin_layout LyX-Code
8445 # customizable, fully localized and provides many features
8448 \begin_layout LyX-Code
8451 # that are not possible with BibTeX.
8452 The use of 'biber' as
8455 \begin_layout LyX-Code
8458 # bibliography processor is advised.
8461 \begin_layout LyX-Code
8467 \begin_layout Standard
8470 The description is used in
8471 \begin_inset Flex Noun
8474 \begin_layout Plain Layout
8477 Document\SpecialChar menuseparator
8478 Settings\SpecialChar menuseparator
8484 to provide the user with information about the cite engine.
8487 \begin_layout Subsection
8488 Numéro d'identification syntaxique
8491 \begin_layout Standard
8492 La première ligne non commentée doit contenir le numéro d'identification
8493 syntaxique du contenu du fichier de format:
8496 \begin_layout Description
8497 \begin_inset Flex Code
8500 \begin_layout Plain Layout
8509 \begin_inset Flex Code
8512 \begin_layout Plain Layout
8520 ] identification syntaxique du fichier de format
8523 \begin_layout Standard
8524 Ce balisage a été introduit dans \SpecialChar LyX
8526 \begin_inset space ~
8529 1.4.0 Les fichiers de format des versions antérieures n'avaient pas de numéro
8530 de format explicite et sont affectés du
8533 \begin_inset Flex Code
8536 \begin_layout Plain Layout
8540 \begin_inset space ~
8551 Le numéro de format du présent fichier est le numéro
8558 mais chaque version de \SpecialChar LyX
8559 peut lire les fichiers de format d'une version
8560 plus ancienne, comme elle peut lire les documents crées avec une version
8562 Il n'y a cependant aucun moyen de revernir aux numéros d'identification
8566 \begin_layout Subsection
8567 Paramètres généraux d'une classe de texte
8568 \begin_inset CommandInset label
8570 name "subsec:Paramètres-généraux-d'une"
8577 \begin_layout Standard
8578 Voici les paramètres généraux qui décrivent l'aspect du document pour une
8579 classe complète (ceci ne veut pas dire qu'il
8583 apparaître dans le fichiers
8584 \begin_inset Flex Code
8587 \begin_layout Plain Layout
8593 plutôt que dans les modules.
8594 Un module peut contenir n'importe quelle balise de format):
8597 \begin_layout Description
8600 \begin_inset Flex Code
8603 \begin_layout Plain Layout
8616 ajoute une information qui sera incluse dans le bloc
8617 \begin_inset Flex Code
8620 \begin_layout Plain Layout
8626 quand le document est exporté en XHTML.
8627 Typiquement, ce paramètre est utilisé pour exporter de l'information en
8628 style CSS, mais il peut être utilisé pour toute information valide entre
8630 \begin_inset Flex Code
8633 \begin_layout Plain Layout
8641 \begin_inset Quotes cld
8645 \begin_inset Flex Code
8648 \begin_layout Plain Layout
8657 \begin_inset Quotes crd
8663 \begin_layout Description
8666 \begin_inset Flex Code
8669 \begin_layout Plain Layout
8682 ajoute une information au préambule du document.
8684 \begin_inset Quotes cld
8688 \begin_inset Flex Code
8691 \begin_layout Plain Layout
8700 \begin_inset Quotes crd
8706 \begin_layout Description
8709 \begin_inset Flex Code
8712 \begin_layout Plain Layout
8720 Defines the possibilities for displaying citation references.
8722 \begin_inset CommandInset ref
8724 reference "subsec:Citation-engine-description"
8733 \begin_inset Quotes eld
8737 \begin_inset Flex Code
8740 \begin_layout Plain Layout
8749 \begin_inset Quotes erd
8753 Primarily used in cite engine files (see
8754 \begin_inset CommandInset ref
8756 reference "subsec:Cite-Engine-Files"
8766 \begin_layout Description
8769 \begin_inset Flex Code
8772 \begin_layout Plain Layout
8785 définit le style à utiliser pour afficher les informations bibliographiques.
8787 \begin_inset CommandInset ref
8789 reference "subsec:Description citation"
8795 \begin_inset Quotes cld
8799 \begin_inset Flex Code
8802 \begin_layout Plain Layout
8811 \begin_inset Quotes crd
8817 Primarily used in cite engine files (see
8818 \begin_inset CommandInset ref
8820 reference "subsec:Cite-Engine-Files"
8830 \begin_layout Description
8833 \begin_inset Flex Code
8836 \begin_layout Plain Layout
8845 \begin_inset Flex Code
8848 \begin_layout Plain Layout
8858 \begin_inset Flex Code
8861 \begin_layout Plain Layout
8869 ] Determines whether
8873 or Bib\SpecialChar TeX
8874 is used to generate a Bibliography.
8875 Primarily used in cite engine files (see
8876 \begin_inset Newline newline
8880 \begin_inset CommandInset ref
8882 reference "subsec:Cite-Engine-Files"
8892 \begin_layout Description
8895 \begin_inset Flex Code
8898 \begin_layout Plain Layout
8911 décrit diverses options globales comprises par la classe du document.
8913 \begin_inset CommandInset ref
8915 reference "subsec:Section-ClassOptions"
8921 \begin_inset Quotes cld
8925 \begin_inset Flex Code
8928 \begin_layout Plain Layout
8937 \begin_inset Quotes crd
8943 \begin_layout Description
8946 \begin_inset Flex Code
8949 \begin_layout Plain Layout
8960 \begin_inset Flex Code
8963 \begin_layout Plain Layout
8972 \begin_inset space \thinspace{}
8976 \begin_inset Flex Code
8979 \begin_layout Plain Layout
8985 ] fixe le nombre implicite de colonnes (une ou deux).
8986 Peut être changé dans la fenêtre
8987 \begin_inset Flex Noun
8990 \begin_layout Plain Layout
8991 Document\SpecialChar menuseparator
9001 \begin_layout Description
9004 \begin_inset Flex Code
9007 \begin_layout Plain Layout
9021 \begin_inset Flex Code
9024 \begin_layout Plain Layout
9030 ] définit les paramètres d'un nouveau compteur.
9031 Si le compteur n'existe pas, il est créé; s'il existe, il est modifié.
9033 \begin_inset Quotes cld
9037 \begin_inset Flex Code
9040 \begin_layout Plain Layout
9049 \begin_inset Quotes crd
9053 \begin_inset Newline newline
9057 \begin_inset CommandInset ref
9059 reference "subsec:Compteurs"
9066 \begin_layout Description
9069 \begin_inset Flex Code
9072 \begin_layout Plain Layout
9082 décrit la police implicite dans le document.
9084 \begin_inset CommandInset ref
9086 reference "subsec:polices"
9090 pour une description.
9092 \begin_inset Quotes cld
9098 \begin_inset Flex Code
9101 \begin_layout Plain Layout
9110 \begin_inset Quotes crd
9116 \begin_layout Description
9119 \begin_inset Flex Code
9122 \begin_layout Plain Layout
9133 \begin_inset Flex Code
9136 \begin_layout Plain Layout
9142 ] spécifie un module inclus implicitement avec cette classe de document,
9143 donné par son nom de fichier sans suffixe
9144 \begin_inset Flex Code
9147 \begin_layout Plain Layout
9156 L'utilisateur peut toujours le retirer, mais il sera actif à l'ouverture
9157 du document (ceci s'applique pour un nouveau document, ou quand cette classe
9158 est choisie pour un document existant).
9161 \begin_layout Description
9164 \begin_inset Flex Code
9167 \begin_layout Plain Layout
9178 \begin_inset Flex Code
9181 \begin_layout Plain Layout
9187 ] indique le style qui sera appliqué aux nouveaux paragraphes, habituellement
9189 \begin_inset Flex Noun
9192 \begin_layout Plain Layout
9201 Ce sera implicitement le premier style défini si ce paramètre n'est pas
9202 fixé, mais vous êtes vivement encouragé à utiliser cette directive.
9205 \begin_layout Description
9208 \begin_inset Flex Code
9211 \begin_layout Plain Layout
9222 \begin_inset Flex Code
9225 \begin_layout Plain Layout
9231 ] indique que le module spécifié (donné par son nom de fichier sans le suffixe
9233 \begin_inset Flex Code
9236 \begin_layout Plain Layout
9244 ) ne peut pas être utilisé avec cette classe de document.
9245 Ceci peut être utilisé par exemple dans un format pour une revue pour éviter
9247 l'utilisation du module
9248 \begin_inset Flex Code
9251 \begin_layout Plain Layout
9259 (numérotation des théorèmes par sections).
9268 être utilisé dans un module: les modules ont leur propre méthode d'exclusion
9270 \begin_inset CommandInset ref
9272 reference "subsec:Modules_de_format"
9279 \begin_layout Description
9282 \begin_inset Flex Code
9285 \begin_layout Plain Layout
9295 définit un nouveau flottant.
9297 \begin_inset CommandInset ref
9299 reference "subsec:Flottants"
9305 \begin_inset Quotes cld
9309 \begin_inset Flex Code
9312 \begin_layout Plain Layout
9321 \begin_inset Quotes crd
9327 \begin_layout Description
9330 \begin_inset Flex Code
9333 \begin_layout Plain Layout
9343 définit l'information qui sera incluse dans le bloc
9344 \begin_inset Flex Code
9347 \begin_layout Plain Layout
9353 quand le document est exporté en XHTML.
9354 Notez bien que ceci écrasera toute déclaration
9357 \begin_inset Flex Code
9360 \begin_layout Plain Layout
9373 \begin_inset Flex Code
9376 \begin_layout Plain Layout
9386 antérieure (utiliser
9387 \begin_inset Newline newline
9393 \begin_inset Flex Code
9396 \begin_layout Plain Layout
9406 si vous désirez simplement ajouter du contenu).
9408 \begin_inset Quotes cld
9412 \begin_inset Flex Code
9415 \begin_layout Plain Layout
9424 \begin_inset Quotes crd
9430 \begin_layout Description
9433 \begin_inset Flex Code
9436 \begin_layout Plain Layout
9447 \begin_inset Flex Code
9450 \begin_layout Plain Layout
9456 ] définit le style utilisé pour la table des matières, la bibliographie,
9457 et similaires, lorsque le document est exporté en HTML.
9458 Pour les articles, ceci devrait normalement valoir
9461 \begin_inset Flex Code
9464 \begin_layout Plain Layout
9477 \begin_inset Flex Code
9480 \begin_layout Plain Layout
9491 Sans précisions, \SpecialChar LyX
9492 essaiera de deviner quel style utiliser.
9495 \begin_layout Description
9498 \begin_inset Flex Code
9501 \begin_layout Plain Layout
9512 \begin_inset Flex Code
9515 \begin_layout Plain Layout
9521 ] modifie les propriétés d'un compteur donné.
9522 Si le compteur n'existe pas, la directive est ignorée.
9524 \begin_inset Quotes cld
9528 \begin_inset Flex Code
9531 \begin_layout Plain Layout
9540 \begin_inset Quotes crd
9544 \begin_inset Newline newline
9548 \begin_inset CommandInset ref
9550 reference "subsec:Compteurs"
9554 pour les détails au sujet des compteurs.
9557 \begin_layout Description
9558 \begin_inset Flex Code
9561 \begin_layout Plain Layout
9570 \begin_inset Flex Code
9573 \begin_layout Plain Layout
9579 ] permet d'inclure un autre fichier de définition de format pour éviter
9580 de réécrire des commandes.
9581 C'est souvent le cas des fichiers de format standard, comme
9582 \begin_inset Flex Code
9585 \begin_layout Plain Layout
9591 , qui contient la plupart des réglages de base.
9594 \begin_layout Description
9597 \begin_inset Flex Code
9600 \begin_layout Plain Layout
9614 \begin_inset Flex Code
9617 \begin_layout Plain Layout
9623 ] cette section (re)définit le format d'un insert.
9624 Elle peut être appliquée à un insert existant pour obtenir un nouvel insert
9625 défini par l'utilisateur, e.g.
9626 un nouveau style de caractères.
9628 \begin_inset Quotes cld
9632 \begin_inset Flex Code
9635 \begin_layout Plain Layout
9644 \begin_inset Quotes crd
9648 \begin_inset Newline newline
9652 \begin_inset CommandInset ref
9654 reference "subsec:Flex-insets-and"
9661 \begin_layout Description
9664 \begin_inset Flex Code
9667 \begin_layout Plain Layout
9681 \begin_inset Flex Code
9684 \begin_layout Plain Layout
9690 ] indique la largeur de la marge gauche à l'écran, par exemple
9691 \begin_inset Quotes cld
9695 \begin_inset Flex Code
9698 \begin_layout Plain Layout
9705 \begin_inset Quotes crd
9708 (noter que ce n'est pas une
9709 \begin_inset Quotes cld
9713 \begin_inset Quotes crd
9717 \begin_inset Quotes cld
9721 \begin_inset Quotes crd
9727 \begin_layout Description
9730 \begin_inset Flex Code
9733 \begin_layout Plain Layout
9742 \begin_inset Flex Code
9745 \begin_layout Plain Layout
9753 ] An integer that determines the maximal number of names displayed in an
9754 author-year citation before the citation switches to
9755 \begin_inset Quotes eld
9759 \begin_inset Quotes erd
9763 Primarily used in cite engine files (see
9764 \begin_inset CommandInset ref
9766 reference "subsec:Cite-Engine-Files"
9776 \begin_layout Description
9779 \begin_inset Flex Code
9782 \begin_layout Plain Layout
9793 \begin_inset Flex Code
9796 \begin_layout Plain Layout
9802 ] modifies les propriétés de style d'un paragraphe donné.
9803 Si le style n'existe pas, le directive est ignorée.
9805 \begin_inset Quotes cld
9809 \begin_inset Flex Code
9812 \begin_layout Plain Layout
9821 \begin_inset Quotes crd
9827 \begin_layout Description
9830 \begin_inset Flex Code
9833 \begin_layout Plain Layout
9844 \begin_inset Flex Code
9847 \begin_layout Plain Layout
9853 ] efface un compteur existant, habituellement défini dans un fichier inclus.
9856 \begin_layout Description
9859 \begin_inset Flex Code
9862 \begin_layout Plain Layout
9873 \begin_inset Flex Code
9876 \begin_layout Plain Layout
9882 ] efface un flottant existant.
9883 C'est très utile quand vous voulez supprimer un flottant qui a été défini
9884 dans un fichier inclus.
9887 \begin_layout Description
9890 \begin_inset Flex Code
9893 \begin_layout Plain Layout
9904 \begin_inset Flex Code
9907 \begin_layout Plain Layout
9913 ] efface un style existant.
9916 \begin_layout Description
9919 \begin_inset Flex Code
9922 \begin_layout Plain Layout
9936 \begin_inset Flex Code
9939 \begin_layout Plain Layout
9945 ] indique quelle sorte de format de fichier (tel que défini dans les préférences
9947 ) est produit par cette classe.
9948 Elle est surtout utile quand
9949 \begin_inset Flex Code
9952 \begin_layout Plain Layout
9963 \begin_inset Flex Code
9966 \begin_layout Plain Layout
9976 et que l'on veut définir un nouvelle sorte de document en programmation
9978 La chaîne est redéfinie comme
9979 \begin_inset Quotes cld
9985 \begin_inset Flex Code
9988 \begin_layout Plain Layout
9999 \begin_inset Quotes crd
10003 \begin_inset Quotes cld
10009 \begin_inset Flex Code
10012 \begin_layout Plain Layout
10023 \begin_inset Quotes crd
10026 quand la directive correspondante
10027 \begin_inset Flex Code
10030 \begin_layout Plain Layout
10041 \begin_layout Description
10044 \begin_inset Flex Code
10047 \begin_layout Plain Layout
10062 \begin_inset Flex Code
10065 \begin_layout Plain Layout
10077 \begin_inset Flex Code
10080 \begin_layout Plain Layout
10089 \begin_inset Flex Code
10092 \begin_layout Plain Layout
10102 ] indique quelle sorte de document résultant sera obtenu par cette classe.
10105 \begin_layout Description
10108 \begin_inset Flex Code
10111 \begin_layout Plain Layout
10122 \begin_inset Flex Code
10125 \begin_layout Plain Layout
10132 \begin_inset Flex Code
10135 \begin_layout Plain Layout
10141 ] précise les options, données par le seconde chaîne de caractères, pour
10142 le paquetage nommé par le première chaîne.
10144 \begin_inset Quotes cld
10148 \begin_inset Flex Code
10151 \begin_layout Plain Layout
10152 PackageOptions natbib square
10158 \begin_inset Quotes crd
10161 déclenchera le chargement de
10162 \begin_inset Flex Code
10165 \begin_layout Plain Layout
10172 \begin_inset Flex Code
10175 \begin_layout Plain Layout
10181 (pour les \SpecialChar TeX
10182 perts, ceci force \SpecialChar LyX
10184 \begin_inset Newline newline
10188 \begin_inset Flex Code
10191 \begin_layout Plain Layout
10194 PassOptionsToPackage{natbib}{square}
10199 avant le chargement de
10200 \begin_inset Flex Code
10203 \begin_layout Plain Layout
10212 \begin_layout Description
10215 \begin_inset Flex Code
10218 \begin_layout Plain Layout
10229 \begin_inset Flex Code
10232 \begin_layout Plain Layout
10244 \begin_inset Flex Code
10247 \begin_layout Plain Layout
10256 \begin_inset Flex Code
10259 \begin_layout Plain Layout
10269 fixe la mise en page implicite.
10270 Peut être changée dans la fenêtre
10271 \begin_inset Flex Noun
10274 \begin_layout Plain Layout
10275 Document\SpecialChar menuseparator
10276 Paramètres\SpecialChar ldots
10285 \begin_layout Description
10288 \begin_inset Flex Code
10291 \begin_layout Plain Layout
10301 fixe le préambule du document \SpecialChar LaTeX
10303 Notez bien que ceci remplacera complètement toute autre directive
10306 \begin_inset Flex Code
10309 \begin_layout Plain Layout
10318 \begin_inset Flex Code
10321 \begin_layout Plain Layout
10331 (utiliser cette dernière directive si vous voulez seulement ajouter des
10332 éléments au contenu).
10333 Doit être fermé par
10334 \begin_inset Quotes cld
10338 \begin_inset Flex Code
10341 \begin_layout Plain Layout
10350 \begin_inset Quotes crd
10356 \begin_layout Description
10359 \begin_inset Flex Code
10362 \begin_layout Plain Layout
10373 \begin_inset Flex Code
10376 \begin_layout Plain Layout
10383 \begin_inset Flex Code
10386 \begin_layout Plain Layout
10395 \begin_inset space \thinspace{}
10399 \begin_inset Flex Code
10402 \begin_layout Plain Layout
10408 ] décrit si la classe fournit la fonctionnalité
10409 \begin_inset Flex Code
10412 \begin_layout Plain Layout
10421 Une fonctionnalité est en général le nom d'un paquetage (
10422 \begin_inset Flex Code
10425 \begin_layout Plain Layout
10434 \begin_inset Flex Code
10437 \begin_layout Plain Layout
10445 , \SpecialChar ldots
10446 ) ou d'une commande \SpecialChar LaTeX
10448 \begin_inset Flex Code
10451 \begin_layout Plain Layout
10460 \begin_inset Flex Code
10463 \begin_layout Plain Layout
10471 ,\SpecialChar ldots
10474 \begin_inset space ~
10478 \begin_inset CommandInset ref
10480 reference "chap:List-of-functions"
10484 pour une liste des fonctionnalités.
10487 \begin_layout Description
10490 \begin_inset Flex Code
10493 \begin_layout Plain Layout
10504 \begin_inset Flex Code
10507 \begin_layout Plain Layout
10513 ] indique que ce format fournit la fonctionnalité du module indiqué, qui
10514 doit être spécifié par le nom du fichier dans le suffixe
10515 \begin_inset Flex Code
10518 \begin_layout Plain Layout
10527 Ceci sera utilisé typiquement si le format inclut directement le module,
10528 plutôt que via le paramètre
10529 \begin_inset Flex Code
10532 \begin_layout Plain Layout
10540 pour indiquer qu'il doit être utilisé.
10541 Il pourrait être également utilisé dans un module fournissant une implantation
10542 équivalente de la même fonctionnalité.
10545 \begin_layout Description
10548 \begin_inset Flex Code
10551 \begin_layout Plain Layout
10562 \begin_inset Flex Code
10565 \begin_layout Plain Layout
10571 ] crée une nouveau style de paragraphe s'il n'existe pas déjà.
10572 S'il existe, l'entrée est ignorée.
10573 Doit être fermé par
10574 \begin_inset Quotes cld
10578 \begin_inset Flex Code
10581 \begin_layout Plain Layout
10590 \begin_inset Quotes crd
10596 \begin_layout Description
10599 \begin_inset Flex Code
10602 \begin_layout Plain Layout
10613 \begin_inset Flex Code
10616 \begin_layout Plain Layout
10622 ] indique que la classe nécessite la fonctionnalité
10623 \begin_inset Flex Code
10626 \begin_layout Plain Layout
10635 Plusieurs fonctionnalités doivent être séparées par des virgules.
10636 Noter que l'on ne peut requérir que des fonctionnalités reconnues (voir
10638 \begin_inset CommandInset ref
10640 reference "chap:List-of-functions"
10644 pour accéder à la liste des fonctionnalités).
10645 Si vous demandez un paquetage doté d'options spécifiques, vous pouvez utiliser
10647 \begin_inset Flex Code
10650 \begin_layout Plain Layout
10659 \begin_layout Description
10662 \begin_inset Flex Code
10665 \begin_layout Plain Layout
10676 \begin_inset Flex Code
10679 \begin_layout Plain Layout
10685 ] indique la largeur de la marge droite à l'écran, par exemple
10686 \begin_inset Quotes cld
10690 \begin_inset Flex Code
10693 \begin_layout Plain Layout
10700 \begin_inset Quotes crd
10706 \begin_layout Description
10709 \begin_inset Flex Code
10712 \begin_layout Plain Layout
10726 \begin_inset Flex Code
10729 \begin_layout Plain Layout
10735 ] fixe quels sectionnements doivent être numérotés.
10736 Correspond au compteur
10737 \begin_inset Flex Code
10740 \begin_layout Plain Layout
10748 en \SpecialChar LaTeX
10752 \begin_layout Description
10755 \begin_inset Flex Code
10758 \begin_layout Plain Layout
10771 \begin_inset Flex Code
10774 \begin_layout Plain Layout
10783 \begin_inset space \thinspace{}
10787 \begin_inset Flex Code
10790 \begin_layout Plain Layout
10796 ] fixe l'option implicite d'impression recto seul ou en recto verso.
10797 Peut être changé dans la fenêtre
10798 \begin_inset Flex Noun
10801 \begin_layout Plain Layout
10802 Document\SpecialChar menuseparator
10811 \begin_layout Description
10814 \begin_inset Flex Code
10817 \begin_layout Plain Layout
10828 \begin_inset Flex Code
10831 \begin_layout Plain Layout
10837 ] définit un nouveau style de paragraphe.
10838 Si le style n'existe pas, il est créé; s'il existe déjà, ses paramètres
10840 Doit être fermé par
10841 \begin_inset Quotes cld
10845 \begin_inset Flex Code
10848 \begin_layout Plain Layout
10857 \begin_inset Quotes crd
10861 \begin_inset Newline newline
10865 \begin_inset CommandInset ref
10867 reference "subsec:Styles-de-paragraphe"
10874 \begin_layout Description
10877 \begin_inset Flex Code
10880 \begin_layout Plain Layout
10896 \begin_inset Flex Code
10899 \begin_layout Plain Layout
10909 ] définit nom de la commande ou de l'envi\SpecialChar softhyphen
10910 ronnement mentionné ci-dessous.
10913 \begin_layout Description
10916 \begin_inset Flex Code
10919 \begin_layout Plain Layout
10934 \begin_inset Flex Code
10937 \begin_layout Plain Layout
10947 \begin_inset Flex Code
10950 \begin_layout Plain Layout
10960 ] indique le genre de balisage utilisé pour définir le titre d'un document.
10962 \begin_inset Flex Code
10965 \begin_layout Plain Layout
10971 signifie que la commande définie par
10972 \begin_inset Flex Code
10975 \begin_layout Plain Layout
10981 sera insérée après le dernier format avec
10984 \begin_inset Quotes cld
10990 \begin_inset Flex Code
10993 \begin_layout Plain Layout
10995 \begin_inset space ~
11006 \begin_inset Quotes crd
11013 \begin_inset Flex Code
11016 \begin_layout Plain Layout
11023 \begin_inset Flex Code
11026 \begin_layout Plain Layout
11032 est un environnement, dans lequel doit être inclus tous les formats avec
11036 \begin_inset Quotes cld
11042 \begin_inset Flex Code
11045 \begin_layout Plain Layout
11047 \begin_inset space ~
11058 \begin_inset Quotes crd
11066 \begin_layout Description
11069 \begin_inset Flex Code
11072 \begin_layout Plain Layout
11083 \begin_inset Flex Code
11086 \begin_layout Plain Layout
11092 ] fixe quels sectionnements sont inclus dans la table des matières.
11093 Correspond au compteur
11094 \begin_inset Flex Code
11097 \begin_layout Plain Layout
11105 en \SpecialChar LaTeX
11109 \begin_layout Subsection
11113 \begin_inset CommandInset label
11115 name "subsec:Section-ClassOptions"
11122 \begin_layout Standard
11124 \begin_inset Flex Code
11127 \begin_layout Plain Layout
11133 peut contenir les directives suivantes :
11136 \begin_layout Description
11139 \begin_inset Flex Code
11142 \begin_layout Plain Layout
11156 ] liste les tailles de police disponibles comme police principale du document,
11160 \begin_inset Quotes cld
11166 \begin_inset Flex Code
11169 \begin_layout Plain Layout
11178 \begin_inset Quotes crd
11186 \begin_layout Description
11189 \begin_inset Flex Code
11192 \begin_layout Plain Layout
11202 fixe le contenu de la ligne écrivant la DTD pour les classes produisant
11207 \begin_inset Quotes eld
11210 -//OASIS//DTD DocBook V4.2//EN
11211 \begin_inset Quotes erd
11219 \begin_layout Description
11222 \begin_inset Flex Code
11225 \begin_layout Plain Layout
11239 ] introduit certaines options de la classe de document, séparées par une
11240 virgule, qui seront ajoutées à la partie optionnelle de la commande
11241 \begin_inset Flex Code
11244 \begin_layout Plain Layout
11255 \begin_layout Description
11258 \begin_inset Flex Code
11261 \begin_layout Plain Layout
11273 chaîne="empty|plain|headings|fancy"
11275 ] liste les mises en page disponibles, séparées par un
11278 \begin_inset Quotes cld
11282 \begin_inset Quotes crd
11290 \begin_layout Standard
11292 \begin_inset Flex Code
11295 \begin_layout Plain Layout
11301 doit être fermée par
11302 \begin_inset Quotes cld
11308 \begin_inset Flex Code
11311 \begin_layout Plain Layout
11322 \begin_inset Quotes crd
11328 \begin_layout Subsection
11329 Styles de paragraphe
11330 \begin_inset CommandInset label
11332 name "subsec:Styles-de-paragraphe"
11339 \begin_layout Standard
11340 La description d'un style de paragraphe ressemble à ceci
11344 \begin_layout Plain Layout
11345 qui peut servir soit à définir un nouvel format soit à en modifier un déjà
11354 \begin_layout LyX-Code
11361 \begin_layout LyX-Code
11365 \begin_layout LyX-Code
11369 \begin_layout Standard
11370 dans lequel on peut mettre les commandes suivantes :
11373 \begin_layout Description
11376 \begin_inset Flex Code
11379 \begin_layout Plain Layout
11388 \begin_inset Flex Code
11391 \begin_layout Plain Layout
11399 =""] This paragraph will appear in the table of contents of the given type.
11400 An empty string disables.
11401 See also the OutlinerName and the IsTocCaption commands.
11405 \begin_layout Description
11408 \begin_inset Flex Code
11411 \begin_layout Plain Layout
11426 , left, right, center
11428 ] alignement de paragraphe.
11431 \begin_layout Description
11434 \begin_inset Flex Code
11437 \begin_layout Plain Layout
11452 , left, right, center
11458 des alignements possibles séparés par une virgule.
11459 Certains styles \SpecialChar LaTeX
11460 interdisent certains alignements, car ils n'auraient aucun
11462 Par exemple une énumération alignée à droite ou centrée est impossible.
11465 \begin_layout Description
11468 \begin_inset Flex Code
11471 \begin_layout Plain Layout
11482 \begin_inset Flex Code
11485 \begin_layout Plain Layout
11491 ] définit l'argument numéro <int> d'une commande ou environnement associé
11493 Ceci est utile pour des entités comme les en-têtes de section, et n'a de
11494 sens qu'avec \SpecialChar LaTeX
11496 Chaque argument (obligatoire ou facultatif) d'une commande ou d'un environnemen
11497 t — sauf l'argument obligatoire correspondant au contenu du paragraphe propremen
11498 t dit — est défini séparément, et le nombre précise l'ordre des arguments.
11499 La définition doit être close par
11502 \begin_inset Flex Code
11505 \begin_layout Plain Layout
11515 .Ainsi une commande avec deux arguments sera spécifiée comme suit:
11519 \begin_layout Quote
11525 \begin_layout Quote
11531 \begin_layout Quote
11537 \begin_layout Quote
11543 \begin_layout Quote
11549 \begin_layout Quote
11555 \begin_layout Standard
11556 Dans la définition de l'
11557 \begin_inset Flex Code
11560 \begin_layout Plain Layout
11566 , les spécifications suivantes sont possibles:
11569 \begin_layout Itemize
11572 \begin_inset Flex Code
11575 \begin_layout Plain Layout
11586 \begin_inset Flex Code
11589 \begin_layout Plain Layout
11595 définit la chaîne de caractères qui apparaîtra à la fois dans le menu (pour
11596 insérer cet argument) et dans le bouton d'insertion d'argument (sauf si
11597 vous spécifiez également un
11600 \begin_inset Flex Code
11603 \begin_layout Plain Layout
11614 Pour le menu, vous pouvez définir un accélérateur en ajoutant le caractère
11615 désiré à la chaîne, séparé par
11616 \begin_inset Quotes cld
11620 \begin_inset Quotes crd
11624 \begin_inset space \thinspace{}
11628 \begin_inset space \space{}
11632 \begin_inset Quotes cld
11636 \begin_inset Flex Code
11639 \begin_layout Plain Layout
11640 Éléments personnalisables|é
11646 \begin_inset Quotes crd
11652 \begin_layout Itemize
11655 \begin_inset Flex Code
11658 \begin_layout Plain Layout
11669 \begin_inset Flex Code
11672 \begin_layout Plain Layout
11678 définit une chaîne particulière pour le menu.
11679 Vous pouvez définir un accélérateur en ajoutant le caractère désiré à la
11681 \begin_inset Quotes cld
11685 \begin_inset Quotes crd
11689 \begin_inset space \thinspace{}
11693 \begin_inset space \space{}
11697 \begin_inset Quotes cld
11701 \begin_inset Flex Code
11704 \begin_layout Plain Layout
11705 Éléments personnalisables|é
11711 \begin_inset Quotes crd
11715 Cette spécification est facultative, si elle n'existe pas, la
11716 \begin_inset Flex Code
11719 \begin_layout Plain Layout
11725 sera utilisée pour le menu;
11728 \begin_layout Itemize
11731 \begin_inset Flex Code
11734 \begin_layout Plain Layout
11745 \begin_inset Flex Code
11748 \begin_layout Plain Layout
11754 définit un texte explicatif qui apparaît dans la bulle d'aide quand le
11755 curseur passe sur l'insertion d'argument;
11758 \begin_layout Itemize
11761 \begin_inset Flex Code
11764 \begin_layout Plain Layout
11775 \begin_inset Flex Code
11778 \begin_layout Plain Layout
11787 \begin_inset space \thinspace{}
11791 \begin_inset Flex Code
11794 \begin_layout Plain Layout
11800 ] précise si l’argument est obligatoire (1) ou optionnel (0).
11801 Les arguments obligatoires ont émis comme une chaîne vide s'ils ne sont
11802 pas précisés, alors que les arguments optionnels ne sont pas émis du tout.
11803 Implicitement, les arguments obligatoires sont insérés entre
11804 \begin_inset Flex Code
11807 \begin_layout Plain Layout
11813 , alors que les arguments optionnels sont insérés entre
11814 \begin_inset Flex Code
11817 \begin_layout Plain Layout
11826 \begin_layout Itemize
11829 \begin_inset Flex Code
11832 \begin_layout Plain Layout
11843 \begin_inset Flex Code
11846 \begin_layout Plain Layout
11852 définit une autre argument (par son numéro d'ordre) dont cet argument demande
11853 l’émission s'il est lui-même émis.
11854 Par exemple en \SpecialChar LaTeX
11855 , les arguments optionnels demandent l'émission d'autres
11856 arguments optionnels situés avant eux dans la liste (au moins vides), comme
11860 \begin_inset Flex Code
11863 \begin_layout Plain Layout
11868 command[][argument]{text}
11875 ou ceci peut être précisé par la directive
11878 \begin_inset Flex Code
11881 \begin_layout Plain Layout
11892 \begin_inset Flex Code
11895 \begin_layout Plain Layout
11904 \begin_layout Itemize
11907 \begin_inset Flex Code
11910 \begin_layout Plain Layout
11921 \begin_inset Flex Code
11924 \begin_layout Plain Layout
11930 définit un délimiteur gauche personnalisé (au lieu de
11931 \begin_inset Flex Code
11934 \begin_layout Plain Layout
11941 \begin_inset Flex Code
11944 \begin_layout Plain Layout
11951 Une rupture de ligne dans la sortie peut être indiqué par
11952 \begin_inset Flex Code
11955 \begin_layout Plain Layout
11964 \begin_layout Itemize
11967 \begin_inset Flex Code
11970 \begin_layout Plain Layout
11981 \begin_inset Flex Code
11984 \begin_layout Plain Layout
11990 définit un délimiteur droit personnalisé (au lieu de
11991 \begin_inset Flex Code
11994 \begin_layout Plain Layout
12001 \begin_inset Flex Code
12004 \begin_layout Plain Layout
12011 Une rupture de ligne dans la sortie peut être indiqué par
12012 \begin_inset Flex Code
12015 \begin_layout Plain Layout
12024 \begin_layout Itemize
12027 \begin_inset Flex Code
12030 \begin_layout Plain Layout
12041 \begin_inset Flex Code
12044 \begin_layout Plain Layout
12050 définit un argument qui sera inséré si et seulement si aucun argument n'est
12051 saisi par l'utilisateur, c'est-à-dire si aucun insert d'argument n'a été
12052 spécifié (notez qu'un insert d'argument vide masque le
12055 \begin_inset Flex Code
12058 \begin_layout Plain Layout
12069 Les arguments multiples doivent être séparés par des virgules;
12072 \begin_layout Itemize
12075 \begin_inset Flex Code
12078 \begin_layout Plain Layout
12089 \begin_inset Flex Code
12092 \begin_layout Plain Layout
12098 définit un argument inséré dans tous les cas (seul ou en plus des chaîne
12099 saisies par l’utilisateur).
12100 Les arguments multiples doivent être séparés par des virgules;
12103 \begin_layout Itemize
12106 \begin_inset Flex Code
12109 \begin_layout Plain Layout
12119 définit la police de caractères utilisée pour le contenu de l'argument,
12121 \begin_inset CommandInset ref
12123 reference "subsec:polices"
12130 \begin_layout Itemize
12133 \begin_inset Flex Code
12136 \begin_layout Plain Layout
12146 définit la police de caractères utilisée pour l'étiquette, voir
12147 \begin_inset CommandInset ref
12149 reference "subsec:polices"
12156 \begin_layout Itemize
12159 \begin_inset Flex Code
12162 \begin_layout Plain Layout
12171 \begin_inset Flex Code
12174 \begin_layout Plain Layout
12180 , Minimalistic, Conglomerate
12187 précise le style de rendu utilisé pour les cadres d'insertion et les boutons;
12190 \begin_layout Itemize
12193 \begin_inset Flex Code
12196 \begin_layout Plain Layout
12207 \begin_inset Flex Code
12210 \begin_layout Plain Layout
12216 force l'insertion de l’argument lorsque le style concerné est sélectionné
12217 (si sa valeur est 1).
12218 Actuellement, un seul argument par style ou format peut être inséré automatique
12222 \begin_layout Itemize
12225 \begin_inset Flex Code
12228 \begin_layout Plain Layout
12237 \begin_inset Flex Code
12240 \begin_layout Plain Layout
12251 \begin_inset Flex Code
12254 \begin_layout Plain Layout
12260 , insère l'argument avec une copie du co-texte, (soit du texte sélectionné,
12261 soit tout le paragraphe) comme contenu.
12264 \begin_layout Itemize
12267 \begin_inset Flex Code
12270 \begin_layout Plain Layout
12279 \begin_inset Flex Code
12282 \begin_layout Plain Layout
12293 ] Whether the contents of this argument should be output in raw form, meaning
12294 without special translations that \SpecialChar LaTeX
12297 \begin_inset Flex Code
12300 \begin_layout Plain Layout
12308 status is inherited by the inset or paragraph layout the argument belongs
12309 to, true and false change the status for the given argument only.
12312 \begin_layout Itemize
12315 \begin_inset Flex Code
12318 \begin_layout Plain Layout
12327 \begin_inset Flex Code
12330 \begin_layout Plain Layout
12333 string of characters
12343 définit des caractères qui doivent être transmis tel quels à la sortie,
12344 c'est-à-dire sans modifications particulières que \SpecialChar LaTeX
12346 Notez bien que, contrairement à
12350 , ceci nécessite une définition explicite pour les arguments, ceux-ci n’héritant
12355 de leur insert ou format parent.
12358 \begin_layout Itemize
12361 \begin_inset Flex Code
12364 \begin_layout Plain Layout
12373 \begin_inset Flex Code
12376 \begin_layout Plain Layout
12386 \begin_inset space \thinspace{}
12390 \begin_inset Flex Code
12393 \begin_layout Plain Layout
12401 ] If this is set to 1, the argument will output its content in the corresponding
12402 item in the table of contents.
12406 \begin_layout Standard
12407 Implicitement, le texte saisi dans la fenêtre de travail de \SpecialChar LyX
12409 considéré est le dernier argument de la commande si le
12412 \begin_inset Flex Code
12415 \begin_layout Plain Layout
12428 \begin_inset Flex Code
12431 \begin_layout Plain Layout
12442 Cependant, les arguments préfixés par
12445 \begin_inset Flex Code
12448 \begin_layout Plain Layout
12458 sont émis après cet argument de la fenêtre de travail.
12459 Notez que la numérotation des post-arguments repart de 1, de sorte que
12460 le premier argument suivant l’argument de la fenêtre de travail est
12463 \begin_inset Flex Code
12466 \begin_layout Plain Layout
12477 Les post-arguments sont ignorés dans tout autre
12480 \begin_inset Flex Code
12483 \begin_layout Plain Layout
12494 \begin_inset Flex Code
12497 \begin_layout Plain Layout
12506 \begin_layout Standard
12507 Les arguments de liste
12508 \begin_inset Flex Code
12511 \begin_layout Plain Layout
12520 \begin_inset Flex Code
12523 \begin_layout Plain Layout
12531 ) sont préfixés par
12532 \begin_inset Flex Code
12535 \begin_layout Plain Layout
12541 suivi par leur numéro (e.
12542 \begin_inset space \thinspace{}
12546 \begin_inset space \space{}
12550 \begin_inset Flex Code
12553 \begin_layout Plain Layout
12563 \begin_layout Description
12566 \begin_inset Flex Code
12569 \begin_layout Plain Layout
12577 Includes a comma-separated list of layouts that should be nested in and
12578 after the current layout.
12579 Only makes sense for nestable layouts (such as environments).
12581 \begin_inset Quotes eld
12585 \begin_inset Flex Code
12588 \begin_layout Plain Layout
12597 \begin_inset Quotes erd
12602 \begin_inset Flex Code
12605 \begin_layout Plain Layout
12616 \begin_layout Description
12619 \begin_inset Flex Code
12622 \begin_layout Plain Layout
12632 noter que cette directive écrasera complètement toute déclaration
12633 \begin_inset Flex Code
12636 \begin_layout Plain Layout
12642 antérieure pour ce style.
12643 Doit être fermée par
12644 \begin_inset Flex Code
12647 \begin_layout Plain Layout
12655 \begin_inset CommandInset ref
12657 reference "subsec:I18n"
12661 pour les détails d'utilisation.
12664 \begin_layout Description
12667 \begin_inset Flex Code
12670 \begin_layout Plain Layout
12688 \begin_layout Plain Layout
12690 \begin_inset Quotes cld
12694 \begin_inset Quotes crd
12697 ici désigne un nombre réel, e.g.
12703 l'espacement vertical qui sépare du paragraphe suivant le dernier paragraphe
12704 d'une série doté de cette directive.
12705 Si le paragraphe suivant est doté d'un autre style, les séparations ne
12706 sont pas simplement additionnées, mais le maximum est pris en considération.La
12708 \begin_inset Flex Code
12711 \begin_layout Plain Layout
12717 pour le dernier paragraphe.
12720 \begin_layout Description
12723 \begin_inset Flex Code
12726 \begin_layout Plain Layout
12737 \begin_inset Flex Code
12740 \begin_layout Plain Layout
12746 fixe la catégorie pour ce style.
12747 Ceci est utilise pour regrouper les styles apparentés dans le menu déroulant
12748 des styles de la barre d'outils.
12749 N'importe quelle chaîne de caractères peut être utilisée, mais vous voudrez
12750 peut-être utiliser des catégories existantes pour vos propres styles.
12753 \begin_layout Description
12756 \begin_inset Flex Code
12759 \begin_layout Plain Layout
12769 fixe la profondeur d'une commande XML.
12770 Utilisable uniquement avec les formats XML.
12773 \begin_layout Description
12776 \begin_inset Flex Code
12779 \begin_layout Plain Layout
12790 \begin_inset Flex Code
12793 \begin_layout Plain Layout
12799 sert à copier toutes les caractéristiques d'un style déjà existant dans
12803 \begin_layout Description
12806 \begin_inset Flex Code
12809 \begin_layout Plain Layout
12820 \begin_inset Flex Code
12823 \begin_layout Plain Layout
12829 ] nomme un style dont le préambule devra être placé
12834 Ceci permet d'assurer une relation d'ordre entre les morceaux de préambule
12835 quand les définitions de macros dépendent les unes des autres.
12841 \begin_layout Plain Layout
12842 Noter que, à part cette fonctionnalité, il n'y a aucun moyen de garantir
12843 un ordonnancement des préambules.
12844 L'ordre que vous constatez avec une version de \SpecialChar LyX
12845 peut changer sans préavis
12846 dans les versions ultérieures.
12854 \begin_layout Description
12857 \begin_inset Flex Code
12860 \begin_layout Plain Layout
12888 ] fixe le type de marqueur qui se trouve à la fin du paragraphe (ou de la
12889 suite de paragraphes si
12890 \begin_inset Flex Code
12893 \begin_layout Plain Layout
12900 \begin_inset Flex Code
12903 \begin_layout Plain Layout
12910 \begin_inset Flex Code
12913 \begin_layout Plain Layout
12920 \begin_inset Flex Code
12923 \begin_layout Plain Layout
12931 \begin_inset Flex Code
12934 \begin_layout Plain Layout
12941 \begin_inset Quotes cld
12945 \begin_inset Quotes crd
12949 \begin_inset Flex Code
12952 \begin_layout Plain Layout
12959 \begin_inset Flex Code
12962 \begin_layout Plain Layout
12968 ) est un carré blanc (respectivement noir) en général placé à la fin des
12971 \begin_inset Flex Code
12974 \begin_layout Plain Layout
12980 est une chaîne de caractères explicitement donnée.
12983 \begin_layout Description
12986 \begin_inset Flex Code
12989 \begin_layout Plain Layout
13000 \begin_inset Flex Code
13003 \begin_layout Plain Layout
13009 fixe la chaîne utilisée pour le marqueur quand
13010 \begin_inset Newline newline
13014 \begin_inset Flex Code
13017 \begin_layout Plain Layout
13024 \begin_inset Flex Code
13027 \begin_layout Plain Layout
13036 \begin_layout Description
13039 \begin_inset Flex Code
13042 \begin_layout Plain Layout
13052 fixe la police utilisée à la fois pour le corps du texte
13058 \begin_inset CommandInset ref
13060 reference "subsec:polices"
13065 Noter qu'en définissant cette police on définit aussi automatiquement
13068 \begin_inset Flex Code
13071 \begin_layout Plain Layout
13081 avec la même valeur.
13082 Il faut donc définir celle-ci d'abord pour fixer
13085 \begin_inset Flex Code
13088 \begin_layout Plain Layout
13101 \begin_layout Description
13104 \begin_inset Flex Code
13107 \begin_layout Plain Layout
13118 \begin_inset Flex Code
13121 \begin_layout Plain Layout
13127 ] est utile pour forcer la portabilité de nouveaux styles vers des versions
13128 stables de \SpecialChar LyX
13130 La première version stable qui interprète cette directive est \SpecialChar LyX
13132 L'argument est un nombre qui peut être 0, -1 ou n'importe quel entier positif.
13134 \begin_inset Flex Code
13137 \begin_layout Plain Layout
13143 est positif, il sera toujours émis vers le préambule du document.
13144 Lors de la lecture d'un fichier
13148 , les définitions de style du préambule du document sont ajoutées à la classe
13150 De ce fait même les versions de \SpecialChar LyX
13151 plus anciennes peuvent gérer ce style.
13155 \begin_inset Flex Code
13158 \begin_layout Plain Layout
13168 est un numéro de version : si le style est lu, et si le numéro de version
13169 est inférieur au numéro de version du style existant dans la classe de
13170 document, le nouveau style est ignoré.
13171 Si le numéro de version est supérieur, le nouveau style remplace l'ancien.
13172 La valeur -1 signifie un numéro de version infini, c'est-à-dire que le
13173 style est toujours utilisé.
13176 \begin_layout Description
13179 \begin_inset Flex Code
13182 \begin_layout Plain Layout
13193 \begin_inset Flex Code
13196 \begin_layout Plain Layout
13205 \begin_inset space \thinspace{}
13209 \begin_inset Flex Code
13212 \begin_layout Plain Layout
13219 ne permet pas d'habitude d'insérer plus d'une espace entre deux mots,
13220 car une espace est considérée comme un séparateur de mots, non comme un
13221 caractère ou un symbole en tant que tel.
13222 C'est très bien mais c'est parfois ennuyeux, par exemple pour taper un
13223 code source de programme ou du code \SpecialChar LaTeX
13225 C'est pourquoi on peut activer
13226 \begin_inset Flex Code
13229 \begin_layout Plain Layout
13236 Noter que \SpecialChar LyX
13237 créera les espaces insécables correspondants aux espaces additionnel
13238 les pour tous les modes autres que le mode \SpecialChar LaTeX
13242 \begin_layout Description
13245 \begin_inset Flex Code
13248 \begin_layout Plain Layout
13256 sont utilisées avec l'exportation XHTML.
13258 \begin_inset CommandInset ref
13260 reference "subsec:Styles-de-paragraphe-XHTML"
13267 \begin_layout Description
13270 \begin_inset Flex Code
13273 \begin_layout Plain Layout
13283 (Utilisable uniquement avec les formats XML).
13286 \begin_layout Description
13289 \begin_inset Flex Code
13292 \begin_layout Plain Layout
13306 \begin_inset Flex Code
13309 \begin_layout Plain Layout
13318 \begin_inset space \thinspace{}
13322 \begin_inset Flex Code
13325 \begin_layout Plain Layout
13332 \begin_inset Flex Code
13335 \begin_layout Plain Layout
13341 que que le style doit être inclus dans le préambule plutôt que dans le
13343 Ceci est utile pour les classes de document qui désirent que les informations
13344 telles que le titre et l'auteur figurent dans le préambule.
13345 Notez bien que ceci ne fonctionne que pour les styles pour lesquels
13346 \begin_inset Flex Code
13349 \begin_layout Plain Layout
13358 \begin_inset Flex Code
13361 \begin_layout Plain Layout
13372 \begin_inset Flex Code
13375 \begin_layout Plain Layout
13386 \begin_layout Description
13389 \begin_inset Flex Code
13392 \begin_layout Plain Layout
13406 \begin_inset Flex Code
13409 \begin_layout Plain Layout
13418 \begin_inset space \thinspace{}
13422 \begin_inset Flex Code
13425 \begin_layout Plain Layout
13432 \begin_inset Flex Code
13435 \begin_layout Plain Layout
13441 que le style fait partie d'un bloc de titre (voir aussi
13442 \begin_inset Flex Code
13445 \begin_layout Plain Layout
13454 \begin_inset Flex Code
13457 \begin_layout Plain Layout
13465 dans les paramètres généraux).
13468 \begin_layout Description
13471 \begin_inset Flex Code
13474 \begin_layout Plain Layout
13482 Includes a comma-separated list of layouts after which this one should
13484 Only makes sense with regard to nestable layouts (such as environments).
13486 \begin_inset Quotes eld
13490 \begin_inset Flex Code
13493 \begin_layout Plain Layout
13502 \begin_inset Quotes erd
13507 \begin_inset Flex Code
13510 \begin_layout Plain Layout
13521 \begin_layout Description
13524 \begin_inset Flex Code
13527 \begin_layout Plain Layout
13536 \begin_inset Flex Code
13539 \begin_layout Plain Layout
13549 \begin_inset space \thinspace{}
13553 \begin_inset Flex Code
13556 \begin_layout Plain Layout
13564 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13565 of its contents in its item in the table of contents.
13566 Otherwise, only the label, if it exists, appears.
13569 \begin_layout Description
13572 \begin_inset Flex Code
13575 \begin_layout Plain Layout
13586 \begin_inset Flex Code
13589 \begin_layout Plain Layout
13595 ] est la commande \SpecialChar LaTeX
13596 permettant de déclarer un élément d'une liste.
13597 La commande doit être définie sans la barre oblique inverse qui la précède
13598 habituellement (implicitement
13599 \begin_inset Quotes cld
13603 \begin_inset Quotes crd
13606 , qui est émis comme
13607 \begin_inset Flex Code
13610 \begin_layout Plain Layout
13618 en \SpecialChar LaTeX
13622 \begin_layout Description
13625 \begin_inset Flex Code
13628 \begin_layout Plain Layout
13639 \begin_inset Flex Code
13642 \begin_layout Plain Layout
13648 ] crée un espacement supplémentaire entre les paragraphes du même style
13649 dans un environnement.
13650 Si vous emboîtez des paragraphes d'autres formats dans un environnement,
13651 ils seront espacés de
13652 \begin_inset Flex Code
13655 \begin_layout Plain Layout
13662 Mais les éléments de l'environnement seront en plus espacés de
13663 \begin_inset Flex Code
13666 \begin_layout Plain Layout
13680 \begin_layout Description
13683 \begin_inset Flex Code
13686 \begin_layout Plain Layout
13696 (Utilisable uniquement avec les formats XML).
13699 \begin_layout Description
13702 \begin_inset Flex Code
13705 \begin_layout Plain Layout
13716 \begin_inset Flex Code
13719 \begin_layout Plain Layout
13728 \begin_inset space \thinspace{}
13732 \begin_inset Flex Code
13735 \begin_layout Plain Layout
13741 ] permet de laisser un paragraphe vide, ce que \SpecialChar LyX
13742 ne permet pas d'habitude
13743 car il ne générerait rien en \SpecialChar LaTeX
13745 Il y a quelques cas où c'est pourtant utile: dans un modèle pour une lettre,
13746 les champs requis peuvent être laissés vides, pour que les gens ne les
13747 oublient pas; dans certains cas particuliers, un style peut aussi servir
13748 de séparateur, et ne pas contenir de texte.
13751 \begin_layout Description
13754 \begin_inset Flex Code
13757 \begin_layout Plain Layout
13771 \begin_inset Flex Code
13774 \begin_layout Plain Layout
13780 ] fixe l'espacement vertical entre le marqueur et le corps du texte.
13781 Sert seulement pour les marqueurs qui sont au dessus du corps du texte
13783 \begin_inset Flex Code
13786 \begin_layout Plain Layout
13793 \begin_inset Flex Code
13796 \begin_layout Plain Layout
13797 Centered_Top_Environment
13805 \begin_layout Description
13808 \begin_inset Flex Code
13811 \begin_layout Plain Layout
13822 \begin_inset Flex Code
13825 \begin_layout Plain Layout
13831 dénomme le compteur pour la numérotation automatique.
13832 Pour que le compteur soit associé à votre étiquette, il vous faut le référencer
13836 \begin_inset Flex Code
13839 \begin_layout Plain Layout
13851 Ceci fonctionnera avec les
13854 \begin_inset Flex Code
13857 \begin_layout Plain Layout
13866 \begin_inset Flex Code
13869 \begin_layout Plain Layout
13878 \begin_inset Flex Code
13881 \begin_layout Plain Layout
13890 \begin_inset Flex Code
13893 \begin_layout Plain Layout
13904 \begin_inset Newline newline
13912 \begin_inset Flex Code
13915 \begin_layout Plain Layout
13924 \begin_inset Flex Code
13927 \begin_layout Plain Layout
13935 , bien que ce cas soit un peu compliqué.
13936 Supposez que vous déclariez
13937 \begin_inset Flex Code
13940 \begin_layout Plain Layout
13941 \begin_inset Quotes cld
13944 LabelCounter monEnum
13950 \begin_inset Quotes crd
13954 Les compteurs effectivement utilisés sont alors
13955 \begin_inset Flex Code
13958 \begin_layout Plain Layout
13965 \begin_inset Flex Code
13968 \begin_layout Plain Layout
13975 \begin_inset Flex Code
13978 \begin_layout Plain Layout
13985 \begin_inset Flex Code
13988 \begin_layout Plain Layout
13994 , tout à fait comme en \SpecialChar LaTeX
13996 Ces compteurs doivent être tous déclarés séparément.
13997 \begin_inset Newline newline
14001 \begin_inset CommandInset ref
14003 reference "subsec:Compteurs"
14007 pour les détails sur les compteurs.
14010 \begin_layout Description
14013 \begin_inset Flex Code
14016 \begin_layout Plain Layout
14026 fixe la police utilisée pour le marqueur.
14028 \begin_inset CommandInset ref
14030 reference "subsec:polices"
14037 \begin_layout Description
14040 \begin_inset Flex Code
14043 \begin_layout Plain Layout
14054 \begin_inset Flex Code
14057 \begin_layout Plain Layout
14063 fixe le texte indiquent l'importance de l'indentation d'un marqueur.
14066 \begin_layout Description
14069 \begin_inset Flex Code
14072 \begin_layout Plain Layout
14083 \begin_inset Flex Code
14086 \begin_layout Plain Layout
14092 fixe le texte indiquent l'espacement horizontal entre le marqueur et le
14094 Sert seulement pour les marqueurs qui ne sont pas au dessus du corps du
14098 \begin_layout Description
14101 \begin_inset Flex Code
14104 \begin_layout Plain Layout
14115 \begin_inset Flex Code
14118 \begin_layout Plain Layout
14124 fixe la chaîne utilisée comme marqueur avec le
14127 \begin_inset Flex Code
14130 \begin_layout Plain Layout
14139 \begin_inset Flex Code
14142 \begin_layout Plain Layout
14156 \begin_inset Flex Code
14159 \begin_layout Plain Layout
14169 est indiqué, cette chaîne peut contenir les instructions de formatage particuli
14170 ères décrites dans la
14171 \begin_inset CommandInset ref
14173 reference "subsec:Compteurs"
14180 \begin_layout Description
14183 \begin_inset Flex Code
14186 \begin_layout Plain Layout
14189 LabelStringAppendix
14197 \begin_inset Flex Code
14200 \begin_layout Plain Layout
14206 est utilisée dans une annexe à la place de
14207 \begin_inset Flex Code
14210 \begin_layout Plain Layout
14219 Noter que toute directive
14220 \begin_inset Flex Code
14223 \begin_layout Plain Layout
14232 \begin_inset Newline newline
14236 \begin_inset Flex Code
14239 \begin_layout Plain Layout
14242 LabelStringAppendix
14250 \begin_layout Description
14253 \begin_inset Flex Code
14256 \begin_layout Plain Layout
14266 (Utilisable uniquement avec les formats XML).
14269 \begin_layout Description
14272 \begin_inset Flex Code
14275 \begin_layout Plain Layout
14286 \begin_inset Flex Code
14289 \begin_layout Plain Layout
14300 \begin_inset Newline newline
14307 Sensitive, Enumerate,
14308 \begin_inset Newline newline
14311 Itemize, Bibliography
14322 \begin_layout Description
14323 \begin_inset Flex Code
14326 \begin_layout Plain Layout
14334 veut dire que le marqueur est le premier mot (avant la première vraie espace).
14335 Utilisez des espaces insécables si vous voulez mettre plus d'un mot dans
14339 \begin_layout Description
14340 \begin_inset Flex Code
14343 \begin_layout Plain Layout
14351 veut dire qu'il est défini dans le style (voir
14352 \begin_inset Flex Code
14355 \begin_layout Plain Layout
14365 \begin_inset Quotes cld
14369 \begin_inset Quotes crd
14372 , au début du paragraphe.Si le
14375 \begin_inset Flex Code
14378 \begin_layout Plain Layout
14391 \begin_inset Flex Code
14394 \begin_layout Plain Layout
14404 , alors il ne sera affiché que dans le premier paragraphe de toutes séquence
14405 de paragraphes du même
14408 \begin_inset Flex Code
14411 \begin_layout Plain Layout
14424 \begin_layout Description
14427 \begin_inset Flex Code
14430 \begin_layout Plain Layout
14441 \begin_inset space ~
14445 \begin_inset space ~
14451 \begin_inset Flex Code
14454 \begin_layout Plain Layout
14464 sont des cas particuliers de
14465 \begin_inset Flex Code
14468 \begin_layout Plain Layout
14477 Le marqueur sera imprimé au dessus du paragraphe, soit au début de la lignes,
14481 \begin_layout Description
14482 \begin_inset Flex Code
14485 \begin_layout Plain Layout
14493 est un cas particulier pour les marqueurs de légende
14494 \begin_inset Quotes cld
14498 \begin_inset Quotes crd
14502 \begin_inset Quotes cld
14506 \begin_inset Quotes crd
14511 \begin_inset Flex Code
14514 \begin_layout Plain Layout
14522 signifie que le mot affiché (défini en dur) dépend du type de flottant:
14523 il est défini dans les sources comme
14524 \begin_inset Quotes cld
14528 \begin_inset Flex Code
14531 \begin_layout Plain Layout
14540 \begin_inset Quotes crd
14544 \begin_inset Flex Code
14547 \begin_layout Plain Layout
14553 est la valeur du compteur associé au flottant.
14554 Au cas où une légende est insérée en dehors d'un flottant, le
14557 \begin_inset Flex Code
14560 \begin_layout Plain Layout
14571 \begin_inset Quotes cld
14575 \begin_inset Quotes crd
14581 \begin_layout Description
14582 \begin_inset Flex Code
14585 \begin_layout Plain Layout
14593 produit le type habituel d'étiquettes d'énumération.
14596 The number type needs to be set in the
14602 \begin_inset CommandInset ref
14604 reference "subsec:Compteurs"
14611 \begin_layout Description
14614 \begin_inset Flex Code
14617 \begin_layout Plain Layout
14627 produit des symboles pour les différents niveaux.
14630 The bullet types displayed can be set via
14633 \begin_inset Flex Noun
14636 \begin_layout Plain Layout
14637 Document\SpecialChar menuseparator
14638 Paramètres\SpecialChar menuseparator
14647 \begin_layout Description
14650 \begin_inset Flex Code
14653 \begin_layout Plain Layout
14663 ne doit être utilisé qu'avec
14666 \begin_inset Flex Code
14669 \begin_layout Plain Layout
14672 LatexType BibEnvironment
14681 \begin_layout Description
14684 \begin_inset Flex Code
14687 \begin_layout Plain Layout
14697 écrasera complètement toute autre directive
14698 \begin_inset Flex Code
14701 \begin_layout Plain Layout
14708 Doit être fermée par
14709 \begin_inset Flex Code
14712 \begin_layout Plain Layout
14719 \begin_inset Newline newline
14723 \begin_inset CommandInset ref
14725 reference "subsec:I18n"
14729 pour les détails d'utilisation.
14732 \begin_layout Description
14735 \begin_inset Flex Code
14738 \begin_layout Plain Layout
14749 \begin_inset Flex Code
14752 \begin_layout Plain Layout
14758 ] fixe le nom de l'objet \SpecialChar LaTeX
14759 correspondant, soit l'environnement, soit la commande.
14762 \begin_layout Description
14765 \begin_inset Flex Code
14768 \begin_layout Plain Layout
14779 \begin_inset Flex Code
14782 \begin_layout Plain Layout
14788 ] fixe le paramètre facultatif de l'objet
14789 \begin_inset Flex Code
14792 \begin_layout Plain Layout
14799 Ce paramètre ne peut pas être changé depuis \SpecialChar LyX
14801 \begin_inset Flex Code
14804 \begin_layout Plain Layout
14810 pour les paramètres personnalisables).
14811 Ceci sera émis tel quel après tous les
14812 \begin_inset Flex Code
14815 \begin_layout Plain Layout
14821 s \SpecialChar LaTeX
14825 \begin_layout Description
14828 \begin_inset Flex Code
14831 \begin_layout Plain Layout
14842 \begin_inset Flex Code
14845 \begin_layout Plain Layout
14851 , Command, Environment, Item_Environment,
14852 \begin_inset Newline newline
14855 List_Environment, Bib_Environment
14862 ] décrit comment traduire l'environnement en \SpecialChar LaTeX
14867 \begin_layout Plain Layout
14868 \begin_inset Flex Code
14871 \begin_layout Plain Layout
14879 est peut-être trompeur, dans la mesure où ces règles s'appliquent également
14880 aux classes DocBook.
14881 Explorer les fichiers des classes DocBook (noms de fichiers
14882 \begin_inset Flex Code
14885 \begin_layout Plain Layout
14891 ) pour voir des exemples particuliers.
14900 \begin_layout Description
14901 \begin_inset Flex Code
14904 \begin_layout Plain Layout
14911 \begin_inset Quotes cld
14915 \begin_inset Quotes crd
14921 \begin_layout Description
14922 \begin_inset Flex Code
14925 \begin_layout Plain Layout
14932 \begin_inset Flex Code
14935 \begin_layout Plain Layout
14942 {\SpecialChar ldots
14951 \begin_layout Description
14952 \begin_inset Flex Code
14955 \begin_layout Plain Layout
14962 \begin_inset Flex Code
14965 \begin_layout Plain Layout
14972 }\SpecialChar ldots
14987 \begin_layout Description
14988 \begin_inset Flex Code
14991 \begin_layout Plain Layout
14997 est la même chose que
14998 \begin_inset Flex Code
15001 \begin_layout Plain Layout
15007 , sauf qu'il génère un
15008 \begin_inset Flex Code
15011 \begin_layout Plain Layout
15019 pour chaque paragraphe de l'environnement.
15022 \begin_layout Description
15023 \begin_inset Flex Code
15026 \begin_layout Plain Layout
15032 est la même chose que
15033 \begin_inset Flex Code
15036 \begin_layout Plain Layout
15043 \begin_inset Newline newline
15047 \begin_inset Flex Code
15050 \begin_layout Plain Layout
15056 est passé en paramètre de l'environnement.
15057 \begin_inset Newline newline
15061 \begin_inset Flex Code
15064 \begin_layout Plain Layout
15070 peut être défini dans la fenêtre
15071 \begin_inset Flex Noun
15074 \begin_layout Plain Layout
15075 Édition\SpecialChar menuseparator
15076 Paramètres de Paragraphe
15084 \begin_layout Description
15087 \begin_inset Flex Code
15090 \begin_layout Plain Layout
15103 \begin_inset Flex Code
15106 \begin_layout Plain Layout
15116 , mais ajoute l'argument obligatoire nécessaire (l'étiquette la plus longue)
15117 à la directive de début de l’environnement bibliographique:
15120 \begin_inset Newline newline
15124 \begin_inset Flex Code
15127 \begin_layout Plain Layout
15132 begin{thebibliography}{99}
15140 Cette directive n'est donc nécessaire que pour les environnements bibliographiq
15142 L’étiquette implicite
15143 \begin_inset Quotes cld
15147 \begin_inset Quotes crd
15150 peut être modifiée par l'utilisateur dans les réglages de paragraphe d'une
15151 entrée bibliographique.
15154 \begin_layout Standard
15155 En collectant ces derniers éléments, l'exportation \SpecialChar LaTeX
15159 \begin_layout LyX-Code
15164 LatexName[LatexParam]{\SpecialChar ldots
15168 \begin_layout Standard
15172 \begin_layout LyX-Code
15177 begin{LatexName}[LatexParam] \SpecialChar ldots
15183 \begin_layout Standard
15184 en fonction du type \SpecialChar LaTeX
15189 \begin_layout Description
15192 \begin_inset Flex Code
15195 \begin_layout Plain Layout
15206 \begin_inset Flex Code
15209 \begin_layout Plain Layout
15215 ] définit une chaîne de caractères insérée au début du contenu du style.
15216 Une rupture de ligne dans la sortie peut être indiquée par
15217 \begin_inset Flex Code
15220 \begin_layout Plain Layout
15229 \begin_layout Description
15232 \begin_inset Flex Code
15235 \begin_layout Plain Layout
15246 \begin_inset Flex Code
15249 \begin_layout Plain Layout
15255 fixe la marge gauche: si vous mettez des styles dans un environnement,
15259 \begin_inset Flex Code
15262 \begin_layout Plain Layout
15272 ne seront pas ajoutées directement, mais avec un facteur
15273 \begin_inset Formula $\frac{4}{\mathrm{profondeur}+4}$
15277 Notez que ce paramètre sert aussi quand
15280 \begin_inset Flex Code
15283 \begin_layout Plain Layout
15294 \begin_inset Flex Code
15297 \begin_layout Plain Layout
15306 \begin_inset Flex Code
15309 \begin_layout Plain Layout
15318 Il est alors ajouté à la marge manuelle ou dynamique.
15319 \begin_inset Newline newline
15323 \begin_inset Quotes cld
15327 \begin_inset Flex Code
15330 \begin_layout Plain Layout
15337 \begin_inset Quotes crd
15340 signifie que le paragraphe est indenté avec la largeur de
15341 \begin_inset Quotes cld
15345 \begin_inset Flex Code
15348 \begin_layout Plain Layout
15355 \begin_inset Quotes crd
15358 dans la police normale.
15359 Il est possible de créer une largeur négative avec
15360 \begin_inset Quotes cld
15364 \begin_inset Flex Code
15367 \begin_layout Plain Layout
15374 \begin_inset Quotes crd
15378 Cette solution a été choisie pour que l'apparence soit la même quelle que
15379 soit la police d'écran.
15382 \begin_layout Description
15385 \begin_inset Flex Code
15388 \begin_layout Plain Layout
15397 \begin_inset Flex Code
15400 \begin_layout Plain Layout
15406 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15412 \begin_inset Newline newline
15417 fixe le type de marge à gauche du format.
15421 \begin_layout Description
15422 \begin_inset Flex Code
15425 \begin_layout Plain Layout
15433 veut dire une marge fixe.
15436 \begin_layout Description
15437 \begin_inset Flex Code
15440 \begin_layout Plain Layout
15448 veut dire que la marge de gauche dépend de ce qu'il y a dans la fenêtre
15450 \begin_inset Flex Noun
15453 \begin_layout Plain Layout
15454 Édition\SpecialChar menuseparator
15456 \begin_inset space ~
15460 \begin_inset space ~
15469 Ceci sert à obtenir des listes bien mises en page sans tabulations.
15472 \begin_layout Description
15473 \begin_inset Flex Code
15476 \begin_layout Plain Layout
15484 veut dire que la marge dépend de la taille du marqueur.
15485 Ceci sert entre autres aux en-têtes numérotés.
15486 Il est évident que l'en-tête
15487 \begin_inset Quotes cld
15490 5.4.3.2.1 Très long en-tête
15491 \begin_inset Quotes crd
15494 doit avoir une marge de gauche plus grande (autant que
15495 \begin_inset Quotes cld
15499 \begin_inset Quotes crd
15503 \begin_inset Quotes cld
15506 3.2 Très long en-tête
15507 \begin_inset Quotes crd
15510 , même si les autres traitements de texte ne savent pas le faire.
15513 \begin_layout Description
15514 \begin_inset Flex Code
15517 \begin_layout Plain Layout
15525 est similaire, mais seulement la toute première ligne du paragraphe est
15526 dynamique, les autres étant statiques; ceci est utile par exemple pour
15530 \begin_layout Description
15531 \begin_inset Flex Code
15534 \begin_layout Plain Layout
15542 signifie que la marge est choisie pour que la ligne la plus longue du paragraph
15543 e touche la marge de droite.
15544 Ceci sert à typographier une adresse sur le bord droit de la page.
15548 \begin_layout Description
15551 \begin_inset Flex Code
15554 \begin_layout Plain Layout
15565 \begin_inset Flex Code
15568 \begin_layout Plain Layout
15577 \begin_inset space \thinspace{}
15581 \begin_inset Flex Code
15584 \begin_layout Plain Layout
15590 ] indique si les commandes fragiles doivent être protégées par
15591 \begin_inset Flex Code
15594 \begin_layout Plain Layout
15602 dans ce style (Note: ceci n'indique pas si cette commande elle-même doit
15606 \begin_layout Description
15609 \begin_inset Flex Code
15612 \begin_layout Plain Layout
15623 \begin_inset Flex Code
15626 \begin_layout Plain Layout
15633 \begin_inset space \thinspace{}
15637 \begin_inset Flex Code
15640 \begin_layout Plain Layout
15648 ] indique si les nouvelles lignes sont traduites ou non en sauts de ligne
15651 \begin_inset Flex Code
15654 \begin_layout Plain Layout
15665 La traduction peut être désactivée pour permettre d'éditer plus confortablement
15666 du \SpecialChar LaTeX
15667 depuis \SpecialChar LyX
15671 \begin_layout Description
15674 \begin_inset Flex Code
15677 \begin_layout Plain Layout
15688 \begin_inset Flex Code
15691 \begin_layout Plain Layout
15700 \begin_inset space \thinspace{}
15704 \begin_inset Flex Code
15707 \begin_layout Plain Layout
15713 ] indique si \SpecialChar LyX
15714 indente ou non la première ligne du paragraphe suivant.
15716 \begin_inset Flex Code
15719 \begin_layout Plain Layout
15725 veut dire qu'il ne peut pas,
15726 \begin_inset Flex Code
15729 \begin_layout Plain Layout
15735 veut dire qu'il peut s'il le veut.
15738 \begin_layout Description
15741 \begin_inset Flex Code
15744 \begin_layout Plain Layout
15755 \begin_inset Flex Code
15758 \begin_layout Plain Layout
15764 ] dénomme un style qui a remplacé ce style en cours.
15765 Ceci est utilisé pour renommer un style en conservant la rétrocompatibilité.
15768 \begin_layout Description
15771 \begin_inset Flex Code
15774 \begin_layout Plain Layout
15783 \begin_inset Flex Code
15786 \begin_layout Plain Layout
15795 \begin_inset space \thinspace{}
15799 \begin_inset Flex Code
15802 \begin_layout Plain Layout
15812 détermine si les paragraphes consécutifs du même type sont traités ensemble.
15813 Ceci a pour effet de déclencher une seule fois pour le groupe l'impression
15815 \begin_inset Flex Code
15818 \begin_layout Plain Layout
15825 Implicitement, ceci est vrai pour les environnements
15826 \begin_inset Flex Code
15829 \begin_layout Plain Layout
15836 \begin_inset Flex Code
15839 \begin_layout Plain Layout
15846 \begin_inset Flex Code
15849 \begin_layout Plain Layout
15855 et faux pour tous les autres types.
15858 \begin_layout Description
15861 \begin_inset Flex Code
15864 \begin_layout Plain Layout
15875 \begin_inset Flex Code
15878 \begin_layout Plain Layout
15887 \begin_inset space \thinspace{}
15891 \begin_inset Flex Code
15894 \begin_layout Plain Layout
15900 ] indique que les paragraphes ne seront pas séparés par une ligne vide dans
15901 le résultat \SpecialChar LaTeX
15902 , mais par un retour à la ligne; combiné avec
15903 \begin_inset Flex Code
15906 \begin_layout Plain Layout
15912 , ceci permet d'émuler une éditeur plein texte (comme l'insert code \SpecialChar TeX
15916 \begin_layout Description
15919 \begin_inset Flex Code
15922 \begin_layout Plain Layout
15933 \begin_inset Flex Code
15936 \begin_layout Plain Layout
15942 fixe l'indentation de la toute première ligne d'un paragraphe.
15944 \begin_inset Flex Code
15947 \begin_layout Plain Layout
15953 est fixé pour un format donné, à l'exception du format
15954 \begin_inset Flex Code
15957 \begin_layout Plain Layout
15963 , car l'indentation d'un paragraphe dans l'environnement
15964 \begin_inset Flex Code
15967 \begin_layout Plain Layout
15973 peut être empêchée par
15974 \begin_inset Flex Code
15977 \begin_layout Plain Layout
15984 De plus, les paragraphes de style
15985 \begin_inset Flex Code
15988 \begin_layout Plain Layout
15994 emboîtés dans d'autres environnements utilisent le
15995 \begin_inset Flex Code
15998 \begin_layout Plain Layout
16004 de l'environne\SpecialChar softhyphen
16006 Par exemple, les paragraphes
16007 \begin_inset Flex Code
16010 \begin_layout Plain Layout
16016 dans une énumération ne sont pas indentés.
16019 \begin_layout Description
16022 \begin_inset Flex Code
16025 \begin_layout Plain Layout
16039 ] fixe l'espacement vertical entre deux paragraphes dans le style.
16042 \begin_layout Description
16045 \begin_inset Flex Code
16048 \begin_layout Plain Layout
16062 ] fixe la valeur d'interligne entre paragraphes.
16064 donne le choix entre
16065 \begin_inset Flex Code
16068 \begin_layout Plain Layout
16075 \begin_inset Flex Code
16078 \begin_layout Plain Layout
16084 pour séparer les paragraphes.
16086 \begin_inset Flex Code
16089 \begin_layout Plain Layout
16095 , cette valeur n'est pas prise en compte.
16097 \begin_inset Flex Code
16100 \begin_layout Plain Layout
16107 \begin_inset Flex Code
16110 \begin_layout Plain Layout
16116 n'est pas prise en compte et tous les paragraphes sont séparés par ce paramètre
16118 \begin_inset Flex Code
16121 \begin_layout Plain Layout
16127 , en plus de l'interligne normal.
16128 L'espacement vertical est calculé par
16129 \begin_inset Flex Code
16132 \begin_layout Plain Layout
16133 valeur*DefaultHeight()
16142 est la valeur choisie pour
16143 \begin_inset Flex Code
16146 \begin_layout Plain Layout
16153 \begin_inset Flex Code
16156 \begin_layout Plain Layout
16162 est la hauteur d'une ligne dans la police normale.
16163 De cette façon, l'aspect reste le même quelle que soit la police à l'écran.
16166 \begin_layout Description
16169 \begin_inset Flex Code
16172 \begin_layout Plain Layout
16183 \begin_inset Flex Code
16186 \begin_layout Plain Layout
16195 \begin_inset space \thinspace{}
16199 \begin_inset Flex Code
16202 \begin_layout Plain Layout
16208 ] indique si le contenu du paragraphe doit être passé sous forme brute,
16209 c'est-à-dire sans les traductions spéciales dont \SpecialChar LaTeX
16214 \begin_layout Description
16217 \begin_inset Flex Code
16220 \begin_layout Plain Layout
16231 \begin_inset Flex Code
16234 \begin_layout Plain Layout
16245 Defines individual characters that should be output in raw form, meaning
16246 without special translations that \SpecialChar LaTeX
16250 \begin_layout Description
16253 \begin_inset Flex Code
16256 \begin_layout Plain Layout
16266 fixe le contenu à inclure dans le préambule \SpecialChar LaTeX
16267 quand le style est utilisé.
16268 Utile pour définir des macros, charger des paquetages, etc.
16269 requis pour ce style particulier.
16270 Doit être fermé par
16271 \begin_inset Quotes cld
16275 \begin_inset Flex Code
16278 \begin_layout Plain Layout
16287 \begin_inset Quotes crd
16293 \begin_layout Description
16296 \begin_inset Flex Code
16299 \begin_layout Plain Layout
16310 \begin_inset Flex Code
16313 \begin_layout Plain Layout
16319 ] indique le préfixe à utiliser pour créer des étiquettes référant les paragraph
16321 Ceci permet l'utilisation de références mises en forme.
16324 \begin_layout Description
16327 \begin_inset Flex Code
16330 \begin_layout Plain Layout
16341 \begin_inset Flex Code
16344 \begin_layout Plain Layout
16350 ] indique que le style requiert la fonctionnalité chaîne (voir
16351 \begin_inset CommandInset ref
16353 reference "chap:List-of-functions"
16357 pour la liste des fonctionnalités).
16358 Si vous demandez un paquetage doté d'options spécifiques, vous pouvez en
16360 \begin_inset Flex Code
16363 \begin_layout Plain Layout
16369 en tant que paramètre général pour la classe de texte (voir
16370 \begin_inset CommandInset ref
16372 reference "subsec:Paramètres-généraux-d'une"
16379 \begin_layout Description
16382 \begin_inset Flex Code
16385 \begin_layout Plain Layout
16396 \begin_inset Flex Code
16399 \begin_layout Plain Layout
16408 \begin_inset Flex Code
16411 \begin_layout Plain Layout
16417 ] réinitialise les arguments \SpecialChar LaTeX
16418 de ce style ( tels que définis par la directive
16421 \begin_inset Flex Code
16424 \begin_layout Plain Layout
16435 Ceci est utile si vous avez dupliqué un style en utilisant
16438 \begin_inset Flex Code
16441 \begin_layout Plain Layout
16451 , et que vous ne voulez pas hériter de ses arguments (obligatoires et optionnels
16455 \begin_layout Description
16458 \begin_inset Flex Code
16461 \begin_layout Plain Layout
16470 \begin_inset Flex Code
16473 \begin_layout Plain Layout
16483 \begin_inset Flex Code
16486 \begin_layout Plain Layout
16494 ] Resumes a counter that is usually reset at each new sequence of layouts.
16495 This is currently only useful when
16496 \begin_inset Flex Code
16499 \begin_layout Plain Layout
16508 \begin_inset Flex Code
16511 \begin_layout Plain Layout
16522 \begin_layout Description
16525 \begin_inset Flex Code
16528 \begin_layout Plain Layout
16539 \begin_inset Flex Code
16542 \begin_layout Plain Layout
16548 ] définit une chaîne de caractères insérée à la fin du contenu du style.
16549 Une rupture de ligne dans la sortie peut être indiquée par
16550 \begin_inset Flex Code
16553 \begin_layout Plain Layout
16562 \begin_layout Description
16565 \begin_inset Flex Code
16568 \begin_layout Plain Layout
16579 \begin_inset Flex Code
16582 \begin_layout Plain Layout
16595 \begin_layout Description
16598 \begin_inset Flex Code
16601 \begin_layout Plain Layout
16614 \begin_inset Flex Code
16617 \begin_layout Plain Layout
16627 \begin_inset Flex Code
16630 \begin_layout Plain Layout
16639 \begin_inset Flex Code
16642 \begin_layout Plain Layout
16651 \begin_inset Flex Code
16654 \begin_layout Plain Layout
16660 \begin_inset space ~
16670 ] définit l'interligne par défaut dans ce style.
16672 \begin_inset Flex Code
16675 \begin_layout Plain Layout
16682 \begin_inset Flex Code
16685 \begin_layout Plain Layout
16692 \begin_inset Flex Code
16695 \begin_layout Plain Layout
16701 correspondent respectivement à un facteur multiplicatif de 1, 1,25 et 1,667.
16702 Si vous mettez le paramètre
16703 \begin_inset Flex Code
16706 \begin_layout Plain Layout
16712 , vous devez aussi mettre une valeur numérique qui servira de facteur multiplica
16714 Notez que, contrairement aux autres paramètres,
16715 \begin_inset Flex Code
16718 \begin_layout Plain Layout
16724 implique de générer du code \SpecialChar LaTeX
16725 spécifique, qui utilise le paquetage \SpecialChar LaTeX
16727 \begin_inset Flex Code
16730 \begin_layout Plain Layout
16739 \begin_layout Description
16742 \begin_inset Flex Code
16745 \begin_layout Plain Layout
16756 \begin_inset Flex Code
16759 \begin_layout Plain Layout
16766 \begin_inset space \thinspace{}
16770 \begin_inset Flex Code
16773 \begin_layout Plain Layout
16781 ] active la correction orthographique du style.
16782 Implicitement vrai.
16785 \begin_layout Description
16788 \begin_inset Flex Code
16791 \begin_layout Plain Layout
16800 \begin_inset Flex Code
16803 \begin_layout Plain Layout
16813 \begin_inset Flex Code
16816 \begin_layout Plain Layout
16824 ] Steps the master counter of a given counter at the beginning of a new
16825 sequence of layouts.
16826 This is currently only useful when
16827 \begin_inset Flex Code
16830 \begin_layout Plain Layout
16839 \begin_inset Flex Code
16842 \begin_layout Plain Layout
16853 \begin_layout Description
16856 \begin_inset Flex Code
16859 \begin_layout Plain Layout
16869 fixe la police utilisée pour le corps du texte.
16871 \begin_inset CommandInset ref
16873 reference "subsec:polices"
16880 \begin_layout Description
16883 \begin_inset Flex Code
16886 \begin_layout Plain Layout
16897 \begin_inset Flex Code
16900 \begin_layout Plain Layout
16906 ] fixe le niveau du style dans le table des matières.
16907 Ceci est utilisé pour la numérotation automatique des en-têtes.
16910 \begin_layout Description
16913 \begin_inset Flex Code
16916 \begin_layout Plain Layout
16927 \begin_inset Flex Code
16930 \begin_layout Plain Layout
16942 \begin_inset Flex Code
16945 \begin_layout Plain Layout
16954 \begin_inset Flex Code
16957 \begin_layout Plain Layout
16967 détermine si l'indentation de la première ligne de ce paragraphe peut être
16968 réglée via le menu des réglages de paragraphe.
16972 \begin_inset Flex Code
16975 \begin_layout Plain Layout
16985 est choisi, l'indentation peut être réglée si les réglages de document
16986 utilisent un style de paragraphe avec
16987 \begin_inset Quotes cld
16991 \begin_inset Quotes crd
16995 \begin_inset Flex Code
16998 \begin_layout Plain Layout
17004 , l'indentation est toujours réglable quels que soient les réglages du document;
17006 \begin_inset Flex Code
17009 \begin_layout Plain Layout
17015 , l'indentation n'est jamais réglable.
17018 \begin_layout Description
17021 \begin_inset Flex Code
17024 \begin_layout Plain Layout
17038 ] fixe L'espacement vertical qui sépare le premier paragraphe dans une série
17039 du même style, du paragraphe qui le précède.
17040 Si le paragraphe précédent est dans un autre style, les séparations ne
17041 s'ajoutent pas, mais \SpecialChar LyX
17042 prend le maximum des deux.
17045 \begin_layout Subsection
17046 \begin_inset CommandInset label
17052 Internationalisation des styles de paragraphes
17055 \begin_layout Standard
17057 effectue depuis longtemps la traduction des informations de format, mais,
17058 jusqu'à la version 2.0, ceci ne s'appliquait qu'à l'interface utilisateur
17059 et non pas par exemple au résultat PDF.
17060 Ainsi les auteurs francophones devaient avoir recours à des astuces pénibles
17061 s'ils voulaient obtenir
17062 \begin_inset Quotes cld
17066 \begin_inset Quotes crd
17070 \begin_inset Quotes cld
17074 \begin_inset Quotes crd
17082 , ce n'est plus le cas.
17085 \begin_layout Standard
17087 \begin_inset Flex Code
17090 \begin_layout Plain Layout
17096 définit un texte qui doit apparaître dans le le document typographique,
17098 \begin_inset Flex Code
17101 \begin_layout Plain Layout
17108 \begin_inset Flex Code
17111 \begin_layout Plain Layout
17117 pour traiter correctement les documents non anglophones, et même multilingues.
17118 L'extrait suivant (du fichier
17119 \begin_inset Flex Code
17122 \begin_layout Plain Layout
17128 ) illustre le fonctionnement:
17131 \begin_layout LyX-Code
17138 \begin_layout LyX-Code
17143 theoremstyle{remark}
17146 \begin_layout LyX-Code
17151 newtheorem{claim}[thm]{
17158 \begin_layout LyX-Code
17164 \begin_layout LyX-Code
17170 \begin_layout LyX-Code
17177 claimname}{_(Claim)}
17180 \begin_layout LyX-Code
17186 \begin_layout LyX-Code
17192 \begin_layout LyX-Code
17203 claimname}{_(Claim)}}
17206 \begin_layout LyX-Code
17213 \begin_layout Standard
17214 En principe, toute commande \SpecialChar LaTeX
17215 autorisée peut apparaître dans les directives
17217 \begin_inset Flex Code
17220 \begin_layout Plain Layout
17227 \begin_inset Flex Code
17230 \begin_layout Plain Layout
17236 , mais dans la pratique elles se présenteront typiquement comme ce qui est
17238 La clé de la traduction correcte du texte typographié est la définition
17239 de le commande \SpecialChar LaTeX
17241 \begin_inset Flex Code
17244 \begin_layout Plain Layout
17252 et son utilisation avec
17253 \begin_inset Flex Code
17256 \begin_layout Plain Layout
17268 \begin_layout Standard
17270 \begin_inset Flex Code
17273 \begin_layout Plain Layout
17279 fournit ce qu'il faut pour l'internationalisation fondée sur le langage
17280 global du document.
17281 Le contenu de la directive sera inclus dans le préambule, comme avec la
17283 \begin_inset Flex Code
17286 \begin_layout Plain Layout
17293 Ce qui la rend singulière est l'utilisation de la
17294 \begin_inset Quotes cld
17298 \begin_inset Quotes crd
17302 \begin_inset Flex Code
17305 \begin_layout Plain Layout
17311 , qui sera remplacée, lorsque \SpecialChar LyX
17312 produira le résultat \SpecialChar LaTeX
17313 , par la traduction
17314 de son argument dans la langue du document
17318 \begin_layout Plain Layout
17319 Pour ceux qui s'intéressent au fonctionnement sous-jacent, la fonction
17320 \begin_inset Quotes cld
17324 \begin_inset Flex Code
17327 \begin_layout Plain Layout
17334 \begin_inset Quotes crd
17338 \begin_inset Flex Code
17341 \begin_layout Plain Layout
17347 , qui constitue le cœur du mécanisme de traduction de l'interface \SpecialChar LyX
17349 est étendue ici à la traduction à la volée de code \SpecialChar LaTeX
17358 \begin_layout Standard
17360 \begin_inset Flex Code
17363 \begin_layout Plain Layout
17369 est plus compliquée, car elle fournit une fonctionnalité adaptée aux documents
17370 multilingues et propose par conséquent une interface pour le paquetage
17372 \begin_inset Flex Code
17375 \begin_layout Plain Layout
17381 Son contenu sera ajouté au préambule une fois pour chaque langue utilisée
17383 Dans ce cas, l'argument de
17384 \begin_inset Flex Code
17387 \begin_layout Plain Layout
17393 sera remplacé par sa traduction dans le langage en question: l'expression
17395 \begin_inset Flex Code
17398 \begin_layout Plain Layout
17404 est remplacée par le nom de la langue (telle qu'il est connu de
17405 \begin_inset Flex Code
17408 \begin_layout Plain Layout
17418 \begin_layout Standard
17419 Un document en allemand qui inclut aussi un paragraphe en français aura
17420 donc ceci dans le préambule:
17423 \begin_layout LyX-Code
17434 claimname}{Affirmation}}
17435 \begin_inset Newline newline
17446 claimname}{Behauptung}}
17447 \begin_inset Newline newline
17454 claimname}{Behauptung}
17457 \begin_layout Standard
17460 \begin_inset Flex Code
17463 \begin_layout Plain Layout
17469 vont alors conspirer pour créer le texte correct dans le résultat imprimable.
17472 \begin_layout Standard
17473 Un point important à noter est que les traductions sont celles qui sont
17474 fournies par \SpecialChar LyX
17475 lui-même, via le fichier
17478 \begin_inset Flex Code
17481 \begin_layout Plain Layout
17493 \begin_inset Flex Code
17496 \begin_layout Plain Layout
17503 \begin_inset Flex Code
17506 \begin_layout Plain Layout
17512 ne sont effectifs que dans les fichiers de format fournis avec \SpecialChar LyX
17514 les fichiers de format créés par l'utilisateur ne seront pas explorés par
17515 les fonctions d'internationalisation, sauf si le fichier
17518 \begin_inset Flex Code
17521 \begin_layout Plain Layout
17531 est modifié en conséquence.
17532 Ceci dit, tout fichier de format créé dans le but d'être distribué avec
17534 doit inclure ces directives s'il y a lieu.
17535 Notez bien que les traductions des styles de paragraphe ne changeront jamais
17536 avec les publications de maintenance des versions de \SpecialChar LyX
17538 de la version 2.1.x à la version 2.1.y).
17539 Il est cependant très probable qu'à l'occasion d'une publication majeure
17541 de 2.0.x à 2.1.0), de nouvelles traductions ou corrections soient introduites
17545 \begin_layout Subsection
17547 \begin_inset CommandInset label
17549 name "subsec:Flottants"
17556 \begin_layout Standard
17557 Il faut définir les flottants (
17558 \begin_inset Flex Code
17561 \begin_layout Plain Layout
17568 \begin_inset Flex Code
17571 \begin_layout Plain Layout
17578 ) dans la classe elle-même.
17579 Si vous cherchez à savoir comment mettre à jour une classe déjà existante,
17580 il suffit probablement que vous ajoutiez
17583 \begin_layout LyX-Code
17584 Input stdfloats.inc
17587 \begin_layout Standard
17588 à un endroit raisonnable dans la classe
17592 \begin_layout Plain Layout
17593 N'oubliez pas de jeter aussi un
17597 \begin_layout Plain Layout
17606 il sur les compteurs dans la section suivante.
17612 Si vous voulez implémenter une classe de texte qui propose un nouveau type
17613 de flottant (comme la classe AGU fournie avec \SpecialChar LyX
17614 ), les explications ci-dessous
17615 vont sans doute vous être utiles :
17618 \begin_layout Description
17621 \begin_inset Flex Code
17624 \begin_layout Plain Layout
17635 \begin_inset Flex Code
17638 \begin_layout Plain Layout
17644 =!htbpH] définit les options de placement pour ce type de flottant.
17645 La valeur est une chaîne de paramètres de placement, les caractères autorisés
17655 \begin_inset Quotes cld
17659 \begin_inset Quotes crd
17671 \begin_inset Quotes cld
17675 \begin_inset Quotes crd
17687 \begin_inset Quotes cld
17691 \begin_inset Quotes crd
17699 \begin_inset Quotes cld
17703 \begin_inset Quotes crd
17711 \begin_inset Quotes cld
17715 \begin_inset Quotes crd
17723 \begin_inset Quotes cld
17726 ignorer les règles \SpecialChar LaTeX
17728 L'ordre des caractères est indifférent.
17729 Si aucune option n'est autorisée, utiliser la chaîne de caractères
17736 \begin_layout Description
17739 \begin_inset Flex Code
17742 \begin_layout Plain Layout
17753 \begin_inset Flex Code
17756 \begin_layout Plain Layout
17763 \begin_inset space \thinspace{}
17769 \begin_inset Flex Code
17772 \begin_layout Plain Layout
17780 ] précise si le flottant peut subir une rotation grâce au paquetage \SpecialChar LaTeX
17787 \begin_inset Flex Code
17790 \begin_layout Plain Layout
17796 si le flottant ne peut pas bénéficier de cette fonctionnalité.
17799 \begin_layout Description
17802 \begin_inset Flex Code
17805 \begin_layout Plain Layout
17816 \begin_inset Flex Code
17819 \begin_layout Plain Layout
17826 \begin_inset space \thinspace{}
17832 \begin_inset Flex Code
17835 \begin_layout Plain Layout
17843 ] précise si le flottant possède une variante étoilée qui s'étend sur les
17844 colonnes dans un paragraphe à deux colonnes.
17846 \begin_inset Flex Code
17849 \begin_layout Plain Layout
17855 si le flottant ne peut pas bénéficier de cette fonctionnalité.
17858 \begin_layout Description
17861 \begin_inset Flex Code
17864 \begin_layout Plain Layout
17878 \begin_inset Flex Code
17881 \begin_layout Plain Layout
17887 ] définit le suffixe d'un fichier auxiliaire contenant la liste des flottants
17890 écrit les légendes dans ce fichier.
17893 \begin_layout Description
17896 \begin_inset Flex Code
17899 \begin_layout Plain Layout
17910 \begin_inset Flex Code
17913 \begin_layout Plain Layout
17919 ] définit la chaîne de caractères qui se trouvera dans les menus et également
17921 Ceci est traduit dans le langage courant si
17922 \begin_inset Flex Code
17925 \begin_layout Plain Layout
17934 \begin_layout Description
17935 \begin_inset Flex Code
17938 \begin_layout Plain Layout
17944 sont utilisées avec l'exportation XHTML.
17946 \begin_inset CommandInset ref
17948 reference "sec:Tags-for-XHTML"
17955 \begin_layout Description
17958 \begin_inset Flex Code
17961 \begin_layout Plain Layout
17972 \begin_inset Flex Code
17975 \begin_layout Plain Layout
17984 \begin_inset space \thinspace{}
17988 \begin_inset Flex Code
17991 \begin_layout Plain Layout
17997 ] indique si le flottant est déjà défini dans la classe de document ou s'il
17998 faut charger le paquetage \SpecialChar LaTeX
18000 \begin_inset Flex Code
18003 \begin_layout Plain Layout
18009 pour le définir à la volée.
18010 La valeur implicite est
18011 \begin_inset Flex Code
18014 \begin_layout Plain Layout
18020 qui signifie: utiliser
18021 \begin_inset Flex Code
18024 \begin_layout Plain Layout
18031 Elle doit être positionnée sur
18032 \begin_inset Flex Code
18035 \begin_layout Plain Layout
18041 si le flottant est déjà défini par la classe de document.
18044 \begin_layout Description
18047 \begin_inset Flex Code
18050 \begin_layout Plain Layout
18061 \begin_inset Flex Code
18064 \begin_layout Plain Layout
18070 ] détermine la commande utilisée pour engendrer une liste de flottants du
18072 \begin_inset Quotes cld
18078 \begin_inset Quotes crd
18081 initial doit être omis.
18087 \begin_inset Flex Code
18090 \begin_layout Plain Layout
18096 est faux, puisqu'il n'y a alors pas de procédure pour activer cette commande.
18097 La directive est ignorée si
18098 \begin_inset Flex Code
18101 \begin_layout Plain Layout
18107 est vrai, puisqu'il y a alors une procédure.
18110 \begin_layout Description
18113 \begin_inset Flex Code
18116 \begin_layout Plain Layout
18127 \begin_inset Flex Code
18130 \begin_layout Plain Layout
18136 ] fixe le titre utilisé pour une liste des flottants du type considéré (figures,
18138 Il est utilisé pour l'étiquette à l'écran dans \SpecialChar LyX
18139 ; il est passé à \SpecialChar LaTeX
18141 utilisé comme titre, et il est également utilisé comme titre dans l'exportation
18143 Il sera traduit dans le langage du document.
18146 \begin_layout Description
18149 \begin_inset Flex Code
18152 \begin_layout Plain Layout
18163 \begin_inset Flex Code
18166 \begin_layout Plain Layout
18172 ] (paramètre facultatif) détermine si les flottants de cette classe seront
18173 numérotés en suivant un type de section du document.
18177 \begin_inset Flex Code
18180 \begin_layout Plain Layout
18191 \begin_inset Quotes cld
18195 \begin_inset Flex Code
18198 \begin_layout Plain Layout
18207 \begin_inset Quotes crd
18210 , les flottants seront numérotés chapitre par chapitre.
18213 \begin_layout Description
18216 \begin_inset Flex Code
18219 \begin_layout Plain Layout
18230 \begin_inset Flex Code
18233 \begin_layout Plain Layout
18239 ] définit le placement implicite pour cette catégorie de flottants.
18240 C'est comme en \SpecialChar LaTeX
18242 \begin_inset Flex Code
18245 \begin_layout Plain Layout
18252 \begin_inset Flex Code
18255 \begin_layout Plain Layout
18262 \begin_inset Flex Code
18265 \begin_layout Plain Layout
18272 \begin_inset Flex Code
18275 \begin_layout Plain Layout
18281 pour haut, bas, page et ici respectivement
18285 \begin_layout Plain Layout
18286 Notez que l'ordre dans lequel vous mettez ces lettres est sans importance,
18287 comme en \SpecialChar LaTeX
18294 En plus vous avez un nouveau type,
18295 \begin_inset Flex Code
18298 \begin_layout Plain Layout
18304 , qui ne correspond pas vraiment à un flottant, car il signifie de le positionne
18306 \begin_inset Quotes cld
18310 \begin_inset Quotes crd
18313 et nulle part ailleurs.
18314 Notez cependant que le type
18315 \begin_inset Flex Code
18318 \begin_layout Plain Layout
18324 est spécial et, à cause de détails d'implantation, ne peut pas être utilisé
18325 avec des flottants non définis dans la classe de document.
18326 Si vous n'avez pas compris tout ce baratin, mettez simplement
18329 \begin_inset Quotes cld
18335 \begin_inset Flex Code
18338 \begin_layout Plain Layout
18347 \begin_inset Quotes crd
18355 \begin_layout Description
18358 \begin_inset Flex Code
18361 \begin_layout Plain Layout
18372 \begin_inset Flex Code
18375 \begin_layout Plain Layout
18381 ] détermine le préfixe à utiliser lors de la création d'étiquettes référant
18382 les flottants du type considéré.
18383 Ceci permet l'utilisation de références mises en forme.
18384 Notez que vous pouvez supprimer tout préfixe défini en copiant un style
18385 en utilisant la valeur spécifique
18386 \begin_inset Quotes cld
18390 \begin_inset Quotes crd
18393 , qui doit être en capitales.
18396 \begin_layout Description
18399 \begin_inset Flex Code
18402 \begin_layout Plain Layout
18413 \begin_inset Flex Code
18416 \begin_layout Plain Layout
18422 ] fixe le style utilisé quand on définit le flottant avec
18423 \begin_inset Flex Code
18426 \begin_layout Plain Layout
18437 \begin_layout Description
18440 \begin_inset Flex Code
18443 \begin_layout Plain Layout
18454 \begin_inset Flex Code
18457 \begin_layout Plain Layout
18464 \begin_inset Quotes cld
18468 \begin_inset Quotes crd
18471 de la nouvelle classe de flottants, comme
18472 \begin_inset Quotes cld
18476 \begin_inset Quotes crd
18480 \begin_inset Quotes cld
18484 \begin_inset Quotes crd
18488 Après l'instruction
18489 \begin_inset Flex Code
18492 \begin_layout Plain Layout
18500 appropriée, vous disposez de commandes comme
18501 \begin_inset Flex Code
18504 \begin_layout Plain Layout
18513 \begin_inset Flex Code
18516 \begin_layout Plain Layout
18525 Noter que définir un flottant de type
18526 \begin_inset Flex Code
18529 \begin_layout Plain Layout
18535 définit automatiquement les compteur correspondant, de nom
18536 \begin_inset Flex Code
18539 \begin_layout Plain Layout
18548 \begin_layout Description
18551 \begin_inset Flex Code
18554 \begin_layout Plain Layout
18565 \begin_inset Flex Code
18568 \begin_layout Plain Layout
18575 \begin_inset space \thinspace{}
18579 \begin_inset Flex Code
18582 \begin_layout Plain Layout
18590 ] indique si ce flottant est défini en utilisant le paquetage \SpecialChar LaTeX
18592 \begin_inset Flex Code
18595 \begin_layout Plain Layout
18601 , soit par la classe de document ou par un paquetage, soit à la volée par
18606 \begin_layout Standard
18607 Notez que la définition d'un flottant de type
18608 \begin_inset Flex Code
18611 \begin_layout Plain Layout
18619 implique la déclaration du compteur correspondant de nom
18620 \begin_inset Flex Code
18623 \begin_layout Plain Layout
18634 \begin_layout Subsection
18635 Inserts flexibles et InsetLayout
18636 \begin_inset CommandInset label
18638 name "subsec:Flex-insets-and"
18645 \begin_layout Standard
18646 Les inserts flexibles sont de trois sortes:
18649 \begin_layout Itemize
18650 styles de caractères (
18651 \begin_inset Flex Code
18654 \begin_layout Plain Layout
18662 ): ceux-ci définissent un balisage sémantique correspondant à des commandes
18665 \begin_inset Flex Code
18668 \begin_layout Plain Layout
18679 \begin_inset Flex Code
18682 \begin_layout Plain Layout
18695 \begin_layout Itemize
18696 définis par l'utilisateur (
18697 \begin_inset Flex Code
18700 \begin_layout Plain Layout
18708 ): ceux-ci permettent de définir des inserts repliables personnalisés, similaire
18709 s au code \SpecialChar TeX
18710 , aux notes de bas de page, etc.
18711 Un exemple évident est l'insert de note en fin de document, défini dans
18713 \begin_inset Flex Code
18716 \begin_layout Plain Layout
18727 \begin_layout Itemize
18731 \begin_inset Flex Code
18734 \begin_layout Plain Layout
18744 : à utiliser avec les classes DocBook.
18747 \begin_layout Standard
18748 Les inserts flexibles sont définis en utilisant la directive
18749 \begin_inset Flex Code
18752 \begin_layout Plain Layout
18760 , qui va être expliquée dans la suite.
18763 \begin_layout Standard
18765 \begin_inset Flex Code
18768 \begin_layout Plain Layout
18776 a une autre fonction: elle permet de personnaliser le style de différents
18779 \begin_inset Flex Code
18782 \begin_layout Plain Layout
18790 permet de personnaliser les paramètres de style pour les notes de bas de
18791 page, les notes en marge, les inserts de note, les inserts de code \SpecialChar TeX
18793 les branches, les listings, les index, les boîtes, les tables, les algorithmes,
18798 , aussi bien que de définir des inserts flexibles.
18801 \begin_layout Standard
18803 \begin_inset Flex Code
18806 \begin_layout Plain Layout
18814 doit commencer par une lignes de la forme:
18817 \begin_layout LyX-Code
18823 \begin_layout Standard
18825 \begin_inset Flex Code
18828 \begin_layout Plain Layout
18834 indique l'insert dont le style doit être défini, et il y a quatre cas.
18837 \begin_layout Enumerate
18838 Le style d'un insert préexistant doit être modifié.
18839 Dans ce cas, peuvent être
18840 \begin_inset Flex Code
18843 \begin_layout Plain Layout
18849 un quelconque des éléments suivants:
18850 \begin_inset Flex Code
18853 \begin_layout Plain Layout
18862 \begin_inset Flex Code
18865 \begin_layout Plain Layout
18874 \begin_inset Flex Code
18877 \begin_layout Plain Layout
18886 \begin_inset Flex Code
18889 \begin_layout Plain Layout
18900 \begin_inset Flex Code
18903 \begin_layout Plain Layout
18914 \begin_inset Flex Code
18917 \begin_layout Plain Layout
18926 \begin_inset Flex Code
18929 \begin_layout Plain Layout
18938 \begin_inset Flex Code
18941 \begin_layout Plain Layout
18950 \begin_inset Flex Code
18953 \begin_layout Plain Layout
18962 \begin_inset Flex Code
18965 \begin_layout Plain Layout
18974 \begin_inset Flex Code
18977 \begin_layout Plain Layout
18986 \begin_inset Flex Code
18989 \begin_layout Plain Layout
18998 \begin_inset Flex Code
19001 \begin_layout Plain Layout
19010 \begin_inset Flex Code
19013 \begin_layout Plain Layout
19022 \begin_inset Flex Code
19025 \begin_layout Plain Layout
19034 \begin_inset Flex Code
19037 \begin_layout Plain Layout
19046 \begin_inset Flex Code
19049 \begin_layout Plain Layout
19058 \begin_inset Flex Code
19061 \begin_layout Plain Layout
19070 \begin_inset Flex Code
19073 \begin_layout Plain Layout
19082 \begin_inset Flex Code
19085 \begin_layout Plain Layout
19097 \begin_layout Enumerate
19098 Le style d'un insert flexible doit être défini.
19100 \begin_inset Flex Code
19103 \begin_layout Plain Layout
19109 doit être de la forme
19110 \begin_inset Flex Code
19113 \begin_layout Plain Layout
19120 \begin_inset Flex Code
19123 \begin_layout Plain Layout
19129 peut être n'importe quel identificateur valide qui n'est pas utilisé dans
19130 un insert existant.
19131 L'identificateur peut inclure des espaces, mais alors il faut enclore l'ensembl
19132 e entre apostrophes.
19133 Noter que la définition d'un insert flexible
19137 aussi inclure une entrée
19138 \begin_inset Flex Code
19141 \begin_layout Plain Layout
19150 , précisant quel est le type d'insert qu'il définit.
19153 \begin_layout Enumerate
19154 Le style d'une branche utilisateur doit être défini.
19156 \begin_inset Flex Code
19159 \begin_layout Plain Layout
19165 doit être de la forme
19166 \begin_inset Quotes cld
19170 \begin_inset Flex Code
19173 \begin_layout Plain Layout
19180 \begin_inset Quotes crd
19184 \begin_inset Flex Code
19187 \begin_layout Plain Layout
19193 peut être un identificateur de branche valide défini dans le document utilisate
19195 L'identificateur peur contenir des espaces, mais dans ce cas la chaîne
19196 toute entière doit être enclose entre apostrophes.
19197 Le principal intérêt de cette fonctionnalité est est de permettre l’inclusion
19199 de branches spécifiques suivant les besoins de l'utilisateur.
19202 \begin_layout Enumerate
19203 Le style d'une légende utilisateur (ou de classe) doit être défini.
19205 \begin_inset Flex Code
19208 \begin_layout Plain Layout
19214 doit être de la forme
19215 \begin_inset Quotes cld
19219 \begin_inset Flex Code
19222 \begin_layout Plain Layout
19229 \begin_inset Quotes crd
19233 \begin_inset Flex Code
19236 \begin_layout Plain Layout
19242 spécifie le nom de la légende tel qu'il apparaît dans le menu.
19243 Voir la légende standard
19246 \begin_inset Flex Code
19249 \begin_layout Plain Layout
19259 , les légendes spécifiques des classes KOMA-Script
19262 \begin_inset Flex Code
19265 \begin_layout Plain Layout
19274 \begin_inset Flex Code
19277 \begin_layout Plain Layout
19289 Légendes multilingues
19294 \begin_inset Flex Code
19297 \begin_layout Plain Layout
19307 pour des applications.
19310 \begin_layout Standard
19312 \begin_inset Flex Code
19315 \begin_layout Plain Layout
19323 peut inclure les entrées suivantes:
19326 \begin_layout Description
19329 \begin_inset Flex Code
19332 \begin_layout Plain Layout
19341 \begin_inset Flex Code
19344 \begin_layout Plain Layout
19352 =""] This inset will appear in the table of contents of the given type.
19353 An empty string disables.
19354 See also the OutlinerName and the IsTocCaption commands.
19355 This is only implemented for Flex insets.
19359 \begin_layout Description
19362 \begin_inset Flex Code
19365 \begin_layout Plain Layout
19374 \begin_inset Flex Code
19377 \begin_layout Plain Layout
19387 définit un numéro d'argument d'une commande ou d'un environnement associé
19389 La définition doit être close par
19392 \begin_inset Flex Code
19395 \begin_layout Plain Layout
19407 \begin_inset CommandInset ref
19409 reference "subsec:Styles-de-paragraphe"
19416 \begin_layout Description
19419 \begin_inset Flex Code
19422 \begin_layout Plain Layout
19432 définit un préambule pour les modifications de commandes de langue; voir
19434 \begin_inset CommandInset ref
19436 reference "subsec:I18n"
19443 \begin_layout Description
19446 \begin_inset Flex Code
19449 \begin_layout Plain Layout
19460 \begin_inset Flex Code
19463 \begin_layout Plain Layout
19469 ] définit la couleur d'arrière-plan de l'insert.
19475 \begin_inset CommandInset ref
19477 reference "chap:Names-of-colors"
19481 pour une liste des noms de couleur disponibles.
19485 \begin_layout Description
19488 \begin_inset Flex Code
19491 \begin_layout Plain Layout
19502 \begin_inset Flex Code
19505 \begin_layout Plain Layout
19514 \begin_inset space \thinspace{}
19518 \begin_inset Flex Code
19521 \begin_layout Plain Layout
19527 ] indique s'il faut utiliser le contenu de l'insert comme une étiquette,
19528 quand l'insert est fermé.
19530 \begin_inset Quotes cld
19534 \begin_inset Quotes crd
19540 \begin_layout Description
19543 \begin_inset Flex Code
19546 \begin_layout Plain Layout
19557 \begin_inset Flex Code
19560 \begin_layout Plain Layout
19566 ] fonctionne comme les styles de paragraphe, voir
19567 \begin_inset CommandInset ref
19569 reference "subsec:Styles-de-paragraphe"
19574 Notez que vous devez spécifier le type complet, e.
19575 \begin_inset space \thinspace{}
19579 \begin_inset space ~
19585 \begin_inset Flex Code
19588 \begin_layout Plain Layout
19603 \begin_layout Description
19606 \begin_inset Flex Code
19609 \begin_layout Plain Layout
19620 \begin_inset Flex Code
19623 \begin_layout Plain Layout
19632 \begin_inset space \thinspace{}
19636 \begin_inset Flex Code
19639 \begin_layout Plain Layout
19645 ] indique si l'utilisateur peut utiliser le dialogue
19646 \begin_inset Flex Noun
19649 \begin_layout Plain Layout
19650 Édition\SpecialChar menuseparator
19652 \begin_inset Newline linebreak
19655 Paramètres de paragraphe
19660 pour personnaliser le paragraphe.
19663 \begin_layout Description
19666 \begin_inset Flex Code
19669 \begin_layout Plain Layout
19680 \begin_inset Flex Code
19683 \begin_layout Plain Layout
19692 \begin_inset Flex Code
19695 \begin_layout Plain Layout
19704 \begin_inset Flex Code
19707 \begin_layout Plain Layout
19715 , décrivant l'appa\SpecialChar softhyphen
19716 rence du cadre et des boutons de l'insert.
19717 les notes de bas de page utilisent en général
19718 \begin_inset Flex Code
19721 \begin_layout Plain Layout
19729 , les inserts des code \SpecialChar TeX
19731 \begin_inset Flex Code
19734 \begin_layout Plain Layout
19742 , et les styles de caractères
19743 \begin_inset Flex Code
19746 \begin_layout Plain Layout
19757 \begin_layout Description
19760 \begin_inset Flex Code
19763 \begin_layout Plain Layout
19774 \begin_inset Flex Code
19777 \begin_layout Plain Layout
19784 \begin_inset space \thinspace{}
19788 \begin_inset Flex Code
19791 \begin_layout Plain Layout
19799 ] n'est utilisé que lorsque
19800 \begin_inset Flex Code
19803 \begin_layout Plain Layout
19810 \begin_inset Flex Code
19813 \begin_layout Plain Layout
19820 Indique si l'environnement se trouvera à part dans le résultat imprimable
19821 ou bien apparaîtra inclus dans le texte environnant.
19822 S'il est positionné à faux, on suppose que l'environnement \SpecialChar LaTeX
19824 espaces (avec un caractère retour ligne inclus) après les balises
19825 \begin_inset Flex Code
19828 \begin_layout Plain Layout
19841 \begin_inset Flex Code
19844 \begin_layout Plain Layout
19858 \begin_inset Quotes cld
19862 \begin_inset Quotes crd
19868 \begin_layout Description
19869 \begin_inset Flex Code
19872 \begin_layout Plain Layout
19880 est requis pour fermer la déclaration d'un
19883 \begin_inset Flex Code
19886 \begin_layout Plain Layout
19899 \begin_layout Description
19900 \begin_inset Flex Code
19903 \begin_layout Plain Layout
19911 définit la police utilisée pour le texte du corps de l'insert
19917 \begin_inset space ~
19921 \begin_inset CommandInset ref
19923 reference "subsec:polices"
19928 Noter qu'en définissant cette police on définit aussi automatiquement
19929 \begin_inset Flex Code
19932 \begin_layout Plain Layout
19940 avec la même valeur.
19941 Il faut donc définir celle-ci d'abord pour fixer
19942 \begin_inset Flex Code
19945 \begin_layout Plain Layout
19956 \begin_layout Description
19959 \begin_inset Flex Code
19962 \begin_layout Plain Layout
19965 FixedWidthPreambleEncoding
19973 \begin_inset Flex Code
19976 \begin_layout Plain Layout
19985 \begin_inset space \thinspace{}
19989 \begin_inset Flex Code
19992 \begin_layout Plain Layout
19998 ] force un encodage à taille fixe pour les éléments traduits du code des
20000 \begin_inset Flex Code
20003 \begin_layout Plain Layout
20010 \begin_inset Flex Code
20013 \begin_layout Plain Layout
20019 engendré par ce format.
20020 Ceci est nécessaire pour les paquetages \SpecialChar LaTeX
20025 qui ne fonctionnent pas avec des encodages à taille variable comme
20030 Ce réglage est ignoré lors de l'utilisation de moteurs admettant complètement
20031 Unicode comme Xe\SpecialChar TeX
20032 ou Lua\SpecialChar TeX
20036 \begin_layout Description
20039 \begin_inset Flex Code
20042 \begin_layout Plain Layout
20045 ForceLocalFontSwitch
20053 \begin_inset Flex Code
20056 \begin_layout Plain Layout
20065 \begin_inset space \thinspace{}
20069 \begin_inset Flex Code
20072 \begin_layout Plain Layout
20078 ] lors de l'utilisation de babel, force l'utilisation un commutateur de
20085 \begin_inset Flex Code
20088 \begin_layout Plain Layout
20100 , à la place d'un commutateur
20107 \begin_inset Flex Code
20110 \begin_layout Plain Layout
20125 \begin_layout Description
20128 \begin_inset Flex Code
20131 \begin_layout Plain Layout
20142 \begin_inset Flex Code
20145 \begin_layout Plain Layout
20154 \begin_inset space \thinspace{}
20158 \begin_inset Flex Code
20161 \begin_layout Plain Layout
20167 ] impose le langage
20168 \begin_inset Quotes cld
20172 \begin_inset Quotes crd
20175 , conduisant à un résultat de gauche à droite (Left-to-Right, latin), e.
20176 \begin_inset space \thinspace{}
20180 \begin_inset space \space{}
20183 en code \SpecialChar TeX
20188 \begin_layout Description
20191 \begin_inset Flex Code
20194 \begin_layout Plain Layout
20205 \begin_inset Flex Code
20208 \begin_layout Plain Layout
20217 \begin_inset space \thinspace{}
20221 \begin_inset Flex Code
20224 \begin_layout Plain Layout
20230 ] force un saut de ligne dans le résultat \SpecialChar LaTeX
20231 avant le début de l'insert et
20233 Ceci garantit que l’insert apparaît en lignes isolées, pour la lisibilité.
20236 \begin_layout Description
20239 \begin_inset Flex Code
20242 \begin_layout Plain Layout
20253 \begin_inset Flex Code
20256 \begin_layout Plain Layout
20265 \begin_inset space \thinspace{}
20269 \begin_inset Flex Code
20272 \begin_layout Plain Layout
20279 \begin_inset Flex Code
20282 \begin_layout Plain Layout
20290 doit être utilisé, ou bien si l'utilisateur peut modifier le style de paragraph
20291 e utilisé dans l'insert.
20293 \begin_inset Quotes cld
20297 \begin_inset Quotes crd
20303 \begin_layout Description
20306 \begin_inset Flex Code
20309 \begin_layout Plain Layout
20320 \begin_inset Flex Code
20323 \begin_layout Plain Layout
20332 \begin_inset space \thinspace{}
20336 \begin_inset Flex Code
20339 \begin_layout Plain Layout
20345 ] fonctionne comme les styles de paragraphe, voir
20346 \begin_inset space ~
20350 \begin_inset CommandInset ref
20352 reference "subsec:Styles-de-paragraphe"
20359 \begin_layout Description
20360 \begin_inset Flex Code
20363 \begin_layout Plain Layout
20369 sont utilisées avec l'exportation XHTML.
20371 \begin_inset CommandInset ref
20373 reference "sec:Tags-for-XHTML"
20380 \begin_layout Description
20383 \begin_inset Flex Code
20386 \begin_layout Plain Layout
20397 \begin_inset Flex Code
20400 \begin_layout Plain Layout
20409 \begin_inset space \thinspace{}
20413 \begin_inset Flex Code
20416 \begin_layout Plain Layout
20422 ] indique s'il faut inclure le contenu de cet insert dans les chaînes créées
20424 \begin_inset Quotes cld
20429 for all table of contents, regardless of the AddToToc setting
20432 \begin_inset Quotes crd
20436 L'utilisateur ne voudra pas, par exemple, que le contenu d'une note de
20437 bas de page dans un titre de section soit incluse dans la tables des matières
20438 affichée dans le plan, mais voudra habituellement voir affiché le contenu
20439 d'un style de caractère.
20441 \begin_inset Quotes cld
20445 \begin_inset Quotes crd
20451 \begin_layout Description
20454 \begin_inset Flex Code
20457 \begin_layout Plain Layout
20466 \begin_inset Flex Code
20469 \begin_layout Plain Layout
20479 \begin_inset space \thinspace{}
20483 \begin_inset Flex Code
20486 \begin_layout Plain Layout
20494 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20495 of its contents in its item in the table of contents.
20496 Otherwise, only the label appears.
20499 \begin_layout Description
20502 \begin_inset Flex Code
20505 \begin_layout Plain Layout
20516 \begin_inset Flex Code
20519 \begin_layout Plain Layout
20528 \begin_inset space \thinspace{}
20532 \begin_inset Flex Code
20535 \begin_layout Plain Layout
20541 ] fonctionne comme les styles de paragraphe, voir
20542 \begin_inset CommandInset ref
20544 reference "subsec:Styles-de-paragraphe"
20551 \begin_layout Description
20554 \begin_inset Flex Code
20557 \begin_layout Plain Layout
20567 définit la police utilisée pour le marqueur.
20569 \begin_inset CommandInset ref
20571 reference "subsec:polices"
20576 Noter que cette directive ne peut jamais apparaître avant
20577 \begin_inset Flex Code
20580 \begin_layout Plain Layout
20588 , sinon elle sera sans effet.
20591 \begin_layout Description
20594 \begin_inset Flex Code
20597 \begin_layout Plain Layout
20608 \begin_inset Flex Code
20611 \begin_layout Plain Layout
20617 ] définit la chaîne de caractères qui apparaîtra sur le bouton ou ailleurs
20618 en tant que marquer d'insert.
20619 Quelques types d'inserts (
20620 \begin_inset Flex Code
20623 \begin_layout Plain Layout
20626 code \SpecialChar TeX
20633 \begin_inset Flex Code
20636 \begin_layout Plain Layout
20642 ) modifient ce marqueur à la volée.
20645 \begin_layout Description
20648 \begin_inset Flex Code
20651 \begin_layout Plain Layout
20661 définit un préambule dépendant de la langue, voir
20662 \begin_inset space ~
20666 \begin_inset CommandInset ref
20668 reference "subsec:I18n"
20675 \begin_layout Description
20678 \begin_inset Flex Code
20681 \begin_layout Plain Layout
20692 \begin_inset Flex Code
20695 \begin_layout Plain Layout
20701 ] définit le nom du code \SpecialChar LaTeX
20702 correspondant, soit un environnement, soit une
20706 \begin_layout Description
20709 \begin_inset Flex Code
20712 \begin_layout Plain Layout
20723 \begin_inset Flex Code
20726 \begin_layout Plain Layout
20732 ] définit le paramètre facultatif pour le
20733 \begin_inset Flex Code
20736 \begin_layout Plain Layout
20744 correspondant, y compris des paires de crochets
20745 \begin_inset Flex Code
20748 \begin_layout Plain Layout
20755 Ce paramètre ne peut pas être modifié depuis \SpecialChar LyX
20757 \begin_inset Flex Code
20760 \begin_layout Plain Layout
20766 pour les paramètres personnalisables).
20767 Il sera émis tel quel après tous les
20768 \begin_inset Flex Code
20771 \begin_layout Plain Layout
20777 s \SpecialChar LaTeX
20781 \begin_layout Description
20784 \begin_inset Flex Code
20787 \begin_layout Plain Layout
20796 \begin_inset Flex Code
20799 \begin_layout Plain Layout
20802 Command, Environment, None
20808 \begin_inset Flex Code
20811 \begin_layout Plain Layout
20821 précise comment le style doit être traduit en \SpecialChar LaTeX
20828 \begin_layout Plain Layout
20831 \begin_inset Flex Code
20834 \begin_layout Plain Layout
20844 est peut-être trompeur, puisque ces règles s'appliquent aussi aux classes
20846 Voir les fichiers de classe SGML pour des exemples spécifiques.
20855 \begin_layout Description
20858 \begin_inset Flex Code
20861 \begin_layout Plain Layout
20872 \begin_inset Quotes cld
20875 rien de particulier
20876 \begin_inset Quotes crd
20882 \begin_layout Description
20885 \begin_inset Flex Code
20888 \begin_layout Plain Layout
20901 \begin_inset Flex Code
20904 \begin_layout Plain Layout
20913 {\SpecialChar ldots
20922 \begin_layout Description
20925 \begin_inset Flex Code
20928 \begin_layout Plain Layout
20941 \begin_inset Flex Code
20944 \begin_layout Plain Layout
20953 }\SpecialChar ldots
20968 \begin_layout Standard
20969 En rassemblant ceci, la sortie \SpecialChar LaTeX
20973 \begin_layout LyX-Code
20978 LatexName[LatexParam]{\SpecialChar ldots
20982 \begin_layout Standard
20986 \begin_layout LyX-Code
20991 begin{LatexName}[LatexParam] \SpecialChar ldots
20997 \begin_layout Standard
21001 \begin_inset Flex Code
21004 \begin_layout Plain Layout
21016 \begin_layout Description
21019 \begin_inset Flex Code
21022 \begin_layout Plain Layout
21033 \begin_inset Flex Code
21036 \begin_layout Plain Layout
21042 ] définit une chaîne de caractères insérée au début du contenu du style.
21043 Une rupture de ligne dans la sortie peut être indiquée par
21044 \begin_inset Flex Code
21047 \begin_layout Plain Layout
21056 \begin_layout Description
21059 \begin_inset Flex Code
21062 \begin_layout Plain Layout
21073 \begin_inset Flex Code
21076 \begin_layout Plain Layout
21085 \begin_inset Flex Code
21088 \begin_layout Plain Layout
21097 \begin_inset Flex Code
21100 \begin_layout Plain Layout
21109 \begin_inset Flex Code
21112 \begin_layout Plain Layout
21120 (indiquant une définition vide terminant les définitions de styles de caractère
21122 Cette entrée est requise dans les inserts flexibles et n'est significative
21124 Parmi d'autres choses, elle détermine dans quel menu cet insert va apparaître.
21126 \begin_inset Flex Code
21129 \begin_layout Plain Layout
21136 \begin_inset Flex Code
21139 \begin_layout Plain Layout
21146 \begin_inset Flex Code
21149 \begin_layout Plain Layout
21156 \begin_inset Quotes cld
21160 \begin_inset Quotes crd
21164 \begin_inset Flex Code
21167 \begin_layout Plain Layout
21174 \begin_inset Quotes cld
21178 \begin_inset Quotes crd
21183 \begin_inset Flex Code
21186 \begin_layout Plain Layout
21192 peut être positionné à
21193 \begin_inset Quotes cld
21197 \begin_inset Quotes crd
21201 \begin_inset Flex Code
21204 \begin_layout Plain Layout
21211 \begin_inset Quotes cld
21215 \begin_inset Quotes crd
21219 \begin_inset Flex Code
21222 \begin_layout Plain Layout
21228 , en le positionnant
21233 \begin_inset Flex Code
21236 \begin_layout Plain Layout
21245 \begin_layout Description
21248 \begin_inset Flex Code
21251 \begin_layout Plain Layout
21262 \begin_inset Flex Code
21265 \begin_layout Plain Layout
21274 \begin_inset space \thinspace{}
21278 \begin_inset Flex Code
21281 \begin_layout Plain Layout
21287 ] indique si plusieurs paragraphes sont autorisés dans cet insert.
21288 Ceci positionnera aussi
21289 \begin_inset Flex Code
21292 \begin_layout Plain Layout
21300 à la même valeur et
21301 \begin_inset Flex Code
21304 \begin_layout Plain Layout
21312 à la valeur opposée.
21313 Ceux-ci peuvent être repositionnés s'ils sont utilisés
21318 \begin_inset Flex Code
21321 \begin_layout Plain Layout
21331 \begin_inset Quotes cld
21335 \begin_inset Quotes crd
21341 \begin_layout Description
21344 \begin_inset Flex Code
21347 \begin_layout Plain Layout
21358 \begin_inset Flex Code
21361 \begin_layout Plain Layout
21370 \begin_inset space \thinspace{}
21374 \begin_inset Flex Code
21377 \begin_layout Plain Layout
21383 ] indique si les commandes fragiles de cet insert doivent êtres protégées
21385 \begin_inset Flex Code
21388 \begin_layout Plain Layout
21402 sur le fait que la commande elle-même doive être protégée).
21404 \begin_inset Quotes cld
21408 \begin_inset Quotes crd
21414 \begin_layout Description
21417 \begin_inset Flex Code
21420 \begin_layout Plain Layout
21429 \begin_inset Flex Code
21432 \begin_layout Plain Layout
21445 \begin_inset Flex Code
21448 \begin_layout Plain Layout
21461 \begin_layout Description
21464 \begin_inset Flex Code
21467 \begin_layout Plain Layout
21476 \begin_inset Flex Code
21479 \begin_layout Plain Layout
21490 \begin_inset Flex Code
21493 \begin_layout Plain Layout
21500 \begin_inset Flex Code
21503 \begin_layout Plain Layout
21510 Ceci est utilisé pour renommer un
21511 \begin_inset Flex Code
21514 \begin_layout Plain Layout
21520 en conservant la compatibilité.
21523 \begin_layout Description
21526 \begin_inset Flex Code
21529 \begin_layout Plain Layout
21543 \begin_inset Flex Code
21546 \begin_layout Plain Layout
21556 \begin_inset space \thinspace{}
21562 \begin_inset Flex Code
21565 \begin_layout Plain Layout
21573 ] fonctionne comme avec les styles de paragraphe, voir
21574 \begin_inset CommandInset ref
21576 reference "subsec:Styles-de-paragraphe"
21583 \begin_layout Description
21586 \begin_inset Flex Code
21589 \begin_layout Plain Layout
21603 \begin_inset Flex Code
21606 \begin_layout Plain Layout
21616 \begin_inset space \thinspace{}
21622 \begin_inset Flex Code
21625 \begin_layout Plain Layout
21633 ] fonctionne comme avec les styles de paragraphe, voir
21634 \begin_inset CommandInset ref
21636 reference "subsec:Styles-de-paragraphe"
21643 \begin_layout Description
21646 \begin_inset Flex Code
21649 \begin_layout Plain Layout
21659 fonctionne comme avec les styles de paragraphe, voir
21660 \begin_inset CommandInset ref
21662 reference "subsec:Styles-de-paragraphe"
21669 \begin_layout Description
21672 \begin_inset Flex Code
21675 \begin_layout Plain Layout
21686 \begin_inset Flex Code
21689 \begin_layout Plain Layout
21695 ] indique le préfixe à utiliser pour créer des étiquettes référant les paragraph
21697 Ceci permet l'utilisation de références mises en forme.
21700 \begin_layout Description
21703 \begin_inset Flex Code
21706 \begin_layout Plain Layout
21717 \begin_inset Flex Code
21720 \begin_layout Plain Layout
21728 As with paragraph styles, see
21731 \begin_inset CommandInset ref
21733 reference "subsec:Styles-de-paragraphe"
21740 \begin_layout Description
21743 \begin_inset Flex Code
21746 \begin_layout Plain Layout
21757 \begin_inset Flex Code
21760 \begin_layout Plain Layout
21769 \begin_inset space \thinspace{}
21773 \begin_inset Flex Code
21776 \begin_layout Plain Layout
21782 ] réinitialise les arguments \SpecialChar LaTeX
21783 de ce style (définis via la directive
21784 \begin_inset Flex Code
21787 \begin_layout Plain Layout
21794 Ceci est utile si vous avez dupliqué un style via
21797 \begin_inset Flex Code
21800 \begin_layout Plain Layout
21810 mais que vous ne voulez pas hériter de ses arguments (obligatoires et optionnels
21814 \begin_layout Description
21817 \begin_inset Flex Code
21820 \begin_layout Plain Layout
21831 \begin_inset Flex Code
21834 \begin_layout Plain Layout
21841 \begin_inset space \thinspace{}
21845 \begin_inset Flex Code
21848 \begin_layout Plain Layout
21856 ] indique si l'insert doit utiliser la police de caractères environnante
21857 ou bien utiliser la sienne propre.
21859 \begin_inset Quotes cld
21863 \begin_inset Quotes crd
21866 , utiliser la police de caractères environnante.
21869 \begin_layout Description
21872 \begin_inset Flex Code
21875 \begin_layout Plain Layout
21886 \begin_inset Flex Code
21889 \begin_layout Plain Layout
21895 ] définit une chaîne de caractères insérée à la fin du contenu du style.
21896 Une rupture de ligne dans la sortie peut être indiquée par
21897 \begin_inset Flex Code
21900 \begin_layout Plain Layout
21909 \begin_layout Description
21912 \begin_inset Flex Code
21915 \begin_layout Plain Layout
21926 \begin_inset Flex Code
21929 \begin_layout Plain Layout
21936 \begin_inset space \thinspace{}
21940 \begin_inset Flex Code
21943 \begin_layout Plain Layout
21951 ] active le correcteur orthographique sur le contenu de cet insert.
21953 \begin_inset Quotes cld
21957 \begin_inset Quotes crd
21963 \begin_layout Subsection
21965 \begin_inset CommandInset label
21967 name "subsec:Compteurs"
21974 \begin_layout Standard
21975 Il faut définir les compteurs (
21976 \begin_inset Flex Code
21979 \begin_layout Plain Layout
21986 \begin_inset Flex Code
21989 \begin_layout Plain Layout
21996 ) dans la classe elle-même.
21997 Les compteurs standard sont définis dans le fichier
22000 \begin_inset Flex Code
22003 \begin_layout Plain Layout
22014 Si vous cherchez à savoir comment mettre à jour une classe déjà existante,
22015 il suffit probablement que vous ajoutiez
22018 \begin_layout LyX-Code
22019 Input stdcounters.inc
22022 \begin_layout Standard
22023 à un endroit raisonnable dans la classe.
22026 \begin_layout Standard
22027 Mais si vous voulez définir des compteurs à votre guise, vous pouvez le
22029 La déclaration d'un compteur doit commencer par
22032 \begin_layout LyX-Code
22040 \begin_layout Standard
22042 \begin_inset Flex Code
22045 \begin_layout Plain Layout
22051 est le nom du compteur.
22052 Et elle doit se terminer par
22053 \begin_inset Flex Code
22056 \begin_layout Plain Layout
22067 \begin_layout Standard
22068 Les paramètres suivants peuvent également être utilisés:
22071 \begin_layout Description
22074 \begin_inset Flex Code
22077 \begin_layout Plain Layout
22086 \begin_inset Flex Code
22089 \begin_layout Plain Layout
22099 positionne la valeur initiale du compteur, valeur à laquelle il sera réinitiali
22100 sé quand cela sera nécessaire.
22101 Normalement, la valeur désirée est la valeur implicite,
22102 \begin_inset space ~
22108 \begin_layout Description
22111 \begin_inset Flex Code
22114 \begin_layout Plain Layout
22125 \begin_inset Flex Code
22128 \begin_layout Plain Layout
22135 \begin_inset Quotes erd
22139 \begin_inset Quotes erd
22142 ] définit comment le compteur s'affiche.
22143 Fixer ce paramètre positionne également
22144 \begin_inset Flex Code
22147 \begin_layout Plain Layout
22150 LabelStringAppendix
22156 Les arguments spécifiques suivants peuvent être utilisés:
22160 \begin_layout Itemize
22161 \begin_inset Flex Code
22164 \begin_layout Plain Layout
22174 sera remplacé par l'expansion de
22175 \begin_inset Flex Code
22178 \begin_layout Plain Layout
22187 \begin_inset Newline newline
22191 \begin_inset Flex Code
22194 \begin_layout Plain Layout
22197 LabelStringAppendix
22203 \begin_inset Flex Code
22206 \begin_layout Plain Layout
22218 \begin_layout Itemize
22219 les valeurs du compteur peuvent être exprimées par des macros à la \SpecialChar LaTeX
22221 \begin_inset Flex Code
22224 \begin_layout Plain Layout
22243 \begin_inset Flex Code
22246 \begin_layout Plain Layout
22256 \begin_inset Flex Code
22259 \begin_layout Plain Layout
22267 : 1, 2, 3,\SpecialChar ldots
22269 \begin_inset Flex Code
22272 \begin_layout Plain Layout
22280 pour les lettres en bas de casse: a, b, c, \SpecialChar ldots
22282 \begin_inset Flex Code
22285 \begin_layout Plain Layout
22293 pour les lettres en capitales: A, B, C, \SpecialChar ldots
22295 \begin_inset Flex Code
22298 \begin_layout Plain Layout
22306 pour la numérotation en bas de casse romaine: i, ii, iii, \SpecialChar ldots
22308 \begin_inset Flex Code
22311 \begin_layout Plain Layout
22319 pour la numérotation capitale romaine: I, II, III.
22323 \begin_layout Standard
22327 \begin_inset Flex Code
22330 \begin_layout Plain Layout
22340 est indéfini, une valeur implicite est construite comme suit: si le compteur
22341 a un compteur maître
22342 \begin_inset Flex Code
22345 \begin_layout Plain Layout
22354 \begin_inset Flex Code
22357 \begin_layout Plain Layout
22366 \begin_inset Newline newline
22370 \begin_inset Flex Code
22373 \begin_layout Plain Layout
22385 est utilisée; sinon la chaîne
22386 \begin_inset Flex Code
22389 \begin_layout Plain Layout
22402 \begin_layout Description
22405 \begin_inset Flex Code
22408 \begin_layout Plain Layout
22411 LabelStringAppendix
22419 \begin_inset Flex Code
22422 \begin_layout Plain Layout
22429 \begin_inset Quotes erd
22433 \begin_inset Quotes erd
22437 \begin_inset Flex Code
22440 \begin_layout Plain Layout
22448 , mais pour les annexes.
22451 \begin_layout Description
22452 \begin_inset Flex Code
22455 \begin_layout Plain Layout
22464 \begin_inset Flex Code
22467 \begin_layout Plain Layout
22474 \begin_inset Quotes erd
22478 \begin_inset Quotes erd
22481 ] définit un format à utiliser pour les références mises en forme utilisant
22483 Par exemple, on peut vouloir que les références aux numéros de section
22485 \begin_inset Quotes cld
22489 \begin_inset space ~
22493 \begin_inset Quotes crd
22497 La chaîne devra contenir
22498 \begin_inset Quotes cld
22502 \begin_inset Quotes crd
22506 Ceci sera remplacé par la valeur courante du compteur.
22507 Ainsi, pour les sections, ce sera: Section ##.
22510 \begin_layout Description
22511 \begin_inset Flex Code
22514 \begin_layout Plain Layout
22523 \begin_inset Flex Code
22526 \begin_layout Plain Layout
22533 \begin_inset Quotes erd
22537 \begin_inset Quotes erd
22540 ] contient le nom d'un autre compteur: le compteur actuel sera remis à zéro
22541 à chaque fois que l'autre augmentera.
22543 \begin_inset Flex Code
22546 \begin_layout Plain Layout
22553 \begin_inset Flex Code
22556 \begin_layout Plain Layout
22565 \begin_layout Subsection
22566 Description de police
22567 \begin_inset CommandInset label
22569 name "subsec:polices"
22576 \begin_layout Standard
22577 Une description de police ressemble à :
22580 \begin_layout LyX-Code
22594 \begin_layout LyX-Code
22598 \begin_layout LyX-Code
22602 \begin_layout Standard
22603 et les commandes suivantes sont disponibles :
22606 \begin_layout Description
22607 \begin_inset Flex Code
22610 \begin_layout Plain Layout
22621 \begin_inset Flex Code
22624 \begin_layout Plain Layout
22633 \begin_inset Flex Code
22636 \begin_layout Plain Layout
22643 \begin_inset Flex Code
22646 \begin_layout Plain Layout
22653 \begin_inset Flex Code
22656 \begin_layout Plain Layout
22663 \begin_inset Flex Code
22666 \begin_layout Plain Layout
22673 \begin_inset Flex Code
22676 \begin_layout Plain Layout
22683 \begin_inset Flex Code
22686 \begin_layout Plain Layout
22693 \begin_inset Flex Code
22696 \begin_layout Plain Layout
22703 \begin_inset Flex Code
22706 \begin_layout Plain Layout
22713 \begin_inset Flex Code
22716 \begin_layout Plain Layout
22723 \begin_inset Flex Code
22726 \begin_layout Plain Layout
22733 \begin_inset Flex Code
22736 \begin_layout Plain Layout
22743 \begin_inset Flex Code
22746 \begin_layout Plain Layout
22753 \begin_inset Flex Code
22756 \begin_layout Plain Layout
22763 \begin_inset Flex Code
22766 \begin_layout Plain Layout
22773 \begin_inset Flex Code
22776 \begin_layout Plain Layout
22783 \begin_inset Flex Code
22786 \begin_layout Plain Layout
22793 \begin_inset Flex Code
22796 \begin_layout Plain Layout
22803 \begin_inset Flex Code
22806 \begin_layout Plain Layout
22813 \begin_inset Flex Code
22816 \begin_layout Plain Layout
22825 \begin_layout Description
22826 \begin_inset Flex Code
22829 \begin_layout Plain Layout
22838 \begin_inset Flex Code
22841 \begin_layout Plain Layout
22850 \begin_inset Flex Code
22853 \begin_layout Plain Layout
22860 \begin_inset Flex Code
22863 \begin_layout Plain Layout
22872 \begin_layout Description
22873 \begin_inset Flex Code
22876 \begin_layout Plain Layout
22883 \begin_inset Flex Code
22886 \begin_layout Plain Layout
22892 ] avec les arguments valides suivants:
22893 \begin_inset Flex Code
22896 \begin_layout Plain Layout
22903 \begin_inset Flex Code
22906 \begin_layout Plain Layout
22913 \begin_inset Flex Code
22916 \begin_layout Plain Layout
22923 \begin_inset Flex Code
22926 \begin_layout Plain Layout
22933 \begin_inset Flex Code
22936 \begin_layout Plain Layout
22943 \begin_inset Flex Code
22946 \begin_layout Plain Layout
22953 \begin_inset Flex Code
22956 \begin_layout Plain Layout
22963 \begin_inset Flex Code
22966 \begin_layout Plain Layout
22973 \begin_inset Flex Code
22976 \begin_layout Plain Layout
22983 \begin_inset Flex Code
22986 \begin_layout Plain Layout
22993 \begin_inset Flex Code
22996 \begin_layout Plain Layout
23003 \begin_inset Newline linebreak
23007 \begin_inset Flex Code
23010 \begin_layout Plain Layout
23017 Chacun de ceux-ci (dés)active l'attribut correspondant.
23018 \begin_inset Newline newline
23022 \begin_inset Flex Code
23025 \begin_layout Plain Layout
23031 active la mise en évidence, et
23032 \begin_inset Flex Code
23035 \begin_layout Plain Layout
23042 Si ce dernier point vous intrigue, souvenez-vous que le réglage de police
23043 du contexte courant est généralement hérité du contexte environnant.
23045 \begin_inset Flex Code
23048 \begin_layout Plain Layout
23056 désactiverait la mise en évidence qui était active de toutes façons, par
23057 exemple dans un environnement de théorème.
23061 \begin_layout Description
23062 \begin_inset Flex Code
23065 \begin_layout Plain Layout
23074 \begin_inset Flex Code
23077 \begin_layout Plain Layout
23086 \begin_inset Flex Code
23089 \begin_layout Plain Layout
23098 \begin_layout Description
23099 \begin_inset Flex Code
23102 \begin_layout Plain Layout
23111 \begin_inset Flex Code
23114 \begin_layout Plain Layout
23123 \begin_inset Flex Code
23126 \begin_layout Plain Layout
23133 \begin_inset Flex Code
23136 \begin_layout Plain Layout
23143 \begin_inset Flex Code
23146 \begin_layout Plain Layout
23155 \begin_layout Description
23156 \begin_inset Flex Code
23159 \begin_layout Plain Layout
23166 \begin_inset Flex Code
23169 \begin_layout Plain Layout
23176 \begin_inset Flex Code
23179 \begin_layout Plain Layout
23186 \begin_inset Flex Code
23189 \begin_layout Plain Layout
23198 \begin_inset Flex Code
23201 \begin_layout Plain Layout
23208 \begin_inset Flex Code
23211 \begin_layout Plain Layout
23218 \begin_inset Flex Code
23221 \begin_layout Plain Layout
23228 \begin_inset Flex Code
23231 \begin_layout Plain Layout
23238 \begin_inset Flex Code
23241 \begin_layout Plain Layout
23250 \begin_layout Subsection
23253 \begin_inset CommandInset label
23255 name "subsec:Citation-engine-description"
23259 Citation engine description
23262 \begin_layout Standard
23266 \begin_inset Flex Code
23269 \begin_layout Plain Layout
23277 blocks, as used mainly in cite engine files (see
23278 \begin_inset CommandInset ref
23280 reference "subsec:Cite-Engine-Files"
23287 ), define the citation commands provided by a specific
23288 \begin_inset Quotes eld
23292 \begin_inset Quotes erd
23296 A cite engine, in \SpecialChar LyX
23297 terms, is way specific way to format citations, using
23298 numbers, author names and/or years.
23299 Currently, \SpecialChar LyX
23300 supports three such engine types, namely:
23303 \begin_layout Enumerate
23306 \begin_inset Flex Code
23309 \begin_layout Plain Layout
23317 : the default Bib\SpecialChar TeX
23318 way to format citations, a simple numeric style (e.
23319 \begin_inset space \thinspace{}
23323 \begin_inset Quotes eld
23327 \begin_inset Quotes erd
23333 \begin_layout Enumerate
23336 \begin_inset Flex Code
23339 \begin_layout Plain Layout
23347 : Harvard-styled citations using author names and publication year (e.
23348 \begin_inset space \thinspace{}
23352 \begin_inset Quotes eld
23355 Smith and Miller (2017b)
23356 \begin_inset Quotes erd
23362 \begin_layout Enumerate
23365 \begin_inset Flex Code
23368 \begin_layout Plain Layout
23376 : extended numerical citations that also allow for author or title next
23378 \begin_inset space \thinspace{}
23382 \begin_inset Quotes eld
23385 Smith and Miller [1]
23386 \begin_inset Quotes erd
23392 \begin_layout Standard
23395 \begin_inset Flex Code
23398 \begin_layout Plain Layout
23406 blocks look like this:
23409 \begin_layout LyX-Code
23415 \begin_layout LyX-Code
23421 \begin_layout LyX-Code
23427 \begin_layout LyX-Code
23430 citeyearpar[][]=parencite*
23433 \begin_layout LyX-Code
23439 \begin_layout LyX-Code
23445 \begin_layout Standard
23449 \begin_inset Flex Code
23452 \begin_layout Plain Layout
23460 denotes the engine.
23461 The individual lines respectively define a cite command or cite command
23462 paradigm supported by this engine.
23463 The line can be as simple as a cite command that is used both to name the
23464 respective \SpecialChar LyX
23465 command and the \SpecialChar LaTeX
23466 output or more complex in order to differentiate
23468 The full syntax is:
23471 \begin_layout LyX-Code
23474 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23477 \begin_layout Itemize
23480 \begin_inset Flex Code
23483 \begin_layout Plain Layout
23491 : The name as used in the
23492 \begin_inset Flex Code
23495 \begin_layout Plain Layout
23507 \begin_layout Standard
23510 For portability reasons, we try to use the same name for same-formatted
23511 commands in different cite packages (thus many names stem from natbib,
23512 and thus we need to differentiate a
23513 \begin_inset Flex Code
23516 \begin_layout Plain Layout
23524 sometimes, if the \SpecialChar LaTeX
23525 command names differ).
23529 \begin_layout Itemize
23532 \begin_inset Flex Code
23535 \begin_layout Plain Layout
23543 : a (comma-separated) list of commands that fall back to the given
23544 \begin_inset Flex Code
23547 \begin_layout Plain Layout
23555 in the current engine.
23556 This eases the switch of citation packages and engines.
23558 \begin_inset Flex Code
23561 \begin_layout Plain Layout
23570 \begin_inset Flex Code
23573 \begin_layout Plain Layout
23581 in layout definitions.
23584 \begin_layout Itemize
23587 \begin_inset Flex Code
23590 \begin_layout Plain Layout
23598 : The actual \SpecialChar LaTeX
23599 command that is output.
23603 \begin_layout Standard
23606 \begin_inset Flex Code
23609 \begin_layout Plain Layout
23618 \begin_inset Flex Code
23621 \begin_layout Plain Layout
23631 \begin_inset Flex Code
23634 \begin_layout Plain Layout
23643 \begin_inset Flex Code
23646 \begin_layout Plain Layout
23654 will be output to \SpecialChar LaTeX
23658 \begin_layout Standard
23664 \begin_layout Itemize
23667 Capitalization indicates that the command also has a capitalized form (
23668 \begin_inset Flex Code
23671 \begin_layout Plain Layout
23683 \begin_inset Flex Code
23686 \begin_layout Plain Layout
23697 These usually enforce up-casing of name prefixes (
23702 \begin_inset Formula $\Rightarrow$
23712 \begin_layout Itemize
23716 \begin_inset Flex Code
23719 \begin_layout Plain Layout
23727 indicate the number of optional arguments (there can be 0–2).
23730 \begin_layout Itemize
23734 \begin_inset Flex Code
23737 \begin_layout Plain Layout
23745 indicates there is a starred version of the command (
23746 \begin_inset Flex Code
23749 \begin_layout Plain Layout
23761 \begin_inset Flex Code
23764 \begin_layout Plain Layout
23779 \begin_layout Standard
23782 By default, the starred version means: Output all authors even if it should
23784 \begin_inset Quotes eld
23788 \begin_inset Quotes erd
23792 \begin_inset Flex Code
23795 \begin_layout Plain Layout
23806 \begin_layout Standard
23809 If the star has a different meaning for a given command, it can be specified
23811 \begin_inset Flex Code
23814 \begin_layout Plain Layout
23817 <!_stardesc!_stardesctooltip>
23823 Maximal two translatable macro keywords, marked by the prefix
23824 \begin_inset Flex Code
23827 \begin_layout Plain Layout
23836 The first points to the string that replaces the
23837 \begin_inset Quotes eld
23841 \begin_inset Quotes erd
23844 checkbox label in the citation dialog, the second one to an optional tool
23845 tip for this checkbox.
23849 \begin_layout Standard
23852 Note that these two macros have to be defined in a
23853 \begin_inset Flex Code
23856 \begin_layout Plain Layout
23864 (see next section), dropping the
23865 \begin_inset Flex Code
23868 \begin_layout Plain Layout
23876 from the prefix, like this:
23879 \begin_layout LyX-Code
23882 _stardesc Sta&rred command label
23885 \begin_layout LyX-Code
23888 _stardesctooltip Tooltip for the starred command checkbox.
23892 \begin_layout Itemize
23896 \begin_inset Flex Code
23899 \begin_layout Plain Layout
23907 indicates that this command features
23908 \begin_inset Quotes eld
23911 qualified citation lists
23912 \begin_inset Quotes erd
23920 -specific feature for multi-reference citations where an individual pre-
23921 and postnote can be given to each reference in the list.
23922 Please refer to the
23926 manual for details.
23929 \begin_layout Subsection
23930 \begin_inset CommandInset label
23932 name "subsec:Description citation"
23936 Description d'une insertion de citation
23939 \begin_layout Standard
23941 \begin_inset Flex Code
23944 \begin_layout Plain Layout
23950 servent à décrire comment les citations bibliographiques doivent être affichées
23951 , à la fois dans \SpecialChar LyX
23952 (dans la fenêtre de citation et dans les bulles d'aide,
23953 par exemple) et dans le résultat XHTML.
23954 Un tel bloc se présente comme suit:
23957 \begin_layout LyX-Code
23963 \begin_layout LyX-Code
23969 \begin_layout LyX-Code
23975 \begin_layout LyX-Code
23981 \begin_layout Standard
23987 \begin_layout LyX-Code
23993 \begin_layout LyX-Code
23999 \begin_layout LyX-Code
24005 \begin_layout LyX-Code
24011 \begin_layout Standard
24014 Dans le premier cas,
24016 les différentes lignes définissent l'affichage de l'information correspondant
24017 à une article ou à un livre, respectivement, et une telle définition peut
24018 être créée pour tout type d'entrée apparaissant dans un fichier Bib\SpecialChar TeX
24021 définit un format implicite dans le code source qui sera utilisé si aucune
24022 définition spécifique n'est fournie.
24024 prédéfinit plusieurs formats dans le fichier
24025 \begin_inset Flex Code
24028 \begin_layout Plain Layout
24034 , qui est inclus dans la plupart des classes de document \SpecialChar LyX
24038 \begin_layout Standard
24041 In the second case, the lines define how a specific citation command (in
24043 \begin_inset Flex Code
24046 \begin_layout Plain Layout
24057 \begin_inset Flex Code
24060 \begin_layout Plain Layout
24070 ) is to be displayed on the citation inset label, in the citation dialog,
24071 menu or XHTML output.
24073 defines such formats for the citation style variants it supports via
24075 Document\SpecialChar menuseparator
24076 Setting\SpecialChar menuseparator
24077 Bibliography\SpecialChar ldots
24081 \begin_inset Flex Code
24084 \begin_layout Plain Layout
24092 files that are shipped with \SpecialChar LyX
24094 \begin_inset CommandInset ref
24096 reference "subsec:Cite-Engine-Files"
24106 \begin_layout Standard
24107 Les définitions utilisent un langage simple qui permet
24108 \begin_inset space ~
24111 de remplacer les clés Bib\SpecialChar TeX
24113 les clés doivent être encloses entre caractères
24116 \begin_inset Flex Code
24119 \begin_layout Plain Layout
24128 \begin_inset Flex Code
24131 \begin_layout Plain Layout
24142 Une définition simple serait par exemple:
24145 \begin_layout LyX-Code
24149 \begin_inset Quotes eld
24153 \begin_inset Quotes erd
24159 \begin_layout Standard
24160 Ceci imprimerait le nom de l'auteur, suivi d'une virgule, suivi du titre,
24161 entre double guillemets, suivi d'un point.
24164 \begin_layout Standard
24165 Bien entendu, vous voudrez parfois n'imprimer une clé que si elle existe.
24166 Ceci est obtenu par une construction conditionnelle, comme:
24167 \begin_inset Flex Code
24170 \begin_layout Plain Layout
24172 \begin_inset space ~
24181 Ceci signifie: si la clé
24182 \begin_inset Flex Code
24185 \begin_layout Plain Layout
24191 existe, alors imprimer
24192 \begin_inset Quotes cld
24196 \begin_inset Quotes crd
24199 suivi de la clé volume.
24200 On peut aussi introduire une clause
24201 \begin_inset Flex Code
24204 \begin_layout Plain Layout
24210 dans l'expression conditionnelle, comme dans:
24211 \begin_inset Newline newline
24215 \begin_inset Flex Code
24218 \begin_layout Plain Layout
24219 {%author%[[%author%]][[%editor%, ed.]]}
24225 \begin_inset Newline newline
24229 \begin_inset Flex Code
24232 \begin_layout Plain Layout
24238 est imprimée si elle existe; sinon la clé
24239 \begin_inset Flex Code
24242 \begin_layout Plain Layout
24248 est imprimée, suivi de
24249 \begin_inset Quotes cld
24253 \begin_inset Quotes crd
24257 Noter que la clé est encore enclose entre caractères
24258 \begin_inset Flex Code
24261 \begin_layout Plain Layout
24267 ; la clause conditionnelle entière est enclose entre accolades, et les clauses
24269 \begin_inset Flex Code
24272 \begin_layout Plain Layout
24279 \begin_inset Flex Code
24282 \begin_layout Plain Layout
24288 sont encloses entre double crochets
24289 \begin_inset Quotes cld
24293 \begin_inset Quotes crd
24297 \begin_inset Quotes cld
24301 \begin_inset Quotes crd
24305 Il ne peut avoir d'espaces entre ces marqueurs.
24308 \begin_layout Standard
24311 Next to the entry keys, there are some special keys that can be used for
24312 these conditionals:
24315 \begin_layout Itemize
24318 \begin_inset Flex Code
24321 \begin_layout Plain Layout
24324 {%dialog%[[true]][[false]]}
24330 \begin_inset Quotes eld
24334 \begin_inset Quotes erd
24337 part for dialogs and menus, the
24338 \begin_inset Quotes eld
24342 \begin_inset Quotes erd
24345 part for other contexts (workarea, export)
24348 \begin_layout Itemize
24351 \begin_inset Flex Code
24354 \begin_layout Plain Layout
24357 {%export%[[true]][[false]]}
24363 \begin_inset Quotes eld
24367 \begin_inset Quotes erd
24370 part for export and menus, the
24371 \begin_inset Quotes eld
24375 \begin_inset Quotes erd
24378 part for other contexts (workarea, dialog)
24381 \begin_layout Itemize
24384 \begin_inset Flex Code
24387 \begin_layout Plain Layout
24396 \begin_inset Quotes eld
24400 \begin_inset Quotes erd
24403 part if another item follows (e.
24404 \begin_inset space \thinspace{}
24407 g., in a citation with multiple keys)
24410 \begin_layout Itemize
24413 \begin_inset Flex Code
24416 \begin_layout Plain Layout
24419 {%second%[[true]][[false]]}
24425 \begin_inset Quotes eld
24429 \begin_inset Quotes erd
24432 if this is the second of multiple items, else the
24433 \begin_inset Quotes eld
24437 \begin_inset Quotes erd
24443 \begin_layout Itemize
24446 \begin_inset Flex Code
24449 \begin_layout Plain Layout
24452 {%ifstar%[[true]][[false]]}
24458 \begin_inset Quotes eld
24462 \begin_inset Quotes erd
24465 part for starred citation commands (such as
24466 \begin_inset Flex Code
24469 \begin_layout Plain Layout
24479 ), the false part for unstarred
24482 \begin_layout Itemize
24485 \begin_inset Flex Code
24488 \begin_layout Plain Layout
24491 {%ifentrytype:<type>%[[true]][[false]]}
24497 \begin_inset Quotes eld
24501 \begin_inset Quotes erd
24504 if the current entry type matches
24505 \begin_inset Flex Code
24508 \begin_layout Plain Layout
24516 , else the false part (e.g., in a citation definition:
24517 \begin_inset Flex Code
24520 \begin_layout Plain Layout
24523 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24531 \begin_layout Itemize
24534 \begin_inset Flex Code
24537 \begin_layout Plain Layout
24540 {%ifmultiple:<authortype>%[[true]][[false]]}
24546 \begin_inset Quotes eld
24550 \begin_inset Quotes erd
24553 if the current author type (author, editor etc.) has multiple authors, else
24554 the false part (e.g., in a bibliography definition:
24555 \begin_inset Flex Code
24558 \begin_layout Plain Layout
24561 {%ifmultiple:editor%[[eds.]][[ed.]]}
24569 \begin_layout Itemize
24572 \begin_inset Flex Code
24575 \begin_layout Plain Layout
24578 {%ifqualified%[[true]][[false]]}
24584 \begin_inset Quotes eld
24588 \begin_inset Quotes erd
24591 part if the current citation is a qualified citation list (a specific
24595 format for multi-reference citations), the false part if this is not the
24599 \begin_layout Standard
24603 \begin_inset Flex Code
24606 \begin_layout Plain Layout
24614 prints the author key as it is recorded in the bibliography file.
24615 This might not be what you want, since it will result in a string such
24617 \begin_inset Quotes eld
24620 Miller, Peter and Smith, Mary and White, Jane
24621 \begin_inset Quotes erd
24625 \begin_inset Quotes eld
24629 \begin_inset Quotes erd
24632 is used by Bib\SpecialChar TeX
24633 to delimit authors).
24635 therefore provides some methods to get properly formatted name lists (which
24636 will also get translated).
24637 The following keys are provided:
24640 \begin_layout Enumerate
24643 For name lists with pre- and surname, suitable for the main authors/editors
24644 of a bibliography item.
24646 \begin_inset Flex Code
24649 \begin_layout Plain Layout
24657 part denotes the kind of list that is requested (e.g.
24659 \begin_inset Flex Code
24662 \begin_layout Plain Layout
24674 \begin_layout Itemize
24677 \begin_inset Flex Code
24680 \begin_layout Plain Layout
24683 %abbrvnames:<nametype>%
24688 : Provides a name list which is abbreviated (with
24689 \begin_inset Quotes eld
24693 \begin_inset Quotes erd
24697 \begin_inset Flex Code
24700 \begin_layout Plain Layout
24711 \begin_layout Itemize
24714 \begin_inset Flex Code
24717 \begin_layout Plain Layout
24720 %fullnames:<nametype>%
24725 : Provides a full name list (never abbreviated with
24726 \begin_inset Quotes eld
24730 \begin_inset Quotes erd
24736 \begin_layout Itemize
24739 \begin_inset Flex Code
24742 \begin_layout Plain Layout
24745 %forceabbrvnames:<nametype>%
24750 : Provides a name list which is always abbreviated (with
24751 \begin_inset Quotes eld
24755 \begin_inset Quotes erd
24759 \begin_inset Flex Code
24762 \begin_layout Plain Layout
24774 \begin_layout Enumerate
24777 Alternative name lists with pre- and surname, if the order of pre- and surname
24778 inside the bibliography item differs (as in:
24779 \begin_inset Quotes eld
24782 Miller, John: Some text, in: Mary Smith, ed.: A volume
24783 \begin_inset Quotes erd
24790 \begin_layout Itemize
24793 \begin_inset Flex Code
24796 \begin_layout Plain Layout
24799 %abbrvbynames:<nametype>%
24804 : Provides a name list which is abbreviated (with
24805 \begin_inset Quotes eld
24809 \begin_inset Quotes erd
24813 \begin_inset Flex Code
24816 \begin_layout Plain Layout
24827 \begin_layout Itemize
24830 \begin_inset Flex Code
24833 \begin_layout Plain Layout
24836 %fullbynames:<nametype>%
24841 : Provides a full name list (never abbreviated with
24842 \begin_inset Quotes eld
24846 \begin_inset Quotes erd
24852 \begin_layout Itemize
24855 \begin_inset Flex Code
24858 \begin_layout Plain Layout
24861 %forceabbrvbynames:<nametype>%
24866 : Provides a name list which is always abbreviated (with
24867 \begin_inset Quotes eld
24871 \begin_inset Quotes erd
24875 \begin_inset Flex Code
24878 \begin_layout Plain Layout
24890 \begin_layout Enumerate
24893 And finally name lists which consist of family names only, as used in author-yea
24895 these do not take a
24896 \begin_inset Flex Code
24899 \begin_layout Plain Layout
24907 part, but always return either an author list or, if this does not exist,
24908 an editor list (as common in author-year labels):
24912 \begin_layout Itemize
24915 \begin_inset Flex Code
24918 \begin_layout Plain Layout
24926 : Provides a name list which is abbreviated (with
24927 \begin_inset Quotes eld
24931 \begin_inset Quotes erd
24935 \begin_inset Flex Code
24938 \begin_layout Plain Layout
24949 \begin_layout Itemize
24952 \begin_inset Flex Code
24955 \begin_layout Plain Layout
24963 : Provides a full name list (never abbreviated with
24964 \begin_inset Quotes eld
24968 \begin_inset Quotes erd
24974 \begin_layout Itemize
24977 \begin_inset Flex Code
24980 \begin_layout Plain Layout
24983 %forceabbrvciteauthor%
24988 : Provides a name list which is always abbreviated (with
24989 \begin_inset Quotes eld
24993 \begin_inset Quotes erd
24997 \begin_inset Flex Code
25000 \begin_layout Plain Layout
25012 \begin_layout Standard
25015 The order of pre- and surname in the former two lists can be adjusted by
25019 \begin_layout Itemize
25022 \begin_inset Flex Code
25025 \begin_layout Plain Layout
25028 !firstnameform %surname%, %prename%
25033 (first author in lists of type 1)
25036 \begin_layout Itemize
25039 \begin_inset Flex Code
25042 \begin_layout Plain Layout
25045 !othernameform %surname%, %prename%
25050 (other authors in lists of type 1)
25053 \begin_layout Itemize
25056 \begin_inset Flex Code
25059 \begin_layout Plain Layout
25062 !firstbynameform %prename% %surname%
25067 (first author in lists of type 2)
25070 \begin_layout Itemize
25073 \begin_inset Flex Code
25076 \begin_layout Plain Layout
25079 !otherbynameform %prename% %surname%
25084 (other authors in lists of type 2)
25087 \begin_layout Standard
25090 This allows you to configure namings like
25091 \begin_inset Quotes eld
25094 Miller, Peter and Mary Smith: \SpecialChar ldots
25095 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25097 \begin_inset Quotes erd
25103 \begin_layout Standard
25104 Il existe enfin une autre syntaxe possible dans ces définitions, qui se
25105 présente comme suit:
25106 \begin_inset Flex Code
25109 \begin_layout Plain Layout
25116 Ceci définit une entité d'information utilisée pour créer du
25117 \begin_inset Quotes cld
25121 \begin_inset Quotes crd
25125 De manière évidente, nous ne souhaitons pas exporter des balises HTML en
25126 écrivant du texte normal, aussi doivent elles être enclose entre
25127 \begin_inset Quotes cld
25131 \begin_inset Quotes crd
25135 \begin_inset Quotes cld
25139 \begin_inset Quotes crd
25145 \begin_layout Standard
25146 Deux définitions spéciales sont également disponibles dans un bloc
25147 \begin_inset Flex Code
25150 \begin_layout Plain Layout
25156 Un exemple de la première définition est celle-ci:
25159 \begin_layout LyX-Code
25161 \begin_inset Quotes eld
25165 \begin_inset Quotes erd
25171 \begin_layout Standard
25172 Ceci est une abréviation, ou macro-instruction, et peut être employée comme
25174 \begin_inset Flex Code
25177 \begin_layout Plain Layout
25186 \begin_inset Flex Code
25189 \begin_layout Plain Layout
25195 exactement comme s'il s'agissait de sa définition.
25196 Exprimons par conséquent un
25200 évident: n'utilisez pas:
25203 \begin_layout LyX-Code
25207 \begin_layout Standard
25210 ne devrait pas se perdre dans une boucle infinie, mais cela peut prendre
25211 un moment avant qu'il s'en sorte.
25214 \begin_layout Standard
25215 Le second type de définitions particulières se présente comme ceci:
25218 \begin_layout LyX-Code
25222 \begin_layout Standard
25223 Ceci définit un segment de texte susceptible de traduction, ce qui permet
25224 de traduire les parties appropriées de la bibliographie
25229 Cette syntaxe peut être incluse dans une définition normale en la considérant
25231 \begin_inset Flex Code
25234 \begin_layout Plain Layout
25243 Note that there are two different translation paths: All definitions starting
25245 \begin_inset Flex Code
25248 \begin_layout Plain Layout
25256 , such as in the example above, will be translated to the currently active
25257 buffer language (so the translation will match the generated document).
25258 All definitions starting with underscore only will be translated to the
25260 This is the proper translation for strings that only occur in the dialogs
25261 or on buttons, such as this one:
25264 \begin_layout LyX-Code
25267 _addtobib Add to bibliography only.
25270 \begin_layout Standard
25271 Plusieurs d'entre elles
25273 translatable strings
25275 sont prédéfinies dans
25276 \begin_inset Flex Code
25279 \begin_layout Plain Layout
25290 \begin_inset Flex Code
25293 \begin_layout Plain Layout
25300 Notez bien que ce ne sont pas des macro-instructions, au sens défini ci-dessus:
25301 elles ne seront pas interprétées.
25304 \begin_layout Standard
25305 Voici donc un exemple utilisant variés ces fonctionnalités:
25306 \begin_inset VSpace defskip
25312 \begin_layout Standard
25316 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25319 \begin_layout Standard
25320 \begin_inset VSpace defskip
25323 Ceci défini une macro qui imprime le nom de l'auteur, suivi d'un virgule,
25325 \begin_inset Flex Code
25328 \begin_layout Plain Layout
25334 existe, ou bien imprime le nom de l'éditeur, suivi de
25335 \begin_inset Flex Code
25338 \begin_layout Plain Layout
25344 ou de sa traduction (implicitement, apparaîtra
25345 \begin_inset Quotes cld
25349 \begin_inset Quotes crd
25353 \begin_inset Flex Code
25356 \begin_layout Plain Layout
25363 Notez que ceci est déjà défini dans
25364 \begin_inset Flex Code
25367 \begin_layout Plain Layout
25373 , vous pouvez donc l'utiliser dans vos propres définitions, ou redéfinitions,
25374 si vous chargez ce fichier d'abord.
25377 \begin_layout Section
25378 Directives pour l'exportation XHTML
25379 \begin_inset CommandInset label
25381 name "sec:Tags-for-XHTML"
25388 \begin_layout Standard
25389 Comme pour \SpecialChar LaTeX
25390 ou DocBook, la présentation du résultat HTML créé par \SpecialChar LyX
25392 par les informations de format.
25393 En général, \SpecialChar LyX
25394 produit une présentation implicite raisonnable, et comme indiqué
25395 plus haut, il construira même des règles implicites CSS à partir des autres
25396 directives de format.
25397 Par exemple, \SpecialChar LyX
25398 essaiera d'utiliser l'information du bloc
25399 \begin_inset Flex Code
25402 \begin_layout Plain Layout
25408 du style Chapter pour écrire une CSS qui mettra en forme les titres de
25409 chapitres de manière appropriée.
25412 \begin_layout Standard
25413 Dans de nombreux cas, vous n'aurez donc sans doute rien à faire du tout
25414 pour obtenir un résultat XHTML acceptable pour vos environnements propres,
25415 vos inserts personnalisés, et ainsi de suite.
25416 Mais dans certains cas vous devrez faire quelque chose, et \SpecialChar LyX
25418 conséquent un certain nombre de directives de format qui peuvent être utilisées
25419 pour personnaliser le XHTML et les CSS qui sont créés.
25422 \begin_layout Standard
25423 Notez qu'il existe deux directives,
25424 \begin_inset Flex Code
25427 \begin_layout Plain Layout
25434 \begin_inset Flex Code
25437 \begin_layout Plain Layout
25443 , qui peuvent apparaître en dehors des déclarations de style et d'insert.
25445 \begin_inset CommandInset ref
25447 reference "subsec:Paramètres-généraux-d'une"
25451 pour les détails sur celles-ci.
25454 \begin_layout Subsection
25455 Styles de paragraphe
25456 \begin_inset CommandInset label
25458 name "subsec:Styles-de-paragraphe-XHTML"
25465 \begin_layout Standard
25466 Le type de XHTML que \SpecialChar LyX
25467 crée pour un paragraphe dépend s'il s'agit d'un paragraphe
25468 normal, d'une commande ou d'un environnement, ce qui est déterminé par
25469 le contenu de la directive correspondante
25470 \begin_inset Flex Code
25473 \begin_layout Plain Layout
25483 \begin_layout Standard
25484 Pour une commande ou un paragraphe normal, le résultat XHTML a la forme
25488 \begin_layout LyX-Code
25492 \begin_inset Quotes erd
25496 \begin_inset Quotes erd
25502 \begin_layout LyX-Code
25506 \begin_inset Quotes erd
25510 \begin_inset Quotes erd
25513 >Étiquette</labeltag>
25516 \begin_layout LyX-Code
25519 Contenu du paragraphe
25522 \begin_layout LyX-Code
25528 \begin_layout Standard
25529 Les balises d'étiquette sont bien entendu omises si le paragraphe n'est
25533 \begin_layout Standard
25534 Pour un environnement qui n'est pas du type liste, le XHTML prend la forme:
25537 \begin_layout LyX-Code
25541 \begin_inset Quotes erd
25545 \begin_inset Quotes erd
25551 \begin_layout LyX-Code
25555 \begin_inset Quotes erd
25559 \begin_inset Quotes erd
25563 \begin_inset Quotes erd
25567 \begin_inset Quotes erd
25570 >Étiquette d'environnement</labeltag>Premier paragraphe.</itemtag>
25573 \begin_layout LyX-Code
25576 <itemtag>Second paragraphe.</itemtag>
25579 \begin_layout LyX-Code
25585 \begin_layout Standard
25586 Noter que l'étiquette n'est émise que pour le premier paragraphe, comme
25587 ce serait le cas pour une théorème, par exemple.
25590 \begin_layout Standard
25591 Pour une liste, nous avons une de ces formes:
25594 \begin_layout LyX-Code
25598 \begin_inset Quotes erd
25602 \begin_inset Quotes erd
25608 \begin_layout LyX-Code
25612 \begin_inset Quotes erd
25616 \begin_inset Quotes erd
25620 \begin_inset Quotes erd
25624 \begin_inset Quotes erd
25627 >Étiquette de liste</labeltag>Premier élément.</itemtag>
25630 \begin_layout LyX-Code
25634 \begin_inset Quotes erd
25638 \begin_inset Quotes erd
25642 \begin_inset Quotes erd
25646 \begin_inset Quotes erd
25649 >Étiquette de liste</labeltag>Second élément.</itemtag>
25652 \begin_layout LyX-Code
25658 \begin_layout LyX-Code
25662 \begin_layout LyX-Code
25666 \begin_inset Quotes erd
25670 \begin_inset Quotes erd
25676 \begin_layout LyX-Code
25680 \begin_inset Quotes erd
25684 \begin_inset Quotes erd
25687 >Étiquette de liste</labeltag><itemtag attr=
25688 \begin_inset Quotes erd
25692 \begin_inset Quotes erd
25695 >Premier élément.</itemtag>
25698 \begin_layout LyX-Code
25702 \begin_inset Quotes erd
25706 \begin_inset Quotes erd
25709 >Étiquette de liste</labeltag><itemtag attr=
25710 \begin_inset Quotes erd
25714 \begin_inset Quotes erd
25717 >Second élément.</itemtag>
25720 \begin_layout LyX-Code
25726 \begin_layout Standard
25727 Noter la différence en ce qui concerne l'ordre des balises
25728 \begin_inset Flex Code
25731 \begin_layout Plain Layout
25738 \begin_inset Flex Code
25741 \begin_layout Plain Layout
25748 L'ordre obtenu dépend du positionnement de
25749 \begin_inset Flex Code
25752 \begin_layout Plain Layout
25759 \begin_inset Flex Code
25762 \begin_layout Plain Layout
25768 est fausse (valeur implicite), vous obtiendrez la première forme, avec
25769 l'étiquette dans l'élément; s'il la valeur est vraie, vous obtiendrez la
25770 seconde forme, avec l'étiquette en dehors de l'élément.
25773 \begin_layout Standard
25774 Les balises et les attributs spécifiques émis pour chaque type de paragraphe
25775 peuvent être contrôlés par les directives de format que nous allons décrire.
25776 Comme indiqué ci-dessus, cependant, \SpecialChar LyX
25777 utilise des valeurs implicites raisonnable
25778 s pour la plupart d'entre elles, vous n'aurez donc pas grand-chose à faire
25779 pour produire un résultat XHTML satisfaisant.
25780 Pensez aux directives disponibles comme un supplément pour obtenir un réglage
25781 à votre convenance.
25784 \begin_layout Description
25787 \begin_inset Flex Code
25790 \begin_layout Plain Layout
25799 \begin_inset Flex Code
25802 \begin_layout Plain Layout
25810 précise les informations d'attribut à émettre avec la balise principale.
25812 \begin_inset Flex Code
25815 \begin_layout Plain Layout
25816 \begin_inset Quotes cld
25820 \begin_inset Quotes crd
25829 Implicitement, \SpecialChar LyX
25831 \begin_inset Newline newline
25835 \begin_inset Flex Code
25838 \begin_layout Plain Layout
25839 \begin_inset Quotes cld
25843 \begin_inset Quotes crd
25852 \begin_inset Flex Code
25855 \begin_layout Plain Layout
25861 est le nom du style en bas de casse, par exemple: chapter.
25862 Ceci ne doit contenir
25866 information de style: utiliser
25867 \begin_inset Flex Code
25870 \begin_layout Plain Layout
25879 \begin_layout Description
25882 \begin_inset Flex Code
25885 \begin_layout Plain Layout
25896 \begin_inset Flex Code
25899 \begin_layout Plain Layout
25908 \begin_inset space \thinspace{}
25912 \begin_inset Flex Code
25915 \begin_layout Plain Layout
25921 ] indique s'il faut émettre l'information CSS implicite engendrée par \SpecialChar LyX
25923 ce style, même si une information complémentaire est explicitement émise
25925 \begin_inset Flex Code
25928 \begin_layout Plain Layout
25935 Positionner cette directive à
25936 \begin_inset Flex Code
25939 \begin_layout Plain Layout
25945 vous permet de modifier ou de compléter la CSS créée, plutôt que de l'écraser
25948 \begin_inset Flex Code
25951 \begin_layout Plain Layout
25960 \begin_layout Description
25963 \begin_inset Flex Code
25966 \begin_layout Plain Layout
25975 \begin_inset Flex Code
25978 \begin_layout Plain Layout
25986 définit la balise utilisée pour les paragraphes ou environnements isolés,
25988 \begin_inset Flex Code
25991 \begin_layout Plain Layout
25997 dans les exemples ci-dessus.
25999 \begin_inset Flex Code
26002 \begin_layout Plain Layout
26011 \begin_layout Description
26014 \begin_inset Flex Code
26017 \begin_layout Plain Layout
26026 \begin_inset Flex Code
26029 \begin_layout Plain Layout
26037 définit les attributs des balises
26038 \begin_inset Flex Code
26041 \begin_layout Plain Layout
26049 \begin_inset Flex Code
26052 \begin_layout Plain Layout
26053 \begin_inset Quotes cld
26056 class=`nomstyle_item'
26057 \begin_inset Quotes crd
26066 Ceci ne doit contenir
26070 information de style: utiliser
26071 \begin_inset Flex Code
26074 \begin_layout Plain Layout
26083 \begin_layout Description
26086 \begin_inset Flex Code
26089 \begin_layout Plain Layout
26098 \begin_inset Flex Code
26101 \begin_layout Plain Layout
26109 définit la balise utilisée pour les étiquettes de paragraphe et d'élément,
26111 \begin_inset Flex Code
26114 \begin_layout Plain Layout
26120 dans les exemples ci-dessus.
26122 \begin_inset Flex Code
26125 \begin_layout Plain Layout
26132 \begin_inset Flex Code
26135 \begin_layout Plain Layout
26142 \begin_inset Flex Code
26145 \begin_layout Plain Layout
26152 \begin_inset Newline newline
26156 \begin_inset Flex Code
26159 \begin_layout Plain Layout
26160 Centered_Top_Environment
26165 , auquel cas elle vaut implicitement
26166 \begin_inset Flex Code
26169 \begin_layout Plain Layout
26178 \begin_layout Description
26181 \begin_inset Flex Code
26184 \begin_layout Plain Layout
26193 \begin_inset Flex Code
26196 \begin_layout Plain Layout
26204 définit les attributs de la balise
26205 \begin_inset Flex Code
26208 \begin_layout Plain Layout
26216 \begin_inset Quotes erd
26220 Ceci ne doit contenir
26224 information de style: utiliser
26225 \begin_inset Flex Code
26228 \begin_layout Plain Layout
26237 \begin_layout Description
26240 \begin_inset Flex Code
26243 \begin_layout Plain Layout
26254 \begin_inset Flex Code
26257 \begin_layout Plain Layout
26266 \begin_inset space \thinspace{}
26270 \begin_inset Flex Code
26273 \begin_layout Plain Layout
26279 ], significatif uniquement pour les environnements de liste, contrôle si
26280 la balise d'étiquetage est émise avant ou dans la balise d'élément.
26281 Ceci est utilisé par exemple dans l'environnement de description, où l'on
26283 \begin_inset Flex Code
26286 \begin_layout Plain Layout
26287 \begin_inset Quotes cld
26290 <dt>\SpecialChar ldots
26291 </dt><dd>\SpecialChar ldots
26293 \begin_inset Quotes crd
26303 \begin_inset Flex Code
26306 \begin_layout Plain Layout
26312 : la balise d'étiquetage est dans la balise d'élément.
26315 \begin_layout Description
26318 \begin_inset Flex Code
26321 \begin_layout Plain Layout
26331 définit l'information à émettre dans la section
26332 \begin_inset Flex Code
26335 \begin_layout Plain Layout
26341 quand ce style est utilisé.
26342 Ceci pourrait être utilisé par exemple pour inclure un bloc
26343 \begin_inset Flex Code
26346 \begin_layout Plain Layout
26352 définissant un gestionnaire
26353 \begin_inset Flex Code
26356 \begin_layout Plain Layout
26365 \begin_layout Description
26368 \begin_inset Flex Code
26371 \begin_layout Plain Layout
26381 définit l'information à émettre dans la section
26382 \begin_inset Flex Code
26385 \begin_layout Plain Layout
26391 quand ce style est utilisé.
26392 Ceci pourrait être utilisé par exemple pour inclure un bloc
26393 \begin_inset Flex Code
26396 \begin_layout Plain Layout
26402 définissant un gestionnaire
26403 \begin_inset Flex Code
26406 \begin_layout Plain Layout
26413 Doit être fermé par
26416 \begin_inset Flex Code
26419 \begin_layout Plain Layout
26432 \begin_layout Description
26435 \begin_inset Flex Code
26438 \begin_layout Plain Layout
26447 \begin_inset Flex Code
26450 \begin_layout Plain Layout
26458 définit la balise utilisé pour l'étiquette principale, qui remplace
26459 \begin_inset Flex Code
26462 \begin_layout Plain Layout
26468 dans les exemples ci-dessus.
26470 \begin_inset Flex Code
26473 \begin_layout Plain Layout
26482 \begin_layout Description
26485 \begin_inset Flex Code
26488 \begin_layout Plain Layout
26499 \begin_inset Flex Code
26502 \begin_layout Plain Layout
26511 \begin_inset space \thinspace{}
26515 \begin_inset Flex Code
26518 \begin_layout Plain Layout
26524 ] identifie ce style comme celui à utiliser pour créer la balise
26525 \begin_inset Flex Code
26528 \begin_layout Plain Layout
26534 dans le fichier XHTML.
26535 Implicitement fausse.
26537 \begin_inset Flex Code
26540 \begin_layout Plain Layout
26546 la positionne à vraie pour l'environnement
26547 \begin_inset Flex Code
26550 \begin_layout Plain Layout
26559 \begin_layout Subsection
26565 \begin_layout Standard
26566 L'exportation XHTML des inserts peut également être contrôlée par l'information
26567 résidant dans les fichiers de format
26571 \begin_layout Plain Layout
26572 Pour le moment, ceci n'est exact que pour les inserts de
26573 \begin_inset Quotes cld
26577 \begin_inset Quotes crd
26580 (les inserts dans lesquels vous pouvez effectuer une saisie), mais n'est
26581 pas exact pour les inserts de
26582 \begin_inset Quotes cld
26586 \begin_inset Quotes crd
26589 (inserts associés à des boîtes de dialogue).
26595 Là encore, \SpecialChar LyX
26596 essaie de produire implicitement un résultat raisonnable, et
26597 il crée des règles CSS implicites.
26598 Mais tout peut être personnalisé.
26601 \begin_layout Standard
26602 Le résultat XHTML produit par \SpecialChar LyX
26603 pour un insert a la forme suivante:
26606 \begin_layout LyX-Code
26610 \begin_inset Quotes erd
26614 \begin_inset Quotes erd
26620 \begin_layout LyX-Code
26630 \begin_layout LyX-Code
26634 \begin_inset Quotes erd
26638 \begin_inset Quotes erd
26643 Contenu de l'insert.
26648 \begin_layout LyX-Code
26654 \begin_layout Standard
26655 Si l'insert permet de saisir plusieurs paragraphes — c'est-à-dire, si
26656 \begin_inset Flex Code
26659 \begin_layout Plain Layout
26665 est vrai — alors le contenu de l'insert sera exporté également en paragraphes
26666 formatés en fonction des styles utilisés pour ces paragraphes (standard,
26667 citation et similaire).
26668 La balise d'étiquetage est bien entendu omise si la paragraphe n'a pas
26669 d'étiquette et, pour le moment, est toujours
26670 \begin_inset Flex Code
26673 \begin_layout Plain Layout
26680 La balise interne est facultative et, implicitement, n'apparaît pas.
26683 \begin_layout Standard
26684 Les balises et attributs spécifiques émis pour chaque insert peuvent être
26685 contrôlés au moyen des directives de format suivantes:
26688 \begin_layout Description
26691 \begin_inset Flex Code
26694 \begin_layout Plain Layout
26705 \begin_inset Flex Code
26708 \begin_layout Plain Layout
26714 ] précise les informations d'attribut à émettre avec la balise principale.
26716 \begin_inset Flex Code
26719 \begin_layout Plain Layout
26720 \begin_inset Quotes cld
26723 class=`moninsert' onclick=`\SpecialChar ldots
26725 \begin_inset Quotes crd
26734 Implicitement, \SpecialChar LyX
26736 \begin_inset Flex Code
26739 \begin_layout Plain Layout
26740 \begin_inset Quotes cld
26744 \begin_inset Quotes crd
26753 \begin_inset Flex Code
26756 \begin_layout Plain Layout
26762 est le nom \SpecialChar LyX
26763 de l'insert en bas de casse et avec les caractères non alphanumériq
26764 ues remplacés par des caractères
26765 \begin_inset Quotes cld
26769 \begin_inset Quotes crd
26772 , par exemple: footnote.
26775 \begin_layout Description
26778 \begin_inset Flex Code
26781 \begin_layout Plain Layout
26792 \begin_inset Flex Code
26795 \begin_layout Plain Layout
26804 \begin_inset space \thinspace{}
26808 \begin_inset Flex Code
26811 \begin_layout Plain Layout
26817 ] indique s'il faut émettre l'information CSS implicite engendrée par \SpecialChar LyX
26819 cet insert, même si une information complémentaire est explicitement émise
26821 \begin_inset Flex Code
26824 \begin_layout Plain Layout
26831 Positionner cette directive à
26832 \begin_inset Flex Code
26835 \begin_layout Plain Layout
26841 vous permet de modifier ou de compléter la CSS créée, plutôt que de l'écraser
26844 \begin_inset Flex Code
26847 \begin_layout Plain Layout
26856 \begin_layout Description
26859 \begin_inset Flex Code
26862 \begin_layout Plain Layout
26873 \begin_inset Flex Code
26876 \begin_layout Plain Layout
26882 ] fixe l'attribut de la balise interne.
26884 \begin_inset Newline newline
26888 \begin_inset Flex Code
26891 \begin_layout Plain Layout
26892 \begin_inset Quotes cld
26895 class=`nominsert_inner'
26896 \begin_inset Quotes crd
26907 \begin_layout Description
26910 \begin_inset Flex Code
26913 \begin_layout Plain Layout
26924 \begin_inset Flex Code
26927 \begin_layout Plain Layout
26933 ] détermine la balise interne, et remplace
26934 \begin_inset Flex Code
26937 \begin_layout Plain Layout
26943 dans les exemples ci-dessus.
26944 Implicitement absente.
26947 \begin_layout Description
26950 \begin_inset Flex Code
26953 \begin_layout Plain Layout
26964 \begin_inset Flex Code
26967 \begin_layout Plain Layout
26974 \begin_inset space \thinspace{}
26978 \begin_inset Flex Code
26981 \begin_layout Plain Layout
26989 ] indique si cet insert représente un bloc autonome de texte (comme une
26990 note de bas de page) ou bien représente du contenu inclus dans le texte
26991 environnant (comme une branche).
26993 \begin_inset Flex Code
26996 \begin_layout Plain Layout
27005 \begin_layout Description
27008 \begin_inset Flex Code
27011 \begin_layout Plain Layout
27022 \begin_inset Flex Code
27025 \begin_layout Plain Layout
27031 ] définit une étiquette pour cet insert, pouvant inclure une référence à
27033 Par exemple, pour une note de bas de page, ce peut être
27034 \begin_inset Flex Code
27037 \begin_layout Plain Layout
27046 Cette directive est facultative, et n'a pas de valeur implicite.
27049 \begin_layout Description
27052 \begin_inset Flex Code
27055 \begin_layout Plain Layout
27065 définit l'information à émettre dans la section
27066 \begin_inset Flex Code
27069 \begin_layout Plain Layout
27075 quand ce style est utilisé.
27076 Ceci pourrait être utilisé par exemple pour inclure un bloc
27077 \begin_inset Flex Code
27080 \begin_layout Plain Layout
27086 définissant un gestionnaire
27087 \begin_inset Flex Code
27090 \begin_layout Plain Layout
27099 \begin_layout Description
27102 \begin_inset Flex Code
27105 \begin_layout Plain Layout
27115 définit l'information CSS à inclure quand ce style est utilisé.
27116 Noter que le contenu sera automatiquement enclos dans un bloc
27117 \begin_inset Flex Code
27120 \begin_layout Plain Layout
27126 créé par la directive, il n'est donc besoin d'inclure que la CSS elle-même.
27129 \begin_layout Description
27132 \begin_inset Flex Code
27135 \begin_layout Plain Layout
27146 \begin_inset Flex Code
27149 \begin_layout Plain Layout
27155 ] définit la balise utilisé pour l'étiquette principale, qui remplace
27156 \begin_inset Flex Code
27159 \begin_layout Plain Layout
27165 dans les exemples ci-dessus.
27166 La valeur implicite dépend du réglage de
27167 \begin_inset Flex Code
27170 \begin_layout Plain Layout
27177 \begin_inset Flex Code
27180 \begin_layout Plain Layout
27186 est vrai, la valeur implicite est
27187 \begin_inset Flex Code
27190 \begin_layout Plain Layout
27196 ; s'il est faux, la valeur implicite est
27197 \begin_inset Flex Code
27200 \begin_layout Plain Layout
27209 \begin_layout Subsection
27213 \begin_layout Standard
27214 Le résultat XHTML pour les flottants peut être contrôlé par les informations
27216 Le résultat a la forme suivante:
27219 \begin_layout LyX-Code
27223 \begin_inset Quotes erd
27227 \begin_inset Quotes erd
27233 \begin_layout LyX-Code
27236 Contenu du flottant.
27239 \begin_layout LyX-Code
27245 \begin_layout Standard
27246 La légende, si elle est présente, est un insert séparé et sera émis en tant
27248 Son apparence pourra être contrôlée par la directive InsetLayout pour les
27249 inserts de légende.
27252 \begin_layout Description
27255 \begin_inset Flex Code
27258 \begin_layout Plain Layout
27267 \begin_inset Flex Code
27270 \begin_layout Plain Layout
27278 précise les informations d'attribut à émettre avec la balise principale.
27280 \begin_inset Flex Code
27283 \begin_layout Plain Layout
27284 \begin_inset Quotes cld
27287 class=`monflottant' onclick=`\SpecialChar ldots
27289 \begin_inset Quotes crd
27298 Implicitement, \SpecialChar LyX
27300 \begin_inset Flex Code
27303 \begin_layout Plain Layout
27304 \begin_inset Quotes cld
27309 class=`float float-typefloat'
27312 \begin_inset Quotes crd
27321 \begin_inset Flex Code
27324 \begin_layout Plain Layout
27330 est le nom \SpecialChar LyX
27331 de l'insert (tel qu'il est déterminé par la déclaration de
27333 \begin_inset CommandInset ref
27335 reference "subsec:Flottants"
27339 ) en bas de casse et avec les caractères non alphanumériques remplacés par
27341 \begin_inset Quotes cld
27345 \begin_inset Quotes crd
27349 \begin_inset Flex Code
27352 \begin_layout Plain Layout
27361 \begin_layout Description
27364 \begin_inset Flex Code
27367 \begin_layout Plain Layout
27377 définit l'information CSS à inclure quand ce flottant est utilisé.
27382 Noter que le contenu sera automatiquement enclos dans un bloc
27383 \begin_inset Flex Code
27386 \begin_layout Plain Layout
27392 créé par la directive, il n'est donc besoin d'inclure que la CSS elle-même.
27395 \begin_layout Description
27398 \begin_inset Flex Code
27401 \begin_layout Plain Layout
27410 \begin_inset Flex Code
27413 \begin_layout Plain Layout
27421 définit la balise utilisé pour l'étiquette principale, qui remplace
27422 \begin_inset Flex Code
27425 \begin_layout Plain Layout
27431 dans les exemples ci-dessus.
27433 \begin_inset Flex Code
27436 \begin_layout Plain Layout
27442 , cette valeur devra rarement être modifiée.
27445 \begin_layout Subsection
27446 Mise en page de la bibliographie
27449 \begin_layout Standard
27450 La bibliographie peut être mise en forme via les blocs
27451 \begin_inset Flex Code
27454 \begin_layout Plain Layout
27462 \begin_inset space ~
27466 \begin_inset CommandInset ref
27468 reference "subsec:Description citation"
27475 \begin_layout Subsection
27476 CSS créés par \SpecialChar LyX
27480 \begin_layout Standard
27481 Nous avons mentionné plusieurs fois que \SpecialChar LyX
27482 créera des règles CSS implicites
27483 pour les paragraphes et les inserts, fondées sur les autres informations
27484 de format fournies.
27485 Ici, nous préciserons quelle information est utilisée par \SpecialChar LyX
27489 \begin_layout Standard
27490 Pour le moment, \SpecialChar LyX
27491 engendre tout seul des CSS seulement pour les informations
27492 de police, en utilisant les directives
27493 \begin_inset Flex Code
27496 \begin_layout Plain Layout
27503 \begin_inset Flex Code
27506 \begin_layout Plain Layout
27513 \begin_inset Flex Code
27516 \begin_layout Plain Layout
27523 \begin_inset Flex Code
27526 \begin_layout Plain Layout
27532 spécifiées dans la déclaration
27533 \begin_inset Flex Code
27536 \begin_layout Plain Layout
27543 \begin_inset space ~
27547 \begin_inset CommandInset ref
27549 reference "subsec:polices"
27553 .) La traduction est essentiellement directe et évidente, par exemple
27554 \begin_inset Flex Code
27557 \begin_layout Plain Layout
27558 \begin_inset Quotes cld
27562 \begin_inset Quotes crd
27571 \begin_inset Flex Code
27574 \begin_layout Plain Layout
27575 \begin_inset Quotes cld
27578 font-family: sans-serif;
27579 \begin_inset Quotes crd
27588 La correspondance entre les tailles en \SpecialChar LyX
27589 et les tailles en CSS est un peu
27590 moins évidente main néanmoins intuitive.
27592 \begin_inset Flex Code
27595 \begin_layout Plain Layout
27602 \begin_inset Flex URL
27605 \begin_layout Plain Layout
27615 \begin_layout Chapter
27616 Insérer un objet externe
27617 \begin_inset CommandInset label
27619 name "chap:Insérer-un-Objet"
27626 \begin_layout Standard
27629 \begin_inset Box Shadowbox
27639 height_special "totalheight"
27644 backgroundcolor "none"
27647 \begin_layout Plain Layout
27648 Avertissement: cette partie des la documentation n'a pas été mise à jour
27649 depuis un certain temps.
27650 Nous espérons qu'elle est toujours correcte, mais ce n'est pas garanti.
27658 \begin_layout Standard
27659 L'utilisation d'éléments créés par des logiciels extérieurs à \SpecialChar LyX
27661 en détail dans le manuel
27666 Cette partie du manuel couvre ce qui se passe derrière la scène pour permettre
27667 d'écrire un mécanisme d'inclusion pour un nouvel élément.
27670 \begin_layout Section
27671 Comment fonctionne-t-il ?
27674 \begin_layout Standard
27675 L'insertion d'objet externe repose sur le concept de
27681 \begin_layout Plain Layout
27682 NdT : Traduction de
27683 \begin_inset Quotes cld
27687 \begin_inset Quotes crd
27698 Un cadre définit comment \SpecialChar LyX
27699 doit s'interfacer avec un type d'objet donné.
27700 Tel qu'il est distribué, \SpecialChar LyX
27701 possède des cadres prédéfinis pour les figures
27702 XFig, pour les diagrammes Dia, pour différents formats d'images rastérisées,
27703 pour gnuplot, et d'autres.
27704 Vous pouvez en consulter la liste avec
27705 \begin_inset Flex Noun
27708 \begin_layout Plain Layout
27709 Insertion\SpecialChar menuseparator
27711 \begin_inset space ~
27720 En outre, il est possible de créer votre propre cadre pour supporter un
27721 type donné d'objet.
27722 Nous décrirons plus loin en détail ce qu'il faut faire, et nous espérons
27723 que vous nous enverrez tous les cadres que vous créerez pour que nous puissions
27724 les inclure dans de futures versions de \SpecialChar LyX
27728 \begin_layout Standard
27729 Un autre concept de base est qu'il faut faire la distinction entre le fichier
27730 d'origine qui sert de point de départ et le fichier transformé qui est
27731 inclus avec votre document exporté ou imprimé.
27732 Voyons par exemple une figure produite avec
27733 \begin_inset Flex Code
27736 \begin_layout Plain Layout
27743 L'application XFig elle-même travaille sur un fichier avec l'extension
27745 \begin_inset Flex Code
27748 \begin_layout Plain Layout
27755 Dans XFig, vous créez et modifiez votre figure.
27756 Quand c'est fini, vous enregistrez le fichier
27757 \begin_inset Flex Code
27760 \begin_layout Plain Layout
27767 Quand vous voulez inclure la figure dans votre document, vous invoquez
27769 \begin_inset Flex Code
27772 \begin_layout Plain Layout
27778 pour créer un fichier PostScript qui sera aisément inclus dans votre fichier
27781 Dans ce cas, le fichier
27782 \begin_inset Flex Code
27785 \begin_layout Plain Layout
27791 est le fichier d'origine, et le fichier PostScript est le fichier transformé.
27794 \begin_layout Standard
27795 Cette distinction est importante pour pouvoir mettre à jour l'objet pendant
27796 l'écriture de votre document.
27797 En outre, elle vous donne la flexibilité requise pour supporter des formats
27798 d'exportation différents.
27799 Par exemple, dans le cas de l'exportation en Ascii, ce n'est pas vraiment
27800 une super idée d'inclure la figure en PostScript brut.
27801 À la place, vous préférerez soit inclure une référence à la figure, soit
27802 essayer un convertisseur graphique vers Ascii pour rendre un résultat final
27803 approchant du graphique d'origine.
27804 L'insertion d'objet externe vous permet de le faire, car il est paramétré
27805 avec les différents formats d'exportation supportés par \SpecialChar LyX
27809 \begin_layout Standard
27810 En plus de supporter la génération de fichiers transformés différents selon
27811 le format d'exportation, l'insertion d'objet externe travaille en étroite
27812 collaboration avec les applications d'édition et de visualisation.
27813 Dans le cas d'une figure XFig, vous pouvez invoquer Xfig sur le fichier
27814 d'origine d'un simple clic depuis la fenêtre d'objet externe de \SpecialChar LyX
27816 visualiser le fichier transformé PostScript avec Ghostview d'un autre clic.
27817 Il n'y a plus à se bagarrer avec la ligne de commande ou avec des explorateurs
27818 de fichiers pour localiser et manipuler le fichier d'origine et le fichier
27820 De cette façon, vous pouvez enfin profiter à plein des nombreuses applications
27821 différentes qui servent à la production de documents, et serez finalement
27825 \begin_layout Section
27826 Le fichier de configuration d'un cadre externe
27829 \begin_layout Standard
27830 Il est assez facile de définir de nouveaux cadres externes dans \SpecialChar LyX
27832 Cependant, sachez que si vous le faites de façon négligente, vous introduirez
27837 une faille de sécurité facilement exploitable.
27838 Avant de commencer, lisez donc plus bas ce qui concerne la sécurité
27839 \begin_inset space ~
27843 \begin_inset CommandInset ref
27844 LatexCommand pageref
27845 reference "sec:La-question-de"
27852 \begin_layout Standard
27853 Ceci dit, nous vous encourageons à créer des cadres intéressants et à nous
27857 \begin_layout Standard
27858 Les cadres externes sont définis dans le fichier
27861 \begin_inset Flex Code
27864 \begin_layout Plain Layout
27872 files that are stored in the
27873 \begin_inset Flex Code
27876 \begin_layout Plain Layout
27879 LyXDir/lib/xtemplates/
27885 Each template is defined in a file of its own.
27894 \begin_layout Plain Layout
27895 NdT : Nous rappelons que
27896 \begin_inset Quotes cld
27900 \begin_inset Quotes crd
27903 est la traduction de
27904 \begin_inset Quotes cld
27908 \begin_inset Quotes crd
27911 dans ce contexte de l'objet externe.
27919 Vous pouvez mettre votre propre version dans
27922 \begin_inset Flex Code
27925 \begin_layout Plain Layout
27933 or copy existing templates to that directory in order to modify them.
27939 \begin_layout Standard
27940 Un fichier de configuration de cadre typique se présente comme ceci:
27943 \begin_layout LyX-Code
27949 \begin_layout LyX-Code
27952 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
27955 \begin_layout LyX-Code
27961 \begin_layout LyX-Code
27967 \begin_layout LyX-Code
27973 \begin_layout LyX-Code
27979 \begin_layout LyX-Code
27985 \begin_layout LyX-Code
27988 AutomaticProduction true
27991 \begin_layout LyX-Code
27997 \begin_layout LyX-Code
28003 \begin_layout LyX-Code
28009 \begin_layout LyX-Code
28012 TransformCommand Rotate RotationLatexCommand
28015 \begin_layout LyX-Code
28018 TransformCommand Resize ResizeLatexCommand
28021 \begin_layout LyX-Code
28024 Product "$$RotateFront$$ResizeFront
28027 \begin_layout LyX-Code
28034 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
28037 \begin_layout LyX-Code
28040 $$ResizeBack$$RotateBack"
28043 \begin_layout LyX-Code
28049 \begin_layout LyX-Code
28052 UpdateResult "$$AbsPath$$Basename.pstex_t"
28055 \begin_layout LyX-Code
28058 Requirement "graphicx"
28061 \begin_layout LyX-Code
28064 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28067 \begin_layout LyX-Code
28070 ReferencedFile latex "$$AbsPath$$Basename.eps"
28073 \begin_layout LyX-Code
28076 ReferencedFile dvi "$$AbsPath$$Basename.eps"
28079 \begin_layout LyX-Code
28085 \begin_layout LyX-Code
28091 \begin_layout LyX-Code
28094 TransformCommand Rotate RotationLatexCommand
28097 \begin_layout LyX-Code
28100 TransformCommand Resize ResizeLatexCommand
28103 \begin_layout LyX-Code
28106 Product "$$RotateFront$$ResizeFront
28109 \begin_layout LyX-Code
28116 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
28119 \begin_layout LyX-Code
28122 $$ResizeBack$$RotateBack"
28125 \begin_layout LyX-Code
28128 UpdateFormat pdftex
28131 \begin_layout LyX-Code
28134 UpdateResult "$$AbsPath$$Basename.pdftex_t"
28137 \begin_layout LyX-Code
28140 Requirement "graphicx"
28143 \begin_layout LyX-Code
28146 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
28149 \begin_layout LyX-Code
28152 ReferencedFile latex "$$AbsPath$$Basename.pdf"
28155 \begin_layout LyX-Code
28161 \begin_layout LyX-Code
28167 \begin_layout LyX-Code
28170 Product "$$Contents(
28172 "$$AbsPath$$Basename.asc
28177 \begin_layout LyX-Code
28180 UpdateFormat asciixfig
28183 \begin_layout LyX-Code
28186 UpdateResult "$$AbsPath$$Basename.asc"
28189 \begin_layout LyX-Code
28195 \begin_layout LyX-Code
28201 \begin_layout LyX-Code
28204 Product "<graphic fileref=
28206 "$$AbsOrRelPathMaster$$Basename.eps
28211 \begin_layout LyX-Code
28217 \begin_layout LyX-Code
28223 \begin_layout LyX-Code
28226 UpdateResult "$$AbsPath$$Basename.eps"
28229 \begin_layout LyX-Code
28232 ReferencedFile docbook "$$AbsPath$$Basename.eps"
28235 \begin_layout LyX-Code
28238 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
28241 \begin_layout LyX-Code
28247 \begin_layout LyX-Code
28250 Product "[XFig: $$FName]"
28253 \begin_layout LyX-Code
28259 \begin_layout LyX-Code
28265 \begin_layout Standard
28266 Comme vous pouvez le constater, le cadre est inséré entre
28267 \begin_inset Flex Code
28270 \begin_layout Plain Layout
28280 \begin_inset Flex Code
28283 \begin_layout Plain Layout
28292 Il contient un en-tête spécifiant quelques réglages généraux et, pour chaque
28293 format primaire de document reconnu, une section
28294 \begin_inset Flex Code
28297 \begin_layout Plain Layout
28307 \begin_inset Flex Code
28310 \begin_layout Plain Layout
28321 \begin_layout Subsection
28325 \begin_layout Description
28328 \begin_inset Flex Code
28331 \begin_layout Plain Layout
28334 AutomaticProduction
28335 \begin_inset space ~
28345 indique si le fichier représenté par le cadre doit être créé par \SpecialChar LyX
28347 Cette directive doit apparaître une et une seule fois.
28350 \begin_layout Description
28353 \begin_inset Flex Code
28356 \begin_layout Plain Layout
28360 \begin_inset space ~
28370 précise un patron global utilisé dans l'échange dans la spécification des
28371 fichiers pour filtrer les fichiers désignés.
28372 S'il y a plus d'un suffixe possible (e.g.
28374 \begin_inset Flex Code
28377 \begin_layout Plain Layout
28386 \begin_inset Flex Code
28389 \begin_layout Plain Layout
28397 ), utiliser une syntaxe comme
28398 \begin_inset Flex Code
28401 \begin_layout Plain Layout
28410 Cette directive doit apparaître une et une seule fois.
28413 \begin_layout Description
28416 \begin_inset Flex Code
28419 \begin_layout Plain Layout
28423 \begin_inset space ~
28433 fixe le texte apparaissant dans le bouton.
28434 Cette directive doit apparaître une et une seule fois.
28437 \begin_layout Description
28440 \begin_inset Flex Code
28443 \begin_layout Plain Layout
28447 \begin_inset space ~
28451 \begin_inset space ~
28461 décrit le texte d'aide utilisé dans la fenêtre de dialogue
28462 \begin_inset Quotes cld
28466 \begin_inset Quotes crd
28470 Fournir suffisamment d'informations pour que l'utilisateur comprenne ce
28471 que le cadre peut faire pour lui.
28472 Cette directive doit apparaître une et une seule fois.
28475 \begin_layout Description
28478 \begin_inset Flex Code
28481 \begin_layout Plain Layout
28485 \begin_inset space ~
28495 indique le format du fichier original.
28496 Ce doit être le nom d'un format reconnu par \SpecialChar LyX
28498 \begin_inset space ~
28502 \begin_inset CommandInset ref
28504 reference "sec:Formats"
28510 \begin_inset Quotes eld
28514 \begin_inset Flex Code
28517 \begin_layout Plain Layout
28526 \begin_inset Quotes erd
28529 si le cadre peut gérer des fichiers originaux dans plus d'un format.
28531 tentera d'analyser le fichier pour en déduire le format dans ce cas.
28532 Cette directive doit apparaître une et une seule fois.
28535 \begin_layout Description
28538 \begin_inset Flex Code
28541 \begin_layout Plain Layout
28545 \begin_inset space ~
28555 est un nom original pour le cadre.
28556 Il ne soit pas contenir de macros de substitution (voir ci-après).
28559 \begin_layout Description
28562 \begin_inset Flex Code
28565 \begin_layout Plain Layout
28569 \begin_inset space ~
28572 Rotate|Resize|Clip|Extra
28579 spécifie quelles transformations sont reconnues par ce cadre.
28580 Elle peut apparaître zéro ou plusieurs fois.
28581 Elle active les options correspondantes dans la fenêtre de dialogue.
28583 \begin_inset Flex Code
28586 \begin_layout Plain Layout
28594 doit avoir soit une directive
28595 \begin_inset Flex Code
28598 \begin_layout Plain Layout
28606 correspondante, soit une directive
28607 \begin_inset Flex Code
28610 \begin_layout Plain Layout
28619 \begin_inset Flex Code
28622 \begin_layout Plain Layout
28631 Sinon, la transformation ne sera pas reconnue par ce cadre.
28635 \begin_layout Subsection
28639 \begin_layout Description
28642 \begin_inset Flex Code
28645 \begin_layout Plain Layout
28649 \begin_inset space ~
28652 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
28659 décrit le format de document primaire relevant de cette définition de format.
28660 Tous les cadres n'ont pas de représentation raisonnable dans tous les formats
28661 de fichier documentaire.
28662 Définissez cependant une section
28663 \begin_inset Flex Code
28666 \begin_layout Plain Layout
28674 pour tous les formats, et utilisez un texte bidon lorsqu'il n'existe pas
28676 Ainsi vous verrez au minimum une référence à l'objet externe dans le document
28680 \begin_layout Description
28683 \begin_inset Flex Code
28686 \begin_layout Plain Layout
28690 \begin_inset space ~
28698 \begin_inset space ~
28712 définit une macro additionnelle
28713 \begin_inset Flex Code
28716 \begin_layout Plain Layout
28728 pour la substitution par
28729 \begin_inset Flex Code
28732 \begin_layout Plain Layout
28742 \begin_inset Flex Code
28745 \begin_layout Plain Layout
28757 peut elle-même contenir des macros de substitution.
28758 L'avantage par rapport à l'usage direct de
28759 \begin_inset Flex Code
28762 \begin_layout Plain Layout
28775 \begin_inset Flex Code
28778 \begin_layout Plain Layout
28786 est que la valeur substituée par
28787 \begin_inset Flex Code
28790 \begin_layout Plain Layout
28802 est nettoyée de sorte qu'elle est un argument facultatif valide dans le
28803 format documentaire.
28804 Cette directive doit apparaître une et une seule fois.
28807 \begin_layout Description
28810 \begin_inset Flex Code
28813 \begin_layout Plain Layout
28817 \begin_inset space ~
28827 spécifie le texte inséré dans le document exporté.
28828 C'est en fait la directive la plus importante et elle peut être assez compliqué
28830 Cette directive doit apparaître une et une seule fois.
28833 \begin_layout Description
28836 \begin_inset Flex Code
28839 \begin_layout Plain Layout
28843 \begin_inset space ~
28857 spécifie un élément de préambule qui sera inclus dans le préambule \SpecialChar LaTeX
28859 Il doit être défini par
28860 \begin_inset Flex Code
28863 \begin_layout Plain Layout
28873 \begin_inset Flex Code
28876 \begin_layout Plain Layout
28885 Cette directive doit apparaître une et une seule fois.
28888 \begin_layout Description
28891 \begin_inset Flex Code
28894 \begin_layout Plain Layout
28898 \begin_inset space ~
28902 \begin_inset space ~
28912 désigne les fichiers créés par la procédure de conversion et requis par
28913 un format d'exportation particulier.
28914 Si le nom d'un fichier est relatif, il est interprété relativement au document
28916 Cette directive peut apparaître zéro ou plusieurs fois.
28919 \begin_layout Description
28922 \begin_inset Flex Code
28925 \begin_layout Plain Layout
28929 \begin_inset space ~
28939 désigne le nom d'un paquetage \SpecialChar LaTeX
28941 Le paquetage est inclus via
28942 \begin_inset Flex Code
28945 \begin_layout Plain Layout
28955 dans le préambule \SpecialChar LaTeX
28957 Cette directive peut apparaître zéro ou plusieurs fois.
28960 \begin_layout Description
28963 \begin_inset Flex Code
28966 \begin_layout Plain Layout
28970 \begin_inset space ~
28974 \begin_inset space ~
28977 RotationLatexCommand
28984 spécifie que la commande \SpecialChar LaTeX
28985 native doit être utilisée pour effectuer les
28987 Cette directive peut apparaître une fois ou pas du tout.
28990 \begin_layout Description
28993 \begin_inset Flex Code
28996 \begin_layout Plain Layout
29000 \begin_inset space ~
29004 \begin_inset space ~
29014 spécifie que la commande \SpecialChar LaTeX
29015 native doit être utilisée pour effectuer les
29016 changements de taille.
29017 Cette directive peut apparaître une fois ou pas du tout.
29020 \begin_layout Description
29023 \begin_inset Flex Code
29026 \begin_layout Plain Layout
29030 \begin_inset space ~
29034 \begin_inset space ~
29037 RotationLatexOption
29044 spécifie que les rotations sont effectuées via un paramètre facultatif.
29045 Cette directive peut apparaître une fois ou pas du tout.
29051 \begin_layout Description
29054 \begin_inset Flex Code
29057 \begin_layout Plain Layout
29061 \begin_inset space ~
29065 \begin_inset space ~
29075 spécifie que les changements de taille sont effectuées via un paramètre
29077 Cette directive peut apparaître une fois ou pas du tout
29080 \begin_layout Description
29083 \begin_inset Flex Code
29086 \begin_layout Plain Layout
29090 \begin_inset space ~
29094 \begin_inset space ~
29104 spécifie que les recadrages sont effectuées via un paramètre facultatif.
29105 Cette directive peut apparaître une fois ou pas du tout
29110 \begin_layout Description
29113 \begin_inset Flex Code
29116 \begin_layout Plain Layout
29120 \begin_inset space ~
29124 \begin_inset space ~
29134 spécifie qu'un paramètre supplémentaire facultatif est utilisé.
29135 Cette directive peut apparaître une fois ou pas du tout
29140 \begin_layout Description
29143 \begin_inset Flex Code
29146 \begin_layout Plain Layout
29150 \begin_inset space ~
29160 spécifie le format de fichier du fichier converti.
29161 Ce doit être le nom d'un format reconnu par \SpecialChar LyX
29162 (voir la fenêtre de dialogue
29164 \begin_inset Flex Noun
29167 \begin_layout Plain Layout
29170 Outils\SpecialChar menuseparator
29171 Préférences\SpecialChar menuseparator
29173 \begin_inset space ~
29177 \begin_inset space ~
29180 fichiers\SpecialChar menuseparator
29182 \begin_inset space ~
29186 \begin_inset space ~
29195 Cette directive doit apparaître une et une seule fois.
29196 Si le format du fichier résultant est PDF, vous devez spécifier le format
29200 \begin_inset Flex Code
29203 \begin_layout Plain Layout
29213 , qui est le format PDF utilisé pour insérer des graphiques.
29214 Les autres formats PDF définis servent aux exportations du document.
29217 \begin_layout Description
29220 \begin_inset Flex Code
29223 \begin_layout Plain Layout
29227 \begin_inset space ~
29237 spécifie le nom du fichier converti.
29238 Le nom de fichier doit être absolu.
29239 Cette directive doit apparaître une et une seule fois.
29242 \begin_layout Subsection
29243 Définitions du préambule
29246 \begin_layout Standard
29247 La configuration du cadre externe peut contenir des définitions additionnelles
29248 de préambule incluses dans
29249 \begin_inset Flex Code
29252 \begin_layout Plain Layout
29262 \begin_inset Flex Code
29265 \begin_layout Plain Layout
29274 Elle peuvent être utilisées par les cadres dans la section
29275 \begin_inset Flex Code
29278 \begin_layout Plain Layout
29289 \begin_layout Section
29290 Le mécanisme de substitution
29293 \begin_layout Standard
29294 Quand la fenêtre d'objet externe invoque un programme externe, il le fait
29295 selon la commande définie dans le fichier de configuration des cadres.
29296 Ces commandes peuvent contenir diverses macros qui sont interprétées avant
29298 Les commandes sont toujours exécutées dans le répertoire du document.
29301 \begin_layout Standard
29302 Ainsi, quand un objet externe est affiché, un mécanisme de substitution
29303 génère son nom, et la plupart des autres directives reconnaissent la substituti
29304 on de manière similaire.
29307 \begin_layout Standard
29308 Les macros disponibles sont les suivantes :
29311 \begin_layout Description
29314 \begin_inset Flex Code
29317 \begin_layout Plain Layout
29320 $$AbsOrRelPathMaster
29327 est le est le chemin d'accès, absolu ou relatif au document maître \SpecialChar LyX
29331 \begin_layout Description
29334 \begin_inset Flex Code
29337 \begin_layout Plain Layout
29340 $$AbsOrRelPathParent
29347 est le est le chemin d'accès, absolu ou relatif au document \SpecialChar LyX
29351 \begin_layout Description
29354 \begin_inset Flex Code
29357 \begin_layout Plain Layout
29367 est le chemin d'accès absolu.
29370 \begin_layout Description
29373 \begin_inset Flex Code
29376 \begin_layout Plain Layout
29386 est le nom du fichier sans chemin d'accès et sans suffixe.
29389 \begin_layout Description
29392 \begin_inset Flex Code
29395 \begin_layout Plain Layout
29401 \begin_inset Quotes cld
29405 \begin_inset Quotes crd
29415 la macro dépliera le contenu du fichier de nom
29416 \begin_inset Flex Code
29419 \begin_layout Plain Layout
29428 \begin_layout Description
29431 \begin_inset Flex Code
29434 \begin_layout Plain Layout
29444 est le suffixe (point inclus).
29447 \begin_layout Description
29450 \begin_inset Flex Code
29453 \begin_layout Plain Layout
29464 \begin_inset Quotes cld
29468 \begin_inset Quotes crd
29471 si le fichier est en format JPEG, sinon sera la chaîne
29472 \begin_inset Quotes cld
29476 \begin_inset Quotes crd
29480 Ceci est utile pour éviter des conversions inutiles pour les formats de
29481 sortie admettant à la fois les types PNG et JPEG.
29482 Le modèle prédéfini
29483 \begin_inset Quotes cld
29487 \begin_inset Quotes crd
29490 utilise cette macro avec le moteur pdf\SpecialChar TeX
29494 \begin_layout Description
29497 \begin_inset Flex Code
29500 \begin_layout Plain Layout
29510 est le nom du fichier spécifié dans la fenêtre d'objet externe.
29511 Il est soit absolu, soit relatif au document \SpecialChar LyX
29515 \begin_layout Description
29518 \begin_inset Flex Code
29521 \begin_layout Plain Layout
29532 \begin_inset Quotes cld
29536 \begin_inset Quotes crd
29540 \begin_inset Flex Code
29543 \begin_layout Plain Layout
29551 (absolu ou relatif au document \SpecialChar LyX
29555 \begin_layout Description
29558 \begin_inset Flex Code
29561 \begin_layout Plain Layout
29571 est le chemin d'accès relatif au document maître \SpecialChar LyX
29575 \begin_layout Description
29578 \begin_inset Flex Code
29581 \begin_layout Plain Layout
29591 est le chemin d'accès relatif au document \SpecialChar LyX
29595 \begin_layout Description
29598 \begin_inset Flex Code
29601 \begin_layout Plain Layout
29611 désigne le chemin absolu du répertoire système.
29612 Typiquement utilisé pour pouvoir trouver les différents scripts auxiliaires
29613 fournis avec \SpecialChar LyX
29617 \begin_layout Description
29620 \begin_inset Flex Code
29623 \begin_layout Plain Layout
29633 est le nom et le chemin absolu d'un fichier temporaire qui sera automatiquement
29634 effacé quand le document sera fermé, ou l'objet externe effacé.
29637 \begin_layout Standard
29638 Toutes la macros de chemin contiennent un séparateur de répertoire final,
29639 vous pouvez donc construire par exemple le nom de fichier absolu avec
29640 \begin_inset Flex Code
29643 \begin_layout Plain Layout
29646 $$AbsPath$$Basename$$Extension
29654 \begin_layout Standard
29655 Les macros ci-dessus sont substituées dans toutes les directives sauf indiqué.
29657 \begin_inset Flex Code
29660 \begin_layout Plain Layout
29668 reconnaît également les substitutions suivantes si elles sont autorisées
29670 \begin_inset Flex Code
29673 \begin_layout Plain Layout
29682 \begin_inset Flex Code
29685 \begin_layout Plain Layout
29696 \begin_layout Description
29699 \begin_inset Flex Code
29702 \begin_layout Plain Layout
29712 partie initiale de la commande de changement de taille.
29715 \begin_layout Description
29718 \begin_inset Flex Code
29721 \begin_layout Plain Layout
29731 partie finale de la commande de changement de taille.
29734 \begin_layout Description
29737 \begin_inset Flex Code
29740 \begin_layout Plain Layout
29750 partie initiale de la commande de rotation.
29753 \begin_layout Description
29756 \begin_inset Flex Code
29759 \begin_layout Plain Layout
29769 partie finale de la commande de rotation.
29772 \begin_layout Standard
29773 La valeur de la chaîne de la directive
29774 \begin_inset Flex Code
29777 \begin_layout Plain Layout
29785 reconnaît également les substitutions suivantes si elles sont autorisées
29789 \begin_inset Flex Code
29792 \begin_layout Plain Layout
29801 \begin_inset Flex Code
29804 \begin_layout Plain Layout
29815 \begin_layout Description
29818 \begin_inset Flex Code
29821 \begin_layout Plain Layout
29831 option de recadrage.
29834 \begin_layout Description
29835 \begin_inset Flex Code
29838 \begin_layout Plain Layout
29846 option supplémentaire.
29849 \begin_layout Description
29850 \begin_inset Flex Code
29853 \begin_layout Plain Layout
29861 option de changement de taille.
29864 \begin_layout Description
29865 \begin_inset Flex Code
29868 \begin_layout Plain Layout
29876 option de rotation.
29879 \begin_layout Standard
29880 Vous pouvez vous demander pourquoi les macros de chemin d'accès sont aussi
29882 Il y a deux raisons principales:
29885 \begin_layout Enumerate
29886 les chemins d'accès relatifs et absolus doivent rester relatifs et absolus,
29888 Les utilisateurs peuvent avoir des raisons de préférer l'un ou l'autre.
29889 Les chemins relatifs sont utiles pour des documents portables sur différentes
29890 machines, par exemple.
29891 Les chemins absolus peuvent être requis par certains logiciels;
29894 \begin_layout Enumerate
29896 traite les chemins d'accès relatifs différemment de \SpecialChar LyX
29897 et d'autres logiciels
29898 dans des fichiers inclus encapsulés.
29899 Pour \SpecialChar LyX
29900 , par exemple, un chemin relatif est toujours relatif au document
29901 qui contient le nom de fichier.
29902 Pour \SpecialChar LaTeX
29903 , il est toujours relatif au document maître.
29904 Ces deux définitions sont identiques si vous n'avez qu'un seul document.,
29905 mais diffèrent si vous avez un document maître qui inclut des sous-documents.
29906 Ceci signifie que les chemins relatifs doivent être transformés pour être
29907 transmis à \SpecialChar LaTeX
29909 Heureusement \SpecialChar LyX
29910 fait ceci automatiquement si vous choisissez les macros de
29911 substitution correctes.
29914 \begin_layout Standard
29915 Donc, quelle macro faut-il choisir dans une nouvelle définition de cadre?
29916 La règle n'est pas difficile:
29919 \begin_layout Itemize
29921 \begin_inset Flex Code
29924 \begin_layout Plain Layout
29932 si un chemin absolu est requis;
29935 \begin_layout Itemize
29937 \begin_inset Flex Code
29940 \begin_layout Plain Layout
29943 $$AbsOrRelPathMaster
29948 si la chaîne substituée est du type entrée pour \SpecialChar LaTeX
29952 \begin_layout Itemize
29954 \begin_inset Flex Code
29957 \begin_layout Plain Layout
29960 $$AbsOrRelPathParent
29965 pour préserver le choix de l'utilisateur.
29968 \begin_layout Standard
29969 Des cas spéciaux existent pour lesquels cette règle n'est pas valable, et
29970 par exemple lorsque des chemins relatifs sont requis, mais elle fonctionne
29971 correctement d'habitude.
29972 Un exemple de cas tordu est la directive
29973 \begin_inset Flex Code
29976 \begin_layout Plain Layout
29979 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
29984 dans le cadre Xfig indiqué ci-dessus: il n'est pas possible d'utiliser
29985 le nom absolu parce que la copieur pour les fichiers
29986 \begin_inset Flex Code
29989 \begin_layout Plain Layout
29997 nécessite le nom relatif pour réécrire le contenu du fichier.
30000 \begin_layout Section
30001 La question de la sécurité
30002 \begin_inset CommandInset label
30004 name "sec:La-question-de"
30011 \begin_layout Standard
30012 L'insertion d'objet externe crée une interface avec un paquet de programmes
30013 externes et le fait de manière automatique, nous devons donc en examiner
30014 les conséquences en matière de sécurité.
30015 En particulier, comme vous avez la possibilité d'inclure vos propres noms
30016 de fichier ou de paramètres et qu'ils sont interprétés pour former une
30017 commande, il semble possible de créer un document malveillant qui exécute
30018 des commandes indésirables quand un utilisateur le visualise ou l'imprime.
30019 C'est quelque chose que nous voulons absolument éviter.
30022 \begin_layout Standard
30023 Cependant, comme les commandes du programme externe sont définies seulement
30024 dans le fichier de configuration des cadres, il n'y a pas de problème de
30025 sécurité si \SpecialChar LyX
30026 est configuré correctement avec seulement des cadres sûrs.
30027 Ceci parce que les programmes externes sont invoqués via l'appel système
30029 \begin_inset Flex Code
30032 \begin_layout Plain Layout
30038 et non via l'appel système
30039 \begin_inset Flex Code
30042 \begin_layout Plain Layout
30049 Il n'est donc pas possible d'exécuter des commandes arbitraires via le
30050 shell à partir du nom de fichier ou des paramètres.
30053 \begin_layout Standard
30054 Ceci implique aussi qu'il y a des restrictions dans les commandes définissables
30055 dans un cadre d'objet externe.
30056 En particulier, les pipes et les redirections ne sont pas disponibles.
30057 C'était obligatoire pour que \SpecialChar LyX
30059 Si vous voulez utiliser quelques-unes des fonctions du shell, vous devez
30060 écrire un script sûr pour le faire de manière contrôlée, puis définir ce
30061 script comme commande.
30065 \begin_layout Standard
30066 Il est possible de créer un cadre qui interagit directement avec le shell,
30067 mais comme cela permettrait à un utilisateur malveillant d'exécuter des
30068 commandes arbitraires en écrivant des noms de fichier ou des paramètres
30069 bien choisis, nous vous recommandons d'utiliser en général des scripts
30070 sûrs qui fonctionnent avec l'appel système
30071 \begin_inset Flex Code
30074 \begin_layout Plain Layout
30080 d'une manière contrôlée.
30081 Bien sûr, si vous êtes dans un environnement dans lequel vous avez confiance,
30082 il est tentant de ne pas se fouler et d'utiliser des scripts shell ordinaires.
30083 Si vous faites cela, sachez que vous allez
30087 créer dans votre système une faille de sécurité facile à exploiter.
30088 Il est évident que de tels cadres non sécurisés ne seront jamais inclus
30089 dans la distribution standard de \SpecialChar LyX
30090 , même si nous encourageons les gens à
30091 nous proposer de nouveaux cadres dans la tradition du logiciel libre.
30092 Mais \SpecialChar LyX
30093 tel que vous vous le procurez par les voies officielles de distribution
30094 ne contiendra jamais de cadres non sécurisés.
30097 \begin_layout Standard
30098 L'insertion d'objet externe est un outil très puissant, et vous devez faire
30099 attention à ne pas mettre en péril la sécurité avec cette puissance.
30100 Une légère erreur dans une seule ligne d'un script apparemment inoffensif
30101 peut ouvrir la voie à d'énormes problèmes.
30102 Si vous n'avez pas une compréhension claire de ce qui est en jeu, nous
30103 vous recommandons de consulter un professionnel de la sécurité, ou de contacter
30104 l'équipe de développement de \SpecialChar LyX
30105 si vous vous demandez si votre cadre est
30107 Faites le avant de l'utiliser dans un environnement que vous ne contrôlez
30111 \begin_layout Chapter
30113 Liste des fonctions utilisables dans les styles
30114 \begin_inset CommandInset label
30116 name "chap:List-of-functions"
30123 \begin_layout Standard
30125 \begin_inset Tabular
30126 <lyxtabular version="3" rows="11" columns="8">
30127 <features tabularvalignment="middle">
30128 <column alignment="left" valignment="top">
30129 <column alignment="left" valignment="top">
30130 <column alignment="left" valignment="top">
30131 <column alignment="left" valignment="top">
30132 <column alignment="left" valignment="top">
30133 <column alignment="left" valignment="top">
30134 <column alignment="left" valignment="top">
30135 <column alignment="left" valignment="top">
30137 <cell alignment="left" valignment="top" usebox="none">
30140 \begin_layout Plain Layout
30146 <cell alignment="left" valignment="top" usebox="none">
30149 \begin_layout Plain Layout
30155 <cell alignment="left" valignment="top" usebox="none">
30158 \begin_layout Plain Layout
30164 <cell alignment="left" valignment="top" usebox="none">
30167 \begin_layout Plain Layout
30173 <cell alignment="center" valignment="top" usebox="none">
30176 \begin_layout Plain Layout
30182 <cell alignment="center" valignment="top" usebox="none">
30185 \begin_layout Plain Layout
30191 <cell alignment="center" valignment="top" usebox="none">
30194 \begin_layout Plain Layout
30200 <cell alignment="center" valignment="top" usebox="none">
30203 \begin_layout Plain Layout
30211 <cell alignment="left" valignment="top" usebox="none">
30214 \begin_layout Plain Layout
30220 <cell alignment="left" valignment="top" usebox="none">
30223 \begin_layout Plain Layout
30229 <cell alignment="left" valignment="top" usebox="none">
30232 \begin_layout Plain Layout
30238 <cell alignment="left" valignment="top" usebox="none">
30241 \begin_layout Plain Layout
30247 <cell alignment="center" valignment="top" usebox="none">
30250 \begin_layout Plain Layout
30256 <cell alignment="center" valignment="top" usebox="none">
30259 \begin_layout Plain Layout
30265 <cell alignment="center" valignment="top" usebox="none">
30268 \begin_layout Plain Layout
30274 <cell alignment="center" valignment="top" usebox="none">
30277 \begin_layout Plain Layout
30285 <cell alignment="left" valignment="top" usebox="none">
30288 \begin_layout Plain Layout
30294 <cell alignment="left" valignment="top" usebox="none">
30297 \begin_layout Plain Layout
30303 <cell alignment="left" valignment="top" usebox="none">
30306 \begin_layout Plain Layout
30312 <cell alignment="left" valignment="top" usebox="none">
30315 \begin_layout Plain Layout
30321 <cell alignment="center" valignment="top" usebox="none">
30324 \begin_layout Plain Layout
30330 <cell alignment="center" valignment="top" usebox="none">
30333 \begin_layout Plain Layout
30339 <cell alignment="center" valignment="top" usebox="none">
30342 \begin_layout Plain Layout
30348 <cell alignment="center" valignment="top" usebox="none">
30351 \begin_layout Plain Layout
30359 <cell alignment="left" valignment="top" usebox="none">
30362 \begin_layout Plain Layout
30368 <cell alignment="left" valignment="top" usebox="none">
30371 \begin_layout Plain Layout
30377 <cell alignment="left" valignment="top" usebox="none">
30380 \begin_layout Plain Layout
30386 <cell alignment="left" valignment="top" usebox="none">
30389 \begin_layout Plain Layout
30395 <cell alignment="center" valignment="top" usebox="none">
30398 \begin_layout Plain Layout
30404 <cell alignment="center" valignment="top" usebox="none">
30407 \begin_layout Plain Layout
30413 <cell alignment="center" valignment="top" usebox="none">
30416 \begin_layout Plain Layout
30422 <cell alignment="center" valignment="top" usebox="none">
30425 \begin_layout Plain Layout
30433 <cell alignment="left" valignment="top" usebox="none">
30436 \begin_layout Plain Layout
30442 <cell alignment="left" valignment="top" usebox="none">
30445 \begin_layout Plain Layout
30451 <cell alignment="left" valignment="top" usebox="none">
30454 \begin_layout Plain Layout
30460 <cell alignment="left" valignment="top" usebox="none">
30463 \begin_layout Plain Layout
30469 <cell alignment="center" valignment="top" usebox="none">
30472 \begin_layout Plain Layout
30478 <cell alignment="center" valignment="top" usebox="none">
30481 \begin_layout Plain Layout
30487 <cell alignment="center" valignment="top" usebox="none">
30490 \begin_layout Plain Layout
30496 <cell alignment="center" valignment="top" usebox="none">
30499 \begin_layout Plain Layout
30507 <cell alignment="left" valignment="top" usebox="none">
30510 \begin_layout Plain Layout
30516 <cell alignment="left" valignment="top" usebox="none">
30519 \begin_layout Plain Layout
30525 <cell alignment="left" valignment="top" usebox="none">
30528 \begin_layout Plain Layout
30534 <cell alignment="left" valignment="top" usebox="none">
30537 \begin_layout Plain Layout
30543 <cell alignment="center" valignment="top" usebox="none">
30546 \begin_layout Plain Layout
30552 <cell alignment="center" valignment="top" usebox="none">
30555 \begin_layout Plain Layout
30561 <cell alignment="center" valignment="top" usebox="none">
30564 \begin_layout Plain Layout
30570 <cell alignment="center" valignment="top" usebox="none">
30573 \begin_layout Plain Layout
30581 <cell alignment="left" valignment="top" usebox="none">
30584 \begin_layout Plain Layout
30590 <cell alignment="left" valignment="top" usebox="none">
30593 \begin_layout Plain Layout
30599 <cell alignment="left" valignment="top" usebox="none">
30602 \begin_layout Plain Layout
30608 <cell alignment="left" valignment="top" usebox="none">
30611 \begin_layout Plain Layout
30617 <cell alignment="center" valignment="top" usebox="none">
30620 \begin_layout Plain Layout
30626 <cell alignment="center" valignment="top" usebox="none">
30629 \begin_layout Plain Layout
30635 <cell alignment="center" valignment="top" usebox="none">
30638 \begin_layout Plain Layout
30644 <cell alignment="center" valignment="top" usebox="none">
30647 \begin_layout Plain Layout
30655 <cell alignment="left" valignment="top" usebox="none">
30658 \begin_layout Plain Layout
30664 <cell alignment="left" valignment="top" usebox="none">
30667 \begin_layout Plain Layout
30673 <cell alignment="left" valignment="top" usebox="none">
30676 \begin_layout Plain Layout
30682 <cell alignment="left" valignment="top" usebox="none">
30685 \begin_layout Plain Layout
30691 <cell alignment="center" valignment="top" usebox="none">
30694 \begin_layout Plain Layout
30700 <cell alignment="center" valignment="top" usebox="none">
30703 \begin_layout Plain Layout
30709 <cell alignment="center" valignment="top" usebox="none">
30712 \begin_layout Plain Layout
30718 <cell alignment="center" valignment="top" usebox="none">
30721 \begin_layout Plain Layout
30729 <cell alignment="left" valignment="top" usebox="none">
30732 \begin_layout Plain Layout
30738 <cell alignment="left" valignment="top" usebox="none">
30741 \begin_layout Plain Layout
30747 <cell alignment="left" valignment="top" usebox="none">
30750 \begin_layout Plain Layout
30756 <cell alignment="left" valignment="top" usebox="none">
30759 \begin_layout Plain Layout
30765 <cell alignment="center" valignment="top" usebox="none">
30768 \begin_layout Plain Layout
30774 <cell alignment="center" valignment="top" usebox="none">
30777 \begin_layout Plain Layout
30783 <cell alignment="center" valignment="top" usebox="none">
30786 \begin_layout Plain Layout
30792 <cell alignment="center" valignment="top" usebox="none">
30795 \begin_layout Plain Layout
30803 <cell alignment="left" valignment="top" usebox="none">
30806 \begin_layout Plain Layout
30812 <cell alignment="left" valignment="top" usebox="none">
30815 \begin_layout Plain Layout
30821 <cell alignment="left" valignment="top" usebox="none">
30824 \begin_layout Plain Layout
30830 <cell alignment="left" valignment="top" usebox="none">
30833 \begin_layout Plain Layout
30839 <cell alignment="center" valignment="top" usebox="none">
30842 \begin_layout Plain Layout
30848 <cell alignment="center" valignment="top" usebox="none">
30851 \begin_layout Plain Layout
30857 <cell alignment="center" valignment="top" usebox="none">
30860 \begin_layout Plain Layout
30866 <cell alignment="center" valignment="top" usebox="none">
30869 \begin_layout Plain Layout
30877 <cell alignment="center" valignment="top" usebox="none">
30880 \begin_layout Plain Layout
30886 <cell alignment="center" valignment="top" usebox="none">
30889 \begin_layout Plain Layout
30895 <cell alignment="center" valignment="top" usebox="none">
30898 \begin_layout Plain Layout
30904 <cell alignment="center" valignment="top" usebox="none">
30907 \begin_layout Plain Layout
30913 <cell alignment="center" valignment="top" usebox="none">
30916 \begin_layout Plain Layout
30922 <cell alignment="center" valignment="top" usebox="none">
30925 \begin_layout Plain Layout
30931 <cell alignment="center" valignment="top" usebox="none">
30934 \begin_layout Plain Layout
30940 <cell alignment="center" valignment="top" usebox="none">
30943 \begin_layout Plain Layout
30957 \begin_layout Chapter
30958 Noms des couleurs disponibles utilisables dans les styles
30959 \begin_inset CommandInset label
30961 name "chap:Names-of-colors"
30968 \begin_layout Standard
30969 Les couleurs énumérées ci-après sont les couleurs standard et celles que
30970 vous pouvez régler dans les préférences \SpecialChar LyX
30974 \begin_layout Section
30980 \begin_layout Standard
30983 The following are no real colors, but rather act on color definitions:
30986 \begin_layout Description
30994 \begin_layout Description
31002 \begin_layout Description
31007 pas de couleur particulière – réinitialisation ou couleur implicite
31010 \begin_layout Section
31016 \begin_layout Standard
31019 These are fixed colors that cannot me customized:
31022 \begin_layout Description
31028 \begin_layout Description
31034 \begin_layout Description
31040 \begin_layout Description
31046 \begin_layout Description
31052 \begin_layout Description
31058 \begin_layout Description
31064 \begin_layout Description
31070 \begin_layout Description
31076 \begin_layout Description
31082 \begin_layout Description
31088 \begin_layout Description
31094 \begin_layout Description
31100 \begin_layout Description
31106 \begin_layout Description
31112 \begin_layout Description
31118 \begin_layout Description
31124 \begin_layout Description
31130 \begin_layout Description
31136 \begin_layout Section
31142 \begin_layout Standard
31145 These are the colors allocated to specific elements in
31149 Outils\SpecialChar menuseparator
31155 \begin_layout Description
31163 \begin_layout Description
31171 \begin_layout Description
31179 \begin_layout Description
31187 \begin_layout Description
31195 \begin_layout Description
31200 étiquette de branche
31203 \begin_layout Description
31208 fond de bouton d'insert
31211 \begin_layout Description
31216 bordure de bouton d'insert
31219 \begin_layout Description
31224 fond du bouton d'insert (pointé)
31227 \begin_layout Description
31232 barre de modification
31235 \begin_layout Description
31240 texte modifié auteur 1
31243 \begin_layout Description
31248 texte modifié auteur 2
31251 \begin_layout Description
31256 texte modifié auteur 3
31259 \begin_layout Description
31264 texte modifié auteur 4
31267 \begin_layout Description
31272 texte modifié auteur 5
31275 \begin_layout Description
31280 texte d'insert repliable
31283 \begin_layout Description
31288 cadre d'insert repliable
31291 \begin_layout Description
31299 \begin_layout Description
31304 fond d'insert de commande
31307 \begin_layout Description
31312 cadre d'insert de commande
31315 \begin_layout Description
31320 étiquette de commentaire
31323 \begin_layout Description
31328 fond de commentaire
31331 \begin_layout Description
31339 \begin_layout Description
31347 \begin_layout Description
31350 deletedtextmodifier
31352 modificateur de texte supprimé
31355 \begin_layout Description
31360 barre de profondeur
31363 \begin_layout Description
31368 marqueur de fin de ligne
31371 \begin_layout Description
31376 erreur \SpecialChar LaTeX
31380 \begin_layout Description
31385 étiquette de note de bas de page
31388 \begin_layout Description
31391 foreground foreground color
31394 \begin_layout Description
31402 \begin_layout Description
31407 fond d'insert grisé
31410 \begin_layout Description
31415 étiquette d'insert grisé
31418 \begin_layout Description
31423 texte d'insert grisé
31426 \begin_layout Description
31434 \begin_layout Description
31439 complétion en ligne
31442 \begin_layout Description
31450 \begin_layout Description
31458 \begin_layout Description
31466 \begin_layout Description
31471 texte \SpecialChar LaTeX
31475 \begin_layout Description
31483 \begin_layout Description
31488 étiquette de note en marge
31491 \begin_layout Description
31499 \begin_layout Description
31507 \begin_layout Description
31512 cadre mathématique (non pointé)
31515 \begin_layout Description
31520 cadre mathématique (pointé)
31523 \begin_layout Description
31531 \begin_layout Description
31536 fond de macro mathématique
31539 \begin_layout Description
31544 macro mathématique désactivée
31547 \begin_layout Description
31552 cadre de macro mathématique
31555 \begin_layout Description
31560 fond dynamique de macro mathématique
31563 \begin_layout Description
31568 étiquette de macro mathématique
31571 \begin_layout Description
31576 macro mathématique : nouveau paramètre
31579 \begin_layout Description
31584 macro mathématique : ancien paramètre
31587 \begin_layout Description
31595 \begin_layout Description
31598 nonunique_inlinecompletion
31600 complétion en ligne (choix multiples)
31603 \begin_layout Description
31611 \begin_layout Description
31619 \begin_layout Description
31624 saut de page / saut de ligne
31627 \begin_layout Description
31632 marqueur de paragraphe
31635 \begin_layout Description
31640 texte d'insert fantôme
31643 \begin_layout Description
31651 \begin_layout Description
31659 \begin_layout Description
31664 cadre d'expression régulière
31667 \begin_layout Description
31670 scroll color that indicates when a row can be scrolled
31673 \begin_layout Description
31681 \begin_layout Description
31689 \begin_layout Description
31697 \begin_layout Description
31705 \begin_layout Description
31713 \begin_layout Description
31718 ligne on/off de tableau
31721 \begin_layout Description
31729 \begin_layout Description