Put text in whitespace wrapfigure of subfloats
up vote
0
down vote
favorite
I've got this right now:
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:
floats subfloats wrapfigure wrap white-space
New contributor
add a comment |
up vote
0
down vote
favorite
I've got this right now:
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:
floats subfloats wrapfigure wrap white-space
New contributor
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
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've got this right now:
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:
floats subfloats wrapfigure wrap white-space
New contributor
I've got this right now:
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:
floats subfloats wrapfigure wrap white-space
floats subfloats wrapfigure wrap white-space
New contributor
New contributor
edited Nov 12 at 18:50
New contributor
asked Nov 12 at 18:38
Tvde1
1035
1035
New contributor
New contributor
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
add a comment |
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
add a comment |
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:
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}
It works. But it's a shame there's so much hardcoding. I had to hardcode everysection
's paragraph lengths again
– Tvde1
2 days ago
add a comment |
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:
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}
It works. But it's a shame there's so much hardcoding. I had to hardcode everysection
's paragraph lengths again
– Tvde1
2 days ago
add a comment |
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:
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}
It works. But it's a shame there's so much hardcoding. I had to hardcode everysection
's paragraph lengths again
– Tvde1
2 days ago
add a comment |
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:
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}
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:
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}
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 everysection
's paragraph lengths again
– Tvde1
2 days ago
add a comment |
It works. But it's a shame there's so much hardcoding. I had to hardcode everysection
'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
add a comment |
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.
Tvde1 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f459672%2fput-text-in-whitespace-wrapfigure-of-subfloats%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
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