Re: [NTG-context] Greek in luatex
Hi Arthur and Thomas, i've put the greek file in the distribution (fea path), do we also need this babel stuff for u and such? we should start thinking about a set of predefined features Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] section title: alignment
Dear list members, My section titles have a gray background of textwidth, as follows: \def\SectionCommand#1#2{\framed[frame=off,width=\textwidth,% align=right,background=color,backgroundcolor=lightgray]{#1\quad#2}} \setuphead[section][command=\SectionCommand,numbercolor=red] That works, except when section titles are longer than textwidth: in that case, the second line is aligned with the number, not the text. How can I get correct alignment? I tried to include \starttabulate \NC #1 \NC #2 \NC\NR \stoptabulate in SectionCommand, but then the background extends too much above and below. I'm sure there is an easy solution? Thanks a lot, Jörg Minimal example: \setupcolors[state=start] \def\SectionCommand#1#2{\framed[frame=off,width=\textwidth,% align=right,background=color,backgroundcolor=lightgray]{#1\quad#2}} \setuphead[section][command=\SectionCommand,numbercolor=red] \starttext \section{A very long title, longer than the width of the text and therefore needing a second line} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] externalfigure rotation
Hello, I'm looking to rotate an externalfigure inside of its bounding box in increments of 90 deg. Its real easy with 0 and 180, you can just do: \externalfigure[blah.pdf][width=5.0in, height=2.0in] \rotate[rotation=180]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]} Both commands result with an image that is 5.0in wide and 2.0in tall. But the problem comes when rotating a externalfigure at 90 and 270 degrees (or more generally, anything besides 0 and 180). The rotation is applied to the whole bounding box instead of rotating the picture within a bounding box. The following images will be rendered 2.0in wide and 5.0in tall. \rotate[rotation=90]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]} \rotate[rotation=270]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]} Are there any plans to add support for specify an externalfigure's rotation within its bounding box, similar to this: \externalfigure[blah.pdf][width=5.0in, height=2.0in, rotation=90] Cheers, Mike ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactive slides---hidden field on every page
Michal Kvasnička schrieb: Good morning or whatever you have now in Europe. It seems that my mail have come to the list, so I dare to repost it: sometimes the only way to get an answer :) I'm preparing my slides. Every slide is divided to three parts (backgrounds): text, header, and bottom. I've got the navigation buttons in the bottom. Now I'd like to add one more button that would open a field on the current page---a field containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content][\SomeContentText] \def\SomeContentText{% \startframedtext [width=\textwidth, height=fit, frame=on, background=color, backgroundcolor=tmava,framecolor=svetla]% \placecontent} \stopframedtext } % \setupbackgrounds [text] [%backgroundoffset=10pt,%.5cm, background={contentmenu,nextpage}] % \defineoverlay [ContentOnOff] [{\goto{\framed[width=\overlaywidth,height=\overlayheight,frame=off]{\hss}}% [JS(Toggle_Hide{Content})]}]%\overlaybutton{JS(Toggle_Hide{Content})}] % \startinteractionmenu[bottom] \setupinteraction [color=svetla, contrastcolor=black] \hbox to 600pt{% \raise0.4em\hbox{% \framed[width=3em, height=0.7em, frame=off, background={PageCounter,ContentOnOff}]{}} \hss \interactionbuttons[frame=off, width=8em] [firstpage, previouspage,nextpage, lastpage, PreviousJump,NextJump]% \hbox to 1cm{\hss}% \hbox to 44mm{% \interactionbuttons[frame=off][CloseDocument]\hss}% } H Michel, if possible try to post a (not)running minimal example, so that people can directly test with the source. It's too time consuming to 'make it run' first. However, it doesn't work: 1. The list of content is placed only on one page, not at all of them as I would like. \setupbackgrounds[state=repeat] 2. The field supposed to show/hide it isn't clickable---it isn't interactive, and does nothing. \setupinteraction[state=start] 3. I use \Topic and \Subject as heads, and I don't know how to put them to the list of content. a search for 'combinedlist' in the mail archive gives http://archive.contextgarden.net/message/20061020.082024.ded01b67.en.html Can you possibly help me to solve this problem? Not tested (just guessing), *maybe* HTH, Peter Sincerely yours Michal Kvasnicka ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Recommendations for Speed?
Taco said: Duane Johnson wrote: 1. Is there a way to keep TeX in-memory (i.e. as a server or daemon process) so that it doesn't have to load and reload fonts and the environment? Our system makes repeated requests for typeset documents and we are wondering if there's a way to remove the overhead of re-running pdftex. No, there is not (at least not using any of the 'stock' tex distributions). The one thing you could do is preload the fonts and modules you need into the format file, but setting this up is not completely trivial either. Indeed not trivial. But something I played with once upon a time for much the same purpose. You should take a look at Jonathan Fine's TeX daemon project texd (http://sourceforge.net/projects/texd) if you haven't already - it runs as a pipe (unix) and only loads formats once; it would take a little bit work to get it going reliably with ConTeXt, especially to do so in a way that is easily updated when a new ConTeXt is released, and I'm not sure if Jonathan is still actively working on the project. But it demonstrates an effective approach, which works with Plain (and LaTeX I think). Duncan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Logos in context / Miscellaneous questions
Hi there, I am new here, so greetings. My name is Edd and I am experimenting with context as a replacement for pdflatex when I do my dissertation next year. I am using texlive 2007 on OpenBSD which includes context. I am probably now going to ask some really dumb questions.. Here goes. --- A) I am trying to get a logo to appear in the top left of every page. I have already discovered that I can include a graphic like so: \externalfigure[shift] This works just fine However if I try to define a logo like so: \definelogo[logo][top][left] [command={\externalfigure[shift]}, state=start] I am presented with this error: layout : calculating logospace ./shift.png figures : dimensions of shift are determined externally (./template.tuo ! Undefined control sequence. l.11 \t hisissectionseparator{-} Specifying a height and width does not help either. --- B) Is there an equivilent to the RCS package for latex. Basically it parses version control tags from CVS/RCS. --- C) Is there a book on context (apart from the PDF on the main website). What other documentation exists. I have already found contextgarden and that has proven very useful. Thanks -- Best Regards Edd --- http://students.dec.bournemouth.ac.uk/ebarrett ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Logos in context / Miscellaneous questions
Edd Barrett wrote: ! Undefined control sequence. l.11 \t hisissectionseparator{-} weird error try layers instead of logos (see wiki), more powerfull and easier to use Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Logos in context / Miscellaneous questions
On Mon, 17 Sep 2007, Edd Barrett wrote: B) Is there an equivilent to the RCS package for latex. Basically it parses version control tags from CVS/RCS. There are a couple of RCS packages for LaTeX. Can you elaborate on what functionality you need. Most of it is pretty straightforward to port to ConTeXt. C) Is there a book on context (apart from the PDF on the main website). There are few manuals for specific topics also, which are availabe from Prama-ade's website. What other documentation exists. There are a few MyWays, which document features that are not mentioned in the manuals. There are also articles in MAPS, Practex journal and Tugboat, but most of them are about new or advanced features. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___