Guest User

Untitled

a guest
May 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{showframe}
  3. renewcommandthetable{Roman{table}}
  4.  
  5. usepackage{tocloft}
  6. renewcommandcfttabindent{0pt}% <-
  7. renewcommandcfttabnumwidth{5em}
  8. renewcommandcfttabpresnum{tablename }
  9. renewcommandcfttabaftersnum{:}
  10.  
  11. begin{document}
  12. listoftables
  13. begin{table}[htb]
  14. caption{First table}
  15. caption{Second table}
  16. caption{Third table}
  17. caption{Fourth table}
  18. end{table}
  19. end{document}
  20.  
  21. documentclass{article}
  22. usepackage{showframe}
  23. renewcommandthetable{Roman{table}}
  24.  
  25. usepackage{tocbasic}
  26. DeclareTOCStyleEntry[
  27. indent=0pt,% <-
  28. dynnumwidth,
  29. entrynumberformat=entryprefix{tablename}
  30. ]{tocline}{table}
  31. newcommand*entryprefix[2]{#1 #2:hfill}
  32.  
  33. begin{document}
  34. listoftables
  35. begin{table}[htb]
  36. caption{First table}
  37. caption{Second table}
  38. caption{Third table}
  39. caption{Fourth table}
  40. end{table}
  41. end{document}
  42.  
  43. makeatletter
  44. renewcommand*l@table{@dottedtocline{1}{0pt}{2.3em}}
  45. makeatother
Add Comment
Please, Sign In to add comment