1

im trying to get rid of the vertical space between environments, for example:

\documentclass[12pt,a4paper]{article}
\usepackage[spanish]{babel}
\usepackage{ragged2e}

\begin{document}
    \begin{justify}
        Something
    \end{justify}
    \begin{justify}
        Something else
    \end{justify}
\end{document}

enter image description here

I would like it to be like

Something
Something else

Right next below

I've tried some methods but unsuccessfully

  • Welcome to TeX SX! A solution, if any, depends on the environment. What is it? – Bernard Feb 18 '16 at 23:24
  • Do you need to use two environments? – Werner Feb 18 '16 at 23:24
1

Just like the difference between \centering and \begin{center} the environment form is a display list that adds space, and you want the command form

\documentclass[12pt,a4paper]{article}
\usepackage[spanish]{babel}
\usepackage{ragged2e}

\begin{document}

{\justifying
        Something

}{\justifying
        Something else

}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.