Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-08-01 Thread Otared Kavian
Hi,

Thanks!
Your solution works as far as creating a « ConTeXt-CLD.engine » which creates a 
menu item for typesetting a CLD document, upon choosing it for the code written 
by Peter Münster, provided the suffix of the document's name is .tex, not .cld.

However adding the line 
%!TEX TS-program = ConTeXt-CLD
at the top of the file results in an error message saying:
  tex  error on line 72 in file 
/context-minimal/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error
(here context-minimal is the directory where I have the latest version of the 
standalone ConTeXt).

Also enclosing the code written by Peter between \startluacode …. \stopluacode 
in a TEX file does not allow to to typeset the file, contrary to other examples 
in the manual written by Hans « ConTeXt, Lua Documents ».

In any case thanks for your attention: now there is another way to typeset two 
languages in two columns…

Best regards: OK

On 1 août 2012, at 00:41, Rogers, Michael K mrog...@emory.edu wrote:

 If you wish to use TeXShop, you can set it up...in my typically kludgy way.  
 This mimics the TeXShop setup for Context Standalone (see 
 http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation) and 
 assumes that context is in your regular execution path.
 
 Create a new plain-text file in ~/Library/TeXShop/Engines -- call it whatever 
 you like -- let's say ConTeXt-CLD.engine.  Add these lines
 CUT HERE--
 #!/bin/bash
 context --forcecld $1
 CUT HERE--
 
 This will create a ConTeXt-CLD menu item in the popup menu on new file 
 windows. (You may have to restart TeXShop first.)  You can select it and run 
 Peter's column program.
 
 If you like, add these three lines to the beginning of your .tex file to 
 force TeXShop to use ConTeXt-CLD:
 
 CUT HERE--
 --[[
 %!TEX TS-program = ConTeXt-CLD
 ]]--
 CUT HERE--
 
 A drawback is that your cld files will be masquerading as .tex files.  But 
 you can process cld files in TeXShop if you want to.
 
 Michael
 
 On Jul 31, 2012, at 5:46 PM, Otared Kavian wrote:
 
 Thanks Peter! It is a very nice piece of code, but could this be included in 
 a TeX file? (Otherwise one cannot use something like TeXShop on a Mac to 
 typeset the file).
 
 Best regards: OK
 
 
 On 31 juil. 2012, at 18:23, Peter Münster pmli...@free.fr wrote:
 
 On Tue, Jul 31 2012, Otared Kavian wrote:
 
 Can you give please an example showing how to use your code?
 
 Save it in test.cld, then run context test.cld.
 Then open test.pdf in a PDF-viewer.
 
 --
 Peter
 ___
 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
 ___
 
 ___
 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
 ___
 
 
 
 
 This e-mail message (including any attachments) is for the sole use of
 the intended recipient(s) and may contain confidential and privileged
 information. If the reader of this message is not the intended
 recipient, you are hereby notified that any dissemination, distribution
 or copying of this message (including any attachments) is strictly
 prohibited.
 
 If you have received this message in error, please contact
 the sender by reply e-mail message and destroy all copies of the
 original message (including attachments).
 ___
 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
 ___

___
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

[NTG-context] Added licensing information to PDF

2012-08-01 Thread Tobias Mueller
Hi :-)

I am trying to switch from LaTeX to ConTeXt and I'd like to add licensing 
information to the generated PDF, just like what the hyperxmp package would 
do for LaTeX.

Something like this:

\setupinteraction[
title={My Title},
author={Tobias Mueller},
keyword={foo bar baz},
pdfcopyright={This work is licensed to the public under the Creative 
Commons Attribution-Non-Commercial-Share Alike 3.0 Germany License.},
pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/3.0/de/}
]

\starttext
Hello, World!
\stoptext


Thanks!
  Tobi
___
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
___


[NTG-context] Throwing an error on missing image with \externalfigure

2012-08-01 Thread Tobias Mueller
Hi :-)

I'd like ConTeXt to raise an error if it can't find an image when using 
\externalfigure. I really don't want to check a potentially big document for 
missing images manually and while I could grep the log myself in an additional 
post processing step, I really want ConTeXt to do raise the error for me, not a 
potentially broken script written by me.

