Document ClassesSmall problems after switching to the memoir class

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

Small problems after switching to the memoir class

Post by drgz »

After I decided to change from the report class to the memoir class there's a few things I someone don't manage to fix (yet).

#1: Glossary. As I try to avoid using too many packages I want to fix the "problem" with the internal options provided by the memoir class, but I can't see any information about this in the manual. The thing I'm trying to do is to increase the spacing between the glossary key and its description. It seems like the default setting for this is a single empty space, but I'd prefer to increase this to a size which makes it easier to read (i.e. 1in). With the nomenclature package this is quite easy, but I just can't find out how I do this with the options the memoir class provides.

For now the options I use for the glossary are

Code: Select all

Code, edit and compile here:
\makeglossary[abbvr]
\renewcommand{\glossaryname}{List of Symbols and Abbreviations}
\glossaryintoc
\renewcommand{\memgloterm}[1]{#1}
\renewcommand{\memglodesc}[1]{\textit{#1}
\renewcommand{\memglonum}[1]{}
\renewcommand{\glossaryspace}[1]{}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#2: Captions. I found several options for manipulating the captions of floats in the memoir manual, but when I apply these options nothing happens, so I obviously do something wrong. Hopefully someone can point out what I do wrong(?).
I'm trying to make the caption number font to be in bold and in an smaller font than the rest of the document. In addition I want the caption title font to be like the normal font, but smaller (same size as caption number font).

After the reading in the manual I assumed this code would be enough, but when I compile nothing changes.

Code: Select all

Code, edit and compile here:
\captionnamefont{\small\bfseries}
\captiontitlefont{\small}
\captiondelim{: }
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I managed to get the caption number font to be in bold and with a smaller font size by using the following code, but I don't know how to do something similar with the caption title.

Code: Select all

Code, edit and compile here:
\makeatletter
\renewcommand{\fnum@figure}{\small\textbf{\figurename~\thefigure}}
\renewcommand{\fnum@table}{\small\textbf{\tablename~\thetable}}
\makeatother
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
With other words I try to get the same captions as I will by using the caption package like this

Code: Select all

\usepackage[hang,small,bf]{caption}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Hope someone can help. :)

Recommended reading 2024:

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

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

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Small problems after switching to the memoir class

Post by daleif »

Full minimal example please!

As for the caption stuff not working, some other package may have loaded the caption package, after which the memoir interface no longer works (as caption overwrites it), but this is impossible to know without a full minimal example.
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

Small problems after switching to the memoir class

Post by drgz »

Code: Select all

Code, edit and compile here:
\documentclass[12pt,a4paper,twoside]{memoir}
%% Packages
%\usepackage[T1]{fontenc}
\usepackage{courier}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{float}
\usepackage{graphicx}
\usepackage[obeyall]{siunitx}
\usepackage[breaklinks=true]{hyperref}
%\usepackage[hang,small,bf]{caption}
\usepackage{subfig}
\usepackage{tikz,pgf,pgfplots}
\usetikzlibrary{arrows,calc}
\usepackage{breakurl}
%% Page style
\setlength{\paperwidth}{8.5in}
\setlength{\paperheight}{11in}
\setlength{\textwidth}{6.0in}
\setlength{\textheight}{8.5in}
\setlength{\marginparwidth }{0.20in}
\setlength{\oddsidemargin}{0.10in}
\setlength{\evensidemargin}{0.10in}
\setheadfoot{\onelineskip}{3\onelineskip}
%% Hyperref links
\hypersetup{
colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black
}
%% Chapters
\chapterstyle{southall}
\openright
%% SI units
\newunit[unitspace=space]{\dbm}{dBm}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This is how I got the preamble now while experimenting (trying to figure out how to achieve what I want).

When I compile with this preamble I get two warnings;
Class memoir: You are using the caption package with the memoir class. This may cause unexpected or inconsistent results if you use any of memoir's captioning facilities.
and
\caption will not be redefined since it's already redefined by a document class or package which is unknown to the caption package.
However, I have commented out the caption package in the preamble. I've also deleted all temporary files and compiled from scratch - but I still get these warnings.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Small problems after switching to the memoir class

Post by daleif »

The caption package works just fine with memoir. The warning just tells you that memiors own caption facilities are overwritten.

But you are also using the subfig package, which loads caption internally....
Post Reply