词条 | PSTricks |
释义 |
PSTricks is a set of macros that allow the inclusion of PostScript drawings directly inside TeX or LaTeX code. It was originally written by Timothy Van Zandt and has been maintained in recent years by Denis Girou, Sebastian Rahtz and Herbert Voss (de). Basic usageThere is a wide array of commands available for making graphics. Coordinates in PSTricks are always represented in parentheses, as the following example (scaled) illustrates: {{clear}}ExtensionsPSTricks commands are low level, so many LaTeX packages have been made in order to ease the creation of several kinds of graphics that are commonly used on mathematical typesetting. pst-plot provides commands for creating function graphs. Consider the following example: {{clear}}{{clear}}The previous example also illustrate that TeX commands can be used as elements into the pictures. Since PostScript uses RPN style for mathematical operations, the argument to pst-plot must be supplied in the same form. An alternative is to use the optional argument algebraic, then the formula can be described as an algebraic expression. pstricks-add extends pst-plot enabling also polar graphs and allowing the use algebraic notation for plots instead of RPN. pst-math provides trigonometric functions in radians (since PostScript defaults to using degrees) and hyperbolic trigonometric functions. pst-3dplot is used for creating 3D graphics like the following: multido provides basic loop functionality for programming graphs with repeating elements: pst-eucl is a beta extension for easy creation of geometrical drawings. There are many other extensions, for drawing Circuit diagrams, barcodes, graphs, trees, visualizing data, etc. CompatibilityPSTricks is only fully compatible with TeX systems using PostScript intermediates, including but not limited to eTeX and others. However, it is not compatible with the widely used pdfTeX engine in PDF mode. As pdfTeX is the default engine in most current installations, users of PSTricks must either force pdfTeX to DVI mode or use auto-pst-pdf. PGF/TikZ is an alternative to PSTricks that is compatible with pdfTeX. Software which supports PSTricks output
See also
Further reading{{refbegin}}
External links
2 : Free TeX software|Macro programming languages |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。