


(Well, I'm sorry that my garden is so boring, I'm sure...)
研究生们总在某个阶段脑筋就会有点不正常。Because all research students are insane at one time or another.
http://liantze.googlepages.com/utmk-ebmt.xml
![]() |
UTMK Open Day + Didier's Farewell Party |
Re: Generating PNG or JPG ?
by Kjell Magne Fauske Mar 23, 2007; 02:47am
On 3/22/07, Hari Sundarwrote:
> Hi,
>
> Is it possible to generate images from tikz code ? I would like to put these
> images on a webpage and was wondering if there is an automatic way of
> generating the images rather than taking screenshots.
>
Sure, I do it every time I update the gallery I maintain at
http://www.fauskes.net/pgftikzexamples/
My approach is to use Ghostscript. Lets say I have a tex file named
figure.tex The work flow is approximately like this:
> pdflatex figure.tex
I then run ghostscript on the generated file figure.pdf to generate a PNG:
> gs -dNOPAUSE -r400 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sDEVICE=png16m -sOutputFile=figure.png -dBATCH figure.pdf
(On Windows the command is gswin32c. )
>From the resulting PNG file I generate a jpg thumbnail.
To crop the figures I use a package called preview[1]. The package
provides several ways of previewing parts of your document. For
example, adding this to your document preamble:
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
will extract every tikzpicture environment. If you use pdflatex, every
tikzpicture will be put on a separate page in the resulting pdf
document. To add a margin around the figure add:
\setlength\PreviewBorder{10pt}%
[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/preview.html
Regards,
Kjell Magne Fauske
$ pdftops -paper A4 abstractbook.pdf abstractbook.ps
$ psbook -s40 abstractbook.ps absbook-sig.ps
$ psnup -n2 -pa4 absbook-sig.ps abstractbooklet.ps
$ ps2pdf -sPAPERSIZE=a4 abstractbooklet.ps
-s40
parameter to psbook
signifies there should be 40 pages in the booklet. The number must be a multiple of 4. It doesn't matter if your full-size doc doesn't have the right number of pages; psbook
will add blank pages as necessary, so just round up your actual page number to the next multiple of 4 to pass to psbook
.\includegraphics{file}
(即不写明 file extension),结果 tex4ht 就老是要找 .eps 文件……而我又不想改动成 file.eps
那么累赘,还真花了不少时间在网上搜索。最后终于找到解决方法。先要一个 myconfig.cfg
文件:然后运行(基本指令,当然还可以加上其他配置值)\Preamble{html}
\DeclareGraphicsExtensions{.jpg,.png,.eps,.pdf}
\begin{document}
\EndPreamble
htlatex myfile "myconfig"
sort
is cool. It sorts lines so fast no spreadsheet application is worth a second, nay, even a first thought. Heck, it even ferrets out unique lines calmly!1 1 0 0 0
1 2 2 0 2
...
sort
on it gave me1 1 0 0 0
1 10 0 10 10
1 11 ...
...
1 1921 ...
1 2 ...
man
page look-up later, I tried sort -n
. Then sort -k
, then with both options. To no avail. Time to Google.sort -k 1n,1 -k 2n,2
-k
) that the first key starts and ends at field 1, and to treat it as a number, and repeat it with field 2 (or any other fields you'd like to use as the sort key) as well.OTIM kepen
OR OTIM topen
OTIM keprai
OR OTIM toprai
OTIM
CODE:toprai
DEST:To Seberang Perai
INFO:Bayan Baru=Clear; Udini=Clear; Main Span=Clear; Juru=Clear; Seberang Jaya=Clear
[Estimated time travel on the bridge: 15 minutes]>
Drive carefully & wishing you a safe journey!
中国话
唱:S.H.E.
曲:郑楠 词:郑楠/施人诚
伦敦玛莉莲 买了件旗袍送妈妈
莫斯科的夫司基 爱上牛肉面疙瘩
各种颜色的皮肤 各种颜色的头发
嘴里念的说的开始流行中国话
多少年我们苦练英文发音和文法
这几年换他们卷著舌头学平上去入的变化
平平仄仄平平仄 (仄仄平平仄仄平)
好聪明的中国人 好优美的中国话
扁担宽 板凳长
扁担想绑在板凳上
板凳不让扁担绑在板凳上
扁担偏要绑在板凳上
板凳偏偏不让扁担绑在那板凳上
到底扁担宽还是板凳长
哥哥弟弟坡前坐
坡上卧著一只鹅
坡下流著一条河
哥哥说 宽宽的河
弟弟说 白白的鹅
鹅要过河 河要渡鹅
不知是那鹅过河
还是河渡鹅
全世界都在学中国话
孔夫子的话 越来越国际化
全世界都在讲中国话
我们说的话 让世界都认真听话
纽约苏珊娜 开了间禅风Lounge Bar
柏林来的沃夫冈 拿胡琴配著电吉他
各种颜色的皮肤 各种颜色的头发
嘴里念的说的开始流行中国话
有个小孩叫小杜
上街打醋又买布
买了布 打了醋
回头看见鹰抓兔
放下布 搁下醋
上前去追鹰和兔
飞了鹰 跑了兔
洒了醋 湿了布
嘴说腿 腿说嘴
嘴说腿 爱跑腿
腿说嘴 爱卖嘴
光动嘴 不动腿
光动腿 不动嘴
不如不长腿和嘴
到底是那嘴说腿 还是腿说嘴