Re: [NTG-context] [***SPAM***] Widows: penalty without efffect (ConTeXt iv)
Hi, did you see [1]? You have to do something like \starttext \clubpenalty=1 \widowpenalty=1 My text that should not contain any widow or orphan lines. \stoptext If that does not work for you, please provide a minimal example. HTH, Stefan [1] http://archive.contextgarden.net/message/20111211.162442.4f689e7b.en.html On 09.08.2012 11:36, d_jan wrote: Dear List, I ran into trouble with the widow/orphan-control in context. I searched the mailinglist, and saw that there were some other threads on the topic bevore, but as far as I am concerned what was suggested there did not work for me when I tried it. I run context iv using the version which comes with TexLive 2011. First trail was to include \widowpenalty=9000 and \clubpenalty=9000 at the start of the document, before \starttext (cause I do my setups, and definitions there) As this did not work I tried to put them after \starttext. As well I lowered \brokenpenalty. But both approaches, which were suggested in previous Posts on the ntg-context list failed to show an effect in my case. Is there anything I could do to prevent the widow lines? PS.: As I may be doing any noobish errors, here an overview of the documents structure and the placement of the penalty-commands _ \widowpenalty=9000 \clubpenalty=9000 \definepapersize[janssize][width=190mm, height=245mm] \setuppapersize[janssize][A4] %we can use something like [A5][A4], which is a a5 Page sized Document printed on a A4 sheet \setuplayout[grid=yes, marking=on, location=middle, backspace=30mm, width=110mm]%former: location=doublesided \starttext \startstandardmakeup \stopstandardmakeup \startfrontmatter %TOC... \stopfrontmatter \startbodymatter %the main stuff goes here % Loads of text \stopbodymatter \startappendices %appendices go here \stopappendices \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enumeration counter way bychapter
Hi! This works now with 201200310 13:15 MkIV. I have a deadline in less than a week, thank you SO much for fixing this! You rock, Stefan On Thu, 08 Mar 2012 10:10:49 +0100, Stefan Müller wrote: Hi list, I tried the example below again with 2012003005 19:49 MkIV and it still shows 2.2 instead of 2.1 in the second enumeration. I am in desperate need for a fix for this. Did the interface change or is this broken? Thanks in advance for looking into this, Stefan On Sun, 26 Feb 2012 14:13:59 +0100, Stefan Müller wrote: Hi list, in the following example, I want the enumerations to be numbered as 1.1 and 2.1, respectively. What am I doing wrong? Using MkIV 201200221 14:02. \defineenumeration[myenum][way=bychapter, prefix=chapter] \starttext \chapter{Chapter} \startmyenum enum \stopmyenum \chapter{Chapter} \startmyenum enum \stopmyenum \stoptext Thanks for any advice! Stefan -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \notin not working
Dear list, with one of the last versions (I'm currently using ConTeXt standalone 2012003005 19:49 MkIV) \notin is not working anymore. See \starttext $a \notin b \not\in c$ \stoptext It seems that \notin refers to \not. Is this intended behavior or a bug? Best regards, Stefan -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \notin not working
On Fri, 9 Mar 2012 13:46:56 -0500 (EST), Aditya Mahajan wrote: On Fri, 9 Mar 2012, Stefan Müller wrote: Dear list, with one of the last versions (I'm currently using ConTeXt standalone 2012003005 19:49 MkIV) \notin is not working anymore. See \starttext $a \notin b \not\in c$ \stoptext It seems that \notin refers to \not. Is this intended behavior or a bug? Missing glyph in the LM virtual math font. (@Hans, can now use composed glyphs as fallbacks in virtual fonts). The above example works fine if you use cambria or xits fonts, but fails with LM virtual fonts and in a worse way with LM opentype. Aditya Thanks for looking into this. I guessed it was something like that. Stefan -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enumeration counter way bychapter
Hi list, I tried the example below again with 2012003005 19:49 MkIV and it still shows 2.2 instead of 2.1 in the second enumeration. I am in desperate need for a fix for this. Did the interface change or is this broken? Thanks in advance for looking into this, Stefan On Sun, 26 Feb 2012 14:13:59 +0100, Stefan Müller wrote: Hi list, in the following example, I want the enumerations to be numbered as 1.1 and 2.1, respectively. What am I doing wrong? Using MkIV 201200221 14:02. \defineenumeration[myenum][way=bychapter, prefix=chapter] \starttext \chapter{Chapter} \startmyenum enum \stopmyenum \chapter{Chapter} \startmyenum enum \stopmyenum \stoptext Thanks for any advice! Stefan -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command in enumeration title
On Fri, 02 Mar 2012 21:03:34 +0100, Hans Hagen wrote: On 26-2-2012 14:34, Stefan Müller wrote: Hi Michael, thanks for your answer. The macro \Word is a predefined macro that capitalizes the first letter of its argument. E.g. \Word{title} should expand to Title, but it doesn't in my example. does style={\setcharactercasing[3]} work out ok? Hi Hans, thanks for your answer and sorry for the delay. I tried \defineenumeration[myenum][title=yes, titlestyle={\setcharactercasing[3]}] \starttext \startmyenum{\Word{title}} muh \stopmyenum \stoptext with MkIV 201200221 14:02 to no avail (it seems that there is no key titlestyle, but I tried). I still get title without capitalization. If I use style={\setcharactercasing[3]} or headstyle={\setcharactercasing[3]} then I get Muh or Myenum, respectively, with capital M as expected but still title. Best regards, Stefan -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it bibliography really problem for MKIV?
Hi, have you tried the following? \setuppublications[alternative=ams, refcommand=num] This sets the default cite style to [1], [2], ... You can also see http://wiki.contextgarden.net/Bibliography and the bib module manual which is linked from there. Sorting the citations by the order in the text are the default behavior, it could be set (in \setuppublications) with sorttype=cite. Hope that helps, Stefan. On 28.02.2012 19:12, Jaroslav Hajtmar wrote: Hello ConTeXist.. I have an unusual question: Is it bibliography really such a big problem for MKIV or I am unable to do? Do you have some experience in the bibliography at MKIV? Can you refer me to a source of information about this? Submitter thesis has a very strict requirement to the list of bibliography. The numbering of bibliographic items must be in the same order in which items are used in the text. Moreover, in the form of AMS is, [1], [2], etc. I've tried many hours, but I am absolutely not able to achieve the required form. I do not believe that I will eventually have to write a thesis in LaTeX because of the stupid request. May possibly be some way around? It occurred to me to do an emergency way. I want redefine of the \cite macro to macro \CITE. The \CITE macro put me list the order bibliographic items and then I arrange manually a list of bibliographic entries. Or exist any external tools for that do it? Thanx Jaroslav Hajtmar ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command in enumeration title
Hi, yeah, is seems as if both problems (this and the one about way=bychapter from my other thread) have been introduced some time ago. It worked on MkIV version 2025 21:29. On 27.02.2012 00:30, Rogers, Michael K wrote: Hi Stefan, I didn't know about \Word. It retried your example and it works as is in my version of ConTeXt, which is an earlier one that yours it seems. [Your other enumeration example, with way=bychapter etc., works the way you want, too.] Sorry, I don't think I can help. Perhaps one of the more expert users can verify whether it works or not. Best, Michael ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Command in enumeration title
Hi list, there is possibly an easy explanation for my following problem, but I don't know it. Why does \Word have no effect in the following example, and how can I make it work? In my real document I have \Word in a macro inside the title, so I can't just write Foo in the title. \defineenumeration[myenum][title=yes] \starttext \startmyenum{\Word{foo}} bar \stopmyenum \stoptext Any help appreciated, thanks in advance! Stefan -- ___ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Enumeration counter way bychapter
Hi list, in the following example, I want the enumerations to be numbered as 1.1 and 2.1, respectively. What am I doing wrong? Using MkIV 201200221 14:02. \defineenumeration[myenum][way=bychapter, prefix=chapter] \starttext \chapter{Chapter} \startmyenum enum \stopmyenum \chapter{Chapter} \startmyenum enum \stopmyenum \stoptext Thanks for any advice! Stefan -- ___ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command in enumeration title
Hi Michael, thanks for your answer. The macro \Word is a predefined macro that capitalizes the first letter of its argument. E.g. \Word{title} should expand to Title, but it doesn't in my example. Stefan -- ___ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] orphan and widow lines
Hi, you can try (and experiment with) \clubpenalty=1 \widowpenalty=1 after \starttext. Hope that helps, Stefan On 07.12.2011 22:32, Pablo Rodríguez wrote: Hi there, I have been using ConTeXt for some months and one of the things I cannot control is orphan or widow lines appearing in my documents. Isn't there a general method to avoid them? (This should set ragged bottoms, but I'd rather have ragged bottoms than orphan or widow lines.) Thanks for your help, Pablo ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] no color with interaction and reference format
Hi list, when I am using reference formats to put text in front of my text references, I get no color. Please see the following minimal example \setupinteraction[state=start] \definereferenceformat[insec][text=section~] \starttext \section[mylabel]{A Section} A Reference to \in{section}[mylabel] and \insec[mylabel]. \stoptext On my machine only the first reference is red (aka colored), but I think both should be, as it was some betas ago. Is this a bug or has the interface changed? I'm using standalone 2025 21:29 MkIV. Thanks in advance! Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] margin notes at page breaks
On 14.11.2011 09:32, Hans Hagen wrote: On 13-11-2011 12:12, Stefan Müller wrote: It still looks the same. Does the stacking only influence the behaviour of (the breaking between) multiple margin notes? I was not very clear here, I think. each margin data blob is seen as a whole .. no breaking inside that .. depending on the content (only text) it should be possible to break notes but it's not provided now Thanks, okay, I understand that. But I don't understand why in your first example the three margin notes go to the next page, together with the paragraph while in my example the single note does not go to the next page (the complete note, I don't want the margin note itself to break). I would choose some extra blank lines at the end of the page over a margin note that is in the bottom margin... Kind regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (long) footnotes in column sets messed up
Hi again, I tried MkIV 2012 12:34 now and added \setupfootnotes[location=columns], trying also all other values listed in [1], at the beginning of my example below. They don't seem to do something that looks as if it is intended behaviour. The only thing I can do by now is using \setupfootnotes[location=text] together with \placefootnotes after \stopcolumnset, but I don't like that very much in my current document. I also note that, whichever method I use to place the footnotes, the number always ends up in the first column, never in the second (even with \placefootnotes between \start...\stopcolumnset). I hope someone can give me some insight here. Thanks in advance and best regards, Stefan [1] http://wiki.contextgarden.net/Reference/en/setupfootnotes On 31.10.2011 17:53, Stefan Müller wrote: Hi folks, please consider the following example. \starttext \startcolumnset[n=2] \dorecurse{4}{\input knuth\footnote{Some footnote which is not wrapped correctly and has a bad number}} \stoptext The footnotes are very messed-up (overlapping, numbers all in left column). Is there a better way to place such footnotes in column sets? Am I doing something wrong? I'm using 20111028 22:32 MKIV. Thank you very much in advance! Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] margin notes at page breaks
Hi Hans, sorry to bother you again with this. I just had a look again on this issue with 2012 12:34 MkIV. In the first part of your example, I see the three stacked footnotes and the first lines of the paragraph moved to the next page. In your second example I get the three notes stacked on the first page, one being in the bottom margin, and the paragraph properly wrapped, with two lines on the first page. This seems to be correct. Unfortunately I don't understand how this should help me with my (now updated) previous example: \starttext \dorecurse{4}{\input knuth} \blank[2*line] \inmargin[stack=yes]{This note ends up in the bottom margin} \input tufte \stoptext It still looks the same. Does the stacking only influence the behaviour of (the breaking between) multiple margin notes? Thank you for looking into this. Best regards, Stefan On 02.11.2011 17:34, Hans Hagen wrote: On 31-10-2011 13:57, Stefan Müller wrote: Hi list! In my document I have some margin notes that appear right before a page break and so end up in the bottom margin, see the following example. \starttext \dorecurse{4}{\input knuth} \blank[2*line] \inmargin{This note ends up in the bottom margin} %\margintext{This note ends up in the bottom margin} \input tufte \stoptext Is it possible to automatically move the margin note in those cases to the next page? I had a look at the manual where the issue is addressed. As I understood it \margintext{...} should be able to handle this, but it did not change anything in my example. In the garden I found \setupinmargin[stack=yes] but this didn't help either. This seems not to hard, but I can't find a way to fix it... it's not supported in the current code but the next beta will have : starttext \dorecurse{4}{\input knuth} \blank[2*line] \dorecurse{3}{\inmargin[stack=yes]{note}} \input tufte \page \dorecurse{4}{\input knuth} \blank[2*line] \dorecurse{3}{\inmargin[stack=yes,bottomspace=10cm]{note}} \input tufte \stoptext with bottomspace one can set the threshold Hans ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xtables in custom macros
On 3-11-2011 23:01, Stefan Müller wrote: \define\Doesnt{\startxtable \startxrow \startxcell does not work \stopxcell \stopxrow \stopxtable} \starttext \Works \stopxtable %\Doesnt \stoptext \def\test {\setbuffer[demo] \startxtable \startxrow \startxcell does not work \stopxcell \stopxrow \stopxtable \endbuffer \processxtablebuffer[demo]} Nice! Thank you very much! Stefan -- ___ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] xtables in custom macros
Hi list, I just played a bit with the nice new xtables. It seems as if \stopxtable does not work if used inside a custom macro. I get a Runaway argument error with the current standalone if I uncomment \Doesnt in the following example. \define\Works{\startxtable \startxrow \startxcell works \stopxcell \stopxrow} \define\Doesnt{\startxtable \startxrow \startxcell does not work \stopxcell \stopxrow \stopxtable} \starttext \Works \stopxtable %\Doesnt \stoptext Did I miss something or is this a bug? Best regards, Stefan. -- ___ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xtables in custom macros
Am 03.11.2011 um 20:37 schrieb Stefan Müller: Hi list, I just played a bit with the nice new xtables. It seems as if \stopxtable does not work if used inside a custom macro. I get a Runaway argument error with the current standalone if I uncomment \Doesnt in the following example. \define\Works{\startxtable \startxrow \startxcell works \stopxcell \stopxrow} \define\Doesnt{\startxtable \startxrow \startxcell does not work \stopxcell \stopxrow \stopxtable} \starttext \Works \stopxtable %\Doesnt \stoptext Did I miss something or is this a bug? The stable environment stores the content in a buffer and you can’t put the start and stop commands of a buffer in different commands. Wolfgang I'm not sure if I understood correctly... I don't want to put the start and stop commands in different commands. In the example I want to have \startxtable and \stopxtable inside the same command (\Doesnt), i.e. I want a self-defined command that produces a complete xtable, not only the xrows. Stefan -- ___ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] two columns and margin notes
Hi list, some time ago there was a discussion about the following issue, demonstrated by \starttext \startcolumnset[n=2] \input knuth \input tufte \column \inmargin{This is not in the margin!} \input tufte \inmargin{This is in the wrong margin} \input knuth \stopcolumnset \stoptext Unfortunately the note is still in the wrong margin. Interestingly, the note before the paragraph is not even in the margin. Has there been any progress on that? Or is there any possibility to get the number of the current column, like \thecolumnnumber? Then one (I) could write a small macro to handle this, I think. Thanks in advance, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] margin notes at page breaks
Hi list! In my document I have some margin notes that appear right before a page break and so end up in the bottom margin, see the following example. \starttext \dorecurse{4}{\input knuth} \blank[2*line] \inmargin{This note ends up in the bottom margin} %\margintext{This note ends up in the bottom margin} \input tufte \stoptext Is it possible to automatically move the margin note in those cases to the next page? I had a look at the manual where the issue is addressed. As I understood it \margintext{...} should be able to handle this, but it did not change anything in my example. In the garden I found \setupinmargin[stack=yes] but this didn't help either. This seems not to hard, but I can't find a way to fix it... Thanks in advance for any hints! Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] (long) footnotes in column sets messed up
Hi folks, please consider the following example. \starttext \startcolumnset[n=2] \dorecurse{4}{\input knuth\footnote{Some footnote which is not wrapped correctly and has a bad number}} \stoptext The footnotes are very messed-up (overlapping, numbers all in left column). Is there a better way to place such footnotes in column sets? Am I doing something wrong? I'm using 20111028 22:32 MKIV. Thank you very much in advance! Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] interaction colors and page break
Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. \stoptext Best regards, Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] interaction colors and page break
On 06.10.2011 16:19, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müllerwarrence@gmx.de wrote: Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. [...] true; just put \page and colors are green Currently I'm using the colors only while working on my document, I'll turn them off for printing. So that's not really an issue for me. Putting \page doesn't really help. In my actual project file there are two more items in the itemize and the page break is between item 2 and 3. Kind regards, Stefan. % \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum \page Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. \stoptext % maybe a problem with the MVL ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] interaction colors and page break
On 06.10.2011 16:44, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müllerwarrence@gmx.de wrote: On 06.10.2011 16:19, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müllerwarrence@gmx.dewrote: Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. [...] true; just put \page and colors are green Currently I'm using the colours only while working on my document, I'll turn them off for printing. So that's not really an issue for me. Putting \page doesn't really help. In my actual project file there are two more items in the itemize and the page break is between item 2 and 3. \page was only a way to show that yes, the colours should be green and no a way to patch. Oh yes, of course. Sorry, I misunderstood. Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] interaction colors and page break
Sorry, I forgot to mention (and maybe it's obvious) that the problem only seems to appear in the paragraph directly after the enumeration, so the colors are correct in last paragraph in: \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. Step \in[step] of \in{Enumeration}[enum]. These numbers are green, as expected. \stoptext Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \cite with authornum and extras
Hi, please consider the following example. \setupbibtex[database={sample}] \starttext \cite[alternative=authornum, extras={, p.\ 1}][Eijkhout1991] \cite[alternative=authoryear, extras={, p.\ 1}][Eijkhout1991] \placepublications[criterium=all] \stoptext In the cite with alternative=authornum the extras-key seems to be ignored, I only get Eijkhout [4] while on the next line I get Eijkhout (1991, p. 1) with the page number as intended. What am I doing wrong? Also, if I comment the \placepublications line I get Eijkhout [[error 2]]... Thanks for any hints! Best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] style=bold in \setuphead does not work anymore
Thank you very much! \bi and \bolditalic work like you said. I have to admit that I should have tried that... Stefan. On 27.09.2011 18:04, Aditya Mahajan wrote: On Tue, 27 Sep 2011, Wolfgang Schuster wrote: Am 27.09.2011 um 15:29 schrieb Stefan Müller: On a related note, there's a more serious issue with this. \setuphead[section][style=bolditalic] used to put the heading in bold and italic style. This too does not work anymore, but also style=\bf\it doesn't. What can I do to get bold and italic in a heading back (APA style for fourth level headings)? Use “style=\bi” to set a bolditalic style for your heading. style=\bolditalic should also work. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] style=bold in \setuphead does not work anymore
Will do :) Thanks! Stefan On 28.09.2011 21:59, Wolfgang Schuster wrote: Am 28.09.2011 um 19:30 schrieb Stefan Müller: Thank you very much! \bi and \bolditalic work like you said. I have to admit that I should have tried that… You can also install the latest beta and write “style=bolditalic”. Wolfgang ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibmodule acquired problem
Hi, I think this is related to my message from yesterday [1]. The booktitle key is ignored in inproceedings entries when crossref is present. See the following excerpt from cont-ab.bst: FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle crossref missing$ { format.in.booktitle.or.series format.number.series \city address do.out format.pages } { format.incoll.inproc.crossref format.pages } if$ \pubname publisher do.out \organization organization do.out stop.entry } So title is not set in the .bbl file. Good to know that I'm not the only one who's having trouble with that. I didn't know what I should expect when using crossref, so I decided to not mind the missing booktitle. But it would still be nice (as seen in your example) if the actual citation style could decide whether or not to use booktitle aka title. HTH, Stefan. [1] http://archive.contextgarden.net/message/20110926.093110.8bc078f6.en.html On 27.09.2011 10:41, Meer, H. van der wrote: Step by step I am able to dig deeper in the problem. The fact that it used to work but now doesn't may well be connected with the fact that the booktitle in those cases came from a crossref = item in the bib file. Could it be the \crossref{} macro is not recognized any longer by the ConTeXt bib module? In file bibl-tra.mkiv I encounter the following comment: %D \macros{bib@crossref} %D %D \type{\crossref} is used in database files to point to another %D entry. Because of this special situation, it has to be defined %D separately. Since this command will not be seen until at %D \type{\placepublications}, it may force extra runs. The same is %D true for \type{\cite} commands inside of publications. In typesetting the citation in the footnote I am solely using cite, not \placepublications. Does someone know why earlier the \crossref worked and now obviously has been switched out of the loop? Is there another way to force these crossref's to be carried out? Hans van der Meer On 27 sep. 2011, at 10:07, Meer, H. van der wrote: An addtionial remark here: in the .bib file this is caused by a missing book title. On 27 sep. 2011, at 10:03, Hans van der Meer wrote: Recently I reported the following problem: On 25 sep. 2011, at 19:58, H. van der Meer wrote: I used the following macro for typsetting literature references in footnotes. It worked without problems until now, but then I didn't use the bib module for some time. It looks like a problem has crept in with theinproceedings type. The error message: to be read again \pbd: \bibgetvart #1-\csname pbd:#1\endcsname \plussix Digging into the code I finally was able to nail the problem: the offending citation being of type t=inproceedings was missing the title item. Then I observe a call with #1 in bibgetvart empty, somehow leading to a missing \endcsname error message. Obviously earlier this wasn't a problem but now is. I guess because the code changed since my previous work on the project. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibmodule acquired problem
Maybe one could modify FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle crossref missing$ { format.in.booktitle.or.series format.number.series \city address do.out format.pages } { format.incoll.inproc.crossref format.pages } if$ \pubname publisher do.out \organization organization do.out stop.entry } to FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle format.in.booktitle.or.series format.number.series \city address do.out format.pages format.incoll.inproc.crossref \pubname publisher do.out \organization organization do.out stop.entry } in cont-*.bst? I don't know if this would cause any trouble... Stefan On 27.09.2011 12:35, Meer, H. van der wrote: Yes, we are having the two faces same problem, I guess. The fact is that \booktitle in the crossref'ed publication should be processed as a \title item in the citatation crossreff'd. The error in my case boils down to the fact that the title-entry is called without being actually present. With the missing \title sofar I have nailed it down to macro \bibgetvart#1 from the following bbl entry: \startpublication[k=campbell:92,t=inproceedings, a={{Campbell},{Wiener}},y=1992, .. (no \title) \stoppublication and log printing in the log from the modified macro: \def\bibgetvart#1{\writestatus{ERROR}{Parameter#1 on bibgetvart \expandafter\string\csname pbd:#1\endcsname}\csname pbd:#1\endcsname\plussix}% I find the log: ERROR Parametercampbell:92 on bibgetvart \pbd:campbell:92 ERROR Parameter on bibgetvart \pbd: ! Missing \endcsname inserted. Thus the missing \title thus seems to result in extra call to a bibliography entry that does not exist. This is about as far as I am at the moment in analyzing the problem. Hans van der Meer On 27 sep. 2011, at 12:09, Stefan Müller wrote: Hi, I think this is related to my message from yesterday [1]. The booktitle key is ignored in inproceedings entries when crossref is present. See the following excerpt from cont-ab.bst: FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle crossref missing$ { format.in.booktitle.or.series format.number.series \city address do.out format.pages } { format.incoll.inproc.crossref format.pages } if$ \pubname publisher do.out \organization organization do.out stop.entry } So title is not set in the .bbl file. Good to know that I'm not the only one who's having trouble with that. I didn't know what I should expect when using crossref, so I decided to not mind the missing booktitle. But it would still be nice (as seen in your example) if the actual citation style could decide whether or not to use booktitle aka title. HTH, Stefan. [1] http://archive.contextgarden.net/message/20110926.093110.8bc078f6.en.html On 27.09.2011 10:41, Meer, H. van der wrote: Step by step I am able to dig deeper in the problem. The fact that it used to work but now doesn't may well be connected with the fact that the booktitle in those cases came from a crossref = item in the bib file. Could it be the \crossref{} macro is not recognized any longer by the ConTeXt bib module? In file bibl-tra.mkiv I encounter the following comment: %D \macros{bib@crossref} %D %D \type{\crossref} is used in database files to point to another %D entry. Because of this special situation, it has to be defined %D separately. Since this command will not be seen until at %D \type{\placepublications}, it may force extra runs. The same is %D true for \type{\cite} commands inside of publications. In typesetting the citation in the footnote I am solely using cite, not \placepublications. Does someone know why earlier the \crossref worked and now obviously has been switched out of the loop? Is there another way to force these crossref's to be carried out? Hans van der Meer On 27 sep. 2011, at 10:07, Meer, H. van der wrote: An addtionial remark here: in the .bib file this is caused by a missing book title. On 27 sep. 2011, at 10:03, Hans van der Meer wrote: Recently I reported the following problem: On 25 sep. 2011, at 19:58, H. van der Meer wrote: I used the following macro for typsetting literature references in footnotes. It worked without problems until now, but then I didn't use the bib module for some time. It looks like a problem has crept in with theinproceedings type. The error message: to be read again \pbd: \bibgetvart #1-\csname pbd:#1\endcsname \plussix Digging into the code I finally was able to nail the problem: the offending citation being of type t=inproceedings
Re: [NTG-context] bibmodule acquired problem
On 27.09.2011 13:33, Meer, H. van der wrote: This does not help. The error is still there. I guess because this doesn't add the missing title. I cannot see in the FUNCTION a format.title. But somwhere the bibmodule calls it from the proceedings entry. Hans van der Meer In my test file the booktitle was present as \title (used by bibl-apa.tex) when the crossref was missing... so I guessed this should work... Stefan On 27 sep. 2011, at 12:50, Stefan Müller wrote: Maybe one could modify FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle crossref missing$ { format.in.booktitle.or.series format.number.series \city address do.out format.pages } { format.incoll.inproc.crossref format.pages } if$ \pubname publisher do.out \organization organization do.out stop.entry } to FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle format.in.booktitle.or.series format.number.series \city address do.out format.pages format.incoll.inproc.crossref \pubname publisher do.out \organization organization do.out stop.entry } in cont-*.bst? I don't know if this would cause any trouble... Stefan On 27.09.2011 12:35, Meer, H. van der wrote: Yes, we are having the two faces same problem, I guess. The fact is that \booktitle in the crossref'ed publication should be processed as a \title item in the citatation crossreff'd. The error in my case boils down to the fact that the title-entry is called without being actually present. With the missing \title sofar I have nailed it down to macro \bibgetvart#1 from the following bbl entry: \startpublication[k=campbell:92,t=inproceedings, a={{Campbell},{Wiener}},y=1992, .. (no \title) \stoppublication and log printing in the log from the modified macro: \def\bibgetvart#1{\writestatus{ERROR}{Parameter#1 on bibgetvart \expandafter\string\csname pbd:#1\endcsname}\csname pbd:#1\endcsname\plussix}% I find the log: ERROR Parametercampbell:92 on bibgetvart \pbd:campbell:92 ERROR Parameter on bibgetvart \pbd: ! Missing \endcsname inserted. Thus the missing \title thus seems to result in extra call to a bibliography entry that does not exist. This is about as far as I am at the moment in analyzing the problem. Hans van der Meer On 27 sep. 2011, at 12:09, Stefan Müller wrote: Hi, I think this is related to my message from yesterday [1]. The booktitle key is ignored in inproceedings entries when crossref is present. See the following excerpt from cont-ab.bst: FUNCTION {inproceedings} { start.entry format.authors format.year format.arttitle crossref missing$ { format.in.booktitle.or.series format.number.series \city address do.out format.pages } { format.incoll.inproc.crossref format.pages } if$ \pubname publisher do.out \organization organization do.out stop.entry } So title is not set in the .bbl file. Good to know that I'm not the only one who's having trouble with that. I didn't know what I should expect when using crossref, so I decided to not mind the missing booktitle. But it would still be nice (as seen in your example) if the actual citation style could decide whether or not to use booktitle aka title. HTH, Stefan. [1] http://archive.contextgarden.net/message/20110926.093110.8bc078f6.en.html On 27.09.2011 10:41, Meer, H. van der wrote: Step by step I am able to dig deeper in the problem. The fact that it used to work but now doesn't may well be connected with the fact that the booktitle in those cases came from a crossref = item in the bib file. Could it be the \crossref{} macro is not recognized any longer by the ConTeXt bib module? In file bibl-tra.mkiv I encounter the following comment: %D \macros{bib@crossref} %D %D \type{\crossref} is used in database files to point to another %D entry. Because of this special situation, it has to be defined %D separately. Since this command will not be seen until at %D \type{\placepublications}, it may force extra runs. The same is %D true for \type{\cite} commands inside of publications. In typesetting the citation in the footnote I am solely using cite, not \placepublications. Does someone know why earlier the \crossref worked and now obviously has been switched out of the loop? Is there another way to force these crossref's to be carried out? Hans van der Meer On 27 sep. 2011, at 10:07, Meer, H. van der wrote: An addtionial remark here: in the .bib file this is caused by a missing book title. On 27 sep. 2011, at 10:03, Hans van der Meer wrote: Recently I reported the following problem: On 25 sep. 2011, at 19:58, H. van der Meer wrote: I used the following
Re: [NTG-context] bibmodule acquired problem
On 27.09.2011 14:56, Taco Hoekwater wrote: On 09/27/2011 02:51 PM, Meer, H. van der wrote: My best guess now is the description of the FUNCTION {format.crossref} { \crossref crossref do.out } entry on the .bst file. Probably this generates the bad code leading to a missing \endcsname. I do not have time to pay close attention right now, but the .bst has not changed in years, as far as I know. Best wishes, Taco Maybe the problem is already present for so long. It occurs only if title of an inproceedings that has crossref set is accessed. The bibl-*.tex files don't do that. Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] double line spacing in list (table of contents, publication list)
Hi list, how can I get double line spacing in the table of contents and in the publication list? I tried \setupcombinedlist[content][after=\blank] but this produces to much vertical spacing. \setupinterlinespace[big] doesn't influence those lists. I'm using 201100920 00:09 MKIV standalone. Thanks in advance for any help! Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] style=bold in \setuphead does not work anymore
On a related note, there's a more serious issue with this. \setuphead[section][style=bolditalic] used to put the heading in bold and italic style. This too does not work anymore, but also style=\bf\it doesn't. What can I do to get bold and italic in a heading back (APA style for fourth level headings)? TIA and best regards, Stefan. On 20.09.2011 11:12, Stefan Müller wrote: Hi, In ConTeXt standalone MkIV 2011.08.04 00:42 this used to work: \setuphead[section][style=bold] \starttext \section{Ward} \input ward \stoptext In 2011.09.20 00:09 it doesn't anymore. If I use style=\bf I still get bold face. Is this a bug or was the interface changed deliberately? Best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing booktitle in incollection bib-entries
Thank you very much Pont. My fault, I found the problem. I had set the crossref-key in my bib-entry, which obviously causes that the booktitle is not in the bbl file. Now I also understand the .bst files there. Indeed, with the crossref set I don't really need the booktitle in the reference, but it could be useful to have the booktitle also available, in case of a custom style... Stefan On 25.09.2011 21:27, Pontus Lurcock wrote: On Sun 25 Sep 2011, Stefan Müller wrote: I have an @incollection-entry with booktitle set in a bib-file used in a ConTeXt document. Unfortunately there is no \title, generated from booktitle, in the respective .bbl file. Only \arttitle, generated from the bib-key title, is present. Guess it's a bug(?) Hmm, can't reproduce here. Here's what I'm using: file test.tex: \setupbibtex[database=test] \starttext \cite[ernst1989anisotropy] \placepublications[criterium=cite] \stoptext file test.bib: @incollection{ernst1989anisotropy, title = {Averaging of anisotropy of magnetic susceptibility data}, author = {Ernst, R. E. and Pearce, G. W.}, booktitle = {Statistical Applications in the Earth Sciences}, editor = {Agterberg, F. P. and Bonham-Carter, G. F.}, note = {Paper 89-9}, pages = {297--305}, year = {1989}, publisher = {Geological Survey of Canada} } produces the following test.bbl: \setuppublicationlist[samplesize={EP89},totalnumber=1] \startpublication[k=ernst1989anisotropy,t=incollection, a={{Ernst},{Pearce}},y=1989, n=1,s=EP89] \artauthor[]{R.~E.}[R.~E.]{}{Ernst} \artauthor[]{G.~W.}[G.~W.]{}{Pearce} \pubyear{1989} \arttitle{Averaging of anisotropy of magnetic susceptibility data} \editor[]{F.~P.}[F.~P.]{}{Agterberg} \editor[]{G.~F.}[G.~F.]{}{Bonham-Carter} \title{Statistical Applications in the Earth Sciences} \pages{297--305} \pages{297--305} \pubname{Geological Survey of Canada} \note{Paper 89-9} \stoppublication ... and the PDF shows both the article and book title. This works with MkIV 2011.02.25 and 2011.09.20. Pont ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Frame around float and its caption, how to?
Hi list, I'm using 201100920 00:09 MkIV standalone. Some time ago Marcin Borkowski asked [1] on this list about framing floats together with their captions. It seems to be unanswered and now I stumbled upon a similar problem. I want to have a figure with a caption together in a frame as wide as the surrounding text, aka \textwidth and the caption filling the available horizontal space. I.e. I want something like \setupcaption[width=\textwidth] \starttext \placefigure[here]{\input tufte}{\externalfigure[cow]} \stoptext with a frame around it. I see two approaches here and none of them gives me what I need. First using \setupfloat[frame=on] only frames the cow and not the caption. I think I can manually correct this with framedepth and width but doing something manually in ConTeXt seems not like a good idea. Am I overlooking something about \setupfloat? Secondly, I tried \framed{...} around \placefigure but there are two issues here: How do I setup the caption to fit nicely into the frame? \setupcaption[width=\textwidth] is to much because of the frame spacing... And there is another serious issue, see the following minimal example. The frame is where the figure was placed but is empty, because the figure floated to the next page. \setupcaption[width=max] \starttext \dorecurse{2}{\input tufte \par} \framed{\placefigure[here][fig:muh]{\input tufte}{\externalfigure[cow]}} \input tufte \stoptext I have no idea how to procede with this. Hopefully someone on this list knows how to do this right. Thanks in advance, Stefan. [1] http://archive.contextgarden.net/message/20090724.123610.ddad55af.en.html ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Missing booktitle in incollection bib-entries
Hi list, I have an @incollection-entry with booktitle set in a bib-file used in a ConTeXt document. Unfortunately there is no \title, generated from booktitle, in the respective .bbl file. Only \arttitle, generated from the bib-key title, is present. Guess it's a bug(?) Best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Frame around float and its caption, how to?
Thank you for taking a look at this. Too bad your solution is only MkII. The document I'm currently working on is to be written in APA style and unfortunately the frame around figure+caption is required... I'm not really interested in changing to MkII... ;) I hope there can also be a not too involed solution for this in MkIV. Best regards, Stefan On 25.09.2011 18:32, Wolfgang Schuster wrote: Am 25.09.2011 um 18:10 schrieb Stefan Müller: Hi list, I'm using 201100920 00:09 MkIV standalone. Some time ago Marcin Borkowski asked [1] on this list about framing floats together with their captions. It seems to be unanswered and now I stumbled upon a similar problem. I want to have a figure with a caption together in a frame as wide as the surrounding text, aka \textwidth and the caption filling the available horizontal space. I.e. I want something like \setupcaption[width=\textwidth] \starttext \placefigure[here]{\input tufte}{\externalfigure[cow]} \stoptext with a frame around it. Found this in my mail archive: % engine=pdftex \setupexternalfigures[location={local,global,default}] \setupfloats[frame=on,frameoffset=1mm] \starttext \section{A figure with a background} \placefigure {none} {\placelegend {\externalfigure[mill][scale=2000]} {\placefloatcaption[figure]{A dutch mill}}} \stoptext It works only with MkII because \placefloatcaption isn’t yet rewritten for the new MkIV code. Wolfgang ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bibliography related questions
Hi, On 22.09.2011 12:03, Christian wrote: - Can I get hyperlinks working with references in Context ? For example, with Biblatex with a citation and its reference, if I select the authoryear style, then I get : my citation (author year). And the reader can click on the year and be redirected to the reference in the bibliography. The year is a hyperlink. Can we get the same behaviour with Context ? Unfortunately, interaction only works if one uses the default ref-style, with the shitty [1]. Then this is clickable. Other alternatives like authoryear are NOT clickable. +1 for implementing interaction for other reference styles. I'm using ConTeXt version 201100920 00:09 MKIV and I get clickable references with \cite[my_reference_tag] (the shitty [1] which I use mostly) and also with \cite[author][my_reference_tag]. I don't have something special in my setup: \setupinteraction[state=start] \setupbibtex[database={thesis}] \setuppublications[alternative=ams, refcommand=num] \setupcite[num][lastpubsep={, }] \setupcite[author][left=, right=] HTH, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] patch for bibl-ams.tex
Hi list, I found two small errors in bibl-ams.tex: - for articles the period behind page numbers is missing - there is an additional space after title (or editors if present) of incollections because of missing % A patch is attached. Hope that this is okay and can be fixed in the core. Best regards, Stefan. --- C:/context/tex/texmf-context/tex/context/bib/bibl-ams.tex Thu Aug 13 11:48:24 2009 +++ C:/Users/warrence/Documents/My Documents/ConTeXt/diplomarbeit/bibl-ams.tex Wed Sep 21 19:13:49 2011 @@ -162,7 +162,7 @@ \insertvolume{ \bgroup\bf }{\egroup}{}% \insertpubyear{ (}{)}{\unskip}% \insertissue{\unskip, no.~}{}{}% - \insertpages{\unskip, }{}{}% + \insertpages{\unskip, }{.}{}% \insertNote{ }{.}{}% \insertcomment{}{.}{}% } @@ -290,7 +290,7 @@ {\egroup \inserteditors{, edited by }% {}% - {} + {}% \insertseries {\insertvolume{, number }{~in }{ }}% {}% ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Double interline spacing with headings
Hi list, I want to have double line spacing in my document setup, including the headings. But in the following example, the space before the heading is slightly different from the interline spacing between the other lines. How to do this right? (standalone MkIV 2011.09.20 00:09) \setuphead[section][style=normal, interlinespace=big, before=, after=] \starttext \setupinterlinespace[big] \input ward \section{\input ward} \input ward \stoptext TIA for your help! Kind regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] style=bold in \setuphead does not work anymore
Hi, In ConTeXt standalone MkIV 2011.08.04 00:42 this used to work: \setuphead[section][style=bold] \starttext \section{Ward} \input ward \stoptext In 2011.09.20 00:09 it doesn't anymore. If I use style=\bf I still get bold face. Is this a bug or was the interface changed deliberately? Best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Long word out of text area/No proper line wrap with flushleft
Hi again, in one of my documents I want the text to be flushedleft and not hyphenated, see the following example. \setupalign[flushleft, nothyphenated] \starttext \showlayout bb bb bb bb bb aa bb \stoptext However, in this example the aaa...a-word is not moved to the next line but written partially into the margin instead. I understand this behaviour for right-left-aligned text to avoid extremely stretched-out spaces, but here it doesn't seem right to me. Can I change this behaviour somehow? Thanks for any advice! Best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Long word out of text area/No proper line wrap with flushleft
Ah, thank you very much! Can you tell me why it's called broad? I don't get the intention behind this key... Stefan On 20.09.2011 11:34, Andreas Harder wrote: On 20.09.2011, at 11:31, Stefan Müller wrote: Hi again, in one of my documents I want the text to be flushedleft and not hyphenated, see the following example. \setupalign[flushleft, nothyphenated] \starttext \showlayout bb bb bb bb bb aa bb \stoptext \setupalign[flushleft,nothyphenated,broad] \starttext \showframe bb bb bb bb bb aa bb \stoptext Greeting Andreas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MetaObj with labels in built-in objects (MetaObj Standard Library)
Hi list, some time ago I posted on this list about problems with MetaObj in ConTeXt when using labels. There's a wiki article about this now [1]. Just recently I was forced to notice that this solution does not work when the label to be drawn is part of the object definition. So the example from [1] works fine with the added boolean flag, but the following example (which means basically all built-in MetaObj objects with text) does not. It compiles well but there is no text. --8start8-- \startMPinclusions[+] input metaobj; boolean firstrun; firstrun := true; \stopMPinclusions \startMPpage if firstrun: newBox.a(\sometxt{Text}); a.c = origin; fi; drawObj(a); firstrun := false; \stopMPpage --8stop8-- I'm out of ideas how to fix this. I tried putting the text into a separate pictrue variable and use this in newBox. In addition, I thought it should be possible to modify metaobj.mp to check for a boolean variable (e.g. firstrun) and let the macros there react to its value accordingly , but I always got either no text or errors. I can draw the picture I wanted to get in the first place with plain MetaFun, but I thought MetaObj would be even more fun. Now I'm very curious if someone on this list can come up with something. I think it would be great if MetaObj could be fully used within ConTeXt. Thanks in advance for taking the time to think about this and any hints! Kind regards, Stefan. [1] http://wiki.contextgarden.net/MetaObj_and_Labels ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Complexity of APA style, is this possible? (was: Some APA- and language related bibliography problems)
Hi again, I was told the where the style files (e.g. bibl-apa-de.tex) are located and got directions on how the files should be modified. I started modifying the bibl-apa.tex according to the 6th edition of the APA style manual. But now I get the impression, that the mechanism with those style files isn't able to cope with APA. That's why I wanted to ask if it is even possible to implement the following features by modifying the style files, or should I then better rewrite it in Lua (if there's need for extensive hackery)? :) If it can be done with the style files, then please point my in the right direction? -- When citing in text: two authors are separated only by and, e.g. Walker and Allen, but when there are three or more authors then there is a comma before the and, e.g. Bradley, Ramirez, and Soo. -- When there is no author of the source and the editor is listed first, then the reference starts with Editor, E. (Ed.). But if authors are given (for e.g. a book chapter with own title) and the editors are listed later, then their names are not inverted and without the comma, e.g. E. Editor (Ed.). -- According to the APA manual the complete list of authors is given in the publication list if there are seven or less authors. If there are eight or more authors, they are not abbreviated by et al., but the first six authors are given, followed by ... and the last author. -- The first citation (e.g. Bradley, Ramirez, and Soo (2006)) of a reference should be different from subsequent citations (e.g. Bradley et al. (2006)) of the same reference. -- The number of authors abbreviation with et al. depends on the author names: if there is e.g. Bradley, Ramirez, and Soo (2006) and Bradley, Soo, and Allen (2006), then the correct abbreviations after the first cite would be Bradley, Ramirez, et al. (2006) and Bradley, Soo, et al. (2006), respectively. Thanks in advance for any hints or suggestions. Kind regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Some APA- and language related bibliography problems
Hi list, I have some problems with a bibliography. Please consider the following example \mainlanguage[de] \setupbibtex[database={mysample}] \setuppublications[alternative=apa] \starttext Ein Zitat \cite[HagenHoekwater2011]. Noch ein Zitat \cite[SchrammKopiez2009]. \placepublications[criterium=text] \stoptext which results in Ein Zitat (Hagen and Hoekwater, 2011). Noch ein Zitat (Schramm and Kopiez, 2009). Hagen, H. and Hoekwater, T. (2011). Fonts in ConTEXt. Boekplan, NL. Schramm, H. and Kopiez, R. (2009). Die alltägliche nutzung von musik. In Bruhn, H., Kopiez, R. and Lehmann, A. C., editors, Musikpsychologie. Das neue Handbuch, pages 253-265. Reinbek bei Hamburg: Rowohlt Taschenbuch Verlag. There are some language specific issues here. (1) There is written and in the two references between the author's and between the editor's names, despite the fact that I changed the mainlanguage to German. I learned that I can change this to e.g. und with \setuppublicationlist[lastnamesep={\ und \ }, firstnamesep={\ und \ }] but is the current mechanism for translation able to automate the translation here too? Please note that I'm fine with the above solution, I'm just curious. [Similar issue with andtext in \setupcite] (2) Similar to the above: How can I change the other inserted words/text, the APA manual [a] requires something different here: (Eds.) or (Hrsg.) (without the comma, latter German) instead of , editors pp. or S. (German) instead of pages Do I have to modify ConTeXt bib style files here? I would very much refrain from that... Those inserted words/texts are in general not used in German. IIRC these were hardcoded in English inside the style files, is this still the case? (3) There was already a thread about this [b]. The current mechanism messes with the capitalization of the titles Die alltägliche Nutzung von Musik. In English, this is mostly an aesthetic concern, in German and other languages this is definitely a bug and makes the reference list unusable. Maybe I missed something here: Is it possible to change this without modifying the ConTeXt core files? If not I request that the function Thomas pointed out in [b] is removed. If I want uncapitalized titles I can just use them uncapitalized in th bib or bbl file. IIRC putting the complete title in extra {}'s in the bib would solve this but is considered very very bad. (4) In the APA-style, the entries in the reference list are supposed to be double-spaced [c]. How can I achieve this? The command \setupinterlinespace[big] inside \start...\stoptext does the job for the normal text, but not for the referencelist. [a] APA Publication manual, 6th edition, 2010. Page 202, section 7.02 Books, Reference Books, and Book Chapters. [b] http://www.ntg.nl/pipermail/ntg-context/2011/059359.html [c] APA Publication manual, 6th edition, 2010. Page 37, section 2.11 References. I strongly hope that I can get answers to all of my points above, and any hints and suggestions are appreciated. Unfortunately I'm very unfamiliar with ConTeXt's mechanisms concerning the reference list and I don't know where and how to fix these issues, otherwise I would try to post patches instead... Kind regards, Stefan Müller. @STRING{hh = {Hans Hagen}} @ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } @BOOK{HagenHoekwater2011, title = {Fonts in \ConTeXt}, publisher = {Boekplan, NL}, year = {2011}, author = {Hans Hagen and Taco Hoekwater}, isbn = {978-94-90688-03-5}, } @INCOLLECTION{SchrammKopiez2009, author = {Holger Schramm and Reinhard Kopiez}, title = {Die alltägliche Nutzung von Musik}, booktitle = {Musikpsychologie. Das neue Handbuch}, editor = {Herbert Bruhn and Reinhard Kopiez and Andreas C. Lehmann}, publisher = {Rowohlt Taschenbuch Verlag}, address = {Reinbek bei Hamburg}, pages = {253-265}, year = {2009}, }___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Some APA- and language related bibliography problems
In an off-list conversation I was told that there is an apa-de style. This is documented in [d] and was not in [e] so I updated that page. That solves issue (1) and partly issue (2): There is now , Herausgeber instead of (Hrsg.) what I want (and I think the APA manual wants it, too). Also, there is Seiten instead of S.. No effect on (3), (4). And there are two more issues I overlooked. (5) The APA manual [a] shows that it should read Title of book (pp. xxx-xxx). instead of Title of book, pages xxx-xxx. (the second reference in the example). This seems to be wrong in apa and apa-de. (6) Please consider \mainlanguage[de] \setupbibtex[database={mysample}] \setuppublications[alternative=apa-de] \starttext Wieder ein Zitat \cite[hh2010b] \placepublications[criterium=text] \stoptext In the output there is now MAPS, 40:67-71. But following again the APA manual [f] it should be MAPS, 40, 67-71 and the journal number 40 typeset italic. In the presence of an issue-number x it should read MAPS, 40(x), 67-71, again only journal name and number italic, not the issue number. [d] http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf [e] http://wiki.contextgarden.net/Reference/en/setuppublications [f] APA Publication manual, 6th edition, 2010. Page 199, section 7.01 Periodicals. Thanks in advance for considering this! Stefan On 18.08.2011 14:24, Stefan Müller wrote: Hi list, I have some problems with a bibliography. Please consider the following example \mainlanguage[de] \setupbibtex[database={mysample}] \setuppublications[alternative=apa] \starttext Ein Zitat \cite[HagenHoekwater2011]. Noch ein Zitat \cite[SchrammKopiez2009]. \placepublications[criterium=text] \stoptext which results in Ein Zitat (Hagen and Hoekwater, 2011). Noch ein Zitat (Schramm and Kopiez, 2009). Hagen, H. and Hoekwater, T. (2011). Fonts in ConTEXt. Boekplan, NL. Schramm, H. and Kopiez, R. (2009). Die alltägliche nutzung von musik. In Bruhn, H., Kopiez, R. and Lehmann, A. C., editors, Musikpsychologie. Das neue Handbuch, pages 253-265. Reinbek bei Hamburg: Rowohlt Taschenbuch Verlag. There are some language specific issues here. (1) There is written and in the two references between the author's and between the editor's names, despite the fact that I changed the mainlanguage to German. I learned that I can change this to e.g. und with \setuppublicationlist[lastnamesep={\ und \ }, firstnamesep={\ und \ }] but is the current mechanism for translation able to automate the translation here too? Please note that I'm fine with the above solution, I'm just curious. [Similar issue with andtext in \setupcite] (2) Similar to the above: How can I change the other inserted words/text, the APA manual [a] requires something different here: (Eds.) or (Hrsg.) (without the comma, latter German) instead of , editors pp. or S. (German) instead of pages Do I have to modify ConTeXt bib style files here? I would very much refrain from that... Those inserted words/texts are in general not used in German. IIRC these were hardcoded in English inside the style files, is this still the case? (3) There was already a thread about this [b]. The current mechanism messes with the capitalization of the titles Die alltägliche Nutzung von Musik. In English, this is mostly an aesthetic concern, in German and other languages this is definitely a bug and makes the reference list unusable. Maybe I missed something here: Is it possible to change this without modifying the ConTeXt core files? If not I request that the function Thomas pointed out in [b] is removed. If I want uncapitalized titles I can just use them uncapitalized in th bib or bbl file. IIRC putting the complete title in extra {}'s in the bib would solve this but is considered very very bad. (4) In the APA-style, the entries in the reference list are supposed to be double-spaced [c]. How can I achieve this? The command \setupinterlinespace[big] inside \start...\stoptext does the job for the normal text, but not for the referencelist. [a] APA Publication manual, 6th edition, 2010. Page 202, section 7.02 Books, Reference Books, and Book Chapters. [b] http://www.ntg.nl/pipermail/ntg-context/2011/059359.html [c] APA Publication manual, 6th edition, 2010. Page 37, section 2.11 References. I strongly hope that I can get answers to all of my points above, and any hints and suggestions are appreciated. Unfortunately I'm very unfamiliar with ConTeXt's mechanisms concerning the reference list and I don't know where and how to fix these issues, otherwise I would try to post patches instead... Kind regards, Stefan Müller. ___ 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 : http
Re: [NTG-context] Making bibliography references interactive in mkiv
I have \setupinteraction[state=start] in my mkiv-document and get clickable links (they are displayed in green) for all my \cite. Those links bring me to the correct bibliography page. Could you please provide a minimal example that's not working on your machine? Kind regards, Stefan On 18.07.2011 09:54, Christian wrote: Hello list, I'm currently using the built in bib-module in mkiv together with a bib database file. How can I set it up so that clicking on a reference takes me to the corresponding entry in the publication list? maybe '\setupinteraction[state=start, focus=standard]' can help you. That's not working for \cite, I'm afraid. Wiki says about setupinteraction[state=start]: This makes all links generated with the \goto command (and indirectly the \in and \at commands) clickable. I don't know enough about the inner mechanism of the cite command, maybe it's possible to define a custom command that uses goto. ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module (again)
On 07.07.2011 11:25, Steffen Wolfrum wrote: Am 06.07.2011 um 12:47 schrieb Hans Hagen: you can write a script that does it for you ... maybe at some point I will provide some extra hooks in the bib module but it has no priority on my agenda an even more challenging option, that might need some extra hooks, is the ibid option: an article is cited in a footnote. the macro looks if this article is already cited before. if so it looks if this is exactly the same article as cited directly before. and it makes sure that it is not the first cite on the current page (resp. spread). if all these are true, the \cite command gives an Ibid. instead of the full cite. as this is provided for latex users by Philipp Lehman with his biblatex package, it is considered to be kind of standard by some publisher today. Steffen Hi Steffen, I think Andreas Schneider posted a working solution for this some time ago. http://archive.contextgarden.net/message/20100121.112244.d88e2646.en.html But it is possible that this does not work anymore with the current beta (untested). Best regards, Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Additional title after enumerations-head
Hi list, in one of my documents (MkIV) I defined several different enumerations with \defineenumerations. Currently their only differences are in the values of text= and style=. With the following I got what I wanted so far: \defineenumeration[lemma][text=Lemma, location=serried, width=fit, style=slanted, indenting=yes, prefix=yes, prefixsegments=chapter, indentnext=no] \starttext \startlemma Some slanted text. \stoplemma \stoptext Results in Lemma 1 Some slanted text, head in bold and the text slanted. But now I have some lemmata that should get some kind of title, for example: Lemma 1 (Farkas Lemma) Some slanted text. How can I achieve this without defining a new description for every special case? I tried something like \startlemma[right={My title}] without avail. I want the title, (Farkas Lemma) in the above example, to be placed before the added distance. In addition I would like to be able to set (within \definedescription for all lemmata would be enough) whether I want the title to be bold (like the head Lemma 1) or not. Is all or some of this possible? I'm pretty confident that ConTeXt can already handle this, but I don't know how. Thanks in advance for any hints! Kind regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Additional title after enumerations-head
On 22.06.2011 21:02, Aditya Mahajan wrote: On Wed, 22 Jun 2011, Stefan Müller wrote: [...] \defineenumeration[lemma][title=yes] \startlemma {Farkas Lemma} ... ... \stoplemma Thanks a lot, that does the job! I'm pretty confident that ConTeXt can already handle this, but I don't know how. Have you seen http://www.ntg.nl/maps/36/09.pdf? Aditya Well, no, I haven't. I'll read it at once! Thank you very much for this, too! Kind regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Additional title after enumerations-head
On 22.06.2011 21:14, Stefan Müller wrote: On 22.06.2011 21:02, Aditya Mahajan wrote: On Wed, 22 Jun 2011, Stefan Müller wrote: [...] \defineenumeration[lemma][title=yes] \startlemma {Farkas Lemma} ... ... \stoplemma Thanks a lot, that does the job! I'm pretty confident that ConTeXt can already handle this, but I don't know how. Have you seen http://www.ntg.nl/maps/36/09.pdf? Aditya Well, no, I haven't. I'll read it at once! Thank you very much for this, too! Kind regards, Stefan Two questions about the article: Can you confirm that conversion=Characters and conversion=Roman (top of page 2) does not work? I vaguely recall some more or less recent changes in ConTeXt MkIV concerning number conversion. And can you confirm that (e.g.) number=theorem (page 3, middle) does not work? It seems as if you have to use counter=theorem now. Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Additional title after enumerations-head
Thank you. I wanted to add this to the wiki, but now I'm not sure how the mentioned commands relate to each other. So I guess \setupenumerations inherits all keys (among them number and numberconversion) from \setupnumber? Unfortunatly there's no reference page for \setupnumber on the wiki, yet. How to find out which keys there are for \setupnumber? In general, I find it extremly hard to find out which values for which keys are even defined for a given ConTeXt command... Stefan. On 22.06.2011 21:47, Wolfgang Schuster wrote: Am 22.06.2011 um 21:35 schrieb Stefan Müller: Two questions about the article: Can you confirm that conversion=Characters and conversion=Roman (top of page 2) does not work? I vaguely recall some more or less recent changes in ConTeXt MkIV concerning number conversion. The new name of the key is “numberconversion” (inherited from \setupnumber). And can you confirm that (e.g.) number=theorem (page 3, middle) does not work? It seems as if you have to use counter=theorem now. Number takes only the two values “yes” and “no”. Wolfgang ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Additional title after enumerations-head
On 22.06.2011 22:14, Wolfgang Schuster wrote: Am 22.06.2011 um 22:03 schrieb Stefan Müller: Thank you. I wanted to add this to the wiki, but now I'm not sure how the mentioned commands relate to each other. So I guess \setupenumerations inherits all keys (among them number and numberconversion) from \setupnumber? I attached a updated version of the options for the \setupdescriptions and \setupenumerations commands. Thank you very much. Unfortunatly there's no reference page for \setupnumber on the wiki, yet. How to find out which keys there are for \setupnumber? For the moment the source is the only reference but I’m working on a new list with all options for the most important commands. Again, thank you very much. I really appreciate all the work you (and others) are putting into this! In general, I find it extremly hard to find out which values for which keys are even defined for a given ConTeXt command... There is a manual with the keys and values for many commands: http://www.pragma-ade.com/general/qrcs/setup-en.pdf Yes, right. I saw this document when I started with ConTeXt and almost forgot about it. I didn't know it has been updated. Btw., \setupnumber is currently not in there, but I guess you now that. Wolfgang Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Editors
On 21.06.2011 11:19, Mojca Miklavec wrote: On Tue, Jun 21, 2011 at 09:35, Marc Trius wrote: This might be different for you if you're already used to Vim or Emacs, which I wasn't. As I said, if you are not used to work with those, it is a steep learning curve. TeXworks is configured to use MkII, but there are instructions on the wiki to configure it for MkIV. The latest TeXworks should have this fixed, but I have no idea how to build texworks on linux (for Windows and Mac one can download a binary). Mojca Hi, I'm not a very experienced Linux-user, but I still managed to compile the TeXworks-current-snapshot on my (Arch-)Linux system without any problems. It was just the same as with any other application I wanted to build from source. You need some development packages for your Linux-distro (have a look at http://code.google.com/p/texworks/ ) and then just something like qmake and make. HTH, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: What reference management software do you use?
On 23.05.2011 23:47, Thomas A. Schmitz wrote: As to the question why strings: Pontus's answer named one important aspect. I have several .bib files which contain nothing but string definitions: one with abbreviated, one with full journal titles; one with English strings (reprint, Munich) and one with the German equivalent (Nachdruck, München). Including the right file(s) will then provide the desired output. That sounds quite reasonable. I haven't thought of that yet, as I haven't written a lot of bibliographies and they were all in English. If I have for example mybib.bib, en.bib and de.bib, how would I tell ConTeXt that it should use mybib.bib as database and en.bib for string replacement? \setupbibtex[database={mybib.bib,en.bib}] ? Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [bibliography] publications layout
On 24.05.2011 00:57, Pontus Lurcock wrote: On Tue 24 May 2011, finkler wrote: in my publication list from the bibliography, every word, except the first starts in small case letters. How can I change this? This might help: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=capbibtex Pont Hi, is the bibliograph style as mentioned in If your document design specification requires a different style of capitalisation, you should acquire a bibliography style that doesn’t enforce BibTeX’s default rules. from the website you suggested, the same thing I set up with \setuppublications[alternative=...] ? I'm using ams there and realized that the title tag of @book is not treated that way (so with @book there are caps inside the title without extra {} in the bib-file). Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: What reference management software do you use?
On 22.05.2011 22:14, Otso Helenius wrote: using ConTeXt and not LaTeX you maybe also use a nice reference management software the main stream does not know about. But probably it is not related to ConTeXt at all since it is BibTeX in the end. I can warmly recommend Zotero. It works very well and can fetch content directly from web pages (also recognizes PubMed, ScienceDirect, Google Books etc. automatically). The best feature is automatic sync of content to either the Zotero server or your own. +1 for Zotero I tried Mendeley some time ago. It's standalone but sill quite similar to Zotero. Browser-integration works via a special bookmark. It also has an embedded pdf-viewer, which is very neat. Reason for changing to Zotereo were some strange bibtex-export issues, where the bibtex file got messed up and had to be readjusted manually. The Firefox plugin is nice, and now there is also an alpha standalone app in in development. The software is open source and in use in many universities worldwide. http://www.zotero.org/about/ Best, Otso Helenius ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: What reference management software do you use?
Okay, then I should definitely take a look at JabRef. Anyhow, maybe I'm naive here, but I don't see a reason why Zotero should support BibTeX Strings. If I type the BibTeX file manually, sure. But Zotero reads the (e.g.) Journal names from the corresponding websites, so there should be no need to replace those with abbreviations. Is it because I don't understand BibTeX strings? Does JabRef offers synchronisation (e.g. WebDAV) between different machines? Stefan On 23.05.2011 23:00, Thomas A. Schmitz wrote: On May 23, 2011, at 10:45 PM, Stefan Müller wrote: +1 for Zotero I tried Mendeley some time ago. It's standalone but sill quite similar to Zotero. Browser-integration works via a special bookmark. It also has an embedded pdf-viewer, which is very neat. Reason for changing to Zotereo were some strange bibtex-export issues, where the bibtex file got messed up and had to be readjusted manually. I find Zotero useless for my work with ConTeXt. You cannot have cross-references within your bibliographic items, and it is impossible to have proper markup in bibliographical items. For me, both are absolute killer arguments; I cannot work with zotero. And the bibtex export sucks; important features such as bibtex strings are not supported. So I would actually recommend jabref if you need a cross-platform tool or bibdesk if you're using OS X exclusively. Regarding a system when you write your context files: I use Emacs, and I haven't seen anything more powerful or more convenient than reftex (which also works with context, after a few tweaks in your configuration file). Thomas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metfun macro for triangle
On 24.03.2011 10:57, Otared Kavian wrote: Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is there a solution with mkii? Then just drop the MPdefinitions section and put the complete vardef before your normal mp code in the MPcode section. That should work, I think. May I ask one more question? In the macro you wrote Triangle((0cm,0cm), (5cm,0cm), 8cm, 6cm) one has to specify the double of the length of each side (because a unit circle in MetaPost is a circle having diameter one). Would it be possible to change slightly the lines Now that's strange... But I see what you mean. I didn't notice. p := fullcircle scaled la shifted za ; q := fullcircle scaled lb shifted zb ; so that la and lb are replaced with their doubled values? I tried p := fullcircle scaled 2*la shifted za ; Yeah, you need parentheses here, because otherwise Metapost tries to scale by 2 and then doesn't know how to multiply the result (the path fullcircle scaled 2) with la. p := fullcircle scaled (2 * la) shifted za ; q := fullcircle scaled (2 * lb) shifted zb ; but this does not work. Thanks for your attention: OK np, Stefan. On 24 mars 2011, at 10:29, Stefan Müller wrote: Hi, what about \startMPdefinitions vardef Triangle(expr za, zb, la, lb) = path p, q ; pair zc ; pickup pencircle scaled 2mm ; drawdot za ; drawdot zb ; p := fullcircle scaled la shifted za ; q := fullcircle scaled lb shifted zb ; zc = p intersectionpoint q ; drawdot zc ; pickup pencircle scaled 1mm ; za--zb--zc--cycle enddef; \stopMPdefinitions \starttext \startMPcode draw Triangle((0cm,0cm), (5cm,0cm), 8cm, 6cm) withcolor blue ; \stopMPcode \stoptext Stefan On 24.03.2011 09:59, Otared Kavian wrote: Hi all, I have a document in which I must draw several triangles for which two summits, say z0, z1, and the length of the two other sides are known, so that the third summit, say z2, is completly determined. In order to draw one triangle the following works fine: \setupcolors[state=start] \starttext \startMPcode z0 = (0cm,0cm) ; z1 = (5cm,0cm) ; path p, q ; pickup pencircle scaled 2mm ; drawdot z0 ; drawdot z1 ; p := halfcircle scaled 8 cm ; % twice the length of the second side at z0 p := p shifted z0 ; q := halfcircle scaled 6 cm ; % twice the length of the second side at z1 q := q shifted z1 ; z2 = p intersectionpoint q ; drawdot z2 ; pickup pencircle scaled 1mm ; draw z0--z1--z2--cycle withcolor blue ; \stopMPcode \stoptext However I would like to have a macro, for instance named Triangle, which accepts four arguments z0,z1, length_1, length_2, so that in a MetaPost code i can use draw Triangle(z0,z1, 4, 3) withcolor blue ; in order to draw the above triangle. Has anyone any idea about how to do this? Thanks in advance for your help: OK ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki
Re: [NTG-context] (RSFS) font installation
On 18.03.2011 03:42, mathew wrote: On Mar 17, 2011, at 11:53, Stefan Müller wrote: Yes, I thought so. I just asked, because I couldn't find an environment variable with that name. Even after setuptex.bat typing echo %OSFONTDIR% did only print %OSFONTDIR% and not a list of paths, as I expected. There are defaults baked into the binaries. If you don't set the environment variable, you get the built-in defaults. That's generally how things work on Unix. Alright, that would explain it. On Mar 17, 2011, at 11:53, Stefan Müller wrote: (2A) Put .afm files to C:\Windows\Fonts (2B) Put the complete rsfs (containing the .afm and all the other stuff) directory to texmf-fonts\fonts Right... From the point of view of ConTeXt/LuaTeX use, there's no need for the fonts to be installed in Windows; you just need to have all the files somewhere that OSFONTDIR (or the default font paths) will point. The font outlines will be embedded into the PDF by default, so the OS doesn't need to have access to them. The point I was trying to make here was that on my system I _needed_ to install the fonts in Windows first. Otherwise mtxrun wouldn't find them, no matter where the afm files were. This is maybe because of the directory structure, but I have no idea, especially as somewhere it was stated that I should just put the directory there. I have the following: texmf-fonts \ fonts \ rsfs \ *.mf texmf-fonts \ fonts \ rsfs \ type1 \ *.pfb texmf-fonts \ fonts \ rsfs \ type1 \ afm \ *.afm texmf-fonts \ fonts \ rsfs \ type1 \ map \ *.map texmf-fonts \ fonts \ rsfs \ type1 \ pfm \ *.pfm mtxrun finds the pfb (pfm) in C:\Windows\Fonts and the afm files here. But it doesn't look for the pfb (pfm) in texmf-fonts... Is this because of the legacy issue? It's pretty inconvenient. - In both versions, step (1) seems to be mandatory. I would expect, that the rsfs directory in texmf-fonts\fonts should be enough, as mtxrun clearly searches there and all the files are there, too. I don't understand the problem here. Hmm, that *would* explain my problem with getting GhostScript's Type 1 fonts working... I must investigate further! - If the .pfm and .pfb files are sufficient for Windows, why does mtxrun specifically search for .afm files and not also for .pfm? Probably because mtxrun (and the rest of ConTeXt and LuaTeX) are written for Unix and ported to Windows, and Unix uses .afm files for metrics. (Except OS X, which is different for historical reasons.) That and .afm files are much easier to work with because they're text files. But it might not be a bad idea for LuaTeX to automatically perform a pfm2afm conversion and cache the converted files when necessary, and probably not that hard to code. On the other hand, Type 1 fonts are legacy at this point, so it might not be worth it. mathew I'll keep in mind that the type1 fonts are obsolete. I just thought it would be a nice idea to try getting some font with the rsfs first, as there were full examples (which do not work here for some reason) on the mailing list. Thanks for the help, Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (RSFS) font installation
Indeed, that works! Thank you very much. So again, structure matters. Kind regards, Stefan. On 18.03.2011 12:39, Hans Hagen wrote: On 18-3-2011 12:26, Stefan Müller wrote: I have the following: texmf-fonts \ fonts \ rsfs \ *.mf texmf-fonts \ fonts \ rsfs \ type1 \ *.pfb texmf-fonts \ fonts \ rsfs \ type1 \ afm \ *.afm texmf-fonts \ fonts \ rsfs \ type1 \ map \ *.map texmf-fonts \ fonts \ rsfs \ type1 \ pfm \ *.pfm just put the pfb and afm files (forget about map files) texmf-fonts/fonts/data/rsfs and run mtxrun --generate afterwards Hans ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (RSFS) font installation
Hi mathew, thanks for your reply! On 16.03.2011 16:58, mathew wrote: On Wed, Mar 16, 2011 at 09:00, Stefan Müllerwarrence@gmx.de wrote: [...] I put the rsfs directory with its subdirs from the .zip to the folder c:\context\tex\texmf-fonts\fonts\data\ as Wolfgang suggested [4] and ran context --generate. I seems as if this did not install the font, but I have no idea. How can I check this? For mkiv minimals, the following should work: a) Install font as appropriate for your OS. I'm using Windows Vista 64bit and installed the rsfs font by right-clicking the .pfm files. I thought I had to use the .pfb files, but Windows did not recognize those and didn't show Install in the context menu. After installing the .pfm files I could find them in C:\Windows\Fonts. b) Make sure OS font directory containing font pfb file is included in OSFONTDIR Is this a typo and do you mean .pfm file? Otherwise I don't get it. Should I just copy the .pfb files to C:\Windows\Fonts, too? Did something went wrong with installation? When running mtxrun --script fonts --reload c) Update LuaTeX's font info by running mtxrun --script fonts --reload there were the lines fonts | names | identifying system font files with suffix otf fonts | names | adding path from OSFONTDIR: c:/windows/fonts fonts | names | adding path from fontconfig file: c:/windows/fonts in the output, so I guess OSFONTDIR is correct (where would I change it, anyway?) as c:/windows/fonts is considered. Here mtxrun tries to identify fonts with a number of suffixes. It only consideres otf, ttf, ttc, dfont and afm (and caps versions). Shouldn't there be pfm or pfb as well? d) Check the list of fonts using mtxrun --script fonts --list --all --pattern=* I tried this and got a lot of fonts (around 900) printed to screen, however rsfs was not present in this list. What did I wrong? Thank you very much for your patience! Best regards, Stefan At that point you have the font known to LuaTeX. Then you need to set it up in your document; I posted a full example of that a while back, it's at http://pastebin.tlhiv.org/9GeRRcI4 but I haven't put it into the wiki yet. mathew ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (RSFS) font installation
Ah, thanks for that. Indeed, there are .pfm and .pfb files in the Fonts directory now. But still mtxrun --script fonts --reload doesn't seem to check for those file types... Best regards, Stefan. On 17.03.2011 13:40, Ulrike Fischer wrote: Am Thu, 17 Mar 2011 10:05:17 +0100 schrieb Stefan Müller: Is this a typo and do you mean .pfm file? Otherwise I don't get it. Should I just copy the .pfb files to C:\Windows\Fonts, too? You need both pfm and pfb in the fonts folder. But windows probably pulled the pfb along with the pfm when you told it to install the font. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (RSFS) font installation
On 17.03.2011 16:04, mathew wrote: On Thu, Mar 17, 2011 at 04:05, Stefan Müllerwarrence@gmx.de wrote: I'm using Windows Vista 64bit and installed the rsfs font by right-clicking the .pfm files. I thought I had to use the .pfb files, but Windows did not recognize those and didn't show Install in the context menu. After installing the .pfm files I could find them in C:\Windows\Fonts. .pfb is Printer Font, Binary. .pfa is Printer Font, ASCII. .pfm is Printer Font Metrics, binary. .afm is Adobe Font Metrics, ASCII. Typically each font will have a set of outlines in a pfb or pfa file, and a set of metrics in a pfm or afm file. For Windows, you want the pfb and pfm files. Is this a typo and do you mean .pfm file? Otherwise I don't get it. Should I just copy the .pfb files to C:\Windows\Fonts, too? Did something went wrong with installation? On Windows 7, the OS will identify only the .pfm file as the actual font. However, when you install the font by opening it and clicking the Install button, Windows invisibly locates the matching .pfb file from the same directory, and copies them both to the C:\Windows\Fonts directory. It then hides the separate files from you. However, you can open the command line prompt and cd to \windows\fonts and use dir to see them. Yeah, I just figured that out. I love that about Windows... fonts | names | identifying system font files with suffix otf fonts | names | adding path from OSFONTDIR: c:/windows/fonts fonts | names | adding path from fontconfig file: c:/windows/fonts in the output, so I guess OSFONTDIR is correct (where would I change it, anyway?) as c:/windows/fonts is considered. Yes, looks like it's correct. You'd change it by setting an environment variable. http://www.itechtalk.com/thread3595.html Yes, I thought so. I just asked, because I couldn't find an environment variable with that name. Even after setuptex.bat typing echo %OSFONTDIR% did only print %OSFONTDIR% and not a list of paths, as I expected. Here mtxrun tries to identify fonts with a number of suffixes. It only consideres otf, ttf, ttc, dfont and afm (and caps versions). Shouldn't there be pfm or pfb as well? On Linux, it seems to scan for .afm files, as that's what Linux expects and installs in preference to pfm. I'd expect the Windows version to scan for .pfm, but I've never run any kind of TeX under Windows. To be honest, I did have problems getting LuaTeX and XeTeX to recognize the PostScript fonts installed with GhostScript, so I eventually removed them from my font path. My general conclusion is that life is a lot, lot simpler if you throw away all your Type 1 fonts and replace them with OpenType versions. (I used fontforge to convert the few that I really wanted to keep.) Also, if you can find out what TeX is looking for, there are tools to convert between pfb and pfa, and between afm and pfm. mathew ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (RSFS) font installation
So... I think I got somewhere now with the explanations from you and mathew. It seems that the problem were the missing .afm files (as mtxrun wanted those, not .pfm nor .pfb). I found two different solutions A and B: (1) Install fonts (.pfm) in Windows (2A) Put .afm files to C:\Windows\Fonts (2B) Put the complete rsfs (containing the .afm and all the other stuff) directory to texmf-fonts\fonts (3) Run mtxrun --script fonts --reload (4) Running mtxrun --script fonts --list --all --pattern=rsfs shows the fonts (Note the --all, otherwise only one is printed) There are two things now, that are somehow strange to me: - In both versions, step (1) seems to be mandatory. I would expect, that the rsfs directory in texmf-fonts\fonts should be enough, as mtxrun clearly searches there and all the files are there, too. I don't understand the problem here. - If the .pfm and .pfb files are sufficient for Windows, why does mtxrun specifically search for .afm files and not also for .pfm? Anyhow, the fonts are finally listed/recognized by mtxrun. Unfortunately, the example at http://archive.contextgarden.net/message/20100414.122529.bc3ba584.en.html still doesn't show me the rsfs font, only a default font. Probably I just have to look into that (and the example from mathew) tomorrow. Best regards and thanks so far, Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] (RSFS) font installation
Hi, like others before, I tried to get the script alphabet from Ralph Smith's Formal Font to work in MkIV (minimals) and failed. There seems to be only outdated or unclear and unspecific information about where to start with fonts available. Or: there is information everywhere but I can't put it together. I downloaded a rsfs.zip from [1] containing .mf, .pfb, .afm, .pfm files and a .map file. It seems to be a type1 font. The manual [2] states, that a script texfont.pl can do install the font. Mojca said [3] on the mailing list that texfont is not the way to go, so I didn't try to go further in that direction. Do I need .tfm files? If so, how to get them? I put the rsfs directory with its subdirs from the .zip to the folder c:\context\tex\texmf-fonts\fonts\data\ as Wolfgang suggested [4] and ran context --generate. I seems as if this did not install the font, but I have no idea. How can I check this? \definefont[rsfs][file:rsfs*default] \starttext \rsfs ABCDEFGHIJKLMNOPQRSTUVWXYZ \stoptext just gave me the alphabet in default font. Is there a way to ask ConTeXt which fonts (or does ConTeXt know typescripts?) it knows? In addition, I tried the example from Hans and Otared at [5] which crashes on my installation (error log appended at the end). I don't know how to proceed here. Hopefully someone from this list can assist me. Thanks in advance. Kind regards, Stefan [1] http://www.ctan.org/tex-archive/fonts/rsfs/ [2] http://pmrb.free.fr/contextref.pdf [3] http://archive.contextgarden.net/message/20101213.120015.795450f2.en.html [4] http://archive.contextgarden.net/message/20101214.102347.a6a2216f.en.html [5] http://archive.contextgarden.net/message/20100414.122529.bc3ba584.en.html mtx-context | warning: syntex is enabled mtx-context | run 1: luatex --synctex=1 --fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --backend=pdf ./rsfs_test.tex This is LuaTeX, Version beta-0.66.0-2011021923 (rev 4086) \write18 enabled. (rsfs_test.tex ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.3.16 int: english/english system cont-new.mkiv loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system rsfs_test.top loaded (rsfs_test.top) fontslatin modern fonts are not preloaded languageslanguage en is active (C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv){C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} system begin file rsfs_test.tex at line 41 backend xmp using file 'C:/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 system end file rsfs_test.tex at line 57 ){C:/context/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}{C:/context/tex/texmf/fonts/enc/dvips/lm/lm-mathit.enc}C:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otfC:/context/tex/texmf-fonts/fonts/data/rsfs/type1/rsfs10.pfbType1: Could not understand Type1 font: C:/context/tex/texmf-fonts/fonts/data/rsfs/type1/rsfs10.pfb mtx-context | fatal error: return code: 1 ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [texworks] ConTeXt version calling convention
Hi list, there were some ConTeXt-related questions on the TeXworks mailing list. I tried to answer some of them but I'm pretty sure someone with more experience should take a look at this. The message from Stefan Löffler can be found here: http://tug.org/pipermail/texworks/2011q1/003878.html Best wishes, Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A question about data types?
Hi! On 02.03.2011 12:25, Ian Lawrence wrote: Sorry. me again...and I have been all over the wiki, mailing lists and manuals... I have this: \setlayer[progresssteps]% name of the layer [hoffset=904 px, voffset= 28\nuggetnumber px] % placement (from upper left corner of the layer) {\stepstack} % the actual contents of the layer And I am hoping that as I increase nuggetnumber the voffset of the layer will be 28*nuggetnumber I am setting nuggetnumber like this for the moment: \def \nuggetnumber{3} (in the other dev document it is the result of counter, so set dynamically) and this in the text \nuggetnumber which compiles to '3', so I assume the assignment is good to go. varying both nuggetnumber and the scale factor (28) shift the layer up and down, but not in a way that suggests that 28\nuggetnumber is being evaluated as a product (so a scale factor of 7 and a nuggetnumber of 2 do not give the same output as a scale factor of 2 and a nuggetnumber of 7). If you expect a product you should tell ConTeXt you want a product. You don't do that with 28\nuggetnumber px. Check out http://wiki.contextgarden.net/Expressions I think \dimexpr\nuggetnumber*28px\relax should get you there, but I'm not sure (untested). Stefan So I am led to think that there is something in the evaluating that is going wrong - data types / units? (if I hard code in the results I am expecting, say 28 px, 56 px or 84 px then I get exactly what I want... Thanks, as ever (Same result in ConTEXt ii or iv) Ian ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] references
On 28.02.2011 17:58, Wolfgang Schuster wrote: Am 28.02.2011 um 17:38 schrieb Stefan Müller: I just learned that some of those labels are, in fact, reused. That caused some confusion when I tried something like \setuplabeltext[en][section=section~] Is there a list or something which labels alexist and what values they have? Only the source files, mkii gets the labels from the lang-xxx.mkii files and mkiv from lang-lab.lua. What you can do is to list them on the wiki. Wolfgang Only for clarification: did you mean lang-txt.lua with a lot stuff like ... july={ labels={ af=julie, ... in it? Or is there something wrong with my files (couldn't find this file at http://source.contextgarden.net/tex/context/base only on my harddrive...)? If that's the file: it looks like a clever thing to me to let a lua-function read data.labels and format it properly (table or something) and/or show only one language or something, rather then putting it on the wiki. Especially since there are some gaps in this file and there could be a lot updates in the future. I'll look into that in the not too far away future, but I'm not very experienced with Lua. Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Item description in bold
Hi Cecil, I think here is what you are looking for: http://wiki.contextgarden.net/Description There it is explained how to define descriptions. In \definedescription[descr][ headstyle=bold,style=normal,align=left,location=hanging, width=broad,margin=1cm] the option headstyle=bold does the magic. Besides, you could also just use {\bf Description one}, I think. HTH, Stefan On 01.03.2011 15:47, Cecil Westerhof wrote: I have something like: \startitemize \item Description one Some text belonging to this description. \item Description two Some text belonging to this description. \item Description three Some text belonging to this description. \stopitemize I would like to have 'Description one', 'Description two' and 'Description three' in bold and the rest of the text not. Is this possible? -- Cecil Westerhof ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma spacing in math mode
On 28.02.2011 00:20, Khaled Hosny wrote: On Sun, Feb 27, 2011 at 06:14:36PM -0500, Aditya Mahajan wrote: On Mon, 28 Feb 2011, Mojca Miklavec wrote: IMO this does only partially help, consider the following example: \starttext $(B, Y, R, X)$ \setupmathematics[autopunctuation=no] $(B, Y, R, X)$ \stoptext In both lines the spacing after Y is way to big. I don't know if that's a bug or just ugly. (version 2011.02.15 16:11) In text parts this is known as kerning. In OpenType math there are complex bounding boxes. I would call it a bug. The spacing is OK with cambria, but not with xits. Because Cambria implements math kerning that Mojca is referring too, XITS don't (and will not in the near future unless someone steps to implement it; pretty tedious job). Regards, Khaled Ah, okay. Too bad. Some time ago I was wondering if there's something like kerning in math mode, too. Does that mean it would work if I switch to cambria math fonts? Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Non-stretching or slow-stretching spaces?
Hi! On 27.02.2011 05:02, S Barmeier wrote: I was wondering if there are any kind of spaces which (partly) fix the spacing between characters. For example, typesetting Chapter 1, I would like to keep the space from stretching at the same rate as the surrounding spaces (just like ck ligatures in old German texts would be prevented from stretching, or the space in do n't (sic) in early 20th century American texts). I currently use Did you mix up those two? \ to prevent a line break I don't think that this prevents a line break, at least not in MkIV. You could use ~ as in don't~break~here. ~ to prevent extra space after a period You can set this globally [1] (if I understand you correctly). If you only want to use it at some places use \ as in i.e.\ . [1] http://wiki.contextgarden.net/French_spacing HTH, Stefan \, \; etc. as fractions(?) of the normal space (i.e. they change at the same rate as the normal space when stretched) Are there any other types of spaces I should be aware of? I would be most grateful for any comments, especially concerning the existence of a slow-stretching (or non-stretching) space... Thank you, Severin ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] problems with bib
Hi list, until now I used the bib module for my bibliography in a rather large document in MkIV by calling \usemodule[bib]. Today I updated to version 2011.02.25 22:03 and the document does no longer compile. I removed the above line from my document and it ran again, but the References section was empty and I got [[error 1]] everywhere I used \cite. So I changed \completepublications to \completepublications[criterium=all]. Now I have the complete list of references (I know, I asked for it) but instead I only want to have those references in the list that I cited in the document. Some questions: (1) Is the bib module obsolete? If so, can someone provide me with a small example how to properly make bibliographies now, preferably from a .bib-file? (2) If this is not already answered by the first question: How do I get the references list to display only the cited entries from my bibliography, [criterium=?]? (3) What do I have to do to let context find the sample.bib database? I get I couldn't open database file sample.bib.bib or I couldn't open database file sample.bib in the output depending on whether I added .bib or not. My current setup is this: %\usemodule[bib] \setupbibtex[database={mybibdatabase.bib}] \setuppublications[alternative=ams, refcommand=num] \setupcite[num][lastpubsep={, }] \setupcite[author][left=, right=] ... \completepublications[criterium=all] Any help appreciated, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] references
Hi, I think it could be useful to be able to reuse the label text setups elsewhere, too. I have for example \definereferenceformat[inexp][label=example] \setuplabeltext[en][example=example~] in one of my documents. Why not specify this label when defining an enumeration example: \defineenumeration[example][label=example] This way I could easily use several languages in parallel with one setup. The first letter should probably be capitalized in the enumeration label... Stefan. On 11.02.2011 18:27, Hans Hagen wrote: Hi, I uploaded a beta. New: - Improved \textxt behaviour (for Mojca's code). - Korean labels and index tagging (with help from Jeong Dalyoung). - Cleaned of referencing (formats). \setupinteraction[state=start] \startbuffer[definitions] \definereferenceformat [PageOne] [left=(,right=),text=sometext] \definereferenceformat [PageTwo] [label=page] \definereferenceformat [PageThree] [label=*] \definereferenceformat [PageFour] [label=both] \setuplabeltext[en][page=page~] \setuplabeltext[en][chapter=chapter~] \setuplabeltext[en][both={chapter~,~retpahc}] \stopbuffer \getbuffer[definitions] \starttext \chapter[one]{One} \typebuffer[definitions] \startbuffer \PageOne[two] \PageTwo[two] \PageThree[two] \PageFour[two] \at{(}{)}[two] \at{!}[two] \at{page}[two] \at[two] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \chapter[two]{Two} \typebuffer[definitions] \startbuffer \PageOne[one] \PageTwo[one] \PageThree[one] \PageFour[one] \at{(}{)}[one] \at{!}[one] \at{page}[one] \at[one] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] references
I just learned that some of those labels are, in fact, reused. That caused some confusion when I tried something like \setuplabeltext[en][section=section~] Is there a list or something which labels alexist and what values they have? Stefan On 28.02.2011 16:08, Stefan Müller wrote: Hi, I think it could be useful to be able to reuse the label text setups elsewhere, too. I have for example \definereferenceformat[inexp][label=example] \setuplabeltext[en][example=example~] in one of my documents. Why not specify this label when defining an enumeration example: \defineenumeration[example][label=example] This way I could easily use several languages in parallel with one setup. The first letter should probably be capitalized in the enumeration label... Stefan. On 11.02.2011 18:27, Hans Hagen wrote: Hi, I uploaded a beta. New: - Improved \textxt behaviour (for Mojca's code). - Korean labels and index tagging (with help from Jeong Dalyoung). - Cleaned of referencing (formats). \setupinteraction[state=start] \startbuffer[definitions] \definereferenceformat [PageOne] [left=(,right=),text=sometext] \definereferenceformat [PageTwo] [label=page] \definereferenceformat [PageThree] [label=*] \definereferenceformat [PageFour] [label=both] \setuplabeltext[en][page=page~] \setuplabeltext[en][chapter=chapter~] \setuplabeltext[en][both={chapter~,~retpahc}] \stopbuffer \getbuffer[definitions] \starttext \chapter[one]{One} \typebuffer[definitions] \startbuffer \PageOne[two] \PageTwo[two] \PageThree[two] \PageFour[two] \at{(}{)}[two] \at{!}[two] \at{page}[two] \at[two] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \chapter[two]{Two} \typebuffer[definitions] \startbuffer \PageOne[one] \PageTwo[one] \PageThree[one] \PageFour[one] \at{(}{)}[one] \at{!}[one] \at{page}[one] \at[one] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with bib
Thanks for the fast replies! I really appreciate it. On 28.02.2011 18:00, Thomas Schmitz wrote: 2. Hans is working on bib issues as we speak, but he has only so much time, so no ETA. I'm fine with that. What else could I ask for? ;) 3. For the problem described above, try \usepublications[criterium=text] I'm not sure where to put this command and how to adapt other commands. But \completepublications[criterium=text] works for me. So that's okay with me. Bib support is an extremely complex area, so be aware that we're still experimenting and things are moving. Having as many testers as possible with many different requirements helps a lot finding and identifying errors. HTH It did, thank you. Stefan Thomas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma spacing in math mode
Hi! On 27.02.2011 20:58, Aditya Mahajan wrote: On Sun, 27 Feb 2011, S Barmeier wrote: I don't know if anyone feels the same, but I'm not happy with the spacing of commas in math mode (pictures attached). For instance, typesetting H^1(X,F), the comma seems to be closer to the F than to the X. Equal spacing on both sides or setting the comma closer to the X are I guess a matter of taste (inserting a \neghairspace after the X achieves the latter). In any case, I would kind of prefer equal spacing. \setupmathematics[autopunctuation=no] @Hans: I would suggest that this should be made the default. IMO this does only partially help, consider the following example: \starttext $(B, Y, R, X)$ \setupmathematics[autopunctuation=no] $(B, Y, R, X)$ \stoptext In both lines the spacing after Y is way to big. I don't know if that's a bug or just ugly. (version 2011.02.15 16:11) Also, it seems odd that adding a negative space \neghairspace does not change the length of the total formula - I had expected the modified one to be slightly shorter...? I don't know about this. On a related issue, the spacing for lists, e.g. (0,0,...,0), is not satisfactory. LaTeX provides a command \dotsc for dots between commas (and other commands like \dotsm, \dotsi, \dotsb). I don't know if all of these are necessary, but \dotsc and its cousins are not defined in ConTeXt and both using \ldots or just ... give unsatisfactory results. (It is also curious that the spacing after the first comma and the spacing after the last comma in (0,0,...,0) is evidently different...) Personally, I think I favour something approximating (0, 0, ..., 0) and I find \ldots is spaced too widely, ... too closely, and in any case, the spacing of the dots doesn't match with the spacing of the commas. Any second opinions? Adding the \dots(m|i|b|) etc from amsmath is a good idea. I will look into that. +1. I normally use $x, \dots\, ,x$ because then the spacing between the periods looks the same as between the commas and the periods, which I prefer. I personally appreciate the wider spacing in \dots. Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] curly bracket different values (entries)
Hi, with \startmathcases ... \stopmathcases you get a curly bracket to the left of ..., see [1]. If you just want to have multiline equations, then \startalign ... \stopalign could be want you need (it's also on page [1]). There's also a My Way [2] about mathalign. HTH, Stefan [1] http://wiki.contextgarden.net/Multiline_equations#Cases [2] http://dl.contextgarden.net/myway/mathalign.pdf On 15.02.2011 18:13, Vyatcheslav Yatskovsky wrote: Hi, Sorry for stealing the tread, but what mathcases do and how it is different from mathalign? Sometimes, I need to typeset multiline equations, and have to admit that this an obscure subject. Regards, 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] introduction to interaction
Hi Hans, a good starting point would probably be http://wiki.contextgarden.net/Interaction There are some infos about it, at least. HTH, STefan On 07.02.2011 19:26, Hans van der Meer wrote: Where can I find some introduction/reference for interacion macro's in ConTeXt? I rroamed the wiki, but either overlooked or missed the right keywords ;-) Hans van der Meer ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \date format according to ISO 8601
Hi, I wouldn't like the idea of displaying \date in ISO 8601 format. I'd rather prefer the human-readable version. The ISO 8601 is a standard for exchange of date and time-related data [1], not for text documents made for humans to read. How to get what you want is explained here [2], I think. HTH. [1] http://en.wikipedia.org/wiki/ISO_8601 [2] http://wiki.contextgarden.net/Reference/en/date Best regards, Stefan On 01.02.2011 00:03, Marco wrote: Hi, in my opinion it makes sense to display the date in ISO 8601 format. now: \date results in: January 31, 2011 ISO 8601: \date would result in: 2011–01–31 In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Regards Marco ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Left/right justification and interline-spacing inside natural tables (TABLE)
Hi list, this is probably pretty easy to solve, but I didn't find anything about in on wiki or mailing list about it. I'm using ConTeXt MkIV. How can I get the text in the following example to be left and right justified, i.e. the default alignment behaviour of text outside a TABLE (\starttext \input knuth \stoptext)? \starttext \bTABLE \bTR[width=10cm] \bTD \input knuth \eTD \eTR \eTABLE \stoptext In addition: is it possible to increase or decrease the interline-spacing of the text inside the TABLE cell? How? Thanks in advance, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [***SPAM***] Re: Left/right justification and interline-spacing inside natural tables (TABLE)
Amazing! Thank you very much for that. Your example works. However, for some reason the following does not work. Only the space before the first line and the space between the first line and second line are changed (not even to the same dimension). Any ideas? \starttext \bTABLE \bTR[width=10cm, align=yes] \bTD \setupinterlinespace[10ex] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \eTD \eTR \eTABLE \stoptext Kind regards, Stefan. On 31.01.2011 15:20, Peter Münster wrote: Stefan Müllerwarrence@gmx.de writes: \starttext \bTABLE \bTR[width=10cm] \bTD \input knuth \eTD \eTR \eTABLE \stoptext \starttext \bTABLE \bTR[width=10cm, align=yes] \bTD \setupinterlinespace[5ex] \input knuth \eTD \eTR \eTABLE \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Left/right justification and interline-spacing inside natural tables (TABLE)
Thank you, that did the magic. Stefan. On 31.01.2011 16:05, Peter Münster wrote: Stefan Müllerwarrence@gmx.de writes: However, for some reason the following does not work. Only the space before the first line and the space between the first line and second line are changed (not even to the same dimension). Any ideas? deserunt mollit anim id est laborum. \eTD deserunt mollit anim id est laborum. \par \eTD ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Too many column gaps in TABLE
Hi list, please consider the appended example. I get a gap in the first row after the first column because of the \setupTABLE command. However, I also get a gap after the second column, because in the second row the first cell just ended. Can this be considered a bug? (Mk IV) If it's not a bug, how can I change this behavior? I only want to have one gap right after the first cell in the first row and no other gaps between the columns (so the second row shall have no gap at all). Do I have to insert a dummy column with width=1em after the first cell and change nc=2 to nc=3? Thanks in advance! Stefan \starttext \setupTABLE[c][1][distance=1em] % Both \setupTABLE commands yield the same %\setupTABLE[1][1][distance=1em] \bTABLE \bTR \bTD gap after this column \eTD \bTD two \eTD \bTD we don't want a gap \eTD \eTR \bTR \bTD[nc=2] first cell in second row \eTD \bTD \dots before the third column \eTD \eTR \eTABLE \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] context-setup-mswin.zip : so many doubles files ?
Hi, I just downloaded context-setup-mswin.zip from http://minimals.contextgarden.net/setup/ It is 3.83MB and contains only one context and one bin folder. Maybe this was fixed by now(?) Kind regards, Stefan. On 26.01.2011 14:46, Vnpenguin wrote: On Wed, Jan 26, 2011 at 13:40, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Wed, Jan 26, 2011 at 06:43, Vnpenguinvnpeng...@vnoss.org wrote: Hi, The file context-setup-mswin.zip has 23M size at http://minimals.contextgarden.net/setup/. Here are files inside of this ZIP: === Could you tell me why these files were doubled many times ? Hmmm ... that is something that I would like to know as well ... :) :) :) Most probably there was some extra folder lying around. The code that generates it is mv mswin context rm context-setup-mswin.zip zip -r context-setup-mswin context mv context mswin If folder named context existed at some point in time, it probably triggered recursive behaviour. Mojca For me, that's packaging error. We need only _ONE_ folder bin and _ONE_ file first-setup.bat to do installation. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Labels in MetaPost (MetaObj)
Wikified: http://wiki.contextgarden.net/MetaObj_and_Labels Please update/change as appropriate. Best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Labels in MetaPost (MetaObj)
On 22.01.2011 17:30, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki. \startMPinclusions path a ; \stopMPinclusions \startMPinclusions a := (0,0) -- (1cm,0) ; \stopMPinclusions will fail, because the second inclusions overwrites the first. If you use [+], then the second inclusions in appended after the first. Thank you for the explanation. So if I only have one inclusions section it doesn't matter? Just as a wild guess I tested the example below today, trying to make use of the things Aditya said, but to no avail. The trick is to ensure that the offending code (assignObj) is not run twice. Your example works perfect. Many thanks for that as well. I didn't realize, that assignObj is causing the trouble, but now it's obvious. I'm just curious: the MP-code is only run twice by context if it contains labels, right? Otherwise I don't understand why the assignObj isn't always failing. @Hans, can we have a `trialtypesetting` for MP code? Aditya Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Labels in MetaPost (MetaObj)
On 23.01.2011 12:40, Stefan Müller wrote: On 22.01.2011 17:30, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki. \startMPinclusions path a ; \stopMPinclusions \startMPinclusions a := (0,0) -- (1cm,0) ; \stopMPinclusions will fail, because the second inclusions overwrites the first. If you use [+], then the second inclusions in appended after the first. Thank you for the explanation. So if I only have one inclusions section it doesn't matter? Just as a wild guess I tested the example below today, trying to make use of the things Aditya said, but to no avail. The trick is to ensure that the offending code (assignObj) is not run twice. Your example works perfect. Many thanks for that as well. I didn't realize, that assignObj is causing the trouble, but now it's obvious. I'm just curious: the MP-code is only run twice by context if it contains labels, right? Otherwise I don't understand why the assignObj isn't always failing. Sorry for double posting... The method with if not flag is a bit arkward, because assignObj isn't the only problem. rotateObj(s, 90) would rotate the object 180 degrees instead of 90; when defining the relation between several objects some equations may became redundant (my script is rather complex and I'm not sure why some of the equations cause trouble). Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Forming paragraphs
Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote: Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. -- \textwidth --| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is clean enough and/or there is a better way, especially via a kind of \setupsomething command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Labels in MetaPost (MetaObj)
On 23.01.2011 18:22, Aditya Mahajan wrote: On Sun, 23 Jan 2011, Stefan Müller wrote: Sorry for double posting... The method with if not flag is a bit arkward, because assignObj isn't the only problem. rotateObj(s, 90) would rotate the object 180 degrees instead of 90; when defining the relation between several objects some equations may became redundant (my script is rather complex and I'm not sure why some of the equations cause trouble). Depends on the internal implementation of MetaObj (I have not looked at that). You can try to iteratively add stuff and see what breaks, and then add if not flag around them. Okay, that's what I do now. It seems it's savest to just put if not flags around the object constructors, object transformations and definition of inter-object relations. This does not produce graphical output, so it should be save to run it only once. Sorry, but I do not know a more elegant way around this. In the worst case, you can switch to MkII to draw your figures :-\ Aditya Thank you very much! Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Labels in MetaPost (MetaObj)
So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Just as a wild guess I tested the example below today, trying to make use of the things Aditya said, but to no avail. Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki. Best regards, Stefan. \startMPinclusions input metaobj; boolean flag; flag := false; \stopMPinclusions \starttext \startMPpage vardef newSegment@\#= assignObj(@\#,Segment); ObjPoint a,b; ObjCode @\#b-@\#a=(1cm,2cm); enddef; def drawSegment(suffix n)= draw n.a--n.b; enddef; newSegment.s; s.a=origin; drawObj(s); if flag: draw btex A etex; fi; flag := true; \stopMPpage \stoptext On 22.01.2011 02:38, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Hans Hagen wrote: On 20-1-2011 9:59, Taco Hoekwater wrote: On 01/18/2011 01:17 PM, Stefan Müller wrote: Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. The core problem is that context mkiv loads the metapost code twice when you are typesetting labels, and that causes trouble for metaobj which does not expect that. Sorry, I do not know of any solution. Maybe Hans does? not immediately A suggestion: Currently, ConTeXt does not clear the state of mplib at the end of each graphic. For example \starttext \startMPcode path p; p := fullcircle scaled 4cm ; \stopMPcode \startMPcode draw p ; \stopMPcode \stoptext draws a circle. I am not convinced that this is useful. Resetting the state of mplib after each graphic might be better. Then, after the first run, you could just set the value of mptopdf.texts[..], reset the state of mplib, and then draw the graphic in the second run. This approach will have less surprises. For example, in simpleslides module, we provide a mechanism for highlighting a part of a picture using arrows. These arrows are thick (typically 5bp). In order to scale the arrows correctly, we set: autoarrows := true ; However, in the current implementation, this effect is global. It took a while to realize that this messed up all the figures with arrows that I was drawing in a presentation (where autoarrows := false) is better. Not resetting the mplib state also has advantages. For example, it allows an easy way to do something on the second path (trivial example, but there are cases when something like this makes the code much shorter): \startMPinclusions[+] newboolean flag ; flag := false ; \stopMPinclusions \starttext \startMPpage if flag : fill boundary withcolor 0.5[blue,white] ; else : path boundary ; fi ; path A, B; A := fullsquare scaled 3cm ; B := fullsquare scaled 3cm shifted (5cm,0) ; fill A withcolor white ; fill B withcolor white ; draw A ; draw btex A etex ; draw B ; draw btex B etex shifted (5cm,0) ; boundary := (boundingbox currentpicture) enlarged 3mm ; flag := true ; \stopMPpage \stoptext So, perhaps, we can have a `reset` key to \defineMPinstance, and let the user choose whether to reset after each graphic or not. If `reset=yes` is chosen, then such errors would not occur. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] escape in verbatim text eats line breaks
Because of the new beta I tried it again with a current Mk IV version (2011.01.18 19:34). The examples I provided (from the wiki, now abbreviated, with numbering) have correct line breaks but the second line does not get a number. \setuptyping[TEX][escape=yes, numbering=line] \startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \stopTEX \setuptyping[TEX][escape={[[,]]}] \startTEX [[\em sometex]] [[\em sometex]] \after \stopTEX The example from Peter Münster works worse: now there is one line break more instead of one less. In addition the escaped line does not get a number as above. It works if the line starts with (non-escaped) text, space or tab. \definetyping[Test][escape={/,/}, numbering=line] \starttext Two line breaks between the first two blas \\ The second bla does not get a number \startTest bla /bla/ bla \stopTest \stoptext In the examples above there's a difference when using start/stopTEX with setuptyping[TEX] and when using start/stopTest with definetyping[Test]. I don't know why. Thank you so far, Hans. Best regards, Stefan. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \qedhere equivalent in ConTeXt
Hi list, I tried something similar to (Mk IV version 2011.11.18 19:34): Am 06.08.10 15:46, schrieb Wolfgang Schuster: \setupdescriptions [proof] [width=broad, distance=0.5em, location=serried, headstyle=it, indentnext=yes, indenting=yes, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] Wolfgang I hope I can get help on an issue I have with this. Please consider the minimal example: \starttext \definedescription[proof][text=Proof., width=fit, location=serried, indenting=yes, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \startproof \input knuth \stopproof \startproof conclusion conclusion conclusion conclusion conclusion conclusion conclusion. \stopproof \stoptext I don't know how to achieve this, but I would like to have the squares at the end of both proofs one line higher than they are now and placed right, as in (consider the extra space, which avoids the hyphenation): \startproof conclusion conclusion conclusion conclusion conclusion conclusion conclu sion. \stopproof Any help appreciated. Thanks in advance, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Labels in MetaPost (MetaObj)
Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. I hope someone on this list can assist me here. I'm trying to run the appended ConTeXt file with a quite simple object Segment (from the manual [1], section 2.1). This script works fine as it is. I wanted to add a simple TeX label (\tt \overbar{E}) to the drawing macro, but failed. When including the line marked with % 1 the TeX run fails. I don't understand why. The line with % 2 is taken frome the metaobj manual (section 5.8) [1], but including this doesn't work either. It would be great if someone could tell me what's wrong with the mp-code below and explain how to place a (TeX) label inside a metaobj object. Thanks in advance, Stefan. [1] http://tex.loria.fr/prod-graph/momanual.pdf PS: Both variants fail with mp error messages like this: mplibmp terminal: ! Inconsistent equation (off by 1). to be read again ; assignObj-(SUFFIX0)=incr(nObj_); iname_[(SUFFIX0)]=str(SUFFIX0);addclass_((S... newSegment-...roup.assignObj((SUFFIX2),Segment) ;ObjPoint.a,b;ObjCode@##b... to be read again ; * ...ar {E}) shifted n.a; enddef; newSegment.s; s.a=origin; drawObj(s); ; ! Redundant equation. to be read again ; assignObj-...bj_);iname_[(SUFFIX0)]=str(SUFFIX0); addclass_((SUFFIX0),(EXPR1... newSegment-...roup.assignObj((SUFFIX2),Segment) ;ObjPoint.a,b;ObjCode@##b... === \startMPinclusions input metaobj; \stopMPinclusions \startMPpage vardef newSegment@#= assignObj(@#,Segment); ObjPoint a,b; ObjCode @#b-@#a=(1cm,2cm); enddef; def drawSegment(suffix n)= draw n.a--n.b; % draw btex \tt \overbar{E} etex shifted n.a; % 1 enddef; newSegment.s; % ObjLabel.s(btex hello! etex) labpoint(a); % 2 s.a=origin; drawObj(s); \stopMPpage === ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] escape in verbatim text eats line breaks
Hi list, there seems to be something wrong with the escape mechanism in verbatim. Line breaks before escaped code are ignored. Consider the following example from the wiki [1] (e.g. the second line is printed right behind the first with no line break): \starttext \setuptyping[TEX][escape=yes] \startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after \before \after \stopTEX \setuptyping[TEX][escape={[[,]]}] \startTEX [[\em sometex]] [[\em sometex]] \after \before [[\em sometex]] \before [[\em sometex]] \after \before [[\em sometex]] \inbetween [[\em sometex]] \after \before \after \stopTEX \setuptyping[TEX][escape=//] \startTEX //\em sometex \before //\em sometex \stopTEX \stoptext Is this a bug or am I missing something here? Also \setuptyping[TEX][escape=//] seems to have no effect at all, // is printed just like normal chars. Best regards, Stefan Müller. [1] http://wiki.contextgarden.net/Verbatim#Embedded_formatting_commands ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] escape in verbatim text eats line breaks
On 10.01.2011 15:38, Hans Hagen wrote: Is this a bug or am I missing something here? I get newlines here. I'm using minimals: ConTeXt version 2011.01.06 17:08 Just to clarify: My first line in the PDF result is sometexsometex \after Also \setuptyping[TEX][escape=//] seems to have no effect at all, // is printed just like normal chars. Actually in mkii it's \setuptyping[TEX][escape=/] \startTEX /em sometex \before /em sometex \stopTEX Does that mean the example on the wiki page is not correct? and indeed in mkiv it does not work. I will provide a bit of backward compatibility but keep in mind that in mkiv the \em change will cross lines, so in this case the first sometex as well as \before will be slanted. Thanks and best regards, Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Referencing line numbers inside a typing
Am Dienstag 26 Oktober 2010, 21:12:01 schrieb Wolfgang Schuster: Am 26.10.2010 um 20:47 schrieb Stefan Müller: One more question before wikifying: Is there a way to prevent the prefix line? I want to say something like In lines 3 to 13. The texts „line“ and „lines“ are set with \setuplabeltext but you can see alternative texts with \inline{...}[ref]. \setuptyping[numbering=line,escape=yes] \starttext See \inline[line:single] and also \inline[line:range]. See \inline{typeline}[line:single] and also \inline{typelines}[line:range]. See line~\inlinerange[line:single] and also lines~\inlinerange[line:range]. \starttyping line 1 line 2/BTEX\startline[line:range]/ETEX line 3/BTEX\someline[line:single]/ETEX line 4 line 5/BTEX\stopline[line:range]/ETEX line 6 \stoptyping \stoptext Wolfgang Thanks Wolgang, this looks pretty nice. Unfortunately I get the following error when running your example (ConTeXt ver: 2010.10.22 16:46 MKIV fmt: 2010.10.27 int: english/english): references : unknown reference [][lr:b:line:single] references : unknown reference [][lr:b:line:range] Any ideas? Stefan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___