Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If value corrupts then absolute value corrupts absolutely."


computers / comp.text.tex / Class writing: Variable doesn't show in savebox

SubjectAuthor
o Class writing: Variable doesn't show in saveboxjohnl...@gmail.com

1
Class writing: Variable doesn't show in savebox

<d36dfbdb-a84d-4f20-938c-c8fe67a69a4bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5225&group=comp.text.tex#5225

  copy link   Newsgroups: comp.text.tex
X-Received: by 2002:ac8:5ad2:0:b0:344:90e7:410f with SMTP id d18-20020ac85ad2000000b0034490e7410fmr35184386qtd.625.1662244824593;
Sat, 03 Sep 2022 15:40:24 -0700 (PDT)
X-Received: by 2002:a0d:cbc5:0:b0:344:fd5a:94bd with SMTP id
n188-20020a0dcbc5000000b00344fd5a94bdmr5870646ywd.51.1662244824332; Sat, 03
Sep 2022 15:40:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Sat, 3 Sep 2022 15:40:23 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=75.85.186.159; posting-account=wmA6DwoAAADS2NSWjb1cOGch380zMLxf
NNTP-Posting-Host: 75.85.186.159
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d36dfbdb-a84d-4f20-938c-c8fe67a69a4bn@googlegroups.com>
Subject: Class writing: Variable doesn't show in savebox
From: johnlervin@gmail.com (johnl...@gmail.com)
Injection-Date: Sat, 03 Sep 2022 22:40:24 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1592
 by: johnl...@gmail.com - Sat, 3 Sep 2022 22:40 UTC

Hi There:
Trying to use variable with saveboxes and getting unexpected result. Why won't the variable show when I use the savebox?

thanks!
John

Class File (excerpt):
\let\@foo\relax
\def\foo#1{\def\@foo{#1}}
\newcommand{\showfoo}{\@foo}
\newsavebox{\testbox}
\sbox{\testbox} { Testbox goes \showfoo}

Tex File (excerpt):
\begin{document}
\foo{foo}
Test box test: \usebox{\testbox}

Show foo test: \showfoo
\end{document}

Output:
Test box test: Testbox goes
Show foo test: foo

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor