Here are notes on
- various programs I've used, or
- programs that I haven't used, but which look interesting.
Altho the notes are short, the information therein may have taken me hours to discover. Therefore others might find this useful. My preferred environment is linux and C++, supplemented by commercial tools that are good enough to be worth the hassle of license management etc.
Comments are welcome.
This page describes publicly available SW written by others. For my SW, see my Research page.
Contents (hide)
- 1. Linux
- 2. Linux virtual machine (VM) notes
- 3. Converting a VM from VMWare to KVM
- 4. Linux mail user agents - comparisons, advantages and problems
- 4.1 Kmail
- 4.2 Claws-mail
- 4.3 Evolution
- 4.4 Thunderbird
- 4.5 Gmail
- 4.6 Mulberry
- 5. Zsh
- 6. Cellphone as modem in linux
- 7. Retrieving Motorola V325i cellphone addressbook with Bitpim in Linux
- 8. Boot ISO image
- 9. C++ Compilers
- 10. Numeric and statistical computing
- 11. Graphics and media
- 11.1 Big packages
- 11.2 Plotting (functions and data)
- 11.3 Drawing figures
- 11.4 Image format conversions
- 11.5 Stitching, panoramas
- 11.6 Cameras
- 11.7 Download video
- 11.8 Flickr from ubuntu
- 12. LaTeX
- 12.1 Misc
- 12.2 LaTeX into HTML
- 12.3 HTML into LaTeX
- 12.4 XML to LaTeX or HTML
- 12.5 Replacements or supplements:
- 12.6 Fonts
- 12.7 Lucida fonts
- 13. PDF
- 13.1 XML into PDF
- 13.2 LaTeX figures and PDF
- 13.3 Watermark a PDF file
- 13.4 Convert a directory of images files to PDF files
- 13.5 Crop and resize PDF pages
- 13.6 Combine a directory of PDF files into one file
- 13.7 Update PDF file metadata
- 13.8 PDF to RTF (good for MS Word)
- 13.9 Paginate a PDF file
- 13.10 Complete (fill in) a PDF form
- 13.11 Linux PDF w embedded multimedia
- 14. Talk (Presentation) Slide Tools
- 15. Other Words
- 15.1 Others' words
- 15.2 Speak words
- 16. Geo
- 17. VMWare - shrink pre-allocated disk on windows client
- 18. MS Windows
- 19. Web fonts
1. Linux
Note: Some things, that are not necessarily intrinsically linux, are in a separate top level section.
1.1 Booting with old grub
- Grub disk naming when booting
- Assume you have a laptop with two disks: the original one and a second in a caddy replacing the DVD drive.
- In the BIOS, you specify the order in which the BIOS is to try booting from them.
- That is the order that grub uses when numbering disks (hd0), (hd1) etc.
- Note that the disks' positions on the bus is irrelevant here.
- If you exclude a disk from the boot order, then grub doesn't give it a number.
- Later, grub and linux name the disks according to their bus addresses.
- Up to SuSE 10.1 (approx), including older versions of Knoppix, the main disk is /dev/hda and the caddy disk /dev/sda
- From SuSE 10.2 on (approx), the main disk is /dev/sda and the caddy disk /dev/sdb.
- You can use these names later in grub, e.g., in the kernel command.
- Does /dev/sda correspond to (hd0) or (hd1)? It depends on the BIOS boot order.
- In the BIOS statup list disk (S1) is the builtin disk, and (PM) is the caddy disk.
- scsiinfo -s /dev/sda lists the disk's serial number that is printed on the disk itself.
- If /etc/fstab disagrees with the root= option on the grub kernel command, then the root= option determines what partition is mounted, but /etc/fstab determines what df shows. If they are inconsistent, then df's output will be wrong. (10/19/2007)
- Grub setup/install weirdness: The command
grub-install /dev/sdacan produce a different result thangrub > setup /dev/sdaThe former reused an old location for message. (approx; this is from memory). 10/19/2007
1.2 Booting with grub 2
There are many incompatibilities and problems. (Why does linux make official a package that calls itself 'beta' and that lacks much documentation?) Here are some useful pages:
- http://linuxmint.com/wiki/index.php/How_to_repair_your_grub
- https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
- http://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-using-grub_002dinstall
- http://ubuntuforums.org/showthread.php?t=1195275
- https://wiki.ubuntu.com/Grub2
- http://en.wikipedia.org/wiki/GNU_GRUB
- https://help.ubuntu.com/community/Grub2
- https://wiki.ubuntu.com/KernelTeam/Grub2Testing
- http://ubuntuforums.org/showthread.php?t=1014708
1.3 Linux multimedia incl video
- IBM Thinkpad T43p audio
- If there is no sound when playing an mp3, say with mplayer, then turn off the line jack sense and headphone jack sense in kmix (or krecord).
- Kmix settings for recording:
These are probably correct.
- Input » capture must be set. Level irrelevant.
- Input » microphone maybe set. Level relevant.
- Switches » mix maybe irrelevant
- Output » pcm set. Level 1/3.
- Disable everything else, else feedback loop.
- OK to mute output. Maybe better.
- Input » red mic set
- Input » capture set
- Switches » mix NOT set. Setting it unsets Input » red mic.
- Kmix settings to play input sound
- Output » master set, and reasonable level.
- Input » green mic set, and reasonable level.
- Switches » mic boost does that.
- Nothing else seems to matter.
- Kmix settings to play audio file
- Output » master set, and reasonable level.
- Output » pcm set, and reasonable level.
- Switches » line jack sense not set.
- Switches » headphone jack sense not set.
- Nothing else seems to matter.
- Other interesting pages
- Gnome-sound-recorder is another recorder.
- Alsasound can restart things if they are messed up.
- gnome-sound-properties looks useful.
- Converting wav to mp3
- Install lame from http://users.rsise.anu.edu.au/~conrad/not_lame/
- Do: notlame -h in.wav out.mp3
- Converting realaudio to wav
- Use mplayer.
- The realaudio format changes frequently.
- The current version of realaudio cannot play very old realaudio formats. Mplayer can.
- Mplayer low quality: The output from mplayer (in linux) seems to be worse quality than that of windows programs.
- Converting an AVI video to MPEG4 (from SCOREC)
- http://www.ubuntugeek.com/ubuntu-tip-simple-way-of-making-a-stop-animation.html
- Video tools from Philippe Dreuw.
1.4 Using an ipod with linux
This is not about installing linux on the ipod.
- http://people.csail.mit.edu/adonovan/hacks/ipod.html
- Ubuntu and Your iPod
- http://boingboing.net/2007/09/14/new-ipods-reengineer.html
- http://www.gtkpod.org/about.html
- http://www.getsharepod.com/ - Replacement for itunes. To try.
1.5 MS Office in linux
- antiword (for reading MS Word) - often all you need. What it omits, like gratuitous images, is often content-free.
- openoffice - formerly much worse than MS Office, but getting better. However it is not compatible with Office 2007. (12/1/2009).
- codeweaver's crossover office. This was excellent. However it cannot handle Office 2007 properly. Office will often crash under crossover. (12/1/2009).
- vmware (excellent)
1.6 Ubuntu Network Remix
1.7 Encrypted partitions
old way
Setup
- cryptsetup create FOO /dev/sdXX
- mkdir /FOO
- add to /etc/fstab:
/dev/mapper/FOO /FOO ext3 defaults 0 1 - add to /etc/crypttab:
FOO /dev/sdXX none none - mke2fs -j -L CHOSEN_PARTITION_NAME /dev/mapper/FOO
Explicit mount
- cryptsetup create FOO /dev/sdXX (if necessary)
- mount /dev/mapper/FOO /FOO
New (LUKS) way
http://www.saout.de/tikiwiki/tiki-index.php?page=LUKS
Setup
- cryptsetup --verbose --verify-passphrase luksFormat /dev/sdXX
- cryptsetup luksOpen /dev/sdXX FOO
- mkdir /FOO
- add to /etc/fstab:
/dev/mapper/FOO /FOO ext3 defaults 0 1 - add to /etc/crypttab:
FOO /dev/sdXX none luks,check=ext2,retry=5 - mke2fs -j -L CHOSEN_PARTITION_NAME /dev/mapper/FOO
Add key to partition:
cryptsetup luksAddKey /dev/sdXX
Explicit mount and unmount
- cryptsetup luksOpen /dev/sdXX foo
- mount /dev/mapper/foo /foo
- umount /foo
- cryptsetup luksClose foo
1.8 Linux other
- Who owns a given open file? fuser -v FILE
1.9 Firefox
- Why firefox got slower and slower:
- Noscript and probably other addons seem to have quadratic time performance. They record URLs in a list and apparently linearly search it.
- The only solution that I've found is to run firefox inside vmware and regularly restore the VM. Even deleting files that Firefox wrote seems not to work.
- Firefox 3 is faster, but didn't print, for the following reason: The firefox 3 designers decided to use a feature of some other SW that had never been used before. It didn't work. Firefox said that's not their problem that the other SW failed. Meanwhile, users like me, who just wanted to get our work done, watched this temper tantrum and started thinking about using Windows.
- Calling an existing firefox from the command line:
firefox yahoo.com
firefox -new-tab "file:///tmp"
2. Linux virtual machine (VM) notes
- http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-8.10
- http://www.howtoforge.com/creating-virtual-machines-for-xen-kvm-vmware-workstation-6-vmware-server-with-vmbuilder-on-ubuntu-8.10
- http://www.ibm.com/developerworks/linux/library/l-linux-kvm/
- http://virt.kernelnewbies.org/TechComparison
- http://www.massivegeek.com/technology/vmware-server-to-xen-conversion
- http://www.nalley.sc/david/?p=36
- http://www.playingwithwire.com/2009/06/virtual-failure-yippiemove-switches-from-vmware-to-freebsd-jails/
- http://bsd.slashdot.org/story/09/06/02/0043258/When-VMware-Performance-Fails-Try-BSD-Jails
3. Converting a VM from VMWare to KVM
This doesn't yet work for me.
- http://blog.bodhizazen.net/linux/convert-vmware-vmdk-to-kvm-qcow2-or-virtualbox-vdi/
- http://blog.loftninjas.org/2008/09/08/converting-a-vmware-image-to-kvm/
- http://ubuntuforums.org/archive/index.php/t-1163175.html
4. Linux mail user agents - comparisons, advantages and problems
This is based on personal experience. It contains detailed info that I've not seen in other reviews, and also not seen in the documentation.
This emphasizes the negative because a package's limitations are often more important than its advantages in deciding whether to use it. Also, the limitations are rarely mentioned in the documentation.
4.1 Kmail
Bad
- The whole KDE project is designed by enthusiasts for enthusiasts. It adds whatever new features the designers consider fun. Users are expected to help debug it. KDE is not intended to be a turnkey system for people who just want something that works w/o thinking about it.
- The kmail documentation is several years out of date. If that's a problem for you, then fix it yourself. The KDE developers have more fun things to do than write documentation.
- Can lose mail when internal db gets corrupted. Symptom: folder shows a message with no subject or body.
- Cannot search mail by date. It is impossible to search only within all mail from the last week. The lack of searching by date has been listed in the features request list for several years, but nothing has happened. This is still true of the current 1.9.51 version, as of 7/18/2008.
- Searching large folders within kmail is so slow as to be useless. It is much slower than searching the directory directly.
- Kmail has very specific requirements for imap, and will not talk to servers that don't have the same hi standards.
- Kmail wouldn't talk to gmail, the last time I tried. This may work now.
Good
- The addressbook is sophisticated. It is a complete contact program, useful for addresses, phone numbers, etc.
- Retrieving messages can be stopped by the user. This is useful if a large imap folder is being scanned.
4.2 Claws-mail
Bad
- Retrieving mail from several mailboxes is single threaded. Only one mailbox is checked at a time.
- Retrieving from a large imap folder cannot be stopped, short of killing claws-mail.
- The addressbook is minimal, lacking features in competing addressbooks. E.g., it is useless for storing phone numbers.
- This is a stand-alone mail program, not a component of a PIM. There is no integrated calendar.
Good
- claws-mail allows mail to be sorted depending on the specific address book containing the sender or recipient. This really convenient feature appears unique to claws-mail.
- You can search and filter on arbitrary headers.
- You can assign colors to messages and then search by color.
- You can watch the connection handshaking.
4.3 Evolution
Bad
- You cannot search by arbitrary headers.
- If a header is duplicated, only the first occurrence is used, unless you write a regex. This makes it very hard to search for mail that flowed thru a specific relay.
- You can filter on whether the sender is in any addressbook, but not whether he is in a specific addressbook.
- Internal database inconsistencies can arise:
- Cannot usefully read an IMAP server from multiple machines, which is the point of IMAP. Specifically, processing a message on one machine is not always seen on others.
Good
- You can check for supported types of authentication.
4.4 Thunderbird
Good
- Many addons are available.
- Importing from evolution:
- http://maketecheasier.com/how-to-migrate-from-evolution-to-thunderbird-in-ubuntu-intrepid/2008/12/04
- http://patrick.wagstrom.net/weblog/2007/01/19/migrating-from-evolution-to-thunderbird/
- http://skalyanasundaram.wordpress.com/2007/05/23/using-thunderbird-instead-of-evolution/
- http://www.stuermer.ch/blog/the-end-of-evolution-and-how-to-migrate-on-thunderbird.html
- http://blog.agdunn.net/?p=225
- http://ubuntuforums.org/showthread.php?t=329644
- Importing problems:
- All messages marked 'read' and tags are lost.
- Recommended calendar program, lightening, is version <1.0 and its development team lacks resources.
- Mailing lists don't import with addresses.
- Addressbook fields are not completely compatible.
Bad
- It is not possible to to useful spam filtering, or to call out to an external spam program, in Thunderbird. Thunderbird assumes that messages were already tested for spam by the mail server, which added a header with its findings. Thunderbird lets you examine headers and filter the mail. However this filtering sometimes fails. Thunderbird does have a Bayesian spam tester, but it's pretty bad.
- Cannot search the bodies of IMAP mail, even if the bodies have been downloaded.
- Cannot automatically filter more than one IMAP folder.
4.5 Gmail
Bad
- All your mail is conveniently centralized, available for search warrants, legal or illegal fishing expeditions, disk crashes, and security failures.
4.6 Mulberry
Good
- Extremely powerful
- The best documentation I've ever seen for a mailer.
Bad
- A one-man operation, hasn't been updated since 2007.
5. Zsh
- quote special chars: ${(q)var}
6. Cellphone as modem in linux
- Number: #777
- User, pwd: qnc, qnc
- Stop dropping calls by
- commenting 2 lines in /etc/ppp/options about lcp-echo.
- and edit idle-seconds in /etc/sysconfig/network/providers/provider1
7. Retrieving Motorola V325i cellphone addressbook with Bitpim in Linux
- This method is better than using backupassistant, because backupassistant does not save an entry's group or speed dial number.
- Using the USB cable.
- Try /dev/ttyACM1 or whichever, not usb.
- Try connecting phone as modem first
- Try turning phone off before connecting to cable.
- Eventually I imported the addressbook.
- Photos are in filesystem motorola/shared/picture.
- Interesting links
8. Boot ISO image
8.1 Boot ISO image from disk (hard drive)
Suppose that you wish to boot an ISO image of an OS, w/o writing the image to to an external medium, like a CD or USB drive. Info on how to do this is scattered around various mailing lists, and much of that didn't work for me.
What worked
- Ubuntu:
- Put ISO image somewhere in file system.
- Temporarily mount ISO image and copy vmlinuz and initrd files to /boot, possibly renaming them.
- Add this to grub, possibly edited:
title Ubuntu 8.04 root (hd0,0) kernel /boot/ubuntu804-amd64-vmlinuz root=/dev/sda2 vga=0x31b \ splash=silent showopts find_iso=/ubuntu.iso boot=casper initrd /boot/ubuntu804-amd64-initrd.gz lock
- Knoppix:
- Add to /boot/grub/menu.lst:
title Knoppix 5.3 root (hd0,0) kernel /boot/isolinux/linux ramdisk_size=100000 init=/etc/init \ lang=us apm=power-off vga=791 nomce bootfrom=/dev/sda2/knoppix.iso \ dma myconfig=scan initrd /boot/isolinux/minirt.gz - Install:
- /dev/sda2/knoppix.iso (replacing /dev/sda2 by the mounted name)
- /boot/isolinux/linux (obtained from temporarily mounting knoppix.iso)
- /boot/isolinux/minirt.gz (")
- /KNOPPIX (")
- Ref: http://www.knoppix.net/forum/viewtopic.php?p=114964
- Add to /boot/grub/menu.lst:
What didn't work
- in grub 0.97: using map --hook or map --rehook or map --mem. These options don't exist.
- grub 2.0: its authors don't claim it's ready for public use.
- grub4dos: this might be the answer since it's more flexible and powerful than grub (e.g., it has --hook and --mem), but there's too little documentation in English.
- Copying the ISO image to a separate partition then using grub
thus:
title Knoppix rootnoverify (hd0,4) chainloader (hd0,4)+1 - Using fromhd in grub thus:
title Knoppix root (hd0,1) kernel /boot/knoppix53 ramdisk_size=100000 init=/etc/init lang=us \ apm=power-off vga=791 nomce fromhd=/dev/sda2 dma myconfig=scan initrd /boot/knoppix53-minirt.gz
or
title Knoppix root (hd0,1) kernel /boot/knoppix53 ramdisk_size=100000 init=/etc/init lang=us \ apm=power-off vga=791 nomce fromhd=/dev/sda2/KNOPPIX dma myconfig=scan initrd /boot/knoppix53-minirt.gz
Not thoroughly explored
- Putting the image in a separate partition with dd, marking it bootable, and causing grub to boot it.
Links
Some of these are useful.
- http://forums.hexus.net/operating-systems-applications/141523-usb-boot-iso-images-possible.html
- http://www.linuxquestions.org/questions/linux-software-2/booting-of-raw-iso-from-grublilo-though-preferably-grub-367901/
- http://www.911cd.net/forums//index.php?showtopic=18045&st=45
- http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial
- http://www.freesoftwaremagazine.com/articles/grub_intro/
- http://ubuntuforums.org/showthread.php?t=774539&highlight=grub
- http://ubuntuforums.org/search.php?searchid=41979132&pp=25&page=2
- http://ubuntuforums.org/archive/index.php/t-170530.html
- http://www.linuxquestions.org/questions/linux-general-1/boot-iso-image-from-hard-disk-294744/
- http://www.knoppix.net/forum/viewtopic.php?t=27883
- http://www.knoppix.net/forum/viewtopic.php?t=11796
- http://www.freesoftwaremagazine.com/articles/grub_intro
8.2 Boot ISO image from USB flash drive
There was a review somewhere that said that you cannot boot from most brands of USB drives. Possibly useful:
- http://lifehacker.com/software/linux/boot-linux-from-a-flash-drive-225652.php
- http://www.bootdisk.com/pendrive.htm
- http://www.pendrivelinux.com/2008/10/15/ubuntu-810-persistent-flash-drive-install-from-live-cd/
- http://www.pendrivelinux.com/2008/05/23/how-to-fix-ubuntu-804-casper-script-for-persistence/
- http://www.pendrivelinux.com/
- http://www.linuxdevices.com/news/NS2850840818.html
- http://www.simonf.com/usb/
9. C++ Compilers
- Gnu and Intel compilers appear to have the same performance for both serial and OpenMP code.
- The AMD compiler was designed for Redhat and is too complicated to install on Ubuntu.
10. Numeric and statistical computing
10.1 SW
- The Object-Oriented Numerics Page
- BLAD - Bibliothèques Lilloises d'Algèbre Différentielle
- http://gmplib.org/
- NTL: A Library for doing Number Theory
- opt++/
- DAKOTA A Multilevel Parallel Object-Oriented Framework for Design Optimization, Parameter Estimation, Uncertainty Quantification, and Sensitivity Analysis
- http://www.r-project.org/
- http://scipy.org/
10.2 Sparse least squares
Matrix file formats
Matlab
- http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spparms.html
- http://www.mathworks.com/access/helpdesk/help/techdoc/ref/qr.html
- http://www.mathworks.com/access/helpdesk/help/techdoc/ref/mldivide.html
- http://tomopt.com/tomlab/products/base/solvers/Tlsqr.php - commercial and priced accordingly
- http://www.mai.liu.se/~milun/sls/
Mathematica
10.3 Matlab hints
Two-D False Color Plot of a Matrix
The matrix may be up to several thousand square.pcolor(M) shading interp
Read a Data File
load FOO.dat or load FOO
Reads ascii file FOO.dat or FOO into matrix FOO. The file must have one row of numbers per row of the matrix.
Plot Where the Non-Zero Entries of a Matrix Are
spy(M)
Run a Matlab Batch Job
(in linux, from Metin)
matlab -nodisplay -nojvm -nodesktop -nosplash < try.m 1> try.out 2> try.err&
Mathworks Link
10.4 Syntax comparisons - Matlab, Mathematica, Maple
11. Graphics and media
11.1 Big packages
- VTK
- Gri language for scientific illustration
- GLE - Graphics Layout Engine / Professional Graphics Language
- Inkscape open-source vector graphics editor review
- Graphviz - Graph Visualization Software
- Dia - diagram creation
- GraphicsMagick - perhaps intended as a replacement for ImageMagick
- ImageMagick - slower and bigger than GraphicsMagick, however can process 16-bit greyscale images.
- contextfreeart: generates images from a grammar.
- Synfig: powerful, industrial-strength vector-based 2-D animation software package, designed for producing feature-film-quality animation.
- Art_of_Illusion: 3-D modeling and rendering studio.
- http://matplotlib.sourceforge.net/
- Visualization Library "A lightweight C++ OpenGL middleware for 2D/3D graphics" - gallery looks quite good.
11.2 Plotting (functions and data)
- Gnuplot
- Website: http://www.gnuplot.info/documentation.html
- Make x and y scales the same: set size ratio -1
- Sample plot of 2 circles: set parametric, plot sin(t), cos(t), sin(t)+1, cos(t)
- Maple: I've switched from gnuplot to Maple for plots.
11.3 Drawing figures
- Inkscape looks better than xfig.
11.4 Image format conversions
- sam2p - looks good, does single page PS and PDF compactly.
- Convert ps to png:
- with gs
gs -sDEVICE=png256 -r300 -sOutputFile=out.png in.ps
(change the device if desired) - with ImageMagick:
convert -resize 300 email.eps email.png
- with gs
- http://lifehacker.com/5040094 - quick audio and video media converter
- http://www.befunky.com/ - Cartoonizer
- Change size with ImageMagick: convert -resize 50% in.jpg out.jpg resize is similar to but better than scale. However it's possible that facebook doesn't like files created this way. They upload as empty. Loading and saving such files with xv may fix them. This problem is tentative; it may be a coincidence.
- http://imgtops.sourceforge.net/
11.5 Stitching, panoramas
11.6 Cameras
- http://chdk.wikia.com/wiki/CHDK - Canon Powershot wiki
11.7 Download video
11.8 Flickr from ubuntu
- flickrfs fails because python 2.6 is not compatible with 2.5
- postr is undocumented and appears weak.
- dfo crashes when uploading.
12. LaTeX
12.1 Misc
- See also LaTeX slide prep tools.
- http://www.latex-project.org/
- http://www.fauskes.net/nb/introducing-dot2texi/dot2texi
- http://www.ctan.org/tex-archive/macros/latex/contrib/gnuplottex/gnuplottex
- http://en.wikibooks.org/wiki/LaTeX
- http://detexify.kirelabs.org/ - recognize hand-drawn symbol
- http://www.math.uiuc.edu/~hildebr/tex/tips-theorems.html
- Include LaTeX math into pmwiki like \\ {$\Phi_{\mu,\sigma^2}(x) = \frac{1}{\sigma\sqrt{2\pi}}\int_{-\infty}^x e^{-\left(\frac{u-\mu}{2\sigma}\right)^2}du$} See jsMath ?. This requires that Javascript be enabled. If you increase the font size and redisplay the page, the formula gets larger and looks better. Setting a minimum font size in the browser can make the formula look worse.
- http://tug.ctan.org/tex-archive/info/symbols/comprehensive/symbols-letter.pdf - 100 pages!
- LaTeX Tips n Tricks for Conference Papers
- http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/manual.html
- http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm
- http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-23.html
- http://amath.colorado.edu/documentation/LaTeX/reference/faq/a4.html
- http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm
- http://www.dd.chalmers.se/latex/tips_e.html#sidnummer - hints
- Adjust Latex enumerate list spacing with enumitem; see resume.tex.
- Good latex page from Colorado
- recommended: \usepackage[T1]{fontenc} \usepackage{textcomp}
- force lettersize, not A4, paper
- This is surprisingly hard; there may be other solutions also.
- \usepackage{hyperref}
- don't need any options; can set draft.
- set even 1 inch margins:
- \usepackage{fullpage}
- don't also explicitly set margins.
- memoir package replaces article etc
12.2 LaTeX into HTML
- jsMath: Javascript interpreter for most of LaTeX math mode, with attention paid to hi quality and efficiency. Has been integrated into several other wikis and LaTeX tools.
- TtH: Translate TeX to HTML. Equations lose a lot since they're set using HTML formatting.
- HeVeA: LaTeX to HTML translator. Equations are readable.
- Hyperlatex: Method to generate LaTeX and HTML documents simultaneously, using a large subset of LaTeX with extra commands.
- WebTeX: Take an HTML file with math and generate an image for each occurrence.
- weblatex: Include LaTeX files in web page, with math converted to either MathML or jsMath, depending on browser capabilities.
- TeX4ht: Convert TeX and LaTeX to HTML, using MathML or jsMath for math. Another link.
General properties of the converters are:
- Other packages that are used in the LaTeX are not handled. Therefore, e.g., conference papers lose something in translation.
- User-defined commands are often not handled.
- The HTML version does not look as good as the LaTeX version. This is not necessarily the converters' fault because paper and the web are different.
- You may usually add HTML-only commands to the file.
- However, the math, iff converted with jsMath or MathML, looks excellent, with only a few changes.
My recommendation:
- Prepare the document in pmwiki.
- Convert it by hand to LaTeX when needed later for, e.g., a proposal.
- If the document was originally LaTeX, then put PDF on the web.
12.3 HTML into LaTeX
- html2latex, using Perl.
- htmltolatex, using java.
- html2latex
- TeX4ht: links to many other conversion programs, e.g., from LaTeX to HTML.
12.4 XML to LaTeX or HTML
12.5 Replacements or supplements:
- http://www.tug.org/eplain/
- http://wiki.contextgarden.net/
- http://www.tug.org/pracjourn/
- http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/
- http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/ - margins etc
12.6 Fonts
- times is the smallest usual font - more text per page.
- \usepackage{mathptmx} % obsoletes \usepackage{times}
- web fonts are in, e.g., Misc
- Commercial fonts
- http://www.tex.ac.uk/cgi-bin/texfaq2html?label=psfchoice - lists sources
- http://www.pctex.com/ - math and lucida
- http://www.tug.org/store/lucida/order.html - lucida. How do the 2 lucidas compare?
- http://www.micropress-inc.com/fonts/
- Also interesting (update of cm): \usepackage{lmodern}
12.7 Lucida fonts
This commercial font set was surprisingly hard to install. The included doc is incomplete. The following is from, i.a., http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2006-02/msg00819.html . Not all the following steps may be necessary.
- Install files from lucida-complete.zip to /usr/share/texmf/
- Link /usr/local/share/texmf to /usr/share/texmf.
- updmap --enable Map=lucida.map
- updmap-sys --enable Map=lucida.map
To use, include
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{lucidabr}
Documentation is in /usr/share/texmf/doc/fonts/lucidabr/
13. PDF
13.1 XML into PDF
- http://www.princexml.com/ - Math capabilities appear primitive. Does not do LaTeX math.
13.2 LaTeX figures and PDF
- LaTeX to PDF: several ways, w/ or w/o DVI or PS
- Hints about tables and figures in LaTeX
- Graphics for Inclusion in Electronic Documents: formats, SW, many details.
13.3 Watermark a PDF file
pdftk filetomark.pdf background watermark.pdf output out.pdf
or pdftk filetomark.pdf stamp watermark.pdf output out.pdf
13.4 Convert a directory of images files to PDF files
for f in image-*.pnm
do
convert -resize 25% $f ../pdf/${f:s/pnm/pdf}
done
13.5 Crop and resize PDF pages
13.6 Combine a directory of PDF files into one file
pdftk image*pdf cat output onebigfile.pdf
13.7 Update PDF file metadata
- extract an info file:
pdftk file.pdf dump_data > info - edit info
pdftk file.pdf update_info info output file2.pdf
13.8 PDF to RTF (good for MS Word)
I haven't tried this, but it looks interesting. http://3d2f.com/programs/22-038-advanced-pdf-to-rtf-converter-download.shtml
PDF to MS Word
http://www.hellopdf.com/ - To try.
13.9 Paginate a PDF file
- http://3d2f.com/programs/22-043-getpdf-page-numberer-download.shtml
- http://3d2f.com/programs/63-939-sybrex-speedpdf-page-numberer-download.shtml
- pdflatex with pdfpages
13.10 Complete (fill in) a PDF form
- for free in Linux: http://www.cabaret-solutions.com/en/
- http://www.pdfescape.com/pdf/open/
13.11 Linux PDF w embedded multimedia
The following links are interesting, but I haven't checked most of them.
- http://tex.stackexchange.com/questions/1574/embedding-videos-and-animations
- http://ubuntuforums.org/showthread.php?t=1308217
- http://eumenidae.blogspot.com/2012/03/movie-playback-in-latexbeamer-current.html
14. Talk (Presentation) Slide Tools
- Summaries
- Screen Presentation Tools by Michael Wiedmann
- LaTeX
beamer is newer than prosper is newer than seminar. Use beamer (for now).
- http://latex-beamer.sourceforge.net/
- http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php
- http://www.ctan.org/tex-archive/macros/latex/contrib/powerdot/
- http://sourceforge.net/projects/prosper/
- http://ctan.org/tex-archive/macros/latex/contrib/movie15/ - incs videos
- powerdot - replaces ha-prosper replaces prosper, but is beta.
- pdfslide
- Html These are at the mercy of the browser. Formerly, all browsers (firefox, explorer, konqueror, opera) were surprising bad and mutually incompatible. I used to say, avoid, However, things may now be improving.
- Misc
- http://member.wide.ad.jp/wg/mgp/ - MagicPoint - looks interesting
- http://gmpg.org/xfn/and/
- http://www-user.uni-bremen.de/~skupin/pdfanim/ - incorporates files of frames - wait for more mature version
- http://impressive.sourceforge.net/manual.php - looks good, does PDF
- http://www.swftools.org/
15. Other Words
15.1 Others' words
15.2 Speak words
16. Geo
16.1 Major sites of information
16.2 Packages
- GMT Generic Mapping Tools
- http://www.visualizationsoftware.com/3dem.html
- http://www2.cs.uh.edu/~somalley/campath.html
- Quantum GIS
- virtual terrain project
- http://www.osgeo.org/
16.3 Rendering terrain with povray
- povray-terrain-1.tz shows how to render images of terrain in povray.
- povray-terrain-2.tz has more test data and the corresponding images.
16.4 GPS, specifically Garmin 60csx
- Track vs Active Track SFAIK, the only difference is that the active track has the time of each point. That is deleted when the active track is saved.
- Tracks saved on data card gpx files saved to the data card do have the times. There is one file per day. The GPS doesn't list them all (?!). They don't show on the GPS display. Get them by putting GPS in USB mode, mounting it, then copying. Ref: http://freegeographytools.com/2007/garmin-microsd-card-tricks
- gpsbabel - great program for processing tracks in linux
16.5 Convert gpx files to kml for Google maps
16.6 SRTM
17. VMWare - shrink pre-allocated disk on windows client
Preallocated disks are faster and don't get larger with more writes (they start large) but you have to pick the size at the start. What if you later want to shrink (truncate) it?
- Create a new preallocated disk file of the desired size on the host.
- Install partition magic on the client
- On the client, copy and resize the partition from the old disk to the new.
- Halt the VM.
- In the VM settings, delete the old disk, and update the IDE bus address for the new disk from 0:1 to 0:0.
- Reboot; you're done (with luck).
Thanks to http://communities.vmware.com/message/899544#899544
18. MS Windows
18.1 Retrieve passwords and activation keys
19. Web fonts
- http://typekit.com/ Commercial fonts with nice free preview.
- http://www.typetester.org/ lets you see a demo paragraph in 3 user-settable fonts, side by side.
- http://textpattern.com/ GPL CMS (to explore)
- http://articles.sitepoint.com/article/anatomy-web-fonts - good tutorial with lots of links.
- http://www.upsdell.com/BrowserNews/res_fonts.htm - lots of info
- http://web.mit.edu/jmorzins/www/fonts.html - compares many fonts, written in 2006
- http://www.goodwebfonts.com/ describes several good free fonts
- http://code.google.com/webfonts