ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthijs Kooijman <matthijs@stdin.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \typebuffer with typing style
Date: Wed, 10 Jun 2009 15:52:54 +0200	[thread overview]
Message-ID: <20090610135254.GA12271@katherina.student.utwente.nl> (raw)
In-Reply-To: <alpine.LNX.2.00.0906091906350.14281@gaston.couberia.bzh>


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

Hi Peter,

> \setuptyping[option=TEX]

This is what I am using now, but this changes the global settings and requires
resetting them afterwards. Not so pretty. I was hoping for a better method to
achieve this, but I'm starting to doubt there is one currently.

I've been trying to give \typebuffer a second argument with options or a
typing style, but I haven't been so succesful so far...


However, from looking at the definition of \dotypebuffer makes me wonder a bit
if my understanding of TeX macros is faulty, or the code is weird:

\def\dotypebuffer[#1][#2]%
  {\iffirstargument
     \dobuffer{17}{#1}\dotypefilebuffer
   \else
     \dobuffer{17}{#2}\dotypefilebuffer
   \fi}

What I see here is the there is an argument "17" passed, which is not used by
\dobuffer at all. Also, why is this "17" ? Secondly, there is a use of #2 in
this definition, but only when there is no first argument (and thus, no second
argument either). Is this a leftover that could be replaced with {}, or am I
missing something?

Gr.

Matthijs

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08 16:20 Matthijs Kooijman
2009-06-08 17:20 ` Matthijs Kooijman
2009-06-09 16:28 ` Matthijs Kooijman
2009-06-09 17:11 ` Peter Münster
2009-06-10 13:52   ` Matthijs Kooijman [this message]
2009-06-10 15:53     ` Peter Münster

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=20090610135254.GA12271@katherina.student.utwente.nl \
    --to=matthijs@stdin.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).