RE: Layout and Class Files on Windows Distribution

2008-03-10 Thread William R. Buckley
OK.  So I tried the suggested mechanism, using the Windows
installer for the complete product; a total of about 109MBytes
of download.  All was properly installed.  Yet, when I try to
configure a new document, the list of document classes shows
that article(Springer LNCS) is unavailable.

Haven't had time to try some of the other suggestions given
by other respondents.  I will get to this later this day - about
ten to twelve hours.

Thanks for all the suggestions.

wrb

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, March 09, 2008 8:33 AM
 To: William R. Buckley
 Cc: lyx-users@lists.lyx.org
 Subject: Re: Layout and Class Files on Windows Distribution
 
 William R. Buckley schrieb:
 
  What is less clear is the use of texhash, as it is not part 
 of the LyX 
  distribution.
 
 You don't need to use this cind of command line commands. The 
 best and easiest way of getting a full featured LyX/LaTeX 
 system on WIndows is to reinstall your current LaTeX 
 distribution and LyX. Then reinstall LyX using the complete 
 variant of this installer while you have an open internet connection:
 http://wiki.lyx.org/Windows/LyXWinInstaller
 
 LyX will install all needed packages to MiKTeX, also LNCS.
 
 Try it out and post when it doesn't work for you.
 
 regards Uwe
 
 



Languages British vs English

2008-03-10 Thread Phillip Ferguson
Hey all,

 

Why is there an English language option and British language option? What is
the difference? Is this an American vs English English?

Could shouldn't these be label correctly as this is very confusing, as far
as I know there is no British language!

 

Thanks

 

pdf

 



RE: Latex template on 1.5.4

2008-03-10 Thread Phillip Ferguson
Paul,

Thank you very much. Your instructions were clear, to the point and exactly
what I was looking for.

Should I worry about the ert highlights in the document? There are a few
around the equations and within the bos that is in the figure? Since lyx
handles these anutomatically, can I just delete them and insert  graphics as
normal?
What are the purpose of the boxes? I don't see any effect on the end
document? Are they used to scale the figures into the correct column widths?


What I was trying to attempt was to create a document class within lyx that
duplicated spconf.sty. I suspect this will happen again with various papers
I am submitting so I had hoped that I would be able to find a systematic way
of using latex .sty and .cls files in lyx.

What I was trying to do previously was modify the article.layout file to use
the spconf.sty and so creating a spconf.layout that is selectable in the
document classes of lyx.

Thanks again
Pdf

p.s. I really think a few developers should look at a import application.
With the amount of latex templates going about I am surprised there isn't a
more streamlined option in lyx to accommodate these, but then again I
wouldn't have had the fun I've had trying to figure this out!

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul A. Rubin
Sent: 09 March 2008 20:19
To: lyx-users@lists.lyx.org
Subject: Re: Latex template on 1.5.4

Phillip Ferguson wrote:

 It has now boiled down to a layout file. At this point in time there is a
 document class unavailable to use.

 I have the orginal spconf.sty, and the layout file which is a derivative
of
 the article class.

 What I needs is the spconf package, where can I get it?


Like Bob, I got a bit lost here.  Assuming you are just going to use
this package to submit to this one conference (and not use it on a
regular basis), you really don't need a layout file at all.  Since I'm
not sure what you've done to date, I'll rewind to the beginning and show
one way to get it in production.

1.  Open the MiKTeX Settings application, click on the Roots tab, and
find the path to the directory described as UserConfig.  If you
left-click it and hover over it, you'll see the full path.  Leave this
application open, you'll need it again.

2.  Find that directory in Windows Explorer and drill down to
UserConfig\tex\latex (which should already be there).  Unzip fpl08.zip
there, which should create a subfolder named fpl08.

3.  Return to the MiKTeX Settings application, click on the General tab,
and click Refresh FNDB.  Sit back and watch your hard drive spin.  When
that's done, you can click either Ok or Cancel and exit the application.

4.  [Optional]  You might want to create a shortcut someplace to the
UserConfig\tex\latex\fpl08 folder.  Alternatively, you might want to
copy the two .bib files and .eps file to a more convenient folder (i.e.,
one buried less deeply in the rubble).

5.  Paste the attached LyX file into whatever directory has the .eps and
.bib files.  This is basically the sample proceedings document (which
contains formatting instructions) converted to LyX.  I put in the bare
minimum formatting (page size, margins, Times Roman 10 pt. as the base
font), but you may need to do more fiddling to pacify the conference
gods.  Also, I trimmed out some of the less informative comments and put
the others in bright yellow LyX Notes.  The author, affiliation and
acknowledgment stuff is in the preamble (Document - Settings... -
LaTeX Preamble), which you'll need to edit in your own documents unless
you want someone else to take the blame.  :-)

6.  Open fpl08.lyx in LyX either by double-clicking the file icon or
using File - Open.  Try View - DVI to make sure things work correctly.

7.  To create a new proceedings, just do File - Save As to create a new
copy (with a different name, obviously), and then hack out the current
contents and insert your own.  (You can open the original with File -
New from Template as an insurance policy against overwriting it.)

Hope this helps,
Paul



Subscription

2008-03-10 Thread Andréas LYBERIS
Hi,

I am a mac user of Lyx and I have differents problems with Lyx, like
bibliography style, latex exportation of document ( in french the
accents é and è are not included in the tex document) and picture
incorporation problem (only png are supported, not eps).

Thanks for helping me,

-- 
Andréas LYBERIS
154 rue de Tolbiac
75013 PARIS
FRANCE

[EMAIL PROTECTED]

tel: + 33 679603975


Export to plain text garbled

2008-03-10 Thread All is discovered--flee at once!
Hi,

I'm using LyX 1.5.3 on Ubuntu 6.06.  (I've never used LaTeX or LyX before.)  
I'm trying to export a LyX document to plain text and it's coming out 
garbled. I've also tried using all three PDF export options (dvipdfm, 
pdflatex, ps2pdf), opening the result in Acrobat Reader, and saving as text.  
They each come out garbled as well, in their own unique ways.  So far the 
best way I've found of exporting to a text file is selecting all in the LyX 
display, then copying and pasting into a text editor like gedit, adding 
manually editing any references to section numbers and stripping out any 
latex formatting.  

There must be a better way to do this, right?  Do I have to do some special 
character encoding voodoo or something?  (I've tried searching for a 
solution, but apparently I haven't come up with the magic phrase that will 
cause Google to produce results relevant to my needs.)

Is this something that will be fixed in 1.6 and I should just suck it up and 
wait?

-Mel


Re: Export to plain text garbled

2008-03-10 Thread Charles de Miramon
All is discovered--flee at once! wrote:

 Hi,
 
 I'm using LyX 1.5.3 on Ubuntu 6.06.  (I've never used LaTeX or LyX
 before.) I'm trying to export a LyX document to plain text and it's coming
 out garbled. I've also tried using all three PDF export options (dvipdfm,
 pdflatex, ps2pdf), opening the result in Acrobat Reader, and saving as
 text.
 They each come out garbled as well, in their own unique ways.  So far the
 best way I've found of exporting to a text file is selecting all in the
 LyX display, then copying and pasting into a text editor like gedit,
 adding manually editing any references to section numbers and stripping
 out any latex formatting.
 
 There must be a better way to do this, right?  Do I have to do some
 special
 character encoding voodoo or something?  (I've tried searching for a
 solution, but apparently I haven't come up with the magic phrase that will
 cause Google to produce results relevant to my needs.)
 
 Is this something that will be fixed in 1.6 and I should just suck it up
 and wait?
 
 -Mel

The plain text that LyX exports is UTF-8 encoded. You have to change in your
editor the encoding to ungarble it.

Cheers,
Charles
-- 
http://www.kde-france.org



Re: Safety from data reorganization?

2008-03-10 Thread G. Milde
On  9.03.08, Paul A. Rubin wrote:
 Steve Litt wrote:
 Hi all,

 I just lost my entire book structure due to a small modification to my 
 layout file that prevented compilation. LyX therefore reverted the 
 book's document class from my custom rjustbook to article, removing 
 all chapters and flattening out the table of contents.

I always close a document without saving if I come across such warnings.

With just one saving, the backup copy (mybook.lyx~) will still contain the
custom environments. So a `cp mybook.lyx~ mybook.lyx` saves you the tedious
hand-reverting.

 Shame on me, my last backup was 5 days old. But still, it would have 
 been nice for LyX to say hey, your layout file just became bad. Do you 
 REALLY want me to revert your document class to article, or would you 
 like to save as (the broken) whatever document class so you can fix 
 the problem without losing content?

I also vote for a more save handling of such automatic conversions
that can indeed delete lots of information from the document.

 A simple solution might be for LyX to automatically treat the document  
 as if it were a template it decides the layout is broken -- change to  
 article or whatever, but in read-only mode, so that you can only save  
 the modified document under a new name.  That would leave the original  
 (now presumably broken) version intact.

This is a nice idea, I hope it is easy to implement and look forward to
see it in the next version.

Günter







Re: Languages British vs English

2008-03-10 Thread Liviu Andronic
On 3/10/08, Phillip Ferguson [EMAIL PROTECTED] wrote:
  Why is there an English language option and British language option? What is
  the difference? Is this an American vs English English?

  Could shouldn't these be label correctly as this is very confusing, as far
  as I know there is no British language!

What always perturbed me is that LyX actually contains an entry for
the American language. Politically correct formulations (e.g.
English (the US); English (the UK)) would look much nicer.

No more than my EUR 00.02.
Liviu


Re: Lyx keyboard shortcuts on mac

2008-03-10 Thread G. Milde
On  8.03.08, Darren Hardy wrote:
 Bennett Helm [EMAIL PROTECTED] writes:

 I would very much like Mac standard shortcuts, especially for editing text. 
 I would like LyX for Mac to follow the design guidelines for Aqua as far as 
 keyboard shortcuts go

I'm afraid there is no pre-defined Mac bindings file yet.

You can generate your own keybinding file. 

See HelpCustomizing and have a look at the two pre-defined layout variants

  LYXDIR/bind/cua.bind 
and 
  LYXDIR/bind/emacs.bind

which you can copy and modify or (if the modifications are rather small)
import into your custom bindings.

You can publish the result at http://wiki.lyx.org or mail it to the list.

GM


Re: Languages British vs English

2008-03-10 Thread Charles de Miramon
Liviu Andronic wrote:

 On 3/10/08, Phillip Ferguson
 [EMAIL PROTECTED] wrote:
  Why is there an English language option and British language option?
  What is the difference? Is this an American vs English English?

Hyphenation rules are different in British English and in American English
and the formatting of the date (used in the macro \today) is not the same.


  Could shouldn't these be label correctly as this is very confusing, as
  far as I know there is no British language!

I guess British think that American English is just English with mistakes...

 
 What always perturbed me is that LyX actually contains an entry for
 the American language. Politically correct formulations (e.g.
 English (the US); English (the UK)) would look much nicer.

For LaTeX, Austrian is also a dialect of German and Flemish a dialect of
Dutch. Time to start a revolution ;-) 

Charles
-- 
http://www.kde-france.org



Re: Languages British vs English

2008-03-10 Thread G. Milde
On 10.03.08, Liviu Andronic wrote:
 On 3/10/08, Phillip Ferguson [EMAIL PROTECTED] wrote:
   Why is there an English language option and British language option?
   What is the difference? Is this an American vs English English?
 
   Could shouldn't these be label correctly as this is very confusing,
   as far as I know there is no British language!

 What always perturbed me is that LyX actually contains an entry for
 the American language. Politically correct formulations (e.g.
 English (the US); English (the UK)) would look much nicer.

Well, for me the names of the English variants were always 
British English and American English.

My suggestion for the DocumentSettingsLanguaes list would be

  English (American)   # or English (US)
  English (British)

in a similar way to e.g.
  
  Chinese (new spelling)
  Chinese (traditional)

This way, the English variants are close to another in the
alphabetical listing which facilitates the choice by offering
alternatives in one place.

It would also make sufficiently clear that American English is 

- not *the* English dialect
- not *the* language of the american continent


Günter





Re: Safety from data reorganization?

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 12:30, G. Milde wrote:
 On  9.03.08, Paul A. Rubin wrote:
  A simple solution might be for LyX to automatically treat the document  
  as if it were a template it decides the layout is broken -- change to  
  article or whatever, but in read-only mode, so that you can only save  
  the modified document under a new name.  That would leave the original  
  (now presumably broken) version intact.
 
 This is a nice idea, I hope it is easy to implement and look forward to
 see it in the next version.

Doesn't version control already let you revert to an earlier version?  (If it's 
turned on.)

-Mel


Re: Export to plain text garbled

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 12:24, Charles de Miramon wrote:
 The plain text that LyX exports is UTF-8 encoded. You have to change in your
 editor the encoding to ungarble it.

Thanks, that was what I needed.

Mel



short title

2008-03-10 Thread jean beney

Hello,

Is it possible in LyX to define a short book title?
When I am on the book title, the short title button  is disabled.

The class I work with has been built from book and it puts the book 
title in the top margin of even pages instead of the chapter name.


Jean


Re: Languages British vs English

2008-03-10 Thread David Romano
I would concur and weigh in in favor English (US) since British English 
is more likely the official language of the English-speaking Caribbean.


David Romano

On Mon, 10 Mar 2008, G. Milde wrote:


On 10.03.08, Liviu Andronic wrote:

On 3/10/08, Phillip Ferguson [EMAIL PROTECTED] wrote:

 Why is there an English language option and British language option?
 What is the difference? Is this an American vs English English?

 Could shouldn't these be label correctly as this is very confusing,
 as far as I know there is no British language!



What always perturbed me is that LyX actually contains an entry for
the American language. Politically correct formulations (e.g.
English (the US); English (the UK)) would look much nicer.


Well, for me the names of the English variants were always
British English and American English.

My suggestion for the DocumentSettingsLanguaes list would be

 English (American)   # or English (US)
 English (British)

in a similar way to e.g.

 Chinese (new spelling)
 Chinese (traditional)

This way, the English variants are close to another in the
alphabetical listing which facilitates the choice by offering
alternatives in one place.

It would also make sufficiently clear that American English is

- not *the* English dialect
- not *the* language of the american continent


Günter




Re: Lyx keyboard shortcuts on mac

2008-03-10 Thread Bennett Helm

On Mar 10, 2008, at 7:20 AM, G. Milde wrote:


On  8.03.08, Darren Hardy wrote:

Bennett Helm [EMAIL PROTECTED] writes:


I would very much like Mac standard shortcuts, especially for  
editing text.
I would like LyX for Mac to follow the design guidelines for Aqua  
as far as

keyboard shortcuts go


I'm afraid there is no pre-defined Mac bindings file yet.


Yes there is -- mac.bind.

Bennett


Re: short title

2008-03-10 Thread Abdelrazak Younes

jean beney wrote:

Hello,

Is it possible in LyX to define a short book title?
When I am on the book title, the short title button  is disabled.

The class I work with has been built from book and it puts the book 
title in the top margin of even pages instead of the chapter name.


Another option would be to make your title shorter and make use of subtitle.

Abdel.



Re: Languages British vs English

2008-03-10 Thread John Kane
I'd agree with English (US) since it is not the normal
spelling that is used in Canada. Of course we don't
use the UK spelling either. :)
--- David Romano [EMAIL PROTECTED] wrote:

 I would concur and weigh in in favor English (US)
 since British English 
 is more likely the official language of the
 English-speaking Caribbean.
 
 David Romano
 
 On Mon, 10 Mar 2008, G. Milde wrote:
 
  On 10.03.08, Liviu Andronic wrote:
  On 3/10/08, Phillip Ferguson
 [EMAIL PROTECTED] wrote:
   Why is there an English language option and
 British language option?
   What is the difference? Is this an American vs
 English English?
 
   Could shouldn't these be label correctly as
 this is very confusing,
   as far as I know there is no British language!
 
  What always perturbed me is that LyX actually
 contains an entry for
  the American language. Politically correct
 formulations (e.g.
  English (the US); English (the UK)) would look
 much nicer.
 
  Well, for me the names of the English variants
 were always
  British English and American English.
 
  My suggestion for the DocumentSettingsLanguaes
 list would be
 
   English (American)   # or English (US)
   English (British)
 
  in a similar way to e.g.
 
   Chinese (new spelling)
   Chinese (traditional)
 
  This way, the English variants are close to
 another in the
  alphabetical listing which facilitates the choice
 by offering
  alternatives in one place.
 
  It would also make sufficiently clear that
 American English is
 
  - not *the* English dialect
  - not *the* language of the american continent
 
 
  Günter
 
 
 



  Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



Box around program listings?

2008-03-10 Thread James Sutherland
Does anyone know a way to get a box around a program listing?  Putting it
inside a box (minipage) environment doesn¹t seem to work...

James


Re: Safety from data reorganization?

2008-03-10 Thread Steve Litt
On Monday 10 March 2008 07:30, G. Milde wrote:
 On  9.03.08, Paul A. Rubin wrote:
  Steve Litt wrote:
  Hi all,
 
  I just lost my entire book structure due to a small modification to my
  layout file that prevented compilation. LyX therefore reverted the
  book's document class from my custom rjustbook to article, removing
  all chapters and flattening out the table of contents.

 I always close a document without saving if I come across such warnings.

 With just one saving, the backup copy (mybook.lyx~) will still contain the
 custom environments. So a `cp mybook.lyx~ mybook.lyx` saves you the tedious
 hand-reverting.

By the time I knew of the problem, I'd made and saved several changes. If I'm 
already given warning messages, perhaps they could be made much more 
forceful, like this.


DANGER ACHTUNG PELEGRO!!!

Your document class has changed, and environments not supported by the new 
document class will revert to body text. Save this version UNDER A NEW 
FILENAME, and then resolve the problems.




  Shame on me, my last backup was 5 days old. But still, it would have
  been nice for LyX to say hey, your layout file just became bad. Do you
  REALLY want me to revert your document class to article, or would you
  like to save as (the broken) whatever document class so you can fix
  the problem without losing content?

 I also vote for a more save handling of such automatic conversions
 that can indeed delete lots of information from the document.

Yeah, I got lucky this time, next time (if I'm silly enough to wait 5 days to 
back up) could be much worse.

SteveT
 
Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: Safety from data reorganization?

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 15:23, you wrote:
 On Monday 10 March 2008 08:25, All is discovered--flee at once! wrote:
  On Monday 10 March 2008 12:30, G. Milde wrote:
   On  9.03.08, Paul A. Rubin wrote:
A simple solution might be for LyX to automatically treat the document
as if it were a template it decides the layout is broken -- change to
article or whatever, but in read-only mode, so that you can only save
the modified document under a new name.  That would leave the original
(now presumably broken) version intact.
  
   This is a nice idea, I hope it is easy to implement and look forward to
   see it in the next version.
 
  Doesn't version control already let you revert to an earlier version?  (If
  it's turned on.)
 
  -Mel
 
 I never knew LyX had version control. How do I turn it on?
 
 SteveT
 
 Steve Litt
 Books written in LyX:
   Troubleshooting Techniques of the Successful Technologist
   Twenty Eight Tales of Troubleshooting
   Troubleshooting: Just the Facts
 

Hey Steve.

I was at your website this morning!  I think it was when I was reading about 
classes.  (Didn't find what I was looking for, but I bookmarked it anyway. 
Lots of stuff there.)

I just had to install GNU RCS to make version control work. It's accessible 
from my File menu.  I made an RCS folder and symlinked it from my assorted 
working directories (Articles, Reviews, etc.) to keep all the version control 
information in one place. (I'm using LyX 1.5.3 (with the default.ui) on 
Ubuntu 6.06.)

There's a section on version control in the Extended Features manual.

Basically I did:
~$sudo apt-get install rcs
~$mkdir writing/RCS

and then some symlinks like:
~$ ln -s /home/fs/writing/RCS /home/fs/RCS
~$ ln -s /home/fs/writing/RCS /home/fs/writing/articles/RCS

Without the symlink to your designated RCS directory, the version control 
information file will be placed in the same working directory as the .lyx 
file you have entered in version control.  It works without the symlinks, but 
I'm one of those people that gets compulsive about organization and backups.  
I haven't found a way to specify a default path for RCS.  I read some 
assorted documents on setting it up and they all seem to do the symlink 
thing.  

Hope that helps.

-Mel


Re: Box around program listings?

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
[EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting it
  inside a box (minipage) environment doesn¹t seem to work...

You want a frame, right? Use the frame option of the listings package
should work.

Bo


Re: Latex template on 1.5.4

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 3:52 AM, Phillip Ferguson 
[EMAIL PROTECTED] wrote:

 What I was trying to do previously was modify the article.layout file to
 use
 the spconf.sty and so creating a spconf.layout that is selectable in the
 document classes of lyx.



Ok, why didn't you say so? :-}

Copy the article.layout from:

C:\Program Files\LyX15\Resources\layouts

to:

C:\Documents and Settings\username\Application Data\lyx15\layouts

then you can rename the file to spconf.layout and then open it in a text
editor and edit the declare latex line to:

\DeclareLaTeXClass[article,spconf.sty]{article (spconf)}

You can change article (spconf) to any name you like. Then reconfigure LyX
and in the document settings 'article (spconf)' should show up.

Even though you prefer Paul's approach to placing your spconf.sty file
within the MiKTeX default locations, I still recommend setting up your own
personal latex hierarchy to store these custom .sty or .bst files. So that,
in the future if you had to reinstall Windoze (for some strange reason, God
forbid :-}). You know exactly where your custom files are and you don't have
to go searching through the bowels of MiKTeX to find them.

Just my 0.02.

Cheers,
/Bob


Re: Box around program listings?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
  Does anyone know a way to get a box around a program listing?  Putting
 it
   inside a box (minipage) environment doesn¹t seem to work...

 You want a frame, right? Use the frame option of the listings package
 should work.

 Bo



If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
Settings' dialog box. Under 'Decoration' you can change it to:

Rectangular box
Oval box, thin
Oval box, thick
Shadow box
Double box

Is this not what your looking for?

Cheers,
/Bob


How do you do an appendix the right way?

2008-03-10 Thread Steve Litt
Hi all,

How does one do an appendix the right way. I want it to show up, at the same 
level as chapters, in the table of contents. But I want it to say Appendix 
A: SSH Example rather than Chapter 13: Appendix A: SSH Example.

What environment to I use for the Appendix title? Do I need to use some ERT 
commands?

Thanks

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: How do you do an appendix the right way?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 10:26 AM, Steve Litt [EMAIL PROTECTED] wrote:

 Hi all,

 How does one do an appendix the right way. I want it to show up, at the same
 level as chapters, in the table of contents. But I want it to say Appendix
 A: SSH Example rather than Chapter 13: Appendix A: SSH Example.

 What environment to I use for the Appendix title? Do I need to use some ERT
 commands?

 Thanks

 SteveT

 Steve Litt
 Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


It took me quite a while to figure out this package when I was writing
my thesis. I used the 'appendix' package and I've attached a simple
example, but you can refer to the documentation for further
instructions (as I don't have a copy of my thesis at present to refer
to).

Cheers,
/Bob


appendix.lyx
Description: application/lyx


Re: Box around program listings?

2008-03-10 Thread James Sutherland

On 3/10/08 8:09 AM, Bob Lounsbury [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:
 
 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting
 it
  inside a box (minipage) environment doesn¹t seem to work...
 
 You want a frame, right? Use the frame option of the listings package
 should work.
 
 Bo
 
 
 
 If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
 Settings' dialog box. Under 'Decoration' you can change it to:
 
 Rectangular box
 Oval box, thin
 Oval box, thick
 Shadow box
 Double box
 
 Is this not what your looking for?
 
 Cheers,
 /Bob

Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
not work if a Listing is inside of it.  Supplying the frame=... option to
the listing did the trick.

Thanks!

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
  Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
  not work if a Listing is inside of it.  Supplying the frame=... option to
  the listing did the trick.

There are options to customize the frame, and if you want to use frame
for all your listings, you can set global listings parameter in
document-settings.

Cheers,
Bo


Re: How do you do an appendix the right way?

2008-03-10 Thread Abdelrazak Younes

Steve Litt wrote:

Hi all,

How does one do an appendix the right way. I want it to show up, at the same 
level as chapters, in the table of contents. But I want it to say Appendix 
A: SSH Example rather than Chapter 13: Appendix A: SSH Example.


What environment to I use for the Appendix title? Do I need to use some ERT 
commands?


Try menu Document-Start Appendix Here just before Chapter 13, it 
will convert automatically to Appendix A. This is explained in section 
6.4 Appendices.


Abdel.



Bibliography

2008-03-10 Thread AndrŽas LYBERIS

Hi,

I have a problem with the bibliography of my report.
I have Lyx on mac os X.
To type it, I have been using Bibdesk, it has been ordered in alphabetic 
order and I don't like to begin a document with a 5 as the first reference.

I can't either put the name and the year of the citation.

Has anyone been confronted to the problem before?

Thanks,
--

Andréas LYBERIS


154 rue de Tolbiac

75013 Paris

France


mail: [EMAIL PROTECTED]

tel: +33 679603975



line characters and reverse video characters ?

2008-03-10 Thread Jeremy C. Reed
Can anyone share examples for both printing line characters and reverse 
video characters? Or point to some docs about this?

Here is an example of line characters. But my xterm doesn't show it 
(probably wrong font), but maybe your console will.

  ???
  ? Which would you like to do? ?
  ? ?
  ? a: Edit the MBR partition table ?
  ?b: Use the entire disk  ?
  ???

Note that is special characters for vertical and horizontal lines and four 
different corners.

I'd like to do that in LaTeX or LyX instead of using screenshot.

I guess I could use some parbox, makebox or framebox instead but haven't 
tried that. (I realized that because I also want to use a box around 
entire area which would measure about 80 characters by 24 characters.)


As for reverse video, here is an example using ANSI codes:

printf \e[7m this is reverse \e[0m\n

How to do that with LyX? (white on black)?

I have several text console screenshots where I also captured the text. I 
think my book would look better if I let TeX format the text versus using 
PNG images.

  Jeremy C. Reed


Re: Bibliography

2008-03-10 Thread Bennett Helm

On Mar 10, 2008, at 4:22 PM, AndrŽas LYBERIS wrote:

Hi,

I have a problem with the bibliography of my report.
I have Lyx on mac os X.
To type it, I have been using Bibdesk, it has been ordered in  
alphabetic order and I don't like to begin a document with a 5 as  
the first reference.

I can't either put the name and the year of the citation.

Has anyone been confronted to the problem before?


I'm not sure I understand what the problem is. It sounds like you are  
getting numerical style references when you want author-date.


Are you using the default (numerical) citation style (in Document   
Settings  Bibliography)? To get author-date, you should probably use  
Natbib, and then select Author-year as the natbib style. You will  
then need to select a bibliography style from the BibTeX Bibliography  
you've inserted for use with natbib, but which one depends on how you  
want the bibliography to be sorted.


For details, see §6.5 of the User's Guide.

Bennett

Re: How do you do an appendix the right way?

2008-03-10 Thread Filippo Zangheri
Steve Litt ha scritto:
 Hi all,

Hi, Steve,


 How does one do an appendix the right way. I want it to show up, at the same 
 level as chapters, in the table of contents. But I want it to say Appendix 
 A: SSH Example rather than Chapter 13: Appendix A: SSH Example.

In LyX-1.5.4 you simply click on Document | Appendices start here,
or something - I'm using the Italian version of LyX.

It works great if your last chapters are appendices. In TOC it is
inserted an item like A  SSH Example.

If you want to insert some extra non-appendix chapters after the
appendices, or you want TOC entries like Appendix A  SSH Example,
then you'll need appendix.sty and:

ERT [\begin{appendices}]

...

ERT [\end{appendices}]

Additional Chapters (though I doubt you'll want to :-))


Best regards.


-- 
Filippo Zangheri

GPG key ID: 0xE1D879FA
Key fingerprint: 816B CE57 D43C 0A47 EF35 3378 EA5F A72A E1D8 79FA
Key server: pgp.mit.edu

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GE d- s+:- a-- C++ UL+++ P+ L+++ E-- W+ N* o-- K- w--- O-- M--
V- PS++ PE+ Y+ PGP++ t 5-- X++ R* tv b+ DI-- D G-- e++ h--
r++ z*
--END GEEK CODE BLOCK--



Re: Bibliography

2008-03-10 Thread cmiramon
Bennett Helm wrote:

 On Mar 10, 2008, at 4:22 PM, AndrŽas LYBERIS wrote:
 Hi,

 I have a problem with the bibliography of my report.
 I have Lyx on mac os X.
 To type it, I have been using Bibdesk, it has been ordered in
 alphabetic order and I don't like to begin a document with a 5 as
 the first reference.
 I can't either put the name and the year of the citation.

 Has anyone been confronted to the problem before?
 
 I'm not sure I understand what the problem is. It sounds like you are
 getting numerical style references when you want author-date.

Maybe explain your problem in French on the French speaking mailing list :

http://wiki.lyx.org/LyX/InternetResources

Charles



Use pdf figures without converting.

2008-03-10 Thread Klaus Unger
Hi,

I am using PDF figures. Lyx does convert them to png before and chops them 
incorrectly. I would like to use the pdf figures directly, is it possible? 
How?

I have not been able to figure this out with the documentation, sorry if it 
has been posted before.

- Klaus


Re: Use pdf figures without converting.

2008-03-10 Thread Rich Shepard

On Tue, 11 Mar 2008, Klaus Unger wrote:


I am using PDF figures. Lyx does convert them to png before and chops them
incorrectly. I would like to use the pdf figures directly, is it possible?
How?


Klaus,

  I regularly include .pdf files. Just insert them as you would any
graphical format. But, use pdflatex to view the results and produce a final
file. You cannot use plain latex because the image will not display in xdvi.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: How do you do an appendix the right way?

2008-03-10 Thread Steve Litt
On Monday 10 March 2008 17:41, Filippo Zangheri wrote:
 Steve Litt ha scritto:
  Hi all,

 Hi, Steve,

  How does one do an appendix the right way. I want it to show up, at the
  same level as chapters, in the table of contents. But I want it to say
  Appendix A: SSH Example rather than Chapter 13: Appendix A: SSH
  Example.

 In LyX-1.5.4 you simply click on Document | Appendices start here,
 or something - I'm using the Italian version of LyX.

 It works great if your last chapters are appendices. In TOC it is
 inserted an item like A  SSH Example.

 If you want to insert some extra non-appendix chapters after the
 appendices, or you want TOC entries like Appendix A  SSH Example,
 then you'll need appendix.sty and:

 ERT [\begin{appendices}]

   ...

 ERT [\end{appendices}]

 Additional Chapters (though I doubt you'll want to :-))


 Best regards.

Thanks Filippo,

This time I want no more chapters after the appendix, but it's very good to 
know how to do it -- sometimes my books require wierd stuff.

Thanks

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


RE: Layout and Class Files on Windows Distribution

2008-03-10 Thread William R. Buckley
OK.  So I tried the suggested mechanism, using the Windows
installer for the complete product; a total of about 109MBytes
of download.  All was properly installed.  Yet, when I try to
configure a new document, the list of document classes shows
that article(Springer LNCS) is unavailable.

Haven't had time to try some of the other suggestions given
by other respondents.  I will get to this later this day - about
ten to twelve hours.

Thanks for all the suggestions.

wrb

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, March 09, 2008 8:33 AM
 To: William R. Buckley
 Cc: lyx-users@lists.lyx.org
 Subject: Re: Layout and Class Files on Windows Distribution
 
 William R. Buckley schrieb:
 
  What is less clear is the use of texhash, as it is not part 
 of the LyX 
  distribution.
 
 You don't need to use this cind of command line commands. The 
 best and easiest way of getting a full featured LyX/LaTeX 
 system on WIndows is to reinstall your current LaTeX 
 distribution and LyX. Then reinstall LyX using the complete 
 variant of this installer while you have an open internet connection:
 http://wiki.lyx.org/Windows/LyXWinInstaller
 
 LyX will install all needed packages to MiKTeX, also LNCS.
 
 Try it out and post when it doesn't work for you.
 
 regards Uwe
 
 



Languages British vs English

2008-03-10 Thread Phillip Ferguson
Hey all,

 

Why is there an English language option and British language option? What is
the difference? Is this an American vs English English?

Could shouldn't these be label correctly as this is very confusing, as far
as I know there is no British language!

 

Thanks

 

pdf

 



RE: Latex template on 1.5.4

2008-03-10 Thread Phillip Ferguson
Paul,

Thank you very much. Your instructions were clear, to the point and exactly
what I was looking for.

Should I worry about the ert highlights in the document? There are a few
around the equations and within the bos that is in the figure? Since lyx
handles these anutomatically, can I just delete them and insert  graphics as
normal?
What are the purpose of the boxes? I don't see any effect on the end
document? Are they used to scale the figures into the correct column widths?


What I was trying to attempt was to create a document class within lyx that
duplicated spconf.sty. I suspect this will happen again with various papers
I am submitting so I had hoped that I would be able to find a systematic way
of using latex .sty and .cls files in lyx.

What I was trying to do previously was modify the article.layout file to use
the spconf.sty and so creating a spconf.layout that is selectable in the
document classes of lyx.

Thanks again
Pdf

p.s. I really think a few developers should look at a import application.
With the amount of latex templates going about I am surprised there isn't a
more streamlined option in lyx to accommodate these, but then again I
wouldn't have had the fun I've had trying to figure this out!

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul A. Rubin
Sent: 09 March 2008 20:19
To: lyx-users@lists.lyx.org
Subject: Re: Latex template on 1.5.4

Phillip Ferguson wrote:

 It has now boiled down to a layout file. At this point in time there is a
 document class unavailable to use.

 I have the orginal spconf.sty, and the layout file which is a derivative
of
 the article class.

 What I needs is the spconf package, where can I get it?


Like Bob, I got a bit lost here.  Assuming you are just going to use
this package to submit to this one conference (and not use it on a
regular basis), you really don't need a layout file at all.  Since I'm
not sure what you've done to date, I'll rewind to the beginning and show
one way to get it in production.

1.  Open the MiKTeX Settings application, click on the Roots tab, and
find the path to the directory described as UserConfig.  If you
left-click it and hover over it, you'll see the full path.  Leave this
application open, you'll need it again.

2.  Find that directory in Windows Explorer and drill down to
UserConfig\tex\latex (which should already be there).  Unzip fpl08.zip
there, which should create a subfolder named fpl08.

3.  Return to the MiKTeX Settings application, click on the General tab,
and click Refresh FNDB.  Sit back and watch your hard drive spin.  When
that's done, you can click either Ok or Cancel and exit the application.

4.  [Optional]  You might want to create a shortcut someplace to the
UserConfig\tex\latex\fpl08 folder.  Alternatively, you might want to
copy the two .bib files and .eps file to a more convenient folder (i.e.,
one buried less deeply in the rubble).

5.  Paste the attached LyX file into whatever directory has the .eps and
.bib files.  This is basically the sample proceedings document (which
contains formatting instructions) converted to LyX.  I put in the bare
minimum formatting (page size, margins, Times Roman 10 pt. as the base
font), but you may need to do more fiddling to pacify the conference
gods.  Also, I trimmed out some of the less informative comments and put
the others in bright yellow LyX Notes.  The author, affiliation and
acknowledgment stuff is in the preamble (Document - Settings... -
LaTeX Preamble), which you'll need to edit in your own documents unless
you want someone else to take the blame.  :-)

6.  Open fpl08.lyx in LyX either by double-clicking the file icon or
using File - Open.  Try View - DVI to make sure things work correctly.

7.  To create a new proceedings, just do File - Save As to create a new
copy (with a different name, obviously), and then hack out the current
contents and insert your own.  (You can open the original with File -
New from Template as an insurance policy against overwriting it.)

Hope this helps,
Paul



Subscription

2008-03-10 Thread Andréas LYBERIS
Hi,

I am a mac user of Lyx and I have differents problems with Lyx, like
bibliography style, latex exportation of document ( in french the
accents é and è are not included in the tex document) and picture
incorporation problem (only png are supported, not eps).

Thanks for helping me,

-- 
Andréas LYBERIS
154 rue de Tolbiac
75013 PARIS
FRANCE

[EMAIL PROTECTED]

tel: + 33 679603975


Export to plain text garbled

2008-03-10 Thread All is discovered--flee at once!
Hi,

I'm using LyX 1.5.3 on Ubuntu 6.06.  (I've never used LaTeX or LyX before.)  
I'm trying to export a LyX document to plain text and it's coming out 
garbled. I've also tried using all three PDF export options (dvipdfm, 
pdflatex, ps2pdf), opening the result in Acrobat Reader, and saving as text.  
They each come out garbled as well, in their own unique ways.  So far the 
best way I've found of exporting to a text file is selecting all in the LyX 
display, then copying and pasting into a text editor like gedit, adding 
manually editing any references to section numbers and stripping out any 
latex formatting.  

There must be a better way to do this, right?  Do I have to do some special 
character encoding voodoo or something?  (I've tried searching for a 
solution, but apparently I haven't come up with the magic phrase that will 
cause Google to produce results relevant to my needs.)

Is this something that will be fixed in 1.6 and I should just suck it up and 
wait?

-Mel


Re: Export to plain text garbled

2008-03-10 Thread Charles de Miramon
All is discovered--flee at once! wrote:

 Hi,
 
 I'm using LyX 1.5.3 on Ubuntu 6.06.  (I've never used LaTeX or LyX
 before.) I'm trying to export a LyX document to plain text and it's coming
 out garbled. I've also tried using all three PDF export options (dvipdfm,
 pdflatex, ps2pdf), opening the result in Acrobat Reader, and saving as
 text.
 They each come out garbled as well, in their own unique ways.  So far the
 best way I've found of exporting to a text file is selecting all in the
 LyX display, then copying and pasting into a text editor like gedit,
 adding manually editing any references to section numbers and stripping
 out any latex formatting.
 
 There must be a better way to do this, right?  Do I have to do some
 special
 character encoding voodoo or something?  (I've tried searching for a
 solution, but apparently I haven't come up with the magic phrase that will
 cause Google to produce results relevant to my needs.)
 
 Is this something that will be fixed in 1.6 and I should just suck it up
 and wait?
 
 -Mel

The plain text that LyX exports is UTF-8 encoded. You have to change in your
editor the encoding to ungarble it.

Cheers,
Charles
-- 
http://www.kde-france.org



Re: Safety from data reorganization?

2008-03-10 Thread G. Milde
On  9.03.08, Paul A. Rubin wrote:
 Steve Litt wrote:
 Hi all,

 I just lost my entire book structure due to a small modification to my 
 layout file that prevented compilation. LyX therefore reverted the 
 book's document class from my custom rjustbook to article, removing 
 all chapters and flattening out the table of contents.

I always close a document without saving if I come across such warnings.

With just one saving, the backup copy (mybook.lyx~) will still contain the
custom environments. So a `cp mybook.lyx~ mybook.lyx` saves you the tedious
hand-reverting.

 Shame on me, my last backup was 5 days old. But still, it would have 
 been nice for LyX to say hey, your layout file just became bad. Do you 
 REALLY want me to revert your document class to article, or would you 
 like to save as (the broken) whatever document class so you can fix 
 the problem without losing content?

I also vote for a more save handling of such automatic conversions
that can indeed delete lots of information from the document.

 A simple solution might be for LyX to automatically treat the document  
 as if it were a template it decides the layout is broken -- change to  
 article or whatever, but in read-only mode, so that you can only save  
 the modified document under a new name.  That would leave the original  
 (now presumably broken) version intact.

This is a nice idea, I hope it is easy to implement and look forward to
see it in the next version.

Günter







Re: Languages British vs English

2008-03-10 Thread Liviu Andronic
On 3/10/08, Phillip Ferguson [EMAIL PROTECTED] wrote:
  Why is there an English language option and British language option? What is
  the difference? Is this an American vs English English?

  Could shouldn't these be label correctly as this is very confusing, as far
  as I know there is no British language!

What always perturbed me is that LyX actually contains an entry for
the American language. Politically correct formulations (e.g.
English (the US); English (the UK)) would look much nicer.

No more than my EUR 00.02.
Liviu


Re: Lyx keyboard shortcuts on mac

2008-03-10 Thread G. Milde
On  8.03.08, Darren Hardy wrote:
 Bennett Helm [EMAIL PROTECTED] writes:

 I would very much like Mac standard shortcuts, especially for editing text. 
 I would like LyX for Mac to follow the design guidelines for Aqua as far as 
 keyboard shortcuts go

I'm afraid there is no pre-defined Mac bindings file yet.

You can generate your own keybinding file. 

See HelpCustomizing and have a look at the two pre-defined layout variants

  LYXDIR/bind/cua.bind 
and 
  LYXDIR/bind/emacs.bind

which you can copy and modify or (if the modifications are rather small)
import into your custom bindings.

You can publish the result at http://wiki.lyx.org or mail it to the list.

GM


Re: Languages British vs English

2008-03-10 Thread Charles de Miramon
Liviu Andronic wrote:

 On 3/10/08, Phillip Ferguson
 [EMAIL PROTECTED] wrote:
  Why is there an English language option and British language option?
  What is the difference? Is this an American vs English English?

Hyphenation rules are different in British English and in American English
and the formatting of the date (used in the macro \today) is not the same.


  Could shouldn't these be label correctly as this is very confusing, as
  far as I know there is no British language!

I guess British think that American English is just English with mistakes...

 
 What always perturbed me is that LyX actually contains an entry for
 the American language. Politically correct formulations (e.g.
 English (the US); English (the UK)) would look much nicer.

For LaTeX, Austrian is also a dialect of German and Flemish a dialect of
Dutch. Time to start a revolution ;-) 

Charles
-- 
http://www.kde-france.org



Re: Languages British vs English

2008-03-10 Thread G. Milde
On 10.03.08, Liviu Andronic wrote:
 On 3/10/08, Phillip Ferguson [EMAIL PROTECTED] wrote:
   Why is there an English language option and British language option?
   What is the difference? Is this an American vs English English?
 
   Could shouldn't these be label correctly as this is very confusing,
   as far as I know there is no British language!

 What always perturbed me is that LyX actually contains an entry for
 the American language. Politically correct formulations (e.g.
 English (the US); English (the UK)) would look much nicer.

Well, for me the names of the English variants were always 
British English and American English.

My suggestion for the DocumentSettingsLanguaes list would be

  English (American)   # or English (US)
  English (British)

in a similar way to e.g.
  
  Chinese (new spelling)
  Chinese (traditional)

This way, the English variants are close to another in the
alphabetical listing which facilitates the choice by offering
alternatives in one place.

It would also make sufficiently clear that American English is 

- not *the* English dialect
- not *the* language of the american continent


Günter





