Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

phasor angel symbol in latex

2,440 views
Skip to first unread message

H.S.

unread,
Feb 9, 2006, 10:29:17 AM2/9/06
to
Hello,

Is there a command for the "angle" symbol? This is used in phasor
representations (commonly used in electric circuits):

3 / 5
-----

Where 3 is the magnitude and 5 is the angle.

thanks,
->HS

--
Please remove the underscores ( the '_' symbols), if any, from my email
address to obtain the correct one. Apologies, but the fudging is to
reduce spam.

Matteo

unread,
Feb 9, 2006, 1:02:53 PM2/9/06
to
> Hello,
>
> Is there a command for the "angle" symbol? This is used in phasor
> representations (commonly used in electric circuits):
>
> 3 / 5
> -----
>
> Where 3 is the magnitude and 5 is the angle.
>
> thanks,
> ->HS
>
>
>

$\angle \varphi$

Bye
Matteo

H. S.

unread,
Feb 9, 2006, 1:48:17 PM2/9/06
to
Apparently, _Matteo_, on 02/09/2006 01:02 PM,typed:


Yes, I already tried that, but it doesn't put the the \varphi "inside"
the angle, as I have shown in my original post. I am looking for the
symbol that is commonly found in the textbooks on electric circuits.

->HS

--
(Remove all underscores,if any, from my email address to get the correct
one. Apologies for the inconvenience but this is to reduce spam.)

B. Michielsen

unread,
Feb 9, 2006, 6:24:17 PM2/9/06
to
On Thu, 09 Feb 2006 13:48:17 -0500, H. S. wrote:

> Apparently, _Matteo_, on 02/09/2006 01:02 PM,typed:
>>> Hello,
>>>
>>> Is there a command for the "angle" symbol? This is used in phasor
>>> representations (commonly used in electric circuits):
>>>
>>> 3 / 5
>>> -----
>>>
>>> Where 3 is the magnitude and 5 is the angle.
>>>
>>> thanks,
>>> ->HS
>>
>> $\angle \varphi$
>>
>> Bye
>> Matteo
>
>
> Yes, I already tried that, but it doesn't put the the \varphi "inside"
> the angle, as I have shown in my original post. I am looking for the
> symbol that is commonly found in the textbooks on electric circuits.
>
> ->HS

Perhaps something like this :

\documentclass{article}
\newcommand{\phase}[1]{\angle\kern-2pt\raise1pt\hbox{$\scriptstyle #1$}}
\begin{document}
$ 3\phase{5}$
\end{document}

Regards,

H.S.

unread,
Feb 9, 2006, 7:00:41 PM2/9/06
to


Close. Can the bottom line of the angle symbol be extended depending on
the length of the argument (imagine 90, pi/2, 180 or -180). So, it will
be shorter for 8 degrees and longer for -180 degrees.

Dan Luecking

unread,
Feb 13, 2006, 1:01:20 PM2/13/06
to
On Thu, 09 Feb 2006 19:00:41 -0500, "H.S."
<greate_x...@yahoo.com> wrote:

>B. Michielsen wrote:
>> On Thu, 09 Feb 2006 13:48:17 -0500, H. S. wrote:
>>
>>
>>>Apparently, _Matteo_, on 02/09/2006 01:02 PM,typed:
>>>>

>>>> $\angle \varphi$


>>>>
>>>
>>>Yes, I already tried that, but it doesn't put the the \varphi "inside"
>>>the angle,

[...]


>>
>> Perhaps something like this :
>>
>> \documentclass{article}
>> \newcommand{\phase}[1]{\angle\kern-2pt\raise1pt\hbox{$\scriptstyle #1$}}
>> \begin{document}
>> $ 3\phase{5}$
>> \end{document}
>>
>> Regards,
>
>Close. Can the bottom line of the angle symbol be extended depending on
>the length of the argument (imagine 90, pi/2, 180 or -180). So, it will
>be shorter for 8 degrees and longer for -180 degrees.

Below is an adaptation of the definition of \angle. A truly general
solution would adjust for the depth and height of the argument
instead of \smash-ing it, and would not compress the argument
to \scriptstyle to make it fit. That would require replacing the
\not symbol with a variable height line, perhaps with the picture
environment.

\documentclass{article}
\makeatletter
\def\phase#1{{\vbox{\ialign{$\m@th\scriptstyle##$\crcr
\not\mathrel{\mkern10mu\smash{#1}}\crcr
\noalign{\nointerlineskip}
\mkern2.5mu\leaders\hrule height.34pt\hfill\mkern2.5mu\crcr}}}}
\makeatother
\begin{document}

$\phase\theta$
$\phase\phi$
$\phase{\phi_{n_k}}$
$\phase{-180}$
\end{document}


Dan
To reply by email, change LookInSig to luecking
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***

H.S.

unread,
Feb 14, 2006, 10:23:34 AM2/14/06
to
Dan Luecking wrote:

> Below is an adaptation of the definition of \angle. A truly general
> solution would adjust for the depth and height of the argument
> instead of \smash-ing it, and would not compress the argument
> to \scriptstyle to make it fit. That would require replacing the
> \not symbol with a variable height line, perhaps with the picture
> environment.
>
> \documentclass{article}
> \makeatletter
> \def\phase#1{{\vbox{\ialign{$\m@th\scriptstyle##$\crcr
> \not\mathrel{\mkern10mu\smash{#1}}\crcr
> \noalign{\nointerlineskip}
> \mkern2.5mu\leaders\hrule height.34pt\hfill\mkern2.5mu\crcr}}}}
> \makeatother
> \begin{document}
>
> $\phase\theta$
> $\phase\phi$
> $\phase{\phi_{n_k}}$
> $\phase{-180}$
> \end{document}
>
>
> Dan
> To reply by email, change LookInSig to luecking
> *** Free account sponsored by SecureIX.com ***
> *** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***


This works great and does everything I had mentioned earlier. The only
problem left with this is that for some reason it doesn't show the
degree symbol:
$\phase {-180^\circ}$

Thanks for your effort, it is much appreciated.
regards,

Dan Luecking

unread,
Feb 14, 2006, 12:27:57 PM2/14/06
to
On Tue, 14 Feb 2006 10:23:34 -0500, "H.S." <hs.s...@gmail.com> wrote:

>Dan Luecking wrote


>>
>> \documentclass{article}
>> \makeatletter
>> \def\phase#1{{\vbox{\ialign{$\m@th\scriptstyle##$\crcr
>> \not\mathrel{\mkern10mu\smash{#1}}\crcr
>> \noalign{\nointerlineskip}
>> \mkern2.5mu\leaders\hrule height.34pt\hfill\mkern2.5mu\crcr}}}}
>> \makeatother
>> \begin{document}
>>
>> $\phase\theta$
>> $\phase\phi$
>> $\phase{\phi_{n_k}}$
>> $\phase{-180}$
>> \end{document}
>>
>

>This works great and does everything I had mentioned earlier. The only
>problem left with this is that for some reason it doesn't show the
>degree symbol:
>$\phase {-180^\circ}$

That works perfectly here.

H.S.

unread,
Feb 14, 2006, 1:08:02 PM2/14/06
to
Dan Luecking wrote:

>>This works great and does everything I had mentioned earlier. The only
>>problem left with this is that for some reason it doesn't show the
>>degree symbol:
>>$\phase {-180^\circ}$
>
>
> That works perfectly here.
>
>
> Dan


Well, it is working here as well now! I am not sure what could have went
wrong. I was thinking anti-aliasing in gv might have been the problem,
but I checked and it is not so. In any case, it is working ... so it is
great!

Thanks a ton for you help,

0 new messages