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
fichiers:postscript:afficher_la_sortie_de_metapost_dans_ghostscript [2018/12/04 00:22] jejust5_fichiers:postscript:afficher_la_sortie_de_metapost_dans_ghostscript [2023/12/28 20:18] (Version actuelle) – Remise en forme. jejust
Ligne 1: Ligne 1:
-====== Displaying MetaPost output in `ghostscript======+====== Displaying MetaPost output in ghostscript” ======
  
  
 MetaPost ordinarily expects its output to be included in some context MetaPost ordinarily expects its output to be included in some context
 where the "standard" MetaFont fonts (that you've specified) are already where the "standard" MetaFont fonts (that you've specified) are already
-defined --- for example, as a figure in TeX document.  If you're +defined --- for example, as a figure in TeX document.  If you're debugging 
-debugging your MetaPost code, you may want to view it in a +your MetaPost code, you may want to view it in a 
-[[https://www.ghostscript.com/|''ghostscript'']]-based (or some+''[[https://www.ghostscript.com/|ghostscript]]''-based (or some
 other PostScript) previewer, but note that viewers (even other PostScript) previewer, but note that viewers (even
-[[https://www.ghostscript.com/|''ghostscript'']]) +''[[https://www.ghostscript.com/|ghostscript]]'') //don't// ordinarily 
-//don't// ordinarily have the fonts loaded, and you'll experience +have the fonts loaded, and you'll experience an error such as
-an error such as +
 <code> <code>
 Error: /undefined in cmmi10 Error: /undefined in cmmi10
 </code> </code>
 +
 There is provision in MetaPost for avoiding this problem: issue the There is provision in MetaPost for avoiding this problem: issue the
-command ''prologues := 2;'' at the start of the ''mp'' file.+command «''prologues := 2;''» at the start of the ''mp'' file.
  
 Unfortunately, the PostScript that MetaPost inserts in its output, Unfortunately, the PostScript that MetaPost inserts in its output,
Ligne 33: Ligne 32:
 indirectly from a simple wrapper ''MyFigureDisplay.mp'': indirectly from a simple wrapper ''MyFigureDisplay.mp'':
  
-<code metapost>+<code>
 prologues := 2; prologues := 2;
 input MyFigure input MyFigure
Ligne 42: Ligne 41:
 mp "\prologues:=2; input MyFigure" mp "\prologues:=2; input MyFigure"
 </code> </code>
-(which will work without the quote marks if you're not using a Unix +(which will work without the quote marks if you're not using a Unix shell).
-shell).+
  
 A suitable LaTeX route would involve processing A suitable LaTeX route would involve processing
 ''MyFigure.tex'', which contains: ''MyFigure.tex'', which contains:
  
-<code latex>+<code latex MyFigure.tex>
 \documentclass{article} \documentclass{article}
 \usepackage{graphicx} \usepackage{graphicx}
Ligne 56: Ligne 54:
 \end{document} \end{document}
 </code> </code>
-Processing the resulting DVI file with the ''dvips'' 
-command 
  
 +Processing the resulting DVI file with the ''dvips'' command
 <code bash> <code bash>
 dvips -E -o MyFigure.eps MyFigure dvips -E -o MyFigure.eps MyFigure
 </code> </code>
 would then give a satisfactory Encapsulated PostScript file.  This would then give a satisfactory Encapsulated PostScript file.  This
-procedure may be automated using the Perl script +procedure may be automated using the Perl script ''mps2eps'', 
-''mps2eps'', thus saving a certain amount of tedium.+thus saving a certain amount of tedium.
  
 The Plain TeX user may use an adaptation, by The Plain TeX user may use an adaptation, by
Ligne 80: Ligne 77:
  
 ----- -----
- 
 //Source:// [[faquk>FAQ-mpprologues|Displaying MetaPost output in `ghostscript`]] //Source:// [[faquk>FAQ-mpprologues|Displaying MetaPost output in `ghostscript`]]
  
-{{htmlmetatags>metatag-keywords=(LaTeX,graphics,Metapost) +{{htmlmetatags>metatag-keywords=(LaTeX,graphics,Metapost,Postscript output
-metatag-og:title=(Displaying MetaPost output in `ghostscript`)+metatag-og:title=(Displaying MetaPost output in ghostscript)
 metatag-og:site_name=(FAQ LaTeX francophone) metatag-og:site_name=(FAQ LaTeX francophone)
 }} }}
  
5_fichiers/postscript/afficher_la_sortie_de_metapost_dans_ghostscript.txt · Dernière modification : 2023/12/28 20:18 de jejust
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0