Math & ScienceTemplate for specific math book

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
vejn
Posts: 8
Joined: Wed Jan 30, 2013 12:59 pm

Template for specific math book

Post by vejn »

Can someone send me or give link for latex templates for books like

http://books.google.hr/books?id=TtKyqoz ... CEgQ6AEwAw

I like this style very much but dont know how to write it.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Template for specific math book

Post by svend_tveskaeg »

Welcome to the board.

Not to be rude but this is not a "do it for me" forum; I an sure you will get help if you show some initiative yourself.

If everything else fails, you can try to contact AMS and ask if they can help you. (A good guess would be to ask Barbara Beeton in this case.)
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
vejn
Posts: 8
Joined: Wed Jan 30, 2013 12:59 pm

Template for specific math book

Post by vejn »

Oh, I had written a "small book" in this format
But I would like to see this specific math textbook template.
I know enough to write in latex. I would like to see some template just to learn some faster/better/optimized way. Book in link is written professionaly.

Code: Select all

[size=50]\documentclass[a4paper,twoside,12pt]{memoir}
\usepackage[cp1250]{inputenc}
\usepackage[languagenames,fixlanguage,croatian]{babelbib}
\usepackage[pdftex]{hyperref} 
\usepackage[xetex]{hyperref}
\usepackage{txfonts} 
\usepackage[pdftex]{graphicx} 
\usepackage[xetex]{graphicx}
\newcommand{\ds}{\displaystyle}
\newcommand{\mA}{{\mathbb A}}
\newcommand{\mB}{{\mathbb B}}
\newcommand{\mC}{{\mathbb C}}
\newcommand{\mM}{{\mathfrak M}}
\newcommand{\mD}{{\mathbb D}}
\newcommand{\mN}{{\mathbb N}}
\newcommand{\mQ}{{\mathbb Q}}
\newcommand{\mP}{{\mathbb P}}
\newcommand{\mR}{{\mathbb R}}
\newcommand{\mS}{{\mathbb S}}
\newcommand{\mZ}{{\mathbb Z}}
\newcommand{\cA}{{\mathcal A}}
\newcommand{\cb}{{\mathcal B}}
\newcommand{\cc}{{\mathcal C}}
\newcommand{\cE}{{\mathcal E}}
\newcommand{\cF}{{\mathcal F}}
\newcommand{\cG}{{\mathcal G}}
\newcommand{\cH}{{\mathcal H}}
\newcommand{\cI}{{\mathcal I}}
\newcommand{\cJ}{{\mathcal J}}
\newcommand{\cL}{{\mathcal L}}
\newcommand{\cM}{{\mathcal M}}
\newcommand{\cO}{{\mathcal O}}
\newcommand{\cP}{{\mathcal P}}
\newcommand{\cT}{{\mathcal T}}
\newcommand{\cU}{{\mathcal U}}
\newcommand{\cV}{{\mathcal V}}
\newcommand{\cZ}{{\mathcal Z}}
\newcommand{\norm}[1]{\left\Vert #1 \right\Vert}
\pagestyle{headings}
\title{ Spectral theory}
\author{}
\advisor{} 
\date{2012}  
\begin{document}
\chapter[][]
\section[][]{}
\end{document}[/size]
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Template for specific math book

Post by Stefan Kottwitz »

Did you test it? This cannot work because you load several packages twice with different options. Decide, if to use XeTeX or pdfTeX, or let the packages automatically detect which normally works fine.

The book you mentioned has been published by the AMS, so I would use the class and styles they provide, such as amsbook, amsproc or amsart. Perhaps have a look at the AMS-LaTeX page.

Stefan
LaTeX.org admin
vejn
Posts: 8
Joined: Wed Jan 30, 2013 12:59 pm

Re: Template for specific math book

Post by vejn »

Thx for this amsbook and amsart.
Could you provide link for other professional and nice looking templates ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Template for specific math book

Post by Stefan Kottwitz »

Have a look at www.latextemplates.com.

Stefan
LaTeX.org admin
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Template for specific math book

Post by svend_tveskaeg »

Wooow! This code is a mess. As Stefan said, have you actually tried to compile it yourself?

As a starter, to make the code somewhat more readable, you can use

Code: Select all

\newcommand*\mathsetfont{\mathbb}
\newcommand*\DeclareMathSet[1]{%
  \expandafter\newcommand\csname set#1\endcsname{\mathsetfont{#1}}
}
\DeclareMathSet{N}
and so forth. Then you can write, e.g., \setN for the set of natural numbers.

Here i a MWE:

Code: Select all

\documentclass{article}

\usepackage{amssymb}

\newcommand*\mathsetfont{\mathbb}
\newcommand*\DeclareMathSet[1]{%
  \expandafter\newcommand\csname set#1\endcsname{\mathsetfont{#1}}
}
\DeclareMathSet{N}
\DeclareMathSet{R}

\begin{document}
As usual, $\setN$ is the set of natural numbers and $\setR$ is the set of real numbers.
\end{document}
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
vejn
Posts: 8
Joined: Wed Jan 30, 2013 12:59 pm

Template for specific math book

Post by vejn »

svend_tveskaeg wrote:Wooow! This code is a mess. As Stefan said, have you actually tried to compile it yourself?
Yes. I had to put in same folder other .tex files which were needed.
But I like more one .tex file for book which does not read other .tex.

Thx for this. I'm reading latex tutorial script but I would like to see how is done better way and article/book templates and the best for this.
Stefan K,
on http://www.latextemplates.com there are book/thesis templates but main.tex needs other thesis.cls, .sty, Bibliography.bib ... files.
Is this "dress code" when creating books/articles ?
Why there is not one single .tex ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Template for specific math book

Post by Stefan Kottwitz »

vejn wrote:main.tex needs other thesis.cls, .sty, Bibliography.bib ... files.
Is this "dress code" when creating books/articles ?
Why there is not one single .tex ?
LaTeX is a modular system. This has many advantages, for example you can seperate functionality, it can be better maintained, code can be reused. LaTeX, classes and packages are developed and maintained by hundreds or even more than a thousand authors. Authors usually maintain one or several packages, so it's good to have them seperate.

As an author, you can chose between dozens of classes and many hundreds of package. Just specify which to use by a command.

Would you really like to have a single .tex file, where a class, packages, bibliography etc. are integrated? What if you decide to change the class or packages?

In case you are not convinced yet, the best way to learn what is better: try working with one big file. Copy class and package codes into the file, and work with this document. It would be great if you would tell us your personal opinion then.

Stefan
LaTeX.org admin
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Template for specific math book

Post by svend_tveskaeg »

As Stefan said, large chunks of code becomes (almost infinitely) clearer when it is devided into different parts. Furthermore, bibliographies, e.g., are created using BibTeX which is a separate program.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply