I have trouble getting these two operators in the same height:
$\c_{\textbf{k}}^\dagger$ and $\c_{\textbf{k}'}^\dagger$. The k's should be at the same level, but the ' is somehow making the k' lower.
Anyone who can help?

NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
here it is:gmedina wrote:Please post complete compilable code.
Code: Select all
\documentclass[a4paper, twoside, 12pt]{memoir}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{bbm}
\usepackage[mathscr]{euscript}
\usepackage{ifthen}
\begin{document}
\section{Hi}
$c_{\textbf{k}\phantom{\sp{\prime}}}^\dagger c_{\textbf{k}'}^\dagger=0$
\end{document}
Well, that document explains some \SP command which evidently is not the same as the \sp command that I used (LaTeX is case-sensitive), so yes... Google is your friend if you use it well.svend_tveskaeg wrote:See (for example) the last item before subsection 6.5 in LaTeX2man manual, concerning the \sp command.
Google is your friend!
Code: Select all
\documentclass{article}
\begin{document}
$a^{2}_{i}$ $a\sp{2}\sb{i}$
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p