Re: [NTG-context] Accents messed up
That did it... thanks... But it is strange, because I had a similar set up with Spanish and it worked... in any case, thanks On 18 March 2011 04:09, Peter Münster pmli...@free.fr wrote: Pau vim.u...@googlemail.com writes: %\enableregime[utf-8] Uncomment this line. \enableregime[latin1] Remove this line. my terminal encoding is set to UTF-8. Good. -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] cals tables - UNSOLVED
Dear Aditya, thanks greatly for your advice! It works! I now can influence how my tables look like. Do you think it is possible to typeset an xml file that contains cals:table, or do I need to typeset the tables separately and then import the separate pdf files? Thanks again, Robert Op 18 mrt 2011, om 05:08 heeft Aditya Mahajan het volgende geschreven: On Thu, 17 Mar 2011, R. Ermers wrote: Dear All, I am still trying to typeset cals tables. I have 1. an environment document with instructions. 2. an xml docbook file containing cals tables Note that the original cals tables (docbook standard) use table, tgroup, etc. but for ConTeXt purposes this - as far as I understand - needs to be: cals:table, cals:tgroup, etc. (My xml reader does not recognize them anymore.) There is a bug in lxml-dir.lua. Open lxml-dir.lua and change local collection = xml.applylpath({ getid(xml.load(filename)) },directive) -- is { } needed ? to local collection = xml.applylpath(getid(xml.load(filename)),directive) -- AM: removed { } [@Hans: I do not checked if this affects other uses of directives.load(...).] Then run c --make to regenerate formats. After that create three files: %% directives.xml ?xml version=1.0 standalone=yes? directives directive attribute=cdx value=color element=cals:table setup=cdx:cals:table:colors/ /directives %% table.xml ?xml version=1.0 standalone=yes? cals:table cdx=color cals:tgroup cols=3 cals:thead cals:row cals:entryalpha/cals:entry cals:entrybeta/cals:entry cals:entrygamma/cals:entry /cals:row /cals:thead cals:tbody cals:row cals:entryone/cals:entry cals:entrytwo/cals:entry cals:entrythree/cals:entry /cals:row cals:row cals:entryfour/cals:entry cals:entryfive/cals:entry cals:entrysix/cals:entry /cals:row /cals:tbody /cals:tgroup /cals:table %% test.tex \usemodule[cals] \startsetups cdx:cals:table:colors \setupTABLE[each][each][background=color,backgroundcolor=red] \stopsetups \starttext \xmlloaddirectives{directives.xml} \xmlprocess{xml:cals:process}{table.xml}{} \stoptext Then compile test.tex to get a table with a red background. 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 ___ ___ 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] Is it possible to generate only a table of contents
Is it possible to generate only a TOC? (\completecontent) When creating a document I like to have the 'stakeholders' to have an indication of what is going on. For this a TOC is enough. I could create the document and cut out the TOC, but it would be simpler if that could be auto generated. -- Cecil Westerhof ___ 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] Is it possible to generate only a table of contents
Am 18.03.2011 um 09:32 schrieb Cecil Westerhof: Is it possible to generate only a TOC? (\completecontent) When creating a document I like to have the 'stakeholders' to have an indication of what is going on. For this a TOC is enough. I could create the document and cut out the TOC, but it would be simpler if that could be auto generated. In MkII this was possible by accessing the TUO file (which contains the TOC entry information) directly and independently . When typesetting a document MyFile.tex there is an accompanied TUO file generated MyFile.tuo. Just copy this file and re-name to eg. MyFileX.tuo Then you can run \placelist[chapter, section,...][file=MyFile] from any document that contain these line: \unprotect \def\FrozenTUO{../MyFileX} \def\doplacerawlist[#1][#2]% {\begingroup \dogetcommalistelement1\from#1\to\firstlistelement \dosetuplist[#1][#2]% \doifvalue{\??li\firstlistelement\c!coupling}\v!on {\startlistreferences{#1}}% \dosettoclevel\??li\firstlistelement \honorlocalfilterlevel \doutilities{listentries,#1}\FrozenTUO{#1}\relax\par \stoplistreferences{#1}% \dosetlistmode \endgroup} \protect In MkIV this is not possible up to now due to the completely different structure of TOU and TUC files (see Hans below) ... unfortunately. Steffen Am 23.02.2010 um 23:27 schrieb Hans Hagen: On 23-2-2010 21:18, Steffen Wolfrum wrote: \def\FrozenTUO{MyFile} thus each \placelist run would read from that paticular MyFile.tuo The quoted code above was written by Hans to provide a way to implement a kind of \placelist[chapter, section,...][file=MyFile] in MkII. the file= option will not come back, at least not soon, as we now have a completely different way of dealing with tables of contents (and actually all multipass data) ___ 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] Is it possible to generate only a table of contents
Cecil Westerhof cldwester...@gmail.com writes: Is it possible to generate only a TOC? (\completecontent) When creating a document I like to have the 'stakeholders' to have an indication of what is going on. For this a TOC is enough. I could create the document and cut out the TOC, but it would be simpler if that could be auto generated. Perhaps a starting point: \startbuffer[mydocument] \completecontent \dorecurse{50}{\expanded{\chapter{Chapter \recurselevel}}} \stopbuffer \setuplayout[page] \starttext % Here, you must know the number of pages of the toc. % Certaninly, this can be done much better! \dorecurse{3}{\typesetbuffer[mydocument][page=\recurselevel]} \stoptext -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 620 pages limit?
On 17-3-2011 7:28, Vnpenguin wrote: On Wed, Mar 16, 2011 at 17:54, Hans Hagenpra...@wxs.nl wrote: On 14-3-2011 10:35, Wolfgang Schuster wrote: Am 14.03.2011 um 18:02 schrieb luigi scarso: \starttext \dorecurse{5000} {\input knuth \page } \stoptext A little bit faster but with the same error message: \count0=0 \loop\ifnum\count05000 \advance\count0 by 1 \shipout\vbox{} \repeat \end \starttext \dorecurse{1} {test: \recurselevel\page} \stoptext pdftex + mkii : 35 sec xetex + mkii : 35 sec luatex + mkiv : 40 sec no crashes. No sense when you say no crashes without show us the version of your luatex (I don't care pdftex/xetex). 0.66 rev 4073 (already out for a while) - 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] pageshifting
Am 17.03.2011 um 16:24 schrieb Willi Egger: Hi, it looks as of there is a bug in page-imp in MKIV. The problem does not show up in MKII. When using vertical and or horizontal pageshift lists while arranging an error occurs: page-imp.mkiv (missing \fi’s at the end of \ifcsname): \def\dosetuppageshift[#1][#2][#3]% page|paper horizontal vertical {\ifthirdargument % paper=arrange - \edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname}% + \edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname\fi}% -\edef\vpageshifts{\ifcsname\??pt\v!vertical :#3\endcsname\csname\??pt\v!vertical :#3\endcsname}% +\edef\vpageshifts{\ifcsname\??pt\v!vertical :#3\endcsname\csname\??pt\v!vertical :#3\endcsname\fi}% \doifelse{#1}\v!page {\let\shiftprintpagebox\shiftpagebox}{\let\shiftprintpagebox\gobbleoneargument}% \doifelse{#1}\v!paper{\let\shiftpaperpagebox\shiftpagebox}{\let\shiftpaperpagebox\gobbleoneargument}% \else\ifsecondargument \doifinsetelse{#1}{\v!page,\v!paper} {\setuppageshift[#1][#2][#2]} {\setuppageshift[\v!page][#1][#2]}% \else\iffirstargument \setuppageshift[\v!page][#1][#1]% \fi\fi\fi} 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] Difference between MKII, XeTeX and MKIV
On 18-3-2011 3:54, mathew wrote: On Mar 14, 2011, at 16:49, Marco wrote: I totally agree. But Cecil mentioned in another thread: »My document is mostly text.« Even if a few mp graphics are involved luatex is still noticeably slower. I look at it from the perspective that the last time I used TeX, my 8MHz Atari ST took several seconds to process each page. And then it took several seconds per page for the previewer to show me the DVI. And I couldn't do anything else on the machine while it was working. My way of working now is that I keep a short scratchpad document in TeXworks, and use it to sort out my formatting and macros, taking advantage of the live preview. When I'm done, I copy the definitions into my actual working document, which I edit in vim. I only typeset the entire working document once or twice an hour, if that; vim catches syntax errors. So if LuaTex takes a few seconds longer to do the typesetting, it's completely unimportant. it's no problem to get a 250 pages per second throughput in mkiv but as soon as you add more interesting things to a page work needs to be done and that takes runtime on the average i get some 10-15 pages per second for documents of normal complexity on my (by now) 5 year old laptop that i use for development which is quite ok (mk.pdf: 10 pps, hybrid.pdf: 11 pps, cld-mkiv: 15 pps) 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] (RSFS) font installation
On 18-3-2011 4:27, Khaled Hosny wrote: But it might not be a bad idea for LuaTeX to automatically perform a pfm2afm conversion and cache the converted files when necessary, and probably not that hard to code. On the other hand, Type 1 fonts are legacy at this point, so it might not be worth it. LuaTeX can load afm files thanks to the embedded, fontforge derived, font loader, but AFAIK it does not handle pfm files at all. Hans considers type1 fonts obsolete (and I agree with him :)) and he is unlikely to put much effort into supporting them. Indeed. I kicked out the last encoding related code a while ago. Also, I only consider a type 1 font okay when it has both an afm and a pfb file and mkiv can handle that quite well (even beyond the regular tex encodings). Personally I need it for fonts that I have bought and don't want to buy again. 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] Fwd: The creation of a new Arabic typeface (funded by Google)
From TeX-D-L: Google sponsors development of a screen-optimized Arabic font. Graham Douglas weist in seinem Blog darauf hin, daß Google derzeit die Entwicklung eines arabischen Fonts finanziert, der besonders für die Darstellung auf Bildschirmen optimiert worden ist. Die Entwicklung des Fonts wird im Blog fortlaufend dokumentiert. http://www.readytext.co.uk/?p=924 http://shashafont.com/ Idris et al., perhaps you can teach them to include the proper OpenType magic? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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: The creation of a new Arabic typeface (funded by Google)
Idris et al., perhaps you can teach them to include the proper OpenType magic? I really wonder how relevant advanced typography would be in that case, where it relates to on-screen display. It seems to be more about hinting and similar issues. Arthur ___ 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: The creation of a new Arabic typeface (funded by Google)
On Fri, Mar 18, 2011 at 11:37:40AM +0100, Henning Hraban Ramm wrote: From TeX-D-L: Google sponsors development of a screen-optimized Arabic font. Graham Douglas weist in seinem Blog darauf hin, daß Google derzeit die Entwicklung eines arabischen Fonts finanziert, der besonders für die Darstellung auf Bildschirmen optimiert worden ist. Die Entwicklung des Fonts wird im Blog fortlaufend dokumentiert. http://www.readytext.co.uk/?p=924 http://shashafont.com/ Idris et al., perhaps you can teach them to include the proper OpenType magic? They are, more or less, friends of mine, though I'm not sure I'll be around when the reach OpenType development stage, but I don't think the design they are after will require much of tricky OpenType hacks. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ 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] Is it possible to generate only a table of contents
On Fri, Mar 18, 2011 at 10:35 AM, Peter Münster pmli...@free.fr wrote: Cecil Westerhof cldwester...@gmail.com writes: Is it possible to generate only a TOC? (\completecontent) When creating a document I like to have the 'stakeholders' to have an indication of what is going on. For this a TOC is enough. I could create the document and cut out the TOC, but it would be simpler if that could be auto generated. Perhaps a starting point: \startbuffer[mydocument] \completecontent \dorecurse{50}{\expanded{\chapter{Chapter \recurselevel}}} \stopbuffer \setuplayout[page] \starttext % Here, you must know the number of pages of the toc. % Certaninly, this can be done much better! \dorecurse{3}{\typesetbuffer[mydocument][page=\recurselevel]} \stoptext there is a \discardpage OTR macro, I've never used it. -- 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] (RSFS) font installation
On 18.03.2011 03:42, mathew wrote: On Mar 17, 2011, at 11:53, Stefan Müller wrote: Yes, I thought so. I just asked, because I couldn't find an environment variable with that name. Even after setuptex.bat typing echo %OSFONTDIR% did only print %OSFONTDIR% and not a list of paths, as I expected. There are defaults baked into the binaries. If you don't set the environment variable, you get the built-in defaults. That's generally how things work on Unix. Alright, that would explain it. On Mar 17, 2011, at 11:53, Stefan Müller wrote: (2A) Put .afm files to C:\Windows\Fonts (2B) Put the complete rsfs (containing the .afm and all the other stuff) directory to texmf-fonts\fonts Right... From the point of view of ConTeXt/LuaTeX use, there's no need for the fonts to be installed in Windows; you just need to have all the files somewhere that OSFONTDIR (or the default font paths) will point. The font outlines will be embedded into the PDF by default, so the OS doesn't need to have access to them. The point I was trying to make here was that on my system I _needed_ to install the fonts in Windows first. Otherwise mtxrun wouldn't find them, no matter where the afm files were. This is maybe because of the directory structure, but I have no idea, especially as somewhere it was stated that I should just put the directory there. I have the following: texmf-fonts \ fonts \ rsfs \ *.mf texmf-fonts \ fonts \ rsfs \ type1 \ *.pfb texmf-fonts \ fonts \ rsfs \ type1 \ afm \ *.afm texmf-fonts \ fonts \ rsfs \ type1 \ map \ *.map texmf-fonts \ fonts \ rsfs \ type1 \ pfm \ *.pfm mtxrun finds the pfb (pfm) in C:\Windows\Fonts and the afm files here. But it doesn't look for the pfb (pfm) in texmf-fonts... Is this because of the legacy issue? It's pretty inconvenient. - In both versions, step (1) seems to be mandatory. I would expect, that the rsfs directory in texmf-fonts\fonts should be enough, as mtxrun clearly searches there and all the files are there, too. I don't understand the problem here. Hmm, that *would* explain my problem with getting GhostScript's Type 1 fonts working... I must investigate further! - If the .pfm and .pfb files are sufficient for Windows, why does mtxrun specifically search for .afm files and not also for .pfm? Probably because mtxrun (and the rest of ConTeXt and LuaTeX) are written for Unix and ported to Windows, and Unix uses .afm files for metrics. (Except OS X, which is different for historical reasons.) That and .afm files are much easier to work with because they're text files. But it might not be a bad idea for LuaTeX to automatically perform a pfm2afm conversion and cache the converted files when necessary, and probably not that hard to code. On the other hand, Type 1 fonts are legacy at this point, so it might not be worth it. mathew I'll keep in mind that the type1 fonts are obsolete. I just thought it would be a nice idea to try getting some font with the rsfs first, as there were full examples (which do not work here for some reason) on the mailing list. Thanks for the help, Stefan. ___ 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] (RSFS) font installation
On 18-3-2011 12:26, Stefan Müller wrote: I have the following: texmf-fonts \ fonts \ rsfs \ *.mf texmf-fonts \ fonts \ rsfs \ type1 \ *.pfb texmf-fonts \ fonts \ rsfs \ type1 \ afm \ *.afm texmf-fonts \ fonts \ rsfs \ type1 \ map \ *.map texmf-fonts \ fonts \ rsfs \ type1 \ pfm \ *.pfm just put the pfb and afm files (forget about map files) texmf-fonts/fonts/data/rsfs and run mtxrun --generate afterwards 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] (RSFS) font installation
On Fri, Mar 18, 2011 at 05:04, Hans Hagen pra...@wxs.nl wrote: Also, I only consider a type 1 font okay when it has both an afm and a pfb file and mkiv can handle that quite well (even beyond the regular tex encodings). Personally I need it for fonts that I have bought and don't want to buy again. Same here, but I found it easier to convert my fonts to OpenType by loading them into fontforge and doing Save As... I still have a mystery regarding the type 1 fonts installed with GhostScript, though: \definetypeface [dingbats][ss][sans][dingbats][default] \starttext {\dingbats \uchar{39}{7}\uchar{39}{13}\uchar{39}{42}} \stoptext produces no visible output, yet... $ mtxrun --script fonts --list --all --pattern=dingbat* dingbats dingbats /usr/share/fonts/type1/gsfonts/d05l.afm dingbatsnormal dingbats /usr/share/fonts/type1/gsfonts/d05l.afm $ ls /usr/share/fonts/type1/gsfonts/d05l* /usr/share/fonts/type1/gsfonts/d05l.afm /usr/share/fonts/type1/gsfonts/d05l.pfb /usr/share/fonts/type1/gsfonts/d05l.pfm $ This is with minimals and LuaTeX on Ubuntu. Get info on the PDF in Okular shows no Type 1 fonts embedded. (Also, is uchar intended to be a documented feature?) mathew ___ 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] (RSFS) font installation
Indeed, that works! Thank you very much. So again, structure matters. Kind regards, Stefan. On 18.03.2011 12:39, Hans Hagen wrote: On 18-3-2011 12:26, Stefan Müller wrote: I have the following: texmf-fonts \ fonts \ rsfs \ *.mf texmf-fonts \ fonts \ rsfs \ type1 \ *.pfb texmf-fonts \ fonts \ rsfs \ type1 \ afm \ *.afm texmf-fonts \ fonts \ rsfs \ type1 \ map \ *.map texmf-fonts \ fonts \ rsfs \ type1 \ pfm \ *.pfm just put the pfb and afm files (forget about map files) texmf-fonts/fonts/data/rsfs and run mtxrun --generate afterwards Hans ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] VirtualWin
VirtuaWin is a virtual desktop manager for the Windows operating system (Win9x/ME/NT/Win2K/XP/Win2003/Vista/Win7). A virtual desktop manager lets you organize applications over several virtual desktops (also called 'workspaces'). Virtual desktops are very common in Unix/Linux, and once you get accustomed to using them, they become an essential part of a productive workflow. http://virtuawin.sourceforge.net/ -- 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] (RSFS) font installation
On 18-3-2011 3:40, mathew wrote: On Fri, Mar 18, 2011 at 05:04, Hans Hagenpra...@wxs.nl wrote: Also, I only consider a type 1 font okay when it has both an afm and a pfb file and mkiv can handle that quite well (even beyond the regular tex encodings). Personally I need it for fonts that I have bought and don't want to buy again. Same here, but I found it easier to convert my fonts to OpenType by loading them into fontforge and doing Save As... I still have a mystery regarding the type 1 fonts installed with GhostScript, though: \definetypeface [dingbats][ss][sans][dingbats][default] this assumes a dingbats typescript \starttext {\dingbats \uchar{39}{7}\uchar{39}{13}\uchar{39}{42}} \stoptext {\getnamedglyphdirect{dingbats}{0x39}} - 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] pageshifting
Hello Wolfgang, that is what I thought. Thanks! Still when I run first-setup.sh --context=beta I receive the version of 2011-02-25. with Luatex beta-0.65.0-2010121316 ?? - I heard though that Luatex .66 is available but why not in the minimals? Willi On 18 Mar 2011, at 11:00, Wolfgang Schuster wrote: Am 17.03.2011 um 16:24 schrieb Willi Egger: Hi, it looks as of there is a bug in page-imp in MKIV. The problem does not show up in MKII. When using vertical and or horizontal pageshift lists while arranging an error occurs: page-imp.mkiv (missing \fi’s at the end of \ifcsname): \def\dosetuppageshift[#1][#2][#3]% page|paper horizontal vertical {\ifthirdargument % paper=arrange - \edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname}% + \edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname\fi}% -\edef\vpageshifts{\ifcsname\??pt\v!vertical :#3\endcsname\csname\??pt\v!vertical :#3\endcsname}% +\edef\vpageshifts{\ifcsname\??pt\v!vertical :#3\endcsname\csname\??pt\v!vertical :#3\endcsname\fi}% \doifelse{#1}\v!page {\let\shiftprintpagebox\shiftpagebox}{\let\shiftprintpagebox\gobbleoneargument}% \doifelse{#1}\v!paper{\let\shiftpaperpagebox\shiftpagebox}{\let\shiftpaperpagebox\gobbleoneargument}% \else\ifsecondargument \doifinsetelse{#1}{\v!page,\v!paper} {\setuppageshift[#1][#2][#2]} {\setuppageshift[\v!page][#1][#2]}% \else\iffirstargument \setuppageshift[\v!page][#1][#1]% \fi\fi\fi} 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] [OT] VirtualWin
On Friday 18 March 2011 15:50:10 luigi scarso wrote: VirtuaWin is a virtual desktop manager for the Windows operating system (Win9x/ME/NT/Win2K/XP/Win2003/Vista/Win7). A virtual desktop manager lets you organize applications over several virtual desktops (also called 'workspaces'). Virtual desktops are very common in Unix/Linux, and once you get accustomed to using them, they become an essential part of a productive workflow. http://virtuawin.sourceforge.net/ GPL! Thank you, Luigi. Alan PS: pretty soon our Windows® friends will get a real window manager, and why not a real kernel while we are at it... But then, I ask, life would be so boring without viruses, worms, and rebooting! ___ 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] (RSFS) font installation
On Fri, Mar 18, 2011 at 09:51, Hans Hagen pra...@wxs.nl wrote: On 18-3-2011 3:40, mathew wrote: \definetypeface [dingbats][ss][sans][dingbats][default] this assumes a dingbats typescript Sorry, I omitted that when copying my code... \starttext {\dingbats \uchar{39}{7}\uchar{39}{13}\uchar{39}{42}} \stoptext {\getnamedglyphdirect{dingbats}{0x39}} \starttypescript [sans][dingbats][name] \definefontsynonym [Sans][name:dingbats] \stoptypescript \definetypeface [dingbats][ss][sans][dingbats][default] \starttext {\getnamedglyphdirect{dingbats}{0x272a}} Or here's the character directly: ✪ \stoptext ...still not working. But KCharSelect says that the Dingbats font has a glyph at 0x272a. fontsfallback modern rm 12pt is loaded system begin file makeup.tex at line 5 fontsdefining font with asked name 'dingbats' is not found using lookup 'file' fontsdefining unknown font dingbats, loading aborted fontsdefining unable to define dingbats as \**currentsymbolfont** backend xmp using file '/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' And yet if I run mtxrun --script fonts --list --all --pattern=* | grep dingbats immediately after that ConTeXt run, in the same shell session, I see: dingbats dingbats /usr/share/fonts/type1/gsfonts/d05l.afm dingbatsnormal dingbats /usr/share/fonts/type1/gsfonts/d05l.afm Also doesn't work if I reference the afm file directly using \definefontsynonym [sans][/usr/share/fonts/type1/gsfonts/d05l.afm] mathew ___ 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] (RSFS) font installation
On 18-3-2011 5:01, mathew wrote: On Fri, Mar 18, 2011 at 09:51, Hans Hagenpra...@wxs.nl wrote: On 18-3-2011 3:40, mathew wrote: \definetypeface [dingbats][ss][sans][dingbats][default] this assumes a dingbats typescript Sorry, I omitted that when copying my code... \starttext {\dingbats \uchar{39}{7}\uchar{39}{13}\uchar{39}{42}} \stoptext {\getnamedglyphdirect{dingbats}{0x39}} \starttypescript [sans][dingbats][name] \definefontsynonym [Sans][name:dingbats] \stoptypescript \definetypeface [dingbats][ss][sans][dingbats][default] \starttext {\getnamedglyphdirect{dingbats}{0x272a}} Or here's the character directly: ✪ \stoptext ...still not working. But KCharSelect says that the Dingbats font has a glyph at 0x272a. fonts fallback modern rm 12pt is loaded system begin file makeup.tex at line 5 fonts defining font with asked name 'dingbats' is not found using lookup 'file' fonts defining unknown font dingbats, loading aborted fonts defining unable to define dingbats as \**currentsymbolfont** backend xmp using file '/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' And yet if I run mtxrun --script fonts --list --all --pattern=* | grep dingbats immediately after that ConTeXt run, in the same shell session, I see: dingbats dingbats /usr/share/fonts/type1/gsfonts/d05l.afm dingbatsnormal dingbats /usr/share/fonts/type1/gsfonts/d05l.afm Also doesn't work if I reference the afm file directly using \definefontsynonym [sans][/usr/share/fonts/type1/gsfonts/d05l.afm] try name:dingbats or file:d05l and no path - 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] PDF Version Selection
Is it possible to select the PDF version that is produced by running context file.tex? For example, running context file.tex produced file.pdf of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. smime.p7s Description: S/MIME cryptographic 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: The creation of a new Arabic typeface (funded by Google)
Am 2011-03-18 um 12:01 schrieb Arthur Reutenauer: Idris et al., perhaps you can teach them to include the proper OpenType magic? I really wonder how relevant advanced typography would be in that case, where it relates to on-screen display. It seems to be more about hinting and similar issues. I don’t care about Arabic myself, but I thought it would be nice to have another choice for a free Arabic font to use with ConTeXt. Even if it’s screen optimized, it might work well in print, too - and some of use use ConTeXt more often for presentations anyway. Am 2011-03-18 um 12:15 schrieb Khaled Hosny: They are, more or less, friends of mine, though I'm not sure I'll be around when the reach OpenType development stage, but I don't think the design they are after will require much of tricky OpenType hacks. If your kind of expertise isn’t needed, the better - I can only see that your samples look impressive, but have no clue how excellent Arabic typography *should* look... ;-) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 Version Selection
On 18-3-2011 8:51, Raymond LeClair wrote: Is it possible to select the PDF version that is produced by running context file.tex? For example, running context file.tex produced file.pdf of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. just choose the relevant pdf/x version http://wiki.contextgarden.net/PDFX - 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] PDF Version Selection
On Fri, 18 Mar 2011, Hans Hagen wrote: On 18-3-2011 8:51, Raymond LeClair wrote: Is it possible to select the PDF version that is produced by running context file.tex? For example, running context file.tex produced file.pdf of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. just choose the relevant pdf/x version http://wiki.contextgarden.net/PDFX I think that the OP just wants \pdfminorversion=5 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] PDF Version Selection
On 18-3-2011 10:05, Aditya Mahajan wrote: On Fri, 18 Mar 2011, Hans Hagen wrote: On 18-3-2011 8:51, Raymond LeClair wrote: Is it possible to select the PDF version that is produced by running context file.tex? For example, running context file.tex produced file.pdf of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV. just choose the relevant pdf/x version http://wiki.contextgarden.net/PDFX I think that the OP just wants \pdfminorversion=5 that goes along with other settings so best use a standard that matches 1.5 - 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] How to get rounded corners and a thicker line with \startframedtext
I am still dabbling with ConTeXt. There is a lot to learn, but it is worth it. ;-} At the moment I have (when finished I make a macro of it): \startframedtext[middle] \startalignment[middle] {\bf A goal properly set is halfway reached.} \stopalignment \blank[small] \startalignment[flushright] {\it Abraham Lincoln} \stopalignment \stopframedtext I want to use this to intersperse my document with citations. It is not bad, but I like to change two things: - I would like to use rounded corners - I would like to use a slightly thicker line to draw the box How could I accomplish this? -- Cecil Westerhof ___ 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] How to get rounded corners and a thicker line with \startframedtext
On Fri, 18 Mar 2011, Cecil Westerhof wrote: I am still dabbling with ConTeXt. There is a lot to learn, but it is worth it. ;-} At the moment I have (when finished I make a macro of it): \startframedtext[middle] \startalignment[middle] {\bf A goal properly set is halfway reached.} \stopalignment \blank[small] \startalignment[flushright] {\it Abraham Lincoln} \stopalignment \stopframedtext I want to use this to intersperse my document with citations. It is not bad, but I like to change two things: - I would like to use rounded corners \defineframedtext[...][corner=round] - I would like to use a slightly thicker line to draw the box \defineframedtext[][rulethickness=2bp] 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] How to get rounded corners and a thicker line with \startframedtext
On Fri, Mar 18, 2011 at 11:52 PM, Aditya Mahajan adit...@umich.edu wrote: On Fri, 18 Mar 2011, Cecil Westerhof wrote: I am still dabbling with ConTeXt. There is a lot to learn, but it is worth it. ;-} At the moment I have (when finished I make a macro of it): \startframedtext[middle] \startalignment[middle] {\bf A goal properly set is halfway reached.} \stopalignment \blank[small] \startalignment[flushright] {\it Abraham Lincoln} \stopalignment \stopframedtext I want to use this to intersperse my document with citations. It is not bad, but I like to change two things: - I would like to use rounded corners \defineframedtext[...][corner=round] - I would like to use a slightly thicker line to draw the box \defineframedtext[][rulethickness=2bp] Aditya also http://wiki.contextgarden.net/Framed -- 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] How to get rounded corners and a thicker line with \startframedtext
2011/3/18 Aditya Mahajan adit...@umich.edu but I like to change two things: - I would like to use rounded corners I want to use this to intersperse my document with citations. It is not bad, \defineframedtext[...][corner=round] - I would like to use a slightly thicker line to draw the box \defineframedtext[][rulethickness=2bp] Perfect. That looks much more slick. I know have defined: \define[2]\Citation{ \blank \startframedtext[middle][align=middle,corner=round,rulethickness=2bp] {\bf #2} \blank[small] \rightaligned{\it #1} \stopframedtext \blank } -- Cecil Westerhof ___ 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] How to get rounded corners and a thicker line with \startframedtext
2011/3/18 luigi scarso luigi.sca...@gmail.com also http://wiki.contextgarden.net/Framed A very interesting read. I changed my macro to: \define[2]\Citation{ \blank \startframedtext[middle][ align=middle, background=color, backgroundcolor=lightgray, corner=round, rulethickness=2bp ] {\bf #2} \blank[small] \rightaligned{\it #1} \stopframedtext \blank } This results in an even more pleasing effect. (In my opinion.) -- Cecil Westerhof ___ 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] How to get rounded corners and a thicker line with \startframedtext
On Sat, Mar 19, 2011 at 12:24 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2011/3/18 luigi scarso luigi.sca...@gmail.com also http://wiki.contextgarden.net/Framed A very interesting read. I changed my macro to: \define[2]\Citation{ \blank \startframedtext[middle][ align=middle, background=color, backgroundcolor=lightgray, corner=round, rulethickness=2bp ] {\bf #2} \blank[small] \rightaligned{\it #1} \stopframedtext \blank } This results in an even more pleasing effect. (In my opinion.) You can also use metafun, which plays well with mkiv: http://wiki.contextgarden.net/MetaFun -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Producing quotesingle glyph
Hello, This may be a stupid question, but I can't work out how to produce the ' character (quotesingle, unicode 0x0027) glyph in a document. Just typing the character in the source produces a quoteright as expected. Here are my other attempts: \starttext \quotesingle \getnamedglyphdirect{lm}{quotesingle} \uchar{00}{39} \stoptext They all produce quoteright as well. Does anyone have a better suggestion? I'm using MkIV, version 2011.02.25 22:03. Thanks, Pont ___ 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] Macro for acronyms
At the moment I have I my document: {\switchtobodyfont[1.25em]\bf M}ust {\switchtobodyfont[1.25em]\bf S}hould {\switchtobodyfont[1.25em]\bf C}ould {\switchtobodyfont[1.25em]\bf N}ot now But I like to have a macro for this, so I could just do: \Acronym{Must Should Could Not~now} Is more readable and when I want a change (for example another color for the first letter), this is much easier to implement. How should I implement such a macro? -- Cecil Westerhof ___ 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] Some problems I experienced when using ConTeXt
In my explorary journey into ConTeXt I bumped into a few problems. Attached my tex file and the generated PDF. I found a few problems while using ConTeXt. I did my best to reproduce them (the table problem was difficult to reproduce) and make a small sample document. There is a problem with the formatting of paragraps. This manifests itself when I set lefthyphenmin and righthyphenmin. Then sometimes sentences are to long. Would it not be better to have a lot of whitespace between the words, but keep the formating? In the document the third line of the first paragraph is to long and the fifth and sixth line from the second paragraph are to long. When I use a sentence like: In de boxen van de stam vul je voor iedere dag (maandag t/m zondag) een activiteit in die je op die dag afrond. I would prefer t/m kept together. It is, but the way it is displayed, it looks like there is (a) space between the '/' and the 'm'. Is there something that can be done about this, or have I to live with it? I found also an obscure problem with table. I had to dabble a bit to reproduce it. (For a moment I thought I had imagined it.) The table does not fit on the space that is left on the page, so it is moved to the next page. So far so good. But the text after the table is put on the current page and is now before the table. It is not that they can not be put on a page together, because when you uncomment the break, the table and text reside on the same page. Lastly a question about a long click-able email address. I would like it not to be broken up. But sometimes this can happen. See the end of the document.(Can of-course also happen with a short address, but will happen less often.) What is the best way to circumvent this? At the moment I just put it centered on its own line. At the moment I do not have a problem with this. But I do not know if this will be always the case. -- Cecil Westerhof wrongFormatting.tex Description: TeX document wrongFormatting.pdf Description: Adobe PDF document ___ 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] ... and emoticons
Are there codes for ... and emoticons in ConTeXt? -- Cecil Westerhof ___ 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] Macro for acronyms
On Sat, 19 Mar 2011, Cecil Westerhof wrote: At the moment I have I my document: {\switchtobodyfont[1.25em]\bf M}ust {\switchtobodyfont[1.25em]\bf S}hould {\switchtobodyfont[1.25em]\bf C}ould {\switchtobodyfont[1.25em]\bf N}ot now But I like to have a macro for this, so I could just do: \Acronym{Must Should Could Not~now} Is more readable and when I want a change (for example another color for the first letter), this is much easier to implement. How should I implement such a macro? Use recursion! \definestartstop [FancyFirstLetter] [style={\switchtobodyfont[big]\bf}, color=red] \def\FancyUppercase#1% {\dostartFancyUppercase#1\dostopFancyUppercase} \def\dostartFancyUppercase#1#2\dostopFancyUppercase {\FancyFirstLetter{#1}#2} \def\Acronym#1% {\dostartAcronym#1 \dostopAcronym} \def\dostartAcronym#1 #2\dostopAcronym {\doifsomething{#1} {\FancyUppercase{#1} %space \dostartAcronym#2 \dostopAcronym}} \starttext \loggingall \Acronym{Must Should Could Not~now} \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ... and emoticons
On Sat, 19 Mar 2011, Cecil Westerhof wrote: Are there codes for ... and emoticons in ConTeXt? \setupbodyfont[libertine] \starttext \unknown\ or \ldots ☺☹ \stoptext Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Some problems I experienced when using ConTeXt
On Sat, 19 Mar 2011, Cecil Westerhof wrote: In my explorary journey into ConTeXt I bumped into a few problems. Attached my tex file and the generated PDF. I found a few problems while using ConTeXt. I did my best to reproduce them (the table problem was difficult to reproduce) and make a small sample document. There is a problem with the formatting of paragraps. This manifests itself when I set lefthyphenmin and righthyphenmin. Then sometimes sentences are to long. Would it not be better to have a lot of whitespace between the words, but keep the formating? In the document the third line of the first paragraph is to long and the fifth and sixth line from the second paragraph are to long. \setupalign[verytolerant,stretch] When I use a sentence like: In de boxen van de stam vul je voor iedere dag (maandag t/m zondag) een activiteit in die je op die dag afrond. I would prefer t/m kept together. It is, but the way it is displayed, it looks like there is (a) space between the '/' and the 'm'. Is there something that can be done about this, or have I to live with it? I don't know. I found also an obscure problem with table. I had to dabble a bit to reproduce it. (For a moment I thought I had imagined it.) The table does not fit on the space that is left on the page, so it is moved to the next page. So far so good. But the text after the table is put on the current page and is now before the table. It is not that they can not be put on a page together, because when you uncomment the break, the table and text reside on the same page. You are using \placetable which is a float. So, the table goes to the next page, but the material after that continues on the current page. Lastly a question about a long click-able email address. I would like it not to be broken up. But sometimes this can happen. See the end of the document.(Can of-course also happen with a short address, but will happen less often.) What is the best way to circumvent this? At the moment I just put it centered on its own line. At the moment I do not have a problem with this. But I do not know if this will be always the case. \setupinteraction[state=start] \useURL [email] [mailto:quitealongusernametowriteanema...@dummy.nl] [] [\goodbreak\hbox{quitealongusernametowriteanemai...@dummy.nl}] 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] Some problems I experienced when using ConTeXt
2011/3/19 Aditya Mahajan adit...@umich.edu manifests itself when I set lefthyphenmin and righthyphenmin. Then sometimes sentences are to long. Would it not be better to have a lot of whitespace between the words, but keep the formating? In the document the third line of the first paragraph is to long and the fifth and sixth line from the second paragraph are to long. There is a problem with the formatting of paragraps. This \setupalign[verytolerant,stretch] That looks a lot better. I found also an obscure problem with table. I had to dabble a bit to reproduce it. (For a moment I thought I had imagined it.) The table does not fit on the space that is left on the page, so it is moved to the next page. So far so good. But the text after the table is put on the current page and is now before the table. It is not that they can not be put on a page together, because when you uncomment the break, the table and text reside on the same page. You are using \placetable which is a float. So, the table goes to the next page, but the material after that continues on the current page. Okay, I understand. Can I do something about this? I now use \testpage, but that is not quite satisfactory. Lastly a question about a long click-able email address. I would like it not to be broken up. But sometimes this can happen. See the end of the document.(Can of-course also happen with a short address, but will happen less often.) What is the best way to circumvent this? At the moment I just put it centered on its own line. At the moment I do not have a problem with this. But I do not know if this will be always the case. \setupinteraction[state=start] \useURL [email] [mailto:quitealongusernametowriteanema...@dummy.nl] [] [\goodbreak\hbox{quitealongusernametowriteanemai...@dummy.nl}] Much better. Only one slight problem. The dot to finish the sentence is placed on the next line. -- Cecil Westerhof ___ 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] Macro for acronyms
2011/3/19 Aditya Mahajan adit...@umich.edu On Sat, 19 Mar 2011, Cecil Westerhof wrote: At the moment I have I my document: {\switchtobodyfont[1.25em]\bf M}ust {\switchtobodyfont[1.25em]\bf S}hould {\switchtobodyfont[1.25em]\bf C}ould {\switchtobodyfont[1.25em]\bf N}ot now But I like to have a macro for this, so I could just do: \Acronym{Must Should Could Not~now} Is more readable and when I want a change (for example another color for the first letter), this is much easier to implement. How should I implement such a macro? Use recursion! \definestartstop [FancyFirstLetter] [style={\switchtobodyfont[big]\bf}, color=red] \def\FancyUppercase#1% {\dostartFancyUppercase#1\dostopFancyUppercase} \def\dostartFancyUppercase#1#2\dostopFancyUppercase {\FancyFirstLetter{#1}#2} \def\Acronym#1% {\dostartAcronym#1 \dostopAcronym} \def\dostartAcronym#1 #2\dostopAcronym {\doifsomething{#1} {\FancyUppercase{#1} %space \dostartAcronym#2 \dostopAcronym}} Almost. dostartAcronym needs a blanco line to put the words under each-other: \def\dostartAcronym#1 #2\dostopAcronym {\doifsomething{#1} {\FancyUppercase{#1} %space \dostartAcronym#2 \dostopAcronym}} -- Cecil Westerhof ___ 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] ... and emoticons
2011/3/19 Aditya Mahajan adit...@umich.edu On Sat, 19 Mar 2011, Cecil Westerhof wrote: Are there codes for ... and emoticons in ConTeXt? \setupbodyfont[libertine] \starttext \unknown\ or \ldots Works. What is the difference between \unknown\ and \ldots? ☺☹ Does not work at the moment. I'll examine it. -- Cecil Westerhof ___ 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] ... and emoticons
On Sat, 19 Mar 2011, Cecil Westerhof wrote: 2011/3/19 Aditya Mahajan adit...@umich.edu On Sat, 19 Mar 2011, Cecil Westerhof wrote: Are there codes for ... and emoticons in ConTeXt? \setupbodyfont[libertine] \starttext \unknown\ or \ldots Works. What is the difference between \unknown\ and \ldots? \ldots uses the math character (0x2026), while \unknown fakes the dots. You can change the spacing between the dots using \periods[1mm] ☺☹ Does not work at the moment. I'll examine it. You need a font that has these characters (lm does not, that is why I used libertine). 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] Macro for acronyms
On Sat, 19 Mar 2011, Cecil Westerhof wrote: 2011/3/19 Aditya Mahajan adit...@umich.edu On Sat, 19 Mar 2011, Cecil Westerhof wrote: At the moment I have I my document: {\switchtobodyfont[1.25em]\bf M}ust {\switchtobodyfont[1.25em]\bf S}hould {\switchtobodyfont[1.25em]\bf C}ould {\switchtobodyfont[1.25em]\bf N}ot now But I like to have a macro for this, so I could just do: \Acronym{Must Should Could Not~now} Is more readable and when I want a change (for example another color for the first letter), this is much easier to implement. How should I implement such a macro? Use recursion! \definestartstop [FancyFirstLetter] [style={\switchtobodyfont[big]\bf}, color=red] \def\FancyUppercase#1% {\dostartFancyUppercase#1\dostopFancyUppercase} \def\dostartFancyUppercase#1#2\dostopFancyUppercase {\FancyFirstLetter{#1}#2} \def\Acronym#1% {\dostartAcronym#1 \dostopAcronym} \def\dostartAcronym#1 #2\dostopAcronym {\doifsomething{#1} {\FancyUppercase{#1} %space \dostartAcronym#2 \dostopAcronym}} Almost. dostartAcronym needs a blanco line to put the words under each-other: Better to use an explicit \blank (A blank space is equal to \par, and can give funny results when you change indenting) \def\dostartAcronym#1 #2\dostopAcronym {\doifsomething{#1} {\FancyUppercase{#1} %space . \blank% addied this \dostartAcronym#2 \dostopAcronym}} 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] ... and emoticons
2011/3/19 Aditya Mahajan adit...@umich.edu On Sat, 19 Mar 2011, Cecil Westerhof wrote: 2011/3/19 Aditya Mahajan adit...@umich.edu On Sat, 19 Mar 2011, Cecil Westerhof wrote: Are there codes for ... and emoticons in ConTeXt? \setupbodyfont[libertine] \starttext \unknown\ or \ldots Works. What is the difference between \unknown\ and \ldots? \ldots uses the math character (0x2026), while \unknown fakes the dots. You can change the spacing between the dots using \periods[1mm] Okay, I'll play with it. ☺☹ Does not work at the moment. I'll examine it. You need a font that has these characters (lm does not, that is why I used libertine). I used libertine, but maybe it is not installed on mys system. -- Cecil Westerhof ___ 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] Macro for acronyms
2011/3/19 Aditya Mahajan adit...@umich.edu \definestartstop [FancyFirstLetter] [style={\switchtobodyfont[big]\bf}, color=red] \def\FancyUppercase#1% {\dostartFancyUppercase#1\dostopFancyUppercase} \def\dostartFancyUppercase#1#2\dostopFancyUppercase {\FancyFirstLetter{#1}#2} \def\Acronym#1% {\dostartAcronym#1 \dostopAcronym} \def\dostartAcronym#1 #2\dostopAcronym {\doifsomething{#1} {\FancyUppercase{#1} %space \dostartAcronym#2 \dostopAcronym}} Almost. dostartAcronym needs a blanco line to put the words under each-other: At the moment I have I my document: Better to use an explicit \blank (A blank space is equal to \par, and can give funny results when you change indenting) Is not the same. With a blank line the next word begins on a new line. When using \blank there is also vertical whitespace between the words. But I think I like it. So that is good. ;-} -- Cecil Westerhof ___ 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 ___