COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Full example of memoir documentclass preamble

• Follow

Pals,
Is it possible to get a complete example of the memoir
document class preamble? It is easier to handle that instead of
starting from scratch. Thanks in advance.
Oscar

 0

Oscar Rotava wrote:
> Pals,
>          Is it possible to get a complete example of the memoir
> document class preamble? It is easier to handle that instead of
> starting from scratch. Thanks in advance.
> Oscar

Define "the memoir document class preamble"

I usually use

\documentclass[a4paper]{memoir}

\usepackage[danish]{babel}
\usepackage[T1]{fontenc}
\usepckage{amsmath,amssymb,mathtools,bm}
\begin{document}
....
\end{document}

as my basics

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

 0

On 9 dez, 09:57, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> Oscar Rotava wrote:
> > Pals,
> > =A0 =A0 =A0 =A0 =A0Is it possible to get a complete example of the memo=
ir
> > document class preamble? It is easier to handle that instead of
> > starting from scratch. Thanks in advance.
> > Oscar
>
> Define "the memoir document class preamble"
>
> I usually use
>
> \documentclass[a4paper]{memoir}
>
> \usepackage[danish]{babel}
> \usepackage[T1]{fontenc}
> \usepckage{amsmath,amssymb,mathtools,bm}
> \begin{document}
> ...
> \end{document}
>
> as my basics
>
> --
>
> /daleif (remove RTFSIGNATURE from email address)
>
> LaTeX FAQ: =A0 =A0 =A0http://www.tex.ac.uk/faq
> LaTeX book: =A0 =A0http://www.imf.au.dk/system/latex/bog/=A0 =A0(in Danis=
h)
> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-=
bin/texfaq2html?label=3Dminxamplhttp://www.minimalbeispiel.de/mini-en.html

I wanted to know if I could find somewhere a complete example used in
printing a book, the memoir manual, for instance, or any other book.


 0

Oscar Rotava <rotava@petrobras.com.br> writes:

> On 9 dez, 09:57, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
>> Oscar Rotava wrote:
>> > � � � � �Is it possible to get a complete example of the memoir
>> > document class preamble? It is easier to handle that instead of
>> > starting from scratch. Thanks in advance.
>> > Oscar
>>
>> Define "the memoir document class preamble"
>>
>> I usually use
>>
>> \documentclass[a4paper]{memoir}
>>
>> \usepackage[danish]{babel}
>> \usepackage[T1]{fontenc}
>> \usepckage{amsmath,amssymb,mathtools,bm}
>> \begin{document}
>> ...
>> \end{document}
>>
>> as my basics
>
> I wanted to know if I could find somewhere a complete example used in
> printing a book, the memoir manual, for instance, or any other book.

the source of the memoir manual is available (on ctan, as well as in
most distributions).

the troubles arising from grabbing a whole long list of packages that
someone else has used are
(a) lots of packages take ever longer to load (my eyes glaze over after
rather little time), and
(b) if you didn't decide on a package, how are you going to know how to
use it?

we're coming back, here, to the question about listing all macros a
package defines (discussed yesterday on one of the forums, i think it
was).

i feel you're better off doing the traditional thing of deciding what
you need before you look how to implement it all.  for example, if
you're writing anything that uses non-trivial maths, lars's header is
necessary (or at least sensible ;-).  you've said nothing about what you
want to do; the memoir manual is a document describing a set of latex
macros; probably doesn't need maths at all (now that the document design
bit of it is elsewhere), but needs various documentation-related stuff.

none of us knows what packages you need for your document ... yet.  post
an outline, and there are bound to be people who can suggest a way
forward.
--
Robin Fairbairns, Cambridge

 0

On 9 dez, 12:09, Robin Fairbairns <r...@warp.cl.cam.ac.uk> wrote:
> Oscar Rotava <rot...@petrobras.com.br> writes:
> > On 9 dez, 09:57, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> >> Oscar Rotava wrote:
> >> > Is it possible to get a complete example of the memoir
> >> > document class preamble? It is easier to handle that instead of
> >> > starting from scratch. Thanks in advance.
> >> > Oscar
>
> >> Define "the memoir document class preamble"
>
> >> I usually use
>
> >> \documentclass[a4paper]{memoir}
>
> >> \usepackage[danish]{babel}
> >> \usepackage[T1]{fontenc}
> >> \usepckage{amsmath,amssymb,mathtools,bm}
> >> \begin{document}
> >> ...
> >> \end{document}
>
> >> as my basics
>
> > I wanted to know if I could find somewhere a complete example used in
> > printing a book, the memoir manual, for instance, or any other book.
>
> the source of the memoir manual is available (on ctan, as well as in
> most distributions).
>
> the troubles arising from grabbing a whole long list of packages that
> someone else has used are
> (a) lots of packages take ever longer to load (my eyes glaze over after
> rather little time), and
> (b) if you didn't decide on a package, how are you going to know how to
> use it?
>
> we're coming back, here, to the question about listing all macros a
> package defines (discussed yesterday on one of the forums, i think it
> was).
>
> i feel you're better off doing the traditional thing of deciding what
> you need before you look how to implement it all. =A0for example, if
> you're writing anything that uses non-trivial maths, lars's header is
> necessary (or at least sensible ;-). =A0you've said nothing about what yo=
u
> want to do; the memoir manual is a document describing a set of latex
> macros; probably doesn't need maths at all (now that the document design
> bit of it is elsewhere), but needs various documentation-related stuff.
>
> none of us knows what packages you need for your document ... yet. =A0pos=
t
> an outline, and there are bound to be people who can suggest a way
> forward.
> --
> Robin Fairbairns, Cambridge- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

Actually what I want to print in memoir class is a book written with
LaTeX thesis class. My company is going to hire an editor to print the
material as a book. The thesis text contains a lot of math and
different editors want me to change the text from LaTeX to Word just
because they can convert theWord text to their particular software.
But the trouble is that the text has a lot of equations, tables and
figures prepared for LaTeX and all the stuff needs to be redone in
some way. I have resisted so far making the change and keep saying
that they should print the book using the .ps file generated by LaTeX.
For this I would like to be able to adapt the material and prepare
the .ps file for any size of page required by any editor.

So, I already know the packages I need to use. The part that I am not
familiar with is the way to print in both sides of the page, page
numbering, etc.., things that were working perfectly in the thesis
class.

Oscar


 0

Oscar Rotava <rotava@petrobras.com.br> writes:

> Actually what I want to print in memoir class is a book written with
> LaTeX thesis class.

What thesis class? There is no file named "thesis.cls" in TeXlive
2010.

> So, I already know the packages I need to use. The part that I am not
> familiar with is the way to print in both sides of the page, page
> numbering, etc.., things that were working perfectly in the thesis
> class.

If you want to switch from "some class" to the memoir class, changing
"\documentclass{whatever}" to "\documentclass{memoir}" often gives a
compilable result. If not, posting the error messages you get would
increase our chance of helping. Also, reading (some of) the memoir
manual might be fruitful.

After the document compiles without errors, you can start asking
concrete questions such as "I'm using the memoir class. How do I write
the word 'Page' in front of each page number?".

--
Rasmus Villemoes
<http://rasmusvillemoes.dk/>

 0

On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
> Oscar Rotava <rot...@petrobras.com.br> writes:
> > Actually what I want to print in memoir class is a book written with
> > LaTeX thesis class.
>
> What thesis class? There is no file named "thesis.cls" in TeXlive
> 2010.

It is

\documentclass[uct10,final,twoside,openright]{ucthesis}

from the time I did my PhD thesis.

I used the same class to prepare my class notes that are now becoming
a book.

>
> > So, I already know the packages I need to use. The part that I am not
> > familiar with is the way to print in both sides of the page, page
> > numbering, etc.., things that were working perfectly in the thesis
> > class.
>
> If you want to switch from "some class" to the memoir class, changing
> "\documentclass{whatever}" to "\documentclass{memoir}" often gives a
> compilable result. If not, posting the error messages you get would
> increase our chance of helping. Also, reading (some of) the memoir
> manual might be fruitful.

I have tried that but the header stuff  didn't work properly.
Besides, since I was going to use a new class it should be nice to
have some example prepared by someone that knows
better how to use LaTeX than I know. Although I can manage to get rid
of the difficulties asking this forum, seeing a good example shows me
resources I would hardly come across alone.

