Re: Changing case of word

2005-06-23 Thread Juergen Spitzmueller
Micha Feigin wrote:
 Is it possible in latex to automatically change the case of a word
 (capitalize all/first letter)?

\MakeUppercase{upcase all letters}
\MakeLowercase{LoWcAse aLl LeTters}

AFAIK there's no command to capitalize just the first letter, but you will 
surely find some workarounds if you query comp.text.tex for capitalize.

For definite changes, LyX also provides
word-lowcase
word-upcase
word-capitalize

(mark the word an type the command to the minibuffer input field at the bottom 
of the screen).

HTH,
Jürgen


Re: NatBib problem: one author with more than one publication in the same year == Error message

2005-06-23 Thread Juergen Spitzmueller
Janus Sandsgaard wrote:
 Sandsgaard, Janus (2004a)
 Sandsgaard, Janus (2004b)

 (this is what apalike does). But instead I get an error message:

 Misplaced alignment tab character .
 e=ukcategory=11}

I have no such problem with plainnat.

 I have tried building my own .bst for NatBib (using latex makebst - thank
 you, Jürgen!), and this one do the 2004a, 2004b trick.

 But as I do not fully understand the .bst and all the questions I answered
 using makebst, I do not feel confortable about using this home made one. I
 would prefer something standard, and I can't imagine that I am the first
 one to run into this problem using one of the .bst's that comes with
 NatBib.

Why? If you are satisfied by the output, and if you did not edit the bst file 
manually, use it. The bst files from makebst are good quality.

Jürgen


Problem:insertinclude file - cross reference

2005-06-23 Thread samar
I edited a small book recently which had cross references to labelled sections 
in each chapter.

The chapters were written as individual lyx files and then included in a master 
document.

However, it seems all the crossreferences pointed to the same section - which 
incidentally was not correct for any chapter.

Any  ideas?

samar

Windows: lyx configure says latex is unuseable (during configure)

2005-06-23 Thread Omair-Inam Abdul-Matin
I've run into a weird problem.  Until recently LyX was running fine on 
my computer.  However, now all the output types (PS, PDF, etc.) have 
disappeared from the menus.  I don't know what happened.  I ran 
reconfigure and from the output I see that the problem is that when 
searching for latex, lyx finds the latex and classifies it as unuseable.


I have MikTex installed (and successfully for a while since LyX was 
running fine until recently)


What can I do?

Omair



Re: Windows: lyx configure says latex is unuseable (during configure)

2005-06-23 Thread Paul A. Rubin

Omair-Inam Abdul-Matin wrote:
I've run into a weird problem.  Until recently LyX was running fine on 
my computer.  However, now all the output types (PS, PDF, etc.) have 
disappeared from the menus.  I don't know what happened.  I ran 
reconfigure and from the output I see that the problem is that when 
searching for latex, lyx finds the latex and classifies it as unuseable.


I have MikTex installed (and successfully for a while since LyX was 
running fine until recently)


What can I do?

Omair


You don't by any chance have Cygwin installed, do you?  I ran into the 
unusable latex once because I had both MiKTeX and Cygwin, and the 
latex.exe executable that came with Cygwin preceded the MiKTeX 
executable on the command path.


If not Cygwin, try searching your machine for all files named latex.exe, 
and see if there's an impostor.


-- Paul



Re: non-english(hebrew) text inside ert

2005-06-23 Thread Amir Seginer

Micha Feigin wrote:

Is it possible to insert non-english (hebrew in my case) text inside and ert?

Have you tried quiting the ERT in the middle, writing Hebrew and then 
opening another ERT? The only thing to note is the order of the two ERTs 
(in an RTL paragraph): The first one (e.g begin{... ) should be on  the 
right and the closing one (e.g. }) shuld be on the left. There might 
also be an issue with the languge you mark the ERTs to be (I think they 
need to be english).


Attached is an example of something I used once.

Amir.



Re: non-english(hebrew) text inside ert

2005-06-23 Thread Amir Seginer

Sorry, here is the message with the attachment.

Micha Feigin wrote:

Is it possible to insert non-english (hebrew in my case) text inside and ert?

