error message with figure wrap float

2013-11-09 Thread Matthias Schmidt
Hello!

After I inserted a figure wrap float in my document I got an error
message. When I insert an "normal" float figure, I don't get this
error message.

What do I have to do?



The message is:

{\begin {wrapfigure}{o}{0.5\columnwidth }\includegraphics [width=0.5\textwidth
\ETC.
! Paragraph ended before \text@command was complete.
 
   \par 
l.3084 }

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.


! LaTeX Error: \caption outside float.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
 ...  
  
l.3084 }

You're in trouble here.  Try typingto proceed.
If that doesn't work, type  X   to quit.


! LaTeX Error: \begin{document} ended by \end{wrapfigure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
 ...  
  
l.3084 }

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.

! Extra \endgroup.
 \endgroup 
  
l.3084 }

Things are pretty mixed up, but I think the worst is over.

! Too many }'s.
\emph  ...1}\else \hmode@bgroup \text@command {#1}
  \em \check@icl #1\check@ic...
l.3084 }

You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.

-- 
Mit freundlichen Grüßen
Matthias Schmidt
mailto:g...@schmidtfamilie.de



Trick using the mhchem package

2013-11-09 Thread Karl Linek
Hello,

in chemical equations one sometimes want to write that a substance goes
away into the air. Commonly an uprising arrow after the molecule is used
to indicate that. With the mhchem package you have to use the ^ for this
purpose. But in the math-mode in LyX this is used to upraise a
character. Nevertheless the arrow is made as long as the upraising box
exists. Unfortunately this box disappears if nothing is inside.

Here is the trick making LyX to do it right: Write \, into the upraising
box.



Karl