How to align section heading after wrapping text around figure
documentclass[letterpaper,11pt]{texMemo}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
usepackage{wrapfig}
memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
memofrom{Tanner N. Borskey, Project Developer}
memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
memodate{Thursday, January 10, 2019}
logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH Creative will understand why solar powered traffic signs are needed, how solar powered traffic lights work, and the different types of solar powered traffic signs available.
color{cyan}
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
color{black}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed warnings, school zone warnings, etc. Standard traffic signs in urban areas have illumination from surrounding light sources such traffic lights, security lights on buildings, and vehicle headlights. Compared to urban areas, rural area traffic signs often only are illuminated by driver headlights which is not sufficient. Unfortunately these traffic signs are currently the most common style of traffic signs still seen today. They are dependent on surrounding area light sources for illumination, outdated, and often ignored which ultimately increases the dangers of the road.
begin{wrapfigure}[9]{L}{0.5textwidth}
centering
includegraphics[width=0.5textwidth]{stat1.png}
caption{Fatal Crashes by Traffic Control Devices [1]}
end{wrapfigure}
color{cyan}
subsection*{Solar Powered Traffic Signs}
color{black}
Solar powered traffic signs are the most up to date solution to increase traffic safety. These redesigned traffic signs prove to allow more visibility no matter of location or area. The number of fatal crashes just involving a STOP sign are the second leading result in fatal crashes in both 1999 and 2000 as seen in Figue 1. The inability to see a STOP sign due to lack of illumination are one of the leading reasons why these fatal crashes occur. Solar powered traffic signs would help eliminate a great percentage of fatalities by providing drivers with a bright, continuous flashing signal on the sign resulting in the sign becoming appearance becoming more visible to all drivers on the road. Inventor, David Hubbell states, "There is, therefore, a need to have an illuminated traffic sign that is visible to a driver before the vehicle's headlights hit it without depending on ambient lighting sources for illumination." cite{bierman2006self}
color{cyan}
section*{How Do Solar Powered Traffic Signs Work?}
color{black}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
horizontal-alignment positioning wrapfigure
add a comment |
documentclass[letterpaper,11pt]{texMemo}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
usepackage{wrapfig}
memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
memofrom{Tanner N. Borskey, Project Developer}
memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
memodate{Thursday, January 10, 2019}
logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH Creative will understand why solar powered traffic signs are needed, how solar powered traffic lights work, and the different types of solar powered traffic signs available.
color{cyan}
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
color{black}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed warnings, school zone warnings, etc. Standard traffic signs in urban areas have illumination from surrounding light sources such traffic lights, security lights on buildings, and vehicle headlights. Compared to urban areas, rural area traffic signs often only are illuminated by driver headlights which is not sufficient. Unfortunately these traffic signs are currently the most common style of traffic signs still seen today. They are dependent on surrounding area light sources for illumination, outdated, and often ignored which ultimately increases the dangers of the road.
begin{wrapfigure}[9]{L}{0.5textwidth}
centering
includegraphics[width=0.5textwidth]{stat1.png}
caption{Fatal Crashes by Traffic Control Devices [1]}
end{wrapfigure}
color{cyan}
subsection*{Solar Powered Traffic Signs}
color{black}
Solar powered traffic signs are the most up to date solution to increase traffic safety. These redesigned traffic signs prove to allow more visibility no matter of location or area. The number of fatal crashes just involving a STOP sign are the second leading result in fatal crashes in both 1999 and 2000 as seen in Figue 1. The inability to see a STOP sign due to lack of illumination are one of the leading reasons why these fatal crashes occur. Solar powered traffic signs would help eliminate a great percentage of fatalities by providing drivers with a bright, continuous flashing signal on the sign resulting in the sign becoming appearance becoming more visible to all drivers on the road. Inventor, David Hubbell states, "There is, therefore, a need to have an illuminated traffic sign that is visible to a driver before the vehicle's headlights hit it without depending on ambient lighting sources for illumination." cite{bierman2006self}
color{cyan}
section*{How Do Solar Powered Traffic Signs Work?}
color{black}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
horizontal-alignment positioning wrapfigure
can you not just put the section heading before the wrapfig (also you should not have color in the document like that, just specify the colour at the same place that the section heading font is specified
– David Carlisle
Jan 10 at 7:54
Your code is not reproducible, please use a different document class and replace the pictures.
– Felix Phl
Jan 10 at 8:21
From a typographic view point, inputting a table as a figure is a bad idea, especially if you scale it such that the font sizes don't match. Best to reproduce this table in LaTeX code.
– Skillmon
Jan 10 at 8:26
See also tex.stackexchange.com/questions/417299/wrapfig-package-question
– John Kormylo
Jan 10 at 17:25
The way you change your section headings is very wrong. You should not usecolor
there. Instead the definition ofsection
and the like should be changed to colour the headings. But that's not the issue.
– Skillmon
Jan 13 at 10:32
add a comment |
documentclass[letterpaper,11pt]{texMemo}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
usepackage{wrapfig}
memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
memofrom{Tanner N. Borskey, Project Developer}
memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
memodate{Thursday, January 10, 2019}
logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH Creative will understand why solar powered traffic signs are needed, how solar powered traffic lights work, and the different types of solar powered traffic signs available.
color{cyan}
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
color{black}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed warnings, school zone warnings, etc. Standard traffic signs in urban areas have illumination from surrounding light sources such traffic lights, security lights on buildings, and vehicle headlights. Compared to urban areas, rural area traffic signs often only are illuminated by driver headlights which is not sufficient. Unfortunately these traffic signs are currently the most common style of traffic signs still seen today. They are dependent on surrounding area light sources for illumination, outdated, and often ignored which ultimately increases the dangers of the road.
begin{wrapfigure}[9]{L}{0.5textwidth}
centering
includegraphics[width=0.5textwidth]{stat1.png}
caption{Fatal Crashes by Traffic Control Devices [1]}
end{wrapfigure}
color{cyan}
subsection*{Solar Powered Traffic Signs}
color{black}
Solar powered traffic signs are the most up to date solution to increase traffic safety. These redesigned traffic signs prove to allow more visibility no matter of location or area. The number of fatal crashes just involving a STOP sign are the second leading result in fatal crashes in both 1999 and 2000 as seen in Figue 1. The inability to see a STOP sign due to lack of illumination are one of the leading reasons why these fatal crashes occur. Solar powered traffic signs would help eliminate a great percentage of fatalities by providing drivers with a bright, continuous flashing signal on the sign resulting in the sign becoming appearance becoming more visible to all drivers on the road. Inventor, David Hubbell states, "There is, therefore, a need to have an illuminated traffic sign that is visible to a driver before the vehicle's headlights hit it without depending on ambient lighting sources for illumination." cite{bierman2006self}
color{cyan}
section*{How Do Solar Powered Traffic Signs Work?}
color{black}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
horizontal-alignment positioning wrapfigure
documentclass[letterpaper,11pt]{texMemo}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
usepackage{wrapfig}
memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
memofrom{Tanner N. Borskey, Project Developer}
memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
memodate{Thursday, January 10, 2019}
logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH Creative will understand why solar powered traffic signs are needed, how solar powered traffic lights work, and the different types of solar powered traffic signs available.
color{cyan}
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
color{black}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed warnings, school zone warnings, etc. Standard traffic signs in urban areas have illumination from surrounding light sources such traffic lights, security lights on buildings, and vehicle headlights. Compared to urban areas, rural area traffic signs often only are illuminated by driver headlights which is not sufficient. Unfortunately these traffic signs are currently the most common style of traffic signs still seen today. They are dependent on surrounding area light sources for illumination, outdated, and often ignored which ultimately increases the dangers of the road.
begin{wrapfigure}[9]{L}{0.5textwidth}
centering
includegraphics[width=0.5textwidth]{stat1.png}
caption{Fatal Crashes by Traffic Control Devices [1]}
end{wrapfigure}
color{cyan}
subsection*{Solar Powered Traffic Signs}
color{black}
Solar powered traffic signs are the most up to date solution to increase traffic safety. These redesigned traffic signs prove to allow more visibility no matter of location or area. The number of fatal crashes just involving a STOP sign are the second leading result in fatal crashes in both 1999 and 2000 as seen in Figue 1. The inability to see a STOP sign due to lack of illumination are one of the leading reasons why these fatal crashes occur. Solar powered traffic signs would help eliminate a great percentage of fatalities by providing drivers with a bright, continuous flashing signal on the sign resulting in the sign becoming appearance becoming more visible to all drivers on the road. Inventor, David Hubbell states, "There is, therefore, a need to have an illuminated traffic sign that is visible to a driver before the vehicle's headlights hit it without depending on ambient lighting sources for illumination." cite{bierman2006self}
color{cyan}
section*{How Do Solar Powered Traffic Signs Work?}
color{black}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
horizontal-alignment positioning wrapfigure
horizontal-alignment positioning wrapfigure
edited Jan 10 at 7:56
David Carlisle
485k4111211865
485k4111211865
asked Jan 10 at 6:32
Tanner BorskeyTanner Borskey
1
1
can you not just put the section heading before the wrapfig (also you should not have color in the document like that, just specify the colour at the same place that the section heading font is specified
– David Carlisle
Jan 10 at 7:54
Your code is not reproducible, please use a different document class and replace the pictures.
– Felix Phl
Jan 10 at 8:21
From a typographic view point, inputting a table as a figure is a bad idea, especially if you scale it such that the font sizes don't match. Best to reproduce this table in LaTeX code.
– Skillmon
Jan 10 at 8:26
See also tex.stackexchange.com/questions/417299/wrapfig-package-question
– John Kormylo
Jan 10 at 17:25
The way you change your section headings is very wrong. You should not usecolor
there. Instead the definition ofsection
and the like should be changed to colour the headings. But that's not the issue.
– Skillmon
Jan 13 at 10:32
add a comment |
can you not just put the section heading before the wrapfig (also you should not have color in the document like that, just specify the colour at the same place that the section heading font is specified
– David Carlisle
Jan 10 at 7:54
Your code is not reproducible, please use a different document class and replace the pictures.
– Felix Phl
Jan 10 at 8:21
From a typographic view point, inputting a table as a figure is a bad idea, especially if you scale it such that the font sizes don't match. Best to reproduce this table in LaTeX code.
– Skillmon
Jan 10 at 8:26
See also tex.stackexchange.com/questions/417299/wrapfig-package-question
– John Kormylo
Jan 10 at 17:25
The way you change your section headings is very wrong. You should not usecolor
there. Instead the definition ofsection
and the like should be changed to colour the headings. But that's not the issue.
– Skillmon
Jan 13 at 10:32
can you not just put the section heading before the wrapfig (also you should not have color in the document like that, just specify the colour at the same place that the section heading font is specified
– David Carlisle
Jan 10 at 7:54
can you not just put the section heading before the wrapfig (also you should not have color in the document like that, just specify the colour at the same place that the section heading font is specified
– David Carlisle
Jan 10 at 7:54
Your code is not reproducible, please use a different document class and replace the pictures.
– Felix Phl
Jan 10 at 8:21
Your code is not reproducible, please use a different document class and replace the pictures.
– Felix Phl
Jan 10 at 8:21
From a typographic view point, inputting a table as a figure is a bad idea, especially if you scale it such that the font sizes don't match. Best to reproduce this table in LaTeX code.
– Skillmon
Jan 10 at 8:26
From a typographic view point, inputting a table as a figure is a bad idea, especially if you scale it such that the font sizes don't match. Best to reproduce this table in LaTeX code.
– Skillmon
Jan 10 at 8:26
See also tex.stackexchange.com/questions/417299/wrapfig-package-question
– John Kormylo
Jan 10 at 17:25
See also tex.stackexchange.com/questions/417299/wrapfig-package-question
– John Kormylo
Jan 10 at 17:25
The way you change your section headings is very wrong. You should not use
color
there. Instead the definition of section
and the like should be changed to colour the headings. But that's not the issue.– Skillmon
Jan 13 at 10:32
The way you change your section headings is very wrong. You should not use
color
there. Instead the definition of section
and the like should be changed to colour the headings. But that's not the issue.– Skillmon
Jan 13 at 10:32
add a comment |
1 Answer
1
active
oldest
votes
The following drops wrapfig
and uses insbox
instead (insbox
is not a LaTeX2e package, but generic code, therefore it is input
). If you encounter stuff that shouldn't be affected anymore you can use insboxrestore
(which I just let
to an internal of insbox
) to end insbox
's effect for the current and every following paragraphs. To get decent looking outputs with section
heading a bit of manual placement is needed (hence the vspace
macros) and the effect of the section
suppressing the resetting of the next paragraph's shape has to be suppressed (hence the begingroup...endgroup
pair).
In order to get a caption
inside of insbox
's macro, one has to use a parbox
(or minipage
) and the capt-of
package's captionof
(also provided by the caption
package and the KOMA script classes).
To change the margin around the inserted image and the surrounding text, you'd have to use something like
makeatletter
setlength@InsertBoxMargin{<length>}% package default is 2mm
makeatother
Note that in the following I use article
as I don't have texMemo
on my local machine and won't search for it. I also removed your color
s, as they are wrong in the way they are used, but can't provide a fix, because I don't know texMemo
's internal structure.
documentclass[letterpaper,11pt]{article}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
input{insbox}
usepackage{capt-of}
makeatletter
@ifdefinable{insboxrestore}{letinsboxrestore@restore@}
makeatother
%memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
%memofrom{Tanner N. Borskey, Project Developer}
%memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
%memodate{Thursday, January 10, 2019}
%logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
%maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH
Creative will understand why solar powered traffic signs are needed, how solar
powered traffic lights work, and the different types of solar powered traffic
signs available.
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed
warnings, school zone warnings, etc. Standard traffic signs in urban areas have
illumination from surrounding light sources such traffic lights, security lights
on buildings, and vehicle headlights. Compared to urban areas, rural area
traffic signs often only are illuminated by driver headlights which is not
sufficient. Unfortunately these traffic signs are currently the most common
style of traffic signs still seen today. They are dependent on surrounding area
light sources for illumination, outdated, and often ignored which ultimately
increases the dangers of the road.
vspace{-baselineskip}% move the box a bit up
InsertBoxL{0}
{%
parbox[t]{.5textwidth}
{%
vspace{2baselineskip}% move the image a bit down inside the box
centering
includegraphics[width=linewidth]{example-image-duck}
captionof{figure}{Fatal Crashes by Traffic Control Devices [1]}
}%
}[13]% change this number if the number of short lines is wrong
% group the subsection so that it doesn't interfere with InsertBoxL. If you're
% not using `indentfirst` you'll have to suppress the indent in the first
% paragraph manually
begingroup
subsection*{Solar Powered Traffic Signs}
endgroup
Solar powered traffic signs are the most up to date solution to increase traffic
safety. These redesigned traffic signs prove to allow more visibility no matter
of location or area. The number of fatal crashes just involving a STOP sign are
the second leading result in fatal crashes in both 1999 and 2000 as seen in
Figue 1. The inability to see a STOP sign due to lack of illumination are one of
the leading reasons why these fatal crashes occur. Solar powered traffic signs
would help eliminate a great percentage of fatalities by providing drivers with
a bright, continuous flashing signal on the sign resulting in the sign becoming
appearance becoming more visible to all drivers on the road. Inventor, David
Hubbell states, "There is, therefore, a need to have an illuminated traffic sign
that is visible to a driver before the vehicle's headlights hit it without
depending on ambient lighting sources for illumination." cite{bierman2006self}
section*{How Do Solar Powered Traffic Signs Work?}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469494%2fhow-to-align-section-heading-after-wrapping-text-around-figure%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
The following drops wrapfig
and uses insbox
instead (insbox
is not a LaTeX2e package, but generic code, therefore it is input
). If you encounter stuff that shouldn't be affected anymore you can use insboxrestore
(which I just let
to an internal of insbox
) to end insbox
's effect for the current and every following paragraphs. To get decent looking outputs with section
heading a bit of manual placement is needed (hence the vspace
macros) and the effect of the section
suppressing the resetting of the next paragraph's shape has to be suppressed (hence the begingroup...endgroup
pair).
In order to get a caption
inside of insbox
's macro, one has to use a parbox
(or minipage
) and the capt-of
package's captionof
(also provided by the caption
package and the KOMA script classes).
To change the margin around the inserted image and the surrounding text, you'd have to use something like
makeatletter
setlength@InsertBoxMargin{<length>}% package default is 2mm
makeatother
Note that in the following I use article
as I don't have texMemo
on my local machine and won't search for it. I also removed your color
s, as they are wrong in the way they are used, but can't provide a fix, because I don't know texMemo
's internal structure.
documentclass[letterpaper,11pt]{article}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
input{insbox}
usepackage{capt-of}
makeatletter
@ifdefinable{insboxrestore}{letinsboxrestore@restore@}
makeatother
%memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
%memofrom{Tanner N. Borskey, Project Developer}
%memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
%memodate{Thursday, January 10, 2019}
%logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
%maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH
Creative will understand why solar powered traffic signs are needed, how solar
powered traffic lights work, and the different types of solar powered traffic
signs available.
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed
warnings, school zone warnings, etc. Standard traffic signs in urban areas have
illumination from surrounding light sources such traffic lights, security lights
on buildings, and vehicle headlights. Compared to urban areas, rural area
traffic signs often only are illuminated by driver headlights which is not
sufficient. Unfortunately these traffic signs are currently the most common
style of traffic signs still seen today. They are dependent on surrounding area
light sources for illumination, outdated, and often ignored which ultimately
increases the dangers of the road.
vspace{-baselineskip}% move the box a bit up
InsertBoxL{0}
{%
parbox[t]{.5textwidth}
{%
vspace{2baselineskip}% move the image a bit down inside the box
centering
includegraphics[width=linewidth]{example-image-duck}
captionof{figure}{Fatal Crashes by Traffic Control Devices [1]}
}%
}[13]% change this number if the number of short lines is wrong
% group the subsection so that it doesn't interfere with InsertBoxL. If you're
% not using `indentfirst` you'll have to suppress the indent in the first
% paragraph manually
begingroup
subsection*{Solar Powered Traffic Signs}
endgroup
Solar powered traffic signs are the most up to date solution to increase traffic
safety. These redesigned traffic signs prove to allow more visibility no matter
of location or area. The number of fatal crashes just involving a STOP sign are
the second leading result in fatal crashes in both 1999 and 2000 as seen in
Figue 1. The inability to see a STOP sign due to lack of illumination are one of
the leading reasons why these fatal crashes occur. Solar powered traffic signs
would help eliminate a great percentage of fatalities by providing drivers with
a bright, continuous flashing signal on the sign resulting in the sign becoming
appearance becoming more visible to all drivers on the road. Inventor, David
Hubbell states, "There is, therefore, a need to have an illuminated traffic sign
that is visible to a driver before the vehicle's headlights hit it without
depending on ambient lighting sources for illumination." cite{bierman2006self}
section*{How Do Solar Powered Traffic Signs Work?}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
add a comment |
The following drops wrapfig
and uses insbox
instead (insbox
is not a LaTeX2e package, but generic code, therefore it is input
). If you encounter stuff that shouldn't be affected anymore you can use insboxrestore
(which I just let
to an internal of insbox
) to end insbox
's effect for the current and every following paragraphs. To get decent looking outputs with section
heading a bit of manual placement is needed (hence the vspace
macros) and the effect of the section
suppressing the resetting of the next paragraph's shape has to be suppressed (hence the begingroup...endgroup
pair).
In order to get a caption
inside of insbox
's macro, one has to use a parbox
(or minipage
) and the capt-of
package's captionof
(also provided by the caption
package and the KOMA script classes).
To change the margin around the inserted image and the surrounding text, you'd have to use something like
makeatletter
setlength@InsertBoxMargin{<length>}% package default is 2mm
makeatother
Note that in the following I use article
as I don't have texMemo
on my local machine and won't search for it. I also removed your color
s, as they are wrong in the way they are used, but can't provide a fix, because I don't know texMemo
's internal structure.
documentclass[letterpaper,11pt]{article}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
input{insbox}
usepackage{capt-of}
makeatletter
@ifdefinable{insboxrestore}{letinsboxrestore@restore@}
makeatother
%memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
%memofrom{Tanner N. Borskey, Project Developer}
%memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
%memodate{Thursday, January 10, 2019}
%logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
%maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH
Creative will understand why solar powered traffic signs are needed, how solar
powered traffic lights work, and the different types of solar powered traffic
signs available.
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed
warnings, school zone warnings, etc. Standard traffic signs in urban areas have
illumination from surrounding light sources such traffic lights, security lights
on buildings, and vehicle headlights. Compared to urban areas, rural area
traffic signs often only are illuminated by driver headlights which is not
sufficient. Unfortunately these traffic signs are currently the most common
style of traffic signs still seen today. They are dependent on surrounding area
light sources for illumination, outdated, and often ignored which ultimately
increases the dangers of the road.
vspace{-baselineskip}% move the box a bit up
InsertBoxL{0}
{%
parbox[t]{.5textwidth}
{%
vspace{2baselineskip}% move the image a bit down inside the box
centering
includegraphics[width=linewidth]{example-image-duck}
captionof{figure}{Fatal Crashes by Traffic Control Devices [1]}
}%
}[13]% change this number if the number of short lines is wrong
% group the subsection so that it doesn't interfere with InsertBoxL. If you're
% not using `indentfirst` you'll have to suppress the indent in the first
% paragraph manually
begingroup
subsection*{Solar Powered Traffic Signs}
endgroup
Solar powered traffic signs are the most up to date solution to increase traffic
safety. These redesigned traffic signs prove to allow more visibility no matter
of location or area. The number of fatal crashes just involving a STOP sign are
the second leading result in fatal crashes in both 1999 and 2000 as seen in
Figue 1. The inability to see a STOP sign due to lack of illumination are one of
the leading reasons why these fatal crashes occur. Solar powered traffic signs
would help eliminate a great percentage of fatalities by providing drivers with
a bright, continuous flashing signal on the sign resulting in the sign becoming
appearance becoming more visible to all drivers on the road. Inventor, David
Hubbell states, "There is, therefore, a need to have an illuminated traffic sign
that is visible to a driver before the vehicle's headlights hit it without
depending on ambient lighting sources for illumination." cite{bierman2006self}
section*{How Do Solar Powered Traffic Signs Work?}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
add a comment |
The following drops wrapfig
and uses insbox
instead (insbox
is not a LaTeX2e package, but generic code, therefore it is input
). If you encounter stuff that shouldn't be affected anymore you can use insboxrestore
(which I just let
to an internal of insbox
) to end insbox
's effect for the current and every following paragraphs. To get decent looking outputs with section
heading a bit of manual placement is needed (hence the vspace
macros) and the effect of the section
suppressing the resetting of the next paragraph's shape has to be suppressed (hence the begingroup...endgroup
pair).
In order to get a caption
inside of insbox
's macro, one has to use a parbox
(or minipage
) and the capt-of
package's captionof
(also provided by the caption
package and the KOMA script classes).
To change the margin around the inserted image and the surrounding text, you'd have to use something like
makeatletter
setlength@InsertBoxMargin{<length>}% package default is 2mm
makeatother
Note that in the following I use article
as I don't have texMemo
on my local machine and won't search for it. I also removed your color
s, as they are wrong in the way they are used, but can't provide a fix, because I don't know texMemo
's internal structure.
documentclass[letterpaper,11pt]{article}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
input{insbox}
usepackage{capt-of}
makeatletter
@ifdefinable{insboxrestore}{letinsboxrestore@restore@}
makeatother
%memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
%memofrom{Tanner N. Borskey, Project Developer}
%memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
%memodate{Thursday, January 10, 2019}
%logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
%maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH
Creative will understand why solar powered traffic signs are needed, how solar
powered traffic lights work, and the different types of solar powered traffic
signs available.
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed
warnings, school zone warnings, etc. Standard traffic signs in urban areas have
illumination from surrounding light sources such traffic lights, security lights
on buildings, and vehicle headlights. Compared to urban areas, rural area
traffic signs often only are illuminated by driver headlights which is not
sufficient. Unfortunately these traffic signs are currently the most common
style of traffic signs still seen today. They are dependent on surrounding area
light sources for illumination, outdated, and often ignored which ultimately
increases the dangers of the road.
vspace{-baselineskip}% move the box a bit up
InsertBoxL{0}
{%
parbox[t]{.5textwidth}
{%
vspace{2baselineskip}% move the image a bit down inside the box
centering
includegraphics[width=linewidth]{example-image-duck}
captionof{figure}{Fatal Crashes by Traffic Control Devices [1]}
}%
}[13]% change this number if the number of short lines is wrong
% group the subsection so that it doesn't interfere with InsertBoxL. If you're
% not using `indentfirst` you'll have to suppress the indent in the first
% paragraph manually
begingroup
subsection*{Solar Powered Traffic Signs}
endgroup
Solar powered traffic signs are the most up to date solution to increase traffic
safety. These redesigned traffic signs prove to allow more visibility no matter
of location or area. The number of fatal crashes just involving a STOP sign are
the second leading result in fatal crashes in both 1999 and 2000 as seen in
Figue 1. The inability to see a STOP sign due to lack of illumination are one of
the leading reasons why these fatal crashes occur. Solar powered traffic signs
would help eliminate a great percentage of fatalities by providing drivers with
a bright, continuous flashing signal on the sign resulting in the sign becoming
appearance becoming more visible to all drivers on the road. Inventor, David
Hubbell states, "There is, therefore, a need to have an illuminated traffic sign
that is visible to a driver before the vehicle's headlights hit it without
depending on ambient lighting sources for illumination." cite{bierman2006self}
section*{How Do Solar Powered Traffic Signs Work?}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
The following drops wrapfig
and uses insbox
instead (insbox
is not a LaTeX2e package, but generic code, therefore it is input
). If you encounter stuff that shouldn't be affected anymore you can use insboxrestore
(which I just let
to an internal of insbox
) to end insbox
's effect for the current and every following paragraphs. To get decent looking outputs with section
heading a bit of manual placement is needed (hence the vspace
macros) and the effect of the section
suppressing the resetting of the next paragraph's shape has to be suppressed (hence the begingroup...endgroup
pair).
In order to get a caption
inside of insbox
's macro, one has to use a parbox
(or minipage
) and the capt-of
package's captionof
(also provided by the caption
package and the KOMA script classes).
To change the margin around the inserted image and the surrounding text, you'd have to use something like
makeatletter
setlength@InsertBoxMargin{<length>}% package default is 2mm
makeatother
Note that in the following I use article
as I don't have texMemo
on my local machine and won't search for it. I also removed your color
s, as they are wrong in the way they are used, but can't provide a fix, because I don't know texMemo
's internal structure.
documentclass[letterpaper,11pt]{article}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage[dvipsnames]{xcolor}
usepackage{indentfirst}
input{insbox}
usepackage{capt-of}
makeatletter
@ifdefinable{insboxrestore}{letinsboxrestore@restore@}
makeatother
%memoto{Anna C. Kelley, CEO and the BACH Creative Board of Directors}
%memofrom{Tanner N. Borskey, Project Developer}
%memosubject{Definition Memo: Defining What Solar Powered Traffic Signs Are and What They Are Used For}
%memodate{Thursday, January 10, 2019}
%logo{includegraphics[width=0.65textwidth]{bach.jpg}}
begin{document}
%maketitle
The purpose of this memo is to define "Solar Powered Traffic Signs" so that BACH
Creative will understand why solar powered traffic signs are needed, how solar
powered traffic lights work, and the different types of solar powered traffic
signs available.
section*{Why Solar Powered Traffic Signs Are Needed?}
subsection*{Traditional Traffic Signs}
Traffic signs can be seen at pedestrian crosswalks, railroad crossings, speed
warnings, school zone warnings, etc. Standard traffic signs in urban areas have
illumination from surrounding light sources such traffic lights, security lights
on buildings, and vehicle headlights. Compared to urban areas, rural area
traffic signs often only are illuminated by driver headlights which is not
sufficient. Unfortunately these traffic signs are currently the most common
style of traffic signs still seen today. They are dependent on surrounding area
light sources for illumination, outdated, and often ignored which ultimately
increases the dangers of the road.
vspace{-baselineskip}% move the box a bit up
InsertBoxL{0}
{%
parbox[t]{.5textwidth}
{%
vspace{2baselineskip}% move the image a bit down inside the box
centering
includegraphics[width=linewidth]{example-image-duck}
captionof{figure}{Fatal Crashes by Traffic Control Devices [1]}
}%
}[13]% change this number if the number of short lines is wrong
% group the subsection so that it doesn't interfere with InsertBoxL. If you're
% not using `indentfirst` you'll have to suppress the indent in the first
% paragraph manually
begingroup
subsection*{Solar Powered Traffic Signs}
endgroup
Solar powered traffic signs are the most up to date solution to increase traffic
safety. These redesigned traffic signs prove to allow more visibility no matter
of location or area. The number of fatal crashes just involving a STOP sign are
the second leading result in fatal crashes in both 1999 and 2000 as seen in
Figue 1. The inability to see a STOP sign due to lack of illumination are one of
the leading reasons why these fatal crashes occur. Solar powered traffic signs
would help eliminate a great percentage of fatalities by providing drivers with
a bright, continuous flashing signal on the sign resulting in the sign becoming
appearance becoming more visible to all drivers on the road. Inventor, David
Hubbell states, "There is, therefore, a need to have an illuminated traffic sign
that is visible to a driver before the vehicle's headlights hit it without
depending on ambient lighting sources for illumination." cite{bierman2006self}
section*{How Do Solar Powered Traffic Signs Work?}
I NEED THIS SECTION HEADING AND TEXT TO ALIGN LEFT
bibliographystyle{plain}
bibliography{biblist}
end{document}
answered Jan 13 at 12:05
SkillmonSkillmon
21.4k11941
21.4k11941
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469494%2fhow-to-align-section-heading-after-wrapping-text-around-figure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
can you not just put the section heading before the wrapfig (also you should not have color in the document like that, just specify the colour at the same place that the section heading font is specified
– David Carlisle
Jan 10 at 7:54
Your code is not reproducible, please use a different document class and replace the pictures.
– Felix Phl
Jan 10 at 8:21
From a typographic view point, inputting a table as a figure is a bad idea, especially if you scale it such that the font sizes don't match. Best to reproduce this table in LaTeX code.
– Skillmon
Jan 10 at 8:26
See also tex.stackexchange.com/questions/417299/wrapfig-package-question
– John Kormylo
Jan 10 at 17:25
The way you change your section headings is very wrong. You should not use
color
there. Instead the definition ofsection
and the like should be changed to colour the headings. But that's not the issue.– Skillmon
Jan 13 at 10:32