I'm writing a thesis that has double spacing on by default throughout the document. However, captions on figures need to be singlepaced. I can do that like this
\normalsize \singlespace \caption{ bla bla bla}
where singlespace is defined as:
\newcommand{\singlespace}{\renewcommand{\baselinestretch}{1.0}}
This gets old, so I want to redefine caption, which I did like this:
\let\savedCaption=\caption
\renewcommand{\caption}[1]{\normalsize\singlespace\savedCaption{#1}}
This works fine, but sometimes I want to specify the optional tablename for my list of tables. So I do this,
\renewcommand{\caption}[2][]{\normalsize\singlespace\savedCaption[#2]{#1}}
Unfortunately, this will default the table name to be empty. The behavior I really want is this:
\renewcommand{\caption}[2][#1]{\normalsize\singlespace\savedCaption[#2]{#1}}
...but latex complains about that.
Can anyone help me get caption redefined properly?