By Camry.Wu
Learn TEX and Metapost
Recently, I learned TEX and Metapost to write documents after writing documents. After writing, use Tex2Page to convert into HTML documents. The TEX2Page home page is here. After installing Tex2Page, you have to install Mzscheme can be used directly.
Let's write down some notes
After importing the Tex macro set. Sty, .tex, add to the tex directory tree such as / usr / share / texmf / tex / latex / run Texhash Refresh system file name database Tex2Page Generate images When you use Tex2Page, you cannot generate a PNG image, After installing GHOSTScript (GS-EPS) and GHOSTVIEW can generate a PNG picture. Using the MatePost Multiogram Using Matepost in Debian Not only need to be installed, not only the installation: TETEX-BASE, TETEX-BIN also requires TETEX-EXTRA, otherwise the following error: FMTUTIL: Format` MPOST 'NOT AVAILABLE. I can't Find the Mem file `MPost.mem'! Chinese tex too much guideways, this is written when using CJK: / begin {cjk *} {zH-cn} {Song}
The result is not, then the GB / directory is discovered under Texmf / Tex / Latex / CJK / bottom, and the Chinese font is found below. I understand that should be written: / begin {cjk *} {gb} {song}
Why is CJK because I have installed the Debian Chinese environment, I downloaded a lot of messy things, now it seems to be useful. Hanhua MatePost gets TEX Hanhua, then MatePost is also line. Follow three:
Add Verbatimtex on the MP file header
% & Latex
/ DocumentClass {Article}
/ usepackage {cjk}
/ begin {document}
/ begin {cjk *} {gb} {song}
eTex
Add Verbatimtex
/ End {cjk *}
/ END {document}
eTex
The label is enclosed in BTEX and ETEX when using the label: label.top (BTEX tag name eTex, Origin);
When compiling the MP file with MPOST * .MP, the generated EPS file cannot be seen with GhostView but use MPTOPDF compile * .mp, it is possible. Look at this article, I finally understand what is going on. It turns out that MPTOPDF has a word type. Special processing, so if there is text in the figure, it is better to use MPTOPDF. Use MPOST to use MetApost's font representation, so use GhostView can't see, but there is no difference in imported Latex documents. The steps of the notes can be like this
Write a TEX file write MP file (Multi-Map) MPST MP Get the EPS file to add the EPS file to the Tex Document TEX2PAGE TEX document Get an HTML document
Last updated: Saturday, November 13, 2004, 16:46 26 seconds HTML conversion program: Tex2Page 2004-09-11