Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Quick problem with Latex

  1. Mar 10, 2006 #1


    User Avatar
    Science Advisor
    Homework Helper


    I'm wanting to write up a small paper so I've installed various Latex things on my computer, I have the full Miktex package and I have TexnicCenter, I want to write something like:

    [tex]\text{For all x, y} \, \in \mathbb{N}[/tex]

    But the mathbb bit doesn't seem to be working, I can get mathrm and mathbf, but these aren't the fonts I want, can anyone help me please.
  2. jcsd
  3. Mar 10, 2006 #2

    matt grime

    User Avatar
    Science Advisor
    Homework Helper

    make sure you've got


    in the preamble, and plenty of other pckages.

    google to find out which package provides mathbb ot make sure i've got it right.
  4. Mar 13, 2006 #3
    You could use Open Office Maths. Its quick, easy and free. http://www.openoffice.org/" [Broken]
    Last edited by a moderator: May 2, 2017
  5. Mar 13, 2006 #4


    User Avatar
    Science Advisor
    Homework Helper

    But quite painful to do full maths papers, I've found it useful to do maths homework but anything like papers or coursework it just doesn't have the functionality for.

    Plus it doesn't actually have all the symbols I require most the time and I end up depending on Mathematica fonts.

    Anyway thanks matt, I think I've about worked it out but I spotted a mistake in my proof so I've been trying quite desperately to patch it up.
    Last edited by a moderator: May 2, 2017
  6. Mar 13, 2006 #5
    Hey Zurtex, you can try http://www.dessci.com/en/products/mathtype/
    MathType is quiet easy to learn and
    has several advanced functions.

    Mathtype can convert to [tex]\LaTeX[/tex], MathML,...or you can just inline your equations as simple images. It is compatible with Microsoft Word, and you can later distill your documents into PDF files.
  7. Mar 14, 2006 #6
    As a bit of inspiration, here are an old .sty file and a template i used some time ago. place both files quoted below in the same directory and compile. works fine with my MikTeX (do note that not all enviroments in the style file work!, but the template compiles fine).

    First here is "projects.sty":
    Code (Text):

    % Contents: Commands, package loading and page settings
    % Id: projects.sty
    % By Bo Lind

    % Page setup and page style
    \setlrmarginsandblock{1.5in}{0.8in}{*} % Sets the inner and outer margins
    \setulmarginsandblock{1in}{1.3in}{*} % Sets the top and bottom margins


    \setlength{\droptitle}{3cm} % Sets the length before the title
    \aliaspagestyle{title}{empty} % no page number on the front page

      \vskip 30em

    \posttitle{\par\end{center}\vskip 0.5em}
        \large\bfseries \vskip 8em%

    \renewcommand{\cftchapterpresnum}{\chaptername\ }


    \captiondelim{. }

    %\tightlists % suppress space between list entries

    \renewcommand{\baselinestretch}{1.1} % 1.1 line-distance

    \usepackage[danish]{varioref} % More inteligent refrences.
    \usepackage[round]{natbib} % Use author-date citation.

    % Fonts and layout

    \usepackage[latin1]{inputenc} % Input encoding. Makes it possible to type special characters.
    \usepackage[danish]{babel} % Danish hyphenation and changes Figures, Chapter etc to Danish.
    \usepackage{lmodern} % Makes the Latin Modern fonts the default for LaTeX.
    \usepackage[T1]{fontenc} % Standard font encoding.
    \usepackage{textcomp} % TS1-encoding symbols.

    \usepackage{amsfonts} % Better math fonts.
    \usepackage{amsmath} % Provides various features to facilitate writing math formulas and to improve the typographical quality of their output.

    \usepackage{bm} % Blackboard Bold font.

    \usepackage{units} % To typeset units use the command \unit{m^2}.

    % Enviroments, theorems etc.






    % Useful commands
    %------------------------------------------------------------------------- Misc


    %---------------------------------------------------------- Figure preferences:
    % The following four numbers are to make TeX more likely to put figures on the
    % same page rather than on a separate figures page. Can tinker with these, but
    % make sure floatpagefraction<topfraction.
    % Values recommended by the web page I found were 0.15, 0.85, 0.65, 0.60. The
    % default values are 0.2, 0.7, 0.3, 0.5
    %---------------------------------------------------------------------- Figures


    \newlength{\marginwidth} % Let a length to use for margin figures

    % \begin{adjustwidth*}{0in}{-\marginwidth} ... \end{adjustwidth*} needs to be
    % placed OUTSIDE the table enviroment to work, while it can be placed INSIDE
    % in the figure enviroment. (In memoir).

    \newcommand{\fig}[3]{ %\fig{filename}{caption}{optional commands}
        \figcaption{#2} %
        \label{fig:#1} %

    \newcommand{\sidefig}[3]{ %\sigfig{filename}{caption}{optional commands}
        \caption{#2} %
        \label{fig:#1} %

    %---------------------------------------------------------------------- Physics

    \newcommand{\mean}[1]{\langle #1 \rangle}

    %------------------------------------------------------------------------- Sets



    % Other set commands:
    % \complement
    % \setminus
    % \in

    \newcommand{\map}[3]{\ensuremath{#1\colon #2\to #3}}

    %---------------------------------------------------------------------- Vectors

    \newcommand{\ket}[1]{\, |#1\rangle}
    \newcommand{\bra}[1]{\langle #1 |\,}



    %------------------------------------------------------------------ Derivatives
    \newcommand{\D}[2]{\frac{d #1}{d #2}}
    \newcommand{\DD}[2]{\frac{d^2 #1}{d #2^2}}
    \newcommand{\PD}[2]{\frac{\partial #1}{\partial #2}}
    \newcommand{\PDD}[2]{\frac{\partial^2 #1}{\partial #2^2}}

    %-------------------------------------------------------------------- Integrals

    here is template.tex
    Code (Text):



    \title{Title of the project}
    \author{xxxxx xxxxxx \textnormal{, \textsc{cpr no. xxxxxx}}}
    \published{Fysisk Institut, Syddansk Universitet}
    %\published{Physics Department\\ University of Southern Denmark}




    %  Max en side der sammenfatter, hvad rapporten handler om og hvilke konklusioner, der drages i rapporten


    \forall x,y\in\N



    %In \cite{qriffiths:quantum} ...


  8. Mar 16, 2006 #7


    User Avatar
    Science Advisor
    Homework Helper

    Same problem with Mathtype as I have with open office, just doesn't work for writting lots of stuff. Mathtype is even worse really because of its wysiwyg interface.

    Thanks Triss, I'll try it out :smile:
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook