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
1answer
69 views

Commands delimited by `\{`, `\|`, `\langle`, etc

The xparse package offers the possibility to define commands delimited by single special start/end character. This can be very useful, for instance it is used a lot in the physics package. I was ...
4
votes
1answer
479 views

Draw P and S waves illustration

I need some help with drawing similar figures. Don't care about colour. Thanks.
0
votes
0answers
28 views

About symbols size in physics package

Is it possible to change symbols size?
7
votes
1answer
162 views

Aggregation states in Tikz: draw random circles and connect them randomly

Hey TeX Stackexchange! I have have a problem with a \tikzpicture in my beamer presentation about nuclear fusion. I want to show a graphic with all four aggregation states including plasma as the ...
0
votes
0answers
23 views

Typesetting a specific italic r or relative position vector symbol [duplicate]

I have spent a couple of hours trying to figure out how to typeset the following symbol: Any ideas?
0
votes
0answers
48 views

Punctuation spacing in math that ends with a differential \dd{}, and the physics package

It seems the physics package adds an extra (thin) space after \dd{x}, before my punctuation (usually "," or ".") and I don't want this. This is a common scenario for me, especially if I'm displaying a ...
0
votes
1answer
79 views

library of latex formulas

I want to write a lot of famous formulas, but they are big and they take time. Is there a place, where I can type the name of a formula, for example, "Maxwell equations" and get in a couple of seconds ...
3
votes
1answer
2k views

How to find a Nature Communications LaTeX template?

Unfortunately, I do not succeed to find the Nature Communications template on internet. May be I am not looking in the right place, but only find indications on "how" to write. Of course, I read ...
7
votes
2answers
326 views

Planck's blackbody curve with “rainbow” in Tikz

I am trying to transfer this image from here into Tikz. Can you please help me with the "rainbow"? As a starting point I found this code here: \documentclass[border=3.14mm,tikz]{standalone} \...
4
votes
2answers
495 views

How to draw a gif with expanding circles that reveal lines connecting a non-centered point to the expanding circle using Tikz

I’ve racked my brain for weeks trying to create a .gif which is a moving version of what the below diagram represents. The goal is to start with point (A) and (B) at the same position (origin) with ...
0
votes
1answer
34 views

Error when using a block inside a frame in a beamer class document

The piece of code in question (I am using the "physics" package for bras and kets): \begin{block} \begin{equation*} \ket{\psi_{n\bm{k}}} = \frac{1}{\sqrt{N}}\sum_{\bm{R}}e^{i\bm{k}\cdot\bm{R}}\ket{\...
0
votes
1answer
204 views

iopart class is not friend with physics package

I am using iopart class for my document. In an equation I wish to use ket. For this reason I use \usepackage{physics}. But when I type this package, I alarmed by Command \equation already defined. And ...
4
votes
1answer
298 views

Value of physical constants in LaTeX

I want to use the value of physical constants in my LaTeX code through some reference. As far as I checked, mandi package seems to give the value of physical constants, but I prefer the style of ...
5
votes
4answers
416 views

Putting Faraday's law formula in LaTeX

Can anyone tell me how to put the formula for faraday's law in LaTeX? This is the formula I want emf=(Delta.Phi)/(Delta.t) thanks
2
votes
1answer
41 views

Prevent brakets from resizing

I am using the physics package for braket (Dirac) notation. However, some expressions (such as the braket on the right) automatically rescale in the presence of, say, an operator (such as f hat), ...
0
votes
1answer
113 views

How do I draw 3-D axes in TIKZ?

Can someone help me draw this? I need it to show the effect of a rotated polarizing component, and things always looks better in tikz, my my skills are sub-standard.
2
votes
1answer
94 views

can i get some help drawing a polarization ellipse, something like this:

Need help drawing this in tikz please.
2
votes
1answer
274 views

Required Files for Writing Physics-related Thesis

I am trying to write my dissertation for PhD in physics using overleaf website. I am using the template given by our school in this discipline that is called ua-thesis. I also have a .bib file ...
28
votes
2answers
868 views

Physics replacement effort

I'm currently considering writing up some macros in order to provide a somewhat more reasonable alternative to what the physics package does. This is heavily inspired by Alternatives to the physics ...
24
votes
0answers
2k views

Alternatives to the physics package

The physics package is useful A lot of my LaTeX documents make heavy use of the physics package. Aside from it overloading several standard commands (e.g. \sin, \abs, etc.), it also makes a few ...
5
votes
3answers
865 views

Macros \dv and \pdv eat the subsequent parenthesis argument

The physics package has the macros \dv and \pdv which are great but I have a small problem with them. If an argument with parenthesis included right after them they eat the whole argument. If there ...
4
votes
2answers
284 views

Drawing a line through a box in tikz

I'm using Quantikz to draw a multiqubit gate (=labelled box) without targeting some qubits (=horizontal lines). I have never used tikz before and wonder if there is an easy way to get the desired ...
2
votes
1answer
281 views

How to fix the spacing before starred commands from physics package

\documentclass{article} \usepackage{physics} \begin{document} \fboxsep=0pt This is some \fbox{$\ev*{\hat{O}_P}$} and then some. \end{document} There seems to be extra spacing added before the ...
1
vote
1answer
140 views

Up and down Wick contractions

I'm using simpler-Wick package, and I would like to have up and down contractions in the same equation. In another questions @marmot gave me a solution for up and down contractions, but I would like ...
1
vote
1answer
170 views

Time oriented wick contractions

I've used simple-wick and simpler-wick but in neither of them I can put arrows in the lines conecting the elements of the contractions. Does anybody know how to do that? I can do something with tikz ...
4
votes
1answer
184 views

Drawing particles in a box

I want to draw a figure, somewhat like this: Maybe with the left box labeled State 1, and the right box labeled State 2. I searched on how to draw rectangles as a start, but I could not make much ...
5
votes
1answer
630 views

Plotting the Lorentz Constant in LaTeX

I'm having trouble producing a graph of the Lorentz constant, defined by \frac{1}{\sqrt{1 - v^2/c^2}$ as a function of $v$. (Here, $c$ = $3 * 10^8$). I tried many examples, but I usually get "...
2
votes
1answer
302 views

Sans-Serif Font using Metropolis Theme and Physics Package

using the beamer class theme metropolis, I stumbled over the physics package's \dv{} command. This MWE illustrates the issue: \documentclass{beamer} \usetheme{metropolis} \usepackage{physics} \begin{...
2
votes
2answers
268 views

How to plot transition due to Franck-Condon principle using pgfplots?

There are several ways to plot Morse potential (see this question) and other smart solutions to plot the quantum harmonic oscillator wave functions on a parabola (see this other question). So far I ...
3
votes
2answers
442 views

How to make “double” brakets? Physics

I want to make a double braket, such as this one: Is there any package like physics that does this neatly? Thanks.
2
votes
2answers
57 views

Spiral line inside black points in physical diagram

I want to do a physical diagram of cells motion, I can't draw the Spiral line in the black points. Please one help me to draw it.
1
vote
2answers
2k views

How can I place a “slash” — / — through a letter in this way?

I am writing a paper expanding on the results of a previous paper, and I want to preserve their terminology, at one point they use this symbol: I have no idea how they made it nor how to reproduce it,...
2
votes
0answers
677 views

Physics thesis template [closed]

Do you know where I can find a template to write the thesis? It refers to the bachelor in physics. Is there any site where to find it? I tried to look but I found only one template and it was too ...
2
votes
3answers
661 views

physics and braket packages with different \braket commands

I am using the \usepackage{physics} package and want to write something using bra-ket notation but with a double bar in the middle (physicist's notation in Quantum Chemistry). It can be written as \...
2
votes
1answer
3k views

How to use deluxetable.sty?

I'm writing a lab report and it was recommended to use the deluxetable package, which is used by physics journals, etc. Despite the popularity of it, I am having trouble finding any tutorial on it. ...
1
vote
1answer
1k views

Unable to include the physics package

I get an error message on 64-bit MikTex for the following minimal example: \documentclass{article} \usepackage{physics} \begin{document} Hello world \end{document} What can be possibly going wrong? ...
3
votes
1answer
509 views

Redefining “physics” package vector differential operators

The physics package defines commands such as \grad, \div and \curl so that any subsequent delimiters are automatically resized (see MWE below). However, they also use a bold nabla. I would like to ...
5
votes
1answer
31k views

How do I input the symbol for Solar Mass?

I need to put stellar mass data in units of Solar Mass, and I tried the M_{\odot}, but the console shows: ! missing $ inserted error. I don't know what is wrong. Please help me out
9
votes
2answers
441 views

Peculiarities in \norm* from physics.sty

I am a heavy user of the physics package. Unfortunately, the \norm command seems to have some quirks associated with it. According to the documentation the starred version is meant to result in a ...
2
votes
1answer
626 views

Broken physics.sty after today's MiKTeX update, how to fix?

After the latest MiKTeX update, I started getting "Missing delimiter (. inserted)." errors on places where I've never had such before. A somewhat minimal .tex file points the problem to physics.sty. ...
3
votes
1answer
16k views

Division sign, not divergence [duplicate]

Using \div gives me divergence sign instead of division (÷), for sure inside of math mode. \documentclass[conference]{IEEEtran} \usepackage{amsmath,amssymb} \usepackage{physics} \begin{document} $...
4
votes
2answers
151 views

Is there a way to use \xmat* in the physics package to use upper indices?

In the physics package, \pmqty{} gives a matrix with rounded brackets. Combining this with \xmat*{}{}{} allows you to choose a letter in the first argument, followed by number of rows and then by ...
7
votes
1answer
5k views

How can I get a “divide by” symbol with \usepackage{physics}?

I usually use \div to generate a divide-by symbol, but when using the physics package, \div gives a nabla followed by a dot ("period") instead.
2
votes
1answer
567 views

\DeclarePairedDelimiter with a name that is already defined [duplicate]

How do I introduce a paired delimiter with \DeclarePairedDelimiter from mathtools, if the name that I want to use for the delimiter is already declared by some other package? For example: \...
2
votes
1answer
102 views

Write an equation with words in it

I am trying to write a chemical equation with some words in it. The equation is given below: The code I have written for that is \begin{equation*} ^4_2He + ^9_4Be \longrightarrow ^{12}_6C + Highly \...
5
votes
2answers
521 views

Feynman Diagram error in Beamer TeX document

I have a paper where my Feynman diagram is working, but when I transfer it to the Beamer .tex file, it gives me the following error: **LaTeX Error: Can not include graphics of type: mps. See the ...
3
votes
2answers
395 views

Particle Physics weight diagram in LaTeX Help!

I am writing a paper and I need to find the way to code these diagrams in LaTeX. I made those in Photoshop, but when I upload them in overleaf they lose quality . . . I have been looking for similar ...
6
votes
1answer
6k views

pgfplots: minor tick num on one axis

I was just wondering if it was possible to use minor tick num on one axis only. \begin{axis}[ axis x line = bottom, axis y line = left, minor tick num=4, xlabel={$t(s)$}, xmin=0,xmax=5, ylabel={$x(m)$...
3
votes
2answers
526 views

Physics package manual resize of \ket and \bra

I am trying to manually force big size for a \ket using the physics package, I am trying something along the lines: \documentclass{article} \usepackage{physics} \begin{document} $\ket\Big{a}$ \end{...
4
votes
1answer
695 views

How to get the straight vertical line next to derivatives?

I am trying to get this to display: My current attempt is : \begin{equation} \begin{align} \frac{\dd{x_c^{*}(t,u)}}{\dd{u}}=\gamma + \alpha \lambda \{[r(t)-x(t,0)]\\ + \frac{1}{1+\alpha\beta\lambda}[...