Re: Problems with pipe
On Sun, May 15, 2016 at 09:33:18AM +1000, Pete Crite wrote: > Ugh, an update to Arch's LyX package was just pushed that fixes this > bug. Apologies for the noise. However, I'm happy to troubleshoot the > mailing list problems if necessary. Glad it's fixed! Thanks for keeping us updated. Scott > > Cheers. > > On Sun, May 15, 2016 at 07:42:22AM +1000, Pete Crite wrote: > > Hi all, > > > > I've been trying to subscribe to the mailing list. I've sent four emails > > in total to lyx-users-subscr...@lists.lyx.org over the last four days, > > but only received one "confirmation" reply. I've checked my spam box, > > but nothing is there. > > > > I replied to the single "confirmation" email five times in total as > > well, but received no reply. I also tried emailing > > lyx-users-h...@lists.lyx.org , but got no reply. Hopefully this email > > gets through to the list, but please cc: me directly. > > > > == > > > > LyX's pipes recently stopped working. I used to be able to open a file > > in an existing LyX instance with > > > > echo "LYXCMD:lyx-script:file-open:filename.lyx" > ~/.lyx/lyxpipe.in > > > > However, this no longer works. The command stalls, and the file is not > > opened. I confirmed the absence of pipes when LyX was closed, and the > > presence when it restarted. > > > > JabRef is also failing to push references to LyX, although it doesn't > > report any errors. > > > > I attempted starting LyX with `lyx -dbg 8192 filename.lyx`, with the > > following output. > > > > $ lyx -dbg 8192 filename.lyx > > 16:41:06 Setting debug level to 8192 > > Debugging `undo' (Undo/Redo mechanism) > > QSocketNotifier: Invalid socket 0 and type 'Read', disabling... > > Undo.cpp (516): +++Creating new group 1 > > Undo.cpp (531): ---End of group 1 > > Undo.cpp (516): +++Creating new group 2 > > Undo.cpp (531): ---End of group 2 > > Undo.cpp (516): +++Creating new group 3 > > Undo.cpp (531): ---End of group 3 > > Undo.cpp (516): +++Creating new group 4 > > Undo.cpp (531): ---End of group 4 > > Undo.cpp (516): +++Creating new group 5 > > LyXComm: Could not close pipe /home/pete/.lyx/lyxpipe.in > > Bad file descriptor > > > > The final two lines appear when I quit, although the file *is* deleted. > > How can I get LyX's pipes working again? > > > > Arch Linux: up-to-date. > > LyX 2.1.4 from official Arch packages. > > > > Cheers, > > Pete. signature.asc Description: PGP signature
Re: Help with creation of module
On 05/14/2016 05:46 PM, racoon wrote: > On 14.05.2016 08:29, racoon wrote: >> On 14.05.2016 06:21, Richard Heck wrote: >>> On 05/13/2016 03:38 PM, racoon wrote: Hi! The LyX manual on customization has not much explanation. I want to create a simple module that inserts a label with "footnotemark" and the command \footnotemark in the source. The LyxType sounds like the right thing to use. But unfortunately, I have no idea where I can find this kind of inset. The documentation states "Among other things, [LyXType] determines on which menu this inset will appear." (46, LyX 2.2) But it does not state where the inset will appear. >>> >>> This does sound like a job for a Flex inset. Can you explain in detail >>> what you want to accomplish, in terms of LaTeX? Is there preamble code? >>> What do you want to appear where this new inset would appear? >>> >>> I'd suggest you look at endnotes.module for an example you should be >>> able to adapt. >>> >>> As for LyXType, the only genuine options here are CharStyle and Custom. >>> The former is intended, as it says, for character styles, such as noun >>> and small caps. They appear under Edit> TextStyle. The latter is >>> intended for custom insets such as endnote. They appear under Insert> >>> Custom Insets. >> >> Ah, I see. Then charstyle is seems not to be the right thing. >> >> I want to implement http://www.lyx.org/trac/ticket/9998 via a module. >> >> I have the current code inserted below. Problems at the moment: >> >> For the Footnotemark: >> >> - It should contain no arguments. >> - It should also be possible to insert it in math mode. >> - Can it count up the standard footnote counter that is shown on the >> footnote in the editor? >> >> >> >> #\DeclareLyXModule{Footnote} >> #DescriptionBegin >> #Adds the footnotemark and footnotetext command >> #DescriptionEnd >> >> Format 59 >> >> InsetLayout Flex:Footnotetext >> LyXType custom >> LatexName footnotetext >> LatexType command >> Decoration classic >> Font >> Size Small >> EndFont >> MultiPartrue >> LabelString fntext >> End >> >> InsetLayout Flex:Footnotemark >> LyXTypecustom >> LatexNamefootnotemark >> LatexTypecommand >> Decorationclassic >> Font >> Size Small >> EndFont >> LabelString fnmark >> End >> >> > > Okay, maybe I found my answer: it is not possible for now. > > http://lyx-devel.lyx.narkive.com/i8i3itVw/lyx-construct-for-latex-commands-having-no-arguments > Yes, the part about "no arguments" means we're dealing with a command-type inset, not a collapsable inset, and there are no custom versions of the former. rh
Re: Problems with pipe
Ugh, an update to Arch's LyX package was just pushed that fixes this bug. Apologies for the noise. However, I'm happy to troubleshoot the mailing list problems if necessary. Cheers. On Sun, May 15, 2016 at 07:42:22AM +1000, Pete Crite wrote: > Hi all, > > I've been trying to subscribe to the mailing list. I've sent four emails > in total to lyx-users-subscr...@lists.lyx.org over the last four days, > but only received one "confirmation" reply. I've checked my spam box, > but nothing is there. > > I replied to the single "confirmation" email five times in total as > well, but received no reply. I also tried emailing > lyx-users-h...@lists.lyx.org , but got no reply. Hopefully this email > gets through to the list, but please cc: me directly. > > == > > LyX's pipes recently stopped working. I used to be able to open a file > in an existing LyX instance with > > echo "LYXCMD:lyx-script:file-open:filename.lyx" > ~/.lyx/lyxpipe.in > > However, this no longer works. The command stalls, and the file is not > opened. I confirmed the absence of pipes when LyX was closed, and the > presence when it restarted. > > JabRef is also failing to push references to LyX, although it doesn't > report any errors. > > I attempted starting LyX with `lyx -dbg 8192 filename.lyx`, with the > following output. > > $ lyx -dbg 8192 filename.lyx > 16:41:06 Setting debug level to 8192 > Debugging `undo' (Undo/Redo mechanism) > QSocketNotifier: Invalid socket 0 and type 'Read', disabling... > Undo.cpp (516): +++Creating new group 1 > Undo.cpp (531): ---End of group 1 > Undo.cpp (516): +++Creating new group 2 > Undo.cpp (531): ---End of group 2 > Undo.cpp (516): +++Creating new group 3 > Undo.cpp (531): ---End of group 3 > Undo.cpp (516): +++Creating new group 4 > Undo.cpp (531): ---End of group 4 > Undo.cpp (516): +++Creating new group 5 > LyXComm: Could not close pipe /home/pete/.lyx/lyxpipe.in > Bad file descriptor > > The final two lines appear when I quit, although the file *is* deleted. > How can I get LyX's pipes working again? > > Arch Linux: up-to-date. > LyX 2.1.4 from official Arch packages. > > Cheers, > Pete.
Re: Problems with pipe
On Sun, May 15, 2016 at 07:42:22AM +1000, Pete Crite wrote: > Hi all, > > I've been trying to subscribe to the mailing list. I've sent four emails > in total to lyx-users-subscr...@lists.lyx.org over the last four days, > but only received one "confirmation" reply. I've checked my spam box, > but nothing is there. Sorry for the trouble. Looks like it's working for you now. > I replied to the single "confirmation" email five times in total as > well, but received no reply. I also tried emailing > lyx-users-h...@lists.lyx.org , but got no reply. Hopefully this email > gets through to the list, but please cc: me directly. > > == > > LyX's pipes recently stopped working. I used to be able to open a file > in an existing LyX instance with > > echo "LYXCMD:lyx-script:file-open:filename.lyx" > ~/.lyx/lyxpipe.in > > However, this no longer works. The command stalls, and the file is not > opened. I confirmed the absence of pipes when LyX was closed, and the > presence when it restarted. Do you have a guess for what changed? Did you update to 2.1.4 or are you sure that it used to work with LyX 2.1.4? Scott > JabRef is also failing to push references to LyX, although it doesn't > report any errors. > > I attempted starting LyX with `lyx -dbg 8192 filename.lyx`, with the > following output. > > $ lyx -dbg 8192 filename.lyx > 16:41:06 Setting debug level to 8192 > Debugging `undo' (Undo/Redo mechanism) > QSocketNotifier: Invalid socket 0 and type 'Read', disabling... > Undo.cpp (516): +++Creating new group 1 > Undo.cpp (531): ---End of group 1 > Undo.cpp (516): +++Creating new group 2 > Undo.cpp (531): ---End of group 2 > Undo.cpp (516): +++Creating new group 3 > Undo.cpp (531): ---End of group 3 > Undo.cpp (516): +++Creating new group 4 > Undo.cpp (531): ---End of group 4 > Undo.cpp (516): +++Creating new group 5 > LyXComm: Could not close pipe /home/pete/.lyx/lyxpipe.in > Bad file descriptor > > The final two lines appear when I quit, although the file *is* deleted. > How can I get LyX's pipes working again? > > Arch Linux: up-to-date. > LyX 2.1.4 from official Arch packages. > > Cheers, > Pete. signature.asc Description: PGP signature
Re: Help with creation of module
On 14.05.2016 08:29, racoon wrote: On 14.05.2016 06:21, Richard Heck wrote: On 05/13/2016 03:38 PM, racoon wrote: Hi! The LyX manual on customization has not much explanation. I want to create a simple module that inserts a label with "footnotemark" and the command \footnotemark in the source. The LyxType sounds like the right thing to use. But unfortunately, I have no idea where I can find this kind of inset. The documentation states "Among other things, [LyXType] determines on which menu this inset will appear." (46, LyX 2.2) But it does not state where the inset will appear. This does sound like a job for a Flex inset. Can you explain in detail what you want to accomplish, in terms of LaTeX? Is there preamble code? What do you want to appear where this new inset would appear? I'd suggest you look at endnotes.module for an example you should be able to adapt. As for LyXType, the only genuine options here are CharStyle and Custom. The former is intended, as it says, for character styles, such as noun and small caps. They appear under Edit> TextStyle. The latter is intended for custom insets such as endnote. They appear under Insert> Custom Insets. Ah, I see. Then charstyle is seems not to be the right thing. I want to implement http://www.lyx.org/trac/ticket/9998 via a module. I have the current code inserted below. Problems at the moment: For the Footnotemark: - It should contain no arguments. - It should also be possible to insert it in math mode. - Can it count up the standard footnote counter that is shown on the footnote in the editor? #\DeclareLyXModule{Footnote} #DescriptionBegin #Adds the footnotemark and footnotetext command #DescriptionEnd Format 59 InsetLayout Flex:Footnotetext LyXType custom LatexName footnotetext LatexType command Decoration classic Font Size Small EndFont MultiPartrue LabelString fntext End InsetLayout Flex:Footnotemark LyXTypecustom LatexNamefootnotemark LatexTypecommand Decorationclassic Font Size Small EndFont LabelString fnmark End Okay, maybe I found my answer: it is not possible for now. http://lyx-devel.lyx.narkive.com/i8i3itVw/lyx-construct-for-latex-commands-having-no-arguments
Problems with pipe
Hi all, I've been trying to subscribe to the mailing list. I've sent four emails in total to lyx-users-subscr...@lists.lyx.org over the last four days, but only received one "confirmation" reply. I've checked my spam box, but nothing is there. I replied to the single "confirmation" email five times in total as well, but received no reply. I also tried emailing lyx-users-h...@lists.lyx.org , but got no reply. Hopefully this email gets through to the list, but please cc: me directly. == LyX's pipes recently stopped working. I used to be able to open a file in an existing LyX instance with echo "LYXCMD:lyx-script:file-open:filename.lyx" > ~/.lyx/lyxpipe.in However, this no longer works. The command stalls, and the file is not opened. I confirmed the absence of pipes when LyX was closed, and the presence when it restarted. JabRef is also failing to push references to LyX, although it doesn't report any errors. I attempted starting LyX with `lyx -dbg 8192 filename.lyx`, with the following output. $ lyx -dbg 8192 filename.lyx 16:41:06 Setting debug level to 8192 Debugging `undo' (Undo/Redo mechanism) QSocketNotifier: Invalid socket 0 and type 'Read', disabling... Undo.cpp (516): +++Creating new group 1 Undo.cpp (531): ---End of group 1 Undo.cpp (516): +++Creating new group 2 Undo.cpp (531): ---End of group 2 Undo.cpp (516): +++Creating new group 3 Undo.cpp (531): ---End of group 3 Undo.cpp (516): +++Creating new group 4 Undo.cpp (531): ---End of group 4 Undo.cpp (516): +++Creating new group 5 LyXComm: Could not close pipe /home/pete/.lyx/lyxpipe.in Bad file descriptor The final two lines appear when I quit, although the file *is* deleted. How can I get LyX's pipes working again? Arch Linux: up-to-date. LyX 2.1.4 from official Arch packages. Cheers, Pete.
Re: Help with creation of module
On 14.05.2016 06:21, Richard Heck wrote: On 05/13/2016 03:38 PM, racoon wrote: Hi! The LyX manual on customization has not much explanation. I want to create a simple module that inserts a label with "footnotemark" and the command \footnotemark in the source. The LyxType sounds like the right thing to use. But unfortunately, I have no idea where I can find this kind of inset. The documentation states "Among other things, [LyXType] determines on which menu this inset will appear." (46, LyX 2.2) But it does not state where the inset will appear. This does sound like a job for a Flex inset. Can you explain in detail what you want to accomplish, in terms of LaTeX? Is there preamble code? What do you want to appear where this new inset would appear? I'd suggest you look at endnotes.module for an example you should be able to adapt. As for LyXType, the only genuine options here are CharStyle and Custom. The former is intended, as it says, for character styles, such as noun and small caps. They appear under Edit> TextStyle. The latter is intended for custom insets such as endnote. They appear under Insert> Custom Insets. Ah, I see. Then charstyle is seems not to be the right thing. I want to implement http://www.lyx.org/trac/ticket/9998 via a module. I have the current code inserted below. Problems at the moment: For the Footnotemark: - It should contain no arguments. - It should also be possible to insert it in math mode. - Can it count up the standard footnote counter that is shown on the footnote in the editor? #\DeclareLyXModule{Footnote} #DescriptionBegin #Adds the footnotemark and footnotetext command #DescriptionEnd Format 59 InsetLayout Flex:Footnotetext LyXType custom LatexName footnotetext LatexType command Decorationclassic Font Size Small EndFont MultiPar true LabelString fntext End InsetLayout Flex:Footnotemark LyXType custom LatexName footnotemark LatexType command Decorationclassic Font Size Small EndFont LabelString fnmark End