Re: Table cell alignment

2004-10-26 Thread G. Milde
On 25.10.04, Mark Carroll wrote:
 How can I adjust the vertical alignment of the contents of table cells? I
 can't get the relevant bits of dialog box not to be grayed out, 

You have to set a fixed width for the column if you want vertical alignment.
This is a LaTeX restriction, that is reflected by the greying out in LyX.

PS Sometimes I got problems when changing values and clicking in another
table cell -- changes got lost. Frequent clicking on the Apply might
help here...

Günter

-- 
G.Milde web.de



Re: Lyx and CVS

2004-10-26 Thread roland schmitz
Hi Kayvan,


 Put the following in your LaTeX preamble:
 % RCS style.
 \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.}
 [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}}
 
 Then, in your document (or in your preamble), do:
 \RCSdef $Revision$
 \RCSdef $Date$
 
 Now, you can use \RCSRevision or \RCSDate in your document (in a 
 LaTeX ERT inset).

can i use this code similar with CVS?

Roland

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz

Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD
 Jetzt anmelden und testen http://www.gmx.net/de/go/mail 



Binding special keys

2004-10-26 Thread Pelle Nilsson
Hi!

I have an Internet/Multimedia keyboard, and I want to bind the
Back/Forward buttons to undo and redo. I have my xmodmap set up
correctly so that the keys generates keysyms XF86Back and
XF86Forward. I can bind them in other apps, for example, in xemacs the
following work:

(global-set-key [XF86Back] 'undo)
(global-set-key [XF86Forward] 'redo)


But in LyX, the following does not work:

\bind XF86Back   undo
\bind XF86Forwardredo


What am I doing wrong?


-- 
Pelle Nilsson [EMAIL PROTECTED]
Älvängsvägen 3
172 37 Sundbyberg
08-764 59 58
073-63 800 80


Using listings package

2004-10-26 Thread Michael Creel
Hello,
I'm using the listings package to display source code in a Lyx document. See
http://www.texnik.de/listings/listings.phtml, for example.

The way I use this is to open an ERT box that holds

\begin_inset ERT
status Open

\layout Standard

\backslash 
begin{lstlisting}[language=Octave,%
\newline 
 alsolanguage=,%
\newline 
 label=sql:label2,caption=caption2]
\newline 

\layout Standard

FILE INSERTED HERE

\backslash 
end{lstlisting}
\end_inset 



Then I use INSERT - INSERT_FILE - ASCII As Lines to insert a file in the
spot noted above. The problem is that the lines of the inserted file don't
have a \newline at their ends, which results in the code display being
doublespaced rather than single as in the original. I can add them
manually, but is there a way to make this automatic.

Thanks in advance, Michael




Re: Lyx and CVS

2004-10-26 Thread Todd Denniston
roland schmitz wrote:
 
 Hi Kayvan,
 
  Put the following in your LaTeX preamble:
  % RCS style.
  \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.}
  [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}}
 
  Then, in your document (or in your preamble), do:
  \RCSdef $Revision$
  \RCSdef $Date$
 
  Now, you can use \RCSRevision or \RCSDate in your document (in a
  LaTeX ERT inset).
 
 can i use this code similar with CVS?
 
 Roland
 
Yes.
https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97
CVS uses rcs (actually has it built in now) as its underlying system, so all
the RCS key words work as listed.
It is CVS that I use, and when I tested Kayvan's advice against my repository,
I found it working beautifully.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


Re: Lyx and CVS

2004-10-26 Thread roland schmitz
Hi Todd, hi list,

 https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97
 CVS uses rcs (actually has it built in now) as its underlying system, so
 all
 the RCS key words work as listed.
 It is CVS that I use, and when I tested Kayvan's advice against my
 repository,
 I found it working beautifully.

great, i'll use it this weekend.

Thanx

Roland

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz

Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD
 Jetzt anmelden und testen http://www.gmx.net/de/go/mail 



Classes or packages suitable for solutions of texts/exams

2004-10-26 Thread Paul Smith
Dear All

Does somebody here know about classes or packages suitable to produce
resolutions for academic tests and exams?

Thanks in advance,

Paul


Re: Classes or packages suitable for solutions of texts/exams

2004-10-26 Thread Kenward Vaughan
On Tue, Oct 26, 2004 at 05:16:12PM +0100, Paul Smith wrote:
 Dear All
 
 Does somebody here know about classes or packages suitable to produce
 resolutions for academic tests and exams?
 
 Thanks in advance,
 
 Paul

Depends on what you want.  I simply use the article class to create
exams, with a little extra stuff to form more elaborate enumerated
environments for Scantron use with the M/C parts of tests.

a simple example: 
http://www2.bc.cc.ca.us/kvaughan/chem11/E2_Practice.pdf

There is an exam class which does more specialized stuff (answer keys,
multiple versions, etc., etc.).  I don't recall whether it's called
exam or some other name.  You can also search CTAN for other
possibilities.

HTH,

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Table cell alignment