Have you tried quiting the ERT in the middle, writing Hebrew and then 
opening another ERT? The only thing to note is the order of the two ERTs 
(in an RTL paragraph): The first one (e.g begin{... ) should be on  the 
right and the closing one (e.g. }) shuld be on the left. There might 
also be an issue with the languge you mark the ERTs to be (I think they 
need to be english).


Attached is an example of something I used once.

Amir.


example.lyx
Description: application/lyx


Re: Changing case of word

2005-06-23 Thread Stephen Harris


- Original Message - 
From: Micha Feigin michf-+lLcF8/[EMAIL PROTECTED]

Newsgroups: gmane.editors.lyx.general
Sent: Wednesday, June 22, 2005 12:49 PM
Subject: Changing case of word


Is it possible in latex to automatically change the case of a word 
(capitalize

all/first letter)?

+++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.



It is possible inside a text file and some other kinds.
You are looking for a script, an automated procedure.
This works best with Windows and Cygwin; or you can
use Perl or Python for Windows which are free downloads.
This type of file manipulation is part regular expressions.
Maybe LyX can use sed, another search and replace loop method from the 
command line with Cygwin.


For instance here is a Perl script that will work for most sentences:

First, let's assume that the entire file is in one scalar (using $/ =
undef to read it in). Second, assume that the beginning of a
sentence needing capitalization is reliably detectable using
/((?:^|[.?!]\s+)[a-z])/ (Either the start of the string or a period,
question mark, or exclamation point followed by one or more
spaces, followed by a lower-case character).

Then, assuming your file text is in $text, you can just do

 $text =~ s/((?:^|[.?!]\s+)[a-z])/\U$1/g­;


They also have some sophisticated Windows software for doing elaborate 
search and replace. The easier kind tends to be expensive but there is 
freeware also, which means reading the documentation.


I suppose you could run the first letter capitalization script on a document 
that was in text. And then import into Lyx, the text by line, or paragraph, 
whatever works best to texify. (X)Emacs can do this also but it still 
requires quite a bit of reading, even if you get lucky and find an elisp 
file already written to do what you want.


Regards, Stephen







Re: LyXWin not working on XP

2005-06-23 Thread Michael Wojcik

Paul A. Rubin wrote:

Rob S wrote:


More info please! subst??


subst (short for substitute) is an old DOS command that is still 
supported


Thanks for following up on this for me, Paul.  I've been travelling and 
have fallen behind on my personal email.


One additional note: if you open a command window and type help subst 
or subst /?, you'll get some usage information.


--
Michael Wojcik




more hyperref

2005-06-23 Thread Geoffrey Lloyd
Many thanks for all the useful comments yesterday about the hyperref package.

I now have it working. However it only links the number such that figure 1 has 
a link for the 1 not the whole 'figure 1'. Is there any way to link the whole 
thing?

Also the backref links from the bibliography only appear as a number of the 
page. I have read that the old backrefx package used to write (Cited on #). I 
can't seem to implement this even though it is apparently built into the new 
hyperref package.

Any ideas at all?

Geoff

Re: Problems with .ps and .dvi output when .eps is embedded

2005-06-23 Thread Wil Hunt
Geoffrey Lloyd wrote:
 I have not been following this thread but have just read the background
 stuff. I then downloaded the file which seems to actually be a .ps
 rather than .eps file but no matter.  Using ghostscript to convert to
 .eps I reproduce the same problems experienced.
 
 But if I open the eps in Adibe Illustrator and then resave it the
 problems disappear.  Clearly somewhere the eps has got messed up.
 
 I am not sure who needs the correct file but I have an eps of the
 original that works in lyx with dvi and postscript output.
 
 Email me and I will send it - it is too big to attach to the mailing list.

snip

Thanks to all who looked into this.  Given the problem, I guess I'll
investigate it more thoroughly when I have more time.  In the mean time,
I can just use it as is, by not running it through .dvi or .ps form.

Once I have more information as to the cause and solution, I'll come
back and post them. :)

Again, thanks for all your assistance.

Wil

-- 
Wil Hunt
Geek in training.
Jack of few trades, master of none.



