Re: [NTG-context] ConTeXt minimal Win32 : kpathsea510.dll can not found !!!
On Sun, Feb 21, 2010 at 23:12, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: I'm sorry for that. I have asked a few people and they claimed that it worked OK, but that might have been due to the fact that they already had kpathsea510.dll on their machines. I'm confused. Apparetly we need at least three different libraries then (kpathsea500, kpathsea510 and kpathsearch510). So any solution ? Or every user has to copy/rename this library manually ? Thanks, ___ 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] ConTeXt minimal Win32 : kpathsea510.dll can not found !!!
On Mon, Feb 22, 2010 at 10:11, Vnpenguin vnpeng...@vnoss.org wrote: On Sun, Feb 21, 2010 at 23:12, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: I'm sorry for that. I have asked a few people and they claimed that it worked OK, but that might have been due to the fact that they already had kpathsea510.dll on their machines. I'm confused. Apparetly we need at least three different libraries then (kpathsea500, kpathsea510 and kpathsearch510). So any solution ? Or every user has to copy/rename this library manually ? No, it should be fixed now, but I need to rewrite some scripts on the garden (dll library names are hardcoded at some places and I need to fix that; Arthur has already written some code, we just need to integrate it properly and finish some other parts). Mojca ___ 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] linetables broken?
On 21-2-2010 23:46, Wolfgang Schuster wrote: Am 21.02.10 23:42, schrieb Hans Hagen: Does that mean nothing is broken, but linetables need to be processed in buffers? indeed, as they are processed in several passes But why can't tabulate grab the content, was this a memory problem in MkII? TABLE and tabulate use also several passes and don't need this. linetables were writen for a project where tables could span 100 pages or more with tables being split in spreads and pages so indeed memory becomes an issue then some day i might write a variant in lua Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Floats broken under some circumstances
On 22-2-2010 0:39, Wolfgang Schuster wrote: The float commands tries to perform \blank[-medium] in Vyatcheslav example but this fails in MkIV because '-medium' is not a valid keyword for \blank. hm i wonder if we really need negative skips we can best try \blank[\v!back,\floatsharedparameter\c!spacebefore]% there are probably a few more places where we need to adapt mkiv to the new spacing models - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Changing typeface for non-body text, using XeTeX -- how?
On 22-2-2010 4:18, James Fisher wrote: Hi all, I'm new to TeX, ConTeXt, and XeTeX. I'm progressing fine except for in one area: even though I'm told I'm using the best possible software for easy typeface use in TeX, I'm finding this area (i.e., fonts) confusing and badly documented. This is all the more surprising as what I want to do seems entirely bog-standard: set some basic brand identity by using a body typeface and heading typeface. There's the \setupbodyfont command for, obviously, the body font -- but I can't identify any equivalent command like \setupheadingfont. I can see other commands for *ad hoc* use of other fonts, but I want to stick with as much semantic markup as possible and apply style elsewhere. Presumably this is possible! Could someone explain to me how to do this? most structure and layout related commands have a style key, so style=bold style=\tfb etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Changing typeface for non-body text, using XeTeX -- how?
On Feb 22, 2010, at 4:18 AM, James Fisher wrote: Hi all, I'm new to TeX, ConTeXt, and XeTeX. I'm progressing fine except for in one area: even though I'm told I'm using the best possible software for easy typeface use in TeX, I'm finding this area (i.e., fonts) confusing and badly documented. This is all the more surprising as what I want to do seems entirely bog-standard: set some basic brand identity by using a body typeface and heading typeface. There's the \setupbodyfont command for, obviously, the body font -- but I can't identify any equivalent command like \setupheadingfont. I can see other commands for ad hoc use of other fonts, but I want to stick with as much semantic markup as possible and apply style elsewhere. Presumably this is possible! Could someone explain to me how to do this? You can define your own styles if needed and use the style=yourstyle where this key is available: \definealternativestyle[HeadStyle] [{\definedfont[Seravek-Regular at 16pt]\setupinterlinespace[line=18pt]}] \setuphead[chapter][style=HeadStyle] Willi Best wishes James Fisher (p.s. -- I'm coming from HTML+CSS-ish paradigms here, if that would help someone explain to me how I should reorganise my mind.) __ _ 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 ___
[NTG-context] file names
A while ago I posted a question about spaces etc. in file names in mkiv. Hans Hagen diligently remedied that point and now context typesets files with names like a/b, c and d/x.tex without complaining. I fear however, that there are places where that same code is not being used for opening files. One such place is the inclusion of externalfigures. Here a file a/b, c and d/x.jpg is not found. I would be very pleased if it becomes possible to have uniform behaviour in file names everywhere in context. So, if Hans is willing to have a look at it again... Thanks in advance, of course. Hans van der Meer ___ 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] (no subject)
Hello, I'm working on a project to set up exams, basing the work on Aditya's asignment class that was published in Practex in 2006. I have a problem getting title information printed correctly. This is a cut-down version: \setupcolors [state=start] \definecolor [colorone][r=0.625,g=0,b=0] %dark red \definecolor [colortwo][b=0.625,g=0,r=0] %dark blue \def\exam[#1] {\getrawparameters [Exam] [ title= course=, date=, start=, stop=, #1] \title{\Examtitle}} \definefont [BigFontOne] [RegularSlanted sa 2.5] \definefont [BigFontTwo] [Regular sa 1.5] \setuphead[title] [ style=\BigFontOne, command=\examtitle, before={}, after={\blank[big] \bgroup \colortwo Date: \expanded{\date[Examdate]} \hfill Start: \expanded{Examstart} Stop: \expanded{Examstop} \egroup\blank}, ] %D This macro does the actual typesetting of the title \def\examtitle#1#2% {\framed[ width=broad, frame=off, align=middle, foregroundcolor=colortwo, % I want a shadow around the title frame background=shadow] {#2\\{Examcourse}}} \exam[ title=Mid-term 2010, course=ES2917, date={d=17,m=2,y=2010}, start={9:00 am}, stop={11:00 am} ] I'm processing this with Mark II. The problems are that (1) The literal 'Examcourse' is typeset; (2) Today's date is typset, not the one entered in the interface; (3) The start and stop times are typeset as literals 'Examstart' 'Examstop' Thanks for any help, Roger %%% Local Variables: %%% mode: context %%% TeX-master: t %%% End: ___ 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] Automatically filling forms
Am 22.02.10 16:58, schrieb Vyatcheslav Yatskovsky: Hello, First of all, thanks to NTG for the proceedings book. I have a rather specific question. In my workplace, there are many forms in Word format: TITLE OF THE FORM A student ___ (name, surname) was employed at (place) ___ (date) bla-bla bla-bla The fields represented here by underlines should be filled in. Typically, it should be done electronically for a number (say, a group) of students, and then printed out. Performing this task in Word was proven to be error-prone and tedious. What is the best way to handle such forms in ConTeXt? Maybe, some generic examples are already available? Look into the widgets manual: http://pragma-ade.com/show-man-22.htm 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Automatically filling forms
Hello, First of all, thanks to NTG for the proceedings book. I have a rather specific question. In my workplace, there are many forms in Word format: TITLE OF THE FORM A student ___ (name, surname) was employed at (place) ___ (date) bla-bla bla-bla The fields represented here by underlines should be filled in. Typically, it should be done electronically for a number (say, a group) of students, and then printed out. Performing this task in Word was proven to be error-prone and tedious. What is the best way to handle such forms in ConTeXt? Maybe, some generic examples are already available? Obviously, data could be stored in simple relational database-like columns: Name, Place, Data. But what format to choose? XML, CVS, plain text? Regards, Vyatcheslav ___ 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] Footnote Failure
On 20-2-2010 17:35, John Haltiwanger wrote: I'm having trouble understanding why the attached file fails with: structure : subject @ level 3 : 0.0.0 - Information ! Undefined control sequence. \dododescriptioncomponent ...entdescriptioncoding \s!tex \fi \ifx \currentde... \@@notemakedescription ...list =,\c!bookmark =,][] \xdef \currentnotenumber {... l.79 ...r in light of Pasquinelli's presentation.} If I replace \footnote{} with parantheses, the included source compiles fine. I've had a separate issue where a URL containing %'s seems to gum up the system (that is, when I pared down the source to isolate the above peculiarity I removed the URLs with %s and the other error, which would stop compilation itself if the parantheses had solved the above issue, disappeared.) Is pandoc producing the proper, or preferred, \useURL syntax? I'm assuming pandoc aims for mkII over mkIV, but I thought I read that the interface had not changed. i'll fix it ... has to do with unwanted expansion in footnotes btw, why not put the url defs somplace in your preamble, that way you have one spot to maintain them \setupinteraction[state=start] \starttext \useURL[git:2][http://...][][Git Virtue] \footnote{The views ... \from[git:2] } \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Footnote Failure
On Mon, Feb 22, 2010 at 06:11:56PM +0100, Hans Hagen wrote: btw, why not put the url defs somplace in your preamble, that way you have one spot to maintain them \setupinteraction[state=start] \starttext \useURL[git:2][http://...][][Git Virtue] \footnote{The views ... \from[git:2] } \stoptext And this one aspect of ConTeXt I can't get comfortable with, \useURL is great and every thing, but it is overkill for my simple url use; I just need a very simple, one call command, some thing like \URL[http://...]{foo}. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] Exams
Hello, Sorry, I sent this message to the list without a subject earlier today. I'm working on a project to set up exams, basing the work on Aditya's asignment class that was published in Practex in 2006. I have a problem getting title information printed correctly. This is a cut-down version: \setupcolors [state=start] \definecolor [colorone][r=0.625,g=0,b=0] %dark red \definecolor [colortwo][b=0.625,g=0,r=0] %dark blue \def\exam[#1] {\getrawparameters [Exam] [ title= course=, date=, start=, stop=, #1] \title{\Examtitle}} \definefont [BigFontOne] [RegularSlanted sa 2.5] \definefont [BigFontTwo] [Regular sa 1.5] \setuphead[title] [ style=\BigFontOne, command=\examtitle, before={}, after={\blank[big] \bgroup \colortwo Date: \expanded{\date[Examdate]} \hfill Start: \expanded{Examstart} Stop: \expanded{Examstop} \egroup\blank}, ] %D This macro does the actual typesetting of the title \def\examtitle#1#2% {\framed[ width=broad, frame=off, align=middle, foregroundcolor=colortwo, % I want a shadow around the title frame background=shadow] {#2\\{Examcourse}}} \exam[ title=Mid-term 2010, course=ES2917, date={d=17,m=2,y=2010}, start={9:00 am}, stop={11:00 am} ] I'm processing this with Mark II. The problems are that (1) The literal 'Examcourse' is typeset; (2) Today's date is typset, not the one entered in the interface; (3) The start and stop times are typeset as literals 'Examstart' 'Examstop' Thanks for any help, Roger ___ 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] Footnote Failure
On Mon, Feb 22, 2010 at 5:23 PM, Khaled Hosny khaledho...@eglug.org wrote: On Mon, Feb 22, 2010 at 06:11:56PM +0100, Hans Hagen wrote: btw, why not put the url defs somplace in your preamble, that way you have one spot to maintain them \setupinteraction[state=start] \starttext \useURL[git:2][http://...][][Git Virtue] \footnote{The views ... \from[git:2] } \stoptext And this one aspect of ConTeXt I can't get comfortable with, \useURL is great and every thing, but it is overkill for my simple url use; I just need a very simple, one call command, some thing like \URL[http://...]{foo}. Another good idea, though I seem to remember Hans shooting this down before.. ___ 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] file names
On 22-2-2010 13:43, Hans van der Meer wrote: A while ago I posted a question about spaces etc. in file names in mkiv. Hans Hagen diligently remedied that point and now context typesets files with names like a/b, c and d/x.tex without complaining. I fear however, that there are places where that same code is not being used for opening files. One such place is the inclusion of externalfigures. Here a file a/b, c and d/x.jpg is not found. I would be very pleased if it becomes possible to have uniform behaviour in file names everywhere in context. So, if Hans is willing to have a look at it again... Thanks in advance, of course. \starttext \externalfigure[a/b, c, d/cow.pdf] \stoptext works ok here .. ... a/b, c, d/cow.pdf ... - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Footnote Failure
On 22-2-2010 18:23, Khaled Hosny wrote: On Mon, Feb 22, 2010 at 06:11:56PM +0100, Hans Hagen wrote: btw, why not put the url defs somplace in your preamble, that way you have one spot to maintain them \setupinteraction[state=start] \starttext \useURL[git:2][http://...][][Git Virtue] \footnote{The views ... \from[git:2] } \stoptext And this one aspect of ConTeXt I can't get comfortable with, \useURL is great and every thing, but it is overkill for my simple url use; I just need a very simple, one call command, some thing like \URL[http://...]{foo}. \setupinteraction[state=start] \starttext bla \goto{pragma site}[url(http://www.pragma-ade.com)] bla \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Exams
On Mon, 22 Feb 2010, Roger Mason wrote: Hello, Sorry, I sent this message to the list without a subject earlier today. I'm working on a project to set up exams, basing the work on Aditya's asignment class that was published in Practex in 2006. I have a problem getting title information printed correctly. This is a cut-down version: \setupcolors [state=start] \definecolor [colorone][r=0.625,g=0,b=0] %dark red \definecolor [colortwo][b=0.625,g=0,r=0] %dark blue \def\exam[#1] {\getrawparameters [Exam] [ title= course=, date=, start=, stop=, #1] \title{\Examtitle}} \definefont [BigFontOne] [RegularSlanted sa 2.5] \definefont [BigFontTwo] [Regular sa 1.5] \setuphead[title] [ style=\BigFontOne, command=\examtitle, before={}, after={\blank[big] \bgroup \colortwo Date: \expanded{\date[Examdate]} This should be \Examdate \hfill Start: \expanded{Examstart} No need for \expanded here. Just \Examstart is enough Stop: \expanded{Examstop} \Examstop \egroup\blank}, ] %D This macro does the actual typesetting of the title \def\examtitle#1#2% {\framed[ width=broad, frame=off, align=middle, foregroundcolor=colortwo, % I want a shadow around the title frame background=shadow] {#2\\{Examcourse}}} Again, \Examcourse \exam[ title=Mid-term 2010, course=ES2917, date={d=17,m=2,y=2010}, start={9:00 am}, stop={11:00 am} ] I'm processing this with Mark II. The problems are that (1) The literal 'Examcourse' is typeset; (2) Today's date is typset, not the one entered in the interface; (3) The start and stop times are typeset as literals 'Examstart' 'Examstop' You need to use \Exam... to access the values. 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] Footnote Failure
Am 22.02.10 18:23, schrieb Khaled Hosny: On Mon, Feb 22, 2010 at 06:11:56PM +0100, Hans Hagen wrote: btw, why not put the url defs somplace in your preamble, that way you have one spot to maintain them \setupinteraction[state=start] \starttext \useURL[git:2][http://...][][Git Virtue] \footnote{The views ... \from[git:2] } \stoptext And this one aspect of ConTeXt I can't get comfortable with, \useURL is great and every thing, but it is overkill for my simple url use; I just need a very simple, one call command, some thing like \URL[http://...]{foo}. \goto{foo}[url(http://...)] 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote Failure
On Mon, Feb 22, 2010 at 06:36:02PM +0100, Hans Hagen wrote: On 22-2-2010 18:23, Khaled Hosny wrote: On Mon, Feb 22, 2010 at 06:11:56PM +0100, Hans Hagen wrote: btw, why not put the url defs somplace in your preamble, that way you have one spot to maintain them \setupinteraction[state=start] \starttext \useURL[git:2][http://...][][Git Virtue] \footnote{The views ... \from[git:2] } \stoptext And this one aspect of ConTeXt I can't get comfortable with, \useURL is great and every thing, but it is overkill for my simple url use; I just need a very simple, one call command, some thing like \URL[http://...]{foo}. \setupinteraction[state=start] \starttext bla \goto{pragma site}[url(http://www.pragma-ade.com)] bla \stoptext Ah, cool, never know that ConTeXt has such feature! Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] Exams
Aditya Mahajan adit...@umich.edu writes: You need to use \Exam... to access the values. Again, many thanks. Roger ___ 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] Automatically filling forms
Wolfgang, editable pdf fields are also good idea, but this will be just another form or current workflow, and I want another thing. I want to generate pdf with data already filled in, taken from a database. The form should be repeated as many times as there are rows in the database. By database I mean xml or plain text or excel format (cvs), whatever easy editable. What about it? Vyatcheslav I have a rather specific question. In my workplace, there are many forms in Word format: TITLE OF THE FORM A student ___ (name, surname) was employed at (place) ___ (date) bla-bla bla-bla The fields represented here by underlines should be filled in. Typically, it should be done electronically for a number (say, a group) of students, and then printed out. Performing this task in Word was proven to be error-prone and tedious. What is the best way to handle such forms in ConTeXt? Maybe, some generic examples are already available? Look into the widgets manual: http://pragma-ade.com/show-man-22.htm 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pret-c.lua
Hello, Thanks to the wiki-page Custom pretty printer I managed to write the pret-c.lua module here: http://pmrb.free.fr/tmp/pret-c/ Comments and bug-reports are welcome. What about integrating it into the distribution, or is it better on http://modules.contextgarden.net/ ? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Automatically filling forms
Am 22.02.10 21:46, schrieb Vyatcheslav Yatskovsky: Wolfgang, editable pdf fields are also good idea, but this will be just another form or current workflow, and I want another thing. I want to generate pdf with data already filled in, taken from a database. The form should be repeated as many times as there are rows in the database. By database I mean xml or plain text or excel format (cvs), whatever easy editable. What about it? XML: http://pragma-ade.com/show-man-43.htm plain text: http://wiki.contextgarden.net/m-database (read also the MyWay from Mojca - page 3) http://wiki.contextgarden.net/m-database 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Automatically filled forms
Ok, thanks. I will investigate the possibilities. Database module looks like the right choice. Vyatcheslav ___ 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] file-contents module
On 3-10-2009 18:04, Wolfgang Schuster wrote: Am 27.09.2009 um 15:40 schrieb Peter Münster: Hello, It would be nice, if this module could be integrated in the distribution: http://wiki.contextgarden.net/Filecontents Cheers, Peter +1 old request ... \startbuffer[x] x \stopbuffer \savebuffer[x] \savebuffer[x][temp.log] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Math in MKIV - HOWTO (was: Lucida Fonts with MKIV)
These basic set of rules should also apply to fourier or any other font that still needs better math support. I'm posting them on the list for future reference (for when the next volunteer pops up). On Fri, Feb 19, 2010 at 14:50, Troy Henderson wrote: I have followed the first set of instructions at http://wiki.contextgarden.net/Lucida ... Is there an easy way to adapt the configuration file(s) for MKII to MKIV? If this is possible but just requires a tedious process, I'm willing to do this, but I have no clue of the steps needed. So here are some basic instructions: Step 1: check what's in the fonts = The file lucida.map includes the following lines: hlcda LucidaNewMath-Arrows-Demi lbmad.pfb hlcdim LucidaNewMath-DemiItalic lbmdi.pfb hlcdima LucidaNewMath-AltDemiItalic lbmdo.pfb hlcdm LucidaNewMath-Demibold lbmd.pfb hlcdy LucidaNewMath-Symbol-Demi lbmsd.pfb hlcra LucidaNewMath-Arrows lbma.pfb hlcrim LucidaNewMath-Italic lbmi.pfb hlcrima LucidaNewMath-AltItalic lbmo.pfb hlcrm LucidaNewMath-Roman lbmr.pfb hlcrv LucidaNewMath-Extension lbme.pfb hlcry LucidaNewMath-Symbol lbms.pfb After short inspection you may notice that some are just bold variants, so you are basically left with only 6 files that you need to take care of: hlcrm LucidaNewMath-Roman lbmr.pfb hlcrim LucidaNewMath-Italic lbmi.pfb hlcrima LucidaNewMath-AltItalic lbmo.pfb hlcrv LucidaNewMath-Extension lbme.pfb hlcry LucidaNewMath-Symbol lbms.pfb hlcra LucidaNewMath-Arrows lbma.pfb You may want to visualize the content of those fonts by using: \loadmapfile[lucida.map] \starttext \showfont[hlcrm] \showfont[hlcrim] \showfont[hlcrima] \showfont[hlcrv] \showfont[hlcry] \showfont[hlcra] \stoptext Step 2: compare = It might be interesting to know what's in LM (so that you know what you need to modify): \starttext \showfont[rm-lmr10] \showfont[lmmi10] \showfont[lmex10] \showfont[lmsy10] \stoptext as well as seing what's in ams fonts perhaps. Now all the info that describes the content of these files is in math-tex.mkii (for MKII) and math-vfu.lua (for MKIV): mathematics.make_font ( lmroman10-math, { { name = lmroman10-regular.otf, features = virtualmath, main = true }, { name = rm-lmr10.tfm, vector = tex-mr-missing } , { name = lmmi10.tfm, vector = tex-mi, skewchar=0x7F }, { name = lmmi10.tfm, vector = tex-it, skewchar=0x7F }, { name = lmsy10.tfm, vector = tex-sy, skewchar=0x30, parameters = true } , { name = lmex10.tfm, vector = tex-ex, extension = true } , { name = msam10.tfm, vector = tex-ma }, { name = msbm10.tfm, vector = tex-mb }, -- { name = rm-lmbx10.tfm, vector = tex-bf } , { name = lmroman10-bold.otf, vector = tex-bf } , { name = lmmib10.tfm, vector = tex-bi, skewchar=0x7F } , { name = lmsans10-regular.otf, vector = tex-ss, optional=true }, { name = lmmono10-regular.otf, vector = tex-tt, optional=true }, { name = eufm10.tfm, vector = tex-fraktur, optional=true }, { name = eufb10.tfm, vector = tex-fraktur-bold, optional=true }, } ) You may want to check any tfm font mentioned here as well as any vector=... mentioned. fonts.enc.math[tex-mi] = { [0x1D6E4] = 0x00, -- Gamma [0x1D6E5] = 0x01, -- Delta [0x1D6E9] = 0x02, -- Theta [0x1D6F3] = 0x02, -- varTheta (not present in TeX) [0x1D6EC] = 0x03, -- Lambda [0x1D6EF] = 0x04, -- Xi [0x1D6F1] = 0x05, -- Pi There's a very precious source of information available for unicode mappings for many fonts that might be worth considering: tex4ht/ht-fonts/unicode/ Step 3: make use of available glyph information = 3a) You may use lucidabr.sty as a pretty reliable source of information to extract the mapping between: - glyph name (in LaTeX) - font - slot 3b) In char-def.lua there are some mappings between context commands and unicode points. If any mapping is missing, you need to add it anyway (else you won't be able to use that particular command), for all other commands you already have unicode point, so when you find rightarrow or some other glyph in font, you may look it up in char-def.lua to determine the unicode number. You may want to use both the comprehensive TeX symbol list as well as the Unicode Standard to help you out if there are some glyphs you don't know. Step 4: fix math-lbr = Step 5: complete the vectors in math-vfu.lua = I'm not completly sure about some aspects of bold math, but here are at least some points to start with. Step 6: test = Translate ams test paper and the comprehensive LaTeX symbol list to ConTeXt in order to test if all the characters work ok in all the math fonts supported by ConTeXt :) :) :) Mojca ___ 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 :
Re: [NTG-context] file-contents module
Am 22.02.10 23:17, schrieb Hans Hagen: old request ... \startbuffer[x] x \stopbuffer \savebuffer[x] \savebuffer[x][temp.log] Thanks :) 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___