Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread G. Milde
On 23.06.08, Bruce Pourciau wrote:

 I rewrote the first spot where there was an error, and now everything is 
 fine! Weird.

This could be e.g. a math-only character outside math (or vice versa) that
triggers a math-toggle (inserted $) in TeX's error handling.
As toggle implies, after that math is seen as text and text as math which
leads to a mass of follow-up errors.

There are several such scenarios where a single wrong character can
disturb the TeX engine and lead to scores of errors. And this character
might have been input unadvertedly (e.g. while thinking that the focus is in
another window).

BTW: instead of cutting text in most cases it helps to just put
 it in a note (mark it and InsertNoteNote).

Günter


Re: Lyx crashes in Hardy Heron

2008-06-24 Thread Sven Hoexter
On Tue, Jun 24, 2008 at 12:16:18PM +0800, John McCabe-Dansted wrote:
 On Tue, Jun 24, 2008 at 3:04 AM, elswood [EMAIL PROTECTED] wrote:
  I have installed lyX 1.53 from the Ubuntu 8.4 repositories.  But it
  frequently crashes when accessing lyx document files on my computer.  Is
  this a bug that is fixed with lyX 1.55?  And how do I install it?  (It
  isn't in the repositories.)  If someone could let me know how to proceed
  I would be grateful.
 
  Thanks!
 
 Upgrading to lyx 1.5.5 fixed the problem for me.

https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/228067

This bug suggests that all of you with this problem on Ububuntu/hardy
upgrade to everything that can be found in the hardy-backports repo.
(Maybe not a wise idea or is it even default mode?)

The easy solution for those users would be to push someone to include
LyX 1.5.5 along with the Qt 4.4 packages in the hardy-backports repo.

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Find Replace with ERT insets

2008-06-24 Thread Nicolás

Hi!

LyX (v1.5.5) is able to find a certain text string inside an ERT inset. However, the automatic replacement feature does not seem to 
work. Is this a bug or the intended behavior? If the second case applies, what is the reason for such behavior? Thanks!


Nicolás


Re: marking something as ERT

2008-06-24 Thread G. Milde
On 20.06.08, Philip A. Viton wrote:

 I've written a utility which takes results (in the J programing  
 language) and converts them to latex tables, specifically formal tables, 
 using booktabs.sty. One problem with importing them into lyx is that 
 setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
 \cmidrule, followed by text for the rest, another ERT for the next 
 \cmidrule etc.

 Question: since I have complete control over how the file gets written, 
 is there some way I could indicate to the lyx importer that the whole 
 sequence of \cmidrule's is to be treated as one big ERT? 

Nothing I know of.

 Something on the order of \ERT{\cmidrule(r){1-2}  } ?

This is 
a) invalid LaTeX
b) has the same problems.

However, as you have complete control, you could consider exporting
CSV tables and using the CSV importer to convert them to lyx or
generate LyX code right away.

Günter



keyboard question

2008-06-24 Thread Daniel CLEMENT
Hello,

I use a US int'l keyboard --though I am French-- for more convenient
access to brackets, parentheses... in scientific software.

I have the dead keys setup, getting accented characters by typing the
accent, then the character.

However, the cedilla-c: ç is obtained by acute accent + c. This is the
case in almost every program. But LyX gives me an accented c!

How could I teach LyX to type the cedilla-c instead? I tried to tweak a
kmap file (details below) but I did not succeed so far.

BTW, OS is Linux Ubuntu.

Thanks,
-- 

Daniel Clément

PS Here is what I tried: in american.kmap I put

\kmod ' acute aeiouAEIOU

# \kmod , cedilla native

\kxmod ' c ç

No luck. What am I doing wrong?




Re: keyboard question

2008-06-24 Thread G. Milde
On 24.06.08, Daniel CLEMENT wrote:
 I use a US int'l keyboard I have the dead keys setup, getting
 accented characters by typing the accent, then the character.

 However, the cedilla-c: ç is obtained by acute accent + c. This is the
 case in almost every program. But LyX gives me an accented c!

I suppose that it is converted to character 'ć' (263, 0x107)
0107LATIN SMALL LETTER C WITH ACUTE
by the OS and inserted as-is by LyX.

 How could I teach LyX to type the cedilla-c instead? I tried to tweak a
 kmap file (details below) but I did not succeed so far.

I suppose you can do without a kmap file and use a bind file to 
bind ć to ç but I do not know about the required syntax.

Günter


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread Bruce Pourciau


On Jun 24, 2008, at 2:06 AM, G. Milde wrote:


On 23.06.08, Bruce Pourciau wrote:

I rewrote the first spot where there was an error, and now  
everything is

fine! Weird.


This could be e.g. a math-only character outside math (or vice  
versa) that

triggers a math-toggle (inserted $) in TeX's error handling.
As toggle implies, after that math is seen as text and text as  
math which

leads to a mass of follow-up errors.


This was exactly the problem: a \propto symbol seen as text.



There are several such scenarios where a single wrong character can
disturb the TeX engine and lead to scores of errors. And this  
character
might have been input unadvertedly (e.g. while thinking that the  
focus is in

another window).


Yes, it led to a bunch of follow up errors.



BTW: instead of cutting text in most cases it helps to just put
 it in a note (mark it and InsertNoteNote).


Please explain?



Günter




URL handling in 1.6

2008-06-24 Thread G. Milde

I finally managed to install a testversion of 1.6 (thanks to Sven's debian
package).

First experiments revealed a strange behaviour regarding URLs.

Two for one
---

