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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis