Re: lyx cannot be opened in maverick os 10.9
08/07/2013 23:21, Richard Heck: Presumably it is possible to try to launch from the command line? Any info there? Or maybe look in the Console.app application (assuming it still exists). JMarc
Re: LyXHTML, design intent?
Dear Steve, thanks for reporting issues with LyX HTML export back. I think this feedback is important to get the best out of the effort of the coders and is valued by both. However, please make it *very* clear in your posts, whether you report about LyX's native HTML export or the external eLyXer program: On 2013-07-09, Steve Litt wrote: I'm making a postprocessor to make the output of LyX's LyXHTML xhtml export more compatible with ePub. ... [all the important questions] ... This one feature of eLyXer's xhtml conversion, ... I know that, from a users point, the difference in calling the export is just one line in the menu. However the inner working and the philosophy of native LyX export vs. eLyXer is sometimes orthogonal. While both authors monitor this list and respond to questions and requests, trying to fix a problem of the *other* tool (and then realizing that the description does not fit) has the potential to turn your valuable feedback into an irritant to (at least) one of them. Günter
Re: LyXHTML, design intent?
On 07/08/2013 09:52 PM, Steve Litt wrote: Hi all, I'm making a postprocessor to make the output of LyX's LyXHTML xhtml export more compatible with ePub. Before I code my postprocessor, I'd like to know the design intent of the LyXHTML exporter, so I don't accidentally throw away a good thing. First, I notice every container start tag is followed by an anchor with an id like magicparlabel-1140, like this: div class=standarda id='magicparlabel-1140' / 1) What was the reason you gave an a to every container? This is so things like links to references are guaranteed to work. 2) Why did you use an a instead of div class=standard id='magicparlabel-1140' At the time this was written, there were too many browsers still active that did not fully support links to id tags on other elements. Now that they do, this has been changed for 2.1.x. The id is on the main element. 3) Why did you use doublequotes in the class, but singlequotes in the a id? No idea. Just one of those things. For all I know, it is different in 2.1. I have some questions about your mapping in xhtml exports of sectional type environments to h1-h6. On the conversion of my book, Part and Chapter both map to h1, with Section mapping to h2, Subsection to h3, and so on. Did you do that so you wouldn't run past h6? If not, what was the reason? Part is not that commonly used. It seemed wrong to make chapters h2 by default. As we've discussed previously, this can be changed using layouts. Thank you, thank you, THANK YOU for, in your xhtml conversion, passing through every single environment and character style I used in my book, and making CSS styles for them. That's a class act, and the single most important thing in converting to ePub. In a way, the idea behind the XHTML output (again, this is not eLyXer) is (a) to respect what is in the layout files, so you don't have to write a lot of duplicate code and (b) to mimic what is on the screen, generally speaking. So if you define a character style, then, by default, we create CSS to mimic how it looks on screen. If you want to output something else, then that can easily be done in the layout file, as well. Richard
Re: LyXHTML, design intent?
On Mon, Jul 8, 2013 at 8:52 PM, Steve Litt sl...@troubleshooters.com wrote: [...] Let me do a broken disk impression... I've used XHTML + XSLT successfully to convert to other XML schemas. XHTML doesn't quite preserve enough metadata for me though, so I've also written a LyX - XML converter[0] that preserves as much metadata as possible (if I had written an XML - .lyx XSLT I could test that it round-trips, which it should, with only minute differences[1]). I know there's been some efforts recently to add native XML support to LyX, so soon you might not need to use either LyXHTML nor my lyx2xml. [0] https://github.com/nicowilliams/lyx2rfc/blob/master/src/lyx2xml (and associated *.py files in the same directory). [1] LyX allows you to mix styles in such a way that doesn't involve proper containership. lyx2xml works around this by closing and re-opening styles to restore proper containership. This is the only thing that wouldn't round-trip exactly, but you wouldn't notice this difference in the GUI. Nico --
Re: Is there a way to define character styles within the LyX file itself, rather than a layout file?
On Tue, Jul 9, 2013 at 6:35 PM, Steve Litt sl...@troubleshooters.com wrote: Hi all, Is there a way to define character styles within the LyX file itself, rather than a layout file? I want the doc I'm working on right now to be completely self-contained. Hi Steve, Check out Document Settings Local Layout Scott
Re: Is there a way to define character styles within the LyX file itself, rather than a layout file?
On 07/09/2013 06:42 PM, Scott Kostyshak wrote: On Tue, Jul 9, 2013 at 6:35 PM, Steve Litt sl...@troubleshooters.com wrote: Hi all, Is there a way to define character styles within the LyX file itself, rather than a layout file? I want the doc I'm working on right now to be completely self-contained. Hi Steve, Check out Document Settings Local Layout And please note that what you put here should be exactly the kind of thing you'd put into a layout file. I.e., it should begin with a format number. The Customization manual has a bunch of local layout, so see that for an example. Richard
How to put \newenvironment in a LyX document's local layout?
Hi all, In the attached minimal LyX file's local layout, See the commented out \newenvironment{\licenseheadL} {\itshape} {\par} As long as that is commented out, the file compiles. When I remove the comment, the compile fails with Undefined control sequence. on ...vironment{\licenseheadL} {\itshape} {\par}. I've checked over and over again, and I'm pretty sure my syntax on the \newenvironment is correct, and I've used it many times before in layout files. So my question is, within a local layout, are there any tricks you need to use to get \newenvironment to work? Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance junk2.lyx Description: application/lyx
Re: How to put \newenvironment in a LyX document's local layout? SOLVED
On Tue, 9 Jul 2013 22:03:30 -0400 Steve Litt sl...@troubleshooters.com wrote: Hi all, In the attached minimal LyX file's local layout, See the commented out \newenvironment{\licenseheadL} {\itshape} {\par} As long as that is commented out, the file compiles. When I remove the comment, the compile fails with Undefined control sequence. on ...vironment{\licenseheadL} {\itshape} {\par}. I've checked over and over again, and I'm pretty sure my syntax on the \newenvironment is correct, and I've used it many times before in layout files. So my question is, within a local layout, are there any tricks you need to use to get \newenvironment to work? Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance This was a case of defective user, rather than any kind of LyXism. See the backslash before licenseheadL? That doesn't belong there. Take away that backslash and things work. Oh, and by the way, to the best of my knowledge I'm supposed to put LaTeX stuff not in the Local Layout part of Document-Settings, but in the Latex_Preamble part. Thanks, and sorry for the trouble. SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Document on LyXHTML to ePubHTML filter
Hi all, In tandem with coding the filter to make an ePub-savvy HTML file and several other needed files from LyX's native LyXHTML XHTML converter, I've created a document describing what that filter should do, its purpose as a prototype, and the responsibilities of an author making a LyX file destined for ePub format. See it here: http://www.troubleshooters.com/linux/lyx/lyx2epub_design_document_v0_0_1.lyx For best results, use wget to download it. This document is in a state of flux and will change often in the next couple weeks. For the time being I've licensed it verbatim copies only, so that there aren't a million different versions of it out there. Once it's stable I'll put a more free-software like license on it. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: lyx cannot be opened in maverick os 10.9
08/07/2013 23:21, Richard Heck: Presumably it is possible to try to launch from the command line? Any info there? Or maybe look in the Console.app application (assuming it still exists). JMarc
Re: LyXHTML, design intent?
Dear Steve, thanks for reporting issues with LyX HTML export back. I think this feedback is important to get the best out of the effort of the coders and is valued by both. However, please make it *very* clear in your posts, whether you report about LyX's native HTML export or the external eLyXer program: On 2013-07-09, Steve Litt wrote: I'm making a postprocessor to make the output of LyX's LyXHTML xhtml export more compatible with ePub. ... [all the important questions] ... This one feature of eLyXer's xhtml conversion, ... I know that, from a users point, the difference in calling the export is just one line in the menu. However the inner working and the philosophy of native LyX export vs. eLyXer is sometimes orthogonal. While both authors monitor this list and respond to questions and requests, trying to fix a problem of the *other* tool (and then realizing that the description does not fit) has the potential to turn your valuable feedback into an irritant to (at least) one of them. Günter
Re: LyXHTML, design intent?
On 07/08/2013 09:52 PM, Steve Litt wrote: Hi all, I'm making a postprocessor to make the output of LyX's LyXHTML xhtml export more compatible with ePub. Before I code my postprocessor, I'd like to know the design intent of the LyXHTML exporter, so I don't accidentally throw away a good thing. First, I notice every container start tag is followed by an anchor with an id like magicparlabel-1140, like this: div class=standarda id='magicparlabel-1140' / 1) What was the reason you gave an a to every container? This is so things like links to references are guaranteed to work. 2) Why did you use an a instead of div class=standard id='magicparlabel-1140' At the time this was written, there were too many browsers still active that did not fully support links to id tags on other elements. Now that they do, this has been changed for 2.1.x. The id is on the main element. 3) Why did you use doublequotes in the class, but singlequotes in the a id? No idea. Just one of those things. For all I know, it is different in 2.1. I have some questions about your mapping in xhtml exports of sectional type environments to h1-h6. On the conversion of my book, Part and Chapter both map to h1, with Section mapping to h2, Subsection to h3, and so on. Did you do that so you wouldn't run past h6? If not, what was the reason? Part is not that commonly used. It seemed wrong to make chapters h2 by default. As we've discussed previously, this can be changed using layouts. Thank you, thank you, THANK YOU for, in your xhtml conversion, passing through every single environment and character style I used in my book, and making CSS styles for them. That's a class act, and the single most important thing in converting to ePub. In a way, the idea behind the XHTML output (again, this is not eLyXer) is (a) to respect what is in the layout files, so you don't have to write a lot of duplicate code and (b) to mimic what is on the screen, generally speaking. So if you define a character style, then, by default, we create CSS to mimic how it looks on screen. If you want to output something else, then that can easily be done in the layout file, as well. Richard
Re: LyXHTML, design intent?
On Mon, Jul 8, 2013 at 8:52 PM, Steve Litt sl...@troubleshooters.com wrote: [...] Let me do a broken disk impression... I've used XHTML + XSLT successfully to convert to other XML schemas. XHTML doesn't quite preserve enough metadata for me though, so I've also written a LyX - XML converter[0] that preserves as much metadata as possible (if I had written an XML - .lyx XSLT I could test that it round-trips, which it should, with only minute differences[1]). I know there's been some efforts recently to add native XML support to LyX, so soon you might not need to use either LyXHTML nor my lyx2xml. [0] https://github.com/nicowilliams/lyx2rfc/blob/master/src/lyx2xml (and associated *.py files in the same directory). [1] LyX allows you to mix styles in such a way that doesn't involve proper containership. lyx2xml works around this by closing and re-opening styles to restore proper containership. This is the only thing that wouldn't round-trip exactly, but you wouldn't notice this difference in the GUI. Nico --
Re: Is there a way to define character styles within the LyX file itself, rather than a layout file?
On Tue, Jul 9, 2013 at 6:35 PM, Steve Litt sl...@troubleshooters.com wrote: Hi all, Is there a way to define character styles within the LyX file itself, rather than a layout file? I want the doc I'm working on right now to be completely self-contained. Hi Steve, Check out Document Settings Local Layout Scott
Re: Is there a way to define character styles within the LyX file itself, rather than a layout file?
On 07/09/2013 06:42 PM, Scott Kostyshak wrote: On Tue, Jul 9, 2013 at 6:35 PM, Steve Litt sl...@troubleshooters.com wrote: Hi all, Is there a way to define character styles within the LyX file itself, rather than a layout file? I want the doc I'm working on right now to be completely self-contained. Hi Steve, Check out Document Settings Local Layout And please note that what you put here should be exactly the kind of thing you'd put into a layout file. I.e., it should begin with a format number. The Customization manual has a bunch of local layout, so see that for an example. Richard
How to put \newenvironment in a LyX document's local layout?
Hi all, In the attached minimal LyX file's local layout, See the commented out \newenvironment{\licenseheadL} {\itshape} {\par} As long as that is commented out, the file compiles. When I remove the comment, the compile fails with Undefined control sequence. on ...vironment{\licenseheadL} {\itshape} {\par}. I've checked over and over again, and I'm pretty sure my syntax on the \newenvironment is correct, and I've used it many times before in layout files. So my question is, within a local layout, are there any tricks you need to use to get \newenvironment to work? Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance junk2.lyx Description: application/lyx
Re: How to put \newenvironment in a LyX document's local layout? SOLVED
On Tue, 9 Jul 2013 22:03:30 -0400 Steve Litt sl...@troubleshooters.com wrote: Hi all, In the attached minimal LyX file's local layout, See the commented out \newenvironment{\licenseheadL} {\itshape} {\par} As long as that is commented out, the file compiles. When I remove the comment, the compile fails with Undefined control sequence. on ...vironment{\licenseheadL} {\itshape} {\par}. I've checked over and over again, and I'm pretty sure my syntax on the \newenvironment is correct, and I've used it many times before in layout files. So my question is, within a local layout, are there any tricks you need to use to get \newenvironment to work? Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance This was a case of defective user, rather than any kind of LyXism. See the backslash before licenseheadL? That doesn't belong there. Take away that backslash and things work. Oh, and by the way, to the best of my knowledge I'm supposed to put LaTeX stuff not in the Local Layout part of Document-Settings, but in the Latex_Preamble part. Thanks, and sorry for the trouble. SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Document on LyXHTML to ePubHTML filter
Hi all, In tandem with coding the filter to make an ePub-savvy HTML file and several other needed files from LyX's native LyXHTML XHTML converter, I've created a document describing what that filter should do, its purpose as a prototype, and the responsibilities of an author making a LyX file destined for ePub format. See it here: http://www.troubleshooters.com/linux/lyx/lyx2epub_design_document_v0_0_1.lyx For best results, use wget to download it. This document is in a state of flux and will change often in the next couple weeks. For the time being I've licensed it verbatim copies only, so that there aren't a million different versions of it out there. Once it's stable I'll put a more free-software like license on it. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: lyx cannot be opened in maverick os 10.9
08/07/2013 23:21, Richard Heck: Presumably it is possible to try to launch from the command line? Any info there? Or maybe look in the Console.app application (assuming it still exists). JMarc
Re: LyXHTML, design intent?
Dear Steve, thanks for reporting issues with LyX HTML export back. I think this feedback is important to get the best out of the effort of the coders and is valued by both. However, please make it *very* clear in your posts, whether you report about LyX's "native HTML export" or the external "eLyXer" program: On 2013-07-09, Steve Litt wrote: > I'm making a postprocessor to make the output of LyX's LyXHTML > xhtml export more compatible with ePub. ... [all the important questions] ... > This one feature of eLyXer's xhtml conversion, ... I know that, from a users point, the difference in calling the export is just one line in the menu. However the inner working and the philosophy of native LyX export vs. eLyXer is sometimes orthogonal. While both authors monitor this list and respond to questions and requests, trying to fix a problem of the *other* tool (and then realizing that the description does not fit) has the potential to turn your valuable feedback into an irritant to (at least) one of them. Günter
Re: LyXHTML, design intent?
On 07/08/2013 09:52 PM, Steve Litt wrote: Hi all, I'm making a postprocessor to make the output of LyX's LyXHTML xhtml export more compatible with ePub. Before I code my postprocessor, I'd like to know the design intent of the LyXHTML exporter, so I don't accidentally throw away a good thing. First, I notice every container start tag is followed by an anchor with an id like "magicparlabel-1140", like this: 1) What was the reason you gave an to every container? This is so things like links to references are guaranteed to work. 2) Why did you use an instead of At the time this was written, there were too many browsers still active that did not fully support links to id tags on other elements. Now that they do, this has been changed for 2.1.x. The id is on the main element. 3) Why did you use doublequotes in the class, but singlequotes in the id? No idea. Just one of those things. For all I know, it is different in 2.1. I have some questions about your mapping in xhtml exports of sectional type environments to -. On the conversion of my book, Part and Chapter both map to , with Section mapping to , Subsection to , and so on. Did you do that so you wouldn't run past ? If not, what was the reason? Part is not that commonly used. It seemed wrong to make chapters h2 by default. As we've discussed previously, this can be changed using layouts. Thank you, thank you, THANK YOU for, in your xhtml conversion, passing through every single environment and character style I used in my book, and making CSS styles for them. That's a class act, and the single most important thing in converting to ePub. In a way, the idea behind the XHTML output (again, this is not eLyXer) is (a) to respect what is in the layout files, so you don't have to write a lot of duplicate code and (b) to mimic what is on the screen, generally speaking. So if you define a character style, then, by default, we create CSS to mimic how it looks on screen. If you want to output something else, then that can easily be done in the layout file, as well. Richard
Re: LyXHTML, design intent?
On Mon, Jul 8, 2013 at 8:52 PM, Steve Littwrote: > [...] Let me do a broken disk impression... I've used XHTML + XSLT successfully to convert to other XML schemas. XHTML doesn't quite preserve enough metadata for me though, so I've also written a LyX -> XML converter[0] that preserves as much metadata as possible (if I had written an XML -> .lyx XSLT I could test that it round-trips, which it should, with only minute differences[1]). I know there's been some efforts recently to add native XML support to LyX, so soon you might not need to use either LyXHTML nor my lyx2xml. [0] https://github.com/nicowilliams/lyx2rfc/blob/master/src/lyx2xml (and associated *.py files in the same directory). [1] LyX allows you to mix styles in such a way that doesn't involve proper containership. lyx2xml works around this by closing and re-opening styles to restore proper containership. This is the only thing that wouldn't round-trip exactly, but you wouldn't notice this difference in the GUI. Nico --
Re: Is there a way to define character styles within the LyX file itself, rather than a layout file?
On Tue, Jul 9, 2013 at 6:35 PM, Steve Littwrote: > Hi all, > > Is there a way to define character styles within the LyX file itself, > rather than a layout file? I want the doc I'm working on right now to > be completely self-contained. Hi Steve, Check out Document > Settings > Local Layout Scott
Re: Is there a way to define character styles within the LyX file itself, rather than a layout file?
On 07/09/2013 06:42 PM, Scott Kostyshak wrote: On Tue, Jul 9, 2013 at 6:35 PM, Steve Littwrote: Hi all, Is there a way to define character styles within the LyX file itself, rather than a layout file? I want the doc I'm working on right now to be completely self-contained. Hi Steve, Check out Document > Settings > Local Layout And please note that what you put here should be exactly the kind of thing you'd put into a layout file. I.e., it should begin with a format number. The Customization manual has a bunch of "local layout", so see that for an example. Richard
How to put \newenvironment in a LyX document's local layout?
Hi all, In the attached minimal LyX file's local layout, See the commented out \newenvironment{\licenseheadL} {\itshape} {\par} As long as that is commented out, the file compiles. When I remove the comment, the compile fails with "Undefined control sequence." on "...vironment{\licenseheadL} {\itshape} {\par}". I've checked over and over again, and I'm pretty sure my syntax on the \newenvironment is correct, and I've used it many times before in layout files. So my question is, within a local layout, are there any tricks you need to use to get \newenvironment to work? Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance junk2.lyx Description: application/lyx
Re: How to put \newenvironment in a LyX document's local layout?
On Tue, 9 Jul 2013 22:03:30 -0400 Steve Littwrote: > Hi all, > > In the attached minimal LyX file's local layout, See the commented out > > \newenvironment{\licenseheadL} {\itshape} {\par} > > As long as that is commented out, the file compiles. When I remove the > comment, the compile fails with "Undefined control sequence." on > "...vironment{\licenseheadL} {\itshape} {\par}". I've checked over and > over again, and I'm pretty sure my syntax on the \newenvironment is > correct, and I've used it many times before in layout files. So my > question is, within a local layout, are there any tricks you need to > use to get \newenvironment to work? > > Thanks, > > SteveT > > Steve Litt* http://www.troubleshooters.com/ > Troubleshooting Training * Human Performance This was a case of defective user, rather than any kind of LyXism. See the backslash before "licenseheadL"? That doesn't belong there. Take away that backslash and things work. Oh, and by the way, to the best of my knowledge I'm supposed to put LaTeX stuff not in the Local Layout part of Document->Settings, but in the Latex_Preamble part. Thanks, and sorry for the trouble. SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Document on LyXHTML to ePubHTML filter
Hi all, In tandem with coding the filter to make an ePub-savvy HTML file and several other needed files from LyX's native LyXHTML XHTML converter, I've created a document describing what that filter should do, its purpose as a prototype, and the responsibilities of an author making a LyX file destined for ePub format. See it here: http://www.troubleshooters.com/linux/lyx/lyx2epub_design_document_v0_0_1.lyx For best results, use wget to download it. This document is in a state of flux and will change often in the next couple weeks. For the time being I've licensed it verbatim copies only, so that there aren't a million different versions of it out there. Once it's stable I'll put a more free-software like license on it. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance