1
$\begingroup$

I'm going to make a palette for partial differential and total differential.

PasteButton[ Style["\!\(\*SubscriptBox[\(∂\),
 \(\[SelectionPlaceholder]\)]\)\[Placeholder]", 16], 
Unevaluated@D[\[SelectionPlaceholder], \[Placeholder]],ImageSize -> {65, 35}]

When the button was pressed, the partial differential symbol was well created.

enter image description here

PasteButton[ Style["\!\(\*SubscriptBox[\(\[DifferentialD]\), 
\(\\[SelectionPlaceholder]\)]\)\[Placeholder]", 16],  
Unevaluated@Dt[\[SelectionPlaceholder], \[Placeholder]], ImageSize -> {65, 35}]

But this time, if you press the button, it's not an expression. It comes out in the form of Inputform.

enter image description here

Can I print it out to maintain the form of the equation? I'm going to put the value in the form of the output equation and run it to get the calculated value.

$\endgroup$
1
  • 1
    $\begingroup$ …Interesting, I didn't know \[DifferentialD] can be used in this manner, and this doesn't seem to be documented, how do you notice this feature? $\endgroup$
    – xzczd
    Dec 27, 2023 at 7:36

1 Answer 1

1
$\begingroup$

My solution for your previous question still works:

PasteButton[Style["\!\(\*SubscriptBox[\(\[DifferentialD]\), 
\(\\[SelectionPlaceholder]\)]\)\[Placeholder]", 16], 
 RowBox[{SubscriptBox["\[DifferentialD]", "\[SelectionPlaceholder]"], 
    "\[Placeholder]"}] // DisplayForm, ImageSize -> {65, 35}]

BTW,the RowBox[{SubscriptBox["\[DifferentialD]", "\[SelectionPlaceholder]"], "\[Placeholder]"}] is found by

  1. Select the expression.

  2. Right click, copy as -> cell expression.

  3. Paste. (If pasted in notebook, select "No" in popup menu. )

Here's a GIF showing the process:

enter image description here

$\endgroup$
1
  • $\begingroup$ Thanks. Now I understand for sure. $\endgroup$
    – Milk
    Dec 27, 2023 at 9:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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