TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A friend asked me if I knew any free software for creating dictionaries - which is good at saving space (reduce total number of pages).


enter image description here

I suppose this might be possible in LaTeX. Thankful for any suggestions or pointers.

share|improve this question
For adding a dictionary-style running head that shows the first/last entry per page, it would be easiest to input the dictionary items (\dict in @Tobi's answer) as some form of sectional command (like subsubsection, say). Then it should be possible to use information contained in Chapters and verses of current page in header to update these running headers automatically via the titlesec package. – Werner Oct 7 '11 at 20:17
up vote 12 down vote accepted

I guess the sorting can be done with xindy, glossaries, luatex or something else. And maybe the entrys should come from a database.

The following could be first approach for the layout. Please note that this is a draft only!

  • I used a narrow font to get as much as possible letters in one line

  • I added a macro to format the single entries. That makes later changes very easy.

  • I guess it would be a god practice to define more macros for other extras (like reference-signs etc.)

  • Chapter thumbs (german Daumenindex, actual letter in the margin) can be generated with TikZ and scrpage2 see http://www.komascript.de/node/200 for example.




% narrow font

% layout

\lehead{word}% first word on page
\rohead{word}% last word on page
\chead{W}% actual letter

% entry command
% \dict{<word>}{<gender>}{<text>}
    \textbf{\textsf{#1}} \textit{#2} #3

% testing

\foreach \n in {1,...,200} {%
    \dict{word}{n}{Some text with mor explanations. Some text with mor explanations}%


To get more information about using scrpage2 for head and foot see scrguien or scrguide in german. In the printed version (german) you can find even a tutorial about chapter thumbs.

share|improve this answer
Thank you so much! – j-a Oct 4 '11 at 7:46
@jac: You’re welcome! But I’d like to say again, that this is only a working basis an not a finished elaborate layout ;-) (see my update for additional links) – Tobi Oct 4 '11 at 9:10
Is it possible to do one macro to manage the header automatically ? – projetmbc Oct 7 '11 at 19:14
@projetmbc: I guess it is. But I don’t know how … Since this question is for the layout you may ask a new question like “How to automate a dictionary (sorting, headers)?“ – Tobi Oct 8 '11 at 9:30
@projetmbc: A look at Chapters and verses of current page in header could help you on your way. – Tobi Oct 8 '11 at 10:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.