Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

With the following code:

\ifthenelse{\equal{#1}{caption}}{%
{Sample Tex \\ Added Here}
}{}%

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?

share|improve this question
4  
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
add comment

closed as too localized by lockstep, Paul Gaborit, cgnieder, Qrrbrbirlbel, zeroth Oct 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.