Re: [NTG-context] presentation module
Le Mon, 16 Jul 2007 11:35:04 +0200, Thomas A. Schmitz a écrit : > Hi all, > > I have played around a bit and prepared a module to produce > presentations with ConTeXt. It is inspired (of course) by Hans's > work, but provides less frills and an easier interface; I hope it is > especially suited for academic presentations. Before I actually > unleash it on the unsuspecting masses, I would be grateful if > somebody could test it. It comes with a demo file and some > documentation, so all you have to do is run it through ConTeXt; I > want to make sure that it'll work on other installations than mine. > If you're interested, drop me a line, and I'll send it to you (it's > just a zip file of 233 k). > > All best Hi Thomas, I've played with your presentation module and fond it nice to see. In order to have it working on my system, I've "adapted" t-taspresent.tex to my system needs (ubuntu + sanjoy's texlive repository = context version:2007.04.17) : line 169 : commented \usetypescriptfile[type-gyr] line 554 : changed from a = 2*NOfPages-1 ; to numeric a ; a = 2*NOfPages-1 ; line 555 : changed from c = PaperHeight/a ; to numeric c; c = PaperHeight/a ; HTH. Thanks for providing us both nice model and well commented source. -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ 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] presentation module
Olivier, thanks so much! This helps enormously -- I had a few reports that these assignments were troublesome, but couldn't reproduce them on my system, so I'm very grateful you provide a solution! (Note to self: will have to ask Taco why this works on some systems but not on others.) I'll upload a new and (I hope) much improved version this weekend! Best Thomas On Jul 21, 2007, at 11:10 AM, olivier Turlier wrote: > Hi Thomas, > I've played with your presentation module and fond it nice to see. > In order to have it working on my system, I've "adapted" t- > taspresent.tex > to my system needs (ubuntu + sanjoy's texlive repository = context > version:2007.04.17) : > line 169 : commented \usetypescriptfile[type-gyr] > line 554 : changed from a = 2*NOfPages-1 ; to numeric a ; a = > 2*NOfPages-1 ; > line 555 : changed from c = PaperHeight/a ; to numeric c; c = > PaperHeight/a ; > > HTH. Thanks for providing us both nice model and well commented > source. > ___ 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] \type{__}
On Sat, 21 Jul 2007 01:35:15 +0200 "Wolfgang Werners-Lucchini" <[EMAIL PROTECTED]> wrote: > Hmm, two leading underscores in titles are not allowed? > > Wolfgang > > \starttext > \section{The \type{_\_problem} is} \section{The \retype{__problem } is} I inserted the space after problem because ConTeXt gobbles the space after \retype, a bug? Wolfgang > Here the \type{__problem} is not. > \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 > ___ ___ 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] \type{__}
On Sat, 21 Jul 2007 01:35:15 +0200 "Wolfgang Werners-Lucchini" <[EMAIL PROTECTED]> wrote: > Hmm, two leading underscores in titles are not allowed? > > Wolfgang > > \starttext > \section{The \type{_\_problem} is} \section{The \retype{__problem } is} I inserted the space after problem because ConTeXt gobbles the space after \retype, a bug? Wolfgang > Here the \type{__problem} is not. > \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 > ___ ___ 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] TABLE problems
On Sat, 21 Jul 2007 01:19:24 +0200 "Wolfgang Werners-Lucchini" <[EMAIL PROTECTED]> wrote: > Hallo, > > I have two problems/questions with the following tables: > > 1. Should'nt all the columns be .2\textwidth, as in the last table? > 2. Why expands column width to \textwidth in the second table? >Has to do with \type{} and/or color! > 3. Why behaves table 1 (with \type{}) as table 3 (whitout \type{})? > Wolfgang Hi Wolfgang, sorry, no to your questions but the following setup works: \setupTABLE[row][odd][background=color,backgroundcolor=lightgray] \setupTABLE[width=.2\textwidth] why do you repeat the setup command for every table, the first one is global and should work for every table in your document, unless you make a setup local within a group or a float. Wolfgang > \setupcolors[state=start] > \starttext > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD \type{short} \eTD \bTD reads the whole file \eTD \eTR > \bTR \bTD kurz \eTD \bTD reads a string with up to num characters > \eTD \eTR > \eTABLE > > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR > \bTR \bTD \type{kurz} \eTD \bTD reads a string with up to num > characters \eTD \eTR > \eTABLE > > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR > \bTR \bTD kurz \eTD \bTD reads a string with up to num characters > \eTD \eTR > \eTABLE > > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD kurz \eTD \bTD reads a string with up to num characters > \eTD \eTR > \eTABLE > > \input tufte > \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 > ___ ___ 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] Several environments in a project?
I had the same question and came to the following solution. The component files begin as follows: \startcomponent extreme-cases \product book \project project \startnotmode[*product] \environment env_book \stopnotmode ... Here, env_book.tex is the product-specific environment file, which is called at the beginning of the product file book.tex. If only a component is being run, the \startnotmode[*product] will ensure that env_book is read in anyway. Let me know if that does what you want (CC me as well as the list, since I'm highly irregular in reading list email these days, due to having a baby, and might miss your response otherwise). -Sanjoy "Creativity can be a social contribution, but only in so far as society is free to use the results." --Richard Stallman ___ 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] Several environments in a project?
On Sat, 21 Jul 2007, Sanjoy Mahajan wrote: > I had the same question and came to the following solution. The > component files begin as follows: > > \startcomponent extreme-cases > \product book > \project project > > \startnotmode[*product] > \environment env_book > \stopnotmode > ... > > Here, env_book.tex is the product-specific environment file, which is > called at the beginning of the product file book.tex. If only a > component is being run, the \startnotmode[*product] will ensure that > env_book is read in anyway. I think that \startnotmode is not needed. \environment is smart enough to read the file only once. So, if the file has been read in the product, it will not be read again when the component is processed. 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 ___
[NTG-context] Combining two pages on one, in landscape mode
Dear list members, the following command: texexec --pdfcombine \ --combination=2*1 \ --paperformat=landscape \ --nobanner \ --result=twoinone.pdf \ file1.pdf file2.pdf used to work to get file1.pdf and file2.pdf in twoinone.pdf with two pages at one, and in landscape mode. However, since installing ConTeXt 20070403 (the minimal version), this no longer works for me. I get the output "texexec: No match." I also get the same error with the ConTeXt coming with texlive on ubuntu feisty. Any ideas of how to solve this? Thanks in advance /Micke P ___ 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] Combining two pages on one, in landscape mode
A shot in the dark: depending on your shell, you may need to put the 2*1 part in quotes, so try --combination='2*1' HTH Thomas On Jul 21, 2007, at 7:14 PM, Mikael Persson wrote: > Dear list members, > > the following command: > > texexec --pdfcombine \ > --combination=2*1 \ > --paperformat=landscape \ > --nobanner \ > --result=twoinone.pdf \ > file1.pdf file2.pdf > > used to work to get file1.pdf and file2.pdf in twoinone.pdf with two > pages at one, and in landscape mode. However, since installing ConTeXt > 20070403 (the minimal version), this no longer works for me. I get the > output "texexec: No match." > > I also get the same error with the ConTeXt coming with texlive on > ubuntu feisty. > > Any ideas of how to solve this? > > Thanks in advance > > /Micke P > __ > _ > 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] factor=fit images don't fit
Hi, What version of ConTeXt are you using? I just noticed a difference a few days ago between the version installed by TeXLive 2007 and the April 2007 release (tested locally & through contextgarden) placing an image into a natural table, using factor=max. I'll post an example in a separate thread shortly. Regards, Brian On Jul 20, 2007, at 7:05 AM, Giuseppe Bilotta wrote: > Friday, July 20, 2007 Giuseppe Bilotta wrote: > >> Hello all, > >> I have to place a number of images into some given-size >> frames in a layer. The images should be scaled >> proportionally to fit into the frame. The code I'm working >> with is: > >> \defineframed[framedimg][ >> frame=on,framecolor=elux, >> background=color, >> backgroundcolor=white, >> width=\wdfig, >> height=\htfigone, >> offset=overlay, >> ] > >> \setlayer[figs][voffset=\nextfigvoff]{% >> \framedimg{% >> \externalfigure[#1][ >> factor=fit, >> % maxwidth=\wdfig, >> % maxheight=\htfigone, >> % frame=on, >> ]% >> }% >> }% > >> where \wdfig, \htfigone are the frame size and \nextfigvoff >> is the vertical offset which must be placed. I've tried >> factor=fit, factor=max, but in both cases I get images which >> cross the boundaries of the frame, mostly in the horizontal >> direction. If I add the maxwidth/maxheight specification, >> images don't get scaled at all. > >> I would expect factor=fit to scale the image in such a way >> that the biggest direction fits into the enclosing box, >> while factor=max would scale the image in such a way that >> the smallest direction fits into the enclosing box. Instead, >> in both cases the vertical direction is being fitted, with >> no apparent consideration for the horizontal direction. > >> What am I doing wrong and what should I do to fix it? > > Ok, I've tried studying the source and I really think that > the way factor scaling is computed is wrong. However, the > fix is nontrivial, and a somewhat thorough checking should > be implemented, with earlier check for the factor value > (fit, max, broad), since the logic selecting which dimension > to scale depends on the kind of scaling. > > Anyway, I've found a temporary solutin to my problem by > using a very large value of scale=, coupled with appropriate > maxwidth and maxheight values. > > -- > Giuseppe "Oblomov" Bilotta > > __ > _ > 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 ___
[NTG-context] Some minor issus
Hi everybody, currently I am doing the final layout of my thesis for which I used context. I am now struggeling with two thing, which I think might be minor issus for some of you, but not so for me ;) First, some of my URLs within footnotes are wider as the textwidth. Is there a way to force a line break other than defining break points for each of it? Maybe even with a nice symbol identicating the forced break? Second problem is the formatting of the in text references. it would be nice if there is a way they were not bold. I tried different things with \setupreferencing but the text stayed bold. I could not find something in regards to this topic in the manual or in the wiki. My thrid problem is, how can I force context not to continue footnotes on another page? And a similar thing ... how can I achieve that there are always at least two lines of a paragraph on each page if this paragraph is split between two pages. I tried \clubpenalty and \widowpenalty as well as \def\defaultwidowpenalty and \def\defaultclubpenalty. But I am not really sure what the numbers identicate. I guess not the lines ... Thanks in advance for all answers, once I am finished I am going to add this information to the wiki. Maybe it is already there but I could not find it ... Steffen ___ 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] old textbook style
Hello, I've always liked the style of old textbooks, where important terms were emphasized not by bold or italic, but extra spacing between letters. How to achieve this in ConTeXt? Best, Vyatcheslav ___ 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] Combining two pages on one, in landscape mode
Thank you Thomas, that was it! /Micke P On 7/21/07, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > A shot in the dark: depending on your shell, you may need to put the > 2*1 part in quotes, so try > --combination='2*1' > > HTH > > Thomas > > On Jul 21, 2007, at 7:14 PM, Mikael Persson wrote: > > > Dear list members, > > > > the following command: > > > > texexec --pdfcombine \ > > --combination=2*1 \ > > --paperformat=landscape \ > > --nobanner \ > > --result=twoinone.pdf \ > > file1.pdf file2.pdf > > > > used to work to get file1.pdf and file2.pdf in twoinone.pdf with two > > pages at one, and in landscape mode. However, since installing ConTeXt > > 20070403 (the minimal version), this no longer works for me. I get the > > output "texexec: No match." > > > > I also get the same error with the ConTeXt coming with texlive on > > ubuntu feisty. > > > > Any ideas of how to solve this? > > > > Thanks in advance > > > > /Micke P > > __ > > _ > > 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 > ___ > ___ 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] \setupheader: leftstyle & rightstyle not working
[sorry if this appears twice--I accidentally sent it from the wrong e-mail account] Hi, all-- I would like to use different styles for left and right headers in a book: I would like to set the left side (which shows the book title) in small caps, and the right side (chapter title) in italics. \setupheader[style=\sc] works fine. So does \setupheader[style=\it] But \setupheader[leftstyle=\sc,rightstyle=\it] Doesn't work. Both headers appear in the (medium-weight roman) body font. Any idea why this is the case? -- Matt Gushee ___ 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 ___