I've seen the other thread: 
http://www.ntg.nl/pipermail/ntg-context/2011/059485.html but there is no answer 
there. I also expected a similar behaviour to \input which fails on a non 
existing file.
My thinking was that there is either a switch for context, i.e. like 
-Werror or a way to set context up from within the document, i.e. by telling 
it to be in a final mode.

So my question is: How can I make ConTeXt raise an error on a non found image?

Cheers,
  Tobi
___
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
___


Re: [NTG-context] Added licensing information to PDF

2012-08-01 Thread Philipp Gesang
Hi Tobias,

···date: 2012-07-31, Tuesday···from: Tobias Mueller···

 I am trying to switch from LaTeX to ConTeXt and I'd like to add
 licensing information to the generated PDF, just like what the
 hyperxmp package would do for LaTeX.

you can include XMP files with one line:

\setupbackend[xmpfile=metadata.xmp]

Of course, the XMP needs to be generated beforehand. I was using
the export functionality at http://wiki.creativecommons.org for
this, but maybe Context can do the conversion for you already?

Hth
Philipp


 
 Something like this:
 
 \setupinteraction[
 title={My Title},
 author={Tobias Mueller},
 keyword={foo bar baz},
 pdfcopyright={This work is licensed to the public under the Creative 
 Commons Attribution-Non-Commercial-Share Alike 3.0 Germany License.},
 pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/3.0/de/}
 ]
 
 \starttext
 Hello, World!
 \stoptext
 
 
 Thanks!
   Tobi
 ___
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpKEBiuTKAox.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-08-01 Thread Hans Hagen

On 31-7-2012 23:46, Otared Kavian wrote:

Thanks Peter! It is a very nice piece of code, but could this be included in a 
TeX file? (Otherwise one cannot use something like TeXShop on a Mac to typeset 
the file).


context whatever.cld should process ok, so texshop etc should just 
treat a cld file as context file


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Throwing an error on missing image with \externalfigure

2012-08-01 Thread Hans Hagen

On 31-7-2012 14:18, Tobias Mueller wrote:

Hi :-)

I'd like ConTeXt to raise an error if it can't find an image when using 
\externalfigure. I really don't want to check a potentially big document for 
missing images manually and while I could grep the log myself in an additional 
post processing step, I really want ConTeXt to do raise the error for me, not a 
potentially broken script written by me.


often in the process of writing a missing (pending ) image is no reason 
for an abort



I've seen the other thread: http://www.ntg.nl/pipermail/ntg-context/2011/059485.html but 
there is no answer there. I also expected a similar behaviour to \input which 
fails on a non existing file.
My thinking was that there is either a switch for context, i.e. like -Werror or a way 
to set context up from within the document, i.e. by telling it to be in a final mode.

So my question is: How can I make ConTeXt raise an error on a non found image?


Currently it's not possible. In fact, it would involve more checks then, 
like missing references or so. It then would be some special mode and 
aborting a run would also mean that the partial pdf should be removed. 
So, it's a bit more work than just a few lines. Maybe later this year.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] Left margin of vim module output

2012-08-01 Thread Marco Patzer
Hi,

how can I adjust the left margin of the output of the vim module?

The core typing mechanism implements a “margin” key for this. The
vim output also does not react to the “leftoffset” setting of the
background mechanism.

\usemodule [vim]

\definetextbackground [code]
  [location=paragraph,
   %leftoffset=1cm,
   topoffset=5mm]

\definevimtyping [C]
  [syntax=c,
   before={\starttextbackground[code]},
   after=\stoptextbackground]

\setuptyping [typing]
  [margin=1cm,
   before={\starttextbackground[code]},
   after=\stoptextbackground]

\starttext

\startC
/* This MEMB() definition defines a memory pool from
 * which we allocate neighbour entries. */
MEMB(neighbours_memb, struct neighbour, MAX_NEIGHBOURS);
\stopC

\blank

\starttyping
/* This MEMB() definition defines a memory pool from
 * which we allocate neighbour entries. */
MEMB(neighbours_memb, struct neighbour, MAX_NEIGHBOURS);
\stoptyping

\stoptext


