Re: [NTG-context] Aligning numbers in the footnote block

2011-05-24 Thread Oliver Buerschaper
\setupnotedefinition [footnote] [ location=left, headalign=flushright, width=1em, distance=1ex] This comes very close to what I have in mind :-) Is it possible to not fix the width globally but rather use the largest actual width encountered in any single footnote block? That

Re: [NTG-context] Punctuation in bibliography

2011-05-24 Thread Oliver Buerschaper
Would be nice to know. In my publication list after all titles are two points, like: That's the title. . Realy ugly and I don't know why. Is that a known problem? Well, that you can easily avoid by not putting a full stop after the title in the database if I'm not mistaken :-) Usually

Re: [NTG-context] Punctuation in bibliography

2011-05-24 Thread Oliver Buerschaper
Would be nice to know. In my publication list after all titles are two points, like: That's the title. . Realy ugly and I don't know why. Is that a known problem? Well, that you can easily avoid by not putting a full stop after the title in the database if I'm not mistaken :-)

Re: [NTG-context] getmarking and empty chapter number

2011-05-24 Thread Oliver Buerschaper
%D \macros %D {doiftextelse, doiftext} %D %D When \type {\doifelse} cum suis hopelessly fail, for %D instance because we pass data, we can fall back on the next %D macro: %D %D \starttyping %D \doiftextelse {data} {then branch} {else branch} %D \doiftext {data} {then branch} %D

[NTG-context] Aligning numbers in the footnote block

2011-05-24 Thread Oliver Buerschaper
Dear all, is there a way to align the numbers in the footnote block (flush) right as is done without the key location=left in the following? I don't want the numbers in the margin though… --- \setupdescriptions [footnote] [location=left, distance=1ex] \setupnote [footnote]

[NTG-context] Punctuation in bibliography

2011-05-24 Thread Oliver Buerschaper
Dear all, is there a way for the bibliography style to scan back for punctuation marks before it inserts punctuation of its own? Please see --- \startpublication [a={Ellen Dissanayake}, k=DIS:wha, t=book, y=1988] \author{Ellen}[E.]{}{Dissanayake} \lang{en}

[NTG-context] \startquotation and citations

2011-05-23 Thread Oliver Buerschaper
Dear all, I'm struggling with quotation blocks and proper placing of citations… In an ideal world I'd be striving for something like this: \startquotation[source=…] \input tufte \stopquotation where … could be either of: 1. a simple string: {Edward Tufte}, 2. a citation command:

[NTG-context] Table of contents

2011-05-23 Thread Oliver Buerschaper
Dear all, is it possible to have entries in the table of contents not indented at all whenever they stem from unnumbered headings? For example: --- \starttext \startfrontmatter \completecontent \chapter{Preface} \stopfrontmatter \startbodymatter \part{Test}

[NTG-context] Font features for \ss only?

2011-05-23 Thread Oliver Buerschaper
Hi all, how would I make sure that \ss always uses one set of font features while \rm always uses the default feature set? Do I need to specify this in the typescript file? The reason is I'm using Myriad as \ss font and would like to enable the capital spacing (cpsp) OpenType feature for that

[NTG-context] getmarking and empty chapter number

2011-05-23 Thread Oliver Buerschaper
Hi all, I'm just trying to wrap my mind around why the following doesn't work as I expect: -- \setupheadertexts [] [{\doifsomething{\getmarking[sectionnumber]}{\getmarking[sectionnumber]\enskip}\getmarking[section]}]

[NTG-context] Plea for unicode help

2011-05-05 Thread Oliver Buerschaper
Hi there, I'm experiencing a very strange error related to unicode at the moment and I can't pin down the problem for the life of me… The situation: I'm using context mkvi (2011.04.20 16:23) on Mac OS 10.6.7 (with the latest font patches in particular) and TeXShop 2.41. In my tex source file

Re: [NTG-context] Custom cite commands

2011-05-05 Thread Oliver Buerschaper
I'm in need for a few custom cite commands like these: 1. \cite[alternative=authortitle, extras={, p.\,13}][citekey] should yield {\sc AuthorLastName}, AuthorFirstName, {\it title}, p.\,13 2. \cite[alternative=title][citekey] {\it title} How would I code these commands? There is

Re: [NTG-context] Plea for unicode help

2011-05-05 Thread Oliver Buerschaper
Has anyone seen this before? I wanted to ask up front before I really start digging into the issue… I might have missed something obvious. Check the hexdump of the file. Chances are that one of them has í directly, and one a combination of dotlessiacuteaccent. Awesome hint… hits the nail

Re: [NTG-context] Plea for unicode help

2011-05-05 Thread Oliver Buerschaper
Awesome hint… hits the nail on the head! The faulty version (i.e. the one not appearing in the PDF with Minion Pro) isdotlessiacuteaccent (whereacuteaccent appears to translate to CC81 in hex, correct?). Yes. Useful site for find out stuff like that without having to do utf-8

[NTG-context] Custom cite commands

2011-05-02 Thread Oliver Buerschaper
Dear all, I'm in need for a few custom cite commands like these: 1. \cite[alternative=authortitle, extras={, p.\,13}][citekey] should yield {\sc AuthorLastName}, AuthorFirstName, {\it title}, p.\,13 2. \cite[alternative=title][citekey] {\it title} How would I code these commands? Oliver

Re: [NTG-context] Bug: footnote's textcommand overflows?

2011-04-25 Thread Oliver Buerschaper
Use “textstyle”, command keys expect commands with argument and not font/style switches. Thanks for the explanation. Will keep that in mind… Oliver ___ If your question is of interest to others as well, please add

[NTG-context] Bug: footnote's textcommand overflows?

2011-04-24 Thread Oliver Buerschaper
Dear all, there appears to be a bug in the handling of font features in footnotes… the following messes up the footnote block in 2011.04.20 16:23, but yields the expected result in 2011.02.14 23:30. --- \definefontfeature [superscripts] [default] [sups=yes] \usetypefile

Re: [NTG-context] Bug: footnote's textcommand overflows?

2011-04-24 Thread Oliver Buerschaper
there appears to be a bug in the handling of font features in footnotes… the following messes up the footnote block in 2011.04.20 16:23, but yields the expected result in 2011.02.14 23:30. Even shorter example (with Latin Modern): --- \definefontfeature [superscripts] [default]

Re: [NTG-context] First and last lines on a grid

