Re: Formatting Catalogue Entries



"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 @.
.



Relevant Pages

  • Formatting Catalogue Entries
    ... a single field if its too big to fit with another. ... Why isnt LaTeX doing this? ... gets split across the bottom of the first column and top of the second ...
    (comp.text.tex)
  • Re: Doing Neat Tables Blind: Wrapping, Placement and Appearance?
    ... I'll be able to borrow another guy's LaTeX ... the first word of a paragraph isn't hyphenated. ... though I didn't find tabularX there. ... My reader reads it as a single ...
    (comp.text.tex)
  • Re: LaTeX question
    ... The first paragraph of 1.3.1 begins with ... sentence means that the empty line between the two lines of text is ... LaTeX going. ... conneting TeXnics with the .exe file); all that, and more, was an ordeal to ...
    (comp.text.tex)
  • Re: large picture with memoir class
    ... I am writing a A5 booklet with LaTeX and the memoir class. ... clockwise 90 degrees, and appears as landscape. ... small because it has to fit on A5. ... Note that you should change the size of the latex box, ...
    (comp.text.tex)
  • Re: Text wrapping around floating figures
    ... I have generally been a die-hard LaTeX person, ... word users and I have to be able to exchange documents with them. ... paragraph, it will appear at the bottom of the next page. ... REQUIRES that the anchor is on the same page as the figure). ...
    (microsoft.public.word.docmanagement)