Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Trevor Jenkins
On Wed, Nov 21, 2012 at 3:36 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Wed, Nov 21, 2012 at 4:08 PM, Alan R. Bleier ar...@cornell.edu wrote:
  I agree completely with Trevor.
 
 I completely disagree with Trevor. Hitting double space [to get a full
 stop] is as unnatural and unhelpful as it gets. This may make some
 sense for a mobile platform, but is utterly unneeded on the desktop. I
 very much hope that LyX doesn't go the way of the iThingies.


It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


 If the message itself is what bothers you, then try not to look at it.
 With time you'll get used to ignoring it completely.


Bollox! It disturbs the visual perception of the user to no good purpose
other than to be smart ass about some convention that a few people don't
like. Errors and warnings should be displayed for real problems not the
imagined superiority of programmers.

Regards, Trevor.

 Re: deemed!


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Liviu Andronic
On Sat, Nov 24, 2012 at 11:17 AM, Trevor Jenkins bslwann...@gmail.com wrote:
 It is natural to anyone who uses a typewriter. Typists are deliberately
 taught to put two spaces after a full stop!

As Rob pointed out (and please do check out the reference), this makes
sense for a typewriter monospace font. It makes little sense for a
proportional font, what is usually used in a document.

Moreover, LaTeX simply ignores two adjacent (simple) spaces, the very
reason for LyX not allowing to input that. LaTeX spaces are not the
same as Word or typewriter spaces (again, see Rob's comments and check
out other references that discuss this issue), and LaTeX uses
appropriate algorithms to determine how much space should be left
between a full stop and the beginning of a new sentence. Two spaces is
the wrong way to do this, at least in the context of LaTeX.


 If the message itself is what bothers you, then try not to look at it.
 With time you'll get used to ignoring it completely.

 Bollox! It disturbs the visual perception of the user

Then use fullscreen mode.


 to no good purpose
 other than to be smart ass about some convention that a few people don't
 like. Errors and warnings should be displayed for real problems not the
 imagined superiority of programmers.

But now you are getting aggressive. From the top of my head this is
the one worst way to try to convince the devels of LyX---whom you
should thank for the elegant product that they provide, for free---to
implement your pet feature. Good luck with that.

But if this issue is such a deal breaker, then feel free to switch to
Scientific WorkPlace. It may cost you 1000$ or so, but you'll likely
be able type two spaces as you wish to. (Disclaimer: Before buying
that, check with the vendor that it indeed allows that.)

Liviu


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Jean-Marc Lasgouttes

Le 24/11/2012 11:17, Trevor Jenkins a écrit :

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


Typist maybe, but in France I know no dactylo that would do that.


Bollox! It disturbs the visual perception of the user to no good purpose
other than to be smart ass about some convention that a few people don't
like. Errors and warnings should be displayed for real problems not the
imagined superiority of programmers.


There are whole countries where nobody even thinks about putting double 
spaces at the end of a sentence. Could this be a sign of imagined 
superiority from your part ? ;)


JMarc



Re: Changing Contents to another language

2012-11-24 Thread Jean-Marc Lasgouttes
Le 24/11/2012 14:36,  Frederick FN Noronha फ्रेड्रिक नोरोन्या *فريدريك 
نورونيا  a écrit :

Dear all:

I normally use Lyx in English. This time we're working on a Spanish
book. Please let me know how to change the title of the 'Contents' page
to 'Indice' or 'Indice General'

Thanks a tonne in advance. FN


I am surprised that this is a problem. If you set the language of the 
document, it should just work, unless our spanish translation status is bad.


JMarc



Re: complex renewcommand \cite

2012-11-24 Thread Richard Heck

On 11/23/2012 09:59 AM, Andreas Paeffgen wrote:
I want to get a different \cite command in the document. If i put 
\renewcommand{\cite}{\texorpdfstring{\cite{%}}{} } in the preamble i 
get an emergency stop.


This causes an infinite loop. \cite gets unpacked into something 
involving \cite, which gets unpacked into something else involving 
\cite, etc. Not so good. The problem is that LaTeX does not expand \cite 
when you give this command, but only when \cite itself is expanded. That 
is: \cite, even though it is a command, works like a variable. Consider:

\newcommand\mystuff{a}
\newcommand\inparens{(\mystuff)}
\inparens
\renewcommand\mystuff{b}
\inparens
This will print (a) then (b). This is actually quite useful 
sometimes, and could equally well be done with more complicated 
commands. (This kind of thing is done in the LaTeX core all the time.)


The standard way around this kind of thing is:
\let\oldcite=\cite
and then you redefine \cite in terms of \oldcite. The point is that \let 
actually assigns the *expanded* form (at that point) of \cite to 
\oldcite, rather than making \oldcite an alias for \cite (which would 
just give us the other problem back again). So, e.g.:

\let\stuff=\mystuff
\renewcommand\mystuff{c}
\stuff
will still print b, not c.

Richard



Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread David L. Johnson

On 11/24/2012 12:10 PM, Jean-Marc Lasgouttes wrote:

Le 24/11/2012 11:17, Trevor Jenkins a écrit :

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


Typist maybe, but in France I know no dactylo that would do that.


Not being from France, I was indeed taught to put two spaces after a 
full stop.  I don't see any real reason for the warning, which is more 
of a chiding, anyway.  Just ignore that second space, send it to the 
file in the TeX-correct way.  Those of us who habitually put that second 
space there (as I am doing writing this message) can continue to do so 
without changing the LyX file at all.  That is the way I treat is now, 
by simply ignoring the message.  Few if any habits will be changed with 
that message.  Putting two spaces after a full stop is a stylistic 
choice, not really an error.



--

David L. Johnson
Department of Mathematics
Lehigh University



Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Charlie
 On Sat, 24 Nov 2012 21:15:32 -0500 David L. Johnson d...@lehigh.edu
 suggested this:

That is the way I treat is now, by simply ignoring the message.

  Great, that's settled then. 

  There is no effort required to ignore the message. However, as
  explained previously, if there is no message, then there is effort on
  someones behalf required, when the questions roll in asking why
  someone can't type two spaces behind a full stop.

So we have the answer, leave the message as is and ignore it. No effort
expended and you just get on with what you're doing.

Nothing more need be written about the subject. Whatcha reckon.

Be well,
Charlie
-- 
Registered Linux User:- 329524
***

There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Alan L Tyree

On 25/11/12 13:27, Charlie wrote:

  On Sat, 24 Nov 2012 21:15:32 -0500 David L. Johnson d...@lehigh.edu
  suggested this:


That is the way I treat is now, by simply ignoring the message.

   Great, that's settled then.

   There is no effort required to ignore the message. However, as
   explained previously, if there is no message, then there is effort on
   someones behalf required, when the questions roll in asking why
   someone can't type two spaces behind a full stop.

So we have the answer, leave the message as is and ignore it. No effort
expended and you just get on with what you're doing.

Nothing more need be written about the subject. Whatcha reckon.

Be well,
Charlie
 --
Registered Linux User:- 329524
***

There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-

Charlie, Charlie,
Your sensible suggestion ignores the Parkinson rule about committees. 
You will recall that he observed that committees will pass multi-million 
dollar proposals for, say, a new nuclear plant in seconds. However, a 
resolution concerning tea room costs will be argued for hours if not for 
days.


Here is an issue that everyone can understand. It will NEVER go away!

Cheers,
Alan
(Who learned to put two spaces after a full stop in typing class, but 
likes the warning in LyX).



--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:172...@iptel.org



Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Zan
as a basic user who habitually taps twice...

Keep the function but kill the message. _nothing_ is a fine response for a 
habitual second push of the space bar. The message is unnecessary and 
graphically distracting after the second reminder.

On Nov 24, 2012, at 5:56 PM, Alan L Tyree alanty...@gmail.com wrote:

 On 25/11/12 13:27, Charlie wrote:
  On Sat, 24 Nov 2012 21:15:32 -0500 David L. Johnson d...@lehigh.edu
  suggested this:
 
 That is the way I treat is now, by simply ignoring the message.
   Great, that's settled then.
 
   There is no effort required to ignore the message. However, as
   explained previously, if there is no message, then there is effort on
   someones behalf required, when the questions roll in asking why
   someone can't type two spaces behind a full stop.
 
 So we have the answer, leave the message as is and ignore it. No effort
 expended and you just get on with what you're doing.
 
 Nothing more need be written about the subject. Whatcha reckon.
 
 Be well,
 Charlie
 --
Registered Linux User:- 329524
***
 
There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau
 
***
 
Debian GNU/Linux - just the best way to create magic
 
-
 Charlie, Charlie,
 Your sensible suggestion ignores the Parkinson rule about committees. 
 You will recall that he observed that committees will pass multi-million 
 dollar proposals for, say, a new nuclear plant in seconds. However, a 
 resolution concerning tea room costs will be argued for hours if not for 
 days.
 
 Here is an issue that everyone can understand. It will NEVER go away!
 
 Cheers,
 Alan
 (Who learned to put two spaces after a full stop in typing class, but 
 likes the warning in LyX).
 
 
 -- 
 Alan L Tyreehttp://www2.austlii.edu.au/~alan
 Tel:  04 2748 6206sip:172...@iptel.org
 


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Trevor Jenkins
On Wed, Nov 21, 2012 at 3:36 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Wed, Nov 21, 2012 at 4:08 PM, Alan R. Bleier ar...@cornell.edu wrote:
  I agree completely with Trevor.
 
 I completely disagree with Trevor. Hitting double space [to get a full
 stop] is as unnatural and unhelpful as it gets. This may make some
 sense for a mobile platform, but is utterly unneeded on the desktop. I
 very much hope that LyX doesn't go the way of the iThingies.


It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


 If the message itself is what bothers you, then try not to look at it.
 With time you'll get used to ignoring it completely.


Bollox! It disturbs the visual perception of the user to no good purpose
other than to be smart ass about some convention that a few people don't
like. Errors and warnings should be displayed for real problems not the
imagined superiority of programmers.

Regards, Trevor.

 Re: deemed!


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Liviu Andronic
On Sat, Nov 24, 2012 at 11:17 AM, Trevor Jenkins bslwann...@gmail.com wrote:
 It is natural to anyone who uses a typewriter. Typists are deliberately
 taught to put two spaces after a full stop!

As Rob pointed out (and please do check out the reference), this makes
sense for a typewriter monospace font. It makes little sense for a
proportional font, what is usually used in a document.

Moreover, LaTeX simply ignores two adjacent (simple) spaces, the very
reason for LyX not allowing to input that. LaTeX spaces are not the
same as Word or typewriter spaces (again, see Rob's comments and check
out other references that discuss this issue), and LaTeX uses
appropriate algorithms to determine how much space should be left
between a full stop and the beginning of a new sentence. Two spaces is
the wrong way to do this, at least in the context of LaTeX.


 If the message itself is what bothers you, then try not to look at it.
 With time you'll get used to ignoring it completely.

 Bollox! It disturbs the visual perception of the user

Then use fullscreen mode.


 to no good purpose
 other than to be smart ass about some convention that a few people don't
 like. Errors and warnings should be displayed for real problems not the
 imagined superiority of programmers.

But now you are getting aggressive. From the top of my head this is
the one worst way to try to convince the devels of LyX---whom you
should thank for the elegant product that they provide, for free---to
implement your pet feature. Good luck with that.

But if this issue is such a deal breaker, then feel free to switch to
Scientific WorkPlace. It may cost you 1000$ or so, but you'll likely
be able type two spaces as you wish to. (Disclaimer: Before buying
that, check with the vendor that it indeed allows that.)

Liviu


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Jean-Marc Lasgouttes

Le 24/11/2012 11:17, Trevor Jenkins a écrit :

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


Typist maybe, but in France I know no dactylo that would do that.


Bollox! It disturbs the visual perception of the user to no good purpose
other than to be smart ass about some convention that a few people don't
like. Errors and warnings should be displayed for real problems not the
imagined superiority of programmers.


There are whole countries where nobody even thinks about putting double 
spaces at the end of a sentence. Could this be a sign of imagined 
superiority from your part ? ;)


JMarc



Re: Changing Contents to another language

2012-11-24 Thread Jean-Marc Lasgouttes
Le 24/11/2012 14:36,  Frederick FN Noronha फ्रेड्रिक नोरोन्या *فريدريك 
نورونيا  a écrit :

Dear all:

I normally use Lyx in English. This time we're working on a Spanish
book. Please let me know how to change the title of the 'Contents' page
to 'Indice' or 'Indice General'

Thanks a tonne in advance. FN


I am surprised that this is a problem. If you set the language of the 
document, it should just work, unless our spanish translation status is bad.


JMarc



Re: complex renewcommand \cite

2012-11-24 Thread Richard Heck

On 11/23/2012 09:59 AM, Andreas Paeffgen wrote:
I want to get a different \cite command in the document. If i put 
\renewcommand{\cite}{\texorpdfstring{\cite{%}}{} } in the preamble i 
get an emergency stop.


This causes an infinite loop. \cite gets unpacked into something 
involving \cite, which gets unpacked into something else involving 
\cite, etc. Not so good. The problem is that LaTeX does not expand \cite 
when you give this command, but only when \cite itself is expanded. That 
is: \cite, even though it is a command, works like a variable. Consider:

\newcommand\mystuff{a}
\newcommand\inparens{(\mystuff)}
\inparens
\renewcommand\mystuff{b}
\inparens
This will print (a) then (b). This is actually quite useful 
sometimes, and could equally well be done with more complicated 
commands. (This kind of thing is done in the LaTeX core all the time.)


The standard way around this kind of thing is:
\let\oldcite=\cite
and then you redefine \cite in terms of \oldcite. The point is that \let 
actually assigns the *expanded* form (at that point) of \cite to 
\oldcite, rather than making \oldcite an alias for \cite (which would 
just give us the other problem back again). So, e.g.:

\let\stuff=\mystuff
\renewcommand\mystuff{c}
\stuff
will still print b, not c.

Richard



Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread David L. Johnson

On 11/24/2012 12:10 PM, Jean-Marc Lasgouttes wrote:

Le 24/11/2012 11:17, Trevor Jenkins a écrit :

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


Typist maybe, but in France I know no dactylo that would do that.


Not being from France, I was indeed taught to put two spaces after a 
full stop.  I don't see any real reason for the warning, which is more 
of a chiding, anyway.  Just ignore that second space, send it to the 
file in the TeX-correct way.  Those of us who habitually put that second 
space there (as I am doing writing this message) can continue to do so 
without changing the LyX file at all.  That is the way I treat is now, 
by simply ignoring the message.  Few if any habits will be changed with 
that message.  Putting two spaces after a full stop is a stylistic 
choice, not really an error.



--

David L. Johnson
Department of Mathematics
Lehigh University



Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Charlie
 On Sat, 24 Nov 2012 21:15:32 -0500 David L. Johnson d...@lehigh.edu
 suggested this:

That is the way I treat is now, by simply ignoring the message.

  Great, that's settled then. 

  There is no effort required to ignore the message. However, as
  explained previously, if there is no message, then there is effort on
  someones behalf required, when the questions roll in asking why
  someone can't type two spaces behind a full stop.

So we have the answer, leave the message as is and ignore it. No effort
expended and you just get on with what you're doing.

Nothing more need be written about the subject. Whatcha reckon.

Be well,
Charlie
-- 
Registered Linux User:- 329524
***

There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Alan L Tyree

On 25/11/12 13:27, Charlie wrote:

  On Sat, 24 Nov 2012 21:15:32 -0500 David L. Johnson d...@lehigh.edu
  suggested this:


That is the way I treat is now, by simply ignoring the message.

   Great, that's settled then.

   There is no effort required to ignore the message. However, as
   explained previously, if there is no message, then there is effort on
   someones behalf required, when the questions roll in asking why
   someone can't type two spaces behind a full stop.

So we have the answer, leave the message as is and ignore it. No effort
expended and you just get on with what you're doing.

Nothing more need be written about the subject. Whatcha reckon.

Be well,
Charlie
 --
