Re: Float alignment

2010-11-16 Thread Emil Pavlov

На  5.11.2010 16:37, Julien Rioux написа:

On 05/11/2010 11:31 AM, Emil Pavlov wrote:

На 1.11.2010 20:21, Emil Pavlov написа:

How can I set the alignment to centered for all table and figure
floats? I have to change it manually through paragraph settings
every time?

Best regards,

Emil Pavlov



I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov



I had this in one of my file, in the preamble, using article class. It 
might or might not work with all classes, I don't know.


% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname 
#1\expandafter\endcsname\expandafter{\centering}}


\centerfloat{figure}
\centerfloat{figure*}


I'm sorry that I answer after such a long time, but it works great and 
it saves me a lot of work. Nevertheless, I have a small problem. Every 
time when I insert a float, a [h] appears between the label and the 
figure. Do you have any idea where this can come from?


Best regards,
Emil Pavlov


Re: Float alignment

2010-11-16 Thread Julien Rioux

On 16/11/2010 8:03 AM, Emil Pavlov wrote:

Every time when I insert a float, a [h] appears between the label and
the figure. Do you have any idea where this can come from?


Yes, this is from the optional argument which specifies the float's 
position, e.g. in latex:


% use default placement:
\begin{figure}
\end{figure}

% specify here if possible:
\begin{figure}[h]
\end{figure}

I did not test the code which I wrote you before for this case. I also 
don't know at the moment how to modify it. But meanwhile I found a 
different way to center all floats:


% center all floats
\...@addto@mac...@floatboxreset\centering

--
Julien



Re: Float alignment

2010-11-16 Thread Emil Pavlov

На 16.11.2010 14:43, Julien Rioux написа:

On 16/11/2010 8:03 AM, Emil Pavlov wrote:

Every time when I insert a float, a [h] appears between the label and
the figure. Do you have any idea where this can come from?


Yes, this is from the optional argument which specifies the float's 
position, e.g. in latex:


% use default placement:
\begin{figure}
\end{figure}

% specify here if possible:
\begin{figure}[h]
\end{figure}

I did not test the code which I wrote you before for this case. I also 
don't know at the moment how to modify it. But meanwhile I found a 
different way to center all floats:


% center all floats
\...@addto@mac...@floatboxreset\centering

Thanks. Now, [h] has disappeared and I don't have to use another command 
for the tables.


Re: Float alignment

2010-11-16 Thread Emil Pavlov

На  5.11.2010 16:37, Julien Rioux написа:

On 05/11/2010 11:31 AM, Emil Pavlov wrote:

На 1.11.2010 20:21, Emil Pavlov написа:

How can I set the alignment to centered for all table and figure
floats? I have to change it manually through paragraph settings
every time?

Best regards,

Emil Pavlov



I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov



I had this in one of my file, in the preamble, using article class. It 
might or might not work with all classes, I don't know.


% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname 
#1\expandafter\endcsname\expandafter{\centering}}


\centerfloat{figure}
\centerfloat{figure*}


I'm sorry that I answer after such a long time, but it works great and 
it saves me a lot of work. Nevertheless, I have a small problem. Every 
time when I insert a float, a [h] appears between the label and the 
figure. Do you have any idea where this can come from?


Best regards,
Emil Pavlov


Re: Float alignment

2010-11-16 Thread Julien Rioux

On 16/11/2010 8:03 AM, Emil Pavlov wrote:

Every time when I insert a float, a [h] appears between the label and
the figure. Do you have any idea where this can come from?


Yes, this is from the optional argument which specifies the float's 
position, e.g. in latex:


% use default placement:
\begin{figure}
\end{figure}

% specify here if possible:
\begin{figure}[h]
\end{figure}

I did not test the code which I wrote you before for this case. I also 
don't know at the moment how to modify it. But meanwhile I found a 
different way to center all floats:


% center all floats
\...@addto@mac...@floatboxreset\centering

--
Julien



Re: Float alignment

2010-11-16 Thread Emil Pavlov

На 16.11.2010 14:43, Julien Rioux написа:

On 16/11/2010 8:03 AM, Emil Pavlov wrote:

Every time when I insert a float, a [h] appears between the label and
the figure. Do you have any idea where this can come from?


Yes, this is from the optional argument which specifies the float's 
position, e.g. in latex:


% use default placement:
\begin{figure}
\end{figure}

% specify here if possible:
\begin{figure}[h]
\end{figure}

I did not test the code which I wrote you before for this case. I also 
don't know at the moment how to modify it. But meanwhile I found a 
different way to center all floats:


% center all floats
\...@addto@mac...@floatboxreset\centering

Thanks. Now, [h] has disappeared and I don't have to use another command 
for the tables.


Re: Float alignment

2010-11-16 Thread Emil Pavlov

На  5.11.2010 16:37, Julien Rioux написа:

On 05/11/2010 11:31 AM, Emil Pavlov wrote:

На 1.11.2010 20:21, Emil Pavlov написа:

How can I set the alignment to centered for all table and figure
floats? I have to change it manually through "paragraph settings"
every time?

Best regards,

Emil Pavlov



I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov



I had this in one of my file, in the preamble, using article class. It 
might or might not work with all classes, I don't know.


% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname 
#1\expandafter\endcsname\expandafter{\centering}}


\centerfloat{figure}
\centerfloat{figure*}


I'm sorry that I answer after such a long time, but it works great and 
it saves me a lot of work. Nevertheless, I have a small problem. Every 
time when I insert a float, a [h] appears between the label and the 
figure. Do you have any idea where this can come from?


Best regards,
Emil Pavlov


Re: Float alignment

2010-11-16 Thread Julien Rioux

On 16/11/2010 8:03 AM, Emil Pavlov wrote:

Every time when I insert a float, a [h] appears between the label and
the figure. Do you have any idea where this can come from?


Yes, this is from the optional argument which specifies the float's 
position, e.g. in latex:


% use default placement:
\begin{figure}
\end{figure}

% specify "here if possible":
\begin{figure}[h]
\end{figure}

I did not test the code which I wrote you before for this case. I also 
don't know at the moment how to modify it. But meanwhile I found a 
different way to center all floats:


% center all floats
\...@addto@mac...@floatboxreset\centering

--
Julien



Re: Float alignment

2010-11-16 Thread Emil Pavlov

На 16.11.2010 14:43, Julien Rioux написа:

On 16/11/2010 8:03 AM, Emil Pavlov wrote:

Every time when I insert a float, a [h] appears between the label and
the figure. Do you have any idea where this can come from?


Yes, this is from the optional argument which specifies the float's 
position, e.g. in latex:


% use default placement:
\begin{figure}
\end{figure}

% specify "here if possible":
\begin{figure}[h]
\end{figure}

I did not test the code which I wrote you before for this case. I also 
don't know at the moment how to modify it. But meanwhile I found a 
different way to center all floats:


% center all floats
\...@addto@mac...@floatboxreset\centering

Thanks. Now, [h] has disappeared and I don't have to use another command 
for the tables.


Re: Float alignment

2010-11-05 Thread Emil Pavlov

На  1.11.2010 20:21, Emil Pavlov написа:
How can I set the alignment to centered for all table and figure 
floats?  I have to change it manually through paragraph settings 
every time?


Best regards,

Emil Pavlov


I am afraid that my e-mail didn't get much attention, so I am sending it 
again. I hope you won't find obnoxious.


Best regards,

Emil Pavlov


Re: Float alignment

2010-11-05 Thread Julien Rioux

On 05/11/2010 11:31 AM, Emil Pavlov wrote:

На 1.11.2010 20:21, Emil Pavlov написа:

How can I set the alignment to centered for all table and figure
floats? I have to change it manually through paragraph settings
every time?

Best regards,

Emil Pavlov



I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov



I had this in one of my file, in the preamble, using article class. It 
might or might not work with all classes, I don't know.


% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname 
#1\expandafter\endcsname\expandafter{\centering}}


\centerfloat{figure}
\centerfloat{figure*}


--
Julien


Re: Float alignment

2010-11-05 Thread Waluyo Adi Siswanto
 % a hook to center figures
 \newcommand{\centerfloat}[1]{
 \expandafte...@addto@macro\csname
 #1\expandafter\endcsname\expandafter{\centering}}

 \centerfloat{figure}
 \centerfloat{figure*}


It works in book(koma-script).
Actually I need this too.., thank you

Regards
waluyo


Re: Float alignment

2010-11-05 Thread Emil Pavlov

На  1.11.2010 20:21, Emil Pavlov написа:
How can I set the alignment to centered for all table and figure 
floats?  I have to change it manually through paragraph settings 
every time?


Best regards,

Emil Pavlov


I am afraid that my e-mail didn't get much attention, so I am sending it 
again. I hope you won't find obnoxious.


Best regards,

Emil Pavlov


Re: Float alignment

2010-11-05 Thread Julien Rioux

On 05/11/2010 11:31 AM, Emil Pavlov wrote:

На 1.11.2010 20:21, Emil Pavlov написа:

How can I set the alignment to centered for all table and figure
floats? I have to change it manually through paragraph settings
every time?

Best regards,

Emil Pavlov



I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov



I had this in one of my file, in the preamble, using article class. It 
might or might not work with all classes, I don't know.


% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname 
#1\expandafter\endcsname\expandafter{\centering}}


\centerfloat{figure}
\centerfloat{figure*}


--
Julien


Re: Float alignment

2010-11-05 Thread Waluyo Adi Siswanto
 % a hook to center figures
 \newcommand{\centerfloat}[1]{
 \expandafte...@addto@macro\csname
 #1\expandafter\endcsname\expandafter{\centering}}

 \centerfloat{figure}
 \centerfloat{figure*}


It works in book(koma-script).
Actually I need this too.., thank you

Regards
waluyo


Re: Float alignment

2010-11-05 Thread Emil Pavlov

На  1.11.2010 20:21, Emil Pavlov написа:
How can I set the alignment to centered for all table and figure 
floats?  I have to change it manually through "paragraph settings" 
every time?


Best regards,

Emil Pavlov


I am afraid that my e-mail didn't get much attention, so I am sending it 
again. I hope you won't find obnoxious.


Best regards,

Emil Pavlov


Re: Float alignment

2010-11-05 Thread Julien Rioux

On 05/11/2010 11:31 AM, Emil Pavlov wrote:

На 1.11.2010 20:21, Emil Pavlov написа:

How can I set the alignment to centered for all table and figure
floats? I have to change it manually through "paragraph settings"
every time?

Best regards,

Emil Pavlov



I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov



I had this in one of my file, in the preamble, using article class. It 
might or might not work with all classes, I don't know.


% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname 
#1\expandafter\endcsname\expandafter{\centering}}


\centerfloat{figure}
\centerfloat{figure*}


--
Julien


Re: Float alignment

2010-11-05 Thread Waluyo Adi Siswanto
> % a hook to center figures
> \newcommand{\centerfloat}[1]{
> \expandafte...@addto@macro\csname
> #1\expandafter\endcsname\expandafter{\centering}}
>
> \centerfloat{figure}
> \centerfloat{figure*}
>

It works in book(koma-script).
Actually I need this too.., thank you

Regards
waluyo


Float alignment

2010-11-01 Thread Emil Pavlov
How can I set the alignment to centered for all table and figure floats 
instead of changing it every time manually through paragraph settings?


Best regards,

Emil Pavlov


Float alignment

2010-11-01 Thread Emil Pavlov
How can I set the alignment to centered for all table and figure floats 
instead of changing it every time manually through paragraph settings?


Best regards,

Emil Pavlov


Float alignment

2010-11-01 Thread Emil Pavlov
How can I set the alignment to centered for all table and figure floats 
instead of changing it every time manually through "paragraph settings"?


Best regards,

Emil Pavlov