Re: A Question about LyX layout files (with a MWE)

2019-03-07 Thread Baris Erkus
On 07-Mar-19 11:20 AM, Baris Erkus wrote:

Hello,

I would like to write a LyX layout file for a LaTeX class file that I wrote. My 
LaTeX class uses standard "article" class. The problem is my custom 
environments are not converted to the corresponding LaTeX code by LyX. Below is 
a MWE:

My Class file (myclassBE.cls) is as follows:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myclassBE, article}[2019/03/01 Test LaTeX Class]

\LoadClass[12pt, a4paper]{article}

\newenvironment{keywords}{{\bfseries KEYWORDS:} }{\vspace{1em}}

As can be seen, I have defined a custom environment: keywords. I have installed 
this file to my LaTeX system (Win10, MikTeX) successfully and tested with a 
very simple LaTeX file.

My layout file (myclassBE.layout) is:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[myclassBE]{My Test Class BE}
#  \DeclareCategory{Articles}

Format 66
Input stdclass.inc
Input numarticle.inc

# Input general definitions
Input article.layout

Style KeywordsBE
MarginDynamic
Category  FrontMatter
LabelString   "KEYWORDS: "
LabelType Static
LatexType Enviroment
LatexName keywords
LabelFont
  Series  Bold
  Sizenormalsize
  Color   green
EndFont
End

LyX recognizes the new layout and the new "KeywordsBE" environment successfully:

[cid:part1.66A506FB.6702A0D5@hotmail.com]

But it does not generate the LaTeX code for the keywords environment:

% Preview source code

%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{myclassBE}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{babel}

\begin{document}

Keyword1, Keyword2

\end{document}

Which should have used the following:

\begin{keywords}
Keyword1, Keyword2
\end{keywords}

What am I missing?

BE

--
↓↓
Please bottom-post. Start your reply here:

Answering my own question:

Missing "n" in the "LatexType Enviroment". Should have been  Environment. Also 
class definition should have been: ProvidesClass{myclassBE}.

--
↓↓
Please bottom-post. Start your reply here:


A Question about LyX layout files (with a MWE)

2019-03-07 Thread Baris Erkus
Hello,

I would like to write a LyX layout file for a LaTeX class file that I wrote. My 
LaTeX class uses standard "article" class. The problem is my custom 
environments are not converted to the corresponding LaTeX code by LyX. Below is 
a MWE:

My Class file (myclassBE.cls) is as follows:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myclassBE, article}[2019/03/01 Test LaTeX Class]

\LoadClass[12pt, a4paper]{article}

\newenvironment{keywords}{{\bfseries KEYWORDS:} }{\vspace{1em}}

As can be seen, I have defined a custom environment: keywords. I have installed 
this file to my LaTeX system (Win10, MikTeX) successfully and tested with a 
very simple LaTeX file.

My layout file (myclassBE.layout) is:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[myclassBE]{My Test Class BE}
#  \DeclareCategory{Articles}

Format 66
Input stdclass.inc
Input numarticle.inc

# Input general definitions
Input article.layout

Style KeywordsBE
MarginDynamic
Category  FrontMatter
LabelString   "KEYWORDS: "
LabelType Static
LatexType Enviroment
LatexName keywords
LabelFont
  Series  Bold
  Sizenormalsize
  Color   green
EndFont
End

LyX recognizes the new layout and the new "KeywordsBE" environment successfully:

[cid:part1.73630636.D0998ABE@hotmail.com]

But it does not generate the LaTeX code for the keywords environment:

% Preview source code

%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{myclassBE}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{babel}

\begin{document}

Keyword1, Keyword2

\end{document}

Which should have used the following:

\begin{keywords}
Keyword1, Keyword2
\end{keywords}

What am I missing?

BE

--
↓↓
Please bottom-post. Start your reply here:


test-myclassBE.lyx
Description: test-myclassBE.lyx
#% Do not delete the line below; configure depends on this  
#  \DeclareLaTeXClass[myclassBE]{My Test Class BE}
#  \DeclareCategory{Articles}

Format 66
Input stdclass.inc
Input numarticle.inc

# Input general definitions
Input article.layout

Style KeywordsBE
MarginDynamic
Category  FrontMatter
LabelString   "KEYWORDS: "
LabelType Static
LatexType Enviroment
LatexName keywords
LabelFont
  Series  Bold
  Sizenormalsize
  Color   green
EndFont
End%% LyX 2.3.1-1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{myclassBE}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
Keyword1, Keyword2
\end{document}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myclassBE, article}[2019/03/01 Test LaTeX Class]

\LoadClass[12pt, a4paper]{article}

\newenvironment{keywords}{{\bfseries KEYWORDS:} }{\vspace{1em}}

Re: question about lyx

2008-04-01 Thread Michael Wojcik

Rich Shepard wrote:

On Mon, 31 Mar 2008, Michael Wojcik wrote:

It's an attribute, not a tag. And it's deprecated in HTML 4.0, and 
omitted

entirely in XHTML 1.0. The correct way to specify justification in
contemporary HTML is with a style.


  That's because xhtml has moved toward separation of content and
formatting, just as LaTeX/LyX does. The xhtml has the content and the css
has the formatting.


Yes, HTML is finally catching up with proper document markup languages 
like CTSS RUNOFF (invented in 1964) in that regard. Of course, RUNOFF 
led to Multics runoff, which led to Unix roff. As an undergrad I wrote 
papers in roff (with I think the misc macro package) and printed 
them with troff on an IBM mainframe laser printer. This was the late 
1980s, and the results were pretty slick.


RUNOFF also seems to have led to IBM SCRIPT. Partly in response to 
difficulties with the RUNOFF family, Goldfarb, Mosher, and Lorie 
invented GML (also IBM, in 1969), which became SGML, which spawned 
HTML, then XML, then XHTML...


Those who forget the separation of presentation and content are doomed 
to reinvent it. But only after inculcating bad habits in most of their 
users.


(Note the Wikipedia pages for SCRIPT and GML are a bit confused, as 
usual, about the history and chronology. Goldfarb's own Personal 
Recollection[1] is a better source of information.)


Meanwhile, Knuth created TeX beginning in the late 1970s (the first 
TeXbook edition was 1982, I think), independently of the RUNOFF / GML 
families - though I'm sure he was aware of them. TeX of course 
incorporated significant features that other markup languages did not, 
such as the sophisticated layout algorithms and extensive support for 
typesetting mathematical notation. But it too separated content and 
presentation.


For that matter, HTML originally tried to separate content and 
presentation to some extent. That's why it had strong and 
em[phasis] tags, for example - presentation was the task of the user 
agent. But authors wanted more control over presentation (often for no 
good reason), and HTML became a mess of mixed markup. Modern XHTML 
plus external stylesheets is really the only way to restore a measure 
of sanity to HTML.