2004-10-26 Thread G. Milde
On 25.10.04, Mark Carroll wrote:
 How can I adjust the vertical alignment of the contents of table cells? I
 can't get the relevant bits of dialog box not to be grayed out, 

You have to set a fixed width for the column if you want vertical alignment.
This is a LaTeX restriction, that is reflected by the greying out in LyX.

PS Sometimes I got problems when changing values and clicking in another
table cell -- changes got lost. Frequent clicking on the Apply might
help here...

Günter

-- 
G.Milde web.de



Re: Lyx and CVS

2004-10-26 Thread roland schmitz
Hi Kayvan,


 Put the following in your LaTeX preamble:
 % RCS style.
 \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.}
 [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}}
 
 Then, in your document (or in your preamble), do:
 \RCSdef $Revision$
 \RCSdef $Date$
 
 Now, you can use \RCSRevision or \RCSDate in your document (in a 
 LaTeX ERT inset).

can i use this code similar with CVS?

Roland

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz

Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD
 Jetzt anmelden und testen http://www.gmx.net/de/go/mail 



Binding special keys

2004-10-26 Thread Pelle Nilsson
Hi!

I have an Internet/Multimedia keyboard, and I want to bind the
Back/Forward buttons to undo and redo. I have my xmodmap set up
correctly so that the keys generates keysyms XF86Back and
XF86Forward. I can bind them in other apps, for example, in xemacs the
following work:

(global-set-key [XF86Back] 'undo)
(global-set-key [XF86Forward] 'redo)


But in LyX, the following does not work:

\bind XF86Back   undo
\bind XF86Forwardredo


What am I doing wrong?


-- 
Pelle Nilsson [EMAIL PROTECTED]
Älvängsvägen 3
172 37 Sundbyberg
08-764 59 58
073-63 800 80


Using listings package

2004-10-26 Thread Michael Creel
Hello,
I'm using the listings package to display source code in a Lyx document. See
http://www.texnik.de/listings/listings.phtml, for example.

The way I use this is to open an ERT box that holds

\begin_inset ERT
status Open

\layout Standard

\backslash 
begin{lstlisting}[language=Octave,%
\newline 
 alsolanguage=,%
\newline 
 label=sql:label2,caption=caption2]
\newline 

\layout Standard

FILE INSERTED HERE

\backslash 
end{lstlisting}
\end_inset 



Then I use INSERT - INSERT_FILE - ASCII As Lines to insert a file in the
spot noted above. The problem is that the lines of the inserted file don't
have a \newline at their ends, which results in the code display being
doublespaced rather than single as in the original. I can add them
manually, but is there a way to make this automatic.

Thanks in advance, Michael




Re: Lyx and CVS

2004-10-26 Thread Todd Denniston
roland schmitz wrote:
 
 Hi Kayvan,
 
  Put the following in your LaTeX preamble:
  % RCS style.
  \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.}
  [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}}
 
  Then, in your document (or in your preamble), do:
  \RCSdef $Revision$
  \RCSdef $Date$
 
  Now, you can use \RCSRevision or \RCSDate in your document (in a
  LaTeX ERT inset).
 
 can i use this code similar with CVS?
 
 Roland
 
Yes.
https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97
CVS uses rcs (actually has it built in now) as its underlying system, so all
the RCS key words work as listed.
It is CVS that I use, and when I tested Kayvan's advice against my repository,
I found it working beautifully.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


Re: Lyx and CVS

2004-10-26 Thread roland schmitz
Hi Todd, hi list,

 https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97
 CVS uses rcs (actually has it built in now) as its underlying system, so
 all
 the RCS key words work as listed.
 It is CVS that I use, and when I tested Kayvan's advice against my
 repository,
 I found it working beautifully.

great, i'll use it this weekend.

Thanx

Roland

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz

Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD
 Jetzt anmelden und testen http://www.gmx.net/de/go/mail 



Classes or packages suitable for solutions of texts/exams

2004-10-26 Thread Paul Smith
Dear All

Does somebody here know about classes or packages suitable to produce
resolutions for academic tests and exams?

Thanks in advance,

Paul


Re: Classes or packages suitable for solutions of texts/exams

2004-10-26 Thread Kenward Vaughan
On Tue, Oct 26, 2004 at 05:16:12PM +0100, Paul Smith wrote:
 Dear All
 
 Does somebody here know about classes or packages suitable to produce
 resolutions for academic tests and exams?
 
 Thanks in advance,
 
 Paul

Depends on what you want.  I simply use the article class to create
exams, with a little extra stuff to form more elaborate enumerated
environments for Scantron use with the M/C parts of tests.

a simple example: 
http://www2.bc.cc.ca.us/kvaughan/chem11/E2_Practice.pdf

There is an exam class which does more specialized stuff (answer keys,
multiple versions, etc., etc.).  I don't recall whether it's called
exam or some other name.  You can also search CTAN for other
possibilities.

HTH,

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Table cell alignment

2004-10-26 Thread G. Milde
On 25.10.04, Mark Carroll wrote:
> How can I adjust the vertical alignment of the contents of table cells? I
> can't get the relevant bits of dialog box not to be grayed out, 

You have to set a fixed width for the column if you want vertical alignment.
This is a LaTeX restriction, that is reflected by the greying out in LyX.

PS Sometimes I got problems when changing values and clicking in another
table cell -- changes got lost. Frequent clicking on the Apply might
help here...

Günter

-- 
G.Milde web.de



Re: Lyx and CVS

2004-10-26 Thread roland schmitz
Hi Kayvan,


> Put the following in your LaTeX preamble:
> % RCS style.
> \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.}
> [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}}
> 
> Then, in your document (or in your preamble), do:
> \RCSdef $Revision$
> \RCSdef $Date$
> 
> Now, you can use \RCSRevision or \RCSDate in your document (in a 
> LaTeX ERT inset).

can i use this code similar with CVS?

Roland

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz

Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD
 Jetzt anmelden und testen http://www.gmx.net/de/go/mail 



Binding special keys

2004-10-26 Thread Pelle Nilsson
Hi!

I have an Internet/Multimedia keyboard, and I want to bind the
Back/Forward buttons to undo and redo. I have my xmodmap set up
correctly so that the keys generates keysyms XF86Back and
XF86Forward. I can bind them in other apps, for example, in xemacs the
following work:

(global-set-key [XF86Back] 'undo)
(global-set-key [XF86Forward] 'redo)


But in LyX, the following does not work:

\bind "XF86Back"   "undo"
\bind "XF86Forward""redo"


What am I doing wrong?


-- 
Pelle Nilsson <[EMAIL PROTECTED]>
Älvängsvägen 3
172 37 Sundbyberg
08-764 59 58
073-63 800 80


Using listings package

2004-10-26 Thread Michael Creel
Hello,
I'm using the listings package to display source code in a Lyx document. See
http://www.texnik.de/listings/listings.phtml, for example.

The way I use this is to open an ERT box that holds

\begin_inset ERT
status Open

\layout Standard

\backslash 
begin{lstlisting}[language=Octave,%
\newline 
 alsolanguage=,%
\newline 
 label=sql:label2,caption=caption2]
\newline 

\layout Standard



\backslash 
end{lstlisting}
\end_inset 



Then I use INSERT -> INSERT_FILE -> ASCII As Lines to insert a file in the
spot noted above. The problem is that the lines of the inserted file don't
have a \newline at their ends, which results in the code display being
doublespaced rather than single as in the original. I can add them
manually, but is there a way to make this automatic.

Thanks in advance, Michael




Re: Lyx and CVS

2004-10-26 Thread Todd Denniston
roland schmitz wrote:
> 
> Hi Kayvan,
> 
> > Put the following in your LaTeX preamble:
> > % RCS style.
> > \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.}
> > [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}}
> >
> > Then, in your document (or in your preamble), do:
> > \RCSdef $Revision$
> > \RCSdef $Date$
> >
> > Now, you can use \RCSRevision or \RCSDate in your document (in a
> > LaTeX ERT inset).
> 
> can i use this code similar with CVS?
> 
> Roland
> 
Yes.
https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97
CVS uses rcs (actually has it built in now) as its underlying system, so all
the RCS key words work as listed.
It is CVS that I use, and when I tested Kayvan's advice against my repository,
I found it working beautifully.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


Re: Lyx and CVS

2004-10-26 Thread roland schmitz
Hi Todd, hi list,

> https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97
> CVS uses rcs (actually has it built in now) as its underlying system, so
> all
> the RCS key words work as listed.
> It is CVS that I use, and when I tested Kayvan's advice against my
> repository,
> I found it working beautifully.

great, i'll use it this weekend.

Thanx

Roland

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz

Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD
 Jetzt anmelden und testen http://www.gmx.net/de/go/mail 



Classes or packages suitable for solutions of texts/exams

2004-10-26 Thread Paul Smith
Dear All

Does somebody here know about classes or packages suitable to produce
resolutions for academic tests and exams?

Thanks in advance,

Paul


Re: Classes or packages suitable for solutions of texts/exams

2004-10-26 Thread Kenward Vaughan
On Tue, Oct 26, 2004 at 05:16:12PM +0100, Paul Smith wrote:
> Dear All
> 
> Does somebody here know about classes or packages suitable to produce
> resolutions for academic tests and exams?
> 
> Thanks in advance,
> 
> Paul

Depends on what you want.  I simply use the article class to create
exams, with a little extra stuff to form more elaborate enumerated
environments for Scantron use with the M/C parts of tests.

a simple example: 
http://www2.bc.cc.ca.us/kvaughan/chem11/E2_Practice.pdf

There is an exam class which does more specialized stuff (answer keys,
multiple versions, etc., etc.).  I don't recall whether it's called
exam or some other name.  You can also search CTAN for other
possibilities.

HTH,

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca