4
votes
1answer
238 views

Command to insert filename in caption of a listing

I would like to have a command to insert listings that contain the filename in the caption. This works well as long as there is no "_" etc. in the filename. I also tried the suggestion from a ...
6
votes
2answers
150 views

Input Auto-Generated Figures Captions

I'm trying to include an Matlab-auto-generated figure-caption tex-file using \caption{\input{Spectrogram-2011-09-28-S003.title.tex}} but if fails with error ERROR: Argument of \@caption has an ...
6
votes
2answers
223 views

Storing captions in a file

I would like to have LaTeX read figure captions from a list stored in some file rather than writing their text directly in the \caption{} command. However I've not been able to figure out if this can ...
2
votes
2answers
962 views

input filename as caption in listing

I'm working on the following piece of code \newcommand{\mycin}[1]{% new command for icluding piece of code from external files \lstinputlisting{#1} } I want to add a caption that reflects the ...