Re: Error compilating equation on PDF

2012-04-03 Thread Richard Heck

On 04/02/2012 08:38 PM, Kenedy Torcatt wrote:

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!
It'd be more helpful to see the LyX file. Better yet, a LyX file with 
nothing but the offending equation in it. I can't tell anything from that.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 01:10 AM, Jeremy C. Reed wrote:

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.

Does mobi handle MathML? Maybe you should try using HTML for math export 
(under Document Settings Output).



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.

Please report this as a bug on trac and attach a simple example file. 
Should be an easy fix.



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,'

I'd be open to suggestions about what this should say. The problem, 
obviously, is that XHTML has no concept of pages.



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.

This can be easily customized, and maybe we should just make a module 
for it. Do something like this in your LyX file, under Document 
Settings Local Layout:


Format 31

InsetLayout Foot
HTMLStyle
now put here whatever CSS you'd like to shape the footnotes...
EndHTMLStyle
End

At some point, we'll also provide the possibility to export footnotes as 
endnotes instead. There's some code for this already, in fact, but I 
have been too busy to finish it.



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.

Can you provide a simple file showing the problem? This kind of thing is 
also fairly easy to fix, usually.


Richard



Re: lyx 2.0.0 URL error unable to open external file on Ubuntu 11.10 . File path is correct!!

2012-04-03 Thread Paul A . Rubin
You seem to have an errant space at the start of the file path.  Is it visible
if you do View  Source with the cursor proximate to that line?

If the space does not occur in the path as you entered it, I would suggest
constructing a minimal example and posting it to the list.

Paul



LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread BOB Merhebi
Hello all,

I've been testing Ubuntu12.04 lately  just now I was thinking of using LyX
on it. TO my big surprise the LyX requires a large download of ~450 MB+. I
am shocked!!! IS that the true size? If not mistaken I recall that on 10.04
it required ~ 25MB. Am I mistaken? Is there something wrong?

--
Sincerely Yours,
Merhebi, Bob


Re: LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread Rob Oakes
On 4/3/2012 10:01 AM, BOB Merhebi wrote:
 Hello all,

 I've been testing Ubuntu12.04 lately  just now I was thinking of
 using LyX on it. TO my big surprise the LyX requires a large download
 of ~450 MB+. I am shocked!!! IS that the true size? If not mistaken I
 recall that on 10.04 it required ~ 25MB. Am I mistaken? Is there
 something wrong?
Hi Bob,

The download from Ubuntu was probably a debug build. These are much
larger than the release build. You might want to contact the Ubuntu
project and let them know that the build is much larger than expected.
Liviu Andronic manages a PPA with an unofficial build, which might be
less damaging to your Internet quota
(https://launchpad.net/~lyx-devel/+archive/release). I'm not sure he's
added support for Precise Penguin, yet, though.

Another idea is that they may have changed the LaTeX dependencies. If
so, it might be downloading a lot of extra TeX packages that aren't needed.

Regardless, I would definitely get in touch with the Ubuntu project. To
the best of my knowledge, they don't subscribe to this list, and it's
something that they will want to hear about.

Cheers,

Rob


Re: LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread Liviu Andronic
On Tue, Apr 3, 2012 at 6:07 PM, Rob Oakes lyx-de...@oak-tree.us wrote:
 The download from Ubuntu was probably a debug build. These are much
 larger than the release build. You might want to contact the Ubuntu
 project and let them know that the build is much larger than expected.
 Liviu Andronic manages a PPA with an unofficial build, which might be
 less damaging to your Internet quota
 (https://launchpad.net/~lyx-devel/+archive/release). I'm not sure he's
 added support for Precise Penguin, yet, though.

A version for Precise is available at my experimental PPA [1]. When I
get some positive feedback on the build and/or Precise gets released,
I will move it to the lyx-devel PPA.

[1] https://launchpad.net/~landronimirc/+archive/experimental


 Another idea is that they may have changed the LaTeX dependencies. If
 so, it might be downloading a lot of extra TeX packages that aren't needed.

I am also suspecting that your total download size contains a bunch of
LaTeX dependencies. Else, see Rob's comments.

Regards
Liviu


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to a single point)

On Tue, 3 Apr 2012, Richard Heck wrote:

  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.
  
 Does mobi handle MathML? Maybe you should try using HTML for math export
 (under Document Settings Output).

I don't think any devices support MathML yet.

I made that change. And the new xhtml displayed as:

  1
-
  3

(long vertical vinculum)

So I removed these math fractions from my lyx document and replaced with 
the special symbol from the Number Forms category.

This now works for my XHTML and the EPUB and MOBI converted from it. The 
XHTML now contains this character: ??? 

This adds one issue -- I now have some Lyx/LaTeX in my XHTML output (and 
EPUB and MOBI):

!-- Preamble Snippets --
\newcommand*\LyXonethird{\mbox{\raisebox{.8ex}{1}\kern-.175em\raisebox{.2ex}{/}\kern-.18em\raisebox{-.2ex}{3}}}

That line is included as content at the start of my document.

I can easily remove it to workaround this issue.



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to single discussion item...)

On Tue, 3 Apr 2012, Richard Heck wrote:

  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.
  
 This can be easily customized, and maybe we should just make a module for it.
 Do something like this in your LyX file, under Document Settings Local
 Layout:
 
 Format 31
 
 InsetLayout Foot
 HTMLStyle
 now put here whatever CSS you'd like to shape the footnotes...
 EndHTMLStyle
 End
 
 At some point, we'll also provide the possibility to export footnotes as
 endnotes instead. There's some code for this already, in fact, but I have been
 too busy to finish it.

Thank you.

I set it to:

InsetLayout Foot
HTMLStyle
span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { font-size: small; text-indent: 0em; margin-right: 15mm; 
margin-left: 15mm; margin-top: 5pt; margin-bottom: 5pt; }
EndHTMLStyle
End

And that worked for me for the XHTML and my epub and mobi files.

(By the way, the \newcommand junk left in my XHTML file as mentioned in 
previous email caused calibre to not recognize my footnotes and 
converted foot to standard, footlabel to flexurl and footinner to 
standard. Once I manually removed that line from the XHTML file, then it 
worked.)

So I don't have foot notes, but simply a note in smaller font and 
indented on next line after the superscript number.

Thanks again for the lyx hint.

By the way, my lyx file doesn't seem to have any way to remove the 
Local Layout. Even if I clear it, press validate and click ok, then go 
back to settings it is there again.


Writing Arabic Documents in Lyx

2012-04-03 Thread Eisa Alanazi
Hello, 

I have LyX 2 on Mac OS X 10.7 and want to write some arabic texts into the lyx 
documents (or for Tex at least). 
doing some googling I've found some packages but not knowing how to configure 
them properly. 
is there any simple guide to write Arabic in Lyx?


Thanks,
Eisa 



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to one item below)

On Tue, 3 Apr 2012, Richard Heck wrote:

  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.
  
 Can you provide a simple file showing the problem? This kind of thing is also
 fairly easy to fix, usually.

I didn't notice before ... but now I realize that all my Section* (note 
the asterisk) were added to my table of contents.  I had the following 
code to put a horizontal rule before my summary at end of each chapter. 
(It looks nice in my PDF.) This is what caused the above error.

\begin_layout Section*
\noindent
\begin_inset CommandInset line
LatexCommand rule
offset 0.5ex
width 100line%
height 1pt

\end_inset


\end_layout



I don't mind that lyxhtml exported all my Section* (except the 
horizontal rule above) into my ebook table of contents. It looks useful. 
But that is different that my PDF.


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 02:47 PM, Jeremy C. Reed wrote:

(responding to single discussion item...)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


This can be easily customized, and maybe we should just make a module for it.
Do something like this in your LyX file, under Document  Settings  Local
Layout:

Format 31

InsetLayout Foot
 HTMLStyle
 now put here whatever CSS you'd like to shape the footnotes...
 EndHTMLStyle
End

At some point, we'll also provide the possibility to export footnotes as
endnotes instead. There's some code for this already, in fact, but I have been
too busy to finish it.

Thank you.

I set it to:

InsetLayout Foot
 HTMLStyle
 span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { font-size: small; text-indent: 0em; margin-right: 15mm;
margin-left: 15mm; margin-top: 5pt; margin-bottom: 5pt; }
 EndHTMLStyle
End

And that worked for me for the XHTML and my epub and mobi files.


Good. I tried hard to make this easily customizable.


(By the way, the \newcommand junk left in my XHTML file as mentioned in
previous email caused calibre to not recognize my footnotes and
converted foot to standard, footlabel to flexurl and footinner to
standard. Once I manually removed that line from the XHTML file, then it
worked.)


I'll try to figure out why that was there.


By the way, my lyx file doesn't seem to have any way to remove the
Local Layout. Even if I clear it, press validate and click ok, then go
back to settings it is there again.
|

I thought I'd fixed that. Fixed now.

Richard




Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 03:07 PM, Jeremy C. Reed wrote:

(responding to one item below)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


Can you provide a simple file showing the problem? This kind of thing is also
fairly easy to fix, usually.

I didn't notice before ... but now I realize that all my Section* (note
the asterisk) were added to my table of contents.  I had the following
code to put a horizontal rule before my summary at end of each chapter.
(It looks nice in my PDF.) This is what caused the above error.

It would help me debug it if you could produce a small example file that 
makes this happen. I'm not sure why the output mechanism is choking.


Regarding the Section* stuff in the TOC, I'm moderately surprised it did 
that. Does it seem right that itt should do it, or wrong? Or should it 
maybe be configurable?


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:

(responding to a single point)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


Does mobi handle MathML? Maybe you should try using HTML for math export
(under Document  Settings  Output).

I don't think any devices support MathML yet.

I made that change. And the new xhtml displayed as:

   1
-
   3

(long vertical vinculum)


Fractions in HTML are not an easy thing to do, I'm afraid.


So I removed these math fractions from my lyx document and replaced with
the special symbol from the Number Forms category.

This now works for my XHTML and the EPUB and MOBI converted from it. The
XHTML now contains this character: ???


Did the character go missing, or...?

Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
Another issue with lyxhtml export:

7) Index is sorted with uppercase before lowercase; that is all A-Z 
before any a-z.

Anyway to configure it so it will consider the uppercase/lowercase the 
same for sort comparisons?


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
On Tue, 3 Apr 2012, Richard Heck wrote:

 It would help me debug it if you could produce a small example file that makes
 this happen. I'm not sure why the output mechanism is choking.

http://reedmedia.net/~reed/tmp/sample1.lyx
http://reedmedia.net/~reed/tmp/sample1.xhtml(see the extra links in 
ToC)



Re: Silent install

2012-04-03 Thread Julien Rioux

On 27/03/2012 4:37 AM, Indrek Tuula wrote:

Hi,

Standard way to achieve such requirements are following:

1. Convert .exe to .msi. You can download some tool for internet what
make it done
2. Modify content of .msi with some editor. Microsoft have free tool, it
is called orsa.
3. Install modified msi. For final customization there are command
prompt tool called msiexec available. E.g. option /i install the packet and
option /quiet  provide installation with no UI. Also it provide other
options such as logging and rebooting a client machine.

I also converted lyx.2.0.3. installation exe to msi with free tool. I would
say result is not feature reach. You can compare it for example Google
earth or MS Office corresponding msi packets. Per my experience that mean
  your task is time consuming. Also make clear logic of orsa need extra time
because it have kind of database :)

I suggest on the first point convert exe to msi and install it with msiexec
tool on quiet mode with out no editing content of msi at all. If you have
luck, it solve your problems

Br,
Indrek

On 26 March 2012 17:36, Patrik Simunovicpatrik.simuno...@su.se  wrote:


  Hi i'm trying to install LyX 2.0.3-1 silently with the /S command, but
at the end of the installation the package installation window pops up and
asks me if i want to download latex and alot more packages.
Is there a way to skip these steps so the install can finsih silent? i
have installed Miktex 2.9.4407 before LyX 2.0.3.

Patrik





To those interested to play further with this, the sources for the 
installer are part of the LyX git repository. I am sure that help with 
the Windows installer, including having a silent variant of it, would be 
welcome.


Cheers,
Julien



RE: Writing Arabic Documents in Lyx

2012-04-03 Thread Scott Kostyshak
From: Eisa Alanazi [eisalen...@yahoo.com]
Sent: Tuesday, April 03, 2012 3:01 PM
To: lyx-users@lists.lyx.org
Subject: Writing Arabic Documents in Lyx

I have LyX 2 on Mac OS X 10.7 and want to write some arabic texts into the lyx 
documents (or for Tex at least).
doing some googling I've found some packages but not knowing how to configure 
them properly.
is there any simple guide to write Arabic in Lyx?

Hi Elsa,

See the link here:
http://wiki.lyx.org/Windows/Arabic

Even though the url says Windows there is also information for Linux. Does 
that help you with your Mac? Please feel free to update the information there 
or add Mac specific solutions as you find them. Just go to Edit.

Thanks,

Scott

Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 04:33 PM, Jeremy C. Reed wrote:

Another issue with lyxhtml export:

7) Index is sorted with uppercase before lowercase; that is all A-Z
before any a-z.

Anyway to configure it so it will consider the uppercase/lowercase the
same for sort comparisons?

Oversight. I've just fixed it for 2.0.4, but it's a source issue. You 
can download the current version from git if you wish and compile that.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 04:39 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:


It would help me debug it if you could produce a small example file that makes
this happen. I'm not sure why the output mechanism is choking.

http://reedmedia.net/~reed/tmp/sample1.lyx
http://reedmedia.net/~reed/tmp/sample1.xhtml(see the extra links in
ToC)

What's causing the problem is that the horizontal line is itself in a 
\section* environment, which means that LaTeX thinks you have two 
\section*'s in a row. That doesn't matter very much, it turns out, from 
LaTeX's point of view, but it's probably not what you want. (If you look 
at the HTML, you'll see that the rule is in an h2.) I'd put the rule 
just in a Standard environment. If you do that, then it works as you'd 
want, I think.


From the point of view of XHTML output, what's happening is that LyX 
doesn't try to put the rule itself in the TOC, but then it sees no 
content there at all, and that makes it unhappy.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
On Tue, 3 Apr 2012, Richard Heck wrote:

 Oversight. I've just fixed it for 2.0.4, but it's a source issue. You can
 download the current version from git if you wish and compile that.

Can someone point me to anonymous GIT details?

I found http://wiki.lyx.org/Devel/Git  if I need an account then who do 
I send a public SSH key to?


Can't export EmbeddedObjects.lyx in 2.0.3

2012-04-03 Thread Yngve Ådlandsvik

Hi,

I get an error when I try to export the Embedded Objects help file that 
comes with Lyx 2.0.3 to pdf with pdflatex. This is the error message:


LaTeX Info: Redefining \selectfont on input line 126.

)

! Undefined control sequence.

argument \@EverySelectfont@Init

l.144 \if@raggedtwoe@footmisc

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.


I think I have all the required packages installed, but I don't 
understand the error message. Any help would be greatly appreciated.


Yngve


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 06:33 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:


Oversight. I've just fixed it for 2.0.4, but it's a source issue. You can
download the current version from git if you wish and compile that.

Can someone point me to anonymous GIT details?


http://wiki.lyx.org/Devel/LyXGit

rh



KOMA report and localisation problem.

2012-04-03 Thread Hannu Vuolasaho

Hi!

I'm writing KOMA report class document and it behaves weird. In Lyx I have Part 
N and in pdf I get part in Finnish as expected. This is acceptable even I was 
curious if it would translate.
Now I have source code listing. The caption of source listing says in Finnish 
that it is listing (Listaus 1.2:)  in Lyx. In pdf I get caption (Listing 1.2:) 
in English . It's translated wrong direction. It can be anything in lyx when 
I'm editing, but in output it should be correct.

Is this easily fixable and where should I fix it? Document-preferences and 
listings has some options so it would be my guess but I have no idea how Lyx' 
localisation works. I just use it and get desirable output usually.

Best regards,
Hannu Vuolasaho
  

Re: Error compilating equation on PDF

2012-04-03 Thread Richard Heck

On 04/02/2012 08:38 PM, Kenedy Torcatt wrote:

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!
It'd be more helpful to see the LyX file. Better yet, a LyX file with 
nothing but the offending equation in it. I can't tell anything from that.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 01:10 AM, Jeremy C. Reed wrote:

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.

Does mobi handle MathML? Maybe you should try using HTML for math export 
(under Document Settings Output).



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.

Please report this as a bug on trac and attach a simple example file. 
Should be an easy fix.



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,'

I'd be open to suggestions about what this should say. The problem, 
obviously, is that XHTML has no concept of pages.



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.

This can be easily customized, and maybe we should just make a module 
for it. Do something like this in your LyX file, under Document 
Settings Local Layout:


Format 31

InsetLayout Foot
HTMLStyle
now put here whatever CSS you'd like to shape the footnotes...
EndHTMLStyle
End

At some point, we'll also provide the possibility to export footnotes as 
endnotes instead. There's some code for this already, in fact, but I 
have been too busy to finish it.



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.

Can you provide a simple file showing the problem? This kind of thing is 
also fairly easy to fix, usually.


Richard



Re: lyx 2.0.0 URL error unable to open external file on Ubuntu 11.10 . File path is correct!!

2012-04-03 Thread Paul A . Rubin
You seem to have an errant space at the start of the file path.  Is it visible
if you do View  Source with the cursor proximate to that line?

If the space does not occur in the path as you entered it, I would suggest
constructing a minimal example and posting it to the list.

Paul



LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread BOB Merhebi
Hello all,

I've been testing Ubuntu12.04 lately  just now I was thinking of using LyX
on it. TO my big surprise the LyX requires a large download of ~450 MB+. I
am shocked!!! IS that the true size? If not mistaken I recall that on 10.04
it required ~ 25MB. Am I mistaken? Is there something wrong?

--
Sincerely Yours,
Merhebi, Bob


Re: LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread Rob Oakes
On 4/3/2012 10:01 AM, BOB Merhebi wrote:
 Hello all,

 I've been testing Ubuntu12.04 lately  just now I was thinking of
 using LyX on it. TO my big surprise the LyX requires a large download
 of ~450 MB+. I am shocked!!! IS that the true size? If not mistaken I
 recall that on 10.04 it required ~ 25MB. Am I mistaken? Is there
 something wrong?
Hi Bob,

The download from Ubuntu was probably a debug build. These are much
larger than the release build. You might want to contact the Ubuntu
project and let them know that the build is much larger than expected.
Liviu Andronic manages a PPA with an unofficial build, which might be
less damaging to your Internet quota
(https://launchpad.net/~lyx-devel/+archive/release). I'm not sure he's
added support for Precise Penguin, yet, though.

Another idea is that they may have changed the LaTeX dependencies. If
so, it might be downloading a lot of extra TeX packages that aren't needed.

Regardless, I would definitely get in touch with the Ubuntu project. To
the best of my knowledge, they don't subscribe to this list, and it's
something that they will want to hear about.

Cheers,

Rob


Re: LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread Liviu Andronic
On Tue, Apr 3, 2012 at 6:07 PM, Rob Oakes lyx-de...@oak-tree.us wrote:
 The download from Ubuntu was probably a debug build. These are much
 larger than the release build. You might want to contact the Ubuntu
 project and let them know that the build is much larger than expected.
 Liviu Andronic manages a PPA with an unofficial build, which might be
 less damaging to your Internet quota
 (https://launchpad.net/~lyx-devel/+archive/release). I'm not sure he's
 added support for Precise Penguin, yet, though.

A version for Precise is available at my experimental PPA [1]. When I
get some positive feedback on the build and/or Precise gets released,
I will move it to the lyx-devel PPA.

[1] https://launchpad.net/~landronimirc/+archive/experimental


 Another idea is that they may have changed the LaTeX dependencies. If
 so, it might be downloading a lot of extra TeX packages that aren't needed.

I am also suspecting that your total download size contains a bunch of
LaTeX dependencies. Else, see Rob's comments.

Regards
Liviu


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to a single point)

On Tue, 3 Apr 2012, Richard Heck wrote:

  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.
  
 Does mobi handle MathML? Maybe you should try using HTML for math export
 (under Document Settings Output).

I don't think any devices support MathML yet.

I made that change. And the new xhtml displayed as:

  1
-
  3

(long vertical vinculum)

So I removed these math fractions from my lyx document and replaced with 
the special symbol from the Number Forms category.

This now works for my XHTML and the EPUB and MOBI converted from it. The 
XHTML now contains this character: ??? 

This adds one issue -- I now have some Lyx/LaTeX in my XHTML output (and 
EPUB and MOBI):

!-- Preamble Snippets --
\newcommand*\LyXonethird{\mbox{\raisebox{.8ex}{1}\kern-.175em\raisebox{.2ex}{/}\kern-.18em\raisebox{-.2ex}{3}}}

That line is included as content at the start of my document.

I can easily remove it to workaround this issue.



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to single discussion item...)

On Tue, 3 Apr 2012, Richard Heck wrote:

  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.
  
 This can be easily customized, and maybe we should just make a module for it.
 Do something like this in your LyX file, under Document Settings Local
 Layout:
 
 Format 31
 
 InsetLayout Foot
 HTMLStyle
 now put here whatever CSS you'd like to shape the footnotes...
 EndHTMLStyle
 End
 
 At some point, we'll also provide the possibility to export footnotes as
 endnotes instead. There's some code for this already, in fact, but I have been
 too busy to finish it.

Thank you.

I set it to:

InsetLayout Foot
HTMLStyle
span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { font-size: small; text-indent: 0em; margin-right: 15mm; 
margin-left: 15mm; margin-top: 5pt; margin-bottom: 5pt; }
EndHTMLStyle
End

And that worked for me for the XHTML and my epub and mobi files.

(By the way, the \newcommand junk left in my XHTML file as mentioned in 
previous email caused calibre to not recognize my footnotes and 
converted foot to standard, footlabel to flexurl and footinner to 
standard. Once I manually removed that line from the XHTML file, then it 
worked.)

So I don't have foot notes, but simply a note in smaller font and 
indented on next line after the superscript number.

Thanks again for the lyx hint.

By the way, my lyx file doesn't seem to have any way to remove the 
Local Layout. Even if I clear it, press validate and click ok, then go 
back to settings it is there again.


Writing Arabic Documents in Lyx

2012-04-03 Thread Eisa Alanazi
Hello, 

I have LyX 2 on Mac OS X 10.7 and want to write some arabic texts into the lyx 
documents (or for Tex at least). 
doing some googling I've found some packages but not knowing how to configure 
them properly. 
is there any simple guide to write Arabic in Lyx?


Thanks,
Eisa 



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to one item below)

On Tue, 3 Apr 2012, Richard Heck wrote:

  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.
  
 Can you provide a simple file showing the problem? This kind of thing is also
 fairly easy to fix, usually.

I didn't notice before ... but now I realize that all my Section* (note 
the asterisk) were added to my table of contents.  I had the following 
code to put a horizontal rule before my summary at end of each chapter. 
(It looks nice in my PDF.) This is what caused the above error.

\begin_layout Section*
\noindent
\begin_inset CommandInset line
LatexCommand rule
offset 0.5ex
width 100line%
height 1pt

\end_inset


\end_layout



I don't mind that lyxhtml exported all my Section* (except the 
horizontal rule above) into my ebook table of contents. It looks useful. 
But that is different that my PDF.


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 02:47 PM, Jeremy C. Reed wrote:

(responding to single discussion item...)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


This can be easily customized, and maybe we should just make a module for it.
Do something like this in your LyX file, under Document  Settings  Local
Layout:

Format 31

InsetLayout Foot
 HTMLStyle
 now put here whatever CSS you'd like to shape the footnotes...
 EndHTMLStyle
End

At some point, we'll also provide the possibility to export footnotes as
endnotes instead. There's some code for this already, in fact, but I have been
too busy to finish it.

Thank you.

I set it to:

InsetLayout Foot
 HTMLStyle
 span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { font-size: small; text-indent: 0em; margin-right: 15mm;
margin-left: 15mm; margin-top: 5pt; margin-bottom: 5pt; }
 EndHTMLStyle
End

And that worked for me for the XHTML and my epub and mobi files.


Good. I tried hard to make this easily customizable.


(By the way, the \newcommand junk left in my XHTML file as mentioned in
previous email caused calibre to not recognize my footnotes and
converted foot to standard, footlabel to flexurl and footinner to
standard. Once I manually removed that line from the XHTML file, then it
worked.)


I'll try to figure out why that was there.