[1] http://www.sgmlsource.com/history/roots.htm

--
Michael Wojcik



Re: question about lyx

2008-04-01 Thread Michael Wojcik

Rich Shepard wrote:

On Mon, 31 Mar 2008, Michael Wojcik wrote:

It's an attribute, not a tag. And it's deprecated in HTML 4.0, and 
omitted

entirely in XHTML 1.0. The correct way to specify justification in
contemporary HTML is with a style.


  That's because xhtml has moved toward separation of content and
formatting, just as LaTeX/LyX does. The xhtml has the content and the css
has the formatting.


Yes, HTML is finally catching up with proper document markup languages 
like CTSS RUNOFF (invented in 1964) in that regard. Of course, RUNOFF 
led to Multics runoff, which led to Unix roff. As an undergrad I wrote 
papers in roff (with I think the misc macro package) and printed 
them with troff on an IBM mainframe laser printer. This was the late 
1980s, and the results were pretty slick.


RUNOFF also seems to have led to IBM SCRIPT. Partly in response to 
difficulties with the RUNOFF family, Goldfarb, Mosher, and Lorie 
invented GML (also IBM, in 1969), which became SGML, which spawned 
HTML, then XML, then XHTML...


Those who forget the separation of presentation and content are doomed 
to reinvent it. But only after inculcating bad habits in most of their 
users.


(Note the Wikipedia pages for SCRIPT and GML are a bit confused, as 
usual, about the history and chronology. Goldfarb's own Personal 
Recollection[1] is a better source of information.)


Meanwhile, Knuth created TeX beginning in the late 1970s (the first 
TeXbook edition was 1982, I think), independently of the RUNOFF / GML 
families - though I'm sure he was aware of them. TeX of course 
incorporated significant features that other markup languages did not, 
such as the sophisticated layout algorithms and extensive support for 
typesetting mathematical notation. But it too separated content and 
presentation.


For that matter, HTML originally tried to separate content and 
presentation to some extent. That's why it had strong and 
em[phasis] tags, for example - presentation was the task of the user 
agent. But authors wanted more control over presentation (often for no 
good reason), and HTML became a mess of mixed markup. Modern XHTML 
plus external stylesheets is really the only way to restore a measure 
of sanity to HTML.



[1] http://www.sgmlsource.com/history/roots.htm

--
Michael Wojcik



Re: question about lyx

2008-04-01 Thread Michael Wojcik

Rich Shepard wrote:

On Mon, 31 Mar 2008, Michael Wojcik wrote:

It's an attribute, not a tag. And it's deprecated in HTML 4.0, and 
omitted

entirely in XHTML 1.0. The correct way to specify justification in
contemporary HTML is with a style.


  That's because xhtml has moved toward separation of content and
formatting, just as LaTeX/LyX does. The xhtml has the content and the css
has the formatting.


Yes, HTML is finally catching up with proper document markup languages 
like CTSS RUNOFF (invented in 1964) in that regard. Of course, RUNOFF 
led to Multics runoff, which led to Unix roff. As an undergrad I wrote 
papers in roff (with I think the "misc" macro package) and printed 
them with troff on an IBM mainframe laser printer. This was the late 
1980s, and the results were pretty slick.


RUNOFF also seems to have led to IBM SCRIPT. Partly in response to 
difficulties with the RUNOFF family, Goldfarb, Mosher, and Lorie 
invented GML (also IBM, in 1969), which became SGML, which spawned 
HTML, then XML, then XHTML...


Those who forget the separation of presentation and content are doomed 
to reinvent it. But only after inculcating bad habits in most of their 
users.


(Note the Wikipedia pages for SCRIPT and GML are a bit confused, as 
usual, about the history and chronology. Goldfarb's own "Personal 
Recollection"[1] is a better source of information.)


Meanwhile, Knuth created TeX beginning in the late 1970s (the first 
TeXbook edition was 1982, I think), independently of the RUNOFF / GML 
families - though I'm sure he was aware of them. TeX of course 
incorporated significant features that other markup languages did not, 
such as the sophisticated layout algorithms and extensive support for 
typesetting mathematical notation. But it too separated content and 
presentation.


For that matter, HTML originally tried to separate content and 
presentation to some extent. That's why it had "strong" and 
"em[phasis]" tags, for example - presentation was the task of the user 
agent. But authors wanted more control over presentation (often for no 
good reason), and HTML became a mess of mixed markup. Modern XHTML 
plus external stylesheets is really the only way to restore a measure 
of sanity to HTML.



[1] http://www.sgmlsource.com/history/roots.htm

--
Michael Wojcik



Re: question about lyx

2008-03-31 Thread Richard Heck

Scott White wrote:

2) the first line after a section, subsection, subsubsection begins at the left 
margin, but the other paragraphs under it are indented ie
Section Name
first paragraph
second paragraph
third paragraph

  

This is normal English typesetting style. If you want no indentation,
see DocumentSettingsText Layout. If , contrary to everything any
typesetter will tell you, you nonetheless want the first paragraph
indented, get the indentfirst package and \usepackage{indentfirst} in
your DocumentSettingsPreamble.

For what it's worth, I prefer no indentation. But that's just me.



I personally prefer no indentation what so ever.  I like blocks of text with a 
newline between paragraphs, but again that is just me.  This typesetting style 
is taking some getting used to.

  
You can have the no indentation style very easily. See 
DocumentSettingsText Layout.



4) when I test the resulting file for w3 validation it tests as valid, but I 
get warnings about NET-enabling start-tag requires SHORTTAG YES on As I 
understand this the is for XHTML and not HTML so why is this here?

  

This has nothing to do with LyX and everything to do with whatever HTML
converter you are using. See ToolsPreferencesConverters, and look for
HTML to see what you're using.



htlatex $$i is the converter listed, but looking at my directory structure I think it is MiKTeX 2.7. 

  
Then htlatex is the one being used. It probably got installed by MikTeX. 
This package has known problems on Windows, or at least did until 
recently. You might well try a different one.


rh



Re: question about lyx

2008-03-31 Thread Michael Wojcik

Scott White wrote:

Date: Sun, 30 Mar 2008 21:38:22 -0400
From: [EMAIL PROTECTED]

Scott White wrote:


1) everything is justified. How can I change it to left alignment?


Note that LaTeX microspaces, etc, so this looks proper. If you're going
to convert to HTML, it probably doesn't matter, since HTML doesn't do
justification, does it?


Actually I am fairly sure it does. align=justify is valid html
tag.


It's an attribute, not a tag. And it's deprecated in HTML 4.0, and 
omitted entirely in XHTML 1.0. The correct way to specify 
justification in contemporary HTML is with a style.


 The current LyX functionality does not use this tag. I just don't
want to be surprised in the future if LyX started to use it. 


LyX has nothing to do with HTML output. That's produced by a LaTeX 
renderer that creates HTML (such as htlatex), which is NOT part of LyX.


It's crucial to understand what LyX is and is not. LyX does not 
produce formatted output, except for its own display on the screen. 
It's an application for producing LaTeX documents and processing them 
with LaTeX processors - but those processors are part of a LaTeX 
implementation (or are separate utilities). They aren't part of LyX.



This has nothing to do with LyX and everything to do with whatever HTML
converter you are using. See ToolsPreferencesConverters, and look for
HTML to see what you're using.


htlatex $$i is the converter listed, but looking at my directory
structure I think it is MiKTeX 2.7.


MiKTeX is a LaTeX implementation. It includes htlatex, which is a 
LaTeX renderer that produces HTML.


So what happens here is:

1. You create your document in LyX.
2. You ask LyX to export to HTML.
3. LyX creates a LaTeX document from your document. That will include 
LaTeX commands for the various options you've set, packages you've 
included, etc.
4. LyX looks at your converter preferences to find the command line it 
should use to create HTML.

5. LyX invokes the specified converter (htlatex, for example).
6. The htlatex it finds on your system is (probably) the one supplied 
with MiKTeX. htlatex will create HTML (and CSS) from the LaTeX 
document LyX created in step 3.


As you can see, what you do in LyX defines the LaTeX document, and 
that's the input to htlatex. But LyX can only control the final HTML 
output to the extent that htlatex can be controlled by what's in the 
LaTeX source (and options on the htlatex command line, if you edit the 
converter in your LyX preferences). Ultimately, what goes into your 
HTML output is up to htlatex.


LaTeX isn't designed to let you specify exactly how you want your 
document to look. (It's possible to get very fine-grained control with 
LaTeX, but it requires a sophisticated understanding of the language.) 
It's designed to let you worry about content and structure, and let 
*it* worry about layout.


So if you want to specify exactly how your HTML is going to look, I'd 
suggest one of two things: don't use LaTeX (and LyX), or edit the 
style sheet (the CSS file) after generating the content. (You can also 
create a style sheet ahead of time and just substitute it for the one 
generated by htlatex.) HTML layout is properly done through a 
stylesheet (using floats, positioning, widths and heights, etc) anyway.


--
Michael Wojcik




Re: question about lyx

2008-03-31 Thread Rich Shepard

On Mon, 31 Mar 2008, Michael Wojcik wrote:


It's an attribute, not a tag. And it's deprecated in HTML 4.0, and omitted
entirely in XHTML 1.0. The correct way to specify justification in
contemporary HTML is with a style.


  That's because xhtml has moved toward separation of content and
formatting, just as LaTeX/LyX does. The xhtml has the content and the css
has the formatting.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: question about lyx

2008-03-31 Thread Richard Heck

Scott White wrote:

2) the first line after a section, subsection, subsubsection begins at the left 
margin, but the other paragraphs under it are indented ie
Section Name
first paragraph
second paragraph
third paragraph

  

This is normal English typesetting style. If you want no indentation,
see DocumentSettingsText Layout. If , contrary to everything any
typesetter will tell you, you nonetheless want the first paragraph
indented, get the indentfirst package and \usepackage{indentfirst} in
your DocumentSettingsPreamble.

For what it's worth, I prefer no indentation. But that's just me.



I personally prefer no indentation what so ever.  I like blocks of text with a 
newline between paragraphs, but again that is just me.  This typesetting style 
is taking some getting used to.

  
You can have the no indentation style very easily. See 
DocumentSettingsText Layout.



4) when I test the resulting file for w3 validation it tests as valid, but I 
get warnings about NET-enabling start-tag requires SHORTTAG YES on As I 
understand this the is for XHTML and not HTML so why is this here?

  

This has nothing to do with LyX and everything to do with whatever HTML
converter you are using. See ToolsPreferencesConverters, and look for
HTML to see what you're using.



htlatex $$i is the converter listed, but looking at my directory structure I think it is MiKTeX 2.7. 

  
Then htlatex is the one being used. It probably got installed by MikTeX. 
This package has known problems on Windows, or at least did until 
recently. You might well try a different one.


rh



Re: question about lyx

2008-03-31 Thread Michael Wojcik

Scott White wrote:

Date: Sun, 30 Mar 2008 21:38:22 -0400
From: [EMAIL PROTECTED]

Scott White wrote:


1) everything is justified. How can I change it to left alignment?


Note that LaTeX microspaces, etc, so this looks proper. If you're going
to convert to HTML, it probably doesn't matter, since HTML doesn't do
justification, does it?


Actually I am fairly sure it does. align=justify is valid html
tag.


It's an attribute, not a tag. And it's deprecated in HTML 4.0, and 
omitted entirely in XHTML 1.0. The correct way to specify 
justification in contemporary HTML is with a style.


 The current LyX functionality does not use this tag. I just don't
want to be surprised in the future if LyX started to use it. 


LyX has nothing to do with HTML output. That's produced by a LaTeX 
renderer that creates HTML (such as htlatex), which is NOT part of LyX.


It's crucial to understand what LyX is and is not. LyX does not 
produce formatted output, except for its own display on the screen. 
It's an application for producing LaTeX documents and processing them 
with LaTeX processors - but those processors are part of a LaTeX 
implementation (or are separate utilities). They aren't part of LyX.



This has nothing to do with LyX and everything to do with whatever HTML
converter you are using. See ToolsPreferencesConverters, and look for
HTML to see what you're using.


htlatex $$i is the converter listed, but looking at my directory
structure I think it is MiKTeX 2.7.


MiKTeX is a LaTeX implementation. It includes htlatex, which is a 
LaTeX renderer that produces HTML.


So what happens here is:

1. You create your document in LyX.
2. You ask LyX to export to HTML.
3. LyX creates a LaTeX document from your document. That will include 
LaTeX commands for the various options you've set, packages you've 
included, etc.
4. LyX looks at your converter preferences to find the command line it 
should use to create HTML.

5. LyX invokes the specified converter (htlatex, for example).
6. The htlatex it finds on your system is (probably) the one supplied 
with MiKTeX. htlatex will create HTML (and CSS) from the LaTeX 
document LyX created in step 3.


As you can see, what you do in LyX defines the LaTeX document, and 
that's the input to htlatex. But LyX can only control the final HTML 
output to the extent that htlatex can be controlled by what's in the 
LaTeX source (and options on the htlatex command line, if you edit the 
converter in your LyX preferences). Ultimately, what goes into your 
HTML output is up to htlatex.


