Re: [NTG-context] fleurons - reprise
n Tuesday 12 July 2005 08:22 am, Joachim Trinkwitz wrote: > Am 31.05.2005 um 23:48 schrieb Adam Lindsay: > > Yeah, I picked up the Fleurons of Hope recently, and have been > > thinking > > of interesting ways to use it in ConTeXt. > > Has someone looked at the free downloadable Web-O-Mints (both > TrueType and Postscript: http://www.galapagosdesign.com/download/ > index.html) or Fleurons.ttf (http://www.grsites.com/modperl/ > fontview.cgi?dir=f&fn=FLEUR_TT), both very attractive lokking sets of > traditional ornaments and border pieces? > > Regards, > joachim Use WeBoMints all the time, especially character '4' for a section divider or chapter end decoration. -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Paragraph internal graphic/layout inquiry.
Greetings all, Mr. Tufte has an interesting example from da Vinci: http:// trichotomic.net/Leonardo.jpg (76k). Is this type of layout currently possible (or perhaps a better question, wieldy) within ConTeXt? Kind regards, David Wooten ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up chapter.
On Tuesday 12 July 2005 01:15 pm, luigi.scarso wrote: > John R. Culleton wrote: > >On Monday 11 July 2005 09:34 pm, Stuart Jansen wrote: > >>On Mon, 2005-07-11 at 17:12 +, John R. Culleton wrote: > >>>I am trying to set up chapter heads a certain way and my code > >>>keeps getting uglier. Here are the specs: > >>> > >>>1. Chapter number centered, with decorations on either side. > >>>2. Chapter title centered below chapter number. > >>>3. Additional decoration centered below chapter title. > >>>4. Both number and text show up in TOC in normal Context manner. > >>> > >>>Can this be done easily using the normal chapter macro or should > >>>I do it all from scratch? (If I roll my own I worry about getting > >>>info to the TOC.) > >> > >>I am doing something like that now. Sorry the example isn't very pretty, > >>had to rip out parts that were specific to the font I'm using, but > >>should give you an idea of what you need to do. > >> > >>= > > > >Your example was very helpful. Using it, and with some more > >RTFM, I came up with this configuration: > > > >\setuphead[chapter][numbercommand=\numcommand,page=right, > >header=none,textcommand=\texcommand,align=right] > > > >\def\numcommand#1{\hfil\webo m\hfil\tfd#1\hfil\webo m\hfil\break} > > > >\def\texcommand#1{\hfil #1 \hfil\crlf\deco} > > > > > >My problem remains with the horizontal alignment of the chapter > >text. I have tried left, right, normal, broad. All I want to do > >is center it, per my specification 2 above. > > > >Webo is the webomints dingbat font. > > Maybe this can help you ? > > \def\Command#1#2{\ruledvbox{\hbox to \textwidth{\hfill #1 \hfill}\\% > \hbox to \textwidth{\hfill #2 \hfill}\\% > \hbox to \textwidth{\hfill deco! \hfill}}} > > \def\NCommand#1{\framed{#1}}% Insert here other stuff for decorate number > > \def\TCommand#1{\framed{#1}}% Insert here other stuff for decorate text > > \setuphead[chapter][command=\Command,numbercommand=\NCommand,textcommand=\T >Command] > > Warning: \completecontent has a bizzarre look. > > > luigi > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context Some interesting approaches here, for sure. I am hanging on to these posts. I chickened out and did a plain TeX macro. % \def\Chap#1 #2.{\page[yes] \ifodd\count0\else\noheaderandfooterlines\page[yes]\fi \noheaderandfooterlines \line{\hfil\webo m\hfil\lower 4.5pt\hbox{\it\tfd#1}\hfil\webo m\hfil}\blank[big] \line{\tfc\hfil#2\hfil} \blank[big] \writetolist[chapter]{\tf #1}{\tf #2} \deco } \def\deco{\blank\noindent\hfil\webo 4\hfil\break\blank \rm} But when time permits I will play with the other approaches mentioned. -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] aligning of tables and tabulate
Mojca Miklavec wrote: Radhelorn wrote: Maybe this is a stupid question, but according to manual this should align tables right: \setuptabulate[align=right] some text before \starttabulate[|l|l|] I've tried left, right, middle, center... to no effect. Both tables remain left aligned. \starttabulate[|r|r|] and \starttable[|r|r|] This aligns cell contents but not tables themselves. -- Radhelorn <[EMAIL PROTECTED]> ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] aligning of tables and tabulate
Radhelorn wrote: Maybe this is a stupid question, but according to manual this should align tables right: \setuptabulate[align=right] some text before \starttabulate[|l|l|] I've tried left, right, middle, center... to no effect. Both tables remain left aligned. \starttabulate[|r|r|] and \starttable[|r|r|] Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] aligning of tables and tabulate
Hello! Maybe this is a stupid question, but according to manual this should align tables right: \starttext \setuptabulate[align=right] some text before \starttabulate[|l|l|] \HL \NC test \NC test \NR \NC test \NC test \NR \HL \stoptabulate in the middle \setuptables[align=right] \starttable[|l|l|] \HL \NC test \NC test \NC\AR \NC test \NC test \NC\AR \HL \stoptable after after \stoptext I've tried left, right, middle, center... to no effect. Both tables remain left aligned. Thanks for your patience. -- Radhelorn <[EMAIL PROTECTED]> ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
Nikolai Weibull wrote: > I don't want to be a party-pooper, but I have already commited support > for the context file-type to vim7 CVS. Perhaps you can look over my > version and make suggestions? That's great! I didn't know that. Some time ago some people were asking about ConTeXt support for vim, but I don't remember any responses. I like the "[EMAIL PROTECTED]" syntax and there are much more highlights in your code. Quite some pieces of code can still be added of course, but writing a good syntax highlighting scheme may become almost as is almost as tricky as writing a compiler for it :) \title, \subject, ... can be added Maybe some more extensive support for math as well ... > It doesn't use the rather bloated LaTeX/Plain TeX syntax definition, > but my own blend, Probably the opinions on what "bloated" means differ at that point. I find it very useful if wrong brackets or any other suspicious code is marked as an error before the compiler has to tell me that (and for an unexperienced user it is very difficult to find such a mistake from compiler messages). I'm very glad that your code got rid of LaTeX commands, but I find it great if we keep extending the code. Moreover, I even wanted to have command-specific code highlighting. ConTeXt has a big advantage over LaTeX: the central development. So theoretically it would be possible to highlight any known command different as the unknown (user-defined or misspelled) ones. PostScript syntax highlighting script in vim does exactly that for example. I wanted to suggest to make a cont-en.vim (cont-nl.vim, ..., maybe also tex-plain.vim) file with all the known ConTeXt commands. I don't know vim that well. I can imagine that this would cause some problems on slower machines, but including it would only be left as an option. > (Sorry for responding to two separate mails, I'm a bit rushed, going on > a three-day holiday.) > > Hans Hagen wrote: > > > Mojca Miklavec wrote: > > > > If you have something like > > > \startMPpage > > > draw ... > > > \stopMPpage, > > > it will do the syntax highligting for metapost inside the \start-\stop > > > pair. > > That's a great idea, I'll add that to my version I made some corrections to it (off-list), but it is still far away from being perfect. If you know how to correct some pecculiarities mentioned in the comments, please do so and then adapt the code to fit into your highlighting script. It would be great if someone could give some hints about which commands switch the mode of typesetting: - startformula ... \stopformula - startbuffer ... \stopbuffer (I would highlight the content for "buffer" as a string) - \start???MP??? ...\stop???MP??? - start???XML??? ... \stop???XML??? > Version 7 has a spell-checker built in. I noticed that. But I suppose I'll wait for an official version of Vim to come out. "[EMAIL PROTECTED]" should probably also be added to mp.vim and mf.vim. > > > I was astonished as I saw autocomplete work. There are only a couple of > > > lines with an extraordinary functionality. I think that if someone > > > writes a good script to convert texshow to vim syntax highlighting > > > script, than autocomplete will be able to provide good hints for all the > > > existing commands in ConTeXt and the corresponding parameters. I'll try > > > to see what I can do, but please don't excpect any results too soon. > > There's always the ever-simple CTRL-P/CTRL-N as well. I just noticed that autocomplete is in no way as clever as syntax-highlighting is. It would be great if there would exist a similar support as the one for Java in Eclipse (only the keywords that make sense in the current context are offered for autocompletion). An example would be: if someone writes \adaptlayout[ only the options height= and lines= would be offered. But at that point I have to answer to myself: "dream on!" It is probably possible, but too complex at this moment. > > What is the syntax? I can exten ctstools to spit out a vim keyword table; > > it already handles scite, jedit and bbedit so adding vim is not undoable > > Download vim and run :help syntax. But the short version is > > syn keyword contextKeyword ... > ^-- group name ^-- keywords > > But that won't work for stuff beginning with \\. Then you'll have to > use regexes and > > syn match contextKeyword ... > ^-- regex > > Exactly what kind of keyword table are we talking about?, My most optimistic version: [all] of the commands defined in ConTeXt (see also the comments above), together with some additional checking if \start-s have their corresponding \stop-s and if parameters in the brackets are applicable for the command they belong too. \adaptlayout[lines=30,somestupidparameter=1] would thus highlight the valid "lines=" different from "somestupidparameter=1" \setupblackrules[alternative=c] would mark "c" as invalid (only a and b are possible). And already the first obstacle I came across:
Re: [NTG-context] Setting up chapter.
John R. Culleton wrote: On Monday 11 July 2005 09:34 pm, Stuart Jansen wrote: On Mon, 2005-07-11 at 17:12 +, John R. Culleton wrote: I am trying to set up chapter heads a certain way and my code keeps getting uglier. Here are the specs: 1. Chapter number centered, with decorations on either side. 2. Chapter title centered below chapter number. 3. Additional decoration centered below chapter title. 4. Both number and text show up in TOC in normal Context manner. Can this be done easily using the normal chapter macro or should I do it all from scratch? (If I roll my own I worry about getting info to the TOC.) I am doing something like that now. Sorry the example isn't very pretty, had to rip out parts that were specific to the font I'm using, but should give you an idea of what you need to do. = Your example was very helpful. Using it, and with some more RTFM, I came up with this configuration: \setuphead[chapter][numbercommand=\numcommand,page=right, header=none,textcommand=\texcommand,align=right] \def\numcommand#1{\hfil\webo m\hfil\tfd#1\hfil\webo m\hfil\break} \def\texcommand#1{\hfil #1 \hfil\crlf\deco} My problem remains with the horizontal alignment of the chapter text. I have tried left, right, normal, broad. All I want to do is center it, per my specification 2 above. Webo is the webomints dingbat font. Maybe this can help you ? \def\Command#1#2{\ruledvbox{\hbox to \textwidth{\hfill #1 \hfill}\\% \hbox to \textwidth{\hfill #2 \hfill}\\% \hbox to \textwidth{\hfill deco! \hfill}}} \def\NCommand#1{\framed{#1}}% Insert here other stuff for decorate number \def\TCommand#1{\framed{#1}}% Insert here other stuff for decorate text \setuphead[chapter][command=\Command,numbercommand=\NCommand,textcommand=\TCommand] Warning: \completecontent has a bizzarre look. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up chapter.
On 12 juil. 2005, at 10:32, John R. Culleton wrote: [...] My problem remains with the horizontal alignment of the chapter text. I have tried left, right, normal, broad. All I want to do is center it, per my specification 2 above. Hi John, I think if in \setupframed at the beginning of the example (sent by Stuart Jansen) instead of \def\mychapter#1#2% {\setupframed[width=1.75in,align={right,broad},frame=off]\vbox{% you say \def\mychapter#1#2% {\setupframed[width=\textwidth,align=middle,frame=off]\vbox{% you get what you want. Best regards: OK ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up chapter.
On Monday 11 July 2005 09:34 pm, Stuart Jansen wrote: > On Mon, 2005-07-11 at 17:12 +, John R. Culleton wrote: > > I am trying to set up chapter heads a certain way and my code > > keeps getting uglier. Here are the specs: > > > > 1. Chapter number centered, with decorations on either side. > > 2. Chapter title centered below chapter number. > > 3. Additional decoration centered below chapter title. > > 4. Both number and text show up in TOC in normal Context manner. > > > > Can this be done easily using the normal chapter macro or should > > I do it all from scratch? (If I roll my own I worry about getting > > info to the TOC.) > > I am doing something like that now. Sorry the example isn't very pretty, > had to rip out parts that were specific to the font I'm using, but > should give you an idea of what you need to do. > > = Your example was very helpful. Using it, and with some more RTFM, I came up with this configuration: \setuphead[chapter][numbercommand=\numcommand,page=right, header=none,textcommand=\texcommand,align=right] \def\numcommand#1{\hfil\webo m\hfil\tfd#1\hfil\webo m\hfil\break} \def\texcommand#1{\hfil #1 \hfil\crlf\deco} My problem remains with the horizontal alignment of the chapter text. I have tried left, right, normal, broad. All I want to do is center it, per my specification 2 above. Webo is the webomints dingbat font. -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: re-using ConTeXt typescripts ?
Steffen Wolfrum said this at Tue, 12 Jul 2005 14:07:34 +0200: >Isn't is possible when processing with XeTeX to continue using those >precious hand-made virtual fonts? *ohhh* I see. Sorry about the confusion. I thought you were talking about using converted OpenType fonts, and then using them in their natural state from XeTeX. If they're virtual fonts, then the short answer is no. XeTeX doesn't deal with virtual fonts at all when it is in its "compatibility mode" (i.e., tries to use tfms/type1 fonts in the texmf tree). This is disappointing to me too (having just moved euler support to eulervm files), but it's fairly understandable in the context of what XeTeX is trying to achieve. adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: re-using ConTeXt typescripts ?
Hi Adam, sure, you've mentioned AGaramondPro. But I have the AGaramond+Expert fonts (Type1) installed in my texmf tree with Walther Schmidts TFM and VF files (see the pad-files in the typescript I've sent). http://www.dante.de/CTAN/fonts/metrics/w-a-schmidt/pad.zip (or in general but German http://home.vr-web.de/was/fonts.html) And this is the crucial point: for theses files provide e.g. optimized (German) kerning information (and more) I really don't want to miss them! And I have absolutely no idea how to access theses files. Isn't is possible when processing with XeTeX to continue using those precious hand-made virtual fonts? Steffen Adam Lindsay <[EMAIL PROTECTED]> wrote: Hi Steffen, You're pretty close. It's best not to rewrite your old scripts, rather, to make a new type-enc style script to replace your existing [serif] [agaramond][ec] script. This way, when changing engines, it's a simple step of changing the (default, perhaps?) encoding... \starttypescript [serif] [agaramond] [uc] % XeTeX and Unicode is a happy combination \definefontsynonym [AGaramond-Regular] ... adam Steffen Wolfrum said this at Mon, 11 Jul 2005 17:37:24 +0200: >\starttypescript [serif] [agaramond] [ec] > \definefontsynonym [AGaramond-Regular][padr9e] >[encoding=uc] % was encoding=ec before xetex > \definefontsynonym [AGaramond-Italic] [padri9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-Bold] [padb9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-BoldItalic] [padbi9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-Semibold] [pads9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-SemiboldItalic] [padsi9e] [encoding=uc] % =ec >\stoptypescript >\starttypescript [serif] [agaramond] [name] > \definefontsynonym [Serif] [AGaramond-Regular] > \definefontsynonym [SerifBold] >[AGaramond-Semibold]%[AGaramond-Bold-OSF] > \definefontsynonym [SemiBold] [AGaramond-Semibold] > \definefontsynonym [SerifItalic] [AGaramond-Italic] > \definefontsynonym [SerifBoldItalic] >[AGaramond-SemiboldItalic]%[AGaramond-BoldItalic-OSF] > \definefontsynonym [SemiBoldItalic][AGaramond-SemiboldItalic] >\stoptypescript >\starttypescript [serif][allbold][all] >\definefontsynonym [Serif] [SerifBold] >\definefontsynonym [SerifItalic][SerifBoldItalic] >\stoptypescript > >\starttypescript [AGaramondOldStyle] > \definetypeface [normaltype] [rm] [serif] [agaramond] >[default] [encoding=uc] % =ec > \definetypeface [boldtype] [rm] [serif] [agaramond,allbold] >[default] [encoding=uc] % =ec >\stoptypescript ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enco-ffr again
On Tue, 5 Jul 2005, Hans Hagen wrote: > Peter Münster wrote: > > I've just discovered, that the problem is only with : and ; but not with ? > > and ! > > Here my example files: > > > > file env.tex: > > \startenvironment env > > \useencoding[ffr] > > \mainlanguage[fr] > > \stopenvironment > > > > file test.tex: > > \environment env > > \starttext > > No space before : nor ; > > bla: bla; bla? bla! > > \stoptext > > see proposed solution in wiki bug page Thank you, Hans! So, if your solution is in the kernel now, can we delete this page? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] fleurons - reprise
Am 31.05.2005 um 23:48 schrieb Adam Lindsay: Yeah, I picked up the Fleurons of Hope recently, and have been thinking of interesting ways to use it in ConTeXt. Has someone looked at the free downloadable Web-O-Mints (both TrueType and Postscript: http://www.galapagosdesign.com/download/ index.html) or Fleurons.ttf (http://www.grsites.com/modperl/ fontview.cgi?dir=f&fn=FLEUR_TT), both very attractive lokking sets of traditional ornaments and border pieces? Regards, joachim -- Dr. Joachim Trinkwitz E-Mail: [EMAIL PROTECTED] Germanistisches Seminar Tel.: 0228-737565 der Universität Bonn Fax: 0228-737479 Am Hof 1d, 53113 Bonn www.germanistik.uni-bonn.de ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] big font in item separator
박내엽 wrote: Blow is my sample i can not compiled becuse "\startitemize[1,packed]" line but "\startitemize[n, packed]" is good and i want item 1(cdot) separator in higher text then 22pt Your example works ok here (ConTeXt 2005.06.27) Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context