@Nasser -- You have \underset{n=1}{\overset{\infty }{\sum }}. A more usual form of this expression is \sum_{n=1}^{\infty} or, if not in display mode, \sum\limits_{n=1}^{\infty}. Did you write this yourself, or was it created by some other (automated) method?
@barbarabeeton This was auto-generated by computer algebra system Maple. I have thousands of such long equations that overflow the edge of the page and no way to break them. I can't do this manually, since each time I run my program, they will be overwritten by new output from Maple and Mathematica Latex output. Here is the current version shorturl.at/clFPR and the PDF is there so you can see. Thanks.
The main problem is this: CAS can generate one equation of this form
possible term here * ( ... long expression here ...)
And it is the parentheses around the whole thing that prevents it breaking automatically.
I think the page letter size should have been made wider. 8.5 inches is just not wide enough for math. But too late to change paper size now. This is something that should have been fixed 100 years ago.
I tried once to do landscape mode document, instead of default Portrait , but it did not look good.
@Nasser If the equations are of a particular form, perhaps you could add specialized breaking heuristics? I expect this is customizable, like everything else.
@Nasser well every country except 1 (or perhaps 2?) stopped using letter size paper years ago although typeset math journals traditionally are typeset in much smaller page sizes. But do you print your document or is it pdf-only? in which case you should not be constrained to any paper size.
@DavidCarlisle thanks! I'll just have to add \displaystyle\let\left\relax\let\right\relax then to each equation to make it work. This is much better. I can paste \displaystyle\let\left\relax\let\right\relax before each one. this will work! Thank you.
@DavidCarlisle thanks! I actually remembered long time ago you gave this trick, but could not find it any more when I searched for it. I'll go an try it now and see how it works on my current document and will let you know.
@DavidCarlisle for this example, Maple uses \left\{ how should I change you code to handle this? as it is still one long equation going over the edge. Thanks.
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
$\displaystyle\let\left\relax\let\right\relax
\left\{\left\{w(x,y)\to c_1\left(\frac{b e^{-\lambda x}}{a \lambda }-\frac{e^{-\beta y}}{\beta }\right) \exp \left(-\frac{e^{-\lambda x} \left(e^{-\beta y}\right)^{-\frac{\delta +\gamma }{\beta }} \left((\beta -\delta ) \left(c \gamma \left(e^{-\beta y}\right)^{\frac{\delta }{\beta }} \left(\frac{a \lambda e^{\l…
@DavidCarlisle Ok. Should I keep your
\let\oldfrac\frac
\renewcommand\sqrt[2][2]{(#2)^{\oldfrac{1}{#1}}}
\def\frac#1#2{(#1)/(#2)}
at the top of the file?
@barbarabeeton oh, don't worry, I don't really participate in editor wars, too, I won't ever mean anything about that bloated OS called editor by some seriously :)
When hyperref is building the bookmarks. How does it know which level each type has?
Reason for asking: Attempting to hack pdfpages addtotoc to include a non numbered entry to the toc. I have it working, but it gets the wrong level in the bookmarks.
My solution is to use a custom section like entry and have it do stuff.
@DavidCarlisle I removed in the autoinst script the quotes in two places and now it works. I wonder if this is an otfinfo (on windows) or an autoinst bug.
@UlrikeFischer windows command line is a pain (all the troubles I had getting curl to work. If autoinst can avoid the problem more chance of it being fixed there)
@UlrikeFischer I can't see how the post one can fail, OS/2 might be an issue in some commandlines but I don't think it would be a problem in any *nix shell, and if it works on windows,....
@DavidCarlisle I don't think that it is a command line thing. It is the quotes in the arguments, otfinfo seems not to strip them otfinfo -T 'post' calibri.ttf fails, and all similar calls where a string argument is expected.
@UlrikeFischer yes but with a unix shell the commandline shell removes the quotes so the application never sees them (which is why you cab use post or 'post' or "post" but the windows commandline passes the quoted argument to the application so it has to handle them itself
@HenriMenke There are bugs in the updated mathematical engine of pgf, I think. Try e.g. \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \pgfmathparse{gcd(4,9)}\pgfmathresult \end{document}
As soon as I know how that works I will create an actual issue. (I wish there was a transparent manual for how to use all this GitHub stuff, but meanwhile I was able to clone the official repository. I just wish these things were a bit more intuitive.)
@DavidCarlisle people should stop using native thingies with emulated thingies and emulated thingies with native thingies, also native thingies with native thingies, and probably emulated thingies with emulated thingies as well. :)
@FaheemMitha texdoc errorlog starts 10 March 1978 although presumably there was code before that if it was fixed on that date
@PauloCereda that leads to further questions, which order do you read them in, which takes priority if they are in conflict, can you read them in parallel on a split screen, ...
@FaheemMitha Well one is more general, and gives a sense of how all the various approaches work. The second deals with l3 specifically. It seems very sensible to read both and in date order.
I am trying to create a command that the user can enter keys for values. How can I create one, for example:
\myparbox[width=50,height=10,color=blue, align=left -10px]{}
I recently noticed on my thesis (template here) that words starting with upper case letter are not hyphenating. Then, I researched and found about the usage of \uchyph=0 How do I prevent TeX from hyphenating acronyms? Then, I tough some package mine was using it, but I could not find any one of t...
@FaheemMitha Almost all, at least: there are one or two parsers for doing keyvalue pairs on a line by line basis. But almost everyone expects foo1 = a, foob = b to be treated as two keyval pairs
@marmot Please flag any content that you feel is abusive: applies in general, as it's the only way to see a pattern of behaviour (and for that to be available to SO staff as well as local mods)
@JosephWright I did that. The pattern is always: 1. "you stole my code!" After this is ruled out: 2. "you stole my idea" (instead of saying "yes, you're right, your code is not from my post") and after this is ruled out, other accusations come, including being called "liar". (And this user does get "inspired" by other posts they do not mention.)
@Nasser -- Sadly, the link shorturl.at/clFPR simply connects me to the shortener page, not to anything useful. But I have to say that using \overset and \underset for limits is terrible practice, and whoever caused a computer algebra system to do that should be ashamed of themselves.
@barbarabeeton sorry about the link not working. will not use short URL again. Here it is again. 12000.org/my_notes/pde_in_CAS/maple_2019_and_mma_12/index.htm and the PDF file link is at the top left of the page. After about page 130, you'll start seeing the CAS latex output. Below each yellow box. Most overflow the page. Maple Latex output is not very good. Maplesoft does not seem to maintain Latex any more. I think they went to different technology than Latex many years ago.
@Nasser -- That is indeed pretty bad. I'm not able to interpret the meaning of anything, but the presentation in a number of cases looks questionable. It also looks like there's a blank line between the end of every yellow box and the display that follows it -- vertical spacing is greater above than below the displays. Regarding Maple, maybe you could find some other LaTeX users, band together, and complain. (Or at least find out what they're doing.)
@barbarabeeton there was lots of complaining about Latex in Maple. It is a lost case. Here are some links FYI mapleprimes.com/posts/43828-Better-LaTeX-Output-From-Maple and mapleprimes.com/posts/… and many more. myself have no experience to fix Maple Latex output manually as I am not very good in Latex internals to be able to do this.