auto-insert of branch names in exported filenames

2007-01-09 Thread Sven Schreiber
Hi,
branches are very useful and I have used them alot recently. What I am
missing is the possibility to have the names of active branches
automatically inserted into the file names of exported formats.

Example: in a file named exam.lyx I have two branches, verA and
verB. When verA is active, I would like to get something like
exam_verA.pdf automatically.

Or is it possible already?

Thanks,
Sven


how to type in accented character in text mode

2007-01-09 Thread Michael Chen

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?

--
Michael Chen


how to type in accented character in text mode?

2007-01-09 Thread Michael Chen

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?

--
Michael Chen


--
Michael Chen
PhD student
Northwestern University
2145 Sheridan Road IEMS
Evanston, IL 60208-3119
Phone: 847.467.2043
Fax: 847.491.8005
Web: http://users.iems.northwestern.edu/~mchen/


missing class files after installation (newbie question)

2007-01-09 Thread John Isner

I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. The
installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help-Introduction) I get an alert

Document class not available. The document uses a missing TeX class
bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
LyX will not be able to produce output.

I get similar alerts when I open other pre-installed documents (e.g.,
missing TeX class scrbook when I open the User's Guide).

I checked C:\Program Files\LyX114\Resources\tex. It contains only four .cls
files (and corresponding .sty files)

broadway.cls
cv.cls
hollywood.cls
revtext.cls

(I assume the missing files should be here).

After reading the Lyx FAQ, I went to www.tug.org and downloaded book.cls and
book.sty into my tex directory. I also did Tools-Reconfigure and restarted
Lyx. But the I still get the missing class message!


Re: missing class files after installation (newbie question)

2007-01-09 Thread Paul A. Rubin

John Isner wrote:
I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. 
The

installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help-Introduction) I get an alert

Document class not available. The document uses a missing TeX class
bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
LyX will not be able to produce output.

I get similar alerts when I open other pre-installed documents (e.g.,
missing TeX class scrbook when I open the User's Guide).

I checked C:\Program Files\LyX114\Resources\tex. It contains only four .cls
files (and corresponding .sty files)

broadway.cls
cv.cls
hollywood.cls
revtext.cls

(I assume the missing files should be here).


No.  LyX provides class files for a small number of classes that I think 
are not commonly included in standard LaTeX distributions.  Common ones 
like book.cls should be provided by the LaTeX distro.


After reading the Lyx FAQ, I went to www.tug.org and downloaded book.cls 
and

book.sty into my tex directory. I also did Tools-Reconfigure and restarted
Lyx. But the I still get the missing class message!



You need to update your TeX file database, then run Tools-Reconfigure 
and restart LyX.  How you update the database is somewhat 
distribution-specific.  If you use MikTeX, run the MikTeX Settings 
application from the start menu and click Refresh FNDB.


For that matter, if you use MikTeX, it's generally a better idea to let 
MikTeX install packages (run Browse Packages from the start menu), 
unless you are installing something not supported by MikTeX.


/Paul




Re: how to type in accented character in text mode?

2007-01-09 Thread Paul A. Rubin

Michael Chen wrote:

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?



Go to Tools-Preferences...-Look and feel-Keyboard, check Use 
keyboard map, then  browse to the Resources/kbd folder and pick a 
keyboard (or roll your own).  Save, exit and restart, and you can type 
in accented characters as two-key combinations.  For instance, on my 
system (Win XP) using the 'american' keyboard, hitting ` and a in 
succession gives the grave a composition.  Hitting ' followed by e gives 
 acute e, etc.  Hitting the dead key (the accent) twice gives the key 
symbol itself (so '' gives a single quote), while hitting the dead key 
followed by a space gives the accent alone.


The keymap files are text files, so you can browse them to see which one 
maps keys the way you like.  You can modify one to your taste.  See 
section 4.3 of the Customization help file for more info.


/Paul



Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread lamikr

 As noted elsewhere, this violates the what you see is what you meant
 philosophy underlying LyX.  That said, to string out multiple spaces
 in a row, you can just enter hard spaces (C-space); to enter a bunch
 of blank lines (that won't collapse), use C-enter.
Thanks, I did not know these hard spaces and hard lines before. But
actually I think I was searching something opposite, like soft lines
which would be visible in the editor but not anymore in the final text.
Buf this was just an idea I got to my mind while writing text.
If it is against the fundamental ideas of Lyx, I can live without it. :-)

Mika


Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread Martin Vermeer
On Tue, Jan 09, 2007 at 07:19:20PM +0100, Abdelrazak Younes wrote:
 lamikr wrote:
 
 And as I see the Lyx editor anyway as a smart code editor for Latex,  I
 would not think it being against the WYSIWYM principles Lyx try to
 follow if it would allow writers to set some more air to their text in
 the editor side. Instead I see that Lyx would just came smarter than
 normal editors as it would allow the writing of latex source code in
 Lyx editor a more flexible way while still guarantee the coherent output
 
 
 and that could actually be a
 
 
 KILLER  FEATURE
 
 
 for some more artistic persons than I to assist them to get their
 keyboard, ideas and text fly faster than the screen can scroll :-)
 
... 
 
 PS: this kind of discussion is best suited to the users' list. Please 
 continue that there (and don't reply to all).

Actually I remember there was (and still is in mathed) the feature that
multiple presses of space cycle through different space widths. The same
could be done for vertical space. I don't think this would go against
the LyX philosophy, and might make Mika happy.

- Martin



pgp9SLk4IcxIc.pgp
Description: PGP signature


Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread christian . ridderstrom

On Wed, 10 Jan 2007, lamikr wrote:

Thanks, I did not know these hard spaces and hard lines before. But 
actually I think I was searching something opposite, like soft lines 
which would be visible in the editor but not anymore in the final text. 
Buf this was just an idea I got to my mind while writing text. If it is 
against the fundamental ideas of Lyx, I can live without it. :-)


Please bring up the question on the users' list. Others might have ideas 
about it. I think I understand what you want, but it's probably better to 
first discuss it on the other list.


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread christian . ridderstrom

On Wed, 10 Jan 2007, [EMAIL PROTECTED] wrote:


On Wed, 10 Jan 2007, lamikr wrote:


 Thanks, I did not know these hard spaces and hard lines before. But
 actually I think I was searching something opposite, like soft lines
 which would be visible in the editor but not anymore in the final text.
 Buf this was just an idea I got to my mind while writing text. If it is
 against the fundamental ideas of Lyx, I can live without it. :-)


Please bring up the question on the users' list. Others might have ideas 
about it. I think I understand what you want, but it's probably better 
to first discuss it on the other list.


Oops - my mistake. I didn't notice this was cross-posted or something.

Anyway... if I understand you correctly, you are looking for something 
that inserts visual space only on the screen in LyX in order to help your 
thinking process?  Did I get that right?


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-09 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 8, Helge Hafting did say:

 Joe(theWordy)Philbrook wrote:
  Question 1 of 3
  
  Why is the header/footer suppressed on page 1? That is how can I get
  headers and/or footers to output on the first page???

 Because you changed the page style for normal pages,
 and the first page isn't normal in this case.

Yeah that figures...

 Usually, the first page is either a chapter page (if
 your document style support chapters) or a title
 page. Lyx does not suppot changing the chapter/title
 page styles directly.  You may use ERT
 to set \chapterpagestyle to fancy if you wish.
 Note that some document styles don't use
 chapterpagestyle or titlepagestyle, they have other ways.
 
 Usually, \thispagestyle{fancy} will do the trick though.
 Make sure you put this ERT somewhere on the page you want changed.

Thanks for the prompt reply and the informative suggestion. However I
get an error message when I try this. As it happens the document I used
to try to do this with says:
\textclass letter

But when I try to insert either chapterpagestyle or thispagestyle
by, for example, changing this:
snip
\layout Opening

Dear Jim,
\layout Standard

Well Hello Jim.
snip

To this:
snip
\layout Opening

Dear Jim,
\layout Standard

\thispagestyle{fancy}

Well Hello Jim.
snip

What I get on opening the doc with lyx is An error pop-up that says:

Textclass Loading Error!

Encountered unknown token
When reading [filename]

Since the only place in my document's control codes I see braces {}
I also tried:
snip
\thispagestyle fancy
snip
With the same results (sigh!)

Any other suggestions?

  Question 2 of 3
  
  Evidently \rhead{Page \thepage} yields: Page $currentpage
  But how would I get Page $currentpage of $pagecount???
  
  That is page 1 of 3, page 2 of 3, Page 3 of 3 etc...

 Simple approach: put a label at the end of the document.
 Then, use a reference to that label for getting the last page number.
 There are also latex packages for doing this sort of thing, but no
 support in LyX. Try this in the preamble:
 \lhead{My pagenumber: \thepage{} of \pageref{last}}

\size huge
THANK YOU VERY MUCH!
\size default

This seams to work as long as I use the exact label name I put at the
end of the document in my case that's:
\lhead{My pagenumber: \thepage{} of \pageref{LastPage}}

  Question 3 of 3
  
  Is there a list of {key words?} that can be used to insert values into
  header/footers such as
  
  /thepage   current output page number
  /today Today's date
  etc...

 Sure, any latex reference manual should do.  Also, search
 the web. The LyX homepage have some pointers.

So using the acronym you used above as a guide, I'm guessing I
might find what I'm looking for if I google:

latex ERT

Worth a try anyway.

Thanks again!

   #
   ##_if_you'd_prefer_an_clearsigned_.asc_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpChMRZ/61mwhY94RApo6AKCJtdqglzGj73037bNMqxhM0vv2GQCfcyS5
BqWyzhoSxjO+EDi/hBTultY=
=3nu9
-END PGP SIGNATURE-
-- 
|  ~^~   ~^~
|  ?   ? Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ [EMAIL PROTECTED]



Re: missing class files after installation (newbie question)

2007-01-09 Thread Uwe Stöhr

John Isner schrieb:

I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. 
The

installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help-Introduction) I get an alert

Document class not available. The document uses a missing TeX class
bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
LyX will not be able to produce output.


Use in MiKTeX's settings the menu Install packages on the fly Yes and then open an internet connection. Now reconfigure LyX and all missing 
packages should be installed.


regards Uwe


lyx 1.4.3 has trouble using local document class (cls) and layout: works in 1.3.7

2007-01-09 Thread C Sights
Hi,
I'm using Lyx on debian...
Lyx 1.4.3-2 has trouble using a local document class and layout.  Lyx 
1.3.7 
from ubuntu dapper has no problem using the same document class and layout.

to reproduce:

latex document class:
http://www.acm.org/sigs/pubs/proceed/sig-alternate.cls
in
~/texmf/tex/latex/base/sig-alternate.cls

lyx layout:
http://www.ece.iit.edu/~jgrad/lyx/layouts/sig-alternate.layout
in
.lyx/layouts/sig-alternate.layout

(run texhash, reconfigure and restart lyx)

In Lyx-1.4.3:
1. Create new document.
File-New
2. Change document class.
Document-Settings...-Document Class-Document Class: article 
(sig-alternate)
3. OK

Lyx window says:
Lyx: Could not change class
The document could not be converted into the document class sig-alternate.

Lyx console says:

New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/26881qQW5mf]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/268813rzEF9]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/268816SCG43]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
   


No problem in Lyx 1.3.7 from ubuntu dapper:
1. Create new document.
File-New
2. Change document class.
Layout-Document...-Layout-Document Class: article (sig-alternate)
3. OK

Can anybody else test this on their distribution?  I want to check 
whether 
this is a Debian problem or a Lyx problem.

Thanks!
C.


Re: missing class files after installation (newbie question)

2007-01-09 Thread John Isner

Thank you very much for your help.  I followed your directions and it solved
my problem.

On 1/9/07, Uwe Stöhr [EMAIL PROTECTED] wrote:


John Isner schrieb:

 I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults.
 The
 installation was completely normal -- no errors or warnings. However
when I
 open the Introduction (Help-Introduction) I get an alert

 Document class not available. The document uses a missing TeX class
 bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
 LyX will not be able to produce output.

Use in MiKTeX's settings the menu Install packages on the fly Yes and
then open an internet connection. Now reconfigure LyX and all missing
packages should be installed.

regards Uwe



auto-insert of branch names in exported filenames

2007-01-09 Thread Sven Schreiber
Hi,
branches are very useful and I have used them alot recently. What I am
missing is the possibility to have the names of active branches
automatically inserted into the file names of exported formats.

Example: in a file named exam.lyx I have two branches, verA and
verB. When verA is active, I would like to get something like
exam_verA.pdf automatically.

Or is it possible already?

Thanks,
Sven


how to type in accented character in text mode

2007-01-09 Thread Michael Chen

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?

--
Michael Chen


how to type in accented character in text mode?

2007-01-09 Thread Michael Chen

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?

--
Michael Chen


--
Michael Chen
PhD student
Northwestern University
2145 Sheridan Road IEMS
Evanston, IL 60208-3119
Phone: 847.467.2043
Fax: 847.491.8005
Web: http://users.iems.northwestern.edu/~mchen/


missing class files after installation (newbie question)

2007-01-09 Thread John Isner

I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. The
installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help-Introduction) I get an alert

Document class not available. The document uses a missing TeX class
bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
LyX will not be able to produce output.

I get similar alerts when I open other pre-installed documents (e.g.,
missing TeX class scrbook when I open the User's Guide).

I checked C:\Program Files\LyX114\Resources\tex. It contains only four .cls
files (and corresponding .sty files)

broadway.cls
cv.cls
hollywood.cls
revtext.cls

(I assume the missing files should be here).

After reading the Lyx FAQ, I went to www.tug.org and downloaded book.cls and
book.sty into my tex directory. I also did Tools-Reconfigure and restarted
Lyx. But the I still get the missing class message!


Re: missing class files after installation (newbie question)

2007-01-09 Thread Paul A. Rubin

John Isner wrote:
I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. 
The

installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help-Introduction) I get an alert

Document class not available. The document uses a missing TeX class
bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
LyX will not be able to produce output.

I get similar alerts when I open other pre-installed documents (e.g.,
missing TeX class scrbook when I open the User's Guide).

I checked C:\Program Files\LyX114\Resources\tex. It contains only four .cls
files (and corresponding .sty files)

broadway.cls
cv.cls
hollywood.cls
revtext.cls

(I assume the missing files should be here).


No.  LyX provides class files for a small number of classes that I think 
are not commonly included in standard LaTeX distributions.  Common ones 
like book.cls should be provided by the LaTeX distro.


After reading the Lyx FAQ, I went to www.tug.org and downloaded book.cls 
and

book.sty into my tex directory. I also did Tools-Reconfigure and restarted
Lyx. But the I still get the missing class message!



You need to update your TeX file database, then run Tools-Reconfigure 
and restart LyX.  How you update the database is somewhat 
distribution-specific.  If you use MikTeX, run the MikTeX Settings 
application from the start menu and click Refresh FNDB.


For that matter, if you use MikTeX, it's generally a better idea to let 
MikTeX install packages (run Browse Packages from the start menu), 
unless you are installing something not supported by MikTeX.


/Paul




Re: how to type in accented character in text mode?

2007-01-09 Thread Paul A. Rubin

Michael Chen wrote:

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?



Go to Tools-Preferences...-Look and feel-Keyboard, check Use 
keyboard map, then  browse to the Resources/kbd folder and pick a 
keyboard (or roll your own).  Save, exit and restart, and you can type 
in accented characters as two-key combinations.  For instance, on my 
system (Win XP) using the 'american' keyboard, hitting ` and a in 
succession gives the grave a composition.  Hitting ' followed by e gives 
 acute e, etc.  Hitting the dead key (the accent) twice gives the key 
symbol itself (so '' gives a single quote), while hitting the dead key 
followed by a space gives the accent alone.


The keymap files are text files, so you can browse them to see which one 
maps keys the way you like.  You can modify one to your taste.  See 
section 4.3 of the Customization help file for more info.


/Paul



Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread lamikr

 As noted elsewhere, this violates the what you see is what you meant
 philosophy underlying LyX.  That said, to string out multiple spaces
 in a row, you can just enter hard spaces (C-space); to enter a bunch
 of blank lines (that won't collapse), use C-enter.
Thanks, I did not know these hard spaces and hard lines before. But
actually I think I was searching something opposite, like soft lines
which would be visible in the editor but not anymore in the final text.
Buf this was just an idea I got to my mind while writing text.
If it is against the fundamental ideas of Lyx, I can live without it. :-)

Mika


Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread Martin Vermeer
On Tue, Jan 09, 2007 at 07:19:20PM +0100, Abdelrazak Younes wrote:
 lamikr wrote:
 
 And as I see the Lyx editor anyway as a smart code editor for Latex,  I
 would not think it being against the WYSIWYM principles Lyx try to
 follow if it would allow writers to set some more air to their text in
 the editor side. Instead I see that Lyx would just came smarter than
 normal editors as it would allow the writing of latex source code in
 Lyx editor a more flexible way while still guarantee the coherent output
 
 
 and that could actually be a
 
 
 KILLER  FEATURE
 
 
 for some more artistic persons than I to assist them to get their
 keyboard, ideas and text fly faster than the screen can scroll :-)
 
