Generallatex online - no centered equations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
blondecifi
Posts: 1
Joined: Sun May 01, 2016 10:55 am

latex online - no centered equations

Post by blondecifi »

hope this would not be too much silly question..

I'm currently using latex online, is it possible to work with packages or any idea how to see whether they are already running or not ?

I'm trying to get an equation* not numbered, centered but without success.
I was reading about this example but it is not working

Code: Select all

\documentclass{article}
\usepackage{nccmath}
\begin{document}
\begin{fleqn}
    \begin{align*}
    a&=b\\
    &=c
    \end{align*}
\end{fleqn}
Which implies
    \begin{equation}
    a=c
    \end{equation}
But
\begin{fleqn}
    \[ 0\ne 5 \]
And
    \[ 2\ne 3 \]
\end{fleqn}
\end{document}
Thanks in advance for useful contents, happy 1st !

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

latex online - no centered equations

Post by Johannes_B »

Your example does not contain any equation* environments.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10361
Joined: Mon Mar 10, 2008 9:44 pm

latex online - no centered equations

Post by Stefan Kottwitz »

Simply use equation*, such as:

Code: Select all

\begin{equation*}
  a=c
\end{equation*}
Or shorter, \[ ... \]:

Code: Select all

\[
  a=c
\]
Your example above used a fleqn environment. fleqn stands for flushed left equations, that's why it's not centering.

Stefan
LaTeX.org admin
Post Reply