Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to set partial derivations like \frac{\partial}{\partial x}. This is issue is discussed several times here. Packages like esdiff or commath or suggested. However one problem with all those solutions is that the \partial is not set upright. Usually a recommendation is to use kpfonts or other fonts. Assume I do not want to change my font. Is there some LaTeX command to set the \partial upright or is this always a font issue? I have tried using \mathrm, but this doesn't work.

share|improve this question

2 Answers 2

up vote 11 down vote accepted
\usepackage[partialup]{kpfonts}

or if you do not want to load the kpfonts:

\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\makeatletter
\newif\ifkp@upRm% is used in the .fd-file of jkp
\DeclareSymbolFont{Letters}{OML}{jkp}{m}{n}
\DeclareMathSymbol{\partialup}{\mathord}{Letters}{128}
\makeatother
\usepackage{mathptmx}

\begin{document}

\[ \frac{\partialup f}{\partialup x} \]

\end{document}
share|improve this answer

Another nice approach could be rotating and scaling the \partial symbol by this one-liner:

\DeclareRobustCommand{\uppartial}{\text{\rotatebox[origin=t]{20}{\scalebox{0.95}[1]{$\partial$}}}\hspace{-1pt}}

It uses the normal partial symbol, squeezes it a bit horizontally, rotates it around the top for 20 deg and minimizes the distance to the following symbol.

Now you can use \uppartial in your math environment and get nice results like this:

uppartial

For Germans: DIN 1338 regulates which symbols are written in italics and which ones upright (see de:Wikipedia)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.