In CSS you can use the adjacent selector to create conditional formatting. For example, p + p to format a paragraph that follows a paragraph, or h1 + p to format a paragraph that follows a h1 element. Is there an equivalent in LaTeX?

closed as unclear what you're asking by Joseph Wright Aug 5 '13 at 16:23

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • And what kind of "formatting" do you want to do to a paragraph following another/heading? – Werner Jul 20 '13 at 5:43
  • Change the before paragraph and indentation. – Amaru Jul 20 '13 at 5:49
  • 1
    It's difficult to think og LaTeX in terms of the CSS model, so it's probably better to rephrase the question to include 1) exactly what you want to achieve, and 2) a MWE that shows what you've done so far. – You Jul 20 '13 at 8:12

Browse other questions tagged or ask your own question.