TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder how to make every superscript level smaller than each other.

Like, 2^{2^{2^{2^{2^{2^{2}}}}}} makes the first superscript smaller, but the rest of the superscripts the same size as the first one.

I have done this first on wikipedia, but of course it doesn't go like I want it to go like.

share|improve this question
    
Welcome! I assume the underlying point here is that stuff can only usefully be made so small. After that, making it smaller just makes it illegible and no longer helps to clarify the meaning. – cfr Feb 1 at 2:40
    
This ought to be a duplicate of tex.stackexchange.com/questions/144490/… but you ask that things keep getting smaller, but you shouldn't want that:-) – David Carlisle Feb 1 at 8:02
1  
If it really is just 2s, you could always use up-arrrow notation ( en.wikipedia.org/wiki/Knuth's_up-arrow_notation ), which avoids the readability problem entirely. – BMWurm Feb 1 at 13:08

You could use \scalebox command from the graphicx package and make a macro that does this. But, as mentioned by @cfr in the comments to your question, readability very quickly becomes an issue.

\documentclass{article}
\usepackage{graphicx}

\newcommand\aesuper[2][0.90]{^{\scalebox{#1}{$\scriptstyle#2$}}}

\begin{document}

\[
  2\aesuper[1]{2\aesuper{2\aesuper{2\aesuper{2\aesuper{2\aesuper{2}}}}}}
\]

\end{document}

enter image description here

share|improve this answer

Or \resizebox of the same package graphicx ...

\documentclass{article}
\usepackage{graphicx}
\newdimen\antes
\setlength{\antes}{4em}
\gdef\mb#1{\resizebox{\antes}{!}{#1%
\global\addtolength{\antes}{-.15\antes}}}
\begin{document}
 $\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{%
\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}}}}}}}}}}}$
\end{document}

mwe

share|improve this answer
1  
Note that \global\addtolength doesn't work if calc is loaded. – egreg Feb 1 at 7:26
    
@egreg Good to know. I tested that \dimexpr work here (for example, \dimexpr-.15\antes-.6em to produce a nice mirror effect) but I was not aware of packages as calc or pgf . – Fran Feb 1 at 11:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.