Re: [NTG-context] Postscript Type1 fonts MK IV - [SOLVED]
* Khaled Hosny khaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data Thanks! This solved my problem: % mkdir -p ~/texmf/fonts/data % mv *.{pfb,afm} ~/texmf/fonts/data % export OSFONTDIR=$HOME/.fonts;$HOME/texmf/fonts/data Or, to keep all fonts under ~/.fonts , this also works: % mkdir -p ~/.fonts/tex % mv *.{pfb,afm} ~/.fonts/tex % mkdir -p ~/texmf/fonts % ln -s ~/.fonts/tex ~/texmf/fonts/data % export OSFONTDIR=$HOME/.fonts For some reason I was trying $HOME/context/tex/texmf/fonts/data previously, which didn't work. But things are now working quite nicely now -- thank you all. Regards, John -- John Magolske http://B79.net/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 ___
[NTG-context] Centered framed text in two columns
Dear All, I would like to vertically center a framed text in front of an item list, something like : - item - item - item my framed text - item - item I tried with two columns then by defining a paragraph but without success. I would also like the columns to have a fixed width like 70%-30% of the textwidth. Any hint ? Thanks in advance, -- Flavien. Quantum objects are completely crazy but, at least, they are all crazy in the same way. R.P. Feynman. ___ 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] startenumerate in romans a la LaTeX
Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit: On 08/28/2010 09:31 PM, Xan wrote: - right indentation of items: in context items start at the same point. In LaTeX is the item text itself who starts at the same point, not the romans. I do not understand this sentence. Does this do what you want? Easy: in ConTeXt (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla in LaTeX (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla Context aligns text and LaTeX right-aligns the numbers (markers) \defineitemgroup[enumerate] \setupenumerate[1][romannumerals] \setupenumerate[1][width=1cm,stopper=,left=(,right=)] \starttext \startenumerate \item A \item B \item C \stopenumerate \stoptext ___ 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] startenumerate in romans a la LaTeX
Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit: \defineitemgroup[enumerate] \setupenumerate[1][romannumerals] \setupenumerate[1][width=1cm,stopper=,left=(,right=)] \starttext \startenumerate \item A \item B \item C \stopenumerate \stoptext For the other hand, is width=1cm arbitrary? Without left=( and right=), what is the separation between text and numbers? I think it's a little bit of 1cm, isn't? Xan, ___ 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] Postscript Type1 fonts MK IV - [SOLVED]
On 08/31/2010 08:27 AM, John Magolske wrote: * Khaled Hosnykhaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data We should try to find what is causing the erratic behavior of ~/.fonts Best wishes, Taco ___ 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] Filling boxes
Op zaterdag 28 aug 2010 16:20 CEST schreef Wolfgang Schuster: \def\CheckBoxContent {\begingroup \setbox\scratchbox\vbox{\getvariable{tree}{\treecounter}}% \ifdim\ht\scratchbox\vsize \forcequitjob{tree}% \else \box\scratchbox \fi \endgroup} I have a solution for the parameters. I work with Linux, so I just could make a BASH script, which generates the tex file with the filled in parameters. There is only one problem left. I want to know what the (first) parameter which is wrong. I could determine the first wrong one with 4 new calls to texexec (starting with a call where only the first seven parameters are filled), but is there a way to give back a return value that signifies which parameter was wrong? I could not find documentation about \forcequitjob. Is there no documentation, or did I look wrong? -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
On 08/31/2010 09:39 AM, xancorreu wrote: \setuplayout [backspace=\dimexpr 1in+22pt\relax, % [1] + [3] = (1 inch + \hoffset=0pt) + \oddsidemargin=22pt Mojca Thanks Mojca for trying it now you check that this was very difficult for a newbee as me ;-) You probably have to add another 1in to the backspace, for the \hoffset. If the exact way is too complicated, is there any **approximate** way to obtain the usually margins in LaTeX article in 10 pt? Sure there is: print an article.cls output pdf and measure the distances with a ruler (that is what I do when I need to mimic a layout). Best wishes, Taco ___ 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] startenumerate in romans a la LaTeX
On 08/31/2010 09:31 AM, Xan wrote: Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit: On 08/28/2010 09:31 PM, Xan wrote: - right indentation of items: in context items start at the same point. In LaTeX is the item text itself who starts at the same point, not the romans. I do not understand this sentence. Does this do what you want? Easy: in ConTeXt (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla in LaTeX (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla Context aligns text and LaTeX right-aligns the numbers (markers) Wolfgang? I know how to code this in plain style, but is there a nicer way? Best wishes, Taco ___ 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] startenumerate in romans a la LaTeX
El 31/08/2010, a las 09:47, Taco Hoekwater escribió: On 08/31/2010 09:31 AM, Xan wrote: Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit: On 08/28/2010 09:31 PM, Xan wrote: - right indentation of items: in context items start at the same point. In LaTeX is the item text itself who starts at the same point, not the romans. I do not understand this sentence. Does this do what you want? Easy: in ConTeXt (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla in LaTeX (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla Context aligns text and LaTeX right-aligns the numbers (markers) Wolfgang? I know how to code this in plain style, but is there a nicer way? Hello, this appeared in the list some time ago. \startitemize[r,fit][stopper=,left=(,right=),itemalign=flushright] \dorecurse{10}{\item prueba} \stopitemize Best, Jeronimo. Best wishes, Taco ___ 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] startenumerate in romans a la LaTeX
Am 31.08.2010 um 09:47 schrieb Taco Hoekwater: On 08/31/2010 09:31 AM, Xan wrote: Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit: On 08/28/2010 09:31 PM, Xan wrote: - right indentation of items: in context items start at the same point. In LaTeX is the item text itself who starts at the same point, not the romans. I do not understand this sentence. Does this do what you want? Easy: in ConTeXt (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla in LaTeX (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla Context aligns text and LaTeX right-aligns the numbers (markers) Wolfgang? I know how to code this in plain style, but is there a nicer way? \defineitemgroup[enumerate] \setupitemgroup[enumerate][each][romannumerals][width=1cm,distance=1em,itemalign=flushright,left=(,right=),stopper=] %\setupitemgroup[enumerate][each][romannumerals,fit][distance=1em,itemalign=flushright,left=(,right=),stopper=] \starttext \startenumerate \item one \item two \item \input ward \stopenumerate \stoptext 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
On Tue, Aug 31, 2010 at 09:42, Taco Hoekwater wrote: On 08/31/2010 09:39 AM, xancorreu wrote: \setuplayout [backspace=\dimexpr 1in+22pt\relax, % [1] + [3] = (1 inch + \hoffset=0pt) + \oddsidemargin=22pt Mojca Thanks Mojca for trying it now you check that this was very difficult for a newbee as me ;-) You probably have to add another 1in to the backspace, for the \hoffset. If the exact way is too complicated, is there any **approximate** way to obtain the usually margins in LaTeX article in 10 pt? The exact way would be to read the LaTeX class and figure out what dimensions are being used there. The approximate way would be to visually compare the output of LaTeX and ConTeXt. Sure there is: print an article.cls output pdf and measure the distances with a ruler (that is what I do when I need to mimic a layout). Or take Adobe Acrobat and use measuring tool, or compare visually (aligning two documents in pdf viewer). If you print out the material there's always a chance that printer won't align the edges properly. The third option is to use the following in LaTeX to figure out what dimensions are being used in LaTeX, compare that with figure in The Not So Short Introduction to LaTeX and then use these numbers in ConTeXt (properly adjusted for the differences): hoffset=\the\hoffset\par oddsidemargin=\the\oddsidemargin\par marginparwidth=\the\marginparwidth\par textwidth=\the\textwidth\par But after I have managed to guess somehow that the horizontal dimensions were matching [backspace=\dimexpr 1in+31pt\relax width=\dimexpr 390pt\relax, in latex,12pt (but for some unknow reason hyphenation in ConTeXt was off, or at least at different penalty values, so I didn't manage to compare the line breaks) ... I realized that margins change if you try to use \documentclass[10pt,a4paper]{article} instead of 12pt, so one would need to account for that change as well. 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] questions regarding `\date`
Dear ConTeXt folks, Am Samstag, den 28.08.2010, 16:02 +0200 schrieb Paul Menzel: I have four questions regarding `\date`. I looked at the page in the Wiki [1], in the ConTeXt user manual on page 159 [2][3] and tried some things, but could not figure it out. I am using Debian Sid/unstable and I am a total beginner regarding ConTeXt. 0. I guess the first question is, if `\date` is supposed to be used inside a text anyway or just when for example setting the title page. 1. No space is inserted after using `\date[…]`. text \date[d=29,m=8,y=2099] text result: text 29. August 2099text Is that intentional? A slash after the command fixes it. text \date[d=29,m=8,y=2099]\ text this question was answered by Wolfgang and he gave a solution. 2. I do not want that one digit months have the zero displayed. But using `m` acts as using `month`. \date[d=29,m=8,y=2099][d,.\,,m] result: 29. August 3. Spacing between numbers. Using LaTeX there were some suggestions to typeset a date using small spaces like `29.\,8.\,2010`. I guess this depends on the fonts used and personal taste? If there is a rule, maybe that could be added to the typesetting chapter in the user manual. Could you answer or give your opinions an 0., 2. and 3. please? That would be great. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
Mojca Miklavec wrote: On Tue, Aug 31, 2010 at 09:42, Taco Hoekwater wrote: to use \documentclass[10pt,a4paper]{article} instead of 12pt, so one would need to account for that change as well. One more warning: AFAIR, [10pt,a4paper] != [a4paper,10pt]. ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
On 31-8-2010 10:09, Mojca Miklavec wrote: in latex,12pt (but for some unknow reason hyphenation in ConTeXt was off, or at least at different penalty values, so I didn't manage to compare the line breaks) ... I realized that margins change if you try to use \documentclass[10pt,a4paper]{article} instead of 12pt, so one would need to account for that change as well. you can be pretty sure that defaults in context differe from those in latex, if only because latex never was the starting point 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] public SCM repositories and how to contribute
On 08/23/2010 02:30 PM, Paul Menzel wrote: It would just make it easier for others to work with the source and to not double work, since they always see your latest work. Fabrice kindly approved a context-modules project a few minutes ago: http://foundry.supelec.fr/gf/project/context-modules/ I'll check in the lettrines module in a bit. If other people with modules want to use the same repository (we will just create a subfolder for each module) just press the 'Request to join project' button and I will approve you. Best wishes, Taco ___ 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] parsing custom syntax in lua
Hello, What is the best way to pass verbatim text to lua for processing? I would like to write a lua parser for non-TeX text with a custom syntax (could be something like Markdown for instance). The interface would be \startMyFormat % custom syntax % \stopMyFormat \processMyFormatfile[external file.custom] % alternative The text between \startMyFormat and \stopMyFormat or the text read from the external file should be passed as one utf8-encoded string to a lua function. Any ideas on how to write these macros? On a side note, does anyone know of a quick way to strip diacritical marks from utf8-encoded strings in lua (i.e., transform them to pure ascii)? Thanks, Vianney ___ 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] parsing custom syntax in lua
Am 31.08.2010 um 11:01 schrieb Vianney le Clément: Hello, What is the best way to pass verbatim text to lua for processing? I would like to write a lua parser for non-TeX text with a custom syntax (could be something like Markdown for instance). The interface would be \startMyFormat % custom syntax % \stopMyFormat \processMyFormatfile[external file.custom] % alternative The text between \startMyFormat and \stopMyFormat or the text read from the external file should be passed as one utf8-encoded string to a lua function. Any ideas on how to write these macros? On a side note, does anyone know of a quick way to strip diacritical marks from utf8-encoded strings in lua (i.e., transform them to pure ascii)? Take a look at this module: http://github.com/adityam/filter You can find examples here: http://randomdeterminism.wordpress.com/ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
I follow your suggestion: rule but I'm in trouble: with \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=12cm,height=fit,backspace=3cm,rightedge=5cm,leftedge=5cm] I obtained a non-centered layout!!! leftedge and rightedge are the margins between the final of the paper and the {left,right}margin, isn't? How to center the layout with topspace=3cm, leftmargin=3cm, rightmargin=3cm, header=2cm, footer=2cm, width=12cm, height=fit, backspace=3cm ??? 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
On 31-8-2010 9:39, xancorreu wrote: Thanks Mojca for trying it now you check that this was very difficult for a newbee as me ;-) Seems difficult for anyone so I think that Taco's approach: just measure is the safest. After all, you will never get 100% compatible output. 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] parsing custom syntax in lua
On Tue, Aug 31, 2010 at 11:05, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Take a look at this module: http://github.com/adityam/filter You can find examples here: http://randomdeterminism.wordpress.com/ Wolfgang Thanks Wolfgang, that module does indeed seem very interesting and do something related to my problem. I'll dig into it. Vianney ___ 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] Postscript Type1 fonts MK IV - [SOLVED]
On 08/31/2010 09:31 AM, Taco Hoekwater wrote: On 08/31/2010 08:27 AM, John Magolske wrote: * Khaled Hosnykhaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data We should try to find what is causing the erratic behavior of ~/.fonts Perhaps it is all just because the default $OSFONTDIR does not contain ~/.fonts ? I tried this: export OSFONTDIR=/usr/share/fonts:~/.fonts and everything works as it should. Best wishes, Taco ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
On 31-8-2010 11:20, xancorreu wrote: I follow your suggestion: rule but I'm in trouble: with \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=12cm,height=fit,backspace=3cm,rightedge=5cm,leftedge=5cm] I obtained a non-centered layout!!! leftedge and rightedge are the margins between the final of the paper and the {left,right}margin, isn't? How to center the layout with topspace=3cm, leftmargin=3cm, rightmargin=3cm, header=2cm, footer=2cm, width=12cm, height=fit, backspace=3cm width=middle - 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] startenumerate in romans a la LaTeX
Al 31/08/10 10:06, En/na Wolfgang Schuster ha escrit: Am 31.08.2010 um 09:47 schrieb Taco Hoekwater: On 08/31/2010 09:31 AM, Xan wrote: Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit: On 08/28/2010 09:31 PM, Xan wrote: - right indentation of items: in context items start at the same point. In LaTeX is the item text itself who starts at the same point, not the romans. I do not understand this sentence. Does this do what you want? Easy: in ConTeXt (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla in LaTeX (i) bla bla bla (ii) bla bla bla (iii) bla bla bla (iv) bla bla bla Context aligns text and LaTeX right-aligns the numbers (markers) Wolfgang? I know how to code this in plain style, but is there a nicer way? \defineitemgroup[enumerate] \setupitemgroup[enumerate][each][romannumerals][width=1cm,distance=1em,itemalign=flushright,left=(,right=),stopper=] %\setupitemgroup[enumerate][each][romannumerals,fit][distance=1em,itemalign=flushright,left=(,right=),stopper=] \starttext \startenumerate \item one \item two \item \input ward \stopenumerate \stoptext Wolfgang It does not work for me. The numbers are left aligned. Xan. ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
Al 31/08/10 11:16, En/na Hans Hagen ha escrit: On 31-8-2010 9:39, xancorreu wrote: Thanks Mojca for trying it now you check that this was very difficult for a newbee as me ;-) Seems difficult for anyone so I think that Taco's approach: just measure is the safest. After all, you will never get 100% compatible output. Hans Yeah but it's a little bit chapucero (spanish) ;-) Xan. ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
Al 31/08/10 11:23, En/na Hans Hagen ha escrit: On 31-8-2010 11:20, xancorreu wrote: I follow your suggestion: rule but I'm in trouble: with \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=12cm,height=fit,backspace=3cm,rightedge=5cm,leftedge=5cm] I obtained a non-centered layout!!! leftedge and rightedge are the margins between the final of the paper and the {left,right}margin, isn't? How to center the layout with topspace=3cm, leftmargin=3cm, rightmargin=3cm, header=2cm, footer=2cm, width=12cm, height=fit, backspace=3cm width=middle - 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 - WIth \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=middle,height=fit,backspace=3cm,rightedge=5cm,leftedge=5cm] leftedge and rightedge are ignored. Arg!!! Thanks, Xan. ___ 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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
Simple case: % Margins \setuplayout[topspace=3cm,leftmargin=5cm,rightmargin=5cm,header=2cm,footer=2cm,width=middle,height=fit,backspace=3cm] the left and rightmargin values are ignored: 5cm, 2cm no matter... always the same. ___ 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] questions regarding `\date`
Hi Paul, On 2010-08-31 10:29:39, Paul Menzel wrote: 3. Spacing between numbers. Using LaTeX there were some suggestions to typeset a date using small spaces like `29.\,8.\,2010`. I guess this depends on the fonts used and personal taste? If there is a rule, maybe that could be added to the typesetting chapter in the user manual. Could you answer or give your opinions an 0., 2. and 3. please? That would be great. unfortunately I can only come up with a negative answer: I skimmed the Bringhurst and although he does discuss date strings with slashes as separators, I could not find anything concerning their spacing. As you guessed, “personal taste” might be a valid criterion in this matter. Maybe you should redirect this question to http://typophile.com/forums, but make sure to come back with a definite answer ;-) Philipp ___ 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 pgpmandHXLGfX.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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins
On 31-8-2010 11:33, xancorreu wrote: Al 31/08/10 11:23, En/na Hans Hagen ha escrit: On 31-8-2010 11:20, xancorreu wrote: I follow your suggestion: rule but I'm in trouble: with \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=12cm,height=fit,backspace=3cm,rightedge=5cm,leftedge=5cm] I obtained a non-centered layout!!! leftedge and rightedge are the margins between the final of the paper and the {left,right}margin, isn't? How to center the layout with topspace=3cm, leftmargin=3cm, rightmargin=3cm, header=2cm, footer=2cm, width=12cm, height=fit, backspace=3cm width=middle - 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 - WIth \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=middle,height=fit,backspace=3cm,rightedge=5cm,leftedge=5cm] leftedge and rightedge are ignored. Arg!!! margins and edges are sort of virtual; they only are used for putting stuff into (and then the dimensions determins the width etc) ... backspace and cutspace are the ones to use 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] MKIV and path updated by Mktexlsr...
Hello list, I do not know why, but somehow ConTeXt MKIV stopped (in texlive 2010) look up the my .tex files (my libraries) that I placed to c:/texlive/texmf-local/tex/... etc. .. While MKII works fine. Is Mktexlsr command for MKIV without effect? Knows anyone what may be the problem and how to fix it?? Thanks Jaroslav ___ 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] startenumerate in romans a la LaTeX
On 31 août 2010, at 11:28, Xan wrote: It does not work for me. The numbers are left aligned. Xan. Wolfgang's solution works for me with mkiv: Xan, are you using mkii or mkiv? 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 ___
Re: [NTG-context] Migrations: exactly LaTeX margins -- ConTeXt margins
Am 30.08.2010 um 08:33 schrieb Hans Hagen: On 29-8-2010 7:11, Xan xan wrote: Hi, I want to migrate one LaTeX document to ConTeXt document. I only want to put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}. Anyone could say me the exact values I have to put in **layout**? You first have to figure out what the exact latex values are. I suppose that they are documented somewhere or can be deduced from the document class (maybe make a list for more popular document classes). At some point there can be a module doing things like \definelayout[latex-article][...] I looked now in the files where the layout for the standard classes in latex is defined and it's a mess to reproduce them in context because all values depend on the papersize and fontsize and it takes a lot of code (even with etex’s \dimexpr) because there are checks whether a calculated dimensions exceeds a fixed limit. This is how the layout for a document with a fontsize of 10pt looks: \definelayout [latex10] [width=\ifdim\dimexpr\paperwidth-2in\relax345pt\relax 345pt\else\dimexpr\paperwidth-2in\relax\fi, % \paperwidth-2in or 345pt, use the smaller value backspace=\dimexpr(\paperwidth-\textwidth)/2-1in\relax, leftmargindistance=7pt, leftmargin=, topspace=, header=12pt, headerdistance=.25in, height=, footer=, footerdistance=,] 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] section conversion gets lost in MKIV
Hi, Is there a documentation and/or extensive example of the conversionset feature (and others) somewhere? The comments in the source files (on the wiki) are kind of scarce and I can't quite figure out how to use them. Thanks. -- Cédric On Mon, Aug 30, 2010 at 13:23, Hans Hagen pra...@wxs.nl wrote: On 30-8-2010 10:34, Mojca Miklavec wrote: Dear list, Here's a minimal example that work correct in MKII, but wrong in MKIV: \setupsection [chapter] [conversion=Characters] \setupsection [section] [conversion=] \starttext \chapter{first} \section{subfirst} \stoptext It results in A first 1.1 subfirst while it should keep A.1 instead of 1.1 for the section numbering. The new way is: \definestructureconversionset[MySet][numbers,Characters][numbers] % [per level] [default] \setupsection [chapter] [sectionconversionset=MySet] \starttext \chapter{first} \section{subfirst} \stoptext What you observe is 'conversion' being inherited and makins both the conversionsets and conversion work as you want will mess up much code so I think that I will remove the 'conversion' key completely in favor of the set. Keep in mind that we now keep more status info around and more or less local conversion settings (after all then can be changed each moment) is not part of that. So, a next release will drop 'conversion' ... better not that unpredictable. 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 ___ ___ 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] Postscript Type1 fonts MK IV - [SOLVED]
On Mon, Aug 30, 2010 at 11:27:00PM -0700, John Magolske wrote: * Khaled Hosny khaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data Thanks! This solved my problem: % mkdir -p ~/texmf/fonts/data % mv *.{pfb,afm} ~/texmf/fonts/data % export OSFONTDIR=$HOME/.fonts;$HOME/texmf/fonts/data Or, to keep all fonts under ~/.fonts , this also works: I think the OSFONTDIR is unnecessary here, context will seach ~/texmf anyway. 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] MKIV and path updated by Mktexlsr...
luatools --generate dont work... Where can I read about it (where to place its library to the path, etc)? I found such that the directory texmf-local anywhere in installation the TL 2010 does not appear ... Thanx Jaroslav... Dne 31.8.2010 12:12, Jaroslav Hajtmar napsal(a): Hello list, I do not know why, but somehow ConTeXt MKIV stopped (in texlive 2010) look up the my .tex files (my libraries) that I placed to c:/texlive/texmf-local/tex/... etc. .. While MKII works fine. Is Mktexlsr command for MKIV without effect? Knows anyone what may be the problem and how to fix it?? Thanks Jaroslav ___ 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] Postscript Type1 fonts MK IV - [SOLVED]
On Tue, Aug 31, 2010 at 11:19:50AM +0200, Taco Hoekwater wrote: On 08/31/2010 09:31 AM, Taco Hoekwater wrote: On 08/31/2010 08:27 AM, John Magolske wrote: * Khaled Hosnykhaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data We should try to find what is causing the erratic behavior of ~/.fonts Perhaps it is all just because the default $OSFONTDIR does not contain ~/.fonts ? I tried this: export OSFONTDIR=/usr/share/fonts:~/.fonts Mine is: export OSFONTDIR='$HOME/.fonts//:/usr/share/fonts//' 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] section conversion gets lost in MKIV
On 31-8-2010 1:07, Cedric Mauclair wrote: Is there a documentation and/or extensive example of the conversionset feature (and others) somewhere? The comments in the source files (on the wiki) are kind of scarce and I can't quite figure out how to use them. it's just a list of conversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below that as 1..n - 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] MKIV and path updated by Mktexlsr...
On 31-8-2010 1:23, Jaroslav Hajtmar wrote: luatools --generate dont work... Where can I read about it (where to place its library to the path, etc)? I found such that the directory texmf-local anywhere in installation the TL 2010 does not appear ... don't mix context updates with tex live as some fundamentals changed ... when you still want to do that, you need to put texmfcnf.lua in your web2c path as that one is used also, it's mtxrun --generate nowadays 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] questions regarding `\date`
On 08/31/2010 11:48 AM, Philipp Gesang wrote: Hi Paul, On 2010-08-3110:29:39, Paul Menzel wrote: 3. Spacing between numbers. Using LaTeX there were some suggestions to typeset a date using small spaces like `29.\,8.\,2010`. I guess this depends on the fonts used and personal taste? If there is a rule, maybe that could be added to the typesetting chapter in the user manual. Could you answer or give your opinions an 0., 2. and 3. please? That would be great. unfortunately I can only come up with a negative answer: I skimmed the Bringhurst and although he does discuss date strings with slashes as separators, The Chicago manual (14ed) says that slashed/dotted dates are bad style and should be avoided and that one should use full month names instead. Best wishes, Taco ___ 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] MKIV and path updated by Mktexlsr...
OK. thanks for the reply. I wonder whether it is better to load the my libraries with relative or absolute path to the library. Currently it seems to me to be sensible. Jaroslav Dne 31.8.2010 13:32, Hans Hagen napsal(a): don't mix context updates with tex live as some fundamentals changed ... when you still want to do that, you need to put texmfcnf.lua in your web2c path as that one is used also, it's mtxrun --generate nowadays ___ 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] PDF fields
Hi all, please have a look at my attached example. I've two problems. pdf-fields.tex Description: Binary data 1) After I fill one field in the PDF-file all other fields inherit the text. How can I prevent this? 2) The text in the left column an the text in the field are not on the same baseline. The field-text is slightly higher. Thank you in advance Andreas___ 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] questions regarding `\date`
On 2010-08-31 13:41:06, Taco Hoekwater wrote: On 08/31/2010 11:48 AM, Philipp Gesang wrote: unfortunately I can only come up with a negative answer: I skimmed the Bringhurst and although he does discuss date strings with slashes as separators, The Chicago manual (14ed) says that slashed/dotted dates are bad style and should be avoided and that one should use full month names instead. Best wishes, Taco That's what I prefer, too. Bringhurst (v.3.2, p. 81f.) only uses the date as an example for the opposition virgule/solidus and states that “[i]t is useful in dates [...] and in text where a comma or parenthesis might otherwise have been used”. He does not give general advice wrt typesetting of dates. For the record, p. 406 of the TeXbook has this: ··8 \def\today{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi \space\number\day, \number\year} ··8 Ergo common spaces. Philipp ___ 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 pgpReCuWCUKhM.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] PDF fields
2010/8/31 Andreas Harder andreas.har...@rz-online.de: Hi all, please have a look at my attached example. I've two problems. 1) After I fill one field in the PDF-file all other fields inherit the text. How can I prevent this? The fields are all the same. You can: \dorecurse{31}{\definefield [hours#1] [line] [setup] [] []} \def\Feld#1% {\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD \bTD \field[hours#1] \eTD\eTR} 2) The text in the left column an the text in the field are not on the same baseline. The field-text is slightly higher. Thank you in advance Andreas Lutz ___ 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] PDF fields
Am 31.08.2010 um 14:30 schrieb Lutz Haseloff: 1) After I fill one field in the PDF-file all other fields inherit the text. How can I prevent this? The fields are all the same. You can: \dorecurse{31}{\definefield [hours#1] [line] [setup] [] []} \def\Feld#1% {\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD \bTD \field[hours#1] \eTD\eTR} Okay, I see. Thanks a lot! Greeting Andreas ___ 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] questions regarding `\date`
2010/8/31 Taco Hoekwater t...@elvenkind.com: The Chicago manual (14ed) says that slashed/dotted dates are bad style and should be avoided and that one should use full month names instead. Seconded. And if you have to use a short form, please follow ISO 8601 (http://en.wikipedia.org/wiki/ISO_8601) - nobody can be sure when the 8.9.10 is. Best Martin ___ 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] numbered subitems revisited
Several iterations of MK2 ago (in 2007), I was able to produce: 1. History 1.1 Pre-Greek (Babylonian and Egyptian) sundials 1.2 Greek and Roman sundials 1.3 Byzantine sundials 2. Catalog (descriptions with photos, rough dating, evaluation) 2.1 The Tower of the Winds and its sundials, treated separately 2.2 General remarks on the cataloguing of the other finds 2.3 Catalogue of the remaining finds on the Greek mainland and the Peloponnesus 3. Analysis 3.1 Methodological remarks on the mathematical tools for analysis, and on their status 3.2 Documentation of the results of the mathematical analysis of the measurements, comparison with other evaluations using the following code (thanks to Aditya): \setupitemize[1][fit,broad] \setupitemize[2][width=2em] \setupitemize[each][n] \def\checkforrepeatedlistitem {\ifnum\itemlevel=\plusone \initializeboxstack{item}% \fi \ifconditional\repeatlistitem \savebox{item}{\itemlevel}{\hbox{\copy8}}% \setbox8\hbox %to \wd8 {\setbox\scratchbox\hbox {\scratchcounter\itemlevel \advance\scratchcounter\minusone \dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}% \ifnum\itemlevel\plusone \ifdim\wd\scratchbox\zeropoint %\hskip-\dimen2 \box\scratchbox \fi \fi \box8 }% \fi} \startitemize[repeat,serried, joinedup] \item History \startitemize[width=1.75em, stopper={}] \item Pre{-}Greek (Babylonian and Egyptian) sundials \item Greek and Roman sundials \item Byzantine sundials \stopitemize \item Catalog (descriptions with photos, rough dating, evaluation) \startitemize[width=1.75em, stopper={}] \item The Tower of the Winds and its sundials, treated separately \item General remarks on the cataloguing of the other finds \item Catalogue of the remaining finds on the Greek mainland and the Peloponnesus \stopitemize \item Analysis \startitemize[width=1.75em, stopper={}] \item Methodological remarks on the mathematical tools for analysis, and on their status \item Documentation of the results of the mathematical analysis of the measurements, comparison with other evaluations \stopitemize \stopitemize But using 2010.08.06 22 of the minimals, I now get: ! Undefined control sequence. \checkforrepeatedlistitem -\ifnum \itemlevel =\plusone \initializeboxstack ... \dolistitem ...rutdepth \checkforrepeatedlistitem \ifdim \dimen 2\zeropoint... \complexdoitemgroupitem ...obreak \fi \dolistitem \relax \ifconditional \pac... to be read again H l.30 \item H istory The redefinition of \checkforrepeatedlistitem was necessary because “serried” ruined the indentation of the subitems. Is there a fix for this? Alan ___ 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] section conversion gets lost in MKIV
On Tue, Aug 31, 2010 at 13:30, Hans Hagen pra...@wxs.nl wrote: On 31-8-2010 1:07, Cedric Mauclair wrote: Is there a documentation and/or extensive example of the conversionset feature (and others) somewhere? The comments in the source files (on the wiki) are kind of scarce and I can't quite figure out how to use them. it's just a list of conversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below that as 1..n All right, I'm starting to get it, for conversionset at least. I still have some questions though. 1. To what do P and P.N refer to in strc-ini.mkiv? 2. What does the little table mean (reference, mark, list, text against section, float, etc.)? I see there is something going on with the next few lines, but I don't clearly see how to use the table. Thanks. - 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] mkiv and Reverse list of abbreviations
Hi everyone, I have three questions regarding the use of abbreviations in mkiv: it seems that there is a difference between the way in which mkii and mkiv treat the definitions of synonyms. If one considers the minimal example: % - begin abbrev-test.tex \definesynonyms[abbreviation][abbreviations][\infull][\inshort] \starttext \abbreviation{LCTVS}{Locally Convex Topological Vector Space} \abbreviation{EEG} {Electroencephalogram} \abbreviation{ERP} {Event-Related Potentials} \abbreviation{TVS}{Topological Vector Space} Test inshort: \inshort{EEG}, \inshort{ERP}, \inshort{TVS}, Test infull: \infull{EEG}, \infull{ERP}, \infull{TVS}, \infull{LCTVS} \completelistofabbreviations \stoptext % - end abbrev-test.tex my questions are the following: 1) How can I tell mkiv that I want \infull{EEG} result in Electroencephalogram not in ELECTROENCEPHALOGRAM? 2) It seems that the order in which \infull and \inshort are defined in \definesynonyms[abbreviation][abbreviations][\infull][\inshort] is different in mkii and in mkiv: is this observation correct? 3) Is it possible to obtain, beside the list of abbreviations, another ordered list in which the full variant is in the first column while the short variant is in the second column? That is something like: \completeReverseListOfAbbreviations resulting in ElectroencephalogramEEG Event-Related PotentialsERP Locally Convex Topological Vector Space LCTVS Topological Vector SpaceTVS Thanks in advance for any help or insight. 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 ___
Re: [NTG-context] startenumerate in romans a la LaTeX
Al 31/08/10 12:16, En/na Otared Kavian ha escrit: On 31 août 2010, at 11:28, Xan wrote: It does not work for me. The numbers are left aligned. Xan. Wolfgang's solution works for me with mkiv: Xan, are you using mkii or mkiv? Best regards: OK I use mkii Xan. ___ 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] section conversion gets lost in MKIV
On 31-8-2010 4:28, Cedric Mauclair wrote: On Tue, Aug 31, 2010 at 13:30, Hans Hagenpra...@wxs.nl wrote: On 31-8-2010 1:07, Cedric Mauclair wrote: Is there a documentation and/or extensive example of the conversionset feature (and others) somewhere? The comments in the source files (on the wiki) are kind of scarce and I can't quite figure out how to use them. it's just a list of conversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below that as 1..n All right, I'm starting to get it, for conversionset at least. I still have some questions though. 1. To what do P and P.N refer to in strc-ini.mkiv? prefix ... some numbers, like a figurenumber can have the section number as prefix and all that is kept track of so that in a table of contents (of ref) one can have different formatting rules 2. What does the little table mean (reference, mark, list, text against section, float, etc.)? I see there is something going on with the next few lines, but I don't clearly see how to use the table. reference, mark, list, text are the text variants (so a bookmark or list entry can be different from the title shown as section) - 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] mkiv and Reverse list of abbreviations
On 31-8-2010 4:41, Otared Kavian wrote: Hi everyone, I have three questions regarding the use of abbreviations in mkiv: it seems that there is a difference between the way in which mkii and mkiv treat the definitions of synonyms. If one considers the minimal example: % - begin abbrev-test.tex \definesynonyms[abbreviation][abbreviations][\infull][\inshort] \starttext \abbreviation{LCTVS}{Locally Convex Topological Vector Space} \abbreviation{EEG} {Electroencephalogram} \abbreviation{ERP} {Event-Related Potentials} \abbreviation{TVS}{Topological Vector Space} Test inshort: \inshort{EEG}, \inshort{ERP}, \inshort{TVS}, Test infull: \infull{EEG}, \infull{ERP}, \infull{TVS}, \infull{LCTVS} \completelistofabbreviations \stoptext % - end abbrev-test.tex my questions are the following: 1) How can I tell mkiv that I want \infull{EEG} result in Electroencephalogram not in ELECTROENCEPHALOGRAM? 2) It seems that the order in which \infull and \inshort are defined in \definesynonyms[abbreviation][abbreviations][\infull][\inshort] is different in mkii and in mkiv: is this observation correct? I need to check it (no time right now) as there is no reason for it not to be compatible 3) Is it possible to obtain, beside the list of abbreviations, another ordered list in which the full variant is in the first column while the short variant is in the second column? That is something like: \completeReverseListOfAbbreviations resulting in ElectroencephalogramEEG Event-Related PotentialsERP Locally Convex Topological Vector Space LCTVS Topological Vector SpaceTVS Thanks in advance for any help or insight. remind me to make it configureable (not that hard) 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] Postscript Type1 fonts MK IV - [SOLVED]
On Tue, 31 Aug 2010, Khaled Hosny wrote: On Tue, Aug 31, 2010 at 11:19:50AM +0200, Taco Hoekwater wrote: On 08/31/2010 09:31 AM, Taco Hoekwater wrote: On 08/31/2010 08:27 AM, John Magolske wrote: * Khaled Hosnykhaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data We should try to find what is causing the erratic behavior of ~/.fonts Perhaps it is all just because the default $OSFONTDIR does not contain ~/.fonts ? I tried this: export OSFONTDIR=/usr/share/fonts:~/.fonts Mine is: export OSFONTDIR='$HOME/.fonts//:/usr/share/fonts//' Mine is (in setuptex) OSFONTDIR=$HOME/.fonts;/usr/share/fonts; export OSFONTDIR I had some troubles with OSFONTDIR and opentype fonts in the past. Perhaps I should use : and trailing // and test again. 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] Migrations: exactly LaTeX margins -- ConTeXt margins
Al 31/08/10 12:22, En/na Wolfgang Schuster ha escrit: \definelayout [latex10] [width=\ifdim\dimexpr\paperwidth-2in\relax345pt\relax 345pt\else\dimexpr\paperwidth-2in\relax\fi, % \paperwidth-2in or 345pt, use the smaller value backspace=\dimexpr(\paperwidth-\textwidth)/2-1in\relax, leftmargindistance=7pt, leftmargin=, topspace=, header=12pt, headerdistance=.25in, height=, footer=, footerdistance=,] Thank you very much for your effort, but it does not work for me: ! Missing number, treated as zero. to be read again \global \dorecalculatelayout ...ter \c!leftmargin \global \rightmarginwidth \layoutp... \dosetuplayout ...#1}}}\fi \fi \recalculatelayout \checkcurrentlayout \prese... to be read again \par l.36 ? x No pages of output. Transcript written on arxiv.log. For now, I use % Margins \setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=middle,height=fit,backspace=4.4cm] with approximate the latex in 10. ___ 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] definedelimitedtext options
Hi, Another time ;-) I have \definedelimitedtext [abstract] [leftmargin=yes, spacebefore=line, style={\switchtobodyfont[9pt]},after=\normal] and I want to indent more the abstract. What are the options of definedelimitedtext? In the manual there is no mention for that. Is there any way of doing the same as \startnarrower[2*middle,3*middle]? Thanks in advance, Xan. ___ 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] Problems with the installation of the minimals on Win XP
2010/8/30 Mojca Miklavec mojca.miklavec.li...@gmail.com On Mon, Aug 30, 2010 at 18:58, Florian Baudach wrote: I tried but it didn't work :(. I a must confess I am not a experienced windows user. Perhaps my problems with the minimals depend on the security settings on my office Pc :-? Greetings Did you try to download the installer from scratch? I first tried the first-setup.bat. It didn't work so it tried Vyatchesla`s installer, which also didn't work. I will try the installations script at home with my windows vista installation this week. Unfortunately I have no Win XP Home here, to reproduce the error :-(. Greetings FloMo ___ 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] startenumerate in romans a la LaTeX
El 31/08/2010, a las 16:58, xancorreu escribió: Al 31/08/10 12:16, En/na Otared Kavian ha escrit: On 31 août 2010, at 11:28, Xan wrote: It does not work for me. The numbers are left aligned. Xan. Wolfgang's solution works for me with mkiv: Xan, are you using mkii or mkiv? Best regards: OK I use mkii Xan. ___ The version with fit works in mkii here: \setupitemgroup[enumerate][each][romannumerals,fit][width=1cm,distance=1em,itemalign=flushright,left=(,right=),stopper=] At least for me, do not work if omitted. Jeronimo. ___ 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] definedelimitedtext options
Am 31.08.2010 um 18:37 schrieb xancorreu: Hi, Another time ;-) I have \definedelimitedtext [abstract] [leftmargin=yes, spacebefore=line, style={\switchtobodyfont[9pt]},after=\normal] why 'after=\normal'? and I want to indent more the abstract. What are the options of definedelimitedtext? In the manual there is no mention for that. indenting={yes,big} Is there any way of doing the same as \startnarrower[2*middle,3*middle]? leftmargin=2cm, rightmargin=3cm or whatever value you want, by default rightmargin has the same amount as leftmargin 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] Migrations: exactly LaTeX margins -- ConTeXt margins
Am 31.08.2010 um 18:33 schrieb xancorreu: Al 31/08/10 12:22, En/na Wolfgang Schuster ha escrit: \definelayout [latex10] [width=\ifdim\dimexpr\paperwidth-2in\relax345pt\relax 345pt\else\dimexpr\paperwidth-2in\relax\fi, % \paperwidth-2in or 345pt, use the smaller value backspace=\dimexpr(\paperwidth-\textwidth)/2-1in\relax, leftmargindistance=7pt, leftmargin=, topspace=, header=12pt, headerdistance=.25in, height=, footer=, footerdistance=,] Thank you very much for your effort, but it does not work for me: This was just a example to show you how difficult it is to emulate latex’s layout in context because the values depend on different paramaters like the fontsize and the papersize. The example does not work because a few value like topspace or height are missing and this is why you get the error messages. 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] Problems with the installation of the minimals on Win XP
On Tue, Aug 31, 2010 at 18:54, Florian Baudach wrote: I will try the installations script at home with my windows vista installation this week. Unfortunately I have no Win XP Home here, to reproduce the error :-(. I'm sorry. I forgot that there were two problems. One that I have hopefully solved (missing dll for kpathsea) and one that most probably only appears in XP (missing libraries due to too recent compiler). I didn't do anything about that one yet. 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 ___