M. Heck, Alright, it sort of works. I tried the following command:
command-sequence box-insert Boxed; char-backward; inset-modify box Box *position "t" *hor_pos "c" has_inner_box 0 inner_pos "t" use_parbox 0 use_makebox 0 width "100col%" special "none" height "1in" height_special "totalheight" thickness "0pt" separation "3pt" shadowsize "4pt" framecolor "black" backgroundcolor "none"; But I get the error: D:\LyXGit\LyX22\src\Lexer.cpp (934): Missing 'position'-tag in InsetBoxParams::read. Got t instead. Line: 0 Clearly, I have specified the parameter for position, but it is being ignored, which suggests that my syntax is wrong. I double checked the documentation, but everything looks good. In addition to the error, the box that is inserted *does have its properties modified, *but it *looses its type in the inset settings window. *That is, when you left click on the inset, and open up the settings, you'll see the "decoration" scroll box is empty. My questions: What is wrong with my syntax? Why am I getting an error? Why is the inset-modify command making the "decoration" scrollbox empty? How do I check the "allow page breaks" checkbox in the inset-settings pane using inset-modify (or some other command?) Cheers, On Tue, Jun 21, 2016 at 10:43 AM, Richard Heck <[email protected]> wrote: > On 06/20/2016 12:13 PM, Jonathan Horton wrote: > > M. Heck, > > Yes, I used the minibuffer (Alt+X), and the LFunc documentation in the > help menu to make the dysfunctional command that I sent you previously. > > If you run the command in LyX, the message pane (View->Message Pane) shows > > *Run this command:* > > command-sequence box-insert Boxed; > inset-modify box Box > position "t" > hor_pos "c" > has_inner_box *0* > inner_pos "t" > use_parbox 0 > use_makebox 0 > width "100col%" > special "none" > height "1in" > height_special "totalheight" > thickness *"0pt"* > separation "3pt" > shadowsize "4pt" > framecolor "black" > backgroundcolor "none"; > > *Output* > > (command-sequence box-insert Boxed; > > inset-modify box Box > > position "t" > > hor_pos "c" > > has_inner_box 0 > > inner_pos "t" > > use_parbox 0 > > use_makebox 0 > > width "100col%" > > special "none" > > height "1in" > > height_special "totalheight" > > thickness *"0pt"* > > separation "3pt" > > shadowsize "4pt" > > framecolor "black" > > backgroundcolor "none";) > > > > and a minipage is inserted. However, opening the inset settings (Left > click on the box, and go to settings) reveals that the line thickness is > still 0.4pt, and the Innerpage is still "Minipage", rather than "None". > > > Try adding "char-backward" before the box settings. I think the cursor > needs to be in front of the inset, not inside it. You can add > "char-forward" afterwards, if you want the cursor then to be inside the > inset. > > Richard > > PS Please keep the discussion on list in case others have similar > questions, or in case others have contributions to make. > > -- -* Jonathan Horton*
