From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87108 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Text and figure side by side Date: Thu, 24 Apr 2014 16:20:21 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2123453962==" X-Trace: ger.gmane.org 1398349250 9300 80.91.229.3 (24 Apr 2014 14:20:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2014 14:20:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 24 16:20:45 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WdKW1-0000pH-Hh for gctc-ntg-context-518@m.gmane.org; Thu, 24 Apr 2014 16:20:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B9EF1026C for ; Thu, 24 Apr 2014 16:20:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cZeTs2w9pgv7 for ; Thu, 24 Apr 2014 16:20:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DF24810207 for ; Thu, 24 Apr 2014 16:20:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33CBA101E8 for ; Thu, 24 Apr 2014 16:20:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tQ3VXylkNw7z for ; Thu, 24 Apr 2014 16:20:31 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id C4850101E2 for ; Thu, 24 Apr 2014 16:20:23 +0200 (CEST) Original-Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3OEeduF030970 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 24 Apr 2014 16:40:39 +0200 Original-Received: by mail-wi0-f169.google.com with SMTP id hm4so1288400wib.4 for ; Thu, 24 Apr 2014 07:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nY/sEcaM1GjiqcpBK+4kvKTpWopTKliyHkeLsjHLq+8=; b=sIbn6bv6x067zc7EtcyGoa5DsB9WETxA0XXXmBFydLewxicxttcb+qyQzj5M/nHHJa HfWw2nTUF/QQDFI3JfFoNIrdFJxgXK8srh/TlLRRCagq5IO5ct3i9QTlKxP+ErISRc71 2jSArl1UbL4jJRd58s9z1AolrKRTzTbyQbxi23okelkwQgubmZK+uyMXQSQzyoNf3jAs 0J1iQfFZ7LuTC0IOiKQFAEb1kBfWXA+/8dfQ+BzWPF+1D1XVumwVfaRB09dyiIPcnA2c M7sO08b54+Qu3Ih/29Wl7GsCYyp/T3YwgCyOmamJrYrsD8OxmCHfXe8n06yplLxkn6Mp Yqcg== X-Received: by 10.180.90.79 with SMTP id bu15mr6870383wib.38.1398349221720; Thu, 24 Apr 2014 07:20:21 -0700 (PDT) Original-Received: by 10.227.1.70 with HTTP; Thu, 24 Apr 2014 07:20:21 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LROEDEb - 43e0255cdbf7 - 20140424 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87108 Archived-At: --===============2123453962== Content-Type: multipart/alternative; boundary=f46d043c092ea1f80504f7ca8cf8 --f46d043c092ea1f80504f7ca8cf8 Content-Type: text/plain; charset=UTF-8 Hi, Is it possible to put side by side text and a figure created in a TikZ environment ? Thank you, Fabrice \usemodule[tikz] \usetikzlibrary[calc] \starttext \def\smiley{% \starttikzpicture[baseline=-0.75ex,black] \filldraw[fill=orange] circle (2mm); \node[fill,circle,inner sep=0.5pt] (left eye) at (135:0.8mm) {}; \node[fill,circle,inner sep=0.5pt] (right eye) at (45:0.8mm) {}; \draw (-145:0.9mm) arc (-120:-60:1.5mm); \stoptikzpicture} \placefigure[right,none]{}{ \starttikzpicture \coordinate (c1) at (0,0); \draw[thick,fill=darkgreen] ($(c1) + (0:30mm)$) arc (0:360:30mm) ($(c1) + (360:35mm)$) arc (360:0:35mm); \draw[thick,fill=gray] ($(c1) + (0:3mm)$) arc (0:360:3mm); \foreach \x in {0,36,...,180} \draw[fill=red, draw=black](c1)--(\x:30mm) arc (\x:\x+36:30mm)--(c1); \foreach \x in {216,252,...,324} \draw[fill=blue, draw=black](c1)--(\x:30mm) arc (\x:\x+36:30mm)--(c1); \foreach \x in {3,12,...,360} \draw[fill=lightgray] (\x:28mm) circle (2pt); \draw[thick,fill=white!30] ($(c1) + (0:3mm)$) arc (0:360:3mm) ($(c1) + (360:4mm)$) arc (360:0:4mm); \draw[thick,fill=darkgray] ($(c1) + (0:3mm)$) arc (0:360:3mm); \foreach \x in {18,54,...,198} \node [white,rotate=\x] at (\x:17.5mm){\small \bf PERDU}; \foreach \x in {234,270,306,342} \node [] at (\x:17.5mm) {\smiley}; \draw[darkgray,-latex,line width=4pt, line cap=round] (90:37mm) -- (90:26mm); \stoptikzpicture} \input knuth \stoptext --f46d043c092ea1f80504f7ca8cf8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
Is it possible to put= side by side text and a figure created
in a TikZ environment ?
Thank you,
Fabric= e

\usemodule[tikz]
\usetikzlibrary[calc]
\starttext
\def\sm= iley{%
\starttikzpicture[baseline=3D-0.75ex,black]
\filldraw[fill=3Do= range] circle (2mm);
\node[fill,circle,inner sep=3D0.5pt] (left eye) at (135:0.8mm) {};
\node= [fill,circle,inner sep=3D0.5pt] (right eye) at (45:0.8mm) {};
\draw (-14= 5:0.9mm) arc (-120:-60:1.5mm);
\stoptikzpicture}
\placefigure[right,n= one]{}{
\starttikzpicture
\coordinate (c1) at (0,0);
\draw[thick,fill=3Ddarkg= reen] ($(c1) + (0:30mm)$) arc (0:360:30mm)
($(c1) + (360:35mm)$) arc (36= 0:0:35mm);
\draw[thick,fill=3Dgray] ($(c1) + (0:3mm)$) arc (0:360:3mm);<= br> \foreach \x in {0,36,...,180}
\draw[fill=3Dred, draw=3Dblack](c1)--(\x:3= 0mm) arc (\x:\x+36:30mm)--(c1);
\foreach \x in {216,252,...,324}
\dra= w[fill=3Dblue, draw=3Dblack](c1)--(\x:30mm) arc (\x:\x+36:30mm)--(c1);
\= foreach \x in {3,12,...,360}
\draw[fill=3Dlightgray] (\x:28mm) circle (2pt);
\draw[thick,fill=3Dwhite= !30] ($(c1) + (0:3mm)$) arc (0:360:3mm)
($(c1) + (360:4mm)$) arc (360:0:= 4mm);
\draw[thick,fill=3Ddarkgray] ($(c1) + (0:3mm)$) arc (0:360:3mm); \foreach \x in {18,54,...,198}
\node [white,rotate=3D\x] at (\x:17.5mm){= \small \bf PERDU};
\foreach \x in {234,270,306,342}
\node [] at (\x:1= 7.5mm) {\smiley};
\draw[darkgray,-latex,line width=3D4pt, line cap=3Drou= nd] (90:37mm) -- (90:26mm);
\stoptikzpicture}
\input knuth
\stoptext


--f46d043c092ea1f80504f7ca8cf8-- --===============2123453962== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2123453962==--