Re: Pages for Tables
On Tue, Dec 6, 2011 at 8:55 AM, Rilke Rainer Michael ri...@wiso.uni-koeln.de wrote: Hello Lyx-User, I am writing on a research report with Lyx. Everything works perfectly fine. My documentclass is KOMA-Script. In this report I have several tables. I would be fine to display each table, irrespective of the size on one single page. Of course I can insert page breaks and stuff, but this would crack my text apart. Do you have any idea how I can write a command that fulfills this requirement that every table is displayed within the document (not at the end) but with a separate page? Not sure whether this can be done, but try playing with Doc Settings Float Placement options. Liviu I would be glad do get suggestions from you. Kind Regards, Rainer -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Pages for Tables
Rilke Rainer Michael wrote: Do you have any idea how I can write a command that fulfills this requirement that every table is displayed within the document (not at the end) but with a separate page? Try Document Settings Float Placement (Uncheck Use default placement) Page of floats. You might need some extra action if several tables are put on one page of floats and you do not want that. HTH Jürgen
Re: AW: Pages for Tables
Rilke Rainer Michael wrote: Thank you for you reply. Page of floats-option puts all tables at the end of the document. Do you have any idea how I can place the tables within the document but with an extra page? This is because you probably have many floats which overloads LaTeX's float positioning mechanism. I think the afterpage package provides some workaround for this case. Please refer to its documentation. HTH Jürgen PS: Please keep the conversation on the list.
Re: Cannot get epstopdf to work in Lyx 2.0.1
Ok, sure thing - I'll write to the Devel list now... thanks for all your help... Jack On 5 December 2011 19:02, Richard Heck rgh...@comcast.net wrote: On 12/05/2011 12:45 PM, Daniel Kelly (aka Jack) wrote: I've found a (horrible) hack which I'll describe here because it helps to explain the problem. The basic problem is that epstopdf has no way to know which directory the eps file lives in because Lyx runs epstopdf in a temp directory. My horrible hack is to edit line 304 of epstopdf.pl and change it from this: $InputFilename = $ARGV[0]; to this: $InputFilename = /homes/dk3810/Documents/PhD/writing/litReview/$ARGV[0]; This works. But it's a horrible horrible hack and I feel dirty just suggesting it. Should I go ahead and submit a Lyx bug report? I'd suggest you post a message about this to the devel list---describing your problem from the very beginning and posting a minimal example. This kind of thing was supposed to have been sorted out. If it's not, maybe there's some configuration issue we need to address, and the guy who did this work will be more likely to see the message over there. Richard
Re: Pages for Tables
On 2011-12-06, Rilke Rainer Michael wrote: Hello Lyx-User, I am writing on a research report with Lyx. Everything works perfectly fine. My documentclass is KOMA-Script. In this report I have several tables. I would be fine to display each table, irrespective of the size on one single page. Of course I can insert page breaks and stuff, but this would crack my text apart. Do you have any idea how I can write a command that fulfills this requirement that every table is displayed within the document (not at the end) but with a separate page? I would be glad do get suggestions from you. I suppose your tables are already in a table-float (Gleitumgebung)? You find many hints and suggestions in section 3.5 Float Placement of LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material manual (HelpEmbedded Objects). Günter
Re: Pass LyX comments through eLyXer?
On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset If it's too hard to do, or if there's not enough time to do it, I can probably make a small program to scoop out the specific comment that passes the eBook metadata, and give that information to the post- processor. The post-processor already adds pagefeeds to every h1 item in the HTML file and captures the Title, Author and Date but doesn't print them. As LyX now offers native HTML export, is there an equivalent to DocumentSettingsLaTeX preamble for raw HTML code in the document header? Günter
Re: LyX to Kindle, points to remember
On 2011-12-04, Steve Litt wrote: Hi all, I'm making this thread in hopes that everyone who knows something on the subject will add something, and at the end we'll all know how to go from LyX to Kindle. I'm quickly coming to the conclusion that the best way to do it is to write a post-processor for Alex's HTML. Simple, modular, and I can do it myself (and obviously make it free software). The post-processor might need to read the LyX file itself to get a few bits of information not in Alex's HTML file. So far I've discovered that LyX pagebreaks don't translate to Kindle page breaks (start at top of reader). Therefore, to every h1 should be added the property style=page-break-before: always;. That way every chapter starts at the top of the reader. I think this could/should be done better in a global CSS rule. I assume the official interpreter of the LyX project is Python, and if that assumption's true I'll make the postprocessor in Python. This post processing will be a heck of a lot easier if someone can point me to a good XML or HTML parser for Python, so I can look at nodes and attributes instead of trying to parse tags. I've noticed Alex's HTML appears very standard, with matching start and end tags and the like. This should theoretically make my job easier. So anyone have any suggestions for HTML or XML parsers for Python? beautifulsoup http://pypi.python.org/pypi/BeautifulSoup/3.2.0 and the standard library xml.* submodules: xml.dom xml.dom.minidom xml.dom.pulldom xml.etree.ElementTree xml.parsers.expat xml.sax xml.sax.handler xml.sax.saxutils xml.sax.xmlreader Other things I've noticed: 1) The LyX table of contents, when translated to HTML and then to Kindle format, crashes the Kindle previewer, so it must be removed from the HTML file and used to create an NCX TOC. 2) With the Kindle you probably don't want the title page, so there should be a post-processor option to capture the author, title and date, and then remove everything from the Title or Author environmented text to the next h1. Hopefully this thread will serve as an accumulation of knowledge resulting in a post-processor. The post processor may simply serve as a stepping stone to a real conversion. I've found that often the best specification for the right solution is obtained by implementing and evaluating a quick and dirty solution. Keep up the work. Günter
Re: Pass LyX comments through eLyXer?
Hi, Steve and Guenter, On Tue, Dec 6, 2011 at 10:46 AM, Guenter Milde mi...@users.sf.net wrote: On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset Sounds reasonable. Steve, are you willing to try out a test version? I can send it to you privately. Alex.
Re: shortcut inset?
Xu Wang wrote: Liviu, that's exactly it. Thanks for bearing with me. I did a search in stdmenus.inc for info-insert. Am I correct that it is not available in the menu? yes, inset-info is thought to be more or less for developers. pavel
Re: shortcut inset?
Makes sense. Thanks for confirming and explaining. Xu On Tue, Dec 6, 2011 at 5:29 AM, Pavel Sanda sa...@lyx.org wrote: Xu Wang wrote: Liviu, that's exactly it. Thanks for bearing with me. I did a search in stdmenus.inc for info-insert. Am I correct that it is not available in the menu? yes, inset-info is thought to be more or less for developers. pavel
Re: Re: Re: Broken lines in tables
Am Montag, 5. Dezember 2011 um 20:20:12, schrieb Bianca Kranzusch bia...@kranzusch.net 2011/12/3 Kornel Benko kornel.be...@berlin.de: Am Samstag, 3. Dezember 2011 um 10:53:00, schrieb Wolfgang Engelmann engelm...@uni-tuebingen.de Am Freitag, 2. Dezember 2011, 12:47:14 schrieb Bianca Kranzusch: Hi! I'm still working on my diploma thesis, and another issue has come up. In some of my tables, I get broken horizontal lines. I have not been able so far to find out why this happens in some tables, and in others it doesn't. But it's really annoying. I have appended an example file with one of the tables that do this. Can anyone tell me how to avoid or fix this? Any help, as always, greatly appreciated! Thank you! Bianca If I open your file the line you complain about is NOT broken. I am using Lyx 2.0.1 Wolfgang It is the dvi/pdf display which is broken. Kornel But when I export to pdf, it's still broken. That is what I meant. Do you mean it won't be broken in the print version? (I don't have a printer here.) No. Or is it something about my pdf/dvi settings that I can fix? I don't know what is causing this. As a bypass You may try to set the table-width indirectly (e.g. setting width of individual cells) Kornel signature.asc Description: This is a digitally signed message part.
Beginner's questions: Changing title and section heading font sizes
I've been away from LyX for a while, and was still a beginner when I was with it last. I've done the tutorial, but that was a few months ago, and things are a little hazy at the moment, though they're starting to come back. I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. Thanks, -- Eric Weir Decatur, GA eew...@bellsouth.net We do not inherit the earth from our ancestors, we borrow it from our children. - Chief Seattle.
Beginner's questions: Converting footnotes to endnotes
I'm just starting to set up a document. I'm using the Standard Article class. I'd like the footnotes to appear at the end of the article. I understand I will need to activate a module to do that. Which module do I use -- Endnote or Foot to End? And once I've done that, how do I instruct LyX to move the footnotes to the end of the article? Thanks, -- Eric Weir eew...@bellsouth.net The invincible shield of caring Is a weapon sent from the sky against being dead. - Tao Te Ching 67
Re: Beginner's questions: Changing title and section heading font sizes
On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I've been away from LyX for a while, and was still a beginner when I was with it last. I've done the tutorial, but that was a few months ago, and things are a little hazy at the moment, though they're starting to come back. I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, -- Eric Weir Decatur, GA eew...@bellsouth.net We do not inherit the earth from our ancestors, we borrow it from our children. - Chief Seattle. -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Cross-references problem
I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? Solvi
Re: Beginner's questions: Changing title and section heading font sizes
On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? -- Eric Weir eew...@bellsouth.net Decatur, GA USA Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it. - Johann Wolfgang von Goethe
Re: Cross-references problem
Am Dienstag, 6. Dezember 2011, 14:18:58 schrieb Sølvi: I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? Solvi Are you using a bibfile program such as jabref for your ref? Are the ?? files in there and correctly transferred to lyx (in jabref, you click on LyX to do that after having made sure lyx and jabref communicate) You can check this by putting your mouse pointer on the lyx ref, the content of it should show up. Usually this kind of error occurs when the ref contains some inadequate coding (occurs often by cut and past from references in internet). There are ways of checking the code with certain editors; I usually take half of the document away, do the pdf, if ok, check the other half-half etc which finally ends up at the problematic refs. I learned to do the pdf export frequently while inserting refs; in this way I often find offending characters (eg long - versus -- in bibtex) before I forget what went in the text recently) I am sure there are better advices but thats my -clumpsy- way Wolfgang
Re: Beginner's questions: Changing title and section heading font sizes
On Tue, Dec 6, 2011 at 2:48 PM, Eric Weir eew...@bellsouth.net wrote: On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? You should load it, probably via \usepackage{titlesec}, in Doc Settings Preamble. Then you can insert there the commands as you would for a LaTeX document. Regards Liviu -- Eric Weir eew...@bellsouth.net Decatur, GA USA Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it. - Johann Wolfgang von Goethe -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Beginner's questions: Changing title and section heading font sizes
On Dec 6, 2011, at 8:52 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 2:48 PM, Eric Weir eew...@bellsouth.net wrote: On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? You should load it, probably via \usepackage{titlesec}, in Doc Settings Preamble. Then you can insert there the commands as you would for a LaTeX document. Thanks, Liviu. Looks like I'll be learning some LaTeX after all. -- Eric Weir Decatur, GA eew...@bellsouth.net What is man without the beasts? If all the beasts were gone, men would die from a great loneliness of spirit. - Chief Seattle
Beginner's questions: Establishing a standard format for imported documents
On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: A template is a means, not an end. As soon as you finish tailoring the sketch of a document (using the class that you've chosen) to your likes, then you're good to go: start writing and filling it up with actual content. When you finish writing the document and you're ready to submit it, if you are happy with the looks of the final output and anticipate to create such documents later, _then_ you may consider carving out of it a template, put it into the LyX templates folder (or any other folder, for the matter), and re-use whenever the needs arise. I'd like to followup on this, even though the original thread is dated. I'm wondering whether templates are even a possible solution for me. I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. Once I get a document formatted to my satisfaction I'd rather not have to go through the process all over again with each new version or new paper. Other than by doing a lot of cutting and pasting, I don't see how a template could be used with documents imported from other applications and not originally composed in LyX. Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Thanks, -- Eric Weir Decatur, GA USA eew...@bellsouth.net Imagining the other is a powerful antidote to fanaticism and hatred. - Amos Oz
Re: Beginner's questions: Changing title and section heading font sizes
On 12/06/2011 09:17 AM, Eric Weir wrote: On Dec 6, 2011, at 8:52 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 2:48 PM, Eric Weir eew...@bellsouth.net wrote: On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? You should load it, probably via \usepackage{titlesec}, in Doc Settings Preamble. Then you can insert there the commands as you would for a LaTeX document. Thanks, Liviu. Looks like I'll be learning some LaTeX after all. LyX provides native support for some LaTeX packages, but there is no way to provide support for all. When you get into things like customizing the document class, then you're in LaTeX land. Richard
Re: Beginner's questions: Converting footnotes to endnotes
On 12/06/2011 07:40 AM, Eric Weir wrote: I'm just starting to set up a document. I'm using the Standard Article class. I'd like the footnotes to appear at the end of the article. I understand I will need to activate a module to do that. Which module do I use -- Endnote or Foot to End? And once I've done that, how do I instruct LyX to move the footnotes to the end of the article? You have a choice. If you want all footnotes to appear as endnotes, then just use Foot To End. If you want to have endnotes, but also have the possibility of using footnotes, then use Endnote. (The former also has the advantage that you can easily make your endnotes back into footnotes, if a journal requires it.) Whichever you do, you will then need to place the single command \theendnotes in ERT, where you want them to appear. Richard
Re: Cross-references problem
On 12/06/2011 08:52 AM, Wolfgang Engelmann wrote: Am Dienstag, 6. Dezember 2011, 14:18:58 schrieb Sølvi: I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? Solvi Are you using a bibfile program such as jabref for your ref? Are the ?? files in there and correctly transferred to lyx (in jabref, you click on LyX to do that after having made sure lyx and jabref communicate) You can check this by putting your mouse pointer on the lyx ref, the content of it should show up. Usually this kind of error occurs when the ref contains some inadequate coding (occurs often by cut and past from references in internet). There are ways of checking the code with certain editors; I usually take half of the document away, do the pdf, if ok, check the other half-half etc which finally ends up at the problematic refs. I learned to do the pdf export frequently while inserting refs; in this way I often find offending characters (eg long - versus -- in bibtex) before I forget what went in the text recently) These were described as cross-references, rather than just references, so I think it's not a BibTeX thing. Richard
Re: Cross-references problem
On 12/06/2011 08:52 AM, Wolfgang Engelmann wrote: Am Dienstag, 6. Dezember 2011, 14:18:58 schrieb Sølvi: I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? The best way to start debugging this is to look at the LaTeX log (DocumentLaTeX Log) and see what errors, if any, LaTeX is reporting. Do you have any unusual characters in these Xrefs? Perhaps there is some issue about the encoding. It's hard to know in the abstract. Richard
Re: Beginner's questions: Establishing a standard format for imported documents
On 12/06/2011 09:43 AM, Eric Weir wrote: On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: A template is a means, not an end. As soon as you finish tailoring the sketch of a document (using the class that you've chosen) to your likes, then you're good to go: start writing and filling it up with actual content. When you finish writing the document and you're ready to submit it, if you are happy with the looks of the final output and anticipate to create such documents later, _then_ you may consider carving out of it a template, put it into the LyX templates folder (or any other folder, for the matter), and re-use whenever the needs arise. I'd like to followup on this, even though the original thread is dated. I'm wondering whether templates are even a possible solution for me. I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. Once I get a document formatted to my satisfaction I'd rather not have to go through the process all over again with each new version or new paper. Other than by doing a lot of cutting and pasting, I don't see how a template could be used with documents imported from other applications and not originally composed in LyX. This is correct. Templates are something you start with. Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Classes can be difficult or trivial, and if all you need is what you've said, then it may be pretty trivial. Let's say you're otherwise happy with the article class. Then the simplest thing to do is copy it over to ericscls.cls and make the handful of changes you need to have it the way you want it. Done. For the LyX layout, copy article.layout over to ericscls.layout. There are fancier ways to do the class file, and you could even pass an option for where the section headings are printed. Not much more difficult, but a bit. Richard
Re: Putting tables and figures at the end?
fork forkandwait at gmail.com writes: How do I get all my tables and figures to be placed at the end, one per page, preferably in a section called figures and tables? I will put the text figure XX about here where they should go in the body, as per academic tradition. Put each figure/table in a float (User Guide, section 4.6 and Embedded Objects, chapter 3). Then use the page of floats location choice (Embedded Objects, section 3.5). Paul
Re: Putting tables and figures at the end?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/12/11 16:59, Paul A. Rubin wrote: fork forkandwait at gmail.com writes: How do I get all my tables and figures to be placed at the end, one per page, preferably in a section called figures and tables? I will put the text figure XX about here where they should go in the body, as per academic tradition. Put each figure/table in a float (User Guide, section 4.6 and Embedded Objects, chapter 3). yup. Then use the page of floats location choice (Embedded Objects, section 3.5). Better approach: use the package endfloat which will put all floats at the end of the document. Install the LaTeX package and add \AtBeginDocument{\usepackage{endfloat}} In most cases \usepackage{endfloat} works as well, but if you have sideways tables, this tweak helps. Cheers, Rainer Paul - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7ePd0ACgkQoYgNqgF2egrBowCfXSwLx7HB2YUrdFoUkfpQAppY ewgAn2RU32zt+bvgdipyjyO2jU3qUu/c =iuN/ -END PGP SIGNATURE-
Re: Pass LyX comments through eLyXer?
On Tuesday, December 06, 2011 04:46:28 AM Guenter Milde wrote: On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. They're not. What I used was (in 2.0), Insert-Note-Comment I then ran eLyXer, and the resulting HTML file didn't contain the comment. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset Yes, that's just what it looked like in Vim. Thanks SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Pass LyX comments through eLyXer?
Can we please move elyxer discussion to the elyxer mailing list? This is the LyX list. Richard
Re: Pass LyX comments through eLyXer?
On Tuesday, December 06, 2011 04:46:28 AM Guenter Milde wrote: As LyX now offers native HTML export, is there an equivalent to DocumentSettingsLaTeX preamble for raw HTML code in the document header? Günter LyXHTML was much worse. I put in the following comment: === ebook cover=”./bigtitle.jpg” publisher=”Troubleshooters.Com” === Here was the output from LyXHTML: == !-- class=note_commenta id='magicparlabel-41888' / ebook!-- Output Error: Closing tag `div' when other tags are open, namely: --!-- Output Error: !-- --/!--!-- Output Error: LyX_parsep_tag --/div div class=plain_layouta id='magicparlabel-41892' / cover=rdquo;./bigtitle.jpgrdquo;/div div class=plain_layouta id='magicparlabel-41899' / publisher=rdquo;Troubleshooters.Comrdquo;!-- Output Error: Tried to close `!--' when tag was not open. Tag discarded. --!-- Output Error: Tags still open in closeFontTags(). Probably not a problem, but you might want to check these tags: --!-- Output Error: div -- !-- Output Error: No paragraph separation tag found in endParagraph(). --/div == The other thing is, from my understanding, unlike eLyXer which enables you to specify a .css file on the command line, the only way to specify a .css file in LyX's native LyXHTML is to define it within the layout file. First of all, in this book I have no layout file -- it's document class Book plain and simple. But second of all, even if I did, what I'd want is for the layout file to determine the PDF appearance, with the .css determining the flowing text eBook appearance. Thanks SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: LyX to Kindle, points to remember
On Tuesday, December 06, 2011 04:57:07 AM Guenter Milde wrote: On 2011-12-04, Steve Litt wrote: Hi all, I'm making this thread in hopes that everyone who knows something on the subject will add something, and at the end we'll all know how to go from LyX to Kindle. I'm quickly coming to the conclusion that the best way to do it is to write a post-processor for Alex's HTML. Simple, modular, and I can do it myself (and obviously make it free software). The post-processor might need to read the LyX file itself to get a few bits of information not in Alex's HTML file. So far I've discovered that LyX pagebreaks don't translate to Kindle page breaks (start at top of reader). Therefore, to every h1 should be added the property style=page-break-before: always;. That way every chapter starts at the top of the reader. I think this could/should be done better in a global CSS rule. Very possibly. I know so little about CSS it didn't even occur to me. I'm a parse and change kinda guy, so that's just what I did. For later, how do I write a CSS rule that makes all h1 pagefeed before printing? The more I think about it, putting this in CSS would be better because the author can change it without changing Python code. I assume the official interpreter of the LyX project is Python, and if that assumption's true I'll make the postprocessor in Python. This post processing will be a heck of a lot easier if someone can point me to a good XML or HTML parser for Python, so I can look at nodes and attributes instead of trying to parse tags. I've noticed Alex's HTML appears very standard, with matching start and end tags and the like. This should theoretically make my job easier. So anyone have any suggestions for HTML or XML parsers for Python? beautifulsoup http://pypi.python.org/pypi/BeautifulSoup/3.2.0 and the standard library xml.* submodules: xml.dom xml.dom.minidom xml.dom.pulldom xml.etree.ElementTree xml.parsers.expat xml.sax xml.sax.handler xml.sax.saxutils xml.sax.xmlreader I've chosen HTMLParser because: 1) Most ubiquitous documentation 2) Seems to be native Python 3) Event driven, no need to build dom tree 4) Relatively easy 5) It works #3 was important to me in case somebody with a 400K word book, having lots of little paragraphs with lots of character styles in each paragraph, that whole albatross won't need to be in RAM at one time. Of course such a book would take a long time to parse, but probably someone with a book that size is used to things taking a long time. From what I hear, lxml is by far the fastest, but my understanding is it parses to a dom tree. From what I hear (http://blog.ianbicking.org/2008/03/30/python-html-parser- performance/), HTMLParser is one of the faster ones, though nowhere near as fast as lxml, and it's fairly easy on RAM because it outputs events, not a dom tree. My postprocessor is a proof of concept -- its design decisions can be changed later. [clip] Keep up the work. Thank you! SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Beginner's questions: Establishing a standard format for imported documents
On 2011-12-06, Richard Heck wrote: On 12/06/2011 09:43 AM, Eric Weir wrote: On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. ... Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Classes can be difficult or trivial, and if all you need is what you've said, then it may be pretty trivial. Let's say you're otherwise happy with the article class. Then the simplest thing to do is copy it over to ericscls.cls and make the handful of changes you need to have it the way you want it. Done. Actually, for small changes you do not even need a different LaTeX class but just a LyX layout (if you can tex2lyx from the command line with -c myclass and the -c switch operates as I suppose). If you base your layout on one of the more configurable document classes like memoir or the KOMA-script classes. For the LyX layout, copy article.layout over to ericscls.layout. If you go for a custom layout for an unmodified latex class, the start of the layout file should read something like (watch the [scrartcl] in the second line): #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[scrartcl]{article (koma-script with roman headings)} # KOMA scrartcl textclass definition file. # Bernd Rellermeyer, 1998/7/11. # Modified by G.Milde for the use of roman headings 2001/4/9 # the base layout Input scrartcl.layout # my customizations: # Roman font for section headings and description Preamble \renewcommand*{\sectfont}{\bfseries} \renewcommand*{\descfont}{\normalfont\bfseries} EndPreamble ... Günter
Re: Pass LyX comments through eLyXer?
Can I ask again that off-topic threads be moved to an appropriate mailing list? On 12/06/2011 12:06 PM, Steve Litt wrote: On Tuesday, December 06, 2011 05:15:38 AM Alex Fernandez wrote: Hi, Steve and Guenter, On Tue, Dec 6, 2011 at 10:46 AM, Guenter Milde mi...@users.sf.net wrote: On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset Sounds reasonable. Steve, are you willing to try out a test version? I can send it to you privately. Alex. Abso-Lutely, but I just had another thought. After seeing how LyXHTML handled comments, I'm beginning to wonder if the metadata not already provided in LyX (Title, Author and Date) should simply be put in a tiny XML file. Doing it separately kinda sorta makes sense when you think about it. In my opinion, the LyX file should always be about how it looks in PDF, with another file(s) providing looks/metadata in a flowing text eBook. Actually, it might end up with three files, one for Kindle, one for iPad, and one for Nook, and one for Open ePad (yeah, I have trouble counting :-). If you already have something that passes through comments, I'll be glad to test it today or in the next few days. Such a thing is probably a good thing in general. However, if you're doing it just for this specific thing, I'm thinking maybe hold off until all of us give it more thought. I'm most of the way through a post processor for eLyXer-derived HTML files that turns them into everything needed to make a Kindle. My script is ugly, probably crashy in other circumstances, limited in what situations it can handle, featureless, and pre-pre-alpha, but when I get it working it can at least serve as a platform for discussions on how to do it right the next time. Thanks for eLyXer. When you're making a Kindle book, it's the coolest thing since sliced cheese. SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Pass LyX comments through eLyXer?
On 12/06/2011 11:54 AM, Steve Litt wrote: On Tuesday, December 06, 2011 04:46:28 AM Guenter Milde wrote: As LyX now offers native HTML export, is there an equivalent to DocumentSettingsLaTeX preamble for raw HTML code in the document header? Code for the document header can be added via Local Layout, e.g.: AddToHTMLPreamble style type=text/css // css commands here /style EndPreamble You can put whatever you like there. JavaScript, meta tags, whatever. Günter LyXHTML was much worse. I put in the following comment: === ebook cover=”./bigtitle.jpg” publisher=”Troubleshooters.Com” === Here was the output from LyXHTML: == !-- class=note_commenta id='magicparlabel-41888' / ebook!-- Output Error: Closing tag `div' when other tags are open, namely: --!-- Output Error: !-- --/!--!-- Output Error: LyX_parsep_tag --/div div class=plain_layouta id='magicparlabel-41892' / cover=rdquo;./bigtitle.jpgrdquo;/div div class=plain_layouta id='magicparlabel-41899' / publisher=rdquo;Troubleshooters.Comrdquo;!-- Output Error: Tried to close `!--' when tag was not open. Tag discarded. --!-- Output Error: Tags still open in closeFontTags(). Probably not a problem, but you might want to check these tags: --!-- Output Error: div -- !-- Output Error: No paragraph separation tag found in endParagraph(). --/div == There's some bug here involving multi-paragraph comments. I'll sort it out. The other thing is, from my understanding, unlike eLyXer which enables you to specify a .css file on the command line, the only way to specify a .css file in LyX's native LyXHTML is to define it within the layout file. A recent patch from Rob Oakes will change this, in the sense that the CSS will be written to a separate file. You can then modify it at will, or replace it completely, as you wish. There's no need to specify anything. First of all, in this book I have no layout file -- it's document class Book plain and simple. Then you do have a layout file: book.layout. And what it is doing can be modified in different ways: You can write a module that you load with the file, or you can enter your custom layout information into Local Layout. Presumably, you'd want to do it as a module in this sort of case, for re-usability. Or, as I said, you can do CSS separately. It's entirely up to you. But second of all, even if I did, what I'd want is for the layout file to determine the PDF appearance, with the .css determining the flowing text eBook appearance. There's a misunderstanding here. In the PDF case, what the layout file determines is what LaTeX gets output. Then pdflatex (or whatever) gets run on that file, and you get a PDF. In the XHTML case, the layout file determines what CSS gets output. Then the browser (or whatever) determines how the whole thing gets displayed. The LaTeX-oriented parts of the layout file are inactive when XHTML is output, just as the XHTML-oriented parts of the layout file are inactive when LaTeX is output. So the layout controls what gets output in both cases. But of course the CSS is what's determining how the eBook appears, but as the LaTeX determines how the PDF appears. Richard
HTML Footnotes as Endnotes
Dear LyX Developers, I've continued working on some of the challenges to getting clean ePub from LyX and have finished an inset that tentatively allows you to move footnotes to endnotes when exporting to HTML. Attached is a patch implementing the change (or the logic of it, at least). I'd appreciate any comments. Cheers, Rob Oakes htmlendnotelist.diff Description: Binary data
Re: Pass LyX comments through eLyXer?
Hi Steve, On Tue, Dec 6, 2011 at 6:06 PM, Steve Litt sl...@troubleshooters.com wrote: Abso-Lutely, but I just had another thought. After seeing how LyXHTML handled comments, I'm beginning to wonder if the metadata not already provided in LyX (Title, Author and Date) should simply be put in a tiny XML file. Doing it separately kinda sorta makes sense when you think about it. In my opinion, the LyX file should always be about how it looks in PDF, with another file(s) providing looks/metadata in a flowing text eBook. Actually, it might end up with three files, one for Kindle, one for iPad, and one for Nook, and one for Open ePad (yeah, I have trouble counting :-). If you already have something that passes through comments, I'll be glad to test it today or in the next few days. Such a thing is probably a good thing in general. However, if you're doing it just for this specific thing, I'm thinking maybe hold off until all of us give it more thought. OK, I will wait to hear from you. I'm most of the way through a post processor for eLyXer-derived HTML files that turns them into everything needed to make a Kindle. My script is ugly, probably crashy in other circumstances, limited in what situations it can handle, featureless, and pre-pre-alpha, but when I get it working it can at least serve as a platform for discussions on how to do it right the next time. Ideally, that post-processor should be integrated within eLyXer to generate EPUB or Kindle documents. I would be glad to add new options: $ elyxer.py --epub input.lyx output.html or, for Kindle: $ elyxer.py --kindle input.lyx output.azw (if that is indeed the extension for Amazon Kindle). The problem I found when I looked into supporting EPUB was the definition of the format itself: the supposedly open validator rejected a lot of the constructs which eLyXer uses in its output, but they worked fine in e.g. Calibre to generate a full EPUB document. http://en.wikipedia.org/wiki/EPUB#Validation Perhaps newer versions of the specification have improved in that respect. Thanks for eLyXer. When you're making a Kindle book, it's the coolest thing since sliced cheese. Thanks :) I have copied the eLyXer-users list, if you want to discuss eLyXer-specific stuff we can continue the discussion over there. Alex.
Re: Pass LyX comments through eLyXer?
On Tuesday, December 06, 2011 03:06:37 PM you wrote: Can I ask again that off-topic threads be moved to an appropriate mailing list? Unless it's the LyX project's position that LyX's only function is to build PDF and Docbook, then this is very ontopic. As more and more books are written to a flowable text reader, LyX will become a more and more obvious choice. The HTML post-processor I discussed is one very easy, very modular, and very unobtrusive way to write the same book to both PDF/paper and Kindle, at least to the degree that such a thing can be done and still read. Building books for Kindle, iPad and Nook will probably become one of LyX's main uses in the future. On or off topic is a relative thing. I have absolutely no interest in Sweave or Lilypond but don't I call them offtopic, because people use them to output information via LyX. I could move this discussion over to the eLyXer list, or maybe a list specifically about flowable text authoring, but understand that doing so will remove most LyX-listers from input into the eventual flowable text making techniques with LyX, and understand that debugging will be more complex as people have to reach across mailing lists to determine in whose fiefdom the problem resides. SteveT
Re: Pass LyX comments through eLyXer?
I for one would like for the topic to remain here. I don't follow the discussion on the eLyXer list, but knowing what developments happen with this topic are useful for things I'm working on. Especially if whatever Steve and Alex create can be adapted to work with the native XHTML modifications I'm trying to make. To move it in a new direction, what tags are most important to Kindle? In what ways could the native LyX output be refined (I can create layouts/modules that fix these for testing purposes)? Where does the current implementation cause problems and for what reasons? (I'm currently looking into the situations raised by Steve.) I've been delving into various ePub resources and I'm cleaning up the HTML based on HTML5 best practices, but it would be useful to know where else I can focus my attention. Cheers, Rob
Re: Beginner's questions: Establishing a standard format for imported documents
On Tue, Dec 6, 2011 at 3:43 PM, Eric Weir eew...@bellsouth.net wrote: On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: A template is a means, not an end. As soon as you finish tailoring the sketch of a document (using the class that you've chosen) to your likes, then you're good to go: start writing and filling it up with actual content. When you finish writing the document and you're ready to submit it, if you are happy with the looks of the final output and anticipate to create such documents later, _then_ you may consider carving out of it a template, put it into the LyX templates folder (or any other folder, for the matter), and re-use whenever the needs arise. I'd like to followup on this, even though the original thread is dated. I'm wondering whether templates are even a possible solution for me. I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: Do check that a LaTeX class following these guidelines exists. With a bit of luck, even a LyX layout file would be available. Regards Liviu title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. Once I get a document formatted to my satisfaction I'd rather not have to go through the process all over again with each new version or new paper. Other than by doing a lot of cutting and pasting, I don't see how a template could be used with documents imported from other applications and not originally composed in LyX. Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Thanks, -- Eric Weir Decatur, GA USA eew...@bellsouth.net Imagining the other is a powerful antidote to fanaticism and hatred. - Amos Oz -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Screen fonts in 2.0.2
Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Bill Mullin +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Re: Screen fonts in 2.0.2
On Tue, Dec 6, 2011 at 11:06 PM, William Mullin mul...@physics.umass.edu wrote: Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. Liviu Bill Mullin +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Screen fonts in 2.0.2
Hello Please reply to the list, too. On Tue, Dec 6, 2011 at 11:30 PM, William Mullin mul...@physics.umass.edu wrote: Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. When I pull down Tools I get a menu that has Spellchecker, Thesaurus, Statistics, Tex Information, and Compare. IN 2.0.2 I find that menu at LyxPrefsLook and FeelScreen Fonts and that is where I had gone. I clicked on the Times font there and choose Apply. Have you selected Times for Roman and Sans? Nothing happens. What exactly do you expect to happen? Do you want to change the font used in the menus, or the one used in editor? Liviu WJM +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Fwd: Screen fonts in 2.0.2
Begin forwarded message: From: William Mullin mul...@physics.umass.edu Subject: Re: Screen fonts in 2.0.2 Date: December 6, 2011 5:30:53 PM EST To: Liviu Andronic landronim...@gmail.com Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. When I pull down Tools I get a menu that has Spellchecker, Thesaurus, Statistics, Tex Information, and Compare. IN 2.0.2 I find that menu at LyxPrefsLook and FeelScreen Fonts and that is where I had gone. I clicked on the Times font there and choose Apply. Nothing happens. I am using Mac OS10.7.2 WJM +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Re: Pass LyX comments through eLyXer?
On 12/06/2011 04:38 PM, Steve Litt wrote: On Tuesday, December 06, 2011 03:06:37 PM you wrote: Can I ask again that off-topic threads be moved to an appropriate mailing list? Unless it's the LyX project's position that LyX's only function is to build PDF and Docbook, then this is very ontopic. Do you think the LyX list is also good for discussion of the details of the ps2pdf converter? Or for reporting bugs with it? Richard
Re: Screen fonts in 2.0.2
I have the same configuration and if I choose Times New Roman as the screen font and click on apply, my Lyx screen shows Times. Very strange... Maybe you should relaunch Lyx after having renamed your user folder and try again to change the screen font? Murat 2011/12/6 William Mullin mul...@physics.umass.edu Begin forwarded message: From: William Mullin mul...@physics.umass.edu Subject: Re: Screen fonts in 2.0.2 Date: December 6, 2011 5:30:53 PM EST To: Liviu Andronic landronim...@gmail.com Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. When I pull down Tools I get a menu that has Spellchecker, Thesaurus, Statistics, Tex Information, and Compare. IN 2.0.2 I find that menu at LyxPrefsLook and FeelScreen Fonts and that is where I had gone. I clicked on the Times font there and choose Apply. Nothing happens. I am using Mac OS10.7.2 WJM +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Re: Pass LyX comments through eLyXer?
On 07/12/11 09:41:13, Richard Heck wrote: On 12/06/2011 04:38 PM, Steve Litt wrote: On Tuesday, December 06, 2011 03:06:37 PM you wrote: Can I ask again that off-topic threads be moved to an appropriate mailing list? Unless it's the LyX project's position that LyX's only function is to build PDF and Docbook, then this is very ontopic. Do you think the LyX list is also good for discussion of the details of the ps2pdf converter? Or for reporting bugs with it? No, but I don't think it is the same. If LyX is to develop into a serious e-book editor, then this is a very LyX related discussion. Even users such as myself who are in no position to contribute directly to the development have an interest in how this develops. Mere users can eventually have an input into this development. It is not just a discussion about converters or bugs. It relates to how LyX will look and behave in the future. I agree with Steve and others that LyX could become major tool for writing e-books. As such, the discussion doesn't seem to me to be off topic. Cheers, Alan Richard -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172...@iptel.org
Re: Screen fonts in 2.0.2
Well interestingly Times New Roman works but Times does not! Thanks Bill On Dec 6, 2011, at 5:47 PM, Murat Yildizoglu wrote: I have the same configuration and if I choose Times New Roman as the screen font and click on apply, my Lyx screen shows Times. Very strange... Maybe you should relaunch Lyx after having renamed your user folder and try again to change the screen font? Murat 2011/12/6 William Mullin mul...@physics.umass.edu Begin forwarded message: From: William Mullin mul...@physics.umass.edu Subject: Re: Screen fonts in 2.0.2 Date: December 6, 2011 5:30:53 PM EST To: Liviu Andronic landronim...@gmail.com Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. When I pull down Tools I get a menu that has Spellchecker, Thesaurus, Statistics, Tex Information, and Compare. IN 2.0.2 I find that menu at LyxPrefsLook and FeelScreen Fonts and that is where I had gone. I clicked on the Times font there and choose Apply. Nothing happens. I am using Mac OS10.7.2 WJM +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Re: Pass LyX comments through eLyXer?
On 12/06/2011 05:55 PM, Alan L Tyree wrote: On 07/12/11 09:41:13, Richard Heck wrote: On 12/06/2011 04:38 PM, Steve Litt wrote: On Tuesday, December 06, 2011 03:06:37 PM you wrote: Can I ask again that off-topic threads be moved to an appropriate mailing list? Unless it's the LyX project's position that LyX's only function is to build PDF and Docbook, then this is very ontopic. Do you think the LyX list is also good for discussion of the details of the ps2pdf converter? Or for reporting bugs with it? No, but I don't think it is the same. If LyX is to develop into a serious e-book editor, then this is a very LyX related discussion. Even users such as myself who are in no position to contribute directly to the development have an interest in how this develops. Mere users can eventually have an input into this development. It is not just a discussion about converters or bugs. It relates to how LyX will look and behave in the future. I agree with Steve and others that LyX could become major tool for writing e-books. As such, the discussion doesn't seem to me to be off topic. I agree with Steve, as well, that LyX could become such a tool. But that is not what this discussion has been about. This discussion, as the subject makes very clear, has been about elyxer, and about a very specific question Steve had about it. If people want to have a general discussion about how to make LyX a good tool for writing e-books, then let's have that discussion. And let's have it in such a way that it has something to do with LyX, which none of this discussion so far has. Indeed, various of us have already been having that discussion---but it is, frankly, a discussion for the devel list, which many non-developers read and contribute to, for exactly the reason you mention: because users' input is welcome and needed. This list is for issues with LyX itself, or for questions about how to use it, etc. Richard
Re: HTML Footnotes as Endnotes
On 12/06/2011 03:55 PM, Rob Oakes wrote: Dear LyX Developers, I've continued working on some of the challenges to getting clean ePub from LyX and have finished an inset that tentatively allows you to move footnotes to endnotes when exporting to HTML. Attached is a patch implementing the change (or the logic of it, at least). Two thoughts. First, I wonder if we'd be better just outputting footnotes as endnotes all the time. The inline version we now use is cool, but maybe it's too cool for it's own good. Second, I've been thinking recently about introducing some sort of chapter splitting capability. Not so important for e-books probably, but useful for the good old web. In that case, one would want to be able to output footnotes per chapter. There might be other cases where people wanted to print endnotes per chapter, even without the splitting. That suggests the idea of collecting the footnotes along the way in some kind of structure, and then emptying it when it comes time to print them, which could then be at any time. Very roughly: In LaTeXFeatures or some such place: std::listInsetFoot const * footlist; In InsetFoot::xhtml(): op.features.footlist.push_back(this); and then in InsetPrintEndnotes::xhtml(): listInsetFoot * footlist = op.features.footlist; while (!footlist.empty()) { InsetFoot const * foot = footlist.front(); footlist.pop_front(); ... // Something like this must be legal // I think this trick should simplify much of your code... xs foot-InsetFootlike::xhtml(); Richard Comments? Richard
Re: HTML Footnotes as Endnotes
Hi Richard, Thanks for the feedback, I really appreciate it. On Dec 6, 2011, at 4:39 PM, Richard Heck wrote: I wonder if we'd be better just outputting footnotes as endnotes all the time. The inline version we now use is cool, but maybe it's too cool for it's own good. I actually think that would be a really good thing. It makes everything much easier to work with. (Or at least, that's what I think.) Second, I've been thinking recently about introducing some sort of chapter splitting capability. Not so important for e-books probably, but useful for the good old web. And very useful for eBooks as well. Due to the way that ePub works, at least, smaller HTML files load faster. In that case, one would want to be able to output footnotes per chapter. There might be other cases where people wanted to print endnotes per chapter, even without the splitting. That suggests the idea of collecting the footnotes along the way in some kind of structure, and then emptying it when it comes time to print them, which could then be at any time. Very roughly: In LaTeXFeatures or some such place: std::listInsetFoot const * footlist; In InsetFoot::xhtml(): op.features.footlist.push_back(this); and then in InsetPrintEndnotes::xhtml(): listInsetFoot * footlist = op.features.footlist; while (!footlist.empty()) { InsetFoot const * foot = footlist.front(); footlist.pop_front(); ... // Something like this must be legal // I think this trick should simplify much of your code... xs foot-InsetFootlike::xhtml(); I'll look into implementing this tonight. Having this stuff working for the demo I'm doing tomorrow would be great Cheers, Rob
SVG files with linked bitmap
I'm not sure if this is a problem with Lyx, Inkscape, or their interaction. I created a SVG file in Inkscape with a linked bitmap image in it. The SVG file and image are in the same directory as my Lyx file. I made sure the reference to the bitmap in the SVG does not have any path part in it by right clicking on the image and selecting Image properties. This image is placed in a figure float in my Lyx file. If I move all the files (Lyx, SVG, and PNG) to another directory or computer, the SVG file opens and displays correctly in Inkscape and Firefox, but in Lyx and in the generated PDF it shows linked bitmap not found instead of the bitmap image. Lyx is configured to use Inkscape as the conversion program for SVG to PDF and SVG to PNG. The problem occurs on both Windows 7 and Ubuntu. What is Lyx doing differently when it calls Inkscape to convert the file than when I open the image in Inkscape? Phil
Re: SVG files with linked bitmap
Phil Fong wrote: What is Lyx doing differently when it calls Inkscape to convert the file than when I open the image in Inkscape? it copies svg into temporary directory and create the resulting pdf there. the linked file is of course not copied so it is not found. the only simple fixes i see are either try to use absolute paths (but that sucks in other scenarios) or do use embedded objects only. pavel
Kindle metadata and necessary files
Hi all, Besides the book's content, can anyone think of any metadata or filenames needed to create a kindle, that is not included in the following list? !-- metadata.kindle -- !-- User defined Kindle conversion constants -- !-- Intended to be maintained by the human user -- !-- Except for the overrides, -- !-- which might be overwritten by LyX provided data -- !-- Each book must have its own metadata.kindle -- !-- Overrides follow -- !-- Replace tokens with real metadata to override LyX provided metadata -- !-- Or leave as is to accept LyX metadata -- author###author###/author title###title###/title date###date###/date !-- Following eBook metadata not provided by LyX -- !-- Insert metadata between open and close tags -- publisher/publisher subject/subject description/description !-- Following filenames are necessary for conversion. -- !-- Conversion will fail without them. -- !-- Or at least the book won't be acceptable -- !-- Fill in each filename between the start and end tags -- htmlfile/htmlfile coverfile/coverfile opffile/opffile ncxfile/ncxfile
Re: SVG files with linked bitmap
Pavel Sanda sanda at lyx.org writes: it copies svg into temporary directory and create the resulting pdf there. the linked file is of course not copied so it is not found. the only simple fixes i see are either try to use absolute paths (but that sucks in other scenarios) or do use embedded objects only. Absolute paths definitely breaks one of my usage scenarios which is collaboration via SVN. Embedding is annoying if you want to edit the bitmap separately and it makes the svg very big. Why does lyx copy the SVG file to a temporary directory before doing the conversion? Phil
Help needed
Hi all, I downloaded lyx and miktek but i am not able to create a .pdf of my document. The following error message pops up: font OML/zplm/m/it/12=zplmr7m at 12.0pt not loadable:Metric(TFM) file not f font OML/zplm/m/it/9=zplmr7m at 9.0pt not loadable:Metric(TFM) file not f font OML/zplm/m/it/7=zplmr7m at 7.0pt not loadable:Metric(TFM) file not f [Rudin 3.5] For any two real sequences $\{a_{n}\}$, $\{b_{n}\}$, I wasn't able to read the size data for this font, so I will ignore the font specification. [Wizards can fix TFM files using TFtoPL/PLtoTF.] You might try inserting a different font spec; e.g., type `I\fontsame font id=substitute font name'. Anybody can help me? Thanks in advance. Best, Marco
Re: Help needed
Hi Marco, So you can compile other documents to pdf (ie, your installation of miktex and lyx were successful)?). Did you import your tex file into LyX? On which system was your document compilable? What is your operating system and version of LyX? These are all questions that you should have answered in your original email. It looks like you have a font problem. Have you tried changing the font? Assuming the problem is where the error suggests, try changing the font there. In math mode, to change font, click on the math toolbar (usually at the bottom) on the button that looks like a 2x2 matrix of A's. Does the document compile fine if you take out that line? Xu On Tue, Dec 6, 2011 at 10:06 PM, marcoseren...@libero.it marcoseren...@libero.it wrote: Hi all, I downloaded lyx and miktek but i am not able to create a .pdf of my document. The following error message pops up: font OML/zplm/m/it/12=zplmr7m at 12.0pt not loadable:Metric(TFM) file not f font OML/zplm/m/it/9=zplmr7m at 9.0pt not loadable:Metric(TFM) file not f font OML/zplm/m/it/7=zplmr7m at 7.0pt not loadable:Metric(TFM) file not f [Rudin 3.5] For any two real sequences $\{a_{n}\}$, $\{b_{n}\}$, I wasn't able to read the size data for this font, so I will ignore the font specification. [Wizards can fix TFM files using TFtoPL/PLtoTF.] You might try inserting a different font spec; e.g., type `I\fontsame font id=substitute font name'. Anybody can help me? Thanks in advance. Best, Marco
Re: SVG files with linked bitmap
On 2011-12-07, Phil wrote: Pavel Sanda sanda at lyx.org writes: it copies svg into temporary directory and create the resulting pdf there. the linked file is of course not copied so it is not found. the only simple fixes i see are either try to use absolute paths (but that sucks in other scenarios) or do use embedded objects only. Absolute paths definitely breaks one of my usage scenarios which is collaboration via SVN. Embedding is annoying if you want to edit the bitmap separately and it makes the svg very big. Why does lyx copy the SVG file to a temporary directory before doing the conversion? LyX copies *all* required files into a temporary directory in order not to pollute the working directory. (Earlier versions had an option to use the working directory (giving an empty value as path to the tempdir).) As there are several use cases where compiling in the pwd is preferable, you might consider filing a feature request. Günter
Re: Pages for Tables
On Tue, Dec 6, 2011 at 8:55 AM, Rilke Rainer Michael ri...@wiso.uni-koeln.de wrote: Hello Lyx-User, I am writing on a research report with Lyx. Everything works perfectly fine. My documentclass is KOMA-Script. In this report I have several tables. I would be fine to display each table, irrespective of the size on one single page. Of course I can insert page breaks and stuff, but this would crack my text apart. Do you have any idea how I can write a command that fulfills this requirement that every table is displayed within the document (not at the end) but with a separate page? Not sure whether this can be done, but try playing with Doc Settings Float Placement options. Liviu I would be glad do get suggestions from you. Kind Regards, Rainer -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Pages for Tables
Rilke Rainer Michael wrote: Do you have any idea how I can write a command that fulfills this requirement that every table is displayed within the document (not at the end) but with a separate page? Try Document Settings Float Placement (Uncheck Use default placement) Page of floats. You might need some extra action if several tables are put on one page of floats and you do not want that. HTH Jürgen
Re: AW: Pages for Tables
Rilke Rainer Michael wrote: Thank you for you reply. Page of floats-option puts all tables at the end of the document. Do you have any idea how I can place the tables within the document but with an extra page? This is because you probably have many floats which overloads LaTeX's float positioning mechanism. I think the afterpage package provides some workaround for this case. Please refer to its documentation. HTH Jürgen PS: Please keep the conversation on the list.
Re: Cannot get epstopdf to work in Lyx 2.0.1
Ok, sure thing - I'll write to the Devel list now... thanks for all your help... Jack On 5 December 2011 19:02, Richard Heck rgh...@comcast.net wrote: On 12/05/2011 12:45 PM, Daniel Kelly (aka Jack) wrote: I've found a (horrible) hack which I'll describe here because it helps to explain the problem. The basic problem is that epstopdf has no way to know which directory the eps file lives in because Lyx runs epstopdf in a temp directory. My horrible hack is to edit line 304 of epstopdf.pl and change it from this: $InputFilename = $ARGV[0]; to this: $InputFilename = /homes/dk3810/Documents/PhD/writing/litReview/$ARGV[0]; This works. But it's a horrible horrible hack and I feel dirty just suggesting it. Should I go ahead and submit a Lyx bug report? I'd suggest you post a message about this to the devel list---describing your problem from the very beginning and posting a minimal example. This kind of thing was supposed to have been sorted out. If it's not, maybe there's some configuration issue we need to address, and the guy who did this work will be more likely to see the message over there. Richard
Re: Pages for Tables
On 2011-12-06, Rilke Rainer Michael wrote: Hello Lyx-User, I am writing on a research report with Lyx. Everything works perfectly fine. My documentclass is KOMA-Script. In this report I have several tables. I would be fine to display each table, irrespective of the size on one single page. Of course I can insert page breaks and stuff, but this would crack my text apart. Do you have any idea how I can write a command that fulfills this requirement that every table is displayed within the document (not at the end) but with a separate page? I would be glad do get suggestions from you. I suppose your tables are already in a table-float (Gleitumgebung)? You find many hints and suggestions in section 3.5 Float Placement of LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material manual (HelpEmbedded Objects). Günter
Re: Pass LyX comments through eLyXer?
On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset If it's too hard to do, or if there's not enough time to do it, I can probably make a small program to scoop out the specific comment that passes the eBook metadata, and give that information to the post- processor. The post-processor already adds pagefeeds to every h1 item in the HTML file and captures the Title, Author and Date but doesn't print them. As LyX now offers native HTML export, is there an equivalent to DocumentSettingsLaTeX preamble for raw HTML code in the document header? Günter
Re: LyX to Kindle, points to remember
On 2011-12-04, Steve Litt wrote: Hi all, I'm making this thread in hopes that everyone who knows something on the subject will add something, and at the end we'll all know how to go from LyX to Kindle. I'm quickly coming to the conclusion that the best way to do it is to write a post-processor for Alex's HTML. Simple, modular, and I can do it myself (and obviously make it free software). The post-processor might need to read the LyX file itself to get a few bits of information not in Alex's HTML file. So far I've discovered that LyX pagebreaks don't translate to Kindle page breaks (start at top of reader). Therefore, to every h1 should be added the property style=page-break-before: always;. That way every chapter starts at the top of the reader. I think this could/should be done better in a global CSS rule. I assume the official interpreter of the LyX project is Python, and if that assumption's true I'll make the postprocessor in Python. This post processing will be a heck of a lot easier if someone can point me to a good XML or HTML parser for Python, so I can look at nodes and attributes instead of trying to parse tags. I've noticed Alex's HTML appears very standard, with matching start and end tags and the like. This should theoretically make my job easier. So anyone have any suggestions for HTML or XML parsers for Python? beautifulsoup http://pypi.python.org/pypi/BeautifulSoup/3.2.0 and the standard library xml.* submodules: xml.dom xml.dom.minidom xml.dom.pulldom xml.etree.ElementTree xml.parsers.expat xml.sax xml.sax.handler xml.sax.saxutils xml.sax.xmlreader Other things I've noticed: 1) The LyX table of contents, when translated to HTML and then to Kindle format, crashes the Kindle previewer, so it must be removed from the HTML file and used to create an NCX TOC. 2) With the Kindle you probably don't want the title page, so there should be a post-processor option to capture the author, title and date, and then remove everything from the Title or Author environmented text to the next h1. Hopefully this thread will serve as an accumulation of knowledge resulting in a post-processor. The post processor may simply serve as a stepping stone to a real conversion. I've found that often the best specification for the right solution is obtained by implementing and evaluating a quick and dirty solution. Keep up the work. Günter
Re: Pass LyX comments through eLyXer?
Hi, Steve and Guenter, On Tue, Dec 6, 2011 at 10:46 AM, Guenter Milde mi...@users.sf.net wrote: On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset Sounds reasonable. Steve, are you willing to try out a test version? I can send it to you privately. Alex.
Re: shortcut inset?
Xu Wang wrote: Liviu, that's exactly it. Thanks for bearing with me. I did a search in stdmenus.inc for info-insert. Am I correct that it is not available in the menu? yes, inset-info is thought to be more or less for developers. pavel
Re: shortcut inset?
Makes sense. Thanks for confirming and explaining. Xu On Tue, Dec 6, 2011 at 5:29 AM, Pavel Sanda sa...@lyx.org wrote: Xu Wang wrote: Liviu, that's exactly it. Thanks for bearing with me. I did a search in stdmenus.inc for info-insert. Am I correct that it is not available in the menu? yes, inset-info is thought to be more or less for developers. pavel
Re: Re: Re: Broken lines in tables
Am Montag, 5. Dezember 2011 um 20:20:12, schrieb Bianca Kranzusch bia...@kranzusch.net 2011/12/3 Kornel Benko kornel.be...@berlin.de: Am Samstag, 3. Dezember 2011 um 10:53:00, schrieb Wolfgang Engelmann engelm...@uni-tuebingen.de Am Freitag, 2. Dezember 2011, 12:47:14 schrieb Bianca Kranzusch: Hi! I'm still working on my diploma thesis, and another issue has come up. In some of my tables, I get broken horizontal lines. I have not been able so far to find out why this happens in some tables, and in others it doesn't. But it's really annoying. I have appended an example file with one of the tables that do this. Can anyone tell me how to avoid or fix this? Any help, as always, greatly appreciated! Thank you! Bianca If I open your file the line you complain about is NOT broken. I am using Lyx 2.0.1 Wolfgang It is the dvi/pdf display which is broken. Kornel But when I export to pdf, it's still broken. That is what I meant. Do you mean it won't be broken in the print version? (I don't have a printer here.) No. Or is it something about my pdf/dvi settings that I can fix? I don't know what is causing this. As a bypass You may try to set the table-width indirectly (e.g. setting width of individual cells) Kornel signature.asc Description: This is a digitally signed message part.
Beginner's questions: Changing title and section heading font sizes
I've been away from LyX for a while, and was still a beginner when I was with it last. I've done the tutorial, but that was a few months ago, and things are a little hazy at the moment, though they're starting to come back. I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. Thanks, -- Eric Weir Decatur, GA eew...@bellsouth.net We do not inherit the earth from our ancestors, we borrow it from our children. - Chief Seattle.
Beginner's questions: Converting footnotes to endnotes
I'm just starting to set up a document. I'm using the Standard Article class. I'd like the footnotes to appear at the end of the article. I understand I will need to activate a module to do that. Which module do I use -- Endnote or Foot to End? And once I've done that, how do I instruct LyX to move the footnotes to the end of the article? Thanks, -- Eric Weir eew...@bellsouth.net The invincible shield of caring Is a weapon sent from the sky against being dead. - Tao Te Ching 67
Re: Beginner's questions: Changing title and section heading font sizes
On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I've been away from LyX for a while, and was still a beginner when I was with it last. I've done the tutorial, but that was a few months ago, and things are a little hazy at the moment, though they're starting to come back. I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, -- Eric Weir Decatur, GA eew...@bellsouth.net We do not inherit the earth from our ancestors, we borrow it from our children. - Chief Seattle. -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Cross-references problem
I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? Solvi
Re: Beginner's questions: Changing title and section heading font sizes
On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? -- Eric Weir eew...@bellsouth.net Decatur, GA USA Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it. - Johann Wolfgang von Goethe
Re: Cross-references problem
Am Dienstag, 6. Dezember 2011, 14:18:58 schrieb Sølvi: I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? Solvi Are you using a bibfile program such as jabref for your ref? Are the ?? files in there and correctly transferred to lyx (in jabref, you click on LyX to do that after having made sure lyx and jabref communicate) You can check this by putting your mouse pointer on the lyx ref, the content of it should show up. Usually this kind of error occurs when the ref contains some inadequate coding (occurs often by cut and past from references in internet). There are ways of checking the code with certain editors; I usually take half of the document away, do the pdf, if ok, check the other half-half etc which finally ends up at the problematic refs. I learned to do the pdf export frequently while inserting refs; in this way I often find offending characters (eg long - versus -- in bibtex) before I forget what went in the text recently) I am sure there are better advices but thats my -clumpsy- way Wolfgang
Re: Beginner's questions: Changing title and section heading font sizes
On Tue, Dec 6, 2011 at 2:48 PM, Eric Weir eew...@bellsouth.net wrote: On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? You should load it, probably via \usepackage{titlesec}, in Doc Settings Preamble. Then you can insert there the commands as you would for a LaTeX document. Regards Liviu -- Eric Weir eew...@bellsouth.net Decatur, GA USA Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it. - Johann Wolfgang von Goethe -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Beginner's questions: Changing title and section heading font sizes
On Dec 6, 2011, at 8:52 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 2:48 PM, Eric Weir eew...@bellsouth.net wrote: On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? You should load it, probably via \usepackage{titlesec}, in Doc Settings Preamble. Then you can insert there the commands as you would for a LaTeX document. Thanks, Liviu. Looks like I'll be learning some LaTeX after all. -- Eric Weir Decatur, GA eew...@bellsouth.net What is man without the beasts? If all the beasts were gone, men would die from a great loneliness of spirit. - Chief Seattle
Beginner's questions: Establishing a standard format for imported documents
On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: A template is a means, not an end. As soon as you finish tailoring the sketch of a document (using the class that you've chosen) to your likes, then you're good to go: start writing and filling it up with actual content. When you finish writing the document and you're ready to submit it, if you are happy with the looks of the final output and anticipate to create such documents later, _then_ you may consider carving out of it a template, put it into the LyX templates folder (or any other folder, for the matter), and re-use whenever the needs arise. I'd like to followup on this, even though the original thread is dated. I'm wondering whether templates are even a possible solution for me. I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. Once I get a document formatted to my satisfaction I'd rather not have to go through the process all over again with each new version or new paper. Other than by doing a lot of cutting and pasting, I don't see how a template could be used with documents imported from other applications and not originally composed in LyX. Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Thanks, -- Eric Weir Decatur, GA USA eew...@bellsouth.net Imagining the other is a powerful antidote to fanaticism and hatred. - Amos Oz
Re: Beginner's questions: Changing title and section heading font sizes
On 12/06/2011 09:17 AM, Eric Weir wrote: On Dec 6, 2011, at 8:52 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 2:48 PM, Eric Weir eew...@bellsouth.net wrote: On Dec 6, 2011, at 7:50 AM, Liviu Andronic wrote: On Tue, Dec 6, 2011 at 1:34 PM, Eric Weir eew...@bellsouth.net wrote: I'm using the Standard Article class for now. I'd like to change the size of the font that's used for titles and section headings. Where and how do I do that. If you're sure that you want to do that, look into the 'titlsec' package. Liviu Thanks, Liviu. If I understand what the TeX Live Utility is telling me, the package is installed. I've perused the documentation. It addresses LaTeX usage. How do I activate/use it in LyX? You should load it, probably via \usepackage{titlesec}, in Doc Settings Preamble. Then you can insert there the commands as you would for a LaTeX document. Thanks, Liviu. Looks like I'll be learning some LaTeX after all. LyX provides native support for some LaTeX packages, but there is no way to provide support for all. When you get into things like customizing the document class, then you're in LaTeX land. Richard
Re: Beginner's questions: Converting footnotes to endnotes
On 12/06/2011 07:40 AM, Eric Weir wrote: I'm just starting to set up a document. I'm using the Standard Article class. I'd like the footnotes to appear at the end of the article. I understand I will need to activate a module to do that. Which module do I use -- Endnote or Foot to End? And once I've done that, how do I instruct LyX to move the footnotes to the end of the article? You have a choice. If you want all footnotes to appear as endnotes, then just use Foot To End. If you want to have endnotes, but also have the possibility of using footnotes, then use Endnote. (The former also has the advantage that you can easily make your endnotes back into footnotes, if a journal requires it.) Whichever you do, you will then need to place the single command \theendnotes in ERT, where you want them to appear. Richard
Re: Cross-references problem
On 12/06/2011 08:52 AM, Wolfgang Engelmann wrote: Am Dienstag, 6. Dezember 2011, 14:18:58 schrieb Sølvi: I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? Solvi Are you using a bibfile program such as jabref for your ref? Are the ?? files in there and correctly transferred to lyx (in jabref, you click on LyX to do that after having made sure lyx and jabref communicate) You can check this by putting your mouse pointer on the lyx ref, the content of it should show up. Usually this kind of error occurs when the ref contains some inadequate coding (occurs often by cut and past from references in internet). There are ways of checking the code with certain editors; I usually take half of the document away, do the pdf, if ok, check the other half-half etc which finally ends up at the problematic refs. I learned to do the pdf export frequently while inserting refs; in this way I often find offending characters (eg long - versus -- in bibtex) before I forget what went in the text recently) These were described as cross-references, rather than just references, so I think it's not a BibTeX thing. Richard
Re: Cross-references problem
On 12/06/2011 08:52 AM, Wolfgang Engelmann wrote: Am Dienstag, 6. Dezember 2011, 14:18:58 schrieb Sølvi: I have LyX v.2.0.1 and Windows XP. I have a hughe document with a lot of references and cross-references (master document with included child docs). I'm experience problems with, especially, the cross-references when I'm pdf-ing the document - some of them just turn up as ?? in the document. I have checked them several times, deleted and then put them back in. I have also tried to change them all togheter without success. Anyone knows what causes this problem and how to fix it? The best way to start debugging this is to look at the LaTeX log (DocumentLaTeX Log) and see what errors, if any, LaTeX is reporting. Do you have any unusual characters in these Xrefs? Perhaps there is some issue about the encoding. It's hard to know in the abstract. Richard
Re: Beginner's questions: Establishing a standard format for imported documents
On 12/06/2011 09:43 AM, Eric Weir wrote: On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: A template is a means, not an end. As soon as you finish tailoring the sketch of a document (using the class that you've chosen) to your likes, then you're good to go: start writing and filling it up with actual content. When you finish writing the document and you're ready to submit it, if you are happy with the looks of the final output and anticipate to create such documents later, _then_ you may consider carving out of it a template, put it into the LyX templates folder (or any other folder, for the matter), and re-use whenever the needs arise. I'd like to followup on this, even though the original thread is dated. I'm wondering whether templates are even a possible solution for me. I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. Once I get a document formatted to my satisfaction I'd rather not have to go through the process all over again with each new version or new paper. Other than by doing a lot of cutting and pasting, I don't see how a template could be used with documents imported from other applications and not originally composed in LyX. This is correct. Templates are something you start with. Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Classes can be difficult or trivial, and if all you need is what you've said, then it may be pretty trivial. Let's say you're otherwise happy with the article class. Then the simplest thing to do is copy it over to ericscls.cls and make the handful of changes you need to have it the way you want it. Done. For the LyX layout, copy article.layout over to ericscls.layout. There are fancier ways to do the class file, and you could even pass an option for where the section headings are printed. Not much more difficult, but a bit. Richard
Re: Putting tables and figures at the end?
fork forkandwait at gmail.com writes: How do I get all my tables and figures to be placed at the end, one per page, preferably in a section called figures and tables? I will put the text figure XX about here where they should go in the body, as per academic tradition. Put each figure/table in a float (User Guide, section 4.6 and Embedded Objects, chapter 3). Then use the page of floats location choice (Embedded Objects, section 3.5). Paul
Re: Putting tables and figures at the end?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/12/11 16:59, Paul A. Rubin wrote: fork forkandwait at gmail.com writes: How do I get all my tables and figures to be placed at the end, one per page, preferably in a section called figures and tables? I will put the text figure XX about here where they should go in the body, as per academic tradition. Put each figure/table in a float (User Guide, section 4.6 and Embedded Objects, chapter 3). yup. Then use the page of floats location choice (Embedded Objects, section 3.5). Better approach: use the package endfloat which will put all floats at the end of the document. Install the LaTeX package and add \AtBeginDocument{\usepackage{endfloat}} In most cases \usepackage{endfloat} works as well, but if you have sideways tables, this tweak helps. Cheers, Rainer Paul - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7ePd0ACgkQoYgNqgF2egrBowCfXSwLx7HB2YUrdFoUkfpQAppY ewgAn2RU32zt+bvgdipyjyO2jU3qUu/c =iuN/ -END PGP SIGNATURE-
Re: Pass LyX comments through eLyXer?
On Tuesday, December 06, 2011 04:46:28 AM Guenter Milde wrote: On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. They're not. What I used was (in 2.0), Insert-Note-Comment I then ran eLyXer, and the resulting HTML file didn't contain the comment. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset Yes, that's just what it looked like in Vim. Thanks SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Pass LyX comments through eLyXer?
Can we please move elyxer discussion to the elyxer mailing list? This is the LyX list. Richard
Re: Pass LyX comments through eLyXer?
On Tuesday, December 06, 2011 04:46:28 AM Guenter Milde wrote: As LyX now offers native HTML export, is there an equivalent to DocumentSettingsLaTeX preamble for raw HTML code in the document header? Günter LyXHTML was much worse. I put in the following comment: === ebook cover=”./bigtitle.jpg” publisher=”Troubleshooters.Com” === Here was the output from LyXHTML: == !-- class=note_commenta id='magicparlabel-41888' / ebook!-- Output Error: Closing tag `div' when other tags are open, namely: --!-- Output Error: !-- --/!--!-- Output Error: LyX_parsep_tag --/div div class=plain_layouta id='magicparlabel-41892' / cover=rdquo;./bigtitle.jpgrdquo;/div div class=plain_layouta id='magicparlabel-41899' / publisher=rdquo;Troubleshooters.Comrdquo;!-- Output Error: Tried to close `!--' when tag was not open. Tag discarded. --!-- Output Error: Tags still open in closeFontTags(). Probably not a problem, but you might want to check these tags: --!-- Output Error: div -- !-- Output Error: No paragraph separation tag found in endParagraph(). --/div == The other thing is, from my understanding, unlike eLyXer which enables you to specify a .css file on the command line, the only way to specify a .css file in LyX's native LyXHTML is to define it within the layout file. First of all, in this book I have no layout file -- it's document class Book plain and simple. But second of all, even if I did, what I'd want is for the layout file to determine the PDF appearance, with the .css determining the flowing text eBook appearance. Thanks SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: LyX to Kindle, points to remember
On Tuesday, December 06, 2011 04:57:07 AM Guenter Milde wrote: On 2011-12-04, Steve Litt wrote: Hi all, I'm making this thread in hopes that everyone who knows something on the subject will add something, and at the end we'll all know how to go from LyX to Kindle. I'm quickly coming to the conclusion that the best way to do it is to write a post-processor for Alex's HTML. Simple, modular, and I can do it myself (and obviously make it free software). The post-processor might need to read the LyX file itself to get a few bits of information not in Alex's HTML file. So far I've discovered that LyX pagebreaks don't translate to Kindle page breaks (start at top of reader). Therefore, to every h1 should be added the property style=page-break-before: always;. That way every chapter starts at the top of the reader. I think this could/should be done better in a global CSS rule. Very possibly. I know so little about CSS it didn't even occur to me. I'm a parse and change kinda guy, so that's just what I did. For later, how do I write a CSS rule that makes all h1 pagefeed before printing? The more I think about it, putting this in CSS would be better because the author can change it without changing Python code. I assume the official interpreter of the LyX project is Python, and if that assumption's true I'll make the postprocessor in Python. This post processing will be a heck of a lot easier if someone can point me to a good XML or HTML parser for Python, so I can look at nodes and attributes instead of trying to parse tags. I've noticed Alex's HTML appears very standard, with matching start and end tags and the like. This should theoretically make my job easier. So anyone have any suggestions for HTML or XML parsers for Python? beautifulsoup http://pypi.python.org/pypi/BeautifulSoup/3.2.0 and the standard library xml.* submodules: xml.dom xml.dom.minidom xml.dom.pulldom xml.etree.ElementTree xml.parsers.expat xml.sax xml.sax.handler xml.sax.saxutils xml.sax.xmlreader I've chosen HTMLParser because: 1) Most ubiquitous documentation 2) Seems to be native Python 3) Event driven, no need to build dom tree 4) Relatively easy 5) It works #3 was important to me in case somebody with a 400K word book, having lots of little paragraphs with lots of character styles in each paragraph, that whole albatross won't need to be in RAM at one time. Of course such a book would take a long time to parse, but probably someone with a book that size is used to things taking a long time. From what I hear, lxml is by far the fastest, but my understanding is it parses to a dom tree. From what I hear (http://blog.ianbicking.org/2008/03/30/python-html-parser- performance/), HTMLParser is one of the faster ones, though nowhere near as fast as lxml, and it's fairly easy on RAM because it outputs events, not a dom tree. My postprocessor is a proof of concept -- its design decisions can be changed later. [clip] Keep up the work. Thank you! SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Beginner's questions: Establishing a standard format for imported documents
On 2011-12-06, Richard Heck wrote: On 12/06/2011 09:43 AM, Eric Weir wrote: On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. ... Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Classes can be difficult or trivial, and if all you need is what you've said, then it may be pretty trivial. Let's say you're otherwise happy with the article class. Then the simplest thing to do is copy it over to ericscls.cls and make the handful of changes you need to have it the way you want it. Done. Actually, for small changes you do not even need a different LaTeX class but just a LyX layout (if you can tex2lyx from the command line with -c myclass and the -c switch operates as I suppose). If you base your layout on one of the more configurable document classes like memoir or the KOMA-script classes. For the LyX layout, copy article.layout over to ericscls.layout. If you go for a custom layout for an unmodified latex class, the start of the layout file should read something like (watch the [scrartcl] in the second line): #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[scrartcl]{article (koma-script with roman headings)} # KOMA scrartcl textclass definition file. # Bernd Rellermeyer, 1998/7/11. # Modified by G.Milde for the use of roman headings 2001/4/9 # the base layout Input scrartcl.layout # my customizations: # Roman font for section headings and description Preamble \renewcommand*{\sectfont}{\bfseries} \renewcommand*{\descfont}{\normalfont\bfseries} EndPreamble ... Günter
Re: Pass LyX comments through eLyXer?
Can I ask again that off-topic threads be moved to an appropriate mailing list? On 12/06/2011 12:06 PM, Steve Litt wrote: On Tuesday, December 06, 2011 05:15:38 AM Alex Fernandez wrote: Hi, Steve and Guenter, On Tue, Dec 6, 2011 at 10:46 AM, Guenter Milde mi...@users.sf.net wrote: On 2011-12-06, Steve Litt wrote: Hi Alex, I found that my LyX comments don't get through to the finished HTML file, and eLyXer's Options class appears to have no option for passing through LyX comments. How difficult would it be to add code so there's an option to convert LyX comments to !-- HTML comments --? Comments would be an excellent way to pass through eBook-only data, without it showing up in a book printed from the same LyX file. IMO, LyX notes are just for LyX - they are also stripped from the LaTeX. OTOH, Comments (InsertNoteComment) are put as comments in the LaTeX and should be put in the HTML, too. In the *.lyx file, comments look like: \begin_inset Note Comment status open \begin_layout Plain Layout a comment \end_layout \end_inset Sounds reasonable. Steve, are you willing to try out a test version? I can send it to you privately. Alex. Abso-Lutely, but I just had another thought. After seeing how LyXHTML handled comments, I'm beginning to wonder if the metadata not already provided in LyX (Title, Author and Date) should simply be put in a tiny XML file. Doing it separately kinda sorta makes sense when you think about it. In my opinion, the LyX file should always be about how it looks in PDF, with another file(s) providing looks/metadata in a flowing text eBook. Actually, it might end up with three files, one for Kindle, one for iPad, and one for Nook, and one for Open ePad (yeah, I have trouble counting :-). If you already have something that passes through comments, I'll be glad to test it today or in the next few days. Such a thing is probably a good thing in general. However, if you're doing it just for this specific thing, I'm thinking maybe hold off until all of us give it more thought. I'm most of the way through a post processor for eLyXer-derived HTML files that turns them into everything needed to make a Kindle. My script is ugly, probably crashy in other circumstances, limited in what situations it can handle, featureless, and pre-pre-alpha, but when I get it working it can at least serve as a platform for discussions on how to do it right the next time. Thanks for eLyXer. When you're making a Kindle book, it's the coolest thing since sliced cheese. SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Pass LyX comments through eLyXer?
On 12/06/2011 11:54 AM, Steve Litt wrote: On Tuesday, December 06, 2011 04:46:28 AM Guenter Milde wrote: As LyX now offers native HTML export, is there an equivalent to DocumentSettingsLaTeX preamble for raw HTML code in the document header? Code for the document header can be added via Local Layout, e.g.: AddToHTMLPreamble style type=text/css // css commands here /style EndPreamble You can put whatever you like there. JavaScript, meta tags, whatever. Günter LyXHTML was much worse. I put in the following comment: === ebook cover=”./bigtitle.jpg” publisher=”Troubleshooters.Com” === Here was the output from LyXHTML: == !-- class=note_commenta id='magicparlabel-41888' / ebook!-- Output Error: Closing tag `div' when other tags are open, namely: --!-- Output Error: !-- --/!--!-- Output Error: LyX_parsep_tag --/div div class=plain_layouta id='magicparlabel-41892' / cover=rdquo;./bigtitle.jpgrdquo;/div div class=plain_layouta id='magicparlabel-41899' / publisher=rdquo;Troubleshooters.Comrdquo;!-- Output Error: Tried to close `!--' when tag was not open. Tag discarded. --!-- Output Error: Tags still open in closeFontTags(). Probably not a problem, but you might want to check these tags: --!-- Output Error: div -- !-- Output Error: No paragraph separation tag found in endParagraph(). --/div == There's some bug here involving multi-paragraph comments. I'll sort it out. The other thing is, from my understanding, unlike eLyXer which enables you to specify a .css file on the command line, the only way to specify a .css file in LyX's native LyXHTML is to define it within the layout file. A recent patch from Rob Oakes will change this, in the sense that the CSS will be written to a separate file. You can then modify it at will, or replace it completely, as you wish. There's no need to specify anything. First of all, in this book I have no layout file -- it's document class Book plain and simple. Then you do have a layout file: book.layout. And what it is doing can be modified in different ways: You can write a module that you load with the file, or you can enter your custom layout information into Local Layout. Presumably, you'd want to do it as a module in this sort of case, for re-usability. Or, as I said, you can do CSS separately. It's entirely up to you. But second of all, even if I did, what I'd want is for the layout file to determine the PDF appearance, with the .css determining the flowing text eBook appearance. There's a misunderstanding here. In the PDF case, what the layout file determines is what LaTeX gets output. Then pdflatex (or whatever) gets run on that file, and you get a PDF. In the XHTML case, the layout file determines what CSS gets output. Then the browser (or whatever) determines how the whole thing gets displayed. The LaTeX-oriented parts of the layout file are inactive when XHTML is output, just as the XHTML-oriented parts of the layout file are inactive when LaTeX is output. So the layout controls what gets output in both cases. But of course the CSS is what's determining how the eBook appears, but as the LaTeX determines how the PDF appears. Richard
HTML Footnotes as Endnotes
Dear LyX Developers, I've continued working on some of the challenges to getting clean ePub from LyX and have finished an inset that tentatively allows you to move footnotes to endnotes when exporting to HTML. Attached is a patch implementing the change (or the logic of it, at least). I'd appreciate any comments. Cheers, Rob Oakes htmlendnotelist.diff Description: Binary data
Re: Pass LyX comments through eLyXer?
Hi Steve, On Tue, Dec 6, 2011 at 6:06 PM, Steve Litt sl...@troubleshooters.com wrote: Abso-Lutely, but I just had another thought. After seeing how LyXHTML handled comments, I'm beginning to wonder if the metadata not already provided in LyX (Title, Author and Date) should simply be put in a tiny XML file. Doing it separately kinda sorta makes sense when you think about it. In my opinion, the LyX file should always be about how it looks in PDF, with another file(s) providing looks/metadata in a flowing text eBook. Actually, it might end up with three files, one for Kindle, one for iPad, and one for Nook, and one for Open ePad (yeah, I have trouble counting :-). If you already have something that passes through comments, I'll be glad to test it today or in the next few days. Such a thing is probably a good thing in general. However, if you're doing it just for this specific thing, I'm thinking maybe hold off until all of us give it more thought. OK, I will wait to hear from you. I'm most of the way through a post processor for eLyXer-derived HTML files that turns them into everything needed to make a Kindle. My script is ugly, probably crashy in other circumstances, limited in what situations it can handle, featureless, and pre-pre-alpha, but when I get it working it can at least serve as a platform for discussions on how to do it right the next time. Ideally, that post-processor should be integrated within eLyXer to generate EPUB or Kindle documents. I would be glad to add new options: $ elyxer.py --epub input.lyx output.html or, for Kindle: $ elyxer.py --kindle input.lyx output.azw (if that is indeed the extension for Amazon Kindle). The problem I found when I looked into supporting EPUB was the definition of the format itself: the supposedly open validator rejected a lot of the constructs which eLyXer uses in its output, but they worked fine in e.g. Calibre to generate a full EPUB document. http://en.wikipedia.org/wiki/EPUB#Validation Perhaps newer versions of the specification have improved in that respect. Thanks for eLyXer. When you're making a Kindle book, it's the coolest thing since sliced cheese. Thanks :) I have copied the eLyXer-users list, if you want to discuss eLyXer-specific stuff we can continue the discussion over there. Alex.
Re: Pass LyX comments through eLyXer?
On Tuesday, December 06, 2011 03:06:37 PM you wrote: Can I ask again that off-topic threads be moved to an appropriate mailing list? Unless it's the LyX project's position that LyX's only function is to build PDF and Docbook, then this is very ontopic. As more and more books are written to a flowable text reader, LyX will become a more and more obvious choice. The HTML post-processor I discussed is one very easy, very modular, and very unobtrusive way to write the same book to both PDF/paper and Kindle, at least to the degree that such a thing can be done and still read. Building books for Kindle, iPad and Nook will probably become one of LyX's main uses in the future. On or off topic is a relative thing. I have absolutely no interest in Sweave or Lilypond but don't I call them offtopic, because people use them to output information via LyX. I could move this discussion over to the eLyXer list, or maybe a list specifically about flowable text authoring, but understand that doing so will remove most LyX-listers from input into the eventual flowable text making techniques with LyX, and understand that debugging will be more complex as people have to reach across mailing lists to determine in whose fiefdom the problem resides. SteveT
Re: Pass LyX comments through eLyXer?
I for one would like for the topic to remain here. I don't follow the discussion on the eLyXer list, but knowing what developments happen with this topic are useful for things I'm working on. Especially if whatever Steve and Alex create can be adapted to work with the native XHTML modifications I'm trying to make. To move it in a new direction, what tags are most important to Kindle? In what ways could the native LyX output be refined (I can create layouts/modules that fix these for testing purposes)? Where does the current implementation cause problems and for what reasons? (I'm currently looking into the situations raised by Steve.) I've been delving into various ePub resources and I'm cleaning up the HTML based on HTML5 best practices, but it would be useful to know where else I can focus my attention. Cheers, Rob
Re: Beginner's questions: Establishing a standard format for imported documents
On Tue, Dec 6, 2011 at 3:43 PM, Eric Weir eew...@bellsouth.net wrote: On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote: A template is a means, not an end. As soon as you finish tailoring the sketch of a document (using the class that you've chosen) to your likes, then you're good to go: start writing and filling it up with actual content. When you finish writing the document and you're ready to submit it, if you are happy with the looks of the final output and anticipate to create such documents later, _then_ you may consider carving out of it a template, put it into the LyX templates folder (or any other folder, for the matter), and re-use whenever the needs arise. I'd like to followup on this, even though the original thread is dated. I'm wondering whether templates are even a possible solution for me. I compose in Scrivener, then compile to LatTeX and import into LyX. Within the constraints of the APA and Chicago styles I know what I want documents to look like. It's pretty barebones: Do check that a LaTeX class following these guidelines exists. With a bit of luck, even a LyX layout file would be available. Regards Liviu title bold in a font only a little larger than text, sometimes centered, sometimes at the left margin; headings bold at the left margin in a font the same size as text; ability to switch between footnotes and footnotes at the end/endnotes. Once I get a document formatted to my satisfaction I'd rather not have to go through the process all over again with each new version or new paper. Other than by doing a lot of cutting and pasting, I don't see how a template could be used with documents imported from other applications and not originally composed in LyX. Getting in a little over my head here, but my naive user's sense is a class would be required. I imagine it's not so easy to create a new class, even building on an existing class. I wonder if there is a class out there that would already provide what I'm looking for. Thanks, -- Eric Weir Decatur, GA USA eew...@bellsouth.net Imagining the other is a powerful antidote to fanaticism and hatred. - Amos Oz -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Screen fonts in 2.0.2
Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Bill Mullin +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Re: Screen fonts in 2.0.2
On Tue, Dec 6, 2011 at 11:06 PM, William Mullin mul...@physics.umass.edu wrote: Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. Liviu Bill Mullin +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Screen fonts in 2.0.2
Hello Please reply to the list, too. On Tue, Dec 6, 2011 at 11:30 PM, William Mullin mul...@physics.umass.edu wrote: Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. When I pull down Tools I get a menu that has Spellchecker, Thesaurus, Statistics, Tex Information, and Compare. IN 2.0.2 I find that menu at LyxPrefsLook and FeelScreen Fonts and that is where I had gone. I clicked on the Times font there and choose Apply. Have you selected Times for Roman and Sans? Nothing happens. What exactly do you expect to happen? Do you want to change the font used in the menus, or the one used in editor? Liviu WJM +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Fwd: Screen fonts in 2.0.2
Begin forwarded message: From: William Mullin mul...@physics.umass.edu Subject: Re: Screen fonts in 2.0.2 Date: December 6, 2011 5:30:53 PM EST To: Liviu Andronic landronim...@gmail.com Dear Lyx folks I downloaded Lyx 2.0.2 and the default screen font is a sans serif font. I went to Preferences to change back to my favored Times font as I use in 1.6.8, but nothing I do there has any effect. What's the deal? How do I change to Times as a screen font? Have you tried Tools Prefs Look Feel Screen Fonts, and change all families for 'Times'? If it still doesn't work, tell us exactly what you select and where; and what you expect, and what happens. When I pull down Tools I get a menu that has Spellchecker, Thesaurus, Statistics, Tex Information, and Compare. IN 2.0.2 I find that menu at LyxPrefsLook and FeelScreen Fonts and that is where I had gone. I clicked on the Times font there and choose Apply. Nothing happens. I am using Mac OS10.7.2 WJM +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | William J. Mullin Professor Emeritus of Physics | | Department of Physics Hasbrouck Lab | | University of Massachusetts Amherst, MA 01003-3720 | | Internet address: mul...@physics.umass.edu | | Voice: 413-545-0822 | | Fax: 413-545-1691 | | Home page: http://www-unix.oit.umass.edu/~wmullin/ | +-=-=-=-=-=-=-=-=-=-=-=-=-*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+