Page LayoutTemplate

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Template

Post by Lumy »

Hello,

how do I get this template?

Chapter 1

1.1 Introduction

1.2 Solved Problems

1.2.1 -------
Solution. ----------
1.2.2 ------------
Solution -----------
1.2.3 --------
Solution --------

1.3 Proposed Problems
1.3.1-------------
1.3.2-------------
1.3.3-------------

Answer
\boxed{1.3.1}
\boxed{1.3.2}
\boxed{1.3.3}

Chapter 2

2.1 Introduction

2.2 Solved Problems

2.2.1 -------
Solution. ----------
2.2.2 ------------
Solution -----------
2.2.3 --------
Solution --------

2.3 Proposed Problems
2.3.1-------------
2.3.2-------------
2.3.3-------------

Answer
\boxed{2.3.1}
\boxed{2.3.2}
\boxed{2.3.3}


Thanks for any help.

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
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: Template

Post by Stefan Kottwitz »

Hi,

since you would like to use chapters, I recommend using a class which is supporting chapters, such as book or report (though I would use a KOMA-Script version such as scrbook or scrreport) or memoir.

Which one to choose, depends on your further requirements, for example if you would like to have two-sided printing and chapters always beginning on right pages etc.

Stefan
LaTeX.org admin
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Template

Post by Lumy »

Thank for your message Stefan.

I use "answer" package for this template with the following code:

Code: Select all

\documentclass[12pt,a4paper]{book}
\usepackage{answers}


\Newassociation{solution}{Soln}{solutions}

\renewcommand{\Solnlabel}[1]{$\fbox{\textbf{#1.}}$}

%\newtheorem{ex}{}

\newtheorem{ex}{}[section]

\newtheorem{ex1}{}[section]
\newtheorem{sol}{Solution}[section]



\begin{document}

\chapter{First}


\Opensolutionfile{solutions}[ans1]

\section{Introduction}

\section{Solved Problems}


\begin{ex1}
ccccccccccccc
\end{ex1}



\begin{sol}
\end{sol}


\begin{ex1}
\end{ex1}\begin{sol}
\end{sol}

\section{Proposed Problem}



\begin{ex}
aaaaaaaaa
\begin{solution}
aaaaaaaaaaaaaa
\end{solution}
\end{ex}
\begin{ex}
bbbbbbbbbbb
\begin{solution}
bbbbbbbbbbb
\end{solution}
\end{ex}
\Closesolutionfile{solutions}


\section{Answer}
\input{ans1}
\end{document}
Well, now I want to appear:
1.2.1 ........
Solution .....
1.2.2.........
Solution......
NOT
1.2.1 ........
Solution 1.2.1 .....
1.2.2.........
Solution 1.2.2 ......

ie, not number after "Solution".

How can I solve this?

Thanks in advance.
Post Reply