Re: Fwd: Re: captionbeside lyx Koma book: summary

2010-09-17 Thread Uwe Stöhr
> I use texlive2009 under Debian and lyxsvn2.0.0 and a search tells me 
> booktabs is in

> usr/local/texlive/2009/texmf-dist/tex/latex
> usr/local/texlive/2009/texmf-dist/doc/latex
> usr/local/texlive/2009/texmf-dist/source/latex

OK, can you send me lease the LaTeX log file if the failing compilation 
of EmbeddedObjects.lyx?


regards Uwe


Re: Fwd: Re: captionbeside lyx Koma book: summary

2010-09-17 Thread Wolfgang Engelmann
Am Friday 17 September 2010 15:02:42 schrieb Uwe Stöhr:
> Am 17.09.2010 09:24, schrieb Wolfgang Engelmann:
> > There are two remarks: I can't get an output of the EmbeddedObjects
> > manual. The error message is
> > \cmidrule{1-2} \cmidrule{5-4}
> > You have given more \span or&  marks than there were
> > in the preamble to the \halign or \valign now in progress.
> > So I'll assume that you meant to type \cr instead.
>
> That means that you don't have the "booktabs" LaTeX-package installed.
> The strange thing is that this should be by default installed on teXLive
> and MiKTeX. What is your LaTeX system?

Uwe,

I use texlive2009 under Debian and lyxsvn2.0.0 and a search tells me booktabs 
is in 
usr/local/texlive/2009/texmf-dist/tex/latex
usr/local/texlive/2009/texmf-dist/doc/latex
usr/local/texlive/2009/texmf-dist/source/latex

>
> Do you get an output when you install booktabs?
see above
>
> > Second remark
> >
> > I did not use the sidecap package described in the EmbeddedObjects
> > manual, but the Koma-book version of it, captionbeside.
>
> I know, I only wanted to know if you found some mistakes or have
> annotations in case you also tried the sidecap solution.
I think I did, but can't recall what it was. Will try again and report.

thanks for help,

Wolfgang


Re: Fwd: Re: captionbeside lyx Koma book: summary

2010-09-17 Thread Uwe Stöhr

Am 17.09.2010 09:24, schrieb Wolfgang Engelmann:


There are two remarks: I can't get an output of the EmbeddedObjects manual.
The error message is
\cmidrule{1-2} \cmidrule{5-4}
You have given more \span or&  marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.


That means that you don't have the "booktabs" LaTeX-package installed. 
The strange thing is that this should be by default installed on teXLive 
and MiKTeX. What is your LaTeX system?


Do you get an output when you install booktabs?


Second remark

I did not use the sidecap package described in the EmbeddedObjects manual, but
the Koma-book version of it, captionbeside.


I know, I only wanted to know if you found some mistakes or have 
annotations in case you also tried the sidecap solution.


regards Uwe


Re: Fwd: Re: captionbeside lyx Koma book: summary

2010-09-17 Thread Wolfgang Engelmann
Am Thursday 16 September 2010 20:26:45 schrieben Sie:
> Am 16.09.2010 18:30, schrieb Wolfgang Engelmann:
> > Thanks to Mukhtars instructions I managed to use the captionbeside
> > package correctly.
>
> I haven't followed this thread. In case you tested the method I
> described in sec. 3.10 "Caption Placement" of the EmbeddedObjects manual
> and you found conflicts, can you please report them that I can fix them?
>
> thanks and regards
> Uwe

I should of course have mentioned the excellent EmbeddedObjects manual (one of 
the help-menus of LyX). Sorry.

There are two remarks: I can't get an output of the EmbeddedObjects manual. 
The error message is
\cmidrule{1-2} \cmidrule{5-4}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.

and in the terminal
Systemcall.cpp(237): Systemcall: 'pdflatex  "EmbeddedObjects.tex"' finished 
with exit code 1
FileName.cpp(254): Could not move file /tmp/lyx_tmpdir.TJ3586/lyxauto.TJ3586 
to /usr/local/share/lyx20/doc/#EmbeddedObjects.lyx#

and a long log file which I could send to Uwe or other interested persons. I 
wonder whether I am the only one who can not display this manual. It is a 
pitty not to see the lyx output, especially the placement of floats.

Second remark

I did not use the sidecap package described in the EmbeddedObjects manual, but 
the Koma-book version of it, captionbeside.

Wolfgang

PS
just saw that the EmbeddedObjects manual is available as a pdf file in the 
http://wiki.lyx.org/LyX/Documentation
But it would still be interesting for me why I can't get the output from the 
lax file.
-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Fwd: Re: captionbeside lyx Koma book: summary

2010-09-16 Thread Uwe Stöhr

Am 16.09.2010 18:30, schrieb Wolfgang Engelmann:


Thanks to Mukhtars instructions I managed to use the captionbeside package
correctly.


I haven't followed this thread. In case you tested the method I 
described in sec. 3.10 "Caption Placement" of the EmbeddedObjects manual 
and you found conflicts, can you please report them that I can fix them?


thanks and regards
Uwe


Fwd: Re: captionbeside lyx Koma book: summary

2010-09-16 Thread Wolfgang Engelmann
Thanks to Mukhtars instructions I managed to use the captionbeside package 
correctly. I thought I should report to the list, since at some parts I asked 
him directly.

Add to your preamble

\newcommand{\CapBesBeg}{%
 \setcapindent*{0em}
 \let\MyCaption\caption
 \renewcommand{\caption}{\begin{captionbeside}}}

\newcommand{\CapBesEnd}{% 
 \end{captionbeside}
 \setcapindent{0em}
 \let\caption\MyCaption}

and then in the document include your figure as follows

\begin{figure}
\CapBesBeg\caption[Short Caption]{\label{fig:label}Long Caption}
[o]\includegraphics{figures/filename}\CapBesEnd
\end{figure}

This sounds easy, but I had some difficulties in LyX. Therefore the following

1- The figure in the float has to be below the caption text. 
2- The \CapBesBeg and \CapBesEnd have to be in ERT (ctr-l) and have to be 
inside the float. 
3- The legend and one of the options [l],[r],[i],[o] have to precede the
figure (\includegraphics command) and in ERT. The options determine the 
placement of the legend and the figure: 
l  left
r right
i  inner margin in two-sided layout
o  outer margin in two-sided layout
4- For the other figure floats which are not captionbeside-controlled, I had 
difficulties with the 
\setcapindent{0mm} 
in my preamble -this prevents a caption indent, e.g.
Abbildung 3.27: Eine wachsende Polypeptidkette (rot und blau) erhält ihre 
sekundäre
instead of
Abbildung 3.27: Eine wachsende Polypeptidkette (rot und blau) erhält 
  ihre sekundäre...
To make \setcapindent{0mm} work in the non-captionbeside-controlled captions 
it has to be inserted AFTER the
\newcommand{\CapBesBeg}{%
 \setcapindent*{0em}
 \let\MyCaption\caption
 \renewcommand{\caption}{\begin{captionbeside}}}

\newcommand{\CapBesEnd}{% 
 \end{captionbeside}
 \setcapindent{0em}
 \let\caption\MyCaption}
Otherwise it is apparently conflicting with the captionbeside package

5-  I had several figures below each other in a float with just one caption.
Vertical space and a line break between them is not respected by the
captionbeside environment. One has to place the figures in a minipage 
environment. The target size (e.g. 40% of textwidth) has to be specified in 
the minipage environment (settings>width>textwidth%) and not 
in the figures themselves. The figures must be scaled to \textwidth in 
order to avoid scaling twice.

I am thankful to Mukhtar and most of the remarks above are from his Mails.

Wolfgang