From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100515 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Text overflowing on a figure included in a float Date: Mon, 9 Apr 2018 18:33:19 +0200 Message-ID: References: <2507e259-1c0d-5e98-3c1f-0e36d8387f60@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4501052955635454320==" X-Trace: blaine.gmane.org 1523291514 3134 195.159.176.226 (9 Apr 2018 16:31:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2018 16:31:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 09 18:31:50 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 1f5Zhu-0000fM-81 for gctc-ntg-context-518@m.gmane.org; Mon, 09 Apr 2018 18:31:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C6A976253FB; Mon, 9 Apr 2018 18:33:32 +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 5nqLxOsrWDzR; Mon, 9 Apr 2018 18:33:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0BAD46253A5; Mon, 9 Apr 2018 18:33:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BC3D76253A5 for ; Mon, 9 Apr 2018 18:33: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 uy2x43K5IQ3f for ; Mon, 9 Apr 2018 18:33:30 +0200 (CEST) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 D59E762530C for ; Mon, 9 Apr 2018 18:33:20 +0200 (CEST) Original-Received: by mail-wm0-f50.google.com with SMTP id u189so20378000wmd.1 for ; Mon, 09 Apr 2018 09:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=oDbzmabmuXUM57v+yIl3cW3OTgGUfgIVrwZePdMlCZY=; b=NMI9XKY5jy3DioUFDI35/a5p2WOsJDQdke0I5wdGvePMVurXXXyMAcCAq1R12sD/al r13PIKaqGu3+seMOTxHi+D0l3ctB6Xlty63+H0Id5vRxqNvfjpv02LkZ3L4sOTj19qgT w8xlf6vTaSbjh1IcwZRQd5xRbHlrs+Je8aH6b6bnZwH+MBj8jYKzAa3hCtEcdKOcFU+c 4tInTyhA0zViq2KfPq3T1SfYnLFwWWTXN63Nc7rfgCEJB9seEZ729UeAGk3F1GrLGyRK /xX2BH8MCzAtAhvz4nEQPKVKXP1IPZyCC3e4rCWDVO5uZdSe7AT4xhGVqnK8xfuPtHjK h1Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=oDbzmabmuXUM57v+yIl3cW3OTgGUfgIVrwZePdMlCZY=; b=oKLlbrQHEu3PEBYeEvCNNDVcj3Smu3EgdNdzfuYK2NErRCgGLBcuJfyTY42SF79Jhv O8JgiGTgUFH73eWZmKYzUvPNVJVJMekDbwyh+647tup2Dvmpg7e8kZrq/y+qyL4fgOCX uqUh3c1gHLKZRptvV8MQZuAGWgAiKmKdhQ8MX2kVsWk/NV36cNL2PcawMdHDRdHYx+ya 9Vbz6jNMQNnFnXDi5+gI4Kv8hsjSSJlAIcet033gL5hMMmx9w9KBv0sWNhuKqR/gVZ3w d3tpJ/GUaOHQJHbdEH4SeYrTAGz4PsFxtyk9YQUigVX32GjxHl3uRgCj+tKbx1+iyjZb Mq7g== X-Gm-Message-State: ALQs6tBnKFuiSv/LvVHI6+m91z370jwe0Cj7Jm7F7QsLpejy5jHunbmi WsWfG0hNqLdt44rAFRNHh+jlQmgPcshkpP2xvh1fyw== X-Google-Smtp-Source: AIpwx48lOx+YXw0cJVNJVEJiZKX+pO2XKyTHjDC/FeNCN8zZhoLVQSY6UwepSbGqygVxcRZQuo/iA3jL5Jnxu+kjixg= X-Received: by 10.28.44.68 with SMTP id s65mr462561wms.80.1523291600159; Mon, 09 Apr 2018 09:33:20 -0700 (PDT) Original-Received: by 10.223.182.141 with HTTP; Mon, 9 Apr 2018 09:33:19 -0700 (PDT) In-Reply-To: <2507e259-1c0d-5e98-3c1f-0e36d8387f60@xs4all.nl> 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:100515 Archived-At: --===============4501052955635454320== Content-Type: multipart/alternative; boundary="001a11436a0cb787dd05696cf621" --001a11436a0cb787dd05696cf621 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Hans, The solution you propose fixes the problem with the attached file, thanks. However, the problem is not solved if I use the class you created for the document =E2=80=8B fonts-mkiv.=E2=80=8B Fabrice 2018-04-08 11:54 GMT+02:00 Hans Hagen : > On 4/8/2018 11:08 AM, Fabrice Couvreur wrote: > >> Hello, >> Sorry if the example is not minimal but otherwise it would be difficult >> to explain the problem. The text overflows on the figure and I do not kn= ow >> how to correct this. >> > > By choosing the right language: > > \mainlanguage[fr] > > or increasing the tolerance: > > % \setuptolerance[stretch,verytolerant] > > > Thank you >> Fabrice >> >> >> \usemodule[pgfplots] >> >> \pgfplotsset{compat=3Dnewest} >> >> \starttext >> \placefigure[right,none]{}{ >> \hbox{\framed{\switchtobodyfont[8pt] >> \starttikzpicture[/pgf/declare function=3D{g(\x)=3D3*\x +7;},/pgf/declar= e >> function=3D{f(\x)=3D-4*\x +1;},/pgf/declare function=3D{h(\x)=3D2*\x -5;= }] >> \startaxis[ >> restrict x to domain=3D-20:20, xmax=3D20, xmin=3D-20, >> restrict y to domain=3D-25:30, ymax=3D30, ymin=3D-25, >> x=3D0.1cm, >> y=3D0.1cm, >> axis x line =3D middle, >> axis y line =3D middle, >> axis line style =3D thick, >> major grid style=3Dgray, >> minor grid style=3Dgray, >> tickwidth=3D0.1cm, >> xtick align=3Doutside, >> ytick align=3Doutside, >> grid=3Dboth, >> xtick=3D{-15,-10,...,15}, >> ytick=3D{-20,-15,...,25}, >> xticklabels=3D{\empty,\empty,\empty,\empty,5,\empty,\empty,\empty}, >> yticklabels=3D{\empty,\empty,\empty,\empty,\empty,5,\empty,\ >> empty,\empty,\empty,\empty,\empty}, >> extra x ticks=3D{-20,20}, >> extra x tick label=3D{\null}, >> extra y ticks=3D{-25,30}, >> extra y tick label=3D{\null}, >> extra tick style=3D{tick style=3D{draw=3Dnone}}, >> every tick/.style=3D{ >> black, >> thick, >> }, >> y tick label style=3D{ >> /pgf/number format/1000 sep=3D{} >> }, >> xlabel=3D$x$,ylabel=3D$y$, >> every axis x label/.style=3D{ >> at=3D{(ticklabel* cs:1.01)}, >> anchor=3Dwest, >> }, >> every axis y label/.style=3D{ >> at=3D{(ticklabel* cs:1.01)}, >> anchor=3Dsouth, >> }, >> samples=3D2000, >> >=3Dstealth, >> ] >> >> \addplot [smooth,domain=3D-20:20,thick,darkblue] {f(x)} ; >> \addplot [smooth,domain=3D-20:20,thick,darkred] {g(x)} ; >> \addplot [smooth,domain=3D-20:20,thick,yellow] {h(x)} ; >> >> \draw[thick,darkgreen](5,-25)--(5,30) ; >> >> \node[below left=3D2pt] at (-0.1,-0.1,0) {\math{0}} ; >> >> \stopaxis >> \stoptikzpicture}}} >> \startitemize[n] >> \item On consid=C3=A8re les droites \math{{\cal D}\,\colon x=3D5} et >> \math{{\cal D'}\,\colon y=3D3x+7}. >> >> \startitemize[a] >> \item Que vaut l'abscisse du point d'intersection de \math{{\cal D}= } >> et \math{{\cal D'}} ? >> \item Calculer alors son ordonn=C3=A9e. >> \item Interpr=C3=A9ter graphiquement le r=C3=A9sultat sur le graphi= que. >> \stopitemize >> \item On consid=C3=A8re les droites \math{\Delta \,\colon y=3D-4x+1} = et >> \math{\Delta '\,\colon y=3D2x-5}. >> >> \startitemize[a] >> \item R=C3=A9soudre l'=C3=A9quation \math{-4x+1=3D2x-5}. >> \item Donner une interpr=C3=A9tation graphique de la solution obten= ue. >> \item Donner les coordonn=C3=A9es du point d'intersection de >> \math{\Delta} et \math{\Delta '}. >> \item Interpr=C3=A9ter graphiquement le r=C3=A9sultat sur le graphi= que. >> \stopitemize >> \stopitemize >> \stoptext >> >> >> ____________________________________________________________ >> _______________________ >> If your question is of interest to others as well, please add an entry t= o >> the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ____________________________________________________________ >> _______________________ >> >> > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > ____________________________________________________________ > _______________________ > 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/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --001a11436a0cb787dd05696cf621 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hans,
The solut= ion you propose fixes the problem with the attached file, thanks.However, the problem is not solved if I use the class you created fo= r the document
=E2=80=8B fonts-mkiv.=E2=80=8B
= Fabrice

2018-04-08 11:54 GMT+02:00 Hans Hagen <j.hagen@xs4all.= nl>:
On 4/= 8/2018 11:08 AM, Fabrice Couvreur wrote:
Hello,
Sorry if the example is not minimal but otherwise it would be difficult to = explain the problem. The text overflows on the figure and I do not know how= to correct this.

By choosing the right language:

\mainlanguage[fr]

or increasing the tolerance:

% \setuptolerance[stretch,verytolerant]


Thank you
Fabrice


\usemodule[pgfplots]

\pgfplotsset{compat=3Dnewest}

\starttext
\placefigure[right,none]{}{
\hbox{\framed{\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare function=3D{g(\x)=3D3*\x +7;},/pgf/declare f= unction=3D{f(\x)=3D-4*\x +1;},/pgf/declare function=3D{h(\x)=3D2*\x -5;}] \startaxis[
=C2=A0=C2=A0restrict x to domain=3D-20:20, xmax=3D20, xmin=3D-20,
=C2=A0=C2=A0restrict y to domain=3D-25:30, ymax=3D30, ymin=3D-25,
=C2=A0=C2=A0x=3D0.1cm,
=C2=A0=C2=A0y=3D0.1cm,
=C2=A0=C2=A0axis x line =3D middle,
=C2=A0=C2=A0axis y line =3D middle,
=C2=A0=C2=A0axis line style =3D=C2=A0 thick,
=C2=A0=C2=A0major grid style=3Dgray,
=C2=A0=C2=A0minor grid style=3Dgray,
=C2=A0=C2=A0tickwidth=3D0.1cm,
=C2=A0=C2=A0xtick align=3Doutside,
=C2=A0=C2=A0ytick align=3Doutside,
=C2=A0=C2=A0grid=3Dboth,
=C2=A0=C2=A0xtick=3D{-15,-10,...,15},
=C2=A0=C2=A0ytick=3D{-20,-15,...,25},
=C2=A0=C2=A0xticklabels=3D{\empty,\empty,\empty,\empty,5,\empty,\empty= ,\empty},
=C2=A0=C2=A0yticklabels=3D{\empty,\empty,\empty,\empty,\empty,5,\empty= ,\empty,\empty,\empty,\empty,\empty},
=C2=A0=C2=A0extra x ticks=3D{-20,20},
=C2=A0=C2=A0extra x tick label=3D{\null},
=C2=A0=C2=A0extra y ticks=3D{-25,30},
=C2=A0=C2=A0extra y tick label=3D{\null},
=C2=A0=C2=A0extra tick style=3D{tick style=3D{draw=3Dnone}},
=C2=A0=C2=A0every tick/.style=3D{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 black,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 thick,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0y tick 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 /pgf/num= ber format/1000 sep=3D{}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0xlabel=3D$x$,ylabel=3D$y$,
=C2=A0=C2=A0every axis x label/.style=3D{
=C2=A0=C2=A0=C2=A0=C2=A0 at=3D{(ticklabel* cs:1.01)},
=C2=A0=C2=A0=C2=A0=C2=A0 anchor=3Dwest,
},
every axis y label/.style=3D{
=C2=A0=C2=A0=C2=A0=C2=A0 at=3D{(ticklabel* cs:1.01)},
=C2=A0=C2=A0=C2=A0=C2=A0 anchor=3Dsouth,
},
=C2=A0=C2=A0samples=3D2000,
=C2=A0=C2=A0>=3Dstealth,
]

\addplot [smooth,domain=3D-20:20,thick,darkblue] {f(x)} ;
\addplot [smooth,domain=3D-20:20,thick,darkred] {g(x)} ;
\addplot [smooth,domain=3D-20:20,thick,yellow] {h(x)} ;

\draw[thick,darkgreen](5,-25)--(5,30) ;

\node[below left=3D2pt] at (-0.1,-0.1,0) {\math{0}} ;

\stopaxis
\stoptikzpicture}}}
=C2=A0=C2=A0 \startitemize[n]
=C2=A0=C2=A0 \item On consid=C3=A8re les droites \math{{\cal D}\,\colon x= =3D5} et \math{{\cal D'}\,\colon y=3D3x+7}.

=C2=A0=C2=A0=C2=A0=C2=A0 \startitemize[a]
=C2=A0=C2=A0=C2=A0=C2=A0 \item Que vaut l'abscisse du point d'inter= section de \math{{\cal D}} et \math{{\cal D'}} ?
=C2=A0=C2=A0=C2=A0=C2=A0 \item Calculer alors son ordonn=C3=A9e.
=C2=A0=C2=A0=C2=A0=C2=A0 \item Interpr=C3=A9ter graphiquement le r=C3=A9sul= tat sur le graphique.
=C2=A0=C2=A0=C2=A0=C2=A0 \stopitemize
=C2=A0=C2=A0 \item On consid=C3=A8re les droites \math{\Delta \,\colon y=3D= -4x+1} et \math{\Delta '\,\colon y=3D2x-5}.

=C2=A0=C2=A0=C2=A0=C2=A0 \startitemize[a]
=C2=A0=C2=A0=C2=A0=C2=A0 \item R=C3=A9soudre l'=C3=A9quation \math{-4x+= 1=3D2x-5}.
=C2=A0=C2=A0=C2=A0=C2=A0 \item Donner une interpr=C3=A9tation graphique de = la solution obtenue.
=C2=A0=C2=A0=C2=A0=C2=A0 \item Donner les coordonn=C3=A9es du point d'i= ntersection de \math{\Delta} et \math{\Delta '}.
=C2=A0=C2=A0=C2=A0=C2=A0 \item Interpr=C3=A9ter graphiquement le r=C3=A9sul= tat sur le graphique.
=C2=A0=C2=A0=C2=A0=C2=A0 \stopitemize
=C2=A0=C2=A0 \stopitemize
\stoptext


_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________



--

-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-pod.nl
-----------------------------------------------------------------=
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a11436a0cb787dd05696cf621-- --===============4501052955635454320== 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 --===============4501052955635454320==--