Code: Select all
\newcommand{\leftsize}{0.75\textwidth}
\newcommand{\cellsize}{0.15\textwidth}
Code: Select all
\newcommand{\prodsize}{\cellsize*\leftsize}
Code: Select all
\newcommand{\prodsize}{0.1125\textwidth}
Code: Select all
\newcommand{\leftsize}{0.75\textwidth}
\newcommand{\cellsize}{0.15\textwidth}
Code: Select all
\newcommand{\prodsize}{\cellsize*\leftsize}
Code: Select all
\newcommand{\prodsize}{0.1125\textwidth}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\newcommand{\prodsize}{\leftsize*\cellsize}
Code: Select all
\newcommand{\prodsize}{\leftsize*\real{0.5}}
They're in the first post.gmedina wrote:Can you please post your definitions for \leftsize and \cellsize?
Code: Select all
\documentclass{article}
\usepackage{calc}
\newlength\leftsize
\addtolength\leftsize{0.75\textwidth}
\newlength\cellsize
\addtolength\cellsize{0.15\textwidth}
\newlength\prodsize
\makeatletter
\newcommand\mylen{\strip@pt\cellsize}
\makeatother
\addtolength\prodsize{\leftsize*\real{\mylen}}
\begin{document}
\the\leftsize
\the\cellsize
\the\prodsize
\end{document}
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage{calc}
\newlength{\leftsize}
\setlength{\leftsize}{0.75\textwidth}
\newlength{\cellsize}
\setlength{\cellsize}{0.15\textwidth}
\newlength{\addsize}
\setlength{\addsize}{\leftsize+\cellsize}
\newlength{\prodsize}
\newcommand*\factor{0.5}
\setlength{\prodsize}{\factor\cellsize}
\begin{document}
\rule{\leftsize}{1ex}
\rule{\cellsize}{1ex}
\rule{\addsize}{1ex}
\rule{\prodsize}{1ex}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.