Ninja mode

2010-02-22 Thread Niko Schwarz
Hi y'all,

what helped popularize git in my research group was undoubtably to
ninja into git using git-svn, that is: people like I could switch from
svn to git, and it wouldn't force others to change their workflows.

I find it quite a pity that lyx has no ninja mode. That is: a mode of
lyx that would allow me to change a versioned latex document from
within lyx, which stores its meta information in a separate .lyxextra
file, but exports itself constantly to the shared .tex file, such that
the .tex file and lyx are always in sync.

I know I could import and export manually all the time, and
conceptually, that would (seriously!) be good enough for me. But it's
too much pressing buttons  to be productive. Does anyone do it that
way?

How do you ninja lyx into your research groups?

Cheers,

Niko

-- 
twitter.com/nes1983


Re: inserting line numbers in lyx document

2010-02-22 Thread James C. Sutherland

On Feb 21, 2010, at 9:57 PM, Willis Gwenzi wrote:

 I am using Lyx 1.6.3 for my thesis. For ease of editing I would like to
 insert line numbers throughout the document. Any suggestions on how to do
 it? The enumerate function cannot do it because it inserts the number only
 at the sart of the section not on every line.
 
 Willis
 
Add
\usepackage{lineno}
\linenumbers
to your preamble.


Getting started with LyX

2010-02-22 Thread Mike Ingram
To whom it may concern:

I am attempting to go through the Getting Started with LyX Tutorial.I 
am getting these errors from working through 2.1.1 and trying to display 
in dvi.  What is going on and how do I correct?




Michael Ingram | Metrology Engineer 
DOW Advanced Materials  |  The Dow Chemical Company
451 Bellevue Road | Newark, DE 19713
phone:+1.302.366.0500 ext. 2545  |  email: ming...@rohmhaas.com
image/gif

Re: Getting started with LyX

2010-02-22 Thread Uwe Stöhr

Mike Ingram schrieb:

I am attempting to go through the Getting Started with LyX Tutorial.   
 I am getting these errors from working through 2.1.1 and trying to 
display in dvi.  What is going on and how do I correct?


What have you done? You opened the Tutorial via the menu Help-Tutorial 
and the pressed the DVI button?

Or have you created a new document and then pressed the DVI button?

If the latter is the case can you please send the LyX file you created?

Besides this, what is your OS and what LyX version are you using?

regards Uwe


Re: Getting started with LyX

2010-02-22 Thread Uwe Stöhr

Mike Ingram schrieb:

I created a new document from File, New.  Then I typed in This is my 
first LyX document!.  I then did a Save As.  From there I tried to view 
in DVI.  When I try to view I get the errors.


The errors occur because you have some special (in this case invalid) 
LaTeX-code. You see this when you look in the menu 
Document-Settings-LaTeX preamble.


It is strange that you get this code by creating a new file. The only 
reason I can think of is that you or another user on your PC (maybe 
accidentally) saved a special LyX file as default for all new documents. 
To fix this, open the attached LyX file in LyX and use the menu 
Document-Settings and press there the button named Save as Document 
Defaults.
Afterwards close LyX, restart it, create a new file and have a look if 
it then works.


regards Uwe


newfile1.lyx
Description: application/lyx


Re: Getting started with LyX

2010-02-22 Thread Mike Ingram
Thank you very much.  It now works correctly.


Michael Ingram | Metrology Engineer 
DOW Advanced Materials  |  The Dow Chemical Company
451 Bellevue Road | Newark, DE 19713
phone:+1.302.366.0500 ext. 2545  |  email: ming...@rohmhaas.com




Uwe Stöhr uwesto...@web.de 
Sent by: uwesto...@web.de
02/22/2010 10:58 AM


To
Mike Ingram ming...@rohmhaas.com
cc
LyX-users lyx-users@lists.lyx.org
Subject
Re: Getting started with LyX






Mike Ingram schrieb:

 I created a new document from File, New.  Then I typed in This is my 
 first LyX document!.  I then did a Save As.  From there I tried to view 

 in DVI.  When I try to view I get the errors.

The errors occur because you have some special (in this case invalid) 
LaTeX-code. You see this when you look in the menu 
Document-Settings-LaTeX preamble.

It is strange that you get this code by creating a new file. The only 
reason I can think of is that you or another user on your PC (maybe 
accidentally) saved a special LyX file as default for all new documents. 
To fix this, open the attached LyX file in LyX and use the menu 
Document-Settings and press there the button named Save as Document 
Defaults.
Afterwards close LyX, restart it, create a new file and have a look if 
it then works.

regards Uwe



newfile1.lyx
Description: Binary data


Re: acknowledgement

2010-02-22 Thread Sajjad
On Sun, Feb 21, 2010 at 9:18 PM, Manoj Rajagopalan rma...@umich.edu wrote:


 You could copy the layout file corresponding to your documentclass, modify
 that changing your fontsize etc., possibly introduce a new section and map
 it
 to the appropriate latexname, and use that as your layout. This is quite
 simple and the learning curve should take you a couple of days at most.


Could you please expalin which layout do i have to copy and where to?


 Before you do this, check to see if your document class provides support
 for
 acknowledgements, directly or indirectly. With the layout file approach you
 might be able to create an Acknowledgements section which is a combination
 of
 a section with custom formatting info (like heading level, style,  etc.)
 which.


I am using the report document class to write my thesis.


 One of the lyx help manuals (Customization?) documents this procedure very
 well.


Link to  that manual will be very helpful, since there are many version of
manuals


 -- Manoj



Regards
Sajjad


  On Sunday 21 February 2010 12:09:14 pm Sajjad wrote:
  Hello forum,
 
  I am about to finish my thesis work and i am stuck with some issues in
 LyX.
 
  One of them is writing Acknowledgement section.
 
  I see that there is no separate environment for this.
 
 
  I would like to have Acknowledgement right after Abstract and like to
 have
  the same font size as Abstract heading and centralized.
 
 
  Any hint?
 
 
  Regards
  Sajjad




Re: inserting a Latex equation

2010-02-22 Thread Bernd Schubert
Paul A. Rubin wrote:

 Bernd Schubert wrote:
 Bernd Schubert wrote:
 
 Hi all,

 I'm presently coping lots of tex equations into lyx and usually this
 works great, but this one drives me nuts:

 \begin{align*}
 {\left( {\Delta ^{(1)} } \right)^2 = }
+ \frac{1} {2}\left( {k^2  + \lambda ^2 } \right)\left( {Q_1^2  +
 Q_2^2 } \right)  \\
+ \frac{1} {2}\left( {k^2  - \lambda ^2 } \right)\left( {Q_1^2  -
 Q_2^2 } \right)\cos 2\gamma \\
+ \left( {k^2  - \lambda ^2 } \right)Q_1 Q_2 \sin 2\gamma
 \end{align*}

 As with the other formulas I just copies it into the
 numbered formula field, but this time it add an additional backslash,
 so the correspondig tex output is

 \begin{equation}
 \backslash begin \{align*}...

 So it didn't recognize the equations and escaped all keywords with
 backslashes, hence even in compiled output the formula is displayed
 as text...

 Any ideas?
 
 Hmm well, I got it, by only pasting everything between
 \begin{align*}... \end{align*}, and then by manually making a multiline
 alighned formula out of it.
 Still would be better, if it would recognize the formula on its own or at
 least if it would not escape everything and simply keep the tex code.
 
 
 If you copy everything and paste it directly into a document as text,
 then highlight it all and hit ctrl-M (or click Insert  Math  Inline
 Formula or, in this case at least, Insert  Math  Display Formula), LyX
 will convert it to something close to what is intended.  The only flaw I
 see here is that there are a number of what I think are unnecessary
 braces retained.  You might have to delete those manually.


Thanks Paul, Guenter! That works perfectly fine!


Thanks again,
Bernd



Re: marking text

2010-02-22 Thread Bernd Schubert
Pavel Sanda wrote:

 Bernd Schubert wrote:
 This is with lyx-1.6.4 from Ubuntu karmic. I'm a bit surprised about
 that, as I would have thought that marking text is a basic QT feature,
 maybe I'm wrong?
 
 do you use some clipboard manager?
 pavel

Aaaarg, the gnome clipboard manager does that. Thanks! Around the same time 
I started to work with lyx I also switched from klipper to glipper and 
didn't notice it pays bad games with me. Didn't find an option to disable 
that feature yet, so switched back to klipper for now, which does't cause 
this trouble.


Thanks a lot,
Bernd



Re: LinguistLyx: label on group of subexamples

2010-02-22 Thread Jürgen Spitzmüller
Petr Šimon wrote:
 (I am not on the list, please CC)
 Hello,
 would it be possible to change the subexamples so that a group label
 is provided. In fact would it be possible to automatically add a label
 for each subexample (just empty label with prefix such as ex: ) and
 one for the group?

I do not quite understand what you want, but you can redefine the subexamples 
environment. The original definiton is:

\newenvironment{subexample}{%
\begin{example}\begin{enumerate}[leftmargin=1.7em]
\renewcommand\theenumi{\alph{enumi}}
\renewcommand\labelenumi{(\theenumi)}
\renewcomman...@enumi{\theequation\,}}%
{\end{enumerate}\end{example}}


 Many thanks
 Petr


Jürgen


Re: acknowledgement

2010-02-22 Thread Manoj Rajagopalan

Most document classes have a layout file by the same name. There is a 
report.layout in the libs/ subdir of your lyx installation. On Linux, this 
would be, for example, /usr/share/lyx/libs/report.layout - I don't know where 
this resides on windows (try a find for this file name).

You can copy this layout to a local directory and modify it and then supply 
this from Document-Settings...-Document class-Local layout ...

The Customization manual can be invoked from the LyX Help menu.

cheers!
Manoj



On Monday 22 February 2010 12:31:20 pm Sajjad wrote:
 On Sun, Feb 21, 2010 at 9:18 PM, Manoj Rajagopalan rma...@umich.edu wrote:
  You could copy the layout file corresponding to your documentclass,
  modify that changing youxr fontsize etc., possibly introduce a new section
  and map it
  to the appropriate latexname, and use that as your layout. This is quite
  simple and the learning curve should take you a couple of days at most.

 Could you please expalin which layout do i have to copy and where to?

  Before you do this, check to see if your document class provides support
  for
  acknowledgements, directly or indirectly. With the layout file approach
  you might be able to create an Acknowledgements section which is a
  combination of
  a section with custom formatting info (like heading level, style,  etc.)
  which.

 I am using the report document class to write my thesis.

  One of the lyx help manuals (Customization?) documents this procedure
  very well.

 Link to  that manual will be very helpful, since there are many version of
 manuals

  -- Manoj

 Regards
 Sajjad

   On Sunday 21 February 2010 12:09:14 pm Sajjad wrote:
   Hello forum,
  
   I am about to finish my thesis work and i am stuck with some issues in
 
  LyX.
 
   One of them is writing Acknowledgement section.
  
   I see that there is no separate environment for this.
  
  
   I would like to have Acknowledgement right after Abstract and like to
 
  have
 
   the same font size as Abstract heading and centralized.
  
  
   Any hint?
  
  
   Regards
   Sajjad



Re: Export latex - any way to inline bibtex formatted refs?

2010-02-22 Thread Guenter Milde
On 2010-02-20, E. Kaplan wrote:
 On 2/20/2010 11:55 AM, Manoj Rajagopalan wrote:

 A journal I am planning to submit a paper to wants all references to be
 inlined into the main .tex file - they don't accept separate bibtex files
 or .bbl files.

 This issue comes up so often that it is surprising indeed that there is 
 no built-in Lyx method of doing that.  

Did you check, whether there is already a feature request at Track?

 What I do in such cases (every 
 time I send out a manuscript to a journal, for example), is to:

1. Export from Lyx to plain Latex
2. Run Latex on the file, to generate correct references AND a .bbl
   file related to my manuscript
3. Open the Latex file with an ASCII editor and paste the .bbl file
   into it.
4. Save the file, and send it to the journal.

Maybe this should go to the FAQs at wiki.lyx.org?

Günter



Re: Ninja mode

2010-02-22 Thread Thomas Steffen
On Mon, Feb 22, 2010 at 8:10 AM, Niko Schwarz
niko.schw...@googlemail.comwrote:

 How do you ninja lyx into your research groups?


I agree this is a problem. Some lossless round trip collaboration between
LyX and pure LaTeX would be very useful. I tried doing this with export -
import - merge, but it did not produce the best results.

Maybe the issue to address is that export - import is a very loss operation,
and it should not be. Of course certain parts are not required in the export
(LyX macros, disabled branches, LyX comments, and even LyX styles). But they
could be hidden in comments and restored during the import.

But I am sure there is more than one solution to this problem.

Regards,
Thomas


Re: Ninja mode

2010-02-22 Thread Jose Quesada
+1, definitely the most important thing for me is good latex integration.
That use case (cols use plain latex, you use lyx) is very common

On Mon, Feb 22, 2010 at 10:41 PM, Thomas Steffen 
steffen.list.acco...@gmail.com wrote:

 On Mon, Feb 22, 2010 at 8:10 AM, Niko Schwarz
 niko.schw...@googlemail.comwrote:

  How do you ninja lyx into your research groups?
 

 I agree this is a problem. Some lossless round trip collaboration between
 LyX and pure LaTeX would be very useful. I tried doing this with export -
 import - merge, but it did not produce the best results.

 Maybe the issue to address is that export - import is a very loss
 operation,
 and it should not be. Of course certain parts are not required in the
 export
 (LyX macros, disabled branches, LyX comments, and even LyX styles). But
 they
 could be hidden in comments and restored during the import.

 But I am sure there is more than one solution to this problem.

 Regards,
 Thomas




-- 
Best,
-Jose

Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


resize table, caption