... 
 
 PS: this kind of discussion is best suited to the users' list. Please 
 continue that there (and don't reply to all).

Actually I remember there was (and still is in mathed) the feature that
multiple presses of space cycle through different space widths. The same
could be done for vertical space. I don't think this would go against
the LyX philosophy, and might make Mika happy.

- Martin



pgp9SLk4IcxIc.pgp
Description: PGP signature


Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread christian . ridderstrom

On Wed, 10 Jan 2007, lamikr wrote:

Thanks, I did not know these hard spaces and hard lines before. But 
actually I think I was searching something opposite, like soft lines 
which would be visible in the editor but not anymore in the final text. 
Buf this was just an idea I got to my mind while writing text. If it is 
against the fundamental ideas of Lyx, I can live without it. :-)


Please bring up the question on the users' list. Others might have ideas 
about it. I think I understand what you want, but it's probably better to 
first discuss it on the other list.


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread christian . ridderstrom

On Wed, 10 Jan 2007, [EMAIL PROTECTED] wrote:


On Wed, 10 Jan 2007, lamikr wrote:


 Thanks, I did not know these hard spaces and hard lines before. But
 actually I think I was searching something opposite, like soft lines
 which would be visible in the editor but not anymore in the final text.
 Buf this was just an idea I got to my mind while writing text. If it is
 against the fundamental ideas of Lyx, I can live without it. :-)


