Re: Special Characters in References

2013-06-07 Thread Wolfgang Engelmann
Am Thursday, 6. June 2013, 22:45:11 schrieb Tim Wescott:
 Bibliography environment (at least so I think).  Here's a file that
 shows the problem.
 
 On Thu, 2013-06-06 at 14:09 -0400, Richard Heck wrote:
  On 06/06/2013 02:05 PM, Tim Wescott wrote:
   I'm trying to reference a book by a Swedish author.  Putting
   {\AA}strom95 as a key in my bibliographic entry causes the table at
   the end of the article to print correctly, but in the text I get
   [?].
   
   Is there a way to do this, or am I stuck with Astrom or Aastrom
   (neither of which thrills me).
  
  Is this using BibTeX or the bibliography environment? If the latter,
  can you post a simple example file?
  
  rh

Here it works
Wolfgang


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Jean-Marc Lasgouttes

06/06/2013 18:35, Richard Heck:

Span is more or less allowed everywhere. Of course, span is by default
inline. But you can get it to act like a div by setting display:block in
CSS. Cheating, no doubt.


So a span is designed to be included in the flow of the text, like a 
footnote is... Why is that cheating?


JMarc



Lyx v 2.0.6 unable to view files

2013-06-07 Thread Rasmus K
Hi!

I am having issues with lyx. Since an upgrade of my Ubuntu machine to
13.04, I am unable to view files. No files can be viewed. After pressing
view, the program just stalls. The output log is just (after pressing
new document and just writing test):


Running: pdflatex newfile1.tex  /dev/null
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./newfile1.tex
LaTeX2e 2011/06/27
Babel v3.8m and hyphenation patterns for english, dumylang,
noyphenation, loaded.




Nothing happens, but the rotating progress indicator in the lyx window
is animating. After a while, Lyx asks if I want to stop the process, and
then I get the following messages:

support/Systemcall.cpp (265): Systemcall: 'pdflatex newfile1.tex' did
not finish!
support/Systemcall.cpp (266): error The process timed out. It might be
restarted automatically.
support/Systemcall.cpp (267): status The process exited normally.

I have tried purging and reinstalling texlive* and lyx. I have tried
running pdflatex directly from the command line, and this works and
completes more or less instantly, producing a pdf. However, Lyx is
unable to view any type of format.

Any help from the list would be much appreciated.

Thanks,
Rasmus


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/07/2013 04:51 AM, Jean-Marc Lasgouttes wrote:

06/06/2013 18:35, Richard Heck:

Span is more or less allowed everywhere. Of course, span is by default
inline. But you can get it to act like a div by setting display:block in
CSS. Cheating, no doubt.


So a span is designed to be included in the flow of the text, like a 
footnote is... Why is that cheating?


span is really meant for things like text ranges.

rh



Re: document class

2013-06-07 Thread Richard Heck

On 06/06/2013 07:04 PM, Y.A. Sharif wrote:



I guess MikTex got installed properly .
when I try to start lyx it is showing: The Layout file: article could 
not be found. A default textclass with default layouts will be used . 
LyX will not be able to produce correct output.
And the very beginning before the previous message it shows: LyX will 
only have minimal functionality because no text class have been found. 
You can either try to reconfigure LyX normally, try to reconfigure 
without checking your LaTeX installation, or continue.


Didn't you post about this before?

There is a problem with your TeX installation.

rh



Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/06/2013 05:12 PM, Steve Litt wrote:


How would I override the stdsections.inc styles' HTMLTag in my layout?
My layout files don't define styles already given me by LyX's book
style, but instead just add new styles. What would be the quickest,
easiest way within a layout file to modify HTMLTag for Standard, Part,
Section, Subsection, SubSubSection, Paragraph and SubParagraph? Could I
do something like this Assuming starting with the Article document
class and not using Part:

Style Section
   CopyStyle Section
   HTMLTag h1
End

Style Standard
   CopyStyle Standard
   HTMLTag p
End


You don't need the CopyStyle stuff. The rest will update the style if
it already exists, not over-write it.

Richard



Re: Line breaks in URLs

2013-06-07 Thread Ray Rashif
On 7 June 2013 04:35, Tim Wescott t...@wescottdesign.com wrote:

 I tried putting a really really long URL into Lyx, expecting that it
 would get line breaks forced as necessary to fit.

 That didn't happen -- instead, it just gets truncated.

 Is there a way to force line breaks in a URL, or even (oh be still my
 heart) to tell Lyx to make it happen?

 TIA

 --

 Tim Wescott
 www.wescottdesign.com
 Control  Communications systems, circuit  software design.


I've had the best luck with Insert  URL when I want verbatim links and not
hyperlinks behind text.

-- 
GPG/PGP ID: C0711BF1


Re: document class

2013-06-07 Thread Jacob Bishop
Sharif,

If you could respond to Paul's questions, that would help us know how to
help. I run LyX on Windows 7 all the time, and I would be glad to help if
you can just give us some more information on what is happening.

Jacob


Re: Lyx v 2.0.6 unable to view files

2013-06-07 Thread Paul Rubin
Rasmus K rasmusk at kth.se writes:

Does File  Export  PDF (pdflatex) generate a correct PDF file? If so, the
problem is with LyX calling a viewer; if not, the problem is with LyX
calling pdflatex.

Paul




Re: Place float:figure in this subparagraph

2013-06-07 Thread Paul Rubin
Are you inserting them with Insert  Float  Figure? If so, right click the
handle labeled Float: Figure, choose Settings..., and deselect Use
default placement and try Here definitely instead.

Paul 




Re: Document class missing after installation

2013-06-07 Thread Y.A. Sharif


 






 


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed response 
to your email. I went step by step according to your suggestions. 
1. I could not find any configure.log file under C:\users\...\Roaming\LyX 2.0. 
There was only one folder named cache and a file outside the folder named 
session.
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. But when 
I ran the other one with configure.py it showed the following messages:
File C:\Program Files (x86)\LyX 2.0\Resources\configure.py, line 11, in , 
module
import  sys, os, re , shutil, glob, logging, subprocess
File C:\python25\lib\subprocess.py, line375, inmodule
import threading
File C:\python25\lib\threading.py, line 13, in module

