[NTG-context] Broken bibliographies in 2014-03-07 beta
Bibliographies are no longer generated. MWE is the example code at http://wiki.contextgarden.net/Bibliography_mkiv, which no longer generates an output file and shows the following in the blg file: I found no \citation commands---while reading file cite.aux I found no \bibdata command---while reading file cite.aux I found no \bibstyle command---while reading file cite.aux You've used 0 entries,... With the stable version, the same section reads: Database file #1: sample.bib You've used 4 entries, -- Rik ___ 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] how to make a \lambdabar (like \hbar)
\hbar is used a lot in physics. Once in a while, one also uses \lambdabar to mean \lambda/2\pi. It's Unicode description is 'LATIN SMALL LETTER LAMBDA WITH STROKE' (U+019B). I've been using this hack \def\lambdabar{\lambda\kern-1ex\raise0.65ex\hbox{-}} But it's not beautiful. Is there a better way to get a lambdabar into (or from) the math fonts? I tried \def\lambdabar{\Umathchar 019B } by analogy with the definition of \hbar in luatex-math.tex, but it produces a blank space. There must be no entry for it in the regular (or Palatino) math fonts. For reference, the following thread had a discussion about \hbar http://www.ntg.nl/pipermail/ntg-context/2013/070810.html and \hbar works well (using MkIV 2014.02.14). -Sanjoy ___ 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] struggling with section headers
Ok, second try. Here’s a rather minimal example: ——— \usemodule[visual] % fakewords \definepapersize[a6][width=105mm,height=148mm] % ConTeXt seems to have forgotten about a5 and a6?? \setuppapersize[a6][a6] % small paper to get more breaks \setupbodyfont[rm,9pt] \setupinterlinespace[12pt] \setupindenting[yes, medium, next] \setupblank[big] \setupcolor[state=start] \setuplayout[grid=yes] \setupheads[ align={right,nothyphenated}, tolerance=verytolerant, grid=line ] \definefont[SectionFont][Sans at 11pt] % fits within grid \setuphead[section][ page=no, style={\SectionFont}, before={\blank}, after={}, interlinespace=12pt ] % dummy section with long, red title \def\Section{ \startsection[title={\definecolor[fakerulecolor][red]\fakewords{5}{20}\definecolor[fakerulecolor][black]}] \fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par \stopsection } \starttext \startchapter[title={See, ye mighty, and despair!}] \fakewords{10}{30} \dorecurse{20}{\Section} \stopchapter \stoptext ——— Problems: - section titles with several lines get negative space above (but not always) and overprint the last line(s) of the previous section. - instead, the space before section titles must stay constant, but not show up, if a page starts with a section title - section titles should stick to their section text and never stand alone at the bottom of a page I guess the first is a bug and the others may need some setup options that I don’t know. Grüßlinge, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] how to make a \lambdabar (like \hbar)
On Mon, 10 Mar 2014, Sanjoy Mahajan wrote: \hbar is used a lot in physics. Once in a while, one also uses \lambdabar to mean \lambda/2\pi. It's Unicode description is 'LATIN SMALL LETTER LAMBDA WITH STROKE' (U+019B). I've been using this hack \def\lambdabar{\lambda\kern-1ex\raise0.65ex\hbox{-}} Is this the canonical name for the glyph used by AMS? But it's not beautiful. Is there a better way to get a lambdabar into (or from) the math fonts? I tried \def\lambdabar{\Umathchar 019B } by analogy with the definition of \hbar in luatex-math.tex, The right way is to update char-def.lua as { adobename=lambdastroke, category=ll, description=LATIN SMALL LETTER LAMBDA WITH STROKE, direction=l, linebreak=al, mathclass=variable, mathname=lambdabar, unicodeslot=0x019B, }, but it produces a blank space. There must be no entry for it in the regular (or Palatino) math fonts. The easiest solution will be to file a bug report with the TeX Gyre project. This is an easy glyph to add. Otherwise, you can use a different font as fall back for lambdabar, but that will not match the regular lambda from Palatino. If you create the glyph on your own, as in your definition above, then you have to play around with the length of the bar to make make it pretty. 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 ___
Re: [NTG-context] how to make a \lambdabar (like \hbar)
Aditya Mahajan adit...@umich.edu writes: \def\lambdabar{\lambda\kern-1ex\raise0.65ex\hbox{-}} Is this the canonical name for the glyph used by AMS? Good question. The AMS files don't seem to have it (the symbol is hardly used by mathematicians). But revtex4 defines it (for latex), in /usr/local/texlive/2013/texmf-dist/tex/latex/revtex4/revsymb.sty An example of using it: \documentclass{revtex4-1} \begin{document} $\lambdabar$ \end{document} The right way is to update char-def.lua as { adobename=lambdastroke, category=ll, description=LATIN SMALL LETTER LAMBDA WITH STROKE, direction=l, linebreak=al, mathclass=variable, mathname=lambdabar, unicodeslot=0x019B, }, I have put that in and ran 'context --make' pending the font update. The easiest solution will be to file a bug report with the TeX Gyre project. This is an easy glyph to add. I'll do that. If you know of it, could you point me to their bug tracker (or best way to file a bug report)? I roamed the GUST site without finding it. Otherwise, you can use a different font as fall back for lambdabar, but that will not match the regular lambda from Palatino. If you create the glyph on your own, as in your definition above, then you have to play around with the length of the bar to make make it pretty. That seems to be what revtex does (it has quite a complicated definition). -Sanjoy ___ 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] Broken bibliographies in 2014-03-07 beta
Bibliographies are no longer generated. I can confirm this problem with a simple bibliography-usage test file. With the stable version, the same section reads: Database file #1: sample.bib You've used 4 entries, I also just tried it on the 2012.02.14 beta, which works fine. So it must be due to a recent change. -Sanjoy ___ 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] Broken bibliographies in 2014-03-07 beta
On 3/9/2014 7:07 PM, Rik Kabel wrote: Bibliographies are no longer generated. MWE is the example code at http://wiki.contextgarden.net/Bibliography_mkiv, which no longer generates an output file and shows the following in the blg file: I found no \citation commands---while reading file cite.aux I found no \bibdata command---while reading file cite.aux I found no \bibstyle command---while reading file cite.aux You've used 0 entries,... With the stable version, the same section reads: Database file #1: sample.bib You've used 4 entries, in bibl-tra.lua: local template = [[ \citation{*} \bibstyle{cont-%s} \bibdata{%s} ]] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] vertically align to the bottom
Dear list, I have the following sample: \starttext \startstandardmakeup This text should be placed at the bottom. \stopstandardmakeup \stoptext Which is the option to align the makeup to the bottom? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] vertically align to the bottom
On Mon, 10 Mar 2014, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \startstandardmakeup This text should be placed at the bottom. \stopstandardmakeup \stoptext Which is the option to align the makeup to the bottom? \startstandardmakeup[bottom=] ... \stopstandardmakeup By default, both top and bottom are equal to \vss. Please wikify this. 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 ___
Re: [NTG-context] [***SPAM***] ConTeXt Daily Build
···date: 2014-03-10, Monday···from: hwit...@gmail.com··· Where are there instructions for using the daily build, newest Context code? http://wiki.contextgarden.net/ConTeXt_Standalone [ Is this the same as the standalone version that I've heard of? ] Yes. Best regards, Philipp pgpYwh7Q3NgDc.pgp Description: PGP signature ___ 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] vertically align to the bottom
On 03/10/2014 07:02 PM, Aditya Mahajan wrote: On Mon, 10 Mar 2014, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \startstandardmakeup This text should be placed at the bottom. \stopstandardmakeup \stoptext Which is the option to align the makeup to the bottom? \startstandardmakeup[bottom=] ... \stopstandardmakeup By default, both top and bottom are equal to \vss. Please wikify this. Many thanks for your help, Aditya. Wikified in http://wiki.contextgarden.net/Makeup#Vertical_aligment_of_makeups. Pablo -- http://www.ousia.tk ___ 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] Broken bibliographies in 2014-03-07 beta
Hans Hagen pra...@wxs.nl writes: in bibl-tra.lua: local template = [[ \citation{*} \bibstyle{cont-%s} \bibdata{%s} ]] There was a local template = utilities.strings.striplong([[ .. so I got rid of the call to utilities.strings.striplong(), then ran context --make but the bibliography still didn't come out. The pdf file just has Hi [[error 2]] Here's the example: test10.tex === \usemodule[bib] \setupbibtex[database=testrefs, sort=author] \setuppublications[alternative=num, sorttype=bbl] \starttext Hi \cite[Abelson:1996] \blank \placepublications[criterium=text] \stoptext test10.tex === and the bib file == testrefs.bib @Book{Abelson:1996, author = {Harold Abelson and Gerald Jay Sussman with Julie Sussman}, title ={Structure and Interpretation of Computer Programs}, publisher ={MIT Press}, year = 1996, edition = {2nd}} == testrefs.bib The log file has: publications loading database from 'test10.bbl' (test10.bbl) publications warning: unknown cite argument 'Abelson:1996' on line '4' and test10.bbl is an empty file. -Sanjoy ___ 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] struggling with section headers
Hi, Try using \testpage[3]. The 3 will have to vary depending on the number of lines that the section titles can possibly take up. For example, if the section title takes up 4 lines, then you might want to use \testpage[5]. \usemodule[visual] % fakewords \definepapersize[a6][width=105mm,height=148mm] % ConTeXt seems to have forgotten about a5 and a6?? \setuppapersize[a6][a6] % small paper to get more breaks \setupbodyfont[rm,9pt] \setupinterlinespace[12pt] \setupindenting[yes, medium, next] \setupblank[big] \setupcolor[state=start] \setuplayout[grid=yes] \setupheads[ align={right,nothyphenated}, tolerance=verytolerant, grid=line ] \definefont[SectionFont][Sans at 11pt] % fits within grid \setuphead[section][ page=no, style={\SectionFont}, before={\blank\testpage[3]}, after={}, interlinespace=12pt ] % dummy section with long, red title \def\Section{ \startsection[title={\definecolor[fakerulecolor][red]Section Title\fakewords{2}{15}\definecolor[fakerulecolor][black]}] \fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par \stopsection } \starttext \startchapter[title={See, ye mighty, and despair!}] \fakewords{10}{30} \dorecurse{20}{\Section} \stopchapter \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 ___
[NTG-context] \rm in math mode should give text roman
I don't think it's right that \rm in math mode means \mathrm. Or, at least, plain.tex assumes that \rm gives text roman, e.g. from plain.tex (line 1067), \def\arctan{\mathop{\rm arctan}\nolimits} Thus, the following example has the arctan text in Euler math. This problem doesn't occur with Latin Modern or with Palatino, because somehow (I'm not quite sure how) they have \rm inside math meaning text roman. \usetypescriptfile[euler] \definetypeface [mainface] [rm] [serif] [pagella][default] \definetypeface [mainface] [ss] [sans] [modern] [default] [rscale=1.075] \definetypeface [mainface] [tt] [mono] [dejavu] [default] [rscale=0.9] \definetypeface [mainface] [mm] [math] [pagellaovereuler][default] \appendtoks \rm \to \everymathematics \setupmathematics[lcgreek=normal, ucgreek=normal] \setupbodyfont[mainface] \starttext \startformula \arctan x \stopformula \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] struggling with section headers
Am 2014-03-11 um 03:11 schrieb Thangalin thanga...@gmail.com: Try using \testpage[3]. The 3 will have to vary depending on the number of lines that the section titles can possibly take up. For example, if the section title takes up 4 lines, then you might want to use \testpage[5]. Thank you, it helps to palliate the symptoms, but it doesn’t cure the disease. - In automatic typesetting, I can’t know how much lines my titles will take. - Still the space above titles becomes negative so that title and previous lines of body text overlap. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] struggling with section headers
Am 2014-03-11 um 10:01 schrieb Henning Hraban Ramm te...@fiee.net: - In automatic typesetting, I can’t know how much lines my titles will take. - Still the space above titles becomes negative so that title and previous lines of body text overlap. Further, my setting of interlinespace for the titles seems to be ignored, the rest of the page is out of sync with the grid; if I enable internalgrid=strict, I get a huge gap instead of the defined interlinespace, thr first line of the title just moves up even more into the previous paragraph. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Bugs in XML export (for ePub)
Hi again. I understand you don’t want to export some arbitrary (X)HTML. That’s fine, I can make my own XSLT. And I’m glad that \setupexport doesn’t kill hyphenation any more. But there are serious errors in export, that have nothing to do with „there’s no usable standard“. [1] root node First, the exported XML file lacks a root node! Just call it export or context or whatever you like, but it MUST be there, otherwise it’s no wellformed XML. If I enable xhtml mode like \setupbackend[export=export.xml,xhtml=yes] the exported file stops after a few lines. If I set xhtml=somefile.xhtml, I get the broken export.xml and the complete somefile.xhtml, so I guess xhtml=yes causes overwriting the complete file with the incomplete one. As far as I remember previous discussions, this incomplete content is caused by the project structure (using project, product, environment); from single file it seemed to work, at least at that time, I didn’t check. Since xhtml mode doesn’t do anything useful anyway, I can just drop the setting. [2] metadata The metadata from \setupexport is completely ignored. The metadata from \settaggedmetadata is exported just fine, but it ends up within the first block of the first page, if that’s not empty. e.g. my text starts with \startlines Title etc. \stoplines, then metadatametavariable etc. is exported within lines. If I add something like \startparagraph \stopparagraph to contain the metadata, it disappears. Of course I don’t want to add something visible (then it works again). [3] cover picture The firstpage key of setupexport is supposed to define a cover picture for the ePub, but it doesn’t do anything, as far as I can tell. Or is something wrong in: \setupexport[firstpage={img/cover.jpg}] ? [4] delimited If \quotation{} contains more than one paragraph (in my case it’s a quote), the delimited detail=quotation“ is ended after the first paragraph. (As always, working with latest MkIV beta on OSX.) Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 ___