Math & Science ⇒ Template for specific math book
Template for specific math book
http://books.google.hr/books?id=TtKyqoz ... CEgQ6AEwAw
I like this style very much but dont know how to write it.
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
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.)
-- Zapp Brannigan, Futurama (season 1, episode 4)
Template for specific math book
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]
- Stefan Kottwitz
- Site Admin
- Posts: 10328
- Joined: Mon Mar 10, 2008 9:44 pm
Template for specific math book
The book you mentioned has been published by the AMS, so I would use the class and styles they provide, such as

Stefan
Re: Template for specific math book
Could you provide link for other professional and nice looking templates ?
- Stefan Kottwitz
- Site Admin
- Posts: 10328
- Joined: Mon Mar 10, 2008 9:44 pm
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Template for specific math book
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}
\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}
-- Zapp Brannigan, Futurama (season 1, episode 4)
Template for specific math book
Yes. I had to put in same folder other .tex files which were needed.svend_tveskaeg wrote:Wooow! This code is a mess. As Stefan said, have you actually tried to compile it yourself?
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 ?
- Stefan Kottwitz
- Site Admin
- Posts: 10328
- Joined: Mon Mar 10, 2008 9:44 pm
Template for specific math book
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.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 ?
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
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Template for specific math book
-- Zapp Brannigan, Futurama (season 1, episode 4)