There are 2 insets for URLs in the Insert menu:

  URL, resulting in \url{http://example.org/} 
and
  Link, resulting in \href{http://example.org}{http://example.org}

in the LaTeX source. Both look and behave identical in the PDF output
(with default settings).

Are two separate URL insets needed or could URL be made a special case of
a hyperlink?


Display
---

The URL inset is either non-informative (just showing a blue [URL]) or overly
verbose (showing [URL][http://example.org]). I'd prefer it to have it
displaying the start of the content (similar to the LaTeX (ERT) inset) if
closed and no URL label if open. The status line tells me it is an URL if
in daubt.

The Hyperlink inset is always closed (Ctrl-I pops up a dialogue) and has
a very very long [Hyperlink] label in front of the URI.

Is there a way to configure the display properties of URL insets?

Edit


* I can dissolve an URL by the usual backspace at the first position
  but not via right-click (Dissolve Inset is greyed out for some
  reason).

* I can not dissolve a Hyperlink inset, only copy and paste its content
  into another place.
 
* Search/Replace finds example in the URL inset but not in the
  Hyperlink inset. 


Conversion
--

URLs from a document created with LyX 1.5.5 are transformed to URL insets in
1.6.3.

However re-export as LyX 1.5 file transforms 

 Hyperlinks to URLs (Fine)
 
and
 
 URLs to unmarked boxes (transformed to plain text http://example.org/ in
 the LaTeX source) (Bad)
 
Why is a 1.6 URL inset not converted to a 1.5 URL inset?

Should 1.5 URLs be rather converted to 1.6 Hyperlinks?


Günter


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread G. Milde
On 24.06.08, Bruce Pourciau wrote:
 On Jun 24, 2008, at 2:06 AM, G. Milde wrote:
 On 23.06.08, Bruce Pourciau wrote:

 BTW: instead of cutting text in most cases it helps to just put
  it in a note (mark it and InsertNoteNote).

 Please explain?

If you want to find out where in your document the problematic part is, you
can make a copy and cut/delete parts of it until it compiles.

Alternatively, you can mark a part of the text and put it in a LyX note.
LyX notes are not exported, so the effect is almost the same but it is
easier to restore the content (press [Backspace] when the cursor is at the
first positon inside the note).

There is a slight chance of failure when LyX inserts some code into the
document (preamble, say) depending on the document content.  
   I had this problem with a document containg text parts in the languages
greek and polutonikogreek. The resulting LaTeX error did not disappear after
putting the polutonikogreek part in a note as LyX did still insert both
language options in the document header.

Günter



Re: Footnote without numbering (new)

2008-06-24 Thread Bob Lounsbury
On Wed, May 28, 2008 at 6:23 AM, Adrian Peter [EMAIL PROTECTED] wrote:




 Hi,

 Is there a way to enter footnote without the automatic numbering?  I think I 
 saw something in the archives but it was for Lyx version 1.1.6 and the 
 explanation was a little confusing.  Thank you.

 Adrian

 _
 Change the world with e-mail. Join the i'm Initiative from Microsoft.
 http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld

Just wanted to add that I found another way to eliminate the footnote
numbering. Taken from:

ftp://tug.ctan.org/pub/tex-archive/info/latex4wp/latex4wp.pdf

It does eliminate all footnote numbering so if you need some footnotes
numbered and some not it may take a fair amount of tweaking.

Just put (in the Preamble):

\renewcommand{\thefootnote}{}

Cheers,
/Bob


Re: keyboard question

2008-06-24 Thread Daniel CLEMENT
On Tuesday 24 June 2008 15:13 +0200, G. Milde wrote:

 On 24.06.08, Daniel CLEMENT wrote:
  I use a US int'l keyboard I have the dead keys setup, getting
  accented characters by typing the accent, then the character.
 
  However, the cedilla-c: ç is obtained by acute accent + c. This is the
  case in almost every program. But LyX gives me an accented c!
 
 I suppose that it is converted to character 'ć' (263, 0x107)
 0107  LATIN SMALL LETTER C WITH ACUTE
 by the OS and inserted as-is by LyX.


Sure, but why doesn't the OS convert to ç like in most other programs?
LyX must have something to do with it.

  How could I teach LyX to type the cedilla-c instead? I tried to tweak a
  kmap file (details below) but I did not succeed so far.
 
 I suppose you can do without a kmap file and use a bind file to 
 bind ć to ç but I do not know about the required syntax.
 
 Günter

Well, since the ć does not appear in any bind file that I know, I
thought a kmap file was a more appropriate. Anyhow, I tried

\bind 'c ç

and

\bind ç ç

... neither worked (still getting ć). I miss the correct syntax!

-- 

Daniel Clément



Re: keyboard question

2008-06-24 Thread Abdelrazak Younes

Daniel CLEMENT wrote:


... neither worked (still getting ć). I miss the correct syntax!


Maybe try this:

\bind 'c  unicode-insert 0x00e7

Abdel.



Re: marking something as ERT

2008-06-24 Thread Enrico Forestieri
G. Milde writes:

 
 On 20.06.08, Philip A. Viton wrote:
 
  I've written a utility which takes results (in the J programing  
  language) and converts them to latex tables, specifically formal tables, 
  using booktabs.sty. One problem with importing them into lyx is that 
  setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
  \cmidrule, followed by text for the rest, another ERT for the next 
  \cmidrule etc.
 
  Question: since I have complete control over how the file gets written, 
  is there some way I could indicate to the lyx importer that the whole 
  sequence of \cmidrule's is to be treated as one big ERT? 
 
 Nothing I know of.
 
  Something on the order of \ERT{\cmidrule(r){1-2}  } ?
 
 This is 
 a) invalid LaTeX
 b) has the same problems.

Not quite. The problem with \cmidrule is its non-standard syntax.
If the command had used only brackets [] and braces {}, the solution
would be simple. In order to obtain what the OP wants, a hack must be used.
First of all, put in the preamble of the .tex file the following line:

\def\ERT#1{#1}

then, surround each \cmidrule command that you want to import as a
single ERT, with \ERT{your command here}, just as in your example above.
Now, use a text editor and create a file named as you like, for example
syntax.extra, and put in there the following line:

\ERT{}

Having done that, run LyX, go to Tools-Preferences-Converters and
select the LaTeX (plain) - LyX converter. Change the line that reads
tex2lyx -f $$i $$o into tex2lyx -s path/syntax.extra -f $$i $$o
(where path is the full path to the syntax.extra file), hit the Modify
button and then Apply (or Save, for a permanent change).
Now use the menu File-Import-LaTeX (plain) and select the .tex file
you want to import. All your \ERT{whatever} commands will be imported
as a single ERT. Note that you don't have to take away the surrounding
\ERT{} in LyX, as it will work as expected.

-- 
Enrico



Re: URL handling in 1.6

2008-06-24 Thread Uwe Stöhr

 There are 2 insets for URLs in the Insert menu:

Both are explained in the UserGuide. Both differ a lot.

 * I can dissolve an URL by the usual backspace at the first position
   but not via right-click (Dissolve Inset is greyed out for some
   reason).

Could you please report this at bugzilla?

 * I can not dissolve a Hyperlink inset, only copy and paste its content
   into another place.

Yes, because it is not an inset. ItÄs the same as a label. Therefore find and 
replace cannot find it.

 Why is a 1.6 URL inset not converted to a 1.5 URL inset?

This is a bug, could you please report it at bugzilla?

 Should 1.5 URLs be rather converted to 1.6 Hyperlinks?

No, we won't change the output of the documents we convert.

thanks for testing and regards
Uwe


Re: Problem inner and outer margins

2008-06-24 Thread Nigel Pegram
Ask your publisher for the required margins and then uncheck the
default margin setting and enter the values directly.

Nigel

On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 I am writing a double-sided book manuscript to publish, by employing
 document class book.
 When I showed the printed manuscript to the publisher, they just simply
 said, it looks fine except the outer and inner margin. The outer must be
 smaller than the inner because it will be used for binding purpose.

 How can I switch the the inner and outer margins. I use (document - settings
 - page margins- default margin).

 Thank you if anyone could give me any suggestions.

 Regards
 Adi



   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


Re: Problem inner and outer margins

2008-06-24 Thread Waluyo Adi Siswanto
Thank you .. Nigel
Is that possible to know all the margin default values of the book class. If 
I know the values of the default inner and outer margins, I can just swap the 
values without disturbing the width of the text, and the manuscript does not 
change, only its side margins.
( I am sorry, probably it is a simple question.. I am a beginner in LyX/LaTeX)

Adi

--- On Wed, 25/6/08, Nigel Pegram [EMAIL PROTECTED] wrote:
From: Nigel Pegram [EMAIL PROTECTED]
Subject: Re: Problem inner and outer margins
To: [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Received: Wednesday, 25 June, 2008, 6:23 AM

Ask your publisher for the required margins and then uncheck the
default margin setting and enter the values directly.

Nigel

On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 I am writing a double-sided book manuscript to publish, by employing
 document class book.
 When I showed the printed manuscript to the publisher, they just simply
 said, it looks fine except the outer and inner margin. The outer must be
 smaller than the inner because it will be used for binding purpose.

 How can I switch the the inner and outer margins. I use (document -
settings
 - page margins- default margin).

 Thank you if anyone could give me any suggestions.

 Regards
 Adi



   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: Problem inner and outer margins

2008-06-24 Thread Nigel Pegram
Hi Adi,

Offhand, no, I don't know the default settings. It'll be around
somewhere, but that doesn't help you grin.

The reason I suggested speaking with the publisher is that they should
be able to inform you concerning good margin sizes. The correct answer
depends on a number of factors, including text (point) size, paper
size, number of pages (creep) and the style of binding (perfect,
burst, ring, etc). If they can't/won't help you, you could aways print
a sample page from lyx and take the measurements from that.

HTH
Nigel

On 25/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 Thank you .. Nigel
 Is that possible to know all the margin default values of the book class.
 If I know the values of the default inner and outer margins, I can just swap
 the values without disturbing the width of the text, and the manuscript does
 not change, only its side margins.
 ( I am sorry, probably it is a simple question.. I am a beginner in
 LyX/LaTeX)

 Adi

 --- On Wed, 25/6/08, Nigel Pegram [EMAIL PROTECTED] wrote:
 From: Nigel Pegram [EMAIL PROTECTED]
 Subject: Re: Problem inner and outer margins
 To: [EMAIL PROTECTED]
 Cc: lyx-users@lists.lyx.org
 Received: Wednesday, 25 June, 2008, 6:23 AM

 Ask your publisher for the required margins and then uncheck the
 default margin setting and enter the values directly.

 Nigel

 On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 I am writing a double-sided book manuscript to publish, by employing
 document class book.
 When I showed the printed manuscript to the publisher, they just simply
 said, it looks fine except the outer and inner margin. The outer must be
 smaller than the inner because it will be used for binding purpose.

 How can I switch the the inner and outer margins. I use (document -
 settings
 - page margins- default margin).

 Thank you if anyone could give me any suggestions.

 Regards
 Adi



   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


Re: Problem inner and outer margins

2008-06-24 Thread John
On Wednesday 25 June 2008 12:39:13 pm Nigel Pegram wrote:
 Hi Adi,

 Offhand, no, I don't know the default settings. It'll be around
 somewhere, but that doesn't help you grin.

 The reason I suggested speaking with the publisher is that they should
 be able to inform you concerning good margin sizes. The correct answer
 depends on a number of factors, including text (point) size, paper
 size, number of pages (creep) and the style of binding (perfect,
 burst, ring, etc). If they can't/won't help you, you could aways print
 a sample page from lyx and take the measurements from that.
In general the outer margins should re roughly twice the width of the inner 
margins.
This is so that when the book is opened out, the whitespace outside columns of 
text appears equal. If you look at published books you will see that this is 
so.
Of course the type of binding can affect how well that book can open out and 
this may mean that the inner margins need to compensate  for this by being 
increased a little. But the visible width of the two inner margins should 
still look equal to one outer margin

John O'Gorman

 HTH
 Nigel

 On 25/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
  Thank you .. Nigel
  Is that possible to know all the margin default values of the book
  class. If I know the values of the default inner and outer margins, I can
  just swap the values without disturbing the width of the text, and the
  manuscript does not change, only its side margins.
  ( I am sorry, probably it is a simple question.. I am a beginner in
  LyX/LaTeX)
 
  Adi
 
  --- On Wed, 25/6/08, Nigel Pegram [EMAIL PROTECTED] wrote:
  From: Nigel Pegram [EMAIL PROTECTED]
  Subject: Re: Problem inner and outer margins
  To: [EMAIL PROTECTED]
  Cc: lyx-users@lists.lyx.org
  Received: Wednesday, 25 June, 2008, 6:23 AM
 
  Ask your publisher for the required margins and then uncheck the
  default margin setting and enter the values directly.
 
  Nigel
 
  On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
  I am writing a double-sided book manuscript to publish, by employing
  document class book.
  When I showed the printed manuscript to the publisher, they just simply
  said, it looks fine except the outer and inner margin. The outer must be
  smaller than the inner because it will be used for binding purpose.
 
  How can I switch the the inner and outer margins. I use (document -
 
  settings
 
  - page margins- default margin).
 
  Thank you if anyone could give me any suggestions.
 
  Regards
  Adi
 
 
 
Get the name you always wanted with the new y7mail email address.
  www.yahoo7.com.au/mail
 
Get the name you always wanted with the new y7mail email address.
  www.yahoo7.com.au/mail




Using Sweave for R code in LyX on Windows

2008-06-24 Thread G. Jay Kerns
Dear David,

David Hewitt wrote:
Now that Gregor's article about using Sweave with LyX is published in RNews:

http://www.r-project.org/doc/Rnews/Rnews_2008-1-2.pdf

I wondered whether anyone has tried it on Windows?

I'm ready to try it and was hoping someone could assist. Perhaps we can add
to the LyX wiki page about Sweave to bring in the Windows side of things.

-
David Hewitt
Research Fishery Biologist
USGS Klamath Falls Field Station (USA)



Check out the following recent post by Gregor on using LyX with Sweave
on MS-Windows:

http://ggorjan.blogspot.com/2008/06/using-sweave-with-lyx-on-ms-windows.html

I just updated to LyX 1.5.5 on my Windows XP laptop.  I followed
Gregor's installation instructions from the Rnews article to the
letter.

The only thing extra for me was making sure that R was in the PATH.
To do that, go Start - Control Panel - System - Advanced -
Environment Variables, and then scroll in the list for the Path
variable to edit.  In my case, it sufficed to append
C:\PROGRA~1\R\R-2.7.0\bin to the list, but (of course) the location
where R is stored depends on the user.

With that small change everything worked fine.

Please note that - coincidentally - I had already installed Cygwin on
my system for other reasons; that may have helped with the relative
ease that I had with the configuration.

I have copied Gregor to this email. Perhaps we can combine our
experiences with the above mentioned post and add some material to the
LyX wiki for other users.

Best,
Jay


***
G. Jay Kerns, Ph.D.
Assistant Professor / Statistics Coordinator
Department of Mathematics  Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
E-mail: [EMAIL PROTECTED]
http://www.cc.ysu.edu/~gjkerns/


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread G. Milde
On 23.06.08, Bruce Pourciau wrote:

 I rewrote the first spot where there was an error, and now everything is 
 fine! Weird.

This could be e.g. a math-only character outside math (or vice versa) that
triggers a math-toggle (inserted $) in TeX's error handling.
As toggle implies, after that math is seen as text and text as math which
leads to a mass of follow-up errors.

There are several such scenarios where a single wrong character can
disturb the TeX engine and lead to scores of errors. And this character
might have been input unadvertedly (e.g. while thinking that the focus is in
another window).

BTW: instead of cutting text in most cases it helps to just put
 it in a note (mark it and InsertNoteNote).

Günter


Re: Lyx crashes in Hardy Heron

2008-06-24 Thread Sven Hoexter
On Tue, Jun 24, 2008 at 12:16:18PM +0800, John McCabe-Dansted wrote:
 On Tue, Jun 24, 2008 at 3:04 AM, elswood [EMAIL PROTECTED] wrote:
  I have installed lyX 1.53 from the Ubuntu 8.4 repositories.  But it
  frequently crashes when accessing lyx document files on my computer.  Is
  this a bug that is fixed with lyX 1.55?  And how do I install it?  (It
  isn't in the repositories.)  If someone could let me know how to proceed
  I would be grateful.
 
  Thanks!
 
 Upgrading to lyx 1.5.5 fixed the problem for me.

https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/228067

This bug suggests that all of you with this problem on Ububuntu/hardy
upgrade to everything that can be found in the hardy-backports repo.
(Maybe not a wise idea or is it even default mode?)

The easy solution for those users would be to push someone to include
LyX 1.5.5 along with the Qt 4.4 packages in the hardy-backports repo.

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Find Replace with ERT insets

2008-06-24 Thread Nicolás

Hi!

LyX (v1.5.5) is able to find a certain text string inside an ERT inset. However, the automatic replacement feature does not seem to 
work. Is this a bug or the intended behavior? If the second case applies, what is the reason for such behavior? Thanks!


Nicolás


Re: marking something as ERT

2008-06-24 Thread G. Milde
On 20.06.08, Philip A. Viton wrote:

 I've written a utility which takes results (in the J programing  
 language) and converts them to latex tables, specifically formal tables, 
 using booktabs.sty. One problem with importing them into lyx is that 
 setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
 \cmidrule, followed by text for the rest, another ERT for the next 
 \cmidrule etc.

 Question: since I have complete control over how the file gets written, 
 is there some way I could indicate to the lyx importer that the whole 
 sequence of \cmidrule's is to be treated as one big ERT? 

Nothing I know of.

 Something on the order of \ERT{\cmidrule(r){1-2}  } ?

This is 
a) invalid LaTeX
b) has the same problems.

However, as you have complete control, you could consider exporting
CSV tables and using the CSV importer to convert them to lyx or
generate LyX code right away.

Günter



keyboard question

2008-06-24 Thread Daniel CLEMENT
Hello,

I use a US int'l keyboard --though I am French-- for more convenient
access to brackets, parentheses... in scientific software.

I have the dead keys setup, getting accented characters by typing the
accent, then the character.

However, the cedilla-c: ç is obtained by acute accent + c. This is the
case in almost every program. But LyX gives me an accented c!

How could I teach LyX to type the cedilla-c instead? I tried to tweak a
kmap file (details below) but I did not succeed so far.

BTW, OS is Linux Ubuntu.

Thanks,
-- 

Daniel Clément

PS Here is what I tried: in american.kmap I put

\kmod ' acute aeiouAEIOU

# \kmod , cedilla native

\kxmod ' c ç

No luck. What am I doing wrong?




Re: keyboard question

2008-06-24 Thread G. Milde
On 24.06.08, Daniel CLEMENT wrote:
 I use a US int'l keyboard I have the dead keys setup, getting
 accented characters by typing the accent, then the character.

 However, the cedilla-c: ç is obtained by acute accent + c. This is the
 case in almost every program. But LyX gives me an accented c!

I suppose that it is converted to character 'ć' (263, 0x107)
0107LATIN SMALL LETTER C WITH ACUTE
by the OS and inserted as-is by LyX.

 How could I teach LyX to type the cedilla-c instead? I tried to tweak a
 kmap file (details below) but I did not succeed so far.

I suppose you can do without a kmap file and use a bind file to 
bind ć to ç but I do not know about the required syntax.

Günter


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread Bruce Pourciau


On Jun 24, 2008, at 2:06 AM, G. Milde wrote:


On 23.06.08, Bruce Pourciau wrote:

I rewrote the first spot where there was an error, and now  
everything is

fine! Weird.


This could be e.g. a math-only character outside math (or vice  
versa) that

triggers a math-toggle (inserted $) in TeX's error handling.
As toggle implies, after that math is seen as text and text as  
math which

leads to a mass of follow-up errors.


This was exactly the problem: a \propto symbol seen as text.



There are several such scenarios where a single wrong character can
disturb the TeX engine and lead to scores of errors. And this  
character
might have been input unadvertedly (e.g. while thinking that the  
focus is in

another window).


Yes, it led to a bunch of follow up errors.



BTW: instead of cutting text in most cases it helps to just put
 it in a note (mark it and InsertNoteNote).


Please explain?



Günter




URL handling in 1.6

2008-06-24 Thread G. Milde

I finally managed to install a testversion of 1.6 (thanks to Sven's debian
package).

First experiments revealed a strange behaviour regarding URLs.

Two for one
---

There are 2 insets for URLs in the Insert menu:

  URL, resulting in \url{http://example.org/} 
and
  Link, resulting in \href{http://example.org}{http://example.org}

in the LaTeX source. Both look and behave identical in the PDF output
(with default settings).

Are two separate URL insets needed or could URL be made a special case of
a hyperlink?


Display
---

The URL inset is either non-informative (just showing a blue [URL]) or overly
verbose (showing [URL][http://example.org]). I'd prefer it to have it
displaying the start of the content (similar to the LaTeX (ERT) inset) if
closed and no URL label if open. The status line tells me it is an URL if
in daubt.

The Hyperlink inset is always closed (Ctrl-I pops up a dialogue) and has
a very very long [Hyperlink] label in front of the URI.

Is there a way to configure the display properties of URL insets?

Edit


* I can dissolve an URL by the usual backspace at the first position
  but not via right-click (Dissolve Inset is greyed out for some
  reason).

* I can not dissolve a Hyperlink inset, only copy and paste its content
  into another place.
 
* Search/Replace finds example in the URL inset but not in the
  Hyperlink inset. 


Conversion
--

URLs from a document created with LyX 1.5.5 are transformed to URL insets in
1.6.3.

However re-export as LyX 1.5 file transforms 

 Hyperlinks to URLs (Fine)
 
and
 
 URLs to unmarked boxes (transformed to plain text http://example.org/ in
 the LaTeX source) (Bad)
 
Why is a 1.6 URL inset not converted to a 1.5 URL inset?

Should 1.5 URLs be rather converted to 1.6 Hyperlinks?


Günter


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread G. Milde
On 24.06.08, Bruce Pourciau wrote:
 On Jun 24, 2008, at 2:06 AM, G. Milde wrote:
 On 23.06.08, Bruce Pourciau wrote:

 BTW: instead of cutting text in most cases it helps to just put
  it in a note (mark it and InsertNoteNote).

 Please explain?

If you want to find out where in your document the problematic part is, you
can make a copy and cut/delete parts of it until it compiles.

Alternatively, you can mark a part of the text and put it in a LyX note.
LyX notes are not exported, so the effect is almost the same but it is
easier to restore the content (press [Backspace] when the cursor is at the
first positon inside the note).

There is a slight chance of failure when LyX inserts some code into the
document (preamble, say) depending on the document content.  
   I had this problem with a document containg text parts in the languages
greek and polutonikogreek. The resulting LaTeX error did not disappear after
putting the polutonikogreek part in a note as LyX did still insert both
language options in the document header.

Günter



Re: Footnote without numbering (new)

2008-06-24 Thread Bob Lounsbury
On Wed, May 28, 2008 at 6:23 AM, Adrian Peter [EMAIL PROTECTED] wrote:




 Hi,

 Is there a way to enter footnote without the automatic numbering?  I think I 
 saw something in the archives but it was for Lyx version 1.1.6 and the 
 explanation was a little confusing.  Thank you.

 Adrian

 _
 Change the world with e-mail. Join the i'm Initiative from Microsoft.
 http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld

Just wanted to add that I found another way to eliminate the footnote
numbering. Taken from:

ftp://tug.ctan.org/pub/tex-archive/info/latex4wp/latex4wp.pdf

It does eliminate all footnote numbering so if you need some footnotes
numbered and some not it may take a fair amount of tweaking.

Just put (in the Preamble):

\renewcommand{\thefootnote}{}

Cheers,
/Bob


Re: keyboard question

2008-06-24 Thread Daniel CLEMENT
On Tuesday 24 June 2008 15:13 +0200, G. Milde wrote:

 On 24.06.08, Daniel CLEMENT wrote:
  I use a US int'l keyboard I have the dead keys setup, getting
  accented characters by typing the accent, then the character.
 
  However, the cedilla-c: ç is obtained by acute accent + c. This is the
  case in almost every program. But LyX gives me an accented c!
 
 I suppose that it is converted to character 'ć' (263, 0x107)
 0107  LATIN SMALL LETTER C WITH ACUTE
 by the OS and inserted as-is by LyX.


Sure, but why doesn't the OS convert to ç like in most other programs?
LyX must have something to do with it.

  How could I teach LyX to type the cedilla-c instead? I tried to tweak a
  kmap file (details below) but I did not succeed so far.
 
 I suppose you can do without a kmap file and use a bind file to 
 bind ć to ç but I do not know about the required syntax.
 
 Günter

Well, since the ć does not appear in any bind file that I know, I
thought a kmap file was a more appropriate. Anyhow, I tried

\bind 'c ç

and

\bind ç ç

... neither worked (still getting ć). I miss the correct syntax!

-- 

Daniel Clément



Re: keyboard question

2008-06-24 Thread Abdelrazak Younes

Daniel CLEMENT wrote:


... neither worked (still getting ć). I miss the correct syntax!


Maybe try this:

\bind 'c  unicode-insert 0x00e7

Abdel.



Re: marking something as ERT

2008-06-24 Thread Enrico Forestieri
G. Milde writes:

 
 On 20.06.08, Philip A. Viton wrote:
 
  I've written a utility which takes results (in the J programing  
  language) and converts them to latex tables, specifically formal tables, 
  using booktabs.sty. One problem with importing them into lyx is that 
  setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
  \cmidrule, followed by text for the rest, another ERT for the next 
  \cmidrule etc.
 
  Question: since I have complete control over how the file gets written, 
  is there some way I could indicate to the lyx importer that the whole 
  sequence of \cmidrule's is to be treated as one big ERT? 
 
 Nothing I know of.
 
  Something on the order of \ERT{\cmidrule(r){1-2}  } ?
 
 This is 
 a) invalid LaTeX
 b) has the same problems.

Not quite. The problem with \cmidrule is its non-standard syntax.
If the command had used only brackets [] and braces {}, the solution
would be simple. In order to obtain what the OP wants, a hack must be used.
First of all, put in the preamble of the .tex file the following line:

\def\ERT#1{#1}

then, surround each \cmidrule command that you want to import as a
single ERT, with \ERT{your command here}, just as in your example above.
Now, use a text editor and create a file named as you like, for example
syntax.extra, and put in there the following line:

\ERT{}

Having done that, run LyX, go to Tools-Preferences-Converters and
select the LaTeX (plain) - LyX converter. Change the line that reads
tex2lyx -f $$i $$o into tex2lyx -s path/syntax.extra -f $$i $$o
(where path is the full path to the syntax.extra file), hit the Modify
button and then Apply (or Save, for a permanent change).
Now use the menu File-Import-LaTeX (plain) and select the .tex file
you want to import. All your \ERT{whatever} commands will be imported
as a single ERT. Note that you don't have to take away the surrounding
\ERT{} in LyX, as it will work as expected.

-- 
Enrico



Re: URL handling in 1.6

2008-06-24 Thread Uwe Stöhr

 There are 2 insets for URLs in the Insert menu:

Both are explained in the UserGuide. Both differ a lot.

 * I can dissolve an URL by the usual backspace at the first position
   but not via right-click (Dissolve Inset is greyed out for some
   reason).

Could you please report this at bugzilla?

 * I can not dissolve a Hyperlink inset, only copy and paste its content
   into another place.

Yes, because it is not an inset. ItÄs the same as a label. Therefore find and 
replace cannot find it.

 Why is a 1.6 URL inset not converted to a 1.5 URL inset?

This is a bug, could you please report it at bugzilla?

 Should 1.5 URLs be rather converted to 1.6 Hyperlinks?

No, we won't change the output of the documents we convert.

thanks for testing and regards
Uwe


Re: Problem inner and outer margins

2008-06-24 Thread Nigel Pegram
Ask your publisher for the required margins and then uncheck the
default margin setting and enter the values directly.

Nigel

On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 I am writing a double-sided book manuscript to publish, by employing
 document class book.
 When I showed the printed manuscript to the publisher, they just simply
 said, it looks fine except the outer and inner margin. The outer must be
 smaller than the inner because it will be used for binding purpose.

 How can I switch the the inner and outer margins. I use (document - settings
 - page margins- default margin).

 Thank you if anyone could give me any suggestions.

 Regards
 Adi



   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


Re: Problem inner and outer margins

2008-06-24 Thread Waluyo Adi Siswanto
Thank you .. Nigel
Is that possible to know all the margin default values of the book class. If 
I know the values of the default inner and outer margins, I can just swap the 
values without disturbing the width of the text, and the manuscript does not 
change, only its side margins.
( I am sorry, probably it is a simple question.. I am a beginner in LyX/LaTeX)

Adi

--- On Wed, 25/6/08, Nigel Pegram [EMAIL PROTECTED] wrote:
From: Nigel Pegram [EMAIL PROTECTED]
Subject: Re: Problem inner and outer margins
To: [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Received: Wednesday, 25 June, 2008, 6:23 AM

Ask your publisher for the required margins and then uncheck the
default margin setting and enter the values directly.

Nigel

On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 I am writing a double-sided book manuscript to publish, by employing
 document class book.
 When I showed the printed manuscript to the publisher, they just simply
 said, it looks fine except the outer and inner margin. The outer must be
 smaller than the inner because it will be used for binding purpose.

 How can I switch the the inner and outer margins. I use (document -
settings
 - page margins- default margin).

 Thank you if anyone could give me any suggestions.

 Regards
 Adi



   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: Problem inner and outer margins

2008-06-24 Thread Nigel Pegram
Hi Adi,

Offhand, no, I don't know the default settings. It'll be around
somewhere, but that doesn't help you grin.

The reason I suggested speaking with the publisher is that they should
be able to inform you concerning good margin sizes. The correct answer
depends on a number of factors, including text (point) size, paper
size, number of pages (creep) and the style of binding (perfect,
burst, ring, etc). If they can't/won't help you, you could aways print
a sample page from lyx and take the measurements from that.

HTH
Nigel

On 25/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 Thank you .. Nigel
 Is that possible to know all the margin default values of the book class.
 If I know the values of the default inner and outer margins, I can just swap
 the values without disturbing the width of the text, and the manuscript does
 not change, only its side margins.
 ( I am sorry, probably it is a simple question.. I am a beginner in
 LyX/LaTeX)

 Adi

 --- On Wed, 25/6/08, Nigel Pegram [EMAIL PROTECTED] wrote:
 From: Nigel Pegram [EMAIL PROTECTED]
 Subject: Re: Problem inner and outer margins
 To: [EMAIL PROTECTED]
 Cc: lyx-users@lists.lyx.org
 Received: Wednesday, 25 June, 2008, 6:23 AM

 Ask your publisher for the required margins and then uncheck the
 default margin setting and enter the values directly.

 Nigel

 On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
 I am writing a double-sided book manuscript to publish, by employing
 document class book.
 When I showed the printed manuscript to the publisher, they just simply
 said, it looks fine except the outer and inner margin. The outer must be
 smaller than the inner because it will be used for binding purpose.

 How can I switch the the inner and outer margins. I use (document -
 settings
 - page margins- default margin).

 Thank you if anyone could give me any suggestions.

 Regards
 Adi



   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


   Get the name you always wanted with the new y7mail email address.
 www.yahoo7.com.au/mail


Re: Problem inner and outer margins

2008-06-24 Thread John
On Wednesday 25 June 2008 12:39:13 pm Nigel Pegram wrote:
 Hi Adi,

 Offhand, no, I don't know the default settings. It'll be around
 somewhere, but that doesn't help you grin.

 The reason I suggested speaking with the publisher is that they should
 be able to inform you concerning good margin sizes. The correct answer
 depends on a number of factors, including text (point) size, paper
 size, number of pages (creep) and the style of binding (perfect,
 burst, ring, etc). If they can't/won't help you, you could aways print
 a sample page from lyx and take the measurements from that.
In general the outer margins should re roughly twice the width of the inner 
margins.
This is so that when the book is opened out, the whitespace outside columns of 
text appears equal. If you look at published books you will see that this is 
so.
Of course the type of binding can affect how well that book can open out and 
this may mean that the inner margins need to compensate  for this by being 
increased a little. But the visible width of the two inner margins should 
still look equal to one outer margin

John O'Gorman

 HTH
 Nigel

 On 25/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
  Thank you .. Nigel
  Is that possible to know all the margin default values of the book
  class. If I know the values of the default inner and outer margins, I can
  just swap the values without disturbing the width of the text, and the
  manuscript does not change, only its side margins.
  ( I am sorry, probably it is a simple question.. I am a beginner in
  LyX/LaTeX)
 
  Adi
 
  --- On Wed, 25/6/08, Nigel Pegram [EMAIL PROTECTED] wrote:
  From: Nigel Pegram [EMAIL PROTECTED]
  Subject: Re: Problem inner and outer margins
  To: [EMAIL PROTECTED]
  Cc: lyx-users@lists.lyx.org
  Received: Wednesday, 25 June, 2008, 6:23 AM
 
  Ask your publisher for the required margins and then uncheck the
  default margin setting and enter the values directly.
 
  Nigel
 
  On 24/06/2008, Waluyo Adi Siswanto [EMAIL PROTECTED] wrote:
  I am writing a double-sided book manuscript to publish, by employing
  document class book.
  When I showed the printed manuscript to the publisher, they just simply
  said, it looks fine except the outer and inner margin. The outer must be
  smaller than the inner because it will be used for binding purpose.
 
  How can I switch the the inner and outer margins. I use (document -
 
  settings
 
  - page margins- default margin).
 
  Thank you if anyone could give me any suggestions.
 
  Regards
  Adi
 
 
 
Get the name you always wanted with the new y7mail email address.
  www.yahoo7.com.au/mail
 
Get the name you always wanted with the new y7mail email address.
  www.yahoo7.com.au/mail




Using Sweave for R code in LyX on Windows

2008-06-24 Thread G. Jay Kerns
Dear David,

David Hewitt wrote:
Now that Gregor's article about using Sweave with LyX is published in RNews:

http://www.r-project.org/doc/Rnews/Rnews_2008-1-2.pdf

I wondered whether anyone has tried it on Windows?

I'm ready to try it and was hoping someone could assist. Perhaps we can add
to the LyX wiki page about Sweave to bring in the Windows side of things.

-
David Hewitt
Research Fishery Biologist
USGS Klamath Falls Field Station (USA)



Check out the following recent post by Gregor on using LyX with Sweave
on MS-Windows:

http://ggorjan.blogspot.com/2008/06/using-sweave-with-lyx-on-ms-windows.html

I just updated to LyX 1.5.5 on my Windows XP laptop.  I followed
Gregor's installation instructions from the Rnews article to the
letter.

The only thing extra for me was making sure that R was in the PATH.
To do that, go Start - Control Panel - System - Advanced -
Environment Variables, and then scroll in the list for the Path
variable to edit.  In my case, it sufficed to append
C:\PROGRA~1\R\R-2.7.0\bin to the list, but (of course) the location
where R is stored depends on the user.

With that small change everything worked fine.

Please note that - coincidentally - I had already installed Cygwin on
my system for other reasons; that may have helped with the relative
ease that I had with the configuration.

I have copied Gregor to this email. Perhaps we can combine our
experiences with the above mentioned post and add some material to the
LyX wiki for other users.

Best,
Jay


***
G. Jay Kerns, Ph.D.
Assistant Professor / Statistics Coordinator
Department of Mathematics  Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
E-mail: [EMAIL PROTECTED]
http://www.cc.ysu.edu/~gjkerns/


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread G. Milde
On 23.06.08, Bruce Pourciau wrote:

> I rewrote the first spot where there was an error, and now everything is 
> fine! Weird.

This could be e.g. a math-only character outside math (or vice versa) that
triggers a math-toggle ("inserted $") in TeX's error handling.
As "toggle" implies, after that math is seen as text and text as math which
leads to a mass of follow-up errors.

There are several such scenarios where a single "wrong" character can
disturb the TeX engine and lead to scores of errors. And this character
might have been input unadvertedly (e.g. while thinking that the focus is in
another window).

BTW: instead of cutting text in most cases it helps to just put
 it in a note (mark it and Insert>Note>Note).

Günter


Re: Lyx crashes in Hardy Heron

2008-06-24 Thread Sven Hoexter
On Tue, Jun 24, 2008 at 12:16:18PM +0800, John McCabe-Dansted wrote:
> On Tue, Jun 24, 2008 at 3:04 AM, elswood <[EMAIL PROTECTED]> wrote:
> > I have installed lyX 1.53 from the Ubuntu 8.4 repositories.  But it
> > frequently crashes when accessing lyx document files on my computer.  Is
> > this a bug that is fixed with lyX 1.55?  And how do I install it?  (It
> > isn't in the repositories.)  If someone could let me know how to proceed
> > I would be grateful.
> >
> > Thanks!
> 
> Upgrading to lyx 1.5.5 fixed the problem for me.

https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/228067

This bug suggests that all of you with this problem on Ububuntu/hardy
upgrade to everything that can be found in the hardy-backports repo.
(Maybe not a wise idea or is it even default mode?)

The easy solution for those users would be to push someone to include
LyX 1.5.5 along with the Qt 4.4 packages in the hardy-backports repo.

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Find & Replace with ERT insets

2008-06-24 Thread Nicolás

Hi!

LyX (v1.5.5) is able to find a certain text string inside an ERT inset. However, the automatic replacement feature does not seem to 
work. Is this a bug or the intended behavior? If the second case applies, what is the reason for such behavior? Thanks!


Nicolás


Re: marking something as ERT

2008-06-24 Thread G. Milde
On 20.06.08, Philip A. Viton wrote:

> I've written a utility which takes results (in the J programing  
> language) and converts them to latex tables, specifically formal tables, 
> using booktabs.sty. One problem with importing them into lyx is that 
> setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
> \cmidrule, followed by text for the rest, another ERT for the next 
> \cmidrule etc.

> Question: since I have complete control over how the file gets written, 
> is there some way I could indicate to the lyx importer that the whole 
> sequence of \cmidrule's is to be treated as one big ERT? 

Nothing I know of.

> Something on the order of \ERT{\cmidrule(r){1-2}  } ?

This is 
a) invalid LaTeX
b) has the same problems.

