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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone have any ideas how to make this:

enter image description here

look like this:

enter image description here

The only difference is the differentials are "pushed over" making it appear more compact and readable. I achieved the first picture by using

\left. \frac{\partial U}{\partial S} \right|_{V,N} \mathrm{d} S

(first term only) but I don't know how to push the dS over the subscript more. Can this even be done?

I've tried \overset and using a custom fraction but neither look quite right.

share|improve this question
    
Welcome to TeX.sx! – texenthusiast Apr 18 '13 at 20:39
    
You can insert negative math spaces such as \! before dS – percusse Apr 18 '13 at 20:43
\documentclass{article}
\usepackage{mathtools}
\begin{document}

\[
\left. \frac{\partial U}{\partial S} \right|_{\mathrlap{V,N}} \mathrm{d} S
\]

\end{document}
share|improve this answer
1  
is it good practice to use mathtools instead of ams bunch ? – texenthusiast Apr 18 '13 at 20:33
    
That's exactly what I wanted! Thank-you! – Kyle Mills Apr 18 '13 at 20:33
8  
@texenthusiast: it loads amsmath by default and fixes some bugs – Herbert Apr 18 '13 at 20:35
2  
@Herbert, what kind of bugs? – Sigur Apr 18 '13 at 22:55
2  
@Sigur: read the documentation – Herbert Apr 19 '13 at 5:21

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.