PhilTeX Forums » Using LaTeX » Text formatting and commands
Typesetting a dictionary
(6 posts)-
hi, let me shortly describe my problem: I'm totally new of latex and really I'm moving my very first steps. I should now produce a dictionary, something of the type visible in the link: http://www.mengensatz.de/blog/?p=69. I have been told that using fancyhdr this would be possible, but after searching around I ended with the conclusion that NO ONE really explains how to do it. Is probably a commercial secret? Can someone be so kind to really help me and not just tells: "this is easily done with markboth" and so on? Remember, I am really new into it.
Regards Orazio
Posted 1 year ago # -
Well, you might try the package documentation at CTAN which has examples.
Here's a basic fancyhdr preamble. There are a lot of examples also in The LaTeX Companion.
\documentclass{article} \usepackage{url} \usepackage[ pdftitle={example}, pdfauthor={example}, pdfkeywords={example}, pdflang={English} ]{hyperref}\usepackage[left=.8in,right=.7in,top=1in,bottom=1in]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \setlength\headheight{12pt} \rhead{Right header for page \thepage} \setdefaultleftmargin{1em}{}{}{}{}{}
\begin{document} Hello, Orazio. \pagebreak Here is a second page. \end{document}
Posted 1 year ago # -
hi, thank you for your answer, but: 1) dictionary is a book and not an article, means two side and problems in loosing marks. 2) dictionary is 2 column and fancyhadr has bug with loose mark in case of two column. 3) Dictionaru headers are different on any page according to the content. 4) section and running contents cannot be used together because they use the same macro... 5)..... 6).....
When I said NO ONE really hels, I had my reason. Thankyou in any case and regards.
Orazio
Posted 1 year ago # -
Maybe you can modify this to suit your needs:
\documentclass[twocolumn]{book} \usepackage{fancyhdr} \usepackage{enumitem} \usepackage{hanging} \usepackage{fix2col} \newcommand{\entry}[2]{\hangpara{2em}{1}\textsf{\textbf{#1}}\ #2 \markboth{#1}{#1}\par} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{\textsf{\textbf{\rightmark\ -- \leftmark}}} \fancyhead[LO,RE]{\textsf{\textbf{\thepage}}} \begin{document} \entry{aba}{garment of camel or goat hair; camel or goat-hair fabric} \entry{abacinate}{to blind by putting red-hot copper basin near the eyes} \entry{abactor}{cattle thief} \entry{abaculus}{small tile for mosaic} ... \end{document}(There follows many other entries. Word list blatantly stolen from here.)
Screenshot of result:
A page later on:
It's hard to know what else to say. In general, it's better if you supply some sample code of your project, and then ask us help on how to tweak it. It's difficult coming up with a fix from scratch when we don't know what your document already looks like.
Attachments
Posted 1 year ago # -
Awesome!! It’s just what I need!! Thanks!............
Posted 3 weeks ago #
Reply
You must log in to post.