Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

An engineer is someone who does list processing in FORTRAN.


computers / comp.text.tex / rotating and scaling tikz Automata picutres

SubjectAuthor
* rotating and scaling tikz Automata picutresDave94705
`* Re: rotating and scaling tikz Automata picutresWasell
 `- Re: rotating and scaling tikz Automata picutresDave94705

1
rotating and scaling tikz Automata picutres

<a19b2a7e-8454-4429-97fa-a87f916d197en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.text.tex
X-Received: by 2002:ac8:4d42:: with SMTP id x2mr25282844qtv.178.1621994820270;
Tue, 25 May 2021 19:07:00 -0700 (PDT)
X-Received: by 2002:aed:3071:: with SMTP id 104mr33705000qte.119.1621994820043;
Tue, 25 May 2021 19:07:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Tue, 25 May 2021 19:06:59 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=45.30.90.187; posting-account=TEWWXwoAAABVTlovvE5oUyiszPAiy7tz
NNTP-Posting-Host: 45.30.90.187
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a19b2a7e-8454-4429-97fa-a87f916d197en@googlegroups.com>
Subject: rotating and scaling tikz Automata picutres
From: david.jobman.schwartz@gmail.com (Dave94705)
Injection-Date: Wed, 26 May 2021 02:07:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Dave94705 - Wed, 26 May 2021 02:06 UTC

I cannot figure out how to scale or rotate an entire automata tikz picture.

Taking an example from page 577 of the manual, my approach clearly is not doing what I want -- to scale and rotate the entire figure. I have moved the scale=..., around within the [] too, but nothing seems to get what I want or expect. Am I (dense and) missing something or is scaling and rotating within automata harder than I thought or impossible? Thanks for any help, dave

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary {arrows.meta,automata,positioning,shadows}

\begin{document}
\begin{tikzpicture}[%
scale=2, rotate= 90, % this line is my addition
shorten >=1pt,node distance=2cm,on grid,>={Stealth[round]},thick,
every state/.style={fill,draw=none,orange,text=white,circular drop shadow},
accepting/.style ={green!50!black,text=white},
initial/.style ={red,text=white}]
\node[state,initial] (q_0) {$q_0$};
\node[state] (q_1) [above right=of q_0] {$q_1$};
\node[state] (q_2) [below right=of q_0] {$q_2$};
\node[state,accepting](q_3) [below right=of q_1] {$q_3$};
\path[->] (q_0) edge node [above left] {0} (q_1)
edge node [below left] {1} (q_2)
(q_1) edge node [above right] {1} (q_3)
edge [loop above] node {0} ()
(q_2) edge node [below right] {0} (q_3)
edge [loop below] node {1} ();
\end{tikzpicture}
\end{document}

Re: rotating and scaling tikz Automata picutres

<MPG.3b18187fcdcbd1b09896e5@reader.eternal-september.org>

  copy mid

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

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: usenet2020@wasell.eu (Wasell)
Newsgroups: comp.text.tex
Subject: Re: rotating and scaling tikz Automata picutres
Date: Wed, 26 May 2021 09:35:04 +0200
Organization: Never You Mind, Inc.
Lines: 39
Message-ID: <MPG.3b18187fcdcbd1b09896e5@reader.eternal-september.org>
References: <a19b2a7e-8454-4429-97fa-a87f916d197en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="1987933882c3cb8439595d2405ec30a2";
logging-data="28951"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19e2/uRmC7jWbAg62mLzr2L"
User-Agent: MicroPlanet-Gravity/3.0.4
Cancel-Lock: sha1:lKRuMDHFH7S+tPcSXfAcKtrxphw=
 by: Wasell - Wed, 26 May 2021 07:35 UTC

On Tue, 25 May 2021 19:06:59 -0700 (PDT), in article <a19b2a7e-
8454-4429-97fa-a87f916d197en@googlegroups.com>, Dave94705 wrote:
>
> I cannot figure out how to scale or rotate an entire automata tikz picture.
>
> Taking an example from page 577 of the manual, my approach clearly is not doing what I want -- to scale and rotate the entire figure. I have moved the scale=..., around within the [] too, but nothing seems to get what I want or expect. Am I (dense and) missing something or is scaling and rotating within
automata harder than I thought or impossible? Thanks for any help, dave
>
>
> \documentclass{article}
> \usepackage{tikz}
> \usetikzlibrary {arrows.meta,automata,positioning,shadows}
>
> \begin{document}
> \begin{tikzpicture}[%
> scale=2, rotate= 90, % this line is my addition
> shorten >=1pt,node distance=2cm,on grid,>={Stealth[round]},thick,
> every state/.style={fill,draw=none,orange,text=white,circular drop shadow},
> accepting/.style ={green!50!black,text=white},
> initial/.style ={red,text=white}]
> \node[state,initial] (q_0) {$q_0$};
> \node[state] (q_1) [above right=of q_0] {$q_1$};
> \node[state] (q_2) [below right=of q_0] {$q_2$};
> \node[state,accepting](q_3) [below right=of q_1] {$q_3$};
> \path[->] (q_0) edge node [above left] {0} (q_1)
> edge node [below left] {1} (q_2)
> (q_1) edge node [above right] {1} (q_3)
> edge [loop above] node {0} ()
> (q_2) edge node [below right] {0} (q_3)
> edge [loop below] node {1} ();
> \end{tikzpicture}
>
> \end{document}

You also need `transform shape', i.e.

scale=2, rotate= 90, transform shape, % etc

See section "17.7 Transformations".

Re: rotating and scaling tikz Automata picutres

<e7fd8e92-70a3-47f4-aefa-00b716aeb866n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.text.tex
X-Received: by 2002:a05:6214:a11:: with SMTP id dw17mr43724676qvb.8.1622032336647;
Wed, 26 May 2021 05:32:16 -0700 (PDT)
X-Received: by 2002:ac8:4b57:: with SMTP id e23mr37616536qts.286.1622032336437;
Wed, 26 May 2021 05:32:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Wed, 26 May 2021 05:32:16 -0700 (PDT)
In-Reply-To: <MPG.3b18187fcdcbd1b09896e5@reader.eternal-september.org>
Injection-Info: google-groups.googlegroups.com; posting-host=45.30.90.187; posting-account=TEWWXwoAAABVTlovvE5oUyiszPAiy7tz
NNTP-Posting-Host: 45.30.90.187
References: <a19b2a7e-8454-4429-97fa-a87f916d197en@googlegroups.com> <MPG.3b18187fcdcbd1b09896e5@reader.eternal-september.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e7fd8e92-70a3-47f4-aefa-00b716aeb866n@googlegroups.com>
Subject: Re: rotating and scaling tikz Automata picutres
From: david.jobman.schwartz@gmail.com (Dave94705)
Injection-Date: Wed, 26 May 2021 12:32:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Dave94705 - Wed, 26 May 2021 12:32 UTC

Thank you, that works nicely.


computers / comp.text.tex / rotating and scaling tikz Automata picutres

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor