Text FormattingHorizontal aligning superscript & subscript before a symbol

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Horizontal aligning superscript & subscript before a symbol

Post by cgnieder »

Ah, that was a misunderstanding on my part. Here you go:

Code: Select all

\documentclass{article}
\usepackage[version=3]{mhchem}
\begin{document}
\ce{^{$k$}_{$l$}S}
\end{document}
site moderator & package author

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Horizontal aligning superscript & subscript before a symbol

Post by cgnieder »

complexbuttons wrote:I cannot troubleshoot why \ch doesn't work, because the error message is too long to fit in the notification window, and it has no scrollbar. The preamble has \usepackage{chemmacros}.
The error message is (like all error messages) written to the log file. You can open it in an editor and have a look.

Regards
site moderator & package author
complexbuttons
Posts: 7
Joined: Sun Aug 19, 2012 10:41 pm

Horizontal aligning superscript & subscript before a symbol

Post by complexbuttons »

Thank you for your help! Unfortunately now prescript again doesn't work, and the error file is 56 k long.

EDIT: In fact, OooLaTeX has completely stopped working, always producing an error message.

EDIT 2: Removed tensor package from preamble. It prevented even 1+1 from working. Now the 1+1 and even \prescript do work. I managed to get the big character as non-italics! Thank you very much!
Attachments
tmpfile.log
(55 KiB) Downloaded 253 times
Post Reply