ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Tommaso Gordini <illinguista1972@gmail.com>,
	mailing users <ntg-context@ntg.nl>
Subject: Re: A ConTeXt Guide in Italian
Date: Sun, 2 Dec 2018 22:52:51 +0100	[thread overview]
Message-ID: <1816ccbd-5a7f-ee50-6d3d-8b002f78c834@gmail.com> (raw)
In-Reply-To: <CA+b=C5X0PBjKZuQFP14TFykKcp7j9dwUWddjp7sx7vOX7nLpOA@mail.gmail.com>

Tommaso Gordini schrieb am 27.11.18 um 08:14:
> Wolfgang, your code works very fine for me, and the result is very 
> beautiful, but I have noticed that it does not allow the interruption 
> between two pages.
> 
> I tried to pass the split=yes option to the \startembeddedxtable, 
> \startxrow or\startxcell commands, but nothing happens: where am I wrong?
> Is it possible to get what I want? Often I need to write long codes, 
> with and without output, and a breakable environment would avoid large 
> ugly spaces on the page.

Use the framedtext environment for the content of your examples.

> Below a MWE.
> 
> Thanks in advance
> Tommaso
> 
> \defineuserdata [purecode] [alternative=purecode]
> 
> \defineuserdataalternative [purecode] [renderingsetup=userdata:purecode]
> 
> \startsetups [userdata:purecode]
>    \blank
>    \startembeddedxtable 
> [width=\textwidth,strut=no,offset=1ex,framecolor=black,rulethickness=0.5pt]
>      \startxrow [corner=round,align=normal]
>        \startxcell
>          \typebuffer [userdata] [option=tex]
>        \stopxcell
>      \stopxrow
>    \stopembeddedxtable
>    \blank
> \stopsetups

\startsetups [userdata:purecode]
   \blank
   \startframedtext 
[width=max,offset=1ex,corner=round,framecolor=black,rulethickness=0.5pt]
     \typebuffer [userdata] [option=tex]
   \stopframedtext
   \blank
\stopsetups

> \defineuserdata [example] [alternative=example]
> 
> \defineuserdataalternative [example] [renderingsetup=userdata:example]
> 
> \startsetups [userdata:example]
>    \blank
>    \startembeddedxtable [width=\textwidth,strut=no,offset=1ex,framecolor=black,rulethickness=0.5pt]
>      \startxrow [corner=03,align=normal]
>        \startxcell
>          \typebuffer [userdata] [option=tex]
>        \stopxcell
>      \stopxrow
>      \startxrow [corner=01,align=normal]
>        \startxcell
>          \getuserdata
>        \stopxcell
>      \stopxrow
>    \stopembeddedxtable
>    \blank
> \stopsetups

\startsetups [userdata:example]
   \blank
   \startframedtext 
[width=max,offset=1ex,corner=03,framecolor=black,rulethickness=0.5pt,location=none]
     \typebuffer [userdata] [option=tex]
   \stopframedtext
   \nointerlineskip
   \startframedtext 
[width=max,offset=1ex,corner=01,framecolor=black,rulethickness=0.5pt,location=none]
     \getuserdata
   \stopframedtext
   \blank
\stopsetups

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2018-12-02 21:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-21 21:30 Tommaso Gordini
2018-11-21 21:58 ` Wolfgang Schuster
     [not found]   ` <CA+b=C5VDh67mPDtHoruh_Jg9+NW4qOPZH21PGK4i2wK5PnG58w@mail.gmail.com>
2018-11-22 16:40     ` Wolfgang Schuster
     [not found]       ` <CA+b=C5VR9QDciNaDZ1KurcGwtg-+LvpdL14jGR7FnzS-TjTgPg@mail.gmail.com>
     [not found]         ` <CA+b=C5X0PBjKZuQFP14TFykKcp7j9dwUWddjp7sx7vOX7nLpOA@mail.gmail.com>
2018-12-02 21:52           ` Wolfgang Schuster [this message]

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=1816ccbd-5a7f-ee50-6d3d-8b002f78c834@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=illinguista1972@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).