2011-04-23 Thread Oliver Buerschaper
This should do the trick: \define[1]\PagenumberCommand {\smash[d]{#1}} \setuppagenumbering [ strut=no, command=\PagenumberCommand] And how well it does it! Now I managed to align the last line of the grid with the textblock's frame: --- \definemeasure [gridWidth]

[NTG-context] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
Dear all, I'm having a little trouble with grids and page layout… I'm trying to align the first and last line of a page properly with the frame of the textblock. That is, I'd like to position the first baseline a certain distance below the textblock's upper border (say, the height of a C or

Re: [NTG-context] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
Also I'd like to typeset the page number flush with the lower border of the footer frame. How would I achieve that? \setuppagenumbering[strut=no] That's wonderful! Any idea about the other thing? Thanks, Oliver

Re: [NTG-context] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
Also I'd like to typeset the page number flush with the lower border of the footer frame. How would I achieve that? \setuppagenumbering[strut=no] I just realized that when I use oldstyle figures any pagenumber with a descender is bumped upwards a little. Is there a way to have them

Re: [NTG-context] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
I just realized that when I use oldstyle figures any pagenumber with a descender is bumped upwards a little. Is there a way to have them protrude (vertically) beyond the frame border? This should do the trick: \define[1]\PagenumberCommand {\smash[d]{#1}} \setuppagenumbering [

Re: [NTG-context] font cache

2011-03-07 Thread Oliver Buerschaper
I was quite surprised that I can't run context.lua (eg. for making formats) anymore, after I cleaned the cache. When I did it (mtxrun --script cache --erase), Is there something I can do to get my context install running again? mtxrun --generate (re)creates the luatex filename database and

Re: [NTG-context] Bug

2011-02-15 Thread Oliver Buerschaper
I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this didn't happen… are included files now automatically terminated by an implicit \par? Personally I would find that confusing. No answer to your question, just a workaround: \starttext \section{Paragraph} \input

Re: [NTG-context] delimitedtext, spacebefore and grid

2011-02-14 Thread Oliver Buerschaper
Not sure if there are side effects but this works (requires mkiv and a recent installation): \setuplayout[grid=yes]\showgrid \setupbodyfont[14pt] \usemodule[annotation] \define[2]\ZitatCommand {\topskip\dimexpr\topskip+\lineheight/2\relax \startnarrower “#2”% \stopnarrower}

Re: [NTG-context] Bug

2011-02-14 Thread Oliver Buerschaper
here's a bug with quotations in 2011.02.11 18:18 MKIV: --- \starttext \startquotation \input tufte \stopquotation \stoptext --- The closing delimiter should be placed on the same line. This isn’t a bug, the included file ends the paragraph before \stopquotation adds the right

Re: [NTG-context] delimitedtext, spacebefore and grid

2011-02-14 Thread Oliver Buerschaper
Unfortunately introducing a \blank just before the last \input tufte in the above example breaks grid alignment. The afterspace-value from \stopzitat is ignored with your \blank and you get only one empty line while you need one and a half (one from the \blank command and a half from

Re: [NTG-context] delimitedtext, spacebefore and grid

2011-02-14 Thread Oliver Buerschaper
In the long run would it be possible in grid mode to have \blank insert 1+x lines of vertical space where x is adjusted such that the following material is aligned on the grid? … or simply make it not swallow the previous halfline correction from the quotation? Oliver

[NTG-context] Bug

2011-02-13 Thread Oliver Buerschaper
Hi, here's a bug with quotations in 2011.02.11 18:18 MKIV: --- \starttext \startquotation \input tufte \stopquotation \stoptext --- The closing delimiter should be placed on the same line. Oliver ___ If your

Re: [NTG-context] delimitedtext, spacebefore and grid

2011-02-11 Thread Oliver Buerschaper
I want to have both a halfline space before and after blockquotations. Normally, this works fine; after the quotation the main text snaps back to the grid (see page 3 of the example file). \setupdelimitedtext [blockquote] [spacebefore=halfline] spacebefore={force,halfline} Hello

Re: [NTG-context] delimitedtext, spacebefore and grid

2011-01-23 Thread Oliver Buerschaper
I want to have both a halfline space before and after blockquotations. Normally, this works fine; after the quotation the main text snaps back to the grid (see page 3 of the example file). \setupdelimitedtext [blockquote] [spacebefore=halfline] spacebefore={force,halfline} Hello

[NTG-context] math chars

2010-11-01 Thread Oliver Buerschaper
Hi, I'm trying to access a few glyphs: --- \usetypescript [cambria] \setupbodyfont [cambria] \starttext n-ary summation (base), U+02211: \char02211 n-ary summation (next), U+F0419: \charF0419 n-ary summation (next), U+F041A: \charF041A cyrillic capital

Re: [NTG-context] math chars

2010-11-01 Thread Oliver Buerschaper
The F0* codes are internal to context/luatex and are font specific (if at some point you decided to use another font, or updated version of the same font, you will be getting completely different glyphs if anything at all). You can use glyph names which are a bit more portable:

Re: [NTG-context] beta broken?

2010-10-26 Thread Oliver Buerschaper
The latest mtxrun (on both pragma-ade and in minimals) does not contain any 'v' on line 8736, so something must have gone wrong in the local update process. Yes, it turned out a syncronization issue. For some reason I got old stuff in the texmf-osx-intel/bin until two days ago when updating

Re: [NTG-context] beta broken?

2010-10-23 Thread Oliver Buerschaper
today's beta yields the following console output: --- /usr/texbin/mtxrun:8736: attempt to concatenate local 'v' (a table value) --- The exact problem persists on my machine (Mac OS 10.6.4) after updating the minimals to 2010.10.22 16:46 beta :-( Can anyone else reproduce this? Oliver

[NTG-context] beta broken?

2010-10-21 Thread Oliver Buerschaper
Dear all, today's beta yields the following console output: --- /usr/texbin/mtxrun:8736: attempt to concatenate local 'v' (a table value) --- :-( Best, Oliver ___ If your question is of interest to others as well,

Re: [NTG-context] beta broken?

2010-10-21 Thread Oliver Buerschaper
Do you want to say that you are trying to revive your ConTeXt Minimals for Mac project? Else mtxrun should probably not come from /usr/texbin. I deny everything. (Reusing a recent quote :-) Oliver ___ If your

[NTG-context] Virtual math

2010-08-25 Thread Oliver Buerschaper
Hi all, I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm

Re: [NTG-context] Virtual math

2010-08-25 Thread Oliver Buerschaper
I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having

Re: [NTG-context] [***SPAM***] Re: Summary of user wishes for streams (Salil Sayed)

2010-08-24 Thread Oliver Buerschaper
This reminds me. Two columns of text over three columns of footnotes. Is it possible? ___ preformatted with 1. Ibidem| 2. Ibidem |3. Ibidem ? ;-) And what about a footnote

Re: [NTG-context] textext vs. btex ... etex

2010-08-24 Thread Oliver Buerschaper
Clearly, this gives me each glyph individually but stacked on top of each other. What I need though is that the second figure looks exactly like the first one (with all glyphs in the right location) except that the grey bounding boxes appear per glyph. I know what you want now, but I have

Re: [NTG-context] Summary of user wishes for streams (Salil Sayed)

2010-08-24 Thread Oliver Buerschaper
And what about a footnote block as one contiguous paragraph? That is, footnote items don't start a new line: 1. Explanation \someseparatingglyph 2. Some more explanation \someseparatingglyph 3. Comment etc. Would that be possible?

Re: [NTG-context] ConTeXt meeting Lua tutorials

2010-08-24 Thread Oliver Buerschaper
Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am

Re: [NTG-context] textext vs. btex ... etex

2010-08-22 Thread Oliver Buerschaper
Now onto step two: how can I typeset each glyph in the formula individually such that it appears precisely in the right location? I must be misreading something here, but I cannot figure out what 'the right location' means. Since textext() always returns a single picture that can't be

Re: [NTG-context] textext vs. btex ... etex

2010-08-21 Thread Oliver Buerschaper
so, if in mkiv you want pieces, you need to textext each snippet that you want as such Alright... in that case how would I make sure that all glyph positions are kept if my TeX material is, say, some complex formula? How could I find the baseline with textext? see mp.mplib for all

Re: [NTG-context] textext vs. btex ... etex

2010-08-18 Thread Oliver Buerschaper
the fact that you have pieces in mkii is a side effect of dvitomp turning dvi output in mp pictures; in the process it combines glyphs that have no kerning and whatever spacing becomes shifts Oh, I didn't know the pieces used to come about by accident... actually, by a rather favourable

Re: [NTG-context] textext vs. btex ... etex

2010-08-18 Thread Oliver Buerschaper
I always develop a kind of romantic relationship with the tools I use, I either hate it and stop using it no matter what it can or can not do; I hate OpenOffice and Qt, for example, and I would never, willingly use either. On the other hand, when I love some tool I never turn my back to it,

[NTG-context] textext vs. btex ... etex

2010-08-17 Thread Oliver Buerschaper
Hi, I've been trying to troubleshoot a problem with TeX labels I ran into the other day... finally I discovered that 1. MkIV (textext) includes TeX material as one single chunk apparently while MkII (btex ... etex) used to include a decomposable picture and that 2. the anchor point is

Re: [NTG-context] Passing info from MetaPost to TeX

2010-07-30 Thread Oliver Buerschaper
No answer :-( Does that mean it's impossible with current technology? Oliver is it possible to pass data from MetaPost back to TeX? This would be similar in spirit to, say, the MetaPost variable BodyFontSize that contains data from the TeX surrounding. Just the other way round. maybe

Re: [NTG-context] Passing info from MetaPost to TeX

2010-07-24 Thread Oliver Buerschaper
is it possible to pass data from MetaPost back to TeX? This would be similar in spirit to, say, the MetaPost variable BodyFontSize that contains data from the TeX surrounding. Just the other way round. maybe future mlib versions will provide something like that (writing something from mp

Re: [NTG-context] slightly OT: tablets

2010-07-21 Thread Oliver Buerschaper
How do you enable your PDFs so that you can add handwritten notes? in Adobe Acrobat Professional: Comments | Enable for commenting and analysis in Adobe Reader... Then when the file is opened in Adobe Reader open up the appropriate toolbars. Does that mean you can make handwritten

[NTG-context] Passing info from MetaPost to TeX

2010-07-20 Thread Oliver Buerschaper
Dear all, is it possible to pass data from MetaPost back to TeX? This would be similar in spirit to, say, the MetaPost variable BodyFontSize that contains data from the TeX surrounding. Just the other way round. Best, Oliver Buerschaper

Re: [NTG-context] slightly OT: tablets

2010-07-20 Thread Oliver Buerschaper
I have a full TeX suite on it (w32tex since I'm running on a 4GB SSD), as well as traditional graphic design programs like FreeHand and FontLab. Handwriting recognition works well and allows me to not carry the added weight of a keyboard. Using a stylus works well for me and is very

[NTG-context] Inspecting font data with Lua

2010-06-09 Thread Oliver Buerschaper
Hi everyone, this has probably been asked before: how can I use the Lua font loading mechanism to inspect an OTF font? I'm mainly interested in retrieving glyph data such as its shape or kerning properties... please advise :-) Many thanks, Oliver

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-09 Thread Oliver Buerschaper
Hi all, ConTeXt has many features but sometimes there is something missing, what feature or package do you miss which is already available in another TeX system or unavailable in any TeX system? Wolfgang 1. While TeX has been very strong at typesetting math traditionally its rivals

Re: [NTG-context] Columns within a layer

2010-01-02 Thread Oliver Buerschaper
You need textbackground to draw the frame around the text That's the funny thing ... apparently I don't! See the code in my previous mail. There I seem to get the frame from the \setlayerframed command alone. You can still write the text in a buffer and use the buffer in the streamlayer.

Re: [NTG-context] Columns within a layer

2010-01-02 Thread Oliver Buerschaper
But the frame from setlayerframed has not the measures of the text, to get the correct size you need textbackground. Ah, I see! The reason I asked is I didn't see any frame with your code... I presume I need to hook some MP overlay into textbackground?

Re: [NTG-context] Columns within a layer

2010-01-01 Thread Oliver Buerschaper
width: \startsetups streamlayer:test:settings \overloadtextwidth{12cm} \stopsetups frame: \definetextbackground[testframe] \startstreamlayer[test] \starttextbackground[testframe] ... \stoptextbackground \stopstreamlayer That's exactly what I need! Based on your example I kept

Re: [NTG-context] Bug in \Umathlimitbelowvgap?

2009-12-31 Thread Oliver Buerschaper
no errors with latest luatex and context beta LowerLimitGapMin: 2.0pt UpperLimitGapMin: 1.3pt Thanks! Sorry for the noise... Oliver ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] Getting font parameters in MkIV

2009-12-29 Thread Oliver Buerschaper
--- \usetypescript[cambria] \setupbodyfont[cambria] \def\defaultrulethickness{\the\fontdimen8\textfont3\relax} \starttext \the\defaultrulethickness \stoptext --- which used to work in the old MkII days. That is with the first two lines commented out :-) I was finally

[NTG-context] Bug in \Umathlimitbelowvgap?

2009-12-29 Thread Oliver Buerschaper
Dear list, with LuaTeX beta-0.40.5-2009061123 and ConTeXt 2009.06.13 13:37 the following throws an error: --- \starttext LowerLimitGapMin: \the\Umathlimitbelowvgap\displaystyle UpperLimitGapMin: \the\Umathlimitabovevgap\displaystyle \stoptext --- Unfortunately I can't update at the moment.

Re: [NTG-context] Removing vertical space before heading within framed layer

2009-12-29 Thread Oliver Buerschaper
Why not just \definedfont[TitleFont][Serif sa 3] and {\TitleFont \startbuffer[test] {\TitleFont Lorem ipsum dolor sit amet, consectetur, sadipisci\unknown\par} \input zapf \stopbuffer You're right, that's a good way to go! I now have: --- \definefont [TopicFont]

Re: [NTG-context] Columns within a layer

2009-12-26 Thread Oliver Buerschaper
\usemodule[streams] \definestreamlayer[test][method=overlay] \setupbackgrounds[page][background=test] \starttext \startstreamlayer[test] \startcolumns \input knuth \stopcolumns \stopstreamlayer \setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]} \stoptext Many thanks!

[NTG-context] Left, right, top, bottom margins in a \framed box

2009-12-26 Thread Oliver Buerschaper
Dear all, I'm wondering how I can get different margins between the contents of a framed box and its left, right, top or bottom border. Somehow offset affects all margins simultaneously ... Best wishes, Oliver ___

[NTG-context] Getting font parameters in MkIV

2009-12-26 Thread Oliver Buerschaper
Dear all, how can I access font parameters (e.g. the thickness of the fraction rule) of an OpenType font in MkIV? Taco once gave me the solution: --- \usetypescript[cambria] \setupbodyfont[cambria] \def\defaultrulethickness{\the\fontdimen8\textfont3\relax} \starttext

Re: [NTG-context] Getting font parameters in MkIV

2009-12-26 Thread Oliver Buerschaper
--- \usetypescript[cambria] \setupbodyfont[cambria] \def\defaultrulethickness{\the\fontdimen8\textfont3\relax} \starttext \the\defaultrulethickness \stoptext --- which used to work in the old MkII days. That is with the first two lines commented out :-)

Re: [NTG-context] Left, right, top, bottom margins in a \framed box

2009-12-26 Thread Oliver Buerschaper
MkIV only: - loffset - roffset - toffset - boffset Wonderful! Many thanks, Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Removing vertical space before heading within framed layer

2009-12-26 Thread Oliver Buerschaper
Hi everyone, slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading: --- \definelayer [text] [width=\paperwidth, height=\paperheight] \setupbackgrounds [page] [background=text]

Re: [NTG-context] Removing vertical space before heading within framed layer

2009-12-26 Thread Oliver Buerschaper
slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading: you can find in the details manual better ways to set heading texts with a layer Well, actually I don't want to get a fancy heading using

[NTG-context] Columns within a layer

2009-12-25 Thread Oliver Buerschaper
Dear all, how can I get columns within a layer? I tried --- \setupbackgrounds [page] [background=text] \definelayer [text] [width=\paperwidth, height=\paperheight] \startbuffer[test] \startcolumns[n=2] \input zapf \stopcolumns \stopbuffer \starttext

Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Oliver Buerschaper
Hi Mojca, Also, is there a way to directly get the glyph outlines of, say, $\bigotimes$ in MetaPost code and use it to derive some length unit from it? Yes, but this only works for Type1 fonts, not for OpenType. The example below is a literal copy from metapost manual (created by Taco).

Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Oliver Buerschaper
I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... So does this mean that outline fonts in MetaPost are currently dead with MkIV? Oliver

[NTG-context] MetaPost integration: default parameters

2009-11-13 Thread Oliver Buerschaper
Hi, ConTeXt already passes quite a few length parameters on to embedded MetaPost code ... BodyFontSize, CurrentWidth etc. Would it be possible to add some more font/math related parameters to the default definitions? I'm thinking of exposing math OpenType parameters like AxisHeight

[NTG-context] where to place \index

2009-11-06 Thread Oliver Buerschaper
Hi there, Reading the wiki I saw that \index{keyword}keyword should be used rather than keyword\index{keyword}. How should I proceed for names? For example \defineregister[person][people] Albert \person{Einstein, Albert}Einstein vs. \index{Einstein, Albert}Albert Einstein What happens

[NTG-context] Tracking macro expansion

2009-11-04 Thread Oliver Buerschaper
Dear all, how can I check whether a macro I defined is actually expanded into what I intended? For example, if I define \define[2]\Test{#2, {\it #1}} is there a (Lua?) function like check(\Test{Hello}{world}, string) that would return true for string = world, {\it Hello} and false

Re: [NTG-context] Tracking macro expansion

2009-11-04 Thread Oliver Buerschaper
how can I check whether a macro I defined is actually expanded into what I intended? For example, if I define \define[2]\Test{#2, {\it #1}} is there a (Lua?) function like check(\Test{Hello}{world}, string) that would return true for string = world, {\it Hello} and false otherwise? If the

Re: [NTG-context] pdfs with boxes instead of letters

2009-10-30 Thread Oliver Buerschaper
I seem to have spoken too soon. The very next document I prepared had the same boxes-rather-than-letters problem. That said, I cleared the font caches again and, after restarting, the document looked correct. Perhaps this is a coincidence. Or perhaps there is something amiss with the way

Re: [NTG-context] MKIV on Mactex Texlive 2008 (Context broken)

2009-09-24 Thread Oliver Buerschaper
My impression from reading installation directions for minimals is that when you open a shell, and if you have your .bash_profile configured, that setuptex will be sourced. That must set some sort of path while the current shell is active? Will that interfere with needing to suddenly latex

Re: [NTG-context] [OT] Edit PDF manually

2009-09-08 Thread Oliver Buerschaper
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf Wonderful! This is exactly the sort of thing I was looking for ... is there more material similar in spirit? Hartmut? ;-) Oliver

Re: [NTG-context] [OT] Edit PDF manually

2009-09-08 Thread Oliver Buerschaper
Don't forget about pdftk vim plugin, otherwise you'll have to count byte offsets on your fingers, or even better use qdf form with qpdf. I've just had a brief look at qpdf and this seems incredible! This might just be the tool I had in mind ... now I'll have to check out what qdf can do for

Re: [NTG-context] [OT] Edit PDF manually

2009-09-08 Thread Oliver Buerschaper
Speaking about tools: Acrobat Pro (and some plugins to it) can do a lot. But all commercial, aren't they? With podofobrowser those in the know can do a lot. Will install ;-) And I'm shamelessly plugging my talk at EuroTeX 2009: http://www.oneiros.de/tex/papers/eurotex2009-pdflibs.pdf

Re: [NTG-context] [OT] Edit PDF manually

2009-09-08 Thread Oliver Buerschaper
I've just had a brief look at qpdf and this seems incredible! This might just be the tool I had in mind ... now I'll have to check out what qdf can do for me ... warning: uncompress pdf can frozen your console and burn you CPU.. Good to know ... actually I wanted to peak into a

[NTG-context] [OT] Edit PDF manually

2009-09-07 Thread Oliver Buerschaper
Dear list, I'd like to perform some basic PDF editing by hand ... can someone point me to a good source of introductory material to get me started? For example, I'd like to remove a text stamp from a given file but also learn something about PDF itself along the way ... if there's some

Re: [NTG-context] [OT] Edit PDF manually

2009-09-07 Thread Oliver Buerschaper
Hi Luigi, pdf spec. www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf xpdf sources That sounds like a definite reference ... probably more than I can digest for a start :-( Perhaps there's a simple, example-driven guide for dummies somewhere? Like writing a simple PDF document with

Re: [NTG-context] latest beta has trouble loading fonts on OS X

2009-08-14 Thread Oliver Buerschaper
2. Where is OSFONTDIR set on mkiv? I specifically do NOT want my system fonts used by ConTeXt; everything I want to use with TeX is in one of my texmf trees. How can I prevent mkiv from taking the system paths into account? indeed, putting them in the tree is more robust (and controllable)

Re: [NTG-context] bugs in math engine?

2009-05-20 Thread Oliver Buerschaper
1. The symbols for number sets in Cambria Math aren't taken from the double-struck variant. Hans, please apply the following patch to math-def.mkiv diff --git a/math-def.mkiv b/math-def.mkiv index 31db66e..30beb5c 100644 --- a/math-def.mkiv +++ b/math-def.mkiv @@ -97,12 +97,12 @@

Re: [NTG-context] Label alignment in descriptions

2009-05-19 Thread Oliver Buerschaper
I'm already having problems with the following minimal test: --- \definedescription[test] \starttext \test{Hello} world! \stoptext --- TeX complains that the file ended while it was scanning \dodowithpar. For TeX this is probably not surprising, and a new line before \stoptext

Re: [NTG-context] Label alignment in descriptions

2009-05-19 Thread Oliver Buerschaper
Hello, I can't get the 'align' parameter to have any effect on label text in definitions. Here is a simple test case: \setuplayout[backspace=40mm] \definedescription [test] [location=inleft, width=25mm, align=left, margin=standard] \starttext \test{Hello} World! \par

[NTG-context] bugs in math engine?

2009-05-15 Thread Oliver Buerschaper
Dear list, the following are probably bugs in the new math engine as of yesterday's beta (2009.05.14 16:44): 1. The symbols for number sets in Cambria Math aren't taken from the double-struck variant. --- \usetypescript[cambria] \setupbodyfont[cambria] \starttext

Re: [NTG-context] How to decide on colors

2009-02-16 Thread Oliver Buerschaper
Hi Cecil, I am working with a flowchart. I would like to have the background of the flowchart, different from the background the flowchart is on. I do not know much about color combinations. (Just enough to know what I tried were not good choices.) Is there a site with good pointers about color

Re: [NTG-context] How to box \useMPgraphic?

2008-11-14 Thread Oliver Buerschaper
I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my

Re: [NTG-context] How to box \useMPgraphic?

2008-11-14 Thread Oliver Buerschaper
Am 13.11.2008 um 18:14 schrieb Wolfgang Schuster: Am 13.11.2008 um 17:18 schrieb Oliver Buerschaper: Hello all, I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled

[NTG-context] How to box \useMPgraphic?

2008-11-13 Thread Oliver Buerschaper
Hello all, I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in

Re: [NTG-context] how to typeset this formula ?

2008-10-08 Thread Oliver Buerschaper
If you are allowed to make some minor adjustments you may probably even leave out most of the \cdot commands, which will turn the formula even sleeker ... Just my two cents, Oliver \starttext \startformula \frac{g_a}{\theta} = \startcases[left={\left[},right={\right]}] \NC

Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-14 Thread Oliver Buerschaper
What's the correct way of piping this to MetaFun? Putting DefaultRuleThickness := \defaultrulethickness; into each \startuseMPgraphic{} block works, but how can I define this globally? Moving it into \startMPinclusions creates a scope problem … see also the other thread about BodyFontSize

Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-13 Thread Oliver Buerschaper
Sorry I missed this thread earlier. The default rule thickness in is the eight font parameter of the fonts in math family 3. A bare context file with the standard 12pt fonts gives the value 0.47998pt. You can get the value via : \edef\defautlrulethickness{\the\fontdimen8\textfont3}

[NTG-context] Scope of BodyFontSize etc.

2008-08-13 Thread Oliver Buerschaper
Dear wizards of ConTeXt, I'm wondering why ConTeXt doesn't seem to know about BodyFontSize in the MPinclusions block … try: --- \startMPinclusions DefaultRuleThickness := 0.47998pt*BodyFontSize/12pt; pickup pencircle scaled DefaultRuleThickness; defaultpen := savepen;

Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-13 Thread Oliver Buerschaper
OK. However, this doesn't seem to scale properly within the same font … try the following: --- \edef\defaultrulethickness{\the\fontdimen8\textfont3} That is because of the \edef. Changing to a plain \def should help: \def\defaultrulethickness{\the\fontdimen8\textfont3\relax} Yep,

Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-08 Thread Oliver Buerschaper
The rule is between 0.4pt and 0.5pt \starttext \dontleavehmode \scale[factor=200]{$1 \over 2$} \scale[factor=200]{$1 \above .47pt 2$} \stoptext Lovely! This applies to ConTeXt's default font size of 12pt, doesn't it? Hence we would have the following linear relation if the thickness is

  1   2   >