Re: [NTG-context] Typescript for Linotype NimbusSanL-BoldCond
On 1/19/07, John R. Culleton [EMAIL PROTECTED] wrote: Has anyone put together a typescript for some or all of the Nimbus family? I have the font referenced above and ran it through texfont. It is specified by a customer's designer for a book I am working on. I can of course do the old plain TeX \font thing but I would like to do it a more Contextish way. -- Maybe these can help you www.logosrl.it/context/modules/2007-01-18/font-modu.pdf www.logosrl.it/context/modules/2007-01-18/type-modu.pdf luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX questions
Hans Hagen wrote: Thomas A. Schmitz wrote: Well don't laugh: I tried your suggestion and found that this works: \definedfont[{{[GFSDidot] at 20pt}}] the two pairs of braces seem to be needed. Not a pretty sight, though... [GFSDidot] is not a prettu sight anyway; does it fail when you don;t use those []'s? It would be nicer if XeTeX would support TeX-style braces as well. This is much less bizarre: \definedfont[{GFSDidot} at 20pt] Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Figures (images) at a special position
Hello, I have a question on (absolute) positionning of figures/images. I try to position my images in that way shown in the layout in this attachment (hope I can post images this way?). I try to do it with the following lines: \useexternalfigure[pic01][pic01] \useexternalfigure[pic02][pic02] \useexternalfigure[pic03][pic03] \useexternalfigure[pic04][pic04] \useexternalfigure[pic05][pic05] \placefigure[left][]{none} { \startcombination[2*3] %\startcombination[2*2] %the following 3 lines don´t work! %probably I can not use \placeexternalfigure in the \startcombination !??? {\placeexternalfigure[left] {Caption} {\externalfigure[pic01.jpg]}} {\externalfigure[pic02.jpg]}{} {\externalfigure[pic03.jpg]}{Caption} {\externalfigure[pic04.jpg]}{} {\externalfigure[pic05.jpg]}{} \stopcombination } So if I position the images with {\externalfigure[pic0001.jpg]}{} and so on, I don´t get the layout I want to have. I found floating objects, can I use these to position the pictures in the way I want to? ANY COMMENT IS USEFUL! Thank you very much! attachment: layoutSW.jpg ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX questions
Thomas A. Schmitz wrote: Well don't laugh: I tried your suggestion and found that this works: \definedfont[{{[GFSDidot] at 20pt}}] the two pairs of braces seem to be needed. Not a pretty sight, though... [GFSDidot] is not a prettu sight anyway; does it fail when you don;t use those []'s? 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
Hi Claudia, Claudia Lanzl wrote: Hello, I have a question on (absolute) positionning of figures/images. I try to position my images in that way shown in the layout in this attachment (hope I can post images this way?). I try to do it with the following lines: \useexternalfigure[pic01][pic01] \useexternalfigure[pic02][pic02] \useexternalfigure[pic03][pic03] \useexternalfigure[pic04][pic04] \useexternalfigure[pic05][pic05] This is obsolete, as long as the file name and the label are the same and you don't want to change the picture at definition time (scaling,...). I did the same some time ago. \placefigure[left][]{none} { \startcombination[2*3] %\startcombination[2*2] %the following 3 lines don´t work! %probably I can not use \placeexternalfigure in the \startcombination !??? {\placeexternalfigure[left] {Caption} {\externalfigure[pic01.jpg]}} {\externalfigure[pic02.jpg]}{} {\externalfigure[pic03.jpg]}{Caption} I have only used start|stopcombinations with equal sized pictures so far. Don't know if you can get the desired layout with only one combination. Anyhow you can combine pic02 and pic03 {\vbox{\externalfigure[pic02.jpg][scale=1000] \blank[whatever is needed] \externalfigure[pic03.jpg][scale=1000]}} {Caption} and use two [2*1] combinations. Just a fast example with \framed instead of \externalfigure % - - - - - - - - \setupoutput[pdftex] \starttext \def\Double{\vbox{\framed[width=0.3\textwidth,height=.14\textheight]{} \blank[.02\textheight] \framed[width=0.3\textwidth,height=.14\textheight]{}}} \startcombination[2*1] {\framed[width=0.6\textwidth,height=.3\textheight]{}}{1} {{\Double}}{2 and 3} \stopcombination \blank \startcombination[2*1] {\framed[width=0.45\textwidth,height=.2\textheight]{}}{4} {\framed[width=0.45\textwidth,height=.2\textheight]{}}{5} \stopcombination \stoptext I hope this works for you. Happy fiddling with the picture dimensions and the space inbetween. Greetings, Peter {\externalfigure[pic04.jpg]}{} {\externalfigure[pic05.jpg]}{} \stopcombination } So if I position the images with {\externalfigure[pic0001.jpg]}{} and so on, I don´t get the layout I want to have. I found floating objects, can I use these to position the pictures in the way I want to? yes, if you mean the whole combination (else no). ANY COMMENT IS USEFUL! Thank you very much! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
My 2 cents: Why not use a table ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
luigi scarso wrote: My 2 cents: Why not use a table ? maybe also an option, but how will you set the different widths for pic01 and pic04 (2,3 and 5) in the same column? i know that you can span columns, but can you set the width of every column at row level? i must say, that i haven't tried that yet. greetings, peter luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
Hi Peter, your simple but great idea works fantastically! Thank you very much! Anyhow you can combine pic02 and pic03 {\vbox{\externalfigure[pic02.jpg][scale=1000] \blank[whatever is needed] \externalfigure[pic03.jpg][scale=1000]}} {Caption} and use two [2*1] combinations. Just a fast example with \framed instead of \externalfigure % - - - - - - - - \setupoutput[pdftex] \starttext \def\Double{\vbox{\framed[width=0.3\textwidth,height=.14\textheight]{} \blank[.02\textheight] \framed[width=0.3\textwidth,height=.14\textheight]{}}} \startcombination[2*1] {\framed[width=0.6\textwidth,height=.3\textheight]{}}{1} {{\Double}}{2 and 3} \stopcombination \blank \startcombination[2*1] {\framed[width=0.45\textwidth,height=.2\textheight]{}}{4} {\framed[width=0.45\textwidth,height=.2\textheight]{}}{5} \stopcombination \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
Hi Peter, hi Luigi, didn´t think of tables and I don´t know much about it, but maybe a combination of your ideas? Two tables (the first for picture 1, 2 and 3) and a second one for picture 4 and 5? Greetings, Claudia Peter Rolf wrote: luigi scarso wrote: My 2 cents: Why not use a table ? maybe also an option, but how will you set the different widths for pic01 and pic04 (2,3 and 5) in the same column? i know that you can span columns, but can you set the width of every column at row level? i must say, that i haven't tried that yet. greetings, peter luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Columns and components
Hi! I'm toying with a complex document environment involving multiple components, both in order to learn in general and to accomplish particular objectives. So I want a 2-column layout for all the document, which is made up of a bunch of components appended one after the other in a continuous fashion. The way I thought to acheive that is, instinctively, to use \startcolumns in my product file, before declaring the various components. However, when I do this, the use of \stopcolumns at the end doesn't work. The document does compile (with columns) when I don't use the stop command, but when I do, there is an error: ! Extra }, or forgotten \endgroup. \stopcolumns ...idecolumnsfalse \endgroup \egroup l.12 \stopcolumns What is the proper way of doing this? The thing is, I need to balance my columns, and balancing doesn't work with no \stopcolumns. Thanks! Jeff ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
Claudia Lanzl wrote: Hi Peter, hi Luigi, didn´t think of tables and I don´t know much about it, but maybe a combination of your ideas? Two tables (the first for picture 1, 2 and 3) and a second one for picture 4 and 5? i don't think that using two tables brings you any advantage (especially the second one would be only overhead). instead you can use a table with tree columns (is this what you ment, luigi?) the idea is to add a column every time a picture ends in a new tab position. simply draw long vertical lines at every right picture border in your example layout and you can see the columns. the 1st column has the width of pic04 the 2nd column has the width of (pic01-pic04) the 3rd column has the width of pic02 pic01 spans the first two columns. pic02 and pic03 are in the third column. pic04 is in the first column. pic05 spans the second and third column. pic01 has also vertical spanning (first two rows). feel free to try it (i think TABLE is good for this). see http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs for the details or better: ask luigi ;) greetings, peter Greetings, Claudia Peter Rolf wrote: luigi scarso wrote: My 2 cents: Why not use a table ? maybe also an option, but how will you set the different widths for pic01 and pic04 (2,3 and 5) in the same column? i know that you can span columns, but can you set the width of every column at row level? i must say, that i haven't tried that yet. greetings, peter luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX questions
On Jan 22, 2007, at 12:17 AM, Hans Hagen wrote: fonts is more than definitions; esp a the level of supporting features and runtime manipulating fonts, xetex and luatex will undoubtely differ; also, xetex uses external font libraries, while luatex does things internaly and under user/macro conytrol (with defaults); due to the nature of fonts, both systems will share characteristics ... the future will learn; from context's point of view ... we will provide a high level interface so users will probably not notice the gory details Hans That would be the best of all worlds... Just give us some Mk IV files to play with soonish... Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX questions
On Jan 21, 2007, at 11:59 PM, Mojca Miklavec wrote: In summer I almost lost my nerves when I had to make a presentation with Lithuanian, Turkish, Romanian, ... Vietnamese names (and had only one night to make it ready). One letter was missing in Unicode vectors for pdfTeX, [st]cedilla/commaaccent was problematic anyway (iwona and lm use different letters on the same slot), for Vietnamese I needed to redefine the font (\ifcountryisvietnamthen ... and font switching macros seemed to have little bugs, so some specific combinations of commands failed for basically no reason). It was a headache. (I needed external figures and I didn't know that using them was possible in XeTeX.) OK, I see where XeTeX has its strong points. And I can certainly agree: if you want unusual glyphs that are not part of a more-or-less standard encoding, that can be a PITA. Two other reasons why I'm sometimes using XeTeX is the ability to use any font and the ability to use any glyph without too much troubles (all that might be possible in pdfTeX, but even now that I potentially know how to do that, I stil find it too cumbersome - too much work just for the sake of being able to use a single font for a title somewhere on a poster - too much overhelm). Well ... another reason might be just because it's fun to play a bit ;) You can do a lot more than that (typeset the most obscure scripts in the world), but if you don't ask for it, you probably don't need it either. Yes, I was just wondering how much time I should spend on ``playing a bit.'' Well ... I didn't manage to get over this (buggy windows tools - neither lcdftypetools nor texfont worked properly) and aferwards I didn't want to take time for it (I know that it's history, not the future, so it makes no sense to loose time with it). But if you don't have problems like the one described above, if you don't need fancy apple fonts and if the desired fonts work OK for you, there's probably no reason to switch. And when talking about should I switch to XeTeX: The nice thing about ConTeXt is that you usually shouldn't notice the difference at any point of the document except for possibly sligthly different line with font definitions. I assume that once the integration of opentype in luatex is finished, this will be even more straightforward, giving us access to many opentype features. I'm just wondering if it makes sense to spend more time here It depends on what you consider spend more time. If I'm not counting the time reading the XeTeX mailing list, writing feature requests or doing minor fixes in code or on the wiki from time to time, there's basically no additional time involved. It simply works out of the box. Well, that depends on your needs: the only ``exotic'' script that I use on a regular basis is polytonic Greek, and this works indeed out of the box (very impressive), but in my quick tests, failed to work as soon as I added the mapping=tex-text command to the font. But your post has been immensely helpful, Mojca. Thanks for your time, I really see where XeTeX is useful, but I also see that it probably won't do a lot for me. Best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index formatting: column leaks over page margin
On 1/15/07, luigi scarso [EMAIL PROTECTED] wrote: hmm line map 17, 33, 52, 69, 70, 70, 70, 71, 71, is too much right? I've played with index settings some time ago: I will refresh my memories. luigi Ok, I hope these can help you. % \setupcolors[state=start] %% Indeces %% Index \defineregister[Index][Indeces] \setupheadtext[en][IndexCode=Code Index] %% \def\ICTextCommand#1{% #1\hskip1ex% }%% end \ICTextCommand %% \def\ICPageCommand#1{% \gdef\registerpageseparator{,}% \hbox{#1}% }%% end \ICPageCommand %% \def\ICHeadLetterCommand#1{% \setbox100=\hbox{% \switchtobodyfont[8pt]% \framed[frame=off, width=1.5em,height=1em,after=0.5em, strut=no, background=color,backgroundcolor=black]% {\color[white]{\setnostrut{#1}}}\hfill}% \box100% }%%end \ICHeadLetterCommand % \setupregister[Index][n=2, align=yes, balance=no, symbol=, distance=0pt, expand=no, partnumber=no, indicator=yes, textstyle={\tfx},pagestyle={\tfx}, textcommand={\ICTextCommand}, pagecommand={\ICPageCommand}, command={\ICHeadLetterCommand},] \starttext \dorecurse{100}{ boo\Index{boo} Boo\Index{Boo} foo\Index{foo} Foo\Index{Foo} goo\Index{goo} Goo\Index{Goo} \page }%% %% \completeIndex \stoptext % ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
On 1/22/07, Peter Rolf [EMAIL PROTECTED] wrote: Claudia Lanzl wrote: Hi Peter, hi Luigi, didn´t think of tables and I don´t know much about it, but maybe a combination of your ideas? Two tables (the first for picture 1, 2 and 3) and a second one for picture 4 and 5? i don't think that using two tables brings you any advantage (especially the second one would be only overhead). instead you can use a table with tree columns (is this what you ment, luigi?) ~Yes. The first time i saw it i thought something like this width(pic02) = 2*U width(pic03) = 2*U width(pic05) = 3*U width(pic04) = 3*U width(pic01) = 4*U plus some rows for labels and maybe some 0.2*U for columns for separations. http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs and core-ntb.tex or texmfstart texexec --pdf --modu core-ntb luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX questions
On Jan 22, 2007, at 10:41 AM, Hans Hagen wrote: [GFSDidot] is not a prettu sight anyway; does it fail when you don;t use those []'s? Hans Yes, it breaks without the []. Just came back from a day of excruciatingly boring meetings... Thanks Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] get XML data and put it in a table
Hello again, yet another problem :( I have got the following table: \bTABLE \bTR \bTD {\ss Name } \eTD \bTDFAMILY NAME \eTD \eTR \bTR \bTD {\ss Role}\eTD \bTDROLE \eTD \eTR \bTR \bTD {\ss E-Mail} \eTD \bTDE-MAIL \eTD \eTR \eTABLE and want the first coloumn to be always the same. The 3 attributes of the second one (FAMILY NAME, ROLE, E-MAIL) should come from an XML-file. So how do I get the attributs out of the file to the special position in the table? I think this can not be difficult, but it didn´t want to work. Do I have to go step by step through my document, and ignore those tags I don´t want to get? I would like to say: \defineXMLenvironment[user] \defineXMLenvironment[name] \defineXMLignore[display] \defineXMLargument[family] and save this result in a variable. Hm, I simly don´t know... do I have to group it? The XML-file looks s.th. similar to that: user status=published type=author xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; name display Reiner Ittinger /display family Ittinger /family given Reiner /given /name organisation role Student /role /organisation contact emails email [EMAIL PROTECTED] /email /emails /contact /user Thank you for your help and comments, tired Claudia ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Can't create more than about 240 footnotes
I run out of space around the 240th footnote in a document. It appears that ConTeXt may be reloading or redefining a footnote font for each footnote or footnote number. Is this a known problem with a known solution? Thanks, --Mike Bird references : unknown reference [][fnt:t:240] references : unknown reference [][fnt:f:240] references : unknown reference [][fnt:t:241] references : unknown reference [][fnt:f:241] ! Font \*10.4ptrmtfrm*=ptmr8t at 10.4pt not loaded: Not enough room left. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi ... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can't create more than about 240 footnotes
On Mon, 22 Jan 2007, Mike Bird wrote: I run out of space around the 240th footnote in a document. It appears that ConTeXt may be reloading or redefining a footnote font for each footnote or footnote number. Is this a known problem with a known solution? No. This works fine here \starttext \dorecurse{500} {\input knuth\footnote[note:\recurselevel]{this is a footnote}\endgraf} \stoptext Using ConTeXt ver: 2007.01.18 12:57 MKII fmt: 2007.1.18 Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures (images) at a special position
On Mon, 22 Jan 2007, luigi scarso wrote: On 1/22/07, Peter Rolf [EMAIL PROTECTED] wrote: Claudia Lanzl wrote: Hi Peter, hi Luigi, didn´t think of tables and I don´t know much about it, but maybe a combination of your ideas? Two tables (the first for picture 1, 2 and 3) and a second one for picture 4 and 5? i don't think that using two tables brings you any advantage (especially the second one would be only overhead). instead you can use a table with tree columns (is this what you ment, luigi?) ~Yes. The first time i saw it i thought something like this width(pic02) = 2*U width(pic03) = 2*U width(pic05) = 3*U width(pic04) = 3*U width(pic01) = 4*U plus some rows for labels and maybe some 0.2*U for columns for separations. http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs and core-ntb.tex or texmfstart texexec --pdf --modu core-ntb Actually texmfstart texexec --module kpse:core-ntb.tex which will work from any directory. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Default preference for float location
Hi, I'd like to set up floats (figures, tables, etc) so they float to the bottom of the page, by default (as if you always wrote \placefigure [bottom][...]{}{}). There does not seem to be an option to \setupfloats[] that will do this, or have I missed something? Robin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Long and short captions
Hi again, Is there a way in ConTeXt to have long and short versions of a figure caption, as one can in LaTeX? The long caption is placed with the figure, the short one for the list of figures. Thanks, Robin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context