Re: lyx 2.0.0 URL error unable to open external file on Ubuntu 11.10 . File path is correct!!
On Sat, 31 Mar 2012 15:57:44 + (UTC) Paul A. Rubin ru...@msu.edu wrote: I think this is a problem with Evince. I just tried this (linking to both a PDF and an ODS file). LyX exported my document correctly (using pdflatex). Opened in Acrobat Reader, both links work correctly. Opened in Evince, both links produce the error message you got. Paul Hi, Tried with Ocular and Acrobat Reader and both had errors. Both were file not found errors. Firefox can't find the file at / /media/Nano/Documents/tcm_files/foo.xls It seems that lyx maybe passing an incorrect file path . When the link is clicked on in the pdf, Acrobat Reader asks for permission before opening a linked file and gives a file path: file:%20/media/Nano/Documents/tcm_files/foo.xls Here is the file path placed in the address bar of firefox by Acrobat file:/// /media/Nano/Documents/tcm_files/foo.xls Opening the .xls file (if it could find it) in firefox by Acrobat is no problem firefox just opens it in Libreoffice. I tested this by opening the .xls file from the File dialogue in firefox. Also for completeness, www links in the lyx created pdf work perfectly as they should opening a web page in firefox. Regards, Alasdair
Re: Examples of integration between Lyx, Sage computations, and PDFLateX
The attachments on this thread have been posted to the wiki (thanks Christian): http://wiki.lyx.org/Layouts/Modules/#toc7 http://wiki.lyx.org/uploads/Modules/Sage Note that if you customize the sage.module file, you can load the changes immediately by entering layout-reload in the minibuffer. As Murat has done: I hereby grant permission to license my contributions to the sage module for LyX under the GNU General Public License, version 2 or later. - Thomas On Sun, Apr 1, 2012 at 12:03 PM, Murat Yildizoglu myi...@gmail.com wrote: Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put the devel list as CC) : I hereby grant permission to license my contributions to the SAGE module for LyX under the GNU General Public Licence, version 2 or later. Murat Yildizoglu 2012/3/31 Xu Wang xuwang...@gmail.com Dear Thomas Excellent news! Thank you for your continued work. I have not taken a fine look at this yet, but I also use Ubuntu so it looks like it might be useful. I'm not sure but I think for your contributions to be used you have to give permission explicitly. Look at this email: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html You can send something like that to the development list, lyx-devel And it could be a good idea for Murat to do the same. I'm not sure though. In any case, thank you for your continued work. I am appreciative. Xu On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com wrote: Hi Murat and Xu, I found your thread in the archives and did some further work on the LyX-SageTeX module that Murat posted previously. I fixed a few things that did not work for me in the version described earlier, and expanded the module specification to provide some additional conveniences for including literate Sage code in LyX documents. There's still much room for development and customization. The attachments comprise a set of files and a shell script setup.sh that should largely automate the configuration process on GNU/Linux systems. *** Help needed: For other interested users, I'd like to upload this to http://wiki.lyx.org/Layouts/Modules, but I get browser errors for links anywhere under the upload path wiki.lyx.org/ipfm. The page http://wiki.lyx.org/Site/AboutUploading also tells me I will need someone to tell me the upload password. Can anyone assist? Thanks, Thomas Hi Xu, Thank you for your appreciation. I cannot advance anymore without any help from Lyx gurus. I think I have extracted all the information I can from the help docs. If I get any answer to my questions, I can construct a little bit smarter module but the one we have now is already usable. With some supplementary tricks from the sagetex documentation and through manual executions of the latex-sage-latex chain, it is possible to make a lot of computations. I was also very agreeably surprised that this module can be used for conversion to HTML from LyX, with figures and all. I attach to this message the module in its actual stage and some instruction for making the conversion chain functional. I hope this would already help some of you. As soon as I have more information, I will try to complete the module file. Best regards, Murat 2011/10/31 Xu Wang xuwang...@gmail.com Dear Murat, This is great! I have been waiting for something like this for a long time. I also like the Sweave-like philosophy of this. It's more transparent and reproducible. I am looking forward to the final release with much excitement. Thank you for your work! Best, Xu On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.comwrote: Just another mail to correct a problem with the preceding Lyx file (see the new file attached, and the $ signs in ERT boxes, this is connected with the problem I describe below) and ask a question about insets again: What kind of Flex insets can be included in a math mode text? Is this possible at all? Especially in displayed equation where one would like to include results from SAge computations? I cannot write the following in math mode in Lyx, putting the left member in a displayed equation and the right member in a sagecode inset that would be converted to the expression I give (\sage{integral(x/(x^2+1),x,0,1)) \dfrac{\partial^{4}y}{\partial x^{4}}=\sage{integral(x/(x^2+1),x,0,1)} I meet two problems: 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx just goes to the next line before inserting it... 2/ I cannot type the sagetex instruction (*sage{} ) by hand, because x^2 in the right member must not be interpreted by LyX, since Sage will need it for its computation. I can of course type everything in an ERT, but this cannot be called integration can it? ;-) I have
Error compilating equation on PDF
Hello... Idon't know why when I'm trying to compile the pdf after creating a formula or equation in lyx I'm getting an error and I can't see the pdf. The description i attached in txt file. Thankyou in advance! This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2011.11.6) 2 APR 2012 20:03 entering extended mode **archivo_nuevo1.tex (C:\Users\Kenedy\AppData\Local\Temp\lyx_tmpdir.p50616\lyx_tmpbuf2\archivo_nuevo 1.tex LaTeX2e 2011/06/27 Babel v3.8m and hyphenation patterns for english, afrikaans, ancientgreek, ar abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u senglishmax, welsh, loaded. (C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls Document Class: report 2007/10/19 v1.4h Standard LaTeX document class (C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@chapter=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \c@figure=\count86 \c@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\helvet.sty Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS) (C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks14 )) (C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 43. )) (C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks15 \inpenc@posthook=\toks16 (C:\Program Files\MiKTeX 2.9\tex\latex\base\latin9.def File: latin9.def 2008/03/30 v1.1d Input encoding file )) (C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty Package: geometry 2010/09/12 v5.6 Page Geometry (C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in PDF mode is detected. ) (C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO) Package ifvtex Info: VTeX not detected. ) (C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional ) \Gm@cnth=\count88 \Gm@cntv=\count89 \c@Gm@tempcnt=\count90 \Gm@bindingoffset=\dimen103 \Gm@wd@mp=\dimen104 \Gm@odd@mp=\dimen105 \Gm@even@mp=\dimen106 \Gm@layoutwidth=\dimen107 \Gm@layoutheight=\dimen108 \Gm@layouthoffset=\dimen109 \Gm@layoutvoffset=\dimen110 \Gm@dimlist=\toks17 (C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.cfg)) (C:\Program F iles\MiKTeX 2.9\tex\generic\babel\babel.sty Package: babel 2008/07/08 v3.8m The Babel package * * Local config file bblopts.cfg used * (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\arabi\bblopts.cfg File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to declared options of babel ) (C:\Program Files\MiKTeX 2.9\tex\generic\babel\spanish.ldf Language: spanish.ldf 2009/01/02 v5.0h Spanish support from the babel system (C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.def File: babel.def 2008/07/08 v3.8m Babel common definitions \babel@savecnt=\count91 \U@D=\dimen111 ) \es@datefmt=\count92 \es@quottoks=\toks18 \es@quotdepth=\count93 Package babel Info: Making an active character on input line 492. Package babel Info: Making . an active character on input line 585. Package babel Info: Making an active character on input line 630. Package babel Info: Making an active character on input line 630. )) (C:\Program Files\MiKTeX 2.9\tex\latex\float\float.sty Package: float 2001/11/08 v1.3d Float enhancements (AL) \c@float@type=\count94 \float@exts=\toks19 \float@box=\box26 \@float@everytoks=\toks20 \@floatcapt=\box27 ) (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\esint\esint.sty Package: esint \symlargesymbolsA=\mathgroup4 ) (C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty Package: hyperref 2012/02/06 v6.82o Hypertext links for LaTeX (C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty Package:
lyxhtml and calibre and mobi and epub
I am using LyX 2.0.0 (2011-04-29) on a Ubuntu system with lyx 2.0.0-1 packages. I export XHTML using the lyxhtml export. My goal is to create mobi (for kindle) and epub (for nook)files. I am using calibre 0.8.8 for conversion from the XHTML file. Here are my issues: 1) the XHTML has: math xmlns=http://www.w3.org/1998/Math/MathML; mrow mfrac mrowmn1/mn /mrow mrowmn3/mn /mrow /mfrac /mrow/math but the epub shows 13 and mobi has nothing. 2) Some lyx/tex sections are like First~Second~Third but the lyxhtml output in my table of contents is FirstSecondThird (no spaces). So I manually fixed them. 3) My print cross references say See page elsewhere. I fixed this with: sed -e 's,on page \(a href=.*\)elsewhere,\1here,' -e 's,page \(a href=.*\)elsewhere,\1here,' -e 's,pages \(a href=.*\)elsewhere/a and \(a href=.*\)elsew,\1here/a and \2,' 4) I made some hyperlinks back into hyperlinks: sed -e 's,span class=flex_url\([^]*\)/span,a href=\1span class=flex_url\1/span/a,g' 5) My footnotes work with the xhtml ... when I hover over them they popup. But these hover style footnotes don't work in the calibre viewer. The document shows the small underlined number but clicking or hovering on it does nothing. The xhtml has: div.foot:hover div.foot_inner { display: block; border: 1px double black; margin: 0em 1em; padding: 1em; } This was missing from the epub stylesheet. I think the epub and mobi don't support hovering footnotes. I see elyxer supports different footnote features. I didn't try all the elyxer features yet. (I see it has graphical arrow links I want to remove and also some index tags are left in my main content.) 6) The xhtml output had links to horizontal rules in my table of contents: !-- Output Error: Tags still open in closeFontTags(). Probably not a problem, but you might want to check these tags: --!-- Output Error: div --!-- Output Error: div --!-- Output Error: Tried to close pending tag `a' when other tags were pending. Last pending tag is `LyX_parsep_tag'. Tag discarded. --div class='lyxtoc-2' a href='#magicparlabel-236' class='tocarrow'gt;/a!-- Output Error: Closing tag `div' when other tags are open, namely: --!-- Output Error: LyX_parsep_tag --/div I simple removed that line for each. Anyways what do you all do to generate good epub and/or mobi files from LyX? I also tried lyx2ebook but it crashed when I used it. (I sent traceback and example lyx file to the developer.) Thank you
Re: lyx 2.0.0 URL error unable to open external file on Ubuntu 11.10 . File path is correct!!
On Sat, 31 Mar 2012 15:57:44 + (UTC) Paul A. Rubin ru...@msu.edu wrote: I think this is a problem with Evince. I just tried this (linking to both a PDF and an ODS file). LyX exported my document correctly (using pdflatex). Opened in Acrobat Reader, both links work correctly. Opened in Evince, both links produce the error message you got. Paul Hi, Tried with Ocular and Acrobat Reader and both had errors. Both were file not found errors. Firefox can't find the file at / /media/Nano/Documents/tcm_files/foo.xls It seems that lyx maybe passing an incorrect file path . When the link is clicked on in the pdf, Acrobat Reader asks for permission before opening a linked file and gives a file path: file:%20/media/Nano/Documents/tcm_files/foo.xls Here is the file path placed in the address bar of firefox by Acrobat file:/// /media/Nano/Documents/tcm_files/foo.xls Opening the .xls file (if it could find it) in firefox by Acrobat is no problem firefox just opens it in Libreoffice. I tested this by opening the .xls file from the File dialogue in firefox. Also for completeness, www links in the lyx created pdf work perfectly as they should opening a web page in firefox. Regards, Alasdair
Re: Examples of integration between Lyx, Sage computations, and PDFLateX
The attachments on this thread have been posted to the wiki (thanks Christian): http://wiki.lyx.org/Layouts/Modules/#toc7 http://wiki.lyx.org/uploads/Modules/Sage Note that if you customize the sage.module file, you can load the changes immediately by entering layout-reload in the minibuffer. As Murat has done: I hereby grant permission to license my contributions to the sage module for LyX under the GNU General Public License, version 2 or later. - Thomas On Sun, Apr 1, 2012 at 12:03 PM, Murat Yildizoglu myi...@gmail.com wrote: Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put the devel list as CC) : I hereby grant permission to license my contributions to the SAGE module for LyX under the GNU General Public Licence, version 2 or later. Murat Yildizoglu 2012/3/31 Xu Wang xuwang...@gmail.com Dear Thomas Excellent news! Thank you for your continued work. I have not taken a fine look at this yet, but I also use Ubuntu so it looks like it might be useful. I'm not sure but I think for your contributions to be used you have to give permission explicitly. Look at this email: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html You can send something like that to the development list, lyx-devel And it could be a good idea for Murat to do the same. I'm not sure though. In any case, thank you for your continued work. I am appreciative. Xu On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com wrote: Hi Murat and Xu, I found your thread in the archives and did some further work on the LyX-SageTeX module that Murat posted previously. I fixed a few things that did not work for me in the version described earlier, and expanded the module specification to provide some additional conveniences for including literate Sage code in LyX documents. There's still much room for development and customization. The attachments comprise a set of files and a shell script setup.sh that should largely automate the configuration process on GNU/Linux systems. *** Help needed: For other interested users, I'd like to upload this to http://wiki.lyx.org/Layouts/Modules, but I get browser errors for links anywhere under the upload path wiki.lyx.org/ipfm. The page http://wiki.lyx.org/Site/AboutUploading also tells me I will need someone to tell me the upload password. Can anyone assist? Thanks, Thomas Hi Xu, Thank you for your appreciation. I cannot advance anymore without any help from Lyx gurus. I think I have extracted all the information I can from the help docs. If I get any answer to my questions, I can construct a little bit smarter module but the one we have now is already usable. With some supplementary tricks from the sagetex documentation and through manual executions of the latex-sage-latex chain, it is possible to make a lot of computations. I was also very agreeably surprised that this module can be used for conversion to HTML from LyX, with figures and all. I attach to this message the module in its actual stage and some instruction for making the conversion chain functional. I hope this would already help some of you. As soon as I have more information, I will try to complete the module file. Best regards, Murat 2011/10/31 Xu Wang xuwang...@gmail.com Dear Murat, This is great! I have been waiting for something like this for a long time. I also like the Sweave-like philosophy of this. It's more transparent and reproducible. I am looking forward to the final release with much excitement. Thank you for your work! Best, Xu On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.comwrote: Just another mail to correct a problem with the preceding Lyx file (see the new file attached, and the $ signs in ERT boxes, this is connected with the problem I describe below) and ask a question about insets again: What kind of Flex insets can be included in a math mode text? Is this possible at all? Especially in displayed equation where one would like to include results from SAge computations? I cannot write the following in math mode in Lyx, putting the left member in a displayed equation and the right member in a sagecode inset that would be converted to the expression I give (\sage{integral(x/(x^2+1),x,0,1)) \dfrac{\partial^{4}y}{\partial x^{4}}=\sage{integral(x/(x^2+1),x,0,1)} I meet two problems: 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx just goes to the next line before inserting it... 2/ I cannot type the sagetex instruction (*sage{} ) by hand, because x^2 in the right member must not be interpreted by LyX, since Sage will need it for its computation. I can of course type everything in an ERT, but this cannot be called integration can it? ;-) I have
Error compilating equation on PDF
Hello... Idon't know why when I'm trying to compile the pdf after creating a formula or equation in lyx I'm getting an error and I can't see the pdf. The description i attached in txt file. Thankyou in advance! This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2011.11.6) 2 APR 2012 20:03 entering extended mode **archivo_nuevo1.tex (C:\Users\Kenedy\AppData\Local\Temp\lyx_tmpdir.p50616\lyx_tmpbuf2\archivo_nuevo 1.tex LaTeX2e 2011/06/27 Babel v3.8m and hyphenation patterns for english, afrikaans, ancientgreek, ar abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u senglishmax, welsh, loaded. (C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls Document Class: report 2007/10/19 v1.4h Standard LaTeX document class (C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@chapter=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \c@figure=\count86 \c@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\helvet.sty Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS) (C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks14 )) (C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 43. )) (C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks15 \inpenc@posthook=\toks16 (C:\Program Files\MiKTeX 2.9\tex\latex\base\latin9.def File: latin9.def 2008/03/30 v1.1d Input encoding file )) (C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty Package: geometry 2010/09/12 v5.6 Page Geometry (C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in PDF mode is detected. ) (C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO) Package ifvtex Info: VTeX not detected. ) (C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional ) \Gm@cnth=\count88 \Gm@cntv=\count89 \c@Gm@tempcnt=\count90 \Gm@bindingoffset=\dimen103 \Gm@wd@mp=\dimen104 \Gm@odd@mp=\dimen105 \Gm@even@mp=\dimen106 \Gm@layoutwidth=\dimen107 \Gm@layoutheight=\dimen108 \Gm@layouthoffset=\dimen109 \Gm@layoutvoffset=\dimen110 \Gm@dimlist=\toks17 (C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.cfg)) (C:\Program F iles\MiKTeX 2.9\tex\generic\babel\babel.sty Package: babel 2008/07/08 v3.8m The Babel package * * Local config file bblopts.cfg used * (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\arabi\bblopts.cfg File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to declared options of babel ) (C:\Program Files\MiKTeX 2.9\tex\generic\babel\spanish.ldf Language: spanish.ldf 2009/01/02 v5.0h Spanish support from the babel system (C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.def File: babel.def 2008/07/08 v3.8m Babel common definitions \babel@savecnt=\count91 \U@D=\dimen111 ) \es@datefmt=\count92 \es@quottoks=\toks18 \es@quotdepth=\count93 Package babel Info: Making an active character on input line 492. Package babel Info: Making . an active character on input line 585. Package babel Info: Making an active character on input line 630. Package babel Info: Making an active character on input line 630. )) (C:\Program Files\MiKTeX 2.9\tex\latex\float\float.sty Package: float 2001/11/08 v1.3d Float enhancements (AL) \c@float@type=\count94 \float@exts=\toks19 \float@box=\box26 \@float@everytoks=\toks20 \@floatcapt=\box27 ) (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\esint\esint.sty Package: esint \symlargesymbolsA=\mathgroup4 ) (C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty Package: hyperref 2012/02/06 v6.82o Hypertext links for LaTeX (C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty Package:
lyxhtml and calibre and mobi and epub
I am using LyX 2.0.0 (2011-04-29) on a Ubuntu system with lyx 2.0.0-1 packages. I export XHTML using the lyxhtml export. My goal is to create mobi (for kindle) and epub (for nook)files. I am using calibre 0.8.8 for conversion from the XHTML file. Here are my issues: 1) the XHTML has: math xmlns=http://www.w3.org/1998/Math/MathML; mrow mfrac mrowmn1/mn /mrow mrowmn3/mn /mrow /mfrac /mrow/math but the epub shows 13 and mobi has nothing. 2) Some lyx/tex sections are like First~Second~Third but the lyxhtml output in my table of contents is FirstSecondThird (no spaces). So I manually fixed them. 3) My print cross references say See page elsewhere. I fixed this with: sed -e 's,on page \(a href=.*\)elsewhere,\1here,' -e 's,page \(a href=.*\)elsewhere,\1here,' -e 's,pages \(a href=.*\)elsewhere/a and \(a href=.*\)elsew,\1here/a and \2,' 4) I made some hyperlinks back into hyperlinks: sed -e 's,span class=flex_url\([^]*\)/span,a href=\1span class=flex_url\1/span/a,g' 5) My footnotes work with the xhtml ... when I hover over them they popup. But these hover style footnotes don't work in the calibre viewer. The document shows the small underlined number but clicking or hovering on it does nothing. The xhtml has: div.foot:hover div.foot_inner { display: block; border: 1px double black; margin: 0em 1em; padding: 1em; } This was missing from the epub stylesheet. I think the epub and mobi don't support hovering footnotes. I see elyxer supports different footnote features. I didn't try all the elyxer features yet. (I see it has graphical arrow links I want to remove and also some index tags are left in my main content.) 6) The xhtml output had links to horizontal rules in my table of contents: !-- Output Error: Tags still open in closeFontTags(). Probably not a problem, but you might want to check these tags: --!-- Output Error: div --!-- Output Error: div --!-- Output Error: Tried to close pending tag `a' when other tags were pending. Last pending tag is `LyX_parsep_tag'. Tag discarded. --div class='lyxtoc-2' a href='#magicparlabel-236' class='tocarrow'gt;/a!-- Output Error: Closing tag `div' when other tags are open, namely: --!-- Output Error: LyX_parsep_tag --/div I simple removed that line for each. Anyways what do you all do to generate good epub and/or mobi files from LyX? I also tried lyx2ebook but it crashed when I used it. (I sent traceback and example lyx file to the developer.) Thank you
Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!
On Sat, 31 Mar 2012 15:57:44 + (UTC) Paul A. Rubinwrote: > I think this is a problem with Evince. I just tried this (linking to > both a PDF and an ODS file). LyX exported my document correctly > (using pdflatex). Opened in Acrobat Reader, both links work > correctly. Opened in Evince, both links produce the error message > you got. > > Paul > > Hi, Tried with Ocular and Acrobat Reader and both had errors. Both were "file not found" errors. "Firefox can't find the file at / /media/Nano/Documents/tcm_files/foo.xls" It seems that lyx maybe passing an incorrect file path . When the link is clicked on in the pdf, Acrobat Reader asks for permission before opening a linked file and gives a file path: "file:%20/media/Nano/Documents/tcm_files/foo.xls" Here is the file path placed in the address bar of firefox by Acrobat "file:/// /media/Nano/Documents/tcm_files/foo.xls" Opening the .xls file (if it could find it) in firefox by Acrobat is no problem firefox just opens it in Libreoffice. I tested this by opening the .xls file from the "File" dialogue in firefox. Also for completeness, www links in the lyx created pdf work perfectly as they should opening a web page in firefox. Regards, Alasdair
Re: Examples of integration between Lyx, Sage computations, and PDFLateX
The attachments on this thread have been posted to the wiki (thanks Christian): http://wiki.lyx.org/Layouts/Modules/#toc7 http://wiki.lyx.org/uploads/Modules/Sage Note that if you customize the sage.module file, you can load the changes immediately by entering "layout-reload" in the minibuffer. As Murat has done: I hereby grant permission to license my contributions to the sage module for LyX under the GNU General Public License, version 2 or later. - Thomas On Sun, Apr 1, 2012 at 12:03 PM, Murat Yildizogluwrote: > Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put > the devel list as CC) : > > I hereby grant permission to license my contributions to the SAGE module for > LyX under the GNU > General Public Licence, version 2 or later. > > Murat Yildizoglu > > > 2012/3/31 Xu Wang >> >> Dear Thomas >> >> Excellent news! Thank you for your continued work. I have not taken a fine >> look at this yet, but I also use Ubuntu so it looks like it might be useful. >> >> I'm not sure but I think for your contributions to be used you have to >> give permission explicitly. Look at this email: >> >> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html >> You can send something like that to the development list, lyx-devel >> >> And it could be a good idea for Murat to do the same. >> >> I'm not sure though. >> >> In any case, thank you for your continued work. I am appreciative. Xu >> >> >> >> On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee >> wrote: >>> >>> Hi Murat and Xu, >>> >>> I found your thread in the archives and did some further work on the >>> LyX-SageTeX module that Murat posted previously. >>> >>> I fixed a few things that did not work for me in the version described >>> earlier, and expanded the module specification to provide some >>> additional conveniences for including literate Sage code in LyX >>> documents. There's still much room for development and customization. >>> >>> The attachments comprise a set of files and a shell script "setup.sh" >>> that should largely automate the configuration process on GNU/Linux >>> systems. >>> >>> *** Help needed: >>> >>> For other interested users, I'd like to upload this to >>> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for >>> links anywhere under the upload path wiki.lyx.org/ipfm. The page >>> http://wiki.lyx.org/Site/AboutUploading also tells me I will need >>> someone to tell me the upload password. Can anyone assist? >>> >>> Thanks, >>> Thomas >>> >>> >>> > Hi Xu, >>> > >>> > Thank you for your appreciation. I cannot advance anymore without any >>> > help >>> > from Lyx gurus. >>> > I think I have extracted all the information I can from the help docs. >>> > If I >>> > get any answer to my questions, I can construct a little bit smarter >>> > module >>> > but the one we have now is already usable. With some supplementary >>> > tricks >>> > from the sagetex documentation and through manual executions of the >>> > latex-sage-latex chain, it is possible to make a lot of computations. >>> > >>> > I was also very agreeably surprised that this module can be used for >>> > conversion to HTML from LyX, with figures and all. >>> > >>> > I attach to this message the module in its actual stage and some >>> > instruction for making the conversion chain functional. I hope this >>> > would >>> > already help some of you. >>> > >>> > As soon as I have more information, I will try to complete the module >>> > file. >>> > >>> > Best regards, >>> > >>> > Murat >>> > >>> > 2011/10/31 Xu Wang >>> > >>> > > Dear Murat, >>> > > >>> > > This is great! I have been waiting for something like this for a long >>> > > time. I also like the Sweave-like philosophy of this. It's more >>> > > transparent >>> > > and reproducible. >>> > > >>> > > I am looking forward to the final release with much excitement. >>> > > >>> > > Thank you for your work! >>> > > >>> > > Best, >>> > > >>> > > Xu >>> > > >>> > > >>> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu >>> > > wrote: >>> > > >>> > >> Just another mail to correct a problem with the preceding Lyx file >>> > >> (see >>> > >> the new file attached, and the $ signs in ERT boxes, this is >>> > >> connected with >>> > >> the problem I describe below) and ask a question about insets again: >>> > >> >>> > >> What kind of Flex insets can be included in a math mode text? Is >>> > >> this >>> > >> possible at all? Especially in displayed equation where one would >>> > >> like to >>> > >> include results from SAge computations? >>> > >> I cannot write the following in math mode in Lyx, putting the left >>> > >> member >>> > >> in a displayed equation and the right member in a sagecode inset >>> > >> that would >>> > >> be converted to the expression I give >>> > >> (\sage{integral(x/(x^2+1),x,0,1)) >>> > >> \dfrac{\partial^{4}y}{\partial >>> > >>
Error compilating equation on PDF
Hello... Idon't know why when I'm trying to compile the pdf after creating a formula or equation in lyx I'm getting an error and I can't see the pdf. The description i attached in txt file. Thankyou in advance! This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2011.11.6) 2 APR 2012 20:03 entering extended mode **archivo_nuevo1.tex (C:\Users\Kenedy\AppData\Local\Temp\lyx_tmpdir.p50616\lyx_tmpbuf2\archivo_nuevo 1.tex LaTeX2e <2011/06/27> Babel and hyphenation patterns for english, afrikaans, ancientgreek, ar abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u senglishmax, welsh, loaded. ("C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls" Document Class: report 2007/10/19 v1.4h Standard LaTeX document class ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo" File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@chapter=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \c@figure=\count86 \c@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) ("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\helvet.sty" Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS) ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty" Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks14 )) ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty" Package: fontenc 2005/09/27 v1.99g Standard LaTeX package ("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def" File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 43. )) ("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty" Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks15 \inpenc@posthook=\toks16 ("C:\Program Files\MiKTeX 2.9\tex\latex\base\latin9.def" File: latin9.def 2008/03/30 v1.1d Input encoding file )) ("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty" Package: geometry 2010/09/12 v5.6 Page Geometry ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty" Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in PDF mode is detected. ) ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty" Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO) Package ifvtex Info: VTeX not detected. ) ("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty" Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional ) \Gm@cnth=\count88 \Gm@cntv=\count89 \c@Gm@tempcnt=\count90 \Gm@bindingoffset=\dimen103 \Gm@wd@mp=\dimen104 \Gm@odd@mp=\dimen105 \Gm@even@mp=\dimen106 \Gm@layoutwidth=\dimen107 \Gm@layoutheight=\dimen108 \Gm@layouthoffset=\dimen109 \Gm@layoutvoffset=\dimen110 \Gm@dimlist=\toks17 ("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.cfg")) ("C:\Program F iles\MiKTeX 2.9\tex\generic\babel\babel.sty" Package: babel 2008/07/08 v3.8m The Babel package * * Local config file bblopts.cfg used * (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\arabi\bblopts.cfg File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of babel ) ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\spanish.ldf" Language: spanish.ldf 2009/01/02 v5.0h Spanish support from the babel system ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.def" File: babel.def 2008/07/08 v3.8m Babel common definitions \babel@savecnt=\count91 \U@D=\dimen111 ) \es@datefmt=\count92 \es@quottoks=\toks18 \es@quotdepth=\count93 Package babel Info: Making " an active character on input line 492. Package babel Info: Making . an active character on input line 585. Package babel Info: Making < an active character on input line 630. Package babel Info: Making > an active character on input line 630. )) ("C:\Program Files\MiKTeX 2.9\tex\latex\float\float.sty" Package: float 2001/11/08 v1.3d Float enhancements (AL) \c@float@type=\count94 \float@exts=\toks19 \float@box=\box26 \@float@everytoks=\toks20 \@floatcapt=\box27 ) (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\esint\esint.sty Package: esint \symlargesymbolsA=\mathgroup4 ) ("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty" Package: hyperref 2012/02/06 v6.82o Hypertext links for LaTeX ("C:\Program Files\MiKTeX
lyxhtml and calibre and mobi and epub
I am using LyX 2.0.0 (2011-04-29) on a Ubuntu system with lyx 2.0.0-1 packages. I export XHTML using the lyxhtml export. My goal is to create mobi (for kindle) and epub (for nook)files. I am using calibre 0.8.8 for conversion from the XHTML file. Here are my issues: 1) the XHTML has: http://www.w3.org/1998/Math/MathML;> 1 3 but the epub shows "13" and mobi has nothing. 2) Some lyx/tex sections are like "First~Second~Third" but the lyxhtml output in my table of contents is "FirstSecondThird" (no spaces). So I manually fixed them. 3) My print cross references say "See page elsewhere". I fixed this with: sed -e 's,on page \(\)elsewhere,\1here,' -e 's,page \(\)elsewhere,\1here,' -e 's,pages \(\)elsewhere and \(\)elsew,\1here and \2,' 4) I made some hyperlinks back into hyperlinks: sed -e 's,\([^<]*\),\1,g' 5) My footnotes work with the xhtml ... when I hover over them they popup. But these hover style footnotes don't work in the calibre viewer. The document shows the small underlined number but clicking or hovering on it does nothing. The xhtml has: div.foot:hover div.foot_inner { display: block; border: 1px double black; margin: 0em 1em; padding: 1em; } This was missing from the epub stylesheet. I think the epub and mobi don't support hovering footnotes. I see elyxer supports different footnote features. I didn't try all the elyxer features yet. (I see it has graphical arrow links I want to remove and also some "index" tags are left in my main content.) 6) The xhtml output had links to horizontal rules in my table of contents: I simple removed that line for each. Anyways what do you all do to generate good epub and/or mobi files from LyX? I also tried lyx2ebook but it crashed when I used it. (I sent traceback and example lyx file to the developer.) Thank you