I'm desperately trying to type this huge equation in an A4 page.

Any reasonable solution would be ok (including splitting the equation). The problem is that the total width is 800cm. Hence this would require more than 20 lines for a single equation (considering A4 width is 29.7cm).

  • 8
    where are you publishing this? International billboard of mathematics? – percusse Jul 17 '17 at 13:51
  • 7
    You can copy and paste your document here. The web site you are using requires a logon. – John Kormylo Jul 17 '17 at 13:58
  • 8
    This is obviously a joke, isn't it? – egreg Jul 17 '17 at 14:01
  • 9
    It's outrageous but still a valid question. Please stop voting to close everything. – percusse Jul 17 '17 at 14:37
  • 6
    Just for curiosity, could you explain to us the meaning of such a monster? – CarLaTeX Jul 17 '17 at 21:17

The following (technically) works with your dropbox-file. I just excluded your formula from the example. As https://tex.stackexchange.com/users/9057/schweinebacke mentioned your formula is bigger than the maximum width so you need to introduce line breaks. It is quite easy to find the spots with syntax highlighting.



1=1\forall 1 \\\textup{Your formula here}


Your might try gather instead of align in case you prefer a centered alignment.

Here is an image of the beauty: enter image description here

So if anyone knows how to extend \maxdimen, this would be welcomed. Compare What's the absolute largest paper size permissible with pdflatex?. Note 16383.99999pt*2.54/72.27*cm/pt≈5.75831741726858m.

  • Can you include the result screenshot so that it's not taken as a tongue-in-cheek answer? – percusse Jul 17 '17 at 14:44
  • @percusse Done. But I needed to reduce the resolution. – CampanIgnis Jul 17 '17 at 14:49
  • 1
    No worries. It's probably not meant for reading anyways – percusse Jul 17 '17 at 14:50
  • 2
    @CampanIgnis A nice wallpaper :) – samcarter_is_at_topanswers.xyz Jul 17 '17 at 15:22
  • 1
    In PDF 1.5. From AFAIK PDF 1.6 you can change the unit size. I've never testes, how to do so using pdftex. But I think this is theory only. Because it doesn't really matter: You cannot have paper or text area width of 800cm with TeX. – Schweinebacke Jul 17 '17 at 15:51

enter image description here

The hardest part is getting rid of the spurious {} groups, without that you would just need simple inline definitions as in

Suggestion for automatic alignment of large equations

Use $\z ... \zstop $ not begin{equation}...\end{equation} otherwise the math is unchanged.

\def\sqrt#1{(#1)^{{1\over2}}% image uses bad version: \def\sqrt#1{1/(#1)}
\def\mathrm#1{\begingroup\fam0 #1\endgroup}
\let\!\relax% they should never have been there

  • The square root is not the reciprocal. – egreg Jul 17 '17 at 21:10
  • 3
    @egreg minor details:-) \def\sqrt#1{(#1)^{{1\over2}} – David Carlisle Jul 17 '17 at 21:12
  • 6
    Not that anybody would notice. ;-) – egreg Jul 17 '17 at 21:12

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