1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/fr/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that the User's Guide prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the User's Guide may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 \@ifpackageloaded{babel}{
28 % increase link area for cross-references and autoname them,
29 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
31 \renewcommand*{\equationautorefname}[1]{}%
32 \renewcommand{\sectionautorefname}{sec.\negthinspace}%
33 \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
34 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
38 \options liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
39 \use_default_options false
43 \maintain_unincluded_children false
45 \language_package default
48 \font_roman "lmodern" "default"
49 \font_sans "lmss" "default"
50 \font_typewriter "lmtt" "default"
51 \font_math "auto" "auto"
52 \font_default_family default
53 \use_non_tex_fonts false
56 \font_sf_scale 100 100
57 \font_tt_scale 100 100
59 \use_dash_ligatures false
61 \default_output_format pdf2
63 \bibtex_command default
64 \index_command default
68 \pdf_title "LyX Configuration Manual"
69 \pdf_author "LyX Team"
70 \pdf_subject "LyX-documentation Customization"
71 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarksnumbered true
74 \pdf_bookmarksopen true
75 \pdf_bookmarksopenlevel 1
80 \pdf_pdfusetitle false
81 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
84 \use_package amsmath 1
85 \use_package amssymb 1
88 \use_package mathdots 1
89 \use_package mathtools 1
91 \use_package stackrel 1
92 \use_package stmaryrd 1
93 \use_package undertilde 1
95 \cite_engine_type default
99 \paperorientation portrait
104 \notefontcolor #0000ff
116 \paragraph_separation indent
117 \paragraph_indentation default
119 \math_indentation default
120 \math_numbering_side default
125 \paperpagestyle headings
126 \tracking_changes true
127 \output_changes false
130 \html_be_strict false
131 \author -712698321 "Jürgen Spitzmüller"
137 Personnaliser \SpecialChar LyX
138 : fonctions pour l'utilisateur avancé
142 par l'équipe \SpecialChar LyX
147 \begin_layout Plain Layout
148 Merci d'envoyer vos commentaires et corrections à la liste de diffusion
149 de la documentation de \SpecialChar LyX
153 \begin_inset CommandInset href
155 target "lyx-docs@lists.lyx.org"
164 \begin_inset Quotes cld
168 \begin_inset Quotes crd
171 dans l'objet, et mettre en copie le responsable courant de ce fichier,
172 Richard Heck <rgheck@comcast.net>.
173 \begin_inset Newline newline
176 Traduction en français par : P.-H.
187 Meunier-Guttin-Cluzel
194 Merci d'envoyer vos commentaires et corrections sur la traduction à la
195 liste de diffusion de \SpecialChar LyX
198 <lyx-fr@lists.lyx.org>
206 \begin_inset Note Note
209 \begin_layout Plain Layout
210 Informations de révision :
213 \begin_layout Plain Layout
214 Traduction : remplacement de Éditer/Visionner/Insérer/Naviguer par Édition/Affic
215 hage/Insertion/Navigation, 31/10/2012 (JPC)
218 \begin_layout Plain Layout
219 Mise à jour OK pour la publication 2.0.0, Date: 21/01/2014 (JPC)
222 \begin_layout Plain Layout
223 Remplacement de « appendice » par « annexe », 31/12/2014 (JPC)
226 \begin_layout Plain Layout
227 Mise à jour pour 2.2, 19/01/2016 (JPC)
230 \begin_layout Plain Layout
231 Nouvel exemple pour le paragraphe 4.1.1.1 + quelques corrections mineures,
238 \begin_inset Newline newline
242 \begin_inset Newline newline
248 \begin_layout Standard
249 \begin_inset CommandInset toc
250 LatexCommand tableofcontents
257 \begin_layout Chapter
261 \begin_layout Standard
262 Ce manuel couvre les fonctions de personnalisation de \SpecialChar LyX
264 Nous y abordons des sujets comme les raccourcis clavier, les options d'aperçu
265 à l'écran, les options d'impression, l'envoi de commandes à \SpecialChar LyX
268 , l'internationalisation, l'installation de nouvelles classes \SpecialChar LaTeX
270 formats \SpecialChar LyX
272 Nous n'espérons pas aborder tout ce que vous pouvez modifier – nos développeurs
273 ajoutent de nouvelles fonctions plus vite que nous n'en écrivons la documentati
274 on – mais nous allons expliquer les personnalisations les plus courantes
275 et au moins vous indiquer la bonne direction pour les plus obscures d'entre
279 \begin_layout Chapter
280 Les fichiers de configuration de \SpecialChar LyX
284 \begin_layout Standard
285 Ce chapitre devrait vous aider à trouver votre chemin parmi les fichiers
286 de configuration de \SpecialChar LyX
288 Avant d'entreprendre sa lecture, consultez
290 Aide\SpecialChar menuseparator
306 pour connaître le répertoire de bibliothèques et le répertoire utilisateur
309 C'est dans celui-ci que \SpecialChar LyX
310 place ses fichiers de configuration système; le
311 répertoire utilisateur est celui dans lequel vous pouvez mettre vos versions
312 modifiées Le premier sera appelé
313 \begin_inset Flex Code
316 \begin_layout Plain Layout
324 \begin_inset Flex Code
327 \begin_layout Plain Layout
333 dans la suite de ce document.
336 \begin_layout Section
337 Qu'est-ce qu'il y a dans
338 \begin_inset Flex Code
341 \begin_layout Plain Layout
351 \begin_layout Standard
352 \begin_inset Flex Code
355 \begin_layout Plain Layout
362 et ses sous-répertoires contiennent un certain nombre de fichiers qui peuvent
363 servir à personnaliser le comportement de \SpecialChar LyX
365 Vous pouvez modifier ces fichiers depuis \SpecialChar LyX
366 lui-même avec la fenêtre
368 Outils\SpecialChar menuseparator
372 La plupart des réglages personnels que vous voudrez apporter à \SpecialChar LyX
374 se faire par l'intermédiaire de cette fenêtre.
375 Il y a cependant bien d'autres aspects du fonctionnement de \SpecialChar LyX
377 on peut agir en modifiant les fichiers de
378 \begin_inset Flex Code
381 \begin_layout Plain Layout
389 Ils entrent dans différentes catégories, qui sont décrites dans les sous-sectio
393 \begin_layout Subsection
394 Les fichiers générés automatiquement
397 \begin_layout Standard
398 Ces fichiers sont générés au moment de la configuration de \SpecialChar LyX
400 Ils définissent différentes valeurs par défaut qui sont évaluées par l'inspecti
402 Comme ils peuvent être réécrits à tout moment, il n'est pas conseillé de
406 \begin_layout Labeling
407 \labelwidthstring 00.00.0000
408 \begin_inset Flex Code
411 \begin_layout Plain Layout
417 contient les valeurs implicites pour différentes commandes.
420 \begin_layout Labeling
421 \labelwidthstring 00.00.0000
422 \begin_inset Flex Code
425 \begin_layout Plain Layout
431 contient la liste des paquetages \SpecialChar LaTeX
435 ne se sert pas directement de ce fichier, mais les informations obtenues
436 sont disponibles en faisant
438 Aide\SpecialChar menuseparator
449 \begin_layout Labeling
450 \labelwidthstring 00.00.0000
451 \begin_inset Flex Code
454 \begin_layout Plain Layout
460 donne la liste des classes de texte présentes dans le répertoire
461 \begin_inset Flex Code
464 \begin_layout Plain Layout
470 , les classes de document \SpecialChar LaTeX
471 correspondantes et leur description.
475 \begin_layout Labeling
476 \labelwidthstring 00.00.0000
477 \begin_inset Flex Code
480 \begin_layout Plain Layout
486 donne la liste des modules figurant dans vos répertoires de format (
487 \begin_inset Flex Code
490 \begin_layout Plain Layout
501 \begin_layout Labeling
502 \labelwidthstring 00.00.0000
503 \begin_inset Flex Code
506 \begin_layout Plain Layout
512 donne la liste de différentes sortes de fichiers connexes à \SpecialChar LaTeX
517 \begin_layout Labeling
518 \labelwidthstring 00.00.0000
519 \begin_inset Flex Code
522 \begin_layout Plain Layout
523 doc/\SpecialChar LaTeX
529 est généré automatiquement pendant la configuration de \SpecialChar LyX
530 , à partir du fichier
532 \begin_inset Flex Code
535 \begin_layout Plain Layout
545 \begin_layout Subsection
549 \begin_layout Standard
550 Ces répertoires figurent à la fois dans
551 \begin_inset Flex Code
554 \begin_layout Plain Layout
561 \begin_inset Flex Code
564 \begin_layout Plain Layout
571 Si un fichier existe dans les deux répertoires, c'est celui de
572 \begin_inset Flex Code
575 \begin_layout Plain Layout
584 \begin_layout Labeling
585 \labelwidthstring 00.00.0000
586 \begin_inset Flex Code
589 \begin_layout Plain Layout
595 ce répertoire contient les fichiers de définition des raccourcis clavier,
597 \begin_inset Flex Code
600 \begin_layout Plain Layout
608 \begin_inset Quotes cld
612 \begin_inset Quotes crd
615 du fichier de raccourcis, appelée
616 \begin_inset Flex Code
619 \begin_layout Plain Layout
625 , celle-ci sera détectée et utilisée en premier.
628 \begin_layout Labeling
629 \labelwidthstring 00.00.0000
632 \begin_inset Flex Code
635 \begin_layout Plain Layout
643 contains files with the extension
644 \begin_inset Flex Code
647 \begin_layout Plain Layout
655 which define the diverse citation possibilities (natbib, biblatex etc.).
657 \begin_inset CommandInset ref
659 reference "subsec:Cite-Engine-Files"
669 \begin_layout Labeling
670 \labelwidthstring 00.00.0000
671 \begin_inset Flex Code
674 \begin_layout Plain Layout
680 contient quelques fichiers graphiques qui peuvent être inclus dans les
685 \begin_layout Labeling
686 \labelwidthstring 00.00.0000
687 \begin_inset Flex Code
690 \begin_layout Plain Layout
696 contient les fichiers de la documentation de \SpecialChar LyX
697 (dont celui que vous êtes
700 \begin_inset Flex Code
703 \begin_layout Plain Layout
710 est un cas à part, comme nous venons de le voir.
711 S'il existe des version traduites des fichiers d'aide, avec le préfixe
713 \begin_inset Flex Code
716 \begin_layout Plain Layout
722 , celles-ci seront utilisées d'abord (voir le
727 \begin_inset CommandInset ref
729 reference "chap:i18n"
737 \begin_layout Labeling
738 \labelwidthstring 00.00.0000
739 \begin_inset Flex Code
742 \begin_layout Plain Layout
748 contient les fichiers d'exemples qui illustrent la façon d'utiliser certaines
750 Vous pouvez y accéder en appuyant sur le bouton
755 \begin_inset Flex Noun
758 \begin_layout Plain Layout
759 Fichier\SpecialChar menuseparator
768 \begin_layout Labeling
769 \labelwidthstring 00.00.0000
770 \begin_inset Flex Code
773 \begin_layout Plain Layout
779 contient les fichiers d'images utilisés dans l'interface
784 Il contient également les icônes utilisées dans la barre d'outils et les
785 bannières affichées au démarrage de \SpecialChar LyX
789 \begin_layout Labeling
790 \labelwidthstring 00.00.0000
791 \begin_inset Flex Code
794 \begin_layout Plain Layout
800 contient les fichiers de réaffectation clavier.
802 \begin_inset CommandInset ref
804 reference "sec:clavier"
808 pour des informations détaillées.
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
817 \begin_layout Plain Layout
823 contient les classes de texte et les fichiers de modules décrits au
824 \begin_inset CommandInset ref
826 reference "chap:classe-texte"
833 \begin_layout Labeling
834 \labelwidthstring 00.00.0000
835 \begin_inset Flex Code
838 \begin_layout Plain Layout
844 contient les scripts Python
845 \begin_inset Flex Code
848 \begin_layout Plain Layout
854 permettant d'effectuer les conversions entre versions de \SpecialChar LyX
856 Ils peuvent être exécutés depuis la ligne de commande, si vous désirez
857 par exemple faire un traitement par lots.
860 \begin_layout Labeling
861 \labelwidthstring 00.00.0000
862 \begin_inset Flex Code
865 \begin_layout Plain Layout
871 contient quelques fichiers qui illustrent les possibilités offertes par
873 \begin_inset Flex Noun
876 \begin_layout Plain Layout
889 \begin_layout Labeling
890 \labelwidthstring 00.00.0000
891 \begin_inset Flex Code
894 \begin_layout Plain Layout
900 contient les fichiers modèles de \SpecialChar LyX
906 \begin_inset CommandInset ref
908 reference "sec:modeles"
915 \begin_layout Labeling
916 \labelwidthstring 00.00.0000
917 \begin_inset Flex Code
920 \begin_layout Plain Layout
926 contient des fichiers avec l'extension
927 \begin_inset Flex Code
930 \begin_layout Plain Layout
936 qui définissent l'interface utilisateur de \SpecialChar LyX
938 C'est-à-dire que ces fichiers définissent quels éléments apparaissent dans
939 les menus et quels éléments apparaissent dans la barre d'outils.
942 \begin_layout Labeling
943 \labelwidthstring 00.00.0000
946 \begin_inset Flex Code
949 \begin_layout Plain Layout
957 contains files with the extension
958 \begin_inset Flex Code
961 \begin_layout Plain Layout
969 which define the templates for the insertion of external material to a
972 \begin_inset CommandInset ref
974 reference "chap:Including-External-Material"
981 \begin_layout Subsection
982 Fichiers que vous n'avez pas à modifier
985 \begin_layout Standard
986 Ce sont des fichiers internes à \SpecialChar LyX
987 , et ils ne doivent pas être modifiés, sauf
988 par les développeurs.
992 \begin_layout Labeling
993 \labelwidthstring 00.00.0000
1000 ce fichier contient la liste des développeurs de \SpecialChar LyX
1002 Son contenu est affiché en sélectionnant
1003 \begin_inset Flex Noun
1006 \begin_layout Plain Layout
1007 Aide\SpecialChar menuseparator
1016 \begin_layout Labeling
1017 \labelwidthstring 00.00.0000
1024 est un script \SpecialChar LaTeX
1025 utilisé pendant le processus de configuration.
1026 Ne pas le lancer directement.
1030 \begin_layout Labeling
1031 \labelwidthstring 00.00.0000
1038 est le script qui permet de reconfigurer \SpecialChar LyX
1040 Il génère des fichiers de configuration dans le répertoire dans lequel
1044 \begin_layout Subsection
1045 Autres fichiers appelant un commentaire
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1054 contient des tables de conversion faisant correspondre les différents encodages
1055 de caractères avec Unicode.
1058 \begin_layout Labeling
1059 \labelwidthstring 00.00.0000
1064 contient la liste de toutes les langues actuellement supportées par \SpecialChar LyX
1068 \begin_layout Labeling
1069 \labelwidthstring 00.00.0000
1070 \begin_inset Flex Code
1073 \begin_layout Plain Layout
1079 contient des informations sur les différentes polices.
1082 \begin_layout Labeling
1083 \labelwidthstring 00.00.0000
1084 \begin_inset Flex Code
1087 \begin_layout Plain Layout
1093 contient les traductions pour les styles de paragraphe internationalisés
1095 \begin_inset space ~
1099 \begin_inset CommandInset ref
1101 reference "subsec:I18n"
1108 \begin_layout Labeling
1109 \labelwidthstring 00.00.0000
1110 \begin_inset Flex Code
1113 \begin_layout Plain Layout
1119 contient des informations sur les glyphes encodés en Unicode et la manière
1120 dont \SpecialChar LyX
1121 les traite via \SpecialChar LaTeX
1125 \begin_layout Section
1126 Votre répertoire personnel de configuration
1129 \begin_layout Standard
1130 Même si vous utilisez \SpecialChar LyX
1131 sans être le super-utilisateur, vous pouvez avoir
1132 envie de modifier la configuration de \SpecialChar LyX
1133 pour votre usage personnel.
1135 \begin_inset Flex Code
1138 \begin_layout Plain Layout
1144 contient les fichiers personnels de configuration.
1145 C'est le répertoire qui est décrit comme
1146 \begin_inset Quotes cld
1149 Répertoire utilisateur
1150 \begin_inset Quotes crd
1155 Aide\SpecialChar menuseparator
1157 \begin_inset space ~
1161 \begin_inset space ~
1165 \begin_inset space ~
1172 Il est traité comme un miroir du répertoire
1173 \begin_inset Flex Code
1176 \begin_layout Plain Layout
1183 , et chaque fichier qui se trouve dans
1187 remplace par conséquent le fichier correspondant de
1188 \begin_inset Flex Code
1191 \begin_layout Plain Layout
1199 Chaque fichier de configuration décrit dans les sections précédentes peut
1200 se trouver soit dans le répertoire de configuration système, ce qui jouera
1201 pour tous les utilisateurs, soit dans votre répertoire personnel, pour
1202 votre propre configuration.
1205 \begin_layout Standard
1206 Pour éclaircir la situation, voici quelques exemples:
1209 \begin_layout Itemize
1210 les réglages effectués dans la fenêtre
1212 Outils\SpecialChar menuseparator
1215 sont enregistrés dans un fichier
1216 \begin_inset Flex Code
1219 \begin_layout Plain Layout
1226 \begin_inset Flex Code
1229 \begin_layout Plain Layout
1238 \begin_layout Itemize
1239 quand vous reconfigurez \SpecialChar LyX
1242 Outils\SpecialChar menuseparator
1246 fait tourner le script
1247 \begin_inset Flex Code
1250 \begin_layout Plain Layout
1256 et les fichiers résultants sont placés dans votre répertoire personnel
1258 Ça signifie que les nouvelles classes de texte que vous avez pu ajouter
1260 \begin_inset Flex Code
1263 \begin_layout Plain Layout
1269 seront ajoutées à la liste des classes de la fenêtre
1271 Document\SpecialChar menuseparator
1278 \begin_layout Itemize
1279 Si vous récupérez sur le site ftp de \SpecialChar LyX
1280 des fichiers de documentation mis
1281 à jour et que vous n'êtes pas administrateur sur votre système, vous pouvez
1282 placer ces fichiers dans
1283 \begin_inset Flex Code
1286 \begin_layout Plain Layout
1292 et ils seront ouverts directement à partir du menu d'
1299 \begin_layout Section
1300 Utiliser \SpecialChar LyX
1301 avec plusieurs configurations
1304 \begin_layout Standard
1305 La liberté offerte pour le répertoire de configuration locale peut être
1306 insuffisante si vous avez besoin de plusieurs configurations différentes.
1307 Par exemple, vous pouvez vouloir utiliser des raccourcis clavier ou des
1308 réglages d'imprimante différents selon les circonstances
1312 \begin_layout Plain Layout
1313 NdT : ou encore vouloir écrire dans des langues différentes et adapter vos
1314 configurations en conséquence.
1320 Vous pouvez y arriver en ayant plusieurs répertoires de configuration.
1321 Vous spécifiez alors lequel utiliser au moment de lancer \SpecialChar LyX
1325 \begin_layout Standard
1326 Si vous lancez \SpecialChar LyX
1327 avec l'option de ligne de commande
1335 , le programme va lire la configuration qui se trouve dans ce répertoire,
1336 et non dans le répertoire par défaut (en lançant \SpecialChar LyX
1337 sans cette option vous
1338 pouvez déterminer le répertoire par défaut).
1339 Si ce répertoire n'existe pas, \SpecialChar LyX
1340 vous propose de le créer, exactement comme
1341 il le fait avec le répertoire implicite au premier lancement du programme.
1342 Vous pouvez modifier les options de configuration dans ce
1346 supplémentaire exactement comme vous le feriez pour le répertoire implicite.
1347 Ces répertoires sont complètement indépendants (mais lisez la suite).
1348 Notez que positionner la variable d'environnement
1352 a exactement le même effet.
1355 \begin_layout Standard
1356 Quand vous avez plusieurs configurations, vous devez faire plus attention:
1357 si vous voulez ajouter un nouveau format dans
1359 MonNouveauRép/layouts
1361 , pour qu'il soit disponible dans toutes vos configurations, vous devez
1362 l'ajouter dans chaque répertoire séparément.
1363 Vous pouvez contourner ceci avec l'astuce suivante: après que \SpecialChar LyX
1365 répertoire supplémentaire, la plupart des sous-répertoires (voir plus haut)
1367 Si vous voulez que la nouvelle configuration soit le reflet d'une déjà
1368 existante, remplacez le sous-répertoire vide par un lien symbolique au
1369 sous-répertoire correspondant dans la configuration existante.
1370 Faites toutefois attention avec le sous-répertoire
1374 , car il contient un fichier écrit par le script de configuration (accessible
1377 Outils\SpecialChar menuseparator
1380 ) qui est propre à chaque configuration.
1383 \begin_layout Chapter
1389 \begin_layout Standard
1390 Tous les options de la fenêtre
1394 sont expliquées dans l'annexe
1396 La fenêtre Préférences
1400 Guide de l'utilisateur
1403 Pour certaines options, vous trouverez ici plus de précisions.
1406 \begin_layout Section
1408 \begin_inset CommandInset label
1417 \begin_layout Standard
1418 La première étape consiste à définir vos formats de fichiers si ce n'est
1420 Pour ce faire, ouvrez
1421 \begin_inset Flex Noun
1424 \begin_layout Plain Layout
1425 Outils\SpecialChar menuseparator
1434 \begin_inset Flex Noun
1437 \begin_layout Plain Layout
1438 Gestion des fichiers\SpecialChar menuseparator
1446 , appuyez sur le bouton
1447 \begin_inset Flex Noun
1450 \begin_layout Plain Layout
1458 \begin_inset Flex Noun
1461 \begin_layout Plain Layout
1467 contient le nom utilisé pour identifier le format de manière interne.
1468 Vous devrez également saisir un suffixe de nom de fichier.
1469 Toutes ces informations sont obligatoires.
1471 \begin_inset Flex Noun
1474 \begin_layout Plain Layout
1480 permet de définir une séquence de touches du clavier pour un accès rapide
1481 aux menus (par exemple, appuyer sur
1482 \begin_inset Flex Noun
1485 \begin_layout Plain Layout
1492 \begin_inset Flex Noun
1495 \begin_layout Plain Layout
1496 Document\SpecialChar menuseparator
1497 Visionner (autres formats)\SpecialChar menuseparator
1506 \begin_layout Standard
1507 Un Format peut se voir associer une
1508 \begin_inset Flex Noun
1511 \begin_layout Plain Layout
1518 \begin_inset Flex Noun
1521 \begin_layout Plain Layout
1528 Par exemple, vous pouvez vouloir utiliser Ghostview pour afficher les fichier
1530 Vous pouvez saisir le nom de la commande permettant de lancer les programmes
1531 dans les champs correspondants.
1532 La visionneuse est lancée quand vous voulez voir un graphique dans \SpecialChar LyX
1535 \begin_inset Flex Noun
1538 \begin_layout Plain Layout
1539 Document\SpecialChar menuseparator
1546 L'éditeur est lancé par exemple quand vous faites un clic-droit sur un
1547 graphique et que vous choisissez
1548 \begin_inset Flex Noun
1551 \begin_layout Plain Layout
1552 Modifier le fichier via une application externe
1557 dans le menu contextuel qui apparaît.
1560 \begin_layout Standard
1562 \begin_inset Flex Noun
1565 \begin_layout Plain Layout
1571 d'un format est facultatif, mais s'il est précisé, il doit être unique
1572 pour l'ensemble des formats.
1573 Il est utilisé pour reconnaître les fichiers de ce format à partir de leur
1575 Pour certains formats de fichier importants, il n'y a pas de type MIME
1576 officiellement répertorié dans la base
1577 \begin_inset CommandInset href
1580 target "http://www.iana.org/assignments/media-types/"
1586 De ce fait \SpecialChar LyX
1587 utilise la liste plus étoffée spécifiée par
1588 \begin_inset CommandInset href
1590 name "freedesktop.org"
1591 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1599 \begin_layout Standard
1600 La case à cocher Format de document informe \SpecialChar LyX
1601 que le format est approprié
1602 pour une exportation du document.
1603 Si la case est cochée que qu'une procédure de conversion est définie (voir
1605 \begin_inset space ~
1609 \begin_inset CommandInset ref
1611 reference "sec:Convertisseurs"
1615 ), ce format apparaîtra dans le menu
1616 \begin_inset Flex Noun
1619 \begin_layout Plain Layout
1620 Fichier\SpecialChar menuseparator
1627 Le format apparaîtra également dans le menu
1631 si une visionneuse est définie pour lui.
1632 Les formats purement graphiques, comme png, ne doivent pas utiliser cette
1634 Les formats adaptés à la fois aux graphiques et aux documents, comme pdf,
1638 \begin_layout Standard
1640 \begin_inset Flex Noun
1643 \begin_layout Plain Layout
1644 Format graphique vectoriel
1649 informe \SpecialChar LyX
1650 qu'un format peut contenir des vecteurs graphiques.
1651 Cette information est utile pour déterminer le format cible des graphiques
1652 inclus lors de l'exportation via
1653 \begin_inset Flex Noun
1656 \begin_layout Plain Layout
1663 Les graphiques inclus dans le document peuvent nécessiter une conversion
1665 \begin_inset Flex Noun
1668 \begin_layout Plain Layout
1675 \begin_inset Flex Noun
1678 \begin_layout Plain Layout
1685 \begin_inset Flex Noun
1688 \begin_layout Plain Layout
1695 \begin_inset Flex Noun
1698 \begin_layout Plain Layout
1704 ne sait pas gérer d'autres formats graphiques.
1705 Si un graphique inclus n'est pas déjà dans un des ces trois formats, il
1707 \begin_inset Flex Noun
1710 \begin_layout Plain Layout
1716 si la case est cochée, et en
1717 \begin_inset Flex Noun
1720 \begin_layout Plain Layout
1729 \begin_layout Section
1733 \begin_layout Standard
1734 Du fait que toutes les conversions d'un format à une autre se font dans
1735 la répertoire temporaire de \SpecialChar LyX
1736 , il peut être nécessaire de modifier un fichier
1737 avant de le copier dan le répertoire temporaire pour que la conversion
1738 se fasse correctement
1742 \begin_layout Plain Layout
1743 Par exemple, le fichier peut référencer d'autres fichiers ― e.g.
1744 une image ― par un nom de fichier relatif, qui peut devenir incorrect lors
1745 de la copie du fichier dans le répertoire temporaire.
1751 Ceci est effectué par un Copieur: il copie un fichier vers (ou depuis)
1752 le répertoire temporaire et peut le modifier à la volée.
1755 \begin_layout Standard
1756 La définition des copieurs peut utiliser huit variables:
1759 \begin_layout Labeling
1760 \labelwidthstring 00.00.0000
1761 \begin_inset Flex Code
1764 \begin_layout Plain Layout
1770 le répertoire système de \SpecialChar LyX
1772 \begin_inset space \thinspace{}
1776 \begin_inset space \space{}
1780 \begin_inset Flex Noun
1783 \begin_layout Plain Layout
1792 \begin_layout Labeling
1793 \labelwidthstring 00.00.0000
1794 \begin_inset Flex Code
1797 \begin_layout Plain Layout
1803 le fichier en entrée
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Flex Code
1811 \begin_layout Plain Layout
1817 le fichier en sortie
1820 \begin_layout Labeling
1821 \labelwidthstring 00.00.0000
1822 \begin_inset Flex Code
1825 \begin_layout Plain Layout
1831 la racine du nom (sans le suffixe) dans le répertoire temporaire \SpecialChar LyX
1835 \begin_layout Labeling
1836 \labelwidthstring 00.00.0000
1837 \begin_inset Flex Code
1840 \begin_layout Plain Layout
1846 la chemin d'accès complet du répertoire \SpecialChar LyX
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Flex Code
1855 \begin_layout Plain Layout
1861 le chemin d'accès complet au ficher original \SpecialChar LyX
1862 en cours de traitement
1865 \begin_layout Labeling
1866 \labelwidthstring 00.00.0000
1867 \begin_inset Flex Code
1870 \begin_layout Plain Layout
1876 le nom du fichier \SpecialChar LyX
1877 (sans chemin d'accès)
1880 \begin_layout Labeling
1881 \labelwidthstring 00.00.0000
1882 \begin_inset Flex Code
1885 \begin_layout Plain Layout
1892 \begin_inset Quotes cld
1895 nom \SpecialChar LaTeX
1897 \begin_inset Quotes crd
1903 \begin_layout Standard
1904 Ce dernier doit être le nom du fichier tel qu'il serait spécifié dans la
1905 commande \SpecialChar LaTeX
1915 Il n'est pertinent que pour l'exportation des fichiers appropriés à une
1919 \begin_layout Standard
1920 Les copieurs peuvent être utilisés pour à peu près n'importe quelle opération
1922 Par exemple, supposons que vous vouliez que les fichiers pdf soient copiés
1923 dans un répertoire particulier,
1926 \begin_inset Flex Code
1929 \begin_layout Plain Layout
1940 Alors vous pouvez écrire un script comme celui-ci:
1943 \begin_layout Standard
1946 \begin_inset listings
1950 \begin_layout Plain Layout
1955 \begin_layout Plain Layout
1960 \begin_layout Plain Layout
1962 TOFILE=`basename $2`
1965 \begin_layout Plain Layout
1967 cp $FROMFILE /home/you/pdf/$TOFILE
1975 \begin_layout Standard
1976 Enregistrez-le dans votre répertoire \SpecialChar LyX
1980 \begin_inset Flex Code
1983 \begin_layout Plain Layout
1986 /home/you/.lyx/scripts/pdfcopier.sh
1993 ― et rendez le exécutable, si c'est nécessaire sur votre plate-forme.
1995 \begin_inset Flex Noun
1998 \begin_layout Plain Layout
1999 Outils\SpecialChar menuseparator
2006 \begin_inset Flex Noun
2009 \begin_layout Plain Layout
2010 Gestion des fichiers\SpecialChar menuseparator
2017 \begin_inset Flex Noun
2020 \begin_layout Plain Layout
2026 ― ou l'un des autres formats PDF ― et saisissez
2029 \begin_inset Flex Code
2032 \begin_layout Plain Layout
2035 pdfcopier.sh $$i $$o
2043 \begin_inset Flex Noun
2046 \begin_layout Plain Layout
2055 \begin_layout Standard
2056 Les copieurs sont utilisés par \SpecialChar LyX
2057 dans plusieurs de ses convertisseurs internes.
2058 Par exemple, si les programmes appropriés sont trouvés lors de la configuration
2060 installera automatiquement des copieurs pour les formats
2061 \begin_inset Flex Noun
2064 \begin_layout Plain Layout
2071 \begin_inset Flex Noun
2074 \begin_layout Plain Layout
2076 \begin_inset space ~
2085 Quand le documente est exporté vers ces formats, le copieur considère que
2086 non seulement le fichier HTML, mais aussi les fichiers auxiliaires (fichiers
2087 de style, images, etc.) sont également copiés.
2088 Tous ces fichiers sont recopiés dans un sous-répertoire du répertoire dans
2089 lequel se trouvait le document \SpecialChar LyX
2093 \begin_layout Section
2095 \begin_inset CommandInset label
2097 name "sec:Convertisseurs"
2104 \begin_layout Standard
2105 Vous pouvez définir vos propres Convertisseurs pour activer les conversions
2106 entre différents formats.
2107 Ceci est défini dans
2108 \begin_inset Flex Noun
2111 \begin_layout Plain Layout
2112 Outils\SpecialChar menuseparator
2113 Préférences\SpecialChar menuseparator
2114 Gestion des fichiers\SpecialChar menuseparator
2123 \begin_layout Standard
2124 Pour définir un nouveau convertisseur, sélectionner les formats appropriés
2125 dans les menus déroulants
2126 \begin_inset Flex Noun
2129 \begin_layout Plain Layout
2136 \begin_inset Flex Noun
2139 \begin_layout Plain Layout
2145 , saisir le nom de la commande nécessaire à la conversion et appuyer sur
2147 \begin_inset Flex Noun
2150 \begin_layout Plain Layout
2157 Plusieurs variables peuvent être utilisées pour préciser les arguments
2158 des commandes de conversion:
2161 \begin_layout Labeling
2162 \labelwidthstring 00.00.0000
2163 \begin_inset Flex Code
2166 \begin_layout Plain Layout
2172 le répertoire système de \SpecialChar LyX
2176 \begin_layout Labeling
2177 \labelwidthstring 00.00.0000
2178 \begin_inset Flex Code
2181 \begin_layout Plain Layout
2187 le fichier en entrée
2190 \begin_layout Labeling
2191 \labelwidthstring 00.00.0000
2192 \begin_inset Flex Code
2195 \begin_layout Plain Layout
2201 le fichier en sortie
2204 \begin_layout Labeling
2205 \labelwidthstring 00.00.0000
2206 \begin_inset Flex Code
2209 \begin_layout Plain Layout
2215 le nom de base du fichier en entrée (c'est-à-dire sans suffixe)
2218 \begin_layout Labeling
2219 \labelwidthstring 00.00.0000
2220 \begin_inset Flex Code
2223 \begin_layout Plain Layout
2229 le chemin du fichier d'entrée
2232 \begin_layout Labeling
2233 \labelwidthstring 00.00.0000
2234 \begin_inset Flex Code
2237 \begin_layout Plain Layout
2243 le chemin du fichier d'entrée original (ceci peut différer de
2244 \begin_inset Flex Noun
2247 \begin_layout Plain Layout
2253 lors de l'appel d'une séquence de convertisseurs)
2256 \begin_layout Labeling
2257 \labelwidthstring 00.00.0000
2258 \begin_inset Flex Code
2261 \begin_layout Plain Layout
2268 \begin_inset Flex Code
2271 \begin_layout Plain Layout
2277 désignant l'encodage du document
2280 \begin_layout Standard
2282 \begin_inset Flex Noun
2285 \begin_layout Plain Layout
2287 \begin_inset space ~
2295 , vous pouvez saisir les mots-clés suivants, séparés par des virgules:
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2303 \begin_layout Plain Layout
2309 ce convertisseur exécute \SpecialChar LaTeX
2310 ou une variante de \SpecialChar LaTeX
2311 , le fichier journal sera
2315 \begin_layout Labeling
2316 \labelwidthstring 00.00.0000
2317 \begin_inset Flex Code
2320 \begin_layout Plain Layout
2326 la conversion utilise le fichier
2327 \begin_inset Flex Noun
2330 \begin_layout Plain Layout
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Flex Code
2344 \begin_layout Plain Layout
2350 demande une fichier \SpecialChar LyX
2352 \begin_inset Quotes cld
2356 \begin_inset Quotes crd
2359 (facile), ce qui en pratique désigne un fichier similaire au résultat d'une
2360 exportation \SpecialChar LaTeX
2364 \begin_inset Flex Code
2367 \begin_layout Plain Layout
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2385 \begin_layout Plain Layout
2391 la sortie est au format XML
2394 \begin_layout Standard
2395 Les trois mots-clés suivants ne sont pas vraiment des mots-clés, ils prennent
2396 un argument de la forme
2397 \begin_inset Flex Noun
2400 \begin_layout Plain Layout
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Flex Code
2414 \begin_layout Plain Layout
2420 s'il est utilisé, les messages d'erreur standard du convertisseur seront
2421 redirigés vers un fichier
2422 \begin_inset Flex Code
2425 \begin_layout Plain Layout
2433 , et le script passé en valeur sera exécuté comme:
2434 \begin_inset Flex Code
2437 \begin_layout Plain Layout
2440 script < infile.out > infile.log
2446 L'argument peut contenir
2447 \begin_inset Flex Code
2450 \begin_layout Plain Layout
2459 \begin_layout Labeling
2460 \labelwidthstring 00.00.0000
2461 \begin_inset Flex Code
2464 \begin_layout Plain Layout
2470 précise le nom du répertoire dans lequel le convertisseur placera les fichiers
2471 engendrés par la conversion.
2473 ne créera pas ce répertoire, et ne copiera rien dedans, bien qu'il le
2474 copie dans la cible.
2475 La valeur peut utiliser
2476 \begin_inset Flex Code
2479 \begin_layout Plain Layout
2485 , qui sera remplacé par le nom sans suffixe des fichiers d'entrée et de
2486 sortie, respectivement, lors de la copie du répertoire.
2487 \begin_inset Newline newline
2490 Noter que l'utilisation simultanée de
2491 \begin_inset Flex Noun
2494 \begin_layout Plain Layout
2501 \begin_inset Flex Noun
2504 \begin_layout Plain Layout
2511 Ce dernier sera ignoré si le premier est employé;
2514 \begin_layout Labeling
2515 \labelwidthstring 00.00.0000
2516 \begin_inset Flex Code
2519 \begin_layout Plain Layout
2525 détermine le nom du fichier résultat et peut contenir
2526 \begin_inset Flex Code
2529 \begin_layout Plain Layout
2537 \begin_inset Flex Noun
2540 \begin_layout Plain Layout
2546 et est optionnel même dans ce cas; la valeur
2547 \begin_inset Quotes cld
2551 \begin_inset Quotes crd
2554 est implicite s'il n'est pas activé.
2557 \begin_layout Standard
2558 Aucun de ces trois derniers mots-clés n'est utilisé dans les convertisseurs
2559 installés par \SpecialChar LyX
2563 \begin_layout Standard
2564 Il n'est pas nécessaire de définir des convertisseurs pour tous les formats
2565 entre lesquels vous désirez effectuer des conversions.
2566 Par exemple, vous remarquerez qu'il n'y a pas de convertisseur
2567 \begin_inset Quotes cld
2572 \begin_inset Quotes crd
2575 , mais \SpecialChar LyX
2576 exportera bien vers PostScript.
2577 Ceci se fait parce que \SpecialChar LyX
2578 crée d'abord un fichier \SpecialChar LaTeX
2579 (pas besoin de convertisseur
2580 pour cela) qui est ensuite converti vers DVI en utilisant le convertisseur
2582 \begin_inset Quotes cld
2587 \begin_inset Quotes crd
2590 , pour terminer par la conversion
2591 \begin_inset Quotes cld
2595 \begin_inset Quotes crd
2600 trouve ainsi les séquences de convertisseurs automatiquement, et trouvera
2601 toujours le séquence la plus courte.
2602 Vous pouvez cependant définir plusieurs méthodes de conversion entre formats
2604 Par exemple, la configuration \SpecialChar LyX
2605 standard propose cinq façons différentes
2606 de convertir \SpecialChar LaTeX
2610 \begin_layout Enumerate
2612 \begin_inset Flex Noun
2615 \begin_layout Plain Layout
2624 \begin_layout Enumerate
2625 via (DVI et) PostScript, en utilisant
2626 \begin_inset Flex Noun
2629 \begin_layout Plain Layout
2638 \begin_layout Enumerate
2639 via DVI, en utilisant
2640 \begin_inset Flex Noun
2643 \begin_layout Plain Layout
2652 \begin_layout Enumerate
2654 \begin_inset Flex Noun
2657 \begin_layout Plain Layout
2667 \begin_layout Enumerate
2669 \begin_inset Flex Noun
2672 \begin_layout Plain Layout
2682 \begin_layout Standard
2683 Pour définir de tels choix de séquences, vous devez définir plusieurs
2684 \begin_inset Quotes cld
2688 \begin_inset Quotes crd
2691 cible, comme décrit dans la
2692 \begin_inset CommandInset ref
2694 reference "sec:Formats"
2699 Par exemple, avec la configuration standard, les formats dénommés
2700 \begin_inset Flex Noun
2703 \begin_layout Plain Layout
2710 \begin_inset Flex Noun
2713 \begin_layout Plain Layout
2720 \begin_inset Flex Noun
2723 \begin_layout Plain Layout
2730 \begin_inset Flex Noun
2733 \begin_layout Plain Layout
2740 \begin_inset Flex Noun
2743 \begin_layout Plain Layout
2750 \begin_inset Flex Noun
2753 \begin_layout Plain Layout
2760 \begin_inset Flex Noun
2763 \begin_layout Plain Layout
2770 \begin_inset Flex Noun
2773 \begin_layout Plain Layout
2781 \begin_inset Flex Noun
2784 \begin_layout Plain Layout
2790 (pour Lua\SpecialChar TeX
2791 ) sont définis, qui correspondent tous au suffixe
2792 \begin_inset Flex Noun
2795 \begin_layout Plain Layout
2801 et auxquels sont associées les trois méthodes décrites ci-dessus.
2804 \begin_layout Chapter
2805 Internationaliser \SpecialChar LyX
2807 \begin_inset CommandInset label
2816 \begin_layout Standard
2817 Il est possible de traduire l'interface utilisateur de \SpecialChar LyX
2819 La dernière fois que nous avons vérifié, \SpecialChar LyX
2820 était disponible en 30 langues.
2821 La langue que vous avez choisie est appelée votre
2825 (pour plus de renseignements sur les réglages de localisation, voyez la
2826 documentation de votre système d'exploitation sur les locales.
2827 Pour Linux, la page de man de
2828 \begin_inset Flex Noun
2831 \begin_layout Plain Layout
2837 est un bon point de départ).
2840 \begin_layout Standard
2841 Notez que ces traductions fonctionnent, mais présentent quelques failles.
2842 En particulier, toutes les fenêtres ont été tracées en fonction du texte
2843 anglais, et quelques-unes des traductions sont trop grandes pour rentrer
2844 dans l'espace alloué.
2845 Ce n'est qu'un problème d'affichage sans conséquence.
2846 Vous verrez aussi que certaines traductions n'ont pas de raccourcis définis
2848 Parfois, c'est qu'il n'y a pas assez de lettres disponibles.
2849 Parfois c'est que le traducteur n'a tout simplement pas encore eu le temps
2851 Nos équipes de traduction, que vous pouvez souhaiter rejoindre
2855 \begin_layout Plain Layout
2856 Si vous parlez couramment une autre langue que l'anglais, rejoindre ces
2857 équipes est un des grands moyens de rendre service à la communauté des
2858 développeurs et utilisateurs de \SpecialChar LyX
2864 , essaieront de faire disparaître ces inconvénients dans les versions futures
2869 \begin_layout Section
2870 Traduire \SpecialChar LyX
2874 \begin_layout Subsection
2875 Traduire l'interface graphique (messages textuels)
2878 \begin_layout Standard
2880 utilise la bibliothèque GNU
2881 \begin_inset Flex Noun
2884 \begin_layout Plain Layout
2890 pour gérer l'internationalisation de l'interface.
2891 Pour que \SpecialChar LyX
2892 parle votre langue favorite dans tous les menus et fenêtres,
2893 vous avez besoin d'un fichier
2894 \begin_inset Flex Noun
2897 \begin_layout Plain Layout
2904 Quand celui-ci est disponible, vous devez générer à partir de là un fichier
2906 \begin_inset Flex Noun
2909 \begin_layout Plain Layout
2915 et installer ce dernier.
2916 Tout ce processus est expliqué dans la documentation de GNU
2917 \begin_inset Flex Noun
2920 \begin_layout Plain Layout
2927 Vous pouvez effectuer cette traduction pour votre propre besoin, mais si
2928 vous avez l'intention de la faire, vous pouvez aussi bien partager le résultat
2929 de votre travail avec la communauté \SpecialChar LyX
2931 Envoyez un message à la liste de messagerie des développeurs \SpecialChar LyX
2933 d'information sur la procédure.
2936 \begin_layout Standard
2937 En bref, voici un résumé de ce qu'il faut faire (
2943 est le code de la langue):
2946 \begin_layout Itemize
2947 télécharger le code source de \SpecialChar LyX
2949 \begin_inset CommandInset href
2951 name "page d'information sur le Web"
2952 target "https://www.lyx.org/HowToUseGIT"
2960 \begin_layout Itemize
2962 \begin_inset Flex Noun
2965 \begin_layout Plain Layout
2972 \begin_inset Flex Noun
2975 \begin_layout Plain Layout
2981 , le répertoire des fichiers
2982 \begin_inset Flex Noun
2985 \begin_layout Plain Layout
2996 \begin_inset Flex Noun
2999 \begin_layout Plain Layout
3014 \begin_inset Flex Noun
3017 \begin_layout Plain Layout
3023 n'existe pas, il peut être recréé avec la commande
3024 \begin_inset Flex Noun
3027 \begin_layout Plain Layout
3033 dans ce répertoire, ou bien vous pouvez utiliser le fichier
3034 \begin_inset Flex Noun
3037 \begin_layout Plain Layout
3043 d'une autre langue comme modèle).
3046 \begin_layout Itemize
3060 \begin_layout Plain Layout
3061 C'est un fichier texte: il peut donc être modifié par n'importe quel éditeur
3063 Mais il existe des programmes spécifiques pour gérer les modifications,
3065 \begin_inset Flex Noun
3068 \begin_layout Plain Layout
3074 (toutes plate-formes) ou
3075 \begin_inset Flex Noun
3078 \begin_layout Plain Layout
3085 Emacs est également doté d'un
3086 \begin_inset Quotes cld
3090 \begin_inset Quotes crd
3093 pour modifier les fichier
3094 \begin_inset Flex Noun
3097 \begin_layout Plain Layout
3103 , mais attention, les fichiers sont encodés en Unicode, voir
3104 \begin_inset Flex URL
3107 \begin_layout Plain Layout
3109 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3123 Pour certains menus, il y a aussi des touches de raccourci qui doivent
3125 Ces touches viennent après un
3128 \begin_inset Quotes cld
3132 \begin_inset Quotes crd
3137 , et doivent être adaptées au texte traduit.
3138 Vous devez aussi remplir les champs au début du nouveau fichier
3139 \begin_inset Flex Noun
3142 \begin_layout Plain Layout
3148 avec votre adresse e-mail, etc., pour que les gens sachent comment vous
3149 joindre pour proposer des suggestions, ou pour démolir votre travail.
3152 \begin_layout Standard
3153 Si vous voulez juste traduire pour vous-même, alors:
3156 \begin_layout Itemize
3165 \begin_inset Newline newline
3169 \begin_inset Flex Noun
3172 \begin_layout Plain Layout
3173 msgfmt -o xx.mo < xx.po
3181 \begin_layout Itemize
3183 \begin_inset Flex Noun
3186 \begin_layout Plain Layout
3192 dans votre répertoire de locales, dans le répertoire correspondant aux
3193 messages pour la langue
3200 \begin_inset Flex Noun
3203 \begin_layout Plain Layout
3210 \begin_inset Newline newline
3214 \begin_inset Flex Noun
3217 \begin_layout Plain Layout
3218 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3226 \begin_layout Standard
3227 Pour ajouter un nouveau fichier
3236 (ce qui serait mieux pour que d'autres puisent en profiter), il faut
3237 effectuer quelques changements dans \SpecialChar LyX
3238 : envoyez donc une courrier à la liste
3239 de messagerie des développeurs pour ce faire.
3242 \begin_layout Subsubsection
3246 \begin_layout Standard
3247 Il arrive quelquefois qu'un message anglophone doive être traduit de différentes
3248 façons dans le langage cible.
3249 Un exemple est le message
3250 \begin_inset Flex Code
3253 \begin_layout Plain Layout
3261 qui se traduit en français par
3262 \begin_inset Flex Noun
3265 \begin_layout Plain Layout
3274 \begin_inset Flex Noun
3277 \begin_layout Plain Layout
3283 , suivant le genre et l'initiale du mot suivant.
3285 \begin_inset Flex Code
3288 \begin_layout Plain Layout
3296 ne sait pas gérer de telles traductions ambiguës, et vous devez donc ajouter
3297 une information contextuelle au message: au lieu de
3298 \begin_inset Flex Code
3301 \begin_layout Plain Layout
3310 \begin_inset Flex Code
3313 \begin_layout Plain Layout
3322 \begin_inset Flex Code
3325 \begin_layout Plain Layout
3333 De ce fait, les deux occurrences de
3334 \begin_inset Flex Code
3337 \begin_layout Plain Layout
3345 sont différentes pour
3346 \begin_inset Flex Code
3349 \begin_layout Plain Layout
3357 et peuvent être traduites correctement pour
3358 \begin_inset Flex Noun
3361 \begin_layout Plain Layout
3366 \begin_inset space ~
3375 \begin_inset Flex Noun
3378 \begin_layout Plain Layout
3383 \begin_inset space ~
3394 \begin_layout Standard
3395 Bien entendu l'information contextuelle doit être supprimée de l'affichage
3396 lorsqu'aucune traduction n'est utilisée, c'est pourquoi il faut la mettre
3397 entre double crochets à la fin du message comme ci-dessus.
3398 Le mécanisme de traduction de \SpecialChar LyX
3399 assure que tout ce qui est entre double
3400 crochets à la fin des messages est supprimé à l'affichage du message.
3403 \begin_layout Subsection
3404 Traduire la documentation
3407 \begin_layout Standard
3408 La documentation en ligne (dans le menu
3412 ) peut (et doit !) être traduite.
3413 S'il existe une traduction de la documentation
3417 \begin_layout Plain Layout
3418 En mars 2008, au moins quelques documents avaient été traduit en14 langues,
3419 le manuel d'apprentissage étant disponible en quelques autres.
3424 , et si la locale est correctement réglée, \SpecialChar LyX
3425 affichera tout seul la version
3428 cherche les versions traduites sous le nom
3429 \begin_inset Flex Noun
3432 \begin_layout Plain Layout
3449 est le code pour la langue en cours d'utilisation.
3450 S'il n'y a pas de traduction disponible, c'est la version anglaise qui
3452 Notez que les versions traduites doivent avoir le même nom de fichier (ici
3454 \begin_inset Flex Noun
3457 \begin_layout Plain Layout
3464 Si vous vous sentez de traduire la documentation (ce qui est d'ailleurs
3465 un excellent moyen de corriger la documentation d'origine!), il y a un
3466 certain nombre de choses que vous devez faire tout de suite:
3469 \begin_layout Itemize
3470 faire un tour sur la page web de la
3471 \begin_inset CommandInset href
3473 name "traduction des documentations"
3474 target "https://www.lyx.org/WebFr.Translation"
3479 sur le site de \SpecialChar LyX
3481 De cette façon, vous pourrez voir quels documents ont déjà été traduits
3482 dans votre langue, s'il y en a.
3483 Vous y trouverez aussi qui s'occupe d'organiser l'effort de traduction
3485 Si personne ne s'en occupe, faites-nous connaître votre intérêt.
3488 \begin_layout Standard
3489 Une fois que vous vous y mettez pour de bon, voilà quelques conseils qui
3490 pourront vous éviter des ennuis:
3493 \begin_layout Itemize
3494 joignez-vous à l'équipe de documentation!
3500 Aide\SpecialChar menuseparator
3503 ) explique comment faire.
3504 C'est d'ailleurs le premier document à traduire;
3507 \begin_layout Itemize
3508 étudiez les conventions typographiques de la langue dans laquelle vous traduisez.
3509 La typographie est un art ancien et au cours des siècles, une grande variété
3510 de conventions ont vu le jour dans les différentes parties du globe.
3511 Apprenez aussi le vocabulaire spécifique des professionnels de la typographie
3513 Si vous inventez votre propre terminologie, vous allez induire les lecteurs
3517 Attention ! La typographie peut devenir une passion !
3522 \begin_layout Itemize
3523 faites une copie du document (dans les cas simples, sinon voyez la note
3525 \begin_inset space ~
3529 \begin_inset CommandInset ref
3531 reference "fn:NdT-:-Je"
3536 Ce sera votre fichier de travail.
3537 Vous pouvez l'utiliser comme fichier d'aide personnel en le mettant dans
3541 \begin_inset Flex Code
3544 \begin_layout Plain Layout
3555 \begin_inset Newline newline
3561 \begin_inset Note Greyedout
3564 \begin_layout Plain Layout
3569 pour un document complexe doté d'éléments externes (images, etc.), si vous
3570 voulez faire une copie dans un répertoire temporaire par exemple, faites
3571 attention aux liens vers les éléments externes qui peuvent être brisés
3572 quand le document est déplacé d'un endroit à un autre.
3573 La meilleure méthode est de télécharger l'arborescence \SpecialChar LyX
3576 \begin_inset Flex URL
3579 \begin_layout Plain Layout
3581 https://www.lyx.org/WebFr.HowToUseGIT
3586 ) et de modifier le ficher de documentation en place.
3594 \begin_layout Itemize
3595 de temps à autre le document original (de l'équipe \SpecialChar LyX
3598 \begin_inset CommandInset href
3600 name "l'interface d'affichage des source"
3601 target "https://www.lyx.org/trac/browser"
3606 pour voir ce qui a changé.
3607 De cette façon vous pouvez voir facilement les parties de votre document
3608 qui ont besoin d'être mises à jour
3612 \begin_layout Plain Layout
3613 NdT : Je conseille très vivement de partir des fichiers disponibles sur
3614 Trac, et de ne pas perdre de temps à traduire la version contenue dans
3615 votre distribution pour s'apercevoir trop tard que tout est périmé.
3616 J’ajoute que la meilleure solution est de récupérer l'image courante des
3617 sources de \SpecialChar LyX
3620 \begin_inset CommandInset href
3623 target "https://www.lyx.org/WebFr.HowToUseGIT"
3628 ) et de modifier directement le fichier concerné dans l'arborescence importée:
3629 de cette façon, les liens vers les images ne seront pas modifiés lors de
3630 la sauvegarde du fichier, et la version modifiée pourra être soumise sans
3631 modifications aux développeurs.
3632 \begin_inset CommandInset label
3646 \begin_layout Standard
3647 Si vous avez trouvé une erreur dans le document original, corrigez-la et
3648 dites-le au reste de l'équipe de documentation (que vous n'avez pas manqué
3649 de rejoindre, n'est-ce pas ?)
3652 \begin_layout Standard
3653 \begin_inset Branch Obsolete
3657 \begin_layout Section
3658 Support de Clavier International
3661 \begin_layout Standard
3664 [Note de l'Éditeur : La section qui suit a été écrite par
3669 Il faut la corriger pour qu'elle soit conforme à la nouvelle feuille de
3670 style de la Documentation et pour utiliser les nouvelles fonctions de la
3672 Le tout doit aussi être fusionné avec la section d'après.
3676 \begin_layout Subsection
3677 Définir ses propres réaffectations clavier : Format de fichier
3682 \begin_layout Standard
3683 Regardons d'un peu plus près un fichier de définition de clavier.
3684 C'est un fichier ASCII qui définit :
3687 \begin_layout Itemize
3688 des correspondances touche à touche ou touche à chaîne
3691 \begin_layout Itemize
3695 \begin_layout Itemize
3696 des exceptions des touches mortes
3699 \begin_layout Standard
3700 Pour définir une traduction touche à touche ou touche à chaîne, utilisez
3704 \begin_layout Quotation
3716 \begin_layout Standard
3721 est la touche à traduire et
3725 est la chaîne à insérer dans le document.
3726 Pour définir des touches mortes, faites :
3729 \begin_layout Quotation
3734 kmod touche touche_morte
3737 \begin_layout Standard
3742 est la touche du clavier et
3746 est le nom de la touche morte.
3747 Les touches mortes suivantes sont supportées (nom du raccourci entre parenthèse
3751 \begin_layout Quotation
3755 \begin_inset space \hfill{}
3761 \begin_layout Quotation
3763 \begin_inset space \hfill{}
3769 \begin_layout Quotation
3771 \begin_inset space \hfill{}
3777 \begin_layout Quotation
3779 \begin_inset space \hfill{}
3785 \begin_layout Quotation
3787 \begin_inset space \hfill{}
3793 \begin_layout Quotation
3795 \begin_inset space \hfill{}
3802 \begin_layout Plain Layout
3814 \begin_layout Quotation
3816 \begin_inset space \hfill{}
3822 \begin_layout Quotation
3824 \begin_inset space \hfill{}
3831 \begin_layout Plain Layout
3843 \begin_layout Quotation
3845 \begin_inset space \hfill{}
3851 \begin_layout Quotation
3853 \begin_inset space \hfill{}
3859 \begin_layout Quotation
3861 \begin_inset space \hfill{}
3868 \begin_layout Plain Layout
3880 \begin_layout Quotation
3882 \begin_inset space \hfill{}
3889 \begin_layout Plain Layout
3901 \begin_layout Quotation
3903 \begin_inset space \hfill{}
3909 \begin_layout Quotation
3910 hungarian umlaut (hug)
3911 \begin_inset space \hfill{}
3917 \begin_layout Quotation
3919 \begin_inset space \hfill{}
3925 \begin_layout Quotation
3927 \begin_inset space \hfill{}
3934 \begin_layout Plain Layout
3946 \begin_layout Standard
3947 Dans beaucoup de claviers internationaux il y a des exceptions dans les
3948 règles d'emploi des touches mortes, vous pouvez les définir ainsi :
3951 \begin_layout Quotation
3956 kxmod touche_morte touche chaîne_sortie
3959 \begin_layout Standard
3960 Par exemple, sur un clavier slovaque, si vous tapez caron-o, ça génère circonfle
3961 xe-o, il faut donc mettre :
3964 \begin_layout Quotation
3978 \begin_layout Standard
3979 pour le faire marcher correctement.
3980 Vous devez aussi définir comme des exceptions les touches mortes avec i
3981 et j, pour enlever le point avant d'insérer une marque d'accentuation.
3982 Je changerai ceci le moment venu, mais je n'en ai pas encore eu le temps.
3985 \begin_layout Standard
3986 Au fait, à propos des caractères : l'antislash est un caractère d'échappement,
3987 pour l'entrer, il faut taper un double antislash.
3992 ont aussi un sens différent.
3997 indique les commentaires, les guillemets entourent les commandes style
4000 Pour entrer un guillemet, il faut taper
4019 \begin_layout Standard
4020 Si vous faites un fichier de réaffectation clavier qui marche pour votre
4021 langue, merci de me l'envoyer, pour que je puisse l'inclure dans la prochaine
4022 distribution de réaffectations clavier.
4025 \begin_layout Standard
4026 Il y aura plus de mots-clés supportés à l'avenir dans les fichiers de réaffectat
4027 ion clavier, comme :
4030 \begin_layout Itemize
4035 kinclude nom_fichier
4038 \begin_inset space \hfill{}
4041 inclut un autre fichier (
4048 \begin_layout Itemize
4056 \begin_inset space \hfill{}
4059 définit un programme externe de traduction (
4066 \begin_layout Standard
4067 Il devrait aussi chercher dans
4071 les valeurs par défaut (par exemple, une option
4077 pour inclure le clavier par défaut).
4085 \begin_layout Section
4086 Les Claviers Internationaux
4087 \begin_inset CommandInset label
4096 \begin_layout Standard
4097 \begin_inset Note Note
4100 \begin_layout Plain Layout
4101 En révisant ce document en mars 2008, le relecteur anglophone n'a pas vérifié
4102 cette section par manque de compréhension de son contenu.
4103 Ce serait bien que quelqu'un s'en charge.
4104 Le traducteur francophone (SMGC) l'avait traduit tel quel, le relecteur
4105 francophone (JPC) l'a relu tel quel.
4113 \begin_layout Standard
4114 Les deux sections suivantes décrivent en détail la syntaxe des fichiers
4116 \begin_inset Flex Code
4119 \begin_layout Plain Layout
4126 \begin_inset Flex Code
4129 \begin_layout Plain Layout
4136 Ces sections devraient vous aider à concevoir votre propre réaffectation
4137 clavier si celles fournies ne vous donnent pas satisfaction.
4140 \begin_layout Subsection
4146 \begin_layout Standard
4148 \begin_inset Flex Noun
4151 \begin_layout Plain Layout
4157 fait correspondre des appuis clavier à des caractères ou à des chaînes
4159 Il définit une réaffectation clavier
4163 \begin_layout Plain Layout
4164 NdT : Keyboard MAPping.
4170 Cette section décrit les mots clés
4171 \begin_inset Flex Code
4174 \begin_layout Plain Layout
4181 \begin_inset Flex Code
4184 \begin_layout Plain Layout
4191 \begin_inset Flex Code
4194 \begin_layout Plain Layout
4201 \begin_inset Flex Code
4204 \begin_layout Plain Layout
4211 \begin_inset Flex Code
4214 \begin_layout Plain Layout
4223 \begin_layout Labeling
4224 \labelwidthstring 00.00.0000
4225 \begin_inset Flex Code
4228 \begin_layout Plain Layout
4234 fait correspondre un caractère à une chaîne
4237 \begin_layout LyX-Code
4246 \begin_layout Standard
4247 Ceci fait correspondre
4260 , le guillemet double (
4270 ) doivent être protégés par un antislash (
4279 \begin_layout Standard
4280 Voici un exemple de commande
4281 \begin_inset Flex Noun
4284 \begin_layout Plain Layout
4290 qui fait s'afficher le symbole
4291 \begin_inset Flex Noun
4294 \begin_layout Plain Layout
4300 quand on tape la touche
4301 \begin_inset Flex Noun
4304 \begin_layout Plain Layout
4313 \begin_layout LyX-Code
4321 \begin_layout Labeling
4322 \labelwidthstring 00.00.0000
4323 \begin_inset Flex Code
4326 \begin_layout Plain Layout
4332 définit un caractère accentué
4335 \begin_layout LyX-Code
4341 caractère accent autorisés
4344 \begin_layout Standard
4358 C'est le principe de la touche morte
4362 \begin_layout Plain Layout
4367 désigne une touche qui seule ne produit pas de caractère, mais qui produit
4368 le caractère accentué voulu quand elle est suivie par une autre touche
4370 Par exemple, pour écrire un
4373 \begin_inset Quotes cld
4377 \begin_inset Quotes crd
4382 sur un clavier français, il faut d'abord taper sur
4385 \begin_inset Quotes cld
4389 \begin_inset Quotes crd
4397 \begin_inset Quotes cld
4401 \begin_inset Quotes crd
4414 \begin_layout Standard
4419 puis une autre touche qui ne fait pas partie des caractères
4423 , vous obtiendrez un
4427 suivi par l'autre touche non autorisée.
4429 \begin_inset Flex Noun
4432 \begin_layout Plain Layout
4438 efface une touche morte, si vous tapez
4443 \begin_inset Flex Noun
4446 \begin_layout Plain Layout
4452 , le curseur ne recule pas mais annule l'effet que
4456 aurait pu avoir sur la touche suivante.
4459 \begin_layout Standard
4460 Dans l'exemple suivant, il est spécifié que le caractère ' doit être un
4461 accent aigu, autorisé sur les caractères a, e, i, o, u, A, E, I, O et U
4465 \begin_layout LyX-Code
4468 kmod ' acute aeiouAEIOU
4471 \begin_layout Labeling
4472 \labelwidthstring 00.00.0000
4473 \begin_inset Flex Code
4476 \begin_layout Plain Layout
4482 définit une exception au caractère accentué
4485 \begin_layout LyX-Code
4491 accent caractère résultat
4494 \begin_layout Standard
4495 Ceci définit une exception pour l'
4508 doit avoir été assigné auparavant par une déclaration
4509 \begin_inset Flex Code
4512 \begin_layout Plain Layout
4524 ne doit pas faire partie des caractères
4533 Quand vous tapez la séquence
4546 Si une telle déclaration n'existe pas dans le fichier
4547 \begin_inset Flex Code
4550 \begin_layout Plain Layout
4562 touche_accent caractère
4568 est le premier paramètre de la déclaration
4569 \begin_inset Flex Code
4572 \begin_layout Plain Layout
4583 \begin_layout Standard
4584 Avec la commande suivante, vous obtenez äi quand vous tapez acute-i ('i)
4588 \begin_layout LyX-Code
4602 \begin_layout Labeling
4603 \labelwidthstring 00.00.0000
4604 \begin_inset Flex Code
4607 \begin_layout Plain Layout
4613 Combine deux caractères accentués
4616 \begin_layout LyX-Code
4622 accent1 accent2 autorisés
4625 \begin_layout Standard
4626 Celui-ci est assez ésotérique.
4627 Il vous permet de combiner les effets de l'
4635 (dans cet ordre !) sur les caractères
4648 doivent avoir été définies par une commande
4661 \begin_layout Standard
4662 Voyez cet exemple extrait du fichier
4669 \begin_layout LyX-Code
4672 kmod ; acute aeioyvhAEIOYVH
4675 \begin_layout LyX-Code
4681 \begin_layout LyX-Code
4684 kcomb acute umlaut iyIY
4687 \begin_layout Standard
4688 Ça vous permet de taper
4692 et d'avoir l'effet de
4702 \begin_inset Flex Noun
4705 \begin_layout Plain Layout
4711 annule la dernière touche morte, donc si vous tapez
4712 \begin_inset Flex Code
4715 \begin_layout Plain Layout
4730 \begin_layout Subsection
4736 \begin_layout Standard
4737 Après que la réaffectation
4738 \begin_inset Flex Noun
4741 \begin_layout Plain Layout
4747 a été effectuée, un fichier
4748 \begin_inset Flex Code
4751 \begin_layout Plain Layout
4757 convertit les chaînes de symboles obtenues dans la police de caractères.
4758 Actuellement, la distribution de \SpecialChar LyX
4759 comprend au moins les fichiers
4760 \begin_inset Flex Code
4763 \begin_layout Plain Layout
4770 \begin_inset Flex Code
4773 \begin_layout Plain Layout
4782 \begin_layout Standard
4783 En général le fichier
4784 \begin_inset Flex Code
4787 \begin_layout Plain Layout
4793 est une suite de déclarations de la forme :
4796 \begin_layout LyX-Code
4800 numéro_du_caractère chaîne
4803 \begin_layout Standard
4804 Par exemple, pour affecter
4810 au caractère correspondant dans le jeu iso-8859-1 (233), il y a la déclaration
4814 \begin_layout LyX-Code
4822 \begin_layout Standard
4824 \begin_inset Flex Code
4827 \begin_layout Plain Layout
4836 \begin_inset Flex Code
4839 \begin_layout Plain Layout
4850 Notez que le même caractère peut servir pour plus d'une chaîne.
4852 \begin_inset Flex Code
4855 \begin_layout Plain Layout
4864 \begin_layout LyX-Code
4876 \begin_inset Newline newline
4892 \begin_layout Standard
4894 ne trouve pas de correspondance pour la chaîne produite par une touche
4895 ou une séquence avec des touches mortes, il va vérifier si elle ressemble
4896 à un caractère accentué et va essayer à l'écran de tracer un accent par
4897 dessus le caractère.
4900 \begin_layout Subsection
4904 \begin_layout Standard
4905 Il y a une autre façon d'ajouter le support pour des caractères internationaux
4906 par l'intermédiaire des touches mortes.
4907 Une touche morte marche en combinaison avec une lettre pour produire un
4909 Ici, nous allons expliquer comment créer une touche morte vraiment simple
4910 pour montrer comment elles marchent.
4913 \begin_layout Standard
4914 Supposez que vous ayez besoin du caractère circonflexe,
4918 \begin_layout Plain Layout
4919 NdT : déjà présent en français, mais nous allons conserver cet exemple.
4927 \begin_inset Quotes cld
4931 \begin_inset Quotes crd
4937 Vous devez faire correspondre la touche circonflexe à la commande \SpecialChar LyX
4939 \begin_inset Flex Code
4942 \begin_layout Plain Layout
4949 \begin_inset Flex Code
4952 \begin_layout Plain Layout
4959 Maintenant, à chaque fois que vous taperez la touche circonflexe suivie
4960 par une lettre, il y aura un accent circonflexe dessus.
4961 Par exemple, la séquence
4964 \begin_inset Quotes cld
4970 \begin_inset Flex Code
4973 \begin_layout Plain Layout
4982 \begin_inset Quotes crd
4990 \begin_inset Quotes cld
4996 \begin_inset Flex Code
4999 \begin_layout Plain Layout
5008 \begin_inset Quotes crd
5014 Cependant, si vous essayez de taper
5017 \begin_inset Quotes cld
5023 \begin_inset Flex Code
5026 \begin_layout Plain Layout
5035 \begin_inset Quotes crd
5041 va se plaindre avec un bip, car un
5044 \begin_inset Quotes cld
5050 \begin_inset Flex Code
5053 \begin_layout Plain Layout
5062 \begin_inset Quotes crd
5067 ne prend jamais d'accent circonflexe.
5069 \begin_inset Flex Noun
5072 \begin_layout Plain Layout
5078 après une touche morte fait s'afficher l'accent seul.
5079 Notez bien ce dernier point ! Si vous faites correspondre une touche à
5080 une touche morte, vous devez faire correspondre le caractère sur cette
5081 touche à une touche différente.
5082 Faire correspondre la virgule à une cédille est une mauvaise idée, car
5083 vous n'aurez plus que des cédilles à la place des virgules.
5086 \begin_layout Standard
5087 Une façon courante de créer des touches mortes est d'utiliser
5088 \begin_inset Flex Noun
5091 \begin_layout Plain Layout
5098 \begin_inset Flex Noun
5101 \begin_layout Plain Layout
5108 \begin_inset Flex Noun
5111 \begin_layout Plain Layout
5117 en combinaison avec un accent, comme
5120 \begin_inset Quotes cld
5124 \begin_inset Quotes crd
5132 \begin_inset Quotes cld
5136 \begin_inset Quotes crd
5142 Une autre méthode met en jeu
5143 \begin_inset Flex Code
5146 \begin_layout Plain Layout
5153 \begin_inset Flex Code
5156 \begin_layout Plain Layout
5165 \begin_inset space ~
5169 \begin_inset space ~
5174 ) pour configurer la touche spéciale
5175 \begin_inset Flex Code
5178 \begin_layout Plain Layout
5185 Elle agit un peu comme
5186 \begin_inset Flex Noun
5189 \begin_layout Plain Layout
5195 et permet de faire correspondre des touches à des caractères accentués.
5196 Vous pouvez aussi transformer des touches en touches mortes en les affectant
5197 à quelque chose comme
5198 \begin_inset Flex Code
5201 \begin_layout Plain Layout
5207 puis en affectant cette touche symbolique à la commande \SpecialChar LyX
5212 \begin_layout Plain Layout
5217 : C'est exactement ce que je fais dans mes fichiers
5229 \begin_inset space ~
5237 \begin_inset space ~
5242 ) est configurée comme
5246 et j'ai affecté des choses comme
5249 \begin_inset space ~
5257 \begin_inset space ~
5262 à un tas de touches symboliques
5265 \begin_inset Quotes cld
5269 \begin_inset Quotes crd
5275 C'est comme ça que j'obtiens tous mes caractères accentués.
5280 Vous pouvez transformer à peu près n'importe quelle touche en touche
5281 \begin_inset Flex Code
5284 \begin_layout Plain Layout
5291 \begin_inset Flex Code
5294 \begin_layout Plain Layout
5300 , une touche de fonction inutilisée, etc.
5301 Quant aux commandes \SpecialChar LyX
5302 qui produisent des accents, voyez à l'entrée
5303 \begin_inset Flex Code
5306 \begin_layout Plain Layout
5315 \begin_inset space ~
5319 \begin_inset space ~
5325 Là-bas il y a la liste complète.
5328 \begin_layout Subsection
5329 Enregistrer votre configuration linguistique
5332 \begin_layout Standard
5333 Vous pouvez éditer vos préférences dans la fenêtre
5335 Outils\SpecialChar menuseparator
5338 pour que \SpecialChar LyX
5339 démarre avec l'environnement linguistique que vous souhaitez,
5340 automatiquement configuré.
5343 \begin_layout LyX-Code
5347 \begin_layout Chapter
5348 Installer de nouvelles classes de document, formats et modèles
5349 \begin_inset CommandInset label
5351 name "chap:classe-texte"
5356 \begin_inset Argument 1
5359 \begin_layout Plain Layout
5360 Installer de nouvelles classes
5368 \begin_layout Standard
5369 Dans ce chapitre, nous décrivons comment créer et installer de nouveaux
5370 fichiers de format \SpecialChar LyX
5371 ou de modèle, et nous vous offrons une révision des
5372 procédures correctes d'installation de nouvelles classes de document \SpecialChar LaTeX
5376 \begin_layout Standard
5377 D'abord, quelques mots pour décrire une bonne approche de la relation entre
5379 et \SpecialChar LaTeX
5381 Ce qu'il faut bien comprendre, c'est qu'en certain sens, \SpecialChar LyX
5383 de \SpecialChar LaTeX
5385 De fait, du point de vue de \SpecialChar LyX
5386 , \SpecialChar LaTeX
5388 \begin_inset Quotes cld
5392 \begin_inset Quotes crd
5395 particulier parmi d'autres formats susceptibles de produire un résultat.
5396 D'autres formats sont DocBook, texte brut, et XHTML.
5398 est bien entendu un format particulièrement important, mais une très petite
5399 quantité d'information concernant \SpecialChar LaTeX
5400 est réellement contenue dans \SpecialChar LyX
5405 \begin_layout Plain Layout
5406 Certaines commandes sont suffisamment compliquées pour être codées
5407 \begin_inset Quotes cld
5411 \begin_inset Quotes crd
5414 dans les sources \SpecialChar LyX
5415 , mais les développeurs considèrent que c'est une mauvaise
5421 Cette information, même pour des classes standard comme
5422 \begin_inset Flex Code
5425 \begin_layout Plain Layout
5431 , est contenue dans les
5432 \begin_inset Quotes cld
5436 \begin_inset Quotes crd
5440 De même, \SpecialChar LyX
5441 ne connaît pas grand chose de DocBook ou XHTML, tout est décrit
5442 dans les fichiers de format.
5445 \begin_layout Standard
5446 Vous pouvez imaginer un fichier de format pour une classe de document donnée
5447 comme un traducteur entre les constructions \SpecialChar LyX
5448 — paragraphes et leur style
5449 associé, certains types d'inserts, etc.
5450 — et les constructions \SpecialChar LaTeX
5451 , DocBook ou XHTML correspondantes.
5452 Pratiquement tout ce que \SpecialChar LyX
5454 \begin_inset Flex Code
5457 \begin_layout Plain Layout
5463 , par exemple, est contenu dans le ficher
5464 \begin_inset Flex Code
5467 \begin_layout Plain Layout
5473 et dans les fichiers inclus par celui-ci.
5474 Pour cette raison, un étude approfondie de ces fichiers est une bonne idée
5475 si vous avez l'intention d'écrire un fichier de format.
5476 Un bon point de départ est le fichier
5477 \begin_inset Flex Code
5480 \begin_layout Plain Layout
5487 \begin_inset Flex Code
5490 \begin_layout Plain Layout
5497 \begin_inset Flex Code
5500 \begin_layout Plain Layout
5506 et de nombreux autres fichiers de format pour de classes de document \SpecialChar LaTeX
5508 C'est dans ce fichier que sont définies les sections et les constructions
5510 \begin_inset Flex Code
5513 \begin_layout Plain Layout
5519 décrit pour \SpecialChar LyX
5520 comment les paragraphes marqués en style Section, SousSection,
5522 peuvent être traduits en commandes ou balises \SpecialChar LaTeX
5524 Le fichier article.layout ne contient essentiellement que des inclusions
5526 \begin_inset Flex Code
5529 \begin_layout Plain Layout
5538 \begin_layout Standard
5539 Définir la correspondance \SpecialChar LyX
5541 n'est cependant pas la seule fonction des fichiers
5543 Leur autre but est de préciser comment les constructions \SpecialChar LyX
5546 Le fait que ces fichiers assurent ces deux fonctions est souvent source
5547 de confusion, parce qu'elles sont tout à fait séparées: expliquer à \SpecialChar LyX
5549 traduire un style de paragraphe en \SpecialChar LaTeX
5550 ne lui dit pas comment l'afficher;
5551 inversement, expliquer à \SpecialChar LyX
5552 comment afficher un paragraphe ne lui dit pas
5553 comment le traduire en \SpecialChar LaTeX
5554 (sans parler de lui dire comment \SpecialChar LaTeX
5556 Par conséquent, en général, quand vous devez définir une nouvelle construction
5558 , vous devez toujours effectuer deux tâches distinctes: (a) écrire comment
5559 la traduire en \SpecialChar LaTeX
5560 et (b) écrire comment l'afficher.
5563 \begin_layout Standard
5564 La même distinction est vraie pour les autre formats de sortie, bien que
5565 XHTML soit différent sous divers aspects, du fait que dans ce cas \SpecialChar LyX
5567 capable d'utiliser au moins partiellement l'information concernant l'affichage
5568 à l'écran pour créer l'information (sous forme de CSS) nécessaire à l'affichage
5570 Même dans ce cas, cependant, la distinction entre les mécanismes internes
5572 et la façon dont les objets sont restitués à l'extérieur reste valide,
5573 et le contrôle séparé des deux facettes reste possible.
5575 \begin_inset CommandInset ref
5577 reference "sec:Tags-for-XHTML"
5584 \begin_layout Section
5585 Installer de nouveaux fichiers \SpecialChar LaTeX
5589 \begin_layout Standard
5590 Certaines installations peuvent ne pas contenir le paquetage \SpecialChar LaTeX
5592 justement utiliser avec \SpecialChar LyX
5594 Par exemple, vous pouvez avoir besoin de Foil\SpecialChar TeX
5595 , un paquetage pour préparer
5596 des transparents pour rétroprojecteurs.
5597 Les distributions \SpecialChar LaTeX
5598 récentes comme \SpecialChar TeX
5599 Live (depuis 2008) ou MiK\SpecialChar TeX
5601 interface utilisateur pour installer de tels paquetages.
5602 Par exemple avec MiK\SpecialChar TeX
5603 , vous démarrez le programme
5604 \begin_inset Quotes cld
5608 \begin_inset space ~
5612 \begin_inset Quotes crd
5615 pour afficher une liste des paquetages disponibles.
5616 Pour installer l'un d'entre eux, il suffit d'effectuer un clic droit sur
5617 son nom ou sur le bouton correspondant de la barre d'outil.
5620 \begin_layout Standard
5621 Si votre distribution \SpecialChar LaTeX
5622 n'inclut pas un tel gestionnaire de paquetage, ou
5623 si le paquetage n'est pas disponible pour votre distribution, alors faites
5624 comme suit pour l'installer manuellement:
5627 \begin_layout Enumerate
5628 Récupérer le paquetage depuis
5629 \begin_inset CommandInset href
5632 target "http://www.ctan.org/"
5640 \begin_layout Enumerate
5641 Si le paquetage contient un fichier doté d'un suffixe
5642 \begin_inset Quotes cld
5646 \begin_inset Flex Code
5649 \begin_layout Plain Layout
5658 \begin_inset Quotes crd
5661 (c'est le cas pour Foil\SpecialChar TeX
5663 \begin_inset Quotes cld
5667 \begin_inset Quotes crd
5670 alors ouvrir une console, aller dans le répertoire de ce fichier et exécuter
5672 \begin_inset Flex Code
5675 \begin_layout Plain Layout
5685 \begin_inset Quotes cld
5689 \begin_inset Quotes crd
5692 le paquetage et vous disposez des fichiers nécessaires à l'installation.
5693 De nombreux paquetages ne sont pas reliés et vous pouvez sauter cette étape;
5696 \begin_layout Enumerate
5697 Vous devez alors décider si ce paquetage doit être disponible pour tous
5698 les utilisateurs ou seulement pour vous-même.
5702 \begin_layout Enumerate
5703 Avec les systèmes *nix (Linux, OSX, etc.), si vous souhaitez que le paquetage
5704 soit disponible pour tous les utilisateurs, installez-le dans l'arborescence
5707 \begin_inset Quotes cld
5711 \begin_inset Quotes crd
5714 , sinon installez-le dans votre arborescence \SpecialChar TeX
5716 \begin_inset Quotes cld
5720 \begin_inset Quotes crd
5724 La nécessité de créer ces arborescences, si elles n'existent pas déjà,
5725 dépend de votre système.
5726 Pour le savoir, examinez le fichier
5727 \begin_inset Flex Code
5730 \begin_layout Plain Layout
5742 \begin_layout Plain Layout
5743 Ce fichier est habituellement dans le répertoire
5747 , bien que vous puissiez exécuter la commande
5748 \begin_inset Flex Code
5751 \begin_layout Plain Layout
5764 L'emplacement de l'arborescence
5765 \begin_inset Quotes cld
5769 \begin_inset Quotes crd
5772 est définie par la variable
5773 \begin_inset Flex Code
5776 \begin_layout Plain Layout
5784 ; elle a usuellement pour valeur
5786 /usr/local/share/texmf/
5788 (installation système),
5790 /usr/local/share/texmf/
5792 (installation utilisateur) ou
5794 /usr/local/texlive/texmf-local
5796 (installation TexLive).
5797 L'emplacement de l'arborescence
5798 \begin_inset Quotes cld
5802 \begin_inset Quotes crd
5806 \begin_inset Flex Code
5809 \begin_layout Plain Layout
5822 \begin_inset Newline newline
5829 où XXXX est l'année de la distribution \SpecialChar TeX
5830 Live (si ces variables ne sont pas
5831 prédéfinies, vous devrez le faire vous-même).
5832 Vous aurez besoin d'avoir les droits d'administration système pour créer
5833 ou modifier l'arborescence
5834 \begin_inset Quotes cld
5838 \begin_inset Quotes crd
5841 , mais votre arborescence
5842 \begin_inset Quotes cld
5846 \begin_inset Quotes crd
5849 ne devrait pas nécessiter de tels droits.
5850 \begin_inset Newline newline
5853 D'une manière générale, il est recommandable d'installer dans le répertoire
5854 utilisateur parce que cette arborescence ne sera pas modifiée lors d'une
5855 mise à jour de votre système.
5856 Elle sera également sauvegardée avec tout le reste lors de le sauvegarde
5857 de votre répertoire utilisateur
5858 \begin_inset Quotes cld
5862 \begin_inset Quotes crd
5865 (que vous effectuez régulièrement, bien entendu).
5868 \begin_layout Enumerate
5869 Avec Windows, si vous souhaitez que le nouveau paquetage soit disponible
5870 pour tous les utilisateurs de votre système, allez dans le répertoire où
5872 est installé, puis dans le sous-répertoire
5880 (pour MiK\SpecialChar TeX
5881 , celui-ci sera implicitement
5898 \begin_layout Plain Layout
5899 Notez que ce chemin sera celui des installations anglophones.
5900 Pour une installation germanophone, ce serait
5901 \begin_inset Flex Code
5904 \begin_layout Plain Layout
5921 , de même pour d'autres langages.
5926 Créer dans ce répertoire un nouveau répertoire dénommé
5927 \begin_inset Flex Code
5930 \begin_layout Plain Layout
5938 et copiez tous les fichiers du paquetage dedans.
5939 Si le paquetage ne doit être accessible que par vous ou si vous n'avez
5940 pas les droits d'administration, faites de même, mais dans le répertoire
5943 avec MiK\SpecialChar TeX
5944 2.8 sur WinXP le répertoire
5945 \begin_inset Newline newline
5951 \begin_inset Flex Code
5954 \begin_layout Plain Layout
5959 Documents and Settings
5971 \begin_inset Newline newline
5975 \begin_inset Phantom HPhantom
5978 \begin_layout Plain Layout
5990 \begin_inset Flex Code
5993 \begin_layout Plain Layout
6014 \begin_inset Newline newline
6017 Avec Vista ce sera le répertoire
6018 \begin_inset Newline newline
6024 \begin_inset Flex Code
6027 \begin_layout Plain Layout
6056 \begin_layout Enumerate
6057 Vous devez alors informer \SpecialChar LaTeX
6058 de la présence de nouveaux fichiers.
6059 Ceci dépend de nouveau de la distribution \SpecialChar LaTeX
6064 \begin_layout Enumerate
6065 Avec \SpecialChar TeX
6066 Live, exécuter la commande
6067 \begin_inset Flex Code
6070 \begin_layout Plain Layout
6079 Si vous avez installé le paquetage pour tous les utilisateurs, vous aurez
6080 besoin des droits d'administration pour ce faire;
6083 \begin_layout Enumerate
6084 Avec MiK\SpecialChar TeX
6085 , si vous avez installé le paquetage pour tous les utilisateurs,
6086 démarrez le programme
6089 \begin_inset Quotes cld
6093 \begin_inset space ~
6099 \begin_inset Quotes crd
6102 et appuyez sur le bouton
6103 \begin_inset Quotes cld
6111 \begin_inset Quotes crd
6115 Sinon démarrez le programme
6116 \begin_inset Quotes cld
6124 \begin_inset Quotes crd
6131 \begin_layout Enumerate
6132 Enfin, vous devez informer \SpecialChar LyX
6133 de l'existence de nouveaux paquetages: dans
6137 Outils\SpecialChar menuseparator
6140 , puis redémarrez \SpecialChar LyX
6144 \begin_layout Standard
6145 Le paquetage est maintenant installé.
6146 Dans notre exemple, la classe de document
6147 \begin_inset Flex Code
6150 \begin_layout Plain Layout
6154 \begin_inset space ~
6162 est maintenant disponible dans
6164 Document\SpecialChar menuseparator
6165 Paramètres\SpecialChar menuseparator
6172 \begin_layout Standard
6173 Si vous souhaitez utiliser une classe de document qui ne figure pas dans
6176 Document\SpecialChar menuseparator
6177 Paramètres\SpecialChar menuseparator
6180 , vous devez créer une fichier de
6181 \begin_inset Quotes cld
6185 \begin_inset Quotes crd
6189 \begin_inset Quotes cld
6193 \begin_inset Quotes crd
6197 Ceci est le sujet du paragraphe suivant.
6200 \begin_layout Section
6201 Types de fichiers de formats
6204 \begin_layout Standard
6205 Cette section décrit les différentes variétés de fichiers contenant les
6206 informations de format: instructions pour l'affichage par \SpecialChar LyX
6207 et pour la traductio
6208 n en \SpecialChar LaTeX
6209 , DocBook ou XHTML, ou autre format de sortie désiré, des styles de
6210 paragraphe et de caractère variés.
6213 \begin_layout Standard
6214 Nous essayons ici de donner une description complète de la procédure à suivre;
6215 il y a cependant une telle variété de classes \SpecialChar LaTeX
6216 supportant des types de
6217 document très différents que nous ne pouvons pas espérer couvrir tous les
6218 cas possibles ni tous les problèmes que vous pourrez rencontrer.
6219 La liste de messagerie des utilisateurs \SpecialChar LyX
6220 est fréquentée par des personnes
6221 expérimentées dans l'écriture des formats, qui voudront partager ce qu'elles
6222 ont appris, n'hésitez pas à poser des questions sur cette liste.
6225 \begin_layout Standard
6226 Quand vous prévoyez d'écrire un nouveau format, il est extrêmement utile
6227 de regarder les formats distribués avec \SpecialChar LyX
6229 Si vous écrivez un fichier de format pour une classe de document \SpecialChar LaTeX
6231 intéresser d'autres personnes, ou si vous écrivez un module utile, vous
6232 pouvez envisager de l'insérer dans les
6233 \begin_inset CommandInset href
6235 name "pages dans le wiki LyX"
6236 target "https://wiki.lyx.org/Layouts/Layouts"
6241 , voire de le soumettre à la liste des développeurs, pour qu'il figure dans
6242 la distribution de \SpecialChar LyX
6247 \begin_layout Plain Layout
6248 Notez bien que du fait que \SpecialChar LyX
6249 est diffusé sous licence GPL (General Public
6250 License), toute contribution doit être également sous licence GPL.
6258 \begin_layout Subsection
6260 \begin_inset CommandInset label
6262 name "subsec:Modules_de_format"
6269 \begin_layout Standard
6270 Nous avons mentionné jusqu'ici les
6271 \begin_inset Quotes cld
6275 \begin_inset Quotes crd
6279 mais il existe différentes sortes de fichiers qui contiennent des informations
6281 Les fichiers de format au sens strict ont pour suffixe
6282 \begin_inset Flex Code
6285 \begin_layout Plain Layout
6291 et contiennent l'information nécessaire à \SpecialChar LyX
6292 pour les classes de document.
6293 Depuis \SpecialChar LyX
6294 1.6, cependant, les informations de format peuvent être incluses
6299 de format, qui ont pour suffixe
6300 \begin_inset Flex Code
6303 \begin_layout Plain Layout
6310 Les modules sont aux paquetages \SpecialChar LaTeX
6311 à peu près ce que sont les fichiers de
6312 format aux classes de document, et certains modules — tels que le module
6314 \begin_inset Quotes cld
6318 \begin_inset Quotes crd
6321 — offrent la fonctionnalité d'un seul paquetage.
6322 En un sens, le modules de format sont aussi similaires aux fichiers d'inclusion
6326 \begin_layout Plain Layout
6327 Ceux-ci peuvent avoir un suffixe quelconque, mais par convention il leur
6328 a été attribué le suffixe
6329 \begin_inset Flex Code
6332 \begin_layout Plain Layout
6343 — des fichiers comme
6344 \begin_inset Flex Code
6347 \begin_layout Plain Layout
6355 — dans le fait que les modules ne sont pas spécifiques du format d'un document
6356 donné, mais peuvent être utilisés avec de nombreux formats différents.
6357 Cependant l'utilisation d'un fichier d'inclusion (dans
6358 \begin_inset Flex Code
6361 \begin_layout Plain Layout
6367 par exemple) nécessite la modification du fichier de format
6368 \begin_inset Flex Code
6371 \begin_layout Plain Layout
6377 ; au lieu de cette modification, les modules sont sélectionnés dans la page
6379 \begin_inset Flex Noun
6382 \begin_layout Plain Layout
6383 Document\SpecialChar menuseparator
6392 \begin_layout Standard
6393 Rédiger des modules est la façon la plus simple de se familiariser avec
6394 l'écriture des formats, puisque ce peut être aussi simple que l'ajout d'un
6395 seul nouveau paragraphe ou insert.
6396 Mais en principe, les modules peuvent inclure tout ce que peuvent inclure
6400 \begin_layout Standard
6401 Après la création d'un nouveau module, vous devrez reconfigurer et redémarrer
6403 pour que le module apparaisse dans le menu.
6404 Cependant, les modifications que vous faites dans le module seront immédiatemen
6405 t actives, si vous ouvrez
6406 \begin_inset Flex Noun
6409 \begin_layout Plain Layout
6410 Document\SpecialChar menuseparator
6411 Paramètres\SpecialChar menuseparator
6417 , sélectionnez un module et appuyez sur
6418 \begin_inset Quotes cld
6422 \begin_inset Quotes crd
6428 Il vous est fortement recommandé de sauvegarder votre travail avant de procéder
6434 il vous est fortement recommandé de ne pas essayer de modifier des modules
6435 durant une travail productif sur un document
6438 Bien évidemment, les développeurs s'efforcent de conserver une bonne stabilité
6440 dans de telles situations, mais les erreurs de syntaxe et autres dans
6441 votre module pourraient déclencher des comportements bizarres.
6444 \begin_layout Subsubsection
6448 \begin_layout Standard
6449 Les modules sont à \SpecialChar LyX
6450 ce que les paquetages sont à \SpecialChar LaTeX
6452 Cependant, il arrive que vous souhaitiez disposer d'un insert ou d'un style
6453 de caractère pour un seul document, et écrire un module qui sera universel
6455 Vous avez alors besoin du
6456 \begin_inset Quotes cld
6460 \begin_inset Quotes crd
6467 \begin_layout Standard
6468 Vous le trouverez via
6470 Document\SpecialChar menuseparator
6471 Paramètres\SpecialChar menuseparator
6475 La grande zone textuelle vous permet de saisir ce que vous mettriez dans
6476 un fichier de format ou de module.
6477 Vous pouvez voir le format local comme un module qui n'appartient qu'au
6478 document en cours de saisie.
6479 De ce fait, vous devez saisir une balise
6480 \begin_inset Flex Code
6483 \begin_layout Plain Layout
6490 N'importe quel format est admissible, mais on utilise d'habitude le format
6491 de la version de \SpecialChar LyX
6492 utilisée (pour \SpecialChar LyX
6493 2.2, le format porte le numéro 60).
6496 \begin_layout Standard
6497 Lorsque vous avez saisi quelque chose dans la fenêtre de
6498 \begin_inset Flex Code
6501 \begin_layout Plain Layout
6509 \begin_inset Quotes cld
6517 \begin_inset Quotes crd
6520 qui se trouve en bas.
6521 Cliquer sur ce bouton entraînera une vérification de la validité du code
6522 que vous aurez saisi.
6524 vous donne cette information sans hélas l'accompagner d'un diagnostic
6525 d'erreurs explicite.
6526 Ces erreurs seront cependant affichées dans la fenêtre d'appel si vous
6527 avez activé \SpecialChar LyX
6529 Vous ne pourrez pas appliquer ou enregistrer votre format tant qu'il n'est
6533 \begin_layout Standard
6534 Les précautions indiquées à la fin de la section précédente s'appliquent
6536 Ne jouez pas avec un format local pendant un vrai travail, surtout si vous
6537 n'avez pas enregistré votre document.
6538 Ceci dit, utiliser un format local avec un document de test peut être très
6539 pratique pour essayer de nouvelles choses, voire pour aborder l’écriture
6543 \begin_layout Subsection
6544 Format pour un fichier
6545 \begin_inset Flex Code
6548 \begin_layout Plain Layout
6557 \begin_layout Standard
6558 Les deux situations que vous êtes probablement susceptibles de rencontrer
6559 quand vous voulez gérer une nouvelle classe de document \SpecialChar LaTeX
6561 \SpecialChar LaTeX2e
6563 \begin_inset Flex Code
6566 \begin_layout Plain Layout
6573 \begin_inset Flex Code
6576 \begin_layout Plain Layout
6583 Interfacer une nouveau fichier de style est assez facile, Interfacer une
6584 nouvelle classe est plus compliqué: nous allons décrire la première opération
6585 ici, et la seconde dans le paragraphe suivant.
6586 Des considérations analogues s'appliquent bien entendu si vous voulez interface
6587 r une nouvelle DTD DocBook.
6590 \begin_layout Standard
6591 La situation la plus simple se présente si votre nouvelle classe de document
6592 est fournie sous la forme d'un fichier de style à utiliser en combinaison
6593 avec une classe de document existante, déjà interfacée.
6594 Dans notre exemple, le fichier de style sera appelé
6595 \begin_inset Flex Code
6598 \begin_layout Plain Layout
6604 et il doit être utilisé avec la classe standard
6605 \begin_inset Flex Code
6608 \begin_layout Plain Layout
6617 \begin_layout Standard
6618 Commencez par copier le fichier de format de la classe de document en question
6619 dans votre répertoire local.
6622 \begin_layout LyX-Code
6623 cp report.layout ~/.lyx/layouts/ma_classe.layout
6626 \begin_layout Standard
6631 et changez la ligne :
6634 \begin_layout LyX-Code
6637 DeclareLaTeXClass{report}
6640 \begin_layout Standard
6644 \begin_layout LyX-Code
6647 DeclareLaTeXClass[report, ma_classe.sty]{report (ma_classe)}
6650 \begin_layout Standard
6654 \begin_layout LyX-Code
6656 \begin_inset Newline newline
6661 usepackage{ma_classe}
6662 \begin_inset Newline newline
6668 \begin_layout Standard
6669 près du début du fichier.
6672 \begin_layout Standard
6673 Démarrez \SpecialChar LyX
6675 \begin_inset Flex Noun
6678 \begin_layout Plain Layout
6679 Outils\SpecialChar menuseparator
6686 Redémarrez \SpecialChar LyX
6687 et essayez de créer un nouveau document.
6689 \begin_inset Quotes cld
6693 \begin_inset Flex Noun
6696 \begin_layout Plain Layout
6698 \begin_inset space ~
6707 \begin_inset Quotes crd
6710 parmi les classes de document dans la fenêtre
6711 \begin_inset Flex Noun
6714 \begin_layout Plain Layout
6715 Document\SpecialChar menuseparator
6716 Paramètres\SpecialChar menuseparator
6723 Il est probable que certaines des commandes de section devront être différentes
6724 de celles de la classe de base
6728 \begin_layout Plain Layout
6736 , vous pouvez donc jouer avec les réglages des différentes sections si vous
6738 Les informations de format pour le sectionnement se trouvent dans
6739 \begin_inset Flex Code
6742 \begin_layout Plain Layout
6748 , mais il n'est pas nécessaire de recopier ce fichier pour le modifier.
6749 Il vous suffit en effet d'ajouter vos modifications au fichier de format,
6751 \begin_inset Flex Code
6754 \begin_layout Plain Layout
6756 \begin_inset Flex Code
6759 \begin_layout Plain Layout
6770 , qui implique l'inclusion de
6771 \begin_inset Flex Code
6774 \begin_layout Plain Layout
6781 Par exemple, vous pourriez ajouter ces lignes:
6784 \begin_layout LyX-Code
6790 \begin_layout LyX-Code
6796 \begin_layout LyX-Code
6802 \begin_layout LyX-Code
6808 \begin_layout LyX-Code
6814 \begin_layout Standard
6815 pour modifier la police des titres de chapitre en police sens empattements.
6816 Ceci écrasera (ou bien, en l'occurrence, ajoutera) la déclaration existante
6817 pour le style Chapitre.
6820 \begin_layout Standard
6821 Votre nouveau paquetage peut également fournir des commandes ou des environnemen
6822 ts qui n'existent pas dans la classe de base.
6823 dans ce cas, il vous faudra ajouter ceux-ci au fichier de format.
6825 \begin_inset space ~
6829 \begin_inset CommandInset ref
6831 reference "sec:Syntaxe-des"
6835 pour savoir comment faire.
6838 \begin_layout Standard
6840 \begin_inset Flex Code
6843 \begin_layout Plain Layout
6849 peut être utilisé avec plusieurs classes de document différentes, vous
6850 trouverez sans doute plus approprié d'écrire un module que vous pourrez
6851 charger avec la classe de base.
6852 Le module le plus simple qu'il est possible d'écrire dans ce contexte est
6856 \begin_layout LyX-Code
6861 DeclareLyXModule{mon paquetage}
6864 \begin_layout LyX-Code
6870 \begin_layout LyX-Code
6873 #Support for mypkg.sty.
6876 \begin_layout LyX-Code
6880 \begin_inset Newline newline
6886 \begin_layout LyX-Code
6890 \begin_inset Newline newline
6896 \begin_layout LyX-Code
6900 \begin_inset Newline newline
6906 \begin_inset Newline newline
6912 \begin_layout Standard
6913 Un module plus compliqué pourrait modifier le comportement de constructions
6914 existantes ou d'en définir de nouvelles.
6916 \begin_inset space ~
6920 \begin_inset CommandInset ref
6922 reference "sec:Syntaxe-des"
6929 \begin_layout Subsection
6930 Format pour un fichier
6931 \begin_inset Flex Code
6934 \begin_layout Plain Layout
6943 \begin_layout Standard
6944 Deux possibilités se présentent.
6948 \begin_layout Standard
6949 Soit le fichier de classe est fondé sur une classe de document existante.
6950 Par exemple, de nombreuses classes pour une thèse sont des variantes de
6952 \begin_inset Flex Code
6955 \begin_layout Plain Layout
6962 Pour vérifier que c'est le cas pour la vôtre, cherchez une ligne comme
6965 \begin_layout LyX-Code
6973 \begin_layout Standard
6974 dans le fichier de classe.
6975 Si c'est la cas, vous pouvez essentiellement procéder comme dans la section
6976 précédente, bien que la ligne
6977 \begin_inset Flex Code
6980 \begin_layout Plain Layout
6981 Declare\SpecialChar LaTeX
6988 Si votre nouvelle classe est une thèse, et est fondée sur
6989 \begin_inset Flex Code
6992 \begin_layout Plain Layout
6998 , cette ligne doit être
7002 \begin_layout Plain Layout
7003 Et enregistrer le fichier comme
7004 \begin_inset Flex Code
7007 \begin_layout Plain Layout
7015 facilitera les choses: \SpecialChar LyX
7016 suppose que la classe de document a le même nom
7017 que le fichier de format.
7025 \begin_layout LyX-Code
7030 DeclareLaTeXClass[thesis,book]{thesis}
7033 \begin_layout Standard
7034 Soit le fichier de classe est original.
7035 Dans ce cas, vous devrez probablement créer votre propre format.
7036 Nous vous suggérons fortement de copier un fichier de format existant qui
7037 utilise une classe \SpecialChar LaTeX
7038 similaire et de le modifier si c'est possible.
7039 Utilisez au moins un fichier existant comme point de départ pour savoir
7040 quels sont les éléments dont vous devez vous occuper.
7041 Encore une fois, les spécificités sont décrites ci-après.
7044 \begin_layout Subsection
7046 \begin_inset CommandInset label
7055 \begin_layout Standard
7056 Une fois qu'un fichier de format a été crée pour une classe de document,
7057 vous désirerez peut-être créer un
7062 Un modèle est une sorte de mode d'emploi pour votre format, montrant comment
7063 il peut être utilisé, mais avec un contenu fictif.
7064 Vous pouvez jeter un œil aux divers modèles distribués avec \SpecialChar LyX
7068 \begin_layout Standard
7069 Les modèles sont créés comme les documents normaux.
7070 La seule différence est que les documents normaux contiennent tous les
7071 réglages possibles, y compris les polices et la taille du papier.
7072 Or on ne veut en général pas qu'un modèle modifie ces réglages implicites.
7073 Pour cette raison, l'auteur d'un modèle doit enlever les commandes correspondan
7075 \begin_inset Flex Code
7078 \begin_layout Plain Layout
7087 \begin_inset Flex Code
7090 \begin_layout Plain Layout
7098 du fichier modèle \SpecialChar LyX
7100 C'est faisable avec un simple éditeur de texte, comme
7101 \begin_inset Flex Code
7104 \begin_layout Plain Layout
7111 \begin_inset Flex Code
7114 \begin_layout Plain Layout
7123 \begin_layout Standard
7124 Mettez les fichiers modèles que vous avez créés et édités dans
7125 \begin_inset Flex Code
7128 \begin_layout Plain Layout
7134 , copiez ceux que vous utilisez du répertoire global de modèles
7135 \begin_inset Flex Code
7138 \begin_layout Plain Layout
7145 vers le même endroit, et redéfinissez le répertoire de modèles dans la
7147 \begin_inset Flex Noun
7150 \begin_layout Plain Layout
7151 Outils\SpecialChar menuseparator
7152 Préférences\SpecialChar menuseparator
7161 \begin_layout Standard
7163 \begin_inset Flex Code
7166 \begin_layout Plain Layout
7172 a un statut particulier.
7173 Il est chargé à chaque fois que vous créez un nouveau document avec
7174 \begin_inset Flex Noun
7177 \begin_layout Plain Layout
7178 Fichier\SpecialChar menuseparator
7184 afin d'avoir les réglages implicites.
7185 Pour créer ce modèle depuis \SpecialChar LyX
7186 , vous n'avez qu'à ouvrir un document ayant
7187 déjà les réglages voulus, et appuyer sur le bouton
7188 \begin_inset Flex Noun
7191 \begin_layout Plain Layout
7192 Enregistrer comme valeurs implicites
7200 \begin_layout Subsection
7201 Mise à jour des anciens fichiers de format
7204 \begin_layout Standard
7205 La syntaxe des fichiers de format change à chaque publication d'une nouvelle
7206 version de \SpecialChar LyX
7207 , et les anciens fichiers de format doivent donc être convertis
7208 dans la nouvelle syntaxe.
7210 lit un fichier de format écrit avec une syntaxe ancienne, il appelle
7212 \begin_inset Flex Code
7215 \begin_layout Plain Layout
7221 pour le convertir dans un fichier temporaire doté de la nouvelle syntaxe.
7222 Le fichier original reste intact.
7223 Si vous utilisez le fichier de format souvent, vous voudrez sans doute
7224 rendre les modifications permanentes, pour éviter des conversions répétitives
7225 de la part de \SpecialChar LyX
7227 Pour ce faire, vous pouvez appeler le convertisseur manuellement:
7230 \begin_layout Enumerate
7234 \begin_inset Flex Code
7237 \begin_layout Plain Layout
7250 \begin_inset Flex Code
7253 \begin_layout Plain Layout
7264 \begin_layout Enumerate
7265 exécutez la commande
7266 \begin_inset Newline newline
7270 \begin_inset Flex Code
7273 \begin_layout Plain Layout
7274 python \SpecialChar LyX
7275 Dir/scripts/layout2layout.py myclass.old myclass.layout
7281 \begin_inset Newline newline
7285 \begin_inset Flex Code
7288 \begin_layout Plain Layout
7295 est le nom de votre répertoire \SpecialChar LyX
7299 \begin_layout Standard
7300 Le convertisseur ne gère que les changements de syntaxe.
7301 Il ne peut pas gérer les modifications du contenu des fichiers inclus,
7302 ceux-ci doivent être convertis séparément.
7305 \begin_layout Subsection
7311 \begin_inset CommandInset label
7313 name "subsec:Cite-Engine-Files"
7320 \begin_layout Standard
7323 A specific form of layout files are the so-called
7324 \begin_inset Flex Code
7327 \begin_layout Plain Layout
7335 files that are located in the
7336 \begin_inset Flex Code
7339 \begin_layout Plain Layout
7348 Their purpose is to define the specifics of \SpecialChar LaTeX
7349 packages aimed at bibliography
7362 , but also the way how normal Bib\SpecialChar TeX
7363 citations (without additional packages)
7364 are handled in \SpecialChar LyX
7365 is defined in such a file.
7369 \begin_layout Standard
7372 More specifically, it is defined which packages \SpecialChar LyX
7373 needs to load, which citation
7374 commands are available, how these are to be displayed in \SpecialChar LyX
7376 the dialogs, the context menus) as well as in the XHTML and plain text
7378 Furthermore, the files specify available style variants (author-year, numerical
7379 , etc.) and their specifics.
7380 The cite engine files are also used to generate the options that are available
7383 Document\SpecialChar menuseparator
7384 Settings\SpecialChar menuseparator
7385 Bibliography\SpecialChar menuseparator
7391 \begin_layout Standard
7394 Even though a cite engine file is essentially a normal layout file that
7395 could theoretically include any layout information, it usually primarily
7396 includes some specific parameters such as
7397 \begin_inset Flex Code
7400 \begin_layout Plain Layout
7409 \begin_inset Flex Code
7412 \begin_layout Plain Layout
7421 \begin_inset Flex Code
7424 \begin_layout Plain Layout
7433 \begin_inset Flex Code
7436 \begin_layout Plain Layout
7445 The syntax of the latter two is described in
7448 \begin_inset CommandInset ref
7450 reference "subsec:Citation-engine-description"
7458 \begin_inset CommandInset ref
7460 reference "subsec:Description citation"
7466 as well as in the files themselves.
7469 \begin_layout Section
7470 Syntaxe des fichiers de format
7471 \begin_inset CommandInset label
7473 name "sec:Syntaxe-des"
7480 \begin_layout Standard
7481 Les sections suivantes vous expliquent à quoi vous vous attaquez quand vous
7482 décidez de mettre les mains dans le cambouis, et de créer ou d'éditer votre
7483 propre fichier de format.
7484 Notre conseil est d'aller doucement et d'enregistrer souvent pour faire
7486 Ce n'est pas si dur que ça, mais il y a une multitude d'options et vous
7487 pouvez vous laisser submerger si vous essayez d'en faire trop d'un coup.
7488 Il est plus facile d'utiliser des formats existants comme référence ou
7489 modèle ou de modifier un fichier de format existant pour vos besoins.
7492 \begin_layout Standard
7493 Toutes les balises décrites dans ce chapitre sont insensibles à la casse:
7495 \begin_inset Flex Code
7498 \begin_layout Plain Layout
7505 \begin_inset Flex Code
7508 \begin_layout Plain Layout
7515 \begin_inset Flex Code
7518 \begin_layout Plain Layout
7524 sont une seule et même balise.
7525 Les valeurs possibles sont inscrites entre crochets après le nom de la
7527 La valeur implicite d'une fonction quand elle n'est pas définie dans le
7528 fichier décrivant la classe de texte est
7531 \begin_inset Flex Code
7534 \begin_layout Plain Layout
7545 Si le paramètre est d'un type particulier la valeur implicite est indiquée
7547 \begin_inset Flex Code
7550 \begin_layout Plain Layout
7561 \begin_layout Subsection
7562 Déclaration et classification d'une classe de document
7565 \begin_layout Standard
7566 Les lignes qui commencent par un
7570 dans un fichier de format sont les commentaires.
7571 Il y a une exception à cette règle : tous les
7572 \begin_inset Flex Code
7575 \begin_layout Plain Layout
7581 doivent commencer par ceci :
7584 \begin_layout LyX-Code
7587 #% Do not delete the line below; configure depends on this
7591 \begin_layout Plain Layout
7592 Ne pas effacer la ligne ci-dessous ; configure compte dessus.
7600 \begin_layout LyX-Code
7605 DeclareLaTeXClass{Article (Standard Class)}
7608 \begin_layout LyX-Code
7613 DeclareCategory{Articles}
7616 \begin_layout Standard
7617 Les deuxième et troisième lignes servent lors de la (re)configuration de
7620 Le fichier de format est lu par le script \SpecialChar LaTeX
7622 \begin_inset Flex Code
7625 \begin_layout Plain Layout
7631 , dans un mode spécial où
7632 \begin_inset Flex Code
7635 \begin_layout Plain Layout
7642 La première ligne est juste un commentaire \SpecialChar LaTeX
7643 , la deuxième contient la déclaratio
7644 n obligatoire de la classe de texte et la troisième contient la classification
7645 facultative de la classe.
7646 Si ces lignes apparaissent dans un fichier appelé
7647 \begin_inset Flex Code
7650 \begin_layout Plain Layout
7656 , elles définissent alors une classe de texte appelée
7657 \begin_inset Flex Code
7660 \begin_layout Plain Layout
7666 (le nom du fichier de format) qui utilise la classe de document \SpecialChar LaTeX
7668 \begin_inset Flex Code
7671 \begin_layout Plain Layout
7677 (implicitement, le même nom que le format).
7679 \begin_inset Quotes cld
7682 Article (Standard Class)
7683 \begin_inset Quotes crd
7686 qui apparaît ci-dessus sert de description de la classe de texte dans la
7688 \begin_inset Flex Noun
7691 \begin_layout Plain Layout
7692 Document\SpecialChar menuseparator
7693 Paramètres\SpecialChar menuseparator
7701 \begin_inset Quotes cld
7705 \begin_inset Quotes crd
7708 dans l'exemple) est également utilisés dans la fenêtre
7709 \begin_inset Flex Noun
7712 \begin_layout Plain Layout
7713 Document\SpecialChar menuseparator
7714 Paramètres\SpecialChar menuseparator
7720 : les classes sont regroupées par catégories (qui sont aussi des genres
7721 de documents, les catégories typiques sont
7722 \begin_inset Quotes cld
7726 \begin_inset Quotes crd
7730 \begin_inset Quotes cld
7734 \begin_inset Quotes crd
7738 \begin_inset Quotes cld
7742 \begin_inset Quotes crd
7746 \begin_inset Quotes cld
7750 \begin_inset Quotes crd
7754 \begin_inset Quotes cld
7758 \begin_inset Quotes crd
7762 \begin_inset Quotes cld
7766 \begin_inset Quotes crd
7770 Si la troisième lignes est vide, la classe apparaîtra comme
7771 \begin_inset Quotes cld
7775 \begin_inset Quotes crd
7781 \begin_layout Standard
7782 Supposons que vous ayez écrit votre propre classe de texte qui utilise la
7784 \begin_inset Flex Code
7787 \begin_layout Plain Layout
7793 , mais dans laquelle vous avez changé l'apparence des en-têtes de sections.
7794 Si vous la mettez dans un fichier
7795 \begin_inset Flex Code
7798 \begin_layout Plain Layout
7804 , l'en-tête de ce fichier doit être :
7807 \begin_layout LyX-Code
7810 #% Do not delete the line below; configure depends on this
7813 \begin_layout LyX-Code
7818 DeclareLaTeXClass[article]{Article (avec Mes En-têtes)}
7821 \begin_layout LyX-Code
7826 DeclareCategory{Articles}
7829 \begin_layout Standard
7830 Ceci déclare une classe de texte
7831 \begin_inset Flex Code
7834 \begin_layout Plain Layout
7840 , associée avec la classe de document \SpecialChar LaTeX
7842 \begin_inset Flex Code
7845 \begin_layout Plain Layout
7852 \begin_inset Quotes cld
7855 Article (avec Mes En-têtes)
7856 \begin_inset Quotes crd
7860 Si votre classe de texte repose sur plusieurs paquetages, vous pouvez la
7864 \begin_layout LyX-Code
7867 #% Do not delete the line below; configure depends on this
7870 \begin_layout LyX-Code
7875 DeclareLaTeXClass[article,machin.sty]{Article (avec Mes En-têtes)}
7878 \begin_layout LyX-Code
7883 DeclareCategory{Articles}
7886 \begin_layout Standard
7887 Ceci indique que votre classe de texte utilise le paquetage
7888 \begin_inset Flex Code
7891 \begin_layout Plain Layout
7898 Enfin, il est aussi possible de déclarer des classes pour du code DocBook.
7899 Les déclarations ressemblent en général à :
7902 \begin_layout LyX-Code
7905 #% Do not delete the line below; configure depends on this
7908 \begin_layout LyX-Code
7913 DeclareDocBookClass[article]{SGML (DocBook Article)}
7916 \begin_layout LyX-Code
7921 DeclareCategory{Articles}
7924 \begin_layout Standard
7925 Notez que ces déclarations peuvent aussi recevoir un paramètre optionnel
7926 déclarant le nom de la classe de document (mais pas une liste).
7929 \begin_layout Standard
7930 Donc, de la manière la plus explicite, la forme d'une déclaration de format
7934 \begin_layout LyX-Code
7939 DeclareLaTeXClass[class,package.sty]{description du format}
7942 \begin_layout LyX-Code
7947 DeclareCategory{catégorie}
7950 \begin_layout Standard
7951 Il n'est nécessaire de déclarer la classe que si le nom de la classe \SpecialChar LaTeX
7953 le nom du fichier de format diffèrent, ou si des paquetages sont à spécifier.
7954 Si le nom de la classe n'est pas spécifiée, \SpecialChar LyX
7955 suppose qu'elle est identique
7956 à celle du fichier de format.
7959 \begin_layout Standard
7960 Une fois que la classe de texte a été modifiée à votre goût, tout ce que
7961 vous avez à faire est de la copier soit dans
7962 \begin_inset Flex Code
7965 \begin_layout Plain Layout
7973 \begin_inset Flex Code
7976 \begin_layout Plain Layout
7983 \begin_inset Flex Noun
7986 \begin_layout Plain Layout
7987 Outils\SpecialChar menuseparator
7988 Recon\SpecialChar softhyphen
7995 Quittez \SpecialChar LyX
7996 et redémarrez-le; votre nouvelle classe de texte devrait alors
7997 être disponible avec les autres.
8000 \begin_layout Standard
8001 Une fois le fichier de format installé, vous pouvez le modifier et vérifier
8002 l'effet de ces modifications sans reconfigurer ou redémarrer \SpecialChar LyX
8007 \begin_layout Plain Layout
8008 Avec les versions de \SpecialChar LyX
8009 antérieures à 1.6, il vous fallait redémarrer \SpecialChar LyX
8011 valider les modifications effectuées dans les fichiers de format.
8012 De ce fait, les modifications pouvaient prendre beaucoup de temps.
8017 Vous pouvez imposer un rechargement du format en service en utilisant la
8019 \begin_inset Flex Noun
8022 \begin_layout Plain Layout
8031 Cette fonction n'est implicitement liée à aucun raccourci — vous pouvez
8032 bien sûr la lier à une touche vous-même.
8033 Si vous voulez utiliser cette fonction, il vous suffit de la saisir dans
8038 \begin_layout Standard
8044 \begin_inset Flex Noun
8047 \begin_layout Plain Layout
8055 est une fonctionnalité
8056 \begin_inset Quotes cld
8060 \begin_inset Quotes crd
8072 recommandé de sauvegarder votre travail avant de procéder ainsi
8077 En fait, il vous est
8081 recommandé de ne pas essayer de modifier des formats durant une travail
8082 productif sur un document.
8083 Utilisez un document de test, les erreurs de syntaxe et autres dans votre
8084 module pourraient déclencher des comportements bizarres.
8085 En particulier, de telles erreurs pourraient inciter \SpecialChar LyX
8087 formats en service comme incorrects et à essayer de basculer sur un autre
8092 \begin_layout Plain Layout
8093 Les erreurs de syntaxe vraiment graves peuvent même stopper \SpecialChar LyX
8095 Ceci provient du fait que certaines erreurs rendent \SpecialChar LyX
8097 la moindre information de format.
8098 Faites attention\SpecialChar ldots
8104 Les développeurs s'efforcent de conserver une bonne stabilité à \SpecialChar LyX
8106 telles situations, mais il vaut mieux être sûr que regretter
8110 \begin_layout Plain Layout
8111 Puisque nous en sommes au conseils: faites des sauvegardes régulières.
8112 Et soyez gentil avec votre maman.
8120 \begin_layout Subsection
8121 Déclaration d'un module
8124 \begin_layout Standard
8125 La première ligne d'un module doit être rédigée comme suit:
8128 \begin_layout LyX-Code
8131 DeclareLyXModule[endnotes.sty]{Endnotes}
8134 \begin_layout Standard
8135 L'argument obligatoire, entre accolades, est le nom du module, tel qu'il
8137 \begin_inset Flex Noun
8140 \begin_layout Plain Layout
8141 Document\SpecialChar menuseparator
8142 Paramètres\SpecialChar menuseparator
8149 L'argument entre crochets est facultatif: il déclare n'importe quel paquetage
8151 dont dépend le module.
8152 Il est également possible d'utiliser la clé
8153 \begin_inset Flex Noun
8156 \begin_layout Plain Layout
8162 en argument optionnel: elle déclare que le module ne peut être employé
8163 que s'il existe un chemin de conversion entre les formats
8164 \begin_inset Flex Code
8167 \begin_layout Plain Layout
8174 \begin_inset Flex Code
8177 \begin_layout Plain Layout
8186 \begin_layout Standard
8187 La déclaration du module devra être suivi par des lignes descriptives comme
8192 \begin_layout Plain Layout
8193 En anglais de préférence si le module doit être diffusé par \SpecialChar LyX
8195 Cette description apparaîtra dans la liste des messages à traduire et sera
8196 donc traduite lors de la mise à jour de l'interface.
8204 \begin_layout LyX-Code
8210 \begin_layout LyX-Code
8213 #Adds an endnote command, in addition to footnotes.
8217 \begin_layout LyX-Code
8220 #You will need to add
8222 theendnotes in \SpecialChar TeX
8226 \begin_layout LyX-Code
8229 #want the endnotes to appear.
8233 \begin_layout LyX-Code
8239 \begin_layout LyX-Code
8242 #Requires: somemodule | othermodule
8245 \begin_layout LyX-Code
8248 #Excludes: badmodule
8251 \begin_layout Standard
8252 Cette description est utilisée dans
8253 \begin_inset Flex Noun
8256 \begin_layout Plain Layout
8257 Document\SpecialChar menuseparator
8258 Paramètres\SpecialChar ldots
8259 \SpecialChar menuseparator
8265 pour informer l'utilisateur de la fonction du module.
8267 \begin_inset Flex Code
8270 \begin_layout Plain Layout
8278 permet d'identifier les modules qui doivent être activés avec celui-ci;
8280 \begin_inset Flex Code
8283 \begin_layout Plain Layout
8291 permet d'identifier les modules interdits avec celui-ci.
8292 Les deux lignes sont facultatives et, comme indiqué, les modules dans une
8293 liste doivent être séparés par une barre verticale: |.
8294 Noter que les modules requis sont traités sur le mode disjonctif:
8298 des modules requis doit être utilisé.
8303 des modules exclus ne doit être utilisé.
8304 Noter également que les les modules sont identifiés par leur nom de fichier,
8306 \begin_inset Flex Code
8309 \begin_layout Plain Layout
8317 \begin_inset Flex Code
8320 \begin_layout Plain Layout
8329 \begin_inset Flex Code
8332 \begin_layout Plain Layout
8343 \begin_layout Subsection
8346 The CiteEngine file declaration
8349 \begin_layout Standard
8352 A cite engine file must begin with a line like the following:
8355 \begin_layout LyX-Code
8360 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8363 \begin_layout Standard
8366 The mandatory argument, in curly brackets, is the name of the module, as
8368 \begin_inset Flex Noun
8371 \begin_layout Plain Layout
8374 Document\SpecialChar menuseparator
8375 Settings\SpecialChar menuseparator
8382 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8384 on which the cite engine depends.
8387 \begin_layout Standard
8390 The cite engine declaration should then be followed by lines like the following
8394 \begin_layout Plain Layout
8397 Preferably in English if the module should be published with \SpecialChar LyX
8399 This description will appear in the list of messages to be translated and
8400 will be thus translated with the next interface update.
8408 \begin_layout LyX-Code
8414 \begin_layout LyX-Code
8417 # Biblatex supports many author-year and numerical styles.
8420 \begin_layout LyX-Code
8423 # It is mainly aimed at the Humanities.
8427 \begin_layout LyX-Code
8430 # customizable, fully localized and provides many features
8433 \begin_layout LyX-Code
8436 # that are not possible with BibTeX.
8437 The use of 'biber' as
8440 \begin_layout LyX-Code
8443 # bibliography processor is advised.
8446 \begin_layout LyX-Code
8452 \begin_layout Standard
8455 The description is used in
8456 \begin_inset Flex Noun
8459 \begin_layout Plain Layout
8462 Document\SpecialChar menuseparator
8463 Settings\SpecialChar menuseparator
8469 to provide the user with information about the cite engine.
8472 \begin_layout Subsection
8473 Numéro d'identification syntaxique
8476 \begin_layout Standard
8477 La première ligne non commentée doit contenir le numéro d'identification
8478 syntaxique du contenu du fichier de format:
8481 \begin_layout Description
8482 \begin_inset Flex Code
8485 \begin_layout Plain Layout
8494 \begin_inset Flex Code
8497 \begin_layout Plain Layout
8505 ] identification syntaxique du fichier de format
8508 \begin_layout Standard
8509 Ce balisage a été introduit dans \SpecialChar LyX
8511 \begin_inset space ~
8514 1.4.0 Les fichiers de format des versions antérieures n'avaient pas de numéro
8515 de format explicite et sont affectés du
8518 \begin_inset Flex Code
8521 \begin_layout Plain Layout
8525 \begin_inset space ~
8536 Le numéro de format du présent fichier est le numéro 60.
8537 mais chaque version de \SpecialChar LyX
8538 peut lire les fichiers de format d'une version
8539 plus ancienne, comme elle peut lire les documents crées avec une version
8541 Il n'y a cependant aucun moyen de revernir aux numéros d'identification
8545 \begin_layout Subsection
8546 Paramètres généraux d'une classe de texte
8547 \begin_inset CommandInset label
8549 name "subsec:Paramètres-généraux-d'une"
8556 \begin_layout Standard
8557 Voici les paramètres généraux qui décrivent l'aspect du document pour une
8558 classe complète (ceci ne veut pas dire qu'il
8562 apparaître dans le fichiers
8563 \begin_inset Flex Code
8566 \begin_layout Plain Layout
8572 plutôt que dans les modules.
8573 Un module peut contenir n'importe quelle balise de format):
8576 \begin_layout Description
8579 \begin_inset Flex Code
8582 \begin_layout Plain Layout
8595 ajoute une information qui sera incluse dans le bloc
8596 \begin_inset Flex Code
8599 \begin_layout Plain Layout
8605 quand le document est exporté en XHTML.
8606 Typiquement, ce paramètre est utilisé pour exporter de l'information en
8607 style CSS, mais il peut être utilisé pour toute information valide entre
8609 \begin_inset Flex Code
8612 \begin_layout Plain Layout
8620 \begin_inset Quotes cld
8624 \begin_inset Flex Code
8627 \begin_layout Plain Layout
8636 \begin_inset Quotes crd
8642 \begin_layout Description
8645 \begin_inset Flex Code
8648 \begin_layout Plain Layout
8661 ajoute une information au préambule du document.
8663 \begin_inset Quotes cld
8667 \begin_inset Flex Code
8670 \begin_layout Plain Layout
8679 \begin_inset Quotes crd
8685 \begin_layout Description
8688 \begin_inset Flex Code
8691 \begin_layout Plain Layout
8699 Defines the possibilities for displaying citation references.
8701 \begin_inset CommandInset ref
8703 reference "subsec:Citation-engine-description"
8712 \begin_inset Quotes eld
8716 \begin_inset Flex Code
8719 \begin_layout Plain Layout
8728 \begin_inset Quotes erd
8732 Primarily used in cite engine files (see
8733 \begin_inset CommandInset ref
8735 reference "subsec:Cite-Engine-Files"
8745 \begin_layout Description
8748 \begin_inset Flex Code
8751 \begin_layout Plain Layout
8764 définit le style à utiliser pour afficher les informations bibliographiques.
8766 \begin_inset CommandInset ref
8768 reference "subsec:Description citation"
8774 \begin_inset Quotes cld
8778 \begin_inset Flex Code
8781 \begin_layout Plain Layout
8790 \begin_inset Quotes crd
8796 Primarily used in cite engine files (see
8797 \begin_inset CommandInset ref
8799 reference "subsec:Cite-Engine-Files"
8809 \begin_layout Description
8812 \begin_inset Flex Code
8815 \begin_layout Plain Layout
8824 \begin_inset Flex Code
8827 \begin_layout Plain Layout
8837 \begin_inset Flex Code
8840 \begin_layout Plain Layout
8848 ] Determines whether
8852 or Bib\SpecialChar TeX
8853 is used to generate a Bibliography.
8854 Primarily used in cite engine files (see
8855 \begin_inset Newline newline
8859 \begin_inset CommandInset ref
8861 reference "subsec:Cite-Engine-Files"
8871 \begin_layout Description
8874 \begin_inset Flex Code
8877 \begin_layout Plain Layout
8890 décrit diverses options globales comprises par la classe du document.
8892 \begin_inset CommandInset ref
8894 reference "subsec:Section-ClassOptions"
8900 \begin_inset Quotes cld
8904 \begin_inset Flex Code
8907 \begin_layout Plain Layout
8916 \begin_inset Quotes crd
8922 \begin_layout Description
8925 \begin_inset Flex Code
8928 \begin_layout Plain Layout
8939 \begin_inset Flex Code
8942 \begin_layout Plain Layout
8951 \begin_inset space \thinspace{}
8955 \begin_inset Flex Code
8958 \begin_layout Plain Layout
8964 ] fixe le nombre implicite de colonnes (une ou deux).
8965 Peut être changé dans la fenêtre
8966 \begin_inset Flex Noun
8969 \begin_layout Plain Layout
8970 Document\SpecialChar menuseparator
8980 \begin_layout Description
8983 \begin_inset Flex Code
8986 \begin_layout Plain Layout
9000 \begin_inset Flex Code
9003 \begin_layout Plain Layout
9009 ] définit les paramètres d'un nouveau compteur.
9010 Si le compteur n'existe pas, il est créé; s'il existe, il est modifié.
9012 \begin_inset Quotes cld
9016 \begin_inset Flex Code
9019 \begin_layout Plain Layout
9028 \begin_inset Quotes crd
9032 \begin_inset Newline newline
9036 \begin_inset CommandInset ref
9038 reference "subsec:Compteurs"
9045 \begin_layout Description
9048 \begin_inset Flex Code
9051 \begin_layout Plain Layout
9061 décrit la police implicite dans le document.
9063 \begin_inset CommandInset ref
9065 reference "subsec:polices"
9069 pour une description.
9071 \begin_inset Quotes cld
9077 \begin_inset Flex Code
9080 \begin_layout Plain Layout
9089 \begin_inset Quotes crd
9095 \begin_layout Description
9098 \begin_inset Flex Code
9101 \begin_layout Plain Layout
9112 \begin_inset Flex Code
9115 \begin_layout Plain Layout
9121 ] spécifie un module inclus implicitement avec cette classe de document,
9122 donné par son nom de fichier sans suffixe
9123 \begin_inset Flex Code
9126 \begin_layout Plain Layout
9135 L'utilisateur peut toujours le retirer, mais il sera actif à l'ouverture
9136 du document (ceci s'applique pour un nouveau document, ou quand cette classe
9137 est choisie pour un document existant).
9140 \begin_layout Description
9143 \begin_inset Flex Code
9146 \begin_layout Plain Layout
9157 \begin_inset Flex Code
9160 \begin_layout Plain Layout
9166 ] indique le style qui sera appliqué aux nouveaux paragraphes, habituellement
9168 \begin_inset Flex Noun
9171 \begin_layout Plain Layout
9180 Ce sera implicitement le premier style défini si ce paramètre n'est pas
9181 fixé, mais vous êtes vivement encouragé à utiliser cette directive.
9184 \begin_layout Description
9187 \begin_inset Flex Code
9190 \begin_layout Plain Layout
9201 \begin_inset Flex Code
9204 \begin_layout Plain Layout
9210 ] indique que le module spécifié (donné par son nom de fichier sans le suffixe
9212 \begin_inset Flex Code
9215 \begin_layout Plain Layout
9223 ) ne peut pas être utilisé avec cette classe de document.
9224 Ceci peut être utilisé par exemple dans un format pour une revue pour éviter
9226 l'utilisation du module
9227 \begin_inset Flex Code
9230 \begin_layout Plain Layout
9238 (numérotation des théorèmes par sections).
9247 être utilisé dans un module: les modules ont leur propre méthode d'exclusion
9249 \begin_inset CommandInset ref
9251 reference "subsec:Modules_de_format"
9258 \begin_layout Description
9261 \begin_inset Flex Code
9264 \begin_layout Plain Layout
9274 définit un nouveau flottant.
9276 \begin_inset CommandInset ref
9278 reference "subsec:Flottants"
9284 \begin_inset Quotes cld
9288 \begin_inset Flex Code
9291 \begin_layout Plain Layout
9300 \begin_inset Quotes crd
9306 \begin_layout Description
9309 \begin_inset Flex Code
9312 \begin_layout Plain Layout
9322 définit l'information qui sera incluse dans le bloc
9323 \begin_inset Flex Code
9326 \begin_layout Plain Layout
9332 quand le document est exporté en XHTML.
9333 Notez bien que ceci écrasera toute déclaration
9336 \begin_inset Flex Code
9339 \begin_layout Plain Layout
9352 \begin_inset Flex Code
9355 \begin_layout Plain Layout
9365 antérieure (utiliser
9366 \begin_inset Newline newline
9372 \begin_inset Flex Code
9375 \begin_layout Plain Layout
9385 si vous désirez simplement ajouter du contenu).
9387 \begin_inset Quotes cld
9391 \begin_inset Flex Code
9394 \begin_layout Plain Layout
9403 \begin_inset Quotes crd
9409 \begin_layout Description
9412 \begin_inset Flex Code
9415 \begin_layout Plain Layout
9426 \begin_inset Flex Code
9429 \begin_layout Plain Layout
9435 ] définit le style utilisé pour la table des matières, la bibliographie,
9436 et similaires, lorsque le document est exporté en HTML.
9437 Pour les articles, ceci devrait normalement valoir
9440 \begin_inset Flex Code
9443 \begin_layout Plain Layout
9456 \begin_inset Flex Code
9459 \begin_layout Plain Layout
9470 Sans précisions, \SpecialChar LyX
9471 essaiera de deviner quel style utiliser.
9474 \begin_layout Description
9477 \begin_inset Flex Code
9480 \begin_layout Plain Layout
9491 \begin_inset Flex Code
9494 \begin_layout Plain Layout
9500 ] modifie les propriétés d'un compteur donné.
9501 Si le compteur n'existe pas, la directive est ignorée.
9503 \begin_inset Quotes cld
9507 \begin_inset Flex Code
9510 \begin_layout Plain Layout
9519 \begin_inset Quotes crd
9523 \begin_inset Newline newline
9527 \begin_inset CommandInset ref
9529 reference "subsec:Compteurs"
9533 pour les détails au sujet des compteurs.
9536 \begin_layout Description
9537 \begin_inset Flex Code
9540 \begin_layout Plain Layout
9549 \begin_inset Flex Code
9552 \begin_layout Plain Layout
9558 ] permet d'inclure un autre fichier de définition de format pour éviter
9559 de réécrire des commandes.
9560 C'est souvent le cas des fichiers de format standard, comme
9561 \begin_inset Flex Code
9564 \begin_layout Plain Layout
9570 , qui contient la plupart des réglages de base.
9573 \begin_layout Description
9576 \begin_inset Flex Code
9579 \begin_layout Plain Layout
9593 \begin_inset Flex Code
9596 \begin_layout Plain Layout
9602 ] cette section (re)définit le format d'un insert.
9603 Elle peut être appliquée à un insert existant pour obtenir un nouvel insert
9604 défini par l'utilisateur, e.g.
9605 un nouveau style de caractères.
9607 \begin_inset Quotes cld
9611 \begin_inset Flex Code
9614 \begin_layout Plain Layout
9623 \begin_inset Quotes crd
9627 \begin_inset Newline newline
9631 \begin_inset CommandInset ref
9633 reference "subsec:Flex-insets-and"
9640 \begin_layout Description
9643 \begin_inset Flex Code
9646 \begin_layout Plain Layout
9660 \begin_inset Flex Code
9663 \begin_layout Plain Layout
9669 ] indique la largeur de la marge gauche à l'écran, par exemple
9670 \begin_inset Quotes cld
9674 \begin_inset Flex Code
9677 \begin_layout Plain Layout
9684 \begin_inset Quotes crd
9687 (noter que ce n'est pas une
9688 \begin_inset Quotes cld
9692 \begin_inset Quotes crd
9696 \begin_inset Quotes cld
9700 \begin_inset Quotes crd
9706 \begin_layout Description
9709 \begin_inset Flex Code
9712 \begin_layout Plain Layout
9721 \begin_inset Flex Code
9724 \begin_layout Plain Layout
9732 ] An integer that determines the maximal number of names displayed in an
9733 author-year citation before the citation switches to
9734 \begin_inset Quotes eld
9738 \begin_inset Quotes erd
9742 Primarily used in cite engine files (see
9743 \begin_inset CommandInset ref
9745 reference "subsec:Cite-Engine-Files"
9755 \begin_layout Description
9758 \begin_inset Flex Code
9761 \begin_layout Plain Layout
9772 \begin_inset Flex Code
9775 \begin_layout Plain Layout
9781 ] modifies les propriétés de style d'un paragraphe donné.
9782 Si le style n'existe pas, le directive est ignorée.
9784 \begin_inset Quotes cld
9788 \begin_inset Flex Code
9791 \begin_layout Plain Layout
9800 \begin_inset Quotes crd
9806 \begin_layout Description
9809 \begin_inset Flex Code
9812 \begin_layout Plain Layout
9823 \begin_inset Flex Code
9826 \begin_layout Plain Layout
9832 ] efface un compteur existant, habituellement défini dans un fichier inclus.
9835 \begin_layout Description
9838 \begin_inset Flex Code
9841 \begin_layout Plain Layout
9852 \begin_inset Flex Code
9855 \begin_layout Plain Layout
9861 ] efface un flottant existant.
9862 C'est très utile quand vous voulez supprimer un flottant qui a été défini
9863 dans un fichier inclus.
9866 \begin_layout Description
9869 \begin_inset Flex Code
9872 \begin_layout Plain Layout
9883 \begin_inset Flex Code
9886 \begin_layout Plain Layout
9892 ] efface un style existant.
9895 \begin_layout Description
9898 \begin_inset Flex Code
9901 \begin_layout Plain Layout
9915 \begin_inset Flex Code
9918 \begin_layout Plain Layout
9924 ] indique quelle sorte de format de fichier (tel que défini dans les préférences
9926 ) est produit par cette classe.
9927 Elle est surtout utile quand
9928 \begin_inset Flex Code
9931 \begin_layout Plain Layout
9942 \begin_inset Flex Code
9945 \begin_layout Plain Layout
9955 et que l'on veut définir un nouvelle sorte de document en programmation
9957 La chaîne est redéfinie comme
9958 \begin_inset Quotes cld
9964 \begin_inset Flex Code
9967 \begin_layout Plain Layout
9978 \begin_inset Quotes crd
9982 \begin_inset Quotes cld
9988 \begin_inset Flex Code
9991 \begin_layout Plain Layout
10002 \begin_inset Quotes crd
10005 quand la directive correspondante
10006 \begin_inset Flex Code
10009 \begin_layout Plain Layout
10020 \begin_layout Description
10023 \begin_inset Flex Code
10026 \begin_layout Plain Layout
10041 \begin_inset Flex Code
10044 \begin_layout Plain Layout
10056 \begin_inset Flex Code
10059 \begin_layout Plain Layout
10068 \begin_inset Flex Code
10071 \begin_layout Plain Layout
10081 ] indique quelle sorte de document résultant sera obtenu par cette classe.
10084 \begin_layout Description
10087 \begin_inset Flex Code
10090 \begin_layout Plain Layout
10101 \begin_inset Flex Code
10104 \begin_layout Plain Layout
10111 \begin_inset Flex Code
10114 \begin_layout Plain Layout
10120 ] précise les options, données par le seconde chaîne de caractères, pour
10121 le paquetage nommé par le première chaîne.
10123 \begin_inset Quotes cld
10127 \begin_inset Flex Code
10130 \begin_layout Plain Layout
10131 PackageOptions natbib square
10137 \begin_inset Quotes crd
10140 déclenchera le chargement de
10141 \begin_inset Flex Code
10144 \begin_layout Plain Layout
10151 \begin_inset Flex Code
10154 \begin_layout Plain Layout
10160 (pour les \SpecialChar TeX
10161 perts, ceci force \SpecialChar LyX
10163 \begin_inset Newline newline
10167 \begin_inset Flex Code
10170 \begin_layout Plain Layout
10173 PassOptionsToPackage{natbib}{square}
10178 avant le chargement de
10179 \begin_inset Flex Code
10182 \begin_layout Plain Layout
10191 \begin_layout Description
10194 \begin_inset Flex Code
10197 \begin_layout Plain Layout
10208 \begin_inset Flex Code
10211 \begin_layout Plain Layout
10223 \begin_inset Flex Code
10226 \begin_layout Plain Layout
10235 \begin_inset Flex Code
10238 \begin_layout Plain Layout
10248 fixe la mise en page implicite.
10249 Peut être changée dans la fenêtre
10250 \begin_inset Flex Noun
10253 \begin_layout Plain Layout
10254 Document\SpecialChar menuseparator
10255 Paramètres\SpecialChar ldots
10264 \begin_layout Description
10267 \begin_inset Flex Code
10270 \begin_layout Plain Layout
10280 fixe le préambule du document \SpecialChar LaTeX
10282 Notez bien que ceci remplacera complètement toute autre directive
10285 \begin_inset Flex Code
10288 \begin_layout Plain Layout
10297 \begin_inset Flex Code
10300 \begin_layout Plain Layout
10310 (utiliser cette dernière directive si vous voulez seulement ajouter des
10311 éléments au contenu).
10312 Doit être fermé par
10313 \begin_inset Quotes cld
10317 \begin_inset Flex Code
10320 \begin_layout Plain Layout
10329 \begin_inset Quotes crd
10335 \begin_layout Description
10338 \begin_inset Flex Code
10341 \begin_layout Plain Layout
10352 \begin_inset Flex Code
10355 \begin_layout Plain Layout
10362 \begin_inset Flex Code
10365 \begin_layout Plain Layout
10374 \begin_inset space \thinspace{}
10378 \begin_inset Flex Code
10381 \begin_layout Plain Layout
10387 ] décrit si la classe fournit la fonctionnalité
10388 \begin_inset Flex Code
10391 \begin_layout Plain Layout
10400 Une fonctionnalité est en général le nom d'un paquetage (
10401 \begin_inset Flex Code
10404 \begin_layout Plain Layout
10413 \begin_inset Flex Code
10416 \begin_layout Plain Layout
10424 , \SpecialChar ldots
10425 ) ou d'une commande \SpecialChar LaTeX
10427 \begin_inset Flex Code
10430 \begin_layout Plain Layout
10439 \begin_inset Flex Code
10442 \begin_layout Plain Layout
10450 ,\SpecialChar ldots
10453 \begin_inset space ~
10457 \begin_inset CommandInset ref
10459 reference "chap:List-of-functions"
10463 pour une liste des fonctionnalités.
10466 \begin_layout Description
10469 \begin_inset Flex Code
10472 \begin_layout Plain Layout
10483 \begin_inset Flex Code
10486 \begin_layout Plain Layout
10492 ] indique que ce format fournit la fonctionnalité du module indiqué, qui
10493 doit être spécifié par le nom du fichier dans le suffixe
10494 \begin_inset Flex Code
10497 \begin_layout Plain Layout
10506 Ceci sera utilisé typiquement si le format inclut directement le module,
10507 plutôt que via le paramètre
10508 \begin_inset Flex Code
10511 \begin_layout Plain Layout
10519 pour indiquer qu'il doit être utilisé.
10520 Il pourrait être également utilisé dans un module fournissant une implantation
10521 équivalente de la même fonctionnalité.
10524 \begin_layout Description
10527 \begin_inset Flex Code
10530 \begin_layout Plain Layout
10541 \begin_inset Flex Code
10544 \begin_layout Plain Layout
10550 ] crée une nouveau style de paragraphe s'il n'existe pas déjà.
10551 S'il existe, l'entrée est ignorée.
10552 Doit être fermé par
10553 \begin_inset Quotes cld
10557 \begin_inset Flex Code
10560 \begin_layout Plain Layout
10569 \begin_inset Quotes crd
10575 \begin_layout Description
10578 \begin_inset Flex Code
10581 \begin_layout Plain Layout
10592 \begin_inset Flex Code
10595 \begin_layout Plain Layout
10601 ] indique que la classe nécessite la fonctionnalité
10602 \begin_inset Flex Code
10605 \begin_layout Plain Layout
10614 Plusieurs fonctionnalités doivent être séparées par des virgules.
10615 Noter que l'on ne peut requérir que des fonctionnalités reconnues (voir
10617 \begin_inset CommandInset ref
10619 reference "chap:List-of-functions"
10623 pour accéder à la liste des fonctionnalités).
10624 Si vous demandez un paquetage doté d'options spécifiques, vous pouvez utiliser
10626 \begin_inset Flex Code
10629 \begin_layout Plain Layout
10638 \begin_layout Description
10641 \begin_inset Flex Code
10644 \begin_layout Plain Layout
10655 \begin_inset Flex Code
10658 \begin_layout Plain Layout
10664 ] indique la largeur de la marge droite à l'écran, par exemple
10665 \begin_inset Quotes cld
10669 \begin_inset Flex Code
10672 \begin_layout Plain Layout
10679 \begin_inset Quotes crd
10685 \begin_layout Description
10688 \begin_inset Flex Code
10691 \begin_layout Plain Layout
10705 \begin_inset Flex Code
10708 \begin_layout Plain Layout
10714 ] fixe quels sectionnements doivent être numérotés.
10715 Correspond au compteur
10716 \begin_inset Flex Code
10719 \begin_layout Plain Layout
10727 en \SpecialChar LaTeX
10731 \begin_layout Description
10734 \begin_inset Flex Code
10737 \begin_layout Plain Layout
10750 \begin_inset Flex Code
10753 \begin_layout Plain Layout
10762 \begin_inset space \thinspace{}
10766 \begin_inset Flex Code
10769 \begin_layout Plain Layout
10775 ] fixe l'option implicite d'impression recto seul ou en recto verso.
10776 Peut être changé dans la fenêtre
10777 \begin_inset Flex Noun
10780 \begin_layout Plain Layout
10781 Document\SpecialChar menuseparator
10790 \begin_layout Description
10793 \begin_inset Flex Code
10796 \begin_layout Plain Layout
10807 \begin_inset Flex Code
10810 \begin_layout Plain Layout
10816 ] définit un nouveau style de paragraphe.
10817 Si le style n'existe pas, il est créé; s'il existe déjà, ses paramètres
10819 Doit être fermé par
10820 \begin_inset Quotes cld
10824 \begin_inset Flex Code
10827 \begin_layout Plain Layout
10836 \begin_inset Quotes crd
10840 \begin_inset Newline newline
10844 \begin_inset CommandInset ref
10846 reference "subsec:Styles-de-paragraphe"
10853 \begin_layout Description
10856 \begin_inset Flex Code
10859 \begin_layout Plain Layout
10875 \begin_inset Flex Code
10878 \begin_layout Plain Layout
10888 ] définit nom de la commande ou de l'envi\SpecialChar softhyphen
10889 ronnement mentionné ci-dessous.
10892 \begin_layout Description
10895 \begin_inset Flex Code
10898 \begin_layout Plain Layout
10913 \begin_inset Flex Code
10916 \begin_layout Plain Layout
10926 \begin_inset Flex Code
10929 \begin_layout Plain Layout
10939 ] indique le genre de balisage utilisé pour définir le titre d'un document.
10941 \begin_inset Flex Code
10944 \begin_layout Plain Layout
10950 signifie que la commande définie par
10951 \begin_inset Flex Code
10954 \begin_layout Plain Layout
10960 sera insérée après le dernier format avec
10963 \begin_inset Quotes cld
10969 \begin_inset Flex Code
10972 \begin_layout Plain Layout
10974 \begin_inset space ~
10985 \begin_inset Quotes crd
10992 \begin_inset Flex Code
10995 \begin_layout Plain Layout
11002 \begin_inset Flex Code
11005 \begin_layout Plain Layout
11011 est un environnement, dans lequel doit être inclus tous les formats avec
11015 \begin_inset Quotes cld
11021 \begin_inset Flex Code
11024 \begin_layout Plain Layout
11026 \begin_inset space ~
11037 \begin_inset Quotes crd
11045 \begin_layout Description
11048 \begin_inset Flex Code
11051 \begin_layout Plain Layout
11062 \begin_inset Flex Code
11065 \begin_layout Plain Layout
11071 ] fixe quels sectionnements sont inclus dans la table des matières.
11072 Correspond au compteur
11073 \begin_inset Flex Code
11076 \begin_layout Plain Layout
11084 en \SpecialChar LaTeX
11088 \begin_layout Subsection
11092 \begin_inset CommandInset label
11094 name "subsec:Section-ClassOptions"
11101 \begin_layout Standard
11103 \begin_inset Flex Code
11106 \begin_layout Plain Layout
11112 peut contenir les directives suivantes :
11115 \begin_layout Description
11118 \begin_inset Flex Code
11121 \begin_layout Plain Layout
11135 ] liste les tailles de police disponibles comme police principale du document,
11139 \begin_inset Quotes cld
11145 \begin_inset Flex Code
11148 \begin_layout Plain Layout
11157 \begin_inset Quotes crd
11165 \begin_layout Description
11168 \begin_inset Flex Code
11171 \begin_layout Plain Layout
11181 fixe le contenu de la ligne écrivant la DTD pour les classes produisant
11186 \begin_inset Quotes eld
11189 -//OASIS//DTD DocBook V4.2//EN
11190 \begin_inset Quotes erd
11198 \begin_layout Description
11201 \begin_inset Flex Code
11204 \begin_layout Plain Layout
11218 ] introduit certaines options de la classe de document, séparées par une
11219 virgule, qui seront ajoutées à la partie optionnelle de la commande
11220 \begin_inset Flex Code
11223 \begin_layout Plain Layout
11234 \begin_layout Description
11237 \begin_inset Flex Code
11240 \begin_layout Plain Layout
11252 chaîne="empty|plain|headings|fancy"
11254 ] liste les mises en page disponibles, séparées par un
11257 \begin_inset Quotes cld
11261 \begin_inset Quotes crd
11269 \begin_layout Standard
11271 \begin_inset Flex Code
11274 \begin_layout Plain Layout
11280 doit être fermée par
11281 \begin_inset Quotes cld
11287 \begin_inset Flex Code
11290 \begin_layout Plain Layout
11301 \begin_inset Quotes crd
11307 \begin_layout Subsection
11308 Styles de paragraphe
11309 \begin_inset CommandInset label
11311 name "subsec:Styles-de-paragraphe"
11318 \begin_layout Standard
11319 La description d'un style de paragraphe ressemble à ceci
11323 \begin_layout Plain Layout
11324 qui peut servir soit à définir un nouvel format soit à en modifier un déjà
11333 \begin_layout LyX-Code
11340 \begin_layout LyX-Code
11344 \begin_layout LyX-Code
11348 \begin_layout Standard
11349 dans lequel on peut mettre les commandes suivantes :
11352 \begin_layout Description
11355 \begin_inset Flex Code
11358 \begin_layout Plain Layout
11367 \begin_inset Flex Code
11370 \begin_layout Plain Layout
11378 =""] This paragraph will appear in the table of contents of the given type.
11379 An empty string disables.
11380 See also the OutlinerName and the IsTocCaption commands.
11384 \begin_layout Description
11387 \begin_inset Flex Code
11390 \begin_layout Plain Layout
11405 , left, right, center
11407 ] alignement de paragraphe.
11410 \begin_layout Description
11413 \begin_inset Flex Code
11416 \begin_layout Plain Layout
11431 , left, right, center
11437 des alignements possibles séparés par une virgule.
11438 Certains styles \SpecialChar LaTeX
11439 interdisent certains alignements, car ils n'auraient aucun
11441 Par exemple une énumération alignée à droite ou centrée est impossible.
11444 \begin_layout Description
11447 \begin_inset Flex Code
11450 \begin_layout Plain Layout
11461 \begin_inset Flex Code
11464 \begin_layout Plain Layout
11470 ] définit l'argument numéro <int> d'une commande ou environnement associé
11472 Ceci est utile pour des entités comme les en-têtes de section, et n'a de
11473 sens qu'avec \SpecialChar LaTeX
11475 Chaque argument (obligatoire ou facultatif) d'une commande ou d'un environnemen
11476 t — sauf l'argument obligatoire correspondant au contenu du paragraphe propremen
11477 t dit — est défini séparément, et le nombre précise l'ordre des arguments.
11478 La définition doit être close par
11481 \begin_inset Flex Code
11484 \begin_layout Plain Layout
11494 .Ainsi une commande avec deux arguments sera spécifiée comme suit:
11498 \begin_layout Quote
11504 \begin_layout Quote
11510 \begin_layout Quote
11516 \begin_layout Quote
11522 \begin_layout Quote
11528 \begin_layout Quote
11534 \begin_layout Standard
11535 Dans la définition de l'
11536 \begin_inset Flex Code
11539 \begin_layout Plain Layout
11545 , les spécifications suivantes sont possibles:
11548 \begin_layout Itemize
11551 \begin_inset Flex Code
11554 \begin_layout Plain Layout
11565 \begin_inset Flex Code
11568 \begin_layout Plain Layout
11574 définit la chaîne de caractères qui apparaîtra à la fois dans le menu (pour
11575 insérer cet argument) et dans le bouton d'insertion d'argument (sauf si
11576 vous spécifiez également un
11579 \begin_inset Flex Code
11582 \begin_layout Plain Layout
11593 Pour le menu, vous pouvez définir un accélérateur en ajoutant le caractère
11594 désiré à la chaîne, séparé par
11595 \begin_inset Quotes cld
11599 \begin_inset Quotes crd
11603 \begin_inset space \thinspace{}
11607 \begin_inset space \space{}
11611 \begin_inset Quotes cld
11615 \begin_inset Flex Code
11618 \begin_layout Plain Layout
11619 Éléments personnalisables|é
11625 \begin_inset Quotes crd
11631 \begin_layout Itemize
11634 \begin_inset Flex Code
11637 \begin_layout Plain Layout
11648 \begin_inset Flex Code
11651 \begin_layout Plain Layout
11657 définit une chaîne particulière pour le menu.
11658 Vous pouvez définir un accélérateur en ajoutant le caractère désiré à la
11660 \begin_inset Quotes cld
11664 \begin_inset Quotes crd
11668 \begin_inset space \thinspace{}
11672 \begin_inset space \space{}
11676 \begin_inset Quotes cld
11680 \begin_inset Flex Code
11683 \begin_layout Plain Layout
11684 Éléments personnalisables|é
11690 \begin_inset Quotes crd
11694 Cette spécification est facultative, si elle n'existe pas, la
11695 \begin_inset Flex Code
11698 \begin_layout Plain Layout
11704 sera utilisée pour le menu;
11707 \begin_layout Itemize
11710 \begin_inset Flex Code
11713 \begin_layout Plain Layout
11724 \begin_inset Flex Code
11727 \begin_layout Plain Layout
11733 définit un texte explicatif qui apparaît dans la bulle d'aide quand le
11734 curseur passe sur l'insertion d'argument;
11737 \begin_layout Itemize
11740 \begin_inset Flex Code
11743 \begin_layout Plain Layout
11754 \begin_inset Flex Code
11757 \begin_layout Plain Layout
11766 \begin_inset space \thinspace{}
11770 \begin_inset Flex Code
11773 \begin_layout Plain Layout
11779 ] précise si l’argument est obligatoire (1) ou optionnel (0).
11780 Les arguments obligatoires ont émis comme une chaîne vide s'ils ne sont
11781 pas précisés, alors que les arguments optionnels ne sont pas émis du tout.
11782 Implicitement, les arguments obligatoires sont insérés entre
11783 \begin_inset Flex Code
11786 \begin_layout Plain Layout
11792 , alors que les arguments optionnels sont insérés entre
11793 \begin_inset Flex Code
11796 \begin_layout Plain Layout
11805 \begin_layout Itemize
11808 \begin_inset Flex Code
11811 \begin_layout Plain Layout
11822 \begin_inset Flex Code
11825 \begin_layout Plain Layout
11831 définit une autre argument (par son numéro d'ordre) dont cet argument demande
11832 l’émission s'il est lui-même émis.
11833 Par exemple en \SpecialChar LaTeX
11834 , les arguments optionnels demandent l'émission d'autres
11835 arguments optionnels situés avant eux dans la liste (au moins vides), comme
11839 \begin_inset Flex Code
11842 \begin_layout Plain Layout
11847 command[][argument]{text}
11854 ou ceci peut être précisé par la directive
11857 \begin_inset Flex Code
11860 \begin_layout Plain Layout
11871 \begin_inset Flex Code
11874 \begin_layout Plain Layout
11883 \begin_layout Itemize
11886 \begin_inset Flex Code
11889 \begin_layout Plain Layout
11900 \begin_inset Flex Code
11903 \begin_layout Plain Layout
11909 définit un délimiteur gauche personnalisé (au lieu de
11910 \begin_inset Flex Code
11913 \begin_layout Plain Layout
11920 \begin_inset Flex Code
11923 \begin_layout Plain Layout
11930 Une rupture de ligne dans la sortie peut être indiqué par
11931 \begin_inset Flex Code
11934 \begin_layout Plain Layout
11943 \begin_layout Itemize
11946 \begin_inset Flex Code
11949 \begin_layout Plain Layout
11960 \begin_inset Flex Code
11963 \begin_layout Plain Layout
11969 définit un délimiteur droit personnalisé (au lieu de
11970 \begin_inset Flex Code
11973 \begin_layout Plain Layout
11980 \begin_inset Flex Code
11983 \begin_layout Plain Layout
11990 Une rupture de ligne dans la sortie peut être indiqué par
11991 \begin_inset Flex Code
11994 \begin_layout Plain Layout
12003 \begin_layout Itemize
12006 \begin_inset Flex Code
12009 \begin_layout Plain Layout
12020 \begin_inset Flex Code
12023 \begin_layout Plain Layout
12029 définit un argument qui sera inséré si et seulement si aucun argument n'est
12030 saisi par l'utilisateur, c'est-à-dire si aucun insert d'argument n'a été
12031 spécifié (notez qu'un insert d'argument vide masque le
12034 \begin_inset Flex Code
12037 \begin_layout Plain Layout
12048 Les arguments multiples doivent être séparés par des virgules;
12051 \begin_layout Itemize
12054 \begin_inset Flex Code
12057 \begin_layout Plain Layout
12068 \begin_inset Flex Code
12071 \begin_layout Plain Layout
12077 définit un argument inséré dans tous les cas (seul ou en plus des chaîne
12078 saisies par l’utilisateur).
12079 Les arguments multiples doivent être séparés par des virgules;
12082 \begin_layout Itemize
12085 \begin_inset Flex Code
12088 \begin_layout Plain Layout
12098 définit la police de caractères utilisée pour le contenu de l'argument,
12100 \begin_inset CommandInset ref
12102 reference "subsec:polices"
12109 \begin_layout Itemize
12112 \begin_inset Flex Code
12115 \begin_layout Plain Layout
12125 définit la police de caractères utilisée pour l'étiquette, voir
12126 \begin_inset CommandInset ref
12128 reference "subsec:polices"
12135 \begin_layout Itemize
12138 \begin_inset Flex Code
12141 \begin_layout Plain Layout
12150 \begin_inset Flex Code
12153 \begin_layout Plain Layout
12159 , Minimalistic, Conglomerate
12166 précise le style de rendu utilisé pour les cadres d'insertion et les boutons;
12169 \begin_layout Itemize
12172 \begin_inset Flex Code
12175 \begin_layout Plain Layout
12186 \begin_inset Flex Code
12189 \begin_layout Plain Layout
12195 force l'insertion de l’argument lorsque le style concerné est sélectionné
12196 (si sa valeur est 1).
12197 Actuellement, un seul argument par style ou format peut être inséré automatique
12201 \begin_layout Itemize
12204 \begin_inset Flex Code
12207 \begin_layout Plain Layout
12216 \begin_inset Flex Code
12219 \begin_layout Plain Layout
12230 \begin_inset Flex Code
12233 \begin_layout Plain Layout
12239 , insère l'argument avec une copie du co-texte, (soit du texte sélectionné,
12240 soit tout le paragraphe) comme contenu.
12243 \begin_layout Itemize
12246 \begin_inset Flex Code
12249 \begin_layout Plain Layout
12258 \begin_inset Flex Code
12261 \begin_layout Plain Layout
12272 ] Whether the contents of this argument should be output in raw form, meaning
12273 without special translations that \SpecialChar LaTeX
12276 \begin_inset Flex Code
12279 \begin_layout Plain Layout
12287 status is inherited by the inset or paragraph layout the argument belongs
12288 to, true and false change the status for the given argument only.
12291 \begin_layout Itemize
12294 \begin_inset Flex Code
12297 \begin_layout Plain Layout
12306 \begin_inset Flex Code
12309 \begin_layout Plain Layout
12312 string of characters
12322 définit des caractères qui doivent être transmis tel quels à la sortie,
12323 c'est-à-dire sans modifications particulières que \SpecialChar LaTeX
12325 Notez bien que, contrairement à
12329 , ceci nécessite une définition explicite pour les arguments, ceux-ci n’héritant
12334 de leur insert ou format parent.
12337 \begin_layout Itemize
12340 \begin_inset Flex Code
12343 \begin_layout Plain Layout
12352 \begin_inset Flex Code
12355 \begin_layout Plain Layout
12365 \begin_inset space \thinspace{}
12369 \begin_inset Flex Code
12372 \begin_layout Plain Layout
12380 ] If this is set to 1, the argument will output its content in the corresponding
12381 item in the table of contents.
12385 \begin_layout Standard
12386 Implicitement, le texte saisi dans la fenêtre de travail de \SpecialChar LyX
12388 considéré est le dernier argument de la commande si le
12391 \begin_inset Flex Code
12394 \begin_layout Plain Layout
12407 \begin_inset Flex Code
12410 \begin_layout Plain Layout
12421 Cependant, les arguments préfixés par
12424 \begin_inset Flex Code
12427 \begin_layout Plain Layout
12437 sont émis après cet argument de la fenêtre de travail.
12438 Notez que la numérotation des post-arguments repart de 1, de sorte que
12439 le premier argument suivant l’argument de la fenêtre de travail est
12442 \begin_inset Flex Code
12445 \begin_layout Plain Layout
12456 Les post-arguments sont ignorés dans tout autre
12459 \begin_inset Flex Code
12462 \begin_layout Plain Layout
12473 \begin_inset Flex Code
12476 \begin_layout Plain Layout
12485 \begin_layout Standard
12486 Les arguments de liste
12487 \begin_inset Flex Code
12490 \begin_layout Plain Layout
12499 \begin_inset Flex Code
12502 \begin_layout Plain Layout
12510 ) sont préfixés par
12511 \begin_inset Flex Code
12514 \begin_layout Plain Layout
12520 suivi par leur numéro (e.
12521 \begin_inset space \thinspace{}
12525 \begin_inset space \space{}
12529 \begin_inset Flex Code
12532 \begin_layout Plain Layout
12542 \begin_layout Description
12544 \change_inserted -712698321 1514710551
12547 \begin_inset Flex Code
12550 \begin_layout Plain Layout
12552 \change_inserted -712698321 1514710551
12560 Includes a comma-separated list of layout names that should be nested in
12561 and after the current one.
12562 Only makes sense for nestable layouts (such as environments).
12564 \begin_inset Quotes eld
12568 \begin_inset Flex Code
12571 \begin_layout Plain Layout
12573 \change_inserted -712698321 1514710551
12582 \begin_inset Quotes erd
12587 \begin_inset Flex Code
12590 \begin_layout Plain Layout
12592 \change_inserted -712698321 1514710551
12605 \begin_layout Description
12608 \begin_inset Flex Code
12611 \begin_layout Plain Layout
12621 noter que cette directive écrasera complètement toute déclaration
12622 \begin_inset Flex Code
12625 \begin_layout Plain Layout
12631 antérieure pour ce style.
12632 Doit être fermée par
12633 \begin_inset Flex Code
12636 \begin_layout Plain Layout
12644 \begin_inset CommandInset ref
12646 reference "subsec:I18n"
12650 pour les détails d'utilisation.
12653 \begin_layout Description
12656 \begin_inset Flex Code
12659 \begin_layout Plain Layout
12677 \begin_layout Plain Layout
12679 \begin_inset Quotes cld
12683 \begin_inset Quotes crd
12686 ici désigne un nombre réel, e.g.
12692 l'espacement vertical qui sépare du paragraphe suivant le dernier paragraphe
12693 d'une série doté de cette directive.
12694 Si le paragraphe suivant est doté d'un autre style, les séparations ne
12695 sont pas simplement additionnées, mais le maximum est pris en considération.La
12697 \begin_inset Flex Code
12700 \begin_layout Plain Layout
12706 pour le dernier paragraphe.
12709 \begin_layout Description
12712 \begin_inset Flex Code
12715 \begin_layout Plain Layout
12726 \begin_inset Flex Code
12729 \begin_layout Plain Layout
12735 fixe la catégorie pour ce style.
12736 Ceci est utilise pour regrouper les styles apparentés dans le menu déroulant
12737 des styles de la barre d'outils.
12738 N'importe quelle chaîne de caractères peut être utilisée, mais vous voudrez
12739 peut-être utiliser des catégories existantes pour vos propres styles.
12742 \begin_layout Description
12745 \begin_inset Flex Code
12748 \begin_layout Plain Layout
12758 fixe la profondeur d'une commande XML.
12759 Utilisable uniquement avec les formats XML.
12762 \begin_layout Description
12765 \begin_inset Flex Code
12768 \begin_layout Plain Layout
12779 \begin_inset Flex Code
12782 \begin_layout Plain Layout
12788 sert à copier toutes les caractéristiques d'un style déjà existant dans
12792 \begin_layout Description
12795 \begin_inset Flex Code
12798 \begin_layout Plain Layout
12809 \begin_inset Flex Code
12812 \begin_layout Plain Layout
12818 ] nomme un style dont le préambule devra être placé
12823 Ceci permet d'assurer une relation d'ordre entre les morceaux de préambule
12824 quand les définitions de macros dépendent les unes des autres.
12830 \begin_layout Plain Layout
12831 Noter que, à part cette fonctionnalité, il n'y a aucun moyen de garantir
12832 un ordonnancement des préambules.
12833 L'ordre que vous constatez avec une version de \SpecialChar LyX
12834 peut changer sans préavis
12835 dans les versions ultérieures.
12843 \begin_layout Description
12846 \begin_inset Flex Code
12849 \begin_layout Plain Layout
12877 ] fixe le type de marqueur qui se trouve à la fin du paragraphe (ou de la
12878 suite de paragraphes si
12879 \begin_inset Flex Code
12882 \begin_layout Plain Layout
12889 \begin_inset Flex Code
12892 \begin_layout Plain Layout
12899 \begin_inset Flex Code
12902 \begin_layout Plain Layout
12909 \begin_inset Flex Code
12912 \begin_layout Plain Layout
12920 \begin_inset Flex Code
12923 \begin_layout Plain Layout
12930 \begin_inset Quotes cld
12934 \begin_inset Quotes crd
12938 \begin_inset Flex Code
12941 \begin_layout Plain Layout
12948 \begin_inset Flex Code
12951 \begin_layout Plain Layout
12957 ) est un carré blanc (respectivement noir) en général placé à la fin des
12960 \begin_inset Flex Code
12963 \begin_layout Plain Layout
12969 est une chaîne de caractères explicitement donnée.
12972 \begin_layout Description
12975 \begin_inset Flex Code
12978 \begin_layout Plain Layout
12989 \begin_inset Flex Code
12992 \begin_layout Plain Layout
12998 fixe la chaîne utilisée pour le marqueur quand
12999 \begin_inset Newline newline
13003 \begin_inset Flex Code
13006 \begin_layout Plain Layout
13013 \begin_inset Flex Code
13016 \begin_layout Plain Layout
13025 \begin_layout Description
13028 \begin_inset Flex Code
13031 \begin_layout Plain Layout
13041 fixe la police utilisée à la fois pour le corps du texte
13047 \begin_inset CommandInset ref
13049 reference "subsec:polices"
13054 Noter qu'en définissant cette police on définit aussi automatiquement
13057 \begin_inset Flex Code
13060 \begin_layout Plain Layout
13070 avec la même valeur.
13071 Il faut donc définir celle-ci d'abord pour fixer
13074 \begin_inset Flex Code
13077 \begin_layout Plain Layout
13090 \begin_layout Description
13093 \begin_inset Flex Code
13096 \begin_layout Plain Layout
13107 \begin_inset Flex Code
13110 \begin_layout Plain Layout
13116 ] est utile pour forcer la portabilité de nouveaux styles vers des versions
13117 stables de \SpecialChar LyX
13119 La première version stable qui interprète cette directive est \SpecialChar LyX
13121 L'argument est un nombre qui peut être 0, -1 ou n'importe quel entier positif.
13123 \begin_inset Flex Code
13126 \begin_layout Plain Layout
13132 est positif, il sera toujours émis vers le préambule du document.
13133 Lors de la lecture d'un fichier
13137 , les définitions de style du préambule du document sont ajoutées à la classe
13139 De ce fait même les versions de \SpecialChar LyX
13140 plus anciennes peuvent gérer ce style.
13144 \begin_inset Flex Code
13147 \begin_layout Plain Layout
13157 est un numéro de version : si le style est lu, et si le numéro de version
13158 est inférieur au numéro de version du style existant dans la classe de
13159 document, le nouveau style est ignoré.
13160 Si le numéro de version est supérieur, le nouveau style remplace l'ancien.
13161 La valeur -1 signifie un numéro de version infini, c'est-à-dire que le
13162 style est toujours utilisé.
13165 \begin_layout Description
13168 \begin_inset Flex Code
13171 \begin_layout Plain Layout
13182 \begin_inset Flex Code
13185 \begin_layout Plain Layout
13194 \begin_inset space \thinspace{}
13198 \begin_inset Flex Code
13201 \begin_layout Plain Layout
13208 ne permet pas d'habitude d'insérer plus d'une espace entre deux mots,
13209 car une espace est considérée comme un séparateur de mots, non comme un
13210 caractère ou un symbole en tant que tel.
13211 C'est très bien mais c'est parfois ennuyeux, par exemple pour taper un
13212 code source de programme ou du code \SpecialChar LaTeX
13214 C'est pourquoi on peut activer
13215 \begin_inset Flex Code
13218 \begin_layout Plain Layout
13225 Noter que \SpecialChar LyX
13226 créera les espaces insécables correspondants aux espaces additionnel
13227 les pour tous les modes autres que le mode \SpecialChar LaTeX
13231 \begin_layout Description
13234 \begin_inset Flex Code
13237 \begin_layout Plain Layout
13245 sont utilisées avec l'exportation XHTML.
13247 \begin_inset CommandInset ref
13249 reference "subsec:Styles-de-paragraphe-XHTML"
13256 \begin_layout Description
13259 \begin_inset Flex Code
13262 \begin_layout Plain Layout
13272 (Utilisable uniquement avec les formats XML).
13275 \begin_layout Description
13278 \begin_inset Flex Code
13281 \begin_layout Plain Layout
13295 \begin_inset Flex Code
13298 \begin_layout Plain Layout
13307 \begin_inset space \thinspace{}
13311 \begin_inset Flex Code
13314 \begin_layout Plain Layout
13321 \begin_inset Flex Code
13324 \begin_layout Plain Layout
13330 que que le style doit être inclus dans le préambule plutôt que dans le
13332 Ceci est utile pour les classes de document qui désirent que les informations
13333 telles que le titre et l'auteur figurent dans le préambule.
13334 Notez bien que ceci ne fonctionne que pour les styles pour lesquels
13335 \begin_inset Flex Code
13338 \begin_layout Plain Layout
13347 \begin_inset Flex Code
13350 \begin_layout Plain Layout
13361 \begin_inset Flex Code
13364 \begin_layout Plain Layout
13375 \begin_layout Description
13378 \begin_inset Flex Code
13381 \begin_layout Plain Layout
13395 \begin_inset Flex Code
13398 \begin_layout Plain Layout
13407 \begin_inset space \thinspace{}
13411 \begin_inset Flex Code
13414 \begin_layout Plain Layout
13421 \begin_inset Flex Code
13424 \begin_layout Plain Layout
13430 que le style fait partie d'un bloc de titre (voir aussi
13431 \begin_inset Flex Code
13434 \begin_layout Plain Layout
13443 \begin_inset Flex Code
13446 \begin_layout Plain Layout
13454 dans les paramètres généraux).
13455 \change_inserted -712698321 1514710619
13459 \begin_layout Description
13461 \change_inserted -712698321 1514710619
13464 \begin_inset Flex Code
13467 \begin_layout Plain Layout
13469 \change_inserted -712698321 1514710619
13477 Includes a comma-separated list of layout names after which this one should
13479 Only makes sense with regard to nestable layouts (such as environments).
13481 \begin_inset Quotes eld
13485 \begin_inset Flex Code
13488 \begin_layout Plain Layout
13490 \change_inserted -712698321 1514710619
13499 \begin_inset Quotes erd
13504 \begin_inset Flex Code
13507 \begin_layout Plain Layout
13509 \change_inserted -712698321 1514710764
13522 \begin_layout Description
13525 \begin_inset Flex Code
13528 \begin_layout Plain Layout
13537 \begin_inset Flex Code
13540 \begin_layout Plain Layout
13550 \begin_inset space \thinspace{}
13554 \begin_inset Flex Code
13557 \begin_layout Plain Layout
13565 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13566 of its contents in its item in the table of contents.
13567 Otherwise, only the label, if it exists, appears.
13570 \begin_layout Description
13573 \begin_inset Flex Code
13576 \begin_layout Plain Layout
13587 \begin_inset Flex Code
13590 \begin_layout Plain Layout
13596 ] est la commande \SpecialChar LaTeX
13597 permettant de déclarer un élément d'une liste.
13598 La commande doit être définie sans la barre oblique inverse qui la précède
13599 habituellement (implicitement
13600 \begin_inset Quotes cld
13604 \begin_inset Quotes crd
13607 , qui est émis comme
13608 \begin_inset Flex Code
13611 \begin_layout Plain Layout
13619 en \SpecialChar LaTeX
13623 \begin_layout Description
13626 \begin_inset Flex Code
13629 \begin_layout Plain Layout
13640 \begin_inset Flex Code
13643 \begin_layout Plain Layout
13649 ] crée un espacement supplémentaire entre les paragraphes du même style
13650 dans un environnement.
13651 Si vous emboîtez des paragraphes d'autres formats dans un environnement,
13652 ils seront espacés de
13653 \begin_inset Flex Code
13656 \begin_layout Plain Layout
13663 Mais les éléments de l'environnement seront en plus espacés de
13664 \begin_inset Flex Code
13667 \begin_layout Plain Layout
13681 \begin_layout Description
13684 \begin_inset Flex Code
13687 \begin_layout Plain Layout
13697 (Utilisable uniquement avec les formats XML).
13700 \begin_layout Description
13703 \begin_inset Flex Code
13706 \begin_layout Plain Layout
13717 \begin_inset Flex Code
13720 \begin_layout Plain Layout
13729 \begin_inset space \thinspace{}
13733 \begin_inset Flex Code
13736 \begin_layout Plain Layout
13742 ] permet de laisser un paragraphe vide, ce que \SpecialChar LyX
13743 ne permet pas d'habitude
13744 car il ne générerait rien en \SpecialChar LaTeX
13746 Il y a quelques cas où c'est pourtant utile: dans un modèle pour une lettre,
13747 les champs requis peuvent être laissés vides, pour que les gens ne les
13748 oublient pas; dans certains cas particuliers, un style peut aussi servir
13749 de séparateur, et ne pas contenir de texte.
13752 \begin_layout Description
13755 \begin_inset Flex Code
13758 \begin_layout Plain Layout
13772 \begin_inset Flex Code
13775 \begin_layout Plain Layout
13781 ] fixe l'espacement vertical entre le marqueur et le corps du texte.
13782 Sert seulement pour les marqueurs qui sont au dessus du corps du texte
13784 \begin_inset Flex Code
13787 \begin_layout Plain Layout
13794 \begin_inset Flex Code
13797 \begin_layout Plain Layout
13798 Centered_Top_Environment
13806 \begin_layout Description
13809 \begin_inset Flex Code
13812 \begin_layout Plain Layout
13823 \begin_inset Flex Code
13826 \begin_layout Plain Layout
13832 dénomme le compteur pour la numérotation automatique.
13833 Pour que le compteur soit associé à votre étiquette, il vous faut le référencer
13837 \begin_inset Flex Code
13840 \begin_layout Plain Layout
13852 Ceci fonctionnera avec les
13855 \begin_inset Flex Code
13858 \begin_layout Plain Layout
13867 \begin_inset Flex Code
13870 \begin_layout Plain Layout
13879 \begin_inset Flex Code
13882 \begin_layout Plain Layout
13891 \begin_inset Flex Code
13894 \begin_layout Plain Layout
13905 \begin_inset Newline newline
13913 \begin_inset Flex Code
13916 \begin_layout Plain Layout
13925 \begin_inset Flex Code
13928 \begin_layout Plain Layout
13936 , bien que ce cas soit un peu compliqué.
13937 Supposez que vous déclariez
13938 \begin_inset Flex Code
13941 \begin_layout Plain Layout
13942 \begin_inset Quotes cld
13945 LabelCounter monEnum
13951 \begin_inset Quotes crd
13955 Les compteurs effectivement utilisés sont alors
13956 \begin_inset Flex Code
13959 \begin_layout Plain Layout
13966 \begin_inset Flex Code
13969 \begin_layout Plain Layout
13976 \begin_inset Flex Code
13979 \begin_layout Plain Layout
13986 \begin_inset Flex Code
13989 \begin_layout Plain Layout
13995 , tout à fait comme en \SpecialChar LaTeX
13997 Ces compteurs doivent être tous déclarés séparément.
13998 \begin_inset Newline newline
14002 \begin_inset CommandInset ref
14004 reference "subsec:Compteurs"
14008 pour les détails sur les compteurs.
14011 \begin_layout Description
14014 \begin_inset Flex Code
14017 \begin_layout Plain Layout
14027 fixe la police utilisée pour le marqueur.
14029 \begin_inset CommandInset ref
14031 reference "subsec:polices"
14038 \begin_layout Description
14041 \begin_inset Flex Code
14044 \begin_layout Plain Layout
14055 \begin_inset Flex Code
14058 \begin_layout Plain Layout
14064 fixe le texte indiquent l'importance de l'indentation d'un marqueur.
14067 \begin_layout Description
14070 \begin_inset Flex Code
14073 \begin_layout Plain Layout
14084 \begin_inset Flex Code
14087 \begin_layout Plain Layout
14093 fixe le texte indiquent l'espacement horizontal entre le marqueur et le
14095 Sert seulement pour les marqueurs qui ne sont pas au dessus du corps du
14099 \begin_layout Description
14102 \begin_inset Flex Code
14105 \begin_layout Plain Layout
14116 \begin_inset Flex Code
14119 \begin_layout Plain Layout
14125 fixe la chaîne utilisée comme marqueur avec le
14128 \begin_inset Flex Code
14131 \begin_layout Plain Layout
14140 \begin_inset Flex Code
14143 \begin_layout Plain Layout
14157 \begin_inset Flex Code
14160 \begin_layout Plain Layout
14170 est indiqué, cette chaîne peut contenir les instructions de formatage particuli
14171 ères décrites dans la
14172 \begin_inset CommandInset ref
14174 reference "subsec:Compteurs"
14181 \begin_layout Description
14184 \begin_inset Flex Code
14187 \begin_layout Plain Layout
14190 LabelStringAppendix
14198 \begin_inset Flex Code
14201 \begin_layout Plain Layout
14207 est utilisée dans une annexe à la place de
14208 \begin_inset Flex Code
14211 \begin_layout Plain Layout
14220 Noter que toute directive
14221 \begin_inset Flex Code
14224 \begin_layout Plain Layout
14233 \begin_inset Newline newline
14237 \begin_inset Flex Code
14240 \begin_layout Plain Layout
14243 LabelStringAppendix
14251 \begin_layout Description
14254 \begin_inset Flex Code
14257 \begin_layout Plain Layout
14267 (Utilisable uniquement avec les formats XML).
14270 \begin_layout Description
14273 \begin_inset Flex Code
14276 \begin_layout Plain Layout
14287 \begin_inset Flex Code
14290 \begin_layout Plain Layout
14301 \begin_inset Newline newline
14308 Sensitive, Enumerate,
14309 \begin_inset Newline newline
14312 Itemize, Bibliography
14323 \begin_layout Description
14324 \begin_inset Flex Code
14327 \begin_layout Plain Layout
14335 veut dire que le marqueur est le premier mot (avant la première vraie espace).
14336 Utilisez des espaces insécables si vous voulez mettre plus d'un mot dans
14340 \begin_layout Description
14341 \begin_inset Flex Code
14344 \begin_layout Plain Layout
14352 veut dire qu'il est défini dans le style (voir
14353 \begin_inset Flex Code
14356 \begin_layout Plain Layout
14366 \begin_inset Quotes cld
14370 \begin_inset Quotes crd
14373 , au début du paragraphe.Si le
14376 \begin_inset Flex Code
14379 \begin_layout Plain Layout
14392 \begin_inset Flex Code
14395 \begin_layout Plain Layout
14405 , alors il ne sera affiché que dans le premier paragraphe de toutes séquence
14406 de paragraphes du même
14409 \begin_inset Flex Code
14412 \begin_layout Plain Layout
14425 \begin_layout Description
14428 \begin_inset Flex Code
14431 \begin_layout Plain Layout
14442 \begin_inset space ~
14446 \begin_inset space ~
14452 \begin_inset Flex Code
14455 \begin_layout Plain Layout
14465 sont des cas particuliers de
14466 \begin_inset Flex Code
14469 \begin_layout Plain Layout
14478 Le marqueur sera imprimé au dessus du paragraphe, soit au début de la lignes,
14482 \begin_layout Description
14483 \begin_inset Flex Code
14486 \begin_layout Plain Layout
14494 est un cas particulier pour les marqueurs de légende
14495 \begin_inset Quotes cld
14499 \begin_inset Quotes crd
14503 \begin_inset Quotes cld
14507 \begin_inset Quotes crd
14512 \begin_inset Flex Code
14515 \begin_layout Plain Layout
14523 signifie que le mot affiché (défini en dur) dépend du type de flottant:
14524 il est défini dans les sources comme
14525 \begin_inset Quotes cld
14529 \begin_inset Flex Code
14532 \begin_layout Plain Layout
14541 \begin_inset Quotes crd
14545 \begin_inset Flex Code
14548 \begin_layout Plain Layout
14554 est la valeur du compteur associé au flottant.
14555 Au cas où une légende est insérée en dehors d'un flottant, le
14558 \begin_inset Flex Code
14561 \begin_layout Plain Layout
14572 \begin_inset Quotes cld
14576 \begin_inset Quotes crd
14582 \begin_layout Description
14583 \begin_inset Flex Code
14586 \begin_layout Plain Layout
14594 produit le type habituel d'étiquettes d'énumération.
14597 The number type needs to be set in the
14603 \begin_inset CommandInset ref
14605 reference "subsec:Compteurs"
14612 \begin_layout Description
14615 \begin_inset Flex Code
14618 \begin_layout Plain Layout
14628 produit des symboles pour les différents niveaux.
14631 The bullet types displayed can be set via
14634 \begin_inset Flex Noun
14637 \begin_layout Plain Layout
14638 Document\SpecialChar menuseparator
14639 Paramètres\SpecialChar menuseparator
14648 \begin_layout Description
14651 \begin_inset Flex Code
14654 \begin_layout Plain Layout
14664 ne doit être utilisé qu'avec
14667 \begin_inset Flex Code
14670 \begin_layout Plain Layout
14673 LatexType BibEnvironment
14682 \begin_layout Description
14685 \begin_inset Flex Code
14688 \begin_layout Plain Layout
14698 écrasera complètement toute autre directive
14699 \begin_inset Flex Code
14702 \begin_layout Plain Layout
14709 Doit être fermée par
14710 \begin_inset Flex Code
14713 \begin_layout Plain Layout
14720 \begin_inset Newline newline
14724 \begin_inset CommandInset ref
14726 reference "subsec:I18n"
14730 pour les détails d'utilisation.
14733 \begin_layout Description
14736 \begin_inset Flex Code
14739 \begin_layout Plain Layout
14750 \begin_inset Flex Code
14753 \begin_layout Plain Layout
14759 ] fixe le nom de l'objet \SpecialChar LaTeX
14760 correspondant, soit l'environnement, soit la commande.
14763 \begin_layout Description
14766 \begin_inset Flex Code
14769 \begin_layout Plain Layout
14780 \begin_inset Flex Code
14783 \begin_layout Plain Layout
14789 ] fixe le paramètre facultatif de l'objet
14790 \begin_inset Flex Code
14793 \begin_layout Plain Layout
14800 Ce paramètre ne peut pas être changé depuis \SpecialChar LyX
14802 \begin_inset Flex Code
14805 \begin_layout Plain Layout
14811 pour les paramètres personnalisables).
14812 Ceci sera émis tel quel après tous les
14813 \begin_inset Flex Code
14816 \begin_layout Plain Layout
14822 s \SpecialChar LaTeX
14826 \begin_layout Description
14829 \begin_inset Flex Code
14832 \begin_layout Plain Layout
14843 \begin_inset Flex Code
14846 \begin_layout Plain Layout
14852 , Command, Environment, Item_Environment,
14853 \begin_inset Newline newline
14856 List_Environment, Bib_Environment
14863 ] décrit comment traduire l'environnement en \SpecialChar LaTeX
14868 \begin_layout Plain Layout
14869 \begin_inset Flex Code
14872 \begin_layout Plain Layout
14880 est peut-être trompeur, dans la mesure où ces règles s'appliquent également
14881 aux classes DocBook.
14882 Explorer les fichiers des classes DocBook (noms de fichiers
14883 \begin_inset Flex Code
14886 \begin_layout Plain Layout
14892 ) pour voir des exemples particuliers.
14901 \begin_layout Description
14902 \begin_inset Flex Code
14905 \begin_layout Plain Layout
14912 \begin_inset Quotes cld
14916 \begin_inset Quotes crd
14922 \begin_layout Description
14923 \begin_inset Flex Code
14926 \begin_layout Plain Layout
14933 \begin_inset Flex Code
14936 \begin_layout Plain Layout
14943 {\SpecialChar ldots
14952 \begin_layout Description
14953 \begin_inset Flex Code
14956 \begin_layout Plain Layout
14963 \begin_inset Flex Code
14966 \begin_layout Plain Layout
14973 }\SpecialChar ldots
14988 \begin_layout Description
14989 \begin_inset Flex Code
14992 \begin_layout Plain Layout
14998 est la même chose que
14999 \begin_inset Flex Code
15002 \begin_layout Plain Layout
15008 , sauf qu'il génère un
15009 \begin_inset Flex Code
15012 \begin_layout Plain Layout
15020 pour chaque paragraphe de l'environnement.
15023 \begin_layout Description
15024 \begin_inset Flex Code
15027 \begin_layout Plain Layout
15033 est la même chose que
15034 \begin_inset Flex Code
15037 \begin_layout Plain Layout
15044 \begin_inset Newline newline
15048 \begin_inset Flex Code
15051 \begin_layout Plain Layout
15057 est passé en paramètre de l'environnement.
15058 \begin_inset Newline newline
15062 \begin_inset Flex Code
15065 \begin_layout Plain Layout
15071 peut être défini dans la fenêtre
15072 \begin_inset Flex Noun
15075 \begin_layout Plain Layout
15076 Édition\SpecialChar menuseparator
15077 Paramètres de Paragraphe
15085 \begin_layout Description
15088 \begin_inset Flex Code
15091 \begin_layout Plain Layout
15104 \begin_inset Flex Code
15107 \begin_layout Plain Layout
15117 , mais ajoute l'argument obligatoire nécessaire (l'étiquette la plus longue)
15118 à la directive de début de l’environnement bibliographique:
15121 \begin_inset Newline newline
15125 \begin_inset Flex Code
15128 \begin_layout Plain Layout
15133 begin{thebibliography}{99}
15141 Cette directive n'est donc nécessaire que pour les environnements bibliographiq
15143 L’étiquette implicite
15144 \begin_inset Quotes cld
15148 \begin_inset Quotes crd
15151 peut être modifiée par l'utilisateur dans les réglages de paragraphe d'une
15152 entrée bibliographique.
15155 \begin_layout Standard
15156 En collectant ces derniers éléments, l'exportation \SpecialChar LaTeX
15160 \begin_layout LyX-Code
15165 LatexName[LatexParam]{\SpecialChar ldots
15169 \begin_layout Standard
15173 \begin_layout LyX-Code
15178 begin{LatexName}[LatexParam] \SpecialChar ldots
15184 \begin_layout Standard
15185 en fonction du type \SpecialChar LaTeX
15190 \begin_layout Description
15193 \begin_inset Flex Code
15196 \begin_layout Plain Layout
15207 \begin_inset Flex Code
15210 \begin_layout Plain Layout
15216 ] définit une chaîne de caractères insérée au début du contenu du style.
15217 Une rupture de ligne dans la sortie peut être indiquée par
15218 \begin_inset Flex Code
15221 \begin_layout Plain Layout
15230 \begin_layout Description
15233 \begin_inset Flex Code
15236 \begin_layout Plain Layout
15247 \begin_inset Flex Code
15250 \begin_layout Plain Layout
15256 fixe la marge gauche: si vous mettez des styles dans un environnement,
15260 \begin_inset Flex Code
15263 \begin_layout Plain Layout
15273 ne seront pas ajoutées directement, mais avec un facteur
15274 \begin_inset Formula $\frac{4}{\mathrm{profondeur}+4}$
15278 Notez que ce paramètre sert aussi quand
15281 \begin_inset Flex Code
15284 \begin_layout Plain Layout
15295 \begin_inset Flex Code
15298 \begin_layout Plain Layout
15307 \begin_inset Flex Code
15310 \begin_layout Plain Layout
15319 Il est alors ajouté à la marge manuelle ou dynamique.
15320 \begin_inset Newline newline
15324 \begin_inset Quotes cld
15328 \begin_inset Flex Code
15331 \begin_layout Plain Layout
15338 \begin_inset Quotes crd
15341 signifie que le paragraphe est indenté avec la largeur de
15342 \begin_inset Quotes cld
15346 \begin_inset Flex Code
15349 \begin_layout Plain Layout
15356 \begin_inset Quotes crd
15359 dans la police normale.
15360 Il est possible de créer une largeur négative avec
15361 \begin_inset Quotes cld
15365 \begin_inset Flex Code
15368 \begin_layout Plain Layout
15375 \begin_inset Quotes crd
15379 Cette solution a été choisie pour que l'apparence soit la même quelle que
15380 soit la police d'écran.
15383 \begin_layout Description
15386 \begin_inset Flex Code
15389 \begin_layout Plain Layout
15398 \begin_inset Flex Code
15401 \begin_layout Plain Layout
15407 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15413 \begin_inset Newline newline
15418 fixe le type de marge à gauche du format.
15422 \begin_layout Description
15423 \begin_inset Flex Code
15426 \begin_layout Plain Layout
15434 veut dire une marge fixe.
15437 \begin_layout Description
15438 \begin_inset Flex Code
15441 \begin_layout Plain Layout
15449 veut dire que la marge de gauche dépend de ce qu'il y a dans la fenêtre
15451 \begin_inset Flex Noun
15454 \begin_layout Plain Layout
15455 Édition\SpecialChar menuseparator
15457 \begin_inset space ~
15461 \begin_inset space ~
15470 Ceci sert à obtenir des listes bien mises en page sans tabulations.
15473 \begin_layout Description
15474 \begin_inset Flex Code
15477 \begin_layout Plain Layout
15485 veut dire que la marge dépend de la taille du marqueur.
15486 Ceci sert entre autres aux en-têtes numérotés.
15487 Il est évident que l'en-tête
15488 \begin_inset Quotes cld
15491 5.4.3.2.1 Très long en-tête
15492 \begin_inset Quotes crd
15495 doit avoir une marge de gauche plus grande (autant que
15496 \begin_inset Quotes cld
15500 \begin_inset Quotes crd
15504 \begin_inset Quotes cld
15507 3.2 Très long en-tête
15508 \begin_inset Quotes crd
15511 , même si les autres traitements de texte ne savent pas le faire.
15514 \begin_layout Description
15515 \begin_inset Flex Code
15518 \begin_layout Plain Layout
15526 est similaire, mais seulement la toute première ligne du paragraphe est
15527 dynamique, les autres étant statiques; ceci est utile par exemple pour
15531 \begin_layout Description
15532 \begin_inset Flex Code
15535 \begin_layout Plain Layout
15543 signifie que la marge est choisie pour que la ligne la plus longue du paragraph
15544 e touche la marge de droite.
15545 Ceci sert à typographier une adresse sur le bord droit de la page.
15549 \begin_layout Description
15552 \begin_inset Flex Code
15555 \begin_layout Plain Layout
15566 \begin_inset Flex Code
15569 \begin_layout Plain Layout
15578 \begin_inset space \thinspace{}
15582 \begin_inset Flex Code
15585 \begin_layout Plain Layout
15591 ] indique si les commandes fragiles doivent être protégées par
15592 \begin_inset Flex Code
15595 \begin_layout Plain Layout
15603 dans ce style (Note: ceci n'indique pas si cette commande elle-même doit
15607 \begin_layout Description
15610 \begin_inset Flex Code
15613 \begin_layout Plain Layout
15624 \begin_inset Flex Code
15627 \begin_layout Plain Layout
15634 \begin_inset space \thinspace{}
15638 \begin_inset Flex Code
15641 \begin_layout Plain Layout
15649 ] indique si les nouvelles lignes sont traduites ou non en sauts de ligne
15652 \begin_inset Flex Code
15655 \begin_layout Plain Layout
15666 La traduction peut être désactivée pour permettre d'éditer plus confortablement
15667 du \SpecialChar LaTeX
15668 depuis \SpecialChar LyX
15672 \begin_layout Description
15675 \begin_inset Flex Code
15678 \begin_layout Plain Layout
15689 \begin_inset Flex Code
15692 \begin_layout Plain Layout
15701 \begin_inset space \thinspace{}
15705 \begin_inset Flex Code
15708 \begin_layout Plain Layout
15714 ] indique si \SpecialChar LyX
15715 indente ou non la première ligne du paragraphe suivant.
15717 \begin_inset Flex Code
15720 \begin_layout Plain Layout
15726 veut dire qu'il ne peut pas,
15727 \begin_inset Flex Code
15730 \begin_layout Plain Layout
15736 veut dire qu'il peut s'il le veut.
15739 \begin_layout Description
15742 \begin_inset Flex Code
15745 \begin_layout Plain Layout
15756 \begin_inset Flex Code
15759 \begin_layout Plain Layout
15765 ] dénomme un style qui a remplacé ce style en cours.
15766 Ceci est utilisé pour renommer un style en conservant la rétrocompatibilité.
15769 \begin_layout Description
15772 \begin_inset Flex Code
15775 \begin_layout Plain Layout
15784 \begin_inset Flex Code
15787 \begin_layout Plain Layout
15796 \begin_inset space \thinspace{}
15800 \begin_inset Flex Code
15803 \begin_layout Plain Layout
15813 détermine si les paragraphes consécutifs du même type sont traités ensemble.
15814 Ceci a pour effet de déclencher une seule fois pour le groupe l'impression
15816 \begin_inset Flex Code
15819 \begin_layout Plain Layout
15826 Implicitement, ceci est vrai pour les environnements
15827 \begin_inset Flex Code
15830 \begin_layout Plain Layout
15837 \begin_inset Flex Code
15840 \begin_layout Plain Layout
15847 \begin_inset Flex Code
15850 \begin_layout Plain Layout
15856 et faux pour tous les autres types.
15859 \begin_layout Description
15862 \begin_inset Flex Code
15865 \begin_layout Plain Layout
15876 \begin_inset Flex Code
15879 \begin_layout Plain Layout
15888 \begin_inset space \thinspace{}
15892 \begin_inset Flex Code
15895 \begin_layout Plain Layout
15901 ] indique que les paragraphes ne seront pas séparés par une ligne vide dans
15902 le résultat \SpecialChar LaTeX
15903 , mais par un retour à la ligne; combiné avec
15904 \begin_inset Flex Code
15907 \begin_layout Plain Layout
15913 , ceci permet d'émuler une éditeur plein texte (comme l'insert code \SpecialChar TeX
15917 \begin_layout Description
15920 \begin_inset Flex Code
15923 \begin_layout Plain Layout
15934 \begin_inset Flex Code
15937 \begin_layout Plain Layout
15943 fixe l'indentation de la toute première ligne d'un paragraphe.
15945 \begin_inset Flex Code
15948 \begin_layout Plain Layout
15954 est fixé pour un format donné, à l'exception du format
15955 \begin_inset Flex Code
15958 \begin_layout Plain Layout
15964 , car l'indentation d'un paragraphe dans l'environnement
15965 \begin_inset Flex Code
15968 \begin_layout Plain Layout
15974 peut être empêchée par
15975 \begin_inset Flex Code
15978 \begin_layout Plain Layout
15985 De plus, les paragraphes de style
15986 \begin_inset Flex Code
15989 \begin_layout Plain Layout
15995 emboîtés dans d'autres environnements utilisent le
15996 \begin_inset Flex Code
15999 \begin_layout Plain Layout
16005 de l'environne\SpecialChar softhyphen
16007 Par exemple, les paragraphes
16008 \begin_inset Flex Code
16011 \begin_layout Plain Layout
16017 dans une énumération ne sont pas indentés.
16020 \begin_layout Description
16023 \begin_inset Flex Code
16026 \begin_layout Plain Layout
16040 ] fixe l'espacement vertical entre deux paragraphes dans le style.
16043 \begin_layout Description
16046 \begin_inset Flex Code
16049 \begin_layout Plain Layout
16063 ] fixe la valeur d'interligne entre paragraphes.
16065 donne le choix entre
16066 \begin_inset Flex Code
16069 \begin_layout Plain Layout
16076 \begin_inset Flex Code
16079 \begin_layout Plain Layout
16085 pour séparer les paragraphes.
16087 \begin_inset Flex Code
16090 \begin_layout Plain Layout
16096 , cette valeur n'est pas prise en compte.
16098 \begin_inset Flex Code
16101 \begin_layout Plain Layout
16108 \begin_inset Flex Code
16111 \begin_layout Plain Layout
16117 n'est pas prise en compte et tous les paragraphes sont séparés par ce paramètre
16119 \begin_inset Flex Code
16122 \begin_layout Plain Layout
16128 , en plus de l'interligne normal.
16129 L'espacement vertical est calculé par
16130 \begin_inset Flex Code
16133 \begin_layout Plain Layout
16134 valeur*DefaultHeight()
16143 est la valeur choisie pour
16144 \begin_inset Flex Code
16147 \begin_layout Plain Layout
16154 \begin_inset Flex Code
16157 \begin_layout Plain Layout
16163 est la hauteur d'une ligne dans la police normale.
16164 De cette façon, l'aspect reste le même quelle que soit la police à l'écran.
16167 \begin_layout Description
16170 \begin_inset Flex Code
16173 \begin_layout Plain Layout
16184 \begin_inset Flex Code
16187 \begin_layout Plain Layout
16196 \begin_inset space \thinspace{}
16200 \begin_inset Flex Code
16203 \begin_layout Plain Layout
16209 ] indique si le contenu du paragraphe doit être passé sous forme brute,
16210 c'est-à-dire sans les traductions spéciales dont \SpecialChar LaTeX
16215 \begin_layout Description
16218 \begin_inset Flex Code
16221 \begin_layout Plain Layout
16232 \begin_inset Flex Code
16235 \begin_layout Plain Layout
16246 Defines individual characters that should be output in raw form, meaning
16247 without special translations that \SpecialChar LaTeX
16251 \begin_layout Description
16254 \begin_inset Flex Code
16257 \begin_layout Plain Layout
16267 fixe le contenu à inclure dans le préambule \SpecialChar LaTeX
16268 quand le style est utilisé.
16269 Utile pour définir des macros, charger des paquetages, etc.
16270 requis pour ce style particulier.
16271 Doit être fermé par
16272 \begin_inset Quotes cld
16276 \begin_inset Flex Code
16279 \begin_layout Plain Layout
16288 \begin_inset Quotes crd
16294 \begin_layout Description
16297 \begin_inset Flex Code
16300 \begin_layout Plain Layout
16311 \begin_inset Flex Code
16314 \begin_layout Plain Layout
16320 ] indique le préfixe à utiliser pour créer des étiquettes référant les paragraph
16322 Ceci permet l'utilisation de références mises en forme.
16325 \begin_layout Description
16328 \begin_inset Flex Code
16331 \begin_layout Plain Layout
16342 \begin_inset Flex Code
16345 \begin_layout Plain Layout
16351 ] indique que le style requiert la fonctionnalité chaîne (voir
16352 \begin_inset CommandInset ref
16354 reference "chap:List-of-functions"
16358 pour la liste des fonctionnalités).
16359 Si vous demandez un paquetage doté d'options spécifiques, vous pouvez en
16361 \begin_inset Flex Code
16364 \begin_layout Plain Layout
16370 en tant que paramètre général pour la classe de texte (voir
16371 \begin_inset CommandInset ref
16373 reference "subsec:Paramètres-généraux-d'une"
16380 \begin_layout Description
16383 \begin_inset Flex Code
16386 \begin_layout Plain Layout
16397 \begin_inset Flex Code
16400 \begin_layout Plain Layout
16409 \begin_inset Flex Code
16412 \begin_layout Plain Layout
16418 ] réinitialise les arguments \SpecialChar LaTeX
16419 de ce style ( tels que définis par la directive
16422 \begin_inset Flex Code
16425 \begin_layout Plain Layout
16436 Ceci est utile si vous avez dupliqué un style en utilisant
16439 \begin_inset Flex Code
16442 \begin_layout Plain Layout
16452 , et que vous ne voulez pas hériter de ses arguments (obligatoires et optionnels
16456 \begin_layout Description
16459 \begin_inset Flex Code
16462 \begin_layout Plain Layout
16471 \begin_inset Flex Code
16474 \begin_layout Plain Layout
16484 \begin_inset Flex Code
16487 \begin_layout Plain Layout
16495 ] Resumes a counter that is usually reset at each new sequence of layouts.
16496 This is currently only useful when
16497 \begin_inset Flex Code
16500 \begin_layout Plain Layout
16509 \begin_inset Flex Code
16512 \begin_layout Plain Layout
16523 \begin_layout Description
16526 \begin_inset Flex Code
16529 \begin_layout Plain Layout
16540 \begin_inset Flex Code
16543 \begin_layout Plain Layout
16549 ] définit une chaîne de caractères insérée à la fin du contenu du style.
16550 Une rupture de ligne dans la sortie peut être indiquée par
16551 \begin_inset Flex Code
16554 \begin_layout Plain Layout
16563 \begin_layout Description
16566 \begin_inset Flex Code
16569 \begin_layout Plain Layout
16580 \begin_inset Flex Code
16583 \begin_layout Plain Layout
16596 \begin_layout Description
16599 \begin_inset Flex Code
16602 \begin_layout Plain Layout
16615 \begin_inset Flex Code
16618 \begin_layout Plain Layout
16628 \begin_inset Flex Code
16631 \begin_layout Plain Layout
16640 \begin_inset Flex Code
16643 \begin_layout Plain Layout
16652 \begin_inset Flex Code
16655 \begin_layout Plain Layout
16661 \begin_inset space ~
16671 ] définit l'interligne par défaut dans ce style.
16673 \begin_inset Flex Code
16676 \begin_layout Plain Layout
16683 \begin_inset Flex Code
16686 \begin_layout Plain Layout
16693 \begin_inset Flex Code
16696 \begin_layout Plain Layout
16702 correspondent respectivement à un facteur multiplicatif de 1, 1,25 et 1,667.
16703 Si vous mettez le paramètre
16704 \begin_inset Flex Code
16707 \begin_layout Plain Layout
16713 , vous devez aussi mettre une valeur numérique qui servira de facteur multiplica
16715 Notez que, contrairement aux autres paramètres,
16716 \begin_inset Flex Code
16719 \begin_layout Plain Layout
16725 implique de générer du code \SpecialChar LaTeX
16726 spécifique, qui utilise le paquetage \SpecialChar LaTeX
16728 \begin_inset Flex Code
16731 \begin_layout Plain Layout
16740 \begin_layout Description
16743 \begin_inset Flex Code
16746 \begin_layout Plain Layout
16757 \begin_inset Flex Code
16760 \begin_layout Plain Layout
16767 \begin_inset space \thinspace{}
16771 \begin_inset Flex Code
16774 \begin_layout Plain Layout
16782 ] active la correction orthographique du style.
16783 Implicitement vrai.
16786 \begin_layout Description
16789 \begin_inset Flex Code
16792 \begin_layout Plain Layout
16801 \begin_inset Flex Code
16804 \begin_layout Plain Layout
16814 \begin_inset Flex Code
16817 \begin_layout Plain Layout
16825 ] Steps the master counter of a given counter at the beginning of a new
16826 sequence of layouts.
16827 This is currently only useful when
16828 \begin_inset Flex Code
16831 \begin_layout Plain Layout
16840 \begin_inset Flex Code
16843 \begin_layout Plain Layout
16854 \begin_layout Description
16857 \begin_inset Flex Code
16860 \begin_layout Plain Layout
16870 fixe la police utilisée pour le corps du texte.
16872 \begin_inset CommandInset ref
16874 reference "subsec:polices"
16881 \begin_layout Description
16884 \begin_inset Flex Code
16887 \begin_layout Plain Layout
16898 \begin_inset Flex Code
16901 \begin_layout Plain Layout
16907 ] fixe le niveau du style dans le table des matières.
16908 Ceci est utilisé pour la numérotation automatique des en-têtes.
16911 \begin_layout Description
16914 \begin_inset Flex Code
16917 \begin_layout Plain Layout
16928 \begin_inset Flex Code
16931 \begin_layout Plain Layout
16943 \begin_inset Flex Code
16946 \begin_layout Plain Layout
16955 \begin_inset Flex Code
16958 \begin_layout Plain Layout
16968 détermine si l'indentation de la première ligne de ce paragraphe peut être
16969 réglée via le menu des réglages de paragraphe.
16973 \begin_inset Flex Code
16976 \begin_layout Plain Layout
16986 est choisi, l'indentation peut être réglée si les réglages de document
16987 utilisent un style de paragraphe avec
16988 \begin_inset Quotes cld
16992 \begin_inset Quotes crd
16996 \begin_inset Flex Code
16999 \begin_layout Plain Layout
17005 , l'indentation est toujours réglable quels que soient les réglages du document;
17007 \begin_inset Flex Code
17010 \begin_layout Plain Layout
17016 , l'indentation n'est jamais réglable.
17019 \begin_layout Description
17022 \begin_inset Flex Code
17025 \begin_layout Plain Layout
17039 ] fixe L'espacement vertical qui sépare le premier paragraphe dans une série
17040 du même style, du paragraphe qui le précède.
17041 Si le paragraphe précédent est dans un autre style, les séparations ne
17042 s'ajoutent pas, mais \SpecialChar LyX
17043 prend le maximum des deux.
17046 \begin_layout Subsection
17047 \begin_inset CommandInset label
17053 Internationalisation des styles de paragraphes
17056 \begin_layout Standard
17058 effectue depuis longtemps la traduction des informations de format, mais,
17059 jusqu'à la version 2.0, ceci ne s'appliquait qu'à l'interface utilisateur
17060 et non pas par exemple au résultat PDF.
17061 Ainsi les auteurs francophones devaient avoir recours à des astuces pénibles
17062 s'ils voulaient obtenir
17063 \begin_inset Quotes cld
17067 \begin_inset Quotes crd
17071 \begin_inset Quotes cld
17075 \begin_inset Quotes crd
17083 , ce n'est plus le cas.
17086 \begin_layout Standard
17088 \begin_inset Flex Code
17091 \begin_layout Plain Layout
17097 définit un texte qui doit apparaître dans le le document typographique,
17099 \begin_inset Flex Code
17102 \begin_layout Plain Layout
17109 \begin_inset Flex Code
17112 \begin_layout Plain Layout
17118 pour traiter correctement les documents non anglophones, et même multilingues.
17119 L'extrait suivant (du fichier
17120 \begin_inset Flex Code
17123 \begin_layout Plain Layout
17129 ) illustre le fonctionnement:
17132 \begin_layout LyX-Code
17139 \begin_layout LyX-Code
17144 theoremstyle{remark}
17147 \begin_layout LyX-Code
17152 newtheorem{claim}[thm]{
17159 \begin_layout LyX-Code
17165 \begin_layout LyX-Code
17171 \begin_layout LyX-Code
17178 claimname}{_(Claim)}
17181 \begin_layout LyX-Code
17187 \begin_layout LyX-Code
17193 \begin_layout LyX-Code
17204 claimname}{_(Claim)}}
17207 \begin_layout LyX-Code
17214 \begin_layout Standard
17215 En principe, toute commande \SpecialChar LaTeX
17216 autorisée peut apparaître dans les directives
17218 \begin_inset Flex Code
17221 \begin_layout Plain Layout
17228 \begin_inset Flex Code
17231 \begin_layout Plain Layout
17237 , mais dans la pratique elles se présenteront typiquement comme ce qui est
17239 La clé de la traduction correcte du texte typographié est la définition
17240 de le commande \SpecialChar LaTeX
17242 \begin_inset Flex Code
17245 \begin_layout Plain Layout
17253 et son utilisation avec
17254 \begin_inset Flex Code
17257 \begin_layout Plain Layout
17269 \begin_layout Standard
17271 \begin_inset Flex Code
17274 \begin_layout Plain Layout
17280 fournit ce qu'il faut pour l'internationalisation fondée sur le langage
17281 global du document.
17282 Le contenu de la directive sera inclus dans le préambule, comme avec la
17284 \begin_inset Flex Code
17287 \begin_layout Plain Layout
17294 Ce qui la rend singulière est l'utilisation de la
17295 \begin_inset Quotes cld
17299 \begin_inset Quotes crd
17303 \begin_inset Flex Code
17306 \begin_layout Plain Layout
17312 , qui sera remplacée, lorsque \SpecialChar LyX
17313 produira le résultat \SpecialChar LaTeX
17314 , par la traduction
17315 de son argument dans la langue du document
17319 \begin_layout Plain Layout
17320 Pour ceux qui s'intéressent au fonctionnement sous-jacent, la fonction
17321 \begin_inset Quotes cld
17325 \begin_inset Flex Code
17328 \begin_layout Plain Layout
17335 \begin_inset Quotes crd
17339 \begin_inset Flex Code
17342 \begin_layout Plain Layout
17348 , qui constitue le cœur du mécanisme de traduction de l'interface \SpecialChar LyX
17350 est étendue ici à la traduction à la volée de code \SpecialChar LaTeX
17359 \begin_layout Standard
17361 \begin_inset Flex Code
17364 \begin_layout Plain Layout
17370 est plus compliquée, car elle fournit une fonctionnalité adaptée aux documents
17371 multilingues et propose par conséquent une interface pour le paquetage
17373 \begin_inset Flex Code
17376 \begin_layout Plain Layout
17382 Son contenu sera ajouté au préambule une fois pour chaque langue utilisée
17384 Dans ce cas, l'argument de
17385 \begin_inset Flex Code
17388 \begin_layout Plain Layout
17394 sera remplacé par sa traduction dans le langage en question: l'expression
17396 \begin_inset Flex Code
17399 \begin_layout Plain Layout
17405 est remplacée par le nom de la langue (telle qu'il est connu de
17406 \begin_inset Flex Code
17409 \begin_layout Plain Layout
17419 \begin_layout Standard
17420 Un document en allemand qui inclut aussi un paragraphe en français aura
17421 donc ceci dans le préambule:
17424 \begin_layout LyX-Code
17435 claimname}{Affirmation}}
17436 \begin_inset Newline newline
17447 claimname}{Behauptung}}
17448 \begin_inset Newline newline
17455 claimname}{Behauptung}
17458 \begin_layout Standard
17461 \begin_inset Flex Code
17464 \begin_layout Plain Layout
17470 vont alors conspirer pour créer le texte correct dans le résultat imprimable.
17473 \begin_layout Standard
17474 Un point important à noter est que les traductions sont celles qui sont
17475 fournies par \SpecialChar LyX
17476 lui-même, via le fichier
17479 \begin_inset Flex Code
17482 \begin_layout Plain Layout
17494 \begin_inset Flex Code
17497 \begin_layout Plain Layout
17504 \begin_inset Flex Code
17507 \begin_layout Plain Layout
17513 ne sont effectifs que dans les fichiers de format fournis avec \SpecialChar LyX
17515 les fichiers de format créés par l'utilisateur ne seront pas explorés par
17516 les fonctions d'internationalisation, sauf si le fichier
17519 \begin_inset Flex Code
17522 \begin_layout Plain Layout
17532 est modifié en conséquence.
17533 Ceci dit, tout fichier de format créé dans le but d'être distribué avec
17535 doit inclure ces directives s'il y a lieu.
17536 Notez bien que les traductions des styles de paragraphe ne changeront jamais
17537 avec les publications de maintenance des versions de \SpecialChar LyX
17539 de la version 2.1.x à la version 2.1.y).
17540 Il est cependant très probable qu'à l'occasion d'une publication majeure
17542 de 2.0.x à 2.1.0), de nouvelles traductions ou corrections soient introduites
17546 \begin_layout Subsection
17548 \begin_inset CommandInset label
17550 name "subsec:Flottants"
17557 \begin_layout Standard
17558 Il faut définir les flottants (
17559 \begin_inset Flex Code
17562 \begin_layout Plain Layout
17569 \begin_inset Flex Code
17572 \begin_layout Plain Layout
17579 ) dans la classe elle-même.
17580 Si vous cherchez à savoir comment mettre à jour une classe déjà existante,
17581 il suffit probablement que vous ajoutiez
17584 \begin_layout LyX-Code
17585 Input stdfloats.inc
17588 \begin_layout Standard
17589 à un endroit raisonnable dans la classe
17593 \begin_layout Plain Layout
17594 N'oubliez pas de jeter aussi un
17598 \begin_layout Plain Layout
17607 il sur les compteurs dans la section suivante.
17613 Si vous voulez implémenter une classe de texte qui propose un nouveau type
17614 de flottant (comme la classe AGU fournie avec \SpecialChar LyX
17615 ), les explications ci-dessous
17616 vont sans doute vous être utiles :
17619 \begin_layout Description
17622 \begin_inset Flex Code
17625 \begin_layout Plain Layout
17636 \begin_inset Flex Code
17639 \begin_layout Plain Layout
17645 =!htbpH] définit les options de placement pour ce type de flottant.
17646 La valeur est une chaîne de paramètres de placement, les caractères autorisés
17656 \begin_inset Quotes cld
17660 \begin_inset Quotes crd
17672 \begin_inset Quotes cld
17676 \begin_inset Quotes crd
17688 \begin_inset Quotes cld
17692 \begin_inset Quotes crd
17700 \begin_inset Quotes cld
17704 \begin_inset Quotes crd
17712 \begin_inset Quotes cld
17716 \begin_inset Quotes crd
17724 \begin_inset Quotes cld
17727 ignorer les règles \SpecialChar LaTeX
17729 L'ordre des caractères est indifférent.
17730 Si aucune option n'est autorisée, utiliser la chaîne de caractères
17737 \begin_layout Description
17740 \begin_inset Flex Code
17743 \begin_layout Plain Layout
17754 \begin_inset Flex Code
17757 \begin_layout Plain Layout
17764 \begin_inset space \thinspace{}
17770 \begin_inset Flex Code
17773 \begin_layout Plain Layout
17781 ] précise si le flottant peut subir une rotation grâce au paquetage \SpecialChar LaTeX
17788 \begin_inset Flex Code
17791 \begin_layout Plain Layout
17797 si le flottant ne peut pas bénéficier de cette fonctionnalité.
17800 \begin_layout Description
17803 \begin_inset Flex Code
17806 \begin_layout Plain Layout
17817 \begin_inset Flex Code
17820 \begin_layout Plain Layout
17827 \begin_inset space \thinspace{}
17833 \begin_inset Flex Code
17836 \begin_layout Plain Layout
17844 ] précise si le flottant possède une variante étoilée qui s'étend sur les
17845 colonnes dans un paragraphe à deux colonnes.
17847 \begin_inset Flex Code
17850 \begin_layout Plain Layout
17856 si le flottant ne peut pas bénéficier de cette fonctionnalité.
17859 \begin_layout Description
17862 \begin_inset Flex Code
17865 \begin_layout Plain Layout
17879 \begin_inset Flex Code
17882 \begin_layout Plain Layout
17888 ] définit le suffixe d'un fichier auxiliaire contenant la liste des flottants
17891 écrit les légendes dans ce fichier.
17894 \begin_layout Description
17897 \begin_inset Flex Code
17900 \begin_layout Plain Layout
17911 \begin_inset Flex Code
17914 \begin_layout Plain Layout
17920 ] définit la chaîne de caractères qui se trouvera dans les menus et également
17922 Ceci est traduit dans le langage courant si
17923 \begin_inset Flex Code
17926 \begin_layout Plain Layout
17935 \begin_layout Description
17936 \begin_inset Flex Code
17939 \begin_layout Plain Layout
17945 sont utilisées avec l'exportation XHTML.
17947 \begin_inset CommandInset ref
17949 reference "sec:Tags-for-XHTML"
17956 \begin_layout Description
17959 \begin_inset Flex Code
17962 \begin_layout Plain Layout
17973 \begin_inset Flex Code
17976 \begin_layout Plain Layout
17985 \begin_inset space \thinspace{}
17989 \begin_inset Flex Code
17992 \begin_layout Plain Layout
17998 ] indique si le flottant est déjà défini dans la classe de document ou s'il
17999 faut charger le paquetage \SpecialChar LaTeX
18001 \begin_inset Flex Code
18004 \begin_layout Plain Layout
18010 pour le définir à la volée.
18011 La valeur implicite est
18012 \begin_inset Flex Code
18015 \begin_layout Plain Layout
18021 qui signifie: utiliser
18022 \begin_inset Flex Code
18025 \begin_layout Plain Layout
18032 Elle doit être positionnée sur
18033 \begin_inset Flex Code
18036 \begin_layout Plain Layout
18042 si le flottant est déjà défini par la classe de document.
18045 \begin_layout Description
18048 \begin_inset Flex Code
18051 \begin_layout Plain Layout
18062 \begin_inset Flex Code
18065 \begin_layout Plain Layout
18071 ] détermine la commande utilisée pour engendrer une liste de flottants du
18073 \begin_inset Quotes cld
18079 \begin_inset Quotes crd
18082 initial doit être omis.
18088 \begin_inset Flex Code
18091 \begin_layout Plain Layout
18097 est faux, puisqu'il n'y a alors pas de procédure pour activer cette commande.
18098 La directive est ignorée si
18099 \begin_inset Flex Code
18102 \begin_layout Plain Layout
18108 est vrai, puisqu'il y a alors une procédure.
18111 \begin_layout Description
18114 \begin_inset Flex Code
18117 \begin_layout Plain Layout
18128 \begin_inset Flex Code
18131 \begin_layout Plain Layout
18137 ] fixe le titre utilisé pour une liste des flottants du type considéré (figures,
18139 Il est utilisé pour l'étiquette à l'écran dans \SpecialChar LyX
18140 ; il est passé à \SpecialChar LaTeX
18142 utilisé comme titre, et il est également utilisé comme titre dans l'exportation
18144 Il sera traduit dans le langage du document.
18147 \begin_layout Description
18150 \begin_inset Flex Code
18153 \begin_layout Plain Layout
18164 \begin_inset Flex Code
18167 \begin_layout Plain Layout
18173 ] (paramètre facultatif) détermine si les flottants de cette classe seront
18174 numérotés en suivant un type de section du document.
18178 \begin_inset Flex Code
18181 \begin_layout Plain Layout
18192 \begin_inset Quotes cld
18196 \begin_inset Flex Code
18199 \begin_layout Plain Layout
18208 \begin_inset Quotes crd
18211 , les flottants seront numérotés chapitre par chapitre.
18214 \begin_layout Description
18217 \begin_inset Flex Code
18220 \begin_layout Plain Layout
18231 \begin_inset Flex Code
18234 \begin_layout Plain Layout
18240 ] définit le placement implicite pour cette catégorie de flottants.
18241 C'est comme en \SpecialChar LaTeX
18243 \begin_inset Flex Code
18246 \begin_layout Plain Layout
18253 \begin_inset Flex Code
18256 \begin_layout Plain Layout
18263 \begin_inset Flex Code
18266 \begin_layout Plain Layout
18273 \begin_inset Flex Code
18276 \begin_layout Plain Layout
18282 pour haut, bas, page et ici respectivement
18286 \begin_layout Plain Layout
18287 Notez que l'ordre dans lequel vous mettez ces lettres est sans importance,
18288 comme en \SpecialChar LaTeX
18295 En plus vous avez un nouveau type,
18296 \begin_inset Flex Code
18299 \begin_layout Plain Layout
18305 , qui ne correspond pas vraiment à un flottant, car il signifie de le positionne
18307 \begin_inset Quotes cld
18311 \begin_inset Quotes crd
18314 et nulle part ailleurs.
18315 Notez cependant que le type
18316 \begin_inset Flex Code
18319 \begin_layout Plain Layout
18325 est spécial et, à cause de détails d'implantation, ne peut pas être utilisé
18326 avec des flottants non définis dans la classe de document.
18327 Si vous n'avez pas compris tout ce baratin, mettez simplement
18330 \begin_inset Quotes cld
18336 \begin_inset Flex Code
18339 \begin_layout Plain Layout
18348 \begin_inset Quotes crd
18356 \begin_layout Description
18359 \begin_inset Flex Code
18362 \begin_layout Plain Layout
18373 \begin_inset Flex Code
18376 \begin_layout Plain Layout
18382 ] détermine le préfixe à utiliser lors de la création d'étiquettes référant
18383 les flottants du type considéré.
18384 Ceci permet l'utilisation de références mises en forme.
18385 Notez que vous pouvez supprimer tout préfixe défini en copiant un style
18386 en utilisant la valeur spécifique
18387 \begin_inset Quotes cld
18391 \begin_inset Quotes crd
18394 , qui doit être en capitales.
18397 \begin_layout Description
18400 \begin_inset Flex Code
18403 \begin_layout Plain Layout
18414 \begin_inset Flex Code
18417 \begin_layout Plain Layout
18423 ] fixe le style utilisé quand on définit le flottant avec
18424 \begin_inset Flex Code
18427 \begin_layout Plain Layout
18438 \begin_layout Description
18441 \begin_inset Flex Code
18444 \begin_layout Plain Layout
18455 \begin_inset Flex Code
18458 \begin_layout Plain Layout
18465 \begin_inset Quotes cld
18469 \begin_inset Quotes crd
18472 de la nouvelle classe de flottants, comme
18473 \begin_inset Quotes cld
18477 \begin_inset Quotes crd
18481 \begin_inset Quotes cld
18485 \begin_inset Quotes crd
18489 Après l'instruction
18490 \begin_inset Flex Code
18493 \begin_layout Plain Layout
18501 appropriée, vous disposez de commandes comme
18502 \begin_inset Flex Code
18505 \begin_layout Plain Layout
18514 \begin_inset Flex Code
18517 \begin_layout Plain Layout
18526 Noter que définir un flottant de type
18527 \begin_inset Flex Code
18530 \begin_layout Plain Layout
18536 définit automatiquement les compteur correspondant, de nom
18537 \begin_inset Flex Code
18540 \begin_layout Plain Layout
18549 \begin_layout Description
18552 \begin_inset Flex Code
18555 \begin_layout Plain Layout
18566 \begin_inset Flex Code
18569 \begin_layout Plain Layout
18576 \begin_inset space \thinspace{}
18580 \begin_inset Flex Code
18583 \begin_layout Plain Layout
18591 ] indique si ce flottant est défini en utilisant le paquetage \SpecialChar LaTeX
18593 \begin_inset Flex Code
18596 \begin_layout Plain Layout
18602 , soit par la classe de document ou par un paquetage, soit à la volée par
18607 \begin_layout Standard
18608 Notez que la définition d'un flottant de type
18609 \begin_inset Flex Code
18612 \begin_layout Plain Layout
18620 implique la déclaration du compteur correspondant de nom
18621 \begin_inset Flex Code
18624 \begin_layout Plain Layout
18635 \begin_layout Subsection
18636 Inserts flexibles et InsetLayout
18637 \begin_inset CommandInset label
18639 name "subsec:Flex-insets-and"
18646 \begin_layout Standard
18647 Les inserts flexibles sont de trois sortes:
18650 \begin_layout Itemize
18651 styles de caractères (
18652 \begin_inset Flex Code
18655 \begin_layout Plain Layout
18663 ): ceux-ci définissent un balisage sémantique correspondant à des commandes
18666 \begin_inset Flex Code
18669 \begin_layout Plain Layout
18680 \begin_inset Flex Code
18683 \begin_layout Plain Layout
18696 \begin_layout Itemize
18697 définis par l'utilisateur (
18698 \begin_inset Flex Code
18701 \begin_layout Plain Layout
18709 ): ceux-ci permettent de définir des inserts repliables personnalisés, similaire
18710 s au code \SpecialChar TeX
18711 , aux notes de bas de page, etc.
18712 Un exemple évident est l'insert de note en fin de document, défini dans
18714 \begin_inset Flex Code
18717 \begin_layout Plain Layout
18728 \begin_layout Itemize
18732 \begin_inset Flex Code
18735 \begin_layout Plain Layout
18745 : à utiliser avec les classes DocBook.
18748 \begin_layout Standard
18749 Les inserts flexibles sont définis en utilisant la directive
18750 \begin_inset Flex Code
18753 \begin_layout Plain Layout
18761 , qui va être expliquée dans la suite.
18764 \begin_layout Standard
18766 \begin_inset Flex Code
18769 \begin_layout Plain Layout
18777 a une autre fonction: elle permet de personnaliser le style de différents
18780 \begin_inset Flex Code
18783 \begin_layout Plain Layout
18791 permet de personnaliser les paramètres de style pour les notes de bas de
18792 page, les notes en marge, les inserts de note, les inserts de code \SpecialChar TeX
18794 les branches, les listings, les index, les boîtes, les tables, les algorithmes,
18799 , aussi bien que de définir des inserts flexibles.
18802 \begin_layout Standard
18804 \begin_inset Flex Code
18807 \begin_layout Plain Layout
18815 doit commencer par une lignes de la forme:
18818 \begin_layout LyX-Code
18824 \begin_layout Standard
18826 \begin_inset Flex Code
18829 \begin_layout Plain Layout
18835 indique l'insert dont le style doit être défini, et il y a quatre cas.
18838 \begin_layout Enumerate
18839 Le style d'un insert préexistant doit être modifié.
18840 Dans ce cas, peuvent être
18841 \begin_inset Flex Code
18844 \begin_layout Plain Layout
18850 un quelconque des éléments suivants:
18851 \begin_inset Flex Code
18854 \begin_layout Plain Layout
18863 \begin_inset Flex Code
18866 \begin_layout Plain Layout
18875 \begin_inset Flex Code
18878 \begin_layout Plain Layout
18887 \begin_inset Flex Code
18890 \begin_layout Plain Layout
18901 \begin_inset Flex Code
18904 \begin_layout Plain Layout
18915 \begin_inset Flex Code
18918 \begin_layout Plain Layout
18927 \begin_inset Flex Code
18930 \begin_layout Plain Layout
18939 \begin_inset Flex Code
18942 \begin_layout Plain Layout
18951 \begin_inset Flex Code
18954 \begin_layout Plain Layout
18963 \begin_inset Flex Code
18966 \begin_layout Plain Layout
18975 \begin_inset Flex Code
18978 \begin_layout Plain Layout
18987 \begin_inset Flex Code
18990 \begin_layout Plain Layout
18999 \begin_inset Flex Code
19002 \begin_layout Plain Layout
19011 \begin_inset Flex Code
19014 \begin_layout Plain Layout
19023 \begin_inset Flex Code
19026 \begin_layout Plain Layout
19035 \begin_inset Flex Code
19038 \begin_layout Plain Layout
19047 \begin_inset Flex Code
19050 \begin_layout Plain Layout
19059 \begin_inset Flex Code
19062 \begin_layout Plain Layout
19071 \begin_inset Flex Code
19074 \begin_layout Plain Layout
19083 \begin_inset Flex Code
19086 \begin_layout Plain Layout
19098 \begin_layout Enumerate
19099 Le style d'un insert flexible doit être défini.
19101 \begin_inset Flex Code
19104 \begin_layout Plain Layout
19110 doit être de la forme
19111 \begin_inset Flex Code
19114 \begin_layout Plain Layout
19121 \begin_inset Flex Code
19124 \begin_layout Plain Layout
19130 peut être n'importe quel identificateur valide qui n'est pas utilisé dans
19131 un insert existant.
19132 L'identificateur peut inclure des espaces, mais alors il faut enclore l'ensembl
19133 e entre apostrophes.
19134 Noter que la définition d'un insert flexible
19138 aussi inclure une entrée
19139 \begin_inset Flex Code
19142 \begin_layout Plain Layout
19151 , précisant quel est le type d'insert qu'il définit.
19154 \begin_layout Enumerate
19155 Le style d'une branche utilisateur doit être défini.
19157 \begin_inset Flex Code
19160 \begin_layout Plain Layout
19166 doit être de la forme
19167 \begin_inset Quotes cld
19171 \begin_inset Flex Code
19174 \begin_layout Plain Layout
19181 \begin_inset Quotes crd
19185 \begin_inset Flex Code
19188 \begin_layout Plain Layout
19194 peut être un identificateur de branche valide défini dans le document utilisate
19196 L'identificateur peur contenir des espaces, mais dans ce cas la chaîne
19197 toute entière doit être enclose entre apostrophes.
19198 Le principal intérêt de cette fonctionnalité est est de permettre l’inclusion
19200 de branches spécifiques suivant les besoins de l'utilisateur.
19203 \begin_layout Enumerate
19204 Le style d'une légende utilisateur (ou de classe) doit être défini.
19206 \begin_inset Flex Code
19209 \begin_layout Plain Layout
19215 doit être de la forme
19216 \begin_inset Quotes cld
19220 \begin_inset Flex Code
19223 \begin_layout Plain Layout
19230 \begin_inset Quotes crd
19234 \begin_inset Flex Code
19237 \begin_layout Plain Layout
19243 spécifie le nom de la légende tel qu'il apparaît dans le menu.
19244 Voir la légende standard
19247 \begin_inset Flex Code
19250 \begin_layout Plain Layout
19260 , les légendes spécifiques des classes KOMA-Script
19263 \begin_inset Flex Code
19266 \begin_layout Plain Layout
19275 \begin_inset Flex Code
19278 \begin_layout Plain Layout
19290 Légendes multilingues
19295 \begin_inset Flex Code
19298 \begin_layout Plain Layout
19308 pour des applications.
19311 \begin_layout Standard
19313 \begin_inset Flex Code
19316 \begin_layout Plain Layout
19324 peut inclure les entrées suivantes:
19327 \begin_layout Description
19330 \begin_inset Flex Code
19333 \begin_layout Plain Layout
19342 \begin_inset Flex Code
19345 \begin_layout Plain Layout
19353 =""] This inset will appear in the table of contents of the given type.
19354 An empty string disables.
19355 See also the OutlinerName and the IsTocCaption commands.
19356 This is only implemented for Flex insets.
19360 \begin_layout Description
19363 \begin_inset Flex Code
19366 \begin_layout Plain Layout
19375 \begin_inset Flex Code
19378 \begin_layout Plain Layout
19388 définit un numéro d'argument d'une commande ou d'un environnement associé
19390 La définition doit être close par
19393 \begin_inset Flex Code
19396 \begin_layout Plain Layout
19408 \begin_inset CommandInset ref
19410 reference "subsec:Styles-de-paragraphe"
19417 \begin_layout Description
19420 \begin_inset Flex Code
19423 \begin_layout Plain Layout
19433 définit un préambule pour les modifications de commandes de langue; voir
19435 \begin_inset CommandInset ref
19437 reference "subsec:I18n"
19444 \begin_layout Description
19447 \begin_inset Flex Code
19450 \begin_layout Plain Layout
19461 \begin_inset Flex Code
19464 \begin_layout Plain Layout
19470 ] définit la couleur d'arrière-plan de l'insert.
19476 \begin_inset CommandInset ref
19478 reference "chap:Names-of-colors"
19482 pour une liste des noms de couleur disponibles.
19486 \begin_layout Description
19489 \begin_inset Flex Code
19492 \begin_layout Plain Layout
19503 \begin_inset Flex Code
19506 \begin_layout Plain Layout
19515 \begin_inset space \thinspace{}
19519 \begin_inset Flex Code
19522 \begin_layout Plain Layout
19528 ] indique s'il faut utiliser le contenu de l'insert comme une étiquette,
19529 quand l'insert est fermé.
19531 \begin_inset Quotes cld
19535 \begin_inset Quotes crd
19541 \begin_layout Description
19544 \begin_inset Flex Code
19547 \begin_layout Plain Layout
19558 \begin_inset Flex Code
19561 \begin_layout Plain Layout
19567 ] fonctionne comme les styles de paragraphe, voir
19568 \begin_inset CommandInset ref
19570 reference "subsec:Styles-de-paragraphe"
19575 Notez que vous devez spécifier le type complet, e.
19576 \begin_inset space \thinspace{}
19580 \begin_inset space ~
19586 \begin_inset Flex Code
19589 \begin_layout Plain Layout
19604 \begin_layout Description
19607 \begin_inset Flex Code
19610 \begin_layout Plain Layout
19621 \begin_inset Flex Code
19624 \begin_layout Plain Layout
19633 \begin_inset space \thinspace{}
19637 \begin_inset Flex Code
19640 \begin_layout Plain Layout
19646 ] indique si l'utilisateur peut utiliser le dialogue
19647 \begin_inset Flex Noun
19650 \begin_layout Plain Layout
19651 Édition\SpecialChar menuseparator
19653 \begin_inset Newline linebreak
19656 Paramètres de paragraphe
19661 pour personnaliser le paragraphe.
19664 \begin_layout Description
19667 \begin_inset Flex Code
19670 \begin_layout Plain Layout
19681 \begin_inset Flex Code
19684 \begin_layout Plain Layout
19693 \begin_inset Flex Code
19696 \begin_layout Plain Layout
19705 \begin_inset Flex Code
19708 \begin_layout Plain Layout
19716 , décrivant l'appa\SpecialChar softhyphen
19717 rence du cadre et des boutons de l'insert.
19718 les notes de bas de page utilisent en général
19719 \begin_inset Flex Code
19722 \begin_layout Plain Layout
19730 , les inserts des code \SpecialChar TeX
19732 \begin_inset Flex Code
19735 \begin_layout Plain Layout
19743 , et les styles de caractères
19744 \begin_inset Flex Code
19747 \begin_layout Plain Layout
19758 \begin_layout Description
19761 \begin_inset Flex Code
19764 \begin_layout Plain Layout
19775 \begin_inset Flex Code
19778 \begin_layout Plain Layout
19785 \begin_inset space \thinspace{}
19789 \begin_inset Flex Code
19792 \begin_layout Plain Layout
19800 ] n'est utilisé que lorsque
19801 \begin_inset Flex Code
19804 \begin_layout Plain Layout
19811 \begin_inset Flex Code
19814 \begin_layout Plain Layout
19821 Indique si l'environnement se trouvera à part dans le résultat imprimable
19822 ou bien apparaîtra inclus dans le texte environnant.
19823 S'il est positionné à faux, on suppose que l'environnement \SpecialChar LaTeX
19825 espaces (avec un caractère retour ligne inclus) après les balises
19826 \begin_inset Flex Code
19829 \begin_layout Plain Layout
19842 \begin_inset Flex Code
19845 \begin_layout Plain Layout
19859 \begin_inset Quotes cld
19863 \begin_inset Quotes crd
19869 \begin_layout Description
19870 \begin_inset Flex Code
19873 \begin_layout Plain Layout
19881 est requis pour fermer la déclaration d'un
19884 \begin_inset Flex Code
19887 \begin_layout Plain Layout
19900 \begin_layout Description
19901 \begin_inset Flex Code
19904 \begin_layout Plain Layout
19912 définit la police utilisée pour le texte du corps de l'insert
19918 \begin_inset space ~
19922 \begin_inset CommandInset ref
19924 reference "subsec:polices"
19929 Noter qu'en définissant cette police on définit aussi automatiquement
19930 \begin_inset Flex Code
19933 \begin_layout Plain Layout
19941 avec la même valeur.
19942 Il faut donc définir celle-ci d'abord pour fixer
19943 \begin_inset Flex Code
19946 \begin_layout Plain Layout
19957 \begin_layout Description
19960 \begin_inset Flex Code
19963 \begin_layout Plain Layout
19966 FixedWidthPreambleEncoding
19974 \begin_inset Flex Code
19977 \begin_layout Plain Layout
19986 \begin_inset space \thinspace{}
19990 \begin_inset Flex Code
19993 \begin_layout Plain Layout
19999 ] force un encodage à taille fixe pour les éléments traduits du code des
20001 \begin_inset Flex Code
20004 \begin_layout Plain Layout
20011 \begin_inset Flex Code
20014 \begin_layout Plain Layout
20020 engendré par ce format.
20021 Ceci est nécessaire pour les paquetages \SpecialChar LaTeX
20026 qui ne fonctionnent pas avec des encodages à taille variable comme
20031 Ce réglage est ignoré lors de l'utilisation de moteurs admettant complètement
20032 Unicode comme Xe\SpecialChar TeX
20033 ou Lua\SpecialChar TeX
20037 \begin_layout Description
20040 \begin_inset Flex Code
20043 \begin_layout Plain Layout
20046 ForceLocalFontSwitch
20054 \begin_inset Flex Code
20057 \begin_layout Plain Layout
20066 \begin_inset space \thinspace{}
20070 \begin_inset Flex Code
20073 \begin_layout Plain Layout
20079 ] lors de l'utilisation de babel, force l'utilisation un commutateur de
20086 \begin_inset Flex Code
20089 \begin_layout Plain Layout
20101 , à la place d'un commutateur
20108 \begin_inset Flex Code
20111 \begin_layout Plain Layout
20126 \begin_layout Description
20129 \begin_inset Flex Code
20132 \begin_layout Plain Layout
20143 \begin_inset Flex Code
20146 \begin_layout Plain Layout
20155 \begin_inset space \thinspace{}
20159 \begin_inset Flex Code
20162 \begin_layout Plain Layout
20168 ] impose le langage
20169 \begin_inset Quotes cld
20173 \begin_inset Quotes crd
20176 , conduisant à un résultat de gauche à droite (Left-to-Right, latin), e.
20177 \begin_inset space \thinspace{}
20181 \begin_inset space \space{}
20184 en code \SpecialChar TeX
20189 \begin_layout Description
20192 \begin_inset Flex Code
20195 \begin_layout Plain Layout
20206 \begin_inset Flex Code
20209 \begin_layout Plain Layout
20218 \begin_inset space \thinspace{}
20222 \begin_inset Flex Code
20225 \begin_layout Plain Layout
20231 ] force un saut de ligne dans le résultat \SpecialChar LaTeX
20232 avant le début de l'insert et
20234 Ceci garantit que l’insert apparaît en lignes isolées, pour la lisibilité.
20237 \begin_layout Description
20240 \begin_inset Flex Code
20243 \begin_layout Plain Layout
20254 \begin_inset Flex Code
20257 \begin_layout Plain Layout
20266 \begin_inset space \thinspace{}
20270 \begin_inset Flex Code
20273 \begin_layout Plain Layout
20280 \begin_inset Flex Code
20283 \begin_layout Plain Layout
20291 doit être utilisé, ou bien si l'utilisateur peut modifier le style de paragraph
20292 e utilisé dans l'insert.
20294 \begin_inset Quotes cld
20298 \begin_inset Quotes crd
20304 \begin_layout Description
20307 \begin_inset Flex Code
20310 \begin_layout Plain Layout
20321 \begin_inset Flex Code
20324 \begin_layout Plain Layout
20333 \begin_inset space \thinspace{}
20337 \begin_inset Flex Code
20340 \begin_layout Plain Layout
20346 ] fonctionne comme les styles de paragraphe, voir
20347 \begin_inset space ~
20351 \begin_inset CommandInset ref
20353 reference "subsec:Styles-de-paragraphe"
20360 \begin_layout Description
20361 \begin_inset Flex Code
20364 \begin_layout Plain Layout
20370 sont utilisées avec l'exportation XHTML.
20372 \begin_inset CommandInset ref
20374 reference "sec:Tags-for-XHTML"
20381 \begin_layout Description
20384 \begin_inset Flex Code
20387 \begin_layout Plain Layout
20398 \begin_inset Flex Code
20401 \begin_layout Plain Layout
20410 \begin_inset space \thinspace{}
20414 \begin_inset Flex Code
20417 \begin_layout Plain Layout
20423 ] indique s'il faut inclure le contenu de cet insert dans les chaînes créées
20425 \begin_inset Quotes cld
20430 for all table of contents, regardless of the AddToToc setting
20433 \begin_inset Quotes crd
20437 L'utilisateur ne voudra pas, par exemple, que le contenu d'une note de
20438 bas de page dans un titre de section soit incluse dans la tables des matières
20439 affichée dans le plan, mais voudra habituellement voir affiché le contenu
20440 d'un style de caractère.
20442 \begin_inset Quotes cld
20446 \begin_inset Quotes crd
20452 \begin_layout Description
20455 \begin_inset Flex Code
20458 \begin_layout Plain Layout
20467 \begin_inset Flex Code
20470 \begin_layout Plain Layout
20480 \begin_inset space \thinspace{}
20484 \begin_inset Flex Code
20487 \begin_layout Plain Layout
20495 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20496 of its contents in its item in the table of contents.
20497 Otherwise, only the label appears.
20500 \begin_layout Description
20503 \begin_inset Flex Code
20506 \begin_layout Plain Layout
20517 \begin_inset Flex Code
20520 \begin_layout Plain Layout
20529 \begin_inset space \thinspace{}
20533 \begin_inset Flex Code
20536 \begin_layout Plain Layout
20542 ] fonctionne comme les styles de paragraphe, voir
20543 \begin_inset CommandInset ref
20545 reference "subsec:Styles-de-paragraphe"
20552 \begin_layout Description
20555 \begin_inset Flex Code
20558 \begin_layout Plain Layout
20568 définit la police utilisée pour le marqueur.
20570 \begin_inset CommandInset ref
20572 reference "subsec:polices"
20577 Noter que cette directive ne peut jamais apparaître avant
20578 \begin_inset Flex Code
20581 \begin_layout Plain Layout
20589 , sinon elle sera sans effet.
20592 \begin_layout Description
20595 \begin_inset Flex Code
20598 \begin_layout Plain Layout
20609 \begin_inset Flex Code
20612 \begin_layout Plain Layout
20618 ] définit la chaîne de caractères qui apparaîtra sur le bouton ou ailleurs
20619 en tant que marquer d'insert.
20620 Quelques types d'inserts (
20621 \begin_inset Flex Code
20624 \begin_layout Plain Layout
20627 code \SpecialChar TeX
20634 \begin_inset Flex Code
20637 \begin_layout Plain Layout
20643 ) modifient ce marqueur à la volée.
20646 \begin_layout Description
20649 \begin_inset Flex Code
20652 \begin_layout Plain Layout
20662 définit un préambule dépendant de la langue, voir
20663 \begin_inset space ~
20667 \begin_inset CommandInset ref
20669 reference "subsec:I18n"
20676 \begin_layout Description
20679 \begin_inset Flex Code
20682 \begin_layout Plain Layout
20693 \begin_inset Flex Code
20696 \begin_layout Plain Layout
20702 ] définit le nom du code \SpecialChar LaTeX
20703 correspondant, soit un environnement, soit une
20707 \begin_layout Description
20710 \begin_inset Flex Code
20713 \begin_layout Plain Layout
20724 \begin_inset Flex Code
20727 \begin_layout Plain Layout
20733 ] définit le paramètre facultatif pour le
20734 \begin_inset Flex Code
20737 \begin_layout Plain Layout
20745 correspondant, y compris des paires de crochets
20746 \begin_inset Flex Code
20749 \begin_layout Plain Layout
20756 Ce paramètre ne peut pas être modifié depuis \SpecialChar LyX
20758 \begin_inset Flex Code
20761 \begin_layout Plain Layout
20767 pour les paramètres personnalisables).
20768 Il sera émis tel quel après tous les
20769 \begin_inset Flex Code
20772 \begin_layout Plain Layout
20778 s \SpecialChar LaTeX
20782 \begin_layout Description
20785 \begin_inset Flex Code
20788 \begin_layout Plain Layout
20797 \begin_inset Flex Code
20800 \begin_layout Plain Layout
20803 Command, Environment, None
20809 \begin_inset Flex Code
20812 \begin_layout Plain Layout
20822 précise comment le style doit être traduit en \SpecialChar LaTeX
20829 \begin_layout Plain Layout
20832 \begin_inset Flex Code
20835 \begin_layout Plain Layout
20845 est peut-être trompeur, puisque ces règles s'appliquent aussi aux classes
20847 Voir les fichiers de classe SGML pour des exemples spécifiques.
20856 \begin_layout Description
20859 \begin_inset Flex Code
20862 \begin_layout Plain Layout
20873 \begin_inset Quotes cld
20876 rien de particulier
20877 \begin_inset Quotes crd
20883 \begin_layout Description
20886 \begin_inset Flex Code
20889 \begin_layout Plain Layout
20902 \begin_inset Flex Code
20905 \begin_layout Plain Layout
20914 {\SpecialChar ldots
20923 \begin_layout Description
20926 \begin_inset Flex Code
20929 \begin_layout Plain Layout
20942 \begin_inset Flex Code
20945 \begin_layout Plain Layout
20954 }\SpecialChar ldots
20969 \begin_layout Standard
20970 En rassemblant ceci, la sortie \SpecialChar LaTeX
20974 \begin_layout LyX-Code
20979 LatexName[LatexParam]{\SpecialChar ldots
20983 \begin_layout Standard
20987 \begin_layout LyX-Code
20992 begin{LatexName}[LatexParam] \SpecialChar ldots
20998 \begin_layout Standard
21002 \begin_inset Flex Code
21005 \begin_layout Plain Layout
21017 \begin_layout Description
21020 \begin_inset Flex Code
21023 \begin_layout Plain Layout
21034 \begin_inset Flex Code
21037 \begin_layout Plain Layout
21043 ] définit une chaîne de caractères insérée au début du contenu du style.
21044 Une rupture de ligne dans la sortie peut être indiquée par
21045 \begin_inset Flex Code
21048 \begin_layout Plain Layout
21057 \begin_layout Description
21060 \begin_inset Flex Code
21063 \begin_layout Plain Layout
21074 \begin_inset Flex Code
21077 \begin_layout Plain Layout
21086 \begin_inset Flex Code
21089 \begin_layout Plain Layout
21098 \begin_inset Flex Code
21101 \begin_layout Plain Layout
21110 \begin_inset Flex Code
21113 \begin_layout Plain Layout
21121 (indiquant une définition vide terminant les définitions de styles de caractère
21123 Cette entrée est requise dans les inserts flexibles et n'est significative
21125 Parmi d'autres choses, elle détermine dans quel menu cet insert va apparaître.
21127 \begin_inset Flex Code
21130 \begin_layout Plain Layout
21137 \begin_inset Flex Code
21140 \begin_layout Plain Layout
21147 \begin_inset Flex Code
21150 \begin_layout Plain Layout
21157 \begin_inset Quotes cld
21161 \begin_inset Quotes crd
21165 \begin_inset Flex Code
21168 \begin_layout Plain Layout
21175 \begin_inset Quotes cld
21179 \begin_inset Quotes crd
21184 \begin_inset Flex Code
21187 \begin_layout Plain Layout
21193 peut être positionné à
21194 \begin_inset Quotes cld
21198 \begin_inset Quotes crd
21202 \begin_inset Flex Code
21205 \begin_layout Plain Layout
21212 \begin_inset Quotes cld
21216 \begin_inset Quotes crd
21220 \begin_inset Flex Code
21223 \begin_layout Plain Layout
21229 , en le positionnant
21234 \begin_inset Flex Code
21237 \begin_layout Plain Layout
21246 \begin_layout Description
21249 \begin_inset Flex Code
21252 \begin_layout Plain Layout
21263 \begin_inset Flex Code
21266 \begin_layout Plain Layout
21275 \begin_inset space \thinspace{}
21279 \begin_inset Flex Code
21282 \begin_layout Plain Layout
21288 ] indique si plusieurs paragraphes sont autorisés dans cet insert.
21289 Ceci positionnera aussi
21290 \begin_inset Flex Code
21293 \begin_layout Plain Layout
21301 à la même valeur et
21302 \begin_inset Flex Code
21305 \begin_layout Plain Layout
21313 à la valeur opposée.
21314 Ceux-ci peuvent être repositionnés s'ils sont utilisés
21319 \begin_inset Flex Code
21322 \begin_layout Plain Layout
21332 \begin_inset Quotes cld
21336 \begin_inset Quotes crd
21342 \begin_layout Description
21345 \begin_inset Flex Code
21348 \begin_layout Plain Layout
21359 \begin_inset Flex Code
21362 \begin_layout Plain Layout
21371 \begin_inset space \thinspace{}
21375 \begin_inset Flex Code
21378 \begin_layout Plain Layout
21384 ] indique si les commandes fragiles de cet insert doivent êtres protégées
21386 \begin_inset Flex Code
21389 \begin_layout Plain Layout
21403 sur le fait que la commande elle-même doive être protégée).
21405 \begin_inset Quotes cld
21409 \begin_inset Quotes crd
21415 \begin_layout Description
21418 \begin_inset Flex Code
21421 \begin_layout Plain Layout
21430 \begin_inset Flex Code
21433 \begin_layout Plain Layout
21446 \begin_inset Flex Code
21449 \begin_layout Plain Layout
21462 \begin_layout Description
21465 \begin_inset Flex Code
21468 \begin_layout Plain Layout
21477 \begin_inset Flex Code
21480 \begin_layout Plain Layout
21491 \begin_inset Flex Code
21494 \begin_layout Plain Layout
21501 \begin_inset Flex Code
21504 \begin_layout Plain Layout
21511 Ceci est utilisé pour renommer un
21512 \begin_inset Flex Code
21515 \begin_layout Plain Layout
21521 en conservant la compatibilité.
21524 \begin_layout Description
21527 \begin_inset Flex Code
21530 \begin_layout Plain Layout
21544 \begin_inset Flex Code
21547 \begin_layout Plain Layout
21557 \begin_inset space \thinspace{}
21563 \begin_inset Flex Code
21566 \begin_layout Plain Layout
21574 ] fonctionne comme avec les styles de paragraphe, voir
21575 \begin_inset CommandInset ref
21577 reference "subsec:Styles-de-paragraphe"
21584 \begin_layout Description
21587 \begin_inset Flex Code
21590 \begin_layout Plain Layout
21604 \begin_inset Flex Code
21607 \begin_layout Plain Layout
21617 \begin_inset space \thinspace{}
21623 \begin_inset Flex Code
21626 \begin_layout Plain Layout
21634 ] fonctionne comme avec les styles de paragraphe, voir
21635 \begin_inset CommandInset ref
21637 reference "subsec:Styles-de-paragraphe"
21644 \begin_layout Description
21647 \begin_inset Flex Code
21650 \begin_layout Plain Layout
21660 fonctionne comme avec les styles de paragraphe, voir
21661 \begin_inset CommandInset ref
21663 reference "subsec:Styles-de-paragraphe"
21670 \begin_layout Description
21673 \begin_inset Flex Code
21676 \begin_layout Plain Layout
21687 \begin_inset Flex Code
21690 \begin_layout Plain Layout
21696 ] indique le préfixe à utiliser pour créer des étiquettes référant les paragraph
21698 Ceci permet l'utilisation de références mises en forme.
21701 \begin_layout Description
21704 \begin_inset Flex Code
21707 \begin_layout Plain Layout
21718 \begin_inset Flex Code
21721 \begin_layout Plain Layout
21729 As with paragraph styles, see
21732 \begin_inset CommandInset ref
21734 reference "subsec:Styles-de-paragraphe"
21741 \begin_layout Description
21744 \begin_inset Flex Code
21747 \begin_layout Plain Layout
21758 \begin_inset Flex Code
21761 \begin_layout Plain Layout
21770 \begin_inset space \thinspace{}
21774 \begin_inset Flex Code
21777 \begin_layout Plain Layout
21783 ] réinitialise les arguments \SpecialChar LaTeX
21784 de ce style (définis via la directive
21785 \begin_inset Flex Code
21788 \begin_layout Plain Layout
21795 Ceci est utile si vous avez dupliqué un style via
21798 \begin_inset Flex Code
21801 \begin_layout Plain Layout
21811 mais que vous ne voulez pas hériter de ses arguments (obligatoires et optionnels
21815 \begin_layout Description
21818 \begin_inset Flex Code
21821 \begin_layout Plain Layout
21832 \begin_inset Flex Code
21835 \begin_layout Plain Layout
21842 \begin_inset space \thinspace{}
21846 \begin_inset Flex Code
21849 \begin_layout Plain Layout
21857 ] indique si l'insert doit utiliser la police de caractères environnante
21858 ou bien utiliser la sienne propre.
21860 \begin_inset Quotes cld
21864 \begin_inset Quotes crd
21867 , utiliser la police de caractères environnante.
21870 \begin_layout Description
21873 \begin_inset Flex Code
21876 \begin_layout Plain Layout
21887 \begin_inset Flex Code
21890 \begin_layout Plain Layout
21896 ] définit une chaîne de caractères insérée à la fin du contenu du style.
21897 Une rupture de ligne dans la sortie peut être indiquée par
21898 \begin_inset Flex Code
21901 \begin_layout Plain Layout
21910 \begin_layout Description
21913 \begin_inset Flex Code
21916 \begin_layout Plain Layout
21927 \begin_inset Flex Code
21930 \begin_layout Plain Layout
21937 \begin_inset space \thinspace{}
21941 \begin_inset Flex Code
21944 \begin_layout Plain Layout
21952 ] active le correcteur orthographique sur le contenu de cet insert.
21954 \begin_inset Quotes cld
21958 \begin_inset Quotes crd
21964 \begin_layout Subsection
21966 \begin_inset CommandInset label
21968 name "subsec:Compteurs"
21975 \begin_layout Standard
21976 Il faut définir les compteurs (
21977 \begin_inset Flex Code
21980 \begin_layout Plain Layout
21987 \begin_inset Flex Code
21990 \begin_layout Plain Layout
21997 ) dans la classe elle-même.
21998 Les compteurs standard sont définis dans le fichier
22001 \begin_inset Flex Code
22004 \begin_layout Plain Layout
22015 Si vous cherchez à savoir comment mettre à jour une classe déjà existante,
22016 il suffit probablement que vous ajoutiez
22019 \begin_layout LyX-Code
22020 Input stdcounters.inc
22023 \begin_layout Standard
22024 à un endroit raisonnable dans la classe.
22027 \begin_layout Standard
22028 Mais si vous voulez définir des compteurs à votre guise, vous pouvez le
22030 La déclaration d'un compteur doit commencer par
22033 \begin_layout LyX-Code
22041 \begin_layout Standard
22043 \begin_inset Flex Code
22046 \begin_layout Plain Layout
22052 est le nom du compteur.
22053 Et elle doit se terminer par
22054 \begin_inset Flex Code
22057 \begin_layout Plain Layout
22068 \begin_layout Standard
22069 Les paramètres suivants peuvent également être utilisés:
22072 \begin_layout Description
22075 \begin_inset Flex Code
22078 \begin_layout Plain Layout
22087 \begin_inset Flex Code
22090 \begin_layout Plain Layout
22100 positionne la valeur initiale du compteur, valeur à laquelle il sera réinitiali
22101 sé quand cela sera nécessaire.
22102 Normalement, la valeur désirée est la valeur implicite,
22103 \begin_inset space ~
22109 \begin_layout Description
22112 \begin_inset Flex Code
22115 \begin_layout Plain Layout
22126 \begin_inset Flex Code
22129 \begin_layout Plain Layout
22136 \begin_inset Quotes erd
22140 \begin_inset Quotes erd
22143 ] définit comment le compteur s'affiche.
22144 Fixer ce paramètre positionne également
22145 \begin_inset Flex Code
22148 \begin_layout Plain Layout
22151 LabelStringAppendix
22157 Les arguments spécifiques suivants peuvent être utilisés:
22161 \begin_layout Itemize
22162 \begin_inset Flex Code
22165 \begin_layout Plain Layout
22175 sera remplacé par l'expansion de
22176 \begin_inset Flex Code
22179 \begin_layout Plain Layout
22188 \begin_inset Newline newline
22192 \begin_inset Flex Code
22195 \begin_layout Plain Layout
22198 LabelStringAppendix
22204 \begin_inset Flex Code
22207 \begin_layout Plain Layout
22219 \begin_layout Itemize
22220 les valeurs du compteur peuvent être exprimées par des macros à la \SpecialChar LaTeX
22222 \begin_inset Flex Code
22225 \begin_layout Plain Layout
22244 \begin_inset Flex Code
22247 \begin_layout Plain Layout
22257 \begin_inset Flex Code
22260 \begin_layout Plain Layout
22268 : 1, 2, 3,\SpecialChar ldots
22270 \begin_inset Flex Code
22273 \begin_layout Plain Layout
22281 pour les lettres en bas de casse: a, b, c, \SpecialChar ldots
22283 \begin_inset Flex Code
22286 \begin_layout Plain Layout
22294 pour les lettres en capitales: A, B, C, \SpecialChar ldots
22296 \begin_inset Flex Code
22299 \begin_layout Plain Layout
22307 pour la numérotation en bas de casse romaine: i, ii, iii, \SpecialChar ldots
22309 \begin_inset Flex Code
22312 \begin_layout Plain Layout
22320 pour la numérotation capitale romaine: I, II, III.
22324 \begin_layout Standard
22328 \begin_inset Flex Code
22331 \begin_layout Plain Layout
22341 est indéfini, une valeur implicite est construite comme suit: si le compteur
22342 a un compteur maître
22343 \begin_inset Flex Code
22346 \begin_layout Plain Layout
22355 \begin_inset Flex Code
22358 \begin_layout Plain Layout
22367 \begin_inset Newline newline
22371 \begin_inset Flex Code
22374 \begin_layout Plain Layout
22386 est utilisée; sinon la chaîne
22387 \begin_inset Flex Code
22390 \begin_layout Plain Layout
22403 \begin_layout Description
22406 \begin_inset Flex Code
22409 \begin_layout Plain Layout
22412 LabelStringAppendix
22420 \begin_inset Flex Code
22423 \begin_layout Plain Layout
22430 \begin_inset Quotes erd
22434 \begin_inset Quotes erd
22438 \begin_inset Flex Code
22441 \begin_layout Plain Layout
22449 , mais pour les annexes.
22452 \begin_layout Description
22453 \begin_inset Flex Code
22456 \begin_layout Plain Layout
22465 \begin_inset Flex Code
22468 \begin_layout Plain Layout
22475 \begin_inset Quotes erd
22479 \begin_inset Quotes erd
22482 ] définit un format à utiliser pour les références mises en forme utilisant
22484 Par exemple, on peut vouloir que les références aux numéros de section
22486 \begin_inset Quotes cld
22490 \begin_inset space ~
22494 \begin_inset Quotes crd
22498 La chaîne devra contenir
22499 \begin_inset Quotes cld
22503 \begin_inset Quotes crd
22507 Ceci sera remplacé par la valeur courante du compteur.
22508 Ainsi, pour les sections, ce sera: Section ##.
22511 \begin_layout Description
22512 \begin_inset Flex Code
22515 \begin_layout Plain Layout
22524 \begin_inset Flex Code
22527 \begin_layout Plain Layout
22534 \begin_inset Quotes erd
22538 \begin_inset Quotes erd
22541 ] contient le nom d'un autre compteur: le compteur actuel sera remis à zéro
22542 à chaque fois que l'autre augmentera.
22544 \begin_inset Flex Code
22547 \begin_layout Plain Layout
22554 \begin_inset Flex Code
22557 \begin_layout Plain Layout
22566 \begin_layout Subsection
22567 Description de police
22568 \begin_inset CommandInset label
22570 name "subsec:polices"
22577 \begin_layout Standard
22578 Une description de police ressemble à :
22581 \begin_layout LyX-Code
22595 \begin_layout LyX-Code
22599 \begin_layout LyX-Code
22603 \begin_layout Standard
22604 et les commandes suivantes sont disponibles :
22607 \begin_layout Description
22608 \begin_inset Flex Code
22611 \begin_layout Plain Layout
22622 \begin_inset Flex Code
22625 \begin_layout Plain Layout
22634 \begin_inset Flex Code
22637 \begin_layout Plain Layout
22644 \begin_inset Flex Code
22647 \begin_layout Plain Layout
22654 \begin_inset Flex Code
22657 \begin_layout Plain Layout
22664 \begin_inset Flex Code
22667 \begin_layout Plain Layout
22674 \begin_inset Flex Code
22677 \begin_layout Plain Layout
22684 \begin_inset Flex Code
22687 \begin_layout Plain Layout
22694 \begin_inset Flex Code
22697 \begin_layout Plain Layout
22704 \begin_inset Flex Code
22707 \begin_layout Plain Layout
22714 \begin_inset Flex Code
22717 \begin_layout Plain Layout
22724 \begin_inset Flex Code
22727 \begin_layout Plain Layout
22734 \begin_inset Flex Code
22737 \begin_layout Plain Layout
22744 \begin_inset Flex Code
22747 \begin_layout Plain Layout
22754 \begin_inset Flex Code
22757 \begin_layout Plain Layout
22764 \begin_inset Flex Code
22767 \begin_layout Plain Layout
22774 \begin_inset Flex Code
22777 \begin_layout Plain Layout
22784 \begin_inset Flex Code
22787 \begin_layout Plain Layout
22794 \begin_inset Flex Code
22797 \begin_layout Plain Layout
22804 \begin_inset Flex Code
22807 \begin_layout Plain Layout
22814 \begin_inset Flex Code
22817 \begin_layout Plain Layout
22826 \begin_layout Description
22827 \begin_inset Flex Code
22830 \begin_layout Plain Layout
22839 \begin_inset Flex Code
22842 \begin_layout Plain Layout
22851 \begin_inset Flex Code
22854 \begin_layout Plain Layout
22861 \begin_inset Flex Code
22864 \begin_layout Plain Layout
22873 \begin_layout Description
22874 \begin_inset Flex Code
22877 \begin_layout Plain Layout
22884 \begin_inset Flex Code
22887 \begin_layout Plain Layout
22893 ] avec les arguments valides suivants:
22894 \begin_inset Flex Code
22897 \begin_layout Plain Layout
22904 \begin_inset Flex Code
22907 \begin_layout Plain Layout
22914 \begin_inset Flex Code
22917 \begin_layout Plain Layout
22924 \begin_inset Flex Code
22927 \begin_layout Plain Layout
22934 \begin_inset Flex Code
22937 \begin_layout Plain Layout
22944 \begin_inset Flex Code
22947 \begin_layout Plain Layout
22954 \begin_inset Flex Code
22957 \begin_layout Plain Layout
22964 \begin_inset Flex Code
22967 \begin_layout Plain Layout
22974 \begin_inset Flex Code
22977 \begin_layout Plain Layout
22984 \begin_inset Flex Code
22987 \begin_layout Plain Layout
22994 \begin_inset Flex Code
22997 \begin_layout Plain Layout
23004 \begin_inset Newline linebreak
23008 \begin_inset Flex Code
23011 \begin_layout Plain Layout
23018 Chacun de ceux-ci (dés)active l'attribut correspondant.
23019 \begin_inset Newline newline
23023 \begin_inset Flex Code
23026 \begin_layout Plain Layout
23032 active la mise en évidence, et
23033 \begin_inset Flex Code
23036 \begin_layout Plain Layout
23043 Si ce dernier point vous intrigue, souvenez-vous que le réglage de police
23044 du contexte courant est généralement hérité du contexte environnant.
23046 \begin_inset Flex Code
23049 \begin_layout Plain Layout
23057 désactiverait la mise en évidence qui était active de toutes façons, par
23058 exemple dans un environnement de théorème.
23062 \begin_layout Description
23063 \begin_inset Flex Code
23066 \begin_layout Plain Layout
23075 \begin_inset Flex Code
23078 \begin_layout Plain Layout
23087 \begin_inset Flex Code
23090 \begin_layout Plain Layout
23099 \begin_layout Description
23100 \begin_inset Flex Code
23103 \begin_layout Plain Layout
23112 \begin_inset Flex Code
23115 \begin_layout Plain Layout
23124 \begin_inset Flex Code
23127 \begin_layout Plain Layout
23134 \begin_inset Flex Code
23137 \begin_layout Plain Layout
23144 \begin_inset Flex Code
23147 \begin_layout Plain Layout
23156 \begin_layout Description
23157 \begin_inset Flex Code
23160 \begin_layout Plain Layout
23167 \begin_inset Flex Code
23170 \begin_layout Plain Layout
23177 \begin_inset Flex Code
23180 \begin_layout Plain Layout
23187 \begin_inset Flex Code
23190 \begin_layout Plain Layout
23199 \begin_inset Flex Code
23202 \begin_layout Plain Layout
23209 \begin_inset Flex Code
23212 \begin_layout Plain Layout
23219 \begin_inset Flex Code
23222 \begin_layout Plain Layout
23229 \begin_inset Flex Code
23232 \begin_layout Plain Layout
23239 \begin_inset Flex Code
23242 \begin_layout Plain Layout
23251 \begin_layout Subsection
23254 \begin_inset CommandInset label
23256 name "subsec:Citation-engine-description"
23260 Citation engine description
23263 \begin_layout Standard
23267 \begin_inset Flex Code
23270 \begin_layout Plain Layout
23278 blocks, as used mainly in cite engine files (see
23279 \begin_inset CommandInset ref
23281 reference "subsec:Cite-Engine-Files"
23288 ), define the citation commands provided by a specific
23289 \begin_inset Quotes eld
23293 \begin_inset Quotes erd
23297 A cite engine, in \SpecialChar LyX
23298 terms, is way specific way to format citations, using
23299 numbers, author names and/or years.
23300 Currently, \SpecialChar LyX
23301 supports three such engine types, namely:
23304 \begin_layout Enumerate
23307 \begin_inset Flex Code
23310 \begin_layout Plain Layout
23318 : the default Bib\SpecialChar TeX
23319 way to format citations, a simple numeric style (e.
23320 \begin_inset space \thinspace{}
23324 \begin_inset Quotes eld
23328 \begin_inset Quotes erd
23334 \begin_layout Enumerate
23337 \begin_inset Flex Code
23340 \begin_layout Plain Layout
23348 : Harvard-styled citations using author names and publication year (e.
23349 \begin_inset space \thinspace{}
23353 \begin_inset Quotes eld
23356 Smith and Miller (2017b)
23357 \begin_inset Quotes erd
23363 \begin_layout Enumerate
23366 \begin_inset Flex Code
23369 \begin_layout Plain Layout
23377 : extended numerical citations that also allow for author or title next
23379 \begin_inset space \thinspace{}
23383 \begin_inset Quotes eld
23386 Smith and Miller [1]
23387 \begin_inset Quotes erd
23393 \begin_layout Standard
23396 \begin_inset Flex Code
23399 \begin_layout Plain Layout
23407 blocks look like this:
23410 \begin_layout LyX-Code
23416 \begin_layout LyX-Code
23422 \begin_layout LyX-Code
23428 \begin_layout LyX-Code
23431 citeyearpar[][]=parencite*
23434 \begin_layout LyX-Code
23440 \begin_layout LyX-Code
23446 \begin_layout Standard
23450 \begin_inset Flex Code
23453 \begin_layout Plain Layout
23461 denotes the engine.
23462 The individual lines respectively define a cite command or cite command
23463 paradigm supported by this engine.
23464 The line can be as simple as a cite command that is used both to name the
23465 respective \SpecialChar LyX
23466 command and the \SpecialChar LaTeX
23467 output or more complex in order to differentiate
23469 The full syntax is:
23472 \begin_layout LyX-Code
23475 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23478 \begin_layout Itemize
23481 \begin_inset Flex Code
23484 \begin_layout Plain Layout
23492 : The name as used in the
23493 \begin_inset Flex Code
23496 \begin_layout Plain Layout
23508 \begin_layout Standard
23511 For portability reasons, we try to use the same name for same-formatted
23512 commands in different cite packages (thus many names stem from natbib,
23513 and thus we need to differentiate a
23514 \begin_inset Flex Code
23517 \begin_layout Plain Layout
23525 sometimes, if the \SpecialChar LaTeX
23526 command names differ).
23530 \begin_layout Itemize
23533 \begin_inset Flex Code
23536 \begin_layout Plain Layout
23544 : a (comma-separated) list of commands that fall back to the given
23545 \begin_inset Flex Code
23548 \begin_layout Plain Layout
23556 in the current engine.
23557 This eases the switch of citation packages and engines.
23559 \begin_inset Flex Code
23562 \begin_layout Plain Layout
23571 \begin_inset Flex Code
23574 \begin_layout Plain Layout
23582 in layout definitions.
23585 \begin_layout Itemize
23588 \begin_inset Flex Code
23591 \begin_layout Plain Layout
23599 : The actual \SpecialChar LaTeX
23600 command that is output.
23604 \begin_layout Standard
23607 \begin_inset Flex Code
23610 \begin_layout Plain Layout
23619 \begin_inset Flex Code
23622 \begin_layout Plain Layout
23632 \begin_inset Flex Code
23635 \begin_layout Plain Layout
23644 \begin_inset Flex Code
23647 \begin_layout Plain Layout
23655 will be output to \SpecialChar LaTeX
23659 \begin_layout Standard
23665 \begin_layout Itemize
23668 Capitalization indicates that the command also has a capitalized form (
23669 \begin_inset Flex Code
23672 \begin_layout Plain Layout
23684 \begin_inset Flex Code
23687 \begin_layout Plain Layout
23698 These usually enforce up-casing of name prefixes (
23703 \begin_inset Formula $\Rightarrow$
23713 \begin_layout Itemize
23717 \begin_inset Flex Code
23720 \begin_layout Plain Layout
23728 indicate the number of optional arguments (there can be 0–2).
23731 \begin_layout Itemize
23735 \begin_inset Flex Code
23738 \begin_layout Plain Layout
23746 indicates there is a starred version of the command (
23747 \begin_inset Flex Code
23750 \begin_layout Plain Layout
23762 \begin_inset Flex Code
23765 \begin_layout Plain Layout
23780 \begin_layout Standard
23783 By default, the starred version means: Output all authors even if it should
23785 \begin_inset Quotes eld
23789 \begin_inset Quotes erd
23793 \begin_inset Flex Code
23796 \begin_layout Plain Layout
23807 \begin_layout Standard
23810 If the star has a different meaning for a given command, it can be specified
23812 \begin_inset Flex Code
23815 \begin_layout Plain Layout
23818 <!_stardesc!_stardesctooltip>
23824 Maximal two translatable macro keywords, marked by the prefix
23825 \begin_inset Flex Code
23828 \begin_layout Plain Layout
23837 The first points to the string that replaces the
23838 \begin_inset Quotes eld
23842 \begin_inset Quotes erd
23845 checkbox label in the citation dialog, the second one to an optional tool
23846 tip for this checkbox.
23850 \begin_layout Standard
23853 Note that these two macros have to be defined in a
23854 \begin_inset Flex Code
23857 \begin_layout Plain Layout
23865 (see next section), dropping the
23866 \begin_inset Flex Code
23869 \begin_layout Plain Layout
23877 from the prefix, like this:
23880 \begin_layout LyX-Code
23883 _stardesc Sta&rred command label
23886 \begin_layout LyX-Code
23889 _stardesctooltip Tooltip for the starred command checkbox.
23893 \begin_layout Itemize
23897 \begin_inset Flex Code
23900 \begin_layout Plain Layout
23908 indicates that this command features
23909 \begin_inset Quotes eld
23912 qualified citation lists
23913 \begin_inset Quotes erd
23921 -specific feature for multi-reference citations where an individual pre-
23922 and postnote can be given to each reference in the list.
23923 Please refer to the
23927 manual for details.
23930 \begin_layout Subsection
23931 \begin_inset CommandInset label
23933 name "subsec:Description citation"
23937 Description d'une insertion de citation
23940 \begin_layout Standard
23942 \begin_inset Flex Code
23945 \begin_layout Plain Layout
23951 servent à décrire comment les citations bibliographiques doivent être affichées
23952 , à la fois dans \SpecialChar LyX
23953 (dans la fenêtre de citation et dans les bulles d'aide,
23954 par exemple) et dans le résultat XHTML.
23955 Un tel bloc se présente comme suit:
23958 \begin_layout LyX-Code
23964 \begin_layout LyX-Code
23970 \begin_layout LyX-Code
23976 \begin_layout LyX-Code
23982 \begin_layout Standard
23988 \begin_layout LyX-Code
23994 \begin_layout LyX-Code
24000 \begin_layout LyX-Code
24006 \begin_layout LyX-Code
24012 \begin_layout Standard
24015 Dans le premier cas,
24017 les différentes lignes définissent l'affichage de l'information correspondant
24018 à une article ou à un livre, respectivement, et une telle définition peut
24019 être créée pour tout type d'entrée apparaissant dans un fichier Bib\SpecialChar TeX
24022 définit un format implicite dans le code source qui sera utilisé si aucune
24023 définition spécifique n'est fournie.
24025 prédéfinit plusieurs formats dans le fichier
24026 \begin_inset Flex Code
24029 \begin_layout Plain Layout
24035 , qui est inclus dans la plupart des classes de document \SpecialChar LyX
24039 \begin_layout Standard
24042 In the second case, the lines define how a specific citation command (in
24044 \begin_inset Flex Code
24047 \begin_layout Plain Layout
24058 \begin_inset Flex Code
24061 \begin_layout Plain Layout
24071 ) is to be displayed on the citation inset label, in the citation dialog,
24072 menu or XHTML output.
24074 defines such formats for the citation style variants it supports via
24076 Document\SpecialChar menuseparator
24077 Setting\SpecialChar menuseparator
24078 Bibliography\SpecialChar ldots
24082 \begin_inset Flex Code
24085 \begin_layout Plain Layout
24093 files that are shipped with \SpecialChar LyX
24095 \begin_inset CommandInset ref
24097 reference "subsec:Cite-Engine-Files"
24107 \begin_layout Standard
24108 Les définitions utilisent un langage simple qui permet
24109 \begin_inset space ~
24112 de remplacer les clés Bib\SpecialChar TeX
24114 les clés doivent être encloses entre caractères
24117 \begin_inset Flex Code
24120 \begin_layout Plain Layout
24129 \begin_inset Flex Code
24132 \begin_layout Plain Layout
24143 Une définition simple serait par exemple:
24146 \begin_layout LyX-Code
24150 \begin_inset Quotes eld
24154 \begin_inset Quotes erd
24160 \begin_layout Standard
24161 Ceci imprimerait le nom de l'auteur, suivi d'une virgule, suivi du titre,
24162 entre double guillemets, suivi d'un point.
24165 \begin_layout Standard
24166 Bien entendu, vous voudrez parfois n'imprimer une clé que si elle existe.
24167 Ceci est obtenu par une construction conditionnelle, comme:
24168 \begin_inset Flex Code
24171 \begin_layout Plain Layout
24173 \begin_inset space ~
24182 Ceci signifie: si la clé
24183 \begin_inset Flex Code
24186 \begin_layout Plain Layout
24192 existe, alors imprimer
24193 \begin_inset Quotes cld
24197 \begin_inset Quotes crd
24200 suivi de la clé volume.
24201 On peut aussi introduire une clause
24202 \begin_inset Flex Code
24205 \begin_layout Plain Layout
24211 dans l'expression conditionnelle, comme dans:
24212 \begin_inset Newline newline
24216 \begin_inset Flex Code
24219 \begin_layout Plain Layout
24220 {%author%[[%author%]][[%editor%, ed.]]}
24226 \begin_inset Newline newline
24230 \begin_inset Flex Code
24233 \begin_layout Plain Layout
24239 est imprimée si elle existe; sinon la clé
24240 \begin_inset Flex Code
24243 \begin_layout Plain Layout
24249 est imprimée, suivi de
24250 \begin_inset Quotes cld
24254 \begin_inset Quotes crd
24258 Noter que la clé est encore enclose entre caractères
24259 \begin_inset Flex Code
24262 \begin_layout Plain Layout
24268 ; la clause conditionnelle entière est enclose entre accolades, et les clauses
24270 \begin_inset Flex Code
24273 \begin_layout Plain Layout
24280 \begin_inset Flex Code
24283 \begin_layout Plain Layout
24289 sont encloses entre double crochets
24290 \begin_inset Quotes cld
24294 \begin_inset Quotes crd
24298 \begin_inset Quotes cld
24302 \begin_inset Quotes crd
24306 Il ne peut avoir d'espaces entre ces marqueurs.
24309 \begin_layout Standard
24312 Next to the entry keys, there are some special keys that can be used for
24313 these conditionals:
24316 \begin_layout Itemize
24319 \begin_inset Flex Code
24322 \begin_layout Plain Layout
24325 {%dialog%[[true]][[false]]}
24331 \begin_inset Quotes eld
24335 \begin_inset Quotes erd
24338 part for dialogs and menus, the
24339 \begin_inset Quotes eld
24343 \begin_inset Quotes erd
24346 part for other contexts (workarea, export)
24349 \begin_layout Itemize
24352 \begin_inset Flex Code
24355 \begin_layout Plain Layout
24358 {%export%[[true]][[false]]}
24364 \begin_inset Quotes eld
24368 \begin_inset Quotes erd
24371 part for export and menus, the
24372 \begin_inset Quotes eld
24376 \begin_inset Quotes erd
24379 part for other contexts (workarea, dialog)
24382 \begin_layout Itemize
24385 \begin_inset Flex Code
24388 \begin_layout Plain Layout
24397 \begin_inset Quotes eld
24401 \begin_inset Quotes erd
24404 part if another item follows (e.
24405 \begin_inset space \thinspace{}
24408 g., in a citation with multiple keys)
24411 \begin_layout Itemize
24414 \begin_inset Flex Code
24417 \begin_layout Plain Layout
24420 {%second%[[true]][[false]]}
24426 \begin_inset Quotes eld
24430 \begin_inset Quotes erd
24433 if this is the second of multiple items, else the
24434 \begin_inset Quotes eld
24438 \begin_inset Quotes erd
24444 \begin_layout Itemize
24447 \begin_inset Flex Code
24450 \begin_layout Plain Layout
24453 {%ifstar%[[true]][[false]]}
24459 \begin_inset Quotes eld
24463 \begin_inset Quotes erd
24466 part for starred citation commands (such as
24467 \begin_inset Flex Code
24470 \begin_layout Plain Layout
24480 ), the false part for unstarred
24483 \begin_layout Itemize
24486 \begin_inset Flex Code
24489 \begin_layout Plain Layout
24492 {%ifentrytype:<type>%[[true]][[false]]}
24498 \begin_inset Quotes eld
24502 \begin_inset Quotes erd
24505 if the current entry type matches
24506 \begin_inset Flex Code
24509 \begin_layout Plain Layout
24517 , else the false part (e.g., in a citation definition:
24518 \begin_inset Flex Code
24521 \begin_layout Plain Layout
24524 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24532 \begin_layout Itemize
24535 \begin_inset Flex Code
24538 \begin_layout Plain Layout
24541 {%ifmultiple:<authortype>%[[true]][[false]]}
24547 \begin_inset Quotes eld
24551 \begin_inset Quotes erd
24554 if the current author type (author, editor etc.) has multiple authors, else
24555 the false part (e.g., in a bibliography definition:
24556 \begin_inset Flex Code
24559 \begin_layout Plain Layout
24562 {%ifmultiple:editor%[[eds.]][[ed.]]}
24570 \begin_layout Itemize
24573 \begin_inset Flex Code
24576 \begin_layout Plain Layout
24579 {%ifqualified%[[true]][[false]]}
24585 \begin_inset Quotes eld
24589 \begin_inset Quotes erd
24592 part if the current citation is a qualified citation list (a specific
24596 format for multi-reference citations), the false part if this is not the
24600 \begin_layout Standard
24604 \begin_inset Flex Code
24607 \begin_layout Plain Layout
24615 prints the author key as it is recorded in the bibliography file.
24616 This might not be what you want, since it will result in a string such
24618 \begin_inset Quotes eld
24621 Miller, Peter and Smith, Mary and White, Jane
24622 \begin_inset Quotes erd
24626 \begin_inset Quotes eld
24630 \begin_inset Quotes erd
24633 is used by Bib\SpecialChar TeX
24634 to delimit authors).
24636 therefore provides some methods to get properly formatted name lists (which
24637 will also get translated).
24638 The following keys are provided:
24641 \begin_layout Enumerate
24644 For name lists with pre- and surname, suitable for the main authors/editors
24645 of a bibliography item.
24647 \begin_inset Flex Code
24650 \begin_layout Plain Layout
24658 part denotes the kind of list that is requested (e.g.
24660 \begin_inset Flex Code
24663 \begin_layout Plain Layout
24675 \begin_layout Itemize
24678 \begin_inset Flex Code
24681 \begin_layout Plain Layout
24684 %abbrvnames:<nametype>%
24689 : Provides a name list which is abbreviated (with
24690 \begin_inset Quotes eld
24694 \begin_inset Quotes erd
24698 \begin_inset Flex Code
24701 \begin_layout Plain Layout
24712 \begin_layout Itemize
24715 \begin_inset Flex Code
24718 \begin_layout Plain Layout
24721 %fullnames:<nametype>%
24726 : Provides a full name list (never abbreviated with
24727 \begin_inset Quotes eld
24731 \begin_inset Quotes erd
24737 \begin_layout Itemize
24740 \begin_inset Flex Code
24743 \begin_layout Plain Layout
24746 %forceabbrvnames:<nametype>%
24751 : Provides a name list which is always abbreviated (with
24752 \begin_inset Quotes eld
24756 \begin_inset Quotes erd
24760 \begin_inset Flex Code
24763 \begin_layout Plain Layout
24775 \begin_layout Enumerate
24778 Alternative name lists with pre- and surname, if the order of pre- and surname
24779 inside the bibliography item differs (as in:
24780 \begin_inset Quotes eld
24783 Miller, John: Some text, in: Mary Smith, ed.: A volume
24784 \begin_inset Quotes erd
24791 \begin_layout Itemize
24794 \begin_inset Flex Code
24797 \begin_layout Plain Layout
24800 %abbrvbynames:<nametype>%
24805 : Provides a name list which is abbreviated (with
24806 \begin_inset Quotes eld
24810 \begin_inset Quotes erd
24814 \begin_inset Flex Code
24817 \begin_layout Plain Layout
24828 \begin_layout Itemize
24831 \begin_inset Flex Code
24834 \begin_layout Plain Layout
24837 %fullbynames:<nametype>%
24842 : Provides a full name list (never abbreviated with
24843 \begin_inset Quotes eld
24847 \begin_inset Quotes erd
24853 \begin_layout Itemize
24856 \begin_inset Flex Code
24859 \begin_layout Plain Layout
24862 %forceabbrvbynames:<nametype>%
24867 : Provides a name list which is always abbreviated (with
24868 \begin_inset Quotes eld
24872 \begin_inset Quotes erd
24876 \begin_inset Flex Code
24879 \begin_layout Plain Layout
24891 \begin_layout Enumerate
24894 And finally name lists which consist of family names only, as used in author-yea
24896 these do not take a
24897 \begin_inset Flex Code
24900 \begin_layout Plain Layout
24908 part, but always return either an author list or, if this does not exist,
24909 an editor list (as common in author-year labels):
24913 \begin_layout Itemize
24916 \begin_inset Flex Code
24919 \begin_layout Plain Layout
24927 : Provides a name list which is abbreviated (with
24928 \begin_inset Quotes eld
24932 \begin_inset Quotes erd
24936 \begin_inset Flex Code
24939 \begin_layout Plain Layout
24950 \begin_layout Itemize
24953 \begin_inset Flex Code
24956 \begin_layout Plain Layout
24964 : Provides a full name list (never abbreviated with
24965 \begin_inset Quotes eld
24969 \begin_inset Quotes erd
24975 \begin_layout Itemize
24978 \begin_inset Flex Code
24981 \begin_layout Plain Layout
24984 %forceabbrvciteauthor%
24989 : Provides a name list which is always abbreviated (with
24990 \begin_inset Quotes eld
24994 \begin_inset Quotes erd
24998 \begin_inset Flex Code
25001 \begin_layout Plain Layout
25013 \begin_layout Standard
25016 The order of pre- and surname in the former two lists can be adjusted by
25020 \begin_layout Itemize
25023 \begin_inset Flex Code
25026 \begin_layout Plain Layout
25029 !firstnameform %surname%, %prename%
25034 (first author in lists of type 1)
25037 \begin_layout Itemize
25040 \begin_inset Flex Code
25043 \begin_layout Plain Layout
25046 !othernameform %surname%, %prename%
25051 (other authors in lists of type 1)
25054 \begin_layout Itemize
25057 \begin_inset Flex Code
25060 \begin_layout Plain Layout
25063 !firstbynameform %prename% %surname%
25068 (first author in lists of type 2)
25071 \begin_layout Itemize
25074 \begin_inset Flex Code
25077 \begin_layout Plain Layout
25080 !otherbynameform %prename% %surname%
25085 (other authors in lists of type 2)
25088 \begin_layout Standard
25091 This allows you to configure namings like
25092 \begin_inset Quotes eld
25095 Miller, Peter and Mary Smith: \SpecialChar ldots
25096 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25098 \begin_inset Quotes erd
25104 \begin_layout Standard
25105 Il existe enfin une autre syntaxe possible dans ces définitions, qui se
25106 présente comme suit:
25107 \begin_inset Flex Code
25110 \begin_layout Plain Layout
25117 Ceci définit une entité d'information utilisée pour créer du
25118 \begin_inset Quotes cld
25122 \begin_inset Quotes crd
25126 De manière évidente, nous ne souhaitons pas exporter des balises HTML en
25127 écrivant du texte normal, aussi doivent elles être enclose entre
25128 \begin_inset Quotes cld
25132 \begin_inset Quotes crd
25136 \begin_inset Quotes cld
25140 \begin_inset Quotes crd
25146 \begin_layout Standard
25147 Deux définitions spéciales sont également disponibles dans un bloc
25148 \begin_inset Flex Code
25151 \begin_layout Plain Layout
25157 Un exemple de la première définition est celle-ci:
25160 \begin_layout LyX-Code
25162 \begin_inset Quotes eld
25166 \begin_inset Quotes erd
25172 \begin_layout Standard
25173 Ceci est une abréviation, ou macro-instruction, et peut être employée comme
25175 \begin_inset Flex Code
25178 \begin_layout Plain Layout
25187 \begin_inset Flex Code
25190 \begin_layout Plain Layout
25196 exactement comme s'il s'agissait de sa définition.
25197 Exprimons par conséquent un
25201 évident: n'utilisez pas:
25204 \begin_layout LyX-Code
25208 \begin_layout Standard
25211 ne devrait pas se perdre dans une boucle infinie, mais cela peut prendre
25212 un moment avant qu'il s'en sorte.
25215 \begin_layout Standard
25216 Le second type de définitions particulières se présente comme ceci:
25219 \begin_layout LyX-Code
25225 \begin_layout Standard
25226 Ceci définit un segment de texte susceptible de traduction, ce qui permet
25227 de traduire les parties appropriées de la bibliographie
25232 Cette syntaxe peut être incluse dans une définition normale en la considérant
25234 \begin_inset Flex Code
25237 \begin_layout Plain Layout
25244 Plusieurs d'entre elles sont prédéfinies dans
25245 \begin_inset Flex Code
25248 \begin_layout Plain Layout
25258 \begin_inset Flex Code
25261 \begin_layout Plain Layout
25271 Notez bien que ce ne sont pas des macro-instructions, au sens défini ci-dessus:
25272 elles ne seront pas interprétées.
25275 \begin_layout Standard
25276 Voici donc un exemple utilisant toutes ces fonctionnalités:
25277 \begin_inset VSpace defskip
25283 \begin_layout Standard
25287 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
25290 \begin_layout Standard
25291 \begin_inset VSpace defskip
25294 Ceci défini une macro qui imprime le nom de l'auteur, suivi d'un virgule,
25296 \begin_inset Flex Code
25299 \begin_layout Plain Layout
25305 existe, ou bien imprime le nom de l'éditeur, suivi de
25306 \begin_inset Flex Code
25309 \begin_layout Plain Layout
25315 ou de sa traduction (implicitement, apparaîtra
25316 \begin_inset Quotes cld
25320 \begin_inset Quotes crd
25324 \begin_inset Flex Code
25327 \begin_layout Plain Layout
25334 Notez que ceci est déjà défini dans
25335 \begin_inset Flex Code
25338 \begin_layout Plain Layout
25344 , vous pouvez donc l'utiliser dans vos propres définitions, ou redéfinitions,
25345 si vous chargez ce fichier d'abord.
25348 \begin_layout Section
25349 Directives pour l'exportation XHTML
25350 \begin_inset CommandInset label
25352 name "sec:Tags-for-XHTML"
25359 \begin_layout Standard
25360 Comme pour \SpecialChar LaTeX
25361 ou DocBook, la présentation du résultat HTML créé par \SpecialChar LyX
25363 par les informations de format.
25364 En général, \SpecialChar LyX
25365 produit une présentation implicite raisonnable, et comme indiqué
25366 plus haut, il construira même des règles implicites CSS à partir des autres
25367 directives de format.
25368 Par exemple, \SpecialChar LyX
25369 essaiera d'utiliser l'information du bloc
25370 \begin_inset Flex Code
25373 \begin_layout Plain Layout
25379 du style Chapter pour écrire une CSS qui mettra en forme les titres de
25380 chapitres de manière appropriée.
25383 \begin_layout Standard
25384 Dans de nombreux cas, vous n'aurez donc sans doute rien à faire du tout
25385 pour obtenir un résultat XHTML acceptable pour vos environnements propres,
25386 vos inserts personnalisés, et ainsi de suite.
25387 Mais dans certains cas vous devrez faire quelque chose, et \SpecialChar LyX
25389 conséquent un certain nombre de directives de format qui peuvent être utilisées
25390 pour personnaliser le XHTML et les CSS qui sont créés.
25393 \begin_layout Standard
25394 Notez qu'il existe deux directives,
25395 \begin_inset Flex Code
25398 \begin_layout Plain Layout
25405 \begin_inset Flex Code
25408 \begin_layout Plain Layout
25414 , qui peuvent apparaître en dehors des déclarations de style et d'insert.
25416 \begin_inset CommandInset ref
25418 reference "subsec:Paramètres-généraux-d'une"
25422 pour les détails sur celles-ci.
25425 \begin_layout Subsection
25426 Styles de paragraphe
25427 \begin_inset CommandInset label
25429 name "subsec:Styles-de-paragraphe-XHTML"
25436 \begin_layout Standard
25437 Le type de XHTML que \SpecialChar LyX
25438 crée pour un paragraphe dépend s'il s'agit d'un paragraphe
25439 normal, d'une commande ou d'un environnement, ce qui est déterminé par
25440 le contenu de la directive correspondante
25441 \begin_inset Flex Code
25444 \begin_layout Plain Layout
25454 \begin_layout Standard
25455 Pour une commande ou un paragraphe normal, le résultat XHTML a la forme
25459 \begin_layout LyX-Code
25463 \begin_inset Quotes erd
25467 \begin_inset Quotes erd
25473 \begin_layout LyX-Code
25477 \begin_inset Quotes erd
25481 \begin_inset Quotes erd
25484 >Étiquette</labeltag>
25487 \begin_layout LyX-Code
25490 Contenu du paragraphe
25493 \begin_layout LyX-Code
25499 \begin_layout Standard
25500 Les balises d'étiquette sont bien entendu omises si le paragraphe n'est
25504 \begin_layout Standard
25505 Pour un environnement qui n'est pas du type liste, le XHTML prend la forme:
25508 \begin_layout LyX-Code
25512 \begin_inset Quotes erd
25516 \begin_inset Quotes erd
25522 \begin_layout LyX-Code
25526 \begin_inset Quotes erd
25530 \begin_inset Quotes erd
25534 \begin_inset Quotes erd
25538 \begin_inset Quotes erd
25541 >Étiquette d'environnement</labeltag>Premier paragraphe.</itemtag>
25544 \begin_layout LyX-Code
25547 <itemtag>Second paragraphe.</itemtag>
25550 \begin_layout LyX-Code
25556 \begin_layout Standard
25557 Noter que l'étiquette n'est émise que pour le premier paragraphe, comme
25558 ce serait le cas pour une théorème, par exemple.
25561 \begin_layout Standard
25562 Pour une liste, nous avons une de ces formes:
25565 \begin_layout LyX-Code
25569 \begin_inset Quotes erd
25573 \begin_inset Quotes erd
25579 \begin_layout LyX-Code
25583 \begin_inset Quotes erd
25587 \begin_inset Quotes erd
25591 \begin_inset Quotes erd
25595 \begin_inset Quotes erd
25598 >Étiquette de liste</labeltag>Premier élément.</itemtag>
25601 \begin_layout LyX-Code
25605 \begin_inset Quotes erd
25609 \begin_inset Quotes erd
25613 \begin_inset Quotes erd
25617 \begin_inset Quotes erd
25620 >Étiquette de liste</labeltag>Second élément.</itemtag>
25623 \begin_layout LyX-Code
25629 \begin_layout LyX-Code
25633 \begin_layout LyX-Code
25637 \begin_inset Quotes erd
25641 \begin_inset Quotes erd
25647 \begin_layout LyX-Code
25651 \begin_inset Quotes erd
25655 \begin_inset Quotes erd
25658 >Étiquette de liste</labeltag><itemtag attr=
25659 \begin_inset Quotes erd
25663 \begin_inset Quotes erd
25666 >Premier élément.</itemtag>
25669 \begin_layout LyX-Code
25673 \begin_inset Quotes erd
25677 \begin_inset Quotes erd
25680 >Étiquette de liste</labeltag><itemtag attr=
25681 \begin_inset Quotes erd
25685 \begin_inset Quotes erd
25688 >Second élément.</itemtag>
25691 \begin_layout LyX-Code
25697 \begin_layout Standard
25698 Noter la différence en ce qui concerne l'ordre des balises
25699 \begin_inset Flex Code
25702 \begin_layout Plain Layout
25709 \begin_inset Flex Code
25712 \begin_layout Plain Layout
25719 L'ordre obtenu dépend du positionnement de
25720 \begin_inset Flex Code
25723 \begin_layout Plain Layout
25730 \begin_inset Flex Code
25733 \begin_layout Plain Layout
25739 est fausse (valeur implicite), vous obtiendrez la première forme, avec
25740 l'étiquette dans l'élément; s'il la valeur est vraie, vous obtiendrez la
25741 seconde forme, avec l'étiquette en dehors de l'élément.
25744 \begin_layout Standard
25745 Les balises et les attributs spécifiques émis pour chaque type de paragraphe
25746 peuvent être contrôlés par les directives de format que nous allons décrire.
25747 Comme indiqué ci-dessus, cependant, \SpecialChar LyX
25748 utilise des valeurs implicites raisonnable
25749 s pour la plupart d'entre elles, vous n'aurez donc pas grand-chose à faire
25750 pour produire un résultat XHTML satisfaisant.
25751 Pensez aux directives disponibles comme un supplément pour obtenir un réglage
25752 à votre convenance.
25755 \begin_layout Description
25758 \begin_inset Flex Code
25761 \begin_layout Plain Layout
25770 \begin_inset Flex Code
25773 \begin_layout Plain Layout
25781 précise les informations d'attribut à émettre avec la balise principale.
25783 \begin_inset Flex Code
25786 \begin_layout Plain Layout
25787 \begin_inset Quotes cld
25791 \begin_inset Quotes crd
25800 Implicitement, \SpecialChar LyX
25802 \begin_inset Newline newline
25806 \begin_inset Flex Code
25809 \begin_layout Plain Layout
25810 \begin_inset Quotes cld
25814 \begin_inset Quotes crd
25823 \begin_inset Flex Code
25826 \begin_layout Plain Layout
25832 est le nom du style en bas de casse, par exemple: chapter.
25833 Ceci ne doit contenir
25837 information de style: utiliser
25838 \begin_inset Flex Code
25841 \begin_layout Plain Layout
25850 \begin_layout Description
25853 \begin_inset Flex Code
25856 \begin_layout Plain Layout
25867 \begin_inset Flex Code
25870 \begin_layout Plain Layout
25879 \begin_inset space \thinspace{}
25883 \begin_inset Flex Code
25886 \begin_layout Plain Layout
25892 ] indique s'il faut émettre l'information CSS implicite engendrée par \SpecialChar LyX
25894 ce style, même si une information complémentaire est explicitement émise
25896 \begin_inset Flex Code
25899 \begin_layout Plain Layout
25906 Positionner cette directive à
25907 \begin_inset Flex Code
25910 \begin_layout Plain Layout
25916 vous permet de modifier ou de compléter la CSS créée, plutôt que de l'écraser
25919 \begin_inset Flex Code
25922 \begin_layout Plain Layout
25931 \begin_layout Description
25934 \begin_inset Flex Code
25937 \begin_layout Plain Layout
25946 \begin_inset Flex Code
25949 \begin_layout Plain Layout
25957 définit la balise utilisée pour les paragraphes ou environnements isolés,
25959 \begin_inset Flex Code
25962 \begin_layout Plain Layout
25968 dans les exemples ci-dessus.
25970 \begin_inset Flex Code
25973 \begin_layout Plain Layout
25982 \begin_layout Description
25985 \begin_inset Flex Code
25988 \begin_layout Plain Layout
25997 \begin_inset Flex Code
26000 \begin_layout Plain Layout
26008 définit les attributs des balises
26009 \begin_inset Flex Code
26012 \begin_layout Plain Layout
26020 \begin_inset Flex Code
26023 \begin_layout Plain Layout
26024 \begin_inset Quotes cld
26027 class=`nomstyle_item'
26028 \begin_inset Quotes crd
26037 Ceci ne doit contenir
26041 information de style: utiliser
26042 \begin_inset Flex Code
26045 \begin_layout Plain Layout
26054 \begin_layout Description
26057 \begin_inset Flex Code
26060 \begin_layout Plain Layout
26069 \begin_inset Flex Code
26072 \begin_layout Plain Layout
26080 définit la balise utilisée pour les étiquettes de paragraphe et d'élément,
26082 \begin_inset Flex Code
26085 \begin_layout Plain Layout
26091 dans les exemples ci-dessus.
26093 \begin_inset Flex Code
26096 \begin_layout Plain Layout
26103 \begin_inset Flex Code
26106 \begin_layout Plain Layout
26113 \begin_inset Flex Code
26116 \begin_layout Plain Layout
26123 \begin_inset Newline newline
26127 \begin_inset Flex Code
26130 \begin_layout Plain Layout
26131 Centered_Top_Environment
26136 , auquel cas elle vaut implicitement
26137 \begin_inset Flex Code
26140 \begin_layout Plain Layout
26149 \begin_layout Description
26152 \begin_inset Flex Code
26155 \begin_layout Plain Layout
26164 \begin_inset Flex Code
26167 \begin_layout Plain Layout
26175 définit les attributs de la balise
26176 \begin_inset Flex Code
26179 \begin_layout Plain Layout
26187 \begin_inset Quotes erd
26191 Ceci ne doit contenir
26195 information de style: utiliser
26196 \begin_inset Flex Code
26199 \begin_layout Plain Layout
26208 \begin_layout Description
26211 \begin_inset Flex Code
26214 \begin_layout Plain Layout
26225 \begin_inset Flex Code
26228 \begin_layout Plain Layout
26237 \begin_inset space \thinspace{}
26241 \begin_inset Flex Code
26244 \begin_layout Plain Layout
26250 ], significatif uniquement pour les environnements de liste, contrôle si
26251 la balise d'étiquetage est émise avant ou dans la balise d'élément.
26252 Ceci est utilisé par exemple dans l'environnement de description, où l'on
26254 \begin_inset Flex Code
26257 \begin_layout Plain Layout
26258 \begin_inset Quotes cld
26261 <dt>\SpecialChar ldots
26262 </dt><dd>\SpecialChar ldots
26264 \begin_inset Quotes crd
26274 \begin_inset Flex Code
26277 \begin_layout Plain Layout
26283 : la balise d'étiquetage est dans la balise d'élément.
26286 \begin_layout Description
26289 \begin_inset Flex Code
26292 \begin_layout Plain Layout
26302 définit l'information à émettre dans la section
26303 \begin_inset Flex Code
26306 \begin_layout Plain Layout
26312 quand ce style est utilisé.
26313 Ceci pourrait être utilisé par exemple pour inclure un bloc
26314 \begin_inset Flex Code
26317 \begin_layout Plain Layout
26323 définissant un gestionnaire
26324 \begin_inset Flex Code
26327 \begin_layout Plain Layout
26336 \begin_layout Description
26339 \begin_inset Flex Code
26342 \begin_layout Plain Layout
26352 définit l'information à émettre dans la section
26353 \begin_inset Flex Code
26356 \begin_layout Plain Layout
26362 quand ce style est utilisé.
26363 Ceci pourrait être utilisé par exemple pour inclure un bloc
26364 \begin_inset Flex Code
26367 \begin_layout Plain Layout
26373 définissant un gestionnaire
26374 \begin_inset Flex Code
26377 \begin_layout Plain Layout
26384 Doit être fermé par
26387 \begin_inset Flex Code
26390 \begin_layout Plain Layout
26403 \begin_layout Description
26406 \begin_inset Flex Code
26409 \begin_layout Plain Layout
26418 \begin_inset Flex Code
26421 \begin_layout Plain Layout
26429 définit la balise utilisé pour l'étiquette principale, qui remplace
26430 \begin_inset Flex Code
26433 \begin_layout Plain Layout
26439 dans les exemples ci-dessus.
26441 \begin_inset Flex Code
26444 \begin_layout Plain Layout
26453 \begin_layout Description
26456 \begin_inset Flex Code
26459 \begin_layout Plain Layout
26470 \begin_inset Flex Code
26473 \begin_layout Plain Layout
26482 \begin_inset space \thinspace{}
26486 \begin_inset Flex Code
26489 \begin_layout Plain Layout
26495 ] identifie ce style comme celui à utiliser pour créer la balise
26496 \begin_inset Flex Code
26499 \begin_layout Plain Layout
26505 dans le fichier XHTML.
26506 Implicitement fausse.
26508 \begin_inset Flex Code
26511 \begin_layout Plain Layout
26517 la positionne à vraie pour l'environnement
26518 \begin_inset Flex Code
26521 \begin_layout Plain Layout
26530 \begin_layout Subsection
26536 \begin_layout Standard
26537 L'exportation XHTML des inserts peut également être contrôlée par l'information
26538 résidant dans les fichiers de format
26542 \begin_layout Plain Layout
26543 Pour le moment, ceci n'est exact que pour les inserts de
26544 \begin_inset Quotes cld
26548 \begin_inset Quotes crd
26551 (les inserts dans lesquels vous pouvez effectuer une saisie), mais n'est
26552 pas exact pour les inserts de
26553 \begin_inset Quotes cld
26557 \begin_inset Quotes crd
26560 (inserts associés à des boîtes de dialogue).
26566 Là encore, \SpecialChar LyX
26567 essaie de produire implicitement un résultat raisonnable, et
26568 il crée des règles CSS implicites.
26569 Mais tout peut être personnalisé.
26572 \begin_layout Standard
26573 Le résultat XHTML produit par \SpecialChar LyX
26574 pour un insert a la forme suivante:
26577 \begin_layout LyX-Code
26581 \begin_inset Quotes erd
26585 \begin_inset Quotes erd
26591 \begin_layout LyX-Code
26601 \begin_layout LyX-Code
26605 \begin_inset Quotes erd
26609 \begin_inset Quotes erd
26614 Contenu de l'insert.
26619 \begin_layout LyX-Code
26625 \begin_layout Standard
26626 Si l'insert permet de saisir plusieurs paragraphes — c'est-à-dire, si
26627 \begin_inset Flex Code
26630 \begin_layout Plain Layout
26636 est vrai — alors le contenu de l'insert sera exporté également en paragraphes
26637 formatés en fonction des styles utilisés pour ces paragraphes (standard,
26638 citation et similaire).
26639 La balise d'étiquetage est bien entendu omise si la paragraphe n'a pas
26640 d'étiquette et, pour le moment, est toujours
26641 \begin_inset Flex Code
26644 \begin_layout Plain Layout
26651 La balise interne est facultative et, implicitement, n'apparaît pas.
26654 \begin_layout Standard
26655 Les balises et attributs spécifiques émis pour chaque insert peuvent être
26656 contrôlés au moyen des directives de format suivantes:
26659 \begin_layout Description
26662 \begin_inset Flex Code
26665 \begin_layout Plain Layout
26676 \begin_inset Flex Code
26679 \begin_layout Plain Layout
26685 ] précise les informations d'attribut à émettre avec la balise principale.
26687 \begin_inset Flex Code
26690 \begin_layout Plain Layout
26691 \begin_inset Quotes cld
26694 class=`moninsert' onclick=`\SpecialChar ldots
26696 \begin_inset Quotes crd
26705 Implicitement, \SpecialChar LyX
26707 \begin_inset Flex Code
26710 \begin_layout Plain Layout
26711 \begin_inset Quotes cld
26715 \begin_inset Quotes crd
26724 \begin_inset Flex Code
26727 \begin_layout Plain Layout
26733 est le nom \SpecialChar LyX
26734 de l'insert en bas de casse et avec les caractères non alphanumériq
26735 ues remplacés par des caractères
26736 \begin_inset Quotes cld
26740 \begin_inset Quotes crd
26743 , par exemple: footnote.
26746 \begin_layout Description
26749 \begin_inset Flex Code
26752 \begin_layout Plain Layout
26763 \begin_inset Flex Code
26766 \begin_layout Plain Layout
26775 \begin_inset space \thinspace{}
26779 \begin_inset Flex Code
26782 \begin_layout Plain Layout
26788 ] indique s'il faut émettre l'information CSS implicite engendrée par \SpecialChar LyX
26790 cet insert, même si une information complémentaire est explicitement émise
26792 \begin_inset Flex Code
26795 \begin_layout Plain Layout
26802 Positionner cette directive à
26803 \begin_inset Flex Code
26806 \begin_layout Plain Layout
26812 vous permet de modifier ou de compléter la CSS créée, plutôt que de l'écraser
26815 \begin_inset Flex Code
26818 \begin_layout Plain Layout
26827 \begin_layout Description
26830 \begin_inset Flex Code
26833 \begin_layout Plain Layout
26844 \begin_inset Flex Code
26847 \begin_layout Plain Layout
26853 ] fixe l'attribut de la balise interne.
26855 \begin_inset Newline newline
26859 \begin_inset Flex Code
26862 \begin_layout Plain Layout
26863 \begin_inset Quotes cld
26866 class=`nominsert_inner'
26867 \begin_inset Quotes crd
26878 \begin_layout Description
26881 \begin_inset Flex Code
26884 \begin_layout Plain Layout
26895 \begin_inset Flex Code
26898 \begin_layout Plain Layout
26904 ] détermine la balise interne, et remplace
26905 \begin_inset Flex Code
26908 \begin_layout Plain Layout
26914 dans les exemples ci-dessus.
26915 Implicitement absente.
26918 \begin_layout Description
26921 \begin_inset Flex Code
26924 \begin_layout Plain Layout
26935 \begin_inset Flex Code
26938 \begin_layout Plain Layout
26945 \begin_inset space \thinspace{}
26949 \begin_inset Flex Code
26952 \begin_layout Plain Layout
26960 ] indique si cet insert représente un bloc autonome de texte (comme une
26961 note de bas de page) ou bien représente du contenu inclus dans le texte
26962 environnant (comme une branche).
26964 \begin_inset Flex Code
26967 \begin_layout Plain Layout
26976 \begin_layout Description
26979 \begin_inset Flex Code
26982 \begin_layout Plain Layout
26993 \begin_inset Flex Code
26996 \begin_layout Plain Layout
27002 ] définit une étiquette pour cet insert, pouvant inclure une référence à
27004 Par exemple, pour une note de bas de page, ce peut être
27005 \begin_inset Flex Code
27008 \begin_layout Plain Layout
27017 Cette directive est facultative, et n'a pas de valeur implicite.
27020 \begin_layout Description
27023 \begin_inset Flex Code
27026 \begin_layout Plain Layout
27036 définit l'information à émettre dans la section
27037 \begin_inset Flex Code
27040 \begin_layout Plain Layout
27046 quand ce style est utilisé.
27047 Ceci pourrait être utilisé par exemple pour inclure un bloc
27048 \begin_inset Flex Code
27051 \begin_layout Plain Layout
27057 définissant un gestionnaire
27058 \begin_inset Flex Code
27061 \begin_layout Plain Layout
27070 \begin_layout Description
27073 \begin_inset Flex Code
27076 \begin_layout Plain Layout
27086 définit l'information CSS à inclure quand ce style est utilisé.
27087 Noter que le contenu sera automatiquement enclos dans un bloc
27088 \begin_inset Flex Code
27091 \begin_layout Plain Layout
27097 créé par la directive, il n'est donc besoin d'inclure que la CSS elle-même.
27100 \begin_layout Description
27103 \begin_inset Flex Code
27106 \begin_layout Plain Layout
27117 \begin_inset Flex Code
27120 \begin_layout Plain Layout
27126 ] définit la balise utilisé pour l'étiquette principale, qui remplace
27127 \begin_inset Flex Code
27130 \begin_layout Plain Layout
27136 dans les exemples ci-dessus.
27137 La valeur implicite dépend du réglage de
27138 \begin_inset Flex Code
27141 \begin_layout Plain Layout
27148 \begin_inset Flex Code
27151 \begin_layout Plain Layout
27157 est vrai, la valeur implicite est
27158 \begin_inset Flex Code
27161 \begin_layout Plain Layout
27167 ; s'il est faux, la valeur implicite est
27168 \begin_inset Flex Code
27171 \begin_layout Plain Layout
27180 \begin_layout Subsection
27184 \begin_layout Standard
27185 Le résultat XHTML pour les flottants peut être contrôlé par les informations
27187 Le résultat a la forme suivante:
27190 \begin_layout LyX-Code
27194 \begin_inset Quotes erd
27198 \begin_inset Quotes erd
27204 \begin_layout LyX-Code
27207 Contenu du flottant.
27210 \begin_layout LyX-Code
27216 \begin_layout Standard
27217 La légende, si elle est présente, est un insert séparé et sera émis en tant
27219 Son apparence pourra être contrôlée par la directive InsetLayout pour les
27220 inserts de légende.
27223 \begin_layout Description
27226 \begin_inset Flex Code
27229 \begin_layout Plain Layout
27238 \begin_inset Flex Code
27241 \begin_layout Plain Layout
27249 précise les informations d'attribut à émettre avec la balise principale.
27251 \begin_inset Flex Code
27254 \begin_layout Plain Layout
27255 \begin_inset Quotes cld
27258 class=`monflottant' onclick=`\SpecialChar ldots
27260 \begin_inset Quotes crd
27269 Implicitement, \SpecialChar LyX
27271 \begin_inset Flex Code
27274 \begin_layout Plain Layout
27275 \begin_inset Quotes cld
27280 class=`float float-typefloat'
27283 \begin_inset Quotes crd
27292 \begin_inset Flex Code
27295 \begin_layout Plain Layout
27301 est le nom \SpecialChar LyX
27302 de l'insert (tel qu'il est déterminé par la déclaration de
27304 \begin_inset CommandInset ref
27306 reference "subsec:Flottants"
27310 ) en bas de casse et avec les caractères non alphanumériques remplacés par
27312 \begin_inset Quotes cld
27316 \begin_inset Quotes crd
27320 \begin_inset Flex Code
27323 \begin_layout Plain Layout
27332 \begin_layout Description
27335 \begin_inset Flex Code
27338 \begin_layout Plain Layout
27348 définit l'information CSS à inclure quand ce flottant est utilisé.
27353 Noter que le contenu sera automatiquement enclos dans un bloc
27354 \begin_inset Flex Code
27357 \begin_layout Plain Layout
27363 créé par la directive, il n'est donc besoin d'inclure que la CSS elle-même.
27366 \begin_layout Description
27369 \begin_inset Flex Code
27372 \begin_layout Plain Layout
27381 \begin_inset Flex Code
27384 \begin_layout Plain Layout
27392 définit la balise utilisé pour l'étiquette principale, qui remplace
27393 \begin_inset Flex Code
27396 \begin_layout Plain Layout
27402 dans les exemples ci-dessus.
27404 \begin_inset Flex Code
27407 \begin_layout Plain Layout
27413 , cette valeur devra rarement être modifiée.
27416 \begin_layout Subsection
27417 Mise en page de la bibliographie
27420 \begin_layout Standard
27421 La bibliographie peut être mise en forme via les blocs
27422 \begin_inset Flex Code
27425 \begin_layout Plain Layout
27433 \begin_inset space ~
27437 \begin_inset CommandInset ref
27439 reference "subsec:Description citation"
27446 \begin_layout Subsection
27447 CSS créés par \SpecialChar LyX
27451 \begin_layout Standard
27452 Nous avons mentionné plusieurs fois que \SpecialChar LyX
27453 créera des règles CSS implicites
27454 pour les paragraphes et les inserts, fondées sur les autres informations
27455 de format fournies.
27456 Ici, nous préciserons quelle information est utilisée par \SpecialChar LyX
27460 \begin_layout Standard
27461 Pour le moment, \SpecialChar LyX
27462 engendre tout seul des CSS seulement pour les informations
27463 de police, en utilisant les directives
27464 \begin_inset Flex Code
27467 \begin_layout Plain Layout
27474 \begin_inset Flex Code
27477 \begin_layout Plain Layout
27484 \begin_inset Flex Code
27487 \begin_layout Plain Layout
27494 \begin_inset Flex Code
27497 \begin_layout Plain Layout
27503 spécifiées dans la déclaration
27504 \begin_inset Flex Code
27507 \begin_layout Plain Layout
27514 \begin_inset space ~
27518 \begin_inset CommandInset ref
27520 reference "subsec:polices"
27524 .) La traduction est essentiellement directe et évidente, par exemple
27525 \begin_inset Flex Code
27528 \begin_layout Plain Layout
27529 \begin_inset Quotes cld
27533 \begin_inset Quotes crd
27542 \begin_inset Flex Code
27545 \begin_layout Plain Layout
27546 \begin_inset Quotes cld
27549 font-family: sans-serif;
27550 \begin_inset Quotes crd
27559 La correspondance entre les tailles en \SpecialChar LyX
27560 et les tailles en CSS est un peu
27561 moins évidente main néanmoins intuitive.
27563 \begin_inset Flex Code
27566 \begin_layout Plain Layout
27573 \begin_inset Flex URL
27576 \begin_layout Plain Layout
27586 \begin_layout Chapter
27587 Insérer un objet externe
27588 \begin_inset CommandInset label
27590 name "chap:Insérer-un-Objet"
27597 \begin_layout Standard
27600 \begin_inset Box Shadowbox
27610 height_special "totalheight"
27615 backgroundcolor "none"
27618 \begin_layout Plain Layout
27619 Avertissement: cette partie des la documentation n'a pas été mise à jour
27620 depuis un certain temps.
27621 Nous espérons qu'elle est toujours correcte, mais ce n'est pas garanti.
27629 \begin_layout Standard
27630 L'utilisation d'éléments créés par des logiciels extérieurs à \SpecialChar LyX
27632 en détail dans le manuel
27637 Cette partie du manuel couvre ce qui se passe derrière la scène pour permettre
27638 d'écrire un mécanisme d'inclusion pour un nouvel élément.
27641 \begin_layout Section
27642 Comment fonctionne-t-il ?
27645 \begin_layout Standard
27646 L'insertion d'objet externe repose sur le concept de
27652 \begin_layout Plain Layout
27653 NdT : Traduction de
27654 \begin_inset Quotes cld
27658 \begin_inset Quotes crd
27669 Un cadre définit comment \SpecialChar LyX
27670 doit s'interfacer avec un type d'objet donné.
27671 Tel qu'il est distribué, \SpecialChar LyX
27672 possède des cadres prédéfinis pour les figures
27673 XFig, pour les diagrammes Dia, pour différents formats d'images rastérisées,
27674 pour gnuplot, et d'autres.
27675 Vous pouvez en consulter la liste avec
27676 \begin_inset Flex Noun
27679 \begin_layout Plain Layout
27680 Insertion\SpecialChar menuseparator
27682 \begin_inset space ~
27691 En outre, il est possible de créer votre propre cadre pour supporter un
27692 type donné d'objet.
27693 Nous décrirons plus loin en détail ce qu'il faut faire, et nous espérons
27694 que vous nous enverrez tous les cadres que vous créerez pour que nous puissions
27695 les inclure dans de futures versions de \SpecialChar LyX
27699 \begin_layout Standard
27700 Un autre concept de base est qu'il faut faire la distinction entre le fichier
27701 d'origine qui sert de point de départ et le fichier transformé qui est
27702 inclus avec votre document exporté ou imprimé.
27703 Voyons par exemple une figure produite avec
27704 \begin_inset Flex Code
27707 \begin_layout Plain Layout
27714 L'application XFig elle-même travaille sur un fichier avec l'extension
27716 \begin_inset Flex Code
27719 \begin_layout Plain Layout
27726 Dans XFig, vous créez et modifiez votre figure.
27727 Quand c'est fini, vous enregistrez le fichier
27728 \begin_inset Flex Code
27731 \begin_layout Plain Layout
27738 Quand vous voulez inclure la figure dans votre document, vous invoquez
27740 \begin_inset Flex Code
27743 \begin_layout Plain Layout
27749 pour créer un fichier PostScript qui sera aisément inclus dans votre fichier
27752 Dans ce cas, le fichier
27753 \begin_inset Flex Code
27756 \begin_layout Plain Layout
27762 est le fichier d'origine, et le fichier PostScript est le fichier transformé.
27765 \begin_layout Standard
27766 Cette distinction est importante pour pouvoir mettre à jour l'objet pendant
27767 l'écriture de votre document.
27768 En outre, elle vous donne la flexibilité requise pour supporter des formats
27769 d'exportation différents.
27770 Par exemple, dans le cas de l'exportation en Ascii, ce n'est pas vraiment
27771 une super idée d'inclure la figure en PostScript brut.
27772 À la place, vous préférerez soit inclure une référence à la figure, soit
27773 essayer un convertisseur graphique vers Ascii pour rendre un résultat final
27774 approchant du graphique d'origine.
27775 L'insertion d'objet externe vous permet de le faire, car il est paramétré
27776 avec les différents formats d'exportation supportés par \SpecialChar LyX
27780 \begin_layout Standard
27781 En plus de supporter la génération de fichiers transformés différents selon
27782 le format d'exportation, l'insertion d'objet externe travaille en étroite
27783 collaboration avec les applications d'édition et de visualisation.
27784 Dans le cas d'une figure XFig, vous pouvez invoquer Xfig sur le fichier
27785 d'origine d'un simple clic depuis la fenêtre d'objet externe de \SpecialChar LyX
27787 visualiser le fichier transformé PostScript avec Ghostview d'un autre clic.
27788 Il n'y a plus à se bagarrer avec la ligne de commande ou avec des explorateurs
27789 de fichiers pour localiser et manipuler le fichier d'origine et le fichier
27791 De cette façon, vous pouvez enfin profiter à plein des nombreuses applications
27792 différentes qui servent à la production de documents, et serez finalement
27796 \begin_layout Section
27797 Le fichier de configuration d'un cadre externe
27800 \begin_layout Standard
27801 Il est assez facile de définir de nouveaux cadres externes dans \SpecialChar LyX
27803 Cependant, sachez que si vous le faites de façon négligente, vous introduirez
27808 une faille de sécurité facilement exploitable.
27809 Avant de commencer, lisez donc plus bas ce qui concerne la sécurité
27810 \begin_inset space ~
27814 \begin_inset CommandInset ref
27815 LatexCommand pageref
27816 reference "sec:La-question-de"
27823 \begin_layout Standard
27824 Ceci dit, nous vous encourageons à créer des cadres intéressants et à nous
27828 \begin_layout Standard
27829 Les cadres externes sont définis dans le fichier
27832 \begin_inset Flex Code
27835 \begin_layout Plain Layout
27843 files that are stored in the
27844 \begin_inset Flex Code
27847 \begin_layout Plain Layout
27850 LyXDir/lib/xtemplates/
27856 Each template is defined in a file of its own.
27865 \begin_layout Plain Layout
27866 NdT : Nous rappelons que
27867 \begin_inset Quotes cld
27871 \begin_inset Quotes crd
27874 est la traduction de
27875 \begin_inset Quotes cld
27879 \begin_inset Quotes crd
27882 dans ce contexte de l'objet externe.
27890 Vous pouvez mettre votre propre version dans
27893 \begin_inset Flex Code
27896 \begin_layout Plain Layout
27904 or copy existing templates to that directory in order to modify them.
27910 \begin_layout Standard
27911 Un fichier de configuration de cadre typique se présente comme ceci:
27914 \begin_layout LyX-Code
27920 \begin_layout LyX-Code
27923 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
27926 \begin_layout LyX-Code
27932 \begin_layout LyX-Code
27938 \begin_layout LyX-Code
27944 \begin_layout LyX-Code
27950 \begin_layout LyX-Code
27956 \begin_layout LyX-Code
27959 AutomaticProduction true
27962 \begin_layout LyX-Code
27968 \begin_layout LyX-Code
27974 \begin_layout LyX-Code
27980 \begin_layout LyX-Code
27983 TransformCommand Rotate RotationLatexCommand
27986 \begin_layout LyX-Code
27989 TransformCommand Resize ResizeLatexCommand
27992 \begin_layout LyX-Code
27995 Product "$$RotateFront$$ResizeFront
27998 \begin_layout LyX-Code
28005 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
28008 \begin_layout LyX-Code
28011 $$ResizeBack$$RotateBack"
28014 \begin_layout LyX-Code
28020 \begin_layout LyX-Code
28023 UpdateResult "$$AbsPath$$Basename.pstex_t"
28026 \begin_layout LyX-Code
28029 Requirement "graphicx"
28032 \begin_layout LyX-Code
28035 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28038 \begin_layout LyX-Code
28041 ReferencedFile latex "$$AbsPath$$Basename.eps"
28044 \begin_layout LyX-Code
28047 ReferencedFile dvi "$$AbsPath$$Basename.eps"
28050 \begin_layout LyX-Code
28056 \begin_layout LyX-Code
28062 \begin_layout LyX-Code
28065 TransformCommand Rotate RotationLatexCommand
28068 \begin_layout LyX-Code
28071 TransformCommand Resize ResizeLatexCommand
28074 \begin_layout LyX-Code
28077 Product "$$RotateFront$$ResizeFront
28080 \begin_layout LyX-Code
28087 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
28090 \begin_layout LyX-Code
28093 $$ResizeBack$$RotateBack"
28096 \begin_layout LyX-Code
28099 UpdateFormat pdftex
28102 \begin_layout LyX-Code
28105 UpdateResult "$$AbsPath$$Basename.pdftex_t"
28108 \begin_layout LyX-Code
28111 Requirement "graphicx"
28114 \begin_layout LyX-Code
28117 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
28120 \begin_layout LyX-Code
28123 ReferencedFile latex "$$AbsPath$$Basename.pdf"
28126 \begin_layout LyX-Code
28132 \begin_layout LyX-Code
28138 \begin_layout LyX-Code
28141 Product "$$Contents(
28143 "$$AbsPath$$Basename.asc
28148 \begin_layout LyX-Code
28151 UpdateFormat asciixfig
28154 \begin_layout LyX-Code
28157 UpdateResult "$$AbsPath$$Basename.asc"
28160 \begin_layout LyX-Code
28166 \begin_layout LyX-Code
28172 \begin_layout LyX-Code
28175 Product "<graphic fileref=
28177 "$$AbsOrRelPathMaster$$Basename.eps
28182 \begin_layout LyX-Code
28188 \begin_layout LyX-Code
28194 \begin_layout LyX-Code
28197 UpdateResult "$$AbsPath$$Basename.eps"
28200 \begin_layout LyX-Code
28203 ReferencedFile docbook "$$AbsPath$$Basename.eps"
28206 \begin_layout LyX-Code
28209 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
28212 \begin_layout LyX-Code
28218 \begin_layout LyX-Code
28221 Product "[XFig: $$FName]"
28224 \begin_layout LyX-Code
28230 \begin_layout LyX-Code
28236 \begin_layout Standard
28237 Comme vous pouvez le constater, le cadre est inséré entre
28238 \begin_inset Flex Code
28241 \begin_layout Plain Layout
28251 \begin_inset Flex Code
28254 \begin_layout Plain Layout
28263 Il contient un en-tête spécifiant quelques réglages généraux et, pour chaque
28264 format primaire de document reconnu, une section
28265 \begin_inset Flex Code
28268 \begin_layout Plain Layout
28278 \begin_inset Flex Code
28281 \begin_layout Plain Layout
28292 \begin_layout Subsection
28296 \begin_layout Description
28299 \begin_inset Flex Code
28302 \begin_layout Plain Layout
28305 AutomaticProduction
28306 \begin_inset space ~
28316 indique si le fichier représenté par le cadre doit être créé par \SpecialChar LyX
28318 Cette directive doit apparaître une et une seule fois.
28321 \begin_layout Description
28324 \begin_inset Flex Code
28327 \begin_layout Plain Layout
28331 \begin_inset space ~
28341 précise un patron global utilisé dans l'échange dans la spécification des
28342 fichiers pour filtrer les fichiers désignés.
28343 S'il y a plus d'un suffixe possible (e.g.
28345 \begin_inset Flex Code
28348 \begin_layout Plain Layout
28357 \begin_inset Flex Code
28360 \begin_layout Plain Layout
28368 ), utiliser une syntaxe comme
28369 \begin_inset Flex Code
28372 \begin_layout Plain Layout
28381 Cette directive doit apparaître une et une seule fois.
28384 \begin_layout Description
28387 \begin_inset Flex Code
28390 \begin_layout Plain Layout
28394 \begin_inset space ~
28404 fixe le texte apparaissant dans le bouton.
28405 Cette directive doit apparaître une et une seule fois.
28408 \begin_layout Description
28411 \begin_inset Flex Code
28414 \begin_layout Plain Layout
28418 \begin_inset space ~
28422 \begin_inset space ~
28432 décrit le texte d'aide utilisé dans la fenêtre de dialogue
28433 \begin_inset Quotes cld
28437 \begin_inset Quotes crd
28441 Fournir suffisamment d'informations pour que l'utilisateur comprenne ce
28442 que le cadre peut faire pour lui.
28443 Cette directive doit apparaître une et une seule fois.
28446 \begin_layout Description
28449 \begin_inset Flex Code
28452 \begin_layout Plain Layout
28456 \begin_inset space ~
28466 indique le format du fichier original.
28467 Ce doit être le nom d'un format reconnu par \SpecialChar LyX
28469 \begin_inset space ~
28473 \begin_inset CommandInset ref
28475 reference "sec:Formats"
28481 \begin_inset Quotes eld
28485 \begin_inset Flex Code
28488 \begin_layout Plain Layout
28497 \begin_inset Quotes erd
28500 si le cadre peut gérer des fichiers originaux dans plus d'un format.
28502 tentera d'analyser le fichier pour en déduire le format dans ce cas.
28503 Cette directive doit apparaître une et une seule fois.
28506 \begin_layout Description
28509 \begin_inset Flex Code
28512 \begin_layout Plain Layout
28516 \begin_inset space ~
28526 est un nom original pour le cadre.
28527 Il ne soit pas contenir de macros de substitution (voir ci-après).
28530 \begin_layout Description
28533 \begin_inset Flex Code
28536 \begin_layout Plain Layout
28540 \begin_inset space ~
28543 Rotate|Resize|Clip|Extra
28550 spécifie quelles transformations sont reconnues par ce cadre.
28551 Elle peut apparaître zéro ou plusieurs fois.
28552 Elle active les options correspondantes dans la fenêtre de dialogue.
28554 \begin_inset Flex Code
28557 \begin_layout Plain Layout
28565 doit avoir soit une directive
28566 \begin_inset Flex Code
28569 \begin_layout Plain Layout
28577 correspondante, soit une directive
28578 \begin_inset Flex Code
28581 \begin_layout Plain Layout
28590 \begin_inset Flex Code
28593 \begin_layout Plain Layout
28602 Sinon, la transformation ne sera pas reconnue par ce cadre.
28606 \begin_layout Subsection
28610 \begin_layout Description
28613 \begin_inset Flex Code
28616 \begin_layout Plain Layout
28620 \begin_inset space ~
28623 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
28630 décrit le format de document primaire relevant de cette définition de format.
28631 Tous les cadres n'ont pas de représentation raisonnable dans tous les formats
28632 de fichier documentaire.
28633 Définissez cependant une section
28634 \begin_inset Flex Code
28637 \begin_layout Plain Layout
28645 pour tous les formats, et utilisez un texte bidon lorsqu'il n'existe pas
28647 Ainsi vous verrez au minimum une référence à l'objet externe dans le document
28651 \begin_layout Description
28654 \begin_inset Flex Code
28657 \begin_layout Plain Layout
28661 \begin_inset space ~
28669 \begin_inset space ~
28683 définit une macro additionnelle
28684 \begin_inset Flex Code
28687 \begin_layout Plain Layout
28699 pour la substitution par
28700 \begin_inset Flex Code
28703 \begin_layout Plain Layout
28713 \begin_inset Flex Code
28716 \begin_layout Plain Layout
28728 peut elle-même contenir des macros de substitution.
28729 L'avantage par rapport à l'usage direct de
28730 \begin_inset Flex Code
28733 \begin_layout Plain Layout
28746 \begin_inset Flex Code
28749 \begin_layout Plain Layout
28757 est que la valeur substituée par
28758 \begin_inset Flex Code
28761 \begin_layout Plain Layout
28773 est nettoyée de sorte qu'elle est un argument facultatif valide dans le
28774 format documentaire.
28775 Cette directive doit apparaître une et une seule fois.
28778 \begin_layout Description
28781 \begin_inset Flex Code
28784 \begin_layout Plain Layout
28788 \begin_inset space ~
28798 spécifie le texte inséré dans le document exporté.
28799 C'est en fait la directive la plus importante et elle peut être assez compliqué
28801 Cette directive doit apparaître une et une seule fois.
28804 \begin_layout Description
28807 \begin_inset Flex Code
28810 \begin_layout Plain Layout
28814 \begin_inset space ~
28828 spécifie un élément de préambule qui sera inclus dans le préambule \SpecialChar LaTeX
28830 Il doit être défini par
28831 \begin_inset Flex Code
28834 \begin_layout Plain Layout
28844 \begin_inset Flex Code
28847 \begin_layout Plain Layout
28856 Cette directive doit apparaître une et une seule fois.
28859 \begin_layout Description
28862 \begin_inset Flex Code
28865 \begin_layout Plain Layout
28869 \begin_inset space ~
28873 \begin_inset space ~
28883 désigne les fichiers créés par la procédure de conversion et requis par
28884 un format d'exportation particulier.
28885 Si le nom d'un fichier est relatif, il est interprété relativement au document
28887 Cette directive peut apparaître zéro ou plusieurs fois.
28890 \begin_layout Description
28893 \begin_inset Flex Code
28896 \begin_layout Plain Layout
28900 \begin_inset space ~
28910 désigne le nom d'un paquetage \SpecialChar LaTeX
28912 Le paquetage est inclus via
28913 \begin_inset Flex Code
28916 \begin_layout Plain Layout
28926 dans le préambule \SpecialChar LaTeX
28928 Cette directive peut apparaître zéro ou plusieurs fois.
28931 \begin_layout Description
28934 \begin_inset Flex Code
28937 \begin_layout Plain Layout
28941 \begin_inset space ~
28945 \begin_inset space ~
28948 RotationLatexCommand
28955 spécifie que la commande \SpecialChar LaTeX
28956 native doit être utilisée pour effectuer les
28958 Cette directive peut apparaître une fois ou pas du tout.
28961 \begin_layout Description
28964 \begin_inset Flex Code
28967 \begin_layout Plain Layout
28971 \begin_inset space ~
28975 \begin_inset space ~
28985 spécifie que la commande \SpecialChar LaTeX
28986 native doit être utilisée pour effectuer les
28987 changements de taille.
28988 Cette directive peut apparaître une fois ou pas du tout.
28991 \begin_layout Description
28994 \begin_inset Flex Code
28997 \begin_layout Plain Layout
29001 \begin_inset space ~
29005 \begin_inset space ~
29008 RotationLatexOption
29015 spécifie que les rotations sont effectuées via un paramètre facultatif.
29016 Cette directive peut apparaître une fois ou pas du tout.
29022 \begin_layout Description
29025 \begin_inset Flex Code
29028 \begin_layout Plain Layout
29032 \begin_inset space ~
29036 \begin_inset space ~
29046 spécifie que les changements de taille sont effectuées via un paramètre
29048 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 recadrages sont effectuées via un paramètre facultatif.
29076 Cette directive peut apparaître une fois ou pas du tout
29081 \begin_layout Description
29084 \begin_inset Flex Code
29087 \begin_layout Plain Layout
29091 \begin_inset space ~
29095 \begin_inset space ~
29105 spécifie qu'un paramètre supplémentaire facultatif est utilisé.
29106 Cette directive peut apparaître une fois ou pas du tout
29111 \begin_layout Description
29114 \begin_inset Flex Code
29117 \begin_layout Plain Layout
29121 \begin_inset space ~
29131 spécifie le format de fichier du fichier converti.
29132 Ce doit être le nom d'un format reconnu par \SpecialChar LyX
29133 (voir la fenêtre de dialogue
29135 \begin_inset Flex Noun
29138 \begin_layout Plain Layout
29141 Outils\SpecialChar menuseparator
29142 Préférences\SpecialChar menuseparator
29144 \begin_inset space ~
29148 \begin_inset space ~
29151 fichiers\SpecialChar menuseparator
29153 \begin_inset space ~
29157 \begin_inset space ~
29166 Cette directive doit apparaître une et une seule fois.
29167 Si le format du fichier résultant est PDF, vous devez spécifier le format
29171 \begin_inset Flex Code
29174 \begin_layout Plain Layout
29184 , qui est le format PDF utilisé pour insérer des graphiques.
29185 Les autres formats PDF définis servent aux exportations du document.
29188 \begin_layout Description
29191 \begin_inset Flex Code
29194 \begin_layout Plain Layout
29198 \begin_inset space ~
29208 spécifie le nom du fichier converti.
29209 Le nom de fichier doit être absolu.
29210 Cette directive doit apparaître une et une seule fois.
29213 \begin_layout Subsection
29214 Définitions du préambule
29217 \begin_layout Standard
29218 La configuration du cadre externe peut contenir des définitions additionnelles
29219 de préambule incluses dans
29220 \begin_inset Flex Code
29223 \begin_layout Plain Layout
29233 \begin_inset Flex Code
29236 \begin_layout Plain Layout
29245 Elle peuvent être utilisées par les cadres dans la section
29246 \begin_inset Flex Code
29249 \begin_layout Plain Layout
29260 \begin_layout Section
29261 Le mécanisme de substitution
29264 \begin_layout Standard
29265 Quand la fenêtre d'objet externe invoque un programme externe, il le fait
29266 selon la commande définie dans le fichier de configuration des cadres.
29267 Ces commandes peuvent contenir diverses macros qui sont interprétées avant
29269 Les commandes sont toujours exécutées dans le répertoire du document.
29272 \begin_layout Standard
29273 Ainsi, quand un objet externe est affiché, un mécanisme de substitution
29274 génère son nom, et la plupart des autres directives reconnaissent la substituti
29275 on de manière similaire.
29278 \begin_layout Standard
29279 Les macros disponibles sont les suivantes :
29282 \begin_layout Description
29285 \begin_inset Flex Code
29288 \begin_layout Plain Layout
29291 $$AbsOrRelPathMaster
29298 est le est le chemin d'accès, absolu ou relatif au document maître \SpecialChar LyX
29302 \begin_layout Description
29305 \begin_inset Flex Code
29308 \begin_layout Plain Layout
29311 $$AbsOrRelPathParent
29318 est le est le chemin d'accès, absolu ou relatif au document \SpecialChar LyX
29322 \begin_layout Description
29325 \begin_inset Flex Code
29328 \begin_layout Plain Layout
29338 est le chemin d'accès absolu.
29341 \begin_layout Description
29344 \begin_inset Flex Code
29347 \begin_layout Plain Layout
29357 est le nom du fichier sans chemin d'accès et sans suffixe.
29360 \begin_layout Description
29363 \begin_inset Flex Code
29366 \begin_layout Plain Layout
29372 \begin_inset Quotes cld
29376 \begin_inset Quotes crd
29386 la macro dépliera le contenu du fichier de nom
29387 \begin_inset Flex Code
29390 \begin_layout Plain Layout
29399 \begin_layout Description
29402 \begin_inset Flex Code
29405 \begin_layout Plain Layout
29415 est le suffixe (point inclus).
29418 \begin_layout Description
29421 \begin_inset Flex Code
29424 \begin_layout Plain Layout
29435 \begin_inset Quotes cld
29439 \begin_inset Quotes crd
29442 si le fichier est en format JPEG, sinon sera la chaîne
29443 \begin_inset Quotes cld
29447 \begin_inset Quotes crd
29451 Ceci est utile pour éviter des conversions inutiles pour les formats de
29452 sortie admettant à la fois les types PNG et JPEG.
29453 Le modèle prédéfini
29454 \begin_inset Quotes cld
29458 \begin_inset Quotes crd
29461 utilise cette macro avec le moteur pdf\SpecialChar TeX
29465 \begin_layout Description
29468 \begin_inset Flex Code
29471 \begin_layout Plain Layout
29481 est le nom du fichier spécifié dans la fenêtre d'objet externe.
29482 Il est soit absolu, soit relatif au document \SpecialChar LyX
29486 \begin_layout Description
29489 \begin_inset Flex Code
29492 \begin_layout Plain Layout
29503 \begin_inset Quotes cld
29507 \begin_inset Quotes crd
29511 \begin_inset Flex Code
29514 \begin_layout Plain Layout
29522 (absolu ou relatif au document \SpecialChar LyX
29526 \begin_layout Description
29529 \begin_inset Flex Code
29532 \begin_layout Plain Layout
29542 est le chemin d'accès relatif au document maître \SpecialChar LyX
29546 \begin_layout Description
29549 \begin_inset Flex Code
29552 \begin_layout Plain Layout
29562 est le chemin d'accès relatif au document \SpecialChar LyX
29566 \begin_layout Description
29569 \begin_inset Flex Code
29572 \begin_layout Plain Layout
29582 désigne le chemin absolu du répertoire système.
29583 Typiquement utilisé pour pouvoir trouver les différents scripts auxiliaires
29584 fournis avec \SpecialChar LyX
29588 \begin_layout Description
29591 \begin_inset Flex Code
29594 \begin_layout Plain Layout
29604 est le nom et le chemin absolu d'un fichier temporaire qui sera automatiquement
29605 effacé quand le document sera fermé, ou l'objet externe effacé.
29608 \begin_layout Standard
29609 Toutes la macros de chemin contiennent un séparateur de répertoire final,
29610 vous pouvez donc construire par exemple le nom de fichier absolu avec
29611 \begin_inset Flex Code
29614 \begin_layout Plain Layout
29617 $$AbsPath$$Basename$$Extension
29625 \begin_layout Standard
29626 Les macros ci-dessus sont substituées dans toutes les directives sauf indiqué.
29628 \begin_inset Flex Code
29631 \begin_layout Plain Layout
29639 reconnaît également les substitutions suivantes si elles sont autorisées
29641 \begin_inset Flex Code
29644 \begin_layout Plain Layout
29653 \begin_inset Flex Code
29656 \begin_layout Plain Layout
29667 \begin_layout Description
29670 \begin_inset Flex Code
29673 \begin_layout Plain Layout
29683 partie initiale de la commande de changement de taille.
29686 \begin_layout Description
29689 \begin_inset Flex Code
29692 \begin_layout Plain Layout
29702 partie finale de la commande de changement de taille.
29705 \begin_layout Description
29708 \begin_inset Flex Code
29711 \begin_layout Plain Layout
29721 partie initiale de la commande de rotation.
29724 \begin_layout Description
29727 \begin_inset Flex Code
29730 \begin_layout Plain Layout
29740 partie finale de la commande de rotation.
29743 \begin_layout Standard
29744 La valeur de la chaîne de la directive
29745 \begin_inset Flex Code
29748 \begin_layout Plain Layout
29756 reconnaît également les substitutions suivantes si elles sont autorisées
29760 \begin_inset Flex Code
29763 \begin_layout Plain Layout
29772 \begin_inset Flex Code
29775 \begin_layout Plain Layout
29786 \begin_layout Description
29789 \begin_inset Flex Code
29792 \begin_layout Plain Layout
29802 option de recadrage.
29805 \begin_layout Description
29806 \begin_inset Flex Code
29809 \begin_layout Plain Layout
29817 option supplémentaire.
29820 \begin_layout Description
29821 \begin_inset Flex Code
29824 \begin_layout Plain Layout
29832 option de changement de taille.
29835 \begin_layout Description
29836 \begin_inset Flex Code
29839 \begin_layout Plain Layout
29847 option de rotation.
29850 \begin_layout Standard
29851 Vous pouvez vous demander pourquoi les macros de chemin d'accès sont aussi
29853 Il y a deux raisons principales:
29856 \begin_layout Enumerate
29857 les chemins d'accès relatifs et absolus doivent rester relatifs et absolus,
29859 Les utilisateurs peuvent avoir des raisons de préférer l'un ou l'autre.
29860 Les chemins relatifs sont utiles pour des documents portables sur différentes
29861 machines, par exemple.
29862 Les chemins absolus peuvent être requis par certains logiciels;
29865 \begin_layout Enumerate
29867 traite les chemins d'accès relatifs différemment de \SpecialChar LyX
29868 et d'autres logiciels
29869 dans des fichiers inclus encapsulés.
29870 Pour \SpecialChar LyX
29871 , par exemple, un chemin relatif est toujours relatif au document
29872 qui contient le nom de fichier.
29873 Pour \SpecialChar LaTeX
29874 , il est toujours relatif au document maître.
29875 Ces deux définitions sont identiques si vous n'avez qu'un seul document.,
29876 mais diffèrent si vous avez un document maître qui inclut des sous-documents.
29877 Ceci signifie que les chemins relatifs doivent être transformés pour être
29878 transmis à \SpecialChar LaTeX
29880 Heureusement \SpecialChar LyX
29881 fait ceci automatiquement si vous choisissez les macros de
29882 substitution correctes.
29885 \begin_layout Standard
29886 Donc, quelle macro faut-il choisir dans une nouvelle définition de cadre?
29887 La règle n'est pas difficile:
29890 \begin_layout Itemize
29892 \begin_inset Flex Code
29895 \begin_layout Plain Layout
29903 si un chemin absolu est requis;
29906 \begin_layout Itemize
29908 \begin_inset Flex Code
29911 \begin_layout Plain Layout
29914 $$AbsOrRelPathMaster
29919 si la chaîne substituée est du type entrée pour \SpecialChar LaTeX
29923 \begin_layout Itemize
29925 \begin_inset Flex Code
29928 \begin_layout Plain Layout
29931 $$AbsOrRelPathParent
29936 pour préserver le choix de l'utilisateur.
29939 \begin_layout Standard
29940 Des cas spéciaux existent pour lesquels cette règle n'est pas valable, et
29941 par exemple lorsque des chemins relatifs sont requis, mais elle fonctionne
29942 correctement d'habitude.
29943 Un exemple de cas tordu est la directive
29944 \begin_inset Flex Code
29947 \begin_layout Plain Layout
29950 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
29955 dans le cadre Xfig indiqué ci-dessus: il n'est pas possible d'utiliser
29956 le nom absolu parce que la copieur pour les fichiers
29957 \begin_inset Flex Code
29960 \begin_layout Plain Layout
29968 nécessite le nom relatif pour réécrire le contenu du fichier.
29971 \begin_layout Section
29972 La question de la sécurité
29973 \begin_inset CommandInset label
29975 name "sec:La-question-de"
29982 \begin_layout Standard
29983 L'insertion d'objet externe crée une interface avec un paquet de programmes
29984 externes et le fait de manière automatique, nous devons donc en examiner
29985 les conséquences en matière de sécurité.
29986 En particulier, comme vous avez la possibilité d'inclure vos propres noms
29987 de fichier ou de paramètres et qu'ils sont interprétés pour former une
29988 commande, il semble possible de créer un document malveillant qui exécute
29989 des commandes indésirables quand un utilisateur le visualise ou l'imprime.
29990 C'est quelque chose que nous voulons absolument éviter.
29993 \begin_layout Standard
29994 Cependant, comme les commandes du programme externe sont définies seulement
29995 dans le fichier de configuration des cadres, il n'y a pas de problème de
29996 sécurité si \SpecialChar LyX
29997 est configuré correctement avec seulement des cadres sûrs.
29998 Ceci parce que les programmes externes sont invoqués via l'appel système
30000 \begin_inset Flex Code
30003 \begin_layout Plain Layout
30009 et non via l'appel système
30010 \begin_inset Flex Code
30013 \begin_layout Plain Layout
30020 Il n'est donc pas possible d'exécuter des commandes arbitraires via le
30021 shell à partir du nom de fichier ou des paramètres.
30024 \begin_layout Standard
30025 Ceci implique aussi qu'il y a des restrictions dans les commandes définissables
30026 dans un cadre d'objet externe.
30027 En particulier, les pipes et les redirections ne sont pas disponibles.
30028 C'était obligatoire pour que \SpecialChar LyX
30030 Si vous voulez utiliser quelques-unes des fonctions du shell, vous devez
30031 écrire un script sûr pour le faire de manière contrôlée, puis définir ce
30032 script comme commande.
30036 \begin_layout Standard
30037 Il est possible de créer un cadre qui interagit directement avec le shell,
30038 mais comme cela permettrait à un utilisateur malveillant d'exécuter des
30039 commandes arbitraires en écrivant des noms de fichier ou des paramètres
30040 bien choisis, nous vous recommandons d'utiliser en général des scripts
30041 sûrs qui fonctionnent avec l'appel système
30042 \begin_inset Flex Code
30045 \begin_layout Plain Layout
30051 d'une manière contrôlée.
30052 Bien sûr, si vous êtes dans un environnement dans lequel vous avez confiance,
30053 il est tentant de ne pas se fouler et d'utiliser des scripts shell ordinaires.
30054 Si vous faites cela, sachez que vous allez
30058 créer dans votre système une faille de sécurité facile à exploiter.
30059 Il est évident que de tels cadres non sécurisés ne seront jamais inclus
30060 dans la distribution standard de \SpecialChar LyX
30061 , même si nous encourageons les gens à
30062 nous proposer de nouveaux cadres dans la tradition du logiciel libre.
30063 Mais \SpecialChar LyX
30064 tel que vous vous le procurez par les voies officielles de distribution
30065 ne contiendra jamais de cadres non sécurisés.
30068 \begin_layout Standard
30069 L'insertion d'objet externe est un outil très puissant, et vous devez faire
30070 attention à ne pas mettre en péril la sécurité avec cette puissance.
30071 Une légère erreur dans une seule ligne d'un script apparemment inoffensif
30072 peut ouvrir la voie à d'énormes problèmes.
30073 Si vous n'avez pas une compréhension claire de ce qui est en jeu, nous
30074 vous recommandons de consulter un professionnel de la sécurité, ou de contacter
30075 l'équipe de développement de \SpecialChar LyX
30076 si vous vous demandez si votre cadre est
30078 Faites le avant de l'utiliser dans un environnement que vous ne contrôlez
30082 \begin_layout Chapter
30084 Liste des fonctions utilisables dans les styles
30085 \begin_inset CommandInset label
30087 name "chap:List-of-functions"
30094 \begin_layout Standard
30096 \begin_inset Tabular
30097 <lyxtabular version="3" rows="11" columns="8">
30098 <features tabularvalignment="middle">
30099 <column alignment="left" valignment="top">
30100 <column alignment="left" valignment="top">
30101 <column alignment="left" valignment="top">
30102 <column alignment="left" valignment="top">
30103 <column alignment="left" valignment="top">
30104 <column alignment="left" valignment="top">
30105 <column alignment="left" valignment="top">
30106 <column alignment="left" valignment="top">
30108 <cell alignment="left" valignment="top" usebox="none">
30111 \begin_layout Plain Layout
30117 <cell alignment="left" valignment="top" usebox="none">
30120 \begin_layout Plain Layout
30126 <cell alignment="left" valignment="top" usebox="none">
30129 \begin_layout Plain Layout
30135 <cell alignment="left" valignment="top" usebox="none">
30138 \begin_layout Plain Layout
30144 <cell alignment="center" valignment="top" usebox="none">
30147 \begin_layout Plain Layout
30153 <cell alignment="center" valignment="top" usebox="none">
30156 \begin_layout Plain Layout
30162 <cell alignment="center" valignment="top" usebox="none">
30165 \begin_layout Plain Layout
30171 <cell alignment="center" valignment="top" usebox="none">
30174 \begin_layout Plain Layout
30182 <cell alignment="left" valignment="top" usebox="none">
30185 \begin_layout Plain Layout
30191 <cell alignment="left" valignment="top" usebox="none">
30194 \begin_layout Plain Layout
30200 <cell alignment="left" valignment="top" usebox="none">
30203 \begin_layout Plain Layout
30209 <cell alignment="left" valignment="top" usebox="none">
30212 \begin_layout Plain Layout
30218 <cell alignment="center" valignment="top" usebox="none">
30221 \begin_layout Plain Layout
30227 <cell alignment="center" valignment="top" usebox="none">
30230 \begin_layout Plain Layout
30236 <cell alignment="center" valignment="top" usebox="none">
30239 \begin_layout Plain Layout
30245 <cell alignment="center" valignment="top" usebox="none">
30248 \begin_layout Plain Layout
30256 <cell alignment="left" valignment="top" usebox="none">
30259 \begin_layout Plain Layout
30265 <cell alignment="left" valignment="top" usebox="none">
30268 \begin_layout Plain Layout
30274 <cell alignment="left" valignment="top" usebox="none">
30277 \begin_layout Plain Layout
30283 <cell alignment="left" valignment="top" usebox="none">
30286 \begin_layout Plain Layout
30292 <cell alignment="center" valignment="top" usebox="none">
30295 \begin_layout Plain Layout
30301 <cell alignment="center" valignment="top" usebox="none">
30304 \begin_layout Plain Layout
30310 <cell alignment="center" valignment="top" usebox="none">
30313 \begin_layout Plain Layout
30319 <cell alignment="center" valignment="top" usebox="none">
30322 \begin_layout Plain Layout
30330 <cell alignment="left" valignment="top" usebox="none">
30333 \begin_layout Plain Layout
30339 <cell alignment="left" valignment="top" usebox="none">
30342 \begin_layout Plain Layout
30348 <cell alignment="left" valignment="top" usebox="none">
30351 \begin_layout Plain Layout
30357 <cell alignment="left" valignment="top" usebox="none">
30360 \begin_layout Plain Layout
30366 <cell alignment="center" valignment="top" usebox="none">
30369 \begin_layout Plain Layout
30375 <cell alignment="center" valignment="top" usebox="none">
30378 \begin_layout Plain Layout
30384 <cell alignment="center" valignment="top" usebox="none">
30387 \begin_layout Plain Layout
30393 <cell alignment="center" valignment="top" usebox="none">
30396 \begin_layout Plain Layout
30404 <cell alignment="left" valignment="top" usebox="none">
30407 \begin_layout Plain Layout
30413 <cell alignment="left" valignment="top" usebox="none">
30416 \begin_layout Plain Layout
30422 <cell alignment="left" valignment="top" usebox="none">
30425 \begin_layout Plain Layout
30431 <cell alignment="left" valignment="top" usebox="none">
30434 \begin_layout Plain Layout
30440 <cell alignment="center" valignment="top" usebox="none">
30443 \begin_layout Plain Layout
30449 <cell alignment="center" valignment="top" usebox="none">
30452 \begin_layout Plain Layout
30458 <cell alignment="center" valignment="top" usebox="none">
30461 \begin_layout Plain Layout
30467 <cell alignment="center" valignment="top" usebox="none">
30470 \begin_layout Plain Layout
30478 <cell alignment="left" valignment="top" usebox="none">
30481 \begin_layout Plain Layout
30487 <cell alignment="left" valignment="top" usebox="none">
30490 \begin_layout Plain Layout
30496 <cell alignment="left" valignment="top" usebox="none">
30499 \begin_layout Plain Layout
30505 <cell alignment="left" valignment="top" usebox="none">
30508 \begin_layout Plain Layout
30514 <cell alignment="center" valignment="top" usebox="none">
30517 \begin_layout Plain Layout
30523 <cell alignment="center" valignment="top" usebox="none">
30526 \begin_layout Plain Layout
30532 <cell alignment="center" valignment="top" usebox="none">
30535 \begin_layout Plain Layout
30541 <cell alignment="center" valignment="top" usebox="none">
30544 \begin_layout Plain Layout
30552 <cell alignment="left" valignment="top" usebox="none">
30555 \begin_layout Plain Layout
30561 <cell alignment="left" valignment="top" usebox="none">
30564 \begin_layout Plain Layout
30570 <cell alignment="left" valignment="top" usebox="none">
30573 \begin_layout Plain Layout
30579 <cell alignment="left" valignment="top" usebox="none">
30582 \begin_layout Plain Layout
30588 <cell alignment="center" valignment="top" usebox="none">
30591 \begin_layout Plain Layout
30597 <cell alignment="center" valignment="top" usebox="none">
30600 \begin_layout Plain Layout
30606 <cell alignment="center" valignment="top" usebox="none">
30609 \begin_layout Plain Layout
30615 <cell alignment="center" valignment="top" usebox="none">
30618 \begin_layout Plain Layout
30626 <cell alignment="left" valignment="top" usebox="none">
30629 \begin_layout Plain Layout
30635 <cell alignment="left" valignment="top" usebox="none">
30638 \begin_layout Plain Layout
30644 <cell alignment="left" valignment="top" usebox="none">
30647 \begin_layout Plain Layout
30653 <cell alignment="left" valignment="top" usebox="none">
30656 \begin_layout Plain Layout
30662 <cell alignment="center" valignment="top" usebox="none">
30665 \begin_layout Plain Layout
30671 <cell alignment="center" valignment="top" usebox="none">
30674 \begin_layout Plain Layout
30680 <cell alignment="center" valignment="top" usebox="none">
30683 \begin_layout Plain Layout
30689 <cell alignment="center" valignment="top" usebox="none">
30692 \begin_layout Plain Layout
30700 <cell alignment="left" valignment="top" usebox="none">
30703 \begin_layout Plain Layout
30709 <cell alignment="left" valignment="top" usebox="none">
30712 \begin_layout Plain Layout
30718 <cell alignment="left" valignment="top" usebox="none">
30721 \begin_layout Plain Layout
30727 <cell alignment="left" valignment="top" usebox="none">
30730 \begin_layout Plain Layout
30736 <cell alignment="center" valignment="top" usebox="none">
30739 \begin_layout Plain Layout
30745 <cell alignment="center" valignment="top" usebox="none">
30748 \begin_layout Plain Layout
30754 <cell alignment="center" valignment="top" usebox="none">
30757 \begin_layout Plain Layout
30763 <cell alignment="center" valignment="top" usebox="none">
30766 \begin_layout Plain Layout
30774 <cell alignment="left" valignment="top" usebox="none">
30777 \begin_layout Plain Layout
30783 <cell alignment="left" valignment="top" usebox="none">
30786 \begin_layout Plain Layout
30792 <cell alignment="left" valignment="top" usebox="none">
30795 \begin_layout Plain Layout
30801 <cell alignment="left" valignment="top" usebox="none">
30804 \begin_layout Plain Layout
30810 <cell alignment="center" valignment="top" usebox="none">
30813 \begin_layout Plain Layout
30819 <cell alignment="center" valignment="top" usebox="none">
30822 \begin_layout Plain Layout
30828 <cell alignment="center" valignment="top" usebox="none">
30831 \begin_layout Plain Layout
30837 <cell alignment="center" valignment="top" usebox="none">
30840 \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
30875 <cell alignment="center" valignment="top" usebox="none">
30878 \begin_layout Plain Layout
30884 <cell alignment="center" valignment="top" usebox="none">
30887 \begin_layout Plain Layout
30893 <cell alignment="center" valignment="top" usebox="none">
30896 \begin_layout Plain Layout
30902 <cell alignment="center" valignment="top" usebox="none">
30905 \begin_layout Plain Layout
30911 <cell alignment="center" valignment="top" usebox="none">
30914 \begin_layout Plain Layout
30928 \begin_layout Chapter
30929 Noms des couleurs disponibles utilisables dans les styles
30930 \begin_inset CommandInset label
30932 name "chap:Names-of-colors"
30939 \begin_layout Standard
30940 Les couleurs énumérées ci-après sont les couleurs standard et celles que
30941 vous pouvez régler dans les préférences \SpecialChar LyX
30945 \begin_layout Section
30951 \begin_layout Standard
30954 The following are no real colors, but rather act on color definitions:
30957 \begin_layout Description
30965 \begin_layout Description
30973 \begin_layout Description
30978 pas de couleur particulière – réinitialisation ou couleur implicite
30981 \begin_layout Section
30987 \begin_layout Standard
30990 These are fixed colors that cannot me customized:
30993 \begin_layout Description
30999 \begin_layout Description
31005 \begin_layout Description
31011 \begin_layout Description
31017 \begin_layout Description
31023 \begin_layout Description
31029 \begin_layout Description
31035 \begin_layout Description
31041 \begin_layout Description
31047 \begin_layout Description
31053 \begin_layout Description
31059 \begin_layout Description
31065 \begin_layout Description
31071 \begin_layout Description
31077 \begin_layout Description
31083 \begin_layout Description
31089 \begin_layout Description
31095 \begin_layout Description
31101 \begin_layout Description
31107 \begin_layout Section
31113 \begin_layout Standard
31116 These are the colors allocated to specific elements in
31120 Outils\SpecialChar menuseparator
31126 \begin_layout Description
31134 \begin_layout Description
31142 \begin_layout Description
31150 \begin_layout Description
31158 \begin_layout Description
31166 \begin_layout Description
31171 étiquette de branche
31174 \begin_layout Description
31179 fond de bouton d'insert
31182 \begin_layout Description
31187 bordure de bouton d'insert
31190 \begin_layout Description
31195 fond du bouton d'insert (pointé)
31198 \begin_layout Description
31203 barre de modification
31206 \begin_layout Description
31211 texte modifié auteur 1
31214 \begin_layout Description
31219 texte modifié auteur 2
31222 \begin_layout Description
31227 texte modifié auteur 3
31230 \begin_layout Description
31235 texte modifié auteur 4
31238 \begin_layout Description
31243 texte modifié auteur 5
31246 \begin_layout Description
31251 texte d'insert repliable
31254 \begin_layout Description
31259 cadre d'insert repliable
31262 \begin_layout Description
31270 \begin_layout Description
31275 fond d'insert de commande
31278 \begin_layout Description
31283 cadre d'insert de commande
31286 \begin_layout Description
31291 étiquette de commentaire
31294 \begin_layout Description
31299 fond de commentaire
31302 \begin_layout Description
31310 \begin_layout Description
31318 \begin_layout Description
31321 deletedtextmodifier
31323 modificateur de texte supprimé
31326 \begin_layout Description
31331 barre de profondeur
31334 \begin_layout Description
31339 marqueur de fin de ligne
31342 \begin_layout Description
31347 erreur \SpecialChar LaTeX
31351 \begin_layout Description
31356 étiquette de note de bas de page
31359 \begin_layout Description
31362 foreground foreground color
31365 \begin_layout Description
31373 \begin_layout Description
31378 fond d'insert grisé
31381 \begin_layout Description
31386 étiquette d'insert grisé
31389 \begin_layout Description
31394 texte d'insert grisé
31397 \begin_layout Description
31405 \begin_layout Description
31410 complétion en ligne
31413 \begin_layout Description
31421 \begin_layout Description
31429 \begin_layout Description
31437 \begin_layout Description
31442 texte \SpecialChar LaTeX
31446 \begin_layout Description
31454 \begin_layout Description
31459 étiquette de note en marge
31462 \begin_layout Description
31470 \begin_layout Description
31478 \begin_layout Description
31483 cadre mathématique (non pointé)
31486 \begin_layout Description
31491 cadre mathématique (pointé)
31494 \begin_layout Description
31502 \begin_layout Description
31507 fond de macro mathématique
31510 \begin_layout Description
31515 macro mathématique désactivée
31518 \begin_layout Description
31523 cadre de macro mathématique
31526 \begin_layout Description
31531 fond dynamique de macro mathématique
31534 \begin_layout Description
31539 étiquette de macro mathématique
31542 \begin_layout Description
31547 macro mathématique : nouveau paramètre
31550 \begin_layout Description
31555 macro mathématique : ancien paramètre
31558 \begin_layout Description
31566 \begin_layout Description
31569 nonunique_inlinecompletion
31571 complétion en ligne (choix multiples)
31574 \begin_layout Description
31582 \begin_layout Description
31590 \begin_layout Description
31595 saut de page / saut de ligne
31598 \begin_layout Description
31603 marqueur de paragraphe
31606 \begin_layout Description
31611 texte d'insert fantôme
31614 \begin_layout Description
31622 \begin_layout Description
31630 \begin_layout Description
31635 cadre d'expression régulière
31638 \begin_layout Description
31641 scroll color that indicates when a row can be scrolled
31644 \begin_layout Description
31652 \begin_layout Description
31660 \begin_layout Description
31668 \begin_layout Description
31676 \begin_layout Description
31684 \begin_layout Description
31689 ligne on/off de tableau
31692 \begin_layout Description
31700 \begin_layout Description