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

### styling the index in memoir

• Email
• Follow

Is there a recommended way to change the style of the index in the
memoir class?  For instance, I tried to change the fontsize by adding

\renewcommand{\preindexhook}{\fontsize{7}{7}\selectfont}

in the preamble. But there is no effect. Is there another way?

Thx,

Stefano

 0

See related articles to this posting

stefano wrote:
> Is there a recommended way to change the style of the index in the
> memoir class?  For instance, I tried to change the fontsize by adding
>
> \renewcommand{\preindexhook}{\fontsize{7}{7}\selectfont}
>
>
> in the preamble. But there is no effect. Is there another way?
>
>
> Thx,
>
> Stefano

not really no, I'll add it to my TODO list and see if it is needed

Since the header for the index is independent of the fontsize in the
document you could simply do

\begingroup
\fontsize{7}{7}\selectfont
\printindex
\endgroup

the reason why your trick does not work is that you are using a
twocolumn index, and in that case the \preindexhook is executed (along
with the title) inside a group, thus the change never makes it to the index

--

/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 12/11/10 4:09 AM, stefano wrote:
> Is there a recommended way to change the style of the index in the
> memoir class?  For instance, I tried to change the fontsize by adding
>
> \renewcommand{\preindexhook}{\fontsize{7}{7}\selectfont}
>
> in the preamble. But there is no effect. Is there another way?

I just asked a very similar question on
http://tex.stackexchange.com/questions/7018/how-can-i-customise-memoirs-index-to-have-2-columns
today and was pointed towards the idxlayout package, which works nicely
with memoir. You should be able to get what you want by

\usepackage[font=footnotesize]{idxlayout}

or
\usepackage{idxlayout}
\renewcommand*{\indexfont}{\fontsize{7}{7}\selectfont}

Best regards,
- Lian Tze 0

 0

On Dec 13, 3:24=A0am, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> stefano wrote:
> > Is there a recommended way to change the style of the index in the
> > memoir class? =A0For instance, I tried to change the fontsize by adding
>
> > \renewcommand{\preindexhook}{\fontsize{7}{7}\selectfont}
>
> > in the preamble. But there is no effect. Is there another way?
>
> > Thx,
>
> > Stefano
>
> not really no, I'll add it to my TODO list and see if it is needed
>
> Since the header for the index is independent of the fontsize in the
> document you could simply do
>
> \begingroup
> \fontsize{7}{7}\selectfont
> \printindex
> \endgroup
>
> the reason why your trick does not work is that you are using a
> twocolumn index, and in that case the \preindexhook is executed (along
> with the title) inside a group, thus the change never makes it to the ind=
ex
>
> --
>
> /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

Thanks Lars.

It works fine. Perhaps your explanation could be added to the nect
version of the manual. I was really frustrated by the alleged goal of
\prehindexhook and the lack of results.

Cheers,

Stefano

 0

On Dec 13, 9:39=A0am, Lian Tze Lim <lian...@gmail.com> wrote:
> On 12/11/10 4:09 AM, stefano wrote:
>
> > Is there a recommended way to change the style of the index in the
> > memoir class? =A0For instance, I tried to change the fontsize by adding
>
> > \renewcommand{\preindexhook}{\fontsize{7}{7}\selectfont}
>
> > in the preamble. But there is no effect. Is there another way?
>
> I just asked a very similar question onhttp://tex.stackexchange.com/quest=
ions/7018/how-can-i-customise-memoi...
> today and was pointed towards the idxlayout package, which works nicely
> with memoir. You should be able to get what you want by
>
> \usepackage[font=3Dfootnotesize]{idxlayout}
>
> or
> \usepackage{idxlayout}
> \renewcommand*{\indexfont}{\fontsize{7}{7}\selectfont}
>
> Best regards,
> - Lian Tze 0

Thanks Lian,

I was unaware of the idxlayout package. I'll try it out.

Cheers,

Stefano

 0

4 Replies
320 Views

Similar Articles

12/20/2013 2:52:05 PM
page loaded in 253624 ms. (1)

Similar Artilces:

personal index style and \index{|(} and \index{|)} incompatibilities
Hi all, I'm trying to personalize an index with what follows in my index style file StyleIndex.ist delim_0 " \\dotfill \ " delim_1 " \\dotfill \ " and the following main file TryIndex.tex: \documentclass{book} \usepackage{lmodern} \usepackage[top=3cm,left=3cm,right=3cm,bottom=2.5cm,a4paper]{geometry} \usepackage{lipsum} \usepackage{makeidx} \makeindex \begin{document} \mainmatter \lipsum %pli\index{pli|(} % to be uncommented \lipsum \lipsum %pli\index{pli|)} % to be uncommented plo\index{plo} \backmatter \printindex \end{document} ...

