Re: [NTG-context] Why is the figure not centered
That worked great! Thanks. On Fri, Mar 12, 2010 at 11:50 AM, Aditya Mahajan wrote: > On Fri, 12 Mar 2010, Curiouslearn wrote: > >> Can someone please tell me why the code below does not (horizontally) >> center the figure? The caption is in the middle but the figure is not. >> >> Thanks. >> >> \usemodule[pgfplots] >> \starttext >> >> \placefigure[here][fig:demand]{Demand Curve} >> {\starttikzpicture >> \startaxis[line width=1pt, >> axis x line = bottom, >> axis y line =left, >> xmin=0,xmax=60, >> ymax=120] >> \addplot[mark=none] coordinates {(0,100) >> (50,0)}; >> \stopaxis >> \stoptikzpicture} >> >> \stoptext > > Add a \hbox around \starttikzpicture ... \stoptikzpicture > > See > http://archive.contextgarden.net/message/20090722.010815.d9c051d3.en.html > > and Hans's reply. > > Aditya > ___ > 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 > ___ > ___ 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 ___
Re: [NTG-context] Why is the figure not centered
On Fri, 12 Mar 2010, Curiouslearn wrote: Can someone please tell me why the code below does not (horizontally) center the figure? The caption is in the middle but the figure is not. Thanks. \usemodule[pgfplots] \starttext \placefigure[here][fig:demand]{Demand Curve} {\starttikzpicture \startaxis[line width=1pt, axis x line = bottom, axis y line =left, xmin=0,xmax=60, ymax=120] \addplot[mark=none] coordinates {(0,100) (50,0)}; \stopaxis \stoptikzpicture} \stoptext Add a \hbox around \starttikzpicture ... \stoptikzpicture See http://archive.contextgarden.net/message/20090722.010815.d9c051d3.en.html and Hans's reply. Aditya ___ 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 ___
[NTG-context] Why is the figure not centered
Can someone please tell me why the code below does not (horizontally) center the figure? The caption is in the middle but the figure is not. Thanks. \usemodule[pgfplots] \starttext \placefigure[here][fig:demand]{Demand Curve} {\starttikzpicture \startaxis[line width=1pt, axis x line = bottom, axis y line =left, xmin=0,xmax=60, ymax=120] \addplot[mark=none] coordinates {(0,100) (50,0)}; \stopaxis \stoptikzpicture} \stoptext ___ 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 ___