I have a longtable which is spread over several pages. If I make the top row a header it appears once in the list of tables BUT I want it to appear on each page of the table... If I make the top row a header it makes several entries in the list of tables. Ideas?

Edit: Apparently this is fixable in latex but I am hoping to do it in LyX. Unfortunately, my thesis guidlines require the header appear on each page.

Edit: Thanks to commenters jon and scottkosty! the solution is to select both header and 'first header' in the longtable tab page on the table settings.

  • I've never used Lyx, but with longtable, you need to make the appropriate use of \endhead and (in some cases) \endfirsthead. The basic structure is: \begin{longtable}{<table specs>} <header line(s)> \endhead <table body> \end{longtable}. – jon Apr 18 '15 at 4:57
  • Thanks for the info, I'd like to try to do it all in LyX as to not break anything. – AnotherThesis Apr 18 '15 at 5:10
  • I suppose you mean LyX hides that code from the user..? Can't help with that -- though maybe you can look for some kind of help menu that talks about \endhead: LyX must use it if it uses the longtable package. – jon Apr 18 '15 at 5:14
  • Did you look in the longtable settings? Go to the table settings, click on "Longtable", then click on "on" for the Header. Do that in the row that you want to be the header. Does that work? – scottkosty Apr 18 '15 at 5:20
  • Yes, it does make the header appear on each page as I want, but it also adds an entry to the list of tables for each of those pages. – AnotherThesis Apr 18 '15 at 5:23

Right click on the row of that you want to be the header. Go to "More", then "Settings". Then click on the "Longtable" tab, select "Use long table". Then click on "First header".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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