Put text in whitespace wrapfigure of subfloats











up vote
0
down vote

favorite












I've got this right now:
enter image description here



As you can see, the text does not occupy the whitespace above the left graph which makes it look very awkward.



It also has to work with multiple linessectionsparagraphs etc.



I would like that space to be usable with by the text. Here is my MWE:



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{lipsum}

begin{document}
begin{wrapfigure}{r}{10cm}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}

begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{wrapfigure}

lipsum

end{document}


Edit:
specifying the height of the wrapfigure gives me this:



enter image description here










share|improve this question









New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SX! Try specifying the height of the wrapfigure (optional argument).
    – TeXnician
    Nov 12 at 18:48










  • Did that, edited
    – Tvde1
    Nov 12 at 18:50










  • if I run the example as posted I get output not like either image you show, all the text on all three pages is in one narrow column t the left of the image
    – David Carlisle
    Nov 12 at 20:23












  • That shouldn't be possible with LaTeX right?
    – Tvde1
    Nov 12 at 20:52















up vote
0
down vote

favorite












I've got this right now:
enter image description here



As you can see, the text does not occupy the whitespace above the left graph which makes it look very awkward.



It also has to work with multiple linessectionsparagraphs etc.



I would like that space to be usable with by the text. Here is my MWE:



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{lipsum}

begin{document}
begin{wrapfigure}{r}{10cm}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}

begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{wrapfigure}

lipsum

end{document}


Edit:
specifying the height of the wrapfigure gives me this:



enter image description here










share|improve this question









New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SX! Try specifying the height of the wrapfigure (optional argument).
    – TeXnician
    Nov 12 at 18:48










  • Did that, edited
    – Tvde1
    Nov 12 at 18:50










  • if I run the example as posted I get output not like either image you show, all the text on all three pages is in one narrow column t the left of the image
    – David Carlisle
    Nov 12 at 20:23












  • That shouldn't be possible with LaTeX right?
    – Tvde1
    Nov 12 at 20:52













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I've got this right now:
enter image description here



As you can see, the text does not occupy the whitespace above the left graph which makes it look very awkward.



It also has to work with multiple linessectionsparagraphs etc.



I would like that space to be usable with by the text. Here is my MWE:



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{lipsum}

begin{document}
begin{wrapfigure}{r}{10cm}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}

begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{wrapfigure}

lipsum

end{document}


Edit:
specifying the height of the wrapfigure gives me this:



enter image description here










share|improve this question









New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I've got this right now:
enter image description here



As you can see, the text does not occupy the whitespace above the left graph which makes it look very awkward.



It also has to work with multiple linessectionsparagraphs etc.



I would like that space to be usable with by the text. Here is my MWE:



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{lipsum}

begin{document}
begin{wrapfigure}{r}{10cm}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}

begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}

begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{wrapfigure}

lipsum

end{document}


Edit:
specifying the height of the wrapfigure gives me this:



enter image description here







floats subfloats wrapfigure wrap white-space






share|improve this question









New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 12 at 18:50





















New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 12 at 18:38









Tvde1

1035




1035




New contributor




Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Tvde1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Welcome to TeX.SX! Try specifying the height of the wrapfigure (optional argument).
    – TeXnician
    Nov 12 at 18:48










  • Did that, edited
    – Tvde1
    Nov 12 at 18:50










  • if I run the example as posted I get output not like either image you show, all the text on all three pages is in one narrow column t the left of the image
    – David Carlisle
    Nov 12 at 20:23












  • That shouldn't be possible with LaTeX right?
    – Tvde1
    Nov 12 at 20:52


















  • Welcome to TeX.SX! Try specifying the height of the wrapfigure (optional argument).
    – TeXnician
    Nov 12 at 18:48










  • Did that, edited
    – Tvde1
    Nov 12 at 18:50










  • if I run the example as posted I get output not like either image you show, all the text on all three pages is in one narrow column t the left of the image
    – David Carlisle
    Nov 12 at 20:23












  • That shouldn't be possible with LaTeX right?
    – Tvde1
    Nov 12 at 20:52
















Welcome to TeX.SX! Try specifying the height of the wrapfigure (optional argument).
– TeXnician
Nov 12 at 18:48




Welcome to TeX.SX! Try specifying the height of the wrapfigure (optional argument).
– TeXnician
Nov 12 at 18:48












Did that, edited
– Tvde1
Nov 12 at 18:50




Did that, edited
– Tvde1
Nov 12 at 18:50












if I run the example as posted I get output not like either image you show, all the text on all three pages is in one narrow column t the left of the image
– David Carlisle
Nov 12 at 20:23






if I run the example as posted I get output not like either image you show, all the text on all three pages is in one narrow column t the left of the image
– David Carlisle
Nov 12 at 20:23














That shouldn't be possible with LaTeX right?
– Tvde1
Nov 12 at 20:52




That shouldn't be possible with LaTeX right?
– Tvde1
Nov 12 at 20:52










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










You can shape the paragraphs, which requires a bit of hand work, but less than involved in producing the tikz layout so perhaps an acceptable solution:



enter image description here



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{capt-of}
usepackage{lipsum}

begin{document}



defsln{0pt .4textwidth}
defmln{0pt .65textwidth}
deflln{0pt textwidth}


begin{picture}(0,0)
put(170,0){%
begin{minipage}[t]{.5textwidth}expandafterdefcsname @captypeendcsname{figure}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}
begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{minipage}}%
end{picture}

parshape 12
mlnmlnmlnmlnmlnmlnmlnmlnmlnmlnmln
sln
lipsum[1]

parshape 1
sln
lipsum[2]

lipsum[3]

lipsum[4-7]

end{document}





share|improve this answer





















  • It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
    – Tvde1
    2 days ago











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',
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
});


}
});






Tvde1 is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459672%2fput-text-in-whitespace-wrapfigure-of-subfloats%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








up vote
2
down vote



accepted










You can shape the paragraphs, which requires a bit of hand work, but less than involved in producing the tikz layout so perhaps an acceptable solution:



enter image description here



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{capt-of}
usepackage{lipsum}

begin{document}



defsln{0pt .4textwidth}
defmln{0pt .65textwidth}
deflln{0pt textwidth}


begin{picture}(0,0)
put(170,0){%
begin{minipage}[t]{.5textwidth}expandafterdefcsname @captypeendcsname{figure}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}
begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{minipage}}%
end{picture}

parshape 12
mlnmlnmlnmlnmlnmlnmlnmlnmlnmlnmln
sln
lipsum[1]

parshape 1
sln
lipsum[2]

lipsum[3]

lipsum[4-7]

end{document}





share|improve this answer





















  • It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
    – Tvde1
    2 days ago















up vote
2
down vote



accepted










You can shape the paragraphs, which requires a bit of hand work, but less than involved in producing the tikz layout so perhaps an acceptable solution:



enter image description here



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{capt-of}
usepackage{lipsum}

begin{document}



defsln{0pt .4textwidth}
defmln{0pt .65textwidth}
deflln{0pt textwidth}


begin{picture}(0,0)
put(170,0){%
begin{minipage}[t]{.5textwidth}expandafterdefcsname @captypeendcsname{figure}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}
begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{minipage}}%
end{picture}

parshape 12
mlnmlnmlnmlnmlnmlnmlnmlnmlnmlnmln
sln
lipsum[1]

parshape 1
sln
lipsum[2]

lipsum[3]

lipsum[4-7]

end{document}





share|improve this answer





















  • It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
    – Tvde1
    2 days ago













up vote
2
down vote



accepted







up vote
2
down vote



accepted






You can shape the paragraphs, which requires a bit of hand work, but less than involved in producing the tikz layout so perhaps an acceptable solution:



enter image description here



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{capt-of}
usepackage{lipsum}

begin{document}



defsln{0pt .4textwidth}
defmln{0pt .65textwidth}
deflln{0pt textwidth}


begin{picture}(0,0)
put(170,0){%
begin{minipage}[t]{.5textwidth}expandafterdefcsname @captypeendcsname{figure}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}
begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{minipage}}%
end{picture}

parshape 12
mlnmlnmlnmlnmlnmlnmlnmlnmlnmlnmln
sln
lipsum[1]

parshape 1
sln
lipsum[2]

lipsum[3]

lipsum[4-7]

end{document}





share|improve this answer












You can shape the paragraphs, which requires a bit of hand work, but less than involved in producing the tikz layout so perhaps an acceptable solution:



enter image description here



documentclass{report}
usepackage{fullpage}

usepackage{pgf-umlsd}
usepackage{wrapfig}
usepackage{subfig}
usepackage{capt-of}
usepackage{lipsum}

begin{document}



defsln{0pt .4textwidth}
defmln{0pt .65textwidth}
deflln{0pt textwidth}


begin{picture}(0,0)
put(170,0){%
begin{minipage}[t]{.5textwidth}expandafterdefcsname @captypeendcsname{figure}
begin{center}
subfloat[Example one]{
begin{sequencediagram}
newthread{a}{Test}
newthread{b}{Test}
begin{sdblock}{Test}{}
mess{a}{Test}{b}
end{sdblock}
end{sequencediagram}
}
subfloat[Example number two with a long caption.]{
begin{sequencediagram}
newthread{a}{Testing}
newthread{b}{Very much testing}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
%
begin{sdblock}{Event}{}
mess{a}{Long test}{b}
end{sdblock}
end{sequencediagram}
}
caption{My mice graphs.}
end{center}
end{minipage}}%
end{picture}

parshape 12
mlnmlnmlnmlnmlnmlnmlnmlnmlnmlnmln
sln
lipsum[1]

parshape 1
sln
lipsum[2]

lipsum[3]

lipsum[4-7]

end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 12 at 21:19









David Carlisle

476k3811061840




476k3811061840












  • It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
    – Tvde1
    2 days ago


















  • It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
    – Tvde1
    2 days ago
















It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
– Tvde1
2 days ago




It works. But it's a shame there's so much hardcoding. I had to hardcode every section's paragraph lengths again
– Tvde1
2 days ago










Tvde1 is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Tvde1 is a new contributor. Be nice, and check out our Code of Conduct.













Tvde1 is a new contributor. Be nice, and check out our Code of Conduct.












Tvde1 is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459672%2fput-text-in-whitespace-wrapfigure-of-subfloats%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?

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

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents