ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to center a \placefloat?
@ 2014-02-18 10:24 Marcin Borkowski
  2014-02-18 10:28 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2014-02-18 10:24 UTC (permalink / raw)
  To: ConTeXt mailing list

Hi list,

I'd like to have a figure (by means of \placefigure) centered
horizontally.  Currently, I'm doing

  \placefigure[bottom,none,middle]{}{%
    \hbox to\textwidth{\hfil\externalfigure[logo-2-t][height=1.5cm]\hfil}}

Is there a better way?  If yes, how to do this?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to center a \placefloat?
  2014-02-18 10:24 How to center a \placefloat? Marcin Borkowski
@ 2014-02-18 10:28 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-02-18 10:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.02.2014 um 11:24 schrieb Marcin Borkowski <mbork@wmi.amu.edu.pl>:

> Hi list,
> 
> I'd like to have a figure (by means of \placefigure) centered
> horizontally.  Currently, I'm doing
> 
>  \placefigure[bottom,none,middle]{}{%
>    \hbox to\textwidth{\hfil\externalfigure[logo-2-t][height=1.5cm]\hfil}}
> 
> Is there a better way?  If yes, how to do this?

\setupexternalfigures[location=default]

\starttext

\input knuth

\placefigure
  {A dutch cow}
  {\externalfigure[cow][width=8cm]}

\input ward

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-18 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-18 10:24 How to center a \placefloat? Marcin Borkowski
2014-02-18 10:28 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).