LaTeX isn't designed to let you specify exactly how you want your 
document to look. (It's possible to get very fine-grained control with 
LaTeX, but it requires a sophisticated understanding of the language.) 
It's designed to let you worry about content and structure, and let 
*it* worry about layout.


So if you want to specify exactly how your HTML is going to look, I'd 
suggest one of two things: don't use LaTeX (and LyX), or edit the 
style sheet (the CSS file) after generating the content. (You can also 
create a style sheet ahead of time and just substitute it for the one 
generated by htlatex.) HTML layout is properly done through a 
stylesheet (using floats, positioning, widths and heights, etc) anyway.


--
Michael Wojcik




Re: question about lyx

2008-03-31 Thread Rich Shepard

On Mon, 31 Mar 2008, Michael Wojcik wrote:


It's an attribute, not a tag. And it's deprecated in HTML 4.0, and omitted
entirely in XHTML 1.0. The correct way to specify justification in
contemporary HTML is with a style.


  That's because xhtml has moved toward separation of content and
formatting, just as LaTeX/LyX does. The xhtml has the content and the css
has the formatting.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: question about lyx

2008-03-31 Thread Richard Heck

Scott White wrote:

2) the first line after a section, subsection, subsubsection begins at the left 
margin, but the other paragraphs under it are indented ie
Section Name
first paragraph
second paragraph
third paragraph

  

This is normal English typesetting style. If you want no indentation,
see Document>Settings>Text Layout. If , contrary to everything any
typesetter will tell you, you nonetheless want the first paragraph
indented, get the indentfirst package and \usepackage{indentfirst} in
your Document>Settings>Preamble.

For what it's worth, I prefer no indentation. But that's just me.



I personally prefer no indentation what so ever.  I like blocks of text with a 
newline between paragraphs, but again that is just me.  This typesetting style 
is taking some getting used to.

  
You can have the no indentation style very easily. See 
Document>Settings>Text Layout.



4) when I test the resulting file for w3 validation it tests as valid, but I 
get warnings about NET-enabling start-tag requires SHORTTAG YES on As I 
understand this the is for XHTML and not HTML so why is this here?

  

This has nothing to do with LyX and everything to do with whatever HTML
converter you are using. See Tools>Preferences>Converters, and look for
HTML to see what you're using.



htlatex $$i is the converter listed, but looking at my directory structure I think it is MiKTeX 2.7. 

  
Then htlatex is the one being used. It probably got installed by MikTeX. 
This package has known problems on Windows, or at least did until 
recently. You might well try a different one.


rh



Re: question about lyx

2008-03-31 Thread Michael Wojcik

Scott White wrote:

Date: Sun, 30 Mar 2008 21:38:22 -0400
From: [EMAIL PROTECTED]

Scott White wrote:


1) everything is justified. How can I change it to left alignment?


Note that LaTeX microspaces, etc, so this looks proper. If you're going
to convert to HTML, it probably doesn't matter, since HTML doesn't do
justification, does it?


Actually I am fairly sure it does. align="justify" is valid html
tag.


It's an attribute, not a tag. And it's deprecated in HTML 4.0, and 
omitted entirely in XHTML 1.0. The correct way to specify 
justification in contemporary HTML is with a style.


> The current LyX functionality does not use this tag. I just don't
want to be surprised in the future if LyX started to use it. 


LyX has nothing to do with HTML output. That's produced by a LaTeX 
renderer that creates HTML (such as htlatex), which is NOT part of LyX.


It's crucial to understand what LyX is and is not. LyX does not 
produce formatted output, except for its own display on the screen. 
It's an application for producing LaTeX documents and processing them 
with LaTeX processors - but those processors are part of a LaTeX 
implementation (or are separate utilities). They aren't part of LyX.



This has nothing to do with LyX and everything to do with whatever HTML
converter you are using. See Tools>Preferences>Converters, and look for
HTML to see what you're using.


htlatex $$i is the converter listed, but looking at my directory
structure I think it is MiKTeX 2.7.


MiKTeX is a LaTeX implementation. It includes htlatex, which is a 
LaTeX renderer that produces HTML.


So what happens here is:

1. You create your document in LyX.
2. You ask LyX to export to HTML.
3. LyX creates a LaTeX document from your document. That will include 
LaTeX commands for the various options you've set, packages you've 
included, etc.
4. LyX looks at your converter preferences to find the command line it 
should use to create HTML.

5. LyX invokes the specified converter (htlatex, for example).
6. The htlatex it finds on your system is (probably) the one supplied 
with MiKTeX. htlatex will create HTML (and CSS) from the LaTeX 
document LyX created in step 3.


As you can see, what you do in LyX defines the LaTeX document, and 
that's the input to htlatex. But LyX can only control the final HTML 
output to the extent that htlatex can be controlled by what's in the 
LaTeX source (and options on the htlatex command line, if you edit the 
converter in your LyX preferences). Ultimately, what goes into your 
HTML output is up to htlatex.


LaTeX isn't designed to let you specify exactly how you want your 
document to look. (It's possible to get very fine-grained control with 
LaTeX, but it requires a sophisticated understanding of the language.) 
It's designed to let you worry about content and structure, and let 
*it* worry about layout.


So if you want to specify exactly how your HTML is going to look, I'd 
suggest one of two things: don't use LaTeX (and LyX), or edit the 
style sheet (the CSS file) after generating the content. (You can also 
create a style sheet ahead of time and just substitute it for the one 
generated by htlatex.) HTML layout is properly done through a 
stylesheet (using floats, positioning, widths and heights, etc) anyway.


--
Michael Wojcik




Re: question about lyx

2008-03-31 Thread Rich Shepard

On Mon, 31 Mar 2008, Michael Wojcik wrote:


It's an attribute, not a tag. And it's deprecated in HTML 4.0, and omitted
entirely in XHTML 1.0. The correct way to specify justification in
contemporary HTML is with a style.


  That's because xhtml has moved toward separation of content and
formatting, just as LaTeX/LyX does. The xhtml has the content and the css
has the formatting.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


question about lyx

2008-03-30 Thread Scott White

Hello,

I am using LyX 1.5.4 on my Windows XP box.  I am creating some documentation 
and will probably be posting it to the intranet in html.  MS Word generated 
html works but is pretty lame.  Someone told me about LyX and how great it was 
so I decided to give it try.  I open LyX, created a new file, pasted in my word 
document and began converting my stuff to LyX.  I quickly fixed my numbered 
lists, and added sections, subsections, etc.  After a couple of hours my 
document finally started to look presentable.  Somethings still bother me:
1) everything is justified.  How can I change it to left alignment?
2) the first line after a section, subsection, subsubsection begins at the left 
margin, but the other paragraphs under it are indented ie
Section Name
first paragraph
   second paragraph
   third paragraph
3) when I export to html, a css and html file are generated, I need to keep 
this to 1 file.  I found 
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but I don't 
know how or where to run the command.
4) when I test the resulting file for w3 validation it tests as valid, but I 
get warnings about NET-enabling start-tag requires SHORTTAG YES on   As I 
understand this the  is for XHTML and not HTML so why is this here?
5) finally the resulting html is better than Word but not great, ie:
  //extra space
  // needless new line and extra space
   
// way too much whitespace


My Document 3

This is the first line in my document however when the html is generated
 the line gets broken up by spans
Why are there so many spans?  Why is span and class separated by a newline?

Thanks,

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: question about lyx

2008-03-30 Thread Joost Verburg

rgheck wrote:
Other people will answer this question. But let me say: LaTeX is 
generally print-oriented, and in that world, justified is the standard. 
Note that LaTeX microspaces, etc, so this looks proper. If you're going 
to convert to HTML, it probably doesn't matter, since HTML doesn't do 
justification, does it?


HTML does support justification.

Joost



RE: question about lyx

2008-03-30 Thread Scott White

 Date: Sun, 30 Mar 2008 21:38:22 -0400
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: lyx-users@lists.lyx.org
 Subject: Re: question about lyx

 Scott White wrote:
 Hello,

 I am using LyX 1.5.4 on my Windows XP box. I am creating some documentation 
 and will probably be posting it to the intranet in html. MS Word generated 
 html works but is pretty lame. Someone told me about LyX and how great it 
 was so I decided to give it try. I open LyX, created a new file, pasted in 
 my word document and began converting my stuff to LyX. I quickly fixed my 
 numbered lists, and added sections, subsections, etc. After a couple of 
 hours my document finally started to look presentable. Somethings still 
 bother me:
 1) everything is justified. How can I change it to left alignment?


 Other people will answer this question. But let me say: LaTeX is
 generally print-oriented, and in that world, justified is the standard.
 Note that LaTeX microspaces, etc, so this looks proper. If you're going
 to convert to HTML, it probably doesn't matter, since HTML doesn't do
 justification, does it?

Actually I am fairly sure it does.  align=justify is valid html tag.  The 
current LyX functionality does not use this tag.  I just don't want to be 
surprised in the future if LyX started to use it.  

 2) the first line after a section, subsection, subsubsection begins at the 
 left margin, but the other paragraphs under it are indented ie
 Section Name
 first paragraph
 second paragraph
 third paragraph

 This is normal English typesetting style. If you want no indentation,
 see DocumentSettingsText Layout. If , contrary to everything any
 typesetter will tell you, you nonetheless want the first paragraph
 indented, get the indentfirst package and \usepackage{indentfirst} in
 your DocumentSettingsPreamble.

 For what it's worth, I prefer no indentation. But that's just me.

I personally prefer no indentation what so ever.  I like blocks of text with a 
newline between paragraphs, but again that is just me.  This typesetting style 
is taking some getting used to.

 3) when I export to html, a css and html file are generated, I need to keep 
 this to 1 file. I found 
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but I 
 don't know how or where to run the command.

 Which command? If it's some alternative HTML convert business, then the
 answer is probably: Export to LaTeX; run LaTeX on your exported file;
 then run whatever the HTML conversion command is.

 Of course, you can always just take the CSS file and put it between
 .

Sorry I meant converter string: noexist $$i ;latex2html -no_auto_link 
-no_navigation -html_version 2.0 -no_subdir -info 0 --split 0 $$i

I don't know what to do with it, but I forgot about just copying and pasting 
into the style section.

 4) when I test the resulting file for w3 validation it tests as valid, but I 
 get warnings about NET-enabling start-tag requires SHORTTAG YES on As I 
 understand this the is for XHTML and not HTML so why is this here?

 This has nothing to do with LyX and everything to do with whatever HTML
 converter you are using. See ToolsPreferencesConverters, and look for
 HTML to see what you're using.

htlatex $$i is the converter listed, but looking at my directory structure I 
think it is MiKTeX 2.7.  Looking at this screen maybe the converter string from 
above should go here??  Basically I just downloaded 
LyX-154-1-Installer-Bundle.exe and selected all of the defaults.

A quick Google for latex to html and tex4ht looks OK.  
http://www.tug.org/utilities/texconv/textopc.html has a list of converters I 
think I will try.  I will give plastex a try first though.

 5) finally the resulting html is better than Word but not great, ie:
 //extra space
 // needless new line and extra space

 // way too much whitespace


 My Document 3

 This is the first line in my document however when the html is generated
 the line gets broken up by spans
 Why are there so many spans? Why is span and class separated by a newline?


 Try various converters. Some of them do better than others, and which
 one does best can depend upon the document. I hear plastex is pretty good.

 The nice thing here is: You have lots of options. And if you want to
 clean up the LaTeX a bit before you convert, you can write a
 perl/python/ruby/sed script to do it for you.

Thanks,

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: question about lyx

2008-03-30 Thread Typhoon
On Sun, 30 Mar 2008 20:18:00 -0500
Scott White [EMAIL PROTECTED] wrote:

 
 Hello,
 
 I am using LyX 1.5.4 on my Windows XP box.  I am creating some
 documentation and will probably be posting it to the intranet in
 html.  MS Word generated html works but is pretty lame.  Someone told
 me about LyX and how great it was so I decided to give it try.  I
 open LyX, created a new file, pasted in my word document and began
 converting my stuff to LyX.  I quickly fixed my numbered lists, and
 added sections, subsections, etc.  After a couple of hours my
 document finally started to look presentable.  Somethings still
 bother me:
 1) everything is justified.  How can I change it to left alignment?

Put \raggedright in the preamble.

 2) the first line after a section, subsection, subsubsection begins
 at the left margin, but the other paragraphs under it are indented ie
 Section Name first paragraph
second paragraph
third paragraph
 3) when I export to html, a css and html file are generated, I need
 to keep this to 1 file.  I found
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but
 I don't know how or where to run the command.
 4) when I test the resulting file for w3 validation it tests as
 valid, but I get warnings about NET-enabling start-tag requires
 SHORTTAG YES on   As I understand this the  is for XHTML and not HTML
 so why is this here?
 5) finally the resulting html is better than Word but not great, ie:
   //extra space
   // needless new line and extra space

 // way too much whitespace
 
 
 My Document 3
 
 This is the first line in my document however when the html is
 generated the line gets broken up by spans
 Why are there so many spans?  Why is span and class separated by a
 newline?
 
 Thanks,
 
 _
 Watch “Cause Effect,” a show about real people making a real
 difference.  Learn more.
 http://im.live.com/Messenger/IM/MTV/?source=text_watchcause


