Re: configuring latex2rtf with LyX 2

2013-02-07 Thread Justin Wood
Justin Wood Justin.Wood at murdoch.edu.au writes:

 Could the problem be that I'm using XeTeX rather than default LaTeX?

I think I answered my own question there. It seems to come down to that issue:
no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I guess!

All this so I can give my thesis chapters to supervisors in Word for feedback
via track changes. I think it would have been simpler to just install LyX on
their machines...





Re: configuring latex2rtf with LyX 2

2013-02-07 Thread Justin Wood
Dr Eberhard Lisse nospam at lisse.NA writes:

 
 Or write xtetex2rtf -O
 
 Does it really matter, when using LyX, which back end one uses?
 
 el
 

I'm not sure I follow. Do you mean why use XeTeX? Largely for the font support,
but also because I thought it was the superior engine these days. Perhaps that
was foolish.






Re: configuring latex2rtf with LyX 2

2013-02-07 Thread Justin Wood
Justin Wood Justin.Wood at murdoch.edu.au writes:

 Could the problem be that I'm using XeTeX rather than default LaTeX?

I think I answered my own question there. It seems to come down to that issue:
no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I guess!

All this so I can give my thesis chapters to supervisors in Word for feedback
via track changes. I think it would have been simpler to just install LyX on
their machines...





Re: configuring latex2rtf with LyX 2

2013-02-07 Thread Justin Wood
Dr Eberhard Lisse nospam at lisse.NA writes:

 
 Or write xtetex2rtf -O
 
 Does it really matter, when using LyX, which back end one uses?
 
 el
 

I'm not sure I follow. Do you mean why use XeTeX? Largely for the font support,
but also because I thought it was the superior engine these days. Perhaps that
was foolish.






Re: configuring latex2rtf with LyX 2

2013-02-07 Thread Justin Wood
Justin Wood  murdoch.edu.au> writes:

> Could the problem be that I'm using XeTeX rather than default LaTeX?

I think I answered my own question there. It seems to come down to that issue:
no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I guess!

All this so I can give my thesis chapters to supervisors in Word for feedback
via track changes. I think it would have been simpler to just install LyX on
their machines...





Re: configuring latex2rtf with LyX 2

2013-02-07 Thread Justin Wood
Dr Eberhard Lisse  lisse.NA> writes:

> 
> Or write xtetex2rtf -O
> 
> Does it really matter, when using LyX, which back end one uses?
> 
> el
> 

I'm not sure I follow. Do you mean why use XeTeX? Largely for the font support,
but also because I thought it was the superior engine these days. Perhaps that
was foolish.






configuring latex2rtf with LyX 2

2013-02-06 Thread Justin Wood
Hi all. I've read the instructions for using latex2rtf with LyX here
http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf, but can't
get it to work. This is on v2.0.4 on a Win7 box (but I also have an OS X
setup). I've installed latex2rtf as the Win exe and to get around the white
space issue I've made a junction from d:\utils\latex2rtf -- c:\Program Files
(x86)\latex2rtf. I believe this is working correctly as it's picked up in
the configuration log:
INFO: checking for a LaTeX - RTF converter...
INFO: +checking for latex2rtf...  no
INFO: +checking for latex2rt...  yes
DEBUG: Add to RC:
\converter latex  rtflatex2rt -p -S -o $$o $$ineedaux

But nothing I've tried has made the RTF option appear in the File - Export
menu, or View. I'm pretty hazy on what actually governs that in general to
be honest, as many options in Preferences are 'enabled' but do not appear
in the list. I read in the latex2rtf manual that the tmp aux files need to
exist, so I tried running View - PDF (XeTeX) but no joy.

Could the problem be that I'm using XeTeX rather than default LaTeX? Thanks!


~:Justin Wood:~
PhD candidate, *School of **Engineering**  **Information Technology*, Murdoch
University http://www.murdoch.edu.au/


configuring latex2rtf with LyX 2

2013-02-06 Thread Justin Wood
Hi all. I've read the instructions for using latex2rtf with LyX here
http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf, but can't
get it to work. This is on v2.0.4 on a Win7 box (but I also have an OS X
setup). I've installed latex2rtf as the Win exe and to get around the white
space issue I've made a junction from d:\utils\latex2rtf -- c:\Program Files
(x86)\latex2rtf. I believe this is working correctly as it's picked up in
the configuration log:
INFO: checking for a LaTeX - RTF converter...
INFO: +checking for latex2rtf...  no
INFO: +checking for latex2rt...  yes
DEBUG: Add to RC:
\converter latex  rtflatex2rt -p -S -o $$o $$ineedaux

But nothing I've tried has made the RTF option appear in the File - Export
menu, or View. I'm pretty hazy on what actually governs that in general to
be honest, as many options in Preferences are 'enabled' but do not appear
in the list. I read in the latex2rtf manual that the tmp aux files need to
exist, so I tried running View - PDF (XeTeX) but no joy.

Could the problem be that I'm using XeTeX rather than default LaTeX? Thanks!


~:Justin Wood:~
PhD candidate, *School of **Engineering**  **Information Technology*, Murdoch
University http://www.murdoch.edu.au/


configuring latex2rtf with LyX 2

2013-02-06 Thread Justin Wood
Hi all. I've read the instructions for using latex2rtf with LyX here
http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf, but can't
get it to work. This is on v2.0.4 on a Win7 box (but I also have an OS X
setup). I've installed latex2rtf as the Win exe and to get around the white
space issue I've made a junction from d:\utils\latex2rtf --> c:\Program Files
(x86)\latex2rtf. I believe this is working correctly as it's picked up in
the configuration log:
INFO: checking for a LaTeX -> RTF converter...
INFO: +checking for "latex2rtf"...  no
INFO: +checking for "latex2rt"...  yes
DEBUG: Add to RC:
\converter latex  rtf"latex2rt -p -S -o $$o $$i""needaux"

But nothing I've tried has made the RTF option appear in the File -> Export
menu, or View. I'm pretty hazy on what actually governs that in general to
be honest, as many options in Preferences are 'enabled' but do not appear
in the list. I read in the latex2rtf manual that the tmp aux files need to
exist, so I tried running View -> PDF (XeTeX) but no joy.

Could the problem be that I'm using XeTeX rather than default LaTeX? Thanks!


~:Justin Wood:~
PhD candidate, *School of **Engineering** & **Information Technology*, Murdoch
University <http://www.murdoch.edu.au/>


Re: LyX 2.0.5 on OS X: citations appear on screen as if invalid

2012-11-12 Thread Justin Wood
Actually I've now noticed that many cross references appear as 'BROKEN' when
they are not. Rolled back to 2.0.4.





Re: LyX 2.0.5 on OS X: citations appear on screen as if invalid

2012-11-12 Thread Justin Wood
Actually I've now noticed that many cross references appear as 'BROKEN' when
they are not. Rolled back to 2.0.4.





Re: LyX 2.0.5 on OS X: citations appear on screen as if invalid

2012-11-12 Thread Justin Wood
Actually I've now noticed that many cross references appear as 'BROKEN' when
they are not. Rolled back to 2.0.4.





Re: cross-references sometimes spill past column boundary

2012-06-21 Thread Justin Wood
Justin Wood upasaka at gmail.com writes:


 At the moment I'm using:
  \renewcommand{\figureautorefname}{Figure~\negthinspace}
 
 I've tried replacing '~' with a simple space, with '\,' and '\ ' but it still
 doesn't break between 'Figure' and the ref label. Shouldn't that be possible?
 

Ahh, found the source of the problem. The thesis template includes
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

And \mbox prevents line breaks within the reference itself. Removing that
resolves the problem, and even hyphenates 'Figure'. Of course it was no doubt
added for good reason so I'll have to see what other consequences there are...





Re: cross-references sometimes spill past column boundary

2012-06-21 Thread Justin Wood
Justin Wood upasaka at gmail.com writes:


 At the moment I'm using:
  \renewcommand{\figureautorefname}{Figure~\negthinspace}
 
 I've tried replacing '~' with a simple space, with '\,' and '\ ' but it still
 doesn't break between 'Figure' and the ref label. Shouldn't that be possible?
 

Ahh, found the source of the problem. The thesis template includes
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

And \mbox prevents line breaks within the reference itself. Removing that
resolves the problem, and even hyphenates 'Figure'. Of course it was no doubt
added for good reason so I'll have to see what other consequences there are...





Re: cross-references sometimes spill past column boundary

2012-06-21 Thread Justin Wood
Justin Wood  gmail.com> writes:


> At the moment I'm using:
>  \renewcommand{\figureautorefname}{Figure~\negthinspace}
> 
> I've tried replacing '~' with a simple space, with '\,' and '\ ' but it still
> doesn't break between 'Figure' and the ref label. Shouldn't that be possible?
> 

Ahh, found the source of the problem. The thesis template includes
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

And \mbox prevents line breaks within the reference itself. Removing that
resolves the problem, and even hyphenates 'Figure'. Of course it was no doubt
added for good reason so I'll have to see what other consequences there are...





Re: making a Box: using floatrow package in place of default float

2012-03-04 Thread Justin Wood
Justin Wood upasaka at gmail.com writes:
 I'm still hoping to get floatrow integrated as a module though...

 To that end, do you know how the module parameter UsesFloatPkg = false
should
 behave?

Jürgen helped me figure out what I was doing wrong: needed to also specify
IsPredefined = true (I had false). I also finally realised I was making the
rookie mistake of trying to specify my preamble inside of the Float
definition itself.

I offer up my chimera for anyone who might be interested. It does work
quite well, BUT! be warned that as best I can tell this is effectively
overriding float with floatrow in all instances, so some behaviour is going
to be modified.

* It took me a while to find that I needed to specify the \floatsetup
command (in floatrow form) to get table float captions back on top where
they belong.
(I've gone with \floatsetup[table]{style=plain,capposition=TOP})

* Use of [H] for floats (place here definitely) appears to trigger a
package clash with float/floatrow because, at a guess, [H] expects float to
be loaded. There is discussion of [H] in the floatrow manual but it's a
little beyond me so I've ignored that for now.

Please be gentle... :)


boxedfloat-override.module
Description: Binary data


Re: making a Box: using floatrow package in place of default float

2012-03-04 Thread Justin Wood
Justin Wood upasaka at gmail.com writes:
 I'm still hoping to get floatrow integrated as a module though...

 To that end, do you know how the module parameter UsesFloatPkg = false
should
 behave?

Jürgen helped me figure out what I was doing wrong: needed to also specify
IsPredefined = true (I had false). I also finally realised I was making the
rookie mistake of trying to specify my preamble inside of the Float
definition itself.

I offer up my chimera for anyone who might be interested. It does work
quite well, BUT! be warned that as best I can tell this is effectively
overriding float with floatrow in all instances, so some behaviour is going
to be modified.

* It took me a while to find that I needed to specify the \floatsetup
command (in floatrow form) to get table float captions back on top where
they belong.
(I've gone with \floatsetup[table]{style=plain,capposition=TOP})

* Use of [H] for floats (place here definitely) appears to trigger a
package clash with float/floatrow because, at a guess, [H] expects float to
be loaded. There is discussion of [H] in the floatrow manual but it's a
little beyond me so I've ignored that for now.

Please be gentle... :)


boxedfloat-override.module
Description: Binary data


Re: making a Box: using floatrow package in place of default float

2012-03-04 Thread Justin Wood
Justin Wood  gmail.com> writes:
> I'm still hoping to get floatrow integrated as a module though...
>
> To that end, do you know how the module parameter UsesFloatPkg = false
should
> behave?

Jürgen helped me figure out what I was doing wrong: needed to also specify
IsPredefined = true (I had false). I also finally realised I was making the
rookie mistake of trying to specify my preamble inside of the Float
definition itself.

I offer up my chimera for anyone who might be interested. It does work
quite well, BUT! be warned that as best I can tell this is effectively
overriding float with floatrow in all instances, so some behaviour is going
to be modified.

* It took me a while to find that I needed to specify the \floatsetup
command (in floatrow form) to get table float captions back on top where
they belong.
(I've gone with \floatsetup[table]{style=plain,capposition=TOP})

* Use of [H] for floats (place here definitely) appears to trigger a
package clash with float/floatrow because, at a guess, [H] expects float to
be loaded. There is discussion of [H] in the floatrow manual but it's a
little beyond me so I've ignored that for now.

Please be gentle... :)


boxedfloat-override.module
Description: Binary data


Re: making a Box: using floatrow package in place of default float

2012-03-03 Thread Justin Wood
Csikos Bela bcsikos425 at freemail.hu writes:
 
 Hello:
 
 Here are two example lyx files. See the difference between the location of
 the floats, which is reflected in the TOC.
 
 This requires caption and floatrow packages but not the module you mentioned.
 For details see the documentation of floatrow package.
 
 Cheers,


Thanks Csikos, that definitely demonstrates the output style I'm after.

I'm still hoping to get floatrow integrated as a module though...

To that end, do you know how the module parameter UsesFloatPkg = false should
behave? I had hoped this would let me specify a Float but then define it's
function in Preamble, etc. However LyX continues to try and build the new float
type using \newfloat etc as before. I suppose I could try to redefine those
commands...



Re: making a Box: using floatrow package in place of default float

2012-03-03 Thread Justin Wood
Csikos Bela bcsikos425 at freemail.hu writes:
 
 Hello:
 
 Here are two example lyx files. See the difference between the location of
 the floats, which is reflected in the TOC.
 
 This requires caption and floatrow packages but not the module you mentioned.
 For details see the documentation of floatrow package.
 
 Cheers,


Thanks Csikos, that definitely demonstrates the output style I'm after.

I'm still hoping to get floatrow integrated as a module though...

To that end, do you know how the module parameter UsesFloatPkg = false should
behave? I had hoped this would let me specify a Float but then define it's
function in Preamble, etc. However LyX continues to try and build the new float
type using \newfloat etc as before. I suppose I could try to redefine those
commands...



Re: making a Box: using floatrow package in place of default float

2012-03-03 Thread Justin Wood
Csikos Bela  freemail.hu> writes:
> 
> Hello:
> 
> Here are two example lyx files. See the difference between the location of
> the floats, which is reflected in the TOC.
> 
> This requires caption and floatrow packages but not the module you mentioned.
> For details see the documentation of floatrow package.
> 
> Cheers,


Thanks Csikos, that definitely demonstrates the output style I'm after.

I'm still hoping to get floatrow integrated as a module though...

To that end, do you know how the module parameter UsesFloatPkg = false should
behave? I had hoped this would let me specify a Float but then define it's
function in Preamble, etc. However LyX continues to try and build the new float
type using \newfloat etc as before. I suppose I could try to redefine those
commands...



LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Hi all. It seems that when changing Document: Settings: Font to use non-TeX
fonts, LyX will then change the default viewer action to be DVI (LuaTeX).
This doesn't work for me as I'm trying to use XeTeX. Is it possible to
specify the default viewer in this context?

Many thanks, as always.

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Thanks Richard. I should have said that I'd already done this, but while it
does take effect for 'normal' LyX documents, it does not seem to apply when
non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org



On 16 February 2012 19:05, Richard Heck rgh...@comcast.net wrote:

  On 02/16/2012 10:59 AM, Justin Wood wrote:

 Hi all. It seems that when changing Document: Settings: Font to use
 non-TeX fonts, LyX will then change the default viewer action to be DVI
 (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is it
 possible to specify the default viewer in this context?

  DocumentSettingsOuputDefault Ouptut Format.

 Richard




Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Jürgen Spitzmüller spitz at lyx.org writes:

 We do not have yet a global default format if non-TeX fonts is selected, see
 http://www.lyx.org/trac/ticket/7871
  
 However, you can set the default format per document, in Document  Settings.
That is, after this bug is fixed (in next LyX release):
 http://www.lyx.org/trac/ticket/8013
  
 Jürgen
 


Ahh I see. Thanks for the explanation (I didn't think to check in bug trac).
Happy to (re)set the document default viewer as a workaround —— I keep them open
for long periods anyway.



LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Hi all. It seems that when changing Document: Settings: Font to use non-TeX
fonts, LyX will then change the default viewer action to be DVI (LuaTeX).
This doesn't work for me as I'm trying to use XeTeX. Is it possible to
specify the default viewer in this context?

Many thanks, as always.

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Thanks Richard. I should have said that I'd already done this, but while it
does take effect for 'normal' LyX documents, it does not seem to apply when
non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org



On 16 February 2012 19:05, Richard Heck rgh...@comcast.net wrote:

  On 02/16/2012 10:59 AM, Justin Wood wrote:

 Hi all. It seems that when changing Document: Settings: Font to use
 non-TeX fonts, LyX will then change the default viewer action to be DVI
 (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is it
 possible to specify the default viewer in this context?

  DocumentSettingsOuputDefault Ouptut Format.

 Richard




Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Jürgen Spitzmüller spitz at lyx.org writes:

 We do not have yet a global default format if non-TeX fonts is selected, see
 http://www.lyx.org/trac/ticket/7871
  
 However, you can set the default format per document, in Document  Settings.
That is, after this bug is fixed (in next LyX release):
 http://www.lyx.org/trac/ticket/8013
  
 Jürgen
 


Ahh I see. Thanks for the explanation (I didn't think to check in bug trac).
Happy to (re)set the document default viewer as a workaround —— I keep them open
for long periods anyway.



LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Hi all. It seems that when changing Document: Settings: Font to use non-TeX
fonts, LyX will then change the default viewer action to be DVI (LuaTeX).
This doesn't work for me as I'm trying to use XeTeX. Is it possible to
specify the default viewer in this context?

Many thanks, as always.

~:justin.wood :~ ≤
350ppm


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Thanks Richard. I should have said that I'd already done this, but while it
does take effect for 'normal' LyX documents, it does not seem to apply when
non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

~:justin.wood <http://civilisationshift.wordpress.com/>:~ ≤
350ppm<http://www.350.org>



On 16 February 2012 19:05, Richard Heck <rgh...@comcast.net> wrote:

>  On 02/16/2012 10:59 AM, Justin Wood wrote:
>
> Hi all. It seems that when changing Document: Settings: Font to use
> non-TeX fonts, LyX will then change the default viewer action to be DVI
> (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is it
> possible to specify the default viewer in this context?
>
>  Document>Settings>Ouput>Default Ouptut Format.
>
> Richard
>
>


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Jürgen Spitzmüller  lyx.org> writes:

> We do not have yet a global default format if non-TeX fonts is selected, see
> http://www.lyx.org/trac/ticket/7871
>  
> However, you can set the default format per document, in Document > Settings.
That is, after this bug is fixed (in next LyX release):
> http://www.lyx.org/trac/ticket/8013
>  
> Jürgen
> 


Ahh I see. Thanks for the explanation (I didn't think to check in bug trac).
Happy to (re)set the document default viewer as a workaround —— I keep them open
for long periods anyway.



Re: LyX and TexLive2010

2011-01-17 Thread Justin Wood
Sam,
I've been using LyX 1.6.7 with TexLive2010 on OS X (10.6.x) and Win7 for
months now with no problems. Obvious question: is the E-TeX package
installed (eg, check in Tex Live Utility GUI)?

2011/1/17 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Sam Lewis stroboscopicallyconflu...@yahoo.co.uk
 To: lyx-users@lists.lyx.org
 Date: Mon, 17 Jan 2011 19:19:40 +0800
 Subject: LyX and TexLive2010

 Dear All,

 Does anyone successfully use LyX (1.6.7) with TexLive2010?

 Since I have change to TL2010, LyX brings up the fatal error that I don't
 have e-Tex. I have update TL2010 via tlnet update, as previously suggested.
 TL2009 works perfectly well. Any idea? Many thanks.

 Cheers, Sam



Re: LyX and TexLive2010

2011-01-17 Thread Justin Wood
Sam,
I've been using LyX 1.6.7 with TexLive2010 on OS X (10.6.x) and Win7 for
months now with no problems. Obvious question: is the E-TeX package
installed (eg, check in Tex Live Utility GUI)?

2011/1/17 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Sam Lewis stroboscopicallyconflu...@yahoo.co.uk
 To: lyx-users@lists.lyx.org
 Date: Mon, 17 Jan 2011 19:19:40 +0800
 Subject: LyX and TexLive2010

 Dear All,

 Does anyone successfully use LyX (1.6.7) with TexLive2010?

 Since I have change to TL2010, LyX brings up the fatal error that I don't
 have e-Tex. I have update TL2010 via tlnet update, as previously suggested.
 TL2009 works perfectly well. Any idea? Many thanks.

 Cheers, Sam



Re: LyX and TexLive2010

2011-01-17 Thread Justin Wood
Sam,
I've been using LyX 1.6.7 with TexLive2010 on OS X (10.6.x) and Win7 for
months now with no problems. Obvious question: is the E-TeX package
installed (eg, check in Tex Live Utility GUI)?

2011/1/17 

> -- Forwarded message --
> From: "Sam Lewis" 
> To: 
> Date: Mon, 17 Jan 2011 19:19:40 +0800
> Subject: LyX and TexLive2010
>
> Dear All,
>
> Does anyone successfully use LyX (1.6.7) with TexLive2010?
>
> Since I have change to TL2010, LyX brings up the fatal error that I don't
> have e-Tex. I have update TL2010 via tlnet update, as previously suggested.
> TL2009 works perfectly well. Any idea? Many thanks.
>
> Cheers, Sam
>


Re: A path for the Bibliography files

2011-01-02 Thread Justin Wood
Windows users can create symlinks too. If they're still stuck on XP, you can
use junction 
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx(with
some messing about); anyone using Vista and up can use the native
'mklink' command for files directly. I do exactly this for my own .bib files
in the TEXMF local tree: symlink (or hard link if you prefer) to the source
.bib file in Dropbox, under both OS X and Win7.

~:Justin Wood:~
PhD candidate, *Engineering  Energy school*, Murdoch
Universityhttp://www.murdoch.edu.au/
On 29 December 2010 07:56, lyx-users-digest-h...@lists.lyx.org wrote:

 -- Forwarded message --
 From: ehud.kap...@gmail.com
 To: lyx-users@lists.lyx.org
 Date: Tue, 28 Dec 2010 21:46:19 +0800
 Subject: Re: A path for the Bibliography files
  This advice will mean nothing to Windows users.
 EK

 On 12/28/2010 1:08 AM, Vito 'ZeD' De Tullio wrote:

 ehud.kap...@gmail.com wrote:

  I was hoping to be able to use ONE bib file, to be accessed and updated
 by any one of the collaborators.
 Your solution will work if I were the only user.  We keep the bib files
 in a shared folder on a Dropbox (cloud) folder,

 but, as I said, the reference to it is different in Linux and in Windows.

  Use symlinks


 --
  Ehud Kaplan, Ph.D.
 Jules and Doris Stein *Research to Prevent Blindness *Professor
 *Director*, Center of Excellence for *Computational  System neuroscience,
 *
 The Friedman Brain Institute, MSSM
 *Director*, The laboratory of *Visual  Computational Neuroscience*
 Depts. of Neuroscience, Ophthalmology, Chemical  Structural Biology
 The Mount Sinai School of Medicine
 One Gustave Levy Place
 New York, NY, 10029

 ~:justin.wood http://civilisationshift.wordpress.com/:~ ≤ 350ppm
CO2http://350.org


Re: A path for the Bibliography files

2011-01-02 Thread Justin Wood
Windows users can create symlinks too. If they're still stuck on XP, you can
use junction 
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx(with
some messing about); anyone using Vista and up can use the native
'mklink' command for files directly. I do exactly this for my own .bib files
in the TEXMF local tree: symlink (or hard link if you prefer) to the source
.bib file in Dropbox, under both OS X and Win7.

~:Justin Wood:~
PhD candidate, *Engineering  Energy school*, Murdoch
Universityhttp://www.murdoch.edu.au/
On 29 December 2010 07:56, lyx-users-digest-h...@lists.lyx.org wrote:

 -- Forwarded message --
 From: ehud.kap...@gmail.com
 To: lyx-users@lists.lyx.org
 Date: Tue, 28 Dec 2010 21:46:19 +0800
 Subject: Re: A path for the Bibliography files
  This advice will mean nothing to Windows users.
 EK

 On 12/28/2010 1:08 AM, Vito 'ZeD' De Tullio wrote:

 ehud.kap...@gmail.com wrote:

  I was hoping to be able to use ONE bib file, to be accessed and updated
 by any one of the collaborators.
 Your solution will work if I were the only user.  We keep the bib files
 in a shared folder on a Dropbox (cloud) folder,

 but, as I said, the reference to it is different in Linux and in Windows.

  Use symlinks


 --
  Ehud Kaplan, Ph.D.
 Jules and Doris Stein *Research to Prevent Blindness *Professor
 *Director*, Center of Excellence for *Computational  System neuroscience,
 *
 The Friedman Brain Institute, MSSM
 *Director*, The laboratory of *Visual  Computational Neuroscience*
 Depts. of Neuroscience, Ophthalmology, Chemical  Structural Biology
 The Mount Sinai School of Medicine
 One Gustave Levy Place
 New York, NY, 10029

 ~:justin.wood http://civilisationshift.wordpress.com/:~ ≤ 350ppm
CO2http://350.org


Re: A path for the Bibliography files

2011-01-02 Thread Justin Wood
Windows users can create symlinks too. If they're still stuck on XP, you can
use junction 
<http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx>(with
some messing about); anyone using Vista and up can use the native
'mklink' command for files directly. I do exactly this for my own .bib files
in the TEXMF local tree: symlink (or hard link if you prefer) to the source
.bib file in Dropbox, under both OS X and Win7.

~:Justin Wood:~
PhD candidate, *Engineering & Energy school*, Murdoch
University<http://www.murdoch.edu.au/>
On 29 December 2010 07:56, <lyx-users-digest-h...@lists.lyx.org> wrote:

> -- Forwarded message --
> From: <ehud.kap...@gmail.com>
> To: <lyx-users@lists.lyx.org>
> Date: Tue, 28 Dec 2010 21:46:19 +0800
> Subject: Re: A path for the Bibliography files
>  This advice will mean nothing to Windows users.
> EK
>
> On 12/28/2010 1:08 AM, Vito 'ZeD' De Tullio wrote:
>
> ehud.kap...@gmail.com wrote:
>
>  I was hoping to be able to use ONE bib file, to be accessed and updated
> by any one of the collaborators.
> Your solution will work if I were the only user.  We keep the bib files
> in a shared folder on a Dropbox (cloud) folder,
>
> but, as I said, the reference to it is different in Linux and in Windows.
>
>  Use symlinks
>
>
> --
>  Ehud Kaplan, Ph.D.
> Jules and Doris Stein *Research to Prevent Blindness *Professor
> *Director*, Center of Excellence for *Computational & System neuroscience,
> *
> The Friedman Brain Institute, MSSM
> *Director*, The laboratory of *Visual & Computational Neuroscience*
> Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
> The Mount Sinai School of Medicine
> One Gustave Levy Place
> New York, NY, 10029
>
 ~:justin.wood <http://civilisationshift.wordpress.com/>:~ ≤ 350ppm
CO2<http://350.org>


Re: Questions on elsarticle

2010-12-16 Thread Justin Wood
This has probably already been answered, but if not: you need to use BibTeX
and select an author-date style. Check out section 6.5 (Bibliography) of the
User Guide, and http://wiki.lyx.org/BibTeX/BibTeX (hmm, I thought there was
a page with step by step instructions but can't see to find it). Basically
you need four things (assuming LyX 1.6.8):
1. A BibTeX database .bib file containing your citation records. This is
done outside of LyX; utilities abound... I personally use the superawesome LyZ
utility http://www.klubko.net/wp/?page_id=945lang=en to handle this for
me from my Zotero http://www.zotero.org/ reference database in Firefox.
2. Set your document to use BibTeX: Document Settings - Bibliography, select
Natbib with Author-year
3. Insert a Bibliography in your document using Insert - List/TOC - BibTeX
bibliography, and point to the .bib file — you'll probably have to browse to
it unless you install it in the relevant directory of your LaTeX distro
(which is worth doing in my opinion; I hardlink from there back to where I
store the real file).
4. In that same dialogue, you choose the citation style. plainnat is the
default and works okay but it uses square brackets not parentheses by
default. Personally I use Chicago style, via this
.bsthttp://www.digitas.harvard.edu/cgi-bin/wiki/ken/McBride(which
again needs to be installed in your LaTeX distro).

The actual citation style I think is the weak link in the chain. I could
well be missing something, but it struck me as overly difficult to get a
'proper' author-year format in the manner you describe.

Apologies if I've misunderstood what you're after!

2010/12/17 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Jun Gu gujun.suz...@gmail.com
 To: lyx-users@lists.lyx.org
 Date: Thu, 16 Dec 2010 17:55:39 +0800
 Subject: Questions on elsarticle

 Dear Members,



 I am using the template from Lyx for a manuscript which requires
 author-year citation in text. However, no matter what kind of efforts I have
 made, the citation doesn’t work but only with a numeral ID at the end of the
 citation. Taking an example as Jones (1995). What I want is ‘Jones (1995)
 constructed a model that …’, while the final result after transferring it to
 PDF shows ‘Jones (1995) [1]’. Would anyone of you provide some suggestion
 for such a case?



 All the best,



 Jun



 Jun Gu, PhD Student

 Department of Accounting and Finance

 Lancaster University Management School

 Lancaster University

 Lancaaster LA1 4YX

 United Kingdom



Re: Questions on elsarticle

2010-12-16 Thread Justin Wood
This has probably already been answered, but if not: you need to use BibTeX
and select an author-date style. Check out section 6.5 (Bibliography) of the
User Guide, and http://wiki.lyx.org/BibTeX/BibTeX (hmm, I thought there was
a page with step by step instructions but can't see to find it). Basically
you need four things (assuming LyX 1.6.8):
1. A BibTeX database .bib file containing your citation records. This is
done outside of LyX; utilities abound... I personally use the superawesome LyZ
utility http://www.klubko.net/wp/?page_id=945lang=en to handle this for
me from my Zotero http://www.zotero.org/ reference database in Firefox.
2. Set your document to use BibTeX: Document Settings - Bibliography, select
Natbib with Author-year
3. Insert a Bibliography in your document using Insert - List/TOC - BibTeX
bibliography, and point to the .bib file — you'll probably have to browse to
it unless you install it in the relevant directory of your LaTeX distro
(which is worth doing in my opinion; I hardlink from there back to where I
store the real file).
4. In that same dialogue, you choose the citation style. plainnat is the
default and works okay but it uses square brackets not parentheses by
default. Personally I use Chicago style, via this
.bsthttp://www.digitas.harvard.edu/cgi-bin/wiki/ken/McBride(which
again needs to be installed in your LaTeX distro).

The actual citation style I think is the weak link in the chain. I could
well be missing something, but it struck me as overly difficult to get a
'proper' author-year format in the manner you describe.

Apologies if I've misunderstood what you're after!

2010/12/17 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Jun Gu gujun.suz...@gmail.com
 To: lyx-users@lists.lyx.org
 Date: Thu, 16 Dec 2010 17:55:39 +0800
 Subject: Questions on elsarticle

 Dear Members,



 I am using the template from Lyx for a manuscript which requires
 author-year citation in text. However, no matter what kind of efforts I have
 made, the citation doesn’t work but only with a numeral ID at the end of the
 citation. Taking an example as Jones (1995). What I want is ‘Jones (1995)
 constructed a model that …’, while the final result after transferring it to
 PDF shows ‘Jones (1995) [1]’. Would anyone of you provide some suggestion
 for such a case?



 All the best,



 Jun



 Jun Gu, PhD Student

 Department of Accounting and Finance

 Lancaster University Management School

 Lancaster University

 Lancaaster LA1 4YX

 United Kingdom



Re: Questions on elsarticle

2010-12-16 Thread Justin Wood
This has probably already been answered, but if not: you need to use BibTeX
and select an author-date style. Check out section 6.5 (Bibliography) of the
User Guide, and http://wiki.lyx.org/BibTeX/BibTeX (hmm, I thought there was
a page with step by step instructions but can't see to find it). Basically
you need four things (assuming LyX 1.6.8):
1. A BibTeX database .bib file containing your citation records. This is
done outside of LyX; utilities abound... I personally use the superawesome LyZ
utility  to handle this for
me from my Zotero  reference database in Firefox.
2. Set your document to use BibTeX: Document Settings - Bibliography, select
Natbib with Author-year
3. Insert a Bibliography in your document using Insert - List/TOC - BibTeX
bibliography, and point to the .bib file — you'll probably have to browse to
it unless you install it in the relevant directory of your LaTeX distro
(which is worth doing in my opinion; I hardlink from there back to where I
store the real file).
4. In that same dialogue, you choose the citation style. plainnat is the
default and works okay but it uses square brackets not parentheses by
default. Personally I use Chicago style, via this
.bst(which
again needs to be installed in your LaTeX distro).

The actual citation style I think is the weak link in the chain. I could
well be missing something, but it struck me as overly difficult to get a
'proper' author-year format in the manner you describe.

Apologies if I've misunderstood what you're after!

2010/12/17 

> -- Forwarded message --
> From: "Jun Gu" 
> To: 
> Date: Thu, 16 Dec 2010 17:55:39 +0800
> Subject: Questions on elsarticle
>
> Dear Members,
>
>
>
> I am using the template from Lyx for a manuscript which requires
> author-year citation in text. However, no matter what kind of efforts I have
> made, the citation doesn’t work but only with a numeral ID at the end of the
> citation. Taking an example as Jones (1995). What I want is ‘Jones (1995)
> constructed a model that …’, while the final result after transferring it to
> PDF shows ‘Jones (1995) [1]’. Would anyone of you provide some suggestion
> for such a case?
>
>
>
> All the best,
>
>
>
> Jun
>
>
>
> Jun Gu, PhD Student
>
> Department of Accounting and Finance
>
> Lancaster University Management School
>
> Lancaster University
>
> Lancaaster LA1 4YX
>
> United Kingdom
>


Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-13 Thread Justin Wood
(Apologies for the slow reply.) I've tried adding the \AtBeginDocument{} as
you suggest but while the error goes away, the cross ref formatting is not
honoured.

I think I might try to get my head around *refstyle* as this is the way LyX
is moving for cross ref formatting, correct?

On 10 December 2010 18:29, Jürgen Spitzmüller sp...@lyx.org wrote:

  Justin Wood wrote:
  The template files do actually have this embrace, but it doesn't prevent
  the parsing error.

 No. \addto\extrasenglish is not embraced by \AtBeginDocument{}


  Or do you mean the next release will do something else
  that will fix the problem? Thanks Jürgen.

 No. Look below.


  For completeness, this is the preamble, taken directly from the chapter
  template:

 [...]

 
  *\addto\extrasenglish{*

 
  * \renewcommand{\equationautorefname}{\hspace{-\abc}}*
 
  * \renewcommand{\sectionautorefname}{sec.\negthinspace}*
 
  * \renewcommand{\subsectionautorefname}{sec.\negthinspace}*
 
  * \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*
 
  * \renewcommand{\figureautorefname}{Fig.\negthinspace}*
 
  * \renewcommand{\tableautorefname}{Tab.\negthinspace}*
 
  *}*
 

 change this to

 \AtBeginDocument{%

 \addto\extrasenglish{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
 }
 }

 Jürgen



Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-13 Thread Justin Wood
(Apologies for the slow reply.) I've tried adding the \AtBeginDocument{} as
you suggest but while the error goes away, the cross ref formatting is not
honoured.

I think I might try to get my head around *refstyle* as this is the way LyX
is moving for cross ref formatting, correct?

On 10 December 2010 18:29, Jürgen Spitzmüller sp...@lyx.org wrote:

  Justin Wood wrote:
  The template files do actually have this embrace, but it doesn't prevent
  the parsing error.

 No. \addto\extrasenglish is not embraced by \AtBeginDocument{}


  Or do you mean the next release will do something else
  that will fix the problem? Thanks Jürgen.

 No. Look below.


  For completeness, this is the preamble, taken directly from the chapter
  template:

 [...]

 
  *\addto\extrasenglish{*

 
  * \renewcommand{\equationautorefname}{\hspace{-\abc}}*
 
  * \renewcommand{\sectionautorefname}{sec.\negthinspace}*
 
  * \renewcommand{\subsectionautorefname}{sec.\negthinspace}*
 
  * \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*
 
  * \renewcommand{\figureautorefname}{Fig.\negthinspace}*
 
  * \renewcommand{\tableautorefname}{Tab.\negthinspace}*
 
  *}*
 

 change this to

 \AtBeginDocument{%

 \addto\extrasenglish{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
 }
 }

 Jürgen



Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-13 Thread Justin Wood
(Apologies for the slow reply.) I've tried adding the \AtBeginDocument{} as
you suggest but while the error goes away, the cross ref formatting is not
honoured.

I think I might try to get my head around *refstyle* as this is the way LyX
is moving for cross ref formatting, correct?

On 10 December 2010 18:29, Jürgen Spitzmüller <sp...@lyx.org> wrote:

>  Justin Wood wrote:
> > The template files do actually have this embrace, but it doesn't prevent
> > the parsing error.
>
> No. \addto\extrasenglish is not embraced by \AtBeginDocument{}
>
>
> > Or do you mean the next release will do something else
> > that will fix the problem? Thanks Jürgen.
>
> No. Look below.
>
>
> > For completeness, this is the preamble, taken directly from the chapter
> > template:
>
> [...]
>
> >
> > *\addto\extrasenglish{*
>
> >
> > * \renewcommand{\equationautorefname}{\hspace{-\abc}}*
> >
> > * \renewcommand{\sectionautorefname}{sec.\negthinspace}*
> >
> > * \renewcommand{\subsectionautorefname}{sec.\negthinspace}*
> >
> > * \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*
> >
> > * \renewcommand{\figureautorefname}{Fig.\negthinspace}*
> >
> > * \renewcommand{\tableautorefname}{Tab.\negthinspace}*
> >
> > *}*
> >
>
> change this to
>
> \AtBeginDocument{%
>
> \addto\extrasenglish{
> \renewcommand{\equationautorefname}{\hspace{-\abc}}
> \renewcommand{\sectionautorefname}{sec.\negthinspace}
> \renewcommand{\subsectionautorefname}{sec.\negthinspace}
> \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
> \renewcommand{\figureautorefname}{Fig.\negthinspace}
> \renewcommand{\tableautorefname}{Tab.\negthinspace}
> }
> }
>
> Jürgen
>


Re: lyx-users Digest of: get.3687

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37, lyx-users-h...@lists.lyx.org wrote:



 #\DeclareLyXModule{thesis styles}



 There has been some syntax change. And if I remember well, it is difficult
 to handle self-defined modules. But I'm not sure. Richard can tell you
 more.



 I think this bug was in beta1 and has since been fixed. I know I spent some
 time looking at it. If it is still in beta2, please let me know.


Richard,
Nope this is still happening with beta 2 (on OS X).


 Richard






Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37, lyx-users-h...@lists.lyx.org wrote:

  2. conflict in thesis template
  Beyond that, changing to the automatic AMS math package in the thesis
  document introduces new errors. In a brand new, entirely unmodified
  chapter template file, XeTeX compilation now complains about the use of '
  \addto \extrasenglish{' in the preamble (used to define cross reference
  identifiers). Is this another conflict between XeTeX and ... is it
  *hyperref * these overrides refer to?

 The reason for this is that XeTeX now uses polyglossia, which does not know
 these \addto commands (which are from babel). Are these templates shipped
 with LyX? If so, we need to embrace these calls in

 \...@ifpackageloaded{babel}{%
 ...
 }{}


Yes, these are the thesis set of template files that ship with LyX 2.0.

I tried adding this to the chapter template preamble. The error is removed,
but it seems to be because the commands are not processed — the cross ref
labels are not applied.



  3. custom character-style error
  Finally, and this is more an annoyance than an impediment, my custom
  character style module (based on info from Rob
  Oakeshttp://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-
 character-styleshttp://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-%0Acharacter-styles
 )
  generates an *Undefined flex inset *error: 'Flex inset
 TechnicalDefinition
  is undefined because of class conversion from article to article' (and
 the
  same occurs in scrbook). This only seems to get thrown if I save a change
  made within Document Settings, not on view, etc. Is there something in my
  module that might cause this?
 
  #\DeclareLyXModule{thesis styles}

 There has been some syntax change. And if I remember well, it is difficult
 to handle self-defined modules. But I'm not sure. Richard can tell you
 more.


Is there documentation on the correct syntax? I've not been able to find
that until now.

Thanks again. [Sorry for accidentally posting to you twice, Jürgen]

 Jürgen

  Thanks!



Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37, lyx-users-h...@lists.lyx.org wrote:

 
  The reason for this is that XeTeX now uses polyglossia, which does not
  know these \addto commands (which are from babel). Are these templates
  shipped with LyX? If so, we need to embrace these calls in
 
  \...@ifpackageloaded{babel}{%
  ...
  }{}

 This problem should be fixed in the next release. The trick is to embrace
 these calls in

 \AtBeginDocument{%
 ...
 }

 so that they are executed after polyglossia (and babel).

 Jürgen


The template files do actually have this embrace, but it doesn't prevent the
parsing error. Or do you mean the next release will do something else that
will fix the problem? Thanks Jürgen.

For completeness, this is the preamble, taken directly from the chapter
template:


 % increase link area for cross-references and autoname them

*\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1*

*\newlength{\abc}*

*\settowidth{\abc}{\space}*

*\addto\extrasenglish{*

* \renewcommand{\equationautorefname}{\hspace{-\abc}}*

* \renewcommand{\sectionautorefname}{sec.\negthinspace}*

* \renewcommand{\subsectionautorefname}{sec.\negthinspace}*

* \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*

* \renewcommand{\figureautorefname}{Fig.\negthinspace}*

* \renewcommand{\tableautorefname}{Tab.\negthinspace}*

*}*

% in case somebody want to have the label Gleichung

%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}

% put the link to figure floats to the beginning

% of the figure and not to its end

\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }

% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}

% enable calculations

\usepackage{calc}

% fancy page header/footer settings

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}


Re: lyx-users Digest of: get.3687

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37, lyx-users-h...@lists.lyx.org wrote:



 #\DeclareLyXModule{thesis styles}



 There has been some syntax change. And if I remember well, it is difficult
 to handle self-defined modules. But I'm not sure. Richard can tell you
 more.



 I think this bug was in beta1 and has since been fixed. I know I spent some
 time looking at it. If it is still in beta2, please let me know.


Richard,
Nope this is still happening with beta 2 (on OS X).


 Richard






Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37, lyx-users-h...@lists.lyx.org wrote:

  2. conflict in thesis template
  Beyond that, changing to the automatic AMS math package in the thesis
  document introduces new errors. In a brand new, entirely unmodified
  chapter template file, XeTeX compilation now complains about the use of '
  \addto \extrasenglish{' in the preamble (used to define cross reference
  identifiers). Is this another conflict between XeTeX and ... is it
  *hyperref * these overrides refer to?

 The reason for this is that XeTeX now uses polyglossia, which does not know
 these \addto commands (which are from babel). Are these templates shipped
 with LyX? If so, we need to embrace these calls in

 \...@ifpackageloaded{babel}{%
 ...
 }{}


Yes, these are the thesis set of template files that ship with LyX 2.0.

