LaTeX forum ⇒ Graphics, Figures & Tablesoptimizing a table

Information and discussion about graphics, figures & tables in LaTeX documents.
IKO
Posts: 1
Joined: Wed Jan 13, 2021 11:48 am

optimizing a table

Postby IKO » Wed Jan 13, 2021 12:07 pm

Could you please help me in making the second table correct and without errors (similarly to the first one)

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{article}
  2. \pagestyle{empty}
  3. \usepackage[paperheight=11in,paperwidth=7in, margin=0.5in,landscape]{geometry}
  4. \usepackage{tikz}
  5. \usepackage{array}
  6. \usepackage{makecell}
  7. \usepackage{color, colortbl}
  8. \usepackage{multirow}
  9. \usepackage{hhline}
  10. \usetikzlibrary{calc}
  11.  
  12. \begin{document}
  13. \begin{table}[]
  14. \centering
  15. \begin{tabular}{|l|l|l|l|}
  16. \hline
  17. \multirow{25.66}{*}{Roadmap} & \multirow{7.5}{*}{February} & \multirow{-2}{*}{Week1} &\makecell[l]{Installing the simulation environment \\ Adding the UR manipulator to the simulation environment \\ Getting familiar with the simulation environment(learning how to include and position simple objects cube, ball, etc.)}\\[-3ex] \cline{3-3}
  18. & & Week2 \\ \cline{3-4}
  19. & & Week3 & \makecell[l]{ Literature studies on grasping a cube and navigating between two waypoints\\ Documentation} \\ \cline{3-4}
  20. & & \multirow{-2}{*}{Week4} & \makecell[l]{Literature studies on grasping a cube and navigating between (set of) waypoints\\ Coding the navigation towards the position of the object\\ Coding the grasp to the object\\ Coding the navigation of the grasped object from it's initial position towards pre-defined target waypoint\\ Documentation} \\[-3ex] \cline{2-3}
  21. & \multirow{10}{*}{March} & Week1 & \\ \cline{3-4}
  22. & & \multirow{-2}{*}{Week2}& \makecell[l]{ Literature studies on the cable implementation (reduced stiffness objects)\\ Implementing and Positioning the cable at a certain position in the workspace\\ Documentation} \\[-3ex]
  23. \cline{3-3}
  24. & & Week3 \\
  25. \cline{3-4}
  26. & & \multirow{-2}{*}{Week4} & \makecell[l]{Coding the grasp to the cable and conducting the navigation from the initial to goal waypoint\\ Confirming the no drop of the cable during the navigation\\ Documentation \\---\\ \textit{Note: The items in this field are started to be applied in a fixed manner (No machine learning model to be developed). }\\ \textit{In case the fixed manner isn't giving sufficient results, an RL model to be developed, the task to be extended more three weeks} \\\textit{and the shortest path planning task to be eliminated}} \\[-2.75ex] \cline{2-3}
  27. & \multirow{5.5}{*}{April} & Week1 & \\ \cline{3-4}
  28. & & Week2 & \makecell[l]{Literature studies on reinforcement learning\\ (Deep deterministic policy gradient and Deep Q-learning)\\ Documentation} \\[-2.8ex] \cline{3-3}
  29. & & Week3 & \\ \cline{3-4}
  30. & & \multirow{-2}{*}{Week4} & \makecell[l]{Developing a Reinforcement learning model to navigate the grasped cable to the predefined target waypoint\\ Documentation \\
  31. ---\\ \textit{Note: For the grasping task, the code developed in the March's 4th week will be} used} \\[-2.8ex] \cline{2-3}
  32. & May & Week1 & \\ \hline
  33. \end{tabular}
  34. \end{table}

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{table}[]
  2. \begin{center}
  3. \begin{tabular}{|l|l|l|l|}
  4. \hline
  5. \multirow{Roadmap} & \multirow{May} & Week2 & \multirow{\begin{tabular}[c]{@{}l@{}}Inserting certain fixed object(s) to be considered as obstacle(s)\\ Reconstructing the reinforcement learning model\\ Retraining the reinforcement learning model\\ Documentation\end{tabular}} \\ \cline{3-3}
  6. & & Week3 & \\ \cline{3-4}
  7. & & Week4 & \multirow{\begin{tabular}[c]{@{}l@{}}Transforming the obstacles from fixed to dynamic\\ Reconstructing/Extending the reinforcement learning model\\ Retraining the reinforcement learning model\\ Documentation\end{tabular}} \\ \cline{2-3}
  8. & \multirow{June} & Week1 & \\ \cline{3-3}
  9. & & Week2 & \\ \cline{3-3}
  10. & & Week3 & \\ \cline{3-4}
  11. & & Week4 & \multirow{\begin{tabular}[c]{@{}l@{}}Literature studies on the shortest path planning and optimizing the energy consumption with reinforcement learning \\ Documentation\end{tabular}} \\ \cline{2-3}
  12. & \multirow{July} & Week1 & \\ \cline{3-4}
  13. & & Week2 & \multirow{Reconstructing/Extending the reinforcement learning model to include the shortest path following} \\ \cline{3-3}
  14. & & Week3 & \\ \cline{3-3}
  15. & & Week4 & \\ \cline{2-4}
  16. & \multirow{August} & Week1 & \multirow{Documentation and Finalization} \\ \cline{3-3}
  17. & & Week2 & \\ \cline{3-3}
  18. & & Week3 & \\ \cline{3-3}
  19. & & Week4 & \\ \hline
  20. \end{tabular}
  21. \end{center}
  22. \end{table}

Bartman
Posts: 150
Joined: Fri Jan 03, 2020 2:39 pm

Postby Bartman » Wed Jan 13, 2021 12:44 pm

Your chance of getting help is less if you don't offer a Infominimal working example instead of two incomplete source code snippets.

Only choose the center environment if you really want to have the additional vertical spaces.

You can see from the first table and the documentation of the multirow package how many required arguments the commands of the same name in the second table expect.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 10 guests