Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to align without using amsmath. The other question you mention was about texinfo which only accepts tex syntax rather than latex.
...and...
Quote:
Originally Posted by Faki
Have also tried align and split. That also failed.
As with your other thread, you provide no details. Saying "also failed" says nothing, and you don't say WHY you don't want to use amsmath either, what version/distros of things you're using, etc.
Again: you were given a link to the documentation, along with a specific link to your exact error. Did you read/follow it??
I am using Ubuntu 18.04 LTS. And TeX 3.14159265 (TeX Live 2017/Debian).
When using multiline, align, aligned, flalign, I get
Code:
: LaTeX Error: Environment undefined.
Is there no built-in equation alignment in latex? Many things I have read from documentation always relates to amsmath, rather that built-in features in latex.
When using multiline, align, aligned, flalign, I get
Code:
: LaTeX Error: Environment undefined.
This really tells us nothing. What is the command structure used (code) for each of those, and exactly what are the messages.
Each of those functions has its own syntax for calling and returning and you have to satisfy the syntax when calling them, as well as the environment.
I don't use Tex, LaTex, etc but coding experience tells me you are not using the proper structure of environment and code for that error to pop up.
Comment out the "equation" environment. When I have that uncommented, I get an error message squawking about nested equation environments. The equations, as written, don't seem to want to work in the "equation" environment, anyway, so I'd simply stick with "flalign/flalign*".
The "flalign" error has to do with you beginning an "flalign*" environment but ending it with "flalign" instead of "flalign*". ("flalign" is a prefect acceptable environment but you can't mix 'em in the same set of equations.)
I thought that those ampersands before the double backslashes might be a problem. Looks like is affects the indentation of the equations. Works without it as well (but indented from the left margin a bit). Use them or lose them; your call on style. (Hey! I learned something today!)
I am using Ubuntu 18.04 LTS. And TeX 3.14159265 (TeX Live 2017/Debian). When using multiline, align, aligned, flalign, I get
Code:
: LaTeX Error: Environment undefined.
Is there no built-in equation alignment in latex? Many things I have read from documentation always relates to amsmath, rather that built-in features in latex.
Again, *WHY* don't you want to use amsmath?? What is the problem in using it??
And you were given a link to latex docs, which deal with the error, tell you what causes it, and how to fix it. While it does mention amsmath, it is as an EXAMPLE...in your case, replace it with what you ARE missing and/or how it's written.
Have found that AMS-LaTeX is included as part of the LaTeX collection, and one does not have to download or install it separately. So it is now ok to use it. Thank you so very much. Noticed that the problem was with &\\, which needs to be replaced with \cr
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.