# 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?

-

## closed as too localized by lockstep, Paul Gaborit, cgnieder, Qrrbrbirlbel, zerothOct 7 '12 at 14:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

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