Indented paragraph next to a box












1















I am trying to indent a whole paragraph to the right of a numbered box. However, the paragraph does not appear vertically aligned with the box. I am using the below code:



documentclass[journal,onecolumn]{IEEEtran}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
boxed{textbf{R1.1}}

setlength{leftskip}{1.45cm}
noindent textit{The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.}

setlength{leftskip}{0pt}

end{document}









share|improve this question

























  • Could you include your preamble as well?

    – zyy
    Feb 14 at 18:14











  • It is included now.

    – A A
    Feb 14 at 18:21











  • What do you mean by "aligned"? Do you want the text to start right under the frame of the box?

    – Bubaya
    Feb 14 at 18:37













  • @Bubaya No, I want the whole paragraph to be indented to the right of the box such that the first paragraph line starts on the same line of the box.

    – A A
    Feb 14 at 18:43


















1















I am trying to indent a whole paragraph to the right of a numbered box. However, the paragraph does not appear vertically aligned with the box. I am using the below code:



documentclass[journal,onecolumn]{IEEEtran}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
boxed{textbf{R1.1}}

setlength{leftskip}{1.45cm}
noindent textit{The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.}

setlength{leftskip}{0pt}

end{document}









share|improve this question

























  • Could you include your preamble as well?

    – zyy
    Feb 14 at 18:14











  • It is included now.

    – A A
    Feb 14 at 18:21











  • What do you mean by "aligned"? Do you want the text to start right under the frame of the box?

    – Bubaya
    Feb 14 at 18:37













  • @Bubaya No, I want the whole paragraph to be indented to the right of the box such that the first paragraph line starts on the same line of the box.

    – A A
    Feb 14 at 18:43
















1












1








1








I am trying to indent a whole paragraph to the right of a numbered box. However, the paragraph does not appear vertically aligned with the box. I am using the below code:



documentclass[journal,onecolumn]{IEEEtran}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
boxed{textbf{R1.1}}

setlength{leftskip}{1.45cm}
noindent textit{The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.}

setlength{leftskip}{0pt}

end{document}









share|improve this question
















I am trying to indent a whole paragraph to the right of a numbered box. However, the paragraph does not appear vertically aligned with the box. I am using the below code:



documentclass[journal,onecolumn]{IEEEtran}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
boxed{textbf{R1.1}}

setlength{leftskip}{1.45cm}
noindent textit{The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.}

setlength{leftskip}{0pt}

end{document}






spacing horizontal-alignment indentation boxes






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 14 at 18:20







A A

















asked Feb 14 at 18:09









A AA A

83




83













  • Could you include your preamble as well?

    – zyy
    Feb 14 at 18:14











  • It is included now.

    – A A
    Feb 14 at 18:21











  • What do you mean by "aligned"? Do you want the text to start right under the frame of the box?

    – Bubaya
    Feb 14 at 18:37













  • @Bubaya No, I want the whole paragraph to be indented to the right of the box such that the first paragraph line starts on the same line of the box.

    – A A
    Feb 14 at 18:43





















  • Could you include your preamble as well?

    – zyy
    Feb 14 at 18:14











  • It is included now.

    – A A
    Feb 14 at 18:21











  • What do you mean by "aligned"? Do you want the text to start right under the frame of the box?

    – Bubaya
    Feb 14 at 18:37













  • @Bubaya No, I want the whole paragraph to be indented to the right of the box such that the first paragraph line starts on the same line of the box.

    – A A
    Feb 14 at 18:43



















Could you include your preamble as well?

– zyy
Feb 14 at 18:14





Could you include your preamble as well?

– zyy
Feb 14 at 18:14













It is included now.

– A A
Feb 14 at 18:21





It is included now.

– A A
Feb 14 at 18:21













What do you mean by "aligned"? Do you want the text to start right under the frame of the box?

– Bubaya
Feb 14 at 18:37







What do you mean by "aligned"? Do you want the text to start right under the frame of the box?

– Bubaya
Feb 14 at 18:37















@Bubaya No, I want the whole paragraph to be indented to the right of the box such that the first paragraph line starts on the same line of the box.

– A A
Feb 14 at 18:43







@Bubaya No, I want the whole paragraph to be indented to the right of the box such that the first paragraph line starts on the same line of the box.

– A A
Feb 14 at 18:43












1 Answer
1






active

oldest

votes


















2














If the paragraph is supposed to be put next to the box, an immediate solution would be to use command llap, which suppresses the width of the box:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
setlength{leftskip}{1.45cm}

noindent%
llap{%
boxed{normalfonttextbf{R1.1}}%
hspace{1em}%
}%
textit{%
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
}

setlength{leftskip}{0pt}
end{document}


