From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101407 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Placement of a figure made with TiKz Date: Sun, 29 Jul 2018 13:01:20 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7649972804880202362==" X-Trace: blaine.gmane.org 1532861998 5469 195.159.176.226 (29 Jul 2018 10:59:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2018 10:59:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 29 12:59:54 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjjQY-0001LI-59 for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jul 2018 12:59:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 56157487A2; Sun, 29 Jul 2018 13:01:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9f5zsGtNcIqe; Sun, 29 Jul 2018 13:01:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id A70344879E; Sun, 29 Jul 2018 13:01:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CCA4F4879E for ; Sun, 29 Jul 2018 13:01:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P0JxLaVrHJMf for ; Sun, 29 Jul 2018 13:01:31 +0200 (CEST) Original-Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 471F94879D for ; Sun, 29 Jul 2018 13:01:21 +0200 (CEST) Original-Received: by mail-wr1-f44.google.com with SMTP id a3-v6so9583841wrt.2 for ; Sun, 29 Jul 2018 04:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XT5IarvIi8ULG3bqzi7Fvzl430nLh+ZwS24FfT84n/s=; b=K3WmVTS4agn/Vjskyj9Xuf/4Yq3dFXt8emcoWskByz0zqbZT/u2PEVcqMnDt9BdZmC R4RNyXDWMWd0fATzVq5OnyU7Hu7CN4KcoBUUHM2yC4fj2HxVC7YkwNbSE3d/KPN+SK/Z CHA1A+C7uXPq9msIOgJeI+51NdkXDoSnvw5i9J+upun+hdfB5o+ojWiOA1NJYYSI8NJ3 reyROwaQ3zjUWMqcFvtXScxtVU0bTtQZ/Q2gL9+eeFCyGYAohF+sp76hcKsLypcrrxse 6JxptEAeCR+7wZ0l6ee1jWI5VVr2aCT4RT4WOVHZt+eXWj6m2yZcznUQ+SOEnYNKkTNa N0Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XT5IarvIi8ULG3bqzi7Fvzl430nLh+ZwS24FfT84n/s=; b=rRAkaU6VddYhmHzBjh+jfzDxIdWuCcChK1y7OPguPuFGZkz/QxmA507elHSjyxIqkr uuQcLDQadYuRzlqc/SDibGX9wnvHO6wIq1enlogylW3AFyi5XdxWAVQG/NpOoCBN3umu 4QaEaBJbEgLEQnzG0v85ExMwHKJF0PZoJrkGOVsh63cPNUbQGBd0cvSX0uhJmZsGzYH8 t5wz30oeZt8oTsFcIRfqKInUn8Yy7678wywM+CrQ0ppK79rCcY/RQDcOaBtMzyRBHHfO mfqRWKLIuVE7sRN2RDE4yKyyiSDiK6EqQ8+Rm/z1VMjSi1lmt+dn3Hx6+XDveMFaxdeP O7Cg== X-Gm-Message-State: AOUpUlGpWx9HdYLeSvaHHPTLEJ94hAjsdAVvdUZUx7C9Vjq9Bf7pFWlH 5Sqc56i3jDEmPsP8rEVbrFzVVKhd757fNeiubY+JxcW+ X-Google-Smtp-Source: AAOMgpepycGOfeedAwTQt2jd2vi07W9DOfwwCrkt9XVy+XKaVjUimECHjOwEiUiqJK+GIkHz8wFTMMFiho8vLbYjDjk= X-Received: by 2002:adf:90e9:: with SMTP id i96-v6mr13572420wri.146.1532862080728; Sun, 29 Jul 2018 04:01:20 -0700 (PDT) Original-Received: by 2002:adf:c4a7:0:0:0:0:0 with HTTP; Sun, 29 Jul 2018 04:01:20 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:101407 Archived-At: --===============7649972804880202362== Content-Type: multipart/alternative; boundary="000000000000cfc1db05722143be" --000000000000cfc1db05722143be Content-Type: text/plain; charset="UTF-8" Hello, I do not understand why figure 2 does not fit correctly like the other two. Thank you Fabrice \useMPlibrary[dum] \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=newest} \usetikzlibrary{positioning} \usetikzlibrary{calc} \setuplayout [height=middle, width=middle, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \showframe \starttext \placefigure[right]{first}{\externalfigure[dummy]} \placefigure[right]{second}{ \hbox{ \starttikzpicture[thick] \switchtobodyfont[9pt] \startaxis[ x=3cm,y=3cm, axis line style = thick, major tick style=black, xtick={0,0.25,...,1},ytick={0,0.25,...,1}, ymin=-0.25,ymax=1.25,xmin=-0.25,xmax=1.5, axis on top=true, axis lines=middle, tickwidth=0.15cm, minor tick num=3, major tick style = {thick, black}, axis line style = thick, yticklabels={,,}, xticklabels={,,}, major tick style=black, extra x ticks={1.25}, extra x tick label={\null}, xlabel=$x$,ylabel=$y$, every axis x label/.style= { at={(ticklabel* cs:1)}, anchor=west }, every axis y label/.style= { at={(ticklabel* cs:1)}, anchor=south }, >=stealth] \coordinate [label=below left : $A$](A) at (0,0); \coordinate [label=below right : $B$](B) at (1,0); \coordinate [label=below right : $C$](C) at (1,1); \coordinate [label=above left : $D$](D) at (0,1); \coordinate (M) at (0.25,0); \coordinate (N) at (1,0.25); \coordinate (P) at (0.75,1); \coordinate (Q) at (0,0.75); \node[below left] at (M) {$M$}; \node[right] at (N) {$N$}; \node[above] at (P) {$P$}; \node[left] at (Q) {$Q$}; \node[left] at (0,1){$1$}; \node[below] at (1,0){$1$}; \draw (A)--(B)--(C)--(D)--cycle ; \draw [draw=red, fill=red!70](M)--(N)--(P)--(Q)--cycle ; \stopaxis \stoptikzpicture } } \placefigure[right]{third}{ \hbox{ \starttikzpicture \draw[draw=red,fill=red!70] (0,0) rectangle (3,3); \stoptikzpicture } } \stoptext --000000000000cfc1db05722143be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= Hello,
I do not understand why figur= e 2 does not fit correctly like the other two.
Thank you
Fabrice


\useMPlibrary[dum]
=
\usemodule[tikz]

\usemodule[pgfplots]
\pgfplotsset{compat=3Dn= ewest}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}

\set= uplayout
=C2=A0 [height=3Dmiddle,
=C2=A0=C2=A0 width=3Dmiddle,
=C2= =A0=C2=A0 backspace=3D2cm,
=C2=A0=C2=A0 topspace=3D10mm,
=C2=A0=C2=A0= bottomspace=3D10mm,
=C2=A0=C2=A0 header=3D10mm,
=C2=A0=C2=A0 footer= =3D10mm,
=C2=A0=C2=A0 footerdistance=3D10mm,
=C2=A0=C2=A0 headerdista= nce=3D10mm]=C2=A0

\showframe

\starttext

\placefigure[= right]{first}{\externalfigure[dummy]}

\placefigure[right]{second}{=C2=A0 \hbox{
=C2=A0=C2=A0=C2=A0 \starttikzpicture[thick]
\switchto= bodyfont[9pt]
\startaxis[
x=3D3cm,y=3D3cm,
axis line style =3D thi= ck,
major tick style=3Dblack,
xtick=3D{0,0.25,...,1},ytick=3D{0,0.25,= ...,1},
ymin=3D-0.25,ymax=3D1.25,xmin=3D-0.25,xmax=3D1.5,
axis on top= =3Dtrue,
axis lines=3Dmiddle,
tickwidth=3D0.15cm,
minor tick num= =3D3,
major tick style =3D {thick, black},
axis line style =3D thick,=
yticklabels=3D{,,},
xticklabels=3D{,,},
major tick style=3Dblack,=
extra x ticks=3D{1.25},
extra x tick label=3D{\null},
xlabel=3D$x= $,ylabel=3D$y$,
every axis x label/.style=3D
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at=3D{(ticklabel* cs= :1)},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 anchor=3Dwest
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 every axis y = label/.style=3D
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 at=3D{(ticklabel* cs:1)},
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 anchor=3Dsouth
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 },=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >=3Dstealth]
=C2=A0
\coordinate = [label=3Dbelow left=C2=A0 : $A$](A) at (0,0);
\coordinate [label=3Dbelow= right : $B$](B) at (1,0);
\coordinate [label=3Dbelow right : $C$](C) at= (1,1);=C2=A0
\coordinate [label=3Dabove left=C2=A0 : $D$](D) at (0,1);= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
\coordinate (M) at (0.25,0);
\coordin= ate (N) at (1,0.25);
\coordinate (P) at (0.75,1);
\coordinate (Q) at = (0,0.75);

\node[below left] at (M) {$M$};
\node[right] at (N) {$N= $};
\node[above] at (P) {$P$};
\node[left]=C2=A0 at (Q) {$Q$};
\node[left] at (0,1){$1$};
\node[below] at (1,0){$1$};

\draw (A)= --(B)--(C)--(D)--cycle ;
\draw [draw=3Dred, fill=3Dred!70](M)--(N)--(P)-= -(Q)--cycle ;

\stopaxis
\stoptikzpicture
=C2=A0 }
}

=
\placefigure[right]{third}{
=C2=A0 \hbox{
=C2=A0=C2=A0=C2=A0 \sta= rttikzpicture
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \draw[draw=3Dred,fill=3Dred= !70] (0,0) rectangle (3,3);
=C2=A0=C2=A0=C2=A0 \stoptikzpicture
=C2= =A0 }
}
\stoptext
--000000000000cfc1db05722143be-- --===============7649972804880202362== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7649972804880202362==--