Beamer: llap produces new line if at the beginning of the line
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
If you use llap
in beamer at the beginning of a line, a new line appears between the llap
ed text and the following text:
Is there a way to fix this?
MWE:
documentclassbeamer
begindocument
beginframe
llapXX
endframe
enddocument
Adding something before the llap
command and then llap
ing past it produces the right sort of result, but doesn't seem like good practice if there's a better way to do it:
This is produced by the following:
documentclassbeamer
begindocument
beginframe
XllapAphantomX
endframe
enddocument
beamer
add a comment |Â
up vote
2
down vote
favorite
If you use llap
in beamer at the beginning of a line, a new line appears between the llap
ed text and the following text:
Is there a way to fix this?
MWE:
documentclassbeamer
begindocument
beginframe
llapXX
endframe
enddocument
Adding something before the llap
command and then llap
ing past it produces the right sort of result, but doesn't seem like good practice if there's a better way to do it:
This is produced by the following:
documentclassbeamer
begindocument
beginframe
XllapAphantomX
endframe
enddocument
beamer
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
If you use llap
in beamer at the beginning of a line, a new line appears between the llap
ed text and the following text:
Is there a way to fix this?
MWE:
documentclassbeamer
begindocument
beginframe
llapXX
endframe
enddocument
Adding something before the llap
command and then llap
ing past it produces the right sort of result, but doesn't seem like good practice if there's a better way to do it:
This is produced by the following:
documentclassbeamer
begindocument
beginframe
XllapAphantomX
endframe
enddocument
beamer
If you use llap
in beamer at the beginning of a line, a new line appears between the llap
ed text and the following text:
Is there a way to fix this?
MWE:
documentclassbeamer
begindocument
beginframe
llapXX
endframe
enddocument
Adding something before the llap
command and then llap
ing past it produces the right sort of result, but doesn't seem like good practice if there's a better way to do it:
This is produced by the following:
documentclassbeamer
begindocument
beginframe
XllapAphantomX
endframe
enddocument
beamer
beamer
asked 1 hour ago
Jigsaw
894
894
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
You must use llap
and rlap
in horizontal mode. A way to do this is obviously leave the vertical mode:
documentclassbeamer
begindocument
beginframe
leavevmodellapXX
endframe
enddocument
But as you discover, you can enter also in horizontal mode in several other ways, for instance, writing some text before or some other commands as indent
or noindent
or mbox,
IMHO there are nothing wrong with any method as long as you obtain the desired result and nothing else (i.e., worth the truism: do not use noindent
if you want maintain the default indentation) ;-)
... but you really need start a paragraph with llap
? May be with a MWE more close to you final goal someone could offer a different approach:
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
add a comment |Â
up vote
2
down vote
The LaTeX savvy way to do it is
makebox[0pt][r]X
The analog for rlap
is
makebox[0pt][l]X
If you want to know the reason why llap
âÂÂfailsâÂÂ, you have to look how llap
is defined:
% latex.ltx, line 5162:
defllap#1hb@xt@z@hss#1
and hb@xt@z@
is the same as hbox to 0pt
. The primitive hbox
doesn't start horizontal mode, so if found between paragraphs it makes a line of its own.
The llap
command doesn't appear in the official LaTeX manual, so who wants to use it should know the details of TeX. Be careful when you copy code from the net.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
You must use llap
and rlap
in horizontal mode. A way to do this is obviously leave the vertical mode:
documentclassbeamer
begindocument
beginframe
leavevmodellapXX
endframe
enddocument
But as you discover, you can enter also in horizontal mode in several other ways, for instance, writing some text before or some other commands as indent
or noindent
or mbox,
IMHO there are nothing wrong with any method as long as you obtain the desired result and nothing else (i.e., worth the truism: do not use noindent
if you want maintain the default indentation) ;-)
... but you really need start a paragraph with llap
? May be with a MWE more close to you final goal someone could offer a different approach:
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
add a comment |Â
up vote
2
down vote
You must use llap
and rlap
in horizontal mode. A way to do this is obviously leave the vertical mode:
documentclassbeamer
begindocument
beginframe
leavevmodellapXX
endframe
enddocument
But as you discover, you can enter also in horizontal mode in several other ways, for instance, writing some text before or some other commands as indent
or noindent
or mbox,
IMHO there are nothing wrong with any method as long as you obtain the desired result and nothing else (i.e., worth the truism: do not use noindent
if you want maintain the default indentation) ;-)
... but you really need start a paragraph with llap
? May be with a MWE more close to you final goal someone could offer a different approach:
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
You must use llap
and rlap
in horizontal mode. A way to do this is obviously leave the vertical mode:
documentclassbeamer
begindocument
beginframe
leavevmodellapXX
endframe
enddocument
But as you discover, you can enter also in horizontal mode in several other ways, for instance, writing some text before or some other commands as indent
or noindent
or mbox,
IMHO there are nothing wrong with any method as long as you obtain the desired result and nothing else (i.e., worth the truism: do not use noindent
if you want maintain the default indentation) ;-)
... but you really need start a paragraph with llap
? May be with a MWE more close to you final goal someone could offer a different approach:
You must use llap
and rlap
in horizontal mode. A way to do this is obviously leave the vertical mode:
documentclassbeamer
begindocument
beginframe
leavevmodellapXX
endframe
enddocument
But as you discover, you can enter also in horizontal mode in several other ways, for instance, writing some text before or some other commands as indent
or noindent
or mbox,
IMHO there are nothing wrong with any method as long as you obtain the desired result and nothing else (i.e., worth the truism: do not use noindent
if you want maintain the default indentation) ;-)
... but you really need start a paragraph with llap
? May be with a MWE more close to you final goal someone could offer a different approach:
answered 40 mins ago
Fran
48.4k6110169
48.4k6110169
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
add a comment |Â
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
Oh, you were faster than me, I'll delete my answer :)
â nox
34 mins ago
add a comment |Â
up vote
2
down vote
The LaTeX savvy way to do it is
makebox[0pt][r]X
The analog for rlap
is
makebox[0pt][l]X
If you want to know the reason why llap
âÂÂfailsâÂÂ, you have to look how llap
is defined:
% latex.ltx, line 5162:
defllap#1hb@xt@z@hss#1
and hb@xt@z@
is the same as hbox to 0pt
. The primitive hbox
doesn't start horizontal mode, so if found between paragraphs it makes a line of its own.
The llap
command doesn't appear in the official LaTeX manual, so who wants to use it should know the details of TeX. Be careful when you copy code from the net.
add a comment |Â
up vote
2
down vote
The LaTeX savvy way to do it is
makebox[0pt][r]X
The analog for rlap
is
makebox[0pt][l]X
If you want to know the reason why llap
âÂÂfailsâÂÂ, you have to look how llap
is defined:
% latex.ltx, line 5162:
defllap#1hb@xt@z@hss#1
and hb@xt@z@
is the same as hbox to 0pt
. The primitive hbox
doesn't start horizontal mode, so if found between paragraphs it makes a line of its own.
The llap
command doesn't appear in the official LaTeX manual, so who wants to use it should know the details of TeX. Be careful when you copy code from the net.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
The LaTeX savvy way to do it is
makebox[0pt][r]X
The analog for rlap
is
makebox[0pt][l]X
If you want to know the reason why llap
âÂÂfailsâÂÂ, you have to look how llap
is defined:
% latex.ltx, line 5162:
defllap#1hb@xt@z@hss#1
and hb@xt@z@
is the same as hbox to 0pt
. The primitive hbox
doesn't start horizontal mode, so if found between paragraphs it makes a line of its own.
The llap
command doesn't appear in the official LaTeX manual, so who wants to use it should know the details of TeX. Be careful when you copy code from the net.
The LaTeX savvy way to do it is
makebox[0pt][r]X
The analog for rlap
is
makebox[0pt][l]X
If you want to know the reason why llap
âÂÂfailsâÂÂ, you have to look how llap
is defined:
% latex.ltx, line 5162:
defllap#1hb@xt@z@hss#1
and hb@xt@z@
is the same as hbox to 0pt
. The primitive hbox
doesn't start horizontal mode, so if found between paragraphs it makes a line of its own.
The llap
command doesn't appear in the official LaTeX manual, so who wants to use it should know the details of TeX. Be careful when you copy code from the net.
answered 24 mins ago
egreg
684k8418243069
684k8418243069
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452287%2fbeamer-llap-produces-new-line-if-at-the-beginning-of-the-line%23new-answer', 'question_page');
);
Post as a guest
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
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
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