Search found 3 matches

by theprofessor
Thu Feb 17, 2011 1:54 pm
Forum: Text Formatting
Topic: Calculate actual text width
Replies: 5
Views: 6725

Re: Calculate actual text width

Thanks, I didn't know about the linegoal package. It does require two compilations before it gets the correct values. Seems to be working fine. Great!
by theprofessor
Wed Feb 16, 2011 11:59 pm
Forum: Text Formatting
Topic: Calculate actual text width
Replies: 5
Views: 6725

Calculate actual text width

Here's my document:

\documentclass{article}
\newlength\mylength
\begin{document}
\parbox{50pt}{\raggedright The quick brown fox jumps over the lazy dog}

\settowidth{\mylength}{\raggedright The quick brown fox jumps over the lazy dog}
\the\mylength

\settowidth{\mylength}{\parbox{50pt ...
by theprofessor
Wed Feb 16, 2011 7:41 pm
Forum: Text Formatting
Topic: Calculate actual text width
Replies: 5
Views: 6725

Calculate actual text width

Hi all,

I have a raggedright section within a parbox. I want to calculate the length of the last line in this section. Unfortunately \settowidth doesn't work here. Any suggestions?

Cheers