Dear LyX experts,

for a brouchure I want to use coloured boxes wrapped with the normal text as 
design elemet to summarize the main points of a chapter. 
To that extent I defined in the Preamble
a new float type (using float.sty)
__________________________ 
\newfloat {floatBox}{htb}{mp}
_________________________
_______________________

and a box environment (after H. Voss Lyx Latex Page) and two floating variants 
of it and their LyX layouts.
___________________________
    \newenvironment{myBox} {%
      \noindent%
     [EMAIL PROTECTED]      
      \begin{minipage}[t]{0.5\columnwidth}%
       \vspace{0.5ex}% 
    }{%
    \end{minipage}%
    \end{lrbox}%      
    
[EMAIL PROTECTED]
      \vspace{0.5ex}%
    }
______________________________

the extension of thist Box to a Float gives the expected result.

________________________________
   \newenvironment{myFloatBox}{%
      \begin{floatBox}%
      \begin{myBox}%
   }{%
      \end{myBox}%
       \end{floatBox}
     }   
_________________________________

however when I define a wrapped environment using wrapfig.sty

_______________________________
    \newenvironment{myWrapBox}{%
      \begin{wrapfloat}{floatBox}{O}[1.5cm]{0.55\columnwidth}%
      \begin{myBox}%
   }{%
      \end{myBox}%
       \end{wrapfloat}
     }   
_____________________________________
 
the box is shifted to the end of the text. When I use the myBox Layout and 
enclose it in ERT with the wrapfig environmetn I get the expected results. 
(???). Has anybody an explanation for that behavior?

I have also another Question:
Is it possible to define a lyx-style which results in a latex-command with 
more than one argument?

I'd like to introduce the units package into lyx, but to that purpose I need 
more than one argument {optional as well as mandatory} as the commands are 
defined as follows:

\unit[val]{unit}
\unitfrac[val]{num}{denom}.
with val as the Value to be displayed and num and denom as numerator and 
denominator in a fraction.
The customisation guide isn't clear in that respect.
TIA


-- 
Dr. Joachim Heidemeier                  Tel. +49-30-8903-2780 
Fachgebiet II 3.2                       [EMAIL PROTECTED] 
Umweltbundesamt, Bismarckplatz 1 D-14191 Berlin

Reply via email to