TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

With the following code:

{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

closed as too localized by lockstep, Paul Gaborit, clemens, 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.

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