Re: What symbol for Fourier transform?

2009-09-22 Thread Pavel Sanda
Olivier Ripoll wrote:
> I attach to this mail my layout module to add some common math functions to 
> LyX. Drop it to you layout folder(*), reconfigure, and add it to the file 
> via the document settings. Then all you need is to type \FT for it and \iFT 
> for the inverse Fourier transform.

what about putting into wiki modules page?
pavel


Re: What symbol for Fourier transform?

2009-09-16 Thread Guenter Milde
On 2009-09-16, Olivier Ripoll wrote:
> Uwe Stöhr wrote:
>> Olivier Ripoll schrieb:

>>> What you want to get the really nice Fourier symbol is "\mathscr{F}", 
>>> the "script" F. It is visible as number 2131 in this unicode chart
>>> http://www.unicode.org/charts/PDF/U2100.pdf

>> Thanks for the info, I wasn't aware of that character. The character is 
>> nevertheless unfortunately not available in Windows' standard fonts like 
>> Arial or Times New Roman. Even none of the fonts I have installed 
>> support this character. This might be the reason why is character is 
>> rarely used.

> It works for me through:
> insert->special characters->symbols...->Letterlike Symbols
> I'm using the "Times New Roman", "Arial" and "Courier New" fonts for the 
> LyX interface. It looks however better with Déjà Vu fonts than with MS 
> fonts in LyX.

> So who that allow to have the Fourier transform character displayed in 
> LyX with my module instead of \FT latex code ?

If you define a math-macro, you can separately define the LaTeX command and
the look-in-lyx. Unfortunately, 

* you can't define a math-macro in a module,
* you can't define a preamble command in a LyX file.

This is why I have a file full of math macros which I include in all my
math-heavy publications. Instead of the preamble command \MathOperator, I use
e.g. \operatorname{sgn} as LaTeX command. View>Source shows this as

  \global\long\def\sgn{\operatorname{sgn}}
  \global\long\def\Re{\operatorname{Re}}
  \global\long\def\Im{\operatorname{Im}}

...

Günter



Re: What symbol for Fourier transform?

2009-09-16 Thread Olivier Ripoll

Uwe Stöhr wrote:

Olivier Ripoll schrieb:

What you want to get the really nice Fourier symbol is "\mathscr{F}", 
the "script" F. It is visible as number 2131 in this unicode chart

http://www.unicode.org/charts/PDF/U2100.pdf


Thanks for the info, I wasn't aware of that character. The character is 
nevertheless unfortunately not available in Windows' standard fonts like 
Arial or Times New Roman. Even none of the fonts I have installed 
support this character. This might be the reason why is character is 
rarely used.


It works for me through:
insert->special characters->symbols...->Letterlike Symbols
I'm using the "Times New Roman", "Arial" and "Courier New" fonts for the 
LyX interface. It looks however better with Déjà Vu fonts than with MS 
fonts in LyX.


So who that allow to have the Fourier transform character displayed in 
LyX with my module instead of \FT latex code ?


Best regards,

Olivier


regards Uwe





Re: What symbol for Fourier transform?

2009-09-16 Thread Uwe Stöhr

Olivier Ripoll schrieb:

What you want to get the really nice Fourier symbol is "\mathscr{F}", 
the "script" F. It is visible as number 2131 in this unicode chart

http://www.unicode.org/charts/PDF/U2100.pdf


Thanks for the info, I wasn't aware of that character. The character is nevertheless unfortunately 
not available in Windows' standard fonts like Arial or Times New Roman. Even none of the fonts I 
have installed support this character. This might be the reason why is character is rarely used.


regards Uwe


Re: What symbol for Fourier transform?

2009-09-16 Thread Olivier Ripoll

Neal Becker wrote:
What do you usually use for Fourier transform?  Calligraphic F, or maybe 
something else?


Hi,

Calligraphic F is not the right symbol, although it seems more and more 
used now :-( (probably because people don't find the correct one, at 
least that was my case in the past).


What you want to get the really nice Fourier symbol is "\mathscr{F}", 
the "script" F. It is visible as number 2131 in this unicode chart

http://www.unicode.org/charts/PDF/U2100.pdf

You'll need some additional packages:
amsmath and (IIRC) mathrsfs.

I attach to this mail my layout module to add some common math functions 
to LyX. Drop it to you layout folder(*), reconfigure, and add it to the 
file via the document settings. Then all you need is to type \FT for it 
and \iFT for the inverse Fourier transform.


You can also just pick the interesting code and drop it to the preamble

Best regards,

Olivier

(*)On Windows, it would be something like
C:\Documents and Settings\yourusername\Application Data\lyx16\layouts
on Linux, something like
/home/username/.lyx/layouts
#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic & inverse 
hyperbolic functions,
#Fourier transform & inverse, logarithms in base 10 and 2, floor/ceil (letters 
and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 11

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble



Re: What symbol for Fourier transform?

2009-09-15 Thread Uwe Stöhr

Neal Becker schrieb:

What do you usually use for Fourier transform?  Calligraphic F, or maybe 
something else?


Usually a calligraphic F is used. In principle there is no rule for the symbol so you can define 
what you want. A list of possible notations is given in

http://en.wikipedia.org/wiki/Fourier_transform#Other_notations
Interestingly, the English Wikipedia is using \hat{f} as symbol that I haven't 
seen yet in literature.

regards Uwe


What symbol for Fourier transform?

2009-09-15 Thread Neal Becker
What do you usually use for Fourier transform?  Calligraphic F, or maybe 
something else?