Re: Safety from data reorganization?

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 12:30, G. Milde wrote:
 On  9.03.08, Paul A. Rubin wrote:
  A simple solution might be for LyX to automatically treat the document  
  as if it were a template it decides the layout is broken -- change to  
  article or whatever, but in read-only mode, so that you can only save  
  the modified document under a new name.  That would leave the original  
  (now presumably broken) version intact.
 
 This is a nice idea, I hope it is easy to implement and look forward to
 see it in the next version.

Doesn't version control already let you revert to an earlier version?  (If it's 
turned on.)

-Mel


Re: Export to plain text garbled

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 12:24, Charles de Miramon wrote:
 The plain text that LyX exports is UTF-8 encoded. You have to change in your
 editor the encoding to ungarble it.

Thanks, that was what I needed.

Mel



short title

2008-03-10 Thread jean beney

Hello,

Is it possible in LyX to define a short book title?
When I am on the book title, the short title button  is disabled.

The class I work with has been built from book and it puts the book 
title in the top margin of even pages instead of the chapter name.


Jean


Re: Languages British vs English

2008-03-10 Thread David Romano
I would concur and weigh in in favor English (US) since British English 
is more likely the official language of the English-speaking Caribbean.


David Romano

On Mon, 10 Mar 2008, G. Milde wrote:


On 10.03.08, Liviu Andronic wrote:

On 3/10/08, Phillip Ferguson [EMAIL PROTECTED] wrote:

 Why is there an English language option and British language option?
 What is the difference? Is this an American vs English English?

 Could shouldn't these be label correctly as this is very confusing,
 as far as I know there is no British language!



What always perturbed me is that LyX actually contains an entry for
the American language. Politically correct formulations (e.g.
English (the US); English (the UK)) would look much nicer.


Well, for me the names of the English variants were always
British English and American English.

My suggestion for the DocumentSettingsLanguaes list would be

 English (American)   # or English (US)
 English (British)

in a similar way to e.g.

 Chinese (new spelling)
 Chinese (traditional)

This way, the English variants are close to another in the
alphabetical listing which facilitates the choice by offering
alternatives in one place.

It would also make sufficiently clear that American English is

- not *the* English dialect
- not *the* language of the american continent


Günter




Re: Lyx keyboard shortcuts on mac

2008-03-10 Thread Bennett Helm

On Mar 10, 2008, at 7:20 AM, G. Milde wrote:


On  8.03.08, Darren Hardy wrote:

Bennett Helm [EMAIL PROTECTED] writes:


I would very much like Mac standard shortcuts, especially for  
editing text.
I would like LyX for Mac to follow the design guidelines for Aqua  
as far as

keyboard shortcuts go


I'm afraid there is no pre-defined Mac bindings file yet.


Yes there is -- mac.bind.

Bennett


Re: short title

2008-03-10 Thread Abdelrazak Younes

jean beney wrote:

Hello,

Is it possible in LyX to define a short book title?
When I am on the book title, the short title button  is disabled.

The class I work with has been built from book and it puts the book 
title in the top margin of even pages instead of the chapter name.


Another option would be to make your title shorter and make use of subtitle.

Abdel.



Re: Languages British vs English

2008-03-10 Thread John Kane
I'd agree with English (US) since it is not the normal
spelling that is used in Canada. Of course we don't
use the UK spelling either. :)
--- David Romano [EMAIL PROTECTED] wrote:

 I would concur and weigh in in favor English (US)
 since British English 
 is more likely the official language of the
 English-speaking Caribbean.
 
 David Romano
 
 On Mon, 10 Mar 2008, G. Milde wrote:
 
  On 10.03.08, Liviu Andronic wrote:
  On 3/10/08, Phillip Ferguson
 [EMAIL PROTECTED] wrote:
   Why is there an English language option and
 British language option?
   What is the difference? Is this an American vs
 English English?
 
   Could shouldn't these be label correctly as
 this is very confusing,
   as far as I know there is no British language!
 
  What always perturbed me is that LyX actually
 contains an entry for
  the American language. Politically correct
 formulations (e.g.
  English (the US); English (the UK)) would look
 much nicer.
 
  Well, for me the names of the English variants
 were always
  British English and American English.
 
  My suggestion for the DocumentSettingsLanguaes
 list would be
 
   English (American)   # or English (US)
   English (British)
 
  in a similar way to e.g.
 
   Chinese (new spelling)
   Chinese (traditional)
 
  This way, the English variants are close to
 another in the
  alphabetical listing which facilitates the choice
 by offering
  alternatives in one place.
 
  It would also make sufficiently clear that
 American English is
 
  - not *the* English dialect
  - not *the* language of the american continent
 
 
  Günter
 
 
 



  Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



Box around program listings?

2008-03-10 Thread James Sutherland
Does anyone know a way to get a box around a program listing?  Putting it
inside a box (minipage) environment doesn¹t seem to work...

James


Re: Safety from data reorganization?

2008-03-10 Thread Steve Litt
On Monday 10 March 2008 07:30, G. Milde wrote:
 On  9.03.08, Paul A. Rubin wrote:
  Steve Litt wrote:
  Hi all,
 
  I just lost my entire book structure due to a small modification to my
  layout file that prevented compilation. LyX therefore reverted the
  book's document class from my custom rjustbook to article, removing
  all chapters and flattening out the table of contents.

 I always close a document without saving if I come across such warnings.

 With just one saving, the backup copy (mybook.lyx~) will still contain the
 custom environments. So a `cp mybook.lyx~ mybook.lyx` saves you the tedious
 hand-reverting.

By the time I knew of the problem, I'd made and saved several changes. If I'm 
already given warning messages, perhaps they could be made much more 
forceful, like this.


DANGER ACHTUNG PELEGRO!!!

Your document class has changed, and environments not supported by the new 
document class will revert to body text. Save this version UNDER A NEW 
FILENAME, and then resolve the problems.




  Shame on me, my last backup was 5 days old. But still, it would have
  been nice for LyX to say hey, your layout file just became bad. Do you
  REALLY want me to revert your document class to article, or would you
  like to save as (the broken) whatever document class so you can fix
  the problem without losing content?

 I also vote for a more save handling of such automatic conversions
 that can indeed delete lots of information from the document.

Yeah, I got lucky this time, next time (if I'm silly enough to wait 5 days to 
back up) could be much worse.

SteveT
 
Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: Safety from data reorganization?

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 15:23, you wrote:
 On Monday 10 March 2008 08:25, All is discovered--flee at once! wrote:
  On Monday 10 March 2008 12:30, G. Milde wrote:
   On  9.03.08, Paul A. Rubin wrote:
A simple solution might be for LyX to automatically treat the document
as if it were a template it decides the layout is broken -- change to
article or whatever, but in read-only mode, so that you can only save
the modified document under a new name.  That would leave the original
(now presumably broken) version intact.
  
   This is a nice idea, I hope it is easy to implement and look forward to
   see it in the next version.
 
  Doesn't version control already let you revert to an earlier version?  (If
  it's turned on.)
 
  -Mel
 
 I never knew LyX had version control. How do I turn it on?
 
 SteveT
 
 Steve Litt
 Books written in LyX:
   Troubleshooting Techniques of the Successful Technologist
   Twenty Eight Tales of Troubleshooting
   Troubleshooting: Just the Facts
 

Hey Steve.

I was at your website this morning!  I think it was when I was reading about 
classes.  (Didn't find what I was looking for, but I bookmarked it anyway. 
Lots of stuff there.)

I just had to install GNU RCS to make version control work. It's accessible 
from my File menu.  I made an RCS folder and symlinked it from my assorted 
working directories (Articles, Reviews, etc.) to keep all the version control 
information in one place. (I'm using LyX 1.5.3 (with the default.ui) on 
Ubuntu 6.06.)

There's a section on version control in the Extended Features manual.

Basically I did:
~$sudo apt-get install rcs
~$mkdir writing/RCS

and then some symlinks like:
~$ ln -s /home/fs/writing/RCS /home/fs/RCS
~$ ln -s /home/fs/writing/RCS /home/fs/writing/articles/RCS

Without the symlink to your designated RCS directory, the version control 
information file will be placed in the same working directory as the .lyx 
file you have entered in version control.  It works without the symlinks, but 
I'm one of those people that gets compulsive about organization and backups.  
I haven't found a way to specify a default path for RCS.  I read some 
assorted documents on setting it up and they all seem to do the symlink 
thing.  

Hope that helps.

-Mel


Re: Box around program listings?

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
[EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting it
  inside a box (minipage) environment doesn¹t seem to work...

You want a frame, right? Use the frame option of the listings package
should work.

Bo


Re: Latex template on 1.5.4

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 3:52 AM, Phillip Ferguson 
[EMAIL PROTECTED] wrote:

 What I was trying to do previously was modify the article.layout file to
 use
 the spconf.sty and so creating a spconf.layout that is selectable in the
 document classes of lyx.



Ok, why didn't you say so? :-}

Copy the article.layout from:

C:\Program Files\LyX15\Resources\layouts

to:

C:\Documents and Settings\username\Application Data\lyx15\layouts

then you can rename the file to spconf.layout and then open it in a text
editor and edit the declare latex line to:

\DeclareLaTeXClass[article,spconf.sty]{article (spconf)}

You can change article (spconf) to any name you like. Then reconfigure LyX
and in the document settings 'article (spconf)' should show up.

Even though you prefer Paul's approach to placing your spconf.sty file
within the MiKTeX default locations, I still recommend setting up your own
personal latex hierarchy to store these custom .sty or .bst files. So that,
in the future if you had to reinstall Windoze (for some strange reason, God
forbid :-}). You know exactly where your custom files are and you don't have
to go searching through the bowels of MiKTeX to find them.

Just my 0.02.

Cheers,
/Bob


Re: Box around program listings?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
  Does anyone know a way to get a box around a program listing?  Putting
 it
   inside a box (minipage) environment doesn¹t seem to work...

 You want a frame, right? Use the frame option of the listings package
 should work.

 Bo



If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
Settings' dialog box. Under 'Decoration' you can change it to:

Rectangular box
Oval box, thin
Oval box, thick
Shadow box
Double box

Is this not what your looking for?

Cheers,
/Bob


How do you do an appendix the right way?

2008-03-10 Thread Steve Litt
Hi all,

How does one do an appendix the right way. I want it to show up, at the same 
level as chapters, in the table of contents. But I want it to say Appendix 
A: SSH Example rather than Chapter 13: Appendix A: SSH Example.

What environment to I use for the Appendix title? Do I need to use some ERT 
commands?

Thanks

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: How do you do an appendix the right way?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 10:26 AM, Steve Litt [EMAIL PROTECTED] wrote:

 Hi all,

 How does one do an appendix the right way. I want it to show up, at the same
 level as chapters, in the table of contents. But I want it to say Appendix
 A: SSH Example rather than Chapter 13: Appendix A: SSH Example.

 What environment to I use for the Appendix title? Do I need to use some ERT
 commands?

 Thanks

 SteveT

 Steve Litt
 Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


