Re: [NTG-context] The whole (sub)section on a single page
Hans Hagen wrote: Mojca Miklavec wrote: Taco Hoekwater wrote: Mojca Miklavec wrote: It doesn't need to automatically determine the subsection boundaries automatically (although this would be great), so I can write something like this: \startmaterialforonepage \subsection{split only if too long for one page} \dorecurse{10}{whatever comes here \dots } \stopmaterialforonepage Do you want something like this? \long\def\startmaterialforonepage#1\stopmaterialforonepage% {\setbox0\vbox{#1}\ifdim\ht0\textheight \page\fi #1} Thak you, Taco. Yes, this is almost exactly what I wanted to do, except that I would substitute \ifdim\ht0\textheight with \ifdim\ht0\theremainingpageheight How/where can I get \theremainingpageheight? I saw some strange keywords like \pagegoal, \pagetotal spread through the source, ... but I have no clue what they are for and if they have anyting to do with what I'm looking for. that's always tricky, because it's not really possible to determine the rest of the available space without entering the output routing, which then spoils spacing (there is \testpage[n] with n being a minimal number of lines, so, \testpage[10] will move to the next page if there are less than 10 lines) Thank you, Hans. I have to refresh my knowledge about the syntax and I'll try it out. Making \setbox0\vbox{#1} and then executing the \testpage with ceil(ht0 / lineheight) should then work OK, I hope. I understand the problem of the approach that I asked for: as soon as someone enters a \vfill(l) or \vss, it's approximately impossible to determine where the text on the page ends. But in the first approximation I would be satisfied with the empty space that would remain if the document ended at that specific place. That information is also very valuable when trying to put pictures on slides, where picture has to be as big as possible, but still has to fit on the space under the title (I tuned them manually, which was OK for just a couple of slides). Thank you, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] The whole (sub)section on a single page
Mojca Miklavec wrote: Hans Hagen wrote: Mojca Miklavec wrote: Taco Hoekwater wrote: Mojca Miklavec wrote: It doesn't need to automatically determine the subsection boundaries automatically (although this would be great), so I can write something like this: \startmaterialforonepage \subsection{split only if too long for one page} \dorecurse{10}{whatever comes here \dots } \stopmaterialforonepage Do you want something like this? \long\def\startmaterialforonepage#1\stopmaterialforonepage% {\setbox0\vbox{#1}\ifdim\ht0\textheight \page\fi #1} Thak you, Taco. Yes, this is almost exactly what I wanted to do, except that I would substitute \ifdim\ht0\textheight with \ifdim\ht0\theremainingpageheight How/where can I get \theremainingpageheight? I saw some strange keywords like \pagegoal, \pagetotal spread through the source, ... but I have no clue what they are for and if they have anyting to do with what I'm looking for. that's always tricky, because it's not really possible to determine the rest of the available space without entering the output routing, which then spoils spacing (there is \testpage[n] with n being a minimal number of lines, so, \testpage[10] will move to the next page if there are less than 10 lines) Thank you, Hans. I have to refresh my knowledge about the syntax and I'll try it out. Making \setbox0\vbox{#1} and then executing the \testpage with ceil(ht0 / lineheight) should then work OK, I hope. even that is tricky, imagine your method (along the lines): - \setbox0\vbox{\startitemize ... \stopitemize} - measure and decide if \page is needed - \unvbox0 putting something in a box prevents for instance \blank looking back and getting the spacing right (context goes to a large extent to get spacing right) text ... blank or interpar space and if needed depth correction vbox with embedded blanks leading to too much whitespace text preceded by tex's auto skips that can't look into the box even unvboxing does not help since esp the top of box damage has been done and is irreversible unless you do clever trickery officially you need something \startboxed ... \stopboxed where the start/stop do some housekeeping what you can try is to define an instance of framedtext (\startframedtext \stopframedtext) with no offsets and frame since that macro does reasonable job on spacing and still keeps things together Hans I understand the problem of the approach that I asked for: as soon as someone enters a \vfill(l) or \vss, it's approximately impossible to determine where the text on the page ends. But in the first approximation I would be satisfied with the empty space that would remain if the document ended at that specific place. That information is also very valuable when trying to put pictures on slides, where picture has to be as big as possible, but still has to fit on the space under the title (I tuned them manually, which was OK for just a couple of slides). Thank you, Mojca ___ 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
[NTG-context] updates
Hi, The next couple of weeks there will probably more 'updates' than normal; this is due to the fact that i'm adding long due features and such. I also want to move on to the ruby variants of texexec and texutil, so i want the latest versions to be available (for testers). Currently I'm uploading a version that - fixes a problem introduced when implementing the \currentvalue hack (side effect was that the non english interfaces behaved weird) - a long standing wish of g.b. dealing with indentation (i tried to provide a more or less robust solution); the following works ok here (gb/taco: \noindent does not work in such cases, one really needs to make a handler the last action taken after a stop...; btw, suppressing a next indendation is best done with \noindentation which is what the auto thing used deep down) \setupindenting[small,yes] \setupitemize [indentnext=auto] \setuptyping [indentnext=auto] \setupformulas[indentnext=auto] \starttext \input tufte \startitemize \item ccc \stopitemize \input tufte \startitemize \item ccc \stopitemize \input tufte \startitemize \item ccc \stopitemize \page \input tufte \starttyping ccc \stoptyping \input tufte \starttyping ccc \stoptyping \input tufte \starttyping ccc \stoptyping \page \input tufte \startformula a = b \stopformula \input tufte \startformula a = b \stopformula \input tufte \startformula a = b \stopformula \stoptext Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context 2005.11.15 Released
Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://www.pragma-ade.com/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip If you have not updated your Latin Modern fonts in the past month, then you will need to fetch the latest redistribution of the LM fonts as well: http://www.pragma-ade.com/context/current/cont-lmt.zip http://www.pragma-ade.com/context/current/cont-lmt.zip http://mirror.contextgarden.net/context/current/cont-lmt.zip The current release has version 2005.11.15. As usual, there is a page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Context_2005.11.15 New features compared to the 2005.11.14 version: * A new key in \setupregister: prefix= This controls page prefixes in index ranges * New functionality: indentnext=auto Blank lines in the source are taken into account when indextnext=auto is in effect. A really short example of usage would be: \setupindenting[small,yes] \setupformulas[indentnext=auto] \starttext \startformula a = b\stopformula \input tufte % blank line = with indentation \startformula a = b\stopformula \input tufte % no blank line = no indentation \stoptext Bugs fixed since the 2005.11.14 version: * A bug in the new extension of definitions inside assignments feature in 2005.11.11 accidentally broke the non-english interfaces. Happy TeXing, Taco Hoekwater ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] diacritics in Utopia/Fourier
I am running the latest version of ConTeXt and ran into a problem with some diacritical marks using %Fourier/Utopia Expert \usetypescript[type-syn] \usetypescript[fourier][\defaultencoding] \setupbodyfont[fourier,10.5pt] While \={\i} and \=a, for example, work as expected when the font is “italic” or bold, I get garbage when it is just roman. Is this a problem with the font encoding or is there something / different new that I must do to put macrons and so forth over letters in the roman typeface? Best, Alan PS A sample line— `Ibn Rushd: Critique d'Ibn S\={\i}n\={a} ou le retour \`a Aristote'. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] diacritics in Utopia/Fourier
Alan Bowen wrote: I am running the latest version of ConTeXt and ran into a problem with some diacritical marks using %Fourier/Utopia Expert \usetypescript[type-syn] \usetypescript[fourier][\defaultencoding] \setupbodyfont[fourier,10.5pt] While \={\i} and \=a, for example, work as expected when the font is �italic� or bold, I get garbage when it is just roman. Is this a problem with the font encoding or is there something / different new that I must do to put macrons and so forth over letters in the roman typeface? strange ... normally the encodings match for such fonts ... adam might now Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] Context 2005.11.14 Released
= Original Message From Hans Hagen [EMAIL PROTECTED] = fix for dvipdfmx map files? :-) i sent you one which you were supposed to test -) that one is in ctxtools ok, i'll do it in the next day or so-) Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2005.11.15 Released
Tuesday, November 15, 2005 Taco Hoekwater wrote: * New functionality: indentnext=auto Blank lines in the source are taken into account when indextnext=auto is in effect. A really short example of usage would be: \setupindenting[small,yes] \setupformulas[indentnext=auto] \starttext \startformula a = b\stopformula \input tufte % blank line = with indentation \startformula a = b\stopformula \input tufte % no blank line = no indentation \stoptext YOH! Hans, I love you, will you marry me? ;) (BTW, I'm wondering if auto should be the default indentnext setting for the displays? Or would that be pressing too much? :)) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2005.11.15 Released
Hi I have another request about indentnext. Is there a chance that a new release will optionally make \placefloat transparent, even in the here case? This would often be useful after enunciations and paragraph blocks (answers/exercises). Greetings, Taco Giuseppe Bilotta wrote: Tuesday, November 15, 2005 Taco Hoekwater wrote: * New functionality: indentnext=auto Blank lines in the source are taken into account when indextnext=auto is in effect. A really short example of usage would be: \setupindenting[small,yes] \setupformulas[indentnext=auto] \starttext \startformula a = b\stopformula \input tufte % blank line = with indentation \startformula a = b\stopformula \input tufte % no blank line = no indentation \stoptext YOH! Hans, I love you, will you marry me? ;) (BTW, I'm wondering if auto should be the default indentnext setting for the displays? Or would that be pressing too much? :)) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2005.11.15 Released
Taco Hoekwater wrote: Hi I have another request about indentnext. Is there a chance that a new release will optionally make \placefloat transparent, even in the here case? what do you mean with transparent? Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2005.11.15 Released
Giuseppe Bilotta wrote: YOH! Hans, I love you, will you marry me? ;) well, sending me a copy of your thesis once it's finished would be a good start -) (BTW, I'm wondering if auto should be the default indentnext setting for the displays? Or would that be pressing too much? :)) indeed too much a compatibility issue i was thinking of a module or so: m-indent (or s-indent) or maybe a more generic module with setups (m-setups), so that one can say: \setups[auto-indent] an alternative is to change (in the several \setupcommands) the yes/no's into something autoyes and autono which will default to yes/auto no/auto depending on the global setting of yes/auto (part of a definable method); does that make sense? Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2005.11.15 Released
Hans Hagen wrote: Taco Hoekwater wrote: Hi I have another request about indentnext. Is there a chance that a new release will optionally make \placefloat transparent, even in the here case? what do you mean with transparent? I meant: treated as if it was not present. I could have sworn it sometimes destroys the indentnext=no setting, but cannot reproduce that effect with a simple test file. Will do some digging through sources later this week, (it is even possible that the 'auto' patched fixed it) Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bold math not mathitalic
I am using the follwing (extracted) typescript lines for math in the lucida fonts:\starttypescript [luc] \definetypeface [luc][mm][math][lucidayy][default][encoding=texnansi] \definetypeface [luc][mm][bfmath][lucidayy][default][encoding=texnansi]\stoptypescript\starttypescript [math] [lucidayy] [default] \definebodyfont [default] [mm] [mr=MathRoman mo 1, mi=MathItalic mo 1, ]\stoptypescript\starttypescript [bfmath] [lucidayy] [default] \definebodyfont [default] [mm] [mrbf=MathRomanBold mo 1, mibf=MathItalicBold mo 1, ]\stoptypescript\starttypescript [math] [lucidayy] [name] \definefontsynonym [MathRoman] [LucidaBright] \definefontsynonym [MathItalic] [LucidaNewMath-AltItalic]\stoptypescript\starttypescript [math] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright] [hlhr8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltItalic] [hlcrima]\stoptypescript\starttypescript [bfmath] [lucidayy] [name] \definefontsynonym [MathRomanBold] [LucidaBright-Demi] \definefontsynonym [MathItalicBold] [LucidaNewMath-AltDemiItalic]\stoptypescript\starttypescript [bfmath] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright-Demi] [hlhb8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltDemiItalic] [hlcdima]\stoptypescriptTypesetting:\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptext Gives me for the variables neatly LucidaNewMath-AltItalic.But typesetting\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\bfmath\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptextGives me LucidaBright-Demi instead of LucidaNewMath-AltDemiItalic.Everything else however (even the blackletters from ma) are in the correct bold math font.The font must be present, because substituting MathItalicBold for MathItalic in the [math] script proves that.It seems that mibf has not been substituted, but instead used the mr typeface.Could this be a flaw in the (bold)math handling? For example a wrong fam chosen in the font switch?It seems weird that everything behaves neat except for the bold math italic.Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font problems again
Two more questions: (1) On Nov 14, 2005, at 0:07, Hans Hagen wrote: Hans van der Meer wrote: No help from enabling in cont-sys.tex of: \usetypescript[adobekb] [\defaultencoding] (updmap.cfg contains URWkb for the LW35 fonts) then it starts asking for (non-existing) maps like: Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file that is when you use texfont generated metrics texfont --encoding=ec --batch type-tfm.dat will generate those metrics (which are the ones i use) Do I now understand correctly that I MUST use texfont first in order to work with fonts in ConTeXt? I did not realize that when going over to the new tetex setup. I guess the typescripts for the lm/cmr fonts are ready-made in the context distribution? Is there somewhere a script to do this (somewhat painless) for the regular fonts in the teTeX distribution or should I generate just by hand for whatever font I need? (2) about math typesetting Although computer modern (lm fonts) now appear in text, there is something strange with math. Running the next example coming from the ConTeXt manual (page 103): \starttext {$\sqrt{a^2 + b^2} = c\ \hbox{whatever} + \sin(2x)$} math\crlf {$\bf \sqrt{a^2 + b^2} = c\ \hbox{whatever} + \sin(2x)$} boldmath BUT `sin' ISN'T, sqrt NEVER IS \crlf {$\bf\mf \sqrt{a^2 + b^2} = c\ \hbox{whatever} + \sin(2x)$} boldmath NOW `sin' IS, sqrt NEVER IS \crlf \stoptext The second line doesn't show the sin in bold as contrasted with the special remark in the manual. I does show in bold with \mf however. Has the math behaviour changed meanwhile? Or does it point to still another flaw in my setup? The following fonts appear in the pdf (as seen in Adobe Reader): CMMI12, CMSY10, LMRoman12-Bold (and 9), LMRoman12-Regular (and 9). in comparison, the following LaTeX example has the right behaviour: \documentclass{article} \begin{document} {$\sqrt{a^2 + b^2} = c$} math\hfill\break {\boldmath$\sqrt{a^2 + b^2} = c + \sin{}x$} boldmath\par \end{document} Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Context 2005.11.15 Released
Tuesday, November 15, 2005 Hans Hagen wrote: Hans, I love you, will you marry me? ;) well, sending me a copy of your thesis once it's finished would be a good start -) That's really not a problem :) (BTW, I'm wondering if auto should be the default indentnext setting for the displays? Or would that be pressing too much? :)) indeed too much a compatibility issue i was thinking of a module or so: m-indent (or s-indent) or maybe a more generic module with setups (m-setups), so that one can say: \setups[auto-indent] an alternative is to change (in the several \setupcommands) the yes/no's into something autoyes and autono which will default to yes/auto no/auto depending on the global setting of yes/auto Uh ... yes, I think something like \setupformulas[indentnext=default|yes|no|auto] \setupitemgroup[indentnext=default|yes|no|auto] etc and then \setups[indentnext=yes|no|auto] ? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font problems again
Hi Hans, (I am not really going to answer you, sorry). I usually ignore those cannot find encoding-urw-family.map messages (yes, I get them as well). The needed font mapping lines for the 'base' postscript fonts are also in encoding-base.map, and that file usually is found. The message is often just paranoia from context. Hi other Hans, Another question from me: wasn't there a \boldmath in one of the third party math modules? And if yes, is it possible that that be added to the core in some way / some day? Cheers, Taco Hans van der Meer wrote: Two more questions: (1) On Nov 14, 2005, at 0:07, Hans Hagen wrote: Do I now understand correctly that I MUST use texfont first in order to work with fonts in ConTeXt? ? (2) about math typesetting Or does it point to still another flaw in my setup? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context