Re: Changing case of word

2005-06-23 Thread Juergen Spitzmueller
Micha Feigin wrote:
 Is it possible in latex to automatically change the case of a word
 (capitalize all/first letter)?

\MakeUppercase{upcase all letters}
\MakeLowercase{LoWcAse aLl LeTters}

AFAIK there's no command to capitalize just the first letter, but you will 
surely find some workarounds if you query comp.text.tex for capitalize.

For definite changes, LyX also provides
word-lowcase
word-upcase
word-capitalize

(mark the word an type the command to the minibuffer input field at the bottom 
of the screen).

HTH,
Jürgen


Re: NatBib problem: one author with more than one publication in the same year == Error message

2005-06-23 Thread Juergen Spitzmueller
Janus Sandsgaard wrote:
 Sandsgaard, Janus (2004a)
 Sandsgaard, Janus (2004b)

 (this is what apalike does). But instead I get an error message:

 Misplaced alignment tab character .
 e=ukcategory=11}

I have no such problem with plainnat.

 I have tried building my own .bst for NatBib (using latex makebst - thank
 you, Jürgen!), and this one do the 2004a, 2004b trick.

 But as I do not fully understand the .bst and all the questions I answered
 using makebst, I do not feel confortable about using this home made one. I
 would prefer something standard, and I can't imagine that I am the first
 one to run into this problem using one of the .bst's that comes with
 NatBib.

Why? If you are satisfied by the output, and if you did not edit the bst file 
manually, use it. The bst files from makebst are good quality.

Jürgen


Problem:insertinclude file - cross reference

2005-06-23 Thread samar
I edited a small book recently which had cross references to labelled sections 
in each chapter.

The chapters were written as individual lyx files and then included in a master 
document.

However, it seems all the crossreferences pointed to the same section - which 
incidentally was not correct for any chapter.

Any  ideas?

samar

Windows: lyx configure says latex is unuseable (during configure)

2005-06-23 Thread Omair-Inam Abdul-Matin
I've run into a weird problem.  Until recently LyX was running fine on 
my computer.  However, now all the output types (PS, PDF, etc.) have 
disappeared from the menus.  I don't know what happened.  I ran 
reconfigure and from the output I see that the problem is that when 
searching for latex, lyx finds the latex and classifies it as unuseable.


I have MikTex installed (and successfully for a while since LyX was 
running fine until recently)


What can I do?

Omair



Re: Windows: lyx configure says latex is unuseable (during configure)

2005-06-23 Thread Paul A. Rubin

Omair-Inam Abdul-Matin wrote:
I've run into a weird problem.  Until recently LyX was running fine on 
my computer.  However, now all the output types (PS, PDF, etc.) have 
disappeared from the menus.  I don't know what happened.  I ran 
reconfigure and from the output I see that the problem is that when 
searching for latex, lyx finds the latex and classifies it as unuseable.


I have MikTex installed (and successfully for a while since LyX was 
running fine until recently)


What can I do?

Omair


You don't by any chance have Cygwin installed, do you?  I ran into the 
unusable latex once because I had both MiKTeX and Cygwin, and the 
latex.exe executable that came with Cygwin preceded the MiKTeX 
executable on the command path.


If not Cygwin, try searching your machine for all files named latex.exe, 
and see if there's an impostor.


-- Paul



Re: non-english(hebrew) text inside ert

2005-06-23 Thread Amir Seginer

Micha Feigin wrote:

Is it possible to insert non-english (hebrew in my case) text inside and ert?

Have you tried quiting the ERT in the middle, writing Hebrew and then 
opening another ERT? The only thing to note is the order of the two ERTs 
(in an RTL paragraph): The first one (e.g begin{... ) should be on  the 
right and the closing one (e.g. }) shuld be on the left. There might 
also be an issue with the languge you mark the ERTs to be (I think they 
need to be english).


Attached is an example of something I used once.

Amir.



Re: non-english(hebrew) text inside ert

2005-06-23 Thread Amir Seginer

Sorry, here is the message with the attachment.

Micha Feigin wrote:

Is it possible to insert non-english (hebrew in my case) text inside and ert?

Have you tried quiting the ERT in the middle, writing Hebrew and then 
opening another ERT? The only thing to note is the order of the two ERTs 
(in an RTL paragraph): The first one (e.g begin{... ) should be on  the 
right and the closing one (e.g. }) shuld be on the left. There might 
also be an issue with the languge you mark the ERTs to be (I think they 
need to be english).


Attached is an example of something I used once.

Amir.


example.lyx
Description: application/lyx


Re: Changing case of word

2005-06-23 Thread Stephen Harris


- Original Message - 
From: Micha Feigin michf-+lLcF8/[EMAIL PROTECTED]

Newsgroups: gmane.editors.lyx.general
Sent: Wednesday, June 22, 2005 12:49 PM
Subject: Changing case of word


Is it possible in latex to automatically change the case of a word 
(capitalize

all/first letter)?

+++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.



It is possible inside a text file and some other kinds.
You are looking for a script, an automated procedure.
This works best with Windows and Cygwin; or you can
use Perl or Python for Windows which are free downloads.
This type of file manipulation is part regular expressions.
Maybe LyX can use sed, another search and replace loop method from the 
command line with Cygwin.


For instance here is a Perl script that will work for most sentences:

First, let's assume that the entire file is in one scalar (using $/ =
undef to read it in). Second, assume that the beginning of a
sentence needing capitalization is reliably detectable using
/((?:^|[.?!]\s+)[a-z])/ (Either the start of the string or a period,
question mark, or exclamation point followed by one or more
spaces, followed by a lower-case character).

Then, assuming your file text is in $text, you can just do

 $text =~ s/((?:^|[.?!]\s+)[a-z])/\U$1/g­;


They also have some sophisticated Windows software for doing elaborate 
search and replace. The easier kind tends to be expensive but there is 
freeware also, which means reading the documentation.


I suppose you could run the first letter capitalization script on a document 
that was in text. And then import into Lyx, the text by line, or paragraph, 
whatever works best to texify. (X)Emacs can do this also but it still 
requires quite a bit of reading, even if you get lucky and find an elisp 
file already written to do what you want.


Regards, Stephen







Re: LyXWin not working on XP

2005-06-23 Thread Michael Wojcik

Paul A. Rubin wrote:

Rob S wrote:


More info please! subst??


subst (short for substitute) is an old DOS command that is still 
supported


Thanks for following up on this for me, Paul.  I've been travelling and 
have fallen behind on my personal email.


One additional note: if you open a command window and type help subst 
or subst /?, you'll get some usage information.


--
Michael Wojcik




more hyperref

2005-06-23 Thread Geoffrey Lloyd
Many thanks for all the useful comments yesterday about the hyperref package.

I now have it working. However it only links the number such that figure 1 has 
a link for the 1 not the whole 'figure 1'. Is there any way to link the whole 
thing?

Also the backref links from the bibliography only appear as a number of the 
page. I have read that the old backrefx package used to write (Cited on #). I 
can't seem to implement this even though it is apparently built into the new 
hyperref package.

Any ideas at all?

Geoff

Re: Problems with .ps and .dvi output when .eps is embedded

2005-06-23 Thread Wil Hunt
Geoffrey Lloyd wrote:
 I have not been following this thread but have just read the background
 stuff. I then downloaded the file which seems to actually be a .ps
 rather than .eps file but no matter.  Using ghostscript to convert to
 .eps I reproduce the same problems experienced.
 
 But if I open the eps in Adibe Illustrator and then resave it the
 problems disappear.  Clearly somewhere the eps has got messed up.
 
 I am not sure who needs the correct file but I have an eps of the
 original that works in lyx with dvi and postscript output.
 
 Email me and I will send it - it is too big to attach to the mailing list.

snip

Thanks to all who looked into this.  Given the problem, I guess I'll
investigate it more thoroughly when I have more time.  In the mean time,
I can just use it as is, by not running it through .dvi or .ps form.

Once I have more information as to the cause and solution, I'll come
back and post them. :)

Again, thanks for all your assistance.

Wil

-- 
Wil Hunt
Geek in training.
Jack of few trades, master of none.



Re: Changing case of word

2005-06-23 Thread Juergen Spitzmueller
Micha Feigin wrote:
> Is it possible in latex to automatically change the case of a word
> (capitalize all/first letter)?

\MakeUppercase{upcase all letters}
\MakeLowercase{LoWcAse aLl LeTters}

AFAIK there's no command to capitalize just the first letter, but you will 
surely find some workarounds if you query comp.text.tex for "capitalize".

For definite changes, LyX also provides
word-lowcase
word-upcase
word-capitalize

(mark the word an type the command to the minibuffer input field at the bottom 
of the screen).

HTH,
Jürgen


Re: NatBib problem: one author with more than one publication in the same year ==> Error message

2005-06-23 Thread Juergen Spitzmueller
Janus Sandsgaard wrote:
> Sandsgaard, Janus (2004a)
> Sandsgaard, Janus (2004b)
>
> (this is what apalike does). But instead I get an error message:
>
> "Misplaced alignment tab character &.
> e=uk=11}

I have no such problem with plainnat.

> I have tried building my own .bst for NatBib (using latex makebst - thank
> you, Jürgen!), and this one do the 2004a, 2004b trick.
>
> But as I do not fully understand the .bst and all the questions I answered
> using makebst, I do not feel confortable about using this home made one. I
> would prefer something standard, and I can't imagine that I am the first
> one to run into this problem using one of the .bst's that comes with
> NatBib.

Why? If you are satisfied by the output, and if you did not edit the bst file 
manually, use it. The bst files from makebst are good quality.

Jürgen


Problem:insert>include file - cross reference

2005-06-23 Thread samar
I edited a small book recently which had cross references to labelled sections 
in each chapter.

The chapters were written as individual lyx files and then included in a master 
document.

However, it seems all the crossreferences pointed to the same section - which 
incidentally was not correct for any chapter.

Any  ideas?

samar

Windows: lyx configure says latex is unuseable (during configure)

2005-06-23 Thread Omair-Inam Abdul-Matin
I've run into a weird problem.  Until recently LyX was running fine on 
my computer.  However, now all the output types (PS, PDF, etc.) have 
disappeared from the menus.  I don't know what happened.  I ran 
reconfigure and from the output I see that the problem is that when 
searching for latex, lyx finds the latex and classifies it as unuseable.


I have MikTex installed (and successfully for a while since LyX was 
running fine until recently)


What can I do?

Omair



Re: Windows: lyx configure says latex is unuseable (during configure)

2005-06-23 Thread Paul A. Rubin

Omair-Inam Abdul-Matin wrote:
I've run into a weird problem.  Until recently LyX was running fine on 
my computer.  However, now all the output types (PS, PDF, etc.) have 
disappeared from the menus.  I don't know what happened.  I ran 
reconfigure and from the output I see that the problem is that when 
searching for latex, lyx finds the latex and classifies it as unuseable.


I have MikTex installed (and successfully for a while since LyX was 
running fine until recently)


What can I do?

Omair


You don't by any chance have Cygwin installed, do you?  I ran into the 
"unusable latex" once because I had both MiKTeX and Cygwin, and the 
latex.exe executable that came with Cygwin preceded the MiKTeX 
executable on the command path.


If not Cygwin, try searching your machine for all files named latex.exe, 
and see if there's an "impostor".


-- Paul



Re: non-english(hebrew) text inside ert

2005-06-23 Thread Amir Seginer

Micha Feigin wrote:

Is it possible to insert non-english (hebrew in my case) text inside and ert?

Have you tried quiting the ERT in the middle, writing Hebrew and then 
opening another ERT? The only thing to note is the order of the two ERTs 
(in an RTL paragraph): The first one (e.g begin{... ) should be on  the 
right and the closing one (e.g. }) shuld be on the left. There might 
also be an issue with the languge you mark the ERTs to be (I think they 
need to be english).


Attached is an example of something I used once.

Amir.



Re: non-english(hebrew) text inside ert

2005-06-23 Thread Amir Seginer

Sorry, here is the message with the attachment.

Micha Feigin wrote:

Is it possible to insert non-english (hebrew in my case) text inside and ert?

Have you tried quiting the ERT in the middle, writing Hebrew and then 
opening another ERT? The only thing to note is the order of the two ERTs 
(in an RTL paragraph): The first one (e.g begin{... ) should be on  the 
right and the closing one (e.g. }) shuld be on the left. There might 
also be an issue with the languge you mark the ERTs to be (I think they 
need to be english).


Attached is an example of something I used once.

Amir.


example.lyx
Description: application/lyx


Re: Changing case of word

2005-06-23 Thread Stephen Harris


- Original Message - 
From: "Micha Feigin" 

Newsgroups: gmane.editors.lyx.general
Sent: Wednesday, June 22, 2005 12:49 PM
Subject: Changing case of word


Is it possible in latex to automatically change the case of a word 
(capitalize

all/first letter)?

+++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.



It is possible inside a text file and some other kinds.
You are looking for a "script", an automated procedure.
This works best with Windows and Cygwin; or you can
use Perl or Python for Windows which are free downloads.
This type of file manipulation is part regular expressions.
Maybe LyX can use sed, another search and replace loop method from the 
command line with Cygwin.


For instance here is a Perl script that will work for most sentences:

First, let's assume that the entire file is in one scalar (using $/ =
undef to read it in). Second, assume that the beginning of a
sentence needing capitalization is reliably detectable using
/((?:^|[.?!]\s+)[a-z])/ ("Either the start of the string or a period,
question mark, or exclamation point followed by one or more
spaces, followed by a lower-case character").

Then, assuming your file text is in $text, you can just do

 $text =~ s/((?:^|[.?!]\s+)[a-z])/\U$1/g­;


They also have some sophisticated Windows software for doing elaborate 
search and replace. The easier kind tends to be expensive but there is 
freeware also, which means reading the documentation.


I suppose you could run the first letter capitalization script on a document 
that was in text. And then import into Lyx, the text by line, or paragraph, 
whatever works best to texify. (X)Emacs can do this also but it still 
requires quite a bit of reading, even if you get lucky and find an elisp 
file already written to do what you want.


Regards, Stephen







Re: LyXWin not working on XP

2005-06-23 Thread Michael Wojcik

Paul A. Rubin wrote:

Rob S wrote:


More info please! subst??


subst (short for "substitute") is an old DOS command that is still 
supported


Thanks for following up on this for me, Paul.  I've been travelling and 
have fallen behind on my personal email.


One additional note: if you open a command window and type "help subst" 
or "subst /?", you'll get some usage information.


--
Michael Wojcik




more hyperref

2005-06-23 Thread Geoffrey Lloyd
Many thanks for all the useful comments yesterday about the hyperref package.

I now have it working. However it only links the number such that figure 1 has 
a link for the 1 not the whole 'figure 1'. Is there any way to link the whole 
thing?

Also the backref links from the bibliography only appear as a number of the 
page. I have read that the old backrefx package used to write (Cited on #). I 
can't seem to implement this even though it is apparently built into the new 
hyperref package.

Any ideas at all?

Geoff

Re: Problems with .ps and .dvi output when .eps is embedded

2005-06-23 Thread Wil Hunt
Geoffrey Lloyd wrote:
> I have not been following this thread but have just read the background
> stuff. I then downloaded the file which seems to actually be a .ps
> rather than .eps file but no matter.  Using ghostscript to convert to
> .eps I reproduce the same problems experienced.
> 
> But if I open the eps in Adibe Illustrator and then resave it the
> problems disappear.  Clearly somewhere the eps has got messed up.
> 
> I am not sure who needs the correct file but I have an eps of the
> original that works in lyx with dvi and postscript output.
> 
> Email me and I will send it - it is too big to attach to the mailing list.



Thanks to all who looked into this.  Given the problem, I guess I'll
investigate it more thoroughly when I have more time.  In the mean time,
I can just use it as is, by not running it through .dvi or .ps form.

Once I have more information as to the cause and solution, I'll come
back and post them. :)

Again, thanks for all your assistance.

Wil

-- 
Wil Hunt
Geek in training.
Jack of few trades, master of none.