Re: [dk-tug] calculator

Kristian Nordestgaard <[email protected]> Sun, 28 Aug 2016 22:36:46 +0200
Newsgroups gmane.comp.tex.danish
Message-ID <CAFptyNUXd3LNCXLyJ787vx7m9yk-r7xnthO+HUzV07OD8m85Yw@mail.gmail.com>
--===============2270558729397720636==
Content-Type: multipart/alternative; boundary="001a114481f0caef39053b27b4db"

--001a114481f0caef39053b27b4db
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hej Poul,

Det er ikke umiddelbart noget, jeg kan hj=C3=A6lpe med. Har du overvejet at
pr=C3=B8ve tex.stackexchance.com?

Vh Kristian

On Sun, Aug 28, 2016 at 4:33 PM, Poul Riis <[email protected]> wrote:

> Jeg vil gerne lave en tabel, hvor r=C3=A6kkefarven beregnes ved f.eks. at=
 l=C3=A6gge
> 400 til et tal, se nedenst=C3=A5ende eksempel (som alts=C3=A5 ikke virker=
):
>
> \documentclass[a4paper,landscape,12pt]{article}
> \usepackage[ansinew]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[danish]{babel}
>
> \usepackage[left=3D0.5cm,right=3D0.5cm,top=3D1.75cm,bottom=3D1.75cm]{geom=
etry}
> \usepackage{calculator}
> \usepackage[x11names]{xcolor}
> \usepackage{colortbl}
> \usepackage{pstricks-add}
>
> \newcommand{\myrowcolor}[1]{\ADD{#1}{400}{\ccsum}\rowcolor[wave]{\ccsum}}
>
> \begin{document}
> \huge
>
> \ADD{200}{300}{\addresult}
> \color[wave]{500} $200 + 300 =3D \addresult$\\
> \begin{pspicture}(0,0)(5,5)
> \pscircle*[linecolor=3D{[wave]{\addresult}}](2,2){1}
> \end{pspicture}\\
> \begin{tabular}{|l|c|}
>         \rowcolor[wave]{600}
>         one&two\\
>         \rowcolor[wave]{\addresult}
>         \color{Red1}three&\color{Blue1}four\\
>         \myrowcolor{50}
>         five&six
> \end{tabular}
>
> \end{document}
>
> Det er min hjemmestrikkede kommando \myrowcolor, den er gal med. Jeg f=C3=
=A5r
> fejlmeddelsen:
> misplaced \noalign
> Jeg har medtaget nogle f=C3=A5 andre linjer for at demonstrere et par tin=
g, der
> virker, bl. a. med calculate-pakken.
>
> Poul Riis
>
> _______________________________________________
> dk-tug.tug mailing list
>

--001a114481f0caef39053b27b4db
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hej Poul,</div><div><br></div><div>Det er ikke umidde=
lbart noget, jeg kan hj=C3=A6lpe med. Har du overvejet at pr=C3=B8ve <a hre=
f=3D"http://tex.stackexchance.com">tex.stackexchance.com</a>?</div><div><br=
></div><div>Vh Kristian</div></div><div class=3D"gmail_extra"><br><div clas=
s=3D"gmail_quote">On Sun, Aug 28, 2016 at 4:33 PM, Poul Riis <span dir=3D"l=
tr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">poul.rii=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></=
u>
<u></u>






<div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#000000" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,0);font-family:Arial;font-siz=
e:10pt">Jeg vil gerne lave en tabel, hvor r=C3=A6kkefarven beregnes ved f.e=
ks. at l=C3=A6gge 400 til et tal, se nedenst=C3=A5ende eksempel (som alts=
=C3=A5 ikke virker):</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\documentclass[a4paper,<wbr>landscape,12pt]{article}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage[ansinew]{inputenc}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage[T1]{fontenc}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage[danish]{babel}</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage[left=3D0.5cm,right=3D<wbr>0.5cm,top=3D1.75cm,bottom=
=3D1.<wbr>75cm]{geometry}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage{calculator}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage[x11names]{xcolor}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage{colortbl}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\usepackage{pstricks-add}</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\newcommand{\myrowcolor}[1]{\<wbr>ADD{#1}{400}{\ccsum}\rowcolor[<=
wbr>wave]{\ccsum}}</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\begin{document}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\huge</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\ADD{200}{300}{\addresult}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\color[wave]{500} $200 + 300 =3D \addresult$\\</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\begin{pspicture}(0,0)(5,5)</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\pscircle*[linecolor=3D{[wave]{\<wbr>addresult}}](2,2){1}</font><=
/div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\end{pspicture}\\</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\begin{tabular}{|l|c|}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\rowcolor[wave]{6=
00}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0one&amp;two\\</fo=
nt></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\rowcolor[wave]{\=
<wbr>addresult}</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\color{Red1}three=
&amp;\<wbr>color{Blue1}four\\</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\myrowcolor{50}</=
font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0five&amp;six</fon=
t></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\end{tabular}</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#0000dd" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,221);font-family:Arial;font-s=
ize:10pt">\end{document}</font></div>
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#000000" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,0);font-family:Arial;font-siz=
e:10pt">Det er min hjemmestrikkede kommando \myrowcolor, den er gal med. Je=
g f=C3=A5r fejlmeddelsen:</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#dd0000" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(221,0,0);font-family:Arial;font-s=
ize:10pt">misplaced \noalign</font></div>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#000000" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,0);font-family:Arial;font-siz=
e:10pt">Jeg har medtaget nogle f=C3=A5 andre linjer for at demonstrere et p=
ar ting, der virker, bl. a. med calculate-pakken.</font></div><span class=
=3D"HOEnZb"><font color=3D"#888888">
<br>
<div align=3D"left" style=3D"text-align:left"><font color=3D"#000000" face=
=3D"Arial" size=3D"+0" style=3D"color:rgb(0,0,0);font-family:Arial;font-siz=
e:10pt">Poul Riis</font></div>
</font></span></div>

<br>______________________________<wbr>_________________<br>
dk-tug.tug mailing list<br></blockquote></div><br></div>

--001a114481f0caef39053b27b4db--

--===============2270558729397720636==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline