Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
Dear Lyxers,

I am trying out the new advanced search with regexes, and I cannot figure
out how to use backreferences in the replace part of the dialog.

I am used to using \1 \2 etc. as back references to first match, second
match, etc., but if I try to replace dashes with en-dashes between numbers
with:

Find: ([0-9])-([0-9])

Replace: \1--\2


Lyx replaces the matched expressions with {\1--\2}.

There must be something quite basic I am overlooking.


Cheers,

Stefano


Re: Bad font and ?? instead of eq. number

2010-11-29 Thread Guenter Milde
On 2010-11-29, Uwe Stöhr wrote:
 Am 28.11.2010 23:46, schrieb Emil Pavlov:

 1. Why is book (coma-script) producing pdfs with such a bad font? It
 seems that all the letter have different height.

 Your PDF looks very well (viewed with Acrobat 7). However, in your
 docment you are using LaTeX's default fonts (computer modern). These
 are bitmap fonts and might therefore look pixeled when viewing the PDF
 with older viewer programs.

 Change the font of your document to e.g. the latin modern fonts (as I
 did in the attached file) and the problem will disappear, see also
 http://wiki.lyx.org/FAQ/PDF#badFonts

Depending on the local setup, it might also be the CM-Super (outlined)
fonts.

Does the problem go away when you magnify the document in the viewer?
Then it is bad hinting. This will not affect the output.
For better on-screen view, use e.g. Bera (Bitstream Vera) fonts.

Günter



Re: Some page numbers are rendered in a wrong font

2010-11-29 Thread Guenter Milde
On 2010-11-28, Nikos Chantziaras wrote:
 On 11/29/2010 01:20 AM, Richard Heck wrote:
 On 11/28/2010 05:09 PM, Nikos Chantziaras wrote:
 Not sure if this is a LyX problem, but I hope someone here has
 encountered this issue and might know a solution.

 My problem is that when a program listing (Insert - Program Listing)
 does not fit into the same page it starts in, and so a page break
 occurs in the middle of it, the page number at the bottom of the page
 in which the page break occurs is rendered in the typewriter font,
 just like the program listing itself. This only happens if I use:

 basicstyle={\ttfamily}

 in Document Settings - Listings so that program listings use the
 document's typewriter font (in my case DejaVu Sans Mono) instead of
 the weird-looking default.

 I'm using XeTeX. Has anyone else encountered this?

 I was not able to reproduce this in trunk.

 Oops, I just found out that it only happens when setting the document 
 language to Greek.  With English there's no problem.


Greek and XeTeX: * make sure not to use the babel package

listings and XeTeX might also be problematic regarding the font
choices (as listings will usually select TeX fonts).

How about changing the language of the listing to English while
keeping the document Greek?

Günter



Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi
stefano.fran...@gmail.comwrote:

 Dear Lyxers,

 I am trying out the new advanced search with regexes, and I cannot figure
 out how to use backreferences in the replace part of the dialog.

 I am used to using \1 \2 etc. as back references to first match, second
 match, etc., but if I try to replace dashes with en-dashes between numbers
 with:

 Find: ([0-9])-([0-9])

 Replace: \1--\2


 Lyx replaces the matched expressions with {\1--\2}.

 There must be something quite basic I am overlooking.



Indeed there was. It turns out you need to type the backslash twice to
obtain a back-reference. Found out in the advanced search manual from the
wiki (which Lyx 2Beta does not load, however. I had to compile the last
development version to read it).

Cheers,

S.



 Cheers,

 Stefano



use of nativ tex documents - LyX 1.6.4

2010-11-29 Thread Jörg Kühne
Dear list

After opening a master .lyx document and exporting it as a LaTex (normal) 
document I can not use any more this native .tex file for further writing or 
releases during the import procedure. Following message occurs during 
importing: the following file already exists - you would like to overwrite 
this? - Yes - during the proceeding of tex2lyx -f 'newfile2.tex' 
'newfle.lyx' an error is occurred

Is it always necessary to save documents in the proprietary .lyx format?

Is it not possible to work only with native .tex files?

For what reasons exists the export/import functionality? 

Thanks for for your help.

Regards 

Joerg 
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail


Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 9:33 AM, stefano franchi
stefano.fran...@gmail.comwrote:



 On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi 
 stefano.fran...@gmail.com wrote:

 Dear Lyxers,

 I am trying out the new advanced search with regexes, and I cannot figure
 out how to use backreferences in the replace part of the dialog.

 I am used to using \1 \2 etc. as back references to first match, second
 match, etc., but if I try to replace dashes with en-dashes between numbers
 with:

 Find: ([0-9])-([0-9])

 Replace: \1--\2


 Lyx replaces the matched expressions with {\1--\2}.

 There must be something quite basic I am overlooking.



 Indeed there was. It turns out you need to type the backslash twice to
 obtain a back-reference. Found out in the advanced search manual from the
 wiki (which Lyx 2Beta does not load, however. I had to compile the last
 development version to read it).


