Category Archives: PC problem

.bashrc in Mac

Mac doesn’t read ~/.bashrc file when a shell starts. The order of files the shell read is  (reference:  http://hayne.net/MacDev/Notes/unixFAQ.html#shellStartup) /etc/profile ~/.bash_profile or ~/.bash_login or ~/.profile (only one of these files will be read, if it exists. If more than one file … Continue reading

Posted in PC problem | Leave a comment

remove files in bash

I have files image1, …, image5. I want to rename them as image_test_2,…., image_test_6  for i in $(seq 5 -1 1); do mv -i image$i image_test_$[i+1]; done Do it in reversing way to avoid overwritting. And better use “-i” to … Continue reading

Posted in PC problem | Leave a comment

ListOfContent and ListOfFigures don’t wrap with {hyper ref} package

If you use {hyperref} package, don’t forget the option [breaklinks] \usepackage[breaklinks]{hyperref}   Without [breaklinks]   With [breaklinks]   The [breaklinks] option is so useful that IMO it is unreasonable not to be default for {hyperref}

Posted in PC problem | Leave a comment

gs/gs-x11/gs-nox11 of TexLive in Mac OS X

If the ps2pdf doesn’t work, it is probably due to the change of X11 since Mac OS X Mount Lion. MacTeX/TexLive installs two Ghostscript binaries in /usr/local/bin, gs-X11 with X11 support and gs-noX11 without X11 support. It sets gs to … Continue reading

Posted in PC problem | Leave a comment

remove hard Drive write protect

System: Windows XP Hardware: Seagate 80GB portable hard drive Symptom: cannot write files into the portable hard drive Reason: unknown. Probably related to the FAT format of hard drive. Solution: open cmd type “chkdsk g: /f ” (without quotes) (Here … Continue reading

Posted in PC problem | Leave a comment