Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{caption}
- begin{document}
- begin{table}[h]
- captionsetup[table]{position=above,justification=raggedright}
- caption{\Title of the table}
- begin{center}
- begin{tabular}{llp{2cm}p{2cm}}
- ...
- end{tabular}
- end{center}
- label{BoS}
- end{table}
- end{document}
- documentclass{article}
- usepackage{caption}
- % the setup belongs into the preamble! you don't want to repeat the setup each
- % time you insert a new table.
- captionsetup[table]{
- position=above,
- justification=raggedright,
- labelsep=newline, % <<< label and text on different lines
- singlelinecheck=false % <<< raggadright also when the caption is shorter
- % than a single line
- }
- begin{document}
- begin{table}
- centering
- caption{Title of the table}label{tab:first}
- This is my first table.
- end{table}
- begin{table}
- centering
- caption{Title of the table that is a bit longer. Indeed it is longer than
- one line. We still need a little more.}label{tab:second}
- This is my second table.
- end{table}
- end{document}
- textbackslash begin {table}big[hbig]\
- textbackslash centering\
- textbackslash caption{My first table}\
- textbackslash label{first table}\
- textbackslash begin{tabular}{textbar ctextbar ltextbar }\
- textbackslash hline\
- a & Row 1 textbackslash textbackslash \
- textbackslash hline\
- b & textbackslash multirow{2}{*}{Spanning rows} textbackslash textbackslash \
- textbackslash cline{1-1}\
- c & textbackslash textbackslash\
- textbackslash hline\
- d & Row 4 textbackslash textbackslash \
- textbackslash hline\
- textbackslash end{tabular}\
- textbackslash end{table}\
- begin{figure}[h]
- centering
- includegraphics[scale=0.1]{image1.jpg}
- hfill
- includegraphics[scale=0.1]{image2.jpg}
- caption{Horizontal alignment}
- label{i1}
- end{figure}
Add Comment
Please, Sign In to add comment