Please bring up the question on the users' list. Others might have ideas 
about it. I think I understand what you want, but it's probably better 
to first discuss it on the other list.


Oops - my mistake. I didn't notice this was cross-posted or something.

Anyway... if I understand you correctly, you are looking for something 
that inserts visual space only on the screen in LyX in order to help your 
thinking process?  Did I get that right?


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-09 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 8, Helge Hafting did say:

 Joe(theWordy)Philbrook wrote:
  Question 1 of 3
  
  Why is the header/footer suppressed on page 1? That is how can I get
  headers and/or footers to output on the first page???

 Because you changed the page style for normal pages,
 and the first page isn't normal in this case.

Yeah that figures...

 Usually, the first page is either a chapter page (if
 your document style support chapters) or a title
 page. Lyx does not suppot changing the chapter/title
 page styles directly.  You may use ERT
 to set \chapterpagestyle to fancy if you wish.
 Note that some document styles don't use
 chapterpagestyle or titlepagestyle, they have other ways.
 
 Usually, \thispagestyle{fancy} will do the trick though.
 Make sure you put this ERT somewhere on the page you want changed.

Thanks for the prompt reply and the informative suggestion. However I
get an error message when I try this. As it happens the document I used
to try to do this with says:
\textclass letter

But when I try to insert either chapterpagestyle or thispagestyle
by, for example, changing this:
snip
\layout Opening

Dear Jim,
\layout Standard

Well Hello Jim.
snip

To this:
snip
\layout Opening

Dear Jim,
\layout Standard

\thispagestyle{fancy}

Well Hello Jim.
snip

What I get on opening the doc with lyx is An error pop-up that says:

Textclass Loading Error!

Encountered unknown token
When reading [filename]

Since the only place in my document's control codes I see braces {}
I also tried:
snip
\thispagestyle fancy
snip
With the same results (sigh!)

Any other suggestions?

  Question 2 of 3
  
  Evidently \rhead{Page \thepage} yields: Page $currentpage
  But how would I get Page $currentpage of $pagecount???
  
  That is page 1 of 3, page 2 of 3, Page 3 of 3 etc...

 Simple approach: put a label at the end of the document.
 Then, use a reference to that label for getting the last page number.
 There are also latex packages for doing this sort of thing, but no
 support in LyX. Try this in the preamble:
 \lhead{My pagenumber: \thepage{} of \pageref{last}}

\size huge
THANK YOU VERY MUCH!
\size default

This seams to work as long as I use the exact label name I put at the
end of the document in my case that's:
\lhead{My pagenumber: \thepage{} of \pageref{LastPage}}

  Question 3 of 3
  
  Is there a list of {key words?} that can be used to insert values into
  header/footers such as
  
  /thepage   current output page number
  /today Today's date
  etc...

 Sure, any latex reference manual should do.  Also, search
 the web. The LyX homepage have some pointers.

So using the acronym you used above as a guide, I'm guessing I
might find what I'm looking for if I google:

latex ERT

Worth a try anyway.

Thanks again!

   #
   ##_if_you'd_prefer_an_clearsigned_.asc_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpChMRZ/61mwhY94RApo6AKCJtdqglzGj73037bNMqxhM0vv2GQCfcyS5
BqWyzhoSxjO+EDi/hBTultY=
=3nu9
-END PGP SIGNATURE-
-- 
|  ~^~   ~^~
|  ?   ? Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ [EMAIL PROTECTED]



Re: missing class files after installation (newbie question)

2007-01-09 Thread Uwe Stöhr

John Isner schrieb:

I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. 
The

installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help-Introduction) I get an alert

Document class not available. The document uses a missing TeX class
bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
LyX will not be able to produce output.


Use in MiKTeX's settings the menu Install packages on the fly Yes and then open an internet connection. Now reconfigure LyX and all missing 
packages should be installed.


regards Uwe


lyx 1.4.3 has trouble using local document class (cls) and layout: works in 1.3.7

2007-01-09 Thread C Sights
Hi,
I'm using Lyx on debian...
Lyx 1.4.3-2 has trouble using a local document class and layout.  Lyx 
1.3.7 
from ubuntu dapper has no problem using the same document class and layout.

to reproduce:

latex document class:
http://www.acm.org/sigs/pubs/proceed/sig-alternate.cls
in
~/texmf/tex/latex/base/sig-alternate.cls

lyx layout:
http://www.ece.iit.edu/~jgrad/lyx/layouts/sig-alternate.layout
in
.lyx/layouts/sig-alternate.layout

(run texhash, reconfigure and restart lyx)

In Lyx-1.4.3:
1. Create new document.
File-New
2. Change document class.
Document-Settings...-Document Class-Document Class: article 
(sig-alternate)
3. OK

Lyx window says:
Lyx: Could not change class
The document could not be converted into the document class sig-alternate.

Lyx console says:

New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/26881qQW5mf]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/268813rzEF9]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/268816SCG43]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
   


No problem in Lyx 1.3.7 from ubuntu dapper:
1. Create new document.
File-New
2. Change document class.
Layout-Document...-Layout-Document Class: article (sig-alternate)
3. OK

Can anybody else test this on their distribution?  I want to check 
whether 
this is a Debian problem or a Lyx problem.

Thanks!
C.


Re: missing class files after installation (newbie question)

2007-01-09 Thread John Isner

Thank you very much for your help.  I followed your directions and it solved
my problem.

On 1/9/07, Uwe Stöhr [EMAIL PROTECTED] wrote:


John Isner schrieb:

 I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults.
 The
 installation was completely normal -- no errors or warnings. However
when I
 open the Introduction (Help-Introduction) I get an alert

 Document class not available. The document uses a missing TeX class
 bookhttp://moodle.org/mod/data/view.php?d=13rid=319.
 LyX will not be able to produce output.

Use in MiKTeX's settings the menu Install packages on the fly Yes and
then open an internet connection. Now reconfigure LyX and all missing
packages should be installed.

regards Uwe



auto-insert of branch names in exported filenames

2007-01-09 Thread Sven Schreiber
Hi,
branches are very useful and I have used them alot recently. What I am
missing is the possibility to have the names of active branches
automatically inserted into the file names of exported formats.

Example: in a file named "exam.lyx" I have two branches, "verA" and
"verB". When verA is active, I would like to get something like
"exam_verA.pdf" automatically.

Or is it possible already?

Thanks,
Sven


how to type in accented character in text mode

2007-01-09 Thread Michael Chen

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?

--
Michael Chen


how to type in accented character in text mode?

2007-01-09 Thread Michael Chen

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?

--
Michael Chen


--
Michael Chen
PhD student
Northwestern University
2145 Sheridan Road IEMS
Evanston, IL 60208-3119
Phone: 847.467.2043
Fax: 847.491.8005
Web: http://users.iems.northwestern.edu/~mchen/


missing class files after installation (newbie question)

2007-01-09 Thread John Isner

I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. The
installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help->Introduction) I get an alert

Document class not available. The document uses a missing TeX class
"book."
LyX will not be able to produce output.

I get similar alerts when I open other pre-installed documents (e.g.,
missing TeX class "scrbook" when I open the User's Guide).

I checked C:\Program Files\LyX114\Resources\tex. It contains only four .cls
files (and corresponding .sty files)

broadway.cls
cv.cls
hollywood.cls
revtext.cls

(I assume the missing files should be here).

After reading the Lyx FAQ, I went to www.tug.org and downloaded book.cls and
book.sty into my tex directory. I also did Tools->Reconfigure and restarted
Lyx. But the I still get the missing class message!


Re: missing class files after installation (newbie question)

2007-01-09 Thread Paul A. Rubin

John Isner wrote:
I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. 
The

installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help->Introduction) I get an alert

Document class not available. The document uses a missing TeX class
"book."
LyX will not be able to produce output.

