Linebreaking fails for url at end of line

2006-09-17 Thread Chris Lale

I am using LyX 1.4.2 on Debian Etch.

I have text containing urls eg http://tuxmobil.org/pcmcia_linux.html and 
file pathnames eg /etc/network/interfaces. If one of these happens to be 
at the end of a line, it runs into the margin when rendered by DVI etc 
or printed. Other long words (even a string of arbitrary letters) will 
automatically split with a hyphen. Perhaps the problem lies with the use 
of a forward slash?


If I manually insert a page break before the url, the previous line is 
truncated and does not fill the whole width. This is not what I want.


Is there any way to force LyX to treat the url as an ordinary long word 
that cannot be split with a hyphen?


Thank you,
Chris


Re: Linebreaking fails for url at end of line

2006-09-17 Thread Chris Lale

Juergen Spitzmueller wrote:

Chris Lale wrote:
  

Is there any way to force LyX to treat the url as an ordinary long word
that cannot be split with a hyphen?



You are aware of Insert-URL?

  


Thanks for the suggestion. This is a pretty good solution. 
Unfortunately, the url or pathname is split between lines. So I get:


http://tuxmobil.
org/pcmcia_linux.html

and

/etc/network/
interfaces

But, they are splitting intelligently.

Chris.


Linebreaking fails for url at end of line

2006-09-17 Thread Chris Lale

I am using LyX 1.4.2 on Debian Etch.

I have text containing urls eg http://tuxmobil.org/pcmcia_linux.html and 
file pathnames eg /etc/network/interfaces. If one of these happens to be 
at the end of a line, it runs into the margin when rendered by DVI etc 
or printed. Other long words (even a string of arbitrary letters) will 
automatically split with a hyphen. Perhaps the problem lies with the use 
of a forward slash?


If I manually insert a page break before the url, the previous line is 
truncated and does not fill the whole width. This is not what I want.


Is there any way to force LyX to treat the url as an ordinary long word 
that cannot be split with a hyphen?


Thank you,
Chris


Re: Linebreaking fails for url at end of line

2006-09-17 Thread Chris Lale

Juergen Spitzmueller wrote:

Chris Lale wrote:
  

Is there any way to force LyX to treat the url as an ordinary long word
that cannot be split with a hyphen?



You are aware of Insert-URL?

  


Thanks for the suggestion. This is a pretty good solution. 
Unfortunately, the url or pathname is split between lines. So I get:


http://tuxmobil.
org/pcmcia_linux.html

and

/etc/network/
interfaces

But, they are splitting intelligently.

Chris.


Linebreaking fails for url at end of line

2006-09-17 Thread Chris Lale

I am using LyX 1.4.2 on Debian Etch.

I have text containing urls eg http://tuxmobil.org/pcmcia_linux.html and 
file pathnames eg /etc/network/interfaces. If one of these happens to be 
at the end of a line, it runs into the margin when rendered by DVI etc 
or printed. Other long words (even a string of arbitrary letters) will 
automatically split with a hyphen. Perhaps the problem lies with the use 
of a forward slash?


If I manually insert a page break before the url, the previous line is 
truncated and does not fill the whole width. This is not what I want.


Is there any way to force LyX to treat the url as an ordinary long word 
that cannot be split with a hyphen?


Thank you,
Chris


Re: Linebreaking fails for url at end of line

2006-09-17 Thread Chris Lale

Juergen Spitzmueller wrote:

Chris Lale wrote:
  

Is there any way to force LyX to treat the url as an ordinary long word
that cannot be split with a hyphen?



You are aware of Insert->URL?

  


Thanks for the suggestion. This is a pretty good solution. 
Unfortunately, the url or pathname is split between lines. So I get:


http://tuxmobil.
org/pcmcia_linux.html

and

/etc/network/
interfaces

But, they are splitting intelligently.

Chris.


Re: Using Noun Style for SGML tags

2002-12-12 Thread Chris Lale
José Matos wrote:


  This trick will only work with latex, I was proposing a similar hack but for 
docbook, we would need to output the colour changes, something that we don't 
do now. This is the part that needs coding.

Thanks for the information. Sorry I cannot help with the coding but I am 
not proficient in C or C++. Perhaps in the future ...? Meanwhile, I will 
stick with ERT!

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Using Noun Style for SGML tags

2002-12-12 Thread Chris Lale
José Matos wrote:


  This trick will only work with latex, I was proposing a similar hack but for 
docbook, we would need to output the colour changes, something that we don't 
do now. This is the part that needs coding.

Thanks for the information. Sorry I cannot help with the coding but I am 
not proficient in C or C++. Perhaps in the future ...? Meanwhile, I will 
stick with ERT!

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Using Noun Style for SGML tags

2002-12-12 Thread Chris Lale
José Matos wrote:


  This trick will only work with latex, I was proposing a similar hack but for 
docbook, we would need to output the colour changes, something that we don't 
do now. This is the part that needs coding.

Thanks for the information. Sorry I cannot help with the coding but I am 
not proficient in C or C++. Perhaps in the future ...? Meanwhile, I will 
stick with ERT!

Cheers,

Chris.
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Using Noun Style for SGML tags

2002-12-10 Thread Chris Lale
José Matos wrote:
 On Friday 06 December 2002 10:04, Chris Lale wrote:

I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a
few inline SGML tags eg filenamesome text/filename.

   Instead of adding this kind of hacks I would prefer to work in the 
full
 solution, as it is easier to maintain in the long term. And the 
proper fix is
 to add support for styles in lyx.

   If you still want to make this work, I can give some tips where to 
look for.
 Actually you only need to change the code in one function, so it 
shouldn't be
 too hard.

If this means modifying text configuration files, yes please - I will
have a go. I am not proficient in C though.


   Now if you want to fake some styles we can use the colours, that 
clearly
 don't have any counterparts in docbook and use them for different 
styles. But
 this only shows how much we need real user defined styles in lyx.

I did try this (modified from the troubleshooters.com Linux Productivity
Magazine), but it did not work in 'DocBook article (SGML)':


Layout  LaTex Preamble...

% %%% Pseudo character styles indexed by color %%%
\usepackage{ifthen}
\providecommand{\textcolor}[2]{#2}
\renewcommand{\textcolor}[2]{%
\ifthenelse{\equal{#1}{blue}}{{filename{#2}/filename}}{}%  SGML
filename tags
\ifthenelse{\equal{#1}{magenta}}{{\large{\texttt{#2{}%Large text
\ifthenelse{\equal{#1}{magenta}\or\equal{#1}{blue}}{}{#2}%fallthrough
}


Here is the text in Lyx ('myfile' is blue and 'Large' is magenta):

	newbie test myfile
	Large text


This produced unaltered text when viewed in DVI.
With Export  DocBook, the SGML file contained no filename tags:
	para
	 newbie test myfile
	/para
	para
	 Large text
	/para


Also, the preamble was printed at the top of both the DVI and the SGML
documents.

If I change the document from 'DocBook article (SGML)' to 'article' and
view in DVI, the magenta text is in large type, and the preamble is not
printed at the top.

Any ideas?

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Using Noun Style for SGML tags

2002-12-10 Thread Chris Lale
José Matos wrote:
 On Friday 06 December 2002 10:04, Chris Lale wrote:

I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a
few inline SGML tags eg filenamesome text/filename.

   Instead of adding this kind of hacks I would prefer to work in the 
full
 solution, as it is easier to maintain in the long term. And the 
proper fix is
 to add support for styles in lyx.

   If you still want to make this work, I can give some tips where to 
look for.
 Actually you only need to change the code in one function, so it 
shouldn't be
 too hard.

If this means modifying text configuration files, yes please - I will
have a go. I am not proficient in C though.


   Now if you want to fake some styles we can use the colours, that 
clearly
 don't have any counterparts in docbook and use them for different 
styles. But
 this only shows how much we need real user defined styles in lyx.

I did try this (modified from the troubleshooters.com Linux Productivity
Magazine), but it did not work in 'DocBook article (SGML)':


Layout  LaTex Preamble...

% %%% Pseudo character styles indexed by color %%%
\usepackage{ifthen}
\providecommand{\textcolor}[2]{#2}
\renewcommand{\textcolor}[2]{%
\ifthenelse{\equal{#1}{blue}}{{filename{#2}/filename}}{}%  SGML
filename tags
\ifthenelse{\equal{#1}{magenta}}{{\large{\texttt{#2{}%Large text
\ifthenelse{\equal{#1}{magenta}\or\equal{#1}{blue}}{}{#2}%fallthrough
}


Here is the text in Lyx ('myfile' is blue and 'Large' is magenta):

	newbie test myfile
	Large text


This produced unaltered text when viewed in DVI.
With Export  DocBook, the SGML file contained no filename tags:
	para
	 newbie test myfile
	/para
	para
	 Large text
	/para


Also, the preamble was printed at the top of both the DVI and the SGML
documents.

If I change the document from 'DocBook article (SGML)' to 'article' and
view in DVI, the magenta text is in large type, and the preamble is not
printed at the top.

Any ideas?

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Using Noun Style for SGML tags

2002-12-10 Thread Chris Lale
José Matos wrote:
> On Friday 06 December 2002 10:04, Chris Lale wrote:
>
>>I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a
>>few inline SGML tags eg some text.
>
>   Instead of adding this kind of hacks I would prefer to work in the 
full
> solution, as it is easier to maintain in the long term. And the 
proper fix is
> to add support for styles in lyx.
>
>   If you still want to make this work, I can give some tips where to 
look for.
> Actually you only need to change the code in one function, so it 
shouldn't be
> too hard.

If this means modifying text configuration files, yes please - I will
have a go. I am not proficient in C though.

>
>   Now if you want to fake some styles we can use the colours, that 
clearly
> don't have any counterparts in docbook and use them for different 
styles. But
> this only shows how much we need real user defined styles in lyx.

I did try this (modified from the troubleshooters.com Linux Productivity
Magazine), but it did not work in 'DocBook article (SGML)':


Layout > LaTex Preamble...

% %%% Pseudo character styles indexed by color %%%
\usepackage{ifthen}
\providecommand{\textcolor}[2]{#2}
\renewcommand{\textcolor}[2]{%
\ifthenelse{\equal{#1}{blue}}{{{#2}}}{}%  SGML
filename tags
\ifthenelse{\equal{#1}{magenta}}{{\large{\texttt{#2{}%Large text
\ifthenelse{\equal{#1}{magenta}\or\equal{#1}{blue}}{}{#2}%fallthrough
}


Here is the text in Lyx ('myfile' is blue and 'Large' is magenta):

	newbie test myfile
	Large text


This produced unaltered text when viewed in DVI.
With Export > DocBook, the SGML file contained no  tags:
	
	 newbie test myfile
	
	
	 Large text
	


Also, the preamble was printed at the top of both the DVI and the SGML
documents.

If I change the document from 'DocBook article (SGML)' to 'article' and
view in DVI, the magenta text is in large type, and the preamble is not
printed at the top.

Any ideas?

Cheers,

Chris.
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Using Noun Style for SGML tags

2002-12-06 Thread Chris Lale
I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a 
few inline SGML tags eg filenamesome text/filename. The  ...  tags 
are in red text. I would like to avoid using the red tags by redefining 
Styles in the preamble. Here is the most complex change I wish to make:

Layout  Noun Style
Render as Bold and Typewriter (without Small Caps) in Lyx, DVI, PDF.
Render as filenamesome text/filename when exported to DocBook.

If I can find out how do this, I should be able to redefine other Styles 
to render other SGML tags.

I would be grateful for any suggestions.

Thanks,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: spell check

2002-12-06 Thread Chris Lale


? wrote:

so i just recently switched from redhat to debian woody, i'm running 1.1.6
and i almost got everything working agian.

but still not spell checker.  i installed ispell and aspell.  but there's
not /usr/lib/ispell like the faq says there should be.  what do i do first
to get this running?


I am running Lyx 1.1.6fix4 on Debian Woody 3.0 and spellcheck works 
fine. It sounds like the problem is with ispell. I ran 'whereis ispell' 
and got this output:

ispell: /usr/bin/ispell /usr/lib/ispell /usr/share/man/man1/ispell.1.gz 
/usr/share/man/man5/ispell.5.gz


Try re-installing ispell. As root enter 'apt-get remove ispell', or 
'apt-get --purge remove ispell' which also removes ispell's 
configuration files.

Make a note of packages that will be removed so that you can reinstall 
them if necessary. In my case:

The following packages will be REMOVED:
  abiword abiword-common abiword-gtk iamerican ibritish ispell
  libpspell-ispell1

Procede, then re-install ispell using 'apt-get install ispell'.

In Lyx, check 'Edit  preferences..  Spell checker' settings.

Hth

Chris.

--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Using Noun Style for SGML tags

2002-12-06 Thread Chris Lale
I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a 
few inline SGML tags eg filenamesome text/filename. The  ...  tags 
are in red text. I would like to avoid using the red tags by redefining 
Styles in the preamble. Here is the most complex change I wish to make:

Layout  Noun Style
Render as Bold and Typewriter (without Small Caps) in Lyx, DVI, PDF.
Render as filenamesome text/filename when exported to DocBook.

If I can find out how do this, I should be able to redefine other Styles 
to render other SGML tags.

I would be grateful for any suggestions.

Thanks,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: spell check

2002-12-06 Thread Chris Lale


? wrote:

so i just recently switched from redhat to debian woody, i'm running 1.1.6
and i almost got everything working agian.

but still not spell checker.  i installed ispell and aspell.  but there's
not /usr/lib/ispell like the faq says there should be.  what do i do first
to get this running?


I am running Lyx 1.1.6fix4 on Debian Woody 3.0 and spellcheck works 
fine. It sounds like the problem is with ispell. I ran 'whereis ispell' 
and got this output:

ispell: /usr/bin/ispell /usr/lib/ispell /usr/share/man/man1/ispell.1.gz 
/usr/share/man/man5/ispell.5.gz


Try re-installing ispell. As root enter 'apt-get remove ispell', or 
'apt-get --purge remove ispell' which also removes ispell's 
configuration files.

Make a note of packages that will be removed so that you can reinstall 
them if necessary. In my case:

The following packages will be REMOVED:
  abiword abiword-common abiword-gtk iamerican ibritish ispell
  libpspell-ispell1

Procede, then re-install ispell using 'apt-get install ispell'.

In Lyx, check 'Edit  preferences..  Spell checker' settings.

Hth

Chris.

--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Using Noun Style for SGML tags

2002-12-06 Thread Chris Lale
I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a 
few inline SGML tags eg some text. The < ... > tags 
are in red text. I would like to avoid using the red tags by redefining 
Styles in the preamble. Here is the most complex change I wish to make:

Layout > Noun Style
Render as Bold and Typewriter (without Small Caps) in Lyx, DVI, PDF.
Render as some text when exported to DocBook.

If I can find out how do this, I should be able to redefine other Styles 
to render other SGML tags.

I would be grateful for any suggestions.

Thanks,

Chris.
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: spell check

2002-12-06 Thread Chris Lale


? wrote:

so i just recently switched from redhat to debian woody, i'm running 1.1.6
and i almost got everything working agian.

but still not spell checker.  i installed ispell and aspell.  but there's
not /usr/lib/ispell like the faq says there should be.  what do i do first
to get this running?


I am running Lyx 1.1.6fix4 on Debian Woody 3.0 and spellcheck works 
fine. It sounds like the problem is with ispell. I ran 'whereis ispell' 
and got this output:

ispell: /usr/bin/ispell /usr/lib/ispell /usr/share/man/man1/ispell.1.gz 
/usr/share/man/man5/ispell.5.gz


Try re-installing ispell. As root enter 'apt-get remove ispell', or 
'apt-get --purge remove ispell' which also removes ispell's 
configuration files.

Make a note of packages that will be removed so that you can reinstall 
them if necessary. In my case:

The following packages will be REMOVED:
  abiword abiword-common abiword-gtk iamerican ibritish ispell
  libpspell-ispell1

Procede, then re-install ispell using 'apt-get install ispell'.

In Lyx, check 'Edit > preferences.. > Spell checker' settings.

Hth

Chris.

--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: style formatting lost with dvi

2002-12-01 Thread Chris Lale


Dekel Tsur wrote:

On Sat, Nov 30, 2002 at 11:15:42AM +, Chris Lale wrote:


# Warning style definition
Style Warning
 LatexType		Paragraph



Replace by
LatexType   Environment



 LatexName		warning
 Font
   Shape  Italic
 EndFont
 NextNoIndent		1
 LeftMargin		MMM
 RightMargin		MMM
 TopSep		0.5
 BottomSep		0.5
 Align			Left
 AlignPossible		Block, Left, Right, Center
 LabelType		No_Label
 MarginStatic



Add here:
Preamble
\newenvironment{warning}
   {\par\setlength{\leftskip}{1cm}\addtolength{\hsize}{-1cm}\itshape}
   {\par\noindent}
EndPreamble


End




Thanks for this. It works fine, except for {\par\noindent} (the first 
line is still indented). Still, I should be able to fix this now I know 
what to do.

Is a Preamble section only allowed in a style with LatexType		Environment?

Cheers,

Chris.

--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: style formatting lost with dvi

2002-12-01 Thread Chris Lale


Dekel Tsur wrote:

On Sat, Nov 30, 2002 at 11:15:42AM +, Chris Lale wrote:


# Warning style definition
Style Warning
 LatexType		Paragraph



Replace by
LatexType   Environment



 LatexName		warning
 Font
   Shape  Italic
 EndFont
 NextNoIndent		1
 LeftMargin		MMM
 RightMargin		MMM
 TopSep		0.5
 BottomSep		0.5
 Align			Left
 AlignPossible		Block, Left, Right, Center
 LabelType		No_Label
 MarginStatic



Add here:
Preamble
\newenvironment{warning}
   {\par\setlength{\leftskip}{1cm}\addtolength{\hsize}{-1cm}\itshape}
   {\par\noindent}
EndPreamble


End




Thanks for this. It works fine, except for {\par\noindent} (the first 
line is still indented). Still, I should be able to fix this now I know 
what to do.

Is a Preamble section only allowed in a style with LatexType		Environment?

Cheers,

Chris.

--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: style formatting lost with dvi

2002-12-01 Thread Chris Lale


Dekel Tsur wrote:

On Sat, Nov 30, 2002 at 11:15:42AM +, Chris Lale wrote:


# Warning style definition
Style Warning
 LatexType		Paragraph



Replace by
LatexType   Environment



 LatexName		warning
 Font
   Shape  Italic
 EndFont
 NextNoIndent		1
 LeftMargin		MMM
 RightMargin		MMM
 TopSep		0.5
 BottomSep		0.5
 Align			Left
 AlignPossible		Block, Left, Right, Center
 LabelType		No_Label
 MarginStatic



Add here:
Preamble
\newenvironment{warning}
   {\par\setlength{\leftskip}{1cm}\addtolength{\hsize}{-1cm}\itshape}
   {\par\noindent}
EndPreamble


End




Thanks for this. It works fine, except for {\par\noindent} (the first 
line is still indented). Still, I should be able to fix this now I know 
what to do.

Is a Preamble section only allowed in a style with LatexType		Environment?

Cheers,

Chris.

--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



style formatting lost with dvi

2002-11-30 Thread Chris Lale
I have defined a new style definition for article. It looks fine in Lyx 
(1.1.6fix4) - itallic font and new margins show up. When I view it in 
DVI, it has lost this font and margins. Can anyone suggest why? Here are 
my files (article2.layout and extra.inc):

article2.layout-

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article2}
# Article textclass definition file.

Input article.layout

# Input docbook extra style definitions
Input extra.inc


extra.inc---

# Warning style definition
Style Warning
  LatexType		Paragraph
  LatexName		warning
  Font
Shape  Italic
  EndFont
  NextNoIndent		1
  LeftMargin		MMM
  RightMargin		MMM
  TopSep		0.5
  BottomSep		0.5
  Align			Left
  AlignPossible		Block, Left, Right, Center
  LabelType		No_Label
  MarginStatic
End


Cheers,

Chris

--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



style formatting lost with dvi

2002-11-30 Thread Chris Lale
I have defined a new style definition for article. It looks fine in Lyx 
(1.1.6fix4) - itallic font and new margins show up. When I view it in 
DVI, it has lost this font and margins. Can anyone suggest why? Here are 
my files (article2.layout and extra.inc):

article2.layout-

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article2}
# Article textclass definition file.

Input article.layout

# Input docbook extra style definitions
Input extra.inc


extra.inc---

# Warning style definition
Style Warning
  LatexType		Paragraph
  LatexName		warning
  Font
Shape  Italic
  EndFont
  NextNoIndent		1
  LeftMargin		MMM
  RightMargin		MMM
  TopSep		0.5
  BottomSep		0.5
  Align			Left
  AlignPossible		Block, Left, Right, Center
  LabelType		No_Label
  MarginStatic
End


Cheers,

Chris

--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



style formatting lost with dvi

2002-11-30 Thread Chris Lale
I have defined a new style definition for article. It looks fine in Lyx 
(1.1.6fix4) - itallic font and new margins show up. When I view it in 
DVI, it has lost this font and margins. Can anyone suggest why? Here are 
my files (article2.layout and extra.inc):

article2.layout-

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article2}
# Article textclass definition file.

Input article.layout

# Input docbook extra style definitions
Input extra.inc


extra.inc---

# Warning style definition
Style Warning
  LatexType		Paragraph
  LatexName		warning
  Font
Shape  Italic
  EndFont
  NextNoIndent		1
  LeftMargin		MMM
  RightMargin		MMM
  TopSep		0.5
  BottomSep		0.5
  Align			Left
  AlignPossible		Block, Left, Right, Center
  LabelType		No_Label
  MarginStatic
End


Cheers,

Chris

--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Incorrect docbook export

2002-11-28 Thread Chris Lale


Andre Poenitz wrote:

On Wed, Nov 27, 2002 at 03:44:23PM +, Chris Lale wrote:


I have a temporary workaround (highlight and click the TEX button). Is 
there a file that I can alter?


src/sgml.C 

The change is obvious.

Thanks, but I cannot find this file. It is not in lyx-1.1.6fix4.tar.gz 
or lyx-1.2.1.tar.gz.

Any suggestions?

Cheers,

Chris
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Incorrect docbook export

2002-11-28 Thread Chris Lale


Andre Poenitz wrote:

On Wed, Nov 27, 2002 at 03:44:23PM +, Chris Lale wrote:


I have a temporary workaround (highlight and click the TEX button). Is 
there a file that I can alter?


src/sgml.C 

The change is obvious.

Thanks, but I cannot find this file. It is not in lyx-1.1.6fix4.tar.gz 
or lyx-1.2.1.tar.gz.

Any suggestions?

Cheers,

Chris
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: Incorrect docbook export

2002-11-28 Thread Chris Lale


Andre Poenitz wrote:

On Wed, Nov 27, 2002 at 03:44:23PM +, Chris Lale wrote:


I have a temporary workaround (highlight and click the TEX button). Is 
there a file that I can alter?


src/sgml.C 

The change is obvious.

Thanks, but I cannot find this file. It is not in lyx-1.1.6fix4.tar.gz 
or lyx-1.2.1.tar.gz.

Any suggestions?

Cheers,

Chris
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Incorrect docbook export

2002-11-27 Thread Chris Lale
I am using Lyx (1.1.6fix4) to compose articles using document class 
Docbook Article (SGML).

I am getting some incorrect SGML when I export to docbook:


1. characters # and $
These export to dollar; and num; but should remain as # and $.The 
result is that dollar; appears in the HTML document instead of $.
However, ~ exports to tilde; and this is correct.

I have a temporary workaround (highlight and click the TEX button). Is 
there a file that I can alter?


2. label
Inserting a label (eg abc) and exporting results in anchor 
id=abc/anchor. Sgmltools complains about the end tag. The correct 
export should be anchor id=abc. Is there a way to change this?

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Incorrect docbook export

2002-11-27 Thread Chris Lale
I am using Lyx (1.1.6fix4) to compose articles using document class 
Docbook Article (SGML).

I am getting some incorrect SGML when I export to docbook:


1. characters # and $
These export to dollar; and num; but should remain as # and $.The 
result is that dollar; appears in the HTML document instead of $.
However, ~ exports to tilde; and this is correct.

I have a temporary workaround (highlight and click the TEX button). Is 
there a file that I can alter?


2. label
Inserting a label (eg abc) and exporting results in anchor 
id=abc/anchor. Sgmltools complains about the end tag. The correct 
export should be anchor id=abc. Is there a way to change this?

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Incorrect docbook export

2002-11-27 Thread Chris Lale
I am using Lyx (1.1.6fix4) to compose articles using document class 
Docbook Article (SGML).

I am getting some incorrect SGML when I export to docbook:


1. characters # and $
These export to  and  but should remain as # and $.The 
result is that  appears in the HTML document instead of $.
However, ~ exports to  and this is correct.

I have a temporary workaround (highlight and click the TEX button). Is 
there a file that I can alter?


2. label
Inserting a label (eg abc) and exporting results in . Sgmltools complains about the end tag. The correct 
export should be . Is there a way to change this?

Cheers,

Chris.
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: DocBook SGML

2002-11-26 Thread Chris Lale
Hello José.

Thanks for your help.

José Abílio Oliveira Matos wrote:

On Saturday 23 November 2002 09:03, Chris Lale wrote:


I am using Lyx (1.1.6fix4) to compose DocBook articles. Can I add my
favourite DocBook SGML tags as items in the environment menu? I am new
to Lyx and LaTeX.



  Yes, 

That's great!


but those should be paragraph level elements to have a more wysiwym 
look. 

That's fine - I want to use the SGML screen/screen tags to format a 
paragraph.

The support for characther level style is high on our todo list.


Even better - I use command/command and keycap/keycap a lot too.


  If you add any other styles you can send them to me and they will ship with 
next versions of lyx.

I will do that.

Can you tell me how to get started? Is there a HOWTO I sould read? Do I 
need to find out more about LaTeX to learn how to add an item to the 
environment menu?

I had a look at docbook.layout. It includes this line:
	Input db_stdclass.inc

Input db_stdclass.inc includes these lines:
	Input stdlists.inc
	Input stdsections.inc
	Input stdstarsections.inc
	Input stdtitle.inc
	Input stdstruct.inc
	Input lyxmacros.inc
	Input stdlayouts.inc
	Input obsolete.inc

Do I need to add a definition section to one of these? Or do I need to 
create a new .inc file? Or am I completely on the wrong track?

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: DocBook SGML

2002-11-26 Thread Chris Lale
Hello José. Success! Thank you again.

I have created a textclass that produces the docbook screen/screen
tags. This is what I did (by modifying copies of existing files).

1. Create a file /usr/share/lyx/layouts/docbook-newbiedoc.layout:

#% Do not delete the line below; configure depends on this
#  \DeclareDocBookClass[article] {DocBook Newbiedoc article (SGML)}
# DocBook textclass definition file.
# Author : Chris Lale [EMAIL PROTECTED]

# Input general definitions
Input db_stdclass.inc
Input db_extra.inc

MaxCounter		Counter_Section

# Exclude higher, or equal, sections:
NoStyle Part
NoStyle Chapter


2. Create a file /usr/share/lyx/layouts/db_extra.inc:

# Textclass definition file for docbook with extra tags.
# Author : Chris Lale [EMAIL PROTECTED]

# This is the counterpart of lyxmacros.inc
# It is desireable, as far as possible, to have the same look and 
feeling for
# related layouts in latex and docbook.

Input lyxmacros.inc

# Screen style definition
Style Screen
  LatexType		Paragraph
  LatexName		screen
  Font
Family  Typewriter
  EndFont
End


3. In Lyx, Edit  Reconfigure and restart Lyx.


Now, another question if I may? Can you nest paragraphs? I want the SGML 
to look like this:

revhistory
	revision
		revnumber1.2/revnumber
		date8th September 2002/date 		authorinitialsCTL/authorinitials
		revremarkFixed some mistakes/revremark
	/revision
	revision
		revnumber1.1/revnumber
		date28th March 2002/date
		authorinitialsCTL/authorinitials
		revremarkCompleted sections on configuring/revremark
	/revision
/revhistory

Cheers,

Chris.

PS I have been writing articles for the Debian GNU/Linux Newbiedoc 
project (http://newbiedoc.sourceforge.net/) using Emacs, but Lyx would 
be far easier!


--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: DocBook SGML

2002-11-26 Thread Chris Lale
Hello José.

Thanks for your help.

José Abílio Oliveira Matos wrote:

On Saturday 23 November 2002 09:03, Chris Lale wrote:


I am using Lyx (1.1.6fix4) to compose DocBook articles. Can I add my
favourite DocBook SGML tags as items in the environment menu? I am new
to Lyx and LaTeX.



  Yes, 

That's great!


but those should be paragraph level elements to have a more wysiwym 
look. 

That's fine - I want to use the SGML screen/screen tags to format a 
paragraph.

The support for characther level style is high on our todo list.


Even better - I use command/command and keycap/keycap a lot too.


  If you add any other styles you can send them to me and they will ship with 
next versions of lyx.

I will do that.

Can you tell me how to get started? Is there a HOWTO I sould read? Do I 
need to find out more about LaTeX to learn how to add an item to the 
environment menu?

I had a look at docbook.layout. It includes this line:
	Input db_stdclass.inc

Input db_stdclass.inc includes these lines:
	Input stdlists.inc
	Input stdsections.inc
	Input stdstarsections.inc
	Input stdtitle.inc
	Input stdstruct.inc
	Input lyxmacros.inc
	Input stdlayouts.inc
	Input obsolete.inc

Do I need to add a definition section to one of these? Or do I need to 
create a new .inc file? Or am I completely on the wrong track?

Cheers,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: DocBook SGML

2002-11-26 Thread Chris Lale
Hello José. Success! Thank you again.

I have created a textclass that produces the docbook screen/screen
tags. This is what I did (by modifying copies of existing files).

1. Create a file /usr/share/lyx/layouts/docbook-newbiedoc.layout:

#% Do not delete the line below; configure depends on this
#  \DeclareDocBookClass[article] {DocBook Newbiedoc article (SGML)}
# DocBook textclass definition file.
# Author : Chris Lale [EMAIL PROTECTED]

# Input general definitions
Input db_stdclass.inc
Input db_extra.inc

MaxCounter		Counter_Section

# Exclude higher, or equal, sections:
NoStyle Part
NoStyle Chapter


2. Create a file /usr/share/lyx/layouts/db_extra.inc:

# Textclass definition file for docbook with extra tags.
# Author : Chris Lale [EMAIL PROTECTED]

# This is the counterpart of lyxmacros.inc
# It is desireable, as far as possible, to have the same look and 
feeling for
# related layouts in latex and docbook.

Input lyxmacros.inc

# Screen style definition
Style Screen
  LatexType		Paragraph
  LatexName		screen
  Font
Family  Typewriter
  EndFont
End


3. In Lyx, Edit  Reconfigure and restart Lyx.


Now, another question if I may? Can you nest paragraphs? I want the SGML 
to look like this:

revhistory
	revision
		revnumber1.2/revnumber
		date8th September 2002/date 		authorinitialsCTL/authorinitials
		revremarkFixed some mistakes/revremark
	/revision
	revision
		revnumber1.1/revnumber
		date28th March 2002/date
		authorinitialsCTL/authorinitials
		revremarkCompleted sections on configuring/revremark
	/revision
/revhistory

Cheers,

Chris.

PS I have been writing articles for the Debian GNU/Linux Newbiedoc 
project (http://newbiedoc.sourceforge.net/) using Emacs, but Lyx would 
be far easier!


--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: DocBook SGML

2002-11-26 Thread Chris Lale
Hello José.

Thanks for your help.

José Abílio Oliveira Matos wrote:

On Saturday 23 November 2002 09:03, Chris Lale wrote:


I am using Lyx (1.1.6fix4) to compose DocBook articles. Can I add my
favourite DocBook SGML tags as items in the environment menu? I am new
to Lyx and LaTeX.



  Yes, 

That's great!


but those should be paragraph level elements to have a more wysiwym 
look. 

That's fine - I want to use the SGML  tags to format a 
paragraph.

The support for characther level style is high on our todo list.


Even better - I use  and  a lot too.


  If you add any other styles you can send them to me and they will ship with 
next versions of lyx.

I will do that.

Can you tell me how to get started? Is there a HOWTO I sould read? Do I 
need to find out more about LaTeX to learn how to add an item to the 
environment menu?

I had a look at docbook.layout. It includes this line:
	Input db_stdclass.inc

Input db_stdclass.inc includes these lines:
	Input stdlists.inc
	Input stdsections.inc
	Input stdstarsections.inc
	Input stdtitle.inc
	Input stdstruct.inc
	Input lyxmacros.inc
	Input stdlayouts.inc
	Input obsolete.inc

Do I need to add a definition section to one of these? Or do I need to 
create a new .inc file? Or am I completely on the wrong track?

Cheers,

Chris.
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



Re: DocBook SGML

2002-11-26 Thread Chris Lale
Hello José. Success! Thank you again.

I have created a textclass that produces the docbook 
tags. This is what I did (by modifying copies of existing files).

1. Create a file /usr/share/lyx/layouts/docbook-newbiedoc.layout:

#% Do not delete the line below; configure depends on this
#  \DeclareDocBookClass[article] {DocBook Newbiedoc article (SGML)}
# DocBook textclass definition file.
# Author : Chris Lale <[EMAIL PROTECTED]>

# Input general definitions
Input db_stdclass.inc
Input db_extra.inc

MaxCounter		Counter_Section

# Exclude higher, or equal, sections:
NoStyle Part
NoStyle Chapter


2. Create a file /usr/share/lyx/layouts/db_extra.inc:

# Textclass definition file for docbook with extra tags.
# Author : Chris Lale <[EMAIL PROTECTED]>

# This is the counterpart of lyxmacros.inc
# It is desireable, as far as possible, to have the same look and 
feeling for
# related layouts in latex and docbook.

Input lyxmacros.inc

# Screen style definition
Style Screen
  LatexType		Paragraph
  LatexName		screen
  Font
Family  Typewriter
  EndFont
End


3. In Lyx, Edit > Reconfigure and restart Lyx.


Now, another question if I may? Can you nest paragraphs? I want the SGML 
to look like this:


	
		1.2
		8th September 2002 		CTL
		Fixed some mistakes
	
	
		1.1
		28th March 2002
		CTL
		Completed sections on configuring
	


Cheers,

Chris.

PS I have been writing articles for the Debian GNU/Linux Newbiedoc 
project (http://newbiedoc.sourceforge.net/) using Emacs, but Lyx would 
be far easier!


--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



DocBook SGML

2002-11-23 Thread Chris Lale
I am using Lyx (1.1.6fix4) to compose DocBook articles. Can I add my 
favourite DocBook SGML tags as items in the environment menu? I am new 
to Lyx and LaTeX.

The 'customization' document in the 'Help' menu outlines how to install 
new document classes and layouts and refers to files *.cls or *.sty. I 
thought that I could look at the DocBook versions of these files and 
modify them, but I cannot find any .cls or .sty files for DocBook articles.

Help also mentions downloading LaTeX packages from CTAN. I had a look at 
 http://tug.ctan.org/CTANfind.html but I could not see anything obvious.

Any help or suggestions would be gratefully received!

Regards,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



DocBook SGML

2002-11-23 Thread Chris Lale
I am using Lyx (1.1.6fix4) to compose DocBook articles. Can I add my 
favourite DocBook SGML tags as items in the environment menu? I am new 
to Lyx and LaTeX.

The 'customization' document in the 'Help' menu outlines how to install 
new document classes and layouts and refers to files *.cls or *.sty. I 
thought that I could look at the DocBook versions of these files and 
modify them, but I cannot find any .cls or .sty files for DocBook articles.

Help also mentions downloading LaTeX packages from CTAN. I had a look at 
 http://tug.ctan.org/CTANfind.html but I could not see anything obvious.

Any help or suggestions would be gratefully received!

Regards,

Chris.
--
:  ___   Chris Lale   [EMAIL PROTECTED]  :
: /   \   :
: | _/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :



DocBook SGML

2002-11-23 Thread Chris Lale
I am using Lyx (1.1.6fix4) to compose DocBook articles. Can I add my 
favourite DocBook SGML tags as items in the environment menu? I am new 
to Lyx and LaTeX.

The 'customization' document in the 'Help' menu outlines how to install 
new document classes and layouts and refers to files *.cls or *.sty. I 
thought that I could look at the DocBook versions of these files and 
modify them, but I cannot find any .cls or .sty files for DocBook articles.

Help also mentions downloading LaTeX packages from CTAN. I had a look at 
 http://tug.ctan.org/CTANfind.html but I could not see anything obvious.

Any help or suggestions would be gratefully received!

Regards,

Chris.
--
:  ___   Chris Lale   <[EMAIL PROTECTED]>  :
: /   \   :
: | <_/  My PC runs Debian GNU/Linux 3.0. :
: \  Robust, secure and free operating system + applications. :
:  \ Available at http://www.debian.org   :