Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Thursday, 22. August 2013, 20:46:14 schrieb Csikos Bela:
 So I select under toolsoutputlatex Bibliography Processor  bibtex
 (or custom? or bibtex8?)
 
 It seems you are using an older lyx version. It should work with it,
 still I suggest upgrading lyx to version 2.x.

###Thanks for your answer.
I am using 2.0.6
May be I should upgrade, but I am always afraid I do something wrong and 
can't work with it afterward. There is a deadline for a book chapter 
waiting...

 
 Set bibliography processor to bibtex. bibtex8 might work as well, I
 never tried it. If you select bibtex, make sure those fields in the bib
 database file that will be in the output do have only ASCII or latin-1
 encoded characters. Special characters should be replaced by latex
 commands (eg. ö is \{o} etc.).
 
 Since I have over 700 citations, I used Jabref for my bibliography and
 clicked the references via the lyx-export of jabref to the
 corresponding places of my document. If I use 
\setcitestyle{aysep={}}
 instead of your proposed \setcitestyle{round,aysep={}}, and if I put
 () around the citation, I get what I need.
 
 Do not add manually '(' and ')' around citations. The opening and
 closing braces (rounded, square, or other) are part of the citation.
 And it is better to add the citations within lyx.
 
 I don't know if jabref can handle the two different types of citations:
  ' and 'text (Author year) text'. Can it make a
 difference? If you insert the citations within lyx you can select which
 type you want. If you look at the source you can see that the latex
 command for the two types are different, \citet and \citep.
 
 Also, if you have several citations in a group, lyx can handle it.
 Can jabref handle that?
###I do it via lyx (add)
 
 Unfortunately you have to go through all the citations and adjust them
 manually. Or you can work on the .lyx source file directly using a text
 editor and replacing all cite* command with citep. (Make a backup
 of the original file before editing!) After this open your edited file
 in lyx, find the few (I suppose) occasions of 'text Author (year) text'
 type citations and adjust them manually.
 
 The  \setcitestyle{round,aysep={}} and  \setcitestyle{aysep={}}
 commands in the preamble have the same effect, as round is the
 default option in case of author-year citation. Removing or adding it
 does not make any difference.
 
 But what about eg: (Praschak-Rieder and Willeit 2012) and in case
 of three authors and more (Crosthwait et al. 1997)?
 
 I don't understand what your question is.

### here I meant the 'et al' after more then 2 authors in a (one!) 
reference:
author 1
author 1 and author 2
author 1 et all (3 authors or more)

 Unfortunately latex handles citations in goups. One group is all
 the citations selected and added at the same time. All these citations
 will be between the same pair of parentheses. If you add neighboring
 citations separately, they will be within different parentheses pairs.
 
 The source also shows the difference. For example.
 
 3 citations in one group:
 
 \citep{citation1,citation2,citaton3}
 
 The output will be:
 
 (author1 year1, author2 year2, author3 year3)
 
 However if you add them separately, like this:
 
 \citep{citation1} \citep{citation2} \cite{citaton3}
 
 the output will be:
 
 (author1 year1) (author2 year2) (author3 year3)
 
 You can adjust the opening and closing braces and the seperators
 between authors etc using \setcitestyle.
 
 Read the natbib manual (available at CTAN) section 2.9 Selecting
 citation punctuation.
 
 Where in the .lyx file (or elsewhere) would I place the authdate.bst
 file you kindly supplied?
 
 You can put it anywhere you want, but the best place is the directory
 where your .lyx file is. You select the bst file by clicking 'BibTeX
 Generated Bibliography' and browse for it.

### I guess there is a 'normal' place? I have it now in .lyx/layouts
 
 If you still have questions don't hesitate to ask, but be specific,
 please.

Hope I was this time.

Thanks,
Wolfgang


RE: Custom layout : how can Lyx transfer parameters to LATEX ?

2013-08-23 Thread LDF(f)

Thanks Scott !

I was able to figure out how to transfer from Lyx to Latex.

I just didn't find how to use the argument(s) in the Lyx part of the .layout
format file. Another way to put it, I didn't find the equivalent in Lyx of
the Latex #1 : I tried Argument1, arg1, etc. with no success. Is there a way
to use the argument(s) in the Lyx part ?

Thanks again for this promising 2.1 new feature !

Al


-Message d'origine-
De : skost...@lyx.org [mailto:skost...@lyx.org] De la part de Scott
Kostyshak
Envoyé : vendredi 9 août 2013 11:09
À : LDF(f)
Cc : lyx-users@lists.lyx.org
Objet : Re: Custom layout : how can Lyx transfer parameters to LATEX ?

On Fri, Aug 9, 2013 at 4:09 AM, LDF(f) l.dub...@free.fr wrote:

 I didn't see anything in the documentation nor in the examples here and
 there, that could be used to enter parameters for a custom layout.

This is a new feature in 2.1. You can try the beta if you want:
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta1

See 5.3.6  Paragraph styles in the LyX 2.1 Help  Customization
manual. Look for argument in that section.

Scott



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jean-Marc Lasgouttes

22/08/2013 21:09, Steve Litt of Troubleshooters.Com:

Yeah, now that you mention it, I remember KLyX. Thank you, thank you,
THANK YOU for winning that battle!


The problem was not only around KDE (although there were ideological 
ideas behind this port that we did not share), but rather that we were 
very busy at that time turning the code base into something usable. The 
original implementations of footnotes and and tabulars were, err, 
interesting :) The priority was clearly not in a shiny interface.


JMarc



Re: Citation and reference style

2013-08-23 Thread Csikos Bela
Wolfgang Engelmann engelm...@uni-tuebingen.de írta:

I am using 2.0.6

That is the latest stable version. I thought you worked with older version
since there is no toolsoutputlatex Bibliography Processor menu
in lyx 2.0.6. Now I see you only left out 'Preferences' step.


### here I meant the 'et al' after more then 2 authors in a (one!)
reference:
author 1
author 1 and author 2
author 1 et all (3 authors or more)

I still don't get it. Could you please give some real example embedded
in text? Anyway the et al. is handled automatically by bibtex.
If there is only one author the output is: (author year)
2 authors, output: (author1 and author2 year)
3 author, output: (author1 et al. year).

You find more examples in the natbib manual, Section 2.3 Basic
Citation Commands.

I suggest that you create a new file and insert only short text in it with
different citations and look at the output. Experience with it.

### I guess there is a 'normal' place? I have it now in .lyx/layouts

I always keep the specific style along with the document.
I keep different documents in separate directories with the necessary
files (images, bibtex database and style file etc.).

So if I want to transfer/copy the document to another computer I transfer
the whole document directory. 

bcsikos





Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Friday, 23. August 2013, 11:21:26 schrieb Csikos Bela:
 Wolfgang Engelmann engelm...@uni-tuebingen.de írta:
 I am using 2.0.6
 
 That is the latest stable version. I thought you worked with older
 version since there is no toolsoutputlatex Bibliography Processor
 menu in lyx 2.0.6. Now I see you only left out 'Preferences' step.

Thanks again for your help, Csikos.

I tried for quite some time this morning to get the Lyx2.1beta installed by 
using LinuxMint Debian 15, but without success. I used 
http://ppa.launchpad.net/lyx-
devel/daily/ubuntu/dists/debian/main/source/Sources
so I gave up and used my lyx 2.0.6
(error: it could not find the lyx2.1 package
 
 ### here I meant the 'et al' after more then 2 authors in a (one!)
 reference:
 author 1
 author 1 and author 2
 author 1 et all (3 authors or more)
 
 I still don't get it. Could you please give some real example embedded
 in text? Anyway the et al. is handled automatically by bibtex.
 If there is only one author the output is: (author year)
 2 authors, output: (author1 and author2 year)
 3 author, output: (author1 et al. year).

For clarification I include a small lyx file and bib file with which I tried 
out your authdate.bst file you had sent, but it did not work (?? instead of 
citations, no references, no error message.
Instead I tried the authordate1, 2, 3 and 4 bst files from within lyx
and found authordate1 useful, but not adequate. 
So I have to fiddle around with it (I tried many other bst files from the 
dropdown menu, but none was as I need it). 

 
 You find more examples in the natbib manual, Section 2.3 Basic
 Citation Commands.

will read that and try to set up a correct one for my needs via makebst or 
something alike.
 
 I suggest that you create a new file and insert only short text in it
 with different citations and look at the output. Experience with it.
 
 ### I guess there is a 'normal' place? I have it now in .lyx/layouts
 
 I always keep the specific style along with the document.
 I keep different documents in separate directories with the necessary
 files (images, bibtex database and style file etc.).

So did I, except the style files. 

 
 So if I want to transfer/copy the document to another computer I
 transfer the whole document directory.

Yes.

Thanks for your patience.
I was hoping to get some help from the publisher (sv), but nothing so far.

Wolfgang
 
 bcsikos
% This file was created with JabRef 2.7b.
% Encoding: ISO8859_1

@ARTICLE{Bruce1972,
  author = {Bruce, V. G.},
  title = {Mutants of the biological clock in \emph{{C}hlamydomonas reinhardi}},
  journal = {Genetics},
  year = {1972},
  volume = {70},
  pages = {537--548},
  abstract = {A genetic analysis of the biological clock in Chlamydomonas reinhardi
	has been initiated. Of six wild-type strains tested (3 mt(+) and
	3 mt(-)), five had periods close to 24 hr whereas one had a 21-hr
	period. Mutants with altered clock period have been isolated. The
	periods of 3 of these variant strains are temperature compensated.
	Genetic crosses involving a long-period mutant suggest that a single
	gene confers the long-period character, and in general clock-period
	length seems to be a useful phenotypic measure of alterations in
	the clock due to genetic differences. One phase mutant was found
	but its behavior was variable and the phase of the rhythm, relative
	to a light-dark transition which initiates the rhythm, does not seem
	to be reliable as a parameter of clock differences. No markers have
	yet been mapped.},
  keywords = {Biological Clocks; Cell Movement; Chlamydomonas; Chlorophyta; Circadian
	Rhythm; Crosses, Genetic; Genotype; Methods; Mutation, drug effects;
	Nitrosoguanidines, pharmacology; Phenotype; Photic Stimulation; Temperature;
	Time Factors},
  language = {eng},
  medline-pst = {ppublish},
  owner = {wolfgang},
  pmid = {5034771},
  timestamp = {2012.03.02}
}

@ARTICLE{Gaskill2010,
  author = {Christa Gaskill and Jennifer Forbes-Stovall and Bruce Kessler and
	Mike Young and Claire A Rinehart and Sigrid Jacobshagen},
  title = {Improved automated monitoring and new analysis algorithm for circadian
	phototaxis rhythms in \emph{{C}hlamydomonas}},
  journal = {Plant Physiol Bioch},
  year = {2010},
  volume = {48},
  pages = {239--246},
  abstract = {Automated monitoring of circadian rhythms is an efficient way of gaining
	insight into oscillation parameters like period and phase for the
	underlying pacemaker of the circadian clock. 
	
	
	Measurement of the circadian rhythm of phototaxis (swimming towards
	light) exhibited by the green alga Chlamydomonas reinhardtii has
	been automated by directing a narrow and dim light beam through a
	culture at regular intervals and determining the decrease in light
	transmittance due to the accumulation of cells in the beam. 
	
	
	In this study, the monitoring process was optimized by constructing
	a new computer-controlled measuring machine that limits the test
	beam to wavelengths reported to be specific for 

Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Dr Eberhard Lisse
Went and had a look,

I can find LyX documents from 2000 having survived transitions through a
number of Linux distributions and machines, to a number of Macs.

:-)-O

el


on 2013-08-21 17:53 stefano franchi said the following:
 
 On Wed, Aug 21, 2013 at 10:45 AM, Wolfgang Keller felip...@gmx.net
 mailto:felip...@gmx.net wrote:
 
 
  And I say this as a LyX-only writer for the past 15 years or so.
 
 The first public LyX version was when? Can't have been much longer
 than 10 years ago.
 
 
 Way earlier than that. I switched to Lyx after I completed my
 dissertation (which I wrote in Framemaker, on a NeXt cube. Boy am I
 old!). I defended in 1997...
 
 Cheers,
 
 Stefano




Re: Custom layout : how can Lyx transfer parameters to LATEX ?

2013-08-23 Thread Richard Heck

On 08/23/2013 03:44 AM, LDF(f) wrote:

Thanks Scott !

I was able to figure out how to transfer from Lyx to Latex.

I just didn't find how to use the argument(s) in the Lyx part of the .layout
format file. Another way to put it, I didn't find the equivalent in Lyx of
the Latex #1 : I tried Argument1, arg1, etc. with no success. Is there a way
to use the argument(s) in the Lyx part ?

Thanks again for this promising 2.1 new feature !


I'm not sure what you're trying to do here. The arguments within LyX 
itself appear in new versions of what used to be called the Short 
Title inset. That's the only place they appear. You can't do anything 
with them otherwise. They are output to LaTeX as optional or mandatory 
arguments in the order specified in the layout file.


This is all documented in the Customization manual that ships with 
2.1.beta1. See section 5.3.6.


Richard



Re: Importing LaTeX file with multiple indexes

2013-08-23 Thread Richard Heck

On 08/20/2013 08:16 PM, Alan L Tyree wrote:
I'm having trouble with this. I have a LaTeX file with multiple 
indexes (defined in accordance with LyX conventions). I want to 
convert it to LyX.


The relevant part of the preamble looks like this:

\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\newindex[Table of Statutes]{tab}
\newindex[Table of Cases]{tab1}

Except for the Index entries, I'm not getting a clean import. Is there 
some trick to this?


You might ask about this on devel. I'm not sure if tex2lyx handles 
multiple indexes.


Richard



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Les Denham
On Thu, 22 Aug 2013 17:26:31 -0700
Jerry lancebo...@qwest.net wrote:

 
 On Aug 21, 2013, at 5:16 AM, Les Denham lden...@hal-pc.org wrote:
 
  On Tue, 20 Aug 2013 18:13:23 -0700
  Jerry lancebo...@qwest.net wrote:
  
  
  On Aug 18, 2013, at 6:59 PM, Les Denham lden...@hal-pc.org wrote:
  
  My general approach to  getting a LyX document into Word format is
  to us the LyXHTML export, import the exported file into
  LibreOffice, fix the inevitable problems, and save in DOCX format.
  
  How do you import the XHTML from LyXHTML into LibreOffice? When I
  try it, I see only raw text; it is not rendered. I let the file
  dialog display all files and assumed that the .xhtml file
  extension would tell LO what to do but obviously this did not
  happen.
  
  Jerry,
  
  One of the inevitable problems. Try changing the .xhtml file
  extension to .html. I think you can also delve into the advanced
  settings of LibreOffice to tell it to treat .xhtml files as HTML.
  
  Les
 
 Les, thanks for that tip, but it didn't change anything--still raw
 text, either with a document with a few equations (and thus MathML in
 the XHTML file) or just a simple file containing only the word
 Hello.
 
 FWIW, when I do open the (x)html file, I get a dialog asking for
 Character set (default = UTF-8), Default fonts (default = Times New
 Roman), Language (default = English (US)) and Paragraph break
 (default = LF). I accepted all the defaults. So it looks at that
 point like something is about to happen, but then I see only raw
 text. 
 
 I also looked at Tools - Options - Load/Save - HTML Compatibility
 but didn't see anything relevant.
 
 Jerry

Jerry,

Sorry, I left out one step: before opening the file in LibreOffice,
open in a text editor and delete the first line (the one that looks
like this: ?xml version=1.0 encoding=UTF-8?). Save it and then
import into LO.

Les

Les


Re: a problem with formatting acronyms in svmono class

2013-08-23 Thread Steve Litt
On Wed, 21 Aug 2013 16:20:36 + (UTC)
Bieniasz nbbie...@cyf-kr.edu.pl wrote:

 Hello,
 
 I am using the Springer svmono class under LyX, to write a monograph. 
 The class has a template for acronyms, which allows authors to make
 explanations in the following way:
 
 XXX  {blablabla}
   {blablablabla}
 ZZ  {blabla}
 
 This means, that an acronym to be explained is followed
 by an explanation in braces. The problem seems to be that the
 explanations are not aligned to any vertical line, but occur in
 various places, depending on the length of the explained symbol.
 This looks rather ugly (as is shown above). 
 
 My question is: can one do anything to force the alignment of
 all left braces at the same distance from the left margin?
 
 I would like to have something like in following list:
 
 XXX   {blablabla}
   {blablablabla}
 ZZ{blabla}
 
   Leslaw

Well, of course the kludgy way to do it is to use a table with no
visible borders. Ugly!

I know nothing about Springer svmono, but there's probably a way to
make a LyX environment that does what you want. 

Study the Labeling environment that comes with LyX 2.x. It's
almost what you want, and it aligns the explanations beneath each other.
Your job would be:

1) Turn off its feature where the first item is in italics (probably to
   designate it as a header
2) Wrap the explanation in curly braces.

Do that and you're done.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Steve Litt
On Fri, 23 Aug 2013 10:20:06 +0200
Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 22/08/2013 21:09, Steve Litt of Troubleshooters.Com:
  Yeah, now that you mention it, I remember KLyX. Thank you, thank
  you, THANK YOU for winning that battle!
 
 The problem was not only around KDE (although there were ideological 
 ideas behind this port that we did not share), but rather that we
 were very busy at that time turning the code base into something
 usable. The original implementations of footnotes and and tabulars
 were, err, interesting :) The priority was clearly not in a shiny
 interface.

Yes, I still remember (fondly, actually) xforms. LyX with xforms could
not have been accused of having a shiny interface :-)

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Friday, 23. August 2013, 11:21:26 schrieb Csikos Bela:

Hi, 

I think all my problems are solved. One of the authors of the chapters of 
the book insisted to send in a latex file to Springer publisher, and this 
was accepted. So he probably has the correct bst style file which I could 
use. And I don't need to convert to rtf or whatever. Heureka. One should be 
more courages in respect to the publishers (and editors). 

Thanks all for valuable help and making me learn quite a bit again.

Wolfgang


Re: Importing LaTeX file with multiple indexes

2013-08-23 Thread Alan L Tyree

On 23/08/13 23:33, Richard Heck wrote:

On 08/20/2013 08:16 PM, Alan L Tyree wrote:
I'm having trouble with this. I have a LaTeX file with multiple 
indexes (defined in accordance with LyX conventions). I want to 
convert it to LyX.


The relevant part of the preamble looks like this:

\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\newindex[Table of Statutes]{tab}
\newindex[Table of Cases]{tab1}

Except for the Index entries, I'm not getting a clean import. Is 
there some trick to this?


You might ask about this on devel. I'm not sure if tex2lyx handles 
multiple indexes.


Richard

Thanks, Richard. After quite a bit of experimentation, I'm pretty sure 
that it doesn't.


Cheers,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jerry

On Aug 23, 2013, at 7:28 AM, Les Denham lden...@hal-pc.org wrote:

 On Thu, 22 Aug 2013 17:26:31 -0700
 Jerry lancebo...@qwest.net wrote:
 
 
 On Aug 21, 2013, at 5:16 AM, Les Denham lden...@hal-pc.org wrote:
 
 On Tue, 20 Aug 2013 18:13:23 -0700
 Jerry lancebo...@qwest.net wrote:
 
 
 On Aug 18, 2013, at 6:59 PM, Les Denham lden...@hal-pc.org wrote:
 
 My general approach to  getting a LyX document into Word format is
 to us the LyXHTML export, import the exported file into
 LibreOffice, fix the inevitable problems, and save in DOCX format.
 
 How do you import the XHTML from LyXHTML into LibreOffice? When I
 try it, I see only raw text; it is not rendered. I let the file
 dialog display all files and assumed that the .xhtml file
 extension would tell LO what to do but obviously this did not
 happen.
 
 Jerry,
 
 One of the inevitable problems. Try changing the .xhtml file
 extension to .html. I think you can also delve into the advanced
 settings of LibreOffice to tell it to treat .xhtml files as HTML.
 
 Les
 
 Les, thanks for that tip, but it didn't change anything--still raw
 text, either with a document with a few equations (and thus MathML in
 the XHTML file) or just a simple file containing only the word
 Hello.
 
 FWIW, when I do open the (x)html file, I get a dialog asking for
 Character set (default = UTF-8), Default fonts (default = Times New
 Roman), Language (default = English (US)) and Paragraph break
 (default = LF). I accepted all the defaults. So it looks at that
 point like something is about to happen, but then I see only raw
 text. 
 
 I also looked at Tools - Options - Load/Save - HTML Compatibility
 but didn't see anything relevant.
 
 Jerry
 
 Jerry,
 
 Sorry, I left out one step: before opening the file in LibreOffice,
 open in a text editor and delete the first line (the one that looks
 like this: ?xml version=1.0 encoding=UTF-8?). Save it and then
 import into LO.
 
 Les

Thanks, Les (and Alan). That fixes the import problem.

I was disappointed (but not surprised) to see that LibreOffice (actually, 
NeoOffice, a Macintized version of OpenOffice) does not render the math which 
comes over as MathML.

Firefox and recent versions of Safari (apparently at the WebKit level) do a 
passable job of rendering the math in a browser. Passable means easily 
readable and mathematically correct but not up to TeX standards.

The new (4.0 IIRC) version of LibreOffice had problems on the Mac so I deleted 
it for the time being. Maybe LO does the math.

As I ramble more...OpenOffice and LibreOffice leave giant white space on both 
sides of in-line math--completely unacceptable. And it seems impossible to 
understand the math syntax until one accidentally discovers that it is based on 
nroff or troff I'm not sure which because I don't care that much.

Jerry

Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Thursday, 22. August 2013, 20:46:14 schrieb Csikos Bela:
 So I select under toolsoutputlatex Bibliography Processor  bibtex
 (or custom? or bibtex8?)
 
 It seems you are using an older lyx version. It should work with it,
 still I suggest upgrading lyx to version 2.x.

###Thanks for your answer.
I am using 2.0.6
May be I should upgrade, but I am always afraid I do something wrong and 
can't work with it afterward. There is a deadline for a book chapter 
waiting...

 
 Set bibliography processor to bibtex. bibtex8 might work as well, I
 never tried it. If you select bibtex, make sure those fields in the bib
 database file that will be in the output do have only ASCII or latin-1
 encoded characters. Special characters should be replaced by latex
 commands (eg. ö is \{o} etc.).
 
 Since I have over 700 citations, I used Jabref for my bibliography and
 clicked the references via the lyx-export of jabref to the
 corresponding places of my document. If I use 
\setcitestyle{aysep={}}
 instead of your proposed \setcitestyle{round,aysep={}}, and if I put
 () around the citation, I get what I need.
 
 Do not add manually '(' and ')' around citations. The opening and
 closing braces (rounded, square, or other) are part of the citation.
 And it is better to add the citations within lyx.
 
 I don't know if jabref can handle the two different types of citations:
  ' and 'text (Author year) text'. Can it make a
 difference? If you insert the citations within lyx you can select which
 type you want. If you look at the source you can see that the latex
 command for the two types are different, \citet and \citep.
 
 Also, if you have several citations in a group, lyx can handle it.
 Can jabref handle that?
###I do it via lyx (add)
 
 Unfortunately you have to go through all the citations and adjust them
 manually. Or you can work on the .lyx source file directly using a text
 editor and replacing all cite* command with citep. (Make a backup
 of the original file before editing!) After this open your edited file
 in lyx, find the few (I suppose) occasions of 'text Author (year) text'
 type citations and adjust them manually.
 
 The  \setcitestyle{round,aysep={}} and  \setcitestyle{aysep={}}
 commands in the preamble have the same effect, as round is the
 default option in case of author-year citation. Removing or adding it
 does not make any difference.
 
 But what about eg: (Praschak-Rieder and Willeit 2012) and in case
 of three authors and more (Crosthwait et al. 1997)?
 
 I don't understand what your question is.

### here I meant the 'et al' after more then 2 authors in a (one!) 
reference:
author 1
author 1 and author 2
author 1 et all (3 authors or more)

 Unfortunately latex handles citations in goups. One group is all
 the citations selected and added at the same time. All these citations
 will be between the same pair of parentheses. If you add neighboring
 citations separately, they will be within different parentheses pairs.
 
 The source also shows the difference. For example.
 
 3 citations in one group:
 
 \citep{citation1,citation2,citaton3}
 
 The output will be:
 
 (author1 year1, author2 year2, author3 year3)
 
 However if you add them separately, like this:
 
 \citep{citation1} \citep{citation2} \cite{citaton3}
 
 the output will be:
 
 (author1 year1) (author2 year2) (author3 year3)
 
 You can adjust the opening and closing braces and the seperators
 between authors etc using \setcitestyle.
 
 Read the natbib manual (available at CTAN) section 2.9 Selecting
 citation punctuation.
 
 Where in the .lyx file (or elsewhere) would I place the authdate.bst
 file you kindly supplied?
 
 You can put it anywhere you want, but the best place is the directory
 where your .lyx file is. You select the bst file by clicking 'BibTeX
 Generated Bibliography' and browse for it.

### I guess there is a 'normal' place? I have it now in .lyx/layouts
 
 If you still have questions don't hesitate to ask, but be specific,
 please.

Hope I was this time.

Thanks,
Wolfgang


RE: Custom layout : how can Lyx transfer parameters to LATEX ?

2013-08-23 Thread LDF(f)

Thanks Scott !

I was able to figure out how to transfer from Lyx to Latex.

I just didn't find how to use the argument(s) in the Lyx part of the .layout
format file. Another way to put it, I didn't find the equivalent in Lyx of
the Latex #1 : I tried Argument1, arg1, etc. with no success. Is there a way
to use the argument(s) in the Lyx part ?

Thanks again for this promising 2.1 new feature !

Al


-Message d'origine-
De : skost...@lyx.org [mailto:skost...@lyx.org] De la part de Scott
Kostyshak
Envoyé : vendredi 9 août 2013 11:09
À : LDF(f)
Cc : lyx-users@lists.lyx.org
Objet : Re: Custom layout : how can Lyx transfer parameters to LATEX ?

On Fri, Aug 9, 2013 at 4:09 AM, LDF(f) l.dub...@free.fr wrote:

 I didn't see anything in the documentation nor in the examples here and
 there, that could be used to enter parameters for a custom layout.

This is a new feature in 2.1. You can try the beta if you want:
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta1

See 5.3.6  Paragraph styles in the LyX 2.1 Help  Customization
manual. Look for argument in that section.

Scott



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jean-Marc Lasgouttes

22/08/2013 21:09, Steve Litt of Troubleshooters.Com:

Yeah, now that you mention it, I remember KLyX. Thank you, thank you,
THANK YOU for winning that battle!


The problem was not only around KDE (although there were ideological 
ideas behind this port that we did not share), but rather that we were 
very busy at that time turning the code base into something usable. The 
original implementations of footnotes and and tabulars were, err, 
interesting :) The priority was clearly not in a shiny interface.


JMarc



Re: Citation and reference style

2013-08-23 Thread Csikos Bela
Wolfgang Engelmann engelm...@uni-tuebingen.de írta:

I am using 2.0.6

That is the latest stable version. I thought you worked with older version
since there is no toolsoutputlatex Bibliography Processor menu
in lyx 2.0.6. Now I see you only left out 'Preferences' step.


### here I meant the 'et al' after more then 2 authors in a (one!)
reference:
author 1
author 1 and author 2
author 1 et all (3 authors or more)

I still don't get it. Could you please give some real example embedded
in text? Anyway the et al. is handled automatically by bibtex.
If there is only one author the output is: (author year)
2 authors, output: (author1 and author2 year)
3 author, output: (author1 et al. year).

You find more examples in the natbib manual, Section 2.3 Basic
Citation Commands.

I suggest that you create a new file and insert only short text in it with
different citations and look at the output. Experience with it.

### I guess there is a 'normal' place? I have it now in .lyx/layouts

I always keep the specific style along with the document.
I keep different documents in separate directories with the necessary
files (images, bibtex database and style file etc.).

So if I want to transfer/copy the document to another computer I transfer
the whole document directory. 

bcsikos





Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Friday, 23. August 2013, 11:21:26 schrieb Csikos Bela:
 Wolfgang Engelmann engelm...@uni-tuebingen.de írta:
 I am using 2.0.6
 
 That is the latest stable version. I thought you worked with older
 version since there is no toolsoutputlatex Bibliography Processor
 menu in lyx 2.0.6. Now I see you only left out 'Preferences' step.

Thanks again for your help, Csikos.

I tried for quite some time this morning to get the Lyx2.1beta installed by 
using LinuxMint Debian 15, but without success. I used 
http://ppa.launchpad.net/lyx-
devel/daily/ubuntu/dists/debian/main/source/Sources
so I gave up and used my lyx 2.0.6
(error: it could not find the lyx2.1 package
 
 ### here I meant the 'et al' after more then 2 authors in a (one!)
 reference:
 author 1
 author 1 and author 2
 author 1 et all (3 authors or more)
 
 I still don't get it. Could you please give some real example embedded
 in text? Anyway the et al. is handled automatically by bibtex.
 If there is only one author the output is: (author year)
 2 authors, output: (author1 and author2 year)
 3 author, output: (author1 et al. year).

For clarification I include a small lyx file and bib file with which I tried 
out your authdate.bst file you had sent, but it did not work (?? instead of 
citations, no references, no error message.
Instead I tried the authordate1, 2, 3 and 4 bst files from within lyx
and found authordate1 useful, but not adequate. 
So I have to fiddle around with it (I tried many other bst files from the 
dropdown menu, but none was as I need it). 

 
 You find more examples in the natbib manual, Section 2.3 Basic
 Citation Commands.

will read that and try to set up a correct one for my needs via makebst or 
something alike.
 
 I suggest that you create a new file and insert only short text in it
 with different citations and look at the output. Experience with it.
 
 ### I guess there is a 'normal' place? I have it now in .lyx/layouts
 
 I always keep the specific style along with the document.
 I keep different documents in separate directories with the necessary
 files (images, bibtex database and style file etc.).

So did I, except the style files. 

 
 So if I want to transfer/copy the document to another computer I
 transfer the whole document directory.

Yes.

Thanks for your patience.
I was hoping to get some help from the publisher (sv), but nothing so far.

Wolfgang
 
 bcsikos
% This file was created with JabRef 2.7b.
% Encoding: ISO8859_1

@ARTICLE{Bruce1972,
  author = {Bruce, V. G.},
  title = {Mutants of the biological clock in \emph{{C}hlamydomonas reinhardi}},
  journal = {Genetics},
  year = {1972},
  volume = {70},
  pages = {537--548},
  abstract = {A genetic analysis of the biological clock in Chlamydomonas reinhardi
	has been initiated. Of six wild-type strains tested (3 mt(+) and
	3 mt(-)), five had periods close to 24 hr whereas one had a 21-hr
	period. Mutants with altered clock period have been isolated. The
	periods of 3 of these variant strains are temperature compensated.
	Genetic crosses involving a long-period mutant suggest that a single
	gene confers the long-period character, and in general clock-period
	length seems to be a useful phenotypic measure of alterations in
	the clock due to genetic differences. One phase mutant was found
	but its behavior was variable and the phase of the rhythm, relative
	to a light-dark transition which initiates the rhythm, does not seem
	to be reliable as a parameter of clock differences. No markers have
	yet been mapped.},
  keywords = {Biological Clocks; Cell Movement; Chlamydomonas; Chlorophyta; Circadian
	Rhythm; Crosses, Genetic; Genotype; Methods; Mutation, drug effects;
	Nitrosoguanidines, pharmacology; Phenotype; Photic Stimulation; Temperature;
	Time Factors},
  language = {eng},
  medline-pst = {ppublish},
  owner = {wolfgang},
  pmid = {5034771},
  timestamp = {2012.03.02}
}

@ARTICLE{Gaskill2010,
  author = {Christa Gaskill and Jennifer Forbes-Stovall and Bruce Kessler and
	Mike Young and Claire A Rinehart and Sigrid Jacobshagen},
  title = {Improved automated monitoring and new analysis algorithm for circadian
	phototaxis rhythms in \emph{{C}hlamydomonas}},
  journal = {Plant Physiol Bioch},
  year = {2010},
  volume = {48},
  pages = {239--246},
  abstract = {Automated monitoring of circadian rhythms is an efficient way of gaining
	insight into oscillation parameters like period and phase for the
	underlying pacemaker of the circadian clock. 
	
	
	Measurement of the circadian rhythm of phototaxis (swimming towards
	light) exhibited by the green alga Chlamydomonas reinhardtii has
	been automated by directing a narrow and dim light beam through a
	culture at regular intervals and determining the decrease in light
	transmittance due to the accumulation of cells in the beam. 
	
	
	In this study, the monitoring process was optimized by constructing
	a new computer-controlled measuring machine that limits the test
	beam to wavelengths reported to be specific for 

Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Dr Eberhard Lisse
Went and had a look,

I can find LyX documents from 2000 having survived transitions through a
number of Linux distributions and machines, to a number of Macs.

:-)-O

el


on 2013-08-21 17:53 stefano franchi said the following:
 
 On Wed, Aug 21, 2013 at 10:45 AM, Wolfgang Keller felip...@gmx.net
 mailto:felip...@gmx.net wrote:
 
 
  And I say this as a LyX-only writer for the past 15 years or so.
 
 The first public LyX version was when? Can't have been much longer
 than 10 years ago.
 
 
 Way earlier than that. I switched to Lyx after I completed my
 dissertation (which I wrote in Framemaker, on a NeXt cube. Boy am I
 old!). I defended in 1997...
 
 Cheers,
 
 Stefano




Re: Custom layout : how can Lyx transfer parameters to LATEX ?

2013-08-23 Thread Richard Heck

On 08/23/2013 03:44 AM, LDF(f) wrote:

Thanks Scott !

I was able to figure out how to transfer from Lyx to Latex.

I just didn't find how to use the argument(s) in the Lyx part of the .layout
format file. Another way to put it, I didn't find the equivalent in Lyx of
the Latex #1 : I tried Argument1, arg1, etc. with no success. Is there a way
to use the argument(s) in the Lyx part ?

Thanks again for this promising 2.1 new feature !


I'm not sure what you're trying to do here. The arguments within LyX 
itself appear in new versions of what used to be called the Short 
Title inset. That's the only place they appear. You can't do anything 
with them otherwise. They are output to LaTeX as optional or mandatory 
arguments in the order specified in the layout file.


This is all documented in the Customization manual that ships with 
2.1.beta1. See section 5.3.6.


Richard



Re: Importing LaTeX file with multiple indexes

2013-08-23 Thread Richard Heck

On 08/20/2013 08:16 PM, Alan L Tyree wrote:
I'm having trouble with this. I have a LaTeX file with multiple 
indexes (defined in accordance with LyX conventions). I want to 
convert it to LyX.


The relevant part of the preamble looks like this:

\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\newindex[Table of Statutes]{tab}
\newindex[Table of Cases]{tab1}

Except for the Index entries, I'm not getting a clean import. Is there 
some trick to this?


You might ask about this on devel. I'm not sure if tex2lyx handles 
multiple indexes.


Richard



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Les Denham
On Thu, 22 Aug 2013 17:26:31 -0700
Jerry lancebo...@qwest.net wrote:

 
 On Aug 21, 2013, at 5:16 AM, Les Denham lden...@hal-pc.org wrote:
 
  On Tue, 20 Aug 2013 18:13:23 -0700
  Jerry lancebo...@qwest.net wrote:
  
  
  On Aug 18, 2013, at 6:59 PM, Les Denham lden...@hal-pc.org wrote:
  
  My general approach to  getting a LyX document into Word format is
  to us the LyXHTML export, import the exported file into
  LibreOffice, fix the inevitable problems, and save in DOCX format.
  
  How do you import the XHTML from LyXHTML into LibreOffice? When I
  try it, I see only raw text; it is not rendered. I let the file
  dialog display all files and assumed that the .xhtml file
  extension would tell LO what to do but obviously this did not
  happen.
  
  Jerry,
  
  One of the inevitable problems. Try changing the .xhtml file
  extension to .html. I think you can also delve into the advanced
  settings of LibreOffice to tell it to treat .xhtml files as HTML.
  
  Les
 
 Les, thanks for that tip, but it didn't change anything--still raw
 text, either with a document with a few equations (and thus MathML in
 the XHTML file) or just a simple file containing only the word
 Hello.
 
 FWIW, when I do open the (x)html file, I get a dialog asking for
 Character set (default = UTF-8), Default fonts (default = Times New
 Roman), Language (default = English (US)) and Paragraph break
 (default = LF). I accepted all the defaults. So it looks at that
 point like something is about to happen, but then I see only raw
 text. 
 
 I also looked at Tools - Options - Load/Save - HTML Compatibility
 but didn't see anything relevant.
 
 Jerry

Jerry,

Sorry, I left out one step: before opening the file in LibreOffice,
open in a text editor and delete the first line (the one that looks
like this: ?xml version=1.0 encoding=UTF-8?). Save it and then
import into LO.

Les

Les


Re: a problem with formatting acronyms in svmono class

2013-08-23 Thread Steve Litt
On Wed, 21 Aug 2013 16:20:36 + (UTC)
Bieniasz nbbie...@cyf-kr.edu.pl wrote:

 Hello,
 
 I am using the Springer svmono class under LyX, to write a monograph. 
 The class has a template for acronyms, which allows authors to make
 explanations in the following way:
 
 XXX  {blablabla}
   {blablablabla}
 ZZ  {blabla}
 
 This means, that an acronym to be explained is followed
 by an explanation in braces. The problem seems to be that the
 explanations are not aligned to any vertical line, but occur in
 various places, depending on the length of the explained symbol.
 This looks rather ugly (as is shown above). 
 
 My question is: can one do anything to force the alignment of
 all left braces at the same distance from the left margin?
 
 I would like to have something like in following list:
 
 XXX   {blablabla}
   {blablablabla}
 ZZ{blabla}
 
   Leslaw

Well, of course the kludgy way to do it is to use a table with no
visible borders. Ugly!

I know nothing about Springer svmono, but there's probably a way to
make a LyX environment that does what you want. 

Study the Labeling environment that comes with LyX 2.x. It's
almost what you want, and it aligns the explanations beneath each other.
Your job would be:

1) Turn off its feature where the first item is in italics (probably to
   designate it as a header
2) Wrap the explanation in curly braces.

Do that and you're done.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Steve Litt
On Fri, 23 Aug 2013 10:20:06 +0200
Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 22/08/2013 21:09, Steve Litt of Troubleshooters.Com:
  Yeah, now that you mention it, I remember KLyX. Thank you, thank
  you, THANK YOU for winning that battle!
 
 The problem was not only around KDE (although there were ideological 
 ideas behind this port that we did not share), but rather that we
 were very busy at that time turning the code base into something
 usable. The original implementations of footnotes and and tabulars
 were, err, interesting :) The priority was clearly not in a shiny
 interface.

Yes, I still remember (fondly, actually) xforms. LyX with xforms could
not have been accused of having a shiny interface :-)

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Friday, 23. August 2013, 11:21:26 schrieb Csikos Bela:

Hi, 

I think all my problems are solved. One of the authors of the chapters of 
the book insisted to send in a latex file to Springer publisher, and this 
was accepted. So he probably has the correct bst style file which I could 
use. And I don't need to convert to rtf or whatever. Heureka. One should be 
more courages in respect to the publishers (and editors). 

Thanks all for valuable help and making me learn quite a bit again.

Wolfgang


Re: Importing LaTeX file with multiple indexes

2013-08-23 Thread Alan L Tyree

On 23/08/13 23:33, Richard Heck wrote:

On 08/20/2013 08:16 PM, Alan L Tyree wrote:
I'm having trouble with this. I have a LaTeX file with multiple 
indexes (defined in accordance with LyX conventions). I want to 
convert it to LyX.


The relevant part of the preamble looks like this:

\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\newindex[Table of Statutes]{tab}
\newindex[Table of Cases]{tab1}

Except for the Index entries, I'm not getting a clean import. Is 
there some trick to this?


You might ask about this on devel. I'm not sure if tex2lyx handles 
multiple indexes.


Richard

Thanks, Richard. After quite a bit of experimentation, I'm pretty sure 
that it doesn't.


Cheers,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jerry

