El sáb, 15-12-2012 a las 11:58 -0300, martin escribió:

> Was reading
> http://wiki.lyx.org/Tips/CommandSequences
> and 
> http://wiki.lyx.org/FAQ/FiguresSideBySide
> 
> Want to produce a command sequence for figures side by side.
> 
> Martin
> 
> 

Ok,

So far with the help from everyone I got to

this

here in human format


        float-insert figure
        escape
        char-delete-backward
        paragraph-params-apply \align center
        box-insert frameless
        word-backward
        inset-modify box Box frameless position "t" hor_pos "c"
        has_inner_box 1 inner_pos "t" use_parbox 0 use_makebox 0 width
        "45line%" special "none" height "1in" height_special
        "totalheight"
        inset-insert space \hfill{}
        box-insert frameless
        word-backward
        inset-modify box Box frameless position "t" hor_pos "c"
        has_inner_box 1 inner_pos "t" use_parbox 0 use_makebox 0 width
        "45line%" special "none" height "1in" height_special
        "totalheight"
        char-backward
        char-backward
        

sed -e :a -e N -e 's/\n/ ; /' -e ta

command-sequence float-insert figure ; escape ; char-delete-backward ;
paragraph-params-apply \align center ; box-insert frameless ;
word-backward ; inset-modify box Box frameless position "t" hor_pos "c"
has_inner_box 1 inner_pos "t" use_parbox 0 use_makebox 0 width "45line%"
special "none" height "1in" height_special "totalheight" ;
word-forward ; inset-insert space \hfill{} ; box-insert frameless ;
word-backward ; inset-modify box Box frameless position "t" hor_pos "c"
has_inner_box 1 inner_pos "t" use_parbox 0 use_makebox 0 width "45line%"
special "none" height "1in" height_special "totalheight" ;
char-backward ; char-backward

Works like a charm !!!

Will upload the monster to the wiki if no one beats me to it !

Nice Christmas Eve

Martin


Reply via email to