Guest User

Untitled

a guest
May 24th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{caption}
  3. begin{document}
  4. begin{table}[h]
  5. captionsetup[table]{position=above,justification=raggedright}
  6. caption{\Title of the table}
  7. begin{center}
  8. begin{tabular}{llp{2cm}p{2cm}}
  9. ...
  10. end{tabular}
  11. end{center}
  12. label{BoS}
  13. end{table}
  14. end{document}
  15.  
  16. documentclass{article}
  17. usepackage{caption}
  18. % the setup belongs into the preamble! you don't want to repeat the setup each
  19. % time you insert a new table.
  20. captionsetup[table]{
  21. position=above,
  22. justification=raggedright,
  23. labelsep=newline, % <<< label and text on different lines
  24. singlelinecheck=false % <<< raggadright also when the caption is shorter
  25. % than a single line
  26. }
  27. begin{document}
  28.  
  29. begin{table}
  30. centering
  31. caption{Title of the table}label{tab:first}
  32. This is my first table.
  33. end{table}
  34.  
  35. begin{table}
  36. centering
  37. caption{Title of the table that is a bit longer. Indeed it is longer than
  38. one line. We still need a little more.}label{tab:second}
  39. This is my second table.
  40. end{table}
  41.  
  42. end{document}
  43.  
  44. textbackslash begin {table}big[hbig]\
  45. textbackslash centering\
  46. textbackslash caption{My first table}\
  47. textbackslash label{first table}\
  48. textbackslash begin{tabular}{textbar ctextbar ltextbar }\
  49. textbackslash hline\
  50. a & Row 1 textbackslash textbackslash \
  51. textbackslash hline\
  52. b & textbackslash multirow{2}{*}{Spanning rows} textbackslash textbackslash \
  53. textbackslash cline{1-1}\
  54. c & textbackslash textbackslash\
  55. textbackslash hline\
  56. d & Row 4 textbackslash textbackslash \
  57. textbackslash hline\
  58. textbackslash end{tabular}\
  59. textbackslash end{table}\
  60.  
  61. begin{figure}[h]
  62. centering
  63. includegraphics[scale=0.1]{image1.jpg}
  64. hfill
  65. includegraphics[scale=0.1]{image2.jpg}
  66. caption{Horizontal alignment}
  67. label{i1}
  68. end{figure}
Add Comment
Please, Sign In to add comment