from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.

I really appreciate your help and time.

Thank you very much.

Regards
Sharif



 From: Paul A. Rubin ru...@msu.edu
To: Y.A. Sharif yasha...@yahoo.com 
Sent: Friday, June 7, 2013 9:37 AM
Subject: Re: Document class missing after installation
 


Y.A.,

LyX creates a user directory for you, where it stores your
preferences and other local files. On my Windows 7 partition, the
user directory is C:\Users\Paul\AppData\Roaming\LyX2.0. If you have
trouble finding it, Help  About LyX should point you to it.

In that directory, there should be a text file named configure.log.
(If not, keep reading, I'll get to that case.) It's generated when
the Python configuration script runs. (This is script is both run at
installation and when you click Tools  Reconfigure in LyX.) In
it, you should see lines like the following:

INFO: checking for a Latex2e program... 
INFO: +checking for latex...  yes 
INFO: checking for a DVI postprocessing program... 
INFO: +checking for pplatex...  yes 

and eventually

INFO: checking for the pdflatex program... 
INFO: +checking for pdflatex...  yes 

If they read no, it means LyX failed to detect MiKTeX for some
reason. I've seen this happen when the user had Cygwin installed,
for instance. I don't know if it is still true, but Cygwin used to
come with a broken copy of LaTeX, and if Cygwin was in front of
MiKTeX on the system command path, LyX would test the Cygwin version
of latex.exe and conclude that there was no working LaTeX compiler
on the system.

If the log shows that LyX found MiKTeX ('yes' responses), go back to
a DOS prompt and run 'kpsewhich article.cls' (if the article class
is missing according to LyX) and make sure that MiKTeX finds it.
If that looks correct, or if the log file is missing, then I suggest
you cd to your LyX user directory and run the configuration script
in a DOS window. The command line will look something like the
following (allowing for the possibility that your installation path
is different):

C:\Program Files (x86)\LyX20\Python\python.exe C:\Program Files
(x86)\LyX20\Resources\configure.py

See if any error messages appear.

Paul


On 06/06/2013 06:44 PM, Y.A. Sharif wrote:



 
Thankk you Paul for your reply.
I have checked according to your suggestion. It shows in DOS prmopt :this is 
pdfTeX, Version 3.14-...-1.40.13MiKTeX 2.9
But I could not understand your 2nd paragraph. Do you want me to check the log 
generated by lyx ? Little confused, could you explain little more.
Thank you.


Y.A.Sharif






 From: Paul Rubin ru...@msu.edu
To: lyx-users@lists.lyx.org 
Sent: Thursday, June 6, 2013 3:11 PM
Subject: Re: Document class missing after installation
 

Is the MiKTeX bin directory on your system path? Can you
  run latex --version
at a DOS prompt (without supplying a path to MiKTeX) and
  get a response
with a plausible version date?

If yes, take a look at the log generated by the installer
  (should be
in your user directory, I think) and see if it found a
  LaTeX installation.
You might want to publish the log to the list.

Paul






Re: attachment of the error for LYX on windows 7

2013-06-07 Thread Richard Heck

On 06/07/2013 03:34 PM, Y.A. Sharif wrote:

Dear Rubin and  Jacob
I am attaching here the snapshots of my lyx path and error messages.
Looking forward for your kind reply.


The configure log should be in your LyX user directory. Go to HelpAbout 
LyX to find out where that is.


Richard



Re: Document class missing after installation

2013-06-07 Thread Richard Heck

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed 
response to your email. I went step by step according to your 
suggestions.
1. I could not find any configure.log file under 
C:\users\...\Roaming\LyX 2.0. There was only one folder named cache 
and a file outside the folder named session.
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File C:\Program Files (x86)\LyX 2.0\Resources\configure.py, line 11, 
in , module

import  sys, os, re , shutil, glob, logging, subprocess
File C:\python25\lib\subprocess.py, line375, inmodule
import threading
File C:\python25\lib\threading.py, line 13, in module
from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.


I'm not on Windows, again, but the problem appears to be that there is 
no collections.py file on your system. It looks as though the wrong 
version of python is being run.


You should be able to configure manually. Open a DOS window and get into 
your user directory. Then run the configuration script manually, however 
you did it before.


Richard



Re: Document class missing after installation

2013-06-07 Thread Paul A. Rubin
You may need to add the path to Python to your system command path (so 
that it can find modules). In a DOS window, while in your LyX user 
directory, try the following:


set PATH=%PATH%;C:\Program Files(x86)\LyX20\Python\
python C:\Program Files (x86)\LyX 2.0\Resources\configure.py

Hopefully that will allow the script to execute.

Paul

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File C:\Program Files (x86)\LyX 2.0\Resources\configure.py, line 11, 
in , module

import  sys, os, re , shutil, glob, logging, subprocess
File C:\python25\lib\subprocess.py, line375, inmodule
import threading
File C:\python25\lib\threading.py, line 13, in module
from collections import deque
Import error: No module named collections





Re: Why div in HTML exports instead of p?

2013-06-07 Thread Steve Litt
On Fri, 07 Jun 2013 11:51:34 -0400
Richard Heck rgh...@lyx.org wrote:

 On 06/06/2013 05:12 PM, Steve Litt wrote:
 
  How would I override the stdsections.inc styles' HTMLTag in my
  layout? My layout files don't define styles already given me by
  LyX's book style, but instead just add new styles. What would be
  the quickest, easiest way within a layout file to modify HTMLTag
  for Standard, Part, Section, Subsection, SubSubSection, Paragraph
  and SubParagraph? Could I do something like this Assuming starting
  with the Article document class and not using Part:
 
  Style Section
 CopyStyle Section
 HTMLTag h1
  End
 
  Style Standard
 CopyStyle Standard
 HTMLTag p
  End
 
 You don't need the CopyStyle stuff. The rest will update the style
 if it already exists, not over-write it.
 
 Richard

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default div.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change div to p in my layout file -- it remained div regardless
of how I set HTMLTag. There were other things that meant I'd need to do
a lot of cleanup before a quickly typed LyX doc turned into a quick and
dirty HTML doc I could maybe modify slightly and then throw up on the
web, and that's just what I want for web page editing.

Just to make it clear, this is my personal itch and I'm going to do it.
But just in case others enjoy what I create (I created VimOutliner as a
personal itch and we saw how that turned out), I'd like to, to some
degree, know LyX best practices, or if those are to difficult for me,
LyX decent practices.

This will NOT be YAHC (Yet Another HTML Converter). It will be a small
subset of LyX's capabilities, purposed not to turn a document into
HTML, but to turn LyX into a quick to use HTML authoring tool for HTML
web pages. It will in no way try to replace the existing HTML
Converters, and from what I've seen so far, the existing HTML
converters would have a hard time replacing what I'm trying to make.

Due to my schedule, I can't start it til July. My plan of
attack is to start it as a separate shellscript that first exports to
LaTeX, and then turns the LaTeX into HTML, which should be fairly easy.
The first version will be a Vim/EX script -- these are what I use to do
complex text reformatting in one day, and they help me understand the
various steps that need to be done. The second step will be an
equivalent shellscript that's primarily a pipeline with bunches of grep
and sed commands, perhaps with some hand coded stuff thrown in.

The final version will be mostly hand coded. I could easily do it in
Lua, C or Python, and could be persuaded to do it in Perl or Ruby. Am I
correct in assuming that Python is the LyX project's scripting language
of choice, and stuff like what I'm talking about is preferred to be in
Python over C?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/07/2013 05:28 PM, Steve Litt wrote:

On Fri, 07 Jun 2013 11:51:34 -0400
Richard Heck rgh...@lyx.org wrote:


On 06/06/2013 05:12 PM, Steve Litt wrote:

How would I override the stdsections.inc styles' HTMLTag in my
layout? My layout files don't define styles already given me by
LyX's book style, but instead just add new styles. What would be
the quickest, easiest way within a layout file to modify HTMLTag
for Standard, Part, Section, Subsection, SubSubSection, Paragraph
and SubParagraph? Could I do something like this Assuming starting
with the Article document class and not using Part:

Style Section
CopyStyle Section
HTMLTag h1
End

Style Standard
CopyStyle Standard
HTMLTag p
End

You don't need the CopyStyle stuff. The rest will update the style
if it already exists, not over-write it.

Richard

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default div.


See the attached. I've put the relevant layout into Document
Setttings Local Layout.

Note that load order of layout stuff matters. You would need to
load stdsections.inc, or whatever loads it, first, and then do your
customizations. One nice thing about Local Layout is that it
always comes last.

Richard



h.lyx
Description: application/lyx


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Steve Litt
On Fri, 07 Jun 2013 17:52:18 -0400
Richard Heck rgh...@lyx.org wrote:

 On 06/07/2013 05:28 PM, Steve Litt wrote:

  Thanks Richard,
 
  With or without the CopyStyle, it wouldn't substitute the tag in
  HTMLTag for the default div.
 
 See the attached. I've put the relevant layout into Document
 Setttings Local Layout.

Hi Richard,

The attached doc was doc class article. The only thing I saw that
indicated it was tweaked was the document preamble in the LyX file
contained:

\usepackage{heck}

But I don't know what was in package heck or where to put it.

 
 Note that load order of layout stuff matters. You would need to
 load stdsections.inc, or whatever loads it, first,

Would I do that at the top of my layout file?

 and then do your
 customizations. One nice thing about Local Layout is that it
 always comes last.

But then again, to use LyX as a quickie web page writer, I'd need to
have one central layout file not local.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/07/2013 06:22 PM, Steve Litt wrote:

On Fri, 07 Jun 2013 17:52:18 -0400
Richard Heck rgh...@lyx.org wrote:


On 06/07/2013 05:28 PM, Steve Litt wrote:

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default div.

See the attached. I've put the relevant layout into Document
Setttings Local Layout.

Hi Richard,

The attached doc was doc class article. The only thing I saw that
indicated it was tweaked was the document preamble in the LyX file
contained:

\usepackage{heck}

But I don't know what was in package heck or where to put it.


That's not relevant. See Document Settings Local Layout.




Note that load order of layout stuff matters. You would need to
load stdsections.inc, or whatever loads it, first,

Would I do that at the top of my layout file?


Post the layout file if not sure.

Richard



Re: Special Characters in References

2013-06-07 Thread Wolfgang Engelmann
Am Thursday, 6. June 2013, 22:45:11 schrieb Tim Wescott:
 Bibliography environment (at least so I think).  Here's a file that
 shows the problem.
 
 On Thu, 2013-06-06 at 14:09 -0400, Richard Heck wrote:
  On 06/06/2013 02:05 PM, Tim Wescott wrote:
   I'm trying to reference a book by a Swedish author.  Putting
   {\AA}strom95 as a key in my bibliographic entry causes the table at
   the end of the article to print correctly, but in the text I get
   [?].
   
   Is there a way to do this, or am I stuck with Astrom or Aastrom
   (neither of which thrills me).
  
  Is this using BibTeX or the bibliography environment? If the latter,
  can you post a simple example file?
  
  rh

Here it works
Wolfgang


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Jean-Marc Lasgouttes

06/06/2013 18:35, Richard Heck:

Span is more or less allowed everywhere. Of course, span is by default
inline. But you can get it to act like a div by setting display:block in
CSS. Cheating, no doubt.


So a span is designed to be included in the flow of the text, like a 
footnote is... Why is that cheating?


JMarc



Lyx v 2.0.6 unable to view files

2013-06-07 Thread Rasmus K
Hi!

I am having issues with lyx. Since an upgrade of my Ubuntu machine to
13.04, I am unable to view files. No files can be viewed. After pressing
view, the program just stalls. The output log is just (after pressing
new document and just writing test):


Running: pdflatex newfile1.tex  /dev/null
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./newfile1.tex
LaTeX2e 2011/06/27
Babel v3.8m and hyphenation patterns for english, dumylang,
noyphenation, loaded.




Nothing happens, but the rotating progress indicator in the lyx window
is animating. After a while, Lyx asks if I want to stop the process, and
then I get the following messages:

support/Systemcall.cpp (265): Systemcall: 'pdflatex newfile1.tex' did
not finish!
support/Systemcall.cpp (266): error The process timed out. It might be
restarted automatically.
support/Systemcall.cpp (267): status The process exited normally.

I have tried purging and reinstalling texlive* and lyx. I have tried
running pdflatex directly from the command line, and this works and
completes more or less instantly, producing a pdf. However, Lyx is
unable to view any type of format.

Any help from the list would be much appreciated.

Thanks,
Rasmus


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/07/2013 04:51 AM, Jean-Marc Lasgouttes wrote:

06/06/2013 18:35, Richard Heck:

Span is more or less allowed everywhere. Of course, span is by default
inline. But you can get it to act like a div by setting display:block in
CSS. Cheating, no doubt.


So a span is designed to be included in the flow of the text, like a 
footnote is... Why is that cheating?


span is really meant for things like text ranges.

rh



Re: document class

2013-06-07 Thread Richard Heck

On 06/06/2013 07:04 PM, Y.A. Sharif wrote:



I guess MikTex got installed properly .
when I try to start lyx it is showing: The Layout file: article could 
not be found. A default textclass with default layouts will be used . 
LyX will not be able to produce correct output.
And the very beginning before the previous message it shows: LyX will 
only have minimal functionality because no text class have been found. 
You can either try to reconfigure LyX normally, try to reconfigure 
without checking your LaTeX installation, or continue.


Didn't you post about this before?

There is a problem with your TeX installation.

rh



Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/06/2013 05:12 PM, Steve Litt wrote:


How would I override the stdsections.inc styles' HTMLTag in my layout?
My layout files don't define styles already given me by LyX's book
style, but instead just add new styles. What would be the quickest,
easiest way within a layout file to modify HTMLTag for Standard, Part,
Section, Subsection, SubSubSection, Paragraph and SubParagraph? Could I
do something like this Assuming starting with the Article document
class and not using Part:

Style Section
   CopyStyle Section
   HTMLTag h1
End

Style Standard
   CopyStyle Standard
   HTMLTag p
End


You don't need the CopyStyle stuff. The rest will update the style if
it already exists, not over-write it.

Richard



Re: Line breaks in URLs

2013-06-07 Thread Ray Rashif
On 7 June 2013 04:35, Tim Wescott t...@wescottdesign.com wrote:

 I tried putting a really really long URL into Lyx, expecting that it
 would get line breaks forced as necessary to fit.

 That didn't happen -- instead, it just gets truncated.

 Is there a way to force line breaks in a URL, or even (oh be still my
 heart) to tell Lyx to make it happen?

 TIA

 --

 Tim Wescott
 www.wescottdesign.com
 Control  Communications systems, circuit  software design.


I've had the best luck with Insert  URL when I want verbatim links and not
hyperlinks behind text.

-- 
GPG/PGP ID: C0711BF1


Re: document class

2013-06-07 Thread Jacob Bishop
Sharif,

If you could respond to Paul's questions, that would help us know how to
help. I run LyX on Windows 7 all the time, and I would be glad to help if
you can just give us some more information on what is happening.

Jacob


Re: Lyx v 2.0.6 unable to view files

2013-06-07 Thread Paul Rubin
Rasmus K rasmusk at kth.se writes:

Does File  Export  PDF (pdflatex) generate a correct PDF file? If so, the
problem is with LyX calling a viewer; if not, the problem is with LyX
calling pdflatex.

Paul




Re: Place float:figure in this subparagraph

2013-06-07 Thread Paul Rubin
Are you inserting them with Insert  Float  Figure? If so, right click the
handle labeled Float: Figure, choose Settings..., and deselect Use
default placement and try Here definitely instead.

Paul 




Re: Document class missing after installation

2013-06-07 Thread Y.A. Sharif


 






 


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed response 
to your email. I went step by step according to your suggestions. 
1. I could not find any configure.log file under C:\users\...\Roaming\LyX 2.0. 
There was only one folder named cache and a file outside the folder named 
session.
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. But when 
I ran the other one with configure.py it showed the following messages:
File C:\Program Files (x86)\LyX 2.0\Resources\configure.py, line 11, in , 
module
import  sys, os, re , shutil, glob, logging, subprocess
File C:\python25\lib\subprocess.py, line375, inmodule
import threading
File C:\python25\lib\threading.py, line 13, in module

from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.

I really appreciate your help and time.

Thank you very much.

Regards
Sharif



 From: Paul A. Rubin ru...@msu.edu
To: Y.A. Sharif yasha...@yahoo.com 
Sent: Friday, June 7, 2013 9:37 AM
Subject: Re: Document class missing after installation
 


Y.A.,

LyX creates a user directory for you, where it stores your
preferences and other local files. On my Windows 7 partition, the
user directory is C:\Users\Paul\AppData\Roaming\LyX2.0. If you have
trouble finding it, Help  About LyX should point you to it.

In that directory, there should be a text file named configure.log.
(If not, keep reading, I'll get to that case.) It's generated when
the Python configuration script runs. (This is script is both run at
installation and when you click Tools  Reconfigure in LyX.) In
it, you should see lines like the following:

INFO: checking for a Latex2e program... 
INFO: +checking for latex...  yes 
INFO: checking for a DVI postprocessing program... 
INFO: +checking for pplatex...  yes 

and eventually

INFO: checking for the pdflatex program... 
INFO: +checking for pdflatex...  yes 

If they read no, it means LyX failed to detect MiKTeX for some
reason. I've seen this happen when the user had Cygwin installed,
for instance. I don't know if it is still true, but Cygwin used to
come with a broken copy of LaTeX, and if Cygwin was in front of
MiKTeX on the system command path, LyX would test the Cygwin version
of latex.exe and conclude that there was no working LaTeX compiler
on the system.

If the log shows that LyX found MiKTeX ('yes' responses), go back to
a DOS prompt and run 'kpsewhich article.cls' (if the article class
is missing according to LyX) and make sure that MiKTeX finds it.
If that looks correct, or if the log file is missing, then I suggest
you cd to your LyX user directory and run the configuration script
in a DOS window. The command line will look something like the
following (allowing for the possibility that your installation path
is different):

C:\Program Files (x86)\LyX20\Python\python.exe C:\Program Files
(x86)\LyX20\Resources\configure.py

See if any error messages appear.

Paul


On 06/06/2013 06:44 PM, Y.A. Sharif wrote:



 
Thankk you Paul for your reply.
I have checked according to your suggestion. It shows in DOS prmopt :this is 
pdfTeX, Version 3.14-...-1.40.13MiKTeX 2.9
But I could not understand your 2nd paragraph. Do you want me to check the log 
generated by lyx ? Little confused, could you explain little more.
Thank you.


Y.A.Sharif






 From: Paul Rubin ru...@msu.edu
To: lyx-users@lists.lyx.org 
Sent: Thursday, June 6, 2013 3:11 PM
Subject: Re: Document class missing after installation
 

Is the MiKTeX bin directory on your system path? Can you
  run latex --version
at a DOS prompt (without supplying a path to MiKTeX) and
  get a response
with a plausible version date?

If yes, take a look at the log generated by the installer
  (should be
in your user directory, I think) and see if it found a
  LaTeX installation.
You might want to publish the log to the list.

Paul






Re: attachment of the error for LYX on windows 7

2013-06-07 Thread Richard Heck

On 06/07/2013 03:34 PM, Y.A. Sharif wrote:

Dear Rubin and  Jacob
I am attaching here the snapshots of my lyx path and error messages.
Looking forward for your kind reply.


The configure log should be in your LyX user directory. Go to HelpAbout 
LyX to find out where that is.


Richard



Re: Document class missing after installation

2013-06-07 Thread Richard Heck

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed 
response to your email. I went step by step according to your 
suggestions.
1. I could not find any configure.log file under 
C:\users\...\Roaming\LyX 2.0. There was only one folder named cache 
and a file outside the folder named session.
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File C:\Program Files (x86)\LyX 2.0\Resources\configure.py, line 11, 
in , module

import  sys, os, re , shutil, glob, logging, subprocess
File C:\python25\lib\subprocess.py, line375, inmodule
import threading
File C:\python25\lib\threading.py, line 13, in module
from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.


I'm not on Windows, again, but the problem appears to be that there is 
no collections.py file on your system. It looks as though the wrong 
version of python is being run.


You should be able to configure manually. Open a DOS window and get into 
your user directory. Then run the configuration script manually, however 
you did it before.


Richard



Re: Document class missing after installation

2013-06-07 Thread Paul A. Rubin
You may need to add the path to Python to your system command path (so 
that it can find modules). In a DOS window, while in your LyX user 
directory, try the following:


set PATH=%PATH%;C:\Program Files(x86)\LyX20\Python\
python C:\Program Files (x86)\LyX 2.0\Resources\configure.py

Hopefully that will allow the script to execute.

Paul

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File C:\Program Files (x86)\LyX 2.0\Resources\configure.py, line 11, 
in , module

import  sys, os, re , shutil, glob, logging, subprocess
File C:\python25\lib\subprocess.py, line375, inmodule
import threading
File C:\python25\lib\threading.py, line 13, in module
from collections import deque
Import error: No module named collections





Re: Why div in HTML exports instead of p?

2013-06-07 Thread Steve Litt
On Fri, 07 Jun 2013 11:51:34 -0400
Richard Heck rgh...@lyx.org wrote:

 On 06/06/2013 05:12 PM, Steve Litt wrote:
 
  How would I override the stdsections.inc styles' HTMLTag in my
  layout? My layout files don't define styles already given me by
  LyX's book style, but instead just add new styles. What would be
  the quickest, easiest way within a layout file to modify HTMLTag
  for Standard, Part, Section, Subsection, SubSubSection, Paragraph
  and SubParagraph? Could I do something like this Assuming starting
  with the Article document class and not using Part:
 
  Style Section
 CopyStyle Section
 HTMLTag h1
  End
 
  Style Standard
 CopyStyle Standard
 HTMLTag p
  End
 
 You don't need the CopyStyle stuff. The rest will update the style
 if it already exists, not over-write it.
 
 Richard

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default div.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change div to p in my layout file -- it remained div regardless
of how I set HTMLTag. There were other things that meant I'd need to do
a lot of cleanup before a quickly typed LyX doc turned into a quick and
dirty HTML doc I could maybe modify slightly and then throw up on the
web, and that's just what I want for web page editing.

Just to make it clear, this is my personal itch and I'm going to do it.
But just in case others enjoy what I create (I created VimOutliner as a
personal itch and we saw how that turned out), I'd like to, to some
degree, know LyX best practices, or if those are to difficult for me,
LyX decent practices.

This will NOT be YAHC (Yet Another HTML Converter). It will be a small
subset of LyX's capabilities, purposed not to turn a document into
HTML, but to turn LyX into a quick to use HTML authoring tool for HTML
web pages. It will in no way try to replace the existing HTML
Converters, and from what I've seen so far, the existing HTML
converters would have a hard time replacing what I'm trying to make.

Due to my schedule, I can't start it til July. My plan of
attack is to start it as a separate shellscript that first exports to
LaTeX, and then turns the LaTeX into HTML, which should be fairly easy.
The first version will be a Vim/EX script -- these are what I use to do
complex text reformatting in one day, and they help me understand the
various steps that need to be done. The second step will be an
equivalent shellscript that's primarily a pipeline with bunches of grep
and sed commands, perhaps with some hand coded stuff thrown in.

The final version will be mostly hand coded. I could easily do it in
Lua, C or Python, and could be persuaded to do it in Perl or Ruby. Am I
correct in assuming that Python is the LyX project's scripting language
of choice, and stuff like what I'm talking about is preferred to be in
Python over C?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/07/2013 05:28 PM, Steve Litt wrote:

On Fri, 07 Jun 2013 11:51:34 -0400
Richard Heck rgh...@lyx.org wrote:


On 06/06/2013 05:12 PM, Steve Litt wrote:

How would I override the stdsections.inc styles' HTMLTag in my
layout? My layout files don't define styles already given me by
LyX's book style, but instead just add new styles. What would be
the quickest, easiest way within a layout file to modify HTMLTag
for Standard, Part, Section, Subsection, SubSubSection, Paragraph
and SubParagraph? Could I do something like this Assuming starting
with the Article document class and not using Part:

Style Section
CopyStyle Section
HTMLTag h1
End

Style Standard
CopyStyle Standard
HTMLTag p
End

You don't need the CopyStyle stuff. The rest will update the style
if it already exists, not over-write it.

Richard

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default div.


See the attached. I've put the relevant layout into Document
Setttings Local Layout.

Note that load order of layout stuff matters. You would need to
load stdsections.inc, or whatever loads it, first, and then do your
customizations. One nice thing about Local Layout is that it
always comes last.

Richard



h.lyx
Description: application/lyx


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Steve Litt
On Fri, 07 Jun 2013 17:52:18 -0400
Richard Heck rgh...@lyx.org wrote:

 On 06/07/2013 05:28 PM, Steve Litt wrote:

  Thanks Richard,
 
  With or without the CopyStyle, it wouldn't substitute the tag in
  HTMLTag for the default div.
 
 See the attached. I've put the relevant layout into Document
 Setttings Local Layout.

Hi Richard,

The attached doc was doc class article. The only thing I saw that
indicated it was tweaked was the document preamble in the LyX file
contained:

\usepackage{heck}

But I don't know what was in package heck or where to put it.

 
 Note that load order of layout stuff matters. You would need to
 load stdsections.inc, or whatever loads it, first,

Would I do that at the top of my layout file?

 and then do your
 customizations. One nice thing about Local Layout is that it
 always comes last.

But then again, to use LyX as a quickie web page writer, I'd need to
have one central layout file not local.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why div in HTML exports instead of p?

2013-06-07 Thread Richard Heck

On 06/07/2013 06:22 PM, Steve Litt wrote:

On Fri, 07 Jun 2013 17:52:18 -0400
Richard Heck rgh...@lyx.org wrote:


On 06/07/2013 05:28 PM, Steve Litt wrote:

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default div.

See the attached. I've put the relevant layout into Document
Setttings Local Layout.

Hi Richard,

The attached doc was doc class article. The only thing I saw that
indicated it was tweaked was the document preamble in the LyX file
contained:

\usepackage{heck}

But I don't know what was in package heck or where to put it.


That's not relevant. See Document Settings Local Layout.




Note that load order of layout stuff matters. You would need to
load stdsections.inc, or whatever loads it, first,

Would I do that at the top of my layout file?


Post the layout file if not sure.

Richard



Re: Special Characters in References

2013-06-07 Thread Wolfgang Engelmann
Am Thursday, 6. June 2013, 22:45:11 schrieb Tim Wescott:
> Bibliography environment (at least so I think).  Here's a file that
> shows the problem.
> 
> On Thu, 2013-06-06 at 14:09 -0400, Richard Heck wrote:
> > On 06/06/2013 02:05 PM, Tim Wescott wrote:
> > > I'm trying to reference a book by a Swedish author.  Putting
> > > {\AA}strom95 as a key in my bibliographic entry causes the table at
> > > the end of the article to print correctly, but in the text I get
> > > [?].
> > > 
> > > Is there a way to do this, or am I stuck with Astrom or Aastrom
> > > (neither of which thrills me).
> > 
> > Is this using BibTeX or the bibliography environment? If the latter,
> > can you post a simple example file?
> > 
> > rh

Here it works
Wolfgang


Re: Why in HTML exports instead of ?

2013-06-07 Thread Jean-Marc Lasgouttes

06/06/2013 18:35, Richard Heck:

Span is more or less allowed everywhere. Of course, span is by default
inline. But you can get it to act like a div by setting display:block in
CSS. Cheating, no doubt.


So a span is designed to be included in the flow of the text, like a 
footnote is... Why is that cheating?


JMarc



Lyx v 2.0.6 unable to view files

2013-06-07 Thread Rasmus K
Hi!

I am having issues with lyx. Since an upgrade of my Ubuntu machine to
13.04, I am unable to view files. No files can be viewed. After pressing
view, the program just stalls. The output log is just (after pressing
"new document" and just writing "test"):

"
Running: pdflatex "newfile1.tex" > /dev/null
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./newfile1.tex
LaTeX2e <2011/06/27>
Babel  and hyphenation patterns for english, dumylang,
noyphenation, loaded.


"

Nothing happens, but the rotating progress indicator in the lyx window
is animating. After a while, Lyx asks if I want to stop the process, and
then I get the following messages:

"support/Systemcall.cpp (265): Systemcall: 'pdflatex "newfile1.tex"' did
not finish!
support/Systemcall.cpp (266): error The process timed out. It might be
restarted automatically.
support/Systemcall.cpp (267): status The process exited normally."

I have tried purging and reinstalling texlive* and lyx. I have tried
running pdflatex directly from the command line, and this works and
completes more or less instantly, producing a pdf. However, Lyx is
unable to view any type of format.

Any help from the list would be much appreciated.

Thanks,
Rasmus


Re: Why in HTML exports instead of ?

2013-06-07 Thread Richard Heck

On 06/07/2013 04:51 AM, Jean-Marc Lasgouttes wrote:

06/06/2013 18:35, Richard Heck:

Span is more or less allowed everywhere. Of course, span is by default
inline. But you can get it to act like a div by setting display:block in
CSS. Cheating, no doubt.


So a span is designed to be included in the flow of the text, like a 
footnote is... Why is that cheating?


span is really meant for things like text ranges.

rh



Re: document class

2013-06-07 Thread Richard Heck

On 06/06/2013 07:04 PM, Y.A. Sharif wrote:



I guess MikTex got installed properly .
when I try to start lyx it is showing: The Layout file: article could 
not be found. A default textclass with default layouts will be used . 
LyX will not be able to produce correct output.
And the very beginning before the previous message it shows: LyX will 
only have minimal functionality because no text class have been found. 
You can either try to reconfigure LyX normally, try to reconfigure 
without checking your LaTeX installation, or continue.


Didn't you post about this before?

There is a problem with your TeX installation.

rh



Re: Why in HTML exports instead of ?

2013-06-07 Thread Richard Heck

On 06/06/2013 05:12 PM, Steve Litt wrote:


How would I override the stdsections.inc styles' HTMLTag in my layout?
My layout files don't define styles already given me by LyX's book
style, but instead just add new styles. What would be the quickest,
easiest way within a layout file to modify HTMLTag for Standard, Part,
Section, Subsection, SubSubSection, Paragraph and SubParagraph? Could I
do something like this Assuming starting with the Article document
class and not using Part:

Style Section
   CopyStyle Section
   HTMLTag h1
End

Style Standard
   CopyStyle Standard
   HTMLTag p
End


You don't need the CopyStyle stuff. The rest will "update" the style if
it already exists, not over-write it.

Richard



Re: Line breaks in URLs

2013-06-07 Thread Ray Rashif
On 7 June 2013 04:35, Tim Wescott  wrote:

> I tried putting a really really long URL into Lyx, expecting that it
> would get line breaks forced as necessary to fit.
>
> That didn't happen -- instead, it just gets truncated.
>
> Is there a way to force line breaks in a URL, or even (oh be still my
> heart) to tell Lyx to make it happen?
>
> TIA
>
> --
>
> Tim Wescott
> www.wescottdesign.com
> Control & Communications systems, circuit & software design.
>
>
I've had the best luck with Insert > URL when I want verbatim links and not
hyperlinks behind text.

-- 
GPG/PGP ID: C0711BF1


Re: document class

2013-06-07 Thread Jacob Bishop
Sharif,

If you could respond to Paul's questions, that would help us know how to
help. I run LyX on Windows 7 all the time, and I would be glad to help if
you can just give us some more information on what is happening.

Jacob


Re: Lyx v 2.0.6 unable to view files

2013-06-07 Thread Paul Rubin
Rasmus K  kth.se> writes:

Does File > Export > PDF (pdflatex) generate a correct PDF file? If so, the
problem is with LyX calling a viewer; if not, the problem is with LyX
calling pdflatex.

Paul




Re: Place float:figure in this subparagraph

2013-06-07 Thread Paul Rubin
Are you inserting them with Insert > Float > Figure? If so, right click the
"handle" labeled "Float: Figure", choose Settings..., and deselect "Use
default placement" and try "Here definitely" instead.

Paul 




Re: Document class missing after installation

2013-06-07 Thread Y.A. Sharif


 






 


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed response 
to your email. I went step by step according to your suggestions. 
1. I could not find any configure.log file under C:\users\...\Roaming\LyX 2.0. 
There was only one folder named "cache" and a file outside the folder named 
"session".
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. But when 
I ran the other one with configure.py it showed the following messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 

from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.

I really appreciate your help and time.

Thank you very much.

Regards
Sharif



 From: Paul A. Rubin 
To: Y.A. Sharif  
Sent: Friday, June 7, 2013 9:37 AM
Subject: Re: Document class missing after installation
 


Y.A.,

LyX creates a user directory for you, where it stores your
preferences and other "local" files. On my Windows 7 partition, the
user directory is C:\Users\Paul\AppData\Roaming\LyX2.0. If you have
trouble finding it, Help > About LyX should point you to it.

In that directory, there should be a text file named configure.log.
(If not, keep reading, I'll get to that case.) It's generated when
the Python configuration script runs. (This is script is both run at
installation and when you click Tools > Reconfigure in LyX.) In
it, you should see lines like the following:

INFO: checking for a Latex2e program... 
INFO: +checking for "latex"...  yes 
INFO: checking for a DVI postprocessing program... 
INFO: +checking for "pplatex"...  yes 

and eventually

INFO: checking for the pdflatex program... 
INFO: +checking for "pdflatex"...  yes 

If they read "no", it means LyX failed to detect MiKTeX for some
reason. I've seen this happen when the user had Cygwin installed,
for instance. I don't know if it is still true, but Cygwin used to
come with a broken copy of LaTeX, and if Cygwin was in front of
MiKTeX on the system command path, LyX would test the Cygwin version
of latex.exe and conclude that there was no working LaTeX compiler
on the system.

If the log shows that LyX found MiKTeX ('yes' responses), go back to
a DOS prompt and run 'kpsewhich article.cls' (if the article class
is "missing" according to LyX) and make sure that MiKTeX finds it.
If that looks correct, or if the log file is missing, then I suggest
you cd to your LyX user directory and run the configuration script
in a DOS window. The command line will look something like the
following (allowing for the possibility that your installation path
is different):

"C:\Program Files (x86)\LyX20\Python\python.exe" "C:\Program Files
(x86)\LyX20\Resources\configure.py"

See if any error messages appear.

Paul


On 06/06/2013 06:44 PM, Y.A. Sharif wrote:


>
> 
>Thankk you Paul for your reply.
>I have checked according to your suggestion. It shows in DOS prmopt :"this is 
>pdfTeX, Version 3.14-...-1.40.13
>But I could not understand your 2nd paragraph. Do you want me to check the log 
>generated by lyx ? Little confused, could you explain little more.
>Thank you.
>
>
>Y.A.Sharif
>
>
>
>
>
>
> From: Paul Rubin 
>To: lyx-users@lists.lyx.org 
>Sent: Thursday, June 6, 2013 3:11 PM
>Subject: Re: Document class missing after installation
> 
>
>Is the MiKTeX bin directory on your system path? Can you
  run "latex --version"
>at a DOS prompt (without supplying a path to MiKTeX) and
  get a response
>with a plausible version date?
>
>If yes, take a look at the log generated by the installer
  (should be
>in your user directory, I think) and see if it found a
  LaTeX installation.
>You might want to publish the log to the list.
>
>Paul
>
>
>
>
>

Re: attachment of the error for LYX on windows 7

2013-06-07 Thread Richard Heck

On 06/07/2013 03:34 PM, Y.A. Sharif wrote:

Dear Rubin and  Jacob
I am attaching here the snapshots of my lyx path and error messages.
Looking forward for your kind reply.


The configure log should be in your LyX user directory. Go to Help>About 
LyX to find out where that is.


Richard



Re: Document class missing after installation

2013-06-07 Thread Richard Heck

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed 
response to your email. I went step by step according to your 
suggestions.
1. I could not find any configure.log file under 
C:\users\...\Roaming\LyX 2.0. There was only one folder named "cache" 
and a file outside the folder named "session".
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, 
in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 
from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.


I'm not on Windows, again, but the problem appears to be that there is 
no collections.py file on your system. It looks as though the wrong 
version of python is being run.


You should be able to configure manually. Open a DOS window and get into 
your user directory. Then run the configuration script manually, however 
you did it before.


Richard



Re: Document class missing after installation

2013-06-07 Thread Paul A. Rubin
You may need to add the path to Python to your system command path (so 
that it can find modules). In a DOS window, while in your LyX user 
directory, try the following:


set PATH=%PATH%;"C:\Program Files(x86)\LyX20\Python\"
python "C:\Program Files (x86)\LyX 2.0\Resources\configure.py"

Hopefully that will allow the script to execute.

Paul

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, 
in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 
from collections import deque
Import error: No module named collections





Re: Why in HTML exports instead of ?

2013-06-07 Thread Steve Litt
On Fri, 07 Jun 2013 11:51:34 -0400
Richard Heck  wrote:

> On 06/06/2013 05:12 PM, Steve Litt wrote:
> >
> > How would I override the stdsections.inc styles' HTMLTag in my
> > layout? My layout files don't define styles already given me by
> > LyX's book style, but instead just add new styles. What would be
> > the quickest, easiest way within a layout file to modify HTMLTag
> > for Standard, Part, Section, Subsection, SubSubSection, Paragraph
> > and SubParagraph? Could I do something like this Assuming starting
> > with the Article document class and not using Part:
> >
> > Style Section
> >CopyStyle Section
> >HTMLTag h1
> > End
> >
> > Style Standard
> >CopyStyle Standard
> >HTMLTag p
> > End
> 
> You don't need the CopyStyle stuff. The rest will "update" the style
> if it already exists, not over-write it.
> 
> Richard

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why in HTML exports instead of ?

2013-06-07 Thread Richard Heck

On 06/07/2013 05:28 PM, Steve Litt wrote:

On Fri, 07 Jun 2013 11:51:34 -0400
Richard Heck  wrote:


On 06/06/2013 05:12 PM, Steve Litt wrote:

How would I override the stdsections.inc styles' HTMLTag in my
layout? My layout files don't define styles already given me by
LyX's book style, but instead just add new styles. What would be
the quickest, easiest way within a layout file to modify HTMLTag
for Standard, Part, Section, Subsection, SubSubSection, Paragraph
and SubParagraph? Could I do something like this Assuming starting
with the Article document class and not using Part:

Style Section
CopyStyle Section
HTMLTag h1
End

Style Standard
CopyStyle Standard
HTMLTag p
End

You don't need the CopyStyle stuff. The rest will "update" the style
if it already exists, not over-write it.

Richard

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default 

See the attached. I've put the relevant layout into Document>
Setttings> Local Layout.

Note that load order of layout stuff matters. You would need to
load stdsections.inc, or whatever loads it, first, and then do your
customizations. One nice thing about Local Layout is that it
always comes last.

Richard



h.lyx
Description: application/lyx


Re: Why in HTML exports instead of ?

2013-06-07 Thread Steve Litt
On Fri, 07 Jun 2013 17:52:18 -0400
Richard Heck  wrote:

> On 06/07/2013 05:28 PM, Steve Litt wrote:

> > Thanks Richard,
> >
> > With or without the CopyStyle, it wouldn't substitute the tag in
> > HTMLTag for the default  
> See the attached. I've put the relevant layout into Document>
> Setttings> Local Layout.

Hi Richard,

The attached doc was doc class article. The only thing I saw that
indicated it was "tweaked" was the document preamble in the LyX file
contained:

\usepackage{heck}

But I don't know what was in package heck or where to put it.

> 
> Note that load order of layout stuff matters. You would need to
> load stdsections.inc, or whatever loads it, first,

Would I do that at the top of my layout file?

> and then do your
> customizations. One nice thing about Local Layout is that it
> always comes last.

But then again, to use LyX as a quickie web page writer, I'd need to
have one central layout file not local.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why in HTML exports instead of ?

2013-06-07 Thread Richard Heck

On 06/07/2013 06:22 PM, Steve Litt wrote:

On Fri, 07 Jun 2013 17:52:18 -0400
Richard Heck  wrote:


On 06/07/2013 05:28 PM, Steve Litt wrote:

Thanks Richard,

With or without the CopyStyle, it wouldn't substitute the tag in
HTMLTag for the default 
See the attached. I've put the relevant layout into Document>
Setttings> Local Layout.

Hi Richard,

The attached doc was doc class article. The only thing I saw that
indicated it was "tweaked" was the document preamble in the LyX file
contained:

\usepackage{heck}

But I don't know what was in package heck or where to put it.


That's not relevant. See Document> Settings> Local Layout.




Note that load order of layout stuff matters. You would need to
load stdsections.inc, or whatever loads it, first,

Would I do that at the top of my layout file?


Post the layout file if not sure.

Richard