By the way, my lyx file doesn't seem to have any way to remove the
Local Layout. Even if I clear it, press validate and click ok, then go
back to settings it is there again.
|

I thought I'd fixed that. Fixed now.

Richard




Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 03:07 PM, Jeremy C. Reed wrote:

(responding to one item below)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


Can you provide a simple file showing the problem? This kind of thing is also
fairly easy to fix, usually.

I didn't notice before ... but now I realize that all my Section* (note
the asterisk) were added to my table of contents.  I had the following
code to put a horizontal rule before my summary at end of each chapter.
(It looks nice in my PDF.) This is what caused the above error.

It would help me debug it if you could produce a small example file that 
makes this happen. I'm not sure why the output mechanism is choking.


Regarding the Section* stuff in the TOC, I'm moderately surprised it did 
that. Does it seem right that itt should do it, or wrong? Or should it 
maybe be configurable?


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:

(responding to a single point)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


Does mobi handle MathML? Maybe you should try using HTML for math export
(under Document  Settings  Output).

I don't think any devices support MathML yet.

I made that change. And the new xhtml displayed as:

   1
-
   3

(long vertical vinculum)


Fractions in HTML are not an easy thing to do, I'm afraid.


So I removed these math fractions from my lyx document and replaced with
the special symbol from the Number Forms category.

This now works for my XHTML and the EPUB and MOBI converted from it. The
XHTML now contains this character: ???


Did the character go missing, or...?

Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
Another issue with lyxhtml export:

7) Index is sorted with uppercase before lowercase; that is all A-Z 
before any a-z.

Anyway to configure it so it will consider the uppercase/lowercase the 
same for sort comparisons?


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
On Tue, 3 Apr 2012, Richard Heck wrote:

 It would help me debug it if you could produce a small example file that makes
 this happen. I'm not sure why the output mechanism is choking.

http://reedmedia.net/~reed/tmp/sample1.lyx
http://reedmedia.net/~reed/tmp/sample1.xhtml(see the extra links in 
ToC)



Re: Silent install

2012-04-03 Thread Julien Rioux

On 27/03/2012 4:37 AM, Indrek Tuula wrote:

Hi,

Standard way to achieve such requirements are following:

1. Convert .exe to .msi. You can download some tool for internet what
make it done
2. Modify content of .msi with some editor. Microsoft have free tool, it
is called orsa.
3. Install modified msi. For final customization there are command
prompt tool called msiexec available. E.g. option /i install the packet and
option /quiet  provide installation with no UI. Also it provide other
options such as logging and rebooting a client machine.

I also converted lyx.2.0.3. installation exe to msi with free tool. I would
say result is not feature reach. You can compare it for example Google
earth or MS Office corresponding msi packets. Per my experience that mean
  your task is time consuming. Also make clear logic of orsa need extra time
because it have kind of database :)

I suggest on the first point convert exe to msi and install it with msiexec
tool on quiet mode with out no editing content of msi at all. If you have
luck, it solve your problems

Br,
Indrek

On 26 March 2012 17:36, Patrik Simunovicpatrik.simuno...@su.se  wrote:


  Hi i'm trying to install LyX 2.0.3-1 silently with the /S command, but
at the end of the installation the package installation window pops up and
asks me if i want to download latex and alot more packages.
Is there a way to skip these steps so the install can finsih silent? i
have installed Miktex 2.9.4407 before LyX 2.0.3.

Patrik





To those interested to play further with this, the sources for the 
installer are part of the LyX git repository. I am sure that help with 
the Windows installer, including having a silent variant of it, would be 
welcome.


Cheers,
Julien



RE: Writing Arabic Documents in Lyx

2012-04-03 Thread Scott Kostyshak
From: Eisa Alanazi [eisalen...@yahoo.com]
Sent: Tuesday, April 03, 2012 3:01 PM
To: lyx-users@lists.lyx.org
Subject: Writing Arabic Documents in Lyx

I have LyX 2 on Mac OS X 10.7 and want to write some arabic texts into the lyx 
documents (or for Tex at least).
doing some googling I've found some packages but not knowing how to configure 
them properly.
is there any simple guide to write Arabic in Lyx?

Hi Elsa,

See the link here:
http://wiki.lyx.org/Windows/Arabic

Even though the url says Windows there is also information for Linux. Does 
that help you with your Mac? Please feel free to update the information there 
or add Mac specific solutions as you find them. Just go to Edit.

Thanks,

Scott

Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 04:33 PM, Jeremy C. Reed wrote:

Another issue with lyxhtml export:

7) Index is sorted with uppercase before lowercase; that is all A-Z
before any a-z.

Anyway to configure it so it will consider the uppercase/lowercase the
same for sort comparisons?

Oversight. I've just fixed it for 2.0.4, but it's a source issue. You 
can download the current version from git if you wish and compile that.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 04:39 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:


It would help me debug it if you could produce a small example file that makes
this happen. I'm not sure why the output mechanism is choking.

http://reedmedia.net/~reed/tmp/sample1.lyx
http://reedmedia.net/~reed/tmp/sample1.xhtml(see the extra links in
ToC)

What's causing the problem is that the horizontal line is itself in a 
\section* environment, which means that LaTeX thinks you have two 
\section*'s in a row. That doesn't matter very much, it turns out, from 
LaTeX's point of view, but it's probably not what you want. (If you look 
at the HTML, you'll see that the rule is in an h2.) I'd put the rule 
just in a Standard environment. If you do that, then it works as you'd 
want, I think.


From the point of view of XHTML output, what's happening is that LyX 
doesn't try to put the rule itself in the TOC, but then it sees no 
content there at all, and that makes it unhappy.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
On Tue, 3 Apr 2012, Richard Heck wrote:

 Oversight. I've just fixed it for 2.0.4, but it's a source issue. You can
 download the current version from git if you wish and compile that.

Can someone point me to anonymous GIT details?

I found http://wiki.lyx.org/Devel/Git  if I need an account then who do 
I send a public SSH key to?


Can't export EmbeddedObjects.lyx in 2.0.3

2012-04-03 Thread Yngve Ådlandsvik

Hi,

I get an error when I try to export the Embedded Objects help file that 
comes with Lyx 2.0.3 to pdf with pdflatex. This is the error message:


LaTeX Info: Redefining \selectfont on input line 126.

)

! Undefined control sequence.

argument \@EverySelectfont@Init

l.144 \if@raggedtwoe@footmisc

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.


I think I have all the required packages installed, but I don't 
understand the error message. Any help would be greatly appreciated.


Yngve


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 06:33 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:


Oversight. I've just fixed it for 2.0.4, but it's a source issue. You can
download the current version from git if you wish and compile that.

Can someone point me to anonymous GIT details?


http://wiki.lyx.org/Devel/LyXGit

rh



KOMA report and localisation problem.

2012-04-03 Thread Hannu Vuolasaho

Hi!

I'm writing KOMA report class document and it behaves weird. In Lyx I have Part 
N and in pdf I get part in Finnish as expected. This is acceptable even I was 
curious if it would translate.
Now I have source code listing. The caption of source listing says in Finnish 
that it is listing (Listaus 1.2:)  in Lyx. In pdf I get caption (Listing 1.2:) 
in English . It's translated wrong direction. It can be anything in lyx when 
I'm editing, but in output it should be correct.

Is this easily fixable and where should I fix it? Document-preferences and 
listings has some options so it would be my guess but I have no idea how Lyx' 
localisation works. I just use it and get desirable output usually.

Best regards,
Hannu Vuolasaho
  

Re: Error compilating equation on PDF

2012-04-03 Thread Richard Heck

On 04/02/2012 08:38 PM, Kenedy Torcatt wrote:

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!
It'd be more helpful to see the LyX file. Better yet, a LyX file with 
nothing but the offending equation in it. I can't tell anything from that.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 01:10 AM, Jeremy C. Reed wrote:

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.

Does mobi handle MathML? Maybe you should try using HTML for math export 
(under Document> Settings> Output).



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.

Please report this as a bug on trac and attach a simple example file. 
Should be an easy fix.



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,'

I'd be open to suggestions about what this should say. The problem, 
obviously, is that XHTML has no concept of pages.



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.

This can be easily customized, and maybe we should just make a module 
for it. Do something like this in your LyX file, under Document> 
Settings> Local Layout:


Format 31

InsetLayout Foot
HTMLStyle
now put here whatever CSS you'd like to shape the footnotes...
EndHTMLStyle
End

At some point, we'll also provide the possibility to export footnotes as 
endnotes instead. There's some code for this already, in fact, but I 
have been too busy to finish it.



6) The xhtml output had links to horizontal rules in my table of
contents:

  

I simple removed that line for each.

Can you provide a simple file showing the problem? This kind of thing is 
also fairly easy to fix, usually.


Richard



Re: lyx 2.0.0 URL error "unable to open external file" on Ubuntu 11.10 . File path is correct!!

2012-04-03 Thread Paul A . Rubin
You seem to have an errant space at the start of the file path.  Is it visible
if you do View > Source with the cursor proximate to that line?

If the space does not occur in the path as you entered it, I would suggest
constructing a minimal example and posting it to the list.

Paul



LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread BOB Merhebi
Hello all,

I've been testing Ubuntu12.04 lately & just now I was thinking of using LyX
on it. TO my big surprise the LyX requires a large download of ~450 MB+. I
am shocked!!! IS that the true size? If not mistaken I recall that on 10.04
it required ~ 25MB. Am I mistaken? Is there something wrong?

--
Sincerely Yours,
Merhebi, Bob


Re: LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread Rob Oakes
On 4/3/2012 10:01 AM, BOB Merhebi wrote:
> Hello all,
>
> I've been testing Ubuntu12.04 lately & just now I was thinking of
> using LyX on it. TO my big surprise the LyX requires a large download
> of ~450 MB+. I am shocked!!! IS that the true size? If not mistaken I
> recall that on 10.04 it required ~ 25MB. Am I mistaken? Is there
> something wrong?
Hi Bob,

The download from Ubuntu was probably a debug build. These are much
larger than the release build. You might want to contact the Ubuntu
project and let them know that the build is much larger than expected.
Liviu Andronic manages a PPA with an unofficial build, which might be
less damaging to your Internet quota
(https://launchpad.net/~lyx-devel/+archive/release). I'm not sure he's
added support for Precise Penguin, yet, though.

Another idea is that they may have changed the LaTeX dependencies. If
so, it might be downloading a lot of extra TeX packages that aren't needed.

Regardless, I would definitely get in touch with the Ubuntu project. To
the best of my knowledge, they don't subscribe to this list, and it's
something that they will want to hear about.

Cheers,

Rob


Re: LyX on Ubuntu Precise (12.04): big download size!

2012-04-03 Thread Liviu Andronic
On Tue, Apr 3, 2012 at 6:07 PM, Rob Oakes  wrote:
> The download from Ubuntu was probably a debug build. These are much
> larger than the release build. You might want to contact the Ubuntu
> project and let them know that the build is much larger than expected.
> Liviu Andronic manages a PPA with an unofficial build, which might be
> less damaging to your Internet quota
> (https://launchpad.net/~lyx-devel/+archive/release). I'm not sure he's
> added support for Precise Penguin, yet, though.
>
A version for Precise is available at my experimental PPA [1]. When I
get some positive feedback on the build and/or Precise gets released,
I will move it to the lyx-devel PPA.

[1] https://launchpad.net/~landronimirc/+archive/experimental


> Another idea is that they may have changed the LaTeX dependencies. If
> so, it might be downloading a lot of extra TeX packages that aren't needed.
>
I am also suspecting that your total download size contains a bunch of
LaTeX dependencies. Else, see Rob's comments.

Regards
Liviu


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to a single point)

On Tue, 3 Apr 2012, Richard Heck wrote:

> > 1) the XHTML has:
> > 
> >   http://www.w3.org/1998/Math/MathML;>
> >   
> >
> > 1
> > 
> > 3
> > 
> >
> >   
> > 
> > but the epub shows "13" and mobi has nothing.
> > 
> Does mobi handle MathML? Maybe you should try using HTML for math export
> (under Document> Settings> Output).

I don't think any devices support MathML yet.

I made that change. And the new xhtml displayed as:

  1
-
  3

(long vertical vinculum)

So I removed these math fractions from my lyx document and replaced with 
the special symbol from the Number Forms category.

