## LaTeX forum ⇒ Text Formatting ⇒ Vertical Space using Overset on a Subscript

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
clarinetist
Posts: 11
Joined: Sun Nov 18, 2012 8:20 pm

### Vertical Space using Overset on a Subscript

Hi,

This is my first post (plus I'm kinda new to LaTeX) - hope that I've posted this in the right place. Here's the code I've used:
\documentclass {article}\usepackage{amsmath, MnSymbol, wasysym, amsthm, colonequals, mathtools, tensor, fixltx2e}\usepackage{dsfont}\usepackage[margin=2 cm]{geometry}\textwidth 16.59cm\textheight 21.94 cm\begin{document}\\ $Z_{x:\overset{1}{\overline{n}|}}$\end{document}

Here's what it produces:
Capture.PNG (1.66 KiB) Viewed 1502 times

I want the part that starts with the x to be treated as a regular subscript, i.e. the problem is that there's too much vertical space. I've done a lot of searching and haven't found a solution to this problem.

Thanks for any help!

cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:
Hi clarinetist,

Welcome to the LaTeX community!

How should it look like? It seems as if you're faking a fraction, but that's probably not it?

BTW: your MWE can still be shortened:
\documentclass{article}\usepackage{amsmath}\begin{document}  $Z_{x:\overset{1}{\overline{n}|}}$\end{document}

I take it the \\ in the MWE is a leftover? Anyway, I suspect you're using it wrongly. It should rarely be necessary to use \\ anywhere else than in tables and arrays...

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

clarinetist
Posts: 11
Joined: Sun Nov 18, 2012 8:20 pm
Hi cgnieder,

Thanks for the blurb about the \\. This is what I want (minus the bar on top of the Z:
Capture.PNG (737 Bytes) Viewed 1479 times

cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:
clarinetist wrote:Hi cgnieder,

Thanks for the blurb about the \\.

You wouldn't believe how many people use it the wrong way...

There should be better ways of doing this and it still needs tweaking but it might be a start:


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim