Latex Tip

metapost

  1. Create a fig.mp script:

    input metaobj;
    beginfig(1);
    x = new_Tree( new_Box(btex root etex) )
    (new_Circle(btex child etex),
    new_Circle(btex child etex));

    Obj(x).c = origin;
    draw_Obj(x);
    endfig
    end.

  2. Compile fig.mp file
    mpost fig.mp

    fig.1 is generated with above commands

  3. Convert to PDF
    mptopdf fig.1
    fig-1.pdf is generated , use evince to view it

  4. Create PNG file
    convert -quality 1000 -density 1000 -transparent white fig-1.pdf mypng.png . [source ][2]

    use gimp to view it.

UML

http://metauml.sourceforge.net/old/index.html
http://thor.info.uaic.ro/~ogh/lop/

[1]: Latex 入门. 刘海洋
[2]: Conversion from PDF to PNG. https://www.mediawiki.org/wiki/User:Tommy_Ekola/Metapost

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值