#Calculations inside LaTeX

1 messages · Page 1 of 1 (latest)

wise lodge
#

Is there some way to do math calculations in LaTeX?
In my case i want a \rule with width of the \textwidth divided by 4

past lark
#

usepackage calc.
\rule{\textwidth/4}{2pt}