My laptop has little resources(Thinkpad T41) so I need to shut down all the desktop effect as follows:
1. Don't use compiz.
2. gconf-editor:
1)/apps/panel/toplevels, for all the panel, clear "enable_animations"
2)/apps/metacity/general, mark "reduced_resources"
3)/apps/panel/global, clear "enable_animations"
4)/desktop/genome/interface, mark "accessibility"
3. sudo vim ~/gtkrc-2.0, add: gtk-menu-popup-delay = 0
4. (important)
sudo vim /etc/hosts:
change: 127.0.0.1 localhost
127.0.1.1 your-laptop
to: 127.0.0.1 localhost your-laptop
127.0.1.1 your-laptop
5. sudo vim /etc/default/console-setup
ACTIVE_CONSOLES="/dev/tty[1-6]" -> ACTIVE_CONSOLES="/dev/tty[1-2]"
cd /etc/event.d/
for each tty3-tty6, comment lines start with "start on runlevel".
Saturday, May 23, 2009
Sunday, May 3, 2009
Saturday, May 2, 2009
eps file issues in latex
EPS file is the most commonly used figure type in latex.
Two issues involved:
1. Decide bounding box and output a neat graph.
Use the shell program here to get it done: http://www.gnuplot.info/scripts/files/fixbb
2.Solve the eps-pdflatex conflict.
If you want to directly generate pdf file from tex file. Add following lines:
\usepackage{epstopdf}
before your:
\begin{document}
Also, simply use command: pdflatex -shell-escape yourfile.tex to compile your tex file. Final pdf will be built.
The reason is it will automatically generate yourgraph.pdf and use it in your tex file.
Two issues involved:
1. Decide bounding box and output a neat graph.
Use the shell program here to get it done: http://www.gnuplot.info/scripts/files/fixbb
2.Solve the eps-pdflatex conflict.
If you want to directly generate pdf file from tex file. Add following lines:
\usepackage{epstopdf}
before your:
\begin{document}
Also, simply use command: pdflatex -shell-escape yourfile.tex to compile your tex file. Final pdf will be built.
The reason is it will automatically generate yourgraph.pdf and use it in your tex file.
Friday, May 1, 2009
Vim+latexsuite in ubuntu 9.04
After struggling a whole day, I finally got vim+latexsuite work in ubuntu 9.04.
Here is the points(at least work for me):
1. DON'T download the latex-suite file from http://vim-latex.sourceforge.net/ and unzip into ~/.vim/. It just simply doesn't work because vim-addons cannot find it, even if ~/.vim/ is in the runtimepath of vim. I don't know why.
2. USE sudo apt-get install vim-latex to let ubuntu install it for you. Also do sudo apt-get install vim-addons-manager if you haven't.
3. sudo vim-addons -w install latex-suite
4. vim-addons
5. You should see
#name User Status System Status
latex-suite installed(or removed, doesn't matter) installed
6. put your own tex.vim file in /usr/share/vim/addons/ftplugin/
7. In .vimrc, add:
set runtimepath+=/usr/share/vim/addons
filetype plugin on
set grepprg=grep\ -nH\ $*
filetype indent on
let g:tex_flavor="latex"
8. sudo vim yourfile.tex
9. you will see an error involved with remoteOpen.vim. But latex-suite works.
Right, it's wierd that I need to use sudo to launch vim. If I only type vim yourfile.tex, the remoteOpen.vim error will also occur and latex-suite will not be called.
Update:
1. I eliminate those error by commenting out the specific lines in remoteOpen.vim
2. The reason that I can only use sudo to launch latexsuite is because the privilege of .vimrc is superuser. I "chown" it to my own user and get it done.
Here is the points(at least work for me):
1. DON'T download the latex-suite file from http://vim-latex.sourceforge.net/ and unzip into ~/.vim/. It just simply doesn't work because vim-addons cannot find it, even if ~/.vim/ is in the runtimepath of vim. I don't know why.
2. USE sudo apt-get install vim-latex to let ubuntu install it for you. Also do sudo apt-get install vim-addons-manager if you haven't.
3. sudo vim-addons -w install latex-suite
4. vim-addons
5. You should see
#name User Status System Status
latex-suite installed(or removed, doesn't matter) installed
6. put your own tex.vim file in /usr/share/vim/addons/ftplugin/
7. In .vimrc, add:
set runtimepath+=/usr/share/vim/addons
filetype plugin on
set grepprg=grep\ -nH\ $*
filetype indent on
let g:tex_flavor="latex"
8. sudo vim yourfile.tex
9. you will see an error involved with remoteOpen.vim. But latex-suite works.
Right, it's wierd that I need to use sudo to launch vim. If I only type vim yourfile.tex, the remoteOpen.vim error will also occur and latex-suite will not be called.
Update:
1. I eliminate those error by commenting out the specific lines in remoteOpen.vim
2. The reason that I can only use sudo to launch latexsuite is because the privilege of .vimrc is superuser. I "chown" it to my own user and get it done.
Subscribe to:
Posts (Atom)