Inserting blackboard bold 1 in LyX
To whom this may concern, I want to insert a blackboard bold 1 in lyx (For the identity matrix) (Unicode: 𝟙), but I can't seem to find anyway to do it. I tried changing the encoding to the various unicode types in the document settings (Document->Settings->Language-Encoding-Other), but all of the encoding types produce errors. In LaTeX, typically dsfont is used, but \(\mathds{1}\) produces no result (within lyx). I could import the package in the preamble (Document>Settings>Preamble) via \usepackage{dsfont} (untested), but I would like to avoid the Evil Red Text. Your guidance on the matter is greatly appreciated, Cheers, -- -* Jonathan Horton*
Re: Making a Shortcut To Paste, and Save an Image in a Figure-float in LyX
To whom this may concern, This email is to confirm the reception of my previous email. I am still hoping for an answer. Cheers, On Thu, Jun 23, 2016 at 10:23 AM, Jonathan Horton wrote: > To whom this may concern, > > I am running LyX 2.2.0 on Windows 10. > > I want to create a shortcut in LyX that pastes, saves, and formats an > image in LyX. I have a created a command-sequence that can do the > "formatting" part, but I can't figure out how to paste *and* save the > image. If I use the "paste" command, it asks me to save the image (choose a > name). I want to use the default name, that is, "paste%the number of images > in the save directory with the name paste%". > > Here is the command sequence that does the formatting I want: > > command-sequence float-insert figure; char-backward; char-backward; > char-backward; inset-modify figure placement H wide false sideways false; > char-forward; down; paragraph-params-apply \noindent \align center; > inset-apply graphics scale 50 lyxscale 50; char-backward;char-backward; > char-backward > > Cheers, > -- > -* Jonathan Horton* > -- -* Jonathan Horton*
Making a Shortcut To Paste, and Save an Image in a Figure-float in LyX
To whom this may concern, I am running LyX 2.2.0 on Windows 10. I want to create a shortcut in LyX that pastes, saves, and formats an image in LyX. I have a created a command-sequence that can do the "formatting" part, but I can't figure out how to paste *and* save the image. If I use the "paste" command, it asks me to save the image (choose a name). I want to use the default name, that is, "paste%the number of images in the save directory with the name paste%". Here is the command sequence that does the formatting I want: command-sequence float-insert figure; char-backward; char-backward; char-backward; inset-modify figure placement H wide false sideways false; char-forward; down; paragraph-params-apply \noindent \align center; inset-apply graphics scale 50 lyxscale 50; char-backward;char-backward; char-backward Cheers, -- -* Jonathan Horton*
Re: LyX Function - inset-modify
M. Heck, I've got it working! Thanks for your help! For the record, bellow is the command that I used. As shown bellow, in order to *check *the* allow page breaks box, *you have to change the type to "Framed", and not "Boxed". command-sequence box-insert Boxed; char-backward; inset-modify box Box *Framed* 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"; char-forward; Cheers, On Wed, Jun 22, 2016 at 4:03 PM, Richard Heck wrote: > On 06/22/2016 02:59 PM, Jonathan Horton wrote: > > 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 > > > You're missing an argument, after "Box", for the type of Box. In this > case, I think it should be "Boxed". So you want: > > command-sequence box-insert Boxed; char-backward; inset-modify box Box > Boxed 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"; > > Richard > > PS I never use boxes, so I'm pretty clueless about how they work. > > -- -* Jonathan Horton*
Re: LyX Function - inset-modify
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 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*
LyX Function - inset-modify
To whom this may concern, I want to make a shortcut in LyX 2.2.0 that inserts a *simple framed* box with *0pt line thickness*, which allows for *pagebreaks.* I tried the command-sequence bellow, but the command sequence does nothing. command-sequence box-insert Boxed; inset-modify box Box position "t" hor_pos "c" has_inner_box 1 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"; Cheers, -- -* Jonathan*