Re: float caption label for tables

2008-07-01 Thread Waluyo Adi Siswanto
I have been struggling to do this and now I have found a little trick, I use 
this simple ERT command (LyX 1.5.5 - Ubuntu 8.04) inside the float:Table

   \renewcommand\tablename {Tab.}

it works as expected, and I do similar thing to change the name of float figure

   \renewcommand\figurename {Pict.}

You will see the result after you view pdf/dvi/ps. The LyX editor displays the 
original: Table, Figure.

Thx ... /Adi

--- On Mon, 30/6/08, Maria Gouskova <[EMAIL PROTECTED]> wrote:
From: Maria Gouskova <[EMAIL PROTECTED]>
Subject: float caption label for tables
To: "mailing lyx" 
Received: Monday, 30 June, 2008, 9:09 AM

Dear LyX users,

I need to change the caption label that LaTeX automatically supplies
for tables in floats. By default, the label is "Table". I want it to
read, say, "Tab." instead. I put

\renewcommand{\tablename}{Tab.}

into the preamble, but nothing happens--LyX compiles as before.
\renewcommand works in plain LaTeX--is there some sort of a conflict
in LyX? I wouldn't know where to start looking, because my grasp of
LaTeX is pretty basic.

LyX 1.5.5
Mac OS 10.5.3
MacTeX-2007

Maria


  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: float caption label for tables

2008-06-30 Thread Maria Gouskova
Thanks, all--the following did the trick.

 \AtBeginDocument{%
\addto\captionsenglish{%
\renewcommand{\tablename}{Tab.}%
 }}

Maria

On Mon, Jun 30, 2008 at 3:37 AM, Jürgen Spitzmüller
<[EMAIL PROTECTED]> wrote:
> G. Milde wrote:
>> > I need to change the caption label that LaTeX automatically supplies
>> > for tables in floats. By default, the label is "Table". I want it to
>> > read, say, "Tab." instead. I put
>> >
>> > \renewcommand{\tablename}{Tab.}
>> >
>> > into the preamble, but nothing happens--LyX compiles as before.
>>
>> This looks like babel is overwriting your definition AtBeginDocument.
>>
>> You can try with ERT (Insert>Latex) inside the document.
>
> Try
>
> \AtBeginDocument{%
>\renewcommand{\tablename}{Tab.}
> }
>
> and if this doesn't help, try
>
> \AtBeginDocument{%
>\addto\captionsenglish{%
>\renewcommand{\tablename}{Tab.}%
> }}
>
> Also see
> http://wiki.lyx.org/FAQ/Unsorted#toc16
>
> Jürgen
>


Re: float caption label for tables

2008-06-30 Thread Jürgen Spitzmüller
G. Milde wrote:
> > I need to change the caption label that LaTeX automatically supplies
> > for tables in floats. By default, the label is "Table". I want it to
> > read, say, "Tab." instead. I put
> >
> > \renewcommand{\tablename}{Tab.}
> >
> > into the preamble, but nothing happens--LyX compiles as before.
>
> This looks like babel is overwriting your definition AtBeginDocument.
>
> You can try with ERT (Insert>Latex) inside the document.

Try

\AtBeginDocument{%
\renewcommand{\tablename}{Tab.}
}

and if this doesn't help, try

\AtBeginDocument{%
\addto\captionsenglish{%
\renewcommand{\tablename}{Tab.}%
}}

Also see
http://wiki.lyx.org/FAQ/Unsorted#toc16

Jürgen


Re: float caption label for tables

2008-06-29 Thread G. Milde
On 29.06.08, Maria Gouskova wrote:
> Dear LyX users,

> I need to change the caption label that LaTeX automatically supplies
> for tables in floats. By default, the label is "Table". I want it to
> read, say, "Tab." instead. I put

> \renewcommand{\tablename}{Tab.}

> into the preamble, but nothing happens--LyX compiles as before.

This looks like babel is overwriting your definition AtBeginDocument.

You can try with ERT (Insert>Latex) inside the document.

> \renewcommand works in plain LaTeX--is there some sort of a conflict
> in LyX? I wouldn't know where to start looking, because my grasp of
> LaTeX is pretty basic.

Export the document to latex, renew \tablename -> what happens?

GM


float caption label for tables

2008-06-29 Thread Maria Gouskova
Dear LyX users,

I need to change the caption label that LaTeX automatically supplies
for tables in floats. By default, the label is "Table". I want it to
read, say, "Tab." instead. I put

\renewcommand{\tablename}{Tab.}

into the preamble, but nothing happens--LyX compiles as before.
\renewcommand works in plain LaTeX--is there some sort of a conflict
in LyX? I wouldn't know where to start looking, because my grasp of
LaTeX is pretty basic.

LyX 1.5.5
Mac OS 10.5.3
MacTeX-2007

Maria