\index* and memoir?
Memoir emulates the index package. I know that I can \DeemulatePackage{index} and load the index package, but I'd rather not. I miss the \index* from the index package, which was identical to \index except that it would also typeset its argument in-line with the text. Is there an easy way to build an \index* in memoir? Because \index takes an optional argument, I'm having trouble thinking of a simple \@ifstar that would do it. Thanks -- Ted > Is there an easy way to build an \index* in memoir? Because \index > takes an optional argument, I'm having trouble thinking of a s...

Memoir styles
Aloha all, Is there a collection of memoir styles (like Wilson's bringhurst) somewhere? ...

Index style
How can I modify the style of my index so that I get capital letters between entries starting with a particular letter? That is, how do I get A Aardvark 21 ABC Taxis 321 .... B Beyonce 45 Bloddy Mary 217 .... Normal LaTeX does not give the "A" and "B", of course. And how could I change the style so that the "A" and "B" would be centered, or bold, for example? Thanks nut wrote: > How can I modify the style of my index so that I get capital letters > between entries starting with a particular letter? That is, how do I &...

I want to suppress the section numbers in my current book. \section* does that. But I want to include the section title in the heading recto and in the TOC. Is there a standard \pagestyle that does all this? BTW I am not looking for a variant on the companion style but a variant on the default style (no underline and no extension into the margin.) All replies appreciated. John Culleton wexfordpress wrote: > I want to suppress the section numbers in my current book. \section* > does that. But I want to include the section title in the heading > recto and in the TOC. Is...

[memoir] Footnote style
Hello, In a book I'm writing, memoir formats the footnote text beginning with the footnote as a superscript, just like in the text. For example (I hope this is readable with most email clients): -------------- � This is a footnote. However, the copyeditor insists that the footnote text should begin with the footnote number un-superscripted and followed by a period, like this: -------------- 1. This is a footnote. I have two questions. First, is the copyeditor right that that's the prevailing style? A couple of programming books I looked through seems to sup...

Memoir page style
Hi to everyone, I am using memoir class to write a booklet and when I use the page style "ruled" in the frontmatter of my document the page numbers are in small caps roman but i prefer the normal roman number. I try using \nouppercaseheads with no results. Anyone can help me? Thanks. Santiago Santiago wrote: > Hi to everyone, > > I am using memoir class to write a booklet and when I use the page > style "ruled" in the frontmatter of my document the page numbers are > in small caps roman but i prefer the normal roman number. I try using > \nouppercasehe...

multiple index and memoir
Dear all, I am trying to format a multi-index bilingual edition with the memoir class, but when I \makeindex[] in the preamble, I get a no \begin{document} error. Can anyone help with multiple indices, there is not much in the way of example code in previous threads, and the documentation isn't clear about how to set up a multi-index document. I want something like: \makeindex[spanish] \makeindex[kaqchikel] Then in the body: Blah blah blah \index[spanish]{blah} blah. Then for the backmatter: \printindex[spanish] \printindex[kaqchikel] But maybe I don't understand how these com...

memoir:styling section
Hello all I need two things: 1. put \S (\textsection) sign before section and subsection number if it is numbered. 2. chenge distance between \thesection (section number) and section title. Same for sub and subsub sections, if they are numbered. shoshia wrote: > Hello all > I need two things: > 1. put \S (\textsection) sign before section and subsection number if > it is numbered. > 2. chenge distance between \thesection (section number) and section > title. Same for sub and subsub sections, if they are numbered. The manual section 6.6 \setsecnumformat...

[memoir] Chapter style
Using memoir I am trying to make a chapterstyle. I would like to have a chapter page like this THE TITLE 5 It appears to me that the in memoir class, the chapter number is always typeset in the order 1) Chapter name (Chapter or Appendix), 2) Some Spacing 3) The chapter title (123). I want 321 in stead, how can I do that? /Troels Troels Pedersen wrote: > Using memoir I am trying to make a chapterstyle. I would like to have a > chapter page like this > > THE TITLE 5 > > > It appears to me that the in memoir class, the chapter number is always > typeset ...