There are two terminal types for gnuplot that I know of, one is win, the other is wxt.
wxt has more functions than win and is therefore preferred.
To make sure octave uses wxt instead of win, simply set the environment variable GNUTERM = wxt by "right clicking My computer - Advanced - Environment Variables", remember to restart octave.
And it is possible that the plot terminal might freeze for some reason. One work-around to this is to add the following commands
replot;
grid on;
to the end of the script.
Friday, June 3, 2011
Thursday, March 10, 2011
pdf tool--Multivalent
I use it to split pdfs, as far as which is concerned it is easier than pdftk.
Note that the release Release20091027 has the tools package removed. Use a previous release instead
http://www.ziddu.com/download/1794145/Multivalent.tar.gz.html
Examples:
1. Subset the first 20 pages and three copies of the last.
java tool.pdf.Split -page 1-20,last,last,last contract.pdf
2. Rearrange pages to all odd followed by all even.
java tool.pdf.Split -page odd,even for-non-duplex-copier.pdf
3. Delete page 5.
java tool.pdf.Split -page 1-4,5-end contract.pdf
4. Insert blank page after cover page.
java tool.pdf.Split -page 1,b,2-end report.pdf
5. Split page ranges into multiple PDFs by separating ranges with semicolons.
java tool.pdf.Split -page "1-12;13-20;21-end" book-with-chapters.pdf
5. Split page first 1000 pages into multiple PDFs of 100 pages each.
java tool.pdf.Split -page "1-1000/100" big.pdf
7. For double-sided printing on a non-duplex printing, split the first 11 pages into a PDF with the odd pages and another PDF with the even pages. Since there is an odd number of pages, the PDF with the even pages is given an additional blank page in order to match the number of odd pages.
java tool.pdf.Split -page 1-11 -doublesided handouts.pdf
8. Given a PDF with rearranged pages, you can conveniently recover the original order with the backmap operator to the -page option. For example, if the PDF has all the odd pages followed by all the even pages, for a page order of 1,3,5,...,2,4,6,..., then the following back maps this ordering to the original 1,2,3,4,5,6,....
java tool.pdf.Split -page odd,even,backmap odd-even.pdf
If the odd pages are in one PDF and the even in another, you can first use the Merge tool.
Note that the release Release20091027 has the tools package removed. Use a previous release instead
http://www.ziddu.com/download/1794145/Multivalent.tar.gz.html
Examples:
1. Subset the first 20 pages and three copies of the last.
java tool.pdf.Split -page 1-20,last,last,last contract.pdf
2. Rearrange pages to all odd followed by all even.
java tool.pdf.Split -page odd,even for-non-duplex-copier.pdf
3. Delete page 5.
java tool.pdf.Split -page 1-4,5-end contract.pdf
4. Insert blank page after cover page.
java tool.pdf.Split -page 1,b,2-end report.pdf
5. Split page ranges into multiple PDFs by separating ranges with semicolons.
java tool.pdf.Split -page "1-12;13-20;21-end" book-with-chapters.pdf
5. Split page first 1000 pages into multiple PDFs of 100 pages each.
java tool.pdf.Split -page "1-1000/100" big.pdf
7. For double-sided printing on a non-duplex printing, split the first 11 pages into a PDF with the odd pages and another PDF with the even pages. Since there is an odd number of pages, the PDF with the even pages is given an additional blank page in order to match the number of odd pages.
java tool.pdf.Split -page 1-11 -doublesided handouts.pdf
8. Given a PDF with rearranged pages, you can conveniently recover the original order with the backmap operator to the -page option. For example, if the PDF has all the odd pages followed by all the even pages, for a page order of 1,3,5,...,2,4,6,..., then the following back maps this ordering to the original 1,2,3,4,5,6,....
java tool.pdf.Split -page odd,even,backmap odd-even.pdf
If the odd pages are in one PDF and the even in another, you can first use the Merge tool.
Tuesday, December 1, 2009
Installing 1 Windows and 2 linux OSes
Installing 1 Windows and 1 GNU/Linux on one machine doesn't need much care. What if I want to install 2 Linux OSes?
Recently I installed Windows 7, along with Mint Linux and Fedora 9 (for special use). My procedure was Windows 7 -> Mint -> Fedora 9. It turned out there are several things to take care of:
1. One on hard disk there can only be maximally 4 primary partition. Mint and Fedora each requires at least 1 primary partition, which leaves for Windows 7 only two primary partitions.
2. Fedora shares the SWAP partition with Mint
3. Since Mint has a much more beautiful grub than Fedora (personal opinion), I didn't select install boot loader when I installed Fedora. After the installation I went back to Mint and edited menu.lst correspondingly, specifying where Fedora should boot and which kernel to use.
Recently I installed Windows 7, along with Mint Linux and Fedora 9 (for special use). My procedure was Windows 7 -> Mint -> Fedora 9. It turned out there are several things to take care of:
1. One on hard disk there can only be maximally 4 primary partition. Mint and Fedora each requires at least 1 primary partition, which leaves for Windows 7 only two primary partitions.
2. Fedora shares the SWAP partition with Mint
3. Since Mint has a much more beautiful grub than Fedora (personal opinion), I didn't select install boot loader when I installed Fedora. After the installation I went back to Mint and edited menu.lst correspondingly, specifying where Fedora should boot and which kernel to use.
Saturday, December 13, 2008
Thursday, October 23, 2008
opening a chinese document saved in windows partition with gedit
在Applications菜单上点右键,选择Edit Menu.在Main Menu的对话框中勾选System Tools--Configuration Editor,并从Applications菜单中开启。
依次开启 /apps/gedit-2/preferences/encodings/双击右侧auto_detected,在弹出对话框中点选Add,添加Values值为GB18030,确定后选中,点选Up按钮将其移至第一位。
同样方法,对show_in_menu进行设置,并将GB18030置于首位。
依次开启 /apps/gedit-2/preferences/encodings/双击右侧auto_detected,在弹出对话框中点选Add,添加Values值为GB18030,确定后选中,点选Up按钮将其移至第一位。
同样方法,对show_in_menu进行设置,并将GB18030置于首位。
Sunday, October 19, 2008
Thursday, October 16, 2008
long lines in spice
All file lines must start in the first (left-most) column. When a line is too long to fit, break the line and use the + symbol as the first character of the extension line.
(The maximum length of a line is 132 Characters)
(The maximum length of a line is 132 Characters)
Subscribe to:
Posts (Atom)