I tried adding this to the chapter template preamble. The error is removed,
but it seems to be because the commands are not processed — the cross ref
labels are not applied.



  3. custom character-style error
  Finally, and this is more an annoyance than an impediment, my custom
  character style module (based on info from Rob
  Oakeshttp://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-
 character-styleshttp://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-%0Acharacter-styles
 )
  generates an *Undefined flex inset *error: 'Flex inset
 TechnicalDefinition
  is undefined because of class conversion from article to article' (and
 the
  same occurs in scrbook). This only seems to get thrown if I save a change
  made within Document Settings, not on view, etc. Is there something in my
  module that might cause this?
 
  #\DeclareLyXModule{thesis styles}

 There has been some syntax change. And if I remember well, it is difficult
 to handle self-defined modules. But I'm not sure. Richard can tell you
 more.


Is there documentation on the correct syntax? I've not been able to find
that until now.

Thanks again. [Sorry for accidentally posting to you twice, Jürgen]

 Jürgen

  Thanks!



Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37, lyx-users-h...@lists.lyx.org wrote:

 
  The reason for this is that XeTeX now uses polyglossia, which does not
  know these \addto commands (which are from babel). Are these templates
  shipped with LyX? If so, we need to embrace these calls in
 
  \...@ifpackageloaded{babel}{%
  ...
  }{}

 This problem should be fixed in the next release. The trick is to embrace
 these calls in

 \AtBeginDocument{%
 ...
 }

 so that they are executed after polyglossia (and babel).

 Jürgen


The template files do actually have this embrace, but it doesn't prevent the
parsing error. Or do you mean the next release will do something else that
will fix the problem? Thanks Jürgen.

For completeness, this is the preamble, taken directly from the chapter
template:


 % increase link area for cross-references and autoname them

*\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1*

*\newlength{\abc}*

*\settowidth{\abc}{\space}*

*\addto\extrasenglish{*

* \renewcommand{\equationautorefname}{\hspace{-\abc}}*

* \renewcommand{\sectionautorefname}{sec.\negthinspace}*

* \renewcommand{\subsectionautorefname}{sec.\negthinspace}*

* \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*

* \renewcommand{\figureautorefname}{Fig.\negthinspace}*

* \renewcommand{\tableautorefname}{Tab.\negthinspace}*

*}*

% in case somebody want to have the label Gleichung

%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}

% put the link to figure floats to the beginning

% of the figure and not to its end

\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }

% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}

% enable calculations

\usepackage{calc}

% fancy page header/footer settings

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}


Re: lyx-users Digest of: get.3687

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37,  wrote:

>
>>>
>>> #\DeclareLyXModule{thesis styles}
>>>
>>>
>>>
>> There has been some syntax change. And if I remember well, it is difficult
>> to handle self-defined modules. But I'm not sure. Richard can tell you
>> more.
>>
>>
>>
> I think this bug was in beta1 and has since been fixed. I know I spent some
> time looking at it. If it is still in beta2, please let me know.
>
>
Richard,
Nope this is still happening with beta 2 (on OS X).


> Richard
>
>
>
>


Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37,  wrote:

> > 2. conflict in thesis template
> > Beyond that, changing to the automatic AMS math package in the thesis
> > document introduces new errors. In a brand new, entirely unmodified
> > chapter template file, XeTeX compilation now complains about the use of '
> > \addto \extrasenglish{' in the preamble (used to define cross reference
> > identifiers). Is this another conflict between XeTeX and ... is it
> > *hyperref * these overrides refer to?
>
> The reason for this is that XeTeX now uses polyglossia, which does not know
> these \addto commands (which are from babel). Are these templates shipped
> with LyX? If so, we need to embrace these calls in
>
> \...@ifpackageloaded{babel}{%
> ...
> }{}
>

Yes, these are the thesis set of template files that ship with LyX 2.0.

I tried adding this to the chapter template preamble. The error is removed,
but it seems to be because the commands are not processed — the cross ref
labels are not applied.


>
> > 3. custom character-style error
> > Finally, and this is more an annoyance than an impediment, my custom
> > character style module (based on info from Rob
> > Oakes character-styles
> >)
> > generates an *Undefined flex inset *error: 'Flex inset
> TechnicalDefinition
> > is undefined because of class conversion from article to article' (and
> the
> > same occurs in scrbook). This only seems to get thrown if I save a change
> > made within Document Settings, not on view, etc. Is there something in my
> > module that might cause this?
> >
> > #\DeclareLyXModule{thesis styles}
>
> There has been some syntax change. And if I remember well, it is difficult
> to handle self-defined modules. But I'm not sure. Richard can tell you
> more.
>
>
Is there documentation on the correct syntax? I've not been able to find
that until now.

Thanks again. [Sorry for accidentally posting to you twice, Jürgen]

 Jürgen
>
> > Thanks!
>


Re: LyX 2.0: problems using XeTeX and thesis template

2010-12-09 Thread Justin Wood
On 10 December 2010 12:37,  wrote:

> >
> > The reason for this is that XeTeX now uses polyglossia, which does not
> > know these \addto commands (which are from babel). Are these templates
> > shipped with LyX? If so, we need to embrace these calls in
> >
> > \...@ifpackageloaded{babel}{%
> > ...
> > }{}
>
> This problem should be fixed in the next release. The trick is to embrace
> these calls in
>
> \AtBeginDocument{%
> ...
> }
>
> so that they are executed after polyglossia (and babel).
>
> Jürgen
>

The template files do actually have this embrace, but it doesn't prevent the
parsing error. Or do you mean the next release will do something else that
will fix the problem? Thanks Jürgen.

For completeness, this is the preamble, taken directly from the chapter
template:


 % increase link area for cross-references and autoname them

*\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1*

*\newlength{\abc}*

*\settowidth{\abc}{\space}*

*\addto\extrasenglish{*

* \renewcommand{\equationautorefname}{\hspace{-\abc}}*

* \renewcommand{\sectionautorefname}{sec.\negthinspace}*

* \renewcommand{\subsectionautorefname}{sec.\negthinspace}*

* \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*

* \renewcommand{\figureautorefname}{Fig.\negthinspace}*

* \renewcommand{\tableautorefname}{Tab.\negthinspace}*

*}*

% in case somebody want to have the label "Gleichung"

%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}

% put the link to figure floats to the beginning

% of the figure and not to its end

\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }

% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}

% enable calculations

\usepackage{calc}

% fancy page header/footer settings

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}


LyX 2.0: problems using XeTeX and thesis template

2010-12-07 Thread Justin Wood
Hi all. I'm gingerly trying to switch over to LyX 2.0 (beta 1   2) and to
start using XeTeX so I can more easily access additional fonts. I'm writing
a thesis using the included thesis templates. Actually my current work uses
the template set sent out on these lists earlier in 2010, so I created brand
new sample files from the new 2.0 version to test the problems I'm about to
describe.


1. conflict with AMS package
I've found that simply activating XeTeX under *Document Settings –
Fonts*will cause parsing errors on viewing if the document also has
*Math Options – Use AMS math package* checked; eg, LaTeX Error: Command
`\Finv' already defined, etc. I think this is a known conflict between XeTeX
and the AMS package, is that right? By changing the setting to *Use AMS math
package automatically* though, these particular errors go away. Note that
this occurs in the generic default new document (*article* class) as well as
the *KOMA-script book *class that the thesis uses.

So for a 'simple' document — which has the automatic AMS math package option
checked by default anyway — this seems to fix the problem. But is that a
reasonable thing to do, or is the thesis template not initially configured
to use the auto version for good reason?

2. conflict in thesis template
Beyond that, changing to the automatic AMS math package in the thesis
document introduces new errors. In a brand new, entirely unmodified chapter
template file, XeTeX compilation now complains about the use of ' \addto
\extrasenglish{' in the preamble (used to define cross reference
identifiers). Is this another conflict between XeTeX and ... is it *hyperref
* these overrides refer to?

Would this be the appropriate moment to switch to using *refstyle* for
customised cross referencing? And is doing so a case of going and reading
that packages documentation? I can't find much in the LyX help files beyond
the fact that the option exists. One of the benefits of the hyperref
approach is not having to switch each cross ref instance to the *Formatted
reference* type...

3. custom character-style error
Finally, and this is more an annoyance than an impediment, my custom
character style module (based on info from Rob
Oakeshttp://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-character-styles)
generates an *Undefined flex inset *error: 'Flex inset TechnicalDefinition
is undefined because of class conversion from article to article' (and the
same occurs in scrbook). This only seems to get thrown if I save a change
made within Document Settings, not on view, etc. Is there something in my
module that might cause this?

#\DeclareLyXModule{thesis styles}
#DescriptionBegin
#Adds character styles for PhD thesis
#DescriptionEnd

InsetLayoutCharStyle:TechnicalDefinition
LyxType   charstyle
LabelString   techdefn
LatexType command
LatexName techdefn
Font
Family  Sans
EndFont
Preamble
\newcommand*{\techdefn}[1]{{\sffamily{\mdseries #1}}}
EndPreamble
End


Thanks!


Re: LyZ: lyxpipe changes in 2.0?

2010-12-07 Thread Justin Wood
I just tested this in LyX 2.0 beta 2 on OS X and it worked fine — after I
changed the LyX pipe path (back) to ~/.lyxpipe, which is the default LyZ
setting. You could change LyZ alternatively of course.

Point being I think it's simply down to the pipe file path matching
correctly.

2010/12/6 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Petr Šimon petr.si...@gmail.com
 To: sa...@lyx.org, lyx-users@lists.lyx.org
 Date: Sat, 4 Dec 2010 22:38:05 +0800
 Subject: Re: LyZ: lyxpipe changes in 2.0?

 On Sat, Dec 4, 2010 at 3:27 AM, Pavel Sanda sa...@lyx.org wrote:
  Jose Quesada wrote:
  Thanks Pavel,
  So this means that 2.0beta/svn doesn't work with LyZ? Is this fixable?
  I did try 1.6.8 and it did work :)
 
  there were many changes i the pipe code, but i thought they were all
  backported to 1.6... well, i may be wrong. anyway the fixability looks
  more like the question for lyz developer, CC-ing now.
 
  actually the problem might be that we changed some lfuns for inserting
  citations and not pipes related at all... see RELEASE_NOTES for the list
  of changes.
 
  pavel
 
 Hi,
 thanks a lot. I didn't have time to do it yet, but I'll take care of it
 soon.
 Best
 Petr



LyX 2.0: problems using XeTeX and thesis template

2010-12-07 Thread Justin Wood
Hi all. I'm gingerly trying to switch over to LyX 2.0 (beta 1   2) and to
start using XeTeX so I can more easily access additional fonts. I'm writing
a thesis using the included thesis templates. Actually my current work uses
the template set sent out on these lists earlier in 2010, so I created brand
new sample files from the new 2.0 version to test the problems I'm about to
describe.


1. conflict with AMS package
I've found that simply activating XeTeX under *Document Settings –
Fonts*will cause parsing errors on viewing if the document also has
*Math Options – Use AMS math package* checked; eg, LaTeX Error: Command
`\Finv' already defined, etc. I think this is a known conflict between XeTeX
and the AMS package, is that right? By changing the setting to *Use AMS math
package automatically* though, these particular errors go away. Note that
this occurs in the generic default new document (*article* class) as well as
the *KOMA-script book *class that the thesis uses.

So for a 'simple' document — which has the automatic AMS math package option
checked by default anyway — this seems to fix the problem. But is that a
reasonable thing to do, or is the thesis template not initially configured
to use the auto version for good reason?

2. conflict in thesis template
Beyond that, changing to the automatic AMS math package in the thesis
document introduces new errors. In a brand new, entirely unmodified chapter
template file, XeTeX compilation now complains about the use of ' \addto
\extrasenglish{' in the preamble (used to define cross reference
identifiers). Is this another conflict between XeTeX and ... is it *hyperref
* these overrides refer to?

Would this be the appropriate moment to switch to using *refstyle* for
customised cross referencing? And is doing so a case of going and reading
that packages documentation? I can't find much in the LyX help files beyond
the fact that the option exists. One of the benefits of the hyperref
approach is not having to switch each cross ref instance to the *Formatted
reference* type...

3. custom character-style error
Finally, and this is more an annoyance than an impediment, my custom
character style module (based on info from Rob
Oakeshttp://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-character-styles)
generates an *Undefined flex inset *error: 'Flex inset TechnicalDefinition
is undefined because of class conversion from article to article' (and the
same occurs in scrbook). This only seems to get thrown if I save a change
made within Document Settings, not on view, etc. Is there something in my
module that might cause this?

#\DeclareLyXModule{thesis styles}
#DescriptionBegin
#Adds character styles for PhD thesis
#DescriptionEnd

InsetLayoutCharStyle:TechnicalDefinition
LyxType   charstyle
LabelString   techdefn
LatexType command
LatexName techdefn
Font
Family  Sans
EndFont
Preamble
\newcommand*{\techdefn}[1]{{\sffamily{\mdseries #1}}}
EndPreamble
End


Thanks!


Re: LyZ: lyxpipe changes in 2.0?

2010-12-07 Thread Justin Wood
I just tested this in LyX 2.0 beta 2 on OS X and it worked fine — after I
changed the LyX pipe path (back) to ~/.lyxpipe, which is the default LyZ
setting. You could change LyZ alternatively of course.

Point being I think it's simply down to the pipe file path matching
correctly.

2010/12/6 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Petr Šimon petr.si...@gmail.com
 To: sa...@lyx.org, lyx-users@lists.lyx.org
 Date: Sat, 4 Dec 2010 22:38:05 +0800
 Subject: Re: LyZ: lyxpipe changes in 2.0?

 On Sat, Dec 4, 2010 at 3:27 AM, Pavel Sanda sa...@lyx.org wrote:
  Jose Quesada wrote:
  Thanks Pavel,
  So this means that 2.0beta/svn doesn't work with LyZ? Is this fixable?
  I did try 1.6.8 and it did work :)
 
  there were many changes i the pipe code, but i thought they were all
  backported to 1.6... well, i may be wrong. anyway the fixability looks
  more like the question for lyz developer, CC-ing now.
 
  actually the problem might be that we changed some lfuns for inserting
  citations and not pipes related at all... see RELEASE_NOTES for the list
  of changes.
 
  pavel
 
 Hi,
 thanks a lot. I didn't have time to do it yet, but I'll take care of it
 soon.
 Best
 Petr



LyX 2.0: problems using XeTeX and thesis template

2010-12-07 Thread Justin Wood
Hi all. I'm gingerly trying to switch over to LyX 2.0 (beta 1   2) and to
start using XeTeX so I can more easily access additional fonts. I'm writing
a thesis using the included thesis templates. Actually my current work uses
the template set sent out on these lists earlier in 2010, so I created brand
new sample files from the new 2.0 version to test the problems I'm about to
describe.


1. conflict with AMS package
I've found that simply activating XeTeX under *Document Settings –
Fonts*will cause parsing errors on viewing if the document also has
*Math Options – Use AMS math package* checked; eg, LaTeX Error: Command
`\Finv' already defined, etc. I think this is a known conflict between XeTeX
and the AMS package, is that right? By changing the setting to *Use AMS math
package automatically* though, these particular errors go away. Note that
this occurs in the generic default new document (*article* class) as well as
the *KOMA-script book *class that the thesis uses.

So for a 'simple' document — which has the automatic AMS math package option
checked by default anyway — this seems to fix the problem. But is that a
reasonable thing to do, or is the thesis template not initially configured
to use the auto version for good reason?

2. conflict in thesis template
Beyond that, changing to the automatic AMS math package in the thesis
document introduces new errors. In a brand new, entirely unmodified chapter
template file, XeTeX compilation now complains about the use of ' \addto
\extrasenglish{' in the preamble (used to define cross reference
identifiers). Is this another conflict between XeTeX and ... is it *hyperref
* these overrides refer to?

Would this be the appropriate moment to switch to using *refstyle* for
customised cross referencing? And is doing so a case of going and reading
that packages documentation? I can't find much in the LyX help files beyond
the fact that the option exists. One of the benefits of the hyperref
approach is not having to switch each cross ref instance to the *Formatted
reference* type...

3. custom character-style error
Finally, and this is more an annoyance than an impediment, my custom
character style module (based on info from Rob
Oakes)
generates an *Undefined flex inset *error: 'Flex inset TechnicalDefinition
is undefined because of class conversion from article to article' (and the
same occurs in scrbook). This only seems to get thrown if I save a change
made within Document Settings, not on view, etc. Is there something in my
module that might cause this?

#\DeclareLyXModule{thesis styles}
#DescriptionBegin
#Adds character styles for PhD thesis
#DescriptionEnd

InsetLayoutCharStyle:TechnicalDefinition
LyxType   charstyle
LabelString   techdefn
LatexType command
LatexName techdefn
Font
Family  Sans
EndFont
Preamble
\newcommand*{\techdefn}[1]{{\sffamily{\mdseries #1}}}
EndPreamble
End


Thanks!


Re: LyZ: lyxpipe changes in 2.0?

2010-12-07 Thread Justin Wood
I just tested this in LyX 2.0 beta 2 on OS X and it worked fine — after I
changed the LyX pipe path (back) to ~/.lyxpipe, which is the default LyZ
setting. You could change LyZ alternatively of course.

Point being I think it's simply down to the pipe file path matching
correctly.

2010/12/6 

> -- Forwarded message --
> From: "Petr Šimon" 
> To: , 
> Date: Sat, 4 Dec 2010 22:38:05 +0800
> Subject: Re: LyZ: lyxpipe changes in 2.0?
>
> On Sat, Dec 4, 2010 at 3:27 AM, Pavel Sanda  wrote:
> > Jose Quesada wrote:
> >> Thanks Pavel,
> >> So this means that 2.0beta/svn doesn't work with LyZ? Is this fixable?
> >> I did try 1.6.8 and it did work :)
> >
> > there were many changes i the pipe code, but i thought they were all
> > backported to 1.6... well, i may be wrong. anyway the fixability looks
> > more like the question for lyz developer, CC-ing now.
> >
> > actually the problem might be that we changed some lfuns for inserting
> > citations and not pipes related at all... see RELEASE_NOTES for the list
> > of changes.
> >
> > pavel
> >
> Hi,
> thanks a lot. I didn't have time to do it yet, but I'll take care of it
> soon.
> Best
> Petr
>


instructions for upgrade from LyX 1.6.7 to 2.0 beta 1?

2010-11-10 Thread Justin Wood
Hi gang. As LyX 2.0 beta 1 is now released, I thought I'd make the switch
over (OS X 10.6). It installs and runs fine, but as best I can tell there is
no automated import of LyX 1.6.7 settings. Are there any (draft)
instructions available for walking the upgrade path? Are there any backwards
compatibility issues or conflicts to watch out for, or can the existing
LyX-1.6 user directory pretty much just be copied across? Ditto for
migrating actual documents.

Thanks! And very much looking forward to using this shiny new creature.


instructions for upgrade from LyX 1.6.7 to 2.0 beta 1?

2010-11-10 Thread Justin Wood
Hi gang. As LyX 2.0 beta 1 is now released, I thought I'd make the switch
over (OS X 10.6). It installs and runs fine, but as best I can tell there is
no automated import of LyX 1.6.7 settings. Are there any (draft)
instructions available for walking the upgrade path? Are there any backwards
compatibility issues or conflicts to watch out for, or can the existing
LyX-1.6 user directory pretty much just be copied across? Ditto for
migrating actual documents.

Thanks! And very much looking forward to using this shiny new creature.


instructions for upgrade from LyX 1.6.7 to 2.0 beta 1?

2010-11-10 Thread Justin Wood
Hi gang. As LyX 2.0 beta 1 is now released, I thought I'd make the switch
over (OS X 10.6). It installs and runs fine, but as best I can tell there is
no automated import of LyX 1.6.7 settings. Are there any (draft)
instructions available for walking the upgrade path? Are there any backwards
compatibility issues or conflicts to watch out for, or can the existing
LyX-1.6 user directory pretty much just be copied across? Ditto for
migrating actual documents.

Thanks! And very much looking forward to using this shiny new creature.


Re: relative path for images

2010-10-27 Thread Justin Wood
2010/10/27 lyx-users-digest-h...@lists.lyx.org

 From: M DR maida@gmail.com
 To: lyx-users@lists.lyx.org
 Date: Wed, 27 Oct 2010 06:51:56 +0800
 Subject: relative path for images
 Hello to all,

 this is surely a very simple question, but I'm a total no-geek and is
 driving me crazy.

 I want to change the absolute path of the figures that I insert (the 90% of
 them as a float) to a relative path, since I'm working from differents
 computers and syncing the files with dropbox. I have found precisely this
 info in these help files, but I'm doing something wrong, since it is not
 working as expected.


This is *exactly* the way I'm writing my thesis. It works fine, though I
won't call it elegant. If it's safe to assume your document and image files
all live within a shared logical root in your Dropbox directory, and all
.lyx files will be in either the single directory or a uniform directory
structure, you can just edit the file path of the target image in the
Graphics dialogue. That is,
+ doc root is /Users/justin/Dropbox/_PhD/thesis
+ image files are then under thesis/_src/images/
+ lyx files are in structure thesis/chapters/ch1/

So once inserting the image file through the Graphics dialogue in an example
file under thesis/chapters/ch1/chapter1.lyx — which will use the full,
system-specific file path — you then edit it to be a relative path. If
example image file is
/Users/justin/Dropbox/_PhD/thesis/_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png

then it should be changed to traverse (in my case) two directories back to
the shared root using the standard OS ../ pointer.
*
../../*_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png

Hope that makes sense.




 btw, I am using LyX version 1.6.7,so the path idicated in the first link: 
 Layout
 - Document - Praeamble, is the same as Document - Settings - LaTeX
 Preamble, which is the only one I've found ?

 http://wiki.lyx.org/Windows/LyXWinTips

 http://wiki.lyx.org/FAQ/RelativeFiguresLocation

 Thanks in advanced,

 MaDro



Re: relative path for images

2010-10-27 Thread Justin Wood
2010/10/27 lyx-users-digest-h...@lists.lyx.org

 From: M DR maida@gmail.com
 To: lyx-users@lists.lyx.org
 Date: Wed, 27 Oct 2010 06:51:56 +0800
 Subject: relative path for images
 Hello to all,

 this is surely a very simple question, but I'm a total no-geek and is
 driving me crazy.

 I want to change the absolute path of the figures that I insert (the 90% of
 them as a float) to a relative path, since I'm working from differents
 computers and syncing the files with dropbox. I have found precisely this
 info in these help files, but I'm doing something wrong, since it is not
 working as expected.


This is *exactly* the way I'm writing my thesis. It works fine, though I
won't call it elegant. If it's safe to assume your document and image files
all live within a shared logical root in your Dropbox directory, and all
.lyx files will be in either the single directory or a uniform directory
structure, you can just edit the file path of the target image in the
Graphics dialogue. That is,
+ doc root is /Users/justin/Dropbox/_PhD/thesis
+ image files are then under thesis/_src/images/
+ lyx files are in structure thesis/chapters/ch1/

So once inserting the image file through the Graphics dialogue in an example
file under thesis/chapters/ch1/chapter1.lyx — which will use the full,
system-specific file path — you then edit it to be a relative path. If
example image file is
/Users/justin/Dropbox/_PhD/thesis/_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png

then it should be changed to traverse (in my case) two directories back to
the shared root using the standard OS ../ pointer.
*
../../*_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png

Hope that makes sense.




 btw, I am using LyX version 1.6.7,so the path idicated in the first link: 
 Layout
 - Document - Praeamble, is the same as Document - Settings - LaTeX
 Preamble, which is the only one I've found ?

 http://wiki.lyx.org/Windows/LyXWinTips

 http://wiki.lyx.org/FAQ/RelativeFiguresLocation

 Thanks in advanced,

 MaDro



Re: relative path for images

2010-10-27 Thread Justin Wood
2010/10/27 

> From: "M DR" 
> To: 
> Date: Wed, 27 Oct 2010 06:51:56 +0800
> Subject: relative path for images
> Hello to all,
>
> this is surely a very simple question, but I'm a total no-geek and is
> driving me crazy.
>
> I want to change the absolute path of the figures that I insert (the 90% of
> them as a float) to a relative path, since I'm working from differents
> computers and syncing the files with dropbox. I have found precisely this
> info in these help files, but I'm doing something wrong, since it is not
> working as expected.
>

This is *exactly* the way I'm writing my thesis. It works fine, though I
won't call it elegant. If it's safe to assume your document and image files
all live within a shared logical root in your Dropbox directory, and all
.lyx files will be in either the single directory or a uniform directory
structure, you can just edit the file path of the target image in the
Graphics dialogue. That is,
+ doc root is /Users/justin/Dropbox/_PhD/thesis
+ image files are then under thesis/_src/images/
+ lyx files are in structure thesis/chapters/ch1/

So once inserting the image file through the Graphics dialogue in an example
file under thesis/chapters/ch1/chapter1.lyx — which will use the full,
system-specific file path — you then edit it to be a relative path. If
example image file is
/Users/justin/Dropbox/_PhD/thesis/_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png

then it should be changed to traverse (in my case) two directories back to
the shared root using the standard OS "../" pointer.
*
../../*_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png

Hope that makes sense.




> btw, I am using LyX version 1.6.7,so the path idicated in the first link: 
> Layout
> -> Document -> Praeamble, is the same as Document -> Settings -> LaTeX
> Preamble, which is the only one I've found ?
>
> http://wiki.lyx.org/Windows/LyXWinTips
>
> http://wiki.lyx.org/FAQ/RelativeFiguresLocation
>
> Thanks in advanced,
>
> MaDro
>


formatting cross references in KOMA-Script and a custom float

2010-09-21 Thread Justin Wood
All,
I've asked a few newbie questions about formatting cross references,
explicitly (thread
herehttp://thread.gmane.org/gmane.editors.lyx.general/65678)
and within a thread
(herehttp://thread.gmane.org/gmane.editors.lyx.general/65312)
where Jürgen Spitzmüller helped me define a custom boxfloat inset. After
many (many) hours, I've finally managed to figure out how to do it all,
so... I thought it might be of some small use to report back. A big part of
the problem was me not thinking to say up front that I was using the thesis
template example posted to this list previously, which employs *KOMA-Script
(book)* document class. Another issue which finally let me solve it all was
realising that specifying a different English dialect was breaking the
intended functionality.

My goal was: 1. to get the custom boxfloat cross reference working as for
floats, tables, etc, with the text 'Box' prepended; and 2. change default
behaviour so that section, subsection, subsubsection are all referred to as
'section'.

*Solution*:


   - by default references in this are simply the numbers, and you have to
   do something to them to get the naming we want. Jürgen quite rightly
   suggested the use of

\newrefformat{box}{Box~\negthinspace\ref{#1}}


   - but note that this only works with *Formatted reference* type, as the
  command is specific to \prettyref



   - now the thesis template preamble included these lines to redefine the
   normal \ref command, using the \autoref functionality in {*hyperref*}. *It
   was not working for me.*

\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1
\newlength{\abc}
\settowidth{\abc}{\space}
\addto\extras*english*{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
...
}


   - the most important point here is that the reference type commands are
  configured to be* language specific*, and I had not realised that my
  documents being set to language=British simply didn't match extras*
  english*



   - so by changing \extrasenglish to \extrasbritish, these reference
   formatting commands now work correctly.
   - the last issue was a crossref for the custom boxfloat inset. (*NB: the
   label for any boxfloat must be inserted with the caption for numbering to
   work properly.*) I haven't been able to figure out how to define the
   \autoref version for a custom counter type, so for now all boxes must use
   *Formatted reference* type, which allows this command to take effect:

\newrefformat{box}{\mbox{\hyperref[{#1}]{Box~\ref{#1


   - rather than the format suggested by Jürgen (above), I used \hyperref
  and the {Box } text to be consistent with \autoref — the prepended label
  text is then *part of* the hyperlink. And to my happy surprise, it all
  works!


HTH!

~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/


Re: how to add a caption to a Box inset?

2010-09-21 Thread Justin Wood
Jürgen,(all,)
Nothing I try will make the content of this custom boxfloat *honour
paragraph spacing*. For example, this hack (based on your original
code) doesn't
work, but if I use ERT to create a *framedpar* explicitly, it works fine.
The only difference my novice eyes can see is the fact that boxfloat is of
course a *float*, wrapped in the {float} package which is used to define the
custom boxfloat type with a LyX module.

\newenvironment{framedpar}
{\begin{framed}%
  \setlength{\parskip}{20pt}% big number to test
%  \setlength{\parsep}{10pt}
  }%
{\end{framed}
}% end framedpar

% Jurgen's Box Float mods
\...@ifundefined{fs@boxed}{}% do nothing if not in use
{%
  \usepackage{framed}
  \newcommand\flo...@simplerule[2]{\flushleft{\@f...@cfont #1 #2}}
  \renewcommand...@boxed{%
   \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
\d...@fs@pre{\begin{*framedpar*}}%
\d...@fs@post{\end{*framedpar*}}%
\d...@fs@mid{\kern8pt}%
\l...@fs@iftopcapt\iftrue}
}%


I'm now thinking there's something in the {float} module that prevents it?
Is this something you've come across before?

Thanks so much for your help (and patience!).

~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/
On 16 September 2010 16:19, Justin Wood justin.w...@murdoch.edu.au wrote:

 2. separate paragraphs with blank line the same as LyX does for normal
 text; add blank line after Box caption too.


formatting cross references in KOMA-Script and a custom float

2010-09-21 Thread Justin Wood
All,
I've asked a few newbie questions about formatting cross references,
explicitly (thread
herehttp://thread.gmane.org/gmane.editors.lyx.general/65678)
and within a thread
(herehttp://thread.gmane.org/gmane.editors.lyx.general/65312)
where Jürgen Spitzmüller helped me define a custom boxfloat inset. After
many (many) hours, I've finally managed to figure out how to do it all,
so... I thought it might be of some small use to report back. A big part of
the problem was me not thinking to say up front that I was using the thesis
template example posted to this list previously, which employs *KOMA-Script
(book)* document class. Another issue which finally let me solve it all was
realising that specifying a different English dialect was breaking the
intended functionality.

My goal was: 1. to get the custom boxfloat cross reference working as for
floats, tables, etc, with the text 'Box' prepended; and 2. change default
behaviour so that section, subsection, subsubsection are all referred to as
'section'.

*Solution*:


   - by default references in this are simply the numbers, and you have to
   do something to them to get the naming we want. Jürgen quite rightly
   suggested the use of

\newrefformat{box}{Box~\negthinspace\ref{#1}}


   - but note that this only works with *Formatted reference* type, as the
  command is specific to \prettyref



   - now the thesis template preamble included these lines to redefine the
   normal \ref command, using the \autoref functionality in {*hyperref*}. *It
   was not working for me.*

\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1
\newlength{\abc}
\settowidth{\abc}{\space}
\addto\extras*english*{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
...
}


   - the most important point here is that the reference type commands are
  configured to be* language specific*, and I had not realised that my
  documents being set to language=British simply didn't match extras*
  english*



   - so by changing \extrasenglish to \extrasbritish, these reference
   formatting commands now work correctly.
   - the last issue was a crossref for the custom boxfloat inset. (*NB: the
   label for any boxfloat must be inserted with the caption for numbering to
   work properly.*) I haven't been able to figure out how to define the
   \autoref version for a custom counter type, so for now all boxes must use
   *Formatted reference* type, which allows this command to take effect:

\newrefformat{box}{\mbox{\hyperref[{#1}]{Box~\ref{#1


   - rather than the format suggested by Jürgen (above), I used \hyperref
  and the {Box } text to be consistent with \autoref — the prepended label
  text is then *part of* the hyperlink. And to my happy surprise, it all
  works!


HTH!

~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/


Re: how to add a caption to a Box inset?

2010-09-21 Thread Justin Wood
Jürgen,(all,)
Nothing I try will make the content of this custom boxfloat *honour
paragraph spacing*. For example, this hack (based on your original
code) doesn't
work, but if I use ERT to create a *framedpar* explicitly, it works fine.
The only difference my novice eyes can see is the fact that boxfloat is of
course a *float*, wrapped in the {float} package which is used to define the
custom boxfloat type with a LyX module.

\newenvironment{framedpar}
{\begin{framed}%
  \setlength{\parskip}{20pt}% big number to test
%  \setlength{\parsep}{10pt}
  }%
{\end{framed}
}% end framedpar

% Jurgen's Box Float mods
\...@ifundefined{fs@boxed}{}% do nothing if not in use
{%
  \usepackage{framed}
  \newcommand\flo...@simplerule[2]{\flushleft{\@f...@cfont #1 #2}}
  \renewcommand...@boxed{%
   \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
\d...@fs@pre{\begin{*framedpar*}}%
\d...@fs@post{\end{*framedpar*}}%
\d...@fs@mid{\kern8pt}%
\l...@fs@iftopcapt\iftrue}
}%


I'm now thinking there's something in the {float} module that prevents it?
Is this something you've come across before?

Thanks so much for your help (and patience!).

~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/
On 16 September 2010 16:19, Justin Wood justin.w...@murdoch.edu.au wrote:

 2. separate paragraphs with blank line the same as LyX does for normal
 text; add blank line after Box caption too.


formatting cross references in KOMA-Script and a custom float

2010-09-21 Thread Justin Wood
All,
I've asked a few newbie questions about formatting cross references,
explicitly (thread
here<http://thread.gmane.org/gmane.editors.lyx.general/65678>)
and within a thread
(here<http://thread.gmane.org/gmane.editors.lyx.general/65312>)
where Jürgen Spitzmüller helped me define a custom boxfloat inset. After
many (many) hours, I've finally managed to figure out how to do it all,
so... I thought it might be of some small use to report back. A big part of
the problem was me not thinking to say up front that I was using the thesis
template example posted to this list previously, which employs *KOMA-Script
(book)* document class. Another issue which finally let me solve it all was
realising that specifying a different English dialect was breaking the
intended functionality.

My goal was: 1. to get the custom boxfloat cross reference working as for
floats, tables, etc, with the text 'Box' prepended; and 2. change default
behaviour so that section, subsection, subsubsection are all referred to as
'section'.

*Solution*:


   - by default references in this are simply the numbers, and you have to
   do something to them to get the naming we want. Jürgen quite rightly
   suggested the use of

\newrefformat{box}{Box~\negthinspace\ref{#1}}


   - but note that this only works with *Formatted reference* type, as the
  command is specific to \prettyref



   - now the thesis template preamble included these lines to redefine the
   normal \ref command, using the \autoref functionality in {*hyperref*}. *It
   was not working for me.*

\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1
\newlength{\abc}
\settowidth{\abc}{\space}
\addto\extras*english*{
 \renewcommand{\equationautorefname}{\hspace{-\abc}}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
...
}


   - the most important point here is that the reference type commands are
  configured to be* language specific*, and I had not realised that my
  documents being set to language=British simply didn't match extras*
  english*



   - so by changing \extrasenglish to \extrasbritish, these reference
   formatting commands now work correctly.
   - the last issue was a crossref for the custom boxfloat inset. (*NB: the
   label for any boxfloat must be inserted with the caption for numbering to
   work properly.*) I haven't been able to figure out how to define the
   \autoref version for a custom counter type, so for now all boxes must use
   *Formatted reference* type, which allows this command to take effect:

\newrefformat{box}{\mbox{\hyperref[{#1}]{Box~\ref{#1


   - rather than the format suggested by Jürgen (above), I used \hyperref
  and the {Box } text to be consistent with \autoref — the prepended label
  text is then *part of* the hyperlink. And to my happy surprise, it all
  works!


HTH!

~:Justin Wood:~
PhD candidate, *Energy & Engineering school*, Murdoch
University<http://www.murdoch.edu.au/>


Re: how to add a caption to a Box inset?

2010-09-21 Thread Justin Wood
Jürgen,(all,)
Nothing I try will make the content of this custom boxfloat *honour
paragraph spacing*. For example, this hack (based on your original
code) doesn't
work, but if I use ERT to create a *framedpar* explicitly, it works fine.
The only difference my novice eyes can see is the fact that boxfloat is of
course a *float*, wrapped in the {float} package which is used to define the
custom boxfloat type with a LyX module.

\newenvironment{framedpar}
{\begin{framed}%
  \setlength{\parskip}{20pt}% big number to test
%  \setlength{\parsep}{10pt}
  }%
{\end{framed}
}% end framedpar

% Jurgen's Box Float mods
\...@ifundefined{fs@boxed}{}% do nothing if not in use
{%
  \usepackage{framed}
  \newcommand\flo...@simplerule[2]{\flushleft{\@f...@cfont #1 #2}}
  \renewcommand...@boxed{%
   \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
\d...@fs@pre{\begin{*framedpar*}}%
\d...@fs@post{\end{*framedpar*}}%
\d...@fs@mid{\kern8pt}%
\l...@fs@iftopcapt\iftrue}
}%


I'm now thinking there's something in the {float} module that prevents it?
Is this something you've come across before?

Thanks so much for your help (and patience!).

~:Justin Wood:~
PhD candidate, *Energy & Engineering school*, Murdoch
University<http://www.murdoch.edu.au/>
On 16 September 2010 16:19, Justin Wood <justin.w...@murdoch.edu.au> wrote:

> 2. separate paragraphs with blank line the same as LyX does for normal
> text; add blank line after Box caption too.


Re: how to add a caption to a Box inset?

2010-09-16 Thread Justin Wood
I've been using this module and it's almost exactly what I need. I changed
the layout to NumberWithin = chapter to give me Box 1.1, 1.2, etc. But I
need to change a few other things... so here's a shopping list:

1. align the caption left, and set font parameters. Can I do that with
{caption} package somehow; if not, where in the LaTeX preamble is that
controlled? (Attempts to change, eg, kern8pt haven't worked.)

2. separate paragraphs with blank line the same as LyX does for normal text;
add blank line after Box caption too.

** 3. make use of cross references to the Box Float label. At the moment
this doesn't work with reference (/ref) or Formatted reference
(/prettyref) modes — both simply produce 'subsection ??'. Most importantly I
just want the reference to be 'Box 1.1', same as for figure floats; the
numbering is crucial.

I'm frustrated not to be able to figure this out for myself but so far LaTeX
is continuing to defeat me...

Thanks all!

On 3 September 2010 23:20, Jürgen Spitzmüller sp...@lyx.org wrote:

  Justin Wood wrote:
  Thanks for the help, Jürgen. I'm not that great with using LaTeX
 directly,
  but is this on the right track for the boxedminipage style?
  \usepackage{boxedminipage} in the preamble; then
 
   \begin{boxedminipage}[c]{1\columnwidth}
 
  \label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}
 
 
  I inserted that as Tex code within LyX. I get a box this way, but I, err,
  can't quite see how to use this with a float and/or get a caption (in the
  Box 1, or Box 1.1 format). Sorry...

 * Put the attached module in the layouts folder of your user directory
 (AboutLyX tells you where the user directory is, if there is no layouts
 folder yet, create it)

 * Restart LyX

 * Go to DocumentsSettings...Modules, select the module Boxed Float and
 hit
 Add

 You should not be able to select a framed float from InsertFloats. The
 float
 does not exactly look like you want (the caption is outside the box). If
 you
 want to have the caption inside the box, the following definition in your
 document preamble (while using the Boxed Float module) should help:

 \usepackage{framed}
 \newcommand\flo...@simplerule[2]{{\@f...@cfont #1 #2}\par}
 \renewcommand...@boxed{%
  \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
   \d...@fs@pre{\begin{framed}}%
   \d...@fs@post{\end{framed}}%
   \d...@fs@mid{\kern8pt}%
   \l...@fs@iftopcapt\iftrue}

 HTH,
 Jürgen



formatting cross references — \ref, \prettyref, et c

2010-09-16 Thread Justin Wood
Is it possible to control the format of cross references to labels so that I
can specify the text prepended to the label number? I realise LyX
automagically adds 'chapter', 'section', 'subsection', and 'Figure', most of
which are fine. But normally I would prefer to simply use 'section' for
actual subsections too.

*Formatted reference* looks to be the place to do this, but I've not been
able to find \prettyref's implementation sufficiently documented for LyX,
and what I have found seems to strongly imply it's use should be avoided.
Nonetheless I tried inserting the \prettyref name definition to my LaTeX
preamble and it did work, but... the text is being prepended to the LyX
'section 1.1', 'subsection 1.1.1', etc, rather than *replacing* it.

Is use of formatted reference really supported, or is there some other way
to do this?

Thanks again.
~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/


Re: formatting cross references — \ref, \prettyref , etc

2010-09-16 Thread Justin Wood
On 16 September 2010 19:35, Richard Heck rgh...@comcast.net wrote:

  On 09/16/2010 04:26 AM, Justin Wood wrote:

 Is it possible to control the format of cross references to labels so that
 I can specify the text prepended to the label number? I realise LyX
 automagically adds 'chapter', 'section', 'subsection', and 'Figure', most of
 which are fine. But normally I would prefer to simply use 'section' for
 actual subsections too.

 *Formatted reference* looks to be the place to do this, but I've not been
 able to find \prettyref's implementation sufficiently documented for LyX,

  There's no special LyX documentation. We just use prettyref as LaTeX
 would.


Yes I appreciate that. (And I've since realised the problem is some sort of
conflict with the document class.)



 and what I have found seems to strongly imply it's use should be avoided.

  Where's that? There are some issues with prettyref, mostly to do with
 internationalization and babel support. That's why 2.0 will by default use
 refstyle instead, we hope.


Other than the passing mention in the User Guide and Customization help
files, mostly some 'robust' discussion on this group from a couple of years
ago which referred to prettyref being effectively unsupported. I might start
working with LyX 2.0 alpha now then actually (suitably forewarned and files
backed up of course).


 Nonetheless I tried inserting the \prettyref name definition to my LaTeX
 preamble and it did work, but... the text is being prepended to the LyX
 'section 1.1', 'subsection 1.1.1', etc, rather than *replacing* it.

  What prettyref command did you use? Prettyref itself predefines several of
 these things, but you should be able to redefine them yourself.


Just this in the preamble, as an example: \newrefformat{sub}{TEST \ref{#1}}

It outputs as 'TEST subsection x.y.z' — the original subsection remains in
place. But that was with a document class of *book (KOMA-script)*, the
thesis template[1].

I just tried it with a new file, all LyX defaults (article class), and the
override works as you'd expect, replacing 'subsection' with 'TEST'. And in
fact it works fine for the box float customisation has Jürgen helped me
with. So obviously the problem is within the *scrbook *document class? I
don't really know how to solve that at this point but at least I know where
to look...

Thanks Richard.

[1]
\documentclass[12pt,a4paper,english,british,intoc,bibtotoc,idxtotoc,BCOR10mm,titlepage,tablecaptionabove,
fleqn]{scrbook}


 Richard




Re: how to add a caption to a Box inset?

2010-09-16 Thread Justin Wood
I've been using this module and it's almost exactly what I need. I changed
the layout to NumberWithin = chapter to give me Box 1.1, 1.2, etc. But I
need to change a few other things... so here's a shopping list:

1. align the caption left, and set font parameters. Can I do that with
{caption} package somehow; if not, where in the LaTeX preamble is that
controlled? (Attempts to change, eg, kern8pt haven't worked.)

2. separate paragraphs with blank line the same as LyX does for normal text;
add blank line after Box caption too.

** 3. make use of cross references to the Box Float label. At the moment
this doesn't work with reference (/ref) or Formatted reference
(/prettyref) modes — both simply produce 'subsection ??'. Most importantly I
just want the reference to be 'Box 1.1', same as for figure floats; the
numbering is crucial.

I'm frustrated not to be able to figure this out for myself but so far LaTeX
is continuing to defeat me...

Thanks all!

On 3 September 2010 23:20, Jürgen Spitzmüller sp...@lyx.org wrote:

  Justin Wood wrote:
  Thanks for the help, Jürgen. I'm not that great with using LaTeX
 directly,
  but is this on the right track for the boxedminipage style?
  \usepackage{boxedminipage} in the preamble; then
 
   \begin{boxedminipage}[c]{1\columnwidth}
 
  \label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}
 
 
  I inserted that as Tex code within LyX. I get a box this way, but I, err,
  can't quite see how to use this with a float and/or get a caption (in the
  Box 1, or Box 1.1 format). Sorry...

 * Put the attached module in the layouts folder of your user directory
 (AboutLyX tells you where the user directory is, if there is no layouts
 folder yet, create it)

 * Restart LyX

 * Go to DocumentsSettings...Modules, select the module Boxed Float and
 hit
 Add

 You should not be able to select a framed float from InsertFloats. The
 float
 does not exactly look like you want (the caption is outside the box). If
 you
 want to have the caption inside the box, the following definition in your
 document preamble (while using the Boxed Float module) should help:

 \usepackage{framed}
 \newcommand\flo...@simplerule[2]{{\@f...@cfont #1 #2}\par}
 \renewcommand...@boxed{%
  \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
   \d...@fs@pre{\begin{framed}}%
   \d...@fs@post{\end{framed}}%
   \d...@fs@mid{\kern8pt}%
   \l...@fs@iftopcapt\iftrue}

 HTH,
 Jürgen



formatting cross references — \ref, \prettyref, et c

2010-09-16 Thread Justin Wood
Is it possible to control the format of cross references to labels so that I
can specify the text prepended to the label number? I realise LyX
automagically adds 'chapter', 'section', 'subsection', and 'Figure', most of
which are fine. But normally I would prefer to simply use 'section' for
actual subsections too.

*Formatted reference* looks to be the place to do this, but I've not been
able to find \prettyref's implementation sufficiently documented for LyX,
and what I have found seems to strongly imply it's use should be avoided.
Nonetheless I tried inserting the \prettyref name definition to my LaTeX
preamble and it did work, but... the text is being prepended to the LyX
'section 1.1', 'subsection 1.1.1', etc, rather than *replacing* it.

Is use of formatted reference really supported, or is there some other way
to do this?

Thanks again.
~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/


Re: formatting cross references — \ref, \prettyref , etc

2010-09-16 Thread Justin Wood
On 16 September 2010 19:35, Richard Heck rgh...@comcast.net wrote:

  On 09/16/2010 04:26 AM, Justin Wood wrote:

 Is it possible to control the format of cross references to labels so that
 I can specify the text prepended to the label number? I realise LyX
 automagically adds 'chapter', 'section', 'subsection', and 'Figure', most of
 which are fine. But normally I would prefer to simply use 'section' for
 actual subsections too.

 *Formatted reference* looks to be the place to do this, but I've not been
 able to find \prettyref's implementation sufficiently documented for LyX,

  There's no special LyX documentation. We just use prettyref as LaTeX
 would.


Yes I appreciate that. (And I've since realised the problem is some sort of
conflict with the document class.)



 and what I have found seems to strongly imply it's use should be avoided.

  Where's that? There are some issues with prettyref, mostly to do with
 internationalization and babel support. That's why 2.0 will by default use
 refstyle instead, we hope.


Other than the passing mention in the User Guide and Customization help
files, mostly some 'robust' discussion on this group from a couple of years
ago which referred to prettyref being effectively unsupported. I might start
working with LyX 2.0 alpha now then actually (suitably forewarned and files
backed up of course).


 Nonetheless I tried inserting the \prettyref name definition to my LaTeX
 preamble and it did work, but... the text is being prepended to the LyX
 'section 1.1', 'subsection 1.1.1', etc, rather than *replacing* it.

  What prettyref command did you use? Prettyref itself predefines several of
 these things, but you should be able to redefine them yourself.


Just this in the preamble, as an example: \newrefformat{sub}{TEST \ref{#1}}

It outputs as 'TEST subsection x.y.z' — the original subsection remains in
place. But that was with a document class of *book (KOMA-script)*, the
thesis template[1].

I just tried it with a new file, all LyX defaults (article class), and the
override works as you'd expect, replacing 'subsection' with 'TEST'. And in
fact it works fine for the box float customisation has Jürgen helped me
with. So obviously the problem is within the *scrbook *document class? I
don't really know how to solve that at this point but at least I know where
to look...

Thanks Richard.

[1]
\documentclass[12pt,a4paper,english,british,intoc,bibtotoc,idxtotoc,BCOR10mm,titlepage,tablecaptionabove,
fleqn]{scrbook}


 Richard




Re: how to add a caption to a Box inset?

2010-09-16 Thread Justin Wood
I've been using this module and it's almost exactly what I need. I changed
the layout to NumberWithin = chapter to give me Box 1.1, 1.2, etc. But I
need to change a few other things... so here's a shopping list:

1. align the caption left, and set font parameters. Can I do that with
{caption} package somehow; if not, where in the LaTeX preamble is that
controlled? (Attempts to change, eg, kern8pt haven't worked.)

2. separate paragraphs with blank line the same as LyX does for normal text;
add blank line after Box caption too.

** 3. make use of cross references to the Box Float label. At the moment
this doesn't work with  (/ref) or Formatted reference
(/prettyref) modes — both simply produce 'subsection ??'. Most importantly I
just want the reference to be 'Box 1.1', same as for figure floats; the
numbering is crucial.

I'm frustrated not to be able to figure this out for myself but so far LaTeX
is continuing to defeat me...

Thanks all!

On 3 September 2010 23:20, Jürgen Spitzmüller <sp...@lyx.org> wrote:

>  Justin Wood wrote:
> > Thanks for the help, Jürgen. I'm not that great with using LaTeX
> directly,
> > but is this on the right track for the boxedminipage style?
> > \usepackage{boxedminipage} in the preamble; then
> >
> >  \begin{boxedminipage}[c]{1\columnwidth}
> >
> > \label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}
> >
> >
> > I inserted that as Tex code within LyX. I get a box this way, but I, err,
> > can't quite see how to use this with a float and/or get a caption (in the
> > Box 1, or Box 1.1 format). Sorry...
>
> * Put the attached module in the layouts folder of your user directory
> (About>LyX tells you where the user directory is, if there is no layouts
> folder yet, create it)
>
> * Restart LyX
>
> * Go to Documents>Settings...>Modules, select the module "Boxed Float" and
> hit
> "Add"
>
> You should not be able to select a framed float from Insert>Floats. The
> float
> does not exactly look like you want (the caption is outside the box). If
> you
> want to have the caption inside the box, the following definition in your
> document preamble (while using the Boxed Float module) should help:
>
> \usepackage{framed}
> \newcommand\flo...@simplerule[2]{{\@f...@cfont #1 #2}\par}
> \renewcommand...@boxed{%
>  \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
>   \d...@fs@pre{\begin{framed}}%
>   \d...@fs@post{\end{framed}}%
>   \d...@fs@mid{\kern8pt}%
>   \l...@fs@iftopcapt\iftrue}
>
> HTH,
> Jürgen
>


formatting cross references — \ref, \prettyref, et c

2010-09-16 Thread Justin Wood
Is it possible to control the format of cross references to labels so that I
can specify the text prepended to the label number? I realise LyX
automagically adds 'chapter', 'section', 'subsection', and 'Figure', most of
which are fine. But normally I would prefer to simply use 'section' for
actual subsections too.

*Formatted reference* looks to be the place to do this, but I've not been
able to find \prettyref's implementation sufficiently documented for LyX,
and what I have found seems to strongly imply it's use should be avoided.
Nonetheless I tried inserting the \prettyref name definition to my LaTeX
preamble and it did work, but... the text is being prepended to the LyX
'section 1.1', 'subsection 1.1.1', etc, rather than *replacing* it.

Is use of formatted reference really supported, or is there some other way
to do this?

Thanks again.
~:Justin Wood:~
PhD candidate, *Energy & Engineering school*, Murdoch
University<http://www.murdoch.edu.au/>


Re: formatting cross references — \ref, \prettyref , etc

2010-09-16 Thread Justin Wood
On 16 September 2010 19:35, Richard Heck <rgh...@comcast.net> wrote:

>  On 09/16/2010 04:26 AM, Justin Wood wrote:
>
> Is it possible to control the format of cross references to labels so that
> I can specify the text prepended to the label number? I realise LyX
> automagically adds 'chapter', 'section', 'subsection', and 'Figure', most of
> which are fine. But normally I would prefer to simply use 'section' for
> actual subsections too.
>
> *Formatted reference* looks to be the place to do this, but I've not been
> able to find \prettyref's implementation sufficiently documented for LyX,
>
>  There's no special LyX documentation. We just use prettyref as LaTeX
> would.
>

Yes I appreciate that. (And I've since realised the problem is some sort of
conflict with the document class.)


>
> and what I have found seems to strongly imply it's use should be avoided.
>
>  Where's that? There are some issues with prettyref, mostly to do with
> internationalization and babel support. That's why 2.0 will by default use
> refstyle instead, we hope.
>
>
Other than the passing mention in the User Guide and Customization help
files, mostly some 'robust' discussion on this group from a couple of years
ago which referred to prettyref being effectively unsupported. I might start
working with LyX 2.0 alpha now then actually (suitably forewarned and files
backed up of course).

>
> Nonetheless I tried inserting the \prettyref name definition to my LaTeX
> preamble and it did work, but... the text is being prepended to the LyX
> 'section 1.1', 'subsection 1.1.1', etc, rather than *replacing* it.
>
>  What prettyref command did you use? Prettyref itself predefines several of
> these things, but you should be able to redefine them yourself.
>

Just this in the preamble, as an example: \newrefformat{sub}{TEST \ref{#1}}

It outputs as 'TEST subsection x.y.z' — the original subsection remains in
place. But that was with a document class of *book (KOMA-script)*, the
thesis template[1].

I just tried it with a new file, all LyX defaults (article class), and the
override works as you'd expect, replacing 'subsection' with 'TEST'. And in
fact it works fine for the box float customisation has Jürgen helped me
with. So obviously the problem is within the *scrbook *document class? I
don't really know how to solve that at this point but at least I know where
to look...

Thanks Richard.

[1]
\documentclass[12pt,a4paper,english,british,intoc,bibtotoc,idxtotoc,BCOR10mm,titlepage,tablecaptionabove,
fleqn]{scrbook}

>
> Richard
>
>


Re: how to add a caption to a Box inset?

2010-09-06 Thread Justin Wood
This works beautifully. Many thanks, Jürgen!


Re: how to add a caption to a Box inset?

2010-09-06 Thread Justin Wood
This works beautifully. Many thanks, Jürgen!


Re: how to add a caption to a Box inset?

2010-09-06 Thread Justin Wood
This works beautifully. Many thanks, Jürgen!


Re: how to add a caption to a Box inset?

2010-09-02 Thread Justin Wood
Thanks for the help, Jürgen. I'm not that great with using LaTeX directly,
but is this on the right track for the boxedminipage style?
\usepackage{boxedminipage} in the preamble; then

 \begin{boxedminipage}[c]{1\columnwidth}

\label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}


I inserted that as Tex code within LyX. I get a box this way, but I, err,
can't quite see how to use this with a float and/or get a caption (in the
Box 1, or Box 1.1 format). Sorry...

Thanks again!
 ~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/
2010/8/28 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Jürgen Spitzmüller sp...@lyx.org
 To: lyx-users@lists.lyx.org
 Date: Sat, 28 Aug 2010 16:48:02 +0800
 Subject: Re: how to add a caption to a Box inset?

 Justin Wood wrote:
  Hi all. I've had a look around but can't seem to find an answer to this
  one... I want to create a regular ole framed box (you know, as a
  self-contained area for 'aside' or 'extra info' type content), but I
 can't
  figure out how to give it a useful automatic identifier. As in, following
  the same naming format that Figure captions do: Box 1, or Box 1.1, etc,
 and
  have this displayed in the top part of the box somewhere.

 You can define a new float in the layout file of you class or (preferably)
 in
 a new module. The syntax is

 Float
 Type  box
 GuiName   Box
 Placement tbp
 Extension lob
 NumberWithin  none
 Style plaintop
 ListName  List of Boxes
 LaTeXBuiltin  false
 End

 Then put a box inside this float.

 There's also a boxed style which puts the float in the box in the first
 place, but it looks different to what you want (caption outside and below
 box).

 HTH,
 Jürgen



Re: how to add a caption to a Box inset?

2010-09-02 Thread Justin Wood
Thanks for the help, Jürgen. I'm not that great with using LaTeX directly,
but is this on the right track for the boxedminipage style?
\usepackage{boxedminipage} in the preamble; then

 \begin{boxedminipage}[c]{1\columnwidth}

\label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}


I inserted that as Tex code within LyX. I get a box this way, but I, err,
can't quite see how to use this with a float and/or get a caption (in the
Box 1, or Box 1.1 format). Sorry...

Thanks again!
 ~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/
2010/8/28 lyx-users-digest-h...@lists.lyx.org

 -- Forwarded message --
 From: Jürgen Spitzmüller sp...@lyx.org
 To: lyx-users@lists.lyx.org
 Date: Sat, 28 Aug 2010 16:48:02 +0800
 Subject: Re: how to add a caption to a Box inset?

 Justin Wood wrote:
  Hi all. I've had a look around but can't seem to find an answer to this
  one... I want to create a regular ole framed box (you know, as a
  self-contained area for 'aside' or 'extra info' type content), but I
 can't
  figure out how to give it a useful automatic identifier. As in, following
  the same naming format that Figure captions do: Box 1, or Box 1.1, etc,
 and
  have this displayed in the top part of the box somewhere.

 You can define a new float in the layout file of you class or (preferably)
 in
 a new module. The syntax is

 Float
 Type  box
 GuiName   Box
 Placement tbp
 Extension lob
 NumberWithin  none
 Style plaintop
 ListName  List of Boxes
 LaTeXBuiltin  false
 End

 Then put a box inside this float.

 There's also a boxed style which puts the float in the box in the first
 place, but it looks different to what you want (caption outside and below
 box).

 HTH,
 Jürgen



Re: how to add a caption to a Box inset?

2010-09-02 Thread Justin Wood
Thanks for the help, Jürgen. I'm not that great with using LaTeX directly,
but is this on the right track for the boxedminipage style?
\usepackage{boxedminipage} in the preamble; then

 \begin{boxedminipage}[c]{1\columnwidth}

\label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}


I inserted that as Tex code within LyX. I get a box this way, but I, err,
can't quite see how to use this with a float and/or get a caption (in the
Box 1, or Box 1.1 format). Sorry...

Thanks again!
 ~:Justin Wood:~
PhD candidate, *Energy & Engineering school*, Murdoch
University<http://www.murdoch.edu.au/>
2010/8/28 <lyx-users-digest-h...@lists.lyx.org>

> -- Forwarded message --
> From: "Jürgen Spitzmüller" <sp...@lyx.org>
> To: <lyx-users@lists.lyx.org>
> Date: Sat, 28 Aug 2010 16:48:02 +0800
> Subject: Re: how to add a caption to a Box inset?
>
> Justin Wood wrote:
> > Hi all. I've had a look around but can't seem to find an answer to this
> > one... I want to create a regular ole framed box (you know, as a
> > self-contained area for 'aside' or 'extra info' type content), but I
> can't
> > figure out how to give it a useful automatic identifier. As in, following
> > the same naming format that Figure captions do: Box 1, or Box 1.1, etc,
> and
> > have this displayed in the top part of the box somewhere.
>
> You can define a new float in the layout file of you class or (preferably)
> in
> a new module. The syntax is
>
> Float
> Type  box
> GuiName   Box
> Placement tbp
> Extension lob
> NumberWithin  none
> Style plaintop
> ListName  "List of Boxes"
> LaTeXBuiltin  false
> End
>
> Then put a box inside this float.
>
> There's also a "boxed" style which puts the float in the box in the first
> place, but it looks different to what you want (caption outside and below
> box).
>
> HTH,
> Jürgen
>


how to add a caption to a Box inset?

2010-08-27 Thread Justin Wood
Hi all. I've had a look around but can't seem to find an answer to this
one... I want to create a regular ole framed box (you know, as a
self-contained area for 'aside' or 'extra info' type content), but I can't
figure out how to give it a useful automatic identifier. As in, following
the same naming format that Figure captions do: Box 1, or Box 1.1, etc, and
have this displayed in the top part of the box somewhere.

I've just used Insert — Box (as minipage). If I attempt to insert a
caption, LyX warns me that would be 'Senseless!!!', and doesn't generate
anything other than the caption text (no numbering). I tried wrapping the
box in a float, which then allowed me to insert a caption, but this of
course is treated as a *Figure*, which is not what I'm after (and would mess
up the numbering for any subsequent real figures).

Any help much appreciated!

Running LyX 1.6.7 with TeXLive 2009 on OS X 10.6.4 x64.
~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/


how to add a caption to a Box inset?

2010-08-27 Thread Justin Wood
Hi all. I've had a look around but can't seem to find an answer to this
one... I want to create a regular ole framed box (you know, as a
self-contained area for 'aside' or 'extra info' type content), but I can't
figure out how to give it a useful automatic identifier. As in, following
the same naming format that Figure captions do: Box 1, or Box 1.1, etc, and
have this displayed in the top part of the box somewhere.

I've just used Insert — Box (as minipage). If I attempt to insert a
caption, LyX warns me that would be 'Senseless!!!', and doesn't generate
anything other than the caption text (no numbering). I tried wrapping the
box in a float, which then allowed me to insert a caption, but this of
course is treated as a *Figure*, which is not what I'm after (and would mess
up the numbering for any subsequent real figures).

Any help much appreciated!

Running LyX 1.6.7 with TeXLive 2009 on OS X 10.6.4 x64.
~:Justin Wood:~
PhD candidate, *Energy  Engineering school*, Murdoch
Universityhttp://www.murdoch.edu.au/


how to add a caption to a Box inset?

2010-08-27 Thread Justin Wood
Hi all. I've had a look around but can't seem to find an answer to this
one... I want to create a regular ole framed box (you know, as a
self-contained area for 'aside' or 'extra info' type content), but I can't
figure out how to give it a useful automatic identifier. As in, following
the same naming format that Figure captions do: Box 1, or Box 1.1, etc, and
have this displayed in the top part of the box somewhere.

I've just used Insert —> Box (as minipage). If I attempt to insert a
caption, LyX warns me that would be 'Senseless!!!', and doesn't generate
anything other than the caption text (no numbering). I tried wrapping the
box in a float, which then allowed me to insert a caption, but this of
course is treated as a *Figure*, which is not what I'm after (and would mess
up the numbering for any subsequent real figures).

Any help much appreciated!

Running LyX 1.6.7 with TeXLive 2009 on OS X 10.6.4 x64.
~:Justin Wood:~
PhD candidate, *Energy & Engineering school*, Murdoch
University<http://www.murdoch.edu.au/>


Re: Spell checker

2010-03-18 Thread Justin Wood
I could have sworn I had spellchecker working under OS X 10.6.2 (+ x64
extensions) last week, just by installing the aspell package in MacPorts
(v0.60.6_2). But since then it wouldn't work other than to occasionally *
almost* pop-up the checker window when frantically hitting F7 -- it would
flicker for the briefest moment but never appear. Command line tests of
aspell showed it was installed and working fine. Indeed, if I changed the
LyX preference to ispell -- not installed -- spell checker would complain,
so LyX *was* able to locate aspell.

Anyway.

I just installed the latest
cocoAspellhttp://people.ict.usc.edu/%7Eleuski/cocoaspell/(v2.1, with
Snow Leopard updates), which I haven't tried before, and
it now works fine in LyX 1.6.5. Mostly guessing, I selected a few of the
various English dictionaries available from the new spelling Preference Pane
cocoAspell installs. Perhaps that makes a difference somehow? I haven't
tried non-English dictionaries though.

 ~:justin.wood http://civilisationshift.wordpress.com/:~ ≤ 350ppm
CO2http://350.org
On Wed, Mar 17, 2010 at 08:49, Marshall Feldman ma...@uri.edu wrote:


 I have the same problem on a Mac (Leopard), and I do have admin.
 privileges.


Re: Spell checker

2010-03-18 Thread Justin Wood
I also noticed there are dictionaries marked as *with* and *without* accents
-- do you have the accented one installed and activated?

~:Justin Wood:~
On Thu, Mar 18, 2010 at 16:03, Murat Yildizoglu 
murat.yildizo...@univ-cezanne.fr wrote:

  Hi Julio,

 I have just checked again to be sure and it is able to handle accented
 words in my French documents.
 I have a Settings applet called Spelling and I have checked Tex/Latex
 in its options. Have you done this? Maybe this is the culprit?

 Murat



Re: Spell checker

2010-03-18 Thread Justin Wood
I've actually found MacPorts http://www.macports.org/ far more reliable
than Fink. I think I read Fink is not being maintained properly anymore?
Porticus is also a nice GUI package manager for MacPorts too.

On Thu, Mar 18, 2010 at 16:42, Murat Yildizoglu 
murat.yildizo...@univ-cezanne.fr wrote:

 I have first tried the Fink version of Aspell and it was
 not working with Lyx.


LyX user configuration files (and natbib)

2010-03-18 Thread Justin Wood
Am I right in concluding that LyX will not read a natbib.cfg file placed in
the user configuration directory? Is there any other single location where
it could be stored, or must it always be located with the source .lyx file?
~:Justin Wood:~

 http://www.murdoch.edu.au/


Re: Spell checker

2010-03-18 Thread Justin Wood
I could have sworn I had spellchecker working under OS X 10.6.2 (+ x64
extensions) last week, just by installing the aspell package in MacPorts
(v0.60.6_2). But since then it wouldn't work other than to occasionally *
almost* pop-up the checker window when frantically hitting F7 -- it would
flicker for the briefest moment but never appear. Command line tests of
aspell showed it was installed and working fine. Indeed, if I changed the
LyX preference to ispell -- not installed -- spell checker would complain,
so LyX *was* able to locate aspell.

Anyway.

I just installed the latest
cocoAspellhttp://people.ict.usc.edu/%7Eleuski/cocoaspell/(v2.1, with
Snow Leopard updates), which I haven't tried before, and
it now works fine in LyX 1.6.5. Mostly guessing, I selected a few of the
various English dictionaries available from the new spelling Preference Pane
cocoAspell installs. Perhaps that makes a difference somehow? I haven't
tried non-English dictionaries though.

 ~:justin.wood http://civilisationshift.wordpress.com/:~ ≤ 350ppm
CO2http://350.org
On Wed, Mar 17, 2010 at 08:49, Marshall Feldman ma...@uri.edu wrote:


 I have the same problem on a Mac (Leopard), and I do have admin.
 privileges.


Re: Spell checker

2010-03-18 Thread Justin Wood
I also noticed there are dictionaries marked as *with* and *without* accents
-- do you have the accented one installed and activated?

~:Justin Wood:~
On Thu, Mar 18, 2010 at 16:03, Murat Yildizoglu 
murat.yildizo...@univ-cezanne.fr wrote:

  Hi Julio,

 I have just checked again to be sure and it is able to handle accented
 words in my French documents.
 I have a Settings applet called Spelling and I have checked Tex/Latex
 in its options. Have you done this? Maybe this is the culprit?

 Murat



Re: Spell checker

2010-03-18 Thread Justin Wood
I've actually found MacPorts http://www.macports.org/ far more reliable
than Fink. I think I read Fink is not being maintained properly anymore?
Porticus is also a nice GUI package manager for MacPorts too.

On Thu, Mar 18, 2010 at 16:42, Murat Yildizoglu 
murat.yildizo...@univ-cezanne.fr wrote:

 I have first tried the Fink version of Aspell and it was
 not working with Lyx.


LyX user configuration files (and natbib)

2010-03-18 Thread Justin Wood
Am I right in concluding that LyX will not read a natbib.cfg file placed in
the user configuration directory? Is there any other single location where
it could be stored, or must it always be located with the source .lyx file?
~:Justin Wood:~

 http://www.murdoch.edu.au/


Re: Spell checker

2010-03-18 Thread Justin Wood
I could have sworn I had spellchecker working under OS X 10.6.2 (+ x64
extensions) last week, just by installing the aspell package in MacPorts
(v0.60.6_2). But since then it wouldn't work other than to occasionally *
almost* pop-up the checker window when frantically hitting F7 -- it would
flicker for the briefest moment but never appear. Command line tests of
aspell showed it was installed and working fine. Indeed, if I changed the
LyX preference to ispell -- not installed -- spell checker would complain,
so LyX *was* able to locate aspell.

Anyway.

I just installed the latest
cocoAspell(v2.1, with
Snow Leopard updates), which I haven't tried before, and
it now works fine in LyX 1.6.5. Mostly guessing, I selected a few of the
various English dictionaries available from the new spelling Preference Pane
cocoAspell installs. Perhaps that makes a difference somehow? I haven't
tried non-English dictionaries though.

 ~:justin.wood :~ ≤ 350ppm
CO2
On Wed, Mar 17, 2010 at 08:49, Marshall Feldman  wrote:

>
> I have the same problem on a Mac (Leopard), and I do have admin.
> privileges.


Re: Spell checker

2010-03-18 Thread Justin Wood
I also noticed there are dictionaries marked as *with* and *without* accents
-- do you have the accented one installed and activated?

~:Justin Wood:~
On Thu, Mar 18, 2010 at 16:03, Murat Yildizoglu <
murat.yildizo...@univ-cezanne.fr> wrote:

>  Hi Julio,
>
> I have just checked again to be sure and it is able to handle accented
> words in my French documents.
> I have a Settings applet called Spelling and I have checked Tex/Latex
> in its options. Have you done this? Maybe this is the culprit?
>
> Murat
>


Re: Spell checker

2010-03-18 Thread Justin Wood
I've actually found MacPorts  far more reliable
than Fink. I think I read Fink is not being maintained properly anymore?
Porticus is also a nice GUI package manager for MacPorts too.

On Thu, Mar 18, 2010 at 16:42, Murat Yildizoglu <
murat.yildizo...@univ-cezanne.fr> wrote:

> I have first tried the Fink version of Aspell and it was
> not working with Lyx.


LyX user configuration files (and natbib)

2010-03-18 Thread Justin Wood
Am I right in concluding that LyX will not read a natbib.cfg file placed in
the user configuration directory? Is there any other single location where
it could be stored, or must it always be located with the source .lyx file?
~:Justin Wood:~

 <http://www.murdoch.edu.au/>


Re: making \citep the default natbib citation style?

2010-03-16 Thread Justin Wood
I've done some more reading of natbib itself (the included pdf) -- it's
pretty clear that if natbib is set to *author-year* style, then the standard
\cite command behaves as \citet; if set to *numerical *style, \cite behaves
as \citep.

You can see this in LyX when using natbib under Document - Settings -
Bibliography: Citation style. If Natbib is chosen and set to author-year,
the LyX source code shows citations as \citet; if you change that setting to
numerical, the source code updates them to \citep. So I take this to mean
that LyX is using \cite, err, 'internally', and the source output reflects
the implementation in the natbib package.

Is it possible to control this in LyX somehow; to tell LyX to issue \citep
explicitly and never use \cite? Can a natbib .cfg or .sty file change the
behaviour? (Maybe this is all really a question for the natbib community?) I
feel like I must be missing something obvious.


  1   2   >