Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Meer, H. van der
The reason behind starting this thread was the fact that I want my \useMPgraphic's arbitrarily (and perfectly) scaled. In Metapost/Metafun that is easily done through a \MPvar{scale} variable, applied to the main dimensions on which all measures in my figures depend. But for the fontsizes this

Re: [NTG-context] Can't use \type{\} in a footnote

2013-05-07 Thread H. Özoguz
You could use this: \starttext aa\footnote{I can get a backslash\textbackslash in footnote!} \stoptext Huseyin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] command for a MP graphic

2013-05-07 Thread Roland Thiers
Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be able to choose the number of sides, n. I don't know how to do that ... \startbuffer[largeurdeslignes] drawoptions (withpen pencircle scaled 2pt);

Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Marco Patzer
On 2013–05–07 Meer, H. van der wrote: Perhaps a better and possibly more elegant way seems the following route. When I turn Metapost figures into external pdf-files, these can be placed with \useexternalfigure and the scaled as a whole, drawing and text alike. My question is: can this be done

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Marco Patzer
On 2013–05–07 Roland Thiers wrote: Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be able to choose the number of sides, n. I don't know how to do that ... Here's one way to do it:

Re: [NTG-context] xml attribute trickery possible?

2013-05-07 Thread Hans Hagen
On 5/6/2013 1:53 PM, Meer, H. van der wrote: In the xml setup one may call a command on the current node like: \startxmlsetups xam:define:get \xmlcommand{#1}{}{xmlcommon:whatever} \stopxmlsetups The current node will have attributes and these can be used in the execution of the command

Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Meer, H. van der
Thanks. This is exactly what is needed. I feel myself somewhat silly, because I did try \scale, but with the wrong parameter setup; nothing happened then, of course. Now I know to do it right! Hans van der Meer On 7 May 2013, at 9:35 AM, Marco Patzer home...@lavabit.com wrote: On

Re: [NTG-context] Issue with 2013.04.30 00:31

2013-05-07 Thread Hans Hagen
On 5/6/2013 8:36 AM, Kip Warner wrote: Hey list, I am experiencing two issues in compiling my document. The first is a non-fatal warning during compilation of my book: ... (/usr/share/texmf/tex/context/base/s-abr-02.tex resolversmodules 'abr-01' is loaded

Re: [NTG-context] Issue with 2013.04.30 00:31

2013-05-07 Thread luigi scarso
On Tue, May 7, 2013 at 10:46 AM, Hans Hagen pra...@wxs.nl wrote: On 5/6/2013 8:36 AM, Kip Warner wrote: Hey list, I am experiencing two issues in compiling my document. The first is a non-fatal warning during compilation of my book: ...

[NTG-context] parameters to \startxmlsetups

2013-05-07 Thread Meer, H. van der
\startxmlsetups takes one (implicit) parameter #1, the current node. The setup can be called with \setup{node}{command}. My question: Can there be another parameter transferred to the \startxmlsetups from the \setup call? What I would like to do is having a variant \startxmlsetups and

Re: [NTG-context] Can't use \type{\} in a footnote

2013-05-07 Thread Tim Li
Thanks, Huseyin. My codes in context is reasonable, so I want to know why this is wrong. Tim Date: Tue, 7 May 2013 09:13:58 +0200 From: h.oezo...@mmnetz.de To: ntg-context@ntg.nl Subject: Re: [NTG-context] Can't use \type{\} in a footnote You could use this: \starttext aa\footnote{I

Re: [NTG-context] Layer for all pages and for specific pages

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 07:49 schrieb H. Özoguz h.oezo...@mmnetz.de: You can avoid this when you put everything in a single table. You should also avoid to use brackets as delimiters for text, use normal braced arguments why can be grouped without problems. \startsetups[arde]

Re: [NTG-context] Can't use \type{\} in a footnote

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 12:35 schrieb Tim Li timli2...@outlook.com: Thanks, Huseyin. My codes in context is reasonable, so I want to know why this is wrong. Catcodes can’t be changed in footnotes which is necessary to make \ a normal character for the \type command. For TeX command you can use

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Roland Thiers
Le 7 mai 13 à 09:51, Marco Patzer a écrit : \startuniqueMPgraphic{polygoneregulier}{sides} drawoptions (withpen pencircle scaled 2pt); numeric u ; u:=1*cm ; numeric n ; n:=\MPvar{sides}; pair a[]; a[0]:=(0,3u); path polygone[] ; for i=1 upto n : a[i]:=a[0] rotatedaround(origin,i*360/n)

Re: [NTG-context] parameters to \startxmlsetups

2013-05-07 Thread Hans Hagen
On 5/7/2013 12:18 PM, Meer, H. van der wrote: \startxmlsetups takes one (implicit) parameter #1, the current node. The setup can be called with \setup{node}{command}. My question: Can there be another parameter transferred to the \startxmlsetups from the \setup call? no What I would like

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 09:51 schrieb Marco Patzer home...@lavabit.com: On 2013–05–07 Roland Thiers wrote: Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be able to choose the number of sides, n. I don't know

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread H. Özoguz
If this behavior of context setting the kassra (slash) too low, do anyone knows a font, where this not happens with the symbol allah and kassra in context? I thought in this mailer were some arabic typers... ? Huseyin

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread H. Özoguz
mistyping in last one, corrected: If this behavior of context setting the kassra (slash) too low is not easily understandable or fixable, do anyone knows a font, where this not happens with the symbol allah and kassra in context? I thought in this mailer were some arabic typers... ? Huseyin

[NTG-context] font-age vs. font-agl

2013-05-07 Thread Philipp Gesang
Hi all, the glyph list is a bit of a conundrum. Context (font-enc.lua) will build its glyph list from font-agl.lua and char-def.lua. Luatex-Fonts reads a file named font-age.lua, which is, however, some 500 character definitions short of the canonical Glyph List from Adobe’s resources [1]. On

Re: [NTG-context] font-age vs. font-agl

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 13:47 schrieb Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de: Hi all, the glyph list is a bit of a conundrum. Context (font-enc.lua) will build its glyph list from font-agl.lua and char-def.lua. Luatex-Fonts reads a file named font-age.lua, which is, however,

Re: [NTG-context] font-age vs. font-agl

2013-05-07 Thread Philipp Gesang
···date: 2013-05-07, Tuesday···from: Wolfgang Schuster··· Am 07.05.2013 um 13:47 schrieb Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de: Hi all, the glyph list is a bit of a conundrum. Context (font-enc.lua) will build its glyph list from font-agl.lua and

[NTG-context] inclusion of tex code in xml context

2013-05-07 Thread Meer, H. van der
I have some difficulties understanding the intake of ConTeXt-code in an XML processing environment. The setup is as follows. \startbuffer[buffername] \startuseMPgraphic{graphicname}{} .. \stopuseMPgraphic \stopbuffer Processing inside xmlsetup: \startxmlsetups xmlcommon:mpgraphic Here I want

Re: [NTG-context] Bracets in tables

2013-05-07 Thread Thomas A. Schmitz
On 05/07/2013 12:48 AM, MANUEL GONZALEZ SUAREZ wrote: Hello everyone How can I draw a vertical bracet that spans multiple cells in a table? Search is your friend: http://www.ntg.nl/pipermail/ntg-context/2010/049601.html Thomas

Re: [NTG-context] Bracets in tables

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 14:33 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de: On 05/07/2013 12:48 AM, MANUEL GONZALEZ SUAREZ wrote: Hello everyone How can I draw a vertical bracet that spans multiple cells in a table? Search is your friend:

[NTG-context] makeing xml-node

2013-05-07 Thread Meer, H. van der
With \xmlload{myroot}{file} I can load an xml file and the execute on its nodes. However what to do if the file is not of the form rootfile-contents/root? In that case it would help if I could contruct a node with with some actions like: root\input{fileconytents/root and then operate with xml

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread Hans Hagen
On 5/7/2013 1:32 PM, H. Özoguz wrote: mistyping in last one, corrected: If this behavior of context setting the kassra (slash) too low is not easily understandable or fixable, do anyone knows a font, where this not happens with the symbol allah and kassra in context? I thought in this mailer

Re: [NTG-context] makeing xml-node

2013-05-07 Thread Hans Hagen
On 5/7/2013 5:30 PM, Meer, H. van der wrote: With \xmlload{myroot}{file} I can load an xml file and the execute on its nodes. However what to do if the file is not of the form rootfile-contents/root? In that case it would help if I could contruct a node with with some actions like:

Re: [NTG-context] inclusion of tex code in xml context

2013-05-07 Thread Hans Hagen
On 5/7/2013 2:18 PM, Meer, H. van der wrote: I have some difficulties understanding the intake of ConTeXt-code in an XML processing environment. The setup is as follows. \startbuffer[buffername] \startuseMPgraphic{graphicname}{} ... \stopuseMPgraphic \stopbuffer Processing inside xmlsetup:

Re: [NTG-context] font-age vs. font-agl

2013-05-07 Thread Hans Hagen
On 5/7/2013 2:07 PM, Philipp Gesang wrote: ···date: 2013-05-07, Tuesday···from: Wolfgang Schuster··· Am 07.05.2013 um 13:47 schrieb Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de: Hi all, the glyph list is a bit of a conundrum. Context (font-enc.lua) will build its glyph list

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread H. Özoguz
i only followed this topic on a distance so first we need an example that clearly shows a problem I described an example here: http://www.ntg.nl/pipermail/ntg-context/2013/073025.html as a code, and with a pdf in attachment. Maybe it is not clear what I mean?: The slash is set too low, and

[NTG-context] Loading Charis SIL

2013-05-07 Thread Willi Egger
Hi all, I was busy to make a typescript file and load Charis SIL. I have no clue why I get the following error: fontsdefining forced type 'otf' of 'CharisSIL-R' not found Although it is stated in the typescript, that CharisSIL is a ttf font I get the error on otf-font Kind

Re: [NTG-context] font-age vs. font-agl

2013-05-07 Thread Hans Hagen
On 5/7/2013 1:47 PM, Philipp Gesang wrote: Hi all, the glyph list is a bit of a conundrum. Context (font-enc.lua) will build its glyph list from font-agl.lua and char-def.lua. Luatex-Fonts reads a file named font-age.lua, which is, however, some 500 character definitions short of the canonical

Re: [NTG-context] Loading Charis SIL

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 20:37 schrieb Willi Egger cont...@boede.nl: Hi all, I was busy to make a typescript file and load Charis SIL. I have no clue why I get the following error: fontsdefining forced type 'otf' of 'CharisSIL-R' not found Although it is stated in the

Re: [NTG-context] makeing xml-node

2013-05-07 Thread Meer, H. van der
Alas, this does not solve the problem, iff I am following your suggestion correctly. I did \xmlloadbuffer{thebuffer}{\xmlatt{#1}{buffer}} \xmlfilter{thebuffer}{*/context()} \useMPgraphic.. This works for a buffer content enclosed in any node: \startbuffer[ychannel] anyone = cannot be

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread Hans Hagen
On 5/7/2013 8:10 PM, H. Özoguz wrote: i only followed this topic on a distance so first we need an example that clearly shows a problem I described an example here: http://www.ntg.nl/pipermail/ntg-context/2013/073025.html as a code, and with a pdf in attachment. Maybe it is not clear what I

Re: [NTG-context] extra line after switchtobodyfont

2013-05-07 Thread Hans Hagen
On 5/4/2013 6:59 PM, Wolfgang Schuster wrote: Am 04.05.2013 um 09:21 schrieb Aditya Mahajan adit...@umich.edu: On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote: Seems finally solved (sigh). I cleaned out all files loading typescripts on the fly. - typescript macros

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Roland Thiers
≥ Le 7 mai 13 à 13:05, Wolfgang Schuster a écrit : Am 07.05.2013 um 09:51 schrieb Marco Patzer home...@lavabit.com: On 2013–05–07 Roland Thiers wrote: Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be

[NTG-context] Update value of \headerheight based on header content

2013-05-07 Thread Adam Khan
The code for my headers is of the form: \setupheadertexts[{\inframed[frame=off,width=\textwidth,location=depth,align={right,broad,nothyphenated},tolerance=verytolerant]{Author\\Title\\\tab{\getmarking[chapternumber]} \getmarking[chapter] \wordright{\pagenumber}}}] As you might imagine, the name

Re: [NTG-context] extra line after switchtobodyfont

2013-05-07 Thread Hans Hagen
On 5/7/2013 10:11 PM, Hans Hagen wrote: On 5/4/2013 6:59 PM, Wolfgang Schuster wrote: Am 04.05.2013 um 09:21 schrieb Aditya Mahajan adit...@umich.edu: On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote: Seems finally solved (sigh). I cleaned out all files loading

Re: [NTG-context] Issue with 2013.04.30 00:31

2013-05-07 Thread Kip Warner
On Tue, 2013-05-07 at 10:57 +0200, luigi scarso wrote: tr is a unix command that translate or delete characters: for some reason is executed from his tex source. A similar effect can be done with \starttext \ctxlua{os.execute('tr --')} \stoptext Hey Luigi. Yes, I managed to solve this

Re: [NTG-context] Issue with 2013.04.30 00:31

2013-05-07 Thread Kip Warner
On Tue, 2013-05-07 at 10:46 +0200, Hans Hagen wrote: i'm not aware of a tr command so it's some kind of side effect i guess Hey Hans. I managed to sort this out by adding a space between the command and its parameter in my environment file. no, more with an unexpandable or undefined command

[NTG-context] LuaJitTeX, \texenginename, and \texengineversion

2013-05-07 Thread Kip Warner
Hey Luigi, I find the \texenginename and \texengineversion useful for retrieving the backend name and version. They work fine when using the vanilla LuaTeX backend. However, when using LuaJitTeX, the aforementioned macros still seem to retrieve LuaTeX specific information and not LuaJitTeX -

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 22:28 schrieb Roland Thiers roland.thi...@gmail.com: Thank you very much for this precision, Wolfgang. I tried with two variables and it works with this syntax : \startuniqueMPgraphic{polygoneregulier} numeric u ; u:=\MPvar{unite}*cm ; numeric n ; n:=\MPvar{sides};

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread H. Özoguz
\usemodule[fnt-20,art-01] \starttext \def\sample{اللهِ\quad اللَّـهِ} \setvariables [otftracker] [font=name:traditionalarabicnormal, size=24pt, features=arabic, direction=-1, title=Feature Check, sample=\sample] \page \setvariables [otftracker]

[NTG-context] Problems with arabic font Amiri

2013-05-07 Thread H. Özoguz
Hello, I tried to type with the arabic font Amiri by K. Hosny. You can download it here: http://sourceforge.net/projects/amiri/ In this download-page you find a nice example of the font, setting the sura Al-Fatiha (first section of the Holy Qur'an). I tried to regain this example with