[NTG-context] OT: Angebotsanfrage für Erstellung von Logo und Namensschildern
[Excuse the German message. I am happy to translate it, if there is interest.] Sehr geehrte Damen und Herren, bitte senden Sie uns je ein Angebot für die folgenden Arbeiten zu. 1. Erstellung eines Logos für die IT4Science-Days – eine Konferenz der Helmholtz-Gemeinschaft und der Max-Planck-Gesellschaft 1. Nutzbar für Druck und Web 2. Bereitstellung im Vektorformat (SVG) 3. Bereitstellung bis 15. September 2022 4. 30 Minuten für Diskussion der Vorschläge 2. Grafisch-individuelle Namensschilder für IT4Science-Days 1. Skript auf TeX-Basis, das aus einer CSV-Datei im Format (Nachname, Vorname, Einrichtung) ein individuelles Namensschild erstellt. 2. Es ist optisch sichtbar, ob die Einrichtung der Person zur Helmholtz-Gemeinschaft oder Max-Planck-Gesellschaft gehört oder die Person ein Gast ist. 3. Bereitstellung bis 20. September 2022 Bitte fügen Sie dem Angebot Referenzen zu ähnlicher geleisteter Arbeit hinzu. Bitte lesen Sie die [Zusätzlichen Vertragsbedingungen der Max-Planck-Gesellschaft zur Förderung der Wissenschaften e. V.][1] und senden Sie uns dieses bis zum 20. August 2022 vorzugsweise als reine Textnachricht (mit Anhang) an dv-tref...@mpg.de mit dem Zeichen it4s-days-2022 zu. Sollten Sie kein Angebot abgeben können, teilen Sie uns das bitte auch mit. Max-Planck-Institut für molekulare Genetik z. H. Paul Menzel Ihnestraße 63–73 14195 Berlin Freundliche Grüße Paul Menzel [1]: https://www.mpg.de/5757353/zusaetzliche-vertragsbedingungen-der-mpg.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] letter: How to customize reference line?
Dear ConTeXt folks, I am trying to customize the reference line in a letter. ``` $ context --version mtx-context | ConTeXt Process Management 1.01 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2017.05.15 21:48 ``` The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me. ``` \setupletter [name={Joe User}, date=\currentdate] \setupletter [list={name,date}] ``` Only the date is shown in the reference line. The solution from chapter 9 also does not work. Still only the date is shown. ``` \setupletter [name={Joe User}, date=\currentdate] \setupletterstyle[reference][list={name,date}] ``` Do I need to create a new customized reference line to add other fields next to the date to the reference line? Kind regards, Paul [1]: https://bitbucket.org/wolfs/correspondence/downloads/ \usemodule[letter][extension=optimize] \mainlanguage[de] \setupletterstyle [option] [whitespace=line, optimize=yes, ] \setupletter [toname={Vodafone Kabel Deutschland GmbH}, toaddress={Kundenservice\\99116 Erfurt}] \setupletter [fromname={Hanna Musterfrau}, fromaddress={Irgendwostr. 18\\9 Nirgendwo}] \setupletter [name={Joe User}, date=\currentdate] \setupletterstyle[reference][list={name,date}] \starttext \setupletter [subject={Reason}, opening={Sehr geehrte Damen und Herren,}, closing={Freundliche GrüÃe}, signature={Paul Menzel}] \startletter\relax \dorecurse{4}{\input ward\par} \stopletter \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] t-letter: marking=no not disabling folding marks
Dear ConTeXt folks, although looking at tex/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi on how to disable folding marks, I was unsuccessful to figure it out. This is with ConTeXt ver: 2012.08.28 20:00 MKIV fmt: 2012.8.29 int: english/english and please consider the following minimal example. \mainlanguage[de] \usemodule[letter] \starttext \setupletter [fromname={Max Musterfrau}, fromaddress={Beispielstraße 99\\9 Musterstadt}] \setupletter [toname={Jane Mustermann}, toaddress={Musterstrarße \\9 Musterstadt}] \setupletterstyle [marking=no] \setupletter [marking=no] \startletter [opening={Sehr geehrte Damen und Herren,}, subject={Musterbetreff}, closing={Freundliche Grüße,}, signature={Max Musterfrau}] \input knuth \stopletter \stoptext Thanks, Paul foldmarks.pdf Description: Adobe PDF document \mainlanguage[de] \usemodule[letter] \starttext \setupletter [fromname={Max Musterfrau}, fromaddress={Beispielstraße 99\\9 Musterstadt}] \setupletter [toname={Jane Mustermann}, toaddress={Musterstrarße \\9 Musterstadt}] \setupletterstyle [marking=no] \setupletter [marking=no] \startletter [opening={Sehr geehrte Damen und Herren,}, subject={Musterbetreff}, closing={Freundliche Grüße,}, signature={Max Musterfrau}] \input knuth \stopletter \stoptext signature.asc Description: This is a digitally signed message part ___ 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] [solved] t-letter: marking=no not disabling folding marks
Am Mittwoch, den 29.08.2012, 11:06 +0200 schrieb Paul Menzel: Dear ConTeXt folks, although looking at tex/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi on how to disable folding marks, I was unsuccessful to figure it out. This is with ConTeXt ver: 2012.08.28 20:00 MKIV fmt: 2012.8.29 int: english/english and please consider the following minimal example. \mainlanguage[de] \usemodule[letter] \starttext \setupletter [fromname={Max Musterfrau}, fromaddress={Beispielstraße 99\\9 Musterstadt}] \setupletter [toname={Jane Mustermann}, toaddress={Musterstrarße \\9 Musterstadt}] \setupletterstyle [marking=no] \setupletter [marking=no] Looking at `letter-imp-dinb.mkiv` [1] I finally figured that the following does what I need. \setupletterlayer [topmark,botmark,cutmark] [state=stop] As a side node, I am still wondering why the name is `cutmark`. Cleary, no scissor is used to cut the letter in half. Should it be punchmark, because that is the mark to align the whole puncher(?) to? \startletter [opening={Sehr geehrte Damen und Herren,}, subject={Musterbetreff}, closing={Freundliche Grüße,}, signature={Max Musterfrau}] \input knuth \stopletter \stoptext Thanks, Paul [1] tex/texmf-modules/tex/context/third/letter/style/letter-imp-dinb.mkiv signature.asc Description: This is a digitally signed message part ___ 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] correspondence: Wrong version string in module?
Dear Wolfgang, looking at the version string of the a module `letter-imp-knuth.mkiv` I think the version string is incorrect. correspondence $ more files/letter-imp-knuth.mkiv %D \module %D [ file=letter-imp-knuth, %D version=2012.12.26, %Dtitle=\CONTEXT\ User Module, %D subtitle=Knuth letter style, %D author=Wolfgang Schuster, %D date=\currentdate, %Dcopyright=Wolfgang Schuster, %D license=GNU General Public License] […] I guess the date is used and this is from the future. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] t-correspondence: Module resume not available?
Dear ConTeXt folks, using \usemodule[resume] I always get the following error. ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.23 int: english/english system cont-new.mkiv loaded (/srv/filme/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) fontslatin modern fonts are not preloaded languageslanguage en is active (lebenslauf.tex resolversmodules not found: 'resume' Could somebody please comment on the current state of the resume module? Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] correspondence: Wrong version string in module?
Am Samstag, den 25.08.2012, 13:05 +0200 schrieb Sietse Brouwer: On Sat, Aug 25, 2012 at 11:28 AM, Paul Menzel wrote: correspondence $ more files/letter-imp-knuth.mkiv %D \module %D [ file=letter-imp-knuth, %D version=2012.12.26, […] I guess the date is used and this is from the future. Y'know, Hans and Wolfgang having time travel powers would explain an awful lot. Did not think of that. But now that you mention this, this sounds reasonable. ;-) The inhuman speed of development ... the instantaneous answers ... and that haunting feeling, impossible but inescapable, that ConTeXt is bigger on the inside. Thanks, Paul PS: So, Wolfgang, please share the lotto numbers for the time until December with me. ;-) signature.asc Description: This is a digitally signed message part ___ 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] t-letter: Colons : in \setupletter[postscript={…}] not escaped properly
Dear ConTeXt folks, using ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.25 int: english/english and the example \usemodule[letter] \starttext \setupletter [fromname={John Simmons}, fromaddress={Parkstreet 12\\8257 Green Bay}] \setupletter [toname={Steve Wilson}, toaddress={Nightstreet 4a\\9183 Cotton Village}] \setupletter [postscript={PS: word : word : word}] \startletter [opening={Dear Mr Wilson,}, subject={Brand new templates for Word}, closing={Best regards}, signature={John Simmons}] \input knuth\par \stopletter \stoptext the »PS:« is cut off and also the part after the second colon. Thanks, Paul 20120825--postscriptum.pdf Description: Adobe PDF document \usemodule[letter] \starttext \setupletter [fromname={John Simmons}, fromaddress={Parkstreet 12\\8257 Green Bay}] \setupletter [toname={Steve Wilson}, toaddress={Nightstreet 4a\\9183 Cotton Village}] \setupletter [postscript={PS: word : word : word}] \startletter [opening={Dear Mr Wilson,}, subject={Brand new templates for Word}, closing={Best regards}, signature={John Simmons}] \input knuth\par \stopletter \stoptext signature.asc Description: This is a digitally signed message part ___ 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] t-letter: Undefined control sequence `\useletterextension[addrentry]`
Dear ConTeXt folks, using ConTeXt Standalone from today $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /srv/filme/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2012.08.16 22:20 trying to process `letter-15.tex` from Wolfgang’s example archive `letter-examples.zip` [1] I get the following error. $ context letter-15.tex […] resolversmodules loaded: 'letter' (../opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi resolversmodules loaded: 'cor-00' (../opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi+ /opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua) (/opt/context/tex/texmf-modules/tex/context/third/letter/style/letter-imp-default.mkiv) (/opt/context/tex/texmf-modules/tex/context/third/letter/style/letter-imp-dinb.mkiv (/opt/context/tex/texmf-modules/tex/context/third/letter/style/letter-imp-default.mkiv))) ! Undefined control sequence. system tex error on line 3 in file letter-15.tex: Undefined control sequence ... 1 \usemodule[letter] 2 3 \useletterextension[addrentry] 4 \useaddressfile[hobbits] 5 6 \starttext 7 8 \startletter 9 [subject={Grund des Anschreibens}, 10opening={Sehr geehrte Damen und Herren,}, 11closing={Mit freundlichen Gr\uumlaut\ssharp en}] 12 [TOM] 13 \dorecurse{3}{\input knuth\par} l.3 \useletterextension [addrentry] ? ! Emergency stop. […] Removing these lines makes the process complete but of course without the address entry. Thanks, Paul PS: Additionally, I did not find the manual I thought existed at least a year ago. [1] https://sites.google.com/site/wolfgangschuster/letter-examples.zip \usemodule[letter] \useletterextension[addrentry] \useaddressfile[hobbits] \starttext \startletter [subject={Grund des Anschreibens}, opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Gr\uumlaut\ssharp en}] [TOM] \dorecurse{3}{\input knuth\par} \stopletter \startletter [subject={Grund des Anschreibens}, opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Gr\uumlaut\ssharp en}] [FRODO] \dorecurse{3}{\input knuth\par} \stopletter \stoptext signature.asc Description: This is a digitally signed message part ___ 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] KOMA-srcartcl Type Area: How to count header and footer to text area?
Dear ConTeXt folks, having heard nice things about the KOMA script type area I wanted to use it too and tried out the example in the Wiki [1]. % Set binding correction value (mode=BCOR turns it on). \doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}} % Set visible page width. \newdimen\PageWidth \PageWidth=\dimexpr(\paperwidth-\bindingcorr) % Determine the paper aspect ratio. \edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}} % Set the textarea width to 2.6 alphabets. \setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}} \newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox) % Set the textarea height proportional to the width. \newdimen\Height \Height=\dimexpr(\Ratio\Width) % Set the margin/gutter widths to be equal on a full spread. \newdimen\Back \doifmodeelse{oneside} {\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)} {\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)} % Set the top and bottom margins in a 1:2 ratio, ignoring headers. \edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)} % Redefine \Height to include header and footer space. \Height=\dimexpr(\Height + 8\lineheight) % Set up the page layout using the calculated parameters. \setuplayout[ backspace=\the\Back, height=\the\Height, width=\the\Width, header=2\lineheight, headerdistance=\lineheight, footer=2\lineheight, footerdistance=3\lineheight, topspace=\Top] \starttext \framed[width=\textwidth,height=\textheight]{} \stoptext I only want to add a page number to the footer [3] and I do not want to use any header [2, and ConTeXt manual]. Therefore I set \setupheader[][state=none] \setuppagenumbering[alternative=doublesided, location={footer}] \enablemode[BCOR] According to the KOMA-Script manual [4] having just a page number in the footer it should be counted as belonging to the margin. The only way I found out to achieve that was setting `\footdistance=0`. Is that the “correct” way to comply with the KOMA-Script type area recommendation? Please find the adapted example attached. Thanks, Paul [1] http://wiki.contextgarden.net/KOMA-scrartcl_Type_Area [2] http://wiki.contextgarden.net/Layout [3] http://wiki.contextgarden.net/Reference/en/setuppagenumbering [4] ftp://ftp.dante.de/pub/tex/macros/latex/.../koma-script/scrguide.pdf koma.pdf Description: Adobe PDF document % Set binding correction value (mode=BCOR turns it on). \doifmodeelse{BCOR}{\def\bindingcorr{5mm}}{\def\bindingcorr{0pt}} % Set visible page width. \newdimen\PageWidth \PageWidth=\dimexpr(\paperwidth-\bindingcorr) % Determine the paper aspect ratio. \edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}} % Set the textarea width to 2.6 alphabets. \setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}} \newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox) % Set the textarea height proportional to the width. \newdimen\Height \Height=\dimexpr(\Ratio\Width) % Set the margin/gutter widths to be equal on a full spread. \newdimen\Back \doifmodeelse{oneside} {\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)} {\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)} % Set the top and bottom margins in a 1:2 ratio, ignoring headers. \edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)} % Redefine \Height to include header and footer space. \Height=\dimexpr(\Height + 8\lineheight) % Set up the page layout using the calculated parameters. \setuplayout[ backspace=\the\Back, height=\the\Height, width=\the\Width, header=2\lineheight, headerdistance=\lineheight, footer=2\lineheight, footerdistance=0\lineheight, topspace=\Top, ] \setupheader[][state=none] \setuppagenumbering[alternative=doublesided, location={footer}] \enablemode[BCOR] \starttext \framed[width=\textwidth,height=\textheight]{} \input tufte \stoptext signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to create horizontal line for signature?
Dear ConTeXt folks, sometimes you need to insert a line for signature. I could not find anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not work. I ended up abusing `\framed` [3]. \starttext \startstandardmakeup[align=right] Alles rechtens. Everything is fine and nobody cheated. \blank[medium] London, den 28.\,June 2011 \blank[3*big] \framed[width=5cm, frame=off, topframe=on]{\small John Doe} \stopstandardmakeup \stoptext The down side is, that its widths is not perfectly aligned with the location and date. I guess there is something simpler to do it. I looked at Wolfgang’s letter module but could not figure out how it is done there. Something like the examples posted for LaTeX on Stack Exchange [3] for ConTeXt would be nice. Thanks, Paul [1] http://wiki.contextgarden.net/FAQ#How_can_I_get_a_horizontal_space_with_a_defined_width.2C_so_as_ex._.22.5Chspace.7B3em.7D.22_or_.22.5Chspace.2A.7B3em.7D.22_in_LaTeX.3F [2] http://wiki.contextgarden.net/Framed [3] http://tex.stackexchange.com/questions/35942/how-to-create-a-signature-date-page signature.pdf Description: Adobe PDF document \starttext \startstandardmakeup[align=right] Alles rechtens. Everything is fine and nobody cheated. \blank[medium] London, den 28.\,June 2011 \blank[3*big] \framed[width=5cm, frame=off, topframe=on]{\small John Doe} \stopstandardmakeup \stoptext signature.asc Description: This is a digitally signed message part ___ 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] [solved] How to create horizontal line for signature?
Am Dienstag, den 13.12.2011, 13:49 +0100 schrieb Wolfgang Schuster: Am 13.12.2011 um 13:36 schrieb Paul Menzel: sometimes you need to insert a line for signature. I could not find anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not work. I ended up abusing `\framed` [3]. \starttext \startstandardmakeup[align=right] Alles rechtens. Everything is fine and nobody cheated. \blank[medium] London, den 28.\,June 2011 \blank[3*big] \framed[width=5cm, frame=off, topframe=on]{\small John Doe} \stopstandardmakeup \stoptext The down side is, that its widths is not perfectly aligned with the location and date. I guess there is something simpler to do it. I looked at Wolfgang’s letter module but could not figure out how it is done there. The module doesn’t draw a rule for the signature. I see. I thought I was just missing something. Something like the examples posted for LaTeX on Stack Exchange [3] for ConTeXt would be nice. \startTABLE[frame=off,align=middle] \NC London, den 28.\,June 2011\NC\NR \NC[height=1cm] \NC\NR \NC[topframe=on,style=smallbodyfont] John Doe \NC\NR \stopTABLE As always thank you so much for the fast answer. I am always a bit reluctant to use tables for this, thinking of it only as displaying data with a table. This is from back in the HTML days were tables were used for formatting. But I guess tables are perfect for aligning things. Thanks, Paul signature.pdf Description: Adobe PDF document \starttext \startTABLE[frame=off,align=middle] \NC London, den 28.\,June 2011\NC\NR \NC[height=1cm] \NC\NR \NC[topframe=on,style=smallbodyfont] John Doe \NC\NR \stopTABLE \blank[5*big] \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Bibliography: `\setupheadtext[de][pubs=Quellen]` does not update the table of contents.
Dear ConTeXt folks, the following minimal example changes the default text for the title for the publication list [1]. In the table of content there is still the default name though. \mainlanguage[de] \setupbibtex[database=sample, sort=author] \setuppublications[alternative=apa, criterium=all] % Show reference numbers in the generated list. \setupheadtext[de][pus=Quellen] \starttext \completecontent \section{Example} As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \blank[4*big] \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext A solution for this problem would be much appreciated. Thanks, Paul [1] http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf pub-and-toc.pdf Description: Adobe PDF document \mainlanguage[de] \setupbibtex[database=sample, sort=author] \setuppublications[alternative=apa, criterium=all] % Show reference numbers in the generated list. \setupheadtext[de][pus=Quellen] \starttext \completecontent \section{Example} As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \blank[4*big] \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext signature.asc Description: This is a digitally signed message part ___ 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] KOMA-srcartcl Type Area: How to count header and footer to text area?
Am Dienstag, den 13.12.2011, 08:24 -0500 schrieb Aditya Mahajan: On Dec 13, 2011, at 6:33 AM, Paul Menzel paulepan...@users.sourceforge.net wrote: having heard nice things about the KOMA script type area I wanted to use it too and tried out the example in the Wiki [1]. % Set binding correction value (mode=BCOR turns it on). \doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}} % Set visible page width. \newdimen\PageWidth \PageWidth=\dimexpr(\paperwidth-\bindingcorr) % Determine the paper aspect ratio. \edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}} % Set the textarea width to 2.6 alphabets. \setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}} \newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox) % Set the textarea height proportional to the width. \newdimen\Height \Height=\dimexpr(\Ratio\Width) % Set the margin/gutter widths to be equal on a full spread. \newdimen\Back \doifmodeelse{oneside} {\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)} {\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)} % Set the top and bottom margins in a 1:2 ratio, ignoring headers. \edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)} % Redefine \Height to include header and footer space. \Height=\dimexpr(\Height + 8\lineheight) % Set up the page layout using the calculated parameters. \setuplayout[ backspace=\the\Back, height=\the\Height, width=\the\Width, header=2\lineheight, headerdistance=\lineheight, footer=2\lineheight, footerdistance=3\lineheight, topspace=\Top] \starttext \framed[width=\textwidth,height=\textheight]{} \stoptext I only want to add a page number to the footer [3] and I do not want to use any header [2, and ConTeXt manual]. Therefore I set \setupheader[][state=none] \setuppagenumbering[alternative=doublesided, location={footer}] \enablemode[BCOR] According to the KOMA-Script manual [4] having just a page number in the footer it should be counted as belonging to the margin. The only way I found out to achieve that was setting `\footdistance=0`. Is that the “correct” way to comply with the KOMA-Script type area recommendation? Please find the adapted example attached. Have you seen http://modules.contextgarden.net/typearea Yes I did. But it does not seem to provide all options like `headinclude` or `footinclude`. At least \usemodule[typearea] \setupTypeArea[bcor=0mm, headinclude=false, footinclude=false] did not change anything. Thanks, Paul [1] http://wiki.contextgarden.net/KOMA-scrartcl_Type_Area [2] http://wiki.contextgarden.net/Layout [3] http://wiki.contextgarden.net/Reference/en/setuppagenumbering [4] ftp://ftp.dante.de/pub/tex/macros/latex/.../koma-script/scrguide.pdf signature.asc Description: This is a digitally signed message part ___ 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] gnuplot module: `option=monochrome` does not work.
Dear ConTeXt folks, I want to create monochrome plots, but `option=monochrome` is ignored. \usemodule[gnuplot] \setupGNUPLOT[terminal=context,option=monochrome] \startGNUPLOTscript[pi] plot pi t '$π = \ctxlua{context(math.pi)}$' \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[pi] \blank \CONTEXT\ \contextmark\ \contextversion \stoptext Is that the correct way to enable monochrome output? Looking at the Wiki page [1] it should be something like the above. Am I doing something wrong? Thanks, Paul [1] http://wiki.contextgarden.net/Gnuplot gnup.pdf Description: Adobe PDF document \usemodule[gnuplot] \setupGNUPLOT[terminal=context,option=monochrome] \startGNUPLOTscript[pi] plot pi t '$π = \ctxlua{context(math.pi)}$' \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[pi] \blank \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] OT: How to reference the ConTeXt project?
Dear Hans and ConTeXt folks, how do you want me to reference ConTeXt? Is there an article you prefer or should I just use the reference manual or the Wiki? Hans Hagen and others (2011), http://contextgarden.net/ Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] Lua and module gnuplot: Manipulate Gnuplot script with Lua
Dear ConTeXt folks, I have two coefficients saved in a text file -0.157737135681261 -0.211443105668896 and I want to use them to plot a line with gnuplot. Having several of those files I want to use Lua to create the formula for the line for me. I have not yet figured out how to read values from a file in Lua and just tried to print a constant to the gnuplot command. I tried the following. \usemodule[gnuplot] \startGNUPLOTscript[lua] plot \ctxlua{context(1.2 * x + 3)} \stopGNUPLOTscript \startGNUPLOTscript[nolua] plot 1.2 * x + 3 \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[lua] Above should be a plot. \useGNUPLOTgraphic[nolua] \blank \CONTEXT\ \contextmark\ \contextversion \stoptext But only the second plot done and for the first the following error is shown. mtxrun | mtxrun | executing: gnuplot gnup-gnuplot-1.plt mtxrun | mtxrun | plot \ctxlua{context(1.2 * x + 3)} ^ gnup-gnuplot-1.tmp, line 1: invalid character \ Is there a way to manipulate gnuplot scripts with Lua? Thanks, Paul \usemodule[gnuplot] \startGNUPLOTscript[lua] plot \ctxlua{context(1.2 * x + 3)} \stopGNUPLOTscript \startGNUPLOTscript[nolua] plot 1.2 * x + 3 \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[lua] Above should be a plot. \useGNUPLOTgraphic[nolua] \blank \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Lua and module gnuplot: Manipulate Gnuplot script with Lua
Am Montag, den 12.12.2011, 23:07 +0100 schrieb Mojca Miklavec: On Mon, Dec 12, 2011 at 22:39, Paul Menzel wrote: I have two coefficients saved in a text file -0.157737135681261 -0.211443105668896 and I want to use them to plot a line with gnuplot. Having several of those files I want to use Lua to create the formula for the line for me. I have not yet figured out how to read values from a file in Lua and just tried to print a constant to the gnuplot command. I tried the following. \usemodule[gnuplot] \startGNUPLOTscript[lua] plot \ctxlua{context(1.2 * x + 3)} \stopGNUPLOTscript This won't work. The reason is that contents between \startGNUPLOTscript and \stopGNUPLOTscript are not parsed by ConTeXt on purpose. It was very very very painful if not impossible to get it right with parsing. I often do things like \def\E#1{$10^{#1}$} \startGNUPLOTscript[name] set logscale y set format y \\E{%T} plot sin(x) t '$\sin(x) [\E{3}]$' # usually something else with logscale, but just to show the point \stopGNUPLOTscript and if ConTeXt starts parsing this it becomes a pure nightmare. Realize that it can easily happen that ConTeXt then writes out set logscale y set format y some junk leftovers from \\ Eungrouped { since % starts comment plot sin(x) t '\math{\mathrm{sin}(x) [{10^{3}}]}' arbitrary junk from expansion ... However, \startGNUPLOTinclusions is parsed and you could in theory misuse that, but it would be very bad coding practice. Thank you very much for your explanations. It would be a lot better to come up with some proposal how to change the interface to enable what you want to do. (To be honest, it is still on my todo list to migrate to Aditya's filter module in the background, but I don't find the courage to start since I have no idea how many bugs will creep in.) I do not know this very well, so I do not know what would change when using the filter module. I guess in the end being able to pass a plt-file to `\startGNUPLOTscript` would be enough. But a serious question: what *exactly* do you want to do with lua that you are unable to do with some (even though ugly) gnuplot trickery? I do not know. This was just a product out of my ignorance. Searching for `gnuplot load parameters` or something like that only turned `fit` related stuff. Thinking about this, I should have searched harder or looked at the manual or examples. Gnuplot does have some basic programmable capabilities. I can imagine that you should be able to do something like: # params.dat a=-0.157737135681261 b=-0.211443105668896 \startGNUPLOTinclusions f(x,a,b)=a*x+b \stopGNUPLOTinclusions \startGNUPLOTscript[name] load 'params.dat' plot f(x,a,b) \stopGNUPLOTscript And if needed you can create params.dat on the fly (but I believe that the same should be doable even if you start with just pure data values and do some dirty tricks in gnuplot). That pretty much what I need. Thank you! What I do is to do simulations and then do the linear regression using R [1]. (I know gnuplot can do that too, but I got some errors with it and using R seems easier for me.) Then the calculated coefficient are saved to a separate file because having discovered your nice gnuplot module I want to use that for plotting. Now I need to read in those parameters. I guess I have to compose the plot manually but those parameters were essential. Yet another trick could be to create a text file on the fly with lua (if you really really really need that) and then your script only says something like. # bla.plt created on the fly with lua scripts plot 1.2 * x + 3 \startGNUPLOTscript[bla] load 'bla.plt' \stopGNUPLOTscript I leave creating a suitable 'bla.plt' with lua to others ... That is in my opinion the best solution. If I want to script something there are enough solutions already. Being able to use the tools of once choice and to insert the result should fit everyone’s need. Thank you again very much for your help. Thanks, Paul [1] http://www.r-project.org/ signature.asc Description: This is a digitally signed message part ___ 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] Lua and module gnuplot: Manipulate Gnuplot script with Lua
Am Montag, den 12.12.2011, 23:13 +0100 schrieb Mojca Miklavec: […] One more example. One thing that would most probably work (I didn't try it) would be the following: \startGNUPLOTscript[name] plot sin(x) t '$\pi = \ctxlua{math.pi()}$' \stopGNUPLOTscript It has some syntax errors, but that is what I tried first and it worked great. Here is a full example. \usemodule[gnuplot] \startGNUPLOTscript[pi] plot pi t '$π = \ctxlua{context(math.pi)}$' \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[pi] \blank \CONTEXT\ \contextmark\ \contextversion \stoptext Thanks, Paul gnup.pdf Description: Adobe PDF document \usemodule[gnuplot] \startGNUPLOTscript[pi] plot pi t '$π = \ctxlua{context(math.pi)}$' \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[pi] \blank \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] ∫ and $\intop$ is not displayed correctly compared to $\int$.
[My former message was not delivered and awaits moderator approval because it is bigger than 64 KB. I removed the PDF output using XITS.] Am Sonntag, den 12.06.2011, 23:52 +0200 schrieb Mojca Miklavec: On Sun, Jun 12, 2011 at 15:06, Paul Menzel wrote: ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.5.27 int: english/english the following example produces different integral signs. --- minimal example --- \starttext Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$. But $\int$ and $∫$ look differently. \stoptext --- minimal example --- I just wanted to bring this topic up again since it is still reproducible with ConTeXt MKIV 2011.11.25 21:29. However the character ∫ looks the same as \intop and ∫\nolimits looks the same as \int. Yes, it does. As to why \intop looks so weird, I have no idea. If you add \usetypescript[modern-base] \setupbodyfont[modern] it will work ok. Cambria Math also results in two different heights of the operator depending on whether limits are there or not. It might be a bug somewhere in virtual font setup of LM. In pdfTeX \int and \intop operators are positioned equally. Using XITS it does also work although in display math mode(?) ∫ and $\intop$ are not scaled. I use the following example. \setupbodyfont[xits] \setupinteraction[state=start] \useurl[context2008][http://wiki.contextgarden.net/Context_2008.04.10][][\ConTeXt\ version 4/10/2008] \starttext Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$. But $\int$ by \type{\int} and $∫$ by UTF-8 character look differently. As Mojca pointed out \type{\intop} is also not type set correctly: $\intop$. This suggests that it is a problem with the Latin Modern font. \type{\intop} was added in \from[context2008]. \blank • Using UTF-8 character: \startformula ∫_ℝ dx = ∞ \stopformula • Using UTF-8 character with \type{\nolimits}: \startformula ∫\nolimits_ℝ dx = ∞ \stopformula • Using \type{\intop}: \startformula \intop_ℝ dx = ∞ \stopformula • Using \type{\intop\nolimits} does not work. \startformula \intop\nolimits_ℝ dx = ∞ \stopformula • Using \type{\int}: \startformula \int_ℝ dx = ∞ \stopformula • Using \type{\int_\limits_a}: \startformula \int\limits_a dx = ∞ \stopformula \blank \CONTEXT\ \contextmark\ \contextversion \stoptext Is there a chance to fix `\intop` in Latin Modern (and XITS). Would it be a good idea to map ∫ to $\int$ instead of `\intop`? Do people use `\intop` a lot? Thanks, Paul PS: Although this seems font related, some more information just in case. ∫ has the Unicode number(?) #222B [1] and `xev` returns the following. KeyPress event, serial 33, synthetic NO, window 0x4c1, root 0x102, subw 0x0, time 340829925, (244,21), root:(256,134), state 0x4000, keycode 39 (keysym 0x8bf, integral), same_screen YES, XLookupString gives 3 bytes: (e2 88 ab) ∫ XmbLookupString gives 3 bytes: (e2 88 ab) ∫ XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x4c1, root 0x102, subw 0x0, time 340829989, (244,21), root:(256,134), state 0x4000, keycode 39 (keysym 0x8bf, integral), same_screen YES, XLookupString gives 3 bytes: (e2 88 ab) ∫ XFilterEvent returns: False [1] http://unicode.org/charts/nameslist/n_2200.html \setupbodyfont[xits] \setupinteraction[state=start] \useurl[context2008][http://wiki.contextgarden.net/Context_2008.04.10][][\ConTeXt\ version 4/10/2008] \starttext Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$. But $\int$ by \type{\int} and $∫$ by UTF-8 character look differently. As Mojca pointed out \type{\intop} is also not type set correctly: $\intop$. This suggests that it is a problem with the Latin Modern font. \type{\intop} was added in \from[context2008]. \blank • Using UTF-8 character: \startformula ∫_ℝ dx = ∞ \stopformula • Using UTF-8 character with \type{\nolimits}: \startformula ∫\nolimits_ℝ dx = ∞ \stopformula • Using \type{\intop}: \startformula \intop_ℝ dx = ∞ \stopformula • Using \type{\intop\nolimits} does not work. \startformula \intop\nolimits_ℝ dx = ∞ \stopformula • Using \type{\int}: \startformula \int_ℝ dx = ∞ \stopformula • Using \type{\int_\limits_a}: \startformula \int\limits_a dx = ∞ \stopformula \blank \CONTEXT\ \contextmark\ \contextversion \stoptext int_latin-modern.pdf Description: Adobe PDF document signature.asc Description
Re: [NTG-context] ∫ and $\intop$ is not displayed correctly compared to $\int$.
Am Sonntag, den 11.12.2011, 13:28 +0100 schrieb Philipp A.: apart from this IMHO very useful change (mapping to \int), maybe we should create a unicode-math module which replaces some commands with symbols. Do you mean symbols by commands? i find myself always using this for chemical and mathematical documents: \catcode`→=\active \def→{\xrightarrow} \catcode`↔=\active \def↔{\xleftrightarrow} \catcode`√=\active \def√{\sqrt} Sorry for being a noob. I thought for the first three that is somehow done already. If not, such a mechanism would indeed be useful. PS: i recently posted two questions to this list which i got no replies to:“simplefonts: math in headers” and“headers: numberconversion=something or \definestructureconversionset” do you see them or did they get lost in transmission? The message were delivered to the subscribers. You can also check that in the archive [1]. We just have to be patient. I hope Wolfgang is not sick/ill and is doing fine by being on vacation or something similar. PPS: Do you also use the Neo layout [4]? [1] http://www.ntg.nl/pipermail/ntg-context/2011/thread.html [2] http://www.ntg.nl/pipermail/ntg-context/2011/063723.html [3] http://www.ntg.nl/pipermail/ntg-context/2011/063739.html [4] http://neo-layout.org/ signature.asc Description: This is a digitally signed message part ___ 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] MetaFun: MetaPost example works with `mpost` but not embedded in ConTeXt: `! Redundant equation.`
Dear ConTeXt folks, looking for graphics example and therefore searching the list I found the answer from David Arnold in the ntg-context list thread »OT: looking for metapost/fun examples« [1]. It is for plain MetaPost and works fine with `mpost` after making sure to remove the line breaks inserted by the mail program. I then copied it into `\{start,stop}useMPgraphic`, removed the `end ;` and `{begin,end}fig` and replaced `{e,b}tex` by `textext()` but still get the following error. ! terminal: ! Redundant equation. to be read again ; * ...500; dt:=(tstop-tstart)/N; (b-a)*ux=1.75in; (d-c)*uy=1.75in; q=(a,c)-... ! Redundant equation. to be read again ; * ...start)/N; (b-a)*ux=1.75in; (d-c)*uy=1.75in; q=(a,c)--(b,c)--(b,d)--(a... . system tex error on line 39 in file arnold-2005.tex: terminal: ! Redundant equation. to be read again ; * ...500; dt:=(tstop-tstart)/N; (b-a)*ux=1.75in; (d-c)*uy=1.75in; q=(a,c)-... ! Redundant equation. to be read again ; * ...start)/N; (b-a)*ux=1.75in; (d-c)*uy=1.75in; q=(a,c)--(b,c)--(b,d)--(a... Does someone have an idea why this fails and how to fix it? Thanks, Paul [1] http://www.ntg.nl/pipermail/ntg-context/2005/009928.html %This file creates two figures associated with the %system x'=f(x,y), y'=g(x,y) %1. Plots the graphs of x(t) and y(t) %2. Plots the graph of (x(t),y(t)) in the phase plane. %verbatimtex %\input mtplain %etex %Generate standard eps prologues:=2; beginfig(0); %Place RHS of x'=f(t,x,y) here def fxy(expr t, x, y)= (0.4-0.01*y)*x enddef; %Place RHS of y'=g(t,x,y) here def gxy(expr t, x, y)= (-0.3+0.005*x)*y enddef; %Declare some variables path q, trajx, trajy; pair L, R, B, T, xt, yt; numeric sx[], sy[]; %Initialize clipping window a:=0; b:=40; %left and right of viewing rectangle c:=0; d:=150; %bottom and top of viewing rectangle %Initialize timespan tstart:=a; tstop:=b; %Initialize number of points to be plotted N:=500; %Calculate time increment dt for Euler's method dt:=(tstop-tstart)/N; %Scaling factors for horizontal and vertical axes. Note that this produces %an image that is 2 inches by 2 inches. (b-a)*ux=1.75in; (d-c)*uy=1.75in; %Clipping boundary q=(a,c)--(b,c)--(b,d)--(a,d)--cycle; %Use Runge-Kutta4 to create path (t,x(t)) %Choose initial condition t:=tstart; x:=40; y:=20; trajx:=(t,x); forever: sx1:=fxy(t,x,y); sy1:=gxy(t,x,y); sx2:=fxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2)); sy2:=gxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2)); sx3:=fxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2)); sy3:=gxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2)); sx4:=fxy((t+dt),(x+dt*sx3),(y+dt*sy3)); sy4:=gxy((t+dt),(x+dt*sx3),(y+dt*sy3)); x:=x+dt*(sx1+2*sx2+2*sx3+sx4)/6; y:=y+dt*(sy1+2*sy2+2*sy3+sy4)/6; t:=t+dt; trajx:=trajx..(t,x); exitif ((ttstop) or (tb) or (xc) or (xd)); endfor; %Use Runge-Kutta4 to create path (t,y(t)) %Choose initial condition t:=tstart; x:=40; y:=20; trajy:=(t,y); forever: sx1:=fxy(t,x,y); sy1:=gxy(t,x,y); sx2:=fxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2)); sy2:=gxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2)); sx3:=fxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2)); sy3:=gxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2)); sx4:=fxy((t+dt),(x+dt*sx3),(y+dt*sy3)); sy4:=gxy((t+dt),(x+dt*sx3),(y+dt*sy3)); x:=x+dt*(sx1+2*sx2+2*sx3+sx4)/6; y:=y+dt*(sy1+2*sy2+2*sy3+sy4)/6; t:=t+dt; trajy:=trajy..(t,y); exitif ((ttstop) or (tb) or (yc) or (yd)); endfor; %Draw the paths x(t) and y(t) and clip them to bounding box draw trajx xscaled ux yscaled uy withcolor red; draw trajy xscaled ux yscaled uy withcolor red dashed evenly; clip currentpicture to (q xscaled ux yscaled uy); %Label graph x(t) and initial condition len:= 0.65*(length trajx); xt:=point len of trajx; label.urt(btex $\scriptstyle x(t)$ etex, (xt xscaled ux yscaled uy)); %Label graph y(t) and initial condition len:= 0.5*(length trajy); yt:=point len of trajy; label.lrt(btex $\scriptstyle y(t)$ etex, (yt xscaled ux yscaled uy)); %Initialize left and right endpoints on time-axis L=(a*ux,0);R=(b*ux,0); %Draw and label t-axis drawarrow L--R; label.rt(btex $\scriptstyle t$ etex,(b*ux,0)); %Initialize bottom and top endpoints on time-axis B=(0,c*uy);T=(0,d*uy); %Draw and label vertical axis drawarrow B--T; label.lft(btex $\scriptstyle 0$ etex, B); label.lft(btex $\scriptstyle 150$ etex, T); endfig; beginfig(2); %Make some variables local save ux, uy;
[NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %
Dear Mojca and ConTeXt folks, I compiled gnuplot 4.5 from source (master) and got everything running. Mojca, thank you so much! Trying the example from the gnuplot page in the Wiki [1] \usemodule[gnuplot] \setupGNUPLOT[terminal=mp,option=color] % general settings for the whole document \startGNUPLOTinclusions # you may use TeX commands to format the titles and axes set title '\bf Trigonometry' set xlabel '$x$' set ylabel '$y$' set format y '\%.1f' \stopGNUPLOTinclusions \startGNUPLOTscript[tan] plot tan(x) t '$\tan(x)$' \stopGNUPLOTscript \startGNUPLOTscript[sin] plot 4*sin(x)+x t '$4\sin(x)+x$', x t '$x$' lt 3 \stopGNUPLOTscript \useGNUPLOTgraphic[tan] \useGNUPLOTgraphic[sin][width=10cm] even with the comments removed as above I get the following though. [1.1] [1.1] [1.1] ! Undefined control sequence. l.66 \0 .0% ? [1.1] ! Undefined control sequence. l.71 \1 0.0% ? [1.1] ! Undefined control sequence. l.76 \2 0.0% ? [1.1] ! Undefined control sequence. l.81 \3 0.0% ? ^C! Interruption. to be read again 0 l.81 \30 .0% ? I hope that is not related to the used ConTeXt version. ConTeXt ver: 2011.11.25 21:29 MKII fmt: 2011.11.25 int: english/english Actually I hope that it is since then upgrading would fix my issue. ;-) Thanks, Paul [1] http://wiki.contextgarden.net/Gnuplot signature.asc Description: This is a digitally signed message part ___ 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] gnuplot: `! Undefined control sequence.` with format specifier %
Am Montag, den 12.12.2011, 01:02 +0100 schrieb Mojca Miklavec: On Mon, Dec 12, 2011 at 00:51, Paul Menzel wrote: I compiled gnuplot 4.5 from source (master) and got everything running. Mojca, thank you so much! Trying the example from the gnuplot page in the Wiki [1] \usemodule[gnuplot] \setupGNUPLOT[terminal=mp,option=color] % general settings for the whole document \startGNUPLOTinclusions # you may use TeX commands to format the titles and axes set title '\bf Trigonometry' set xlabel '$x$' set ylabel '$y$' set format y '\%.1f' This should have been without the backslash. In beginning the text was processed with TeX, not it is taken literally (% doesn't start the comment any more), so maybe it's a leftover from the very early days. I will check the wiki. I see. Thank you. It does not complain anymore. Actually I hope that it is since then upgrading would fix my issue. ;-) ... however I still have some problems. For some reason ConTeXt only generates dvi files from metapost code which has never been the case before. I need to figure out what is going on. I am also getting other errors now and even moving the ConTeXt file to a new directory I keep getting this error from `mpost`. fonts : using map file: original-ams-euler [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] systems : end file gnup-gnuplot-1-mp-temp at line 130 (/srv/filme/context/tex/texmf-context/tex/context/base/cont-err.mkii systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) ) Output written on gnup-gnuplot-1-mp-temp.dvi (16 pages, 1360 bytes). Transcript written on gnup-gnuplot-1-mp-temp.log. TeXExec | runtime: 0.244803 This is MetaPost, version 1.504 (kpathsea version 6.0.0) mpost: Not writing to .log (openout_any = p). ! I can't write on file `.log'. Please type another transcript file name: Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %)
Am Montag, den 12.12.2011, 01:20 +0100 schrieb Paul Menzel: […] I am also getting other errors now and even moving the ConTeXt file to a new directory I keep getting this error from `mpost`. fonts : using map file: original-ams-euler [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] systems : end file gnup-gnuplot-1-mp-temp at line 130 (/srv/filme/context/tex/texmf-context/tex/context/base/cont-err.mkii systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) ) Output written on gnup-gnuplot-1-mp-temp.dvi (16 pages, 1360 bytes). Transcript written on gnup-gnuplot-1-mp-temp.log. TeXExec | runtime: 0.244803 This is MetaPost, version 1.504 (kpathsea version 6.0.0) mpost: Not writing to .log (openout_any = p). ! I can't write on file `.log'. Please type another transcript file name: Once again I was hit by missing `\{start,stop}text` lines. Thanks and sorry for the noise, Paul signature.asc Description: This is a digitally signed message part ___ 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] gnuplot: `! Undefined control sequence.` with format specifier %
Am Montag, den 12.12.2011, 01:13 +0100 schrieb Mojca Miklavec: On Mon, Dec 12, 2011 at 00:51, Paul Menzel wrote: I compiled gnuplot 4.5 from source (master) and got everything running. Mojca, thank you so much! Trying the example from the gnuplot page in the Wiki [1] \usemodule[gnuplot] \setupGNUPLOT[terminal=mp,option=color] But one question. Why do you say that you compile the latest source of gnuplot (which finally has context terminal built in, after 5 or 6 years), and yet you use the mp terminal instead of the default context (or at least tikz)? The mp terminal has been there forever, and hardly ever improved. It also doesn't integrate too well (if you change the typeface, that won't be reflected in you plots). Thank you for the follow up. I just blindly copied the example from the Wiki and did not pay any attention. In my thesis, I of course use the ConTeXt terminal. Thanks, Paul PS: Do you have a BibTeX entry for your gnuplot module? signature.asc Description: This is a digitally signed message part ___ 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] gnuplot module
Am Montag, den 12.12.2011, 01:40 +0100 schrieb Mojca Miklavec: (was: gnuplot: `! Undefined control sequence.` with format specifier %) (sorry, but it was too long to keep it all in title :) On Mon, Dec 12, 2011 at 01:30, Paul Menzel wrote: Thank you for the follow up. I just blindly copied the example from the Wiki and did not pay any attention. In my thesis, I of course use the ConTeXt terminal. What is the thesis going to be about? The topic is how long integrated random walks stay positiv. Not being able to prove that formally for double-integrated(?) random walk, I am doing some simulations. (I just noticed that mptopdf complains about missing bibtex files. :) It seems to work for me. PS: Do you have a BibTeX entry for your gnuplot module? Do you suggest me to publish an article about the terminal in arXiv, to get at least some citations by the time when I need to submit my thesis? :P That is an idea. ;-) But no, I don't have it. I could try to create one though, but I'm not even sure what the webpage should be. Many scientific programs just ask to cite their first article in some scientific journal if one uses the software, but I neither have an article nor homepage apart from that (still outdated) wiki page. There is some additional documentation on https://github.com/mojca/context-gnuplot/tree/master/texmf/doc/context/third/gnuplot (possibly also in minimals, but I'm not sure when I last synced the version), but even that is outdated now since they required from me to strip down terminal options parsing code. I thought asking does not hurt. ;-) So I guess I will just reference ConTeXt and gnuplot then. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: @ELECTRONIC entries not shown in references section
Am Mittwoch, den 25.05.2011, 16:36 +0200 schrieb Hans Hagen: On 25-5-2011 3:56, Paul Menzel wrote: On So, 2011-05-22 at 19:12 +0200, Hans Hagen wrote: On 22-5-2011 6:57, Paul Menzel wrote: The question still remains if `@ELECTRONIC` are not allowed or if this is an error. it's more that @ELECTRONIC is not defined Ok, neither does it appear in the Wikipedia article [1]. Who is responsible for updating the example BibTeX file [2] in the Minimal distribution then? Thomas is. As far as I can see, the file is still the same in the ConTeXt beta. Christian updated the Wiki page though [1]. Could you update the file by either applying the attached patch or replacing it with the attached file? Thanks, Paul [1] http://wiki.contextgarden.net/sample_bib % Also in the Wiki: http://wiki.contextgarden.net/sample_bib @STRING{hh = {Hans Hagen}} % Not defined and therefore commented out by removing the »@« % http://www.ntg.nl/pipermail/ntg-context/2011/059402.html ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } From 5abc744ec41407a177a2eaf462ed25d2118db5ae Mon Sep 17 00:00:00 2001 From: Paul Menzel paulepan...@users.sourceforge.net Date: Sat, 10 Dec 2011 15:51:35 +0100 Subject: [PATCH] context/bib/sample.bib: Comment out `@ELECTRONIC` and add comments [1] [1] http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node8.html --- tex/context/bib/sample.bib |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tex/context/bib/sample.bib b/tex/context/bib/sample.bib index 3f8df62..a3ae35a 100644 --- a/tex/context/bib/sample.bib +++ b/tex/context/bib/sample.bib @@ -1,6 +1,10 @@ +% Also in the Wiki: http://wiki.contextgarden.net/sample_bib + @STRING{hh = {Hans Hagen}} -@ELECTRONIC{hh2010, +% Not defined and therefore commented out by removing the »@« +% http://www.ntg.nl/pipermail/ntg-context/2011/059402.html +ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, -- 1.7.7.3 \setuppublicationlist[samplesize={Hag10b},totalnumber=3] \startpublication[k=Eijkhout1991,t=book, a={{Eijkhout}},y=1991, n=3,s=Eij91] \author[]{Victor}[V.]{}{Eijkhout} \pubyear{1991} \title{\TeX\ by Topic. A \TeX nician's Reference} \city{London} \pubname{Addison-Wesley} \keywords{general} \stoppublication \startpublication[k=hh2010a,t=article, a={{Hagen}},y=2010a, n=1,s=Hag10a] \artauthor[]{Hans}[H.]{}{Hagen} \pubyear{2010\maybeyear{a}} \arttitle{The font name mess} \journal{MAPS} \volume{40} \pages{2-8} \keywords{context} \stoppublication \startpublication[k=hh2010b,t=article, a={{Hagen}},y=2010b, n=2,s=Hag10b] \artauthor[]{Hans}[H.]{}{Hagen} \pubyear{2010\maybeyear{b}} \arttitle{Grouping in hybrid environments} \journal{MAPS} \volume{40} \pages{67-71} \keywords{context} \stoppublication bibtest.pdf Description: Adobe PDF document \setupbibtex[database=sample, sort=author] \setuppublications[criterium=all, numbering=yes] % Show reference numbers in the generated list. \starttext As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext signature.asc Description: This is a digitally signed message part ___ 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] bibmod-doc.pdf: Typo: s/isnb/isbn/
Dear ConTeXt folks, there is a typo in the Bibliography module documentation [1]. s/isnb/isbn/ Thanks, Paul [1] http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf signature.asc Description: This is a digitally signed message part ___ 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] Bibliography: Setting `alternative=` without `criterium=all` displays nothing (ConTeXt: 2011.11.25)
Dear ConTeXt folks, using ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english and the following minimal example (attached too) \setupbibtex[database=sample, sort=author] \setuppublications[alternative=ada] % Show reference numbers in the generated list. \starttext As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext the references are not displayed. Not specifying `alternative` or adding `criterium=all` (`cite` does not work either) displays the references again. Could someone please confirm this with a recent ConTeXt version? Thanks, Paul bibtest.pdf Description: Adobe PDF document \setupbibtex[database=sample, sort=author] \setuppublications[alternative=apa] % Show reference numbers in the generated list. \starttext As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext % Also in the Wiki: http://wiki.contextgarden.net/sample_bib @STRING{hh = {Hans Hagen}} % Not defined and therefore commented out by removing the »@« % http://www.ntg.nl/pipermail/ntg-context/2011/059402.html ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{hh2010c, title = {MetaFun Book}, publisher = {H$_2$O Books}, year = {2010}, author = hh, isbn = {978-94-90688-02-8}, keywords = {metafun}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } signature.asc Description: This is a digitally signed message part ___ 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] Bibliography: Any styles including URL?
Dear ConTeXt folks, type setting my thesis with ConTeXt I still use BibTeX to manage my references. Since a lot of references are available online I want to include the URL if they are available. I read the ConTeXt publication module documentation [1] and as far as I can see, there are some predefined layouts included in ConTeXt but none of them seem to include the URL when passed. The Bibliography documentation [1] also mentions that setting this up is tedious. So I am hoping I can profit from someone else’s work and use it. Could someone share such a style please for a mathematical thesis in German? That would be much appreciated. Thanks, Paul [1] http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf @MISC{Eddelbuettel2011, author = {Dirk Eddelbuettel}, title = {{W}icked {W}ebapps with {R}, err, {W}t}, month = {11}, year = {2011}, owner = {paul}, timestamp = {2011.12.08}, url = {http://dirk.eddelbuettel.com/blog/2011/11/30/} } @MISC{gomp2011, author = {GCC-Gruppe}, title = {{GOMP} – {A}n {OpenMP} implementation for {GCC}}, year = {2011}, note = {[Online; Stand 19. November 2011]}, comment = {Letzte Änderung: 17. 9. 2011}, owner = {paul}, timestamp = {2011.11.19}, url = {http://gcc.gnu.org/projects/gomp/} } @MANUAL{JabRef, title = {{J}ab{R}ef}, author = {{JabRef Development Team}}, organization = {JabRef Development Team}, year = {2010}, url = {http://jabref.sourceforge.net} } @MISC{wiki:datentyp, author = {Wikipedia}, title = {{D}atentyp --- {W}ikipedia{,} {D}ie freie {E}nzyklopädie}, year = {2011}, note = {[Online; Stand 16. November 2011]}, url = {http://de.wikipedia.org/w/index.php?title=Datentypoldid=94660562} } references-with-url.pdf Description: Adobe PDF document \setupbibtex[database=database, sort=author] \setuppublications[criterium=all] \starttext • Blog post about R and Webapps \cite{Eddelbuettel2011} • OpenMP implementation for GCC \cite[gomp2011] • Reference manager \cite[JabRef] • Citation as suggested by Wikipedia \cite[wiki:datentyp] \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Bibliography: How to get `\completepublications` to use different title?
Dear ConTeXt folks, reading the Wiki page [1] and the documentation [2] I could not find a way to change the default used `\chapter` [3] to `\subject` which I need, because the references have to be set without a number and my “highest” level is `\section` otherwise. Is there something similar to `\setupheadtext[en][pubs=References]` for other settings? I do not know how the publication-enviroment(?) is called. \setupbibtex[database=sample, sort=author] \setuppublications[alternative=apa, criterium=all] % Show reference numbers in the generated list. \starttext \section{Example} As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext Thanks, Paul [1] http://wiki.contextgarden.net/Bibliography [2] http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf [3] http://wiki.contextgarden.net/Titles completepub.pdf Description: Adobe PDF document \setupbibtex[database=sample, sort=author] \setuppublications[alternative=apa, criterium=all] % Show reference numbers in the generated list. \starttext \section{Example} As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. \CONTEXT\ \contextmark\ \contextversion \completepublications \stoptext % Also in the Wiki: http://wiki.contextgarden.net/sample_bib @STRING{hh = {Hans Hagen}} % Not defined and therefore commented out by removing the »@« % http://www.ntg.nl/pipermail/ntg-context/2011/059402.html ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{hh2010c, title = {MetaFun Book}, publisher = {H$_2$O Books}, year = {2010}, author = hh, isbn = {978-94-90688-02-8}, keywords = {metafun}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } signature.asc Description: This is a digitally signed message part ___ 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] Keep struggling with old style numerals!
Dear Gerard, Am Donnerstag, den 08.12.2011, 10:56 +0100 schrieb Verhaag, G.C.H.M.: A few days ago I installed the latest ConTeXt version but now my oldstyle settings don't seem to work any more! what version did you use before? I use the following settings in my preamble: \usetypescript[schola] \setupbodyfont[schola,10pt] \definefontfeature [oldstyle] [default] [onum=yes] \addff{oldstyle} Perhaps something changed that I missed! Thanks in advance! Do you get an error message or are the settings just not applied? An output file from a working ConTeXt version and one from the current one would be nice too. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] MetaFun: Is the maximum of `vloggrid` limited to 10?
Dear ConTeXt folks, the `vloggrid` command is described in section 9 of the MetaFun manual [1]. vloggrid (Min, Max, Step, Length, Height) Can somebody confirm that `Max` can be at most 10? \starttext \type{draw vloggrid(0, 11, 10, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 11, 10, 15cm, 5cm); \stopMPcode \type{draw vloggrid(0, 11, 1, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 11, 1, 15cm, 5cm); \stopMPcode \type{draw vloggrid(0, 11, 5, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 11, 5, 15cm, 5cm); \stopMPcode \type{draw vloggrid(0, 11, 5, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 10, .5, 15cm, 5cm); \stopMPcode \CONTEXT\ \contextmark\ \contextversion \stoptext To create grid like the log-log grid in [2] I guess I need to compose the bigger grid from these “basic” grids then? Thanks, Paul [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf [2] https://de.wikipedia.org/wiki/Doppeltlogarithmisches_Papier#Doppeltlogarithmisches_Papier fun.pdf Description: Adobe PDF document \starttext \type{draw vloggrid(0, 11, 10, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 11, 10, 15cm, 5cm); \stopMPcode \type{draw vloggrid(0, 11, 1, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 11, 1, 15cm, 5cm); \stopMPcode \type{draw vloggrid(0, 11, 5, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 11, 5, 15cm, 5cm); \stopMPcode \type{draw vloggrid(0, 11, 5, 15cm, 5cm);} \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white); draw vloggrid(0, 10, .5, 15cm, 5cm); \stopMPcode \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] MetaFun: Is the maximum of `vloggrid` limited to 10?
Am Donnerstag, den 08.12.2011, 16:40 +0100 schrieb Hans Hagen: On 8-12-2011 14:54, Paul Menzel wrote: To create grid like the log-log grid in [2] I guess I need to compose the bigger grid from these “basic” grids then? at some point it runs off your page i guess But the width parameter should prevent that, should not it? In this case 10 cm? […] Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] Math align in mkiv
Dear Otared, Am Mittwoch, den 07.12.2011, 05:11 +0100 schrieb Otared Kavian: Thank you having tested the file I sent. did the example work for you with MKIV in the past? As I suspected, your testing confirms that the change or the bug has been introduced in a recent version of ConTeXt mkiv, some time between October and late November. The version I am running is ConTeXt ver: 2011.11.29 23:11 MKIV fmt: 2011.12.2 int: english/english I can also reproduce that behavior using ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english I think at some time in November Hans did some changes in math alignment after someone reported a bug, and Aditya said he wouldn't have time to (or could not) fix it. There were two issues and the corresponding messages in the archive [1][2]. So if these are related it should work for you using the version from November 24th. Thanks, Paul [1] http://www.ntg.nl/pipermail/ntg-context/2011/063428.html [2] http://www.ntg.nl/pipermail/ntg-context/2011/063451.html align-mkiv.pdf Description: Adobe PDF document %%% align-mkiv.tex % defining an alignment structure \definemathmatrix[alignedcases] [align={right,left,left}, distance=3pt, left={\left\{\;}, right={\right.}, style=\displaystyle] \starttext \startformula \startalignedcases \NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega \NR \NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR \NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR \NC {\partial \psi \over \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega. \stopalignedcases \stopformula \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] `\{start, stop}MPpage`: MetaPost figure does not fit canvas(?) in resulting PDF file
Dear ConTeXt folks, using the following example \starttext \startMPpage draw (0,0)--(10,10)--(15,5)--(20,10); draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) withcolor blue; \stopMPpage \stoptext it looks like the bottom is not included in the resulting PDF file and at the top there is too much room. (So it looks like the figure is moved too far to the bottom.) Using the examples from the Wiki [1] with circles works though. I am using ConTeXt Standalone. ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english Thanks, Paul [1] http://wiki.contextgarden.net/Mpgraphic test.pdf Description: Adobe PDF document \starttext \startMPpage draw (0,0)--(10,10)--(15,5)--(20,10); draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) withcolor blue; \stopMPpage \startMPpage draw fullcircle scaled 2cm; dotlabel.bot(textext((0,0)),origin); \stopMPpage \startMPpage draw fullcircle scaled 2cm; drawarrow (0,0)--(1cm,0); label.bot(textext($r$),(5mm,0)); \stopMPpage \stoptext signature.asc Description: This is a digitally signed message part ___ 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] math: root sign an square brackets set too closely
Dear ConTeXt folks, using the root sign √ `\sqrt` and the square brackets [] the distance does not seem to be optimal. \starttext \type{$\left[ \sqrt{x} \right]$}: $\left[ \sqrt{x} \right]$ Without \type{\left} and \type{\right}: $[\sqrt{x}]$ \type{$\left( \sqrt{x} \right)$}: $\left( \sqrt{x} \right)$ With \type{\,}: \type{$\left[ \sqrt{x}\, \right]$}: $\left[ \sqrt{x}\, \right]$ \placeformula \startformula \left[ \sqrt{x} \right] \stopformula \CONTEXT\ \contextmark\ \contextversion \stoptext I am using the following version. ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english Is that a TeX limitation or should that be type set “correctly” automatically? Thanks, Paul root-and-brackets.pdf Description: Adobe PDF document \starttext \type{$\left[ \sqrt{x} \right]$}: $\left[ \sqrt{x} \right]$ Without \type{\left} and \type{\right}: $[\sqrt{x}]$ \type{$\left( \sqrt{x} \right)$}: $\left( \sqrt{x} \right)$ With \type{\,}: \type{$\left[ \sqrt{x}\, \right]$}: $\left[ \sqrt{x}\, \right]$ \placeformula \startformula \left[ \sqrt{x} \right] \stopformula \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] naming of labels: Is »()« allowed?
Dear ConTeXt folks, in ConTeXt I like how I can choose arbitrary names for label and reference them. I think some time ago it was possible to also use »()«. This does not work anymore with ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english and the following message is in the log file. references unknown reference [][(N)] \definereferenceformat[eqref][left=(,right=)] \starttext \placeformula[(N)] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k 0 \right\} = p_n^{(1)} \stopformula Is it working? \eqref[(N)] \CONTEXT\ \contextmark\ \contextversion \stoptext Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] naming of labels: Is »()« allowed?
Dear ConTeXt folks, Am Donnerstag, den 08.12.2011, 02:18 +0100 schrieb Paul Menzel: in ConTeXt I like how I can choose arbitrary names for label and reference them. I think some time ago it was possible to also use »()«. This does not work anymore with ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english and the following message is in the log file. references unknown reference [][(N)] \definereferenceformat[eqref][left=(,right=)] \starttext \placeformula[(N)] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k 0 \right\} = p_n^{(1)} \stopformula Is it working? \eqref[(N)] \CONTEXT\ \contextmark\ \contextversion \stoptext please find the minimal example and the output attached. Thanks, Paul ref.pdf Description: Adobe PDF document \definereferenceformat[eqref][left=(,right=)] \starttext \placeformula[(N)] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k 0 \right\} = p_n^{(1)} \stopformula Is it working? \eqref[(N)] \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] [solved] Parse error when using `\define`
Am Samstag, den 03.12.2011, 20:09 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 20:06 schrieb Paul Menzel: could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1 \rvert} \define\Ew{{\mathbf E}} \define[1]\ew{\Ew \left[ #1 \right]} \starttext a \starttext End your document with \stoptext. That is really embarrassing. I now also figured out my other error I originally looked into. Thank you and sorry for wasting everyone’s time, Paul signature.asc Description: This is a digitally signed message part ___ 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] [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
Am Sonntag, den 04.12.2011, 09:52 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 19:56 schrieb Paul Menzel: using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext the parentheses of the binomial in the text or too short. I guess this is because the parentheses are not scaled when inlined and that this is also a TeX limitation and therefore expected? Instead if \choose you can use \binom which is the recommended way in context. The \dbinom command sets the content in display style while \tbinom use textstyle. \starttext Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$. Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$. Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$. \startformula \binom{n}{\frac{n}{2}} \stopformula \stoptext As always that did the trick. Thank you a lot Wolfgang and Dalyoung! Thanks, Paul binom.pdf Description: Adobe PDF document \starttext Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$. Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$. Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$. \startformula \binom{n}{\frac{n}{2}} \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] OT: Replying to messages from archive (was: Lua script not registered)
Dear John, Am Freitag, den 02.12.2011, 22:56 -0500 schrieb John Kitzmiller: Replying to the list in this manner--having to retype the subject--is unusual to me, and I hope it does not create problems for the list. Please help me on how to reply within the mail archive to make more efficient. Many thanks to those who have replied on the topic! are you subscribed to the list? If yes, have you set up to get the digest mode? In either way, when participating in a discussion it is a good thing to subscribe [1] and then configure the list to send you all messages. Then you can reply to the list like you are used to and the threading is kept. To get the reference you can also download the archive as a mbox file [3] and get the reference there or configure the correct message headers (In-Reply-To, References). Thanks, Paul [1] http://www.ntg.nl/mailman/listinfo/ntg-context [2] http://en.opensuse.org/openSUSE:Mailing_list_netiquette [3] http://www.ntg.nl/pipermail/ntg-context/ (last column) signature.asc Description: This is a digitally signed message part ___ 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] Title page for diploma thesis
Dear ConTeXt folks, I am trying to format the title page for a diploma thesis. Looking at the Wiki most of the title or cover pages just have the title centered and maybe a subtitle right below [1]. \starttext \definemakeup[titlepage][align=middle] \starttitlepagemakeup {\definedfont[Serif at 20pt]University} \blank[big] {\definedfont[Serif at 20pt]\sc Institute} \vfill {\definedfont[Serif at 20pt]Diploma thesis} \blank[big] {\definedfont[Serif at 30pt] \setstrut \strut Interesting topic} \vfill by John Doe \stoptitlepagemakeup \stoptext 1. Is using `\blank` the recommended way to format the page? Or is using boxes and placing them manually “better”? 2. Looking at the output it is not centered exactly and a little bit to the left. Why is this the default? Does anyone know? Looking at the manual [2] in chapter page design (p. 29, screen version) this seems to be the backspace value. Is there an easy way to center it according to the whole paper width? Additionally I would have guessed it to be more on the right when glueing or trussing up(?) (German binden) the pages. Thanks and I am sorry for the sleight off-topic second question, Paul [1] http://wiki.contextgarden.net/Simple_Cover_Page [2] http://www.pragma-ade.com/general/manuals/cont-eni.pdf test.pdf Description: Adobe PDF document \starttext \definemakeup[titlepage][align=middle] \starttitlepagemakeup {\definedfont[Serif at 20pt]University} \blank[big] {\definedfont[Serif at 20pt]\sc Institute} \vfill {\definedfont[Serif at 20pt]Diploma thesis} \blank[big] {\definedfont[Serif at 30pt] \setstrut \strut Interesting topic} \vfill by John Doe \stoptitlepagemakeup \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Define `\luatexversion` similar to `\contextversion`
Dear ConTeXt folks, thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found `\luaversion` to display the version of Lua. But I could not find `\luatexversion`. Is there something similar? Can this command be defined? Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] [solved – `\texengineversion`] Define `\luatexversion` similar to `\contextversion`
Am Samstag, den 03.12.2011, 19:28 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 19:23 schrieb Paul Menzel: thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found `\luaversion` to display the version of Lua. But I could not find `\luatexversion`. Is there something similar? Can this command be defined? \starttext \starttabulate \NC Engine \EQ \texenginename\NC\NR \NC Version \EQ \texengineversion \NC\NR \stoptabulate \stoptext As always thank you very much for the fast response with the solution. Thanks, Paul test.pdf Description: Adobe PDF document \starttext \starttabulate \NC Engine \EQ \texenginename\NC\NR \NC Version \EQ \texengineversion \NC\NR \stoptabulate \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
Dear ConTeXt folks, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext the parentheses of the binomial in the text or too short. I guess this is because the parentheses are not scaled when inlined and that this is also a TeX limitation and therefore expected? ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 Thanks, Paul choose.pdf Description: Adobe PDF document \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Parse error when using `\define`
Dear ConTeXt folks, could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1 \rvert} \define\Ew{{\mathbf E}} \define[1]\ew{\Ew \left[ #1 \right]} \starttext a \starttext I am using ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 and I have to insert `/end` manually. $ context 20111203--parse-error.tex mtx-context | run 1: luatex --fmt=/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en --lua=/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui --backend=pdf ./20111203--parse-error.tex \stoptext This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (20111203--parse-error.tex ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english system cont-new.mkiv loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system 20111203--parse-error.top loaded (20111203--parse-error.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ) *\end system don't use \end to finish a document backend xmp using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' […] Afterward changing anything in the file like removing the defines the error will still appear. Thanks, Paul (20111203--parse-error.tex ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english system cont-new.mkiv loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system 20111203--parse-error.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options } used options document.files={ used options 20111203--parse-error.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=20111203--parse-error.tex] used options \setupsystem[\c!n=2,\c!m=3] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (20111203--parse-error.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ) *\end system don't use \end to finish a document backend xmp using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 /opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf system files start used files used files 1: filename=mult-mps.lua | filetype=tex | format=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/mult-mps.lua | usedmethod=database used files 2: filename=20111203--parse-error.tex | foundname=20111203--parse-error.tex | usedmethod=direct used files 3:
Re: [NTG-context] context terminal now in gnuplot's CVS
Dear Mojca, Am Sonntag, den 06.11.2011, 15:19 +0100 schrieb Mojca Miklavec: After 5 years (actually almost 6 - the first t-gnuplot.tex code has been sent to me by Peter Münster on 2nd January 2006) gnuplot developers finally included context terminal into their CVS repository today. (temporary link, but probably slightly more clear than linking to CVS repository) https://github.com/gnuplot/gnuplot-new/commit/62737451bb138f0e679b5a57e0042b42e06f0a5c these were great news indeed! Thank you for your effort. The release of gnuplot 4.4.4 was initially planned for around October, which means that it should probably be out sometime soon. Unfortunately it looks like the ConTeXt terminal was not included in version 4.4.4 released on November 14th [1] and is just planned for version 4.5 [2]. Can you confirm this? Documentation: https://github.com/mojca/context-gnuplot/tree/master/texmf/doc/context/third/gnuplot […] Thanks, Paul [1] http://gnuplot.info/announce.4.4.4 [2] http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/NEWS?view=markup signature.asc Description: This is a digitally signed message part ___ 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] Regression: A^\prime causes `Missing { inserted ...`
Dear ConTeXt folks, having upgraded ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english. to ConTeXt ver: 2011.11.23 18:58 MKIV fmt: 2011.11.24 int: english/english With \starttext \placeformula \startformula A^\prime \stopformula \stoptext I get the following error. fontsfallback modern rm 12pt is loaded ! Missing { inserted. system tex error on line 4 in file exponent-regression.tex: Missing { inserted ... 1 \starttext 2 \placeformula 3 \startformula 4 A^\prime 5 \stopformula 6 \stoptext 7 to be read again ^ \prime ...char \textfont \zerocount FE325\relax ^ \bgroup \expandafter \dodo... l.4 A^\prime ? As a workaround `A^{\prime}` can be used. Thanks, Paul \starttext \placeformula \startformula A^\prime \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] BibTeX files for ConTeXt books?
Dear ConTeXt folks, there are some ConTeXt related books for sale [1]. Are there BibTeX files for those available? Thank, Paul [1] http://www.h2o-books.com/catalog/5 signature.asc Description: This is a digitally signed message part ___ 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] url: subscripts not displayed
Dear ConTeXt folks, using ConTeXt ver: 2011.11.23 18:58 MKIV fmt: 2011.11.24 int: english/english in the following “minimal” example the subscript in H₂O Books is not displayed in the *URL*. \setupinteraction[state=start] % Define \Site[id][url]{description} to put in a clickable link % with footnoted URL \def\Site[#1][#2]#3{\useURL[#1][#2][][#3]\from[#1]\footnote[#1]{\tt\hyphenatedurl{#2}}} \setupbibtex[database=bib] \starttext Everybody should read the \MetaFun\ manual \cite{hh2010}. Buy it at \Site[h2obooks][http://www.h2o-books.com/]{H₂O Books}. I like \Site[context][http://www.contextgarden.net]{\ConTeXt}. This sentence has a footnote.\footnote{This is a footnote.} \completepublications[criterium=all] \stoptext Thanks, Paul @BOOK{hh2010, title = {MetaFun manual}, year = 2010, month = 10, isbn = {978-94-90688-02-8}, author = {Hans Hagen}, publisher = {H₂O Books}, pages = 375, } coloring-references.pdf Description: Adobe PDF document \setupinteraction[state=start] % Define \Site[id][url]{description} to put in a clickable link % with footnoted URL \def\Site[#1][#2]#3{\useURL[#1][#2][][#3]\from[#1]\footnote[#1]{\tt\hyphenatedurl{#2}}} \setupbibtex[database=bib] \starttext Everybody should read the \MetaFun\ manual \cite{hh2010}. Buy it at \Site[h2obooks][http://www.h2o-books.com/]{H₂O Books}. I like \Site[context][http://www.contextgarden.net]{\ConTeXt}. This sentence has a footnote.\footnote{This is a footnote.} \completepublications[criterium=all] \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Fonts with subscripts (was: url: subscripts not displayed)
Am Donnerstag, den 24.11.2011, 13:31 +0100 schrieb Wolfgang Schuster: Am 24.11.2011 um 13:07 schrieb Paul Menzel: using ConTeXt ver: 2011.11.23 18:58 MKIV fmt: 2011.11.24 int: english/english in the following “minimal” example the subscript in H₂O Books is not displayed in the *URL*. It’s not in the font: \starttext H₂O Books \stoptext Thank you again. And I am sorry that I always forget about that. It is also not in XITS. Neither \setupbodyfont[xits] or \setupbodyfont[euler] or \usetypescript[palatino] \setupbodyfont[palatino,10pt,rm] worked. Is there a font having subscripts included? Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] [solved] Fonts with subscripts
Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster: Am 24.11.2011 um 13:43 schrieb Paul Menzel: […] Is there a font having subscripts included? \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par} \starttext \ShowSubscript[dejavu] \ShowSubscript[antykwa-torunska] \ShowSubscript[antykwa-poltawskiego] \ShowSubscript[iwona] \ShowSubscript[cambria] \ShowSubscript[libertine] \stoptext Nice! So in this set only cambria and libertine cannot display subscripts. (Please find the output attached.) ConTeXt ver: 2011.11.23 18:58 MKIV fmt: 2011.11.24 int: english/english Thanks, Paul \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par} \starttext \ShowSubscript[dejavu] \ShowSubscript[antykwa-torunska] \ShowSubscript[antykwa-poltawskiego] \ShowSubscript[iwona] \ShowSubscript[cambria] \ShowSubscript[libertine] \stoptext showsubscript.pdf Description: Adobe PDF document signature.asc Description: This is a digitally signed message part ___ 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] [solved] Fonts with subscripts
Am Donnerstag, den 24.11.2011, 14:56 +0100 schrieb Wolfgang Schuster: Am 24.11.2011 um 14:48 schrieb Paul Menzel: Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster: Am 24.11.2011 um 13:43 schrieb Paul Menzel: […] Is there a font having subscripts included? \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par} \starttext \ShowSubscript[dejavu] \ShowSubscript[antykwa-torunska] \ShowSubscript[antykwa-poltawskiego] \ShowSubscript[iwona] \ShowSubscript[cambria] \ShowSubscript[libertine] \stoptext Nice! So in this set only cambria and libertine cannot display subscripts. (Please find the output attached.) No, I get subscripts for all listed fonts but it’s possible we use different versions of the them. Even more trivial. I do not have Cambria installed and Libertine is also not found although I have the Debian package (fonts-linuxlibertine, 5.1.3-1) installed. I guess I need to update the cache somehow. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] [solved] Regression: A^\prime causes `Missing { inserted ...`
Am Donnerstag, den 24.11.2011, 15:59 +0100 schrieb Hans Hagen: On 24-11-2011 11:46, Paul Menzel wrote: having upgraded ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english. to ConTeXt ver: 2011.11.23 18:58 MKIV fmt: 2011.11.24 int: english/english With \starttext \placeformula \startformula A^\prime \stopformula \stoptext I get the following error. fonts fallback modern rm 12pt is loaded ! Missing { inserted. system tex error on line 4 in file exponent-regression..tex: Missing { inserted ... 1 \starttext 2 \placeformula 3 \startformula 4A^\prime 5 \stopformula 6 \stoptext 7 to be read again ^ \prime ...char \textfont \zerocount FE325\relax ^ \bgroup \expandafter \dodo... l.4A^\prime ? As a workaround `A^{\prime}` can be used. Forget about superscripting prime .. that's a traditional tex thing as in cm/lm fonts the prime is so big that it has to be (super)scripted to look okay. The prime in unicode is a normal one so that's what we now support, also for the lm fonts. Just compare: \startformula A\prime \hbox spread 1em{\hss or\hss} A^{\prime} \hbox spread 1em{\hss or\hss} A' \stopformula Keep in mind that most users expect ' to be a prime. Interesting. Thank you for the clarification. I will use A' from now on I guess. Thanks, Paul prime.pdf Description: Adobe PDF document \starttext \startformula A\prime \hbox spread 1em{\hss or\hss} A^{\prime} \hbox spread 1em{\hss or\hss} A' \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] [Regression] math: alignment parameters confused
Dear ConTeXt folks, Am Sonntag, den 20.11.2011, 20:09 +0100 schrieb Paul Menzel: there must be a regression between ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.24 int: english/english and ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english. Using the minimal example \starttext \placeformula \startformula \startmathalignment[n=4, align={left, right, middle, left}] \NC A \NC B \NC C \NC D \NR \NC AA \NC BB \NC CC \NC DD \NR \stopmathalignment \stopformula \stoptext the last row is aligned like middle instead of left. I can also reproduce this using the following version. ConTeXt ver: 2011.11.23 18:58 MKIV fmt: 2011.11.24 int: english/english Thanks, Paul \starttext \placeformula \startformula \startmathalignment[n=4, align={left, right, middle, left}] \NC A \NC B \NC C \NC D \NR \NC AA \NC BB \NC CC \NC DD \NR \stopmathalignment \stopformula \stoptext 2011.05.18--align.pdf Description: Adobe PDF document 2011.11.24--align.pdf Description: Adobe PDF document signature.asc Description: This is a digitally signed message part ___ 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] Use ConTeXt standalone (was: current version?)
Dear Jon, Am Dienstag, den 22.11.2011, 15:37 -0800 schrieb Jon Crump: Can someone help? By some incantation that I cannot now seem to reproduce, I was able to obtain and install: mtx-context | current version: 2011.11.14 16:17 In an attempt to update this version, I ran first-setup.sh found at http://minimals.contextgarden.net/setup/first-setup.sh and what got installed was: mtx-context | current version: 2011.05.18 18:04 This looks like the ConTeXt version in Debian. Can anyone tell me how to get back to 2011.11.14 or to the latest version? At the end of `first-setup.sh` a command is shown you need to executed to update your environment variables so that the manually installed version is found. . /your/installed/context/tex/setuptex Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] equation refs broken?
Dear Hans, Am Sonntag, den 20.11.2011, 12:29 +0100 schrieb Hans van der Meer: Can someone confirm this? It seems that the equation reference mechanism is broken some time in the recent past. I have a small example done in (1) ConTeXt ver: 2011.07.13 20:14 MKIV (2) ConTeXt ver: 2011.11.17 23:31 MKIV These are respectively the first and last pdf's below. If true, it is very serious for me, because the I cannot prepare the upcoming texts for my students! this is a known problem. Please take a look at [1] Re: [NTG-context] No numbers with `\ref` and floats like `\placetable` where Wolfgang proposed a quick fix if you are not using sub formulas and Re: [NTG-context] Edid of reference in Wiki where Hans responded he wanted to take a look this weekend. Furthermore: \pagereference now introduces spurious white. Please open a now thread for this. For the bad vertical spacing on the left I have submitted a tentative bugfix to Hans Hagen. Thank you for cooking up a patch! Thanks, Paul [1] http://www.ntg.nl/pipermail/ntg-context/2011/062930.html signature.asc Description: This is a digitally signed message part ___ 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] \right)² not recognized as \right)^2
Dear ConTeXt folks, is it expected that \right)² is not recognized as \right)^2? \starttext Using ^2: \placeformula \startformula \left( a + b \right)^2 = a² + 2ab + b² \stopformula \placeformula \startformula \left( a + \frac72 \right)^2 \stopformula Using ². The first example does not display the problem that well because the parenthesis are too small: \placeformula \startformula \left( a + b \right)² = a² + 2ab + b² \stopformula \placeformula \startformula \left( n + \frac72 \right)² \stopformula \stoptext Please find the example also attached. Thanks, Paul square.pdf Description: Adobe PDF document \starttext Using ^2: \placeformula \startformula \left( a + b \right)^2 = a² + 2ab + b² \stopformula \placeformula \startformula \left( a + \frac72 \right)^2 \stopformula Using ². The first example does not display the problem that well because the parenthesis are too small: \placeformula \startformula \left( a + b \right)² = a² + 2ab + b² \stopformula \placeformula \startformula \left( n + \frac72 \right)² \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] [Regression] math: alignment parameters confused
Dear ConTeXt folks, there must be a regression between ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.24 int: english/english and ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english. Using the minimal example \starttext \placeformula \startformula \startmathalignment[n=4, align={left, right, middle, left}] \NC A \NC B \NC C \NC D \NR \NC AA \NC BB \NC CC \NC DD \NR \stopmathalignment \stopformula \stoptext the last row is aligned like middle instead of left. Thanks, Paul 2011.05.18--align.pdf Description: Adobe PDF document 2011.10.14--align.pdf Description: Adobe PDF document \starttext \placeformula \startformula \startmathalignment[n=4, align={left, right, middle, left}] \NC A \NC B \NC C \NC D \NR \NC AA \NC BB \NC CC \NC DD \NR \stopmathalignment \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] \right)² not recognized as \right)^2
Am Sonntag, den 20.11.2011, 19:58 +0100 schrieb Wolfgang Schuster: Am 20.11.2011 um 19:52 schrieb Paul Menzel: is it expected that \right)² is not recognized as \right)^2? Yes it is, to enable this feature you need the “mathcrap” module. Thank you for the quick answer, but ² is still not put at the correct height when used like `\right)²`. Thanks, Paul square.pdf Description: Adobe PDF document \usemodule[mathcrap] \starttext Using ^2: \placeformula \startformula \left( a + b \right)^2 = a² + 2ab + b² \stopformula \placeformula \startformula \left( a + \frac72 \right)^2 \stopformula Using ². The first example does not display the problem that well because the parenthesis are too small: \placeformula \startformula \left( a + b \right)² = a² + 2ab + b² \stopformula \placeformula \startformula \left( n + \frac72 \right)² \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Edid of reference in Wiki (was: \in: incorrect space in example in reference)
Am Donnerstag, den 17.11.2011, 16:32 +0100 schrieb Christian: Same here. ConTeXt ver: 2011.11.09 20:58 MKIV. Referencing formulas with a number is not possible, due to the number not being typeset. Must be some sort of bug. Log says: references unknown reference [][eq:gamma] There is another thread were Wolfgang wrote he is aware of this but it takes time fixing. He even offered a work around [1]. Re: [NTG-context] No numbers with `\ref` and floats like `\placetable` Thanks, Paul PS: Please you should all follow the netiquette [2]. Mikael, especially regarding subject lines. [1] http://www.ntg.nl/pipermail/ntg-context/2011/062930.html [2] http://en.opensuse.org/openSUSE:Mailing_list_netiquette signature.asc Description: This is a digitally signed message part ___ 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] \in: incorrect space in example in reference
Dear ConTeXt folks, in the example for `\in` in the reference [1] there is a space after the »(«. \placeformula[eq:pythagoras] \startformula a^2+b^2=c^2 \stopformula This is explained in \in{Equation (}{)}[eq:pythagoras]. Normally this space is useful since the suffix is something like Table or Figure. Can `\in` be used with brackets or does another command have to be defined/used for that? Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/in in.pdf Description: Adobe PDF document \starttext \placeformula[eq:pythagoras] \startformula a^2+b^2=c^2 \stopformula This is explained in \in{Equation (}{)}[eq:pythagoras]. \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Edid of reference in Wiki (was: \in: incorrect space in example in reference)
Dear ConTeXt folks, Am Mittwoch, den 16.11.2011, 11:20 +0100 schrieb Wolfgang Schuster: Am 16.11.2011 um 10:44 schrieb Paul Menzel: in the example for `\in` in the reference [1] there is a space after the »(«. \placeformula[eq:pythagoras] \startformula a^2+b^2=c^2 \stopformula This is explained in \in{Equation (}{)}[eq:pythagoras]. Normally this space is useful since the suffix is something like Table or Figure. Can `\in` be used with brackets or does another command have to be defined/used for that? Use \definereferenceformat to create your own command. to correct this in the reference do I just edit the Wiki article or is the reference automatically created? Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] url: Add macros to the ConTeXt core
Dear ConTeXt folks, looking into typesetting URLs I find typesetting URLs quite cumbersome. Maybe I have not used that feature that often so I am not seeing the advantage to first define a URL somewhere and give it a name \useURL[aurl] [http://xkcd.com/149/] [] [I prefer hot dogs.] and then later use it. \url[aurl] The proposed macros(?) in the section »Tipps and Tricks« [2] \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} seem quite useful. Could they be added to the ConTeXt core(?)? Thanks, Paul [1] http://wiki.contextgarden.net/url [2] http://wiki.contextgarden.net/url#Tipps_and_Tricks signature.asc Description: This is a digitally signed message part ___ 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] Project structure: Do macros go into the environment?
Dear ConTeXt folks, I am using the project layout [1] and have a file `env.tex` which gets loaded. \startenvironment env \mainlanguage[de] \setupinteraction [title=Titel, author=John Doe, keyword={keyword}] \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} […] \stopenvironment My question is if all macro definitions (and setups like for interaction) should go in there? Thanks, Paul [1] http://wiki.contextgarden.net/Project_structure signature.asc Description: This is a digitally signed message part ___ 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] [solved] Project structure: Do macros go into the environment?
Am Sonntag, den 13.11.2011, 20:09 +0100 schrieb Wolfgang Schuster: Am 13.11.2011 um 20:05 schrieb Paul Menzel: I am using the project layout [1] and have a file `env.tex` which gets loaded. \startenvironment env \mainlanguage[de] \setupinteraction [title=Titel, author=John Doe, keyword={keyword}] \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} […] \stopenvironment My question is if all macro definitions (and setups like for interaction) should go in there? Yes. As always, thank you for the fast response! Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] idea: Module to automatically extract and insert information from Wikipedia
Dear ConTeXt folks, just now I thought of the following and I am wondering if there exists already a solution. Writing a text which includes people I want to add information about these peoples as footnotes. The first sentence in a Wikipedia article is most of the time good enough for that. A macro `\infofromwikipedia{Donald Knuth}` would be nice which gets the first sentence of the article and puts an item into the bibliography. There is even an API to access articles [2]. Besides coding that up I see the following problems. 1. The output [3] needs to be converted to ConTeXt. 2. An Internet connection would be necessary. But that is just a note and not a problem. Thanks, Paul [1] https://en.wikipedia.org/wiki/Donald_Knuth [2] http://www.mediawiki.org/wiki/API [3] http://www.mediawiki.org/wiki/API:Data_formats#Output signature.asc Description: This is a digitally signed message part ___ 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] http://modules.contextgarden.net/vim: invalid link for documentation
Dear ConTeXt folks, the URL [1] in the Module details for the vim module [2] returns an error. URL not supported Thanks, Paul [1] http://modules.contextgarden.net/doc/context/third/vim/vim.txt [2] http://modules.contextgarden.net/vim signature.asc Description: This is a digitally signed message part ___ 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] [t-vim] [PATCH] vim-README.md: Correct some typos
Date: Wed, 2 Nov 2011 20:06:35 +0100 Subject: [PATCH] vim-README.md: Correct some typos --- You can use `git am pathtosavedmboxfile` to apply the patch. diff --git a/vim-README.md b/vim-README.md index 557cf8f..5853aa2 100644 --- a/vim-README.md +++ b/vim-README.md @@ -4,9 +4,9 @@ The vim module This module highlights code snippets using vim as a syntax highlighter. Such a task may appear pointless at first glance. After all, ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML, -and a few other langauges. And in MkIV, you can specify the grammer to parse a +and a few other languages. And in MkIV, you can specify the grammar to parse a language, and get syntax highlighting for a new language. But writing such -grammers is difficult. More importantly, why reinvent the wheel? Most +grammars is difficult. More importantly, why reinvent the wheel? Most editors, and many other syntax highlighting programs, already syntax highlight many programming languages. Why not just leverage these external programs to generate syntax highlighting? This module does exactly that. @@ -188,7 +188,7 @@ The default color scheme is `pscolor`. Line numbering --- -To eanble line numbering for a particular snippet, use: +To enable line numbering for a particular snippet, use: \startvimtyping[numbering=yes] ... -- 1.7.7.1 signature.asc Description: This is a digitally signed message part ___ 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] [t-vim] [PATCH] vim-README.md: Correct some typos
Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel: Date: Wed, 2 Nov 2011 20:06:35 +0100 Subject: [PATCH] vim-README.md: Correct some typos […] Please find the patch also attached. Thanks, Paul From c59fea981e66c0f271a2dc85f589c043e9b96bc5 Mon Sep 17 00:00:00 2001 From: Paul Menzel paulepan...@users.sourceforge.net Date: Wed, 2 Nov 2011 20:06:35 +0100 Subject: [PATCH] vim-README.md: Correct some typos diff --git a/vim-README.md b/vim-README.md index 557cf8f..5853aa2 100644 --- a/vim-README.md +++ b/vim-README.md @@ -4,9 +4,9 @@ The vim module This module highlights code snippets using vim as a syntax highlighter. Such a task may appear pointless at first glance. After all, ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML, -and a few other langauges. And in MkIV, you can specify the grammer to parse a +and a few other languages. And in MkIV, you can specify the grammar to parse a language, and get syntax highlighting for a new language. But writing such -grammers is difficult. More importantly, why reinvent the wheel? Most +grammars is difficult. More importantly, why reinvent the wheel? Most editors, and many other syntax highlighting programs, already syntax highlight many programming languages. Why not just leverage these external programs to generate syntax highlighting? This module does exactly that. @@ -188,7 +188,7 @@ The default color scheme is `pscolor`. Line numbering --- -To eanble line numbering for a particular snippet, use: +To enable line numbering for a particular snippet, use: \startvimtyping[numbering=yes] ... -- 1.7.7.1 signature.asc Description: This is a digitally signed message part ___ 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] [t-vim] [PATCH] vim.txt: Correct some typos
Am Mittwoch, den 02.11.2011, 15:39 -0400 schrieb Aditya Mahajan: On Wed, 2 Nov 2011, Paul Menzel wrote: Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel: Date: Wed, 2 Nov 2011 20:06:35 +0100 Subject: [PATCH] vim-README.md: Correct some typos […] Please find the patch also attached. Thanks. Applied. Thanks! I have not understood the repository layout yet. For example will the branches be merged to the master branch eventually or are those separate modules? Please find a patch for `vim.txt` attached. Thanks, Paul From d8e6d56e25610773a1f27b5275e79c4726ee2634 Mon Sep 17 00:00:00 2001 From: Paul Menzel paulepan...@users.sourceforge.net Date: Wed, 2 Nov 2011 22:43:54 +0100 Subject: [PATCH] vim.txt: Correct some typos This patch includes commit fd67c931 [1]. [1] https://github.com/adityam/filter/commit/fd67c931b44af27f0d1f7b1b5e845a577079e103 --- doc/context/third/vim/vim.txt |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/context/third/vim/vim.txt b/doc/context/third/vim/vim.txt index a7fc912..a5a677f 100644 --- a/doc/context/third/vim/vim.txt +++ b/doc/context/third/vim/vim.txt @@ -4,9 +4,9 @@ The vim module This module highlights code snippets using vim as a syntax highlighter. Such a task may appear pointless at first glance. After all, ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML, -and a few other langauges. And in MkIV, you can specify the grammer to parse a +and a few other languages. And in MkIV, you can specify the grammar to parse a language, and get syntax highlighting for a new language. But writing such -grammers is difficult. More importantly, why reinvent the wheel? Most +grammars is difficult. More importantly, why reinvent the wheel? Most editors, and many other syntax highlighting programs, already syntax highlight many programming languages. Why not just leverage these external programs to generate syntax highlighting? This module does exactly that. @@ -200,7 +200,7 @@ The default color scheme is `pscolor`. Line numbering --- -To eanble line numbering for a particular snippet, use: +To enable line numbering for a particular snippet, use: \startvimtyping[numbering=yes] ... @@ -314,7 +314,7 @@ indent the TeX code. For example: Although, the source code is easy to read, the output will not be. This is because, unlike regular TeX, `\startvimtyping` ... `\stopvimtyping` -environment does not ignore whote space. So, the output is the same as +environment does not ignore white space. So, the output is the same as \startitemize \item A hello world example in C -- 1.7.7.1 signature.asc Description: This is a digitally signed message part ___ 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] [solved] No numbers with `\ref` and floats like `\placetable`
Am Sonntag, den 30.10.2011, 08:30 +0100 schrieb Wolfgang Schuster: Am 29.10.2011 um 23:47 schrieb Paul Menzel: I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english the following example does not work. Either no number is shown or »??«. \starttext Table \ref[][tab:reference] is a nice table. But referencing does not work \ref[tab:reference]. Use “\in[tab:reference]” to refer to the table number of give “\ref” a keyword (in your case “number”) for the first argument. That indeed solved this issue. Thank you very much! Thanks, Paul ref.pdf Description: Adobe PDF document \starttext Table \ref[number][tab:reference] is a nice table. But referencing does not work \in[tab:reference]. \placetable[][tab:reference] {The table should be set up better.} { \startluacode context.bTABLE() context.bTR() context.bTD() context(n) context.eTD() for j=1,10 do context.bTD() context($10^{ .. j .. }$) context.eTD() end context.eTR() t = { 1, 2, 4, 8 } for index, i in ipairs(t) do context.bTR() context.bTD() context($n^{ .. -i .. }$) context.eTD() for j=1,10 do context.bTD() context(\%.4f, 10^(-j/i)) context.eTD() end context.eTR() end context.eTABLE() \stopluacode } \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Wiki: Procedure to update the reference (was: `\reference` does not print number)
Am Samstag, den 29.10.2011, 18:10 +0200 schrieb Wolfgang Schuster: Am 29.10.2011 um 18:03 schrieb Paul Menzel: using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english the example from the Wiki page for `\reference` [1] does not work. \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{} This is the first reference. \page \reference[myref 2]{} This is the second one. \stoptext The numbers are not printed into the resulting file. Please find the source file and resulting PDF file attached. Use “page” as keyword for the first argument or get the pagenumber with “\at[myref 1]”. Thank you as always for the quick solution to my problem! Is the command reference in the Wiki auto generated or do I just expand or improve the article for `\reference`? Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/reference signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xtables-mkiv: Metadata of manual not stored in PDF metadata (was: beta)
Dear Hans, Am Freitag, den 28.10.2011, 16:24 +0200 schrieb Hans Hagen: I uploaded a new beta. The biggest new thing is that there is yet another table mechanism: extreme tables. thank you for this new table. There is a manual too: http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf I just wanted to note that displaying the PDF properties (in Evince using Alt + return) the title is just the file name and the author is set to unknown. Seeing that there is a colophon storing that metadata at the right place should not be a problem, I guess. […] Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] `\reference` does not print number
Dear ConTeXt folks, using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english the example from the Wiki page for `\reference` [1] does not work. \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{} This is the first reference. \page \reference[myref 2]{} This is the second one. \stoptext The numbers are not printed into the resulting file. Please find the source file and resulting PDF file attached. Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/reference test.pdf Description: Adobe PDF document \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{} This is the first reference. \page \reference[myref 2]{} This is the second one. \stoptext signature.asc Description: This is a digitally signed message part ___ 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] ⅛ not displayed
Dear ConTeXt folks, some fractions (input using Compose) are not displayed in the resulting PDF files. \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext I guess this is a font problem, but maybe fall backs could be added? Thanks, Paul eigths.pdf Description: Adobe PDF document \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext signature.asc Description: This is a digitally signed message part ___ 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] ⅛ not displayed in Latin Modern
Dear ConTeXt folks, Am Samstag, den 29.10.2011, 18:27 +0200 schrieb Paul Menzel: some fractions (input using Compose) are not displayed in the resulting PDF files. \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext I guess this is a font problem, using XITS [1][2] (Is that the also the fonts name?), everything is shown correctly. \setupbodyfont[xits] \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext but maybe fall backs could be added? Since I am wondering why ½ should work but not for example ⅛. Thanks, Paul eigths.pdf Description: Adobe PDF document \setupbodyfont[xits] \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext signature.asc Description: This is a digitally signed message part ___ 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] ⅛ not displayed in Latin Modern
Dear ConTeXt folks, I forgot to append the links. Am Samstag, den 29.10.2011, 23:12 +0200 schrieb Paul Menzel: Am Samstag, den 29.10.2011, 18:27 +0200 schrieb Paul Menzel: some fractions (input using Compose) are not displayed in the resulting PDF files. \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext I guess this is a font problem, using XITS [1][2] (Is that the also the fonts name?), everything is shown correctly. \setupbodyfont[xits] \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext but maybe fall backs could be added? Since I am wondering why ½ should work but not for example ⅛. Thanks, Paul [1] https://github.com/khaledhosny/xits-math [2] https://en.wikipedia.org/wiki/XITS_font_project signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] No numbers with `\ref` and floats like `\placetable`
Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english the following example does not work. Either no number is shown or »??«. \starttext Table \ref[][tab:reference] is a nice table. But referencing does not work \ref[tab:reference]. \placetable[][tab:reference] {The table should be set up better.} { \startluacode context.bTABLE() context.bTR() context.bTD() context(n) context.eTD() for j=1,10 do context.bTD() context($10^{ .. j .. }$) context.eTD() end context.eTR() t = { 1, 2, 4, 8 } for index, i in ipairs(t) do context.bTR() context.bTD() context($n^{ .. -i .. }$) context.eTD() for j=1,10 do context.bTD() context(\%.4f, 10^(-j/i)) context.eTD() end context.eTR() end context.eTABLE() \stopluacode } \stoptext Please find the source file and the resulting PDF file attached. Thanks, Paul ref.pdf Description: Adobe PDF document \starttext Table \ref[][tab:reference] is a nice table. But referencing does not work \ref[tab:reference]. \placetable[][tab:reference] {The table should be set up better.} { \startluacode context.bTABLE() context.bTR() context.bTD() context(n) context.eTD() for j=1,10 do context.bTD() context($10^{ .. j .. }$) context.eTD() end context.eTR() t = { 1, 2, 4, 8 } for index, i in ipairs(t) do context.bTR() context.bTD() context($n^{ .. -i .. }$) context.eTD() for j=1,10 do context.bTD() context(\%.4f, 10^(-j/i)) context.eTD() end context.eTR() end context.eTABLE() \stopluacode } \stoptext signature.asc Description: This is a digitally signed message part ___ 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] MetaFun manual: Incorrect label of ordinate axis on page 382, section 9.3 drawing functions (was: Confusion with `function()` and `xyscaled`)
Dear MetaFun folks, Am Freitag, den 21.10.2011, 01:14 +0200 schrieb Paul Menzel: looking at the example for grid and functions in the MetaFun manual [1] section 9.3 drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20, 1, 20cm, 10cm) ; draw vloggrid(0, 10, 1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20, 5, 20cm, @3e) ; draw vlogtext.bot(0, 10, 9, 10cm, @3e) ; draw function(1,log(x),x,1,10,1) xyscaled (10cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; the labeling of the vertical axis (y-coordinate) is not incorrect. The maximum value is 10 and therefore it should probably be corrected as follows. - draw hlingrid(0, 20, 1, 20cm, 10cm) ; + draw hlingrid(0, 20, 2, 20cm, 10cm) ; - draw hlintext.lft(0, 20, 5, 20cm, @3e) ; + draw hlintext.lft(0, 10, 5, 20cm, @3e) ; Furthermore on the bottom labels seem to be incorrect in the figure, it goes from 1 to 0, but this seems to be a bug in the used ConTeXt version, since I do not have that problem when compiling(?) that example locally. Please find the corrected example attached. […] Thanks and I hope I did not mess up, Paul [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf function.pdf Description: Adobe PDF document \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20, 2, 20cm, 10cm) ; draw vloggrid(0, 10, 1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 10, 5, 20cm, @3e) ; draw vlogtext.bot(0, 10, 9, 10cm, @3e) ; draw function(1,log(x),x,1,10,1) xyscaled (10cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; \stopMPcode \stoptext signature.asc Description: This is a digitally signed message part ___ 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] MetaPost: Confusion with `function()` and `xyscaled`
Am Freitag, den 21.10.2011, 18:08 +0200 schrieb Peter Rolf: Am 21.10.2011 17:26, schrieb Paul Menzel: Am Freitag, den 21.10.2011, 17:02 +0200 schrieb Peter Rolf: I agree, this is confusing on the first sight. But scaling is not meant as 'scaling to' a dimension. In fact is is just a simple multiplication. The reason why it seems to work this way with 'fullsquare' and such predefined paths is, that they have a 'neutral' size/scale (bounding box size of filled path is (1pt,1pt)). So how can I find out what the dimension of the path of a function is? Not scaling it, it also looked pretty small, so I am guessing (1pt,1pt). I guess in this case its size is (10,log(10)) + pen size when drawn. That was it kind of. Probably the most of my confusion resulting from the use of the inverse function. So all in all the width is 1 – the x-coordinates seem to be scaled to the width of 1 – and the height is 10, as ten is the highest value. Therefore the width has to be multiplied with 10cm to get it to 10cm and since the height it 10 already multiplying it with 2cm gets it to 20cm. Multiplying such a path with (x,y) gives an object with size (1*x,1*y). In general: if the bounding box of an object has the size (a,b) and you scale it with (x,y), the resulting object has a size of (ax,by). That's all the magic. but if you use numbers with a unit than it should not be multiplied but expanded to that value, should not it? Otherwise I am unsure how multiplication works with a unit. 1pt is the base unit in MP (used if no dimension is given; probably stored as 65536sp (scaled point) units). In the manual I only found bp for »big point«, which equal PostScript points equaling 1/72 of an inch. Now if you use pure numerics for scale, such as 'xscaled 2', this is interpreted as '2pt' (or 2*65536sp). If you use any dimension, it is also converted into scaled points. All the same for MP. If I'm right this should all be the same (untested) xscaled 2 xscaled 2pt This gives the same result. xscaled (2*65536sp) I could not test the above because the numbers got too big and MetaPost complained. 1 = 1pt = 65536sp […] Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] MetaFun: Confusion with `function()` and `xyscaled`
Am Freitag, den 21.10.2011, 01:14 +0200 schrieb Paul Menzel: Dear ConTeXt/MetaFun folks, looking at the example for grid and functions in the MetaFun manual [1] section 9.3 drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20, 1, 20cm, 10cm) ; draw vloggrid(0, 10, 1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20, 5, 20cm, @3e) ; draw vlogtext.bot(0, 10, 9, 10cm, @3e) ; draw function(1,log(x),x,1,10,1) xyscaled (10cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; I am confused how the resulting function is scaled correctly. The resulting dimensions seem to be 10cm and 18 cm. So I guess the 2 cm mean to shift it up some how. Could someone please explain to me how `xyscaled` works in this case please. I though `xyscaled (αcm, ζcm)` would set the object/path to a width of α cm and a height of ζ cm. Looking up the definition of the macro `xyscaled` it is indeed just a short version of `xscaled αcm yscaled ζcm`. $ more mp-tool.mp […] %D More robust: % let normalscaled = scaled ; % let normalxscaled = xscaled ; % let normalyscaled = yscaled ; % % def scaled expr s = normalscaled (s) enddef ; % def xscaled expr s = normalxscaled (s) enddef ; % def yscaled expr s = normalyscaled (s) enddef ; %D Shorter primarydef p xyscaled q = begingroup ; save qq ; pair qq ; qq = paired(q) ; ( p if xpart qq0 : xscaled (xpart qq) fi if ypart qq0 : yscaled (ypart qq) fi ) endgroup enddef ; […] I am still confused though what happens in the above example scaling the path of the function. Trying \starttext \startMPcode draw fullsquare xscaled 10cm yscaled 2cm; \stopMPcode \stoptext the resulting rectangle has the dimensions of 10 cm width and 2 cm height but the path of the function above does not. Thanks, Paul [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf signature.asc Description: This is a digitally signed message part ___ 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] MetaPost: Confusion with `function()` and `xyscaled`
Dear Peter, thank you for your answer. Am Freitag, den 21.10.2011, 17:02 +0200 schrieb Peter Rolf: I agree, this is confusing on the first sight. But scaling is not meant as 'scaling to' a dimension. In fact is is just a simple multiplication. The reason why it seems to work this way with 'fullsquare' and such predefined paths is, that they have a 'neutral' size/scale (bounding box size of filled path is (1pt,1pt)). So how can I find out what the dimension of the path of a function is? Not scaling it, it also looked pretty small, so I am guessing (1pt,1pt). Multiplying such a path with (x,y) gives an object with size (1*x,1*y). In general: if the bounding box of an object has the size (a,b) and you scale it with (x,y), the resulting object has a size of (ax,by). That's all the magic. but if you use numbers with a unit than it should not be multiplied but expanded to that value, should not it? Otherwise I am unsure how multiplication works with a unit. I must admit that this wasn't clear to me before you came up with your question. So thanks for that. :-) Thank you for your answer. As written above it is still not entirely clear to me. I hope you can remedy my last confusion. Thanks a lot, Paul signature.asc Description: This is a digitally signed message part ___ 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] MetaFun: Confusion with `function()` and `xyscaled`
Dear ConTeXt/MetaFun folks, looking at the example for grid and functions in the MetaFun manual [1] section 9.3 drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20, 1, 20cm, 10cm) ; draw vloggrid(0, 10, 1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20, 5, 20cm, @3e) ; draw vlogtext.bot(0, 10, 9, 10cm, @3e) ; draw function(1,log(x),x,1,10,1) xyscaled (10cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; I am confused how the resulting function is scaled correctly. The resulting dimensions seem to be 10cm and 18 cm. So I guess the 2 cm mean to shift it up some how. Could someone please explain to me how `xyscaled` works in this case please. I though `xyscaled (αcm, ζcm)` would set the object/path to a width of α cm and a height of ζ cm. Thanks, Paul [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf test.pdf Description: Adobe PDF document \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20, 1, 20cm, 10cm) ; draw vloggrid(0, 10, 1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20, 5, 20cm, @3e) ; draw vlogtext.bot(0, 10, 9, 10cm, @3e) ; draw function(1,log(x),x,1,10,1) xyscaled (10cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; draw fullsquare xyscaled (10cm,2cm); \stopMPcode \startMPcode draw fullsquare xyscaled (1cm,1cm); \stopMPcode \startMPcode draw fullsquare xyscaled (2cm,1cm); \stopMPcode \startMPcode draw fullsquare xyscaled (1cm,2cm); \stopMPcode \startMPcode draw fullsquare xyscaled (1,2); \stopMPcode \stoptext signature.asc Description: This is a digitally signed message part ___ 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] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV
Dear ConTeXt folks, using the following minimal example \usemodule[graph] \starttext \startMPcode draw unitsquare scaled 1cm; \stopMPcode \stoptext causes the following error. $ context graph ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english […] metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /context/tex/texmf-context/metapost/context/base/metafun.mpiv ! terminal: (/context/tex/texmf-context/metapost/context/base/mp-spec.mpii) (/context/tex/texmf/metapost/base/graph.mp (/context/tex/texmf/metapost/base/marith.mp (/context/tex/texmf/metapost/base/string.mp)) (/context/tex/texmf/metapost/base/format.mp (/context/tex/texmf/metapost/base/string.mp) (/context/tex/texmf/metapost/base/troffnum.mp troffnum.mp troffnum.mpx ! Unable to make mpx file. l.7 init_numbers(btex $-$etex, btex$1$etex, btex$ times 10$etex, […] Removing `\usemodule[graph]` make the example work. The used terminal(?) and use of `mp-spec.mpii` looks suspicious. Using the ConTeXt version in Debian Sid/unstable the example works. $ context graph […] ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.24 int: english/english […] structuresectioning section @ level 3 : 0.0.1 - Test metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun.mp' (experimental metapost version two) backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' Thanks, Paul \usemodule[graph] \starttext \startMPcode draw unitsquare scaled 1cm; \stopMPcode \stoptext signature.asc Description: This is a digitally signed message part ___ 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] hybrid-italics.pdf: Small corrections (was: beta)
Dear Hans, Am Freitag, den 14.10.2011, 23:26 +0200 schrieb Hans Hagen: A new beta has been uploaded. Nothing new apart from some experimental code and a few bugfixes. I also uploaded http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf I read your document and not being able to contribute anything having to do with programming below you can find the thing which should be corrected in my opinion. Not being a native English speaker they could be wrong though. 1. s/motto’s/mottos/ 2. s/cambria/Cambria/ 3. `\par` not used everywhere 4. … *at* a boundary … 5. … by not passing the italic information *to* the font machinery … 6. For math italics I do not see a difference in the output when the value is `2` and `3`. Files in that path will come and go. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] OT: Neo keyboard layout for entering math characters (was: luatex math font)
Dear Andreas, Am Samstag, den 15.10.2011, 14:02 +0200 schrieb Andreas Richter: \starttext \startformula J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f] \stopformula \stoptext since you seem to be a German native speaker, this is just a shameless plug to recommend to you the Neo2 layout [1] with which you easily can type the following. \startformula J \colon ℝ^∞ → ℝ, f ↦ J[f] \stopformula […] Thanks, Paul [1] http://neo-layout.org/ bb.pdf Description: Adobe PDF document \starttext \startformula J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f] \stopformula Correct use of `\blackboard` \startformula J:{\blackboard R}^\infty \rightarrow {\blackboard R},f \mapsto J[f] \stopformula Neo is great. \startformula J \colon ℝ^∞ → ℝ, f ↦ J[f] \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ 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] [solved] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
Dear Hans, Am Freitag, den 14.10.2011, 15:16 +0200 schrieb Hans Hagen: On 14-10-2011 08:02, Paul Menzel wrote: trying to draw a grid and label it, I get an error when using the (alsa attached) example from the MetaFun manual [1]. Fixed in next beta as always thank you very much for this fast fix. I confirm that this is fixed in current ConTeXt Standalone or latest Beta. ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english (however, instead of mp formatting lua formatting is used, a prelude to the graph rewrite that Alan and I have in mind). Not that I know the syntax of it. I hope the article FormattingNumbers [2] in the lua-users Wiki is the correct place to look. Reading other sources [3] it seems to be the same syntax as the `printf()` implementation of the respective system. Thanks, Paul [2] http://lua-users.org/wiki/FormattingNumbers [3] http://stackoverflow.com/questions/1133639/how-can-i-print-a-huge-number-in-lua-without-using-scientific-notation test.pdf Description: Adobe PDF document \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20,1, 20cm, 10cm) ; draw vloggrid(0, 10,1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20,5, 20cm, @3e) ; draw vlogtext.bot(0, 10,9, 10cm, @3e) ; \stopMPcode \stoptext signature.asc Description: This is a digitally signed message part ___ 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] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
Dear ConTeXt folks, trying to draw a grid and label it, I get an error when using the (alsa attached) example from the MetaFun manual [1]. \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20,1, 20cm, 10cm) ; draw vloggrid(0, 10,1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20,5, 20cm, @3e) ; draw vlogtext.bot(0, 10,9, 10cm, @3e) ; \stopMPcode \stoptext I am using an older version of ConTeXt Standalone. ConTeXt ver: 2011.07.22 17:23 MKIV fmt: 2011.7.25 int: english/english Looking at the log output I could not figure out the original error. Please find the log file attached. Searching the Web I found other threads dealing with this issue. But adding \forceMPTEXgraphictrue as suggested in [2] it does not solve the problem either. Thanks, Paul [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf [2] http://www.ntg.nl/pipermail/ntg-context/2004/005007.html \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm, 10cm) ; draw vloggrid(0, 10, .5, 10cm, 20cm) ; drawoptions(withpen pencircle scaled .50pt) ; draw hlingrid(0, 20,1, 20cm, 10cm) ; draw vloggrid(0, 10,1, 10cm, 20cm) ; fmt_pictures := false ; % use TeX as formatting engine textextoffset := ExHeight ; % a variable set by ConTeXt draw hlintext.lft(0, 20,5, 20cm, @3e) ; draw vlogtext.bot(0, 10,9, 10cm, @3e) ; \stopMPcode \stoptext test.log.7z Description: application/7z-compressed testwithforceMPTEX.7z Description: application/7z-compressed signature.asc Description: This is a digitally signed message part ___ 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] metafun manual: Typo on page 382, section 9.3 drawing functions
Dear ConTeXt folks, I am sorry to bother you with these kind of messages. On page 382 of the Metafun manual [1] (Fr 08 Okt 2010 13:44:26 CEST) it should be In this case the pairs (log(x), x) and … so (log(x), x) instead of (x, x). Thanks, Paul [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf signature.asc Description: This is a digitally signed message part ___ 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] Plotting a graph of a function f, like f(x) = e^x, with MetaPost
Dear Alan, Am Mittwoch, den 12.10.2011, 07:36 +0200 schrieb Alan Braslau: Metapost can now perform calculations in double precision floating point. At this time, it is in the svn version and does not work yet as such integrated in ConTeXt (through mplib). Taco promises this for soon... great to hear that. Just to clarify, with »now« you mean MetaPost v2, do not you? Taco, I hope you get there without a lot of problems showing up. If you need testers a good option would be to integrate that into ConTeXt Standalone as an option. The graph package is pretty clever, and I am working on proposals on how to extend/rewrite this taking advantage of the new metapost handling of large and small numbers. Perfect! To plot a function, you can create a path, as in path p ; p := for i=0 upto 1000: hide (x := i/1000 ;) if (i0) -- fi (x,exp(x)) endfor ; gplot p ; What module do I need for `gplot`? Looking at the MetaFun manual [8] I found out MetaFun even provides a macro `function` which probably does exactly what you do above with the for loop. draw function(2,x,x**(-0.5),1,10,1) xyscaled (2cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; One proposal will be to make this even easier with new macros. Another perfect! One thing coming to my mind though that hopefully the wheel is not reimplemented. I guess Gnuplot can do a lot already, but on the other probably not as neat as Metapost when we want to color certain areas. Thanks, Paul [8] http://www.pragma-ade.com/general/manuals/metafun-s.pdf signature.asc Description: This is a digitally signed message part ___ 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] Plotting a graph of a function f, like f(x) = e^x, with MetaPost
Am Donnerstag, den 13.10.2011, 00:28 +0200 schrieb Mojca Miklavec: On Thu, Oct 13, 2011 at 00:13, Paul Menzel wrote: Am Mittwoch, den 12.10.2011, 07:36 +0200 schrieb Alan Braslau: Metapost can now perform calculations in double precision floating point. At this time, it is in the svn version and does not work yet as such integrated in ConTeXt (through mplib). Taco promises this for soon... great to hear that. Just to clarify, with »now« you mean MetaPost v2, do not you? No, 1.750. The version 2 is not quite ready yet, but the version 1.750 already deals with floating point numbers. Thank you for the clarification/correction. Taco, I hope you get there without a lot of problems showing up. If you need testers a good option would be to integrate that into ConTeXt Standalone as an option. It will become part of distribution as soon as it gets out, but Taco was busy enough organizing conference and dozens of other things. Just give him some time. I bet that he also wants to update documentation, do final bugfixing etc. instead of just releasing a random snapshot. Of course the user would have to make a conscious decision by enabling this “beta” release. If people could test this and with the right announcement I hope that some people would step up to test and contribute by submitting bug reports or writing documentation. One thing coming to my mind though that hopefully the wheel is not reimplemented. I guess Gnuplot can do a lot already, but on the other probably not as neat as Metapost when we want to color certain areas. Can you please specify your question more precisely? I meant coloring part of the area below a graph. For example if you look at the graphic for Riemann sums on page 51 of the document »Learning MetaPost by Doing« [6]. Gnuplot terminal uses metapost output. Gnuplot has some support for transparency, even though I'm not exactly sure if one can specify transparent colors for lines, only for fills. But you can always simply redefine line type colors to be transparent. Gnuplot brings all kinds of other problems like dependency on external tool. If you have enough time to create nice plots in metapost, it is better to avoid external dependency as a general rule. But if you have more questions about it, feel free to ask. I might be able to help you. Well my only question would be, why should someone use Gnuplot then? Is it only for people already knowing Gnuplot? Or also because it is a little less work to define the coordinate system and legends? Otherwise MetaPost seems to include all functionality Gnuplot offers and seems to offer more possibilities, does not it? The ConTeXt terminal was almost included until developers realized that they wanted me to throw away some code for handling units and replace that code with something buggy (like size 10cm,10 - (10cm,10cm); size 10,10cm - (0.35cm,10cm) or (25.40cm,10.00cm) depending on weather). Now I need to either rewrite part of my code or rewrite part of core code or convince them why keeping the old code. I remember a thread about that [9]. Thanks, Paul [6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf [9] http://www.ntg.nl/pipermail/ntg-context/2010/054196.html signature.asc Description: This is a digitally signed message part ___ 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] Plotting a graph of a function f, like f(x) = e^x, with MetaPost
Dear ConTeXt folks, I finally chose MetaPost/MetaFun [1] because of the native integration with ConTeXt and hopefully easy font handling. I want to use that throughout my document. Of course I hit the first problem. Wanting to draw a “simple” function f like f(x) = e^x, seems hard to accomplish. I guess I should stress that MetaPost does not have a high accuracy so it might not be the best solution [5]. There seem to be quite a lot of solutions (mostly macros) on the Web for this problem so I am wondering if one of them is integrated in MetaFun. Here are some of my findings. 1. Reading about the graph package by John D. Hobby [2] and which is also included in ConTeXt [3]. Especially I liked the automatic coordinate systems. The package seems to only be able to plot graphs with data points saved in files. So one solution would be to manually create data files with data points of the relevant function. 2. There is an example in the Drexel Physics Wiki [4]. 3. Anthony Phan has also created some macros in his `mps` [5 (currently not accessible)]. 4. André Heck uses the macro packages `courbes` and `grille` from Jean-Michel Sarlat to show some nice examples in his tutorial »Learning Metapost by Doing« [6]. So what do you suggest? Thanks, Paul [1] http://www.ntg.nl/pipermail/ntg-context/2011/058527.html [2] http://tug.org/docs/metapost/mpgraph.pdf [3] http://wiki.contextgarden.net/Metapost [4] http://einstein.drexel.edu/liki/index.php/Metapost#Graphing_Functions [5] http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf [6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf signature.asc Description: This is a digitally signed message part ___ 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] Plotting a graph of a function f, like f(x) = e^x, with MetaPost
Dear ConTeXt folks, Am Mittwoch, den 12.10.2011, 00:45 +0200 schrieb Paul Menzel: Dear ConTeXt folks, I finally chose MetaPost/MetaFun [1] because of the native integration with ConTeXt and hopefully easy font handling. I want to use that throughout my document. Of course I hit the first problem. Wanting to draw a “simple” function f like f(x) = e^x, seems hard to accomplish. I guess I should stress that MetaPost does not have a high accuracy so it might not be the best solution [5]. There seem to be quite a lot of solutions (mostly macros) on the Web for this problem so I am wondering if one of them is integrated in MetaFun. Here are some of my findings. I just want to add that there seems to be work going on in ConTeXt to solve these issues as the talk at this years ConTeXt User Meeting of Alan Braslau suggests [7]. 1. Reading about the graph package by John D. Hobby [2] and which is also included in ConTeXt [3]. Especially I liked the automatic coordinate systems. The package seems to only be able to plot graphs with data points saved in files. So one solution would be to manually create data files with data points of the relevant function. 2. There is an example in the Drexel Physics Wiki [4]. 3. Anthony Phan has also created some macros in his `mps` [5 (currently not accessible)]. 4. André Heck uses the macro packages `courbes` and `grille` from Jean-Michel Sarlat to show some nice examples in his tutorial »Learning Metapost by Doing« [6]. So what do you suggest? Thanks, Paul [1] http://www.ntg.nl/pipermail/ntg-context/2011/058527.html [2] http://tug.org/docs/metapost/mpgraph.pdf [3] http://wiki.contextgarden.net/Metapost [4] http://einstein.drexel.edu/liki/index.php/Metapost#Graphing_Functions [5] http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf [6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf [7] http://meeting.contextgarden.net/2011/talks/day1_06_alan_plotting/BassangeBraslau.pdf signature.asc Description: This is a digitally signed message part ___ 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] math signs in itemize
Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster: \definefontfeature[frac][frac=yes,script=latn] \setupbodyfont[cambria] Is there a font in Standalone which can be used to demonstrate the behavior? \starttext 1/40 {\setff{frac}1/40} \m{\frac{1}{40}} With `{\setff{frac}1/40}` the output is like ¼0. Using `{40}` also does not help. \stoptext Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] Fifth International ConTeXt User Meeting from September 19th until 24th
Dear ConTeXt folks, for those wondering why the traffic on this list is quite low during the last few days, I guess the reason is most of the developers and active supporters are attending the fifth International ConTeXt User Meeting [1]. I wish a great time to everybody attending the meeting. Thanks, Paul [1] http://meeting.contextgarden.net/2011/ signature.asc Description: This is a digitally signed message part ___ 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] [punknova][PATCH] README.md: Fix typos
Date: Wed, 17 Aug 2011 12:41:03 +0200 1. No dots are used for »et al« according to Merriam Webster [1]. 2. Use capitalization consitently. [1] http://www.merriam-webster.com/dictionary/et%20al --- You can apply this patch saving this message as an mbox file and using `git am savedfilename.mbox`. --- README.md | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bf1a465..b4ab2e8 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ The Punk Nova font This is an OpenType implementation of Donald Knuth's [Punk font](http://tug.org/TUGboat/Articles/tb09-2/tb21knut.pdf). -The Original Metafont sources were adapted to a more Metapost friendly -form by Taco Hoekwater et. al. +The original Metafont sources were adapted to a more MetaPost friendly +form by Taco Hoekwater et al. Punk is a dynamic font, every time a glyph is requested Matafont draws a unique instance of it. On the other hand, OpenType is static, glyph @@ -17,13 +17,13 @@ Alternate shapes are mapped to the base character using OpenType feature (rand), which tells the renderer to select glyphs randomly from the list of alternate shapes. -The PostScript outlines of the glyphs are generated by Matapost, a -Python script then used FontForge to import the glyphs into an OpenType +The PostScript outlines of the glyphs are generated by MetaPost, a +Python script then uses FontForge to import the glyphs into an OpenType CFF font. Since this year is the 2^5 anniversary of TeX, each lower case letter have 2^5 variants, 2^4 for each upper case and 2^3 for the rest. This font is free software, you can do whatever you want with it as long -as you use different font and file name. The exact copyright statement is: +as you use different font and file names. The exact copyright statement is: Unlimited copying and redistribution of this file are permitted as long as this file is not modified. Modifications are permitted, but only if @@ -38,7 +38,7 @@ The MetaPost source has the following notice: Font inspired by Gerard and Marjan Unger's lectures, Feb 1985 -The regular punk files are part of TeXLive and in metafont format. All +The regular punk files are part of TeXLive and in Metafont format. All errors introduced are ours. We also changed the encoding to unicode. In due time we might add a few more more characters. We still need to improve some of the metrics which involves a bit of trial and error. The -- 1.7.5.4 signature.asc Description: This is a digitally signed message part ___ 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] [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]
Date: Wed, 17 Aug 2011 12:46:52 +0200 [1] http://www.ntg.nl/maps/37/ --- Somehow the README on CTAN [2] is not converted to HTML. So the links which would be created by Markdown cannot be used usable. [2] http://sunsite.informatik.rwth-aachen.de/ftp/pub/mirror/ctan/fonts/punknova/README --- README.md |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/README.md b/README.md index b4ab2e8..8cecb0d 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ The MetaPost source has the following notice: 2008, Taco Hoekwater Hans Hagen - +The MAPS article is [available online](http://www.ntg.nl/maps/37/). Khaled Hosny -- 1.7.5.4 signature.asc Description: This is a digitally signed message part ___ 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 ___