Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
21 views

Multiple and letter arguments for tikz axis from csv?

Would it be possible to create a preconfigured axis for tikz to understand a file like this as an input (.txt/.csv) Term J Level (eV) "1S" "0" " 0.0000000" "3P*" "0" " 4.6673829" "...
2
votes
1answer
25 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
60 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
66 views

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

Need help drawing this in tikz please.
2
votes
1answer
111 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 ...
23
votes
0answers
343 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 ...
15
votes
0answers
383 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
262 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
217 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 ...
1
vote
1answer
114 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
98 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
102 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
130 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
583 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
204 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
223 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
293 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
52 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
535 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
449 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 \...
1
vote
1answer
2k 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
803 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? ...
2
votes
1answer
338 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 ...
3
votes
1answer
21k 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
352 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
464 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
12k 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
120 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
3k 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
408 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
88 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 \...
4
votes
2answers
419 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
341 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
5k 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
414 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
639 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}[...
3
votes
2answers
5k views

How to display an integral equation in LaTeX?

I want to display something like: My current attempt is : \begin{equation} Z=min E \int_{0}^{\infty} exp(-\rho t)\{ \alpha^2[r(t)-x(t)]^2+[\lambda ^ {-1}\frac{\dd{x(t)}}{\dd{t}}]^2 \} \dd{t} \end{...
1
vote
1answer
278 views

Physics package causes partial differential to show smaller than other differential term

I was trying to implement the Physics package, but the partial differential font is compiling to a smaller font compared to the other text. Can the physics partial differential font be scaled up to ...
8
votes
2answers
299 views

How do I produce the text displayed on the banner of this website?

This question is for interest purposes, rather than a problem which I have to be solved. How does one produce the equations and text displayed on the banner of this website? Here is a screenshot of ...
1
vote
1answer
2k views

Packages NOT recommended for physics [closed]

I am writing my thesis in physics. I am not a Tex expert so in the beginning I just added convenient packages that were suggested here on tex.stackexchange.com as I went along. Unfortunately, after ...
3
votes
1answer
304 views

How can I improve alignment of the numerator and denominator when vector norm bars along with subscripts throw things off?

Here's the really bad case: With a red bar to show what is bothering me in particular: Here's a simpler case where the issue is a non-issue, but perhaps one can get a hint of why it starts to get ...
1
vote
1answer
282 views

Writing a lab manual, need to know how to make the DC voltage symbol from a multimeter [duplicate]

I am working on a lab manual for my school and I am getting to the circuits labs. I want to tell the students what symbol on the multimeter to use, it is a V with two lines over it, top line is ...
3
votes
1answer
560 views

Left sided subscript with \mel of physics package

I want to tex the following MWE: \documentclass[ amsmath, onecolumn, aps, prb, notitlepage, 10pt ]{revtex4-1} \usepackage{physics} \newcommand{\mrm}[1]{\mathrm{#1}} \newcommand{\eps}{\epsilon} \...
3
votes
0answers
888 views

Package for professional writing of electron configurations? [closed]

I am writing a paper that deals partly with X-ray photoelectron spectroscopy (XPS). XPS results are usually described with the respective elements and the electron configuration of the measured ...
2
votes
1answer
788 views

Unable to typeset vectors using physics package

I'm trying to typeset the equation for the dot product like this (using the physics package). $$ \va{A} \dot \va{B} = abs{A}abs{B}\cos{\theta}$$ However, LaTeX keeps throwing this: ./AP Physics ...