ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gerben Wierda <Gerben.Wierda@rna.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Printing source code intelligently with ConTeXt (with overlay)
Date: Sat, 6 Jun 2009 15:52:50 +0200	[thread overview]
Message-ID: <E8AA76B4-3340-40B6-B6F4-EE17C8BD4BE3@rna.nl> (raw)
In-Reply-To: <4B4A0B08-82F7-4F80-9A7E-43314831947E@gmail.com>

On 4 Jun 2009, at 16:17, Wolfgang Schuster wrote:

> Can you ask your questions in english, your question could be  
> relevant for other
> users too and it would be a shame if the don't understand it because  
> you use dutch.

Sorry, I forgot.

Here is the question. I have source code which i want to print using  
an overlay in PDF, linenumbers, fixed width font, correct indentation  
of tabs and in landscape mode. I could create some of this with the pr  
program, but preferably I would like some sort of ConTeXt setup which  
I could automate.

Yours,

Gerben


Overlay answer from Hans:

>>> \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}]
>>>
>>> \setupbackgrounds[page][overlay=myoverlay]
>>>
>>> if it has to be on top:
>>>
>>> \setupbackgrounds[page][overlay={foreground,myoverlay}]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-06-06 13:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 14:58 Printen van code met een PDF overlay, makkelijk met ConTeXt? Gerben Wierda
2009-05-29 16:21 ` Hans Hagen
2009-06-04 14:10   ` Gerben.Wierda
2009-06-04 14:17     ` Wolfgang Schuster
2009-06-06 13:52       ` Gerben Wierda [this message]
2009-06-06 13:58         ` Printing source code intelligently with ConTeXt (with overlay) Wolfgang Schuster
2009-06-06 14:16           ` Gerben Wierda
2009-06-06 14:59             ` Interaction between overlay and typing? Gerben Wierda
2009-06-06 16:13               ` Wolfgang Schuster
2009-06-06 16:25                 ` Gerben Wierda
2009-06-06 16:36                   ` Wolfgang Schuster
2009-06-06 17:45                     ` PL/SQL pretty print Gerben Wierda

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=E8AA76B4-3340-40B6-B6F4-EE17C8BD4BE3@rna.nl \
    --to=gerben.wierda@rna.nl \
    --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).