question about lyx

2008-03-30 Thread Scott White

Hello,

I am using LyX 1.5.4 on my Windows XP box.  I am creating some documentation 
and will probably be posting it to the intranet in html.  MS Word generated 
html works but is pretty lame.  Someone told me about LyX and how great it was 
so I decided to give it try.  I open LyX, created a new file, pasted in my word 
document and began converting my stuff to LyX.  I quickly fixed my numbered 
lists, and added sections, subsections, etc.  After a couple of hours my 
document finally started to look presentable.  Somethings still bother me:
1) everything is justified.  How can I change it to left alignment?
2) the first line after a section, subsection, subsubsection begins at the left 
margin, but the other paragraphs under it are indented ie
Section Name
first paragraph
   second paragraph
   third paragraph
3) when I export to html, a css and html file are generated, I need to keep 
this to 1 file.  I found 
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but I don't 
know how or where to run the command.
4) when I test the resulting file for w3 validation it tests as valid, but I 
get warnings about NET-enabling start-tag requires SHORTTAG YES on   As I 
understand this the  is for XHTML and not HTML so why is this here?
5) finally the resulting html is better than Word but not great, ie:
  //extra space
  // needless new line and extra space
   
// way too much whitespace


My Document 3

This is the first line in my document however when the html is generated
 the line gets broken up by spans
Why are there so many spans?  Why is span and class separated by a newline?

Thanks,

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: question about lyx

2008-03-30 Thread Joost Verburg

rgheck wrote:
Other people will answer this question. But let me say: LaTeX is 
generally print-oriented, and in that world, justified is the standard. 
Note that LaTeX microspaces, etc, so this looks proper. If you're going 
to convert to HTML, it probably doesn't matter, since HTML doesn't do 
justification, does it?


HTML does support justification.

Joost



RE: question about lyx

2008-03-30 Thread Scott White

 Date: Sun, 30 Mar 2008 21:38:22 -0400
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: lyx-users@lists.lyx.org
 Subject: Re: question about lyx

 Scott White wrote:
 Hello,

 I am using LyX 1.5.4 on my Windows XP box. I am creating some documentation 
 and will probably be posting it to the intranet in html. MS Word generated 
 html works but is pretty lame. Someone told me about LyX and how great it 
 was so I decided to give it try. I open LyX, created a new file, pasted in 
 my word document and began converting my stuff to LyX. I quickly fixed my 
 numbered lists, and added sections, subsections, etc. After a couple of 
 hours my document finally started to look presentable. Somethings still 
 bother me:
 1) everything is justified. How can I change it to left alignment?


 Other people will answer this question. But let me say: LaTeX is
 generally print-oriented, and in that world, justified is the standard.
 Note that LaTeX microspaces, etc, so this looks proper. If you're going
 to convert to HTML, it probably doesn't matter, since HTML doesn't do
 justification, does it?

Actually I am fairly sure it does.  align=justify is valid html tag.  The 
current LyX functionality does not use this tag.  I just don't want to be 
surprised in the future if LyX started to use it.  

 2) the first line after a section, subsection, subsubsection begins at the 
 left margin, but the other paragraphs under it are indented ie
 Section Name
 first paragraph
 second paragraph
 third paragraph

 This is normal English typesetting style. If you want no indentation,
 see DocumentSettingsText Layout. If , contrary to everything any
 typesetter will tell you, you nonetheless want the first paragraph
 indented, get the indentfirst package and \usepackage{indentfirst} in
 your DocumentSettingsPreamble.

 For what it's worth, I prefer no indentation. But that's just me.

I personally prefer no indentation what so ever.  I like blocks of text with a 
newline between paragraphs, but again that is just me.  This typesetting style 
is taking some getting used to.

 3) when I export to html, a css and html file are generated, I need to keep 
 this to 1 file. I found 
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but I 
 don't know how or where to run the command.

 Which command? If it's some alternative HTML convert business, then the
 answer is probably: Export to LaTeX; run LaTeX on your exported file;
 then run whatever the HTML conversion command is.

 Of course, you can always just take the CSS file and put it between
 .

Sorry I meant converter string: noexist $$i ;latex2html -no_auto_link 
-no_navigation -html_version 2.0 -no_subdir -info 0 --split 0 $$i

I don't know what to do with it, but I forgot about just copying and pasting 
into the style section.

 4) when I test the resulting file for w3 validation it tests as valid, but I 
 get warnings about NET-enabling start-tag requires SHORTTAG YES on As I 
 understand this the is for XHTML and not HTML so why is this here?

 This has nothing to do with LyX and everything to do with whatever HTML
 converter you are using. See ToolsPreferencesConverters, and look for
 HTML to see what you're using.

htlatex $$i is the converter listed, but looking at my directory structure I 
think it is MiKTeX 2.7.  Looking at this screen maybe the converter string from 
above should go here??  Basically I just downloaded 
LyX-154-1-Installer-Bundle.exe and selected all of the defaults.

A quick Google for latex to html and tex4ht looks OK.  
http://www.tug.org/utilities/texconv/textopc.html has a list of converters I 
think I will try.  I will give plastex a try first though.

 5) finally the resulting html is better than Word but not great, ie:
 //extra space
 // needless new line and extra space

 // way too much whitespace


 My Document 3

 This is the first line in my document however when the html is generated
 the line gets broken up by spans
 Why are there so many spans? Why is span and class separated by a newline?


 Try various converters. Some of them do better than others, and which
 one does best can depend upon the document. I hear plastex is pretty good.

 The nice thing here is: You have lots of options. And if you want to
 clean up the LaTeX a bit before you convert, you can write a
 perl/python/ruby/sed script to do it for you.

Thanks,

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: question about lyx

2008-03-30 Thread Typhoon
On Sun, 30 Mar 2008 20:18:00 -0500
Scott White [EMAIL PROTECTED] wrote:

 
 Hello,
 
 I am using LyX 1.5.4 on my Windows XP box.  I am creating some
 documentation and will probably be posting it to the intranet in
 html.  MS Word generated html works but is pretty lame.  Someone told
 me about LyX and how great it was so I decided to give it try.  I
 open LyX, created a new file, pasted in my word document and began
 converting my stuff to LyX.  I quickly fixed my numbered lists, and
 added sections, subsections, etc.  After a couple of hours my
 document finally started to look presentable.  Somethings still
 bother me:
 1) everything is justified.  How can I change it to left alignment?

