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


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 (settingswidthtextwidth%) 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


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 (settingswidthtextwidth%) 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


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


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


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 I have a vertically long figure and a long caption text. I would like to use 
 captionbeside to fit figure and text on a page. I use Koma book and twocolumn 
 page style. For the figure I would of course use 'span columns' in the 
 settings for the float figure.
 
 Has anybody done it successfully under LyX? Specifically, where in the 
 document do I place the ERT \FigBesBeg and \FigBesEnd? 
 
 The following placements give errors:
 Abbildung
 \ref{fig:RNApolymeraseTranskription} zeigt ... Transkription.
 \inputencoding{latin1}{}\inputencoding{latin9}%
 \begin{figure*}
 \begin{centering}
 \includegraphics[clip,width=0.4\textwidth]{BilderEG/6-16}
 \par\end{centering}
 \begin{captionbeside}[Beginn der Transkription eines Gens durch Polymerase II]
 {\label{fig:RNApolymeraseTranskription}...}
 \end{captionbeside}}
 \end{figure*}
 
 If Koma book and twocolumn page style do not go well together with 
 captionbeside, what are the alternatives? 
 
 
Wolfgang,
For me the following method works:
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 include your figure as follows

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

Let me know if you have any problems with that.

Mukhtar




Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
 
 Let me know if you have any problems with that.
 
 Mukhtar
 
 

I forgot to mention that only \CapBesBeg, [o] and \CapBesEnd need to be in ERT.
The rest you include as usual in LyX.

Mukhtar





Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
  Wolfgan,
  The screenshot shows what I mean:

Thanks, but I have difficulties with my arrangement (first figure, than 
legend: This is my standard arrangement throughout the book). Lyx errors, 
even after taking out the centering...
Does the [o] determine, where the figure/legend is placed?
Could you tell me in the example screenshot I had send you where I should 
place the CapBesBeg and the [o]?

Thanks for your patience and help!

Wolfgang


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
   Wolfgan,
   The screenshot shows what I mean:
 
 Thanks, but I have difficulties with my arrangement (first figure, than 
 legend: This is my standard arrangement throughout the book). Lyx errors, 
 even after taking out the centering...
 Does the [o] determine, where the figure/legend is placed?
 Could you tell me in the example screenshot I had send you where I should 
 place the CapBesBeg and the [o]?
 
 Thanks for your patience and help!
 
 Wolfgang
 
 

Wolfgang,
When using captionbeside environment, you have to provide your legend before
your figure. That does not mean that the legend will appear before the figure.
The placement of the two depends on the optional argument, which in my
screenshot is [o]. Following are the possible options:

l – left
r – right
i – inner margin in two-sided layout
o – outer margin in two-sided layout

There are a few problems with your screenshot:
1) You issue \CapBesBeg and \includegraphics commands before (outside) the float
figure environment. They have to be inside, as in my screenshot.
2) The legend and one of the options [l],[r],[i],[o] have to precede the
\includegraphics command, which is not the case in your screenshot.

I hope that helps.
Mukhtar



Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:
 Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
  Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
Wolfgan,
The screenshot shows what I mean:
 
  Thanks, but I have difficulties with my arrangement (first figure, than
  legend: This is my standard arrangement throughout the book). Lyx errors,
  even after taking out the centering...
  Does the [o] determine, where the figure/legend is placed?
  Could you tell me in the example screenshot I had send you where I should
  place the CapBesBeg and the [o]?
 
  Thanks for your patience and help!
 
  Wolfgang

 Wolfgang,
 When using captionbeside environment, you have to provide your legend
 before your figure. That does not mean that the legend will appear before
 the figure. The placement of the two depends on the optional argument,
 which in my screenshot is [o]. Following are the possible options:

 l – left
 r – right
 i – inner margin in two-sided layout
 o – outer margin in two-sided layout

 There are a few problems with your screenshot:
 1) You issue \CapBesBeg and \includegraphics commands before (outside) the
 float figure environment. They have to be inside, as in my screenshot.
 2) The legend and one of the options [l],[r],[i],[o] have to precede the
 \includegraphics command, which is not the case in your screenshot.

 I hope that helps.

 Mukhtar,

good, now I understand. Will try and report back to you and the list

Wolfgang


Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:

Now I got it working. I had in my preample among others
\setcapindent{0mm}
which is apparently conflicting with the captionbeside package. After 
commenting it out it works! 
%%\setcapindent{0mm}

Thanks a lot for your help

 Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
  Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
Wolfgan,
The screenshot shows what I mean:
 
  Thanks, but I have difficulties with my arrangement (first figure, than
  legend: This is my standard arrangement throughout the book). Lyx errors,
  even after taking out the centering...
  Does the [o] determine, where the figure/legend is placed?
  Could you tell me in the example screenshot I had send you where I should
  place the CapBesBeg and the [o]?
 
  Thanks for your patience and help!
 
  Wolfgang

 Wolfgang,
 When using captionbeside environment, you have to provide your legend
 before your figure. That does not mean that the legend will appear before
 the figure. The placement of the two depends on the optional argument,
 which in my screenshot is [o]. Following are the possible options:

 l – left
 r – right
 i – inner margin in two-sided layout
 o – outer margin in two-sided layout

 There are a few problems with your screenshot:
 1) You issue \CapBesBeg and \includegraphics commands before (outside) the
 float figure environment. They have to be inside, as in my screenshot.
 2) The legend and one of the options [l],[r],[i],[o] have to precede the
 \includegraphics command, which is not the case in your screenshot.

 I hope that helps.
 Mukhtar



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:
 
 Now I got it working. I had in my preample among others
 \setcapindent{0mm}
 which is apparently conflicting with the captionbeside package. After 
 commenting it out it works! 
 %%\setcapindent{0mm}
 
 Thanks a lot for your help
 
Good that it works now. I had the same situation once and I solved it by placing
\setcapindent{0mm} after the captionbeside definitions. So you don't need to
comment that. Just move it after the two \newcommand statements.

Best,

Mukhtar




Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 I have a vertically long figure and a long caption text. I would like to use 
 captionbeside to fit figure and text on a page. I use Koma book and twocolumn 
 page style. For the figure I would of course use 'span columns' in the 
 settings for the float figure.
 
 Has anybody done it successfully under LyX? Specifically, where in the 
 document do I place the ERT \FigBesBeg and \FigBesEnd? 
 
 The following placements give errors:
 Abbildung
 \ref{fig:RNApolymeraseTranskription} zeigt ... Transkription.
 \inputencoding{latin1}{}\inputencoding{latin9}%
 \begin{figure*}
 \begin{centering}
 \includegraphics[clip,width=0.4\textwidth]{BilderEG/6-16}
 \par\end{centering}
 \begin{captionbeside}[Beginn der Transkription eines Gens durch Polymerase II]
 {\label{fig:RNApolymeraseTranskription}...}
 \end{captionbeside}}
 \end{figure*}
 
 If Koma book and twocolumn page style do not go well together with 
 captionbeside, what are the alternatives? 
 
 
Wolfgang,
For me the following method works:
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 include your figure as follows

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

Let me know if you have any problems with that.

Mukhtar




Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
 
 Let me know if you have any problems with that.
 
 Mukhtar
 
 

I forgot to mention that only \CapBesBeg, [o] and \CapBesEnd need to be in ERT.
The rest you include as usual in LyX.

Mukhtar





Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
  Wolfgan,
  The screenshot shows what I mean:

Thanks, but I have difficulties with my arrangement (first figure, than 
legend: This is my standard arrangement throughout the book). Lyx errors, 
even after taking out the centering...
Does the [o] determine, where the figure/legend is placed?
Could you tell me in the example screenshot I had send you where I should 
place the CapBesBeg and the [o]?

Thanks for your patience and help!

Wolfgang


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
   Wolfgan,
   The screenshot shows what I mean:
 
 Thanks, but I have difficulties with my arrangement (first figure, than 
 legend: This is my standard arrangement throughout the book). Lyx errors, 
 even after taking out the centering...
 Does the [o] determine, where the figure/legend is placed?
 Could you tell me in the example screenshot I had send you where I should 
 place the CapBesBeg and the [o]?
 
 Thanks for your patience and help!
 
 Wolfgang
 
 

Wolfgang,
When using captionbeside environment, you have to provide your legend before
your figure. That does not mean that the legend will appear before the figure.
The placement of the two depends on the optional argument, which in my
screenshot is [o]. Following are the possible options:

l – left
r – right
i – inner margin in two-sided layout
o – outer margin in two-sided layout

There are a few problems with your screenshot:
1) You issue \CapBesBeg and \includegraphics commands before (outside) the float
figure environment. They have to be inside, as in my screenshot.
2) The legend and one of the options [l],[r],[i],[o] have to precede the
\includegraphics command, which is not the case in your screenshot.

I hope that helps.
Mukhtar



Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:
 Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
  Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
Wolfgan,
The screenshot shows what I mean:
 
  Thanks, but I have difficulties with my arrangement (first figure, than
  legend: This is my standard arrangement throughout the book). Lyx errors,
  even after taking out the centering...
  Does the [o] determine, where the figure/legend is placed?
  Could you tell me in the example screenshot I had send you where I should
  place the CapBesBeg and the [o]?
 
  Thanks for your patience and help!
 
  Wolfgang

 Wolfgang,
 When using captionbeside environment, you have to provide your legend
 before your figure. That does not mean that the legend will appear before
 the figure. The placement of the two depends on the optional argument,
 which in my screenshot is [o]. Following are the possible options:

 l – left
 r – right
 i – inner margin in two-sided layout
 o – outer margin in two-sided layout

 There are a few problems with your screenshot:
 1) You issue \CapBesBeg and \includegraphics commands before (outside) the
 float figure environment. They have to be inside, as in my screenshot.
 2) The legend and one of the options [l],[r],[i],[o] have to precede the
 \includegraphics command, which is not the case in your screenshot.

 I hope that helps.

 Mukhtar,

good, now I understand. Will try and report back to you and the list

Wolfgang


Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:

Now I got it working. I had in my preample among others
\setcapindent{0mm}
which is apparently conflicting with the captionbeside package. After 
commenting it out it works! 
%%\setcapindent{0mm}

Thanks a lot for your help

 Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
  Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
Wolfgan,
The screenshot shows what I mean:
 
  Thanks, but I have difficulties with my arrangement (first figure, than
  legend: This is my standard arrangement throughout the book). Lyx errors,
  even after taking out the centering...
  Does the [o] determine, where the figure/legend is placed?
  Could you tell me in the example screenshot I had send you where I should
  place the CapBesBeg and the [o]?
 
  Thanks for your patience and help!
 
  Wolfgang

 Wolfgang,
 When using captionbeside environment, you have to provide your legend
 before your figure. That does not mean that the legend will appear before
 the figure. The placement of the two depends on the optional argument,
 which in my screenshot is [o]. Following are the possible options:

 l – left
 r – right
 i – inner margin in two-sided layout
 o – outer margin in two-sided layout

 There are a few problems with your screenshot:
 1) You issue \CapBesBeg and \includegraphics commands before (outside) the
 float figure environment. They have to be inside, as in my screenshot.
 2) The legend and one of the options [l],[r],[i],[o] have to precede the
 \includegraphics command, which is not the case in your screenshot.

 I hope that helps.
 Mukhtar



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:
 
 Now I got it working. I had in my preample among others
 \setcapindent{0mm}
 which is apparently conflicting with the captionbeside package. After 
 commenting it out it works! 
 %%\setcapindent{0mm}
 
 Thanks a lot for your help
 
Good that it works now. I had the same situation once and I solved it by placing
\setcapindent{0mm} after the captionbeside definitions. So you don't need to
comment that. Just move it after the two \newcommand statements.

Best,

Mukhtar




Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann  uni-tuebingen.de> writes:

> 
> I have a vertically long figure and a long caption text. I would like to use 
> captionbeside to fit figure and text on a page. I use Koma book and twocolumn 
> page style. For the figure I would of course use 'span columns' in the 
> settings for the float figure.
> 
> Has anybody done it successfully under LyX? Specifically, where in the 
> document do I place the ERT \FigBesBeg and \FigBesEnd? 
> 
> The following placements give errors:
> Abbildung
> \ref{fig:RNApolymeraseTranskription} zeigt ... Transkription.
> \inputencoding{latin1}{}\inputencoding{latin9}%
> \begin{figure*}
> \begin{centering}
> \includegraphics[clip,width=0.4\textwidth]{BilderEG/6-16}
> \par\end{centering}
> \begin{captionbeside}[Beginn der Transkription eines Gens durch Polymerase II]
> {\label{fig:RNApolymeraseTranskription}...}
> \end{captionbeside}}
> \end{figure*}
> 
> If Koma book and twocolumn page style do not go well together with 
> captionbeside, what are the alternatives? 
> 
> 
Wolfgang,
For me the following method works:
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 include your figure as follows

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

Let me know if you have any problems with that.

Mukhtar




Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
 
> Let me know if you have any problems with that.
> 
> Mukhtar
> 
> 

I forgot to mention that only \CapBesBeg, [o] and \CapBesEnd need to be in ERT.
The rest you include as usual in LyX.

Mukhtar





Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
>  Wolfgan,
>  The screenshot shows what I mean:

Thanks, but I have difficulties with my arrangement (first figure, than 
legend: This is my standard arrangement throughout the book). Lyx errors, 
even after taking out the centering...
Does the [o] determine, where the figure/legend is placed?
Could you tell me in the example screenshot I had send you where I should 
place the CapBesBeg and the [o]?

Thanks for your patience and help!

Wolfgang


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann  uni-tuebingen.de> writes:

> 
> Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
> >  Wolfgan,
> >  The screenshot shows what I mean:
> 
> Thanks, but I have difficulties with my arrangement (first figure, than 
> legend: This is my standard arrangement throughout the book). Lyx errors, 
> even after taking out the centering...
> Does the [o] determine, where the figure/legend is placed?
> Could you tell me in the example screenshot I had send you where I should 
> place the CapBesBeg and the [o]?
> 
> Thanks for your patience and help!
> 
> Wolfgang
> 
> 

Wolfgang,
When using captionbeside environment, you have to provide your legend before
your figure. That does not mean that the legend will appear before the figure.
The placement of the two depends on the optional argument, which in my
screenshot is [o]. Following are the possible options:

l – left
r – right
i – inner margin in two-sided layout
o – outer margin in two-sided layout

There are a few problems with your screenshot:
1) You issue \CapBesBeg and \includegraphics commands before (outside) the float
figure environment. They have to be inside, as in my screenshot.
2) The legend and one of the options [l],[r],[i],[o] have to precede the
\includegraphics command, which is not the case in your screenshot.

I hope that helps.
Mukhtar



Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:
> Wolfgang Engelmann  uni-tuebingen.de> writes:
> > Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
> > >  Wolfgan,
> > >  The screenshot shows what I mean:
> >
> > Thanks, but I have difficulties with my arrangement (first figure, than
> > legend: This is my standard arrangement throughout the book). Lyx errors,
> > even after taking out the centering...
> > Does the [o] determine, where the figure/legend is placed?
> > Could you tell me in the example screenshot I had send you where I should
> > place the CapBesBeg and the [o]?
> >
> > Thanks for your patience and help!
> >
> > Wolfgang
>
> Wolfgang,
> When using captionbeside environment, you have to provide your legend
> before your figure. That does not mean that the legend will appear before
> the figure. The placement of the two depends on the optional argument,
> which in my screenshot is [o]. Following are the possible options:
>
> l – left
> r – right
> i – inner margin in two-sided layout
> o – outer margin in two-sided layout
>
> There are a few problems with your screenshot:
> 1) You issue \CapBesBeg and \includegraphics commands before (outside) the
> float figure environment. They have to be inside, as in my screenshot.
> 2) The legend and one of the options [l],[r],[i],[o] have to precede the
> \includegraphics command, which is not the case in your screenshot.
>
> I hope that helps.

 Mukhtar,

good, now I understand. Will try and report back to you and the list

Wolfgang


Re: captionbeside lyx Koma book

2010-09-15 Thread Wolfgang Engelmann
Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:

Now I got it working. I had in my preample among others
\setcapindent{0mm}
which is apparently conflicting with the captionbeside package. After 
commenting it out it works! 
%%\setcapindent{0mm}

Thanks a lot for your help

> Wolfgang Engelmann  uni-tuebingen.de> writes:
> > Am Wednesday 15 September 2010 15:57:06 schrieb Mukhtar Ullah:
> > >  Wolfgan,
> > >  The screenshot shows what I mean:
> >
> > Thanks, but I have difficulties with my arrangement (first figure, than
> > legend: This is my standard arrangement throughout the book). Lyx errors,
> > even after taking out the centering...
> > Does the [o] determine, where the figure/legend is placed?
> > Could you tell me in the example screenshot I had send you where I should
> > place the CapBesBeg and the [o]?
> >
> > Thanks for your patience and help!
> >
> > Wolfgang
>
> Wolfgang,
> When using captionbeside environment, you have to provide your legend
> before your figure. That does not mean that the legend will appear before
> the figure. The placement of the two depends on the optional argument,
> which in my screenshot is [o]. Following are the possible options:
>
> l – left
> r – right
> i – inner margin in two-sided layout
> o – outer margin in two-sided layout
>
> There are a few problems with your screenshot:
> 1) You issue \CapBesBeg and \includegraphics commands before (outside) the
> float figure environment. They have to be inside, as in my screenshot.
> 2) The legend and one of the options [l],[r],[i],[o] have to precede the
> \includegraphics command, which is not the case in your screenshot.
>
> I hope that helps.
> Mukhtar



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: captionbeside lyx Koma book

2010-09-15 Thread Mukhtar Ullah
Wolfgang Engelmann  uni-tuebingen.de> writes:

> 
> Am Wednesday 15 September 2010 17:21:51 schrieb Mukhtar Ullah:
> 
> Now I got it working. I had in my preample among others
> \setcapindent{0mm}
> which is apparently conflicting with the captionbeside package. After 
> commenting it out it works! 
> %%\setcapindent{0mm}
> 
> Thanks a lot for your help
> 
Good that it works now. I had the same situation once and I solved it by placing
\setcapindent{0mm} after the captionbeside definitions. So you don't need to
comment that. Just move it after the two \newcommand statements.

Best,

Mukhtar