ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Kitzmiller <kitz@inradius.net>
To: Wolfgang Schuster <schuster.wolfgang@gmail.com>
Cc: "ntg-context@ntg.nl ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: \defineparagraphs
Date: Sat, 9 Jul 2016 08:48:23 -0400	[thread overview]
Message-ID: <FA5903A0-295C-4123-B051-1F08215AA9FE@inradius.net> (raw)
In-Reply-To: <577FA895.5070003@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1208 bytes --]


> On 8Jul, 2016, at 09:20, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>> The code below works with context2016.02.15, but fails with context2016.05.19.
>> 
>> Itemize within the defined paragraph (Mypar) no longer puts the thinrule in the margin (see the third question.) The \ansblank command seems to the second part of Mypar is 
>> the margin? Pdf of the success and fail attached.
>> 
>> Thanks! John
>> 
>> \startMypar
>> \item Third question refers to graphic at right. 
>> \Mypar
>> <A graphic/MPcode goes herer>
>> \stopMypar
> \item
>     \startcombination[nx=2,ny=1]
>         {\framed[frame=off,align=flushleft,location=top,width=.5\localhsize]{Third question refers to graphic at right.}}{}
>         {\tbox{\externalfigure[cow]}}{}
>     \stopcombination

Thank you Wolfgang. I had to change .5\localhsize to .5\textwidth for it to work here (and scale down the cow to make it fit in the barn.)

I am looking into combinations to center the graphic in the second x box, and make a \setupcombination[mycombination] similar to \defineparagraph[Mypar] to reduce typing.

\tbox is new to me. Is that a ConTeXt macro of TEX \vtop{\hbox}?

Thanks again, John

[-- Attachment #1.2: Type: text/html, Size: 6647 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

  reply	other threads:[~2016-07-09 12:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08 11:53 \defineparagraphs kitz
2016-07-08 13:20 ` \defineparagraphs Wolfgang Schuster
2016-07-09 12:48   ` John Kitzmiller [this message]
2016-07-09 15:10     ` \defineparagraphs Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FA5903A0-295C-4123-B051-1F08215AA9FE@inradius.net \
    --to=kitz@inradius.net \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).