This is really a LaTeX question, I guess, so apologies in advance to
everyone for prevailing on this list, but.....
Does anyone know what ERT I should use so that the text in my list of
figures and list of tables (i.e. the figure and table captions) is
typeset in raggedright format? I am using the 'book' documentclass and
several of my figure and table captions are quite long, leading to a lot
of hyphenation in the lists of figures and tables, as well as some
overfull lines in the same. I need to leave the captions fully justified
in the main body of the text (requirement of the publisher), and have
kept the captions as short as possible (requirement of the reader's sanity).
I have played with the \addtocontents command in my preamble without
success, and have tried putting \raggedright in the main document before
the List of Tables and List of Figures entries but I suspect that this
is the wrong approach and, in any case, it yields the following error:
LaTeX Error: There's no line here to end.
\\
Short of exporting my LyX file to LaTeX and manually editing the
resulting .lof and .lot files, can anyone enlighten me as to how I might
proceed?
Very many thanks,
Mike Barnsley