Ever run into a problem or a question that you were sure someone else HAD to have dealt with the same thing, yet you could not find any answer on the internet? Or you did find answers, but it took you hours or even days? This blog is simply a running account of the questions and answers that I have struggled with. May it save you gray hairs and sleepless nights.
Monday, April 9, 2007
Matlab and Macs
A. In the keyboard shortcuts section delete F9 as being part of expose. Cuz how often do you use it really anway?? :)
Tuesday, January 23, 2007
Nomencl
Q. Make my nomenclatures work damnit!
A. ok ok.. so i've been focusing on this for the better part of a week. But i found an easier solution that doesn't require applescript or shell scripts to do it. In the folder ~/library/texshop/engines I copied the tetex engine and renamed it nomenclature.engine with the following text inside it:
#!/bin/sh
bfname=$(dirname "$1")/"`basename "$1" .tex`"
makeindex "$bfname".nlo -s ~/library/texmf/tex/nomencl/nomencl.ist -o "$bfname".nls
The exact directory location of nomencl.ist is required since i manually installed my own updated version of nomencl.ist
Now I typset it Latex-Nomenclature-Latex and everything works beautifully!
Or change the last line to:
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls
if you have an updated copy of nomencl.
Monday, January 22, 2007
Shell Scripts
Q. Shell scripts.. Simultaneously when I was learning Applescripts, i've learned shell scripts. This is what I know so far
A.
- ls - directory listing
- cd .. - same as windows but with a space before the double dots
- man - gives the manual for any command ex: man ls
- clear -
- top - shows what programs are running
- [ ] means anything optional
- ./file - this runs the file in the current directory instead of something in the path
- chmod +x file - makes the file an executable
- vi - is some sort of editor with a complex set of commands
Applescript
Anyway.. Here's how to do it
A.
- do shell script "cd " & quoted form of "/Volumes/THUMBDRIVE 2" & ";ls"
- do shell script "cd \"/Volumes/THUMBDRIVE 2\" ;ls"
Monday, January 8, 2007
Nomencl.sty
Answer: Well its not that easy.
- First of all you have include two packages in the preamble "\usepackage{nomencl}" and "\usepackage{makeidx}".
- Then you have to include the command "\makenomenclature" in your preamble.
- This is only true for the newest version of nomencl.ins If you have an older version it will likely want you to use \makeglossary
- Use \printnomenclature where you want it printed in the body (generally under the abstract)
- \nomenclature{$N$}{This is is the number N} is an example of a line for each item.
- Then Typset the document using LaTex
- This will create a file called
.nlo - In terminal (unfortunately) type:
- makeindex Journal\ Paper\ 2006.nlo -s ~/library/texmf/tex/nomencl/nomencl.ist -o Journal\ Paper\ 2006.nls
- Clearly this command was for my "Journal Paper 2006.tex" file
- furthermore, you must first navigate to the folder containing the .tex file, or include its path in the command
- Then go back and typset your document again using Latex