Skip to main content

Questions tagged [physics]

{physics} is a package for making typesetting mathematical physics easier and more readable. It provides macros for vector notation, quantum mechanics bracket style etc.

Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

energy band structure of a semiconductor

I need to create an energy band structure of a semiconductor plot diagram or of One-dimensional crystal with periodic potential, where only several lattice points are included through tikzpicture. I ...
Yusef Hamdellah's user avatar
1 vote
1 answer
78 views

How to typeset physics problems and their solution

I want to typeset physics solution like this: It's in Ukrainian, but the contents doesn't matter. I want to have two columns: In the left column there should be two cells: one with given values, the ...
Ruslan Popov's user avatar
2 votes
2 answers
104 views

Attempting to redefine \dv and \pdv from Physics package to display style without setting the surrounding environment to display style

I am using the physics package which adds the \derivative and \partialderivative commands, in addition to the \dv and \pdv commands which are just the shorthand versions. For those unfamiliar, these ...
Connor Lyons's user avatar
2 votes
1 answer
187 views

Is it possible to get the LaTeX command for special symbol, like J calligraphic with bar in the middle

how to make the latex command for this symbol
Raysos's user avatar
  • 21
1 vote
1 answer
111 views

Tadpole Feynman Diagram with missing momentum arrow

I am trying to create a tadpole diagram that is a photon that is vertical with a scalar loop attached to the top that has some momentum $l$. Here is what I have so far: \documentclass[11pt,a4paper]{...
MathZilla's user avatar
  • 155
0 votes
0 answers
88 views

Spherical harmonics

For my lecture notes I need to visualize spherical harmonics in Asymptote. Using the notes from https://mathworld.wolfram.com/SphericalHarmonic.html triple fs(pair p){ real x=sin(p.x)*cos(p.y)*(sqrt(3/...
ewa's user avatar
  • 71
4 votes
4 answers
727 views

How to write this variant of Dirac slashed derivative?

I want to write: Can someone please help me with this?
Bastam Tajik's user avatar
1 vote
1 answer
61 views

How to get engineering multiples notation out of numerica results

The numerica package is a very handy tool to solve circuit equations, but I couldn't find a way to get numerical results using engineering multiples like mA, kV, etc. The siunitx package has a very ...
Anisio Braga's user avatar
0 votes
0 answers
78 views

Physical symbols (italic)

Symbols for quantities are written in italics. I know that I can use \qty{}{} for numbers and units. Is there a similar command for symbols? Or would this be okay? \documentclass{article} \usepackage{...
Sylvia's user avatar
  • 485
0 votes
1 answer
95 views

AMS Euler and italic variables [closed]

I prefer using the beautiful AMS Euler math font, but - as we all know - it is only upright. I was wondering that there were so few complaints about this fact. In Germany there's even a DIN standard ...
Sargos's user avatar
  • 75
2 votes
1 answer
120 views

How to insert equal height brackets on both sides while wrapping a new line?

I'd like to input a long equation, so I had to cut it into two lines. But, there's a couple of {} at the start of the first line of the equation and the end of the second line of the equation, and the ...
Meiu's user avatar
  • 558
-1 votes
1 answer
139 views

Need help creating specific Tikz picture [closed]

Trying to recreate the following drawings as physics diagrams using Tikz: I really just need help figuring out how to do the two labeled parts: i) How to make this closed loop with arrows inside it ...
Oh Fiveight's user avatar
1 vote
1 answer
239 views

When using a dot to denote a time derivative, should the dot be centred horizontally?

When I write something like \dot{\mathbf{J}}=\mathbf{r}\times -\frac{k}{r ^3} \mathbf{r}, it renders as This looks alright, but the dot above the $J$ looks slightly too far to the left. I would have ...
GibbNotGibbs's user avatar
0 votes
1 answer
165 views

Tikz solid movement

I need help for this picture please. That's what I did yesterday for a similar picture. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{pict2e} \usepackage{pgfplots} \...
Fractal's user avatar
  • 378
7 votes
4 answers
2k views

Drawing a maths protractor

How can I reproduce this image with TikZ. Here's what I've tried. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{pict2e} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \...
Fractal's user avatar
  • 378
1 vote
2 answers
165 views

Tikz inclination angle [closed]

I am unable to correctly place the alpha angle as well as the rest of this diagram. My minimal working example (MWE): \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{decorations....
Fractal's user avatar
  • 378
1 vote
1 answer
74 views

Choose delimiters in the command according the case

I'm trying to create a similar command as \qty from physics package. To understand, I have the following code as example: \documentclass{article} \usepackage{physics} \RenewDocumentCommand{\grad}{sm}...
Peluche's user avatar
  • 613
0 votes
0 answers
20 views

Text and pspicture are covering eachother

I'm a beginner in drawing with LaTeX and I recently achieved to draw a super cylindric marker for my physics lectures. But ... now, trying to write the text with it, and a big problem showed up, the ...
d3vel's user avatar
  • 41
6 votes
1 answer
1k views

Silencing 'siunitx' and 'physics' package \qty warning

I want to use the siunitxand the physicspackage, using the \qty definition of siunitx. Following the issued warning Package siunitx Warning: Detected the "physics" package: omitting ...
Tim's user avatar
  • 63
1 vote
1 answer
86 views

Primitives of multibody mechanical systems with additional explanations

I need to draw the following pictures: I tried to learn how to draw the necessary elements, focusing on the approach from this topic, because. I have never drawn such complex things in LaTeX before: ...
ayr's user avatar
  • 187
2 votes
1 answer
613 views

Bra-ket notation. What's the best way to do it?

Since the {physics} package is already out dated quite heavily (and has errors and isn't really compatible with {siunitx} anymore etc.), I wanted to ask, what is the best package for braket notation ...
Yumina 弓那 Nirvalen's user avatar
4 votes
1 answer
668 views

Unable to use physics2 package (Ubuntu 22.04.1 LTS)

I installed LaTeX/texlive yesterday (say, day X) using apt. The exact command I've use was: sudo apt-get install texlive-full but now (day X+1) I'm having troubles when I try to use the physics2 ...
Peluche's user avatar
  • 613
0 votes
1 answer
170 views

How to plot absolute value function?

To preface this, I just started learning LaTeX today as my professor wants us to complete homework assignments in it from now on. I've attached all my code, but the problem area is the very bottom. I'...
Tyler Buividas's user avatar
4 votes
2 answers
203 views

Particle paths in standing waves

I would like to draw a graph for computed particle paths under a standing wave and the path equation is sin(kx)sinh[k(z+h)]=C, for C a constant. This is what I tried and I failed. \begin{figure}[H] ...
Alessandro Lin's user avatar
-1 votes
1 answer
107 views

How do I draw this pendulum with the pendulum displaced to the right instead of the left? [closed]

Hi, can somebody help me draw this diagram but with the pendulum displaced to the right? I'm new to LaTeX so any help is appreciated.
Neal Batra's user avatar
-1 votes
1 answer
241 views

Newton's Third Law in Latex

Sorry for my naive question, but I'm trying to write Newton's third law this way and I don't understand why it doesn't look right. There is perhaps a problem with the subscripts. This is what a I want:...
Jasso's user avatar
  • 9
5 votes
3 answers
192 views

Typesetting bilinear operators in second quantisation

When typesetting certain operators in quantum many-body theory, I often find that they look aesthetically a bit questionable. Having a dagger on a symbol seems to shove the index down. The most ...
sondre's user avatar
  • 153
0 votes
0 answers
98 views

Help With Dirac Notation for Stack Exchange

I have copied this code and can't seem to get it work. Is the Stack exchange editor not compatible with this code? I have actual QM questions to ask, but am unable to format that currently. Any help ...
Eigenlumen's user avatar
2 votes
1 answer
85 views

Why does esint clash when I include it in my package?

I am trying to write my own package, but I can not include esint without getting errors. Here is an MWE of my package: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zyy}[2021/08/14 Yiyu's preamble for ...
zyy's user avatar
  • 2,196
0 votes
0 answers
170 views

draw inclined plane

I am trying to draw this thing: here's what I have done so far (my pic is slightly different, but it is okay for my purposes) \begin{tikzpicture} \coordinate (a) at (3.5,0.35); \...
Daniel Neskorodov's user avatar
0 votes
3 answers
312 views

Random generator for exam class in Physics or Chemistry

I would like to create a exam class such as: I could include random generator of both numbers and units for conversion factors in physics and chemistry. In particular, what I wish is a pseudorandom ...
riemannium's user avatar
0 votes
3 answers
571 views

Removing space between latex arrows when they have added color

I want these two lines to align properly, \textcolor arrow adds extra space \begin{align} \ket{\rm P}_t =& \ket{\uparrow\textcolor{red}{\uparrow}\uparrow} \\ \nonumber & \ket{\...
abhin suresh's user avatar
1 vote
1 answer
56 views

Procedural matrices in tikz

Is there a way to typeset a tikz matrix procedurally instead of manually? i.e. here's a MWE of a 4x4 identity matrix: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{...
pelegs's user avatar
  • 267
3 votes
2 answers
730 views

How can I fix tall ket notation?

I have been struggling with a tall ket symbol when I insert the letter b compared to the letter a. My problem is how I can make the ket notation for the letter b the same size as the letter a. I also ...
Bahar Jafari Zadeh's user avatar
3 votes
1 answer
247 views

\vu of physicx package with physics and unimath options went wrong when loading unicode-math package

\documentclass{article} \usepackage[physics, unimath]{physicx} \usepackage{unicode-math} \begin{document} $\vu{a}, \vu*{a}$ \end{document} \documentclass{article} \usepackage[physics]{physicx} % \...
xdyy's user avatar
  • 590
11 votes
1 answer
6k views

Latex in MacOS powerpoint

I've been using beamer on Linux for over 8 years, but my new work now wants me to make powerpoint presentations on a MacBook and I feel very lost. I struggle with the equation editor. My ...
shadeless's user avatar
  • 113
1 vote
1 answer
808 views

LaTeX symbol for c_0

Given the importance of the speed of light to so many in areas of science, engineering, computing, etc. and so many areas of daily life, particularly for example with the electromagnetic spectrum that ...
RosesBouquet's user avatar
5 votes
1 answer
301 views

Drawing a 3d wheel

I'm trying to create a physics illustration of a spinning wheel (see here). I can draw a "flat" sketch of a wheel as following. Are there any nice tricks to make it appear more three-...
35T41's user avatar
  • 327
13 votes
1 answer
6k views

How to avoid \qty conflict with physics and siunitx

I am trying to use both the physics and siunitx packages, which both have a definition for the command \qty. I want to ignore the one from physics and use only that from siunitx. This is my minimum ...
Henry's user avatar
  • 133
0 votes
2 answers
504 views

\qty problem with parentheses

Why are the parentheses not showing? (I don't want to remove packages,how can i fix this problem?) \documentclass[a4paper]{article} \usepackage{physics} \makeatletter \DeclareSymbolFont{...
suarez's user avatar
  • 182
1 vote
1 answer
106 views

Problem of \qty with \bm

I used qty symbol and bm symbol but didn't work. Why does not work? \documentclass{standalone} \usepackage{physics} \usepackage{bm} \begin{document} \[ \bm{\qty(x)} \] \end{document}
cufcuf's user avatar
  • 594
2 votes
0 answers
177 views

Blochsphere package - shading (brighter ball) [closed]

I am using the blochsphere package and have a problem with shading of the drawn ball. Using the color white for the ball and opacity=0.7 makes it quite dark greyish. I dont want to turn down the ...
manuel459's user avatar
  • 319
3 votes
2 answers
473 views

Blochsphere Package Shading

I am using the blochsphere package and have a problem with shading of the drawn ball. Using the color white for the ball and opacity=0.7 makes it quite dark greyish. I dont want to turn down the ...
manuel459's user avatar
  • 319
1 vote
1 answer
64 views

How to write Latex of the picture given [closed]

How to write Latex for the picture given.
write4thejustice's user avatar
2 votes
2 answers
108 views

When using kpfonts, the vector versions of i and j don't behave nice with the physics package

When attempting to typeset unit vectors with the physics package shorthand \vu the following problems occur when using kpfonts which do not occur when using computer modern. \vu{i} and \vu{j} do not ...
OmnipotentEntity's user avatar
2 votes
1 answer
2k views

unicode-math and physics's \vb command

I can't get bold math with packages unicode-math and physics, here is mwe \documentclass{article} \usepackage{physics} \usepackage{unicode-math} \usepackage{amsmath} \begin{document} $ a, \vb*{a}, ...
Syvshc's user avatar
  • 1,348
8 votes
1 answer
1k views

How can I draw a mini wave?

I'm trying to draw the following figure using TikZ, but I'm stuck on how can I produce that red wave representing a photon : Here's my code and what it produces : \begin{tikzpicture}[>=stealth] \...
user avatar
2 votes
1 answer
133 views

2-loop diagram with Feyn-TikZ

I am trying to generate a 2-loop diagram using Feyn-TikZ. Concretely, I am writing the following commands: \begin{tikzpicture} \begin{feynman} \vertex (i1) {\(s\)}; \vertex [above right=of i1] (a); \...
Jordi's user avatar
  • 51
-1 votes
1 answer
163 views

How to Draw 3D Labeled Graph

So I am currently working on making a couple mechanics problems and I don't exactly want to just paste my scuffed drawings into my document if possible. I tried using Tikz but to be honest I have no ...
user240220's user avatar
1 vote
1 answer
472 views

Drawing Mass-Spring

I am attempting to make this into a Tikz Picture but it seemed like copy pasting stuff until it worked out didn't seem to work for me this time so would anyone be able to help me out to make this in ...
user240220's user avatar