## LaTeX forum ⇒ Calendars and Miscellaneous ⇒ template for a notation tabel Topic is solved

Calendars, invoices, tables, memos, contracts, dictionaries, code snippets
Elmaltus
Posts: 6
Joined: Thu Jan 17, 2019 1:48 pm

### template for a notation tabel

Hello,

does anybody have a template for a notation tabel? (see pictures)

Thanks
Last edited by Elmaltus on Fri Jan 18, 2019 4:21 pm, edited 1 time in total.

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

Here is a quick start:

1. \documentclass{article}
2. \usepackage{tabularx}
3. \usepackage{booktabs}
4. \usepackage[labelfont=bf,format=plain,justification=raggedright,singlelinecheck=false]{caption}
5. \begin{document}
6. \begin{table}
7. \caption{Notation for\ldots}
8. \begin{tabularx}{\textwidth}{@{}XX@{}}
9. \toprule
10. Indices \\
11. $K$ & Number of ... \\
12. $T$ & Number of ... \\
13. Parameters \\
14. c & something \\
15. \bottomrule
16. \end{tabularx}
17. \end{table}
18. \end{document}

Stefan

Elmaltus
Posts: 6
Joined: Thu Jan 17, 2019 1:48 pm
Thank you, that helped a lot!
Could you please explain to me how I can adjust the width of each collums? For example the first collum should be 20% of the textwidth...

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm

1. \begin{tabularx}{\textwidth}{@{}p{0.2\textwidth}X@{}}

p{0.2\textwidth} is standard tabular syntax and specifies a column with 20% of the text width.

X is tabularx syntax and specifies a column that fills all available space up to the max we set above (\textwidth).

Stefan

Elmaltus
Posts: 6
Joined: Thu Jan 17, 2019 1:48 pm
Thanks now i got it

Elmaltus
Posts: 6
Joined: Thu Jan 17, 2019 1:48 pm
Hello,
my notationtable is nearly done but now I don't know how I can fix the following problems:
I just want to move all variable descriptions to the left while the topics (like Parameters: or Decision variables:) can fit a whole row. (see screenshot) And why is there so much Space between Random Variables and BL_kt?

Thank you!
1. \begin{table}[h]
2. \caption{Notation}
3. \begin{tabularx}{\textwidth}{p{0.22\textwidth}X}
4. \toprule
5. {\ul Indices: } \\
6. $K$ & number of products (k \in\{1,...,K\}) \\
7. $T$ & number of periods (t \in\{1,...,T\})\\
8.
9. {\ul Parameters: } \\
10. \delta_k & target δ-service level for product k \\
11. \epsilon & \\
12. c_t & production capacity in period t \\
13. c^r_t & Remanufacturing capacity in period t \\
14. hc_k & holding cost of product k per unit and period \\
15. hc_k & holding cost of product k per unit and period \\
16. oc & overtime costs per unit \\
17. M_{kt} & bignumber for product k in period t\\
18. pc_{k} & production cost of product k per unit\\
19. pc^r_{k} & remanufacturing cost of product k per unit\\
20. sc_{k} & setup cost of product k\\
21. sc^r_{k} & setup cost of returned product k\\
22. tp_{k} & production time for one unit of product k\\
23. tp^r_{k} & remanufacturing time for one unit of product k\\
24. ts_{k} & setup time of product k\\
25. ts^r_{k} & setup time of returned product k\\
26. {\ul Random variables: } \\
27. BL_{kt} & backlog of product k at the end of period t\\
28. D_{kt} & external demand of product k in period t \\
29. I_{kt} & net inventory of product k at the end of period t \\
30. I^r_{kt} & net inventory of returns of product k at the end of period t \\
31. IP_{kt} & physical inventory of product k at the end of period t\\
32. IP^r_{kt} & physical inventory of recoverables at the end of period t\\
33. R_{kt} & returns of product k in period t\\
34. SF^r_{kt} & Shortfall of recoverables of product k in period t\\
35. {\ul Decision variables: } \\
36. q_{kt} & production quantity of product k in period t\\
37. q^r_{kt} & remanufacturing quantity of product k in period t \\
38. o_{t} & amount of overtime for production in period t \\
39. o^r_{t} & amount of overtime for remanufacturing in period t\\
40. % \gamma_{kt} & binary setup indicator for production of product k in period t\\
41. % \gamma^r_{kt} & binary setup variable for remanufactured product k in period t\\
42. \bottomrule
43. \end{tabularx}
44. \end{table}
Attachments
Unbenannt.PNG (62.54 KiB) Viewed 231 times

Elmaltus
Posts: 6
Joined: Thu Jan 17, 2019 1:48 pm
Okay I fixed the layout problems myself. But I don't know why the table moves to the end of my document when I add two more rows. (see pictures) There should be enough space for two more rows but it still is not on the right spot.
Any Ideas what I can do?
Thanks!

1. \begin{table}[h]
2. \caption{Notation des SCLSP-RM\textsuperscript{gen} Modells nach Sahling et all.(2016)}
3. \begin{tabularx}{\textwidth}{p{0.08\textwidth}X}
4. \toprule
5.
6. \multicolumn{2}{l}{{\ul Indices:}} \\
7. $K$ & number of products (k \in\{1,...,K\}) \\
8. $T$ & number of periods (t \in\{1,...,T\})\\
9.
10. \multicolumn{2}{l}{{\ul Parameters:}} \\
11. \delta_k & target δ-service level for product k \\
12. \epsilon & \\
13. c_t & production capacity in period t \\
14. c^r_t & Remanufacturing capacity in period t \\
15. hc_k & holding cost of product k per unit and period \\
16. hc_k & holding cost of product k per unit and period \\
17. oc & overtime costs per unit \\
18. M_{kt} & bignumber for product k in period t\\
19. pc_{k} & production cost of product k per unit\\
20. pc^r_{k} & remanufacturing cost of product k per unit\\
21. sc_{k} & setup cost of product k\\
22. sc^r_{k} & setup cost of returned product k\\
23. tp_{k} & production time for one unit of product k\\
24. tp^r_{k} & remanufacturing time for one unit of product k\\
25. ts_{k} & setup time of product k\\
26. ts^r_{k} & setup time of returned product k\\
27.
28. \multicolumn{2}{l}{{\ul Random variables:}} \\
29. BL_{kt} & backlog of product k at the end of period t\\
30. D_{kt} & external demand of product k in period t \\
31. I_{kt} & net inventory of product k at the end of period t \\
32. I^r_{kt} & net inventory of returns of product k at the end of period t \\
33. IP_{kt} & physical inventory of product k at the end of period t\\
34. IP^r_{kt} & physical inventory of recoverables at the end of period t\\
35. R_{kt} & returns of product k in period t\\
36. SF^r_{kt} & Shortfall of recoverables of product k in period t\\
37.
38. \multicolumn{2}{l}{{\ul Decision variables:}} \\
39. q_{kt} & production quantity of product k in period t\\
40. q^r_{kt} & remanufacturing quantity of product k in period t \\
41. o_{t} & amount of overtime for production in period t \\
42. o^r_{t} & amount of overtime for remanufacturing in period t\\
43. % \gamma_{kt} & binary setup indicator for production of product k in period t\\
44. % \gamma^r_{kt} & binary setup variable for remanufactured product k in period t\\
45. \bottomrule
46. \end{tabularx}
47. \end{table}
Attachments
Unbenannt.PNG (54.64 KiB) Viewed 219 times
2.PNG (54.42 KiB) Viewed 219 times

Elmaltus
Posts: 6
Joined: Thu Jan 17, 2019 1:48 pm
Okay I fixed the layout problems myself. But I don't know why the table moves to the end of my document when I add two more rows. (see pictures) There should be enough space for two more rows but it still is not on the right spot.
Any Ideas what I can do?
Thanks!

1. \begin{table}[h]
2. \caption{Notation des SCLSP-RM\textsuperscript{gen} Modells nach Sahling et all.(2016)}
3. \begin{tabularx}{\textwidth}{p{0.08\textwidth}X}
4. \toprule
5.
6. \multicolumn{2}{l}{{\ul Indices:}} \\
7. $K$ & number of products (k \in\{1,...,K\}) \\
8. $T$ & number of periods (t \in\{1,...,T\})\\
9.
10. \multicolumn{2}{l}{{\ul Parameters:}} \\
11. \delta_k & target δ-service level for product k \\
12. \epsilon & \\
13. c_t & production capacity in period t \\
14. c^r_t & Remanufacturing capacity in period t \\
15. hc_k & holding cost of product k per unit and period \\
16. hc_k & holding cost of product k per unit and period \\
17. oc & overtime costs per unit \\
18. M_{kt} & bignumber for product k in period t\\
19. pc_{k} & production cost of product k per unit\\
20. pc^r_{k} & remanufacturing cost of product k per unit\\
21. sc_{k} & setup cost of product k\\
22. sc^r_{k} & setup cost of returned product k\\
23. tp_{k} & production time for one unit of product k\\
24. tp^r_{k} & remanufacturing time for one unit of product k\\
25. ts_{k} & setup time of product k\\
26. ts^r_{k} & setup time of returned product k\\
27.
28. \multicolumn{2}{l}{{\ul Random variables:}} \\
29. BL_{kt} & backlog of product k at the end of period t\\
30. D_{kt} & external demand of product k in period t \\
31. I_{kt} & net inventory of product k at the end of period t \\
32. I^r_{kt} & net inventory of returns of product k at the end of period t \\
33. IP_{kt} & physical inventory of product k at the end of period t\\
34. IP^r_{kt} & physical inventory of recoverables at the end of period t\\
35. R_{kt} & returns of product k in period t\\
36. SF^r_{kt} & Shortfall of recoverables of product k in period t\\
37.
38. \multicolumn{2}{l}{{\ul Decision variables:}} \\
39. q_{kt} & production quantity of product k in period t\\
40. q^r_{kt} & remanufacturing quantity of product k in period t \\
41. o_{t} & amount of overtime for production in period t \\
42. o^r_{t} & amount of overtime for remanufacturing in period t\\
43. % \gamma_{kt} & binary setup indicator for production of product k in period t\\
44. % \gamma^r_{kt} & binary setup variable for remanufactured product k in period t\\
45. \bottomrule
46. \end{tabularx}
47. \end{table}