Put \raggedright in the preamble.

 2) the first line after a section, subsection, subsubsection begins
 at the left margin, but the other paragraphs under it are indented ie
 Section Name first paragraph
second paragraph
third paragraph
 3) when I export to html, a css and html file are generated, I need
 to keep this to 1 file.  I found
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but
 I don't know how or where to run the command.
 4) when I test the resulting file for w3 validation it tests as
 valid, but I get warnings about NET-enabling start-tag requires
 SHORTTAG YES on   As I understand this the  is for XHTML and not HTML
 so why is this here?
 5) finally the resulting html is better than Word but not great, ie:
   //extra space
   // needless new line and extra space

 // way too much whitespace
 
 
 My Document 3
 
 This is the first line in my document however when the html is
 generated the line gets broken up by spans
 Why are there so many spans?  Why is span and class separated by a
 newline?
 
 Thanks,
 
 _
 Watch “Cause Effect,” a show about real people making a real
 difference.  Learn more.
 http://im.live.com/Messenger/IM/MTV/?source=text_watchcause


question about lyx

2008-03-30 Thread Scott White

Hello,

I am using LyX 1.5.4 on my Windows XP box.  I am creating some documentation 
and will probably be posting it to the intranet in html.  MS Word generated 
html works but is pretty lame.  Someone told me about LyX and how great it was 
so I decided to give it try.  I open LyX, created a new file, pasted in my word 
document and began converting my stuff to LyX.  I quickly fixed my numbered 
lists, and added sections, subsections, etc.  After a couple of hours my 
document finally started to look presentable.  Somethings still bother me:
1) everything is justified.  How can I change it to left alignment?
2) the first line after a section, subsection, subsubsection begins at the left 
margin, but the other paragraphs under it are indented ie
Section Name
first paragraph
   second paragraph
   third paragraph
3) when I export to html, a css and html file are generated, I need to keep 
this to 1 file.  I found 
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but I don't 
know how or where to run the command.
4) when I test the resulting file for w3 validation it tests as valid, but I 
get warnings about NET-enabling start-tag requires SHORTTAG YES on   As I 
understand this the  is for XHTML and not HTML so why is this here?
5) finally the resulting html is better than Word but not great, ie:
  //extra space
  // needless new line and extra space
   
// way too much whitespace


My Document 3

This is the first line in my document however when the html is generated
 the line gets broken up by spans
Why are there so many spans?  Why is span and class separated by a newline?

Thanks,

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: question about lyx

2008-03-30 Thread Joost Verburg

rgheck wrote:
Other people will answer this question. But let me say: LaTeX is 
generally print-oriented, and in that world, justified is the standard. 
Note that LaTeX microspaces, etc, so this looks proper. If you're going 
to convert to HTML, it probably doesn't matter, since HTML doesn't do 
justification, does it?


HTML does support justification.

Joost



RE: question about lyx

2008-03-30 Thread Scott White

> Date: Sun, 30 Mar 2008 21:38:22 -0400
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: lyx-users@lists.lyx.org
> Subject: Re: question about lyx
>
> Scott White wrote:
>> Hello,
>>
>> I am using LyX 1.5.4 on my Windows XP box. I am creating some documentation 
>> and will probably be posting it to the intranet in html. MS Word generated 
>> html works but is pretty lame. Someone told me about LyX and how great it 
>> was so I decided to give it try. I open LyX, created a new file, pasted in 
>> my word document and began converting my stuff to LyX. I quickly fixed my 
>> numbered lists, and added sections, subsections, etc. After a couple of 
>> hours my document finally started to look presentable. Somethings still 
>> bother me:
>> 1) everything is justified. How can I change it to left alignment?
>>
>>
> Other people will answer this question. But let me say: LaTeX is
> generally print-oriented, and in that world, justified is the standard.
> Note that LaTeX microspaces, etc, so this looks proper. If you're going
> to convert to HTML, it probably doesn't matter, since HTML doesn't do
> justification, does it?

Actually I am fairly sure it does.  align="justify" is valid html tag.  The 
current LyX functionality does not use this tag.  I just don't want to be 
surprised in the future if LyX started to use it.  

>> 2) the first line after a section, subsection, subsubsection begins at the 
>> left margin, but the other paragraphs under it are indented ie
>> Section Name
>> first paragraph
>> second paragraph
>> third paragraph
>>
> This is normal English typesetting style. If you want no indentation,
> see Document>Settings>Text Layout. If , contrary to everything any
> typesetter will tell you, you nonetheless want the first paragraph
> indented, get the indentfirst package and \usepackage{indentfirst} in
> your Document>Settings>Preamble.
>
> For what it's worth, I prefer no indentation. But that's just me.

I personally prefer no indentation what so ever.  I like blocks of text with a 
newline between paragraphs, but again that is just me.  This typesetting style 
is taking some getting used to.

>> 3) when I export to html, a css and html file are generated, I need to keep 
>> this to 1 file. I found 
>> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but I 
>> don't know how or where to run the command.
>>
> Which command? If it's some alternative HTML convert business, then the
> answer is probably: Export to LaTeX; run LaTeX on your exported file;
> then run whatever the HTML conversion command is.
>
> Of course, you can always just take the CSS file and put it between
> .

Sorry I meant converter string: noexist $$i ;latex2html -no_auto_link 
-no_navigation -html_version 2.0 -no_subdir -info 0 --split 0 $$i

I don't know what to do with it, but I forgot about just copying and pasting 
into the style section.

>> 4) when I test the resulting file for w3 validation it tests as valid, but I 
>> get warnings about NET-enabling start-tag requires SHORTTAG YES on As I 
>> understand this the is for XHTML and not HTML so why is this here?
>>
> This has nothing to do with LyX and everything to do with whatever HTML
> converter you are using. See Tools>Preferences>Converters, and look for
> HTML to see what you're using.

htlatex $$i is the converter listed, but looking at my directory structure I 
think it is MiKTeX 2.7.  Looking at this screen maybe the converter string from 
above should go here??  Basically I just downloaded 
LyX-154-1-Installer-Bundle.exe and selected all of the defaults.

A quick Google for latex to html and tex4ht looks OK.  
http://www.tug.org/utilities/texconv/textopc.html has a list of converters I 
think I will try.  I will give plastex a try first though.

>> 5) finally the resulting html is better than Word but not great, ie:
>> //extra space
>> // needless new line and extra space
>>
>> // way too much whitespace
>>
>>
>> My Document 3
>>
>> This is the first line in my document however when the html is generated
>> the line gets broken up by spans
>> Why are there so many spans? Why is span and class separated by a newline?
>>
>>
> Try various converters. Some of them do better than others, and which
> one does best can depend upon the document. I hear plastex is pretty good.
>
> The nice thing here is: You have lots of options. And if you want to
> "clean up" the LaTeX a bit before you convert, you can write a
> perl/python/ruby/sed script to do it for you.