On Aug 23, 2013, at 7:28 AM, Les Denham lden...@hal-pc.org wrote:

 On Thu, 22 Aug 2013 17:26:31 -0700
 Jerry lancebo...@qwest.net wrote:
 
 
 On Aug 21, 2013, at 5:16 AM, Les Denham lden...@hal-pc.org wrote:
 
 On Tue, 20 Aug 2013 18:13:23 -0700
 Jerry lancebo...@qwest.net wrote:
 
 
 On Aug 18, 2013, at 6:59 PM, Les Denham lden...@hal-pc.org wrote:
 
 My general approach to  getting a LyX document into Word format is
 to us the LyXHTML export, import the exported file into
 LibreOffice, fix the inevitable problems, and save in DOCX format.
 
 How do you import the XHTML from LyXHTML into LibreOffice? When I
 try it, I see only raw text; it is not rendered. I let the file
 dialog display all files and assumed that the .xhtml file
 extension would tell LO what to do but obviously this did not
 happen.
 
 Jerry,
 
 One of the inevitable problems. Try changing the .xhtml file
 extension to .html. I think you can also delve into the advanced
 settings of LibreOffice to tell it to treat .xhtml files as HTML.
 
 Les
 
 Les, thanks for that tip, but it didn't change anything--still raw
 text, either with a document with a few equations (and thus MathML in
 the XHTML file) or just a simple file containing only the word
 Hello.
 
 FWIW, when I do open the (x)html file, I get a dialog asking for
 Character set (default = UTF-8), Default fonts (default = Times New
 Roman), Language (default = English (US)) and Paragraph break
 (default = LF). I accepted all the defaults. So it looks at that
 point like something is about to happen, but then I see only raw
 text. 
 
 I also looked at Tools - Options - Load/Save - HTML Compatibility
 but didn't see anything relevant.
 
 Jerry
 
 Jerry,
 
 Sorry, I left out one step: before opening the file in LibreOffice,
 open in a text editor and delete the first line (the one that looks
 like this: ?xml version=1.0 encoding=UTF-8?). Save it and then
 import into LO.
 
 Les

Thanks, Les (and Alan). That fixes the import problem.

I was disappointed (but not surprised) to see that LibreOffice (actually, 
NeoOffice, a Macintized version of OpenOffice) does not render the math which 
comes over as MathML.

Firefox and recent versions of Safari (apparently at the WebKit level) do a 
passable job of rendering the math in a browser. Passable means easily 
readable and mathematically correct but not up to TeX standards.

The new (4.0 IIRC) version of LibreOffice had problems on the Mac so I deleted 
it for the time being. Maybe LO does the math.

As I ramble more...OpenOffice and LibreOffice leave giant white space on both 
sides of in-line math--completely unacceptable. And it seems impossible to 
understand the math syntax until one accidentally discovers that it is based on 
nroff or troff I'm not sure which because I don't care that much.

Jerry

Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Thursday, 22. August 2013, 20:46:14 schrieb Csikos Bela:
> >So I select under tools>output>latex> Bibliography Processor > bibtex
> >(or custom? or bibtex8?)
> 
> It seems you are using an older lyx version. It should work with it,
> still I suggest upgrading lyx to version 2.x.

###Thanks for your answer.
I am using 2.0.6
May be I should upgrade, but I am always afraid I do something wrong and 
can't work with it afterward. There is a deadline for a book chapter 
waiting...

> 
> Set bibliography processor to bibtex. bibtex8 might work as well, I
> never tried it. If you select bibtex, make sure those fields in the bib
> database file that will be in the output do have only ASCII or latin-1
> encoded characters. Special characters should be replaced by latex
> commands (eg. ö is \"{o} etc.).
> 
> >Since I have over 700 citations, I used Jabref for my bibliography and
> >clicked the references via the lyx-export of jabref to the
> >corresponding places of my document. If I use 
\setcitestyle{aysep={}}
> >instead of your proposed \setcitestyle{round,aysep={}}, and if I put
> >() around the citation, I get what I need.
> 
> Do not add manually '(' and ')' around citations. The opening and
> closing braces (rounded, square, or other) are part of the citation.
> And it is better to add the citations within lyx.
> 
> I don't know if jabref can handle the two different types of citations:
>  ' and 'text (Author year) text'. Can it make a
> difference? If you insert the citations within lyx you can select which
> type you want. If you look at the source you can see that the latex
> command for the two types are different, \citet and \citep.
> 
> Also, if you have several citations in a group, lyx can handle it.
> Can jabref handle that?
###I do it via lyx (add)
> 
> Unfortunately you have to go through all the citations and adjust them
> manually. Or you can work on the .lyx source file directly using a text
> editor and replacing all cite* command with citep. (Make a backup
> of the original file before editing!) After this open your edited file
> in lyx, find the few (I suppose) occasions of 'text Author (year) text'
> type citations and adjust them manually.
> 
> The  \setcitestyle{round,aysep={}} and  \setcitestyle{aysep={}}
> commands in the preamble have the same effect, as round is the
> default option in case of author-year citation. Removing or adding it
> does not make any difference.
> 
> >But what about eg: (Praschak-Rieder and Willeit 2012) and in case
> >of three authors and more (Crosthwait et al. 1997)?
> 
> I don't understand what your question is.

### here I meant the 'et al' after more then 2 authors in a (one!) 
reference:
author 1
author 1 and author 2
author 1 et all (3 authors or more)

> Unfortunately latex handles citations in goups. One group is all
> the citations selected and added at the same time. All these citations
> will be between the same pair of parentheses. If you add neighboring
> citations separately, they will be within different parentheses pairs.
> 
> The source also shows the difference. For example.
> 
> 3 citations in one group:
> 
> \citep{citation1,citation2,citaton3}
> 
> The output will be:
> 
> (author1 year1, author2 year2, author3 year3)
> 
> However if you add them separately, like this:
> 
> \citep{citation1} \citep{citation2} \cite{citaton3}
> 
> the output will be:
> 
> (author1 year1) (author2 year2) (author3 year3)
> 
> You can adjust the opening and closing braces and the seperators
> between authors etc using \setcitestyle.
> 
> Read the natbib manual (available at CTAN) section 2.9 Selecting
> citation punctuation.
> 
> >Where in the .lyx file (or elsewhere) would I place the authdate.bst
> >file you kindly supplied?
> 
> You can put it anywhere you want, but the best place is the directory
> where your .lyx file is. You select the bst file by clicking 'BibTeX
> Generated Bibliography' and browse for it.

### I guess there is a 'normal' place? I have it now in .lyx/layouts
> 
> If you still have questions don't hesitate to ask, but be specific,
> please.

Hope I was this time.

Thanks,
Wolfgang


RE: Custom layout : how can Lyx transfer parameters to LATEX ?

2013-08-23 Thread LDF(f)

Thanks Scott !

I was able to figure out how to transfer from Lyx to Latex.

I just didn't find how to use the argument(s) in the Lyx part of the .layout
format file. Another way to put it, I didn't find the equivalent in Lyx of
the Latex #1 : I tried Argument1, arg1, etc. with no success. Is there a way
to use the argument(s) in the Lyx part ?

Thanks again for this promising 2.1 new feature !

Al


-Message d'origine-
De : skost...@lyx.org [mailto:skost...@lyx.org] De la part de Scott
Kostyshak
Envoyé : vendredi 9 août 2013 11:09
À : LDF(f)
Cc : lyx-users@lists.lyx.org
Objet : Re: Custom layout : how can Lyx transfer parameters to LATEX ?

On Fri, Aug 9, 2013 at 4:09 AM, LDF(f)  wrote:

> I didn't see anything in the documentation nor in the examples here and
> there, that could be used to enter parameters for a custom layout.

This is a new feature in 2.1. You can try the beta if you want:
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta1

See 5.3.6  Paragraph styles in the LyX 2.1 Help > Customization
manual. Look for "argument" in that section.

Scott



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jean-Marc Lasgouttes

22/08/2013 21:09, Steve Litt of Troubleshooters.Com:

Yeah, now that you mention it, I remember KLyX. Thank you, thank you,
THANK YOU for winning that battle!


The problem was not only around KDE (although there were ideological 
ideas behind this port that we did not share), but rather that we were 
very busy at that time turning the code base into something usable. The 
original implementations of footnotes and and tabulars were, err, 
interesting :) The priority was clearly not in a shiny interface.


JMarc



Re: Citation and reference style

2013-08-23 Thread Csikos Bela
Wolfgang Engelmann  írta:

>I am using 2.0.6

That is the latest stable version. I thought you worked with older version
since there is no tools>output>latex> Bibliography Processor menu
in lyx 2.0.6. Now I see you only left out 'Preferences' step.


>### here I meant the 'et al' after more then 2 authors in a (one!)
>reference:
>author 1
>author 1 and author 2
>author 1 et all (3 authors or more)

I still don't get it. Could you please give some real example embedded
in text? Anyway the et al. is handled automatically by bibtex.
If there is only one author the output is: (author year)
2 authors, output: (author1 and author2 year)
3 author, output: (author1 et al. year).

You find more examples in the natbib manual, Section 2.3 Basic
Citation Commands.

I suggest that you create a new file and insert only short text in it with
different citations and look at the output. Experience with it.

>### I guess there is a 'normal' place? I have it now in .lyx/layouts

I always keep the specific style along with the document.
I keep different documents in separate directories with the necessary
files (images, bibtex database and style file etc.).

So if I want to transfer/copy the document to another computer I transfer
the whole document directory. 

bcsikos





Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Friday, 23. August 2013, 11:21:26 schrieb Csikos Bela:
> Wolfgang Engelmann  írta:
> >I am using 2.0.6
> 
> That is the latest stable version. I thought you worked with older
> version since there is no tools>output>latex> Bibliography Processor
> menu in lyx 2.0.6. Now I see you only left out 'Preferences' step.

Thanks again for your help, Csikos.

I tried for quite some time this morning to get the Lyx2.1beta installed by 
using LinuxMint Debian 15, but without success. I used 
http://ppa.launchpad.net/lyx-
devel/daily/ubuntu/dists/debian/main/source/Sources
so I gave up and used my lyx 2.0.6
(error: it could not find the lyx2.1 package
> 
> >### here I meant the 'et al' after more then 2 authors in a (one!)
> >reference:
> >author 1
> >author 1 and author 2
> >author 1 et all (3 authors or more)
> 
> I still don't get it. Could you please give some real example embedded
> in text? Anyway the et al. is handled automatically by bibtex.
> If there is only one author the output is: (author year)
> 2 authors, output: (author1 and author2 year)
> 3 author, output: (author1 et al. year).

For clarification I include a small lyx file and bib file with which I tried 
out your authdate.bst file you had sent, but it did not work (?? instead of 
citations, no references, no error message.
Instead I tried the authordate1, 2, 3 and 4 bst files from within lyx
and found authordate1 useful, but not adequate. 
So I have to fiddle around with it (I tried many other bst files from the 
dropdown menu, but none was as I need it). 

> 
> You find more examples in the natbib manual, Section 2.3 Basic
> Citation Commands.

will read that and try to set up a correct one for my needs via makebst or 
something alike.
> 
> I suggest that you create a new file and insert only short text in it
> with different citations and look at the output. Experience with it.
> 
> >### I guess there is a 'normal' place? I have it now in .lyx/layouts
> 
> I always keep the specific style along with the document.
> I keep different documents in separate directories with the necessary
> files (images, bibtex database and style file etc.).

So did I, except the style files. 

> 
> So if I want to transfer/copy the document to another computer I
> transfer the whole document directory.

Yes.

Thanks for your patience.
I was hoping to get some help from the publisher (sv), but nothing so far.

Wolfgang
> 
> bcsikos
% This file was created with JabRef 2.7b.
% Encoding: ISO8859_1

@ARTICLE{Bruce1972,
  author = {Bruce, V. G.},
  title = {Mutants of the biological clock in \emph{{C}hlamydomonas reinhardi}},
  journal = {Genetics},
  year = {1972},
  volume = {70},
  pages = {537--548},
  abstract = {A genetic analysis of the biological clock in Chlamydomonas reinhardi
	has been initiated. Of six wild-type strains tested (3 mt(+) and
	3 mt(-)), five had periods close to 24 hr whereas one had a 21-hr
	period. Mutants with altered clock period have been isolated. The
	periods of 3 of these variant strains are temperature compensated.
	Genetic crosses involving a long-period mutant suggest that a single
	gene confers the long-period character, and in general clock-period
	length seems to be a useful phenotypic measure of alterations in
	the clock due to genetic differences. One phase mutant was found
	but its behavior was variable and the phase of the rhythm, relative
	to a light-dark transition which initiates the rhythm, does not seem
	to be reliable as a parameter of clock differences. No markers have
	yet been mapped.},
  keywords = {Biological Clocks; Cell Movement; Chlamydomonas; Chlorophyta; Circadian
	Rhythm; Crosses, Genetic; Genotype; Methods; Mutation, drug effects;
	Nitrosoguanidines, pharmacology; Phenotype; Photic Stimulation; Temperature;
	Time Factors},
  language = {eng},
  medline-pst = {ppublish},
  owner = {wolfgang},
  pmid = {5034771},
  timestamp = {2012.03.02}
}

@ARTICLE{Gaskill2010,
  author = {Christa Gaskill and Jennifer Forbes-Stovall and Bruce Kessler and
	Mike Young and Claire A Rinehart and Sigrid Jacobshagen},
  title = {Improved automated monitoring and new analysis algorithm for circadian
	phototaxis rhythms in \emph{{C}hlamydomonas}},
  journal = {Plant Physiol Bioch},
  year = {2010},
  volume = {48},
  pages = {239--246},
  abstract = {Automated monitoring of circadian rhythms is an efficient way of gaining
	insight into oscillation parameters like period and phase for the
	underlying pacemaker of the circadian clock. 
	
	
	Measurement of the circadian rhythm of phototaxis (swimming towards
	light) exhibited by the green alga Chlamydomonas reinhardtii has
	been automated by directing a narrow and dim light beam through a
	culture at regular intervals and determining the decrease in light
	transmittance due to the accumulation of cells in the beam. 
	
	
	In this study, the monitoring process was optimized by constructing
	a new computer-controlled measuring machine that limits the test
	

Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Dr Eberhard Lisse
Went and had a look,

I can find LyX documents from 2000 having survived transitions through a
number of Linux distributions and machines, to a number of Macs.

:-)-O

el


on 2013-08-21 17:53 stefano franchi said the following:
> 
> On Wed, Aug 21, 2013 at 10:45 AM, Wolfgang Keller  > wrote:
> 
> 
> > And I say this as a LyX-only writer for the past 15 years or so.
> 
> The first public LyX version was when? Can't have been much longer
> than 10 years ago.
> 
> 
> Way earlier than that. I switched to Lyx after I completed my
> dissertation (which I wrote in Framemaker, on a NeXt cube. Boy am I
> old!). I defended in 1997...
> 
> Cheers,
> 
> Stefano




Re: Custom layout : how can Lyx transfer parameters to LATEX ?

2013-08-23 Thread Richard Heck

On 08/23/2013 03:44 AM, LDF(f) wrote:

Thanks Scott !

I was able to figure out how to transfer from Lyx to Latex.

I just didn't find how to use the argument(s) in the Lyx part of the .layout
format file. Another way to put it, I didn't find the equivalent in Lyx of
the Latex #1 : I tried Argument1, arg1, etc. with no success. Is there a way
to use the argument(s) in the Lyx part ?

Thanks again for this promising 2.1 new feature !


I'm not sure what you're trying to do here. The arguments within LyX 
itself appear in new versions of what used to be called the "Short 
Title" inset. That's the only place they appear. You can't do anything 
with them otherwise. They are output to LaTeX as optional or mandatory 
arguments in the order specified in the layout file.


This is all documented in the Customization manual that ships with 
2.1.beta1. See section 5.3.6.


Richard



Re: Importing LaTeX file with multiple indexes

2013-08-23 Thread Richard Heck

On 08/20/2013 08:16 PM, Alan L Tyree wrote:
I'm having trouble with this. I have a LaTeX file with multiple 
indexes (defined in accordance with LyX conventions). I want to 
convert it to LyX.


The relevant part of the preamble looks like this:

\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\newindex[Table of Statutes]{tab}
\newindex[Table of Cases]{tab1}

Except for the Index entries, I'm not getting a clean import. Is there 
some trick to this?


You might ask about this on devel. I'm not sure if tex2lyx handles 
multiple indexes.


Richard



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Les Denham
On Thu, 22 Aug 2013 17:26:31 -0700
Jerry  wrote:

> 
> On Aug 21, 2013, at 5:16 AM, Les Denham  wrote:
> 
> > On Tue, 20 Aug 2013 18:13:23 -0700
> > Jerry  wrote:
> > 
> >> 
> >> On Aug 18, 2013, at 6:59 PM, Les Denham  wrote:
> >> 
> >>> My general approach to  getting a LyX document into Word format is
> >>> to us the LyXHTML export, import the exported file into
> >>> LibreOffice, fix the inevitable problems, and save in DOCX format.
> >> 
> >> How do you import the XHTML from LyXHTML into LibreOffice? When I
> >> try it, I see only raw text; it is not rendered. I let the file
> >> dialog display all files and assumed that the .xhtml file
> >> extension would tell LO what to do but obviously this did not
> >> happen.
> >> 
> > Jerry,
> > 
> > One of the inevitable problems. Try changing the .xhtml file
> > extension to .html. I think you can also delve into the advanced
> > settings of LibreOffice to tell it to treat .xhtml files as HTML.
> > 
> > Les
> 
> Les, thanks for that tip, but it didn't change anything--still raw
> text, either with a document with a few equations (and thus MathML in
> the XHTML file) or just a simple file containing only the word
> "Hello".
> 
> FWIW, when I do open the (x)html file, I get a dialog asking for
> Character set (default = UTF-8), Default fonts (default = Times New
> Roman), Language (default = English (US)) and Paragraph break
> (default = LF). I accepted all the defaults. So it looks at that
> point like something is about to happen, but then I see only raw
> text. 
> 
> I also looked at Tools -> Options -> Load/Save -> HTML Compatibility
> but didn't see anything relevant.
> 
> Jerry

Jerry,

Sorry, I left out one step: before opening the file in LibreOffice,
open in a text editor and delete the first line (the one that looks
like this: ). Save it and then
import into LO.

Les

Les


Re: a problem with formatting acronyms in svmono class

2013-08-23 Thread Steve Litt
On Wed, 21 Aug 2013 16:20:36 + (UTC)
Bieniasz  wrote:

> Hello,
> 
> I am using the Springer svmono class under LyX, to write a monograph. 
> The class has a template for "acronyms", which allows authors to make
> explanations in the following way:
> 
> XXX  {blablabla}
>   {blablablabla}
> ZZ  {blabla}
> 
> This means, that an acronym to be explained is followed
> by an explanation in braces. The problem seems to be that the
> explanations are not aligned to any vertical line, but occur in
> various places, depending on the length of the explained symbol.
> This looks rather ugly (as is shown above). 
> 
> My question is: can one do anything to force the alignment of
> all left braces at the same distance from the left margin?
> 
> I would like to have something like in following list:
> 
> XXX   {blablabla}
>   {blablablabla}
> ZZ{blabla}
> 
>   Leslaw

Well, of course the kludgy way to do it is to use a table with no
visible borders. Ugly!

I know nothing about Springer svmono, but there's probably a way to
make a LyX environment that does what you want. 

Study the "Labeling" environment that comes with LyX 2.x. It's
almost what you want, and it aligns the explanations beneath each other.
Your job would be:

1) Turn off its feature where the first item is in italics (probably to
   designate it as a header
2) Wrap the explanation in curly braces.

Do that and you're done.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Steve Litt
On Fri, 23 Aug 2013 10:20:06 +0200
Jean-Marc Lasgouttes  wrote:

> 22/08/2013 21:09, Steve Litt of Troubleshooters.Com:
> > Yeah, now that you mention it, I remember KLyX. Thank you, thank
> > you, THANK YOU for winning that battle!
> 
> The problem was not only around KDE (although there were ideological 
> ideas behind this port that we did not share), but rather that we
> were very busy at that time turning the code base into something
> usable. The original implementations of footnotes and and tabulars
> were, err, interesting :) The priority was clearly not in a shiny
> interface.

Yes, I still remember (fondly, actually) xforms. LyX with xforms could
not have been accused of having a shiny interface :-)

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Citation and reference style