I get similar alerts when I open other pre-installed documents (e.g.,
missing TeX class "scrbook" when I open the User's Guide).

I checked C:\Program Files\LyX114\Resources\tex. It contains only four .cls
files (and corresponding .sty files)

broadway.cls
cv.cls
hollywood.cls
revtext.cls

(I assume the missing files should be here).


No.  LyX provides class files for a small number of classes that I think 
are not commonly included in standard LaTeX distributions.  Common ones 
like book.cls should be provided by the LaTeX distro.


After reading the Lyx FAQ, I went to www.tug.org and downloaded book.cls 
and

book.sty into my tex directory. I also did Tools->Reconfigure and restarted
Lyx. But the I still get the missing class message!



You need to update your TeX file database, then run Tools->Reconfigure 
and restart LyX.  How you update the database is somewhat 
distribution-specific.  If you use MikTeX, run the MikTeX Settings 
application from the start menu and click "Refresh FNDB".


For that matter, if you use MikTeX, it's generally a better idea to let 
MikTeX install packages (run Browse Packages from the start menu), 
unless you are installing something not supported by MikTeX.


/Paul




Re: how to type in accented character in text mode?

2007-01-09 Thread Paul A. Rubin

Michael Chen wrote:

hi, there, I believe there is a better way than using Tex code to type
in accented character in text mode. Any idea?



Go to Tools->Preferences...->Look and feel->Keyboard, check "Use 
keyboard map", then  browse to the Resources/kbd folder and pick a 
keyboard (or roll your own).  Save, exit and restart, and you can type 
in accented characters as two-key combinations.  For instance, on my 
system (Win XP) using the 'american' keyboard, hitting ` and a in 
succession gives the grave a composition.  Hitting ' followed by e gives 
 acute e, etc.  Hitting the "dead key" (the accent) twice gives the key 
symbol itself (so '' gives a single quote), while hitting the dead key 
followed by a space gives the accent alone.


The keymap files are text files, so you can browse them to see which one 
maps keys the way you like.  You can modify one to your taste.  See 
section 4.3 of the Customization help file for more info.


/Paul



Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread lamikr

> As noted elsewhere, this violates the "what you see is what you meant"
> philosophy underlying LyX.  That said, to string out multiple spaces
> in a row, you can just enter hard spaces (C-space); to enter a bunch
> of blank lines (that won't collapse), use C-enter.
Thanks, I did not know these hard spaces and hard lines before. But
actually I think I was searching something opposite, like "soft lines"
which would be visible in the editor but not anymore in the final text.
Buf this was just an idea I got to my mind while writing text.
If it is against the fundamental ideas of Lyx, I can live without it. :-)

Mika


Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread Martin Vermeer
On Tue, Jan 09, 2007 at 07:19:20PM +0100, Abdelrazak Younes wrote:
> lamikr wrote:
> 
> >And as I see the Lyx editor anyway as a smart code editor for Latex,  I
> >would not think it being against the WYSIWYM principles Lyx try to
> >follow if it would allow writers to set some more "air" to their text in
> >the editor side. Instead I see that Lyx would just came smarter than
> >normal editors as it would allow the writing of latex "source code" in
> >Lyx editor a more flexible way while still guarantee the coherent output
> >
> >
> >and that could actually be a
> >
> >
> >KILLER  FEATURE
> >
> >
> >for some more artistic persons than I to assist them to get their
> >keyboard, ideas and text fly faster than the screen can scroll :-)
 
... 
 
> PS: this kind of discussion is best suited to the users' list. Please 
> continue that there (and don't reply to all).

Actually I remember there was (and still is in mathed) the feature that
multiple presses of space cycle through different space widths. The same
could be done for vertical space. I don't think this would go against
the LyX philosophy, and might make Mika happy.

- Martin



pgp9SLk4IcxIc.pgp
Description: PGP signature


Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread christian . ridderstrom

On Wed, 10 Jan 2007, lamikr wrote:

Thanks, I did not know these hard spaces and hard lines before. But 
actually I think I was searching something opposite, like "soft lines" 
which would be visible in the editor but not anymore in the final text. 
Buf this was just an idea I got to my mind while writing text. If it is 
against the fundamental ideas of Lyx, I can live without it. :-)


Please bring up the question on the users' list. Others might have ideas 
about it. I think I understand what you want, but it's probably better to 
first discuss it on the other list.


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Allowing multiple empty lines and spaces in the Lyx editor...

2007-01-09 Thread christian . ridderstrom

On Wed, 10 Jan 2007, [EMAIL PROTECTED] wrote:


On Wed, 10 Jan 2007, lamikr wrote:


 Thanks, I did not know these hard spaces and hard lines before. But
 actually I think I was searching something opposite, like "soft lines"
 which would be visible in the editor but not anymore in the final text.
 Buf this was just an idea I got to my mind while writing text. If it is
 against the fundamental ideas of Lyx, I can live without it. :-)


Please bring up the question on the users' list. Others might have ideas 
about it. I think I understand what you want, but it's probably better 
to first discuss it on the other list.


Oops - my mistake. I didn't notice this was cross-posted or something.

Anyway... if I understand you correctly, you are looking for something 
that inserts visual space only on the screen in LyX in order to help your 
thinking process?  Did I get that right?


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-09 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 8, Helge Hafting did say:

> Joe(theWordy)Philbrook wrote:
> > Question 1 of 3
> > 
> > Why is the header/footer suppressed on page 1? That is how can I get
> > headers and/or footers to output on the first page???

> Because you changed the "page style" for normal pages,
> and the first page isn't normal in this case.

Yeah that figures...

> Usually, the first page is either a chapter page (if
> your document style support chapters) or a title
> page. Lyx does not suppot changing the chapter/title
> page styles directly.  You may use ERT
> to set \chapterpagestyle to fancy if you wish.
> Note that some document styles don't use
> chapterpagestyle or titlepagestyle, they have other ways.
> 
> Usually, \thispagestyle{fancy} will do the trick though.
> Make sure you put this ERT somewhere on the page you want changed.

Thanks for the prompt reply and the informative suggestion. However I
get an error message when I try this. As it happens the document I used
to try to do this with says:
\textclass letter

But when I try to insert either chapterpagestyle or thispagestyle
by, for example, changing this:

\layout Opening

Dear Jim,
\layout Standard

Well Hello Jim.


To this:

\layout Opening

Dear Jim,
\layout Standard

\thispagestyle{fancy}

Well Hello Jim.


What I get on opening the doc with lyx is An error pop-up that says:

"Textclass Loading Error!"

"Encountered unknown token
When reading" [filename]

Since the only place in my document's control codes I see braces "{}"
I also tried:

\thispagestyle fancy

With the same results (sigh!)

Any other suggestions?

> > Question 2 of 3
> > 
> > Evidently "\rhead{Page \thepage}" yields: "Page $currentpage"
> > But how would I get "Page $currentpage of $pagecount"???
> > 
> > That is "page 1 of 3", "page 2 of 3", "Page 3 of 3" etc...

> Simple approach: put a label at the end of the document.
> Then, use a reference to that label for getting the last page number.
> There are also latex packages for doing this sort of thing, but no
> support in LyX. Try this in the preamble:
> \lhead{My pagenumber: \thepage{} of \pageref{last}}

\size huge
THANK YOU VERY MUCH!
\size default

This seams to work as long as I use the exact label name I put at the
end of the document in my case that's:
\lhead{My pagenumber: \thepage{} of \pageref{LastPage}}

> > Question 3 of 3
> > 
> > Is there a list of {key words?} that can be used to insert values into
> > header/footers such as
> > 
> > /thepage   current output page number
> > /today Today's date
> > etc...

> Sure, any latex reference manual should do.  Also, search
> the web. The LyX homepage have some pointers.

So using the acronym you used above as a guide, I'm guessing I
might find what I'm looking for if I google:

latex ERT

Worth a try anyway.

Thanks again!

   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpChMRZ/61mwhY94RApo6AKCJtdqglzGj73037bNMqxhM0vv2GQCfcyS5
BqWyzhoSxjO+EDi/hBTultY=
=3nu9
-END PGP SIGNATURE-
-- 
|  ~^~   ~^~
|  Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ <<[EMAIL PROTECTED]>>



Re: missing class files after installation (newbie question)

2007-01-09 Thread Uwe Stöhr

John Isner schrieb:

I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults. 
The

installation was completely normal -- no errors or warnings. However when I
open the Introduction (Help->Introduction) I get an alert

Document class not available. The document uses a missing TeX class
"book."
LyX will not be able to produce output.


Use in MiKTeX's settings the menu "Install packages on the fly" "Yes" and then open an internet connection. Now reconfigure LyX and all missing 
packages should be installed.


regards Uwe


lyx 1.4.3 has trouble using local document class (cls) and layout: works in 1.3.7

2007-01-09 Thread C Sights
Hi,
I'm using Lyx on debian...
Lyx 1.4.3-2 has trouble using a local document class and layout.  Lyx 
1.3.7 
from ubuntu dapper has no problem using the same document class and layout.

to reproduce:

latex document class:
http://www.acm.org/sigs/pubs/proceed/sig-alternate.cls
in
~/texmf/tex/latex/base/sig-alternate.cls

lyx layout:
http://www.ece.iit.edu/~jgrad/lyx/layouts/sig-alternate.layout
in
.lyx/layouts/sig-alternate.layout

(run texhash, reconfigure and restart lyx)

In Lyx-1.4.3:
1. Create new document.
File->New
2. Change document class.
Document->Settings...->Document Class->Document Class: article 
(sig-alternate)
3. OK

Lyx window says:
Lyx: Could not change class
The document could not be converted into the document class sig-alternate.

Lyx console says:

New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/26881qQW5mf]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/268813rzEF9]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 518 of 
file /tmp/lyx_tmpdir268815iBA3q/268816SCG43]
Error reading `~/.lyx/layouts/sig-alternate.layout'
(Check `sig-alternate')
Check your installation and try Options/Reconfigure...
   


No problem in Lyx 1.3.7 from ubuntu dapper:
1. Create new document.
File->New
2. Change document class.
Layout->Document...->Layout->Document Class: article (sig-alternate)
3. OK

Can anybody else test this on their distribution?  I want to check 
whether 
this is a Debian problem or a Lyx problem.

Thanks!
C.


Re: missing class files after installation (newbie question)

2007-01-09 Thread John Isner

Thank you very much for your help.  I followed your directions and it solved
my problem.

On 1/9/07, Uwe Stöhr <[EMAIL PROTECTED]> wrote:


John Isner schrieb:

> I successfully installed Lyx 1.4.3-5 on Windows, accepting all defaults.
> The
> installation was completely normal -- no errors or warnings. However
when I
> open the Introduction (Help->Introduction) I get an alert
>
> Document class not available. The document uses a missing TeX class
> "book."
> LyX will not be able to produce output.

Use in MiKTeX's settings the menu "Install packages on the fly" "Yes" and
then open an internet connection. Now reconfigure LyX and all missing
packages should be installed.

regards Uwe