However, as you have "complete control", you could consider exporting
CSV tables and using the CSV importer to convert them to lyx or
generate LyX code right away.

Günter



keyboard question

2008-06-24 Thread Daniel CLEMENT
Hello,

I use a US int'l keyboard --though I am French-- for more convenient
access to brackets, parentheses... in scientific software.

I have the "dead keys" setup, getting accented characters by typing the
accent, then the character.

However, the cedilla-c: ç is obtained by "acute accent + c". This is the
case in almost every program. But LyX gives me an accented c!

How could I teach LyX to type the cedilla-c instead? I tried to tweak a
kmap file (details below) but I did not succeed so far.

BTW, OS is Linux Ubuntu.

Thanks,
-- 

Daniel Clément

PS Here is what I tried: in american.kmap I put

\kmod ' acute aeiouAEIOU

# \kmod "," cedilla native

\kxmod ' c ç

No luck. What am I doing wrong?




Re: keyboard question

2008-06-24 Thread G. Milde
On 24.06.08, Daniel CLEMENT wrote:
> I use a US int'l keyboard I have the "dead keys" setup, getting
> accented characters by typing the accent, then the character.

> However, the cedilla-c: ç is obtained by "acute accent + c". This is the
> case in almost every program. But LyX gives me an accented c!

I suppose that it is converted to character 'ć' (263, 0x107)
0107LATIN SMALL LETTER C WITH ACUTE
by the OS and inserted as-is by LyX.

> How could I teach LyX to type the cedilla-c instead? I tried to tweak a
> kmap file (details below) but I did not succeed so far.

I suppose you can do without a kmap file and use a bind file to 
bind ć to ç but I do not know about the required syntax.

Günter


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread Bruce Pourciau


On Jun 24, 2008, at 2:06 AM, G. Milde wrote:


On 23.06.08, Bruce Pourciau wrote:

I rewrote the first spot where there was an error, and now  
everything is

fine! Weird.


This could be e.g. a math-only character outside math (or vice  
versa) that

triggers a math-toggle ("inserted $") in TeX's error handling.
As "toggle" implies, after that math is seen as text and text as  
math which

leads to a mass of follow-up errors.


This was exactly the problem: a \propto symbol seen as text.



There are several such scenarios where a single "wrong" character can
disturb the TeX engine and lead to scores of errors. And this  
character
might have been input unadvertedly (e.g. while thinking that the  
focus is in

another window).


Yes, it led to a bunch of follow up errors.



BTW: instead of cutting text in most cases it helps to just put
 it in a note (mark it and Insert>Note>Note).


Please explain?



Günter




URL handling in 1.6

2008-06-24 Thread G. Milde

I finally managed to install a testversion of 1.6 (thanks to Sven's debian
package).

First experiments revealed a strange behaviour regarding URLs.

Two for one
---