This now works for my XHTML and the EPUB and MOBI converted from it. The 
XHTML now contains this character: ??? 

This adds one issue -- I now have some Lyx/LaTeX in my XHTML output (and 
EPUB and MOBI):


\newcommand*\LyXonethird{\mbox{\raisebox{.8ex}{1}\kern-.175em\raisebox{.2ex}{/}\kern-.18em\raisebox{-.2ex}{3}}}

That line is included as content at the start of my document.

I can easily remove it to workaround this issue.



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to single discussion item...)

On Tue, 3 Apr 2012, Richard Heck wrote:

> > 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.
> > 
> This can be easily customized, and maybe we should just make a module for it.
> Do something like this in your LyX file, under Document> Settings> Local
> Layout:
> 
> Format 31
> 
> InsetLayout Foot
> HTMLStyle
> now put here whatever CSS you'd like to shape the footnotes...
> EndHTMLStyle
> End
> 
> At some point, we'll also provide the possibility to export footnotes as
> endnotes instead. There's some code for this already, in fact, but I have been
> too busy to finish it.

Thank you.

I set it to:

InsetLayout Foot
HTMLStyle
span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { font-size: small; text-indent: 0em; margin-right: 15mm; 
margin-left: 15mm; margin-top: 5pt; margin-bottom: 5pt; }
EndHTMLStyle
End

And that worked for me for the XHTML and my epub and mobi files.

(By the way, the \newcommand junk left in my XHTML file as mentioned in 
previous email caused calibre to not recognize my footnotes and 
converted foot to standard, footlabel to flexurl and footinner to 
standard. Once I manually removed that line from the XHTML file, then it 
worked.)

So I don't have "foot" notes, but simply a note in smaller font and 
indented on next line after the superscript number.

Thanks again for the lyx hint.

By the way, my lyx file doesn't seem to have any way to remove the 
"Local Layout". Even if I clear it, press validate and click ok, then go 
back to settings it is there again.


Writing Arabic Documents in Lyx

2012-04-03 Thread Eisa Alanazi
Hello, 

I have LyX 2 on Mac OS X 10.7 and want to write some arabic texts into the lyx 
documents (or for Tex at least). 
doing some googling I've found some packages but not knowing how to configure 
them properly. 
is there any simple guide to write Arabic in Lyx?


Thanks,
Eisa 



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
(responding to one item below)

On Tue, 3 Apr 2012, Richard Heck wrote:

> > 6) The xhtml output had links to horizontal rules in my table of
> > contents:
> > 
> >> href='#magicparlabel-236' class='tocarrow'>
> > 
> > I simple removed that line for each.
> > 
> Can you provide a simple file showing the problem? This kind of thing is also
> fairly easy to fix, usually.

I didn't notice before ... but now I realize that all my Section* (note 
the asterisk) were added to my table of contents.  I had the following 
code to put a horizontal rule before my summary at end of each chapter. 
(It looks nice in my PDF.) This is what caused the above error.

\begin_layout Section*
\noindent
\begin_inset CommandInset line
LatexCommand rule
offset "0.5ex"
width "100line%"
height "1pt"

\end_inset


\end_layout



I don't mind that lyxhtml exported all my Section* (except the 
horizontal rule above) into my ebook table of contents. It looks useful. 
But that is different that my PDF.


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 02:47 PM, Jeremy C. Reed wrote:

(responding to single discussion item...)

On Tue, 3 Apr 2012, Richard Heck wrote:


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.


This can be easily customized, and maybe we should just make a module for it.
Do something like this in your LyX file, under Document>  Settings>  Local
Layout:

Format 31

InsetLayout Foot
 HTMLStyle
 now put here whatever CSS you'd like to shape the footnotes...
 EndHTMLStyle
End

At some point, we'll also provide the possibility to export footnotes as
endnotes instead. There's some code for this already, in fact, but I have been
too busy to finish it.

Thank you.

I set it to:

InsetLayout Foot
 HTMLStyle
 span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { font-size: small; text-indent: 0em; margin-right: 15mm;
margin-left: 15mm; margin-top: 5pt; margin-bottom: 5pt; }
 EndHTMLStyle
End

And that worked for me for the XHTML and my epub and mobi files.


Good. I tried hard to make this easily customizable.


(By the way, the \newcommand junk left in my XHTML file as mentioned in
previous email caused calibre to not recognize my footnotes and
converted foot to standard, footlabel to flexurl and footinner to
standard. Once I manually removed that line from the XHTML file, then it
worked.)


I'll try to figure out why that was there.


By the way, my lyx file doesn't seem to have any way to remove the
"Local Layout". Even if I clear it, press validate and click ok, then go
back to settings it is there again.
|

I thought I'd fixed that. Fixed now.

Richard




Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 03:07 PM, Jeremy C. Reed wrote:

(responding to one item below)

On Tue, 3 Apr 2012, Richard Heck wrote:


6) The xhtml output had links to horizontal rules in my table of
contents:

   

I simple removed that line for each.


Can you provide a simple file showing the problem? This kind of thing is also
fairly easy to fix, usually.

I didn't notice before ... but now I realize that all my Section* (note
the asterisk) were added to my table of contents.  I had the following
code to put a horizontal rule before my summary at end of each chapter.
(It looks nice in my PDF.) This is what caused the above error.

It would help me debug it if you could produce a small example file that 
makes this happen. I'm not sure why the output mechanism is choking.


Regarding the Section* stuff in the TOC, I'm moderately surprised it did 
that. Does it seem right that itt should do it, or wrong? Or should it 
maybe be configurable?


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:

(responding to a single point)

On Tue, 3 Apr 2012, Richard Heck wrote:


1) the XHTML has:

   http://www.w3.org/1998/Math/MathML;>
   

 1
 
 3
 

   

but the epub shows "13" and mobi has nothing.


Does mobi handle MathML? Maybe you should try using HTML for math export
(under Document>  Settings>  Output).

I don't think any devices support MathML yet.

I made that change. And the new xhtml displayed as:

   1
-
   3

(long vertical vinculum)


Fractions in HTML are not an easy thing to do, I'm afraid.


So I removed these math fractions from my lyx document and replaced with
the special symbol from the Number Forms category.

This now works for my XHTML and the EPUB and MOBI converted from it. The
XHTML now contains this character: ???


