[NTG-context] Blank at beginning of page
Hi, being new to ConTeXt I'd have loads of questions but I'd like to start with what puzzles me most: any \blank[] command that happens to be at the beginning of a page seems to be ignored. For instance in a document as follows \showframe \starttext \blank[5*big] Some text. \stoptext the string Some text. will be placed on the very top of the text field, regardless of what \blank[]s precede it. I read a good deal of the documentation but couldn't make out the cause nor a workaround. Right now I even consider to put headings inside a float or something like that in order to make their [before=\blank[someblank]] option effective. Thanks in advance for any advice 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 ___
Re: [NTG-context] Blank at beginning of page
On 18.1.2010 13:40, Philipp Gesang wrote: \showframe \starttext \blank[5*big] Some text. \stoptext \dontleavehmode \blank[5*big] See http://wiki.contextgarden.net/A_Very_Simple_Cover_Page for explanation. Bostjan ___ 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] negative kerning
Thankyou very much for your answers. Wolfgang, I have the following error when I run that code: (c:/contextminimal/texmf-context/tex/context/sample/knuth.texerror: ...tminimal/texmf-context/tex/context/base/typo-krn.lua:121: attempt to index local 'before' (a nil value) I´m using XP ConTeXt ver: 2010.01.18 22:43 MKIV fmt: 2010.1.19 int: english/english what is wrong? thankyou for your help. Horacio Suarez From: thomas.schm...@uni-bonn.de Date: Mon, 18 Jan 2010 23:39:07 +0100 To: ntg-context@ntg.nl Subject: Re: [NTG-context] negative kerning On Jan 18, 2010, at 6:46 PM, Wolfgang Schuster wrote: MkIV only: \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125] \starttext \input knuth \start \setcharacterkerning[packed] \input knuth \stop \stoptext Wolfgang Wow!! That is one of the best things I have read in a while - it means we can have proper gesperrten Text with proper hyphenation! Really excellent, thanks a lot for pointing this out, Wolfgang! Thomas ___ 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 ___ _ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010___ 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] Blank at beginning of page
Am 18.01.10 13:40, schrieb Philipp Gesang: Hi, being new to ConTeXt I'd have loads of questions but I'd like to start with what puzzles me most: any \blank[] command that happens to be at the beginning of a page seems to be ignored. For instance in a document as follows \showframe \starttext \blank[5*big] Some text. \stoptext the string Some text. will be placed on the very top of the text field, regardless of what \blank[]s precede it. I read a good deal of the documentation but couldn't make out the cause nor a workaround. \blank[force,5*big] Right now I even consider to put headings inside a float or something like that in order to make their [before=\blank[someblank]] option effective. You need braces around the \blank command or you will get a error message. [before={\blank[force,5*big]}] 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] negative kerning
Hi, I tried the following snipped out of curiosity and it gives me the error (even with the latest beta) systems : begin file 1.tex at line 5 (c:/contextminimal/texmf-context/tex/context/sample/knuth.tex) (c:/contextminimal/texmf-context/tex/context/sample/knuth.texerror: ...tminimal/texmf-context/tex/context/base/typo-krn.lua:121: attempt to index local 'before' (a nil value) . l.11 ? \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125] \starttext \input knuth \start \setcharacterkerning[packed] \input knuth \stop \stoptext What have I missed? Regards, Vyatcheslav \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125] \starttext \input knuth \start \setcharacterkerning[packed] \input knuth \stop \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] negative kerning
On 19-1-2010 17:29, Vyatcheslav Yatskovsky wrote: Hi, I tried the following snipped out of curiosity and it gives me the error (even with the latest beta) systems : begin file 1.tex at line 5 (c:/contextminimal/texmf-context/tex/context/sample/knuth.tex) (c:/contextminimal/texmf-context/tex/context/sample/knuth.texerror: tminimal/texmf-context/tex/context/base/typo-krn.lua:121: attempt to index local 'before' (a nil value) .. l.11 ? just a bug - 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] Font database does not report all fonts
Hi all, and happy new year ! I've just (properly) installed a fresh ConTeXt Minimals on Linux and built the font database. Although my /usr/local/share/fonts/d directory contains Delicious-BoldItalic.otf Delicious-Bold.otf Delicious-Heavy.otf Delicious-Italic.otf Delicious-Roman.otf Delicious-SmallCaps.otf the command mtxrun --script font --list elicious only reports delicioussmallcaps delicioussmallcaps /usr/local/share/fonts/d/Delicious-SmallCaps.otf The problem also arises with other (possibly all) font names. Any thoughts ? ___ 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] Font database does not report all fonts
Am 19.01.10 18:35, schrieb Nicolas Girard: Hi all, and happy new year ! I've just (properly) installed a fresh ConTeXt Minimals on Linux and built the font database. Although my /usr/local/share/fonts/d directory contains Delicious-BoldItalic.otf Delicious-Bold.otf Delicious-Heavy.otf Delicious-Italic.otf Delicious-Roman.otf Delicious-SmallCaps.otf the command mtxrun --script font --list elicious only reports delicioussmallcaps delicioussmallcaps /usr/local/share/fonts/d/Delicious-SmallCaps.otf The problem also arises with other (possibly all) font names. Any thoughts ? mtxrun --script font --list --all --pattern=delicious* 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] location of /user/files?
On Sun, Jan 17, 2010 at 00:54, paul morgan queri...@gmail.com wrote: Thank you again Aditya and Khaled for getting ConTeXt working here. One more question for the list: Under MacTex or TexLive, not sure which one, on my 10.4.11 system, my setup and env* files were located in ~/Library/texmf/tex/context/user/ I rsynced that dir to ~/context/tex/texmf-context/tex/context/user I'm not trying to answer your question, but that is a bad idea since your files will get overwritten the first time when you synchronize with --delete (which might even be the default switch). You should better put your files to ~/context/tex/texmf-local/tex/context/user The texmf.cnf files now includes TEXMFHOME = $HOME/texmf but maybe we could add $HOME/Library/texmf to the list as well. Any objections to that? (I just need to figure out how to properly nest the braces.) 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] location of /user/files?
Am 19.01.10 18:40, schrieb Mojca Miklavec: The texmf.cnf files now includes TEXMFHOME = $HOME/texmf but maybe we could add $HOME/Library/texmf to the list as well. Any objections to that? (I just need to figure out how to properly nest the braces.) I would prefer $HOME/Library/texmf. 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] Questions regarding simplefonts
Hi again, although simplefonts seems very promising and I put the highest hopes on it, the lack of proper documentation simply prevents me to use it, which is somewhat frustrating. Here are some of my unanswered questions about simplefonts ; I'm willing to update the wiki with any informations this thread could bring. 1) How can I specify that the default font features should enable the standard ligatures (liga) ? I blindly tried several possibilities like \setupsimplefonts[features={liga}] but none worked 2) How can I get \sc to work with a font family whose small caps are defined as a font feature, rather than dedicated .otf files ? 3) How can I get font expansion and protrusion to work using simplefonts' dedicated keywords ? There again, I spent more than 30 minutes trying every combination I could think of, unsuccessfully. I think it would be useful to have a complete example of code involving simplefonts and expansion/protrusion that people could copy paste from the wiki 4) What is the purpose of the 'mode' keyword ? Many thanks in advance, cheers, Nicolas ___ 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] location of /user/files?
On 19-1-2010 18:40, Mojca Miklavec wrote: On Sun, Jan 17, 2010 at 00:54, paul morganqueri...@gmail.com wrote: Thank you again Aditya and Khaled for getting ConTeXt working here. One more question for the list: Under MacTex or TexLive, not sure which one, on my 10.4.11 system, my setup and env* files were located in ~/Library/texmf/tex/context/user/ I rsynced that dir to ~/context/tex/texmf-context/tex/context/user I'm not trying to answer your question, but that is a bad idea since your files will get overwritten the first time when you synchronize with --delete (which might even be the default switch). You should better put your files to ~/context/tex/texmf-local/tex/context/user otr texmf-project if it's a project tree The texmf.cnf files now includes TEXMFHOME = $HOME/texmf but maybe we could add $HOME/Library/texmf to the list as well. Any objections to that? (I just need to figure out how to properly nest the braces.) only mac i assume i wonder what happens if someone has another tex installed then so maybe make it an option somehow .. of just considere it not-done for the minimals 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] Questions regarding simplefonts
2010/1/19 Nicolas Girard nicolas.gir...@nerim.net: Hi again, I forgot this one: 5) My log files contain this reassuring message: (/home/ngirard/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.tex loading : ConTeXt User Module / Simplefonts ) immediatly followed with a puzzling one: system : module simplefonts not found Should I ignore it ? -- Nicolas ___ 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] location of /user/files?
On Tue, Jan 19, 2010 at 18:54, Hans Hagen wrote: On 19-1-2010 18:40, Mojca Miklavec wrote: The texmf.cnf files now includes TEXMFHOME = $HOME/texmf but maybe we could add $HOME/Library/texmf to the list as well. Any objections to that? (I just need to figure out how to properly nest the braces.) only mac i assume True, but it should be harmless if the folder doesn't exist on some other OS. i wonder what happens if someone has another tex installed then TeX is supposed to be installed somewhere else (by default), not in $HOME/texmf. People who do have those folders present usually know what they are doing. Not all of them, but some random newbie would not create a folder there. so maybe make it an option somehow .. of just considere it not-done for the minimals There have been several complaints about missing TEXMFHOME and no complaints about its presence since the time when we have added it (must be a few months at least). 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 simplefonts
Am 19.01.10 18:56, schrieb Nicolas Girard: 4) What is the purpose of the 'mode' keyword ? it's the mode option from \definefontfeature, here is a explanation from Taco http://www.ntg.nl/pipermail/ntg-context/2009/043782.html 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] ConTeXt swallows text
Hi, under certain circumstances, ConTeXt swallows text. This happens with both MkII and MkIV and a fairly recent minimals distribution. | ConTeXt ver: 2009.11.24 10:13 MKII fmt: 2009.11.25 int: english/english | ConTeXt ver: 2009.11.24 10:13 MKIV fmt: 2009.11.25 int: english/english Sadly, I noticed not until the booklet was already printed. (Actually, it was my customer who noticed.) :-( Best regards, olli % --- \enableregime[utf-8] \setupbodyfont[ss,10pt] \setupinterlinespace[line=2.6ex] \setuppapersize[A4][A4] \setuplayout[backspace=2cm,width=middle, offset=0mm, topspace=0cm,height=middle, location=middle, ] \setupcolors[state=start] \setuptolerance[tolerant,verytolerant] \definefloat[grafik] \setupcaption[grafik][number=no,location=bottom] \definecolumnset[ergebnisse][n=3] \definecolumnsetarea [title][left] [x=1,y=1,nx=6,ny=42,page=2,state=start] \starttext \startcolumnset[ergebnisse] \dorecurse{10}{\input tufte} \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]} \subject{Victoria Beckham pregnant again!} Barack Obama is the father! Confronted with this fact, her husband David Beckham said\,\dots (Actually, this is a very important news the world should knew about!) \dorecurse{3}{\input tufte} \stopcolumnset \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] numbered itemize
Hi, I tried to extend the example with a general setup-instruction, however this creates an error: \setupitemgroup[itemize][each][n,fit,broad] [start=8,itemalign=flushright] \starttext \startitemize \item bla \item bli \item di \item bla \item di \item blu \stopitemize \stoptext ! Illegal unit of measure (pt inserted). to be read again \redostartitemgroup ...fdim \currentitemmaxwidth \zeropoint \esetitemparame... \dostartitemgroup ... {\dodostartitemgroup [#2][]} \fi to be read again \item Kind regards Willi On Jan 17, 2010, at 5:04 PM, Wolfgang Schuster wrote: Am 17.01.2010 um 16:17 schrieb Peter Münster: On Sun, Jan 17 2010, Wolfgang Schuster wrote: That's not the problem, what did not work is - 'itemalign=...' in combination with 'width=dimen' and - 'fit' in combination with 'distance=dimen' Bug or feature? Should we add it to the tracker? Bug, I think. Can you add them? 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 __ _ ___ 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] numbered itemize
On 19-1-2010 19:38, Willi Egger wrote: Hi, I tried to extend the example with a general setup-instruction, however this creates an error: \setupitemgroup[itemize][each][n,fit,broad][start=8,itemalign=flushright] \starttext \startitemize \item bla \item bli \item di \item bla \item di \item blu \stopitemize \stoptext ! Illegal unit of measure (pt inserted). to be read again \redostartitemgroup ...fdim \currentitemmaxwidth \zeropoint \esetitemparame... \dostartitemgroup ... {\dodostartitemgroup [#2][]} \fi to be read again \item is that the latest beta? - 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] using `` '' the output is wrong.
Let me be a bit more nationalistic and exaggerate a bit for a moment (just in order to explain why I find the idea of using `` a bad one; do not take the text below too seriously or personally): On Mon, Jan 18, 2010 at 14:15, Alan BRASLAU wrote: On Monday 18 January 2010 13:50:25 Taco Hoekwater wrote: views63 wrote: I'm using `` complex analysis'' the output is wrong. Not really. We (Hans and I) would say that it is now finally right. ;) This is true of many standard TeX ligatures (is this the right word here?) such as ... (\ldots, \dots also works), (\og), (\fg), ` (\glqq), ' (\grqq), ~ (unbreakable space), etc. This can be a bit disturbing for experienced TeX users. - I agree. 80% of Slovenian (La)TeX users use US quotation marks just because they have read some TeX tutorial about how to use `` and ''. - Knuth only thought of English quotation marks when implementing the ugly trick. There is no simple way for opening quotation marks („) for Slovenian/German and most probably for quite some other languages as well. So ``'' notation is useless for a big fraction of users anyway. (The only alternative is probably \glqq friends. You can use a similar one in ConTeXt as well, but I tend to forget exact names.) - On Slovenian keyboard it's pretty complicated to type `. Let's take Mac (but it's equally complicated on Windows). One needs to press Alt++space. This means 2x3=6 strokes to get the character “ typeset. The character “ itself only takes a single stroke on Mac/Slo. On Mac/US Int. it's just Alt+[ (2 keystrokes) to get it, so not that bad either. - When using \quotation{} it's easy to change the mind about what quotation marks to use (Slovenian/German use two different sets) and the proper layout will be used based on the language being used (comes handy when mixing languages inside the document). Which is great - no need to think which one to use. - The deciding moment when some of these ugly tricks have been thrown away was when we realized that if you do add those tricks, there is no way to print the grave accent. (Grave accent will be automatically converted to the same comma that you get in quotation marks.) In good old TeX the grave accent (`) and the character that you get when you type ` are at two different slots. In Unicode-encoded fonts that's not doable. This means that if one wants to enable the `` trick then there's no way to allow composite characters with grave accent or the character ` in typewriter font. In most cases that is not a problem since Unicode fonts usually support a wide range of characters, but I already had to use a character not present in Unicode. And that was not doable until the hack has been removed. In the good old days the ugly tricks have been there mostly in order to compensate for lack of Unicode accents on keyboards. Nowadays the limitation of encodings has (almost) gone. You can easily change the behaviour of ConTeXt by modifying font features if you insist in using ``''. OK, \quotation{} is cleaner and of course using unicode characters may be even more readable, sometimes. I have very mixed feelings, as I know how to type ... but I never can recall the keyboard gymnastics necessary to get this in unicode. That's why I always use \quotation{}. (Things are even worse on a Mac, as the standard keyboard layout is missing lots of important characters.) I have no idea which keyboard you use, but US International is pretty rich (the problem is lack of some legend on keyboard itself), on the other hand it's easy enough to make your own layout. 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] using `` '' the output is wrong.
On Tue, 19 Jan 2010, Mojca Miklavec wrote: This can be a bit disturbing for experienced TeX users. - The deciding moment when some of these ugly tricks have been thrown away was when we realized that if you do add those tricks, there is no way to print the grave accent. (Grave accent will be automatically converted to the same comma that you get in quotation marks.) This is really important when your are trying to typeset source code. Simple things like a = 'string' b = `some system command` gets printed as a = ‛string‛ b = ‘some system command‘ Depending on which font you are using, this change can be very confusing. 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] using `` '' the output is wrong.
On Tuesday 19 January 2010 20:31:22 Mojca Miklavec wrote: Let me be a bit more nationalistic and exaggerate a bit for a moment (just in order to explain why I find the idea of using `` a bad one; do not take the text below too seriously or personally): I think that the easiest would be for everyone to use English :) That's my bit for Imperialism! As I write in a mixture of languages, I like to use \quotation{}. But long-time TeX users have habits that die hard, and just as we expect fl to yield fl, we also learn many bad tricks such as ``'' and ... - The deciding moment when some of these ugly tricks have been thrown away was when we realized that if you do add those tricks, there is no way to print the grave accent. How about {\`} (untested) You probably are right to favor \quotation{}, \dots, etc. and to go unicode. But is it really necessary and a good idea to break with TeX culture? I guess so. What about $ $ (and $$ $$)? How about % (\%)? Not to mention I have no idea which keyboard you use, but US International is pretty rich (the problem is lack of some legend on keyboard itself), on the other hand it's easy enough to make your own layout. My own computers are US International. However, I often use other computers having different layouts, many of which I cannot change. The worst I find are the Macs with French keyboards, as when I use them, I always have to remember how to find \ and {} The bottom line is that we need to document these differences towards the very beginning of the manual, where ConTeXt is identified as a form of TeX. 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] Questions regarding simplefonts
Am 19.01.10 18:56, schrieb Nicolas Girard: Hi again, although simplefonts seems very promising and I put the highest hopes on it, the lack of proper documentation simply prevents me to use it, which is somewhat frustrating. I try to provide a proper documentation when I release the next version of my module. Here are some of my unanswered questions about simplefonts ; I'm willing to update the wiki with any informations this thread could bring. 1) How can I specify that the default font features should enable the standard ligatures (liga) ? I blindly tried several possibilities like \setupsimplefonts[features={liga}] but none worked Ligatures are enabled in ConTeXt default fontfeature and simplefonts applies only the default features to the font, when you don't get them in your document this could be a font problem, in most cases it helps to select a different script. \setupsimplefonts[script=latin] or \setmainfont[...][script=latin] 2) How can I get \sc to work with a font family whose small caps are defined as a font feature, rather than dedicated .otf files ? The caps font is loaded by default by the smallcaps fontfeature, if this did not work the problem could be the same as for the ligatures. 3) How can I get font expansion and protrusion to work using simplefonts' dedicated keywords ? There again, I spent more than 30 minutes trying every combination I could think of, unsuccessfully. I think it would be useful to have a complete example of code involving simplefonts and expansion/protrusion that people could copy paste from the wiki You can use the two keys expamsion ans protrusion, their values are the same as you have e to write in \definefontfeature. \setupsimplefonts[expansion=quality,protrusion=quality] or \setmainfont[...][expansion=quality,protrusion=quality] Examples are available on bitbucket: http://bitbucket.org/wolfs/simplefonts/src/tip/files/ 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] ConTeXt swallows text
On Tue, Jan 19, 2010 at 7:22 PM, Oliver Heins o...@sopos.org wrote: Hi, under certain circumstances, ConTeXt swallows text. This happens with both MkII and MkIV and a fairly recent minimals distribution. | ConTeXt ver: 2009.11.24 10:13 MKII fmt: 2009.11.25 int: english/english | ConTeXt ver: 2009.11.24 10:13 MKIV fmt: 2009.11.25 int: english/english Sadly, I noticed not until the booklet was already printed. (Actually, it was my customer who noticed.) :-( Best regards, olli % --- \enableregime[utf-8] \setupbodyfont[ss,10pt] \setupinterlinespace[line=2.6ex] \setuppapersize[A4][A4] \setuplayout[backspace=2cm,width=middle, offset=0mm, topspace=0cm,height=middle, location=middle, ] \setupcolors[state=start] \setuptolerance[tolerant,verytolerant] \definefloat[grafik] \setupcaption[grafik][number=no,location=bottom] \definecolumnset[ergebnisse][n=3] \definecolumnsetarea [title][left] [x=1,y=1,nx=6,ny=42,page=2,state=start] \starttext \startcolumnset[ergebnisse] \dorecurse{10}{\input tufte} \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]} \subject{Victoria Beckham pregnant again!} Barack Obama is the father! Confronted with this fact, her husband David Beckham said\,\dots (Actually, this is a very important news the world should knew about!) \dorecurse{3}{\input tufte} \stopcolumnset \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 ___ Why nx=6 and width=1.95\textwidth ? What about this ? \enableregime[utf-8] \setupbodyfont[ss,10pt] \setupinterlinespace[line=2.6ex] \setuppapersize[A4][A4] \setuplayout[backspace=2cm,width=middle, offset=0mm, topspace=0cm,height=middle, location=middle, ] \setupcolors[state=start] \setuptolerance[tolerant,verytolerant] \definefloat[grafik] \setupcaption[grafik][number=no,location=bottom] \definecolumnset[ergebnisse][n=3] \definecolumnsetarea [title][left] [x=1,y=1,nx=2,ny=42,page=2,state=start] \setupcolumnsetareatext[title][left][{\externalfigure[cow][width=1.95\textwidth]}] \starttext \startcolumnset[ergebnisse] \dorecurse{10}{\input tufte} %\placegrafik[btlr]{none}{\externalfigure[cow][width=1.95\textwidth]} \subject{foo fooo fooof oof fooo} \dorecurse{5}{\input tufte} \stopcolumnset \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] using `` '' the output is wrong.
Am 19.01.10 21:10, schrieb Alan BRASLAU: You probably are right to favor \quotation{}, \dots, etc. and to go unicode. But is it really necessary and a good idea to break with TeX culture? I guess so. What about $ $ (and $$ $$)? How about % (\%)? Not to mention $ and are no problem because you can write inline math with \formula{...} and ConTeXt’s tables don't use % is problmeatic because you need a character to start a comment and there is AFAIK no way to get the same result from % with a macro 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] using `` '' the output is wrong.
On Tue, 19 Jan 2010, Wolfgang Schuster wrote: Am 19.01.10 21:10, schrieb Alan BRASLAU: You probably are right to favor \quotation{}, \dots, etc. and to go unicode. But is it really necessary and a good idea to break with TeX culture? I guess so. What about $ $ (and $$ $$)? How about % (\%)? Not to mention $ and are no problem because you can write inline math with \formula{...} and ConTeXt’s tables don't use I will probably also set # catcode to be letter in ctxcatcodetable. % is problmeatic because you need a character to start a comment and there is AFAIK no way to get the same result from % with a macro \comment{something} or \startcomment ... \stopcomment 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] using `` '' the output is wrong.
On Tue, 19 Jan 2010, Alan BRASLAU wrote: On Tuesday 19 January 2010 20:31:22 Mojca Miklavec wrote: Let me be a bit more nationalistic and exaggerate a bit for a moment (just in order to explain why I find the idea of using `` a bad one; do not take the text below too seriously or personally): I think that the easiest would be for everyone to use English :) That's my bit for Imperialism! As I write in a mixture of languages, I like to use \quotation{}. But long-time TeX users have habits that die hard, and just as we expect fl to yield fl, we also learn many bad tricks such as ``'' and ... - The deciding moment when some of these ugly tricks have been thrown away was when we realized that if you do add those tricks, there is no way to print the grave accent. How about {\`} (untested) No. It is not easy. See http://archive.contextgarden.net/thread/20060912.165653.90ce7552.en.html In particular, see Taco's reply. 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] using `` '' the output is wrong.
Am 19.01.10 21:26, schrieb Aditya Mahajan: % is problmeatic because you need a character to start a comment and there is AFAIK no way to get the same result from % with a macro \comment{something} or \startcomment ... \stopcomment what about \starttext text Auf% lage text \stoptext or \def\foo#1#2% {...} 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] using `` '' the output is wrong.
On Tue, 19 Jan 2010, Wolfgang Schuster wrote: Am 19.01.10 21:26, schrieb Aditya Mahajan: % is problmeatic because you need a character to start a comment and there is AFAIK no way to get the same result from % with a macro \comment{something} or \startcomment ... \stopcomment what about \starttext text Auf% lage text \stoptext \starttext text Auf\relax lage text \stoptext or \unprotect \def\foo#1#2% {...} \protect (with appropriate changes in the catcode tables) For (simple) user macros we already have \define[2]\foo { ... } 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] using `` '' the output is wrong.
On 19-1-2010 21:10, Alan BRASLAU wrote: and just as we expect fl to yield fl, we also learn many bad tricks more precisely: as tex turns fl into fl without distinction between languages we have come to expect that to be the case such as ``'' and ... i must admit that i've never used those doubles ... \quotation cum suis are the oldest context commands 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] using `` '' the output is wrong.
On Tue, Jan 19, 2010 at 21:10, Alan BRASLAU wrote: I think that the easiest would be for everyone to use English :) That's my bit for Imperialism! But then there would be plenty of historians trying to reproduce the old languages, just as Idris does. So nothing would be gained :) :) :) As I write in a mixture of languages, I like to use \quotation{}. But long-time TeX users have habits that die hard, (Let them continue use TeX then :) :) :) But seriously - there are lots of other incompatibilities. and just as we expect fl to yield fl, we also learn many bad tricks such as ``'' and ... No, you won't get that ligature if your font doesn't support it and most people do not notice that ligatures exist at all (including me, even after using LaTeX for several years). Yes - it is a trick on the same level, but that trick needs to be implemented in font. ConTeXt will never try to replace that with a ligature if your font won't ask for that (and there's a way to turn ligatures off completely in mkiv/xetex). You can also easily create a font that will do the replacement of backtick with single quotation mark for you. The main difference is that 99.9% fonts in the wild don't have that replacement built in, while most high-quality fonts do have some ligatures. The replacement of ` or ' would usually be done by editors (Word), but there is no standard editor for TeX to do that. - The deciding moment when some of these ugly tricks have been thrown away was when we realized that if you do add those tricks, there is no way to print the grave accent. How about {\`} (untested) Apart from the fact that this is a command used for a completely different purpose, it wouldn't help. The problem is that transformation is being done on glyph at position 0x60 in font itself. The only option would be to copy the glyph 0x60 to Private Unicode Area and then assign \textgrave to point to that obscure slot. But that's more than ugly. (See also Aditya's answer about apostrophe.) You probably are right to favor \quotation{}, \dots, etc. and to go unicode. But is it really necessary and a good idea to break with TeX culture? I guess so. What about $ $ (and $$ $$)? How about % (\%)? Not to mention This is a completely different question. (I do miss $$...$$ to be honest.) These are active characters. You may do \catcode\`=\letter (untested syntax) or maybe some \nonknuthmode command and you'll get the characted . Same is true for % (but yes - you need to forget about comments then). The meaning of those characters is changed on the editor level, so it's extremely easy to change the behaviour. The hack with `` is on font level. And that's when it's gets really ugly. There is *no* way to get the original character back without changing the font itself. Two exceptions have been left on font level. That is two (harmless) ligatures: -- (endash), --- (emdash) and replacement with apostrophe as in I'm. The last one is still very very ugly, but I think it's mission impossible to convince anyone to change the habit of using the proper apostrophe instead of '. I have no idea which keyboard you use, but US International is pretty rich (the problem is lack of some legend on keyboard itself), on the other hand it's easy enough to make your own layout. My own computers are US International. However, I often use other computers having different layouts, many of which I cannot change. The worst I find are the Macs with French keyboards, Let's be honest ... any French keyboard ... :) as when I use them, I always have to remember how to find \ and {} I admit that I neither remember where to find the letter A on French keyboard nor the same characters on Slovenian keyboard ... But wait! So you are complaining that you don't find quotation marks when already \ and {} cause you problems? The bottom line is that we need to document these differences towards the very beginning of the manual, where ConTeXt is identified as a form of TeX. I agree with that ... but there's a general problem with (unmaintaned) documentation in 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt swallows text
Hi Luigi, luigi scarso luigi.sca...@gmail.com writes: Why nx=6 Because of the layout of the booklet. The area should fit over two pages (= 6 columns). and width=1.95\textwidth ? I played around with the width to see if the problem still happens. For some reason, I stuck with 1.95\textwidth. In my original setup, I had lines=19 :-) What about this ? That's a completely different layout. You can find the relevant pages of the booklet at http://sopos.org/olli/armut-fail.pdf Regards, olli -- Oliver Heins he...@sopos.orghttp://oliverheins.net/ http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8 http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ 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] using `` '' the output is wrong.
On Tue, Jan 19 2010, Alan BRASLAU wrote: My own computers are US International. However, I often use other computers having different layouts, many of which I cannot change. The worst I find are the Macs with French keyboards, as when I use them, I always have to remember how to find \ and {} Perhaps you could put your dot-files (especially .xmodmap) on a public server, and whenever you change the computer, you copy your personal keyboard layout. I'm doing that with subversion. svn co ... and I feel at home :) 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] ConTeXt swallows text
On Tue, Jan 19, 2010 at 10:05 PM, Oliver Heins o...@sopos.org wrote: Hi Luigi, luigi scarso luigi.sca...@gmail.com writes: Why nx=6 Because of the layout of the booklet. The area should fit over two pages (= 6 columns). ok You can find the relevant pages of the booklet at http://sopos.org/olli/armut-fail.pdf If I understand well, you want an automatic solution instead of a manual solution like this one \defineoverlay [foregraphics] [{\externalfigure[cow][width=5.8\textwidth,lines=41]}] \defineoverlay [backgraphics] [{\externalfigure[mill][width=2\textwidth,lines=20]}] \definecolumnset[ergebnisse][n=3] \definecolumnsetarea [title][left] [x=1,y=1,nx=6,ny=42,page=2,state=start,background={backgraphics,foreground,foregraphics}] \setupcolumnsetareatext[title][left][{% \ruledhbox to \dimexpr 6\textwidth+2\backspace+1cm\relax{\raggedright \ruledvbox to 41\lineheight{\hsize=1.6\textwidth {\bfd 1} \dorecurse{3}{ \input knuth }} \hskip0.5em \ruledvbox to 41\lineheight{\hsize=1.6\textwidth {\bfd 2} \dorecurse{3}{ \input knuth }} \hskip\backspace \ruledvbox to 41\lineheight{\hsize=1.6\textwidth {\bfd 3} \dorecurse{3}{ \input knuth }} \hskip0.5em \ruledvbox to 41\lineheight{\hsize=1.6\textwidth {\bfd 4} \dorecurse{3}{ \input knuth }} } }] -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] using `` '' the output is wrong.
Mojca Miklavec wrote: The worst I find are the Macs with French keyboards, Let's be honest ... any French keyboard ... :) Don't forget macbook keyboards with dvorak mapping ;) I agree with that ... but there's a general problem with (unmaintaned) documentation in ConTeXt. There is the mkiv differences page in the wiki, but already the context manual is quite clear on using \quotation and \quote. The problem is that all the latex and plain tex books promote the use of `` and '' and people that already use TeX are unlikely to change their habits (and most will not read the context manual as thoroughly as they 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] using `` '' the output is wrong.
On Wednesday 20 January 2010 08:04:43 Taco Hoekwater wrote: The problem is that all the latex and plain tex books promote the use of `` and '' and people that already use TeX are unlikely to change their habits (and most will not read the context manual as thoroughly as they should). This is my concern. Whereas I do prefer \quotation{} being functionally logical, after all the spirit of TeX, I also like unicode generalizations (such as ± for \pm). Nevertheless, hard core TeX users as well as converts from LaTeX *expect* ``'', --, ---, ..., etc. to work in ConTeXt. I assume that the present discussion is useful and not simply controversial. I ignore the mechanisms behind the different implementations (macro, fonts, catcar, ...) and the problems that arise. Concerning typesetting source code, I would suggest something as simple as suspending ALL such tricks within \text{} and \starttyping\stoptyping (perhaps parametrized). One could also define something like \shellescape{}, analogous to \quotation{}, to typeset `echo hello world` and even \string{} to typeset string or 'string', according to the programming language initialized. What I also find disturbing is that *some* of these conventions are retained, but not all. 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] using `` '' the output is wrong.
On Wed, Jan 20 2010, Alan BRASLAU wrote: What I also find disturbing is that *some* of these conventions are retained, but not all. Since most people use fixed width fonts in their editors, it is difficult to distinguish between – (en-dash), — (em-dash) and - (hyphen-minus). So -- and --- are quite useful. 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] Questions regarding simplefonts
Hello all, I add my questions regarding simplefonts to this thread too. How to enable em dash and en dash? It looks like I need to set tlig to yes, but with heading pasted below, the --- is not interpreted as em dash. \usemodule[simplefonts] \setmainfont[Times New Roman][script=latin, texligatures=yes] \setsansfont[Arial Unicode MS] \setmonofont[Courier New] \setupbodyfont[10pt] \setuppapersize[C5][C5] \setupindenting[yes, medium, next] \starttext text---text \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 ___