Showing posts with label LaTeX. Show all posts
Showing posts with label LaTeX. Show all posts

Monday, October 3, 2011

Old graphicx Bug

I just ran into a bug using the LaTeX package graphicx. I tried to include a graphic with a file name of the form "name.txt.png" and the file really is a PNG file. However, graphicx said ".txt.png" is an unknown graphics extension. *Sigh*...thanks for the hot tip.

A quick Google and I find that this has been a bug since 2004! This is such a simple fix. Why hasn't this been done???

Monday, July 25, 2011

LaTeX: Change Format of a Custom Counter

I just spent more time that I would like to admit trying to figure out how to change the display format of a custom counter. Specifically, I was trying to get the counter to display as a capital letter. I found several examples that
  1. claimed that this is done with the \Alph command and
  2. gave an example on how to change a NON-custom counter.
What took me forever to figure out is that the command for a counter called CounterName is \theCounterName. Thus, the command I was looking for is:
\renewcommand{\theCounterName}{\Alph{CounterName}}
I hope this post can help others.