Re: [NTG-context] Indented footnotes in ConTeXt
Am 21.11.2012 um 08:54 schrieb "H. Özoguz" : > Am 21.11.2012 08:50, schrieb ntg-context-requ...@ntg.nl: >> Message: 1 >> Date: Tue, 20 Nov 2012 14:28:11 -0600 >> From: Adam Khan >> To:ntg-context@ntg.nl >> Subject: [NTG-context] Indented footnotes in ConTeXt >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> Greetings! >> >> I am writing a German critical edition in which I am using endnotes, and I >> am encountering severe difficulties with formatting them as I should wish. >> >> The idea is to indent the entire footnote?marker and text?0.5in. >> >> In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this >> set-up: >> >> \definenote[critical][conversion=characters, >> way=bychapter, >> location=text, >> bodyfont=12pt, >> margindistance=-.5in, >> align=flushleft] >> >> Then I move the text by adding the unsightly but functional hack >> \hskip.5into the beginning of the argument of >> \critical or \criticaltext. Unfortunately, the endnotes do not flow from >> page to page in Mark II, and, from the comments on the source code, it >> appears that this cannot be helped. Given the length and number of >> endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem >> viable. >> >> In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow >> from page to page, but the formatting does not appear to respond to the >> margindistance key. From various related posts, the answer appears to lie >> in \setupnotation, but, whenever I attempt to pass this command, I get an >> ?undefined control sequence? error. >> >> In short, my question is, How do I code indenting each endnote .5in with >> the highest degree of automation and fewest hacks possible? >> >> Sincerely yours, >> Adam Khan > > You can try, what I use for footnotes, maybe this is what you want or helps? > > \setupnotation[footnote][ > alternative=left, > width=2em, > numbercommand=\hskip1.6em\high] %Fußnoten werden eingerückt und Nummer > hochgestellt \setupnotation [endnote] [alternative=left, hang=1, width=1.6em, headalign=flushright] \starttext \input knuth\endnote{\input ward } \placenotes[endnote] \stoptext 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] underbar/margin text
Am 03.09.2012 um 13:08 schrieb Daniel Schopper : > Hi, > I have to typeset some underlined text with margin notes by its side. Is > there a way to prevent the notes themself to get underlined? I tried putting > the note-command in a group, simplifying its content etc. (In my real file I > use \defineinmargin, btw.) > > \starttext > \underbar{Test Test Test\footnote{footnote}~Test Test Test\par > Test\inleft{marginal} Test Test Test Test Test \par} > \stoptext > > (As one can see, there’s also an issue with the footnote-sign breaking the > continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. 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] underbar/margin text
On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster < wolfgang.schus...@gmail.com> wrote: > > Am 03.09.2012 um 13:08 schrieb Daniel Schopper : > > > Hi, > > I have to typeset some underlined text with margin notes by its side. Is > there a way to prevent the notes themself to get underlined? I tried > putting the note-command in a group, simplifying its content etc. (In my > real file I use \defineinmargin, btw.) > > > > \starttext > > \underbar{Test Test Test\footnote{footnote}~Test Test Test\par > > Test\inleft{marginal} Test Test Test Test Test \par} > > \stoptext > > > > (As one can see, there’s also an issue with the footnote-sign breaking > the continued line, which is not urgent for me, at least by now.) > > Footnotes disable the rule with the \resetallattributes command but it’s > up to Hans to add it to the margin notes. > > but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext -- luigi ___ 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] underbar/margin text
Am 21.11.2012 um 09:42 schrieb luigi scarso : > > > > On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster > wrote: > > Am 03.09.2012 um 13:08 schrieb Daniel Schopper : > > > Hi, > > I have to typeset some underlined text with margin notes by its side. Is > > there a way to prevent the notes themself to get underlined? I tried > > putting the note-command in a group, simplifying its content etc. (In my > > real file I use \defineinmargin, btw.) > > > > \starttext > > \underbar{Test Test Test\footnote{footnote}~Test Test Test\par > > Test\inleft{marginal} Test Test Test Test Test \par} > > \stoptext > > > > (As one can see, there’s also an issue with the footnote-sign breaking the > > continued line, which is not urgent for me, at least by now.) > > Footnotes disable the rule with the \resetallattributes command but it’s up > to Hans to add it to the margin notes. > > but you can add by hand > \starttext > \underbar{% > > Test Test Test\footnote{footnote}~Test Test Test\par > Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test > Test Test Test Test \par > } > > \stoptext and disable features which rely on attributes :) \starttext Test\inleft[color=blue]{\resetallattributes marginal} Test \stoptext 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] underbar/margin text
On Wed, Nov 21, 2012 at 9:52 AM, Wolfgang Schuster < wolfgang.schus...@gmail.com> wrote: > > Am 21.11.2012 um 09:42 schrieb luigi scarso : > > > > > On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster < > wolfgang.schus...@gmail.com> wrote: > >> >> Am 03.09.2012 um 13:08 schrieb Daniel Schopper : >> >> > Hi, >> > I have to typeset some underlined text with margin notes by its side. >> Is there a way to prevent the notes themself to get underlined? I tried >> putting the note-command in a group, simplifying its content etc. (In my >> real file I use \defineinmargin, btw.) >> > >> > \starttext >> > \underbar{Test Test Test\footnote{footnote}~Test Test Test\par >> > Test\inleft{marginal} Test Test Test Test Test \par} >> > \stoptext >> > >> > (As one can see, there’s also an issue with the footnote-sign breaking >> the continued line, which is not urgent for me, at least by now.) >> >> Footnotes disable the rule with the \resetallattributes command but it’s >> up to Hans to add it to the margin notes. >> >> but you can add by hand > \starttext > \underbar{% > > Test Test Test\footnote{footnote}~Test Test Test\par > Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} > Test Test Test Test Test \par > } > > \stoptext > > > and disable features which rely on attributes :) > > \starttext > Test\inleft[color=blue]{\resetallattributes marginal} Test > \stoptext > > exactly, that's the meaning of my prev. line \inleft{\resetallattributes \color[red]{\overbar{marginal}}} "reset all attributes and turn on some of them." Can help in some situations. ___ 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] ConTeXt: Page numbering in words for spanish
Hello there and thanks for finally let me into this mailing list! So I tried to hack the macro given in the ConTeXt wiki (http://wiki.contextgarden.net/Page_numbering_in_words) to write pagenumbering in words in spanish, my native language. Things were great until I had to reach the 100th page. ConTeXt claims when compiling, but I don't know how to fix the macro so it can write hundred-numbers. 'Cien' is 100 for spanish. 'Ciento uno' for 101, 'ciento dos' for 102 and so (You can see a more detailed example in http://spanish.about.com/cs/forbeginners/a/cardinalnum_beg.htm). So basically I need to prepend the word 'cien' for each word number from 1 to 99 to write the one-hundreds, 'doscientos' for the two-hundreds... Here is my dirty hacked version of the macro (you may save it as 'numstr.tex' for compiling), and a minimal example as follows: \input numstr \defineconversion[numstring][\numstr] \setupuserpagenumber[numberconversion=numstring] \starttext \dorecurse{100}{\recurselevel\page} \stoptext I'm such a noob with TeX and I cannot figure out how to do this, and I need this for this friday!. However, Aditya in the TeX section of StackExchange (http://tex.stackexchange.com/questions/82722/context-page-numbering-in-words- for-spanish#comment178155_82722) told me that I could do this witk Lua (editing the file core-con.lua, as seen in http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/core-con.lua ), 'cause I'm using MkIV for doing this. But I don't know anything about Lua (seems pretty easy, but I don't know how to test the code Aditya gave me) and If I knew how to do that, I don't know how to make it work in my document... All I could do is translate the 'words' array to spanish, but I couldn't do more... Could you guys give me a hand on this? Thank you so much! ___ 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] underbar/margin text
Thank you very much, Wolfgang and Luigi, that was exactly what I was looking for! >> Footnotes disable the rule with the \resetallattributes command >> but it’s up to Hans to add it to the margin notes. Maybe there could be parameter like \setupmarginframed[resetfeatures=(yes|no|underbar|color|…)] … (I know that underbar is controversial feature, unfortunately in this special case it's a requirement which I can't change…) Best, Daniel Am 21.11.12 10:02, schrieb luigi scarso: On Wed, Nov 21, 2012 at 9:52 AM, Wolfgang Schuster mailto:wolfgang.schus...@gmail.com>> wrote: Am 21.11.2012 um 09:42 schrieb luigi scarso mailto:luigi.sca...@gmail.com>>: On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster mailto:wolfgang.schus...@gmail.com>> wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper mailto:daniel.schop...@aon.at>>: > Hi, > I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) > > \starttext > \underbar{Test Test Test\footnote{footnote}~Test Test Test\par > Test\inleft{marginal} Test Test Test Test Test \par} > \stoptext > > (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext and disable features which rely on attributes :) \starttext Test\inleft[color=blue]{\resetallattributes marginal} Test \stoptext exactly, that's the meaning of my prev. line \inleft{\resetallattributes \color[red]{\overbar{marginal}}} "reset all attributes and turn on some of them." Can help in some situations. ___ 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] underbar/margin text
Am 21.11.2012 um 10:12 schrieb Daniel Schopper : > Thank you very much, Wolfgang and Luigi, > that was exactly what I was looking for! > > >> Footnotes disable the rule with the \resetallattributes command > >> but it’s up to Hans to add it to the margin notes. > Maybe there could be parameter like > \setupmarginframed[resetfeatures=(yes|no|underbar|color|…)] … There is no need for such a setting because the command has to be added at the begin of \margindata which doesn’t cause problems with colors etc. which are applied later in the process. 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] Symbols
On 11/20/2012 5:21 PM, Willi Egger wrote: Hi all, could someone bring light into the way how to use symbols…in MKIV I wanted to extract a symbol from uzdr (Zapfdingbats). (Somehow uzdr.afm and uzdr.pfb are not in my tex tree. I always thought that they were part of the standalone but nothing surprises me as these fonts have a history of instability.) (Copied from an upcoming font manual:) \startsection[title=Unicoding] Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding. And in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE. However, there are some exceptions, for instance the Zapf Dingbats in \TYPEONE\ format. These have a rather obscure private encoding and the glyph names run from \type {a1} upto \type {a206} and have no relation to what the glyph represents. In the case of Dingbats we're somewhat lucky that they ended up in \UNICODE, so we can relocate the glyphs to match their rightful place. This is done by means of a goodies file. We already discussed this in \in {section} [goodies] so we only repeat the usage. \startbuffer \definefontfeature [dingbats] [mode=base, goodies=dingbats, unicoding=yes] \definefontsynonym [ZapfDingbats] [file:uzdr.afm] [features=dingbats] \stopbuffer \typebuffer \getbuffer I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable because of name changes and them either or not being included. Therefore it's best to use the hard coded name because that triggers the most visible error message when the font is not found. A font like this can for instance be used with the glyph placement macros as is demonstrated below. In the last line we see that a direct \UTF\ input also works out well. \starttabulate[|||] \HL \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\number"2701}} \NC \getglyphdirect {ZapfDingbats*dingbats}{\number"2701} \NC \NR \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\char"2701}} \NC \getglyphdirect {ZapfDingbats*dingbats}{\char"2701} \NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a1}} \NC \getnamedglyphdirect{ZapfDingbats*dingbats}{a1} \NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a11}} \NC \getnamedglyphdirect{ZapfDingbats*dingbats}{a11} \NC \NR \HL \NC \type{\getglyphdirect {ZapfDingbats}{\number"2701}} \NC \getglyphdirect {ZapfDingbats}{\number"2701} \NC \NR \NC \type{\getglyphdirect {ZapfDingbats}{\char"2701}}\NC \getglyphdirect {ZapfDingbats}{\char"2701}\NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats}{a1}}\NC \getnamedglyphdirect{ZapfDingbats}{a1}\NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats}{a11}} \NC \getnamedglyphdirect{ZapfDingbats}{a11} \NC \NR \HL \NC \type{\definedfont[ZapfDingbats*dingbats]✁} \NC \definedfont[ZapfDingbats*dingbats]✁ \NC \NR \HL \stoptabulate Keep in mind that fonts like Dejavu (that we use here as document font) already has these characters which is why it shows up in the verbose part of the table. \stopsection -- - 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 ___
Re: [NTG-context] Images in MultiMarkdown -> context -> PDF
2012/11/21 Guy Stalnaker : > I get a very good pdf document, but there is one bewildering issue -- the > images in the ConTeXt output pdf document are scaled very small. All of Sounds like the TeX engine gets the wrong idea about the dpi of the images. Are you using MkII or MkIV? Best Martin ___ 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] typefile with absolute path to file
On 11/20/2012 11:17 PM, Aditya Mahajan wrote: On my machine, I can read files **with an extension** from anywhere in the system, but \typefile{...} for a file without an extension results in: verbatims > file abc does not exist ah .. but it makes sense to be explicit in what you want to be typed (it's not an input file in the sense of a document) Hans - 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 ___
Re: [NTG-context] typefile with absolute path to file
I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. Cheers, --Sietse ___ 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: Page numbering in words for spanish
On 11/21/2012 10:08 AM, Acidrums4 wrote: Hello there and thanks for finally let me into this mailing list! So I tried to hack the macro given in the ConTeXt wiki (http://wiki.contextgarden.net/Page_numbering_in_words) to write pagenumbering in words in spanish, my native language. Things were great until I had to reach the 100th page. ConTeXt claims when compiling, but I don't know how to fix the macro so it can write hundred-numbers. 'Cien' is 100 for spanish. 'Ciento uno' for 101, 'ciento dos' for 102 and so (You can see a more detailed example in http://spanish.about.com/cs/forbeginners/a/cardinalnum_beg.htm). So basically I need to prepend the word 'cien' for each word number from 1 to 99 to write the one-hundreds, 'doscientos' for the two-hundreds... Here is my dirty hacked version of the macro (you may save it as 'numstr.tex' for compiling), and a minimal example as follows: \input numstr \defineconversion[numstring][\numstr] \setupuserpagenumber[numberconversion=numstring] \starttext \dorecurse{100}{\recurselevel\page} \stoptext I'm such a noob with TeX and I cannot figure out how to do this, and I need this for this friday!. However, Aditya in the TeX section of StackExchange (http://tex.stackexchange.com/questions/82722/context-page-numbering-in-words- for-spanish#comment178155_82722) told me that I could do this witk Lua (editing the file core-con.lua, as seen in http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/core-con.lua ), 'cause I'm using MkIV for doing this. But I don't know anything about Lua (seems pretty easy, but I don't know how to test the code Aditya gave me) and If I knew how to do that, I don't know how to make it work in my document... All I could do is translate the 'words' array to spanish, but I couldn't do more... Could you guys give me a hand on this? Thank you so much! We can add a converter to core-con, but you have to do the checking (and tuning): local floor = math.floor local concat = table.concat local verbose = { } local words = { [1] = "uno", [2] = "dos", [3] = "tres", [4] = "cuatro", [5] = "cinco", [6] = "seis", [7] = "siete", [8] = "ocho", [9] = "nueve", [10] = "diez", [11] = "once", [12] = "doce", [13] = "trece", [14] = "catorce", [15] = "quince", [16] = "dieciséis", [17] = "diecisiete", [18] = "dieciocho", [19] = "diecinueve", [20] = "veinte", [21] = "veintiuno", [22] = "veintidós", [23] = "veintitrés", [24] = "veinticuatro", [25] = "veinticinco", [26] = "veintiséis", [27] = "veintisiete", [28] = "veintiocho", [29] = "veintinueve", [30] = "treinta", [40] = "cuarenta", [50] = "cincuenta", [60] = "sesenta", [70] = "setenta", [80] = "ochenta", [90] = "noventa", [100] = "ciento", [200] = "doscientos", [300] = "trescientos", [400] = "cuatrocientos", [500] = "quinientos", [600] = "seiscientos", [700] = "setecientos", [800] = "ochocientos", [900] = "novecientos", [1000] = "mil", [1000^2] = "millón", [1000^3] = "millones", } function verbose.spanish(n) local w = words[n] if w then return w end local t = { } local function compose_one(n) local w = words[n] if w then t[#t+1] = w return end local a, b = floor(n/100), n % 100 if a == 10 then t[#t+1] = words[1] t[#t+1] = words[1000] elseif a > 0 then -- t[#t+1] = words[a] t[#t+1] = words[100] end if words[b] then t[#t+1] = words[b] else a, b = floor(b/10), n % 10 t[#t+1] = words[a*10] t[#t+1] = "y" t[#t+1] = words[b] end end local function compose_two(n,m) if n > (m-1) then local a, b = floor(n/m), n % m if a > 0 then compose_one(a) end t[#t+1] = words[m] n = b end return n end n = compose_two(n,1000^4) n = compose_two(n,1000^3) n = compose_two(n,1000^2) n = compose_two(n,1000^1) if n > 0 then compose_one(n) end return #t > 0 and concat(t," ") or tostring(n) end verbose.es = verbose.spanish print(verbose.spanish(31)) print(verbose.spanish(101)) print(verbose.spanish(199)) sort of the english one with some patches (exceptions can be added to the table if needed) - 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 --
Re: [NTG-context] ConTeXt: Page numbering in words for spanish
Hi Acidrums, hi Hans, I worked up the code below, put it in core-con.lua, and recompiled ConTeXt with `context --make cont-en`. It gives the following output. Does it look correct? Hans: the `spanishwords` is a bit hacky; probably words should have subtables words.english and words.spanish. Cheers, Sietse 11.111.111 once millón cien once mil cien once 2.221.101 dos millón doscientos veintiuno mil cien uno 1.111 uno mil cien once 1.218 uno mil doscientos dieciocho 1.234 uno mil doscientos treinta y cuatro 12.345 doce mil trescientos cuarenta y cinco 12.345.678.900.000 doce billón trescientos cuarenta y cinco mil millones seiscientos sietenta y ocho millón novecientos mil local spanishwords = { [0] = "zero", [1] = "uno", [2] = "dos", [3] = "tres", [4] = "cuatro", [5] = "cinco", [6] = "seis", [7] = "siete", [8] = "ocho", [9] = "nueve", [10] = "diez", [11] = "once", [12] = "doce", [13] = "trece", [14] = "catorce", [15] = "quince", [16] = "dieciséis", [17] = "diecisiete", [18] = "dieciocho", [19] = "diecinueve", [20] = "veinte", [21] = "veintiuno", [22] = "veintidós", [23] = "veintitrés", [24] = "veinticuatro", [25] = "veinticinquo", [26] = "veintiséis", [27] = "veintisiete", [28] = "veintiocho", [29] = "veintinueve", [30] = "treinta", [40] = "cuarenta", [50] = "cinquenta", [60] = "sesenta", [70] = "sietenta", [80] = "ochenta", [90] = "noventa", [100] = "cien", [200] = "doscientos", [300] = "trescientos", [400] = "cuatrocientos", [500] = "quinientos", [600] = "seiscientos", [700] = "setecientos", [800] = "ochocientos", [900] = "novecientos", [1000] = "mil", [1000^2] = "millón", [1000^3] = "mil millones", [1000^4] = "billón", } function verbose.spanish(n) local w = spanishwords[n] if w then return w end local t = { } local function compose_one(n) local w = spanishwords[n] if w then t[#t+1] = w return end -- a, b = hundreds, remainder local a, b = floor(n/100), n % 100 -- one thousand if a == 10 then t[#t+1] = spanishwords[1] t[#t+1] = spanishwords[1000] -- x hundred (n.b. this will not give thirteen hundred because -- compose_one(n) is only called after -- `n = compose(two(n, 1000^1))`. elseif a > 0 then t[#t+1] = spanishwords[a*100] end -- the remainder if spanishwords[b] then t[#t+1] = spanishwords[b] else -- a, b = tens, remainder a, b = floor(b/10), n % 10 t[#t+1] = spanishwords[a*10] t[#t+1] = "y" t[#t+1] = spanishwords[b] end end -- compose_two handles x billion, ... x thousand. When 1000 or less is -- left, compose_one takes over. local function compose_two(n,m) if n > (m-1) then local a, b = floor(n/m), n % m if a > 0 then compose_one(a) end t[#t+1] = spanishwords[m] n = b end return n end n = compose_two(n,1000^4) n = compose_two(n,1000^3) n = compose_two(n,1000^2) n = compose_two(n,1000^1) if n > 0 then compose_one(n) end return #t > 0 and concat(t," ") or tostring(n) end verbose.es = verbose.spanish to test the code --- \starttext \def\vbes#1% {#1\crlf \ctxcommand{verbose(#1, "spanish")}} \obeylines \vbes{} \vbes{2221101} \vbes{} \vbes{1218} \vbes{1234} \vbes{12345} \vbes{1234567890} \stopcode ___ 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: Page numbering in words for spanish
On 11/21/2012 12:25 PM, Sietse Brouwer wrote: Hans: the `spanishwords` is a bit hacky; probably words should have subtables words.english and words.spanish. they are local tables ... so invisible to users Hans - 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] Dash equivalent of $BASH_SOURCE (for setuptex)
Hi everyone, Hans wrote me the following, but I'm unable to figure it out myself. The script "setuptex" (which is in fact not urgently needed as one can just as well export the right path, but it comes in handy) can be used in two ways: (a) . /path/to/context/tex/setuptex (b) . /path/to/context/tex/setuptex /path/to/context/tex The first approach only works if the shell interpreting setuptex knows where the sourced script is located. Currently the script uses the following code and works in Bash, KSH (and maybe some other shells as well, but I'm not sure which ones). if [ z"$BASH_SOURCE" != z ]; then SCRIPTPATH="$BASH_SOURCE" elif [ z"$KSH_VERSION" != z ]; then SCRIPTPATH="${.sh.file}" else SCRIPTPATH="$0" fi Hans had problems with Dash, however, I have no clue how to enable (a) in Dash. The (b) approach always works though, so in the worst case the answer to Hans would be "provide the path to your tex root, or write your own script with hardcoded path ;)", but if anyone has any clue if finding path to the executed script is possible in Dash or in any other POSIX-compatible way, please let me know. Mojca On Mon, Nov 19, 2012 at 10:31 AM, Hans Hagen wrote: > Hi Mojca, > > One of the things you need to look into is the first-setup and setup tex > scripts (just look at the dash issues thread) .. i have the impression that > the setuptex script doesn't find its root (own) under dash because it has > different $0 handling (dash is the debian variant of bash, so we're talking > of debian installations) > > 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] Section alone on the page
On 11/20/2012 3:22 PM, "H. Özoguz" wrote: Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: It?s a problem with \blank which ignore the ?samepage? keyword in grid mode. When you process this example in normal mode ?line 40? is moved to the second page but in grid mode it stays on the first page. Is theat easy to fix or a long-term-todo? (Layouting books, I need gridding, indeed, at first that was my reason to start with context) it will probably be improved over time, but interplay between skips an penalties and such is always tricky; we have a weighted system in place but even then ... Hans - 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 ___
Re: [NTG-context] underbar/margin text
On 11/21/2012 9:36 AM, Wolfgang Schuster wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper : Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. so we would have (in typo-mar): \appendtoks \forgetall \tf \resetallattributes % \deactivatecolor % needed, but maybe we should switch to maintextcolor: \onlyinheritmaintextcolor \to \everymargindatacontent we can try that for a while and see where it spoils the game - 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 ___
Re: [NTG-context] Section alone on the page
Am 21.11.2012 13:01, schrieb Hans Hagen: On 11/20/2012 3:22 PM, "H. Özoguz" wrote: Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: It?s a problem with \blank which ignore the ?samepage? keyword in grid mode. When you process this example in normal mode ?line 40? is moved to the second page but in grid mode it stays on the first page. Is theat easy to fix or a long-term-todo? (Layouting books, I need gridding, indeed, at first that was my reason to start with context) it will probably be improved over time, but interplay between skips an penalties and such is always tricky; we have a weighted system in place but even then ... Hans Ok, so what are my alternatives for layouting big projects like books, with lots of sections? Of course I could always go through and manually add "\page", but that would be the worst-case, and possibily an origin for many mistakes. Is there any work-around or other possibilities for this? Downgrading to older versions of context is no alternative, because I need some modules, which need the newest version. And I can not layout with gridset=yes, too. I'm thinking of some script, which checks globally how the sections are set (like I can do it manually) and adds "\page" to the files before the section-commands or deletes the "\page", if it is not needed anymore. Huseyin ___ 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] pgfplots error
On Wed, Nov 21, 2012 at 12:16 AM, Aditya Mahajan wrote: > On Tue, 20 Nov 2012, Thomas Weißschuh wrote: > >> while trying to use the module pgfplots from latest ConTeXt minimals I >> encountered the following error: >> Is this report sufficient or should I also contact pgfplots upstream? In principle you need to contact the upstream developer (unless it's Aditya reading the mailing list and pointing you to the patch :) > This will be fixed in the next release of pgfplots. t-tikz in distribution uses the master from git repository on sourceforge (even though I'm not exactly sure how frequently it updates). In any case, looking at the current state, I see the lua file is already inside "tex", not inside "scripts", so Aditya's comment to wait for the released patch should no longer hold. If the problem persists, it might be a different bug (I didn't test anything). Mojca ___ 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] Section alone on the page
Am 21.11.2012 13:10, schrieb ntg-context-requ...@ntg.nl: And I can not layout with gridset=yes, too. Sorry: I mean "I can not layout withOUT gridset=yes, too.", of course. Huseyin ___ 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: Page numbering in words for spanish
> they are local tables ... so invisible to users Fair point. I was concerned more with changeabiltity: this way someone who writes a new function has an obvious name (numberwords.french) for her new wordlist, and an obvious single point of alteration for her copy of verbose.english, namely to change `local words = numberwords.english` to `...numberwords.french`. (Algorithm tweaks will still come after that, of course.) The code needs very little changing. This is a minor point only, of course. --Sietse + local numberwords = { } - words = { + numberwords.english = { [1] = "one", ... } -spanishwords = { + numberwords.spanish = { [1] = "uno", ... } function verbose.english(n) +local words = allwords.english ... `words` already used throughout ... end function verbose.spanish(n) +local words = allwords.spanish -- to use a different table, no need to -- replace `spanishwords` throughout -- the function; just change the line above. ... no more `spanishwords`, just `words` ... end ___ 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] incrementnumber vs. prefixsegments
On Tue, Nov 6, 2012 at 3:56 AM, plink wrote: > i'm trying to combine two features that somehow don't fit together: > 1. figure numbering and referring using a chapter.fignr scheme. > 2. untitled entries below chapter (aka subject or subsubject), that also > have to occur in the table of contents. Did you manage to sort this out yet? If not, consider this a *bump*. I'm afraid I haven't quite managed to work it out myself. --Sietse On Tue, Nov 6, 2012 at 3:56 AM, plink wrote: > Hi, > > i'm trying to combine two features that somehow don't fit together: > > 1. figure numbering and referring using a chapter.fignr scheme. > For this, a setup with > > \setupcaption[figure][prefix=yes,way=bychapter,prefixsegments=chapter] > > works fine, as long as i don't have > > 2. untitled entries below chapter (aka subject or subsubject), that also > have to occur in the table of contents. For this, e.g. using > > \setuphead[subject][incrementnumber=list] > \definecombinedlist[content][title,chapter,section,subject] > > does the trick, but then the figure number prefix gets eaten up at > figures in subjects. I'd be glad if anybody could give me a hint on how > to solve this. > > ConTeXt ver: 2012.10.30 21:13 MKIV > > Below a maximin example. Commenting out the \setuphead line gives back > the prefix, but then there is no more subject in the toc, as to be expected: > > \setuphead[chapter][page=no,continue=yes] > > \setupcaption[figure][ > prefix=yes, > way=bychapter, > prefixsegments=chapter] > > \setuphead[subject][incrementnumber=list] > > \definecombinedlist[content][title,chapter,section,subject] > > \starttext > \placecontent > > \chapter{Chapter} > > \section{Section Een} > > \placefigure[here][fig:a]{figure a}{\externalfigure[cow.pdf][width=1cm]} > > Figure \in[fig:a] = 1.1\crlf > Figure \in[fig:b] = 1.2?\crlf > Figure \in[fig:c] = 1.3\crlf > > \subject{Subject} > > \placefigure[here][fig:b]{figure b}{\externalfigure[cow.pdf][width=1cm]} > > Figure \in[fig:a] = 1.1\crlf > Figure \in[fig:b] = 1.2?\crlf > Figure \in[fig:c] = 1.3\crlf > > \section{Section Twee} > > \placefigure[here][fig:c]{figure c}{\externalfigure[cow.pdf][width=1cm]} > > Figure \in[fig:a] = 1.1\crlf > Figure \in[fig:b] = 1.2?\crlf > Figure \in[fig:c] = 1.3\crlf > > \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] Symbols
Hans, thank you very much for this section. - I see that the approach is different from what I was trying to do. - I will study and try it! Willi On Nov 21, 2012, at 10:26 AM, Hans Hagen wrote: > On 11/20/2012 5:21 PM, Willi Egger wrote: >> Hi all, >> >> could someone bring light into the way how to use symbols…in MKIV >> >> I wanted to extract a symbol from uzdr (Zapfdingbats). > > (Somehow uzdr.afm and uzdr.pfb are not in my tex tree. I always thought that > they were part of the standalone but nothing surprises me as these fonts have > a history of instability.) > > (Copied from an upcoming font manual:) > > \startsection[title=Unicoding] > > Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding. > And > in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE. > However, there are some exceptions, for instance the Zapf Dingbats in > \TYPEONE\ > format. These have a rather obscure private encoding and the glyph names run > from > \type {a1} upto \type {a206} and have no relation to what the glyph > represents. > > In the case of Dingbats we're somewhat lucky that they ended up in \UNICODE, > so > we can relocate the glyphs to match their rightful place. This is done by > means > of a goodies file. We already discussed this in \in {section} [goodies] so we > only repeat the usage. > > \startbuffer > \definefontfeature > [dingbats] > [mode=base, > goodies=dingbats, > unicoding=yes] > > \definefontsynonym > [ZapfDingbats] > [file:uzdr.afm] > [features=dingbats] > \stopbuffer > > \typebuffer \getbuffer > > I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable > because of name changes and them either or not being included. Therefore it's > best to > use the hard coded name because that triggers the most visible error message > when > the font is not found. > > A font like this can for instance be used with the glyph placement macros as > is > demonstrated below. In the last line we see that a direct \UTF\ input also > works > out well. > > \starttabulate[|||] > \HL > \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\number"2701}} \NC > \getglyphdirect {ZapfDingbats*dingbats}{\number"2701} \NC \NR > \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\char"2701}} \NC > \getglyphdirect {ZapfDingbats*dingbats}{\char"2701} \NC \NR > \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a1}} \NC > \getnamedglyphdirect{ZapfDingbats*dingbats}{a1} \NC \NR > \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a11}} \NC > \getnamedglyphdirect{ZapfDingbats*dingbats}{a11} \NC \NR > \HL > \NC \type{\getglyphdirect {ZapfDingbats}{\number"2701}} \NC > \getglyphdirect {ZapfDingbats}{\number"2701} \NC \NR > \NC \type{\getglyphdirect {ZapfDingbats}{\char"2701}}\NC > \getglyphdirect {ZapfDingbats}{\char"2701}\NC \NR > \NC \type{\getnamedglyphdirect{ZapfDingbats}{a1}}\NC > \getnamedglyphdirect{ZapfDingbats}{a1}\NC \NR > \NC \type{\getnamedglyphdirect{ZapfDingbats}{a11}} \NC > \getnamedglyphdirect{ZapfDingbats}{a11} \NC \NR > \HL > \NC \type{\definedfont[ZapfDingbats*dingbats]✁} \NC > \definedfont[ZapfDingbats*dingbats]✁ \NC \NR > \HL > \stoptabulate > > Keep in mind that fonts like Dejavu (that we use here as document font) > already > has these characters which is why it shows up in the verbose part of the > table. > > \stopsection > > -- > > - > 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 > ___ ___ 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] Images in MultiMarkdown -> context -> PDF
I get the same results using texexec and context which means, if I understand rightly, I have used both MkII and MkIV. Interestingly I get similar results using oft as the pandit output. When I open the doc in LibreOffice the images are all scaled too small. Yet I can right-click each and select an Original Size toggle and they shift to their expected size. But note that I attempted to test the dpi theory by selecting an image and using GIMP to set its dpi to 300 yet that resulted in no visible change. Guy Stalnaker jstal...@wisc.edu jimmyg...@gmail.com On Nov 21, 2012, at 4:07 AM, Martin Schröder wrote: > 2012/11/21 Guy Stalnaker : >> I get a very good pdf document, but there is one bewildering issue -- the >> images in the ConTeXt output pdf document are scaled very small. All of > > Sounds like the TeX engine gets the wrong idea about the dpi of the images. > Are you using MkII or MkIV? > > Best > Martin > ___ > 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] Section alone on the page
On 11/21/2012 1:09 PM, "H. Özoguz" wrote: Am 21.11.2012 13:01, schrieb Hans Hagen: On 11/20/2012 3:22 PM, "H. Özoguz" wrote: Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: It?s a problem with \blank which ignore the ?samepage? keyword in grid mode. When you process this example in normal mode ?line 40? is moved to the second page but in grid mode it stays on the first page. Is theat easy to fix or a long-term-todo? (Layouting books, I need gridding, indeed, at first that was my reason to start with context) it will probably be improved over time, but interplay between skips an penalties and such is always tricky; we have a weighted system in place but even then ... Hans Ok, so what are my alternatives for layouting big projects like books, with lots of sections? Of course I could always go through and manually add "\page", but that would be the worst-case, and possibily an origin for many mistakes. Is there any work-around or other possibilities for this? Downgrading to older versions of context is no alternative, because I need some modules, which need the newest version. And I can not layout with gridset=yes, too. I'm thinking of some script, which checks globally how the sections are set (like I can do it manually) and adds "\page" to the files before the section-commands or deletes the "\page", if it is not needed anymore. adding before={\testpage[5]\blank} or so - 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 ___
Re: [NTG-context] Section alone on the page
On Wed, Nov 21, 2012 at 2:40 PM, Hans Hagen wrote: > On 11/21/2012 1:09 PM, "H. Özoguz" wrote: > >> Am 21.11.2012 13:01, schrieb Hans Hagen: >> >>> On 11/20/2012 3:22 PM, "H. Özoguz" wrote: >>> Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: > It?s a problem with \blank which ignore the ?samepage? keyword in grid > mode. > > When you process this example in normal mode ?line 40? is moved to the > second page but in grid mode it stays on the first page. > Is theat easy to fix or a long-term-todo? (Layouting books, I need gridding, indeed, at first that was my reason to start with context) >>> >>> it will probably be improved over time, but interplay between skips an >>> penalties and such is always tricky; we have a weighted system in >>> place but even then ... >>> >>> Hans >>> >> >> Ok, so what are my alternatives for layouting big projects like books, >> with lots of sections? >> >> Of course I could always go through and manually add "\page", but that >> would be the worst-case, and possibily an origin for many mistakes. >> >> Is there any work-around or other possibilities for this? Downgrading to >> older versions of context is no alternative, because I need some >> modules, which need the newest version. And I can not layout with >> gridset=yes, too. >> >> I'm thinking of some script, which checks globally how the sections are >> set (like I can do it manually) and adds "\page" to the files before the >> section-commands or deletes the "\page", if it is not needed anymore. >> > > adding before={\testpage[5]\blank} or so > > https://mail.google.com/mail/#search/\\testpage/137d7bd313501ff5 -- luigi ___ 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] Section alone on the page
Am 21.11.2012 14:40, schrieb Hans Hagen: adding before={\testpage[5]\blank} or so Thanks Hans, thats quite useful for me (for other purposes, too). ___ 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] Images in MultiMarkdown -> context -> PDF
Guy Stalnaker wrote: > I get the same results using texexec and context which means, if I understand > rightly, I have used both MkII and MkIV. Yes, this is correct. > Interestingly I get similar results using oft as the pandit output. That does suggest it might be something in the image metadata, too. Is the image file something you can share? If so, perhaps you could share it on the list as an attachment (this mailing list allows attachments), so we could have a go at getting it to work ourselves. Cheers, Sietse ___ 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] Images in MultiMarkdown -> context -> PDF
Thanks - see my first post for a link to a web folder where you can find the .tex file, the .pdf context produces, two screenshots of the differing image treatment and two of the image files shown in the screenshots. Guy Stalnaker jstal...@wisc.edu jimmyg...@gmail.com On Nov 21, 2012, at 8:35 AM, Sietse Brouwer wrote: > Guy Stalnaker wrote: >> I get the same results using texexec and context which means, if I >> understand rightly, I have used both MkII and MkIV. > > Yes, this is correct. > >> Interestingly I get similar results using oft as the pandit output. > > That does suggest it might be something in the image metadata, too. Is > the image file something you can share? If so, perhaps you could share > it on the list as an attachment (this mailing list allows > attachments), so we could have a go at getting it to work ourselves. > > Cheers, > Sietse > ___ > 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 ___
[NTG-context] beta
Hi, As Mojca is moving the distribution to another server we have a few days of potential instability which gives us the change to experiment a bit. I've changed the defaults for the math fonts so that now we use the 'real thing'. However, as there can be issues, one can still say at the top of a document (of in cont-syst.tex): \enablemode[txmath] \enablemode[pxmath] \enablemode[lmmath] The design sized latin modern text font is still the default but one could already change that by \setupbodyfont[modern] There is currently some renaming going on for those math fonts but that should not affect us as context can handle older names too. Hans - 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 ___
Re: [NTG-context] mtxrun server help broken
On 11/20/2012 2:42 PM, Sietse Brouwer wrote: with current minimals, the help server appears to be broken. Running mtxrun --script server --start --auto the server starts up, but when I click on "help," I get a page with [an error] Already present in 2012.11.08 12:14, too. should work again - 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 ___
Re: [NTG-context] mtxrun server help broken
On 11/21/2012 05:10 PM, Hans Hagen wrote: with current minimals, the help server appears to be broken. Running mtxrun --script server --start --auto the server starts up, but when I click on "help," I get a page with [an error] Already present in 2012.11.08 12:14, too. should work again nope, afraid I get the same error with 2012.11.21 16:11. 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] typefile with absolute path to file
On 11/21/2012 11:18 AM, Sietse Brouwer wrote: I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. hopefully fixed in next upload .. btw, testing can best be done with \enabletrackers[resolvers.locating,resolvers.detail] - 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 ___
Re: [NTG-context] mtxrun server help broken
On 11/21/2012 5:14 PM, Thomas A. Schmitz wrote: On 11/21/2012 05:10 PM, Hans Hagen wrote: with current minimals, the help server appears to be broken. Running mtxrun --script server --start --auto the server starts up, but when I click on "help," I get a page with [an error] Already present in 2012.11.08 12:14, too. should work again nope, afraid I get the same error with 2012.11.21 16:11. oh, it's the help one .. i fixed the font one Hans - 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] intertext (math): alignment problems
Dear all, if I set up my formulas with a right alignment that has some indentation to it, I am experiencing problems with "intertext". I would assume the text was flushed left. However, it aligns to the formulas (i.e. it is aligned to the left margin defined in \setupformulas). Minimal example below. If I comment the setupformulas, the equation is aligned to the center and the "intertext" is flushed left. Any suggestions? Cheers, Andreas ConTeXt ver: 2012.11.19 19:04 MKIV fmt: 2012.11.20 %%% \setupformulas[align=right,leftmargin=3.5em] \starttext \startformula \startalign[n=2] \NC b \NC = Ax\NR \startintertext likewise % should be flushed left \stopintertext \NC q \NC = Ay\NR \stopalign \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] Dash equivalent of $BASH_SOURCE (for setuptex)
Mojca, I'm not sure that I understand the question. 1. dash (Debian version of the real 100% posix-compatible Borne shell) but also /bin/sh on freebsd and other Unixes (BSD, sysV or POSIX). It is the "least common denominator" for shell scripts on most (if not all) unix-like systems, as far as I know. 2. $0 will give the the path of the script, unless it is called as ./script or script (in the current directory). In this case it will probably be "./script" or by "pathtoscript/script" in which case it will return "pathtoscript/script". The current directory can then be found by `pwd` or $PWD 3 Sourcing the script (not calling it as an executable) as "source script" or ". script" will return as $0 "/bin/bash" or "/usr/local/bin/bash" or "/bin/sh" or whatever shell is in use. This is your problem, I believe. There does not seem to be a way to determine the path to a script under a Borne shell if the script is SOURCED and not EXECUTED. Of course, a script that is executed runs a sub-shell and so this cannot be used to set variables, even environmental variables, for the calling shell. Alan On Wed, 21 Nov 2012 12:56:54 +0100 Mojca Miklavec wrote: > Hi everyone, > > Hans wrote me the following, but I'm unable to figure it out myself. > The script "setuptex" (which is in fact not urgently needed as one can > just as well export the right path, but it comes in handy) can be used > in two ways: > (a) . /path/to/context/tex/setuptex > (b) . /path/to/context/tex/setuptex /path/to/context/tex > The first approach only works if the shell interpreting setuptex knows > where the sourced script is located. > > Currently the script uses the following code and works in Bash, KSH > (and maybe some other shells as well, but I'm not sure which ones). > > if [ z"$BASH_SOURCE" != z ]; then > SCRIPTPATH="$BASH_SOURCE" > elif [ z"$KSH_VERSION" != z ]; then > SCRIPTPATH="${.sh.file}" > else > SCRIPTPATH="$0" > fi > > Hans had problems with Dash, however, I have no clue how to enable (a) > in Dash. The (b) approach always works though, so in the worst case > the answer to Hans would be "provide the path to your tex root, or > write your own script with hardcoded path ;)", but if anyone has any > clue if finding path to the executed script is possible in Dash or in > any other POSIX-compatible way, please let me know. > > Mojca > > On Mon, Nov 19, 2012 at 10:31 AM, Hans Hagen wrote: > > Hi Mojca, > > > > One of the things you need to look into is the first-setup and > > setup tex scripts (just look at the dash issues thread) .. i have > > the impression that the setuptex script doesn't find its root (own) > > under dash because it has different $0 handling (dash is the debian > > variant of bash, so we're talking of debian installations) > > > > 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] Images in MultiMarkdown -> context -> PDF
I suggest that you use 'identify' from ImageMagick to check your graphics. identify -verbose foo.jpg One graphic has a defined resolution (72ppi) and one has none. I also use ImageMagick to automatically add the resolution info to the graphics. No problems with graphic sizes since then. Here is the simplyfied content of a batch file that I normally use... for %%i in (*.png) do convert -units PixelsPerInch -set density 96 "%%i" The important thing is, that you use PNG as graphic format, when you make your screenshots. JPG isn't lossless and any re-compression (e.g. by adding an arrow, clipping) makes things even worse. Convert them to JPG in the very last step (if you must). Also: how about scaling your browser to 200% before you take your screenshots? HTH, Peter Am 21.11.2012 15:55, schrieb Guy Stalnaker: > Thanks - see my first post for a link to a web folder where you can find the > .tex file, the .pdf context produces, two screenshots of the differing image > treatment and two of the image files shown in the screenshots. > > > Guy Stalnaker > jstal...@wisc.edu > jimmyg...@gmail.com > > On Nov 21, 2012, at 8:35 AM, Sietse Brouwer wrote: > >> Guy Stalnaker wrote: >>> I get the same results using texexec and context which means, if I >>> understand rightly, I have used both MkII and MkIV. >> >> Yes, this is correct. >> >>> Interestingly I get similar results using oft as the pandit output. >> >> That does suggest it might be something in the image metadata, too. Is >> the image file something you can share? If so, perhaps you could share >> it on the list as an attachment (this mailing list allows >> attachments), so we could have a go at getting it to work ourselves. >> >> Cheers, >> Sietse >> ___ >> 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 > ___ > ___ 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] Dash equivalent of $BASH_SOURCE (for setuptex)
On Wed, Nov 21 2012, Mojca Miklavec wrote: > write your own script with hardcoded path ;) What about adding this line to the end of first-setup.sh: echo 'PATH="$PATH:'"$CONTEXTROOT/texmf-$platform/bin"'"' >"$CONTEXTROOT/setuptex" ? -- Peter ___ 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] Images in MultiMarkdown -> context -> PDF
Well, that lead to an interesting experiment. I used convert to -resample a set of images to 300dpi and redid the compile. They are all now too bod, many off the right side of the page. Then did the same but set to 72. They are still too big. Odd, from too small to too big. I will try and be a bit more precise and craft a text doc to play with this and report the results. Thanks for your help! Guy On 11/21/2012 10:51 AM, Sietse Brouwer wrote: On Wed, Nov 21, 2012 at 3:55 PM, Guy Stalnaker wrote: Thanks - see my first post for a link to a web folder where you can find the .tex file, the .pdf context produces, two screenshots of the differing image treatment and two of the image files shown in the screenshots. Gah --- missed that. Thanks! The resolution of the image is is either not correctly set, or not correctly read by ConTeXt --- so ConTeXt assumes 300dpi instead of 72. I've attached a self-made image of 547px wide, and run the following file: \starttext \externalfigure[CMSLogin.jpg] \crlf \figurenaturalwidth\ -- \figurexresolution\ -- \figurexsize \externalfigure[cross.jpg] \crlf \figurenaturalwidth\ -- \figurexresolution\ -- \figurexsize \stoptext This prints the following dimensions for your figure and the Gimp-made one, respectively: 8635829sp – 0 – 547 35982623sp – 72 – 547 Can't remember how to convert scaled points to inches, so here's some fraction juggling instead. The naturalwidth of the cross is 4.2 times larger: 35982623 / 8635829 = 4.17 So the login jpg will have 4.1666 times as many dpi. 72 * 4.17 = 300 dpi Which corresponds to this observation by you: But note that I attempted to test the dpi theory by selecting an image and using GIMP to set its dpi to 300 yet that resulted in no visible change. What if you use the GIMP to set its dpi to 72? --Sietse -- "There is only love, and then oblivion. Love is all we have to set against hatred." (paraphrased) Ian McEwan Guy Stalnaker, I^2@DOIT, 1210 West Dayton Street, Room 3209 CSS, Madison WI 53719-1220, jstal...@wisc.edu, work 608.263.8035, cell 608.235.4718, fax 608.265.6681, ___ 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] Dash equivalent of $BASH_SOURCE (for setuptex)
On Wed, Nov 21, 2012 at 6:35 PM, Alan BRASLAU wrote: > > 3 Sourcing the script (not calling it as an executable) as > "source script" or ". script" will return as $0 "/bin/bash" or > "/usr/local/bin/bash" or "/bin/sh" or whatever shell is in use. > This is your problem, I believe. True. But Peter's idea is also not that bad. The drawback is that the distribution cannot be moved to a different directory then, but one could also have combination of both approaches somehow. Mojca ___ 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] beta
Hi Hans, Nice to hear that the official math fonts are good enough to be the default now! Hans Hagen wrote: > I've changed the defaults for the math fonts so that now we use the 'real > thing'. However, as there can be issues, one can still say at the top of a > document (of in cont-syst.tex): > > \enablemode[txmath] > \enablemode[pxmath] > \enablemode[lmmath] > Does the following description ring true? If yes, all I need to do is find a place on the wiki to put it. By default, ConTeXt's math font is Latin Modern Math, or Pagella Math/Termes Math if you specified \setupbodyfont[palatino] c.q. \setupbodyfont[times]. There exist also virtual versions of these fonts; these virtual versions are essentially the body font counterparts with lots of display-modifying tweaks piled on to make them behave like math fonts. These virtual versions were used for a time while the math fonts were in development. If you still want to use the virtual fonts, you can write \enablemode[txmath,pxmath,lmmath] at the top of your document. This does not set the math font directly, but specifies that if the Pagella/Termes/LM math font is used, ConTeXt should use the virtual font rather than the non-virtual one. Futher: I see in math-vfu.lua the following comment: "There are still areas where the virtuals are better." Which areas are these? > The design sized latin modern text font is still the default but one could > already change that by > > \setupbodyfont[modern] And what would you get instead -- 12pt Latin Modern, or something else? Cheers, Sietse ___ 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] Dash equivalent of $BASH_SOURCE (for setuptex)
On Wed, Nov 21 2012, Mojca Miklavec wrote: > But Peter's idea is also not that bad. The drawback is that the > distribution cannot be moved to a different directory then, but one > could also have combination of both approaches somehow. Is it worth the trouble to keep setuptex? Just saying "Please add ... to your PATH" should be enough IMO. -- Peter ___ 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] beta
On Wed, Nov 21, 2012 at 08:10:19PM +0100, Sietse Brouwer wrote: > > these virtual versions are essentially the body font counterparts with > lots of display-modifying tweaks piled on to make them behave like > math fonts. These virtual versions were used for a time while the math > fonts were in development. The virtual counterparts are adaptations of the old TFM/Type1 fonts so they look like OpenType math fonts to the engine (so that ConTeXt would move entirely to Unicode/OpenType math while waiting for the real OpenType fonts). Regards, Khaled ___ 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] pgfplots error
Quoting Mojca Miklavec (2012-11-21 12:10:37) [..] > t-tikz in distribution uses the master from git repository on > sourceforge (even though I'm not exactly sure how frequently it > updates). In any case, looking at the current state, I see the lua > file is already inside "tex", not inside "scripts", so Aditya's > comment to wait for the released patch should no longer hold. If the > problem persists, it might be a different bug (I didn't test > anything). I reproduced it with a brand new clone of minimals. The fix for the last bug is indeed already there. You can test it with the following MWE: \usemodule [pgfplots] \starttext \starttikzpicture \startaxis \addplot coordinates { (0, 0) }; \stopaxis \stoptikzpicture \stoptext If this is indeed a bug in pgfplots and not my setup I'll report it upstream. (My system is an up-to-date Archlinux 64bit) Regards, 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 ___
[NTG-context] Arabic with ConTeXt
Hello, many books I layout have arabic words or complete paragraphs in it - where the main language is german. For example there is a book, which is completely in arabic with german translation. My present method to write in Arabic is, for sure, not the best, f.e. I have problems with arabic numbers (which are printed mirrored), problems with brackets and so on. I have two questions, hopefully there is an expert for questions concerning Arabic or similar quests: First: How to divide the page into a left part and a right part, two wright german on the left side and arabic on the right. Is \paragraph the best way for it? Second: Which is your recommended way to type arabic with ConTeXt? I add mine in this Mail, please give me advises to improve it. Thank you. Huseyin P.S.: If gridsetting with arabic is possible, then I would prefer that. But if not (see my non-gridsetting solution with \placeongrid), it's ok for me. Here an example of Arabic on the right, with german left under it (should be side-by-side, did not implemend the paragraph yet) ++\setuplayout[grid=yes]\setuplayout[grid=yes] \definefont[Sheh][name:Scheherazade*arabic at 17pt] % or file:amiri-regular.ttf*... file:alq.ttf \def\Arab[#1][#2]{ \placeongrid[top]{ \blank[0.2cm] \setupalign[r2l]\Sheh #1 \blank[0.3cm] } {\sl #2} \blank[big] } \starttext \Arab[فَبِأَيِّ آلَاءِ رَبِّكُمَا تُكَذِّبَانِ][Welche der Wohltaten eures Herrn wollt ihr beide verleugnen?] \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] Images in MultiMarkdown -> context -> PDF
Guy wrote: > Well, that lead to an interesting experiment. I used convert to -resample a > set of images to 300dpi and redid the compile. They are all now too bod, > many off the right side of the page. Then did the same but set to 72. They > are still too big. Odd, from too small to too big. I think you don't want -resample, but -density: # density given in dpi convert pic.jpg -density 72 pic-out.jpg convert -density keeps the pixel size and changes the display size by setting the density metadata. convert -resample keeps the display size and changes the pixel size by resampling at a certain density. (This explains why the picture remained the same too-large size when you resampled at 72 and 300 dpi.) Because you want to change the display size (and also because resampling is a lossy process), I think you want -density. As for the density value you want to use: Your picture is 547px wide, so if you want it to display it 3 inches wide you should set its density metadata to 547/3 = 183 dpi. Does this work? All the best, Sietse ___ 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] pgfplots error
On Wed, Nov 21, 2012 at 8:38 PM, Thomas Weißschuh wrote: > Quoting Mojca Miklavec (2012-11-21 12:10:37) > [..] >> t-tikz in distribution uses the master from git repository on >> sourceforge (even though I'm not exactly sure how frequently it >> updates). In any case, looking at the current state, I see the lua >> file is already inside "tex", not inside "scripts", so Aditya's >> comment to wait for the released patch should no longer hold. If the >> problem persists, it might be a different bug (I didn't test >> anything). > > I reproduced it with a brand new clone of minimals. > The fix for the last bug is indeed already there. > > You can test it with the following MWE: > > \usemodule [pgfplots] > > \starttext > \starttikzpicture > \startaxis > \addplot coordinates { > (0, 0) > }; > \stopaxis > \stoptikzpicture > \stoptext > > If this is indeed a bug in pgfplots and not my setup I'll report it > upstream. I can reproduce the problem on my machine and the patch solves the problem, but something seems really weird. Why on earth does it want to load files from /usr/local/lib/lua/5.1 and why does it want to load a binary module instead of a lua file? (I don't have that folder, but even if I had it, pgfplots wouldn't be there) ! LuaTeX error <\directlua >:1: module 'pgfplots.lua' not found: no field package.preload['pgfplots.lua'] no file './pgfplots/lua.so' no file '/usr/local/lib/lua/5.1/pgfplots/lua.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './pgfplots.so' no file '/usr/local/lib/lua/5.1/pgfplots.so' no file '/usr/local/lib/lua/5.1/loadall.so' Mojca ___ 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] Dash equivalent of $BASH_SOURCE (for setuptex)
On Wed, Nov 21, 2012 at 8:28 PM, Peter Münster wrote: > > Just saying "Please add ... to your PATH" should be enough IMO. We currently have the following wording: When you want to use context, you need to initialize the tree by typing: . /path/to/context/tex/setuptex in your shell or add "/path/to/context/tex/texmf-osx-64/bin" to PATH variable if you want to set it permanently. This can usually be done in .bashrc, .bash_profile (or whatever file is used to initialize your shell). But we could remove the part about setuptex and be more explicit by writing down export PATH=... ;) The reason why I use/like setuptex is because I'm nowadays mostly working with TeX Live 2012 and only switch to distribution when I need that (a new feature or when I want to test something). And it far easier to use tab-completion to point to the desired setuptex than to write an explicit "export PATH=..." every time a shell is started. I could of course write my own "distribution switcher". Mojca ___ 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] pgfplots error
On Wed, 21 Nov 2012, Mojca Miklavec wrote: On Wed, Nov 21, 2012 at 8:38 PM, Thomas Weißschuh wrote: Quoting Mojca Miklavec (2012-11-21 12:10:37) [..] t-tikz in distribution uses the master from git repository on sourceforge (even though I'm not exactly sure how frequently it updates). In any case, looking at the current state, I see the lua file is already inside "tex", not inside "scripts", so Aditya's comment to wait for the released patch should no longer hold. If the problem persists, it might be a different bug (I didn't test anything). I reproduced it with a brand new clone of minimals. The fix for the last bug is indeed already there. You can test it with the following MWE: \usemodule [pgfplots] \starttext \starttikzpicture \startaxis \addplot coordinates { (0, 0) }; \stopaxis \stoptikzpicture \stoptext If this is indeed a bug in pgfplots and not my setup I'll report it upstream. I can reproduce the problem on my machine and the patch solves the problem, So can I. but something seems really weird. Why on earth does it want to load files from /usr/local/lib/lua/5.1 and why does it want to load a binary module instead of a lua file? http://www.luafaq.org/#T1.19 (I don't have that folder, but even if I had it, pgfplots wouldn't be there) \startluacode print(package.cpath) \stopluacode gives ./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so so require('pdfplots.lua') searches for the library file in those folders. ! LuaTeX error <\directlua >:1: module 'pgfplots.lua' not found: no field package.preload['pgfplots.lua'] no file './pgfplots/lua.so' <<< NOTICE pgfplots/lua no file '/usr/local/lib/lua/5.1/pgfplots/lua.so' NOTICE no file '/usr/local/lib/lua/5.1/loadall.so' no file './pgfplots.so' no file '/usr/local/lib/lua/5.1/pgfplots.so' no file '/usr/local/lib/lua/5.1/loadall.so' I think that pdfplots should be using dofile rather than require. 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] ConTeXt: Page numbering in words for spanish
I Sietse, I tried the procedure you described without success. I'm using ConTeXt 2011 (I know, it's not the latest and etc, but I got to work with this version because compatibility with my work and I have some troubles with projects). I pasted the code you wrote at the end of core-con.lua and ran 'context --make cont-en'. But I got the following: === Begining of the output === <+ /usr/share/texmf-dist/tex/context/base/core-con.lua> ! LuaTeX error /usr/share/texmf-dist/tex/context/base/core-con.lua:924: attempt to index global 'verbose' (a nil value) stack traceback: /usr/share/texmf-dist/tex/context/base/core-con.lua:924: in main chunk /usr/share/texmf-dist/tex/context/base/luat-cod.lua:42: in function 'registercode' :1: in main chunk. system > tex > error on line 16 in file /usr/share/texmf- dist/tex/context/base/context.mkiv: LuaTeX error ... 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12 %C details. 13 14 \catcode`\{=1 \catcode`\}=2 \catcode`\#=6 15 16 >> %D From the next string (which is set by the script that assembles the 17 %D distribution) later on we will calculate a number that can be used 18 %D by use modules to identify the feature level. Starting with version 19 %D 2004.8.30 the low level interface is english. Watch out and adapt 20 %D your styles an modules. 21 22 \edef\contextformat {\jobname} 23 \edef\contextversion{2011.05.18 18:04} 24 25 %D For those who want to use this: 26 \registerctxluafile ...ua.registercode("#1","#2")} l.16 \registerctxluafile{core-con}{1.001} ? === End of the output === Any clue about this? Thanks! PD.: Here is the correct translation of the 'words' array (and as a gift for your effort on this, a translation for 'days' and 'months' arrays): local words = { [0] = "cero", [1] = "uno", [2] = "dos", [3] = "tres", [4] = "cuatro", [5] = "cinco", [6] = "seis", [7] = "siete", [8] = "ocho", [9] = "nueve", [10] = "diez", [11] = "once", [12] = "doce", [13] = "trece", [14] = "catorce", [15] = "quince", [16] = "sixteen", [17] = "seventeen", [18] = "eighteen", [19] = "nineteen", [20] = "veinte", [30] = "treinta", [40] = "cuarenta", [50] = "cincuenta", [60] = "sesenta", [70] = "setenta", [80] = "ochenta", [90] = "noventa", [100] = "cien", [1000] = "mil", [1000^2] = "millón", [1000^3] = "mil millones", [1000^4] = "billón", } local days = { -- not variables.sunday "domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado", } local months = { -- not variables.januari "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", } On Mié 21 Nov 2012 12:25:03 pm Sietse Brouwer escribió: > I worked up the code below, > put it in core-con.lua, > and recompiled ConTeXt with `context --make cont-en`. > It gives the following output. Does it look correct? ___ 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] Arabic with ConTeXt
· > First: How to divide the page into a left part and a right part, two > wright german on the left side and arabic on the right. Is > \paragraph the best way for it? What you are looking for is text streams. They are not yet fully functional in mkiv. But as long as you need the streams to appear as columns on the same page, as seems to be the case, there is a cheap workaround using the *tabulate* environment (see below). The great thing about \{start,stop}tabulate is that it allows for page breaks inside paragraphs of arbitrary length. Regards Philipp · \newcount\progresscounter \progresscounter0 \def\placeprogresscounter{% %% caution when using dynamic content: check %% for first pass to avoid multiple executions \iftrialtypesetting42\else \advance\progresscounter\plusone \the\progresscounter \fi } \starttext \starttabulate[|r|p|p|] \NC \placeprogresscounter \NC \language[deo] Hallo, Welt! \NC \language[en] \input knuth \NC\NR \HL % % \NC \placeprogresscounter \NC \language[deo] Nächster Abschnitt! \NC \language[en] \input ward \NC\NR \stoptabulate \stoptext pgpRBhzh0N1xh.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] Section alone on the page
Am 21.11.2012 um 13:01 schrieb Hans Hagen : > On 11/20/2012 3:22 PM, "H. Özoguz" wrote: >> Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: >>> It?s a problem with \blank which ignore the ?samepage? keyword in grid >>> mode. >>> >>> When you process this example in normal mode ?line 40? is moved to the >>> second page but in grid mode it stays on the first page. >> Is theat easy to fix or a long-term-todo? (Layouting books, I need >> gridding, indeed, at first that was my reason to start with context) > > it will probably be improved over time, but interplay between skips an > penalties and such is always tricky; we have a weighted system in place but > even then … I would have expected to get the same results from \blank[samepage,…] and \nobreak\blank[…] as you can see in the example “samepage” doesn’t work. \setuplayout[grid=yes] \starttext \dostepwiserecurse{1}{40}{1}{Line \recurselevel\par} \blank[samepage,line] \dostepwiserecurse{41}{50}{1}{Line \recurselevel\par} \page \dostepwiserecurse{1}{40}{1}{Line \recurselevel\par} \nobreak\blank[line] \dostepwiserecurse{41}{50}{1}{Line \recurselevel\par} \stoptext 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] beta
Hi Hans, I made some testings with the new beta and noticed that there are a few maths characters or commands which are broken now. Here is a minimal example: %%% begin bug-lm.tex \starttext The commands \type{\imply} is not anymore defined. \type{\iff}, \type{\Longrightarrow}, \type{\mapsto} and some other arrows do not appear. \startformula (\pi \notin {\Bbb Q} \Longrightarrow \pi^2 + \pi \not\in {\Bbb Q}) \iff \pi^2 \not\in {\Bbb Q} \stopformula \startformula x \mapsto ax+b \stopformula \stoptext %%% end bug-lm.tex and the PDF output is attached. Best regards: OK bug-lm.pdf Description: Adobe PDF document On 21 nov. 2012, at 16:22, Hans Hagen wrote: > Hi, > > As Mojca is moving the distribution to another server we have a few days of > potential instability which gives us the change to experiment a bit. > > I've changed the defaults for the math fonts so that now we use the 'real > thing'. However, as there can be issues, one can still say at the top of a > document (of in cont-syst.tex): > > \enablemode[txmath] > \enablemode[pxmath] > \enablemode[lmmath] > > The design sized latin modern text font is still the default but one could > already change that by > > \setupbodyfont[modern] > > There is currently some renaming going on for those math fonts but that > should not affect us as context can handle older names too. > > Hans > > - > 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 > ___ ___ 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] beta
On Wed, 21 Nov 2012, Otared Kavian wrote: Hi Hans, I made some testings with the new beta and noticed that there are a few maths characters or commands which are broken now. Here is a minimal example: %%% begin bug-lm.tex \starttext The commands \type{\imply} is not anymore defined. \type{\iff}, \type{\Longrightarrow}, \type{\mapsto} and some other arrows do not appear. \startformula (\pi \notin {\Bbb Q} \Longrightarrow \pi^2 + \pi \not\in {\Bbb Q}) \iff \pi^2 \not\in {\Bbb Q} \stopformula \startformula x \mapsto ax+b \stopformula \stoptext %%% end bug-lm.tex and the PDF output is attached. Do these work with xits or cambria, i.e., is it a font or a context issue. 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] beta
On 21 nov. 2012, at 23:45, Aditya Mahajan wrote: > […] > Do these work with xits or cambria, i.e., is it a font or a context issue. Hi Aditya, The bug appears with Latin Modern, that is the default font in TeX. With xits and palatino the example I sent works fine. Best regards: 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 ___
Re: [NTG-context] ConTeXt: Page numbering in words for spanish
Hi Hans, I think the verbose.spanish code you put in the latest beta broke verbose.english: after verbose.english is defined, a second `local verbose = { }` at the start of the spanish code accidentally overwrites that table. The code below works; as a bonus, it fixes the bug where 900 was printed as 'nine hundred zero'. It can replace the entire swath of verbose-related code, right up to the handlers. (The English part is mostly untouched; only that bugfix, and a tweak to use the `local words = words.english` idiom) Known bugs: * 100 before 'mil' should be 'cien mil' * 100 on its own should be 'cien' * 100 before 'millón' -- should that be 'cien millón', or 'ciento millón'? * what are the rules for e.g. '1001' -- should that be 'mil y una'? And should 1004 also be mil y cuatro? Acidrums: if you put this in core-con.lua, replacing everything between the commands.ordinal and converters.verbose function definitions, then run context --make cont-en, does the output look okay to you? Also: thank you for the day and month tables! Cheers, Sietse -- verbose numbers local verbose = { } -- verbose english local words = { } words.english = { [0] = "zero", [1] = "one", [2] = "two", [3] = "three", [4] = "four", [5] = "five", [6] = "six", [7] = "seven", [8] = "eight", [9] = "nine", [10] = "ten", [11] = "eleven", [12] = "twelve", [13] = "thirteen", [14] = "fourteen", [15] = "fifteen", [16] = "sixteen", [17] = "seventeen", [18] = "eighteen", [19] = "nineteen", [20] = "twenty", [30] = "thirty", [40] = "forty", [50] = "fifty", [60] = "sixty", [70] = "seventy", [80] = "eighty", [90] = "ninety", [100] = "hundred", [1000] = "thousand", [1000^2] = "million", [1000^3] = "billion", [1000^4] = "trillion", } function verbose.english(n) local words = words.english local w = words[n] if w then return w end local t = { } local function compose_one(n) local w = words[n] if w then t[#t+1] = w return end local a, b = floor(n/100), n % 100 if a == 10 then t[#t+1] = words[1] t[#t+1] = words[1000] elseif a > 0 then t[#t+1] = words[a] t[#t+1] = words[100] -- don't say 'nine hundred zero' if b == 0 then return end end if words[b] then t[#t+1] = words[b] else a, b = floor(b/10), n % 10 t[#t+1] = words[a*10] t[#t+1] = words[b] end end local function compose_two(n,m) if n > (m-1) then local a, b = floor(n/m), n % m if a > 0 then compose_one(a) end t[#t+1] = words[m] n = b end return n end n = compose_two(n,1000^4) n = compose_two(n,1000^3) n = compose_two(n,1000^2) n = compose_two(n,1000^1) if n > 0 then compose_one(n) end return #t > 0 and concat(t," ") or tostring(n) end verbose.en = verbose.english -- print(verbose.english()) -- print(verbose.english(2221101)) -- print(verbose.english()) -- print(verbose.english(1218)) -- print(verbose.english(1234)) -- print(verbose.english(12345)) -- print(verbose.english(1234567890)) -- verbose spanish (unchecked) words.spanish = { [1] = "uno", [2] = "dos", [3] = "tres", [4] = "cuatro", [5] = "cinco", [6] = "seis", [7] = "siete", [8] = "ocho", [9] = "nueve", [10] = "diez", [11] = "once", [12] = "doce", [13] = "trece", [14] = "catorce", [15] = "quince", [16] = "dieciséis", [17] = "diecisiete", [18] = "dieciocho", [19] = "diecinueve", [20] = "veinte", [21] = "veintiuno", [22] = "veintidós", [23] = "veintitrés", [24] = "veinticuatro", [25] = "veinticinco", [26] = "veintiséis", [27] = "veintisiete", [28] = "veintiocho", [29] = "veintinueve", [30] = "treinta", [40] = "cuarenta", [50] = "cincuenta", [60] = "sesenta", [70] = "setenta", [80] = "ochenta", [90] = "noventa", [100] = "ciento", [200] = "doscientos", [300] = "trescientos", [400] = "cuatrocientos", [500] = "quinientos", [600] = "seiscientos", [700] = "setecientos", [800] = "ochocientos", [900] = "novecientos", [1000] = "mil", [1000^2] = "millón", [1000^3] = "mil millónes", [1000^4] = "billón", } function verbose.spanish(n) local words = words.spanish local w = words[n] if w then return w end local t = { } local function com
Re: [NTG-context] ConTeXt: Page numbering in words for spanish
> Acidrums: if you put this in core-con.lua, replacing everything > between the commands.ordinal and converters.verbose function > definitions, then run context --make cont-en, does the output look > okay to you? Also: thank you for the day and month tables! > Cheers, > Sietse Just pasted the code you gave after commands.ordinal (there's no converters.verbose in my core-con.lua) and the context --make cont-en command worked. But when I tried the minimal ConTeXt example you gave, it claims with the following: === Beginning of output === ! LuaTeX error :1: attempt to call field 'verbose' (a nil value) stack traceback: :1: in main chunk. system > tex > error on line 7 in file prueba2.tex: LuaTeX error ... 1 \starttext 2 \def\vbes#1% 3 {#1\crlf 4 \ctxcommand{verbose(#1, "spanish")}} 5 6 \obeylines 7 >> \vbes{} 8 \vbes{2221101} 9 \vbes{} 10 \vbes{1218} 11 \vbes{1234} 12 \vbes{12345} 13 \vbes{1234567890} 14 \stopcode \ctxcommand ...\directlua \zerocount {commands.#1} l.7 \vbes{} ? === End of output === For the bugs you're talking about, I would say this: * 100 before 'mil' should be 'cien mil' -> Yes, it should be like that. * 100 on its own should be 'cien' -> Same thing here. * 100 before 'millón' -- should that be 'cien millón', or 'ciento millón'? -> It should be 'cien millones'. 'Millones', plural for 'Millón'. Maybe it should be a variable for plurals for millions (the only plural used for numbers in spanish). * what are the rules for e.g. '1001' -- should that be 'mil y una'? -> It should be 'mil uno' (just put the '1' word after the '1000' word). And should 1004 also be mil y cuatro? -> Like before, it should be 'mil cuatro': the '4' word after the '1000' word. Thank you, you're so gentle! ___ 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] Indented footnotes in ConTeXt
Thank you for your solutions, Huseyin, Wolfgang, but this still does not fix my problem with passing \setupnotation. Why does Mark IV keep throwing the error “undefined control sequence”? I have reinstalled ConTeXt and run both luatools --generate and mtxrun --generate. Sincerely yours, Adam Khan ___ 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 ___