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

2014-01-15 Thread Frank Leone
Jürgen Spitzmüller juergen at spitzmueller.org writes:

 
 Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
  Dear Jürgen and others,
  
  Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
  want to have a figure float within the boxfloat. If I however try to do 
  this, I get the error:
  
  LaTeX error: No counter 'subboxfloat' defined.
  
  How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
  
  Thanks a lot in advance!
 
 I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed 
for 
 the next release.
 
 Jürgen
 
 


Thanks a lot, Jürgen, in the new beta it indeed works!

best,

  Frank



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

2014-01-15 Thread Frank Leone
Jürgen Spitzmüller juergen at spitzmueller.org writes:

 
 Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
  Dear Jürgen and others,
  
  Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
  want to have a figure float within the boxfloat. If I however try to do 
  this, I get the error:
  
  LaTeX error: No counter 'subboxfloat' defined.
  
  How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
  
  Thanks a lot in advance!
 
 I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed 
for 
 the next release.
 
 Jürgen
 
 


Thanks a lot, Jürgen, in the new beta it indeed works!

best,

  Frank



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

2014-01-15 Thread Frank Leone
Jürgen Spitzmüller  spitzmueller.org> writes:

> 
> Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
> > Dear Jürgen and others,
> > 
> > Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
> > want to have a figure float within the boxfloat. If I however try to do 
> > this, I get the error:
> > 
> > LaTeX error: No counter 'subboxfloat' defined.
> > 
> > How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
> > 
> > Thanks a lot in advance!
> 
> I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed 
for 
> the next release.
> 
> Jürgen
> 
> 


Thanks a lot, Jürgen, in the new beta it indeed works!

best,

  Frank



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

2013-10-20 Thread Jürgen Spitzmüller
Liviu Andronic wrote:
 Would you consider contributing this module to our wiki:
 http://wiki.lyx.org/Layouts/Modules

Done.

Jürgen


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

2013-10-20 Thread Jürgen Spitzmüller
Liviu Andronic wrote:
 Would you consider contributing this module to our wiki:
 http://wiki.lyx.org/Layouts/Modules

Done.

Jürgen


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

2013-10-20 Thread Jürgen Spitzmüller
Liviu Andronic wrote:
> Would you consider contributing this module to our wiki:
> http://wiki.lyx.org/Layouts/Modules

Done.

Jürgen


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

2013-10-19 Thread Liviu Andronic
Juergen,

On Fri, Sep 3, 2010 at 5:20 PM, Jürgen Spitzmüller sp...@lyx.org wrote:
 * 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:

Would you consider contributing this module to our wiki:
http://wiki.lyx.org/Layouts/Modules ? It seems like a useful module,
that we might perhaps even consider including in base LyX.

Thanks,
Liviu


 \usepackage{framed}
 \newcommand\floatc@simplerule[2]{{\@fs@cfont #1 #2}\par}
 \renewcommand\fs@boxed{%
  \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule
   \def\@fs@pre{\begin{framed}}%
   \def\@fs@post{\end{framed}}%
   \def\@fs@mid{\kern8pt}%
   \let\@fs@iftopcapt\iftrue}

 HTH,
 Jürgen



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


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

2013-10-19 Thread Liviu Andronic
Juergen,

On Fri, Sep 3, 2010 at 5:20 PM, Jürgen Spitzmüller sp...@lyx.org wrote:
 * 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:

Would you consider contributing this module to our wiki:
http://wiki.lyx.org/Layouts/Modules ? It seems like a useful module,
that we might perhaps even consider including in base LyX.

Thanks,
Liviu


 \usepackage{framed}
 \newcommand\floatc@simplerule[2]{{\@fs@cfont #1 #2}\par}
 \renewcommand\fs@boxed{%
  \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule
   \def\@fs@pre{\begin{framed}}%
   \def\@fs@post{\end{framed}}%
   \def\@fs@mid{\kern8pt}%
   \let\@fs@iftopcapt\iftrue}

 HTH,
 Jürgen



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


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

2013-10-19 Thread Liviu Andronic
Juergen,

On Fri, Sep 3, 2010 at 5:20 PM, Jürgen Spitzmüller  wrote:
> * 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:
>
Would you consider contributing this module to our wiki:
http://wiki.lyx.org/Layouts/Modules ? It seems like a useful module,
that we might perhaps even consider including in base LyX.

Thanks,
Liviu


> \usepackage{framed}
> \newcommand\floatc@simplerule[2]{{\@fs@cfont #1 #2}\par}
> \renewcommand\fs@boxed{%
>  \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule
>   \def\@fs@pre{\begin{framed}}%
>   \def\@fs@post{\end{framed}}%
>   \def\@fs@mid{\kern8pt}%
>   \let\@fs@iftopcapt\iftrue}
>
> HTH,
> Jürgen



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


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

2013-10-11 Thread Jürgen Spitzmüller
Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
 Dear Jürgen and others,
 
 Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
 want to have a figure float within the boxfloat. If I however try to do 
 this, I get the error:
 
 LaTeX error: No counter 'subboxfloat' defined.
 
 How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
 
 Thanks a lot in advance!

I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed for 
the next release.

Jürgen


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

2013-10-11 Thread Jürgen Spitzmüller
Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
 Dear Jürgen and others,
 
 Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
 want to have a figure float within the boxfloat. If I however try to do 
 this, I get the error:
 
 LaTeX error: No counter 'subboxfloat' defined.
 
 How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
 
 Thanks a lot in advance!

I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed for 
the next release.

Jürgen


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

2013-10-11 Thread Jürgen Spitzmüller
Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
> Dear Jürgen and others,
> 
> Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
> want to have a figure float within the boxfloat. If I however try to do 
> this, I get the error:
> 
> LaTeX error: No counter 'subboxfloat' defined.
> 
> How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
> 
> Thanks a lot in advance!

I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed for 
the next release.

Jürgen


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

2013-10-10 Thread Frank Leone
Justin Wood Justin.Wood at murdoch.edu.au writes:

 
 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\ at ifundefined{fs at boxed}{}% 
do nothing if not in use{%  \usepackage{framed}  \newcommand\floatc at 
simplerule[2]{\flushleft{\ at fs at cfont #1 #2}}  \renewcommand\fs at 
boxed{%   \def\ at fs at cfont{\bfseries}\let\ at fs at capt\floatc 
at simplerule    \def\ at fs at pre{\begin{framedpar}}%    \def\ at 
fs at post{\end{framedpar}}%    \def\ at fs at mid{\kern8pt}%    \let\ 
at fs at 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
 
 On 16 September 2010 16:19, Justin Wood Justin.Wood at 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.
 
 
 
 

Dear Jürgen and others,

Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
want to have a figure float within the boxfloat. If I however try to do 
this, I get the error:

LaTeX error: No counter 'subboxfloat' defined.

How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?

Thanks a lot in advance!

   best,

Frank



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

2013-10-10 Thread Frank Leone
Justin Wood Justin.Wood at murdoch.edu.au writes:

 
 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\ at ifundefined{fs at boxed}{}% 
do nothing if not in use{%  \usepackage{framed}  \newcommand\floatc at 
simplerule[2]{\flushleft{\ at fs at cfont #1 #2}}  \renewcommand\fs at 
boxed{%   \def\ at fs at cfont{\bfseries}\let\ at fs at capt\floatc 
at simplerule    \def\ at fs at pre{\begin{framedpar}}%    \def\ at 
fs at post{\end{framedpar}}%    \def\ at fs at mid{\kern8pt}%    \let\ 
at fs at 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
 
 On 16 September 2010 16:19, Justin Wood Justin.Wood at 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.
 
 
 
 

Dear Jürgen and others,

Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
want to have a figure float within the boxfloat. If I however try to do 
this, I get the error:

LaTeX error: No counter 'subboxfloat' defined.

How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?

Thanks a lot in advance!

   best,

Frank



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

2013-10-10 Thread Frank Leone
Justin Wood  murdoch.edu.au> writes:

> 
> 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\floatc  
simplerule[2]{\flushleft{\  fs  cfont #1 #2}}  \renewcommand\fs  
boxed{%   \def\  fs  cfont{\bfseries}\let\  fs  capt\floatc 
 simplerule    \def\  fs  pre{\begin{framedpar}}%    \def\  
fs  post{\end{framedpar}}%    \def\  fs  mid{\kern8pt}%    \let\ 
 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
> 
> On 16 September 2010 16:19, Justin Wood  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.
> 
> 
> 
> 

Dear Jürgen and others,

Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
want to have a figure float within the boxfloat. If I however try to do 
this, I get the error:

LaTeX error: No counter 'subboxfloat' defined.

How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?

Thanks a lot in advance!

   best,

Frank



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.


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.


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
On 16 September 2010 16:19, Justin Wood  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-18 Thread Jürgen Spitzmüller
Justin Wood wrote:
 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, 

\newcommand\flo...@simplerule[2]{\raggedright{\@f...@cfont #1 #2}\par}

 and set font parameters.

Alter the 
\d...@fs@cfont{\bfseries}
part of the definition

 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.)

Caption package does not work, I think.

 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.

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

Jürgen


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

2010-09-18 Thread Jürgen Spitzmüller
Justin Wood wrote:
 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, 

\newcommand\flo...@simplerule[2]{\raggedright{\@f...@cfont #1 #2}\par}

 and set font parameters.

Alter the 
\d...@fs@cfont{\bfseries}
part of the definition

 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.)

Caption package does not work, I think.

 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.

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

Jürgen


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

2010-09-18 Thread Jürgen Spitzmüller
Justin Wood wrote:
> 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, 

\newcommand\flo...@simplerule[2]{\raggedright{\@f...@cfont #1 #2}\par}

> and set font parameters.

Alter the 
\d...@fs@cfont{\bfseries}
part of the definition

> 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.)

Caption package does not work, I think.

> 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.

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

Jürgen


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



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



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  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
>


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-03 Thread Jürgen Spitzmüller
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
#\DeclareLyXModule{Boxed Float}
#DescriptionBegin
#Defines a new type of (framed) float.
#DescriptionEnd

# Author: Jürgen Spitzmüller sp...@lyx.org

Format 11

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




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

2010-09-03 Thread Jürgen Spitzmüller
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
#\DeclareLyXModule{Boxed Float}
#DescriptionBegin
#Defines a new type of (framed) float.
#DescriptionEnd

# Author: Jürgen Spitzmüller sp...@lyx.org

Format 11

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




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

2010-09-03 Thread Jürgen Spitzmüller
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
#\DeclareLyXModule{Boxed Float}
#DescriptionBegin
#Defines a new type of (framed) float.
#DescriptionEnd

# Author: Jürgen Spitzmüller 

Format 11

Float
Type  boxfloat
GuiName   "Box"
Placement tbp
Extension lob
NumberWithin  none
Style boxed
ListName  "List of Boxes"
LaTeXBuiltin  false
End




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
2010/8/28 

> -- Forwarded message --
> From: "Jürgen Spitzmüller" 
> To: 
> 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-08-28 Thread Jürgen Spitzmüller
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-08-28 Thread Jürgen Spitzmüller
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-08-28 Thread Jürgen Spitzmüller
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