1

I made a copy of the latex document here Right now I have two tables, one being used in the title.tex for names and second in the revision_history.tex. I am trying to remove these two tables from the LOT so I can start the numbering from 1 for the actual table in the documents.

Basically I want to tell Latex which tables are NOT tables and to just ignore them.

AJ98
  • 25
  • 1
    Remove the table caption that you would like to be ignored. – hesham Aug 12 '20 at 10:39
  • For example if you remove the line \captionof{table}{A nice table}\label{tbl:nicetablelesstable}, then that table won't be listed anywhere. – hesham Aug 12 '20 at 10:40
  • @hesham I understand that but the numbering won't be right. – AJ98 Aug 12 '20 at 10:43
  • @hesham as in it would still count the table without the caption as a table – AJ98 Aug 12 '20 at 10:43
  • The proposed duplicate is for figures but for tables it works in exactly the same way. – Marijn Aug 12 '20 at 10:44
  • @Marijn no it does not, you can see how the figures start from 2, I don't want that, I want it to start from 1 still – AJ98 Aug 12 '20 at 11:10
  • @AJ98 in that case you can use \caption*{some caption}. (with a *). – Marijn Aug 12 '20 at 11:19
  • Note that this still requires \usepackage{caption} to work. – Marijn Aug 12 '20 at 11:20
  • @Marijn sorry but no \caption*{} does not work either – AJ98 Aug 12 '20 at 11:26
  • @AJ98 it works on a simple document, I tried it myself. If it does not work in your real document then you should provide a minimal reproducible example document to your question (instead of a link to an Overleaf project) that shows your exact situation. If you don't do this then we are forced to guess, which may result in suggesting solutions that don't work for you, as you have seen now. – Marijn Aug 12 '20 at 11:29

1 Answers1

1

1.) Remove the table(s) caption that you would like to be ignored

2.) Add \setcounter{table}{0} before the actual table that you would like to be started as number 1 in your main document.

hesham
  • 1,443
  • 1
    Did this solve your problem? – hesham Aug 12 '20 at 10:49
  • 1
    If you want to keep the caption of un-numbered table(s) while hidden from the list of tables, then follow @Marijn comments. – hesham Aug 12 '20 at 10:54
  • yes it did but I'm worried what to do in case I get a table in the middle of other tables? Don't think I can use this method then – AJ98 Aug 12 '20 at 11:14
  • 1
    You mean you want an un-numbered table (and also hidden from the LOT) in the middle of normally numbered tables? – hesham Aug 12 '20 at 11:16
  • yes exactly, do you reckon that is possible? I basically want the ability of excluding tables from the LOT in random – AJ98 Aug 12 '20 at 11:17
  • 1
    In that case try \captionof*{table} with the astresic instead of \captionof{table} for the un-numbered table in the middle of numbered tables. – hesham Aug 12 '20 at 11:24
  • it did not work sorry to say, I don't know what is wrong – AJ98 Aug 12 '20 at 11:33
  • 2
    If you've already loaded \usepackage{caption} and still did not work, then better follow @Marijn and post a minimal working example (MWE) so that we can help you better. – hesham Aug 12 '20 at 11:38