17 questions linked to/from commath and \ifinner
2k views

### Derivatives are sized differently with commath [duplicate]

I'm writing a derivation in an upper level physics class and I use derivatives extensively. I'm using the commath package \od{}{} command and they are being sized differently in different places. Also,...
77 views

### Conditional branch with \ifinner and Spacing in higher derivative (2 independent questions) [duplicate]

I made some macros shown below, which outputs ordinary/partial derivative. I was checking whether they work as I expected, and found that \dif{y}{x} expands to \tfrac{\difd y}{\difd x} in align ...
22 views

### What is the correct way to type partial derivative in a parameter using \pd in commath package? [duplicate]

I'm using \pd{ }{ } in the commath package to type the partial derivative which saves lots of efforts than typing \frac{\partial }{\partial }. However when I want to have a pair of parameters around ...
285 views

### Somewhat versatile usage of \@gobble and \@firstofone found in several macros

I was doing search about my question (see here for more detail) and found a thread commath and \ifinner. In the thread, there is a macro named \spx , the definition and usage of which are extracted ...
460 views

### Math macro for typesetting partial derivative with variable placeholder for both numerator and denominator

I'd like to type time-derivatives such as $\frac{\partial x}{\partial t} = f(x,t)$ as well as spatial gradients such as $\frac{\partial y}{\partial x} = k y$ To make the code readable and to ...
1k views

### \lmoustache and \rmoustache manifesting as weird cropped "tails"

I was just working on my LaTeX skills so I don't forget, so I went on this site and started replicating the most complex stuff I found. At first I thought it would be a piece of cake, but then I wrote ...
302 views

### Fractional alignment

So I have this basic code: But the fractional alignment looks awful, any tips to fix this? \documentclass[11pt, a4paper]{report} \usepackage{bm} \usepackage{amsfonts, graphicx, verbatim, amsmath,...
1k views

### \eval does not scale its argument properly

Here a user suggested to use the commath package to separate presentation and content. I LOVE separating presentation and content, so I read the documentation and started using this package throughout ...
1k views

### Revtex 4.2 caption error

\documentclass[amssymb,aps,twocolumn,pra,nobibnotes,secnumarabic,prc]{revtex4-2} \usepackage{tabularx} \usepackage[labelformat=simple,caption=false]{subcaption} \renewcommand\thesubfigure{(\alph{...
459 views

### Angle brackets with commath and Asana Math too large (or small)

I want to set bra-ket equations in my document, which uses Asana Math (with lualatex, fontspec and unicode-math). commath is also a requirement for certain stuff. However, in this specific combination,...
167 views

### How to properly insert Ɐ (2C6F) or any undefined unicode

using xelatex I tried this: \usepackage{graphicx} \newcommand{\Vol}{\rotatebox[origin=c]{180}{\ensuremath{A}}} \begin{document} \Vol \end{document} I know there is \forall but that's obviously not ...
212 views

### pderiv square macro [duplicate]

How do I update the macro for partial derivative in order to accept standard second or bigger order? I have so far \newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}} for the first order ...
269 views

### Using superscipt in argument of \dpd of commath package

I am using the commath package to typeset derivatives and need to use a superscript in the argument supplied to \dpd. What I require is something like \dpd{}{X^{(j)}_0} f(X^{(j)}...