Now that I have got the memoir.tex I know that it would take me quite
long to get the same result by myself.

>
> After the document compiles without errors, you can start asking
> concrete questions such as "I'm using the memoir class. How do I write
> the word 'Page' in front of each page number?".

I will do that if it happens.

Many thanks to all of you that posted some tip


 0

Oscar Rotava <rotava@petrobras.com.br> writes:

> On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>> Oscar Rotava <rot...@petrobras.com.br> writes:
>> > Actually what I want to print in memoir class is a book written with
>> > LaTeX thesis class.
>>
>> What thesis class? There is no file named "thesis.cls" in TeXlive
>> 2010.
>
> It is
>
> \documentclass[uct10,final,twoside,openright]{ucthesis}
>
> from the time I did my PhD thesis.
>
> I used the same class to prepare my class notes that are now becoming
> a book.

Knowing this helps a lot. I've never used the ucthesis class, but
I now found the readme file. Here's something to get you started:

Margins:

In memoir, there are several ways to set the margins. The details are
in chapter 2 of the manual. In order to comply with the "2) Margins
are 1.5 inches on the left, 1.0 inches elsewhere.", one would say

\setlrmarginsandblock{1.5in}{1.0in}{*}
\setulmarginsandblock{1.0in}{1.0in}{*}

\checkandfixthelayout

and use 'oneside' as an option to the document class (otherwise, 'left
margin' does not make sense). Then the width (and height) of the
typeblock will depend on the paper size.

"4) Page numbers are in the top right corner for all pages."

Chapter 7 of the manual. In short, something like

\makepagestyle{uc}
\pagestyle{uc}

should work (perhaps the \makeevenhead is not necessary if oneside is
in effect; I don't remember right now).

Creating the "Title, Approval, and Copyright pages" is probably a
little harder. Perhaps the easist thing is to try to copy the relevant
parts from the ucthesis.cls file. The macros \degreeyear etc. don't
exist in memoir, so one would need to implement whatever they do
oneself (they probably just store their argument in some internal
macro which is then used by the \maketitle, \approvalpage etc.).

--
Rasmus Villemoes
<http://rasmusvillemoes.dk/>

 0

On 9 dez, 14:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
> Oscar Rotava <rot...@petrobras.com.br> writes:
> > On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
> >> Oscar Rotava <rot...@petrobras.com.br> writes:
> >> > Actually what I want to print in memoir class is a book written with
> >> > LaTeX thesis class.
>
> >> What thesis class? There is no file named "thesis.cls" in TeXlive
> >> 2010.
>
> > It is
>
> > \documentclass[uct10,final,twoside,openright]{ucthesis}
>
> > from the time I did my PhD thesis.
>
> > I used the same class to prepare my class notes that are now becoming
> > a book.
>
> Knowing this helps a lot. I've never used the ucthesis class, but
> I now found the readme file. Here's something to get you started:
>
> Margins:
>
> In memoir, there are several ways to set the margins. The details are
> in chapter 2 of the manual. In order to comply with the "2) Margins
> are 1.5 inches on the left, 1.0 inches elsewhere.", one would say
>
> \setlrmarginsandblock{1.5in}{1.0in}{*}
> \setulmarginsandblock{1.0in}{1.0in}{*}
>
> \checkandfixthelayout
>
> and use 'oneside' as an option to the document class (otherwise, 'left
> margin' does not make sense). Then the width (and height) of the
> typeblock will depend on the paper size.
>
>
> "4) Page numbers are in the top right corner for all pages."
>
> Chapter 7 of the manual. In short, something like
>
> \makepagestyle{uc}
> \pagestyle{uc}
>
> should work (perhaps the \makeevenhead is not necessary if oneside is
> in effect; I don't remember right now).
>
> Creating the "Title, Approval, and Copyright pages" is probably a
> little harder. Perhaps the easist thing is to try to copy the relevant
> parts from the ucthesis.cls file. The macros \degreeyear etc. don't
> exist in memoir, so one would need to implement whatever they do
> oneself (they probably just store their argument in some internal
> macro which is then used by the \maketitle, \approvalpage etc.).
>
> --
> Rasmus Villemoes
> <http://rasmusvillemoes.dk/>- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

Since I have got the memoir.tex I tried to run LaTeX on it. The errors
are listed below:

memman.tex(1013): Error: ! Undefined control sequence.
memman.tex(1013): Error: ! Missing number, treated as zero.
memman.tex(1013): Error: ! Illegal unit of measure (pt inserted).
memman.tex(1013): Error: ! LaTeX Error: Missing \begin{document}.
memman.tex(1014): Error: ! Missing number, treated as zero.
memman.tex(1014): Error: ! Illegal unit of measure (pt inserted).
memman.tex(1015): Error: ! Missing number, treated as zero.
memman.tex(1015): Error: ! Illegal unit of measure (pt inserted).

memman.tex(11790): Error: ! LaTeX Error: Environment flexlabelled
undefined.
memman.tex(11790): Error: ! Missing number, treated as zero.
memman.tex(11790): Error: ! Illegal unit of measure (pt inserted).
memman.tex(11798): Error: ! LaTeX Error: \begin{typeseteg} on input
line 11786 ended by \end{flexlabelled

memman.tex(20084): Error: ! Undefined control sequence.
memman.tex(20085): Error: ! Undefined control sequence.
memman.tex(20088): Error: ! Undefined control sequence.

I would be happy to have some help explaining these errors.
Later I will handle my own file.

Oscar


 0

Oscar Rotava wrote:
> On 9 dez, 14:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>> Oscar Rotava <rot...@petrobras.com.br> writes:
>>> On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>>>> Oscar Rotava <rot...@petrobras.com.br> writes:
>>>>> Actually what I want to print in memoir class is a book written with
>>>>> LaTeX thesis class.
>>>> What thesis class? There is no file named "thesis.cls" in TeXlive
>>>> 2010.
>>> It is
>>> \documentclass[uct10,final,twoside,openright]{ucthesis}
>>> from the time I did my PhD thesis.
>>> I used the same class to prepare my class notes that are now becoming
>>> a book.
>> Knowing this helps a lot. I've never used the ucthesis class, but
>> I now found the readme file. Here's something to get you started:
>>
>> Margins:
>>
>> In memoir, there are several ways to set the margins. The details are
>> in chapter 2 of the manual. In order to comply with the "2) Margins
>> are 1.5 inches on the left, 1.0 inches elsewhere.", one would say
>>
>> \setlrmarginsandblock{1.5in}{1.0in}{*}
>> \setulmarginsandblock{1.0in}{1.0in}{*}
>>
>> \checkandfixthelayout
>>
>> and use 'oneside' as an option to the document class (otherwise, 'left
>> margin' does not make sense). Then the width (and height) of the
>> typeblock will depend on the paper size.
>>
>>
>> "4) Page numbers are in the top right corner for all pages."
>>
>> Chapter 7 of the manual. In short, something like
>>
>> \makepagestyle{uc}
>> \pagestyle{uc}
>>
>> should work (perhaps the \makeevenhead is not necessary if oneside is
>> in effect; I don't remember right now).
>>
>> Creating the "Title, Approval, and Copyright pages" is probably a
>> little harder. Perhaps the easist thing is to try to copy the relevant
>> parts from the ucthesis.cls file. The macros \degreeyear etc. don't
>> exist in memoir, so one would need to implement whatever they do
>> oneself (they probably just store their argument in some internal
>> macro which is then used by the \maketitle, \approvalpage etc.).
>>
>> --
>> Rasmus Villemoes
>> <http://rasmusvillemoes.dk/>- Ocultar texto das mensagens anteriores -
>>
>> - Mostrar texto das mensagens anteriores -
>
> Since I have got the memoir.tex I tried to run LaTeX on it. The errors
> are listed below:
>
> memman.tex(1013): Error: ! Undefined control sequence.
> memman.tex(1013): Error: ! Missing number, treated as zero.
> memman.tex(1013): Error: ! Illegal unit of measure (pt inserted).
> memman.tex(1013): Error: ! LaTeX Error: Missing \begin{document}.
> memman.tex(1014): Error: ! Missing number, treated as zero.
> memman.tex(1014): Error: ! Illegal unit of measure (pt inserted).
> memman.tex(1015): Error: ! Missing number, treated as zero.
> memman.tex(1015): Error: ! Illegal unit of measure (pt inserted).
>
> memman.tex(11790): Error: ! LaTeX Error: Environment flexlabelled
> undefined.
> memman.tex(11790): Error: ! Missing number, treated as zero.
> memman.tex(11790): Error: ! Illegal unit of measure (pt inserted).
> memman.tex(11798): Error: ! LaTeX Error: \begin{typeseteg} on input
> line 11786 ended by \end{flexlabelled
>
> memman.tex(20084): Error: ! Undefined control sequence.
> memman.tex(20085): Error: ! Undefined control sequence.
> memman.tex(20088): Error: ! Undefined control sequence.
>
> I would be happy to have some help explaining these errors.
> Later I will handle my own file.
>
> Oscar
>

that does not help anything, those are not really LaTeX errors, but
rather what your editors shows when it parses the log fil.

I would NOT use the memoir manual source as a basis for a document. It
is rather special and full of stuff you will never need.

Note that memman.tex cannot be compiled on its own. It depends on
several packages that are not present in a normal LaTeX dist, but rather
is a part of the memoir doc directory, see

http://ctan.org/tex-archive/macros/latex/contrib/memoir/doc-src/

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

 0

On 10 dez, 09:53, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> Oscar Rotava wrote:
> > On 9 dez, 14:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
> >> Oscar Rotava <rot...@petrobras.com.br> writes:
> >>> On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
> >>>> Oscar Rotava <rot...@petrobras.com.br> writes:
> >>>>> Actually what I want to print in memoir class is a book written wit=
h
> >>>>> LaTeX thesis class.
> >>>> What thesis class? There is no file named "thesis.cls" in TeXlive
> >>>> 2010.
> >>> It is
> >>> \documentclass[uct10,final,twoside,openright]{ucthesis}
> >>> from the time I did my PhD thesis.
> >>> I used the same class to prepare my class notes that are now becoming
> >>> a book.
> >> Knowing this helps a lot. I've never used the ucthesis class, but
> >> I now found the readme file. Here's something to get you started:
>
> >> Margins:
>
> >> In memoir, there are several ways to set the margins. The details are
> >> in chapter 2 of the manual. In order to comply with the "2) Margins
> >> are 1.5 inches on the left, 1.0 inches elsewhere.", one would say
>
> >> \setlrmarginsandblock{1.5in}{1.0in}{*}
> >> \setulmarginsandblock{1.0in}{1.0in}{*}
>
> >> \checkandfixthelayout
>
> >> and use 'oneside' as an option to the document class (otherwise, 'left
> >> margin' does not make sense). Then the width (and height) of the
> >> typeblock will depend on the paper size.
>
>
> >> "4) Page numbers are in the top right corner for all pages."
>
> >> Chapter 7 of the manual. In short, something like
>
> >> \makepagestyle{uc}
> >> \pagestyle{uc}
>
> >> should work (perhaps the \makeevenhead is not necessary if oneside is
> >> in effect; I don't remember right now).
>
> >> Creating the "Title, Approval, and Copyright pages" is probably a
> >> little harder. Perhaps the easist thing is to try to copy the relevant
> >> parts from the ucthesis.cls file. The macros \degreeyear etc. don't
> >> exist in memoir, so one would need to implement whatever they do
> >> oneself (they probably just store their argument in some internal
> >> macro which is then used by the \maketitle, \approvalpage etc.).
>
> >> --
> >> Rasmus Villemoes
> >> <http://rasmusvillemoes.dk/>- Ocultar texto das mensagens anteriores -
>
> >> - Mostrar texto das mensagens anteriores -
>
> > Since I have got the memoir.tex I tried to run LaTeX on it. The errors
> > are listed below:
>
> > memman.tex(1013): Error: ! Undefined control sequence.
> > memman.tex(1013): Error: ! Missing number, treated as zero.
> > memman.tex(1013): Error: ! Illegal unit of measure (pt inserted).
> > memman.tex(1013): Error: ! LaTeX Error: Missing \begin{document}.
> > memman.tex(1014): Error: ! Missing number, treated as zero.
> > memman.tex(1014): Error: ! Illegal unit of measure (pt inserted).
> > memman.tex(1015): Error: ! Missing number, treated as zero.
> > memman.tex(1015): Error: ! Illegal unit of measure (pt inserted).
>
> > memman.tex(11790): Error: ! LaTeX Error: Environment flexlabelled
> > undefined.
> > memman.tex(11790): Error: ! Missing number, treated as zero.
> > memman.tex(11790): Error: ! Illegal unit of measure (pt inserted).
> > memman.tex(11798): Error: ! LaTeX Error: \begin{typeseteg} on input
> > line 11786 ended by \end{flexlabelled
>
> > memman.tex(20084): Error: ! Undefined control sequence.
> > memman.tex(20085): Error: ! Undefined control sequence.
> > memman.tex(20088): Error: ! Undefined control sequence.
>
> > I would be happy to have some help explaining these errors.
> > Later I will handle my own file.
>
> > Oscar
>
> that does not help anything, those are not really LaTeX errors, but
> rather what your editors shows when it parses the log fil.
>
> I would NOT use the memoir manual source as a basis for a document. It
> is rather special and full of stuff you will never need.
>
> Note that memman.tex cannot be compiled on its own. It depends on
> several packages that are not present in a normal LaTeX dist, but rather
> is a part of the memoir doc directory, see
>
> http://ctan.org/tex-archive/macros/latex/contrib/memoir/doc-src/
>
> --
>
> /daleif (remove RTFSIGNATURE from email address)
>
> LaTeX FAQ: =A0 =A0 =A0http://www.tex.ac.uk/faq
> LaTeX book: =A0 =A0http://www.imf.au.dk/system/latex/bog/=A0 =A0(in Danis=
h)
> Remember to post minimal examples, see URL bellowhttp://www.tex.ac.uk/cgi=
-bin/texfaq2html?label=3Dminxamplhttp://www.minimalbeispiel.de/mini-en.html=
- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

Maybe I can remove the special stuff and apply the remainnig commands
until it works for my files ...

Oscar

 0

Oscar Rotava wrote:
> On 10 dez, 09:53, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
>> Oscar Rotava wrote:
>>> On 9 dez, 14:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>>>> Oscar Rotava <rot...@petrobras.com.br> writes:
>>>>> On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>>>>>> Oscar Rotava <rot...@petrobras.com.br> writes:
>>>>>>> Actually what I want to print in memoir class is a book written with
>>>>>>> LaTeX thesis class.
>>>>>> What thesis class? There is no file named "thesis.cls" in TeXlive
>>>>>> 2010.
>>>>> It is
>>>>> \documentclass[uct10,final,twoside,openright]{ucthesis}
>>>>> from the time I did my PhD thesis.
>>>>> I used the same class to prepare my class notes that are now becoming
>>>>> a book.
>>>> Knowing this helps a lot. I've never used the ucthesis class, but
>>>> I now found the readme file. Here's something to get you started:
>>>> Margins:
>>>> In memoir, there are several ways to set the margins. The details are
>>>> in chapter 2 of the manual. In order to comply with the "2) Margins
>>>> are 1.5 inches on the left, 1.0 inches elsewhere.", one would say
>>>> \setlrmarginsandblock{1.5in}{1.0in}{*}
>>>> \setulmarginsandblock{1.0in}{1.0in}{*}
>>>> \checkandfixthelayout
>>>> and use 'oneside' as an option to the document class (otherwise, 'left
>>>> margin' does not make sense). Then the width (and height) of the
>>>> typeblock will depend on the paper size.
>>>> "4) Page numbers are in the top right corner for all pages."
>>>> Chapter 7 of the manual. In short, something like
>>>> \makepagestyle{uc}
>>>> \pagestyle{uc}
>>>> should work (perhaps the \makeevenhead is not necessary if oneside is
>>>> in effect; I don't remember right now).
>>>> Creating the "Title, Approval, and Copyright pages" is probably a
>>>> little harder. Perhaps the easist thing is to try to copy the relevant
>>>> parts from the ucthesis.cls file. The macros \degreeyear etc. don't
>>>> exist in memoir, so one would need to implement whatever they do
>>>> oneself (they probably just store their argument in some internal
>>>> macro which is then used by the \maketitle, \approvalpage etc.).
>>>> --
>>>> Rasmus Villemoes
>>>> <http://rasmusvillemoes.dk/>- Ocultar texto das mensagens anteriores -
>>>> - Mostrar texto das mensagens anteriores -
>>> Since I have got the memoir.tex I tried to run LaTeX on it. The errors
>>> are listed below:
>>> memman.tex(1013): Error: ! Undefined control sequence.
>>> memman.tex(1013): Error: ! Missing number, treated as zero.
>>> memman.tex(1013): Error: ! Illegal unit of measure (pt inserted).
>>> memman.tex(1013): Error: ! LaTeX Error: Missing \begin{document}.
>>> memman.tex(1014): Error: ! Missing number, treated as zero.
>>> memman.tex(1014): Error: ! Illegal unit of measure (pt inserted).
>>> memman.tex(1015): Error: ! Missing number, treated as zero.
>>> memman.tex(1015): Error: ! Illegal unit of measure (pt inserted).
>>> memman.tex(11790): Error: ! LaTeX Error: Environment flexlabelled
>>> undefined.
>>> memman.tex(11790): Error: ! Missing number, treated as zero.
>>> memman.tex(11790): Error: ! Illegal unit of measure (pt inserted).
>>> memman.tex(11798): Error: ! LaTeX Error: \begin{typeseteg} on input
>>> line 11786 ended by \end{flexlabelled
>>> memman.tex(20084): Error: ! Undefined control sequence.
>>> memman.tex(20085): Error: ! Undefined control sequence.
>>> memman.tex(20088): Error: ! Undefined control sequence.
>>> I would be happy to have some help explaining these errors.
>>> Later I will handle my own file.
>>> Oscar
>> that does not help anything, those are not really LaTeX errors, but
>> rather what your editors shows when it parses the log fil.
>>
>> I would NOT use the memoir manual source as a basis for a document. It
>> is rather special and full of stuff you will never need.
>>
>> Note that memman.tex cannot be compiled on its own. It depends on
>> several packages that are not present in a normal LaTeX dist, but rather
>> is a part of the memoir doc directory, see
>>
>> http://ctan.org/tex-archive/macros/latex/contrib/memoir/doc-src/
>>
>> --
>>
>> /daleif (remove RTFSIGNATURE from email address)
>>
>> LaTeX FAQ:      http://www.tex.ac.uk/faq
>> LaTeX book:    http://www.imf.au.dk/system/latex/bog/   (in Danish)
>> Remember to post minimal examples, see URL bellowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html- Ocultar texto das mensagens anteriores -
>>
>> - Mostrar texto das mensagens anteriores -
>
> Maybe I can remove the special stuff and apply the remainnig commands
> until it works for my files ...
>
> Oscar

good luck

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

 0

Lars Madsen wrote:
> Oscar Rotava wrote:
>> On 10 dez, 09:53, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
>>> Oscar Rotava wrote:
>>>> On 9 dez, 14:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>>>>> Oscar Rotava <rot...@petrobras.com.br> writes:
>>>>>> On 9 dez, 13:53, Rasmus Villemoes <burner+use...@imf.au.dk> wrote:
>>>>>>> Oscar Rotava <rot...@petrobras.com.br> writes:
>>>>>>>> Actually what I want to print in memoir class is a book written
>>>>>>>> with
>>>>>>>> LaTeX thesis class.
>>>>>>> What thesis class? There is no file named "thesis.cls" in TeXlive
>>>>>>> 2010.
>>>>>> It is
>>>>>> \documentclass[uct10,final,twoside,openright]{ucthesis}
>>>>>> from the time I did my PhD thesis.
>>>>>> I used the same class to prepare my class notes that are now becoming
>>>>>> a book.
>>>>> Knowing this helps a lot. I've never used the ucthesis class, but
>>>>> I now found the readme file. Here's something to get you started:
>>>>> Margins:
>>>>> In memoir, there are several ways to set the margins. The details are
>>>>> in chapter 2 of the manual. In order to comply with the "2) Margins
>>>>> are 1.5 inches on the left, 1.0 inches elsewhere.", one would say
>>>>> \setlrmarginsandblock{1.5in}{1.0in}{*}
>>>>> \setulmarginsandblock{1.0in}{1.0in}{*}
>>>>> \checkandfixthelayout
>>>>> and use 'oneside' as an option to the document class (otherwise, 'left
>>>>> margin' does not make sense). Then the width (and height) of the
>>>>> typeblock will depend on the paper size.
>>>>> "4) Page numbers are in the top right corner for all pages."
>>>>> Chapter 7 of the manual. In short, something like
>>>>> \makepagestyle{uc}
>>>>> \pagestyle{uc}
>>>>> should work (perhaps the \makeevenhead is not necessary if oneside is
>>>>> in effect; I don't remember right now).
>>>>> Creating the "Title, Approval, and Copyright pages" is probably a
>>>>> little harder. Perhaps the easist thing is to try to copy the relevant
>>>>> parts from the ucthesis.cls file. The macros \degreeyear etc. don't
>>>>> exist in memoir, so one would need to implement whatever they do
>>>>> oneself (they probably just store their argument in some internal
>>>>> macro which is then used by the \maketitle, \approvalpage etc.).
>>>>> --
>>>>> Rasmus Villemoes
>>>>> <http://rasmusvillemoes.dk/>- Ocultar texto das mensagens anteriores -
>>>>> - Mostrar texto das mensagens anteriores -
>>>> Since I have got the memoir.tex I tried to run LaTeX on it. The errors
>>>> are listed below:
>>>> memman.tex(1013): Error: ! Undefined control sequence.
>>>> memman.tex(1013): Error: ! Missing number, treated as zero.
>>>> memman.tex(1013): Error: ! Illegal unit of measure (pt inserted).
>>>> memman.tex(1013): Error: ! LaTeX Error: Missing \begin{document}.
>>>> memman.tex(1014): Error: ! Missing number, treated as zero.
>>>> memman.tex(1014): Error: ! Illegal unit of measure (pt inserted).
>>>> memman.tex(1015): Error: ! Missing number, treated as zero.
>>>> memman.tex(1015): Error: ! Illegal unit of measure (pt inserted).
>>>> memman.tex(11790): Error: ! LaTeX Error: Environment flexlabelled
>>>> undefined.
>>>> memman.tex(11790): Error: ! Missing number, treated as zero.
>>>> memman.tex(11790): Error: ! Illegal unit of measure (pt inserted).
>>>> memman.tex(11798): Error: ! LaTeX Error: \begin{typeseteg} on input
>>>> line 11786 ended by \end{flexlabelled
>>>> memman.tex(20084): Error: ! Undefined control sequence.
>>>> memman.tex(20085): Error: ! Undefined control sequence.
>>>> memman.tex(20088): Error: ! Undefined control sequence.
>>>> I would be happy to have some help explaining these errors.
>>>> Later I will handle my own file.
>>>> Oscar
>>> that does not help anything, those are not really LaTeX errors, but
>>> rather what your editors shows when it parses the log fil.
>>>
>>> I would NOT use the memoir manual source as a basis for a document. It
>>> is rather special and full of stuff you will never need.
>>>
>>> Note that memman.tex cannot be compiled on its own. It depends on
>>> several packages that are not present in a normal LaTeX dist, but rather
>>> is a part of the memoir doc directory, see
>>>
>>> http://ctan.org/tex-archive/macros/latex/contrib/memoir/doc-src/
>>>
>>> --
>>>
>>> /daleif (remove RTFSIGNATURE from email address)
>>>
>>> LaTeX FAQ:      http://www.tex.ac.uk/faq
>>> LaTeX book:    http://www.imf.au.dk/system/latex/bog/   (in Danish)
>>> Remember to post minimal examples, see URL
>>> bellowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html-
>>> Ocultar texto das mensagens anteriores -
>>>
>>> - Mostrar texto das mensagens anteriores -
>>
>> Maybe I can remove the special stuff and apply the remainnig commands
>> until it works for my files ...
>>
>> Oscar
>
> good luck
>

BTW: I agree with Rasmus, that it is better to learn to make the
preamble your self. Better investment in the long run.

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

 0

On Dec 9, 6:47=A0am, Oscar Rotava <rot...@petrobras.com.br> wrote:
> Pals,
> =A0 =A0 =A0 =A0 =A0Is it possible to get a complete example of the memoir
> document class preamble? It is easier to handle that instead of
> starting from scratch. Thanks in advance.

I posted one a while back:

ource&output=3Dgplain

William

 0

13 Replies
1075 Views