Registered Linux User:- 329524
***

There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-

Charlie, Charlie,
Your sensible suggestion ignores the Parkinson rule about committees. 
You will recall that he observed that committees will pass multi-million 
dollar proposals for, say, a new nuclear plant in seconds. However, a 
resolution concerning tea room costs will be argued for hours if not for 
days.


Here is an issue that everyone can understand. It will NEVER go away!

Cheers,
Alan
(Who learned to put two spaces after a full stop in typing class, but 
likes the warning in LyX).



--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:172...@iptel.org



Re: Getting rid of You cannot type two spaces this way message?

2012-11-24 Thread Zan
as a basic user who habitually taps twice...

Keep the function but kill the message. _nothing_ is a fine response for a 
habitual second push of the space bar. The message is unnecessary and 
graphically distracting after the second reminder.

On Nov 24, 2012, at 5:56 PM, Alan L Tyree alanty...@gmail.com wrote:

 On 25/11/12 13:27, Charlie wrote:
  On Sat, 24 Nov 2012 21:15:32 -0500 David L. Johnson d...@lehigh.edu
  suggested this:
 
 That is the way I treat is now, by simply ignoring the message.
   Great, that's settled then.
 
   There is no effort required to ignore the message. However, as
   explained previously, if there is no message, then there is effort on
   someones behalf required, when the questions roll in asking why
   someone can't type two spaces behind a full stop.
 
 So we have the answer, leave the message as is and ignore it. No effort
 expended and you just get on with what you're doing.
 
 Nothing more need be written about the subject. Whatcha reckon.
 
 Be well,
 Charlie
 --
Registered Linux User:- 329524
***
 
There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau
 
***
 
Debian GNU/Linux - just the best way to create magic
 
-
 Charlie, Charlie,
 Your sensible suggestion ignores the Parkinson rule about committees. 
 You will recall that he observed that committees will pass multi-million 
 dollar proposals for, say, a new nuclear plant in seconds. However, a 
 resolution concerning tea room costs will be argued for hours if not for 
 days.
 
 Here is an issue that everyone can understand. It will NEVER go away!
 
 Cheers,
 Alan
 (Who learned to put two spaces after a full stop in typing class, but 
 likes the warning in LyX).
 
 
 -- 
 Alan L Tyreehttp://www2.austlii.edu.au/~alan
 Tel:  04 2748 6206sip:172...@iptel.org
 


Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread Trevor Jenkins
On Wed, Nov 21, 2012 at 3:36 PM, Liviu Andronic wrote:

> On Wed, Nov 21, 2012 at 4:08 PM, Alan R. Bleier  wrote:
> > I agree completely with Trevor.
> >
> I completely disagree with Trevor. Hitting double space [to get a full
> stop] is as unnatural and unhelpful as it gets. This may make some
> sense for a mobile platform, but is utterly unneeded on the desktop. I
> very much hope that LyX doesn't go the way of the iThingies.
>

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


> If the message itself is what bothers you, then try not to look at it.
> With time you'll get used to ignoring it completely.
>

Bollox! It disturbs the visual perception of the user to no good purpose
other than to be smart ass about some convention that a few people don't
like. Errors and warnings should be displayed for real problems not the
imagined superiority of programmers.

Regards, Trevor.

<>< Re: deemed!


Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread Liviu Andronic
On Sat, Nov 24, 2012 at 11:17 AM, Trevor Jenkins  wrote:
> It is natural to anyone who uses a typewriter. Typists are deliberately
> taught to put two spaces after a full stop!
>
As Rob pointed out (and please do check out the reference), this makes
sense for a typewriter monospace font. It makes little sense for a
proportional font, what is usually used in a document.

Moreover, LaTeX simply ignores two adjacent (simple) spaces, the very
reason for LyX not allowing to input that. LaTeX spaces are not the
same as Word or typewriter spaces (again, see Rob's comments and check
out other references that discuss this issue), and LaTeX uses
appropriate algorithms to determine how much space should be left
between a full stop and the beginning of a new sentence. Two spaces is
the wrong way to do this, at least in the context of LaTeX.


>> If the message itself is what bothers you, then try not to look at it.
>> With time you'll get used to ignoring it completely.
>
> Bollox! It disturbs the visual perception of the user
>
Then use fullscreen mode.


> to no good purpose
> other than to be smart ass about some convention that a few people don't
> like. Errors and warnings should be displayed for real problems not the
> imagined superiority of programmers.
>
But now you are getting aggressive. From the top of my head this is
the one worst way to try to convince the devels of LyX---whom you
should thank for the elegant product that they provide, for free---to
implement your pet feature. Good luck with that.

But if this issue is such a deal breaker, then feel free to switch to
Scientific WorkPlace. It may cost you 1000$ or so, but you'll likely
be able type two spaces as you wish to. (Disclaimer: Before buying
that, check with the vendor that it indeed allows that.)

Liviu


Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread Jean-Marc Lasgouttes

Le 24/11/2012 11:17, Trevor Jenkins a écrit :

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


Typist maybe, but in France I know no "dactylo" that would do that.


Bollox! It disturbs the visual perception of the user to no good purpose
other than to be smart ass about some convention that a few people don't
like. Errors and warnings should be displayed for real problems not the
imagined superiority of programmers.


There are whole countries where nobody even thinks about putting double 
spaces at the end of a sentence. Could this be a sign of imagined 
superiority from your part ? ;)


JMarc



Re: Changing "Contents" to another language

2012-11-24 Thread Jean-Marc Lasgouttes
Le 24/11/2012 14:36,  Frederick FN Noronha फ्रेड्रिक नोरोन्या *فريدريك 
نورونيا  a écrit :

Dear all:

I normally use Lyx in English. This time we're working on a Spanish
book. Please let me know how to change the title of the 'Contents' page
to 'Indice' or 'Indice General'

Thanks a tonne in advance. FN


I am surprised that this is a problem. If you set the language of the 
document, it should just work, unless our spanish translation status is bad.


JMarc



Re: complex renewcommand \cite

2012-11-24 Thread Richard Heck

On 11/23/2012 09:59 AM, Andreas Paeffgen wrote:
I want to get a different \cite command in the document. If i put 
\renewcommand{\cite}{\texorpdfstring{\cite{%}}{} } in the preamble i 
get an emergency stop.


This causes an infinite loop. \cite gets unpacked into something 
involving \cite, which gets unpacked into something else involving 
\cite, etc. Not so good. The problem is that LaTeX does not expand \cite 
when you give this command, but only when \cite itself is expanded. That 
is: \cite, even though it is a command, works like a variable. Consider:

\newcommand\mystuff{a}
\newcommand\inparens{(\mystuff)}
\inparens
\renewcommand\mystuff{b}
\inparens
This will print "(a)" then "(b)". This is actually quite useful 
sometimes, and could equally well be done with more complicated 
commands. (This kind of thing is done in the LaTeX core all the time.)


The standard way around this kind of thing is:
\let\oldcite=\cite
and then you redefine \cite in terms of \oldcite. The point is that \let 
actually assigns the *expanded* form (at that point) of \cite to 
\oldcite, rather than making \oldcite an alias for \cite (which would 
just give us the other problem back again). So, e.g.:

\let\stuff=\mystuff
\renewcommand\mystuff{c}
\stuff
will still print "b", not "c".

Richard



Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread David L. Johnson

On 11/24/2012 12:10 PM, Jean-Marc Lasgouttes wrote:

Le 24/11/2012 11:17, Trevor Jenkins a écrit :

It is natural to anyone who uses a typewriter. Typists are deliberately
taught to put two spaces after a full stop!


Typist maybe, but in France I know no "dactylo" that would do that.


Not being from France, I was indeed taught to put two spaces after a 
full stop.  I don't see any real reason for the "warning", which is more 
of a chiding, anyway.  Just ignore that second space, send it to the 
file in the TeX-correct way.  Those of us who habitually put that second 
space there (as I am doing writing this message) can continue to do so 
without changing the LyX file at all.  That is the way I treat is now, 
by simply ignoring the message.  Few if any habits will be changed with 
that message.  Putting two spaces after a full stop is a stylistic 
choice, not really an error.