2010-02-22 Thread Mike Martell
Hi:
I have tables that are too large to output to one table.  I am trying to
make the tables fit one page and have found tips to use in
ERT \resizebox{0.95\textwidth}{!}{%
When I do this, the table is the right size.  However, the caption of the
table no longer shows up.  Is there a way to resize the table and have the
caption still work?

Many thanks,
Mike

I'm using 1.5.6 on a MAC


Re: marking text

2010-02-22 Thread Pavel Sanda
Bernd Schubert wrote:
 I started to work with lyx I also switched from klipper to glipper and 
 didn't notice it pays bad games with me. Didn't find an option to disable 

may its worth to report this to glipper developers?
pavel


Re: Export latex - any way to inline bibtex formatted refs?

2010-02-22 Thread Manolo Martínez
 Did you check, whether there is already a feature request at Track?

There is: http://www.lyx.org/trac/ticket/4624

  What I do in such cases (every 
  time I send out a manuscript to a journal, for example), is to:
 
 1. Export from Lyx to plain Latex
 2. Run Latex on the file, to generate correct references AND a .bbl
file related to my manuscript
 3. Open the Latex file with an ASCII editor and paste the .bbl file
into it.
 4. Save the file, and send it to the journal.
 
 Maybe this should go to the FAQs at wiki.lyx.org?

In that ticket there are a couple of Python scripts that do this automatically.

Manolo


Ninja mode

2010-02-22 Thread Niko Schwarz
Hi y'all,

what helped popularize git in my research group was undoubtably to
ninja into git using git-svn, that is: people like I could switch from
svn to git, and it wouldn't force others to change their workflows.

I find it quite a pity that lyx has no ninja mode. That is: a mode of
lyx that would allow me to change a versioned latex document from
within lyx, which stores its meta information in a separate .lyxextra
file, but exports itself constantly to the shared .tex file, such that
the .tex file and lyx are always in sync.

I know I could import and export manually all the time, and
conceptually, that would (seriously!) be good enough for me. But it's
too much pressing buttons  to be productive. Does anyone do it that
way?

How do you ninja lyx into your research groups?

Cheers,

Niko

-- 
twitter.com/nes1983


Re: inserting line numbers in lyx document

2010-02-22 Thread James C. Sutherland

On Feb 21, 2010, at 9:57 PM, Willis Gwenzi wrote:

 I am using Lyx 1.6.3 for my thesis. For ease of editing I would like to
 insert line numbers throughout the document. Any suggestions on how to do
 it? The enumerate function cannot do it because it inserts the number only
 at the sart of the section not on every line.
 
 Willis
 
Add
\usepackage{lineno}
\linenumbers
to your preamble.


Getting started with LyX

2010-02-22 Thread Mike Ingram
To whom it may concern:

I am attempting to go through the Getting Started with LyX Tutorial.I 
am getting these errors from working through 2.1.1 and trying to display 
in dvi.  What is going on and how do I correct?




Michael Ingram | Metrology Engineer 
DOW Advanced Materials  |  The Dow Chemical Company
451 Bellevue Road | Newark, DE 19713
phone:+1.302.366.0500 ext. 2545  |  email: ming...@rohmhaas.com
image/gif

Re: Getting started with LyX

2010-02-22 Thread Uwe Stöhr

Mike Ingram schrieb:

I am attempting to go through the Getting Started with LyX Tutorial.   
 I am getting these errors from working through 2.1.1 and trying to 
display in dvi.  What is going on and how do I correct?


What have you done? You opened the Tutorial via the menu Help-Tutorial 
and the pressed the DVI button?

Or have you created a new document and then pressed the DVI button?

If the latter is the case can you please send the LyX file you created?

Besides this, what is your OS and what LyX version are you using?

regards Uwe


Re: Getting started with LyX

2010-02-22 Thread Uwe Stöhr

Mike Ingram schrieb:

I created a new document from File, New.  Then I typed in This is my 
first LyX document!.  I then did a Save As.  From there I tried to view 
in DVI.  When I try to view I get the errors.


The errors occur because you have some special (in this case invalid) 
LaTeX-code. You see this when you look in the menu 
Document-Settings-LaTeX preamble.


It is strange that you get this code by creating a new file. The only 
reason I can think of is that you or another user on your PC (maybe 
accidentally) saved a special LyX file as default for all new documents. 
To fix this, open the attached LyX file in LyX and use the menu 
Document-Settings and press there the button named Save as Document 
Defaults.
Afterwards close LyX, restart it, create a new file and have a look if 
it then works.


regards Uwe


newfile1.lyx
Description: application/lyx


Re: Getting started with LyX

2010-02-22 Thread Mike Ingram
Thank you very much.  It now works correctly.


Michael Ingram | Metrology Engineer 
DOW Advanced Materials  |  The Dow Chemical Company
451 Bellevue Road | Newark, DE 19713
phone:+1.302.366.0500 ext. 2545  |  email: ming...@rohmhaas.com




Uwe Stöhr uwesto...@web.de 
Sent by: uwesto...@web.de
02/22/2010 10:58 AM


To
Mike Ingram ming...@rohmhaas.com
cc
LyX-users lyx-users@lists.lyx.org
Subject
Re: Getting started with LyX






Mike Ingram schrieb:

 I created a new document from File, New.  Then I typed in This is my 
 first LyX document!.  I then did a Save As.  From there I tried to view 

 in DVI.  When I try to view I get the errors.

The errors occur because you have some special (in this case invalid) 
LaTeX-code. You see this when you look in the menu 
Document-Settings-LaTeX preamble.

It is strange that you get this code by creating a new file. The only 
reason I can think of is that you or another user on your PC (maybe 
accidentally) saved a special LyX file as default for all new documents. 
To fix this, open the attached LyX file in LyX and use the menu 
Document-Settings and press there the button named Save as Document 
Defaults.
Afterwards close LyX, restart it, create a new file and have a look if 
it then works.

regards Uwe



newfile1.lyx
Description: Binary data


Re: acknowledgement

2010-02-22 Thread Sajjad
On Sun, Feb 21, 2010 at 9:18 PM, Manoj Rajagopalan rma...@umich.edu wrote:


 You could copy the layout file corresponding to your documentclass, modify
 that changing your fontsize etc., possibly introduce a new section and map
 it
 to the appropriate latexname, and use that as your layout. This is quite
 simple and the learning curve should take you a couple of days at most.


Could you please expalin which layout do i have to copy and where to?


 Before you do this, check to see if your document class provides support
 for
 acknowledgements, directly or indirectly. With the layout file approach you
 might be able to create an Acknowledgements section which is a combination
 of
 a section with custom formatting info (like heading level, style,  etc.)
 which.


I am using the report document class to write my thesis.


 One of the lyx help manuals (Customization?) documents this procedure very
 well.


Link to  that manual will be very helpful, since there are many version of
manuals


 -- Manoj



Regards
Sajjad


  On Sunday 21 February 2010 12:09:14 pm Sajjad wrote:
  Hello forum,
 
  I am about to finish my thesis work and i am stuck with some issues in
 LyX.
 
  One of them is writing Acknowledgement section.
 
  I see that there is no separate environment for this.
 
 
  I would like to have Acknowledgement right after Abstract and like to
 have
  the same font size as Abstract heading and centralized.
 
 
  Any hint?
 
 
  Regards
  Sajjad




Re: inserting a Latex equation

2010-02-22 Thread Bernd Schubert
Paul A. Rubin wrote:

 Bernd Schubert wrote:
 Bernd Schubert wrote:
 
 Hi all,

 I'm presently coping lots of tex equations into lyx and usually this
 works great, but this one drives me nuts:

 \begin{align*}
 {\left( {\Delta ^{(1)} } \right)^2 = }
+ \frac{1} {2}\left( {k^2  + \lambda ^2 } \right)\left( {Q_1^2  +
 Q_2^2 } \right)  \\
+ \frac{1} {2}\left( {k^2  - \lambda ^2 } \right)\left( {Q_1^2  -
 Q_2^2 } \right)\cos 2\gamma \\
+ \left( {k^2  - \lambda ^2 } \right)Q_1 Q_2 \sin 2\gamma
 \end{align*}

 As with the other formulas I just copies it into the
 numbered formula field, but this time it add an additional backslash,
 so the correspondig tex output is

 \begin{equation}
 \backslash begin \{align*}...

 So it didn't recognize the equations and escaped all keywords with
 backslashes, hence even in compiled output the formula is displayed
 as text...

 Any ideas?
 
 Hmm well, I got it, by only pasting everything between
 \begin{align*}... \end{align*}, and then by manually making a multiline
 alighned formula out of it.
 Still would be better, if it would recognize the formula on its own or at
 least if it would not escape everything and simply keep the tex code.
 
 
 If you copy everything and paste it directly into a document as text,
 then highlight it all and hit ctrl-M (or click Insert  Math  Inline
 Formula or, in this case at least, Insert  Math  Display Formula), LyX
 will convert it to something close to what is intended.  The only flaw I
 see here is that there are a number of what I think are unnecessary
 braces retained.  You might have to delete those manually.


Thanks Paul, Guenter! That works perfectly fine!


Thanks again,
Bernd



Re: marking text

2010-02-22 Thread Bernd Schubert
Pavel Sanda wrote:

 Bernd Schubert wrote:
 This is with lyx-1.6.4 from Ubuntu karmic. I'm a bit surprised about
 that, as I would have thought that marking text is a basic QT feature,
 maybe I'm wrong?
 
 do you use some clipboard manager?
 pavel

Aaaarg, the gnome clipboard manager does that. Thanks! Around the same time 
I started to work with lyx I also switched from klipper to glipper and 
didn't notice it pays bad games with me. Didn't find an option to disable 
that feature yet, so switched back to klipper for now, which does't cause 
this trouble.


Thanks a lot,
Bernd



Re: LinguistLyx: label on group of subexamples

2010-02-22 Thread Jürgen Spitzmüller
Petr Šimon wrote:
 (I am not on the list, please CC)
 Hello,
 would it be possible to change the subexamples so that a group label
 is provided. In fact would it be possible to automatically add a label
 for each subexample (just empty label with prefix such as ex: ) and
 one for the group?

I do not quite understand what you want, but you can redefine the subexamples 
environment. The original definiton is:

\newenvironment{subexample}{%
\begin{example}\begin{enumerate}[leftmargin=1.7em]
\renewcommand\theenumi{\alph{enumi}}
\renewcommand\labelenumi{(\theenumi)}
\renewcomman...@enumi{\theequation\,}}%
{\end{enumerate}\end{example}}


 Many thanks
 Petr


Jürgen


Re: acknowledgement

2010-02-22 Thread Manoj Rajagopalan

Most document classes have a layout file by the same name. There is a 
report.layout in the libs/ subdir of your lyx installation. On Linux, this 
would be, for example, /usr/share/lyx/libs/report.layout - I don't know where 
this resides on windows (try a find for this file name).

You can copy this layout to a local directory and modify it and then supply 
this from Document-Settings...-Document class-Local layout ...

The Customization manual can be invoked from the LyX Help menu.

cheers!
Manoj



On Monday 22 February 2010 12:31:20 pm Sajjad wrote:
 On Sun, Feb 21, 2010 at 9:18 PM, Manoj Rajagopalan rma...@umich.edu wrote:
  You could copy the layout file corresponding to your documentclass,
  modify that changing youxr fontsize etc., possibly introduce a new section
  and map it
  to the appropriate latexname, and use that as your layout. This is quite
  simple and the learning curve should take you a couple of days at most.

 Could you please expalin which layout do i have to copy and where to?

  Before you do this, check to see if your document class provides support
  for
  acknowledgements, directly or indirectly. With the layout file approach
  you might be able to create an Acknowledgements section which is a
  combination of
  a section with custom formatting info (like heading level, style,  etc.)
  which.

 I am using the report document class to write my thesis.

  One of the lyx help manuals (Customization?) documents this procedure
  very well.

 Link to  that manual will be very helpful, since there are many version of
 manuals

  -- Manoj

 Regards
 Sajjad

   On Sunday 21 February 2010 12:09:14 pm Sajjad wrote:
   Hello forum,
  
   I am about to finish my thesis work and i am stuck with some issues in
 
  LyX.
 
   One of them is writing Acknowledgement section.
  
   I see that there is no separate environment for this.
  
  
   I would like to have Acknowledgement right after Abstract and like to
 
  have
 
   the same font size as Abstract heading and centralized.
  
  
   Any hint?
  
  
   Regards
   Sajjad



Re: Export latex - any way to inline bibtex formatted refs?

2010-02-22 Thread Guenter Milde
On 2010-02-20, E. Kaplan wrote:
 On 2/20/2010 11:55 AM, Manoj Rajagopalan wrote:

 A journal I am planning to submit a paper to wants all references to be
 inlined into the main .tex file - they don't accept separate bibtex files
 or .bbl files.

 This issue comes up so often that it is surprising indeed that there is 
 no built-in Lyx method of doing that.  

Did you check, whether there is already a feature request at Track?

 What I do in such cases (every 
 time I send out a manuscript to a journal, for example), is to:

1. Export from Lyx to plain Latex
2. Run Latex on the file, to generate correct references AND a .bbl
   file related to my manuscript
3. Open the Latex file with an ASCII editor and paste the .bbl file
   into it.
4. Save the file, and send it to the journal.

Maybe this should go to the FAQs at wiki.lyx.org?

Günter



Re: Ninja mode

2010-02-22 Thread Thomas Steffen
On Mon, Feb 22, 2010 at 8:10 AM, Niko Schwarz
niko.schw...@googlemail.comwrote:

 How do you ninja lyx into your research groups?


I agree this is a problem. Some lossless round trip collaboration between
LyX and pure LaTeX would be very useful. I tried doing this with export -
import - merge, but it did not produce the best results.

Maybe the issue to address is that export - import is a very loss operation,
and it should not be. Of course certain parts are not required in the export
(LyX macros, disabled branches, LyX comments, and even LyX styles). But they
could be hidden in comments and restored during the import.

But I am sure there is more than one solution to this problem.

Regards,
Thomas


Re: Ninja mode

2010-02-22 Thread Jose Quesada
+1, definitely the most important thing for me is good latex integration.
That use case (cols use plain latex, you use lyx) is very common

On Mon, Feb 22, 2010 at 10:41 PM, Thomas Steffen 
steffen.list.acco...@gmail.com wrote:

 On Mon, Feb 22, 2010 at 8:10 AM, Niko Schwarz
 niko.schw...@googlemail.comwrote:

  How do you ninja lyx into your research groups?
 

 I agree this is a problem. Some lossless round trip collaboration between
 LyX and pure LaTeX would be very useful. I tried doing this with export -
 import - merge, but it did not produce the best results.

 Maybe the issue to address is that export - import is a very loss
 operation,
 and it should not be. Of course certain parts are not required in the
 export
 (LyX macros, disabled branches, LyX comments, and even LyX styles). But
 they
 could be hidden in comments and restored during the import.

 But I am sure there is more than one solution to this problem.

 Regards,
 Thomas




-- 
Best,
-Jose

Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


resize table, caption

2010-02-22 Thread Mike Martell
Hi:
I have tables that are too large to output to one table.  I am trying to
make the tables fit one page and have found tips to use in
ERT \resizebox{0.95\textwidth}{!}{%
When I do this, the table is the right size.  However, the caption of the
table no longer shows up.  Is there a way to resize the table and have the
caption still work?

Many thanks,
Mike

I'm using 1.5.6 on a MAC


Re: marking text

2010-02-22 Thread Pavel Sanda
Bernd Schubert wrote:
 I started to work with lyx I also switched from klipper to glipper and 
 didn't notice it pays bad games with me. Didn't find an option to disable 

may its worth to report this to glipper developers?
pavel


Re: Export latex - any way to inline bibtex formatted refs?

2010-02-22 Thread Manolo Martínez
 Did you check, whether there is already a feature request at Track?

There is: http://www.lyx.org/trac/ticket/4624

  What I do in such cases (every 
  time I send out a manuscript to a journal, for example), is to:
 
 1. Export from Lyx to plain Latex
 2. Run Latex on the file, to generate correct references AND a .bbl
file related to my manuscript
 3. Open the Latex file with an ASCII editor and paste the .bbl file
into it.
 4. Save the file, and send it to the journal.
 
 Maybe this should go to the FAQs at wiki.lyx.org?

In that ticket there are a couple of Python scripts that do this automatically.

Manolo


Ninja mode

2010-02-22 Thread Niko Schwarz
Hi y'all,

what helped popularize git in my research group was undoubtably to
ninja into git using git-svn, that is: people like I could switch from
svn to git, and it wouldn't force others to change their workflows.

I find it quite a pity that lyx has no ninja mode. That is: a mode of
lyx that would allow me to change a versioned latex document from
within lyx, which stores its meta information in a separate .lyxextra
file, but exports itself constantly to the shared .tex file, such that
the .tex file and lyx are always in sync.

I know I could import and export manually all the time, and
conceptually, that would (seriously!) be good enough for me. But it's
too much pressing buttons  to be productive. Does anyone do it that
way?

How do you ninja lyx into your research groups?

Cheers,

Niko

-- 
twitter.com/nes1983


Re: inserting line numbers in lyx document

2010-02-22 Thread James C. Sutherland

On Feb 21, 2010, at 9:57 PM, Willis Gwenzi wrote:

> I am using Lyx 1.6.3 for my thesis. For ease of editing I would like to
> insert line numbers throughout the document. Any suggestions on how to do
> it? The enumerate function cannot do it because it inserts the number only
> at the sart of the section not on every line.
> 
> Willis
> 
Add
\usepackage{lineno}
\linenumbers
to your preamble.


Getting started with LyX

2010-02-22 Thread Mike Ingram
To whom it may concern:

I am attempting to go through the Getting Started with LyX Tutorial.I 
am getting these errors from working through 2.1.1 and trying to display 
in dvi.  What is going on and how do I correct?




Michael Ingram | Metrology Engineer 
DOW Advanced Materials  |  The Dow Chemical Company
451 Bellevue Road | Newark, DE 19713
phone:+1.302.366.0500 ext. 2545  |  email: ming...@rohmhaas.com
<>

Re: Getting started with LyX

2010-02-22 Thread Uwe Stöhr

Mike Ingram schrieb:

I am attempting to go through the Getting Started with LyX Tutorial.   
 I am getting these errors from working through 2.1.1 and trying to 
display in dvi.  What is going on and how do I correct?


What have you done? You opened the Tutorial via the menu Help->Tutorial 
and the pressed the DVI button?

Or have you created a new document and then pressed the DVI button?

If the latter is the case can you please send the LyX file you created?

Besides this, what is your OS and what LyX version are you using?

regards Uwe


Re: Getting started with LyX

2010-02-22 Thread Uwe Stöhr

Mike Ingram schrieb:

I created a new document from File, New.  Then I typed in "This is my 
first LyX document!".  I then did a Save As.  From there I tried to view 
in DVI.  When I try to view I get the errors.


The errors occur because you have some special (in this case invalid) 
LaTeX-code. You see this when you look in the menu 
Document->Settings->LaTeX preamble.


It is strange that you get this code by creating a new file. The only 
reason I can think of is that you or another user on your PC (maybe 
accidentally) saved a special LyX file as default for all new documents. 
To fix this, open the attached LyX file in LyX and use the menu 
Document->Settings and press there the button named "Save as Document 
Defaults".
Afterwards close LyX, restart it, create a new file and have a look if 
it then works.


regards Uwe


newfile1.lyx
Description: application/lyx


Re: Getting started with LyX

2010-02-22 Thread Mike Ingram
Thank you very much.  It now works correctly.


Michael Ingram | Metrology Engineer 
DOW Advanced Materials  |  The Dow Chemical Company
451 Bellevue Road | Newark, DE 19713
phone:+1.302.366.0500 ext. 2545  |  email: ming...@rohmhaas.com




Uwe Stöhr  
Sent by: uwesto...@web.de
02/22/2010 10:58 AM


To
Mike Ingram 
cc
LyX-users 
Subject
Re: Getting started with LyX






Mike Ingram schrieb:

> I created a new document from File, New.  Then I typed in "This is my 
> first LyX document!".  I then did a Save As.  From there I tried to view 

> in DVI.  When I try to view I get the errors.

The errors occur because you have some special (in this case invalid) 
LaTeX-code. You see this when you look in the menu 
Document->Settings->LaTeX preamble.

It is strange that you get this code by creating a new file. The only 
reason I can think of is that you or another user on your PC (maybe 
accidentally) saved a special LyX file as default for all new documents. 
To fix this, open the attached LyX file in LyX and use the menu 
Document->Settings and press there the button named "Save as Document 
Defaults".
Afterwards close LyX, restart it, create a new file and have a look if 
it then works.

regards Uwe



newfile1.lyx
Description: Binary data


Re: acknowledgement

2010-02-22 Thread Sajjad
On Sun, Feb 21, 2010 at 9:18 PM, Manoj Rajagopalan  wrote:

>
> You could copy the layout file corresponding to your documentclass, modify
> that changing your fontsize etc., possibly introduce a new section and map
> it
> to the appropriate latexname, and use that as your layout. This is quite
> simple and the learning curve should take you a couple of days at most.
>

Could you please expalin which layout do i have to copy and where to?

>
> Before you do this, check to see if your document class provides support
> for
> acknowledgements, directly or indirectly. With the layout file approach you
> might be able to create an Acknowledgements section which is a combination
> of
> a section with custom formatting info (like heading level, style,  etc.)
> which.
>

I am using the report document class to write my thesis.

>
> One of the lyx help manuals (Customization?) documents this procedure very
> well.
>

Link to  that manual will be very helpful, since there are many version of
manuals

>
> -- Manoj
>
>
>
Regards
Sajjad


>  On Sunday 21 February 2010 12:09:14 pm Sajjad wrote:
> > Hello forum,
> >
> > I am about to finish my thesis work and i am stuck with some issues in
> LyX.
> >
> > One of them is writing Acknowledgement section.
> >
> > I see that there is no separate environment for this.
> >
> >
> > I would like to have Acknowledgement right after Abstract and like to
> have
> > the same font size as "Abstract" heading and centralized.
> >
> >
> > Any hint?
> >
> >
> > Regards
> > Sajjad
>
>


Re: inserting a Latex equation

2010-02-22 Thread Bernd Schubert
Paul A. Rubin wrote:

> Bernd Schubert wrote:
>> Bernd Schubert wrote:
>> 
>>> Hi all,
>>>
>>> I'm presently coping lots of tex equations into lyx and usually this
>>> works great, but this one drives me nuts:
>>>
>>> \begin{align*}
>>> {\left( {\Delta ^{(1)} } \right)^2 = }
>>> &   + \frac{1} {2}\left( {k^2  + \lambda ^2 } \right)\left( {Q_1^2  +
>>> Q_2^2 } \right)  \\
>>> &   + \frac{1} {2}\left( {k^2  - \lambda ^2 } \right)\left( {Q_1^2  -
>>> Q_2^2 } \right)\cos 2\gamma \\
>>> &   + \left( {k^2  - \lambda ^2 } \right)Q_1 Q_2 \sin 2\gamma
>>> \end{align*}
>>>
>>> As with the other formulas I just copies it into the
>>> "numbered formula field", but this time it add an additional backslash,
>>> so the correspondig tex output is
>>>
>>> \begin{equation}
>>> \backslash begin \{align*}...
>>>
>>> So it didn't recognize the equations and escaped all keywords with
>>> backslashes, hence even in compiled output the formula is displayed
>>> as text...
>>>
>>> Any ideas?
>> 
>> Hmm well, I got it, by only pasting everything between
>> \begin{align*}... \end{align*}, and then by manually making a multiline
>> alighned formula out of it.
>> Still would be better, if it would recognize the formula on its own or at
>> least if it would not escape everything and simply keep the tex code.
>> 
> 
> If you copy everything and paste it directly into a document as text,
> then highlight it all and hit ctrl-M (or click Insert > Math > Inline
> Formula or, in this case at least, Insert > Math > Display Formula), LyX
> will convert it to something close to what is intended.  The only flaw I
> see here is that there are a number of what I think are unnecessary
> braces retained.  You might have to delete those manually.


Thanks Paul, Guenter! That works perfectly fine!


Thanks again,
Bernd



Re: marking text

2010-02-22 Thread Bernd Schubert
Pavel Sanda wrote:

> Bernd Schubert wrote:
>> This is with lyx-1.6.4 from Ubuntu karmic. I'm a bit surprised about
>> that, as I would have thought that marking text is a basic QT feature,
>> maybe I'm wrong?
> 
> do you use some clipboard manager?
> pavel

Aaaarg, the gnome clipboard manager does that. Thanks! Around the same time 
I started to work with lyx I also switched from "klipper" to "glipper" and 
didn't notice it pays bad games with me. Didn't find an option to disable 
that feature yet, so switched back to klipper for now, which does't cause 
this trouble.


Thanks a lot,
Bernd



Re: LinguistLyx: label on group of subexamples

2010-02-22 Thread Jürgen Spitzmüller
Petr Šimon wrote:
> (I am not on the list, please CC)
> Hello,
> would it be possible to change the subexamples so that a group label
> is provided. In fact would it be possible to automatically add a label
> for each subexample (just empty label with prefix such as "ex:" ) and
> one for the group?

I do not quite understand what you want, but you can redefine the subexamples 
environment. The original definiton is:

\newenvironment{subexample}{%
\begin{example}\begin{enumerate}[leftmargin=1.7em]
\renewcommand\theenumi{\alph{enumi}}
\renewcommand\labelenumi{(\theenumi)}
\renewcomman...@enumi{\theequation\,}}%
{\end{enumerate}\end{example}}


> Many thanks
> Petr


Jürgen


Re: acknowledgement

2010-02-22 Thread Manoj Rajagopalan

Most document classes have a layout file by the same name. There is a 
report.layout in the libs/ subdir of your lyx installation. On Linux, this 
would be, for example, /usr/share/lyx/libs/report.layout - I don't know where 
this resides on windows (try a find for this file name).

You can copy this layout to a local directory and modify it and then supply 
this from Document->Settings...->Document class->Local layout ...

The Customization manual can be invoked from the LyX Help menu.

cheers!
Manoj



On Monday 22 February 2010 12:31:20 pm Sajjad wrote:
> On Sun, Feb 21, 2010 at 9:18 PM, Manoj Rajagopalan  wrote:
> > You could copy the layout file corresponding to your documentclass,
> > modify that changing youxr fontsize etc., possibly introduce a new section
> > and map it
> > to the appropriate latexname, and use that as your layout. This is quite
> > simple and the learning curve should take you a couple of days at most.
>
> Could you please expalin which layout do i have to copy and where to?
>
> > Before you do this, check to see if your document class provides support
> > for
> > acknowledgements, directly or indirectly. With the layout file approach
> > you might be able to create an Acknowledgements section which is a
> > combination of
> > a section with custom formatting info (like heading level, style,  etc.)
> > which.
>
> I am using the report document class to write my thesis.
>
> > One of the lyx help manuals (Customization?) documents this procedure
> > very well.
>
> Link to  that manual will be very helpful, since there are many version of
> manuals
>
> > -- Manoj
>
> Regards
> Sajjad
>
> >  On Sunday 21 February 2010 12:09:14 pm Sajjad wrote:
> > > Hello forum,
> > >
> > > I am about to finish my thesis work and i am stuck with some issues in
> >
> > LyX.
> >
> > > One of them is writing Acknowledgement section.
> > >
> > > I see that there is no separate environment for this.
> > >
> > >
> > > I would like to have Acknowledgement right after Abstract and like to
> >
> > have
> >
> > > the same font size as "Abstract" heading and centralized.
> > >
> > >
> > > Any hint?
> > >
> > >
> > > Regards
> > > Sajjad



Re: Export latex - any way to inline bibtex formatted refs?

2010-02-22 Thread Guenter Milde
On 2010-02-20, E. Kaplan wrote:
> On 2/20/2010 11:55 AM, Manoj Rajagopalan wrote:

>> A journal I am planning to submit a paper to wants all references to be
>> inlined into the main .tex file - they don't accept separate bibtex files
>> or .bbl files.

> This issue comes up so often that it is surprising indeed that there is 
> no built-in Lyx method of doing that.  

Did you check, whether there is already a feature request at Track?

> What I do in such cases (every 
> time I send out a manuscript to a journal, for example), is to:

>1. Export from Lyx to plain Latex
>2. Run Latex on the file, to generate correct references AND a .bbl
>   file related to my manuscript
>3. Open the Latex file with an ASCII editor and paste the .bbl file
>   into it.
>4. Save the file, and send it to the journal.

Maybe this should go to the FAQs at wiki.lyx.org?

Günter



Re: Ninja mode

2010-02-22 Thread Thomas Steffen
On Mon, Feb 22, 2010 at 8:10 AM, Niko Schwarz
wrote:

> How do you ninja lyx into your research groups?
>

I agree this is a problem. Some lossless round trip collaboration between
LyX and pure LaTeX would be very useful. I tried doing this with export -
import - merge, but it did not produce the best results.

Maybe the issue to address is that export - import is a very loss operation,
and it should not be. Of course certain parts are not required in the export
(LyX macros, disabled branches, LyX comments, and even LyX styles). But they
could be hidden in comments and restored during the import.

But I am sure there is more than one solution to this problem.

Regards,
Thomas


Re: Ninja mode

2010-02-22 Thread Jose Quesada
+1, definitely the most important thing for me is good latex integration.
That use case (cols use plain latex, you use lyx) is very common

On Mon, Feb 22, 2010 at 10:41 PM, Thomas Steffen <
steffen.list.acco...@gmail.com> wrote:

> On Mon, Feb 22, 2010 at 8:10 AM, Niko Schwarz
> wrote:
>
> > How do you ninja lyx into your research groups?
> >
>
> I agree this is a problem. Some lossless round trip collaboration between
> LyX and pure LaTeX would be very useful. I tried doing this with export -
> import - merge, but it did not produce the best results.
>
> Maybe the issue to address is that export - import is a very loss
> operation,
> and it should not be. Of course certain parts are not required in the
> export
> (LyX macros, disabled branches, LyX comments, and even LyX styles). But
> they
> could be hidden in comments and restored during the import.
>
> But I am sure there is more than one solution to this problem.
>
> Regards,
> Thomas
>



-- 
Best,
-Jose

Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


resize table, caption

2010-02-22 Thread Mike Martell
Hi:
I have tables that are too large to output to one table.  I am trying to
make the tables fit one page and have found tips to use in
ERT \resizebox{0.95\textwidth}{!}{%
When I do this, the table is the right size.  However, the caption of the
table no longer shows up.  Is there a way to resize the table and have the
caption still work?

Many thanks,
Mike

I'm using 1.5.6 on a MAC


Re: marking text

2010-02-22 Thread Pavel Sanda
Bernd Schubert wrote:
> I started to work with lyx I also switched from "klipper" to "glipper" and 
> didn't notice it pays bad games with me. Didn't find an option to disable 

may its worth to report this to glipper developers?
pavel


Re: Export latex - any way to inline bibtex formatted refs?

2010-02-22 Thread Manolo Martínez
> Did you check, whether there is already a feature request at Track?

There is: http://www.lyx.org/trac/ticket/4624

> > What I do in such cases (every 
> > time I send out a manuscript to a journal, for example), is to:
> 
> >1. Export from Lyx to plain Latex
> >2. Run Latex on the file, to generate correct references AND a .bbl
> >   file related to my manuscript
> >3. Open the Latex file with an ASCII editor and paste the .bbl file
> >   into it.
> >4. Save the file, and send it to the journal.
> 
> Maybe this should go to the FAQs at wiki.lyx.org?

In that ticket there are a couple of Python scripts that do this automatically.

Manolo