It took me quite a while to figure out this package when I was writing
my thesis. I used the 'appendix' package and I've attached a simple
example, but you can refer to the documentation for further
instructions (as I don't have a copy of my thesis at present to refer
to).

Cheers,
/Bob


appendix.lyx
Description: application/lyx


Re: Box around program listings?

2008-03-10 Thread James Sutherland

On 3/10/08 8:09 AM, Bob Lounsbury [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:
 
 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting
 it
  inside a box (minipage) environment doesn¹t seem to work...
 
 You want a frame, right? Use the frame option of the listings package
 should work.
 
 Bo
 
 
 
 If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
 Settings' dialog box. Under 'Decoration' you can change it to:
 
 Rectangular box
 Oval box, thin
 Oval box, thick
 Shadow box
 Double box
 
 Is this not what your looking for?
 
 Cheers,
 /Bob

Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
not work if a Listing is inside of it.  Supplying the frame=... option to
the listing did the trick.

Thanks!

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
  Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
  not work if a Listing is inside of it.  Supplying the frame=... option to
  the listing did the trick.

There are options to customize the frame, and if you want to use frame
for all your listings, you can set global listings parameter in
document-settings.

Cheers,
Bo


Re: How do you do an appendix the right way?

2008-03-10 Thread Abdelrazak Younes

Steve Litt wrote:

Hi all,

How does one do an appendix the right way. I want it to show up, at the same 
level as chapters, in the table of contents. But I want it to say Appendix 
A: SSH Example rather than Chapter 13: Appendix A: SSH Example.


What environment to I use for the Appendix title? Do I need to use some ERT 
commands?


Try menu Document-Start Appendix Here just before Chapter 13, it 
will convert automatically to Appendix A. This is explained in section 
6.4 Appendices.


Abdel.



Bibliography

2008-03-10 Thread AndrŽas LYBERIS

Hi,

I have a problem with the bibliography of my report.
I have Lyx on mac os X.
To type it, I have been using Bibdesk, it has been ordered in alphabetic 
order and I don't like to begin a document with a 5 as the first reference.

I can't either put the name and the year of the citation.

Has anyone been confronted to the problem before?

Thanks,
--

Andréas LYBERIS


154 rue de Tolbiac

75013 Paris

France


mail: [EMAIL PROTECTED]

tel: +33 679603975



line characters and reverse video characters ?

2008-03-10 Thread Jeremy C. Reed
Can anyone share examples for both printing line characters and reverse 
video characters? Or point to some docs about this?

Here is an example of line characters. But my xterm doesn't show it 
(probably wrong font), but maybe your console will.

  ???
  ? Which would you like to do? ?
  ? ?
  ? a: Edit the MBR partition table ?
  ?b: Use the entire disk  ?
  ???

Note that is special characters for vertical and horizontal lines and four 
different corners.

I'd like to do that in LaTeX or LyX instead of using screenshot.

I guess I could use some parbox, makebox or framebox instead but haven't 
tried that. (I realized that because I also want to use a box around 
entire area which would measure about 80 characters by 24 characters.)


As for reverse video, here is an example using ANSI codes:

printf \e[7m this is reverse \e[0m\n

How to do that with LyX? (white on black)?

I have several text console screenshots where I also captured the text. I 
think my book would look better if I let TeX format the text versus using 
PNG images.

  Jeremy C. Reed


Re: Bibliography

2008-03-10 Thread Bennett Helm

On Mar 10, 2008, at 4:22 PM, AndrŽas LYBERIS wrote:

Hi,

I have a problem with the bibliography of my report.
I have Lyx on mac os X.
To type it, I have been using Bibdesk, it has been ordered in  
alphabetic order and I don't like to begin a document with a 5 as  
the first reference.

I can't either put the name and the year of the citation.

Has anyone been confronted to the problem before?


I'm not sure I understand what the problem is. It sounds like you are  
getting numerical style references when you want author-date.


Are you using the default (numerical) citation style (in Document   
Settings  Bibliography)? To get author-date, you should probably use  
Natbib, and then select Author-year as the natbib style. You will  
then need to select a bibliography style from the BibTeX Bibliography  
you've inserted for use with natbib, but which one depends on how you  
want the bibliography to be sorted.


For details, see §6.5 of the User's Guide.

Bennett

Re: How do you do an appendix the right way?

2008-03-10 Thread Filippo Zangheri
Steve Litt ha scritto:
 Hi all,

Hi, Steve,


 How does one do an appendix the right way. I want it to show up, at the same 
 level as chapters, in the table of contents. But I want it to say Appendix 
 A: SSH Example rather than Chapter 13: Appendix A: SSH Example.

In LyX-1.5.4 you simply click on Document | Appendices start here,
or something - I'm using the Italian version of LyX.

It works great if your last chapters are appendices. In TOC it is
inserted an item like A  SSH Example.

If you want to insert some extra non-appendix chapters after the
appendices, or you want TOC entries like Appendix A  SSH Example,
then you'll need appendix.sty and:

ERT [\begin{appendices}]

...

ERT [\end{appendices}]

Additional Chapters (though I doubt you'll want to :-))


Best regards.


-- 
Filippo Zangheri

GPG key ID: 0xE1D879FA
Key fingerprint: 816B CE57 D43C 0A47 EF35 3378 EA5F A72A E1D8 79FA
Key server: pgp.mit.edu

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GE d- s+:- a-- C++ UL+++ P+ L+++ E-- W+ N* o-- K- w--- O-- M--
V- PS++ PE+ Y+ PGP++ t 5-- X++ R* tv b+ DI-- D G-- e++ h--
r++ z*
--END GEEK CODE BLOCK--



Re: Bibliography

2008-03-10 Thread cmiramon
Bennett Helm wrote:

 On Mar 10, 2008, at 4:22 PM, AndrŽas LYBERIS wrote:
 Hi,

 I have a problem with the bibliography of my report.
 I have Lyx on mac os X.
 To type it, I have been using Bibdesk, it has been ordered in
 alphabetic order and I don't like to begin a document with a 5 as
 the first reference.
 I can't either put the name and the year of the citation.

 Has anyone been confronted to the problem before?
 
 I'm not sure I understand what the problem is. It sounds like you are
 getting numerical style references when you want author-date.

Maybe explain your problem in French on the French speaking mailing list :

http://wiki.lyx.org/LyX/InternetResources

Charles



Use pdf figures without converting.

2008-03-10 Thread Klaus Unger
Hi,

I am using PDF figures. Lyx does convert them to png before and chops them 
incorrectly. I would like to use the pdf figures directly, is it possible? 
How?

I have not been able to figure this out with the documentation, sorry if it 
has been posted before.

- Klaus


Re: Use pdf figures without converting.

2008-03-10 Thread Rich Shepard

On Tue, 11 Mar 2008, Klaus Unger wrote:


I am using PDF figures. Lyx does convert them to png before and chops them
incorrectly. I would like to use the pdf figures directly, is it possible?
How?


Klaus,

  I regularly include .pdf files. Just insert them as you would any
graphical format. But, use pdflatex to view the results and produce a final
file. You cannot use plain latex because the image will not display in xdvi.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: How do you do an appendix the right way?

2008-03-10 Thread Steve Litt
On Monday 10 March 2008 17:41, Filippo Zangheri wrote:
 Steve Litt ha scritto:
  Hi all,

 Hi, Steve,

  How does one do an appendix the right way. I want it to show up, at the
  same level as chapters, in the table of contents. But I want it to say
  Appendix A: SSH Example rather than Chapter 13: Appendix A: SSH
  Example.

 In LyX-1.5.4 you simply click on Document | Appendices start here,
 or something - I'm using the Italian version of LyX.

 It works great if your last chapters are appendices. In TOC it is
 inserted an item like A  SSH Example.

 If you want to insert some extra non-appendix chapters after the
 appendices, or you want TOC entries like Appendix A  SSH Example,
 then you'll need appendix.sty and:

 ERT [\begin{appendices}]

   ...

 ERT [\end{appendices}]

 Additional Chapters (though I doubt you'll want to :-))


 Best regards.

Thanks Filippo,

This time I want no more chapters after the appendix, but it's very good to 
know how to do it -- sometimes my books require wierd stuff.

Thanks

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


RE: Layout and Class Files on Windows Distribution

2008-03-10 Thread William R. Buckley
OK.  So I tried the suggested mechanism, using the Windows
installer for the complete product; a total of about 109MBytes
of download.  All was properly installed.  Yet, when I try to
configure a new document, the list of document classes shows
that article(Springer LNCS) is unavailable.

Haven't had time to try some of the other suggestions given
by other respondents.  I will get to this later this day - about
ten to twelve hours.

Thanks for all the suggestions.

wrb

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, March 09, 2008 8:33 AM
> To: William R. Buckley
> Cc: lyx-users@lists.lyx.org
> Subject: Re: Layout and Class Files on Windows Distribution
> 
> William R. Buckley schrieb:
> 
> > What is less clear is the use of texhash, as it is not part 
> of the LyX 
> > distribution.
> 
> You don't need to use this cind of command line commands. The 
> best and easiest way of getting a full featured LyX/LaTeX 
> system on WIndows is to reinstall your current LaTeX 
> distribution and LyX. Then reinstall LyX using the complete 
> variant of this installer while you have an open internet connection:
> http://wiki.lyx.org/Windows/LyXWinInstaller
> 
> LyX will install all needed packages to MiKTeX, also LNCS.
> 
> Try it out and post when it doesn't work for you.
> 
> regards Uwe
> 
> 



Languages British vs English

2008-03-10 Thread Phillip Ferguson
Hey all,

 

Why is there an English language option and British language option? What is
the difference? Is this an American vs English English?

Could shouldn't these be label correctly as this is very confusing, as far
as I know there is no British language!

 

Thanks

 

pdf

 



RE: Latex template on 1.5.4

2008-03-10 Thread Phillip Ferguson
Paul,

Thank you very much. Your instructions were clear, to the point and exactly
what I was looking for.

Should I worry about the ert highlights in the document? There are a few
around the equations and within the bos that is in the figure? Since lyx
handles these anutomatically, can I just delete them and insert  graphics as
normal?
What are the purpose of the boxes? I don't see any effect on the end
document? Are they used to scale the figures into the correct column widths?


What I was trying to attempt was to create a document class within lyx that
duplicated spconf.sty. I suspect this will happen again with various papers
I am submitting so I had hoped that I would be able to find a systematic way
of using latex .sty and .cls files in lyx.

What I was trying to do previously was modify the article.layout file to use
the spconf.sty and so creating a spconf.layout that is selectable in the
document classes of lyx.

Thanks again
Pdf

p.s. I really think a few developers should look at a import application.
With the amount of latex templates going about I am surprised there isn't a
more streamlined option in lyx to accommodate these, but then again I
wouldn't have had the fun I've had trying to figure this out!

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul A. Rubin
Sent: 09 March 2008 20:19
To: lyx-users@lists.lyx.org
Subject: Re: Latex template on 1.5.4

Phillip Ferguson wrote:
>
> It has now boiled down to a layout file. At this point in time there is a
> document class unavailable to use.
>
> I have the orginal spconf.sty, and the layout file which is a derivative
of
> the article class.
>
> What I needs is the spconf package, where can I get it?
>

Like Bob, I got a bit lost here.  Assuming you are just going to use
this package to submit to this one conference (and not use it on a
regular basis), you really don't need a layout file at all.  Since I'm
not sure what you've done to date, I'll rewind to the beginning and show
one way to get it in production.

1.  Open the MiKTeX Settings application, click on the Roots tab, and
find the path to the directory described as "UserConfig".  If you
left-click it and hover over it, you'll see the full path.  Leave this
application open, you'll need it again.

2.  Find that directory in Windows Explorer and drill down to
\tex\latex (which should already be there).  Unzip fpl08.zip
there, which should create a subfolder named fpl08.

3.  Return to the MiKTeX Settings application, click on the General tab,
and click Refresh FNDB.  Sit back and watch your hard drive spin.  When
that's done, you can click either Ok or Cancel and exit the application.

4.  [Optional]  You might want to create a shortcut someplace to the
\tex\latex\fpl08 folder.  Alternatively, you might want to
copy the two .bib files and .eps file to a more convenient folder (i.e.,
one buried less deeply in the rubble).

5.  Paste the attached LyX file into whatever directory has the .eps and
.bib files.  This is basically the sample proceedings document (which
contains formatting instructions) converted to LyX.  I put in the bare
minimum formatting (page size, margins, Times Roman 10 pt. as the base
font), but you may need to do more fiddling to pacify the conference
gods.  Also, I trimmed out some of the less informative comments and put
the others in bright yellow LyX Notes.  The author, affiliation and
acknowledgment stuff is in the preamble (Document -> Settings... ->
LaTeX Preamble), which you'll need to edit in your own documents unless
you want someone else to take the blame.  :-)

6.  Open fpl08.lyx in LyX either by double-clicking the file icon or
using File -> Open.  Try View -> DVI to make sure things work correctly.

7.  To create a new proceedings, just do File -> Save As to create a new
copy (with a different name, obviously), and then hack out the current
contents and insert your own.  (You can open the original with File ->
New from Template as an insurance policy against overwriting it.)

Hope this helps,
Paul



Subscription

2008-03-10 Thread Andréas LYBERIS
Hi,

I am a mac user of Lyx and I have differents problems with Lyx, like
bibliography style, latex exportation of document ( in french the
accents é and è are not included in the tex document) and picture
incorporation problem (only png are supported, not eps).

Thanks for helping me,

-- 
Andréas LYBERIS
154 rue de Tolbiac
75013 PARIS
FRANCE

[EMAIL PROTECTED]

tel: + 33 679603975


Export to plain text garbled

2008-03-10 Thread All is discovered--flee at once!
Hi,

I'm using LyX 1.5.3 on Ubuntu 6.06.  (I've never used LaTeX or LyX before.)  
I'm trying to export a LyX document to plain text and it's coming out 
garbled. I've also tried using all three PDF export options (dvipdfm, 
pdflatex, ps2pdf), opening the result in Acrobat Reader, and saving as text.  
They each come out garbled as well, in their own unique ways.  So far the 
best way I've found of exporting to a text file is selecting all in the LyX 
display, then copying and pasting into a text editor like gedit, adding 
manually editing any references to section numbers and stripping out any 
latex formatting.  

There must be a better way to do this, right?  Do I have to do some special 
character encoding voodoo or something?  (I've tried searching for a 
solution, but apparently I haven't come up with the magic phrase that will 
cause Google to produce results relevant to my needs.)

Is this something that will be fixed in 1.6 and I should just suck it up and 
wait?

-Mel


Re: Export to plain text garbled

2008-03-10 Thread Charles de Miramon
All is discovered--flee at once! wrote:

> Hi,
> 
> I'm using LyX 1.5.3 on Ubuntu 6.06.  (I've never used LaTeX or LyX
> before.) I'm trying to export a LyX document to plain text and it's coming
> out garbled. I've also tried using all three PDF export options (dvipdfm,
> pdflatex, ps2pdf), opening the result in Acrobat Reader, and saving as
> text.
> They each come out garbled as well, in their own unique ways.  So far the
> best way I've found of exporting to a text file is selecting all in the
> LyX display, then copying and pasting into a text editor like gedit,
> adding manually editing any references to section numbers and stripping
> out any latex formatting.
> 
> There must be a better way to do this, right?  Do I have to do some
> special
> character encoding voodoo or something?  (I've tried searching for a
> solution, but apparently I haven't come up with the magic phrase that will
> cause Google to produce results relevant to my needs.)
> 
> Is this something that will be fixed in 1.6 and I should just suck it up
> and wait?
> 
> -Mel

The plain text that LyX exports is UTF-8 encoded. You have to change in your
editor the encoding to ungarble it.

Cheers,
Charles
-- 
http://www.kde-france.org



Re: Safety from data reorganization?

2008-03-10 Thread G. Milde
On  9.03.08, Paul A. Rubin wrote:
> Steve Litt wrote:
>> Hi all,

>> I just lost my entire book structure due to a small modification to my 
>> layout file that prevented compilation. LyX therefore reverted the 
>> book's document class from my custom "rjustbook" to "article", removing 
>> all chapters and flattening out the table of contents.

I always close a document without saving if I come across such warnings.

With just one saving, the backup copy (mybook.lyx~) will still contain the
custom environments. So a `cp mybook.lyx~ mybook.lyx` saves you the tedious
hand-reverting.

>> Shame on me, my last backup was 5 days old. But still, it would have 
>> been nice for LyX to say "hey, your layout file just became bad. Do you 
>> REALLY want me to revert your document class to "article", or would you 
>> like to save as (the broken) "whatever" document class so you can fix 
>> the problem without losing content?"

I also vote for a more save handling of such automatic conversions
that can indeed delete lots of information from the document.

> A simple solution might be for LyX to automatically treat the document  
> as if it were a template it decides the layout is broken -- change to  
> article or whatever, but in read-only mode, so that you can only save  
> the modified document under a new name.  That would leave the original  
> (now presumably broken) version intact.

This is a nice idea, I hope it is easy to implement and look forward to
see it in the next version.

Günter







Re: Languages British vs English

2008-03-10 Thread Liviu Andronic
On 3/10/08, Phillip Ferguson <[EMAIL PROTECTED]> wrote:
>  Why is there an English language option and British language option? What is
>  the difference? Is this an American vs English English?
>
>  Could shouldn't these be label correctly as this is very confusing, as far
>  as I know there is no British language!

What always perturbed me is that LyX actually contains an entry for
the "American" language. Politically correct formulations (e.g.
English (the US); English (the UK)) would look much nicer.

No more than my EUR 00.02.
Liviu


Re: Lyx keyboard shortcuts on mac

2008-03-10 Thread G. Milde
On  8.03.08, Darren Hardy wrote:
> Bennett Helm <[EMAIL PROTECTED]> writes:

> I would very much like Mac standard shortcuts, especially for editing text. 
> I would like LyX for Mac to follow the design guidelines for Aqua as far as 
> keyboard shortcuts go

I'm afraid there is no pre-defined Mac bindings file yet.

You can generate your own keybinding file. 

See Help>Customizing and have a look at the two pre-defined layout variants

  /bind/cua.bind 
and 
  /bind/emacs.bind

which you can copy and modify or (if the modifications are rather small)
import into your custom bindings.

You can publish the result at http://wiki.lyx.org or mail it to the list.

GM


Re: Languages British vs English

2008-03-10 Thread Charles de Miramon
Liviu Andronic wrote:

> On 3/10/08, Phillip Ferguson
> <[EMAIL PROTECTED]> wrote:
>>  Why is there an English language option and British language option?
>>  What is the difference? Is this an American vs English English?

Hyphenation rules are different in British English and in American English
and the formatting of the date (used in the macro \today) is not the same.

>>
>>  Could shouldn't these be label correctly as this is very confusing, as
>>  far as I know there is no British language!

I guess British think that American English is just English with mistakes...

> 
> What always perturbed me is that LyX actually contains an entry for
> the "American" language. Politically correct formulations (e.g.
> English (the US); English (the UK)) would look much nicer.

For LaTeX, Austrian is also a dialect of German and Flemish a dialect of
Dutch. Time to start a revolution ;-) 

Charles
-- 
http://www.kde-france.org



Re: Languages British vs English

2008-03-10 Thread G. Milde
On 10.03.08, Liviu Andronic wrote:
> On 3/10/08, Phillip Ferguson <[EMAIL PROTECTED]> wrote:
> >  Why is there an English language option and British language option?
> >  What is the difference? Is this an American vs English English?
> >
> >  Could shouldn't these be label correctly as this is very confusing,
> >  as far as I know there is no British language!

> What always perturbed me is that LyX actually contains an entry for
> the "American" language. Politically correct formulations (e.g.
> English (the US); English (the UK)) would look much nicer.

Well, for me the names of the English variants were always 
"British English" and "American English".

My suggestion for the Document>Settings>Languaes list would be

  English (American)   # or English (US)
  English (British)

in a similar way to e.g.
  
  Chinese (new spelling)
  Chinese (traditional)

This way, the English variants are close to another in the
alphabetical listing which facilitates the choice by offering
alternatives in one place.

It would also make sufficiently clear that American English is 

- not *the* English dialect
- not *the* language of the american continent


Günter





Re: Safety from data reorganization?

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 12:30, G. Milde wrote:
> On  9.03.08, Paul A. Rubin wrote:
> > A simple solution might be for LyX to automatically treat the document  
> > as if it were a template it decides the layout is broken -- change to  
> > article or whatever, but in read-only mode, so that you can only save  
> > the modified document under a new name.  That would leave the original  
> > (now presumably broken) version intact.
> 
> This is a nice idea, I hope it is easy to implement and look forward to
> see it in the next version.

Doesn't version control already let you revert to an earlier version?  (If it's 
turned on.)

-Mel


Re: Export to plain text garbled

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 12:24, Charles de Miramon wrote:
> The plain text that LyX exports is UTF-8 encoded. You have to change in your
> editor the encoding to ungarble it.

Thanks, that was what I needed.

Mel



short title

2008-03-10 Thread jean beney

Hello,

Is it possible in LyX to define a short book title?
When I am on the book title, the "short title" button  is disabled.

The class I work with has been built from book and it puts the book 
title in the top margin of even pages instead of the chapter name.


Jean


Re: Languages British vs English

2008-03-10 Thread David Romano
I would concur and weigh in in favor "English (US)" since British English 
is more likely the official language of the English-speaking Caribbean.


David Romano

On Mon, 10 Mar 2008, G. Milde wrote:


