Math & ScienceAMSmath is not working, but why ???

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
12321
Posts: 7
Joined: Sun Aug 22, 2010 8:33 pm

AMSmath is not working, but why ???

Post by 12321 »

Hey guys,

I'm pretty new to LaTeX, so I can not figure out why AMSmath is not working.
I can not use e.g. \mathscr{N}. In the PDF is just a normal N.

Code: Select all

\setlength{\mathindent}{0mm}
and

Code: Select all

\makeatletter
\setlength{\@mathmargin}{0mm}
\makeatother
don't work neither.

My "settings":

Code: Select all

\documentclass[a4paper,12pt,titlepage,fleqn]{article}
    \usepackage{natbib}
    \usepackage[ngerman]{babel}
    \usepackage[latin1]{inputenc}
    \usepackage{calc}
    \usepackage[T1]{fontenc}


    \usepackage{setspace}
        \onehalfspacing
    \setlength{\parskip}{1.5ex}
    \setlength{\parindent}{0cm}
    \renewcommand{\thefootnote}{\arabic{footnote}\hspace{2.0mm}}
    \setlength{\footnotesep}{2.5ex}
    \setlength{\mathindent}{0mm}


    \setcounter{secnumdepth}{3}
    \setcounter{tocdepth}{3}
    \usepackage[dvips]{graphicx}
    \graphicspath{{./pics/}}
    \DeclareGraphicsExtensions{.eps}


    \usepackage{color,colortbl}
    \definecolor{Hellgrau}{gray}{0.95}
    \definecolor{Grau}{gray}{0.7}
    \definecolor{Dunkelgrau}{gray}{0.5}
    \definecolor{MarineBlau}{rgb}{0, 0, 0.55}
    \definecolor{HellBlau}{rgb}{0.59,0.74,1}


    \usepackage{longtable}
    \usepackage{tabularx}
        \newcolumntype{Z}{>{\centering\arraybackslash}X}
        \newcolumntype{R}{>{\raggedleft\arraybackslash}X}



    %\usepackage{algorithmic}
    %\usepackage{exscale}
    \usepackage{amsmath}
    \usepackage{amsthm}
    \usepackage{amssymb}    
    \usepackage{mathtools}

I thought maybe I could be because of these both packages
\usepackage{algorithmic}
\usepackage{exscale}
but I didn't changed anything.

Thanks for your help!
Last edited by 12321 on Wed Aug 25, 2010 7:49 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

AMSmath is not working, but why ???

Post by gmedina »

Hi,

amsmath is working as expected; you are not doing things properly. Changes to \mathindent will be noticed if the fleqn package option is used (causing all the displayed equations to be placed at a fixed indent (given by \mathindent) from the left margin, rather than centered); i.e., if you load amsmath like this:

Code: Select all

\usepackage[fleqn]{amsmath}
To use \mathscr you need to load some other package:

Code: Select all

\usepackage{mathrsfs}
for example.

Code: Select all

\documentclass{article}
\usepackage[fleqn]{amsmath}
\usepackage{mathrsfs}

\setlength\mathindent{0pt}

\begin{document}

\[ \mathscr{N} \]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
12321
Posts: 7
Joined: Sun Aug 22, 2010 8:33 pm

Re: AMSmath is not working, but why ???

Post by 12321 »

ahhh
wonderful :!:
looks perfect! Big thanks gmedina
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

AMSmath is not working, but why ???

Post by localghost »

Now that the problem is solved, please mark the topic accordingly as described in Section 3 of the Board Rules.


Best regards and welcome to the board
Thorsten
12321
Posts: 7
Joined: Sun Aug 22, 2010 8:33 pm

Re: AMSmath is not working, but why ???

Post by 12321 »

@localghost

Thank you for welcoming me. It's a great community here, I found already a lot of answers here. Hopefully I'll be learning quick, that I can contribute too.

I actually really read the board rules. They were pretty long.
Sorry I forgot about that point to mark the problem solved.
Post Reply