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

Typing Thermodynamical D Bar

1,548 views
Skip to first unread message

Ignacy Sawicki

unread,
Jul 31, 2003, 7:40:09 AM7/31/03
to
I am trying to obtain a lowercase d with a bar across the top bit (kind of
like \hbar) in math equations (although it is supposed to be an upright
letter, rather than italic).

At the moment I am using \mbox{\dj}, which gives me a eth (I think?)
symbol. However, the bar on this d is a little too short, and isn't very
obvious. I am tyring to use it to denote the integral over phase space,
i.e. d^3k/(2\pi)^3 without explicitly writing out the (2\pi) factors.

I have seen it used in some thermodynamics books that seem to have been
typeset in LaTeX, so it ought to be possible.

Thanks for any help,

Iggy

Maarten Sneep

unread,
Jul 31, 2003, 8:12:51 AM7/31/03
to
Ignacy Sawicki <sp...@barrier.com> wrote:

> I am trying to obtain a lowercase d with a bar across the top bit (kind of
> like \hbar) in math equations (although it is supposed to be an upright
> letter, rather than italic).

Have you tried the "The Comprehensive LATEX Symbol List", available on
CTAN in info/symbols/comprehensive/

Maarten

Ignacy Sawicki

unread,
Jul 31, 2003, 8:23:59 AM7/31/03
to
Maarten Sneep <iintbeumtnbfkcpntohw__NOSP@M__xs4all.nl> wrote in
news:iintbeumtnbfkcpntohw__NO...@newszilla.xs4all.nl
:


> Have you tried the "The Comprehensive LATEX Symbol List", available on
> CTAN in info/symbols/comprehensive/

Yes, that's where I found the \dj, but couldn't see any others similar to
it. I was hoping that there is an accent command, of some sort, which would
draw such a thing (like \bar, but lower).

Iggy

Ralf Stubner

unread,
Jul 31, 2003, 8:32:47 AM7/31/03
to
Ignacy Sawicki <sp...@barrier.com> writes:

> I am trying to obtain a lowercase d with a bar across the top bit (kind of
> like \hbar) in math equations (although it is supposed to be an upright
> letter, rather than italic).

\hbar is defined as:

\def\hbar{{\mathchar'26\mkern-9muh}}

So you could try something like:

\newcommand{\dbar}{{\mathchar'26\mkern-11mud}}

or

\newcommand{\dbar}{{\mathchar'26\mkern-11mu\mathrm{d}}}

cheerio
ralf

Maarten Sneep

unread,
Jul 31, 2003, 8:36:40 AM7/31/03
to
Ignacy Sawicki <sp...@barrier.com> wrote:

> > Have you tried the "The Comprehensive LATEX Symbol List", available on
> > CTAN in info/symbols/comprehensive/
>
> Yes, that's where I found the \dj, but couldn't see any others similar to
> it. I was hoping that there is an accent command, of some sort, which would
> draw such a thing (like \bar, but lower).

Read on, after the symbols, but before the index (around page 50 on the
a4 version) there are instruction how to create such a symbol yourself.

Maarten

Maarten Sneep

unread,
Jul 31, 2003, 8:39:59 AM7/31/03
to
Ralf Stubner <ralf.s...@physik.uni-erlangen.de> wrote:

> Ignacy Sawicki <sp...@barrier.com> writes:
>
> > I am trying to obtain a lowercase d with a bar across the top bit (kind of
> > like \hbar) in math equations (although it is supposed to be an upright
> > letter, rather than italic).
>

> [snip]


>
> \newcommand{\dbar}{{\mathchar'26\mkern-11mu\mathrm{d}}}

The comprehensive list suggests
\newcommand{\dbar}{{\mathchar'26\mkern-12mu\mathrm{d}}}, but you'd have
to try and see what works best for you...

Maarten

Charles B. Cameron

unread,
Jul 31, 2003, 9:56:34 AM7/31/03
to

Try:

\newcommand{\dbar}{%
\mbox{$\textrm{d}$\kern-0.28em\raise.7ex\hbox{-}}%
}

$\dbar^3k/(2\pi)^3$

\[\frac{\dbar^3k}{(2\pi)^3}\]


Charles B. Cameron

Julian V. Noble

unread,
Jul 31, 2003, 9:55:58 AM7/31/03
to

I found it looked better with

\newcommand{\dbar}{{\mathchar'26\mkern-11mu\mathrm{d}}}

^^^^
--
Julian V. Noble
Professor Emeritus of Physics
j...@lessspamformother.virginia.edu
^^^^^^^^^^^^^^^^^^
http://galileo.phys.virginia.edu/~jvn/

"Science knows only one commandment: contribute to science."
-- Bertolt Brecht, "Galileo".

Ignacy Sawicki

unread,
Jul 31, 2003, 10:25:18 AM7/31/03
to
"Julian V. Noble" <j...@virginia.edu> wrote in
news:3F291FEE...@virginia.edu:

> \newcommand{\dbar}{{\mathchar'26\mkern-11mu\mathrm{d}}}
> ^^^^
Looks beautiful, thanks.

I have to admit to not having read the technical bit of creating new
characters, but you can't expect that from somebody who's been fighting
with TeX for, now, a whole week. ;-)

Iggy

0 new messages