1. Want to swim freely between MS office and Latex?
Office2Latex or Latex2Office
Comments: What I care mostly is how to convert excel table to latex table, so here is how:
- export table as .txt file but seperated with "," then find all ',' and replace them by "&"
- save as CSV and use csv2latex
- use excel2latex addon for Excel --> this is a very handy solution but with unknown bugs, which might hinder your application
- open Excel file in some other spreadsheet that has the ability to save as LaTeX file, e.g., Gnumeric (I tried the version for windows and it works like a charm, especially the tabular fragments options)
- read the data into R and use the R package "xtable" to get the LaTeX code from a matrix/data.frame
2. Want to convert different picture formats (jpg, pdf, eps...)?
- Matlab
- Unix Commanders
- Software
3. Want to draw/generate pictures?
- Matlab (About Latex and Tex intepretation)
- Acrobat Illustrator (Hints: Greek Letters)
- Jfig
4. Want to use latex file to make Microsoft Powerpoint?
- Copy your formula to latexit and generate/output formula in the form of pictures
5. One sentence tips about unix/linux/mac.
- To delete the ^M in unix for files from Windows: %s/Ctrl+VCtrl+M//g
- To colorize vim: edit or new a .vimrc file at home directory and add "syntax on"
- To colorize "ls" result: add "alias ls='ls -h --color=auto' " in .bashrc or .bash_profile; some details
- To search a specific file starting from current diretory: find . -name 'file' -print
- To optimize "ifort", here is its user manual
- To use the profiling function of both intel and gprof: ifort -O -p -g *.f90 | ./a.out | gprof a.out gmon.out; some details
- To check cpu and memory info: cat /proc/cpuinfo or cat /proc/meminfo
- To debug ifort: idb; To debug gfrotran: gdb; and here is the mannul of idb
- To perform memery check in Linux: ps, top, /usr/bin/time -v (unix), pmap, valgrind, and a lots in a file loaded from here.
- To perform memery check on Mac OS X with intel chip: /usr/bin/time -lp or use the script to sample "ps" command.
- To increase the stack size of your system: ulimit -s unlimited; Note if your code shows "segmentation fault" when you increase the problem size, this might be the solution. I struggled a month to find out this solution.
- To run a job in background, add "&" after the command; to prevent its hangup, add "nohup" before the command.
- To increase the stack size of MacOS to the limit: ulimit -s 65532
- To change file names in batch e.g. *_apbs.pqr to *.pqr: for f in *_apbs.pqr; do mv "$f" "${f/_apbs./.}";done.