Thanks,

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: question about lyx

2008-03-30 Thread Typhoon
On Sun, 30 Mar 2008 20:18:00 -0500
Scott White <[EMAIL PROTECTED]> wrote:

> 
> Hello,
> 
> I am using LyX 1.5.4 on my Windows XP box.  I am creating some
> documentation and will probably be posting it to the intranet in
> html.  MS Word generated html works but is pretty lame.  Someone told
> me about LyX and how great it was so I decided to give it try.  I
> open LyX, created a new file, pasted in my word document and began
> converting my stuff to LyX.  I quickly fixed my numbered lists, and
> added sections, subsections, etc.  After a couple of hours my
> document finally started to look presentable.  Somethings still
> bother me:
> 1) everything is justified.  How can I change it to left alignment?

Put \raggedright in the preamble.

> 2) the first line after a section, subsection, subsubsection begins
> at the left margin, but the other paragraphs under it are indented ie
> Section Name first paragraph
>second paragraph
>third paragraph
> 3) when I export to html, a css and html file are generated, I need
> to keep this to 1 file.  I found
> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59378.html but
> I don't know how or where to run the command.
> 4) when I test the resulting file for w3 validation it tests as
> valid, but I get warnings about NET-enabling start-tag requires
> SHORTTAG YES on   As I understand this the  is for XHTML and not HTML
> so why is this here?
> 5) finally the resulting html is better than Word but not great, ie:
>   //extra space
>   // needless new line and extra space
>
> // way too much whitespace
> 
> 
> My Document 3
> 
> This is the first line in my document however when the html is
> generated the line gets broken up by spans
> Why are there so many spans?  Why is span and class separated by a
> newline?
> 
> Thanks,
> 
> _
> Watch “Cause Effect,” a show about real people making a real
> difference.  Learn more.
> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause


Question about Lyx math mode

2004-01-07 Thread Stefan Schneider
Hi!

I've got the following (probably stupid) basic problem with Lyx Mathed:

When leave Mathed with ESC, the (text) cursor  does not appear to the 
right of the  math expression
but  jumps back to the  end of the text left of the math expression 
(typed before the math expression). However, when I type new text it 
appears correctly to the right of the math expression. So, I got a 
mismatch between cursor position and text position.

What's wrong?

Thank you in advance
Stefan Schneider


Re: Question about Lyx math mode

2004-01-07 Thread Andre Poenitz
On Wed, Jan 07, 2004 at 02:31:10PM +0100, Stefan Schneider wrote:
 Hi!
 
 I've got the following (probably stupid) basic problem with Lyx Mathed:
 
 When leave Mathed with ESC, the (text) cursor  does not appear to the 
 right of the  math expression
 but  jumps back to the  end of the text left of the math expression 
 (typed before the math expression). However, when I type new text it 
 appears correctly to the right of the math expression. So, I got a 
 mismatch between cursor position and text position.

What version of LyX is this?

Andre'
-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Question about Lyx math mode

2004-01-07 Thread Stefan Schneider
Hi!

I've got the following (probably stupid) basic problem with Lyx Mathed:

When leave Mathed with ESC, the (text) cursor  does not appear to the 
right of the  math expression
but  jumps back to the  end of the text left of the math expression 
(typed before the math expression). However, when I type new text it 
appears correctly to the right of the math expression. So, I got a 
mismatch between cursor position and text position.

What's wrong?

Thank you in advance
Stefan Schneider


Re: Question about Lyx math mode

2004-01-07 Thread Andre Poenitz
On Wed, Jan 07, 2004 at 02:31:10PM +0100, Stefan Schneider wrote:
 Hi!
 
 I've got the following (probably stupid) basic problem with Lyx Mathed:
 
 When leave Mathed with ESC, the (text) cursor  does not appear to the 
 right of the  math expression
 but  jumps back to the  end of the text left of the math expression 
 (typed before the math expression). However, when I type new text it 
 appears correctly to the right of the math expression. So, I got a 
 mismatch between cursor position and text position.

What version of LyX is this?

Andre'
-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Question about Lyx math mode

2004-01-07 Thread Stefan Schneider
Hi!

I've got the following (probably stupid) basic problem with Lyx Mathed:

When leave Mathed with ESC, the (text) cursor  does not appear to the 
right of the  math expression
but  jumps back to the  end of the text left of the math expression 
(typed before the math expression). However, when I type new text it 
appears correctly to the right of the math expression. So, I got a 
mismatch between cursor position and text position.

What's wrong?

Thank you in advance
Stefan Schneider


Re: Question about Lyx math mode

2004-01-07 Thread Andre Poenitz
On Wed, Jan 07, 2004 at 02:31:10PM +0100, Stefan Schneider wrote:
> Hi!
> 
> I've got the following (probably stupid) basic problem with Lyx Mathed:
> 
> When leave Mathed with ESC, the (text) cursor  does not appear to the 
> right of the  math expression
> but  jumps back to the  end of the text left of the math expression 
> (typed before the math expression). However, when I type new text it 
> appears correctly to the right of the math expression. So, I got a 
> mismatch between cursor position and text position.

What version of LyX is this?

Andre'
-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: [Web-team] Question about LyX

2001-12-28 Thread Herbert Voss

Stefan Jahn wrote:

 how can i insert a ^ in a LyX-document?
 I convert the document with latex2html. But after all ^ there is a 
 space. I don't need the space.
 
 Example:
 I need = (^_^)
 I get  = (^ _^ )  this is wrong


which lyx-version do you use?


Herbert

-- 
http://www.lyx.org/help/




Re: [Web-team] Question about LyX

2001-12-28 Thread Herbert Voss

Stefan Jahn wrote:

 how can i insert a ^ in a LyX-document?
 I convert the document with latex2html. But after all ^ there is a 
 space. I don't need the space.
 
 Example:
 I need = (^_^)
 I get  = (^ _^ )  this is wrong


which lyx-version do you use?


Herbert

-- 
http://www.lyx.org/help/




Re: [Web-team] Question about LyX

2001-12-28 Thread Herbert Voss

Stefan Jahn wrote:

> how can i insert a ^ in a LyX-document?
> I convert the document with latex2html. But after all ^ there is a 
> space. I don't need the space.
> 
> Example:
> I need = (^_^)
> I get  = (^ _^ )  this is wrong


which lyx-version do you use?


Herbert

-- 
http://www.lyx.org/help/