# Adding Text to Caption via Style File [closed]

I am trying to add text to a caption via a sty file.

With the following code:

``````\ifthenelse{\equal{#1}{caption}}{%
}{}%
``````

The style file will add "Sample TexAdded Here" to either the beginning or the end of the caption. However the line return is not processed.

Is there a way to force a line return?

-
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. So we can see which related packages are loaded. –  Marco Daniel Aug 15 '12 at 15:00
Does it work if you replace `\\ ` with `\newline`? –  Andrew Swann Aug 20 '12 at 11:13