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
2 votes
1 answer
77 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 ...
Axia's user avatar
  • 69
-1 votes
1 answer
115 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
172 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
119 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
  • 381
7 votes
4 answers
1k 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
  • 381
1 vote
2 answers
152 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
  • 381
1 vote
1 answer
71 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
  • 601
0 votes
0 answers
17 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
575 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
0 votes
1 answer
65 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: ...
dtn's user avatar
  • 177
2 votes
1 answer
218 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
433 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
  • 601
0 votes
1 answer
103 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
3 votes
2 answers
160 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
83 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
190 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
163 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
  • 151
0 votes
0 answers
80 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
62 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,116
0 votes
0 answers
122 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
2 answers
207 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
308 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
53 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
638 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
193 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
  • 591
11 votes
1 answer
4k 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
619 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
242 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
11 votes
1 answer
5k 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
  • 113
0 votes
2 answers
467 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
89 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
107 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
  • 299
3 votes
2 answers
385 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
  • 299
1 vote
1 answer
61 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
83 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,328
8 votes
1 answer
870 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
116 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
138 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
274 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
8 votes
4 answers
987 views

How to put a curvearrow around a letter?

In physics, it's sometimes useful to draw an arrow over a letter to represent the torch around that point. I've seen this in multiple textbooks and would like to know how to do it myself in \LaTeX ...
StiggyStardust's user avatar
1 vote
3 answers
387 views

Heisenberg Spin exchange figure with Tikz

I want to construct a figure with Tikz similar to this one: I was looking for example but couldn't find any I tried to make it but it was a mess. so: How can I get the spins on the dots? and how to ...
Houssam Sabri's user avatar
0 votes
0 answers
40 views

How to create a table that fits over the page and has text centered?

I'm trying to recreate the following table. I've only worked with booktabs before so I don't know how to create this kind of table. This is what I tried: \documentclass[12pt]{article} \begin{table}[...
nocomment's user avatar
  • 363
0 votes
0 answers
25 views

Unable to use downloaded Class File

I've been using LaTeX with TeXnicCenter as my editor for about two years, always typing in \text mode with the {align} option.. so boring, I know. Now I decided to get more professional, and ...
dekees's user avatar
  • 21
1 vote
1 answer
163 views

how can the diffracted wave can be drawn?

So I was preparing a lesson for my students about mechanical waves, and when I've reached the section of diffraction I needed to do some figures like these : For the first one I've done it easily, ...
user avatar
1 vote
1 answer
701 views

! File ended while scanning use of \frac

I did not change anything since last time, but I am getting the error message: ! File ended while scanning use of \frac Btw I am a total noob when it comes to LATEX! I've already checked the questions ...
NirvanicUniverse's user avatar
0 votes
0 answers
280 views

Complex graphs in LaTeX

I am trying to write all my notes I'm taking from my physics course, but I got stuck in plotting graphs; is there a way I can plot rapidly graphs like these?
deomanu01's user avatar
2 votes
1 answer
2k views

Using the physics package to take second derivatives with respect to primed coordinates

As it says in the title, I am attempting to write a second derivative such as the following and ideally would use the shorthand derivative from the physics package which would be the following. \dv[2]...
Immotommi's user avatar
5 votes
5 answers
760 views

How can I recreate this rectangle with lines, points, and labels in LaTeX?

I'm just typing this up for class and I'd appreciate some guidance like what packages I'd need and how to start?
PangolinCough2020's user avatar
1 vote
1 answer
246 views

Error compiling equation

My document (subfile in documentclass book) compiles perfectly, untill I add the following equation: \begin{equation} \label{beliefupdate} \begin{split} b_{t+1}(s') & = \Pr(s'|o',a,b) \\ ...
Rens's user avatar
  • 23