Marco

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

Re: [NTG-context] Added licensing information to PDF

2012-08-01 Thread Peter Rolf
Am 01.08.2012 09:21, schrieb Philipp Gesang:
 Hi Tobias,
 
 ···date: 2012-07-31, Tuesday···from: Tobias Mueller···
 
 I am trying to switch from LaTeX to ConTeXt and I'd like to add
 licensing information to the generated PDF, just like what the
 hyperxmp package would do for LaTeX.
 
 you can include XMP files with one line:
 
 \setupbackend[xmpfile=metadata.xmp]


You can also use some low level commands here (with the risk that names
change or they vanish some time). The risk in this case is very low.
Read the documentation about XMP from Adobe and you will exactly know
why. :-D

Add something like this after \setupinteraction|\setupbackend (they also
add info to the XMP blob).

\startluacode
-- keep the order

-- mark as copyrighted material
lpdf.injectxmpinfo(xml://rdf:RDF,rdf:Description rdf:about=''
xmlns:xmpRights='http://ns.adobe.com/xap/1.0/rights/'xmpRights:MarkedTrue/xmpRights:Marked/rdf:Description,false)
-- url for copyright information
lpdf.insertxmpinfo(xml://rdf:Description/xmpRights:Marked,xmpRights:WebStatementhttp://www.yoururl.com/xmpRights:WebStatement,false)
\stopluacode


The adding is also limited to a predefined list of values. See
lpdf-xmp.lua ('mapping') for the details.


Best wishes,  Peter


 Of course, the XMP needs to be generated beforehand. I was using
 the export functionality at http://wiki.creativecommons.org for
 this, but maybe Context can do the conversion for you already?
 
 Hth
 Philipp
 
 

 Something like this:

 \setupinteraction[
 title={My Title},
 author={Tobias Mueller},
 keyword={foo bar baz},
 pdfcopyright={This work is licensed to the public under the Creative 
 Commons Attribution-Non-Commercial-Share Alike 3.0 Germany License.},
 pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/3.0/de/}
 ]

 \starttext
 Hello, World!
 \stoptext


 Thanks!
   Tobi
 ___
 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
 ___
 
 
 
 ___
 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
 ___
 

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

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-08-01 Thread Rogers, Michael K
On Aug 1, 2012, at 2:39 AM, Otared Kavian wrote:

...
However adding the line
%!TEX TS-program = ConTeXt-CLD
at the top of the file results in an error message saying:
 tex  error on line 72 in file 
 /context-minimal/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX 
 error
(here context-minimal is the directory where I have the latest version of the 
standalone ConTeXt)...

On 1 août 2012, at 00:41, Rogers, Michael K 
mrog...@emory.edumailto:mrog...@emory.edu wrote:

...
If you like, add these three lines to the beginning of your .tex file to force 
TeXShop to use ConTeXt-CLD:

CUT HERE--
--[[
%!TEX TS-program = ConTeXt-CLD
]]--
CUT HERE--

You need all three lines.  The TeX comment has to be enclosed in a Lua comment. 
 The double hyphen after the ]] is optional, I think, but I've seen it done 
that way.  (As a neophyte, I imitate.)

@Hans, the problem with TeXShop is that it seems to refuse to process files 
whose names do not end in .tex, AFAIK.  (The typeset button is disabled.)  So a 
straightforward solution seems impossible.  You can always type context 
file.cld in a terminal window.

Also enclosing the code written by Peter between \startluacode …. \stopluacode 
in a TEX file does not allow to to typeset the file

Good to know.



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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
___

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-08-01 Thread Hans Hagen

On 1-8-2012 14:44, Rogers, Michael K wrote:

On Aug 1, 2012, at 2:39 AM, Otared Kavian wrote:


However adding the line
%!TEX TS-program = ConTeXt-CLD
at the top of the file results in an error message saying:

tex  error on line 72 in file 
/context-minimal/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error

(here context-minimal is the directory where I have the latest version of the 
standalone ConTeXt)...

On 1 août 2012, at 00:41, Rogers, Michael K 
mrog...@emory.edumailto:mrog...@emory.edu wrote:


If you like, add these three lines to the beginning of your .tex file to force 
TeXShop to use ConTeXt-CLD:

CUT HERE--
--[[
%!TEX TS-program = ConTeXt-CLD
]]--
CUT HERE--

You need all three lines.  The TeX comment has to be enclosed in a Lua comment.  The 
double hyphen after the ]] is optional, I think, but I've seen it done that 
way.  (As a neophyte, I imitate.)

@Hans, the problem with TeXShop is that it seems to refuse to process files whose names 
do not end in .tex, AFAIK.  (The typeset button is disabled.)  So a straightforward 
solution seems impossible.  You can always type context file.cld in a 
terminal window.


In that case we just ask Richard Koch if it can be done ...

=

Hi Dick,

Context files can have several suffixes: .tex .mkiv .mkii .cld (to 
mention some). Is it possible to let texshop see all of these as source 
that can be processed by the 'context' script?


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-08-01 Thread Otared Kavian

On 1 août 2012, at 14:44, Rogers, Michael K mrog...@emory.edu wrote:
 […]
 If you like, add these three lines to the beginning of your .tex file to 
 force TeXShop to use ConTeXt-CLD:
 
 CUT HERE--
 --[[
 %!TEX TS-program = ConTeXt-CLD
 ]]--
 CUT HERE--
 
 You need all three lines.  The TeX comment has to be enclosed in a Lua 
 comment.  The double hyphen after the ]] is optional, I think, but I've 
 seen it done that way.  (As a neophyte, I imitate.)

Thanks for the information: indeed the three lines above allow a CLD code in a 
TEX file to be typeset by ConTeXt, using the TeXShop engine created with your 
indications.
By the way, as you guessed the third line can be either
]]--
or
]]


 @Hans, the problem with TeXShop is that it seems to refuse to process files 
 whose names do not end in .tex, AFAIK.  (The typeset button is disabled.)  So 
 a straightforward solution seems impossible.  You can always type context 
 file.cld in a terminal window.

Best regards: OK___
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
___

[NTG-context] linenotes: possible bug and feature request

2012-08-01 Thread Pablo Rodríguez
Hi there,

I have the following code:

\mainlanguage[la]
\definelinenote[linenote]
\setuplinenote[linenote][rule=off,paragraph=yes,numbercommand=,inbetween=\qquad]
\setupdescriptions[linenote][display=yes,location=serried,distance=1em]\starttext
\startlinenumbering
Sed \startlinenote[one]{entia: entitates W} entia \stoplinenote[one] non
sunt multiplicanda \startlinenote[two]{praeter necessitatem: sine
necessitate H} praeter necessitatem \stoplinenote[two].
\stoplinenumbering
\stoptext

And with latest beta I get an error, since blank spaces before
\startlinenote...\stoplinenote are removed. So, the body contains
“Sedentia” when it should read “Sed entia” (the same happens with
praeter neccesitatem). I'm afraid this is a bug.

The feature request is an option in linenotes that only number in the
first linenote comming from the same line. You have this practice at
line 7 from
http://context.aanhet.net/epen2007/share/idris/cr-apparatus.pdf#page=46
and line 81 from
http://context.aanhet.net/epen2007/share/idris/cr-apparatus.pdf#page=49.
Could this feature be considered for future implementation?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___


Re: [NTG-context] Left margin of vim module output

2012-08-01 Thread Aditya Mahajan

On Wed, 1 Aug 2012, Marco Patzer wrote:


how can I adjust the left margin of the output of the vim module?


Currently, vim module does not provide any option similar to the margin 
key for typing mechanism, but you can wrap the code around a `narrower` 
environment.


\usemodule [vim]

\definenarrower
  [code]
  [left=3cm,
   default=left]

\showframe
\starttext

\startC
/* This MEMB() definition defines a memory pool from
 * which we allocate neighbour entries. */
MEMB(neighbours_memb, struct neighbour, MAX_NEIGHBOURS);
\stopC

\stoptext

Aditya
___
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
___


Re: [NTG-context] Left margin of vim module output

2012-08-01 Thread Aditya Mahajan

On Wed, 1 Aug 2012, Aditya Mahajan wrote:


On Wed, 1 Aug 2012, Marco Patzer wrote:


how can I adjust the left margin of the output of the vim module?


Currently, vim module does not provide any option similar to the margin key 
for typing mechanism, but you can wrap the code around a `narrower` 
environment.


Sorry, this does not work because of the \forgetall in 
t-syntax-highlight.mkiv (I was testing with that line commented out).


I'll add a margin key to vim module (but not the oddmargin and evenmargin 
keys; they would require a complete low-level rewrite of the module).


Aditya
___
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
___


Re: [NTG-context] Left margin of vim module output

2012-08-01 Thread Aditya Mahajan

On Wed, 1 Aug 2012, Aditya Mahajan wrote:

I'll add a margin key to vim module (but not the oddmargin and evenmargin 
keys; they would require a complete low-level rewrite of the module).


The dev version on github now includes a margin key, so you can add 
margin=dimen to \setupvimtyping or \definevimtyping. (I haven't tested 
it too much, hence no new release at the moment).


Note that this works differently from \definetyping. The typing 
environment honors the leftskip set by its parent environment (for 
example, if typing is inside startbackground); vimtyping environment 
resets all the settings of its parent environment.


Aditya
___
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
___


Re: [NTG-context] Left margin of vim module output

2012-08-01 Thread Marco Patzer
On 2012-08-01 Aditya Mahajan adit...@umich.edu wrote:

  I'll add a margin key to vim module (but not the oddmargin and
  evenmargin keys; they would require a complete low-level rewrite
  of the module).

Thanks a million. That was fast :)

 The dev version on github now includes a margin key,

Does it? I just can see a new test file in the recent commit history
(without margin key, however). Did you already push the changes to
the public repo?

 I haven't tested it too much

That's my part, I guess

 hence no new release at the moment).

No problem, I'm totally fine with the git repo.

 Note that this works differently from \definetyping. The typing
 environment honors the leftskip set by its parent environment (for
 example, if typing is inside startbackground); vimtyping
 environment resets all the settings of its parent environment.

That's why the hacks that I tried before all miserably failed.

Thanks again!


Marco

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


Re: [NTG-context] Left margin of vim module output

2012-08-01 Thread Aditya Mahajan

On Wed, 1 Aug 2012, Marco Patzer wrote:


On 2012-08-01 Aditya Mahajan adit...@umich.edu wrote:


The dev version on github now includes a margin key,


Does it? I just can see a new test file in the recent commit history
(without margin key, however). Did you already push the changes to
the public repo?


You are right. Pushed this time.

Aditya
___
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
___


[NTG-context] [OT] FontForge new release

2012-08-01 Thread luigi scarso
A new release, 20120731, is now available for download.

This time there is also a MS/Windows binary package available,
thanks to Matthew Petroff who provided it.

http://sourceforge.net/projects/fontforge/files/


-- 
luigi
___
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
___

[NTG-context] Using MPgraphics as externalfigures?

2012-08-01 Thread Mari Voipio
Hi All,

I'm being a bit clueless about the MPgraphics again...

I've got a pile of instructional graphics that will be used and reused
in a project. My first try is/was an unwieldy buffer construction, but
I'm sure there's a better way than

\placefigure[here]
[fig: 5 loop departed setup]
{The start position for a 5-loop braid with departed loops}
{\framed{\getbuffer[setup 5-loop basic]}}


Come to think of it, is there another way of framing the incoming
graphic? I don't want to include the frames in the MPcode as I may not
always want them, but that \framed{\getbuffer} construction is
downright ugly.


I think the solution to my problem can be found somewhere in the
\startreuseagleMPgraphic and \reuseMPgraphic, but I don't seem to be
able to figure out the last bits...


On the moment my MPgraphics have

\startbuffer[g1]
\startMPcode
...
\stopMPcode
\stopbuffer

but that's probably an overkill... And I'd really prefer to have the
graphic as just a pic so I can easily use them as external figures.


Of course one option would be to pdf the MPgraphics and then to insert
the pdf, but I'd prefer to skip that step.


Any ideas of how to do this in a smart way? Preferably without having
to go into the bowels of ConTeXt to get it done...


Thank you,

Mari
___
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
___