There are 2 insets for URLs in the Insert menu:

  URL, resulting in \url{http://example.org/} 
and
  Link, resulting in \href{http://example.org}{http://example.org}

in the LaTeX source. Both look and behave identical in the PDF output
(with default settings).

Are two separate URL insets needed or could URL be made a special case of
a hyperlink?


Display
---

The URL inset is either non-informative (just showing a blue [URL]) or overly
verbose (showing [URL][http://example.org]). I'd prefer it to have it
displaying the start of the content (similar to the LaTeX (ERT) inset) if
closed and no URL label if open. The status line tells me it is an URL if
in daubt.

The Hyperlink inset is always closed (Ctrl-I pops up a dialogue) and has
a very very long [Hyperlink] label in front of the URI.

Is there a way to configure the display properties of URL insets?

Edit


* I can dissolve an URL by the usual "backspace at the first position"
  but not via right-click ("Dissolve Inset" is greyed out for some
  reason).

* I can not dissolve a Hyperlink inset, only copy and paste its content
  into another place.
 
* Search/Replace finds "example" in the URL inset but not in the
  Hyperlink inset. 


Conversion
--

URLs from a document created with LyX 1.5.5 are transformed to URL insets in
1.6.3.

However re-export as LyX 1.5 file transforms 

 Hyperlinks to URLs (Fine)
 
and
 
 URLs to unmarked boxes (transformed to plain text http://example.org/ in
 the LaTeX source) (Bad)
 
Why is a 1.6 URL inset not converted to a 1.5 URL inset?

Should 1.5 URLs be rather converted to 1.6 Hyperlinks?


Günter


Re: New Error Messages After Upgrade to LyX/Mac 1.5.4

2008-06-24 Thread G. Milde
On 24.06.08, Bruce Pourciau wrote:
> On Jun 24, 2008, at 2:06 AM, G. Milde wrote:
>> On 23.06.08, Bruce Pourciau wrote:

>> BTW: instead of cutting text in most cases it helps to just put
>>  it in a note (mark it and Insert>Note>Note).

> Please explain?

If you want to find out where in your document the problematic part is, you
can make a copy and cut/delete parts of it until it compiles.

Alternatively, you can mark a part of the text and put it in a LyX note.
LyX notes are not exported, so the effect is almost the same but it is
easier to restore the content (press [Backspace] when the cursor is at the
first positon inside the note).

There is a slight chance of failure when LyX inserts some code into the
document (preamble, say) depending on the document content.  
   I had this problem with a document containg text parts in the languages
greek and polutonikogreek. The resulting LaTeX error did not disappear after
putting the polutonikogreek part in a note as LyX did still insert both
language options in the document header.

Günter



Re: Footnote without numbering (new)

2008-06-24 Thread Bob Lounsbury
On Wed, May 28, 2008 at 6:23 AM, Adrian Peter <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> Is there a way to enter footnote without the automatic numbering?  I think I 
> saw something in the archives but it was for Lyx version 1.1.6 and the 
> explanation was a little confusing.  Thank you.
>
> Adrian
>
> _
> Change the world with e-mail. Join the i'm Initiative from Microsoft.
> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld

Just wanted to add that I found another way to eliminate the footnote
numbering. Taken from:

ftp://tug.ctan.org/pub/tex-archive/info/latex4wp/latex4wp.pdf

It does eliminate all footnote numbering so if you need some footnotes
numbered and some not it may take a fair amount of tweaking.

Just put (in the Preamble):

\renewcommand{\thefootnote}{}

Cheers,
/Bob


Re: keyboard question

2008-06-24 Thread Daniel CLEMENT
On Tuesday 24 June 2008 15:13 +0200, G. Milde wrote:

> On 24.06.08, Daniel CLEMENT wrote:
> > I use a US int'l keyboard I have the "dead keys" setup, getting
> > accented characters by typing the accent, then the character.
> 
> > However, the cedilla-c: ç is obtained by "acute accent + c". This is the
> > case in almost every program. But LyX gives me an accented c!
> 
> I suppose that it is converted to character 'ć' (263, 0x107)
> 0107  LATIN SMALL LETTER C WITH ACUTE
> by the OS and inserted as-is by LyX.


Sure, but why doesn't the OS convert to ç like in most other programs?
LyX must have something to do with it.

> > How could I teach LyX to type the cedilla-c instead? I tried to tweak a
> > kmap file (details below) but I did not succeed so far.
> 
> I suppose you can do without a kmap file and use a bind file to 
> bind ć to ç but I do not know about the required syntax.
> 
> Günter

Well, since the ć does not appear in any bind file that I know, I
thought a kmap file was a more appropriate. Anyhow, I tried

\bind "'c" "ç"

and

\bind "ç" "ç"

... neither worked (still getting ć). I miss the correct syntax!

-- 

Daniel Clément



Re: keyboard question

2008-06-24 Thread Abdelrazak Younes

Daniel CLEMENT wrote:


... neither worked (still getting ć). I miss the correct syntax!


Maybe try this:

\bind "'c"  "unicode-insert 0x00e7"

Abdel.



Re: marking something as ERT

2008-06-24 Thread Enrico Forestieri
G. Milde writes:

> 
> On 20.06.08, Philip A. Viton wrote:
> 
> > I've written a utility which takes results (in the J programing  
> > language) and converts them to latex tables, specifically formal tables, 
> > using booktabs.sty. One problem with importing them into lyx is that 
> > setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
> > \cmidrule, followed by text for the rest, another ERT for the next 
> > \cmidrule etc.
> 
> > Question: since I have complete control over how the file gets written, 
> > is there some way I could indicate to the lyx importer that the whole 
> > sequence of \cmidrule's is to be treated as one big ERT? 
> 
> Nothing I know of.
> 
> > Something on the order of \ERT{\cmidrule(r){1-2}  } ?
> 
> This is 
> a) invalid LaTeX
> b) has the same problems.

Not quite. The problem with \cmidrule is its non-standard syntax.
If the command had used only brackets [] and braces {}, the solution
would be simple. In order to obtain what the OP wants, a hack must be used.
First of all, put in the preamble of the .tex file the following line:

\def\ERT#1{#1}

then, surround each \cmidrule command that you want to import as a
single ERT, with \ERT{}, just as in your example above.
Now, use a text editor and create a file named as you like, for example
"syntax.extra", and put in there the following line:

\ERT{}

Having done that, run LyX, go to Tools->Preferences->Converters and
select the "LaTeX (plain) -> LyX" converter. Change the line that reads
"tex2lyx -f $$i $$o" into "tex2lyx -s /syntax.extra -f $$i $$o"
(where  is the full path to the syntax.extra file), hit the Modify
button and then Apply (or Save, for a permanent change).
Now use the menu "File->Import->LaTeX (plain)" and select the .tex file
you want to import. All your \ERT{} commands will be imported
as a single ERT. Note that you don't have to take away the surrounding
\ERT{} in LyX, as it will work as expected.

-- 
Enrico



Re: URL handling in 1.6

2008-06-24 Thread Uwe Stöhr

> There are 2 insets for URLs in the Insert menu:

Both are explained in the UserGuide. Both differ a lot.

> * I can dissolve an URL by the usual "backspace at the first position"
>   but not via right-click ("Dissolve Inset" is greyed out for some
>   reason).

Could you please report this at bugzilla?

> * I can not dissolve a Hyperlink inset, only copy and paste its content
>   into another place.

Yes, because it is not an inset. ItÄs the same as a label. Therefore find and 
replace cannot find it.

> Why is a 1.6 URL inset not converted to a 1.5 URL inset?

This is a bug, could you please report it at bugzilla?

> Should 1.5 URLs be rather converted to 1.6 Hyperlinks?

No, we won't change the output of the documents we convert.

thanks for testing and regards
Uwe


Re: Problem inner and outer margins

2008-06-24 Thread Nigel Pegram
Ask your publisher for the required margins and then uncheck the
default margin setting and enter the values directly.

Nigel

On 24/06/2008, Waluyo Adi Siswanto <[EMAIL PROTECTED]> wrote:
> I am writing a double-sided book manuscript to publish, by employing
> document class "book".
> When I showed the printed manuscript to the publisher, they just simply
> said, it looks fine except the outer and inner margin. The outer must be
> smaller than the inner because it will be used for binding purpose.
>
> How can I switch the the inner and outer margins. I use (document - settings
> - page margins- default margin).
>
> Thank you if anyone could give me any suggestions.
>
> Regards
> Adi
>
>
>
>   Get the name you always wanted with the new y7mail email address.
> www.yahoo7.com.au/mail


Re: Problem inner and outer margins

2008-06-24 Thread Waluyo Adi Siswanto
Thank you .. Nigel
Is that possible to know all the margin default values of the "book" class. If 
I know the values of the default inner and outer margins, I can just swap the 
values without disturbing the width of the text, and the manuscript does not 
change, only its side margins.
( I am sorry, probably it is a simple question.. I am a beginner in LyX/LaTeX)

Adi

--- On Wed, 25/6/08, Nigel Pegram <[EMAIL PROTECTED]> wrote:
From: Nigel Pegram <[EMAIL PROTECTED]>
Subject: Re: Problem inner and outer margins
To: [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Received: Wednesday, 25 June, 2008, 6:23 AM

Ask your publisher for the required margins and then uncheck the
default margin setting and enter the values directly.

Nigel

On 24/06/2008, Waluyo Adi Siswanto <[EMAIL PROTECTED]> wrote:
> I am writing a double-sided book manuscript to publish, by employing
> document class "book".
> When I showed the printed manuscript to the publisher, they just simply
> said, it looks fine except the outer and inner margin. The outer must be
> smaller than the inner because it will be used for binding purpose.
>
> How can I switch the the inner and outer margins. I use (document -
settings
> - page margins- default margin).
>
> Thank you if anyone could give me any suggestions.
>
> Regards
> Adi
>
>
>
>   Get the name you always wanted with the new y7mail email address.
> www.yahoo7.com.au/mail


  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: Problem inner and outer margins

2008-06-24 Thread Nigel Pegram
Hi Adi,

Offhand, no, I don't know the default settings. It'll be around
somewhere, but that doesn't help you .

The reason I suggested speaking with the publisher is that they should
be able to inform you concerning good margin sizes. The correct answer
depends on a number of factors, including text (point) size, paper
size, number of pages (creep) and the style of binding (perfect,
burst, ring, etc). If they can't/won't help you, you could aways print
a sample page from lyx and take the measurements from that.

HTH
Nigel

On 25/06/2008, Waluyo Adi Siswanto <[EMAIL PROTECTED]> wrote:
> Thank you .. Nigel
> Is that possible to know all the margin default values of the "book" class.
> If I know the values of the default inner and outer margins, I can just swap
> the values without disturbing the width of the text, and the manuscript does
> not change, only its side margins.
> ( I am sorry, probably it is a simple question.. I am a beginner in
> LyX/LaTeX)
>
> Adi
>
> --- On Wed, 25/6/08, Nigel Pegram <[EMAIL PROTECTED]> wrote:
> From: Nigel Pegram <[EMAIL PROTECTED]>
> Subject: Re: Problem inner and outer margins
> To: [EMAIL PROTECTED]
> Cc: lyx-users@lists.lyx.org
> Received: Wednesday, 25 June, 2008, 6:23 AM
>
> Ask your publisher for the required margins and then uncheck the
> default margin setting and enter the values directly.
>
> Nigel
>
> On 24/06/2008, Waluyo Adi Siswanto <[EMAIL PROTECTED]> wrote:
>> I am writing a double-sided book manuscript to publish, by employing
>> document class "book".
>> When I showed the printed manuscript to the publisher, they just simply
>> said, it looks fine except the outer and inner margin. The outer must be
>> smaller than the inner because it will be used for binding purpose.
>>
>> How can I switch the the inner and outer margins. I use (document -
> settings
>> - page margins- default margin).
>>
>> Thank you if anyone could give me any suggestions.
>>
>> Regards
>> Adi
>>
>>
>>
>>   Get the name you always wanted with the new y7mail email address.
>> www.yahoo7.com.au/mail
>
>
>   Get the name you always wanted with the new y7mail email address.
> www.yahoo7.com.au/mail


Re: Problem inner and outer margins

2008-06-24 Thread John
On Wednesday 25 June 2008 12:39:13 pm Nigel Pegram wrote:
> Hi Adi,
>
> Offhand, no, I don't know the default settings. It'll be around
> somewhere, but that doesn't help you .
>
> The reason I suggested speaking with the publisher is that they should
> be able to inform you concerning good margin sizes. The correct answer
> depends on a number of factors, including text (point) size, paper
> size, number of pages (creep) and the style of binding (perfect,
> burst, ring, etc). If they can't/won't help you, you could aways print
> a sample page from lyx and take the measurements from that.
In general the outer margins should re roughly twice the width of the inner 
margins.
This is so that when the book is opened out, the whitespace outside columns of 
text appears equal. If you look at published books you will see that this is 
so.
Of course the type of binding can affect how well that book can open out and 
this may mean that the inner margins need to compensate  for this by being 
increased a little. But the visible width of the two inner margins should 
still look equal to one outer margin

John O'Gorman
>
> HTH
> Nigel
>
> On 25/06/2008, Waluyo Adi Siswanto <[EMAIL PROTECTED]> wrote:
> > Thank you .. Nigel
> > Is that possible to know all the margin default values of the "book"
> > class. If I know the values of the default inner and outer margins, I can
> > just swap the values without disturbing the width of the text, and the
> > manuscript does not change, only its side margins.
> > ( I am sorry, probably it is a simple question.. I am a beginner in
> > LyX/LaTeX)
> >
> > Adi
> >
> > --- On Wed, 25/6/08, Nigel Pegram <[EMAIL PROTECTED]> wrote:
> > From: Nigel Pegram <[EMAIL PROTECTED]>
> > Subject: Re: Problem inner and outer margins
> > To: [EMAIL PROTECTED]
> > Cc: lyx-users@lists.lyx.org
> > Received: Wednesday, 25 June, 2008, 6:23 AM
> >
> > Ask your publisher for the required margins and then uncheck the
> > default margin setting and enter the values directly.
> >
> > Nigel
> >
> > On 24/06/2008, Waluyo Adi Siswanto <[EMAIL PROTECTED]> wrote:
> >> I am writing a double-sided book manuscript to publish, by employing
> >> document class "book".
> >> When I showed the printed manuscript to the publisher, they just simply
> >> said, it looks fine except the outer and inner margin. The outer must be
> >> smaller than the inner because it will be used for binding purpose.
> >>
> >> How can I switch the the inner and outer margins. I use (document -
> >
> > settings
> >
> >> - page margins- default margin).
> >>
> >> Thank you if anyone could give me any suggestions.
> >>
> >> Regards
> >> Adi
> >>
> >>
> >>
> >>   Get the name you always wanted with the new y7mail email address.
> >> www.yahoo7.com.au/mail
> >
> >   Get the name you always wanted with the new y7mail email address.
> > www.yahoo7.com.au/mail




Using Sweave for R code in LyX on Windows

2008-06-24 Thread G. Jay Kerns
Dear David,

>David Hewitt wrote:
>Now that Gregor's article about using Sweave with LyX is published in RNews:
>
>http://www.r-project.org/doc/Rnews/Rnews_2008-1-2.pdf
>
>I wondered whether anyone has tried it on Windows?
>
>I'm ready to try it and was hoping someone could assist. Perhaps we can add
>to the LyX wiki page about Sweave to bring in the Windows side of things.
>
>-
>David Hewitt
>Research Fishery Biologist
>USGS Klamath Falls Field Station (USA)



Check out the following recent post by Gregor on using LyX with Sweave
on MS-Windows:

http://ggorjan.blogspot.com/2008/06/using-sweave-with-lyx-on-ms-windows.html

I just updated to LyX 1.5.5 on my Windows XP laptop.  I followed
Gregor's installation instructions from the Rnews article to the
letter.

The only thing extra for me was making sure that R was in the PATH.
To do that, go Start -> Control Panel -> System -> Advanced ->
Environment Variables, and then scroll in the list for the Path
variable to edit.  In my case, it sufficed to append
C:\PROGRA~1\R\R-2.7.0\bin to the list, but (of course) the location
where R is stored depends on the user.

With that small change everything worked fine.

Please note that - coincidentally - I had already installed Cygwin on
my system for other reasons; that may have helped with the relative
ease that I had with the configuration.

I have copied Gregor to this email. Perhaps we can combine our
experiences with the above mentioned post and add some material to the
LyX wiki for other users.

Best,
Jay


***
G. Jay Kerns, Ph.D.
Assistant Professor / Statistics Coordinator
Department of Mathematics & Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
E-mail: [EMAIL PROTECTED]
http://www.cc.ysu.edu/~gjkerns/