Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make optional arguments compatible with \widthof and alike #560

Closed
pgf-tikz-bot opened this issue May 13, 2008 · 3 comments
Closed

Make optional arguments compatible with \widthof and alike #560

pgf-tikz-bot opened this issue May 13, 2008 · 3 comments

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: *anonymous
Timestamp: 2008-05-13 16:24:59

In one of my recent Documents (using the beamer class) I used \wdthof to adjust the text width of (TikZ-) nodes. Last week I did a system-wide update, changing the installed TeX distribution which stopped the document from working.

This is a minimal example:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node at (0,0) [text width=\widthof{Text }] {Text};
\end{tikzpicture}
\end{document}

Mark Wibrow suggested a workaround like

\catcode`@=11
\tikzoption{text width}{%
\pgfutil@in@\widthof{#1}%
\ifpgfutil@in@%
\setbox\pgf@hbox=\hbox{{\let\widthof=\relax\pgfutil@selectfont#1}}%
\edef\tikz@text@width{\the\wd\pgf@hbox}%
\else%
\def\tikz@text@width{#1}%
\fi%
}

\catcode`@=12

here:

http://groups.google.com/group/comp.text.tex/msg/2c697dad650bf0c9

Things like "text width=\paperwidth*\real{0.618}" should be made to work again, too.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: kluwe
Timestamp: 2008-05-13 16:28:38

Logged In: YES
user_id=2086078
Originator: NO

I'm sorry -- I submitted the item while my account was still "pending". Thus it says "Submitted By: Nobody/Anonymous"

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: vibrovski
Timestamp: 2008-05-14 07:08:11

Logged In: YES
user_id=1572756
Originator: NO

Hi,

I have fixed this in the CVS.

Regards

Mark

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2013-09-30 10:27:49.036000

  • status: open --> closed-fixed
  • Group: --> Next Release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant