Wednesday, May 13, 2009

More LaTeX Gems from Dissertation Land

Hello,

Another quick post I am afraid. Here are two recent discoveries, which I think you will like and a web-link you may find useful:

Dot TeX



With this package you may embed directly graphviz "dot" pictures into your LaTeX, for example:


\usepackage[shell,pdf]{dottex}

...

\begin{dotpic}
/* Styles */
size = "3,4"

"Parser Grammar + Actions" [shape=box, width=1.9];
"Parser C Code" [shape=box];
"Tokeniser C Code" [shape=box];
"Compiler Executable" [shape=box];
"Tokenisation Rules" [shape=box, width=1.9];

subgraph cluster1 {
label = "Parser";
labeljust = "l"
color = blue;
"Parser Grammar + Actions" -> "Yacc / Bison" -> "Parser C Code";
};

subgraph cluster2 {
label = "Tokeniser";
labeljust = "r"
color = red;
"Tokenisation Rules" -> "Lex / Flex" -> "Tokeniser C Code";
};

"Parser C Code" ->"C Compiler";
"Tokeniser C Code" ->"C Compiler";
"C Compiler" -> "Compiler Executable";
\end{dotpic}




Those Pesky Underscores



I find it really annoying that the underscore character in LaTeX causes an error if not escaped eg. '\_' (or if you are sick '\textunderscore'). So just type \usepackage{underscore}. Done.

I would recommend you do not do this in class and style files, as people will have the tenancy to pull bits from those and wonder why the macros no longer work in the absence of \usepackage{underscore}.

My TeX Resources Page



As a lot of my fellow students are also doing dissertations, I thought I would point out my TeX resources page, which is a big old list of TeX/LaTeX related stuff which may help. I have been building this list over the last 3 years. I hope you find it useful and please let me know if you think I have missed something.



Thanks

2 comments:

Slinky said...

Ed, thanks for \usepackage{underscore} :)

Dissertation Help said...

it's good to see this information in your post, i was looking the same but there was not any proper resource, thanx now i have the link which i was looking for my research.

UK Dissertations Help