Did the character go missing, or...?

Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
Another issue with lyxhtml export:

7) Index is sorted with uppercase before lowercase; that is all A-Z 
before any a-z.

Anyway to configure it so it will consider the uppercase/lowercase the 
same for sort comparisons?


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
On Tue, 3 Apr 2012, Richard Heck wrote:

> It would help me debug it if you could produce a small example file that makes
> this happen. I'm not sure why the output mechanism is choking.

http://reedmedia.net/~reed/tmp/sample1.lyx
http://reedmedia.net/~reed/tmp/sample1.xhtml(see the extra links in 
ToC)



Re: Silent install

2012-04-03 Thread Julien Rioux

On 27/03/2012 4:37 AM, Indrek Tuula wrote:

Hi,

Standard way to achieve such requirements are following:

1. Convert .exe to .msi. You can download some tool for internet what
make it done
2. Modify content of .msi with some editor. Microsoft have free tool, it
is called orsa.
3. Install modified msi. For final customization there are command
prompt tool called msiexec available. E.g. option /i install the packet and
option /quiet  provide installation with no UI. Also it provide other
options such as logging and rebooting a client machine.

I also converted lyx.2.0.3. installation exe to msi with free tool. I would
say result is not feature reach. You can compare it for example Google
earth or MS Office corresponding msi packets. Per my experience that mean
  your task is time consuming. Also make clear logic of orsa need extra time
because it have kind of database :)

I suggest on the first point convert exe to msi and install it with msiexec
tool on quiet mode with out no editing content of msi at all. If you have
luck, it solve your problems

Br,
Indrek

On 26 March 2012 17:36, Patrik Simunovic  wrote:


  Hi i'm trying to install LyX 2.0.3-1 silently with the /S command, but
at the end of the installation the package installation window pops up and
asks me if i want to download latex and alot more packages.
Is there a way to skip these steps so the install can finsih silent? i
have installed Miktex 2.9.4407 before LyX 2.0.3.

Patrik





To those interested to play further with this, the sources for the 
installer are part of the LyX git repository. I am sure that help with 
the Windows installer, including having a silent variant of it, would be 
welcome.


Cheers,
Julien



RE: Writing Arabic Documents in Lyx

2012-04-03 Thread Scott Kostyshak
From: Eisa Alanazi [eisalen...@yahoo.com]
Sent: Tuesday, April 03, 2012 3:01 PM
To: lyx-users@lists.lyx.org
Subject: Writing Arabic Documents in Lyx

>I have LyX 2 on Mac OS X 10.7 and want to write some arabic texts into the lyx 
>documents (or for Tex at least).
>doing some googling I've found some packages but not knowing how to configure 
>them properly.
>is there any simple guide to write Arabic in Lyx?

Hi Elsa,

See the link here:
http://wiki.lyx.org/Windows/Arabic

Even though the url says "Windows" there is also information for Linux. Does 
that help you with your Mac? Please feel free to update the information there 
or add Mac specific solutions as you find them. Just go to "Edit".

Thanks,

Scott

Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 04:33 PM, Jeremy C. Reed wrote:

Another issue with lyxhtml export:

7) Index is sorted with uppercase before lowercase; that is all A-Z
before any a-z.

Anyway to configure it so it will consider the uppercase/lowercase the
same for sort comparisons?

Oversight. I've just fixed it for 2.0.4, but it's a source issue. You 
can download the current version from git if you wish and compile that.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 04:39 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:


It would help me debug it if you could produce a small example file that makes
this happen. I'm not sure why the output mechanism is choking.

http://reedmedia.net/~reed/tmp/sample1.lyx
http://reedmedia.net/~reed/tmp/sample1.xhtml(see the extra links in
ToC)

What's causing the problem is that the horizontal line is itself in a 
\section* environment, which means that LaTeX thinks you have two 
\section*'s in a row. That doesn't matter very much, it turns out, from 
LaTeX's point of view, but it's probably not what you want. (If you look 
at the HTML, you'll see that the rule is in an .) I'd put the rule 
just in a Standard environment. If you do that, then it works as you'd 
want, I think.


From the point of view of XHTML output, what's happening is that LyX 
doesn't try to put the rule itself in the TOC, but then it sees no 
content there at all, and that makes it unhappy.


Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Jeremy C. Reed
On Tue, 3 Apr 2012, Richard Heck wrote:

> Oversight. I've just fixed it for 2.0.4, but it's a source issue. You can
> download the current version from git if you wish and compile that.

Can someone point me to anonymous GIT details?

I found http://wiki.lyx.org/Devel/Git  if I need an account then who do 
I send a public SSH key to?


Can't export EmbeddedObjects.lyx in 2.0.3

2012-04-03 Thread Yngve Ådlandsvik

Hi,

I get an error when I try to export the Embedded Objects help file that 
comes with Lyx 2.0.3 to pdf with pdflatex. This is the error message:


LaTeX Info: Redefining \selectfont on input line 126.

)

! Undefined control sequence.

 \@EverySelectfont@Init

l.144 \if@raggedtwoe@footmisc

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.


I think I have all the required packages installed, but I don't 
understand the error message. Any help would be greatly appreciated.


Yngve


Re: lyxhtml and calibre and mobi and epub

2012-04-03 Thread Richard Heck

On 04/03/2012 06:33 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:


Oversight. I've just fixed it for 2.0.4, but it's a source issue. You can
download the current version from git if you wish and compile that.

Can someone point me to anonymous GIT details?


http://wiki.lyx.org/Devel/LyXGit

rh



KOMA report and localisation problem.

2012-04-03 Thread Hannu Vuolasaho

Hi!

I'm writing KOMA report class document and it behaves weird. In Lyx I have Part 
N and in pdf I get part in Finnish as expected. This is acceptable even I was 
curious if it would translate.
Now I have source code listing. The caption of source listing says in Finnish 
that it is listing (Listaus 1.2:)  in Lyx. In pdf I get caption (Listing 1.2:) 
in English . It's translated wrong direction. It can be anything in lyx when 
I'm editing, but in output it should be correct.

Is this easily fixable and where should I fix it? Document->preferences and 
listings has some options so it would be my guess but I have no idea how Lyx' 
localisation works. I just use it and get desirable output usually.

Best regards,
Hannu Vuolasaho