Re: Formatting Catalogue Entries
- From: Ulrike Fischer <news@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 10:36:45 +0000 (UTC)
"Peter Williams" <p8mode@xxxxxxx> schrieb:
Hello,
I want to create a printable catalogue of items formatted in a certain
way, which I cant seem to get LaTeX to do as I want:
I have a set of "Items" each of which is composed of a one or more
"Lines", which in turn are composed of one or more "Fields". The
document should have 2 columns, and each Item should be allocated a
paragraph. A Line is just a set of fields which should have a linebreak
on the end, to set them apart from other Lines. A Field is an atom of
information about an Item. As many Fields as will fit should be put on
a text line together, but there's no harm on using a full text line for
a single field if its too big to fit with another.
So I came up with the macros and document below. The example
illustrates several problems Im having:
(1) The field "A long field" should have started on a line of its own
since it isnt big enough to fit with the previous field ("id=453662")
on single line. Why isnt LaTeX doing this?
(2) The various fields that get put on a single line should be shoved
snuggly together (no rubber space), and what ever space is left should
be padded at the -end- of the line. This is particularly so in the 3rd
line of the output. How can I tell LaTeX to do this here (\raggedright
obviously isnt enough)?
1+2: put \raggedright inside the minipage. minipage resets \rightskip
at the start and so disables the \raggedright.
(3) Items shouldnt get split across 2 columns (ie if there isnt enough
space to fit a complete item entry in the current column it should
start on the next coulmn). I achieved this via the \minipage. However
using \nopagebreak should have been sufficient here too according to
the author of \multicol in a differet post. Using the alternate
definitions of my macros below with \nopagebreak's instead of \minipage
didnt work however (though it did seem to solve (1) above). An Item
gets split across the bottom of the first column and top of the second
(of course youll have to copy and paste the \Item in the eg a few times
to fill up the first column).
You are using \nopagebreak inside a paragraph. It isn't easy inside
paragraphs to get the wanted effect exactly when needed (between the
lines). Use \\* for the linebreaks.
--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
.
- Follow-Ups:
- Re: Formatting Catalogue Entries
- From: Peter Williams
- Re: Formatting Catalogue Entries
- References:
- Formatting Catalogue Entries
- From: Peter Williams
- Formatting Catalogue Entries
- Prev by Date: agu027@student.uib.no
- Next by Date: Re: In two columns mode, how to assign some sentences in column 1, others in column 2
- Previous by thread: Formatting Catalogue Entries
- Next by thread: Re: Formatting Catalogue Entries
- Index(es):
Relevant Pages
|
|