#StackBounty: #beamerarticle With Beamer the article and presentation options create a spurious par

Bounty: 100

Using the Beamer article and presentation options I coded the following:

Quadrant presentation{Romanbar{1}xspace}article{Ixspace} (lagging) 
and presentation{Romanbar{4}}article{Ihspace{-1pt}V}  (leading)

And with either option this incorrectly produces:

Quadrant
I
(lagging) and 
IV
(leading)

because I need everything in one line.

I also tried coding the following commands, but this also fails:

newcommandRoma{presentation{Romanbar{1}xspace}article{Ixspace}}
newcommandRomb{presentation{Romanbar{2}}article{Ihspace{-1pt}I}}
newcommandRomc{presentation{Romanbar{3}}article{Ihspace{-1pt}Ihspace{-1pt}I}}
newcommandRomd{presentation{Romanbar{4}}article{Ihspace{-1pt}V}}

Is there a workaround?

MWE:

documentclass[10pt]{article}
usepackage{beamerarticle}
setjobnamebeamerversion{main.beamer}
usepackage{xspace}
usepackage{romanbar}
usepackage{parskip}

newcommandRoma{presentation{Romanbar{1}xspace}article{Ixspace}}
newcommandRomb{presentation{Romanbar{2}}article{Ihspace{-1pt}I}}
newcommandRomc{presentation{Romanbar{3}}article{Ihspace{-1pt}Ihspace{-1pt}I}}
newcommandRomd{presentation{Romanbar{4}}article{Ihspace{-1pt}V}}

begin{document}
Quadrant presentation{Romanbar{1}xspace}article{Ixspace} (lagging) 
and presentation{Romanbar{4}}article{Ihspace{-1pt}V}  (leading)

vs

Quadrant {Ixspace} (lagging) 
and {Ihspace{-1pt}V}  (leading)

end{document}

On overleaf gives:

enter image description here

The Beamer MWE:

documentclass[9pt, %handouts,
ignorenonframetext]{beamer}
usepackage{pgfpages}
pgfpagesuselayout{2 on 1}[landscape,a4paper,border shrink=5mm]pgfpageslogicalpageoptions{1}{border code=pgfusepath{stroke}}pgfpageslogicalpageoptions{2}{border code=pgfusepath{stroke}}

setjobnamebeamerversion{main.beamer}
usepackage{xspace}
usepackage{romanbar}
usepackage{parskip}

newcommandRoma{presentation{Romanbar{1}xspace}article{Ixspace}}
newcommandRomb{presentation{Romanbar{2}}article{Ihspace{-1pt}I}}
newcommandRomc{presentation{Romanbar{3}}article{Ihspace{-1pt}Ihspace{-1pt}I}}
newcommandRomd{presentation{Romanbar{4}}article{Ihspace{-1pt}V}}

begin{document}
begin{frame}{Frame Title}
    

Quadrant presentation{Romanbar{1}xspace}article{Ixspace} (lagging) 
and presentation{Romanbar{4}}article{Ihspace{-1pt}V}  (leading)

vs

Quadrant Romanbar{1} (lagging) 
and Romanbar{4}  (leading)

end{frame}
end{document}

gives:

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.