How to pass in a ratio of 4/15 (instead of its approximated decimal form of 0.266) to table definition.
Final solution can be seen here.
I need one more vote to close this topic.
|
How to pass in a ratio of 4/15 (instead of its approximated decimal form of 0.266) to table definition. Final solution can be seen here. I need one more vote to close this topic. |
||||
| show 16 more comments |
|
If you want more accurate calculations use the fp package. For example using the fp package as shown below you get
No need for any manual calculations! You can use it in a tabular as follows (remember it creates variable names on the fly)
\end{document} |
|||||||||||
|
|
I cannot see a gap with a zoom of 400% ...
|
|||
|
See Joseph's solution. |
|||
|
|
\ratioabove cannot accept dimensionless values such as\ratio{4}{15}. :-( – xport Dec 26 '10 at 19:30\ratiomacro is necessary. – TH. Dec 28 '10 at 9:11