2013-08-23 Thread Wolfgang Engelmann
Am Friday, 23. August 2013, 11:21:26 schrieb Csikos Bela:

Hi, 

I think all my problems are solved. One of the authors of the chapters of 
the book insisted to send in a latex file to Springer publisher, and this 
was accepted. So he probably has the correct bst style file which I could 
use. And I don't need to convert to rtf or whatever. Heureka. One should be 
more courages in respect to the publishers (and editors). 

Thanks all for valuable help and making me learn quite a bit again.

Wolfgang


Re: Importing LaTeX file with multiple indexes

2013-08-23 Thread Alan L Tyree

On 23/08/13 23:33, Richard Heck wrote:

On 08/20/2013 08:16 PM, Alan L Tyree wrote:
I'm having trouble with this. I have a LaTeX file with multiple 
indexes (defined in accordance with LyX conventions). I want to 
convert it to LyX.


The relevant part of the preamble looks like this:

\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\newindex[Table of Statutes]{tab}
\newindex[Table of Cases]{tab1}

Except for the Index entries, I'm not getting a clean import. Is 
there some trick to this?


You might ask about this on devel. I'm not sure if tex2lyx handles 
multiple indexes.


Richard

Thanks, Richard. After quite a bit of experimentation, I'm pretty sure 
that it doesn't.


Cheers,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org



Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jerry

On Aug 23, 2013, at 7:28 AM, Les Denham  wrote:

> On Thu, 22 Aug 2013 17:26:31 -0700
> Jerry  wrote:
> 
>> 
>> On Aug 21, 2013, at 5:16 AM, Les Denham  wrote:
>> 
>>> On Tue, 20 Aug 2013 18:13:23 -0700
>>> Jerry  wrote:
>>> 
 
 On Aug 18, 2013, at 6:59 PM, Les Denham  wrote:
 
> My general approach to  getting a LyX document into Word format is
> to us the LyXHTML export, import the exported file into
> LibreOffice, fix the inevitable problems, and save in DOCX format.
 
 How do you import the XHTML from LyXHTML into LibreOffice? When I
 try it, I see only raw text; it is not rendered. I let the file
 dialog display all files and assumed that the .xhtml file
 extension would tell LO what to do but obviously this did not
 happen.
 
>>> Jerry,
>>> 
>>> One of the inevitable problems. Try changing the .xhtml file
>>> extension to .html. I think you can also delve into the advanced
>>> settings of LibreOffice to tell it to treat .xhtml files as HTML.
>>> 
>>> Les
>> 
>> Les, thanks for that tip, but it didn't change anything--still raw
>> text, either with a document with a few equations (and thus MathML in
>> the XHTML file) or just a simple file containing only the word
>> "Hello".
>> 
>> FWIW, when I do open the (x)html file, I get a dialog asking for
>> Character set (default = UTF-8), Default fonts (default = Times New
>> Roman), Language (default = English (US)) and Paragraph break
>> (default = LF). I accepted all the defaults. So it looks at that
>> point like something is about to happen, but then I see only raw
>> text. 
>> 
>> I also looked at Tools -> Options -> Load/Save -> HTML Compatibility
>> but didn't see anything relevant.
>> 
>> Jerry
> 
> Jerry,
> 
> Sorry, I left out one step: before opening the file in LibreOffice,
> open in a text editor and delete the first line (the one that looks
> like this: ). Save it and then
> import into LO.
> 
> Les

Thanks, Les (and Alan). That fixes the import problem.

I was disappointed (but not surprised) to see that LibreOffice (actually, 
NeoOffice, a Macintized version of OpenOffice) does not render the math which 
comes over as MathML.

Firefox and recent versions of Safari (apparently at the WebKit level) do a 
passable job of rendering the math in a browser. "Passable" means easily 
readable and mathematically correct but not up to TeX standards.

The new (4.0 IIRC) version of LibreOffice had problems on the Mac so I deleted 
it for the time being. Maybe LO does the math.

As I ramble more...OpenOffice and LibreOffice leave giant white space on both 
sides of in-line math--completely unacceptable. And it seems impossible to 
understand the math syntax until one accidentally discovers that it is based on 
nroff or troff I'm not sure which because I don't care that much.

Jerry