Re: strange centering behavior in float
Liviu Andronic landronim...@gmail.com írta: Dear all, I'm seeing this strange behavior when centering a paragraph within a table float. I see this in both 2.0.6 and 2.1beta1. In the attached document, each table float contains an ERT inset (for subsequent use with Sweave) within a centered paragraph. If the ERT inset is above the caption, then the following construct is used: \begin{centering} = 2+2 @ \par\end{centering} Liviu, What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? Thanks, bcsikos
Re: strange centering behavior in float
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela: What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? The centering environment internally just calls \centering ... \endcentering, with an empty \endcentering. You can do this with any switch, although it is rather the consequence of LaTeX's questionable environment implementation. LyX (mis)uses this, since it's easier than tracking switches. Jürgen
Re: strange centering behavior in float
Jürgen Spitzmüller juer...@spitzmueller.org írta: Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela: What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? The centering environment internally just calls \centering ... \endcentering, with an empty \endcentering. You can do this with any switch, although it is rather the consequence of LaTeX's questionable environment implementation. LyX (mis)uses this, since it's easier than tracking switches. Thanks. If I understand correctly in latex you can write \begin{centering}, which becomes/equals \centering, and \end{centering}, which becomes/equals \endcentering. What do you mean by empty \endcentering ? empty \endcentering. I have a question as well related to centering but as I don't want to hijack the thread I will ask it separately. Thanks, bcsikos
Re: strange centering behavior in float
Csikos Bela wrote: What do you mean by empty \endcentering ? empty \endcentering. It means that \end{centering} calls \endcentering only if this command exists. This is due to the way LaTeX environments are defined (the environment end does not call \endcentering directly, but \csname endcentering\endcsname, which sets \endcentering to \relax if it is not defined. Hence, LaTeX does not complain about an undefined \endcentering, but just treat it as if th command was empty. Try \newcommand\myname{Csikos Bela} [...] \begin{myname} \end{myname} Jürgen
Re: strange centering behavior in float
Liviu Andronic landronim...@gmail.com írta: Dear all, I'm seeing this strange behavior when centering a paragraph within a table float. I see this in both 2.0.6 and 2.1beta1. In the attached document, each table float contains an ERT inset (for subsequent use with Sweave) within a centered paragraph. If the ERT inset is above the caption, then the following construct is used: \begin{centering} = 2+2 @ \par\end{centering} Liviu, What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? Thanks, bcsikos
Re: strange centering behavior in float
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela: What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? The centering environment internally just calls \centering ... \endcentering, with an empty \endcentering. You can do this with any switch, although it is rather the consequence of LaTeX's questionable environment implementation. LyX (mis)uses this, since it's easier than tracking switches. Jürgen
Re: strange centering behavior in float
Jürgen Spitzmüller juer...@spitzmueller.org írta: Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela: What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? The centering environment internally just calls \centering ... \endcentering, with an empty \endcentering. You can do this with any switch, although it is rather the consequence of LaTeX's questionable environment implementation. LyX (mis)uses this, since it's easier than tracking switches. Thanks. If I understand correctly in latex you can write \begin{centering}, which becomes/equals \centering, and \end{centering}, which becomes/equals \endcentering. What do you mean by empty \endcentering ? empty \endcentering. I have a question as well related to centering but as I don't want to hijack the thread I will ask it separately. Thanks, bcsikos
Re: strange centering behavior in float
Csikos Bela wrote: What do you mean by empty \endcentering ? empty \endcentering. It means that \end{centering} calls \endcentering only if this command exists. This is due to the way LaTeX environments are defined (the environment end does not call \endcentering directly, but \csname endcentering\endcsname, which sets \endcentering to \relax if it is not defined. Hence, LaTeX does not complain about an undefined \endcentering, but just treat it as if th command was empty. Try \newcommand\myname{Csikos Bela} [...] \begin{myname} \end{myname} Jürgen
Re: strange centering behavior in float
Liviu Andronicírta: >Dear all, >I'm seeing this strange behavior when centering a paragraph within a >table float. I see this in both 2.0.6 and 2.1beta1. > >In the attached document, each table float contains an ERT inset (for >subsequent use with Sweave) within a centered paragraph. If the ERT >inset is above the caption, then the following construct is used: >\begin{centering} ><<>>= >2+2 >@ >\par\end{centering} Liviu, What is begin{centering}? I know of \centering command and center environment as \begin{center}, \end{center}. Can you give a definition of centering environment or a link where it is described? Thanks, bcsikos
Re: strange centering behavior in float
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela: > What is begin{centering}? > > I know of \centering command and center environment as > \begin{center}, \end{center}. > > Can you give a definition of centering environment or a link > where it is described? The centering "environment" internally just calls \centering ... \endcentering, with an empty \endcentering. You can do this with any switch, although it is rather the consequence of LaTeX's questionable environment implementation. LyX (mis)uses this, since it's easier than tracking switches. Jürgen
Re: strange centering behavior in float
"Jürgen Spitzmüller"írta: >Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela: >> What is begin{centering}? >> >> I know of \centering command and center environment as >> \begin{center}, \end{center}. >> >> Can you give a definition of centering environment or a link >> where it is described? > >The centering "environment" internally just calls \centering ... >\endcentering, with an empty \endcentering. You can do this with any switch, >although it is rather the consequence of LaTeX's questionable environment >implementation. LyX (mis)uses this, since it's easier than tracking switches. Thanks. If I understand correctly in latex you can write \begin{centering}, which becomes/equals \centering, and \end{centering}, which becomes/equals \endcentering. What do you mean by "empty \endcentering" ? empty \endcentering. I have a question as well related to centering but as I don't want to hijack the thread I will ask it separately. Thanks, bcsikos
Re: strange centering behavior in float
Csikos Bela wrote: > What do you mean by "empty \endcentering" ? > empty \endcentering. It means that \end{centering} calls \endcentering only if this command exists. This is due to the way LaTeX environments are defined (the environment end does not call \endcentering directly, but \csname endcentering\endcsname, which sets \endcentering to \relax if it is not defined. Hence, LaTeX does not complain about an undefined \endcentering, but just treat it as if th command was "empty". Try \newcommand\myname{Csikos Bela} [...] \begin{myname} \end{myname} Jürgen