--

David L. Johnson
Department of Mathematics
Lehigh University



Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread Charlie
 On Sat, 24 Nov 2012 21:15:32 -0500 "David L. Johnson d...@lehigh.edu"
 suggested this:

>That is the way I treat is now, by simply ignoring the message.

  Great, that's settled then. 

  There is no effort required to ignore the message. However, as
  explained previously, if there is no message, then there is effort on
  someones behalf required, when the questions roll in asking why
  someone can't type two spaces behind a full stop.

So we have the answer, leave the message as is and ignore it. No effort
expended and you just get on with what you're doing.

Nothing more need be written about the subject. Whatcha reckon.

Be well,
Charlie
-- 
Registered Linux User:- 329524
***

There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread Alan L Tyree

On 25/11/12 13:27, Charlie wrote:

  On Sat, 24 Nov 2012 21:15:32 -0500 "David L. Johnson d...@lehigh.edu"
  suggested this:


That is the way I treat is now, by simply ignoring the message.

   Great, that's settled then.

   There is no effort required to ignore the message. However, as
   explained previously, if there is no message, then there is effort on
   someones behalf required, when the questions roll in asking why
   someone can't type two spaces behind a full stop.

So we have the answer, leave the message as is and ignore it. No effort
expended and you just get on with what you're doing.

Nothing more need be written about the subject. Whatcha reckon.

Be well,
Charlie
 --
Registered Linux User:- 329524
***

There are thousands hacking at the branches of evil to one who
is striking at the root. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-

Charlie, Charlie,
Your sensible suggestion ignores the Parkinson rule about committees. 
You will recall that he observed that committees will pass multi-million 
dollar proposals for, say, a new nuclear plant in seconds. However, a 
resolution concerning tea room costs will be argued for hours if not for 
days.


Here is an issue that everyone can understand. It will NEVER go away!

Cheers,
Alan
(Who learned to put two spaces after a full stop in typing class, but 
likes the warning in LyX).



--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:172...@iptel.org



Re: Getting rid of "You cannot type two spaces this way" message?

2012-11-24 Thread Zan
as a basic user who habitually taps twice...

Keep the function but kill the message. _nothing_ is a fine response for a 
habitual second push of the space bar. The message is unnecessary and 
graphically distracting after the second reminder.

On Nov 24, 2012, at 5:56 PM, "Alan L Tyree"  wrote:

> On 25/11/12 13:27, Charlie wrote:
>>  On Sat, 24 Nov 2012 21:15:32 -0500 "David L. Johnson d...@lehigh.edu"
>>  suggested this:
>> 
>>> That is the way I treat is now, by simply ignoring the message.
>>   Great, that's settled then.
>> 
>>   There is no effort required to ignore the message. However, as
>>   explained previously, if there is no message, then there is effort on
>>   someones behalf required, when the questions roll in asking why
>>   someone can't type two spaces behind a full stop.
>> 
>> So we have the answer, leave the message as is and ignore it. No effort
>> expended and you just get on with what you're doing.
>> 
>> Nothing more need be written about the subject. Whatcha reckon.
>> 
>> Be well,
>> Charlie
>> --
>>Registered Linux User:- 329524
>>***
>> 
>>There are thousands hacking at the branches of evil to one who
>>is striking at the root. .Henry David Thoreau
>> 
>>***
>> 
>>Debian GNU/Linux - just the best way to create magic
>> 
>>-
> Charlie, Charlie,
> Your sensible suggestion ignores the Parkinson rule about committees. 
> You will recall that he observed that committees will pass multi-million 
> dollar proposals for, say, a new nuclear plant in seconds. However, a 
> resolution concerning tea room costs will be argued for hours if not for 
> days.
> 
> Here is an issue that everyone can understand. It will NEVER go away!
> 
> Cheers,
> Alan
> (Who learned to put two spaces after a full stop in typing class, but 
> likes the warning in LyX).
> 
> 
> -- 
> Alan L Tyreehttp://www2.austlii.edu.au/~alan
> Tel:  04 2748 6206sip:172...@iptel.org
>