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
> 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
> 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
> 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
> > 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
> 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
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
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".
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