A-  A  A+ RSS Feed

Deep Thoughts by Robert Felty

thoughts on wordpress, latex, cooking et alia

Archive for the 'linguistics' Category

Saturday, March 10th, 2007

More on LaTeX multimedia presentations

Yesterday I gave a talk in the Linguistics department colloquium series. I like to cover all my bases, so I had a handout and a slide presentation, which were both made from the same LaTeX code. In an earlier post, I briefly discussed using the prosper package for LaTeX to make presentations. A few months ago, I discovered the powerdot package, which is kind of the niece of prosper (cousin of ha-prosper). The syntax and framework is very similar to prosper, but it has a few advantages. Some of the advantage include better overlay and verbatim support, which is definitely nice. I think the biggest advantage though is the possibility to include a running table of contents on your slides. You can see this in the screenshots below.

powerdot screenshot 1
In the first screenshot, you can also see some nicely typeset equations with LaTeX. This is an obviously nice feature of using LaTeX to do presentations. If you are already using LaTeX for other writing, you can do a lot of copying and pasting, which certainly is not possible with powerpoint (for equations at least). And, if you like dark backgrounds with light text, this works fine for your equations. Powerpoint seems to only be handle black on white equations.

powerdot screenshot 2
Back to the running table of contents. This is probably not great for everyone, but at least one person who was at my talk said he liked it. And I agree. It lets you know where you are at in the talk the whole time, and is fairly unobtrusive. If for some reason you need more space on the slide, you can simply use the wideslide environment, which gets rid of the table of contents bar. Before I gave my talk yesterday, I saw another talk, which was quite interesting, but I was definitely confused, when I saw a slide titled “summary”, which was then followed immediately by 20 more slides, and a final summary, about 25 minutes later. This was very distracting. Sure, the speaker could have said something like “summary so far”, but having the outline of the talk would have been helpful. Actually, he did present an outline of the talk at the beginning, on one slide, which he displayed for about 20 seconds. Not very helpful. Another option is to display the outline periodically throughout the talk, but this means you have to keep saying what you are about to say, instead of just saying it. Especially in short talks, I don’t like to waste time saying what I am going to say. Having the running table of contents, and also a handout, gives people a good idea of what I am going to say, without me having to waste time saying it.

This brings up a more general point about handouts. I think that a good handout can be very helpful to your audience, for a number of reasons:

  1. They can read ahead to see what you are going to say
  2. They can re-read stuff if they don’t understand it the first time you say it
  3. They can take as long as they want to look at your figures
  4. They can take notes on your handout if they want to
  5. If they really liked your talk, they can keep your handout, and perhaps share it with others, or learn more from it

And just to clarify, when I mean handout, I don’t mean your slides printed off on paper. Using this method leaves a lot of whitespace (good for extensive note-takers I suppose, of which I am not one), wasting paper. The handout might be a good place to include long quotes, or large tables, which might not be appropriate for the screen. The handout is also a good place to list all your references, which is very valuable to people who want to know more about your research. It also might be appropriate to display some of your figures differently. In this particular presentation, I had several figures, which I placed one per slide. In the handout however, the figures are grouped into 3×2 subfigures, which allows for better comparison, and also makes them more compact. Furthermore, they are black & white, with font sizes appropriate for the handout. Doing all this with LaTeX was quite simple. Out of the box, LaTeX gives the user the ability to use conditional (if – then) statements. I find it easiest to do with counts, e.g.:

\newcount\Slides
\Slides=1
\ifnum\Slides=1
  \includegraphics{myColorfigure}
\else
  \includegraphics{myBWfigure}
\fi

I think that is probably enough for now. If you are interested, you can download the compiled pdf or the TeX source for my presentation, as well as the compiled handout. Note that the .tex file will not compile on your system as is, due to missing figure files and such, as well as my own custom powerdot theme. But hopefully it should be illustrative.

Friday, February 16th, 2007

syllable-based confusions

So my current research focuses heavily on confusion, specifically phonetic confusions. For my disseration, I play people words mixed with noise, and ask them to type what they hear. Then I look at the types of mistakes they make. For example, pit and kit are often confused with one another, but pit and lit are not, because [p] and [k] have very similar acoustic properties, whereas [p] and [l] are not very similar.

I often wonder why I have chosen this line of research, and I think that it might have to do with the fact that I make many confusions of this sort myself. Sometimes I do it on purpose, to make people laugh, but frequently I also have genuine confusions. Today at school prospective graduate students are visiting, and the current grad students had breakfast with them. The student services coordinator, Sylvia, who was helping to arrange rides from the airport and such, came into the somewhat crowded and noisy room, and announced that [3 syllable word] Washington is on his way. I initially heard that three syllable word as “President”, and so I said “President?”, to which Sylvia emphatically replied, “Jonathan!”. It seems that most people heard Jonathan, but I really only perceived the fact that the word before Washington had three syllables, so I made an educated guess, which was “President”. Perhaps in the future I can construct some experiments to see if other people made these sorts of errors, where the exact sounds are incorrect, but some of the linguistic structure is still present, in this case the syllable. In fact, looking at my data from two syllables words and nonwords, all with a CVCCVC structure (C = consonant, V = vowel), most of the errors are disyllabic, and most preserve the consonant-vowel structure as well.

Tuesday, February 6th, 2007

a new LaTeX class file for U-M dissertations

I have been working on a new LaTeX class file for University of Michigan dissertations for awhile now. I finally got tired of the limitations of umdiss.cls. The main goals (which I believe I have achieved) of the new class file are:

  1. load the book class and modify only what’s necessary
  2. be compatible with as many packages as possible
  3. require the hyperref package, because it does many very handy things, like automatically creating pdf bookmarks and links from the table of contents, list of figures etc.
  4. work with includeonly (umdiss.cls does not)
  5. follow formatting guidelines of the University of Michigan

I know of one feature which is not implemented fully yet, and that is the abstract. If you use the abstract environment, it will typeset your abstract according to the guidelines set for dissertation abstracts by Rackham, but there is not an option yet to have it formatted for actual inclusion in the dissertation, including being listed in the table of contents. This will come soon.

You can either download the zip file, browse the directory, or view the latest version in the svn repository. I have included an extensively commented example, which includes several macros that I use to make things easier. There are also quite a few comments in the .cls file as well. A more thorough documentation will come later.

I hope you find the class file handy, and please let me know if you find any errors.

Now back to writing the actual content of the dissertation…

Sunday, December 3rd, 2006

speech perception, therapeutic ultrasound and detecting land mines

Today was the last day of my first meeting of the Acoustical Society of America. It was actually the 155th meeting of the society, and the 4th joint meeting with the Acoustical Society of Japan. Oh, and it was in Hawaii.

I have been a member of the ASA for several years now, and have read many articles in its journal, but I have not spent that much time reading journals outside of my subfield. There are 13 subfields at each meeting of the society, which also roughly correspond to different topics in the journal. I am most interested in the Speech Communication subfield, and spent the great majority of my time learning about all sorts of interesting research going on in that area. Even within Speech Communication, there is a great diversity. I saw some posters and presentations about lexical access, which I do, as well as posters on developing better cochlear implants, quite a few papers on automated speech recognition, some on clinical applications of phonetics, and a few on using ultrasound to track the movement of the tongue.

In addition to these talks, I also saw a couple in different fields. There were two plenary talks at the beginning of the conference – one Japanese person, and one American. The first plenary, by Masayuki Morimoto, covered a fairly wide range, from architectural acoustics to psychological acoustics. Ultimately, these two are very related. Acoustic engineers are interested in designing buildings with good acoustics, but ultimately, the definition of “good” is dependent upon how humans perceive the acoustics of the space. He talked quite a bit about what types of parameters that one can measure, as opposed to parameters that cannot objectively be measured. Whether a person finds a space pleasing or not is very subjective. Whether a person finds a space ringy or deadening can be quantified though, and depending upon the space, one or the other might be desirable.

The second plenary, by Lawrence Crum, was on a completely different topic – therapeutic ultrasound. I had never really heard about this before. He gave a nice overview of how therapeutic ultrasound works, the history (first used in the 1950′s), and its applications. When we hear ultrasound, we usually think of imaging, and that is correct. Ultrasound imaging (or diagnostic ultrasound), shoots low power, low frequency sound waves into a medium, and registers the time it takes for the waves to bounce back. Objects at different angles and distances will take differing amounts of time to bounce back, and thus one can make an image. Therapeutic ultrasound uses high power, high frequency sound waves, and concentrates the waves at a particular point, much in the way one can use a magnifying glass to concentrate electromagnetic waves (e.g. sunlight) onto a piece of paper and catch it on fire. With very high power sound waves, one can do quite a bit of destruction. Destruction? Yes, destruction. One common application is for breaking up kidney stones — without surgery. Another is killing cancerous tissue, specifically for pancreatic cancer, which is a terrible sort of cancer. Another application is blood clotting (hemostasis).

Many acousticians are concerned about noise. Many speech communication people use noisy conditions to test hearing (including myself), and many are also concerned about trying to reduce noise pollution. I saw several talks about that. David Bowen gave a talk about how to perform acoustic audits for consumer products, mostly by isolating different parts of the product, such as the motor, or a fan, and using different tools to measure the amount of noise it produces. Then one can create a sound profile for the product, and try to reduce the noise through various methods. One example he gave was a copy machine. They swapped the metal chain with a composite chain, and perforated the aluminum frame inside, along with a few other modifications, to reduce the overall noise by about 8 decibels (remember that decibels are on a log scale, so that is actually a fairly large reduction).

One last small note. I did not attend any of these talks, but while reading through the abstract booklet, I noticed that there was a whole session on using acoustics to detect land mines. Talk about a diverse field. I am excited to learn more.