Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fichiers:fontes:utiliser_metafont2 [2018/05/24 08:32] joseph.wright5_fichiers:fontes:utiliser_metafont [2023/11/02 16:13] (Version actuelle) – Début de traduction en français. jejust
Ligne 1: Ligne 1:
---- +====== Getting MetaFont to do what you want ======
-section: Fonts +
-subsection: MetaFont fonts +
-date: 2014-06-10 +
----+
  
-# Getting MetaFont to do what you want 
  
-MetaFont allows you to create your own fontsand most TeX users +MetaFont vous permet de créer vos propres polices, 
-will never need to use it — modern (La)TeX systems contain +mais la plupart des utilisateurs de TeX n'auront jamais besoin de l'utiliser. 
-rather few MetaFont fonts of any significanceand when MetaFont output is +En effet, les systèmes (La)TeX modernes contiennent très peu de polices MetaFont importantes
-needed the font generation is done, automatically, ''on the fly''.+et lorsque l'usage de MetaFont est nécessaire, il est appelé automatiquement 
 +pour générer les polices « à la volée ».
  
-If you find you have some special requirement that the system doesn't +Mais si vous avez des besoins particuliers que le système ne satisfait pas, 
-satisfy, you need to know about MetaFont in rather more detail MetaFont, +vous avez intérêt à connaître MetaFont plus en détail. 
-unlike TeX, requires customisation for each output devicesuch +MetaFont, contrairement à TeX, nécessite une personnalisation pour chaque périphérique de sortie
-customisation is conventionally held in a ''mode'' associated with the +cette personnalisation est traditionnellement conservée dans un « mode » associé au périphérique
-device Modes are commonly defined using the `mode_def` +Les modes sont généralement définis à l'aide de la convention ''mode_def'' décrite à la page 94 de //The MetaFontbook// 
-convention described on page 94 of _The MetaFontbook_  +(voir [[1_generalites:documentation:livres:documents_sur_les_fontes|les livres à propos de TeX]]). 
-(see [TeX-related books](FAQ-other-books.md)).  Your +Votre distribution est censée fournir un fichiergénéralement appelé ''local.mf''
-distribution should provide +contenant tous les ''mode_def'' que vous utiliserezDans le cas improbable où ''local.mf'' n'existe pas encore, 
-a fileconventionally called `local.mf`containing all the +la collection de modes de Karl Berry (''modes.mf''est un bon point de départ 
-`mode_def`s you will be usingIn the unlikely event that +(elle peut être utilisée comme ''local.mf'' sans modification avec les implémentations modernes de MetaFont). 
-`local.mf` doesn't already exist, Karl Berry's collection of +Les paramètres des nouveaux périphériques de sortie sont ajoutés à ''modes.mf'' au fur et à mesure de leur apparition.
-modes (`modes.mf`is a good starting point  +
-(it can be used as a `local.mf` without modification in a +
-modern implementation of MetaFont).   +
-Settings for new output devices are added to `modes.mf` as they +
-become available.+
  
-Now create +Now create a ''plain'' base file using ''mf'' (in "initialisation" mode), 
-`plainbase file using `mf` (in ''initialisation'' +''plain.mf'', and ''local.mf'':  
-mode), `plain.mf`, and `local.mf`:  + 
-```latex+<code>
 % mf -ini % mf -ini
 This is METAFONT... This is METAFONT...
Ligne 42: Ligne 33:
 Beginning to dump on file plain... Beginning to dump on file plain...
 (output) (output)
-``` +</code> 
-This will create a base file named `plain.base(or something +This will create a base file named ''plain.base'' (or something 
-similar; for example, it will be `PLAIN.BASon MS-DOS+similar; for example, it will be ''PLAIN.BAS'' on MS-DOS
 systems).  Move the file to the directory containing the base files on systems).  Move the file to the directory containing the base files on
-your system, and run `texhashas necessary.+your system, and run ''texhash'' as necessary.
  
 Now you need to make sure MetaFont loads this new base when it starts up. If Now you need to make sure MetaFont loads this new base when it starts up. If
-MetaFont loads the `plainbase by default on your system, then you're +MetaFont loads the ''plain'' base by default on your system, then you're 
-ready to go. Under Unix (using the default TeX&nbsp;Live (and earlier)+ready to go. Under Unix (using the default TeX Live (and earlier)
 distributions this does indeed happen, but we could for instance distributions this does indeed happen, but we could for instance
-define a command `plainmf+define a command ''plainmf''((On the grounds that a command ''plain'' could be misconstrued as a reference to Plain TeX.)) 
-<sup class="fmk">&dagger;</sup><span class="footnote">&dagger;  +which executes ''mf -base=plain'' (or, in more traditional 
-  On the grounds that a command `plaincould be misconstrued +style ''mf & plain'') which loads the ''plain'' base file. 
-  as a reference to Plain TeX +  
-</span> +
-which executes `mf -base=plain(or, in more traditional +
-style `mf & lain`) which loads the `plainbase +
-file. +
 The usual way to create a font with MetaFont (with an appropriate base The usual way to create a font with MetaFont (with an appropriate base
-file loaded) is to start MetaFont's input with the +file loaded) is to start MetaFont's input with the line: 
-line +<code latex>
-```latex+
 \mode=<mode name>; mag=<magnification>; input <font file name> \mode=<mode name>; mag=<magnification>; input <font file name>
-``` +</code> 
-in response to the `**prompt or on the MetaFont command line. (If +in response to the ''**'' prompt or on the MetaFont command line. (If 
-`<mode name>is unknown or omitted, the mode defaults to +''<mode name>'' is unknown or omitted, the mode defaults to 
-''proof'' mode and MetaFont will produce an output file called  +"proofmode and MetaFont will produce an output file called  
-`<font file name>.2602gf`+''<font file name>.2602gf''
-The `<magnification>is a floating point number or a +The ''<magnification>'' is a floating point number or a 
-''magstep'' (magsteps define sizes by stating how many times you need to +"magstep(magsteps define sizes by stating how many times you need to 
-multiply a base size by `1.2`, so for a base size of +multiply a base size by ''1.2'', so for a base size of 
-`10``magstep 1is `12``magstep 2is +''10''''magstep 1'' is ''12''''magstep 2'' is 
-`14.4` +''14.4'' 
-If `mag=<magnification>is omitted, then the default +If ''mag=<magnification>'' is omitted, then the default 
-is `1`&nbsp;(`magstep 0`).  For example, to generate +is ''1'' (''magstep 0'').  For example, to generate 
-`cmr10at `12ptfor an Epson,+''cmr10'' at ''12pt'' for an Epson,
 printer you might type printer you might type
-```latex+ 
 +<code latex>
 mf \mode=epson; mag=magstep 1; input cmr10 mf \mode=epson; mag=magstep 1; input cmr10
-``` +</code> 
-Note that under Unix the ` ` and `;`+Note that under Unix the ''\ '' and '';''
 characters must usually be quoted or escaped, so this would typically characters must usually be quoted or escaped, so this would typically
 look something like look something like
-```latex + 
- mf ''\mode=epson; mag=magstep 1; input cmr10'' +<code latex> 
-```+ mf "\mode=epson; mag=magstep 1; input cmr10" 
 +</code>
 If you need a special mode that isn't in the base, you can put its If you need a special mode that isn't in the base, you can put its
-commands in a file (e.g., `ln03.mf`) and invoke it on the +commands in a file (e.g., ''ln03.mf'') and invoke it on the 
-fly with the `\smodecommand.  For example, to create +fly with the ''\smode'' command.  For example, to create 
-`cmr10.300gffor an LN03 printer, using the file +''cmr10.300gf'' for an LN03 printer, using the file 
-```latex+ 
 +<code latex>
 % This is ln03.mf as of 1990/02/27 % This is ln03.mf as of 1990/02/27
 % mode_def courtesy of John Sauter % mode_def courtesy of John Sauter
Ligne 99: Ligne 87:
 fontmaking:=1; fontmaking:=1;
 tracingtitles:=0; tracingtitles:=0;
-pixels_per_inch:=300;+pixels//per//inch:=300;
 blacker:=0.65; blacker:=0.65;
 fillin:=-0.1; fillin:=-0.1;
 o_correction:=.5; o_correction:=.5;
-``` +</code> 
-(note the absence of the `mode_defand `enddef`+(note the absence of the ''mode_def'' and ''enddef''
 commands), you would type commands), you would type
-```latex+ 
 +<code latex>
 mf \smode="ln03"; input cmr10 mf \smode="ln03"; input cmr10
-```+</code>
 This technique isn't one you should regularly use, but it may This technique isn't one you should regularly use, but it may
 prove useful if you acquire a new printer and want to experiment with prove useful if you acquire a new printer and want to experiment with
Ligne 116: Ligne 105:
  
 Other sources of help are discussed in our list of  Other sources of help are discussed in our list of 
-[MetaFont and MetaPost Tutorials](FAQ-mfptutorials.md).+[[1_generalites:documentation:documents:tutoriels:tutoriaux_sur_metafont_et_metapost|MetaFont and MetaPost Tutorials]]. 
 + 
 + 
 +----- 
 +//Source:// [[faquk>FAQ-useMF|Getting MetaFont to do what you want]]
  
 +{{htmlmetatags>metatag-keywords=(LaTeX,fontes,police de caractères,création de caractères,fichier MF)
 +metatag-og:title=(Getting MetaFont to do what you want)
 +metatag-og:site_name=(FAQ LaTeX francophone)
 +}}
  
5_fichiers/fontes/utiliser_metafont.1527150723.txt.gz · Dernière modification : 2018/05/24 08:32 de joseph.wright
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0