However, a better solution would be using lists. For this, enumitem is a very handy package for manipulating lengths involved in itemize, enumerate or description environments:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath
usepackage{enumitem}
begin{document}
begin{description}[leftmargin=1.45cm, labelwidth=1.2cm, labelsep=2.5mm]
item[boxed{normalfonttextbf{R1.1}}]
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
end{description}
end{document}


enter image description here






share|improve this answer
























  • Thank you so much! That was helpful.

    – A A
    Feb 14 at 19:07











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474917%2findented-paragraph-next-to-a-box%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














If the paragraph is supposed to be put next to the box, an immediate solution would be to use command llap, which suppresses the width of the box:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
setlength{leftskip}{1.45cm}

noindent%
llap{%
boxed{normalfonttextbf{R1.1}}%
hspace{1em}%
}%
textit{%
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
}

setlength{leftskip}{0pt}
end{document}


However, a better solution would be using lists. For this, enumitem is a very handy package for manipulating lengths involved in itemize, enumerate or description environments:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath
usepackage{enumitem}
begin{document}
begin{description}[leftmargin=1.45cm, labelwidth=1.2cm, labelsep=2.5mm]
item[boxed{normalfonttextbf{R1.1}}]
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
end{description}
end{document}


enter image description here






share|improve this answer
























  • Thank you so much! That was helpful.

    – A A
    Feb 14 at 19:07
















2














If the paragraph is supposed to be put next to the box, an immediate solution would be to use command llap, which suppresses the width of the box:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
setlength{leftskip}{1.45cm}

noindent%
llap{%
boxed{normalfonttextbf{R1.1}}%
hspace{1em}%
}%
textit{%
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
}

setlength{leftskip}{0pt}
end{document}


However, a better solution would be using lists. For this, enumitem is a very handy package for manipulating lengths involved in itemize, enumerate or description environments:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath
usepackage{enumitem}
begin{document}
begin{description}[leftmargin=1.45cm, labelwidth=1.2cm, labelsep=2.5mm]
item[boxed{normalfonttextbf{R1.1}}]
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
end{description}
end{document}


enter image description here






share|improve this answer
























  • Thank you so much! That was helpful.

    – A A
    Feb 14 at 19:07














2












2








2







If the paragraph is supposed to be put next to the box, an immediate solution would be to use command llap, which suppresses the width of the box:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
setlength{leftskip}{1.45cm}

noindent%
llap{%
boxed{normalfonttextbf{R1.1}}%
hspace{1em}%
}%
textit{%
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
}

setlength{leftskip}{0pt}
end{document}


However, a better solution would be using lists. For this, enumitem is a very handy package for manipulating lengths involved in itemize, enumerate or description environments:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath
usepackage{enumitem}
begin{document}
begin{description}[leftmargin=1.45cm, labelwidth=1.2cm, labelsep=2.5mm]
item[boxed{normalfonttextbf{R1.1}}]
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
end{description}
end{document}


enter image description here






share|improve this answer













If the paragraph is supposed to be put next to the box, an immediate solution would be to use command llap, which suppresses the width of the box:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath

begin{document}
setlength{leftskip}{1.45cm}

noindent%
llap{%
boxed{normalfonttextbf{R1.1}}%
hspace{1em}%
}%
textit{%
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
}

setlength{leftskip}{0pt}
end{document}


However, a better solution would be using lists. For this, enumitem is a very handy package for manipulating lengths involved in itemize, enumerate or description environments:



documentclass[journal,onecolumn]{scrartcl}
usepackage{amsmath} % for boxed{}
usepackage{mathtools} % also loads amsmath
usepackage{enumitem}
begin{document}
begin{description}[leftmargin=1.45cm, labelwidth=1.2cm, labelsep=2.5mm]
item[boxed{normalfonttextbf{R1.1}}]
The central goal of the SHRP 2 Safety research program was
to address the role of driver performance and behavior in traffic safety.
This included developing an understanding of how the driver interacts with
and adapts to the vehicle, traffic environment, roadway characteristics,
traffic control devices, and the environment. It also included assessing the
changes in collision risk associated with each of these factors and
interactions. This information will support the development of new and
improved countermeasures with greater effectiveness.
end{description}
end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 14 at 18:51









BubayaBubaya

565210




565210













  • Thank you so much! That was helpful.

    – A A
    Feb 14 at 19:07



















  • Thank you so much! That was helpful.

    – A A
    Feb 14 at 19:07

















Thank you so much! That was helpful.

– A A
Feb 14 at 19:07





Thank you so much! That was helpful.

– A A
Feb 14 at 19:07


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474917%2findented-paragraph-next-to-a-box%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?