On 10.03.08, Liviu Andronic wrote:

On 3/10/08, Phillip Ferguson <[EMAIL PROTECTED]> wrote:

 Why is there an English language option and British language option?
 What is the difference? Is this an American vs English English?

 Could shouldn't these be label correctly as this is very confusing,
 as far as I know there is no British language!



What always perturbed me is that LyX actually contains an entry for
the "American" language. Politically correct formulations (e.g.
English (the US); English (the UK)) would look much nicer.


Well, for me the names of the English variants were always
"British English" and "American English".

My suggestion for the Document>Settings>Languaes list would be

 English (American)   # or English (US)
 English (British)

in a similar way to e.g.

 Chinese (new spelling)
 Chinese (traditional)

This way, the English variants are close to another in the
alphabetical listing which facilitates the choice by offering
alternatives in one place.

It would also make sufficiently clear that American English is

- not *the* English dialect
- not *the* language of the american continent


Günter




Re: Lyx keyboard shortcuts on mac

2008-03-10 Thread Bennett Helm

On Mar 10, 2008, at 7:20 AM, G. Milde wrote:


On  8.03.08, Darren Hardy wrote:

Bennett Helm <[EMAIL PROTECTED]> writes:


I would very much like Mac standard shortcuts, especially for  
editing text.
I would like LyX for Mac to follow the design guidelines for Aqua  
as far as

keyboard shortcuts go


I'm afraid there is no pre-defined Mac bindings file yet.


Yes there is -- mac.bind.

Bennett


Re: short title

2008-03-10 Thread Abdelrazak Younes

jean beney wrote:

Hello,

Is it possible in LyX to define a short book title?
When I am on the book title, the "short title" button  is disabled.

The class I work with has been built from book and it puts the book 
title in the top margin of even pages instead of the chapter name.


Another option would be to make your title shorter and make use of subtitle.

Abdel.



Re: Languages British vs English

2008-03-10 Thread John Kane
I'd agree with English (US) since it is not the normal
spelling that is used in Canada. Of course we don't
use the UK spelling either. :)
--- David Romano <[EMAIL PROTECTED]> wrote:

> I would concur and weigh in in favor "English (US)"
> since British English 
> is more likely the official language of the
> English-speaking Caribbean.
> 
> David Romano
> 
> On Mon, 10 Mar 2008, G. Milde wrote:
> 
> > On 10.03.08, Liviu Andronic wrote:
> >> On 3/10/08, Phillip Ferguson
> <[EMAIL PROTECTED]> wrote:
> >>>  Why is there an English language option and
> British language option?
> >>>  What is the difference? Is this an American vs
> English English?
> >>>
> >>>  Could shouldn't these be label correctly as
> this is very confusing,
> >>>  as far as I know there is no British language!
> >
> >> What always perturbed me is that LyX actually
> contains an entry for
> >> the "American" language. Politically correct
> formulations (e.g.
> >> English (the US); English (the UK)) would look
> much nicer.
> >
> > Well, for me the names of the English variants
> were always
> > "British English" and "American English".
> >
> > My suggestion for the Document>Settings>Languaes
> list would be
> >
> >  English (American)   # or English (US)
> >  English (British)
> >
> > in a similar way to e.g.
> >
> >  Chinese (new spelling)
> >  Chinese (traditional)
> >
> > This way, the English variants are close to
> another in the
> > alphabetical listing which facilitates the choice
> by offering
> > alternatives in one place.
> >
> > It would also make sufficiently clear that
> American English is
> >
> > - not *the* English dialect
> > - not *the* language of the american continent
> >
> >
> > Günter
> >
> >
> >



  Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



Box around program listings?

2008-03-10 Thread James Sutherland
Does anyone know a way to get a box around a program listing?  Putting it
inside a box (minipage) environment doesn¹t seem to work...

James


Re: Safety from data reorganization?

2008-03-10 Thread Steve Litt
On Monday 10 March 2008 07:30, G. Milde wrote:
> On  9.03.08, Paul A. Rubin wrote:
> > Steve Litt wrote:
> >> Hi all,
> >>
> >> I just lost my entire book structure due to a small modification to my
> >> layout file that prevented compilation. LyX therefore reverted the
> >> book's document class from my custom "rjustbook" to "article", removing
> >> all chapters and flattening out the table of contents.
>
> I always close a document without saving if I come across such warnings.
>
> With just one saving, the backup copy (mybook.lyx~) will still contain the
> custom environments. So a `cp mybook.lyx~ mybook.lyx` saves you the tedious
> hand-reverting.

By the time I knew of the problem, I'd made and saved several changes. If I'm 
already given warning messages, perhaps they could be made much more 
forceful, like this.


DANGER ACHTUNG PELEGRO!!!

Your document class has changed, and environments not supported by the new 
document class will revert to body text. Save this version UNDER A NEW 
FILENAME, and then resolve the problems.



>
> >> Shame on me, my last backup was 5 days old. But still, it would have
> >> been nice for LyX to say "hey, your layout file just became bad. Do you
> >> REALLY want me to revert your document class to "article", or would you
> >> like to save as (the broken) "whatever" document class so you can fix
> >> the problem without losing content?"
>
> I also vote for a more save handling of such automatic conversions
> that can indeed delete lots of information from the document.

Yeah, I got lucky this time, next time (if I'm silly enough to wait 5 days to 
back up) could be much worse.

SteveT
 
Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: Safety from data reorganization?

2008-03-10 Thread All is discovered--flee at once!
On Monday 10 March 2008 15:23, you wrote:
> On Monday 10 March 2008 08:25, All is discovered--flee at once! wrote:
> > On Monday 10 March 2008 12:30, G. Milde wrote:
> > > On  9.03.08, Paul A. Rubin wrote:
> > > > A simple solution might be for LyX to automatically treat the document
> > > > as if it were a template it decides the layout is broken -- change to
> > > > article or whatever, but in read-only mode, so that you can only save
> > > > the modified document under a new name.  That would leave the original
> > > > (now presumably broken) version intact.
> > >
> > > This is a nice idea, I hope it is easy to implement and look forward to
> > > see it in the next version.
> >
> > Doesn't version control already let you revert to an earlier version?  (If
> > it's turned on.)
> >
> > -Mel
> 
> I never knew LyX had version control. How do I turn it on?
> 
> SteveT
> 
> Steve Litt
> Books written in LyX:
>   Troubleshooting Techniques of the Successful Technologist
>   Twenty Eight Tales of Troubleshooting
>   Troubleshooting: Just the Facts
> 

Hey Steve.

I was at your website this morning!  I think it was when I was reading about 
classes.  (Didn't find what I was looking for, but I bookmarked it anyway. 
Lots of stuff there.)

I just had to install GNU RCS to make version control work. It's accessible 
from my File menu.  I made an RCS folder and symlinked it from my assorted 
working directories (Articles, Reviews, etc.) to keep all the version control 
information in one place. (I'm using LyX 1.5.3 (with the default.ui) on 
Ubuntu 6.06.)

There's a section on version control in the Extended Features manual.

Basically I did:
~$sudo apt-get install rcs
~$mkdir writing/RCS

and then some symlinks like:
~$ ln -s /home/fs/writing/RCS /home/fs/RCS
~$ ln -s /home/fs/writing/RCS /home/fs/writing/articles/RCS

Without the symlink to your designated RCS directory, the version control 
information file will be placed in the same working directory as the .lyx 
file you have entered in version control.  It works without the symlinks, but 
I'm one of those people that gets compulsive about organization and backups.  
I haven't found a way to specify a default path for RCS.  I read some 
assorted documents on setting it up and they all seem to do the symlink 
thing.  

Hope that helps.

-Mel


Re: Box around program listings?

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
<[EMAIL PROTECTED]> wrote:
> Does anyone know a way to get a box around a program listing?  Putting it
>  inside a box (minipage) environment doesn¹t seem to work...

You want a frame, right? Use the frame option of the listings package
should work.

Bo


Re: Latex template on 1.5.4

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 3:52 AM, Phillip Ferguson <
[EMAIL PROTECTED]> wrote:

> What I was trying to do previously was modify the article.layout file to
> use
> the spconf.sty and so creating a spconf.layout that is selectable in the
> document classes of lyx.
>


Ok, why didn't you say so? :-}

Copy the article.layout from:

C:\Program Files\LyX15\Resources\layouts

to:

C:\Documents and Settings\username\Application Data\lyx15\layouts

then you can rename the file to spconf.layout and then open it in a text
editor and edit the declare latex line to:

\DeclareLaTeXClass[article,spconf.sty]{article (spconf)}

You can change article (spconf) to any name you like. Then reconfigure LyX
and in the document settings 'article (spconf)' should show up.

Even though you prefer Paul's approach to placing your spconf.sty file
within the MiKTeX default locations, I still recommend setting up your own
personal latex hierarchy to store these custom .sty or .bst files. So that,
in the future if you had to reinstall Windoze (for some strange reason, God
forbid :-}). You know exactly where your custom files are and you don't have
to go searching through the bowels of MiKTeX to find them.

Just my 0.02.

Cheers,
/Bob


Re: Box around program listings?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng <[EMAIL PROTECTED]> wrote:

> On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
> <[EMAIL PROTECTED]> wrote:
> > Does anyone know a way to get a box around a program listing?  Putting
> it
> >  inside a box (minipage) environment doesn¹t seem to work...
>
> You want a frame, right? Use the frame option of the listings package
> should work.
>
> Bo
>


If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
Settings' dialog box. Under 'Decoration' you can change it to:

Rectangular box
Oval box, thin
Oval box, thick
Shadow box
Double box

Is this not what your looking for?

Cheers,
/Bob


How do you do an appendix the right way?

2008-03-10 Thread Steve Litt
Hi all,

How does one do an appendix the right way. I want it to show up, at the same 
level as chapters, in the table of contents. But I want it to say "Appendix 
A: SSH Example" rather than "Chapter 13: Appendix A: SSH Example".

What environment to I use for the Appendix title? Do I need to use some ERT 
commands?

Thanks

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: How do you do an appendix the right way?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 10:26 AM, Steve Litt <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> How does one do an appendix the right way. I want it to show up, at the same
> level as chapters, in the table of contents. But I want it to say "Appendix
> A: SSH Example" rather than "Chapter 13: Appendix A: SSH Example".
>
> What environment to I use for the Appendix title? Do I need to use some ERT
> commands?
>
> Thanks
>
> SteveT
>
> Steve Litt
> Books written in LyX:
>Troubleshooting Techniques of the Successful Technologist
>Twenty Eight Tales of Troubleshooting
>Troubleshooting: Just the Facts


It took me quite a while to figure out this package when I was writing
my thesis. I used the 'appendix' package and I've attached a simple
example, but you can refer to the documentation for further
instructions (as I don't have a copy of my thesis at present to refer
to).

Cheers,
/Bob


appendix.lyx
Description: application/lyx


  1   2   >