Weel, to put an end to this monologue: I was wrong. The last line of the
manual says: The use of back references in the replaced text is not (yet)
implemented
:-(


Re: [New layout] Support for AEA.cls (American Economic Association journals)

2010-11-29 Thread K. Yokota
Dear Peter,

It'd be better download the layout file itself from:
http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/layouts/AEA.layout?rev=34800

Please put the layout file in the layouts directory (In the case of
Windows, I think it is located below \Program Files\LyX\.)

Koji

ps. Please follow up to lyx-users ML.

2010/11/29 Peter eagam...@gmail.com:


 Hi,

 I am new to Lyx. Can you tell me how to use the patch to add the new layout to
 lyx 1.6.7.

 Thanks

 Peter






Re: use of nativ tex documents - LyX 1.6.4

2010-11-29 Thread Richard Heck

On 11/29/2010 10:25 AM, Jörg Kühne wrote:

Dear list

After opening a master .lyx document and exporting it as a LaTex (normal) document I can not use any more 
this native .tex file for further writing or releases during the import procedure. Following message 
occurs during importing: the following file already exists - you would like to overwrite 
this? -  Yes -  during the proceeding of tex2lyx -f 'newfile2.tex' 'newfle.lyx' an 
error is occurred

   
We call this a bug. ;-) Seriously, if export/import fails this way, 
then it is a problem. Can you send me the file that is causing the 
problem privately? I'll see what's up. Import also shouldn't just fail 
even if you made changes to the file.


But I think the bigger issue is a misunderstanding about what LyX is.


Is it always necessary to save documents in the proprietary .lyx format?

   
I don't know about necessary, but yes, pretty much. LyX uses its own 
format, for a long list of reasons, the most important of which is that 
LyX is not a TeX editor. It is its own thing, and, to LyX, LaTeX is just 
one among several output formats that it currently supports, and it 
would be fairly easy, for example, to add support for ConTeXt, if 
someone wanted to do that. Of course, LaTeX is presently the most 
important backend, but it's still just a backend to LyX.



Is it not possible to work only with native .tex files?

   
No, not really. I mean, you could, but you will lose information. If you 
want to work with tex files, use a TeX editor.



For what reasons exists the export/import functionality?

   
Export exists, first of all, because LyX uses LaTeX as a backend via 
which a document can be compiled to produce output. It also exists 
because publishers generally do not want LyX files but TeX files. In 
that sense, LyX's ability to export LaTeX is comparable to OpenOffice's 
ability to do so.


Import exists for the same sort of reason OpenOffice imports RTF, 
WordPerfect, etc, etc.


So: It is not intended that one should save the document as a TeX file, 
then proceed to re-open it.


Richard



Re: [New layout] Support for AEA.cls (American Economic Association journals)

2010-11-29 Thread K. Yokota
Dear Peter,

 In the Document-setting-document class, the Article (American Economic
 Association) class is Unavailable. I have reconfigure Lyx, and I have
 added Harvard package to Mikitex.

OK, Article (American Economic Association) is listed in the
document class option, so the layout file is recognized by LyX. It
means there is some problem in the TeX installation. After you
installed AEA.cls, did you run either 'texhash' or 'mktexlsr' from the
command line?

 When I manually select AEA class, I get several errors, such as,

 Font T1/cmr/m/n/10=dcr10 at 10.0pt not loadable: Metric (TFM) file not
 found.

 *Descrption:
  \fontencoding\encodingdefault\selectfont
 I installed several possible font, but it is not solved.

This also probably means there is a TeX installation problem. Please
consult with documentation of AEA.cls and check if TeX system is
correctly installed.

 Peter

Koji


 On Mon, Nov 29, 2010 at 10:57 AM, K. Yokota yokot...@gmail.com wrote:

 Dear Peter,

 It'd be better download the layout file itself from:

 http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/layouts/AEA.layout?rev=34800

 Please put the layout file in the layouts directory (In the case of
 Windows, I think it is located below \Program Files\LyX\.)

 Koji

 ps. Please follow up to lyx-users ML.

 2010/11/29 Peter eagam...@gmail.com:
 
 
  Hi,
 
  I am new to Lyx. Can you tell me how to use the patch to add the new
  layout to
  lyx 1.6.7.
 
  Thanks
 
  Peter
 
 
 
 




file conversions

2010-11-29 Thread Paul Sutton
Hi

Looking around on the net i found references to the following

lyxtox script - converts lyx to docbook sgml
db2lyx - converts lyx to xml docbook


not sure if these are mentioned anywhere on the wiki

however

http://wiki.lyx.org/Tools/ELyXer

ELyXer is it converts LyX to Html

not sure if any of this is useful,  converting to docbook would be good
for anyone interested in doing stuff for the linux documentation project.

Paul
-- 



Paul Sutton Cert SLPS (Open)
http://www.zleap.net


17th September 2011 - Software freedom day



Re: Some page numbers are rendered in a wrong font

2010-11-29 Thread Nikos Chantziaras

On 11/29/2010 05:05 PM, Guenter Milde wrote:

On 2010-11-28, Nikos Chantziaras wrote:

On 11/29/2010 01:20 AM, Richard Heck wrote:

On 11/28/2010 05:09 PM, Nikos Chantziaras wrote:

Not sure if this is a LyX problem, but I hope someone here has
encountered this issue and might know a solution.



My problem is that when a program listing (Insert -  Program Listing)
does not fit into the same page it starts in, and so a page break
occurs in the middle of it, the page number at the bottom of the page
in which the page break occurs is rendered in the typewriter font,
just like the program listing itself. This only happens if I use:



basicstyle={\ttfamily}



in Document Settings -  Listings so that program listings use the
document's typewriter font (in my case DejaVu Sans Mono) instead of
the weird-looking default.



I'm using XeTeX. Has anyone else encountered this?



I was not able to reproduce this in trunk.



Oops, I just found out that it only happens when setting the document
language to Greek.  With English there's no problem.



Greek and XeTeX: * make sure not to use the babel package


LyX 2 uses the polyglossia package when enabling XeTeX, which in turn 
loads babel.  But I don't load babel myself, if that's what you mean.




listings and XeTeX might also be problematic regarding the font
choices (as listings will usually select TeX fonts).


If I let listing select TeX fonts, then there's no problem.  The problem 
occurs only when I use basicstyle={\ttfamily} so that the XeTeX font 
is used.




How about changing the language of the listing to English while
keeping the document Greek?


Just tried, but unfortunately it makes no difference.



Re: Bad font (follow-up question)

2010-11-29 Thread Emil Pavlov

На 29.11.2010 16:02, Guenter Milde написа:

On 2010-11-29, Uwe Stöhr wrote:

Am 28.11.2010 23:46, schrieb Emil Pavlov:

1. Why is book (coma-script) producing pdfs with such a bad font? It
seems that all the letter have different height.

Your PDF looks very well (viewed with Acrobat 7). However, in your
docment you are using LaTeX's default fonts (computer modern). These
are bitmap fonts and might therefore look pixeled when viewing the PDF
with older viewer programs.
Change the font of your document to e.g. the latin modern fonts (as I
did in the attached file) and the problem will disappear, see also
http://wiki.lyx.org/FAQ/PDF#badFonts

Depending on the local setup, it might also be the CM-Super (outlined)
fonts.

Does the problem go away when you magnify the document in the viewer?
Then it is bad hinting. This will not affect the output.
For better on-screen view, use e.g. Bera (Bitstream Vera) fonts.

Günter




Actually, the text is not pixelled. I just HATE the default font.
Although I installed a packaged called texlive-fonts-extra, I can only 
select Helvetica for the sans serif fonts. This means that, when I use 
book (KOMA-script) class, only the sections, subsetions, etc. are 
rendered with helvetica and the rest of the text is some other font. Is 
there a remedy for this?


Emil


Re: Bad font (follow-up question)

2010-11-29 Thread Uwe Stöhr

Am 30.11.2010 01:35, schrieb Emil Pavlov:


Actually, the text is not pixelled. I just HATE the default font.
Although I installed a packaged called texlive-fonts-extra, I can only select 
Helvetica for the sans
serif fonts.


All LaTeX-distributions provide a lot more fonts than only Helvetica. You can 
for example install
- Latin Modern
- Bera Sans
- CM Bright
- Avant Garde

Personally, I use the Latin Modern fonts.

regards Uwe


Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
Dear Lyxers,

I am trying out the new advanced search with regexes, and I cannot figure
out how to use backreferences in the replace part of the dialog.

I am used to using \1 \2 etc. as back references to first match, second
match, etc., but if I try to replace dashes with en-dashes between numbers
with:

Find: ([0-9])-([0-9])

Replace: \1--\2


Lyx replaces the matched expressions with {\1--\2}.

There must be something quite basic I am overlooking.


Cheers,

Stefano


Re: Bad font and ?? instead of eq. number

2010-11-29 Thread Guenter Milde
On 2010-11-29, Uwe Stöhr wrote:
 Am 28.11.2010 23:46, schrieb Emil Pavlov:

 1. Why is book (coma-script) producing pdfs with such a bad font? It
 seems that all the letter have different height.

 Your PDF looks very well (viewed with Acrobat 7). However, in your
 docment you are using LaTeX's default fonts (computer modern). These
 are bitmap fonts and might therefore look pixeled when viewing the PDF
 with older viewer programs.

 Change the font of your document to e.g. the latin modern fonts (as I
 did in the attached file) and the problem will disappear, see also
 http://wiki.lyx.org/FAQ/PDF#badFonts

Depending on the local setup, it might also be the CM-Super (outlined)
fonts.

Does the problem go away when you magnify the document in the viewer?
Then it is bad hinting. This will not affect the output.
For better on-screen view, use e.g. Bera (Bitstream Vera) fonts.

Günter



Re: Some page numbers are rendered in a wrong font

2010-11-29 Thread Guenter Milde
On 2010-11-28, Nikos Chantziaras wrote:
 On 11/29/2010 01:20 AM, Richard Heck wrote:
 On 11/28/2010 05:09 PM, Nikos Chantziaras wrote:
 Not sure if this is a LyX problem, but I hope someone here has
 encountered this issue and might know a solution.

 My problem is that when a program listing (Insert - Program Listing)
 does not fit into the same page it starts in, and so a page break
 occurs in the middle of it, the page number at the bottom of the page
 in which the page break occurs is rendered in the typewriter font,
 just like the program listing itself. This only happens if I use:

 basicstyle={\ttfamily}

 in Document Settings - Listings so that program listings use the
 document's typewriter font (in my case DejaVu Sans Mono) instead of
 the weird-looking default.

 I'm using XeTeX. Has anyone else encountered this?

 I was not able to reproduce this in trunk.

 Oops, I just found out that it only happens when setting the document 
 language to Greek.  With English there's no problem.


Greek and XeTeX: * make sure not to use the babel package

listings and XeTeX might also be problematic regarding the font
choices (as listings will usually select TeX fonts).

How about changing the language of the listing to English while
keeping the document Greek?

Günter



Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi
stefano.fran...@gmail.comwrote:

 Dear Lyxers,

 I am trying out the new advanced search with regexes, and I cannot figure
 out how to use backreferences in the replace part of the dialog.

 I am used to using \1 \2 etc. as back references to first match, second
 match, etc., but if I try to replace dashes with en-dashes between numbers
 with:

 Find: ([0-9])-([0-9])

 Replace: \1--\2


 Lyx replaces the matched expressions with {\1--\2}.

 There must be something quite basic I am overlooking.



Indeed there was. It turns out you need to type the backslash twice to
obtain a back-reference. Found out in the advanced search manual from the
wiki (which Lyx 2Beta does not load, however. I had to compile the last
development version to read it).

Cheers,

S.



 Cheers,

 Stefano



use of nativ tex documents - LyX 1.6.4

2010-11-29 Thread Jörg Kühne
Dear list

After opening a master .lyx document and exporting it as a LaTex (normal) 
document I can not use any more this native .tex file for further writing or 
releases during the import procedure. Following message occurs during 
importing: the following file already exists - you would like to overwrite 
this? - Yes - during the proceeding of tex2lyx -f 'newfile2.tex' 
'newfle.lyx' an error is occurred

Is it always necessary to save documents in the proprietary .lyx format?

Is it not possible to work only with native .tex files?

For what reasons exists the export/import functionality? 

Thanks for for your help.

Regards 

Joerg 
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail


Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 9:33 AM, stefano franchi
stefano.fran...@gmail.comwrote:



 On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi 
 stefano.fran...@gmail.com wrote:

 Dear Lyxers,

 I am trying out the new advanced search with regexes, and I cannot figure
 out how to use backreferences in the replace part of the dialog.

 I am used to using \1 \2 etc. as back references to first match, second
 match, etc., but if I try to replace dashes with en-dashes between numbers
 with:

 Find: ([0-9])-([0-9])

 Replace: \1--\2


 Lyx replaces the matched expressions with {\1--\2}.

 There must be something quite basic I am overlooking.



 Indeed there was. It turns out you need to type the backslash twice to
 obtain a back-reference. Found out in the advanced search manual from the
 wiki (which Lyx 2Beta does not load, however. I had to compile the last
 development version to read it).


Weel, to put an end to this monologue: I was wrong. The last line of the
manual says: The use of back references in the replaced text is not (yet)
implemented
:-(


Re: [New layout] Support for AEA.cls (American Economic Association journals)

2010-11-29 Thread K. Yokota
Dear Peter,

It'd be better download the layout file itself from:
http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/layouts/AEA.layout?rev=34800

Please put the layout file in the layouts directory (In the case of
Windows, I think it is located below \Program Files\LyX\.)

Koji

ps. Please follow up to lyx-users ML.

2010/11/29 Peter eagam...@gmail.com:


 Hi,

 I am new to Lyx. Can you tell me how to use the patch to add the new layout to
 lyx 1.6.7.

 Thanks

 Peter






Re: use of nativ tex documents - LyX 1.6.4

2010-11-29 Thread Richard Heck

On 11/29/2010 10:25 AM, Jörg Kühne wrote:

Dear list

After opening a master .lyx document and exporting it as a LaTex (normal) document I can not use any more 
this native .tex file for further writing or releases during the import procedure. Following message 
occurs during importing: the following file already exists - you would like to overwrite 
this? -  Yes -  during the proceeding of tex2lyx -f 'newfile2.tex' 'newfle.lyx' an 
error is occurred

   
We call this a bug. ;-) Seriously, if export/import fails this way, 
then it is a problem. Can you send me the file that is causing the 
problem privately? I'll see what's up. Import also shouldn't just fail 
even if you made changes to the file.


But I think the bigger issue is a misunderstanding about what LyX is.


Is it always necessary to save documents in the proprietary .lyx format?

   
I don't know about necessary, but yes, pretty much. LyX uses its own 
format, for a long list of reasons, the most important of which is that 
LyX is not a TeX editor. It is its own thing, and, to LyX, LaTeX is just 
one among several output formats that it currently supports, and it 
would be fairly easy, for example, to add support for ConTeXt, if 
someone wanted to do that. Of course, LaTeX is presently the most 
important backend, but it's still just a backend to LyX.



Is it not possible to work only with native .tex files?

   
No, not really. I mean, you could, but you will lose information. If you 
want to work with tex files, use a TeX editor.



For what reasons exists the export/import functionality?

   
Export exists, first of all, because LyX uses LaTeX as a backend via 
which a document can be compiled to produce output. It also exists 
because publishers generally do not want LyX files but TeX files. In 
that sense, LyX's ability to export LaTeX is comparable to OpenOffice's 
ability to do so.


Import exists for the same sort of reason OpenOffice imports RTF, 
WordPerfect, etc, etc.


So: It is not intended that one should save the document as a TeX file, 
then proceed to re-open it.


Richard



Re: [New layout] Support for AEA.cls (American Economic Association journals)

2010-11-29 Thread K. Yokota
Dear Peter,

 In the Document-setting-document class, the Article (American Economic
 Association) class is Unavailable. I have reconfigure Lyx, and I have
 added Harvard package to Mikitex.

OK, Article (American Economic Association) is listed in the
document class option, so the layout file is recognized by LyX. It
means there is some problem in the TeX installation. After you
installed AEA.cls, did you run either 'texhash' or 'mktexlsr' from the
command line?

 When I manually select AEA class, I get several errors, such as,

 Font T1/cmr/m/n/10=dcr10 at 10.0pt not loadable: Metric (TFM) file not
 found.

 *Descrption:
  \fontencoding\encodingdefault\selectfont
 I installed several possible font, but it is not solved.

This also probably means there is a TeX installation problem. Please
consult with documentation of AEA.cls and check if TeX system is
correctly installed.

 Peter

Koji


 On Mon, Nov 29, 2010 at 10:57 AM, K. Yokota yokot...@gmail.com wrote:

 Dear Peter,

 It'd be better download the layout file itself from:

 http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/layouts/AEA.layout?rev=34800

 Please put the layout file in the layouts directory (In the case of
 Windows, I think it is located below \Program Files\LyX\.)

 Koji

 ps. Please follow up to lyx-users ML.

 2010/11/29 Peter eagam...@gmail.com:
 
 
  Hi,
 
  I am new to Lyx. Can you tell me how to use the patch to add the new
  layout to
  lyx 1.6.7.
 
  Thanks
 
  Peter
 
 
 
 




file conversions

2010-11-29 Thread Paul Sutton
Hi

Looking around on the net i found references to the following

lyxtox script - converts lyx to docbook sgml
db2lyx - converts lyx to xml docbook


not sure if these are mentioned anywhere on the wiki

however

http://wiki.lyx.org/Tools/ELyXer

ELyXer is it converts LyX to Html

not sure if any of this is useful,  converting to docbook would be good
for anyone interested in doing stuff for the linux documentation project.

Paul
-- 



Paul Sutton Cert SLPS (Open)
http://www.zleap.net


17th September 2011 - Software freedom day



Re: Some page numbers are rendered in a wrong font

2010-11-29 Thread Nikos Chantziaras

On 11/29/2010 05:05 PM, Guenter Milde wrote:

On 2010-11-28, Nikos Chantziaras wrote:

On 11/29/2010 01:20 AM, Richard Heck wrote:

On 11/28/2010 05:09 PM, Nikos Chantziaras wrote:

Not sure if this is a LyX problem, but I hope someone here has
encountered this issue and might know a solution.



My problem is that when a program listing (Insert -  Program Listing)
does not fit into the same page it starts in, and so a page break
occurs in the middle of it, the page number at the bottom of the page
in which the page break occurs is rendered in the typewriter font,
just like the program listing itself. This only happens if I use:



basicstyle={\ttfamily}



in Document Settings -  Listings so that program listings use the
document's typewriter font (in my case DejaVu Sans Mono) instead of
the weird-looking default.



I'm using XeTeX. Has anyone else encountered this?



I was not able to reproduce this in trunk.



Oops, I just found out that it only happens when setting the document
language to Greek.  With English there's no problem.



Greek and XeTeX: * make sure not to use the babel package


LyX 2 uses the polyglossia package when enabling XeTeX, which in turn 
loads babel.  But I don't load babel myself, if that's what you mean.




listings and XeTeX might also be problematic regarding the font
choices (as listings will usually select TeX fonts).


If I let listing select TeX fonts, then there's no problem.  The problem 
occurs only when I use basicstyle={\ttfamily} so that the XeTeX font 
is used.




How about changing the language of the listing to English while
keeping the document Greek?


Just tried, but unfortunately it makes no difference.



Re: Bad font (follow-up question)

2010-11-29 Thread Emil Pavlov

На 29.11.2010 16:02, Guenter Milde написа:

On 2010-11-29, Uwe Stöhr wrote:

Am 28.11.2010 23:46, schrieb Emil Pavlov:

1. Why is book (coma-script) producing pdfs with such a bad font? It
seems that all the letter have different height.

Your PDF looks very well (viewed with Acrobat 7). However, in your
docment you are using LaTeX's default fonts (computer modern). These
are bitmap fonts and might therefore look pixeled when viewing the PDF
with older viewer programs.
Change the font of your document to e.g. the latin modern fonts (as I
did in the attached file) and the problem will disappear, see also
http://wiki.lyx.org/FAQ/PDF#badFonts

Depending on the local setup, it might also be the CM-Super (outlined)
fonts.

Does the problem go away when you magnify the document in the viewer?
Then it is bad hinting. This will not affect the output.
For better on-screen view, use e.g. Bera (Bitstream Vera) fonts.

Günter




Actually, the text is not pixelled. I just HATE the default font.
Although I installed a packaged called texlive-fonts-extra, I can only 
select Helvetica for the sans serif fonts. This means that, when I use 
book (KOMA-script) class, only the sections, subsetions, etc. are 
rendered with helvetica and the rest of the text is some other font. Is 
there a remedy for this?


Emil


Re: Bad font (follow-up question)

2010-11-29 Thread Uwe Stöhr

Am 30.11.2010 01:35, schrieb Emil Pavlov:


Actually, the text is not pixelled. I just HATE the default font.
Although I installed a packaged called texlive-fonts-extra, I can only select 
Helvetica for the sans
serif fonts.


All LaTeX-distributions provide a lot more fonts than only Helvetica. You can 
for example install
- Latin Modern
- Bera Sans
- CM Bright
- Avant Garde

Personally, I use the Latin Modern fonts.

regards Uwe


Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
Dear Lyxers,

I am trying out the new advanced search with regexes, and I cannot figure
out how to use backreferences in the replace part of the dialog.

I am used to using \1 \2 etc. as back references to first match, second
match, etc., but if I try to replace dashes with en-dashes between numbers
with:

Find: ([0-9])-([0-9])

Replace: \1--\2


Lyx replaces the matched expressions with {\1--\2}.

There must be something quite basic I am overlooking.


Cheers,

Stefano


Re: Bad font and ?? instead of eq. number

2010-11-29 Thread Guenter Milde
On 2010-11-29, Uwe Stöhr wrote:
> Am 28.11.2010 23:46, schrieb Emil Pavlov:

>> 1. Why is book (coma-script) producing pdfs with such a bad font? It
>> seems that all the letter have different height.

> Your PDF looks very well (viewed with Acrobat 7). However, in your
> docment you are using LaTeX's default fonts (computer modern). These
> are bitmap fonts and might therefore look pixeled when viewing the PDF
> with older viewer programs.

> Change the font of your document to e.g. the latin modern fonts (as I
> did in the attached file) and the problem will disappear, see also
> http://wiki.lyx.org/FAQ/PDF#badFonts

Depending on the local setup, it might also be the CM-Super (outlined)
fonts.

Does the problem go away when you magnify the document in the viewer?
Then it is bad hinting. This will not affect the output.
For better on-screen view, use e.g. Bera (Bitstream Vera) fonts.

Günter



Re: Some page numbers are rendered in a wrong font

2010-11-29 Thread Guenter Milde
On 2010-11-28, Nikos Chantziaras wrote:
> On 11/29/2010 01:20 AM, Richard Heck wrote:
>> On 11/28/2010 05:09 PM, Nikos Chantziaras wrote:
>>> Not sure if this is a LyX problem, but I hope someone here has
>>> encountered this issue and might know a solution.

>>> My problem is that when a program listing (Insert -> Program Listing)
>>> does not fit into the same page it starts in, and so a page break
>>> occurs in the middle of it, the page number at the bottom of the page
>>> in which the page break occurs is rendered in the typewriter font,
>>> just like the program listing itself. This only happens if I use:

>>> basicstyle={\ttfamily}

>>> in Document Settings -> Listings so that program listings use the
>>> document's typewriter font (in my case "DejaVu Sans Mono") instead of
>>> the weird-looking default.

>>> I'm using XeTeX. Has anyone else encountered this?

>> I was not able to reproduce this in trunk.

> Oops, I just found out that it only happens when setting the document 
> language to Greek.  With English there's no problem.


Greek and XeTeX: * make sure not to use the babel package

listings and XeTeX might also be problematic regarding the font
choices (as listings will usually select TeX fonts).

How about changing the language of the listing to English while
keeping the document Greek?

Günter



Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi
wrote:

> Dear Lyxers,
>
> I am trying out the new advanced search with regexes, and I cannot figure
> out how to use backreferences in the replace part of the dialog.
>
> I am used to using \1 \2 etc. as back references to first match, second
> match, etc., but if I try to replace dashes with en-dashes between numbers
> with:
>
> Find: ([0-9])-([0-9])
>
> Replace: \1--\2
>
>
> Lyx replaces the matched expressions with {\1--\2}.
>
> There must be something quite basic I am overlooking.
>
>
>
Indeed there was. It turns out you need to type the backslash twice to
obtain a back-reference. Found out in the advanced search manual from the
wiki (which Lyx 2Beta does not load, however. I had to compile the last
development version to read it).

Cheers,

S.



> Cheers,
>
> Stefano
>


use of nativ tex documents - LyX 1.6.4

2010-11-29 Thread Jörg Kühne
Dear list

After opening a master .lyx document and exporting it as a LaTex (normal) 
document I can not use any more this native .tex file for further writing or 
releases during the import procedure. Following message occurs during 
importing: "the following file already exists - you would like to overwrite 
this?" -> Yes -> "during the proceeding of tex2lyx -f 'newfile2.tex' 
'newfle.lyx' an error is occurred"

Is it always necessary to save documents in the "proprietary" .lyx format?

Is it not possible to work only with native .tex files?

For what reasons exists the export/import functionality? 

Thanks for for your help.

Regards 

Joerg 
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail


Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 9:33 AM, stefano franchi
wrote:

>
>
> On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi <
> stefano.fran...@gmail.com> wrote:
>
>> Dear Lyxers,
>>
>> I am trying out the new advanced search with regexes, and I cannot figure
>> out how to use backreferences in the replace part of the dialog.
>>
>> I am used to using \1 \2 etc. as back references to first match, second
>> match, etc., but if I try to replace dashes with en-dashes between numbers
>> with:
>>
>> Find: ([0-9])-([0-9])
>>
>> Replace: \1--\2
>>
>>
>> Lyx replaces the matched expressions with {\1--\2}.
>>
>> There must be something quite basic I am overlooking.
>>
>>
>>
> Indeed there was. It turns out you need to type the backslash twice to
> obtain a back-reference. Found out in the advanced search manual from the
> wiki (which Lyx 2Beta does not load, however. I had to compile the last
> development version to read it).
>
>
Weel, to put an end to this monologue: I was wrong. The last line of the
manual says: "The use of back references in the replaced text is not (yet)
implemented"
:-(


Re: [New layout] Support for AEA.cls (American Economic Association journals)

2010-11-29 Thread K. Yokota
Dear Peter,

It'd be better download the layout file itself from:
http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/layouts/AEA.layout?rev=34800

Please put the layout file in the "layouts" directory (In the case of
Windows, I think it is located below "\Program Files\LyX\".)

Koji

ps. Please follow up to lyx-users ML.

2010/11/29 Peter :
>
>
> Hi,
>
> I am new to Lyx. Can you tell me how to use the patch to add the new layout to
> lyx 1.6.7.
>
> Thanks
>
> Peter
>
>
>
>


Re: use of nativ tex documents - LyX 1.6.4

2010-11-29 Thread Richard Heck

On 11/29/2010 10:25 AM, "Jörg Kühne" wrote:

Dear list

After opening a master .lyx document and exporting it as a LaTex (normal) document I can not use any more 
this native .tex file for further writing or releases during the import procedure. Following message 
occurs during importing: "the following file already exists - you would like to overwrite 
this?" ->  Yes ->  "during the proceeding of tex2lyx -f 'newfile2.tex' 'newfle.lyx' an 
error is occurred"

   
We call this a "bug". ;-) Seriously, if export/import fails this way, 
then it is a problem. Can you send me the file that is causing the 
problem privately? I'll see what's up. Import also shouldn't just fail 
even if you made changes to the file.


But I think the bigger issue is a misunderstanding about what LyX is.


Is it always necessary to save documents in the "proprietary" .lyx format?

   
I don't know about necessary, but yes, pretty much. LyX uses its own 
format, for a long list of reasons, the most important of which is that 
LyX is not a TeX editor. It is its own thing, and, to LyX, LaTeX is just 
one among several output formats that it currently supports, and it 
would be fairly easy, for example, to add support for ConTeXt, if 
someone wanted to do that. Of course, LaTeX is presently the most 
important "backend", but it's still just a backend to LyX.



Is it not possible to work only with native .tex files?

   
No, not really. I mean, you could, but you will lose information. If you 
want to work with tex files, use a TeX editor.



For what reasons exists the export/import functionality?

   
Export exists, first of all, because LyX uses LaTeX as a "backend" via 
which a document can be compiled to produce output. It also exists 
because publishers generally do not want LyX files but TeX files. In 
that sense, LyX's ability to export LaTeX is comparable to OpenOffice's 
ability to do so.


Import exists for the same sort of reason OpenOffice imports RTF, 
WordPerfect, etc, etc.


So: It is not intended that one should save the document as a TeX file, 
then proceed to re-open it.


Richard



Re: [New layout] Support for AEA.cls (American Economic Association journals)

2010-11-29 Thread K. Yokota
Dear Peter,

> In the Document->setting->document class, the Article (American Economic
> Association) class is Unavailable. I have reconfigure Lyx, and I have
> added Harvard package to Mikitex.

OK, "Article (American Economic Association)" is listed in the
document class option, so the layout file is recognized by LyX. It
means there is some problem in the TeX installation. After you
installed AEA.cls, did you run either 'texhash' or 'mktexlsr' from the
command line?

> When I manually select AEA class, I get several errors, such as,
>
> Font T1/cmr/m/n/10=dcr10 at 10.0pt not loadable: Metric (TFM) file not
> found.
>
> *Descrption:
>  \fontencoding\encodingdefault\selectfont
> I installed several possible font, but it is not solved.

This also probably means there is a TeX installation problem. Please
consult with documentation of AEA.cls and check if TeX system is
correctly installed.

> Peter

Koji


> On Mon, Nov 29, 2010 at 10:57 AM, K. Yokota  wrote:
>>
>> Dear Peter,
>>
>> It'd be better download the layout file itself from:
>>
>> http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/layouts/AEA.layout?rev=34800
>>
>> Please put the layout file in the "layouts" directory (In the case of
>> Windows, I think it is located below "\Program Files\LyX\".)
>>
>> Koji
>>
>> ps. Please follow up to lyx-users ML.
>>
>> 2010/11/29 Peter :
>> >
>> >
>> > Hi,
>> >
>> > I am new to Lyx. Can you tell me how to use the patch to add the new
>> > layout to
>> > lyx 1.6.7.
>> >
>> > Thanks
>> >
>> > Peter
>> >
>> >
>> >
>> >
>
>


file conversions

2010-11-29 Thread Paul Sutton
Hi

Looking around on the net i found references to the following

lyxtox script - converts lyx to docbook sgml
db2lyx - converts lyx to xml docbook


not sure if these are mentioned anywhere on the wiki

however

http://wiki.lyx.org/Tools/ELyXer

ELyXer is it converts LyX to Html

not sure if any of this is useful,  converting to docbook would be good
for anyone interested in doing stuff for the linux documentation project.

Paul
-- 



Paul Sutton Cert SLPS (Open)
http://www.zleap.net


17th September 2011 - Software freedom day



Re: Some page numbers are rendered in a wrong font

2010-11-29 Thread Nikos Chantziaras

On 11/29/2010 05:05 PM, Guenter Milde wrote:

On 2010-11-28, Nikos Chantziaras wrote:

On 11/29/2010 01:20 AM, Richard Heck wrote:

On 11/28/2010 05:09 PM, Nikos Chantziaras wrote:

Not sure if this is a LyX problem, but I hope someone here has
encountered this issue and might know a solution.



My problem is that when a program listing (Insert ->  Program Listing)
does not fit into the same page it starts in, and so a page break
occurs in the middle of it, the page number at the bottom of the page
in which the page break occurs is rendered in the typewriter font,
just like the program listing itself. This only happens if I use:



basicstyle={\ttfamily}



in Document Settings ->  Listings so that program listings use the
document's typewriter font (in my case "DejaVu Sans Mono") instead of
the weird-looking default.



I'm using XeTeX. Has anyone else encountered this?



I was not able to reproduce this in trunk.



Oops, I just found out that it only happens when setting the document
language to Greek.  With English there's no problem.



Greek and XeTeX: * make sure not to use the babel package


LyX 2 uses the polyglossia package when enabling XeTeX, which in turn 
loads babel.  But I don't load babel myself, if that's what you mean.




listings and XeTeX might also be problematic regarding the font
choices (as listings will usually select TeX fonts).


If I let listing select TeX fonts, then there's no problem.  The problem 
occurs only when I use "basicstyle={\ttfamily}" so that the XeTeX font 
is used.




How about changing the language of the listing to English while
keeping the document Greek?


Just tried, but unfortunately it makes no difference.



Re: Bad font (follow-up question)

2010-11-29 Thread Emil Pavlov

На 29.11.2010 16:02, Guenter Milde написа:

On 2010-11-29, Uwe Stöhr wrote:

Am 28.11.2010 23:46, schrieb Emil Pavlov:

1. Why is book (coma-script) producing pdfs with such a bad font? It
seems that all the letter have different height.

Your PDF looks very well (viewed with Acrobat 7). However, in your
docment you are using LaTeX's default fonts (computer modern). These
are bitmap fonts and might therefore look pixeled when viewing the PDF
with older viewer programs.
Change the font of your document to e.g. the latin modern fonts (as I
did in the attached file) and the problem will disappear, see also
http://wiki.lyx.org/FAQ/PDF#badFonts

Depending on the local setup, it might also be the CM-Super (outlined)
fonts.

Does the problem go away when you magnify the document in the viewer?
Then it is bad hinting. This will not affect the output.
For better on-screen view, use e.g. Bera (Bitstream Vera) fonts.

Günter




Actually, the text is not pixelled. I just HATE the default font.
Although I installed a packaged called texlive-fonts-extra, I can only 
select Helvetica for the sans serif fonts. This means that, when I use 
book (KOMA-script) class, only the sections, subsetions, etc. are 
rendered with helvetica and the rest of the text is some other font. Is 
there a remedy for this?


Emil


Re: Bad font (follow-up question)

2010-11-29 Thread Uwe Stöhr

Am 30.11.2010 01:35, schrieb Emil Pavlov:


Actually, the text is not pixelled. I just HATE the default font.
Although I installed a packaged called texlive-fonts-extra, I can only select 
Helvetica for the sans
serif fonts.


All LaTeX-distributions provide a lot more fonts than only Helvetica. You can 
for example install
- Latin Modern
- Bera Sans
- CM Bright
- Avant Garde

Personally, I use the Latin Modern fonts.

regards Uwe