Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4
Hi, > Il 30/04/20 14:09, Romain Diss ha scritto: > > Hi, > > > > The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) > > doesn't provide the `--export-pdf=` option anymore. So context can not > > convert svg files into the corresponding `m_k_i_v_*` pdf. > The command line syntax has changed in version 1. See this: > http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line > > So it's --export-filename in Inkscape 1.00, and --export-pdf in previous > versions. > If the conversion you need is done by > tex/texmf-context/scripts/context/ruby/graphics/inkscape.rb > you should edit that file and replace "--export-pdf" with > "--export-filename". Thanks for this workaround but I suppose I'll need to edit that file again after each context update… However, the change in `inkscape.rb` has no effect, even after updating the format with `context --make`… Any idea ? Best. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] Problem including svg files with Inkscape 1.0~rc1-4
Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does the job. Thank in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] \beginBLOCKS and \endBLOCKS do not work in \dorecurse
Hi, I cannot make \beginBLOCKS and \endBLOCKS work in a \dorecurse loop. Is it possible? Here is a minimum non working exemple (from https://wiki.contextgarden.net/Command/defineblock): %% \startdocument \defineblock[question] \hideblocks[question] % We don't want to print blocks where we define them \dorecurse{2}{ \beginquestion[first] To be, or not to be? \endquestion \section{Let's see what blocks we've got.} \useblocks[question] \section{We've seen what blocks we've got. Let's take another look at that first question.} \useblocks[question][first] \beginquestion[last] Mais o\`u sont les neiges d'antan? \endquestion } \stopdocument %% Thank you in advance. Best. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] Lua os.date() localization in context
Hi all, I would like to print the day name of a date in french using my current locale. In lua I can do: > os.setlocale('fr_FR.UTF-8',all) > print(os.date("%A")) But in a cld document it doesn't work. Context complains about using "os.locale in a supposedly locale neutral enviroment" and it prints the day name in english. How can I translate the day names without hardcoding everything? Thanks in advance. Best. -- Romain Diss ___ If your question is of interest to others as well, please add an 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 ___
Re: [NTG-context] sorttype option not recognized in setupbtxrendering
Hi, > It seems that the 'sorttype' option is not recognized in > '\setupbtxrendering'. I tried all the different values (page 25 in > mkiv-publications.pdf) but nothing changes. The log files suggests that > the option is not read correctly. I just find a way to make the 'sorttype' option work. If I first define a named rendering with '\definebtxrendering', the 'sorttype' is correctly read... Don't know why it doesn't work with the default rendering. > % test-biblio.tex > \usebtxdataset[biblio.bib] \definebtxrendering[example] \setupbtxrendering[example][sorttype=index] > > \startdocument > \startchapter[title=First chapter] > \input ward \cite[ward,knuth]\blank \placelistofpublications[example] > \stopchapter > \stopdocument > % end > > % biblio.bib > @book{knuth, > title = "Title", > author = "Knuth", > publisher = "Publisher", > year = "2019", > } > @book{ward, > title = "Title", > author = "Ward", > publisher = "Publisher", > year = "2019", > } > % end All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] sorttype option not recognized in setupbtxrendering
Hi, It seems that the 'sorttype' option is not recognized in '\setupbtxrendering'. I tried all the different values (page 25 in mkiv-publications.pdf) but nothing changes. The log files suggests that the option is not read correctly. For example : % test-biblio.tex \usebtxdataset[biblio.bib] \setupbtxrendering[sorttype=index] \startdocument \startchapter[title=First chapter] \input ward \cite[ward,knuth]\blank \placelistofpublications \stopchapter \stopdocument % end % biblio.bib @book{knuth, title = "Title", author = "Knuth", publisher = "Publisher", year = "2019", } @book{ward, title = "Title", author = "Ward", publisher = "Publisher", year = "2019", } % end give the following line in the log file : publications> list > collecting entries using method 'global' and sort order 'default' Thanks for the help. -- Romain Diss ___ If your question is of interest to others as well, please add an 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 ___
Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)
Le 18/03/2019, Aditya Mahajan a �crit > On Mon, 18 Mar 2019, Romain Diss wrote: > > > Le 13/03/2019, Aditya Mahajan a �crit > > > > Is there a simple way to split a large \startframedtext environment over > > > > multiple pages. It doesn't work out of the box and I didn't find any > > > > option make it work in the wiki nor in the documentation I read. > > > > > > Use backgrounds or textbackgrounds. > > Thank you but I still can't achieve what I want to do whith this > > command. > > > > I try to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems with 'textbackgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > doesn't handle individual frames. So, you have to write your own metapost > code to draw the side bar. > > Another option for simple backgrounds is to use `\definebackground` instead > of `definetextbackground`. The background mechanism doesn't have too many > options, but does honor leftframe and rightframe by default. It will take some time to understand everything in "mp-abck.mpiv" but it will sure be very interesting. Thank you. -- Romain Diss ___ If your question is of interest to others as well, please add an 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 ___
Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)
Le 18/03/2019, Alan Braslau a �crit > On Mon, 18 Mar 2019 14:15:10 -0400 (EDT) > Aditya Mahajan wrote: > > > On Mon, 18 Mar 2019, Romain Diss wrote: > > > > > Le 13/03/2019, Aditya Mahajan a �crit > > >> > Is there a simple way to split a large \startframedtext environment > > >> > over > > >> > multiple pages. It doesn't work out of the box and I didn't find any > > >> > option make it work in the wiki nor in the documentation I read. > > >> > > >> Use backgrounds or textbackgrounds. > > > Thank you but I still can't achieve what I want to do whith this > > > command. > > > > > > I try to make something similar to the frames in the > > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > > examples). > > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > > problems with 'textbackgrounds'. > > > > > > In this minimal example, the frame doesn't appear (or if i set > > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > > right offsets are not took into account. > > > > textbackground uses metapost for ALL backgrounds and the default metapost > > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > > doesn't handle individual frames. So, you have to write your own metapost > > code to draw the side bar. > > > > Another option for simple backgrounds is to use `\definebackground` > > instead of `definetextbackground`. The background mechanism doesn't have > > too many options, but does honor leftframe and rightframe by default. > > > > Aditya > > You can look under > doc/context/sources/general/manuals/publications/publications-style.tex > to see how it is done. All these source files where here, next to me, all this time and I didn't know... Thank you very much! -- Romain Diss ___ If your question is of interest to others as well, please add an 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 ___
Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)
Le 13/03/2019, Aditya Mahajan a �crit > > Is there a simple way to split a large \startframedtext environment over > > multiple pages. It doesn't work out of the box and I didn't find any > > option make it work in the wiki nor in the documentation I read. > > Use backgrounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen made use of metafun to do it but I encounter some problems with 'textbackgrounds'. In this minimal example, the frame doesn't appear (or if i set [frame=on,leftframe=off] all the frame is rendered) and the left and right offsets are not took into account. % test-bcknd.tex \usebtxdataset[biblio.bib] \setupbtxrendering [before={\startbiblio}, after={\stopbiblio}] % Arri�re-plan biblio \definetextbackground[biblio] [location=paragraph, background=color, backgroundcolor=green, %backgroundoffset=2em, leftoffset=1em, rightoffset=1em, topoffset=1.5em, bottomoffset=1em, frame=off, leftframe=on, rulethickness=.1em, framecolor=red] \startdocument \startchapter[title=A chapter] \input knuth \cite[knuth]\blank \input ward \cite[ward]\blank \placelistofpublications[criterium=chapter] \stopchapter \stopdocument % end % biblio.bib @book{knuth, title = "Title", author = "Knuth", publisher = "Publisher", year = "2019", } @book{ward, title = "Title", author = "Ward", publisher = "Publisher", year = "2019", } % end Any suggestions? Thank you. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] Bibliography : wrong order of references when rendered by chapter
Hi, I try to use multiple renderings to place a bibliography list at the end of each chapters. I use the option 'criterium=chapter' to place the bibliography and i also use the options 'repeat=yes,method=local' because I want each chapter to have its own bibliography with an independant numbering (starting from 1 for each chapter). However, it doesn't wwork as expected. When a reference that exists in a previous chapter appears again in another one, the ordering is broken (I tried th option 'continue=no' but I don't know what it does). I don't know if it's very clear so here's a minimal 'non' working example (in the second chapter, ward reference should be numbered 1 and knuth should be 2, following the order of appearence in the bibliography list): % mnwe.tex \usebtxdataset[biblio.bib] \setupbtxrendering [repeat=yes, continue=no, method=local] \startdocument \startchapter[title=First chapter] \input knuth \cite[knuth]\blank \placelistofpublications[criterium=chapter] \stopchapter \startchapter[title=Second chapter] \input ward \cite[ward,knuth]\blank \placelistofpublications[criterium=chapter] \stopchapter \stopdocument % end % biblio.bib @book{knuth, title = "Title", author = "Knuth", publisher = "Publisher", year = "2019", } @book{ward, title = "Title", author = "Ward", publisher = "Publisher", year = "2019", } % end Thank you for your help. Best. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] Framed text split over multiple pages
Hi, Is there a simple way to split a large \startframedtext environment over multiple pages. It doesn't work out of the box and I didn't find any option make it work in the wiki nor in the documentation I read. Thanks. -- Romain Diss ___ If your question is of interest to others as well, please add an 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 ___
Re: [NTG-context] Howto use the lua io.read() function only in the first context run?
Hi, Le 15/03/2016, Hans Hagen a écrit > On 3/15/2016 9:04 PM, Romain Diss wrote: > >I want to write a cld document with some data read on the standard > >input. I'm using the lua io.read() function but it's launched at every > >context passes (depending on the case, it is launched 2 to 3 times). > > > >-- Minimum not working example > >local name = io.read() > >context.startdocument() > >context("Hello " .. name) > >context.stopdocument() > > you can test for environment.arguments.currentrun being "1" Thank you Hans... but it doesn't fully work. Now I only enter the input once (that's ok) but on the second run, the variable is not defined anymore. How can I keep it in the conTeXt memory? -- Minimum still not working example local name if environment.arguments.currentrun == "1" then io.read() end context.startdocument() context("Hello " .. name) context.stopdocument() All the best -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Howto use the lua io.read() function only in the first context run?
Hi all, I want to write a cld document with some data read on the standard input. I'm using the lua io.read() function but it's launched at every context passes (depending on the case, it is launched 2 to 3 times). -- Minimum not working example local name = io.read() context.startdocument() context("Hello " .. name) context.stopdocument() Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to store command line arguments in ConTeXt LUA Documents?
> >Is it possible to store context command line arguments into lua > >variables? > > [...] > >What I would like to do is something like this: > > > >-- start of the example > >something = context.getcommandlineargument("ARG1") -- doesn't exist > >-- make some tests here to check if 'something' has the right syntax > >context.startdocument{title = something} > >context.input("knuth") > >context.stopdocument() > >-- end of the example > > > >Then, one has just to launch: > >$ context file.cld --ARG1="My first title" > > environment.arguments Thank you. It works very well. I did not find this table in any documentation. Did I forget something? If I want to document it, what is the best place? - http://wiki.contextgarden.net/Command/getdocumentargument - another place in the wiki which evokes lua environment tables... All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 store command line arguments in ConTeXt LUA Documents?
Hi all, Is it possible to store context command line arguments into lua variables? I found http://wiki.contextgarden.net/Command/getdocumentargument but it only prints the argument. I can not store it for further processing. What I would like to do is something like this: -- start of the example something = context.getcommandlineargument("ARG1") -- doesn't exist -- make some tests here to check if 'something' has the right syntax context.startdocument{title = something} context.input("knuth") context.stopdocument() -- end of the example Then, one has just to launch: $ context file.cld --ARG1="My first title" Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 doesn't work in CLD
Hi, Le 02/01/2016, Hans Hagen a écrit > On 12/31/2015 2:57 PM, Romain Diss wrote: > >Hi all, > > > >I am trying to use xtables in a CLD document but when I add a row, it > >doesn't compile anymore. Is there something wrong? If xtables is not > >usable with CLD, what is the best set of table commands to use with CLD? > > > >% Minimum not working example : > >context.starttext() > >context.startxtable() > > context.startxrow() > > context.startxcell() > > context("Test") > > context.stopxcell() > > context.stopxrow() > >context.stopxtable() > >context.stoptext() > >% end of the example. > > that has to do with the fact that such a table gets buffered (it needs > several passes) > > i added an experimental trick to the next beta that makes this run ok It works well, thank you very much. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Hi, Le 17/01/2016, Hans Hagen a écrit > On 1/17/2016 12:18 AM, Romain Diss wrote: > >Another remark. Maybe it's a problem on my side but in all the tests I > >made to solve my problem, I noticed that context worked only if the > >mtxrun path where the first one in my PATH environment variable… > > you have to be more explicit $ #MWE (bash) $ export PATH=/opt/context/tex/texmf-linux-64/bin:/usr/local/bin:/usr/bin:/bin $ context test.tex $ # works fine $ export PATH=/usr/local/bin:/usr/bin:/bin:/opt/context/tex/texmf-linux-64/bin $ context test.tex resolvers | trees | analyzing 'home:texmf'cannot open /usr/share/texmf/scripts/context/lua/mtx-context.lua: No such file or directory The previous line is the context output when I run context with the bin installation path (/opt/context/tex/texmf-linux-64/bin) in the last position in my environment PATH variable. All the best -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Hi, Le 16/01/2016, Hans Hagen a écrit > On 1/16/2016 8:35 PM, Romain Diss wrote: > > >PS: I agree with Thomas that the mkii and mkiv split is a really good > >thing (however, I wonder why first-setup.sh installs the mkii dir when > >called with --engine=luatex…) > > because it remembers that you have installed mkii before (there is a status > file) That's not an important point but I tried an installation after removing this status file and I still get the mkii directory. I also tried to set engines.pdftex and engines.xetex to false in the status file but nothing changed. Another remark. Maybe it's a problem on my side but in all the tests I made to solve my problem, I noticed that context worked only if the mtxrun path where the first one in my PATH environment variable… All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Le 16/01/2016, Hans Hagen a écrit > On 1/16/2016 12:14 AM, Romain Diss wrote: > >Hi all, > > > > > >Le 13/01/2016, Hans Hagen a écrit > >>On 1/13/2016 1:22 AM, Romain Diss wrote: > >>>Le 13/01/2016, Hans Hagen a écrit > >>>>On 1/13/2016 12:01 AM, Romain Diss wrote: > >>>>>On 1/12/2016, Hans Hagen wrote: > >>>>>>On 1/12/2016 9:33 PM, Romain Diss wrote: > >>>>>>>I just downloaded the new beta and I can not launch context anymore. It > >>>>>>>complains it can't find a 'luat-exe.lua' file: > >>>>>>>>system > lua > loading of file > >>>>>>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed: > >>>>>>>> cannot open > >>>>>>>> /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No > >>>>>>>> such file or directory > >>>>>>>>resolvers > lua > loading file > >>>>>>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed > >>>>>>>>error loading file: luat-exe.lua (aborting) > >>>> > >>>>is that file sompelace on the system? > >>>Yes, it is located in > >>>/opt/context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua > >>> > >>>Concerning the 'context --version' error message, the 'context.mkiv' is > >>>also located in /opt/context/tex/texmf-context/tex/context/base/mkiv/ > >>>and not in /opt/context/tex/texmf-context/tex/context/base/ as printed > >>>in the output. > >> > >>i'll upload a version with a bit more checking > >Still not working here. Is there a way to downgrade my installation back > >to the last context beta without the mkii and mkiv subdirs in order to > >be able to use context again (and wait for a solution)? > > you're the only one with this issue (or the only one who reports it) so i > have no clue what to do > > does a fresh install work ? After a lot of tests, I found the origin of the problem: - I had a custom texmfcache dir set in my .bashrc file: > export TEXMFCACHE="${HOME}/.texmf-var" - I certainly changed by mistake the acces rights of this texmfcache dir so it was write/read/execute protected. So I change the acces rights of the dir and ran 'mtxrun --generate' again and this solved everything. Maybe this can help to add checks for this case. Again thanks for your help. PS: I agree with Thomas that the mkii and mkiv split is a really good thing (however, I wonder why first-setup.sh installs the mkii dir when called with --engine=luatex…) All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Hi all, Le 13/01/2016, Hans Hagen a écrit > On 1/13/2016 1:22 AM, Romain Diss wrote: > >Le 13/01/2016, Hans Hagen a écrit > >>On 1/13/2016 12:01 AM, Romain Diss wrote: > >>>On 1/12/2016, Hans Hagen wrote: > >>>>On 1/12/2016 9:33 PM, Romain Diss wrote: > >>>>>I just downloaded the new beta and I can not launch context anymore. It > >>>>>complains it can't find a 'luat-exe.lua' file: > >>>>>>system > lua > loading of file > >>>>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed: > >>>>>> cannot open > >>>>>> /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No such > >>>>>> file or directory > >>>>>>resolvers > lua > loading file > >>>>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed > >>>>>>error loading file: luat-exe.lua (aborting) > >> > >>is that file sompelace on the system? > >Yes, it is located in > >/opt/context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua > > > >Concerning the 'context --version' error message, the 'context.mkiv' is > >also located in /opt/context/tex/texmf-context/tex/context/base/mkiv/ > >and not in /opt/context/tex/texmf-context/tex/context/base/ as printed > >in the output. > > i'll upload a version with a bit more checking Still not working here. Is there a way to downgrade my installation back to the last context beta without the mkii and mkiv subdirs in order to be able to use context again (and wait for a solution)? Thanks in advance for your help. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Hi, Le 13/01/2016, Hans Hagen a écrit > On 1/13/2016 1:22 AM, Romain Diss wrote: > >Le 13/01/2016, Hans Hagen a écrit > >>On 1/13/2016 12:01 AM, Romain Diss wrote: > >>>On 1/12/2016, Hans Hagen wrote: > >>>>On 1/12/2016 9:33 PM, Romain Diss wrote: > >>>>>I just downloaded the new beta and I can not launch context anymore. It > >>>>>complains it can't find a 'luat-exe.lua' file: > >>>>>>system > lua > loading of file > >>>>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed: > >>>>>> cannot open > >>>>>> /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No such > >>>>>> file or directory > >>>>>>resolvers > lua > loading file > >>>>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed > >>>>>>error loading file: luat-exe.lua (aborting) > >> > >>is that file sompelace on the system? > >Yes, it is located in > >/opt/context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua > > > >Concerning the 'context --version' error message, the 'context.mkiv' is > >also located in /opt/context/tex/texmf-context/tex/context/base/mkiv/ > >and not in /opt/context/tex/texmf-context/tex/context/base/ as printed > >in the output. > > i'll upload a version with a bit more checking Don't know if it's already done but nothing changed on my side. I tried to create symbolic links of all base/mkiv/ files into base directory. Context is processing further but is stopped anyway. It complains it doesn't find 'page-otr.lua' although the link is done. I also noticed that context needed 'syst-rtp.mkiv' which I did not find in base/mkiv but in base/mkii. I do not know where to investigate more an I'm surprised I am the only one concerned by this bug. Is it possible that an environment variable could be responsible of this (I didn't change anything these last times). Thank you for help. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Le 13/01/2016, Hans Hagen a écrit > On 1/13/2016 12:01 AM, Romain Diss wrote: > >On 1/12/2016, Hans Hagen wrote: > >>On 1/12/2016 9:33 PM, Romain Diss wrote: > >>>I just downloaded the new beta and I can not launch context anymore. It > >>>complains it can't find a 'luat-exe.lua' file: > >>>>system > lua > loading of file > >>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed: > >>>> cannot open > >>>> /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No such > >>>> file or directory > >>>>resolvers > lua > loading file > >>>>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed > >>>>error loading file: luat-exe.lua (aborting) > > is that file sompelace on the system? Yes, it is located in /opt/context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua Concerning the 'context --version' error message, the 'context.mkiv' is also located in /opt/context/tex/texmf-context/tex/context/base/mkiv/ and not in /opt/context/tex/texmf-context/tex/context/base/ as printed in the output. > > >>>As I can see, the 'base' directory has been split up into 'mkii' and 'mkiv' > >>>subdirs, so maybe a link has not been updated. > >>>Context end up with this message: > >>>>This is LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) > >>>> system commands enabled. > >>>>(Fatal format file error; I'm stymied) > >>> > >>>When I launch 'context --version', I get: > >>>>mtx-context | ConTeXt Process Management 0.62 > >>>>mtx-context | main context file: > >>>>/opt/context/tex/texmf-context/tex/context/base/context.mkiv > >>>>mtx-context | context version: unknown, load error > >>i uploaded a version that reverts soem changes so that an older luatex works > >>(we're still looking into the situation) > >>anyway, this is unrelated to the mkii/mkiv sub path issue: i have no clue > >>what happened at your end as i can update withou tproblems > >>you can try to run mtxrun --generate and then update again > >I ran again the 'first-setup.sh' script to upload the new version. There > >do not seem to be any problem with the upload and installation. Anyway, > >I get the same errors, even after running 'mtxrun --generate' and > >updating again. > > > >Does a log file or another tests can help to find the problem? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Thanks for the reply. On 1/12/2016, Hans Hagen wrote: > On 1/12/2016 9:33 PM, Romain Diss wrote: > >Hi all, > > > >I just downloaded the new beta and I can not launch context anymore. It > >complains it can't find a 'luat-exe.lua' file: > > > >>system > lua > loading of file > >>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed: > >> cannot open > >> /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No such file > >> or directory > >>resolvers > lua > loading file > >>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed > >>error loading file: luat-exe.lua (aborting) > > > >As I can see, the 'base' directory has been split up into 'mkii' and 'mkiv' > >subdirs, so maybe a link has not been updated. > > > >Context end up with this message: > >>This is LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) > >> system commands enabled. > >>(Fatal format file error; I'm stymied) > > > >When I launch 'context --version', I get: > >>mtx-context | ConTeXt Process Management 0.62 > >>mtx-context | main context file: > >>/opt/context/tex/texmf-context/tex/context/base/context.mkiv > >>mtx-context | context version: unknown, load error > > i uploaded a version that reverts soem changes so that an older luatex works > (we're still looking into the situation) > anyway, this is unrelated to the mkii/mkiv sub path issue: i have no clue > what happened at your end as i can update withou tproblems > you can try to run mtxrun --generate and then update again I ran again the 'first-setup.sh' script to upload the new version. There do not seem to be any problem with the upload and installation. Anyway, I get the same errors, even after running 'mtxrun --generate' and updating again. Does a log file or another tests can help to find the problem? All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Error in latest beta: luat-exe.lua not found
Hi all, I just downloaded the new beta and I can not launch context anymore. It complains it can't find a 'luat-exe.lua' file: > system > lua > loading of file > '/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed: > cannot open > /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No such file or > directory > resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed > error loading file: luat-exe.lua (aborting) As I can see, the 'base' directory has been split up into 'mkii' and 'mkiv' subdirs, so maybe a link has not been updated. Context end up with this message: > This is LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) > system commands enabled. > (Fatal format file error; I'm stymied) When I launch 'context --version', I get: > mtx-context | ConTeXt Process Management 0.62 > mtx-context | main context file: > /opt/context/tex/texmf-context/tex/context/base/context.mkiv > mtx-context | context version: unknown, load error Thanks for yout help. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] xtables doesn't work in CLD
Hi all, I am trying to use xtables in a CLD document but when I add a row, it doesn't compile anymore. Is there something wrong? If xtables is not usable with CLD, what is the best set of table commands to use with CLD? % Minimum not working example : context.starttext() context.startxtable() context.startxrow() context.startxcell() context("Test") context.stopxcell() context.stopxrow() context.stopxtable() context.stoptext() % end of the example. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Awesome Fonts in item lists
Hi, >> is there a simple way to use Font Awesome Icons in ConTeXt, for >> example as symbols in an item list. > Sure, you can grab the otf version of font awesome and load it like > any other font. Thank you for the response. The problem is that my text editor use a font that can not display the Font Awesome icons in my TeX source file, so I need a way to make command to call an icon without copying and pasting it. Something like: \def\fa-arrow-left{%character with unicode []} Thank you. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Awesome Fonts in item lists
> I'm not a font expert with ConteXt so maybe my question is trivial but > is there a simple way to use Font Awesome Icons in ConTeXt, for example > as symbols in an item list. I forgot to give a link for those who doesn't know Font Awesome: https://fortawesome.github.io/Font-Awesome/cheatsheet/ -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Awesome Fonts in item lists
Hi all, I'm not a font expert with ConteXt so maybe my question is trivial but is there a simple way to use Font Awesome Icons in ConTeXt, for example as symbols in an item list. Thanks in advance. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] siunitx feature in unit module
Hi, > with siunitx LaTeX package its possible to obtain physics units like m/s > printed in different way changing one option: > e.g. > \si{\metre\per\second} produce ms^{-1} \unit{10 meter inverse second} > \si[per-mode=symbol]{\metre\per\second} produce m/s \unit{10 meter per second} > \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s} I think it is not possible with \unit{} All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with astronomicalunit in \unit
Hi all, It seems that the \unit parser doesn't recognize the 'astronomicalunit'. Minimal exemple: \starttext \unit{100 astronomicalunit} \stoptext % Rendering gives 100 as.t % One expect 100 au Thanks for help. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Vertical alignment of \placefigure[right]
Hi, Le 07/05/2014, Sanjoy Mahajan a écrit > Here are a few more keys. I don't fully understand their effect, but I > found them in strc-flt.mkvi (p.s. shouldn't that be .mkiv ?). Some of the keys are documented in the 'details' manual (http://www.pragma-ade.com/general/manuals/details.pdf) in section 6. I discovered the 'high' key there! All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Subsection number independant of section
Le 02/05/2014, Fabrice Couvreur a écrit > I would get a dial like this : > > A. Section one > 1. Subsection one This should work: \setuphead [section] [sectionstopper=., %sectionsegments=3:3, conversion=Characters,] \setuphead [subsection] [sectionstopper=., sectionsegments=4:4, conversion=number,] \setupbodyfont [pagella,11pt] \starttext \section{Définitions} \subsection{Approche de la loi binomiale} \stoptext -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Paragraph itemizes
Le 29/04/2014, Maggyero a écrit > How do you setup your itemize environment to get a formatting in paragraph > fashion, that is to say without margins at the second, third, etc. lines of > each item, like this: > 1. one one one one one one one one one one > one one one one one one one one one one > I get this instead (notice the margins represented with underscores): > 1. one one one one one one one one one one > __one one one one one one one one one one > with: > > \setupitemgroup[itemize][each][packed] > \startitemize[n] > \item \dorecurse{20}{one} > \item \dorecurse{20}{two} > \item \dorecurse{20}{three} Not tested but I think \setupitemgroup[itemize][each][distance=0em] should do the trick. One can also change the margins (see http://http://wiki.contextgarden.net/Command/setupitemgroup). All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to redefine \section temporaly?
Hi, Le dimanche 01 septembre 2013 13:02:42 john Culleton a écrit : > On Sat, 31 Aug 2013 23:10:07 +0200 > Romain Diss wrote: > > I wrote some articles with context and they contain (of course) > > sections. Now I have to include all these articles in a book but each > > article should become a section of the book. So I wonder if there is > > a way to convert the \section command of the article files into > > \subsection in the book. > If faced with this problem I would import the tex file into gvim and do > > a mass change with one statement like: > :% s/\\section/\\subsection/ > > Then I would save the tex file under a different name. > > If there are already subsections I would convert them to subsubsections > first, then convert the sections to subsections. Eqch step is just a > singl command in gvim. You're right. I also use vim and this is a quick and working solution (and even faster with :bufdo %s/\\section/\\subsection/). However the idea was to keep the section/subsection/subsub.. order in the article individual files and not modify them. In fact I was looking to the most 'contexty' solution. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to redefine \section temporaly?
Hi, Le samedi 31 août 2013 23:55:31 Hans Hagen a écrit : > > I wrote some articles with context and they contain (of course) sections. > > Now I have to include all these articles in a book but each article > > should become a section of the book. So I wonder if there is a way to > > convert the \section command of the article files into \subsection in the > > book. > > > > Any ideas? > > you can use \startwhatever when you do: > > \definehead[whatever][section] > > or > > \definehead[whatever][subsection] > > or alternatively look into levels-001.tex and levels-002.tex in the test > suite to see how to use relative sectioning Thank you. I thought these commands were existing but I didn't remember the name. -- Romain Diss 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 redefine \section temporaly?
Hi all, I wrote some articles with context and they contain (of course) sections. Now I have to include all these articles in a book but each article should become a section of the book. So I wonder if there is a way to convert the \section command of the article files into \subsection in the book. Minimal not working (but supposed to explain my problem) example: %%% article.tex \startsection[title=A first point] ... \stopsection \startsection[title=A second point] ... \stopsection %%% book.tex % command to make the \section of the input articles become \subsection % commands \startsection[title=My first article] \input article \stopsection %%% end I know I can change the \section commands of the article.tex into \ArticleSection and switch with \definehead[ArticleSection][section] \definehead[ArticleSection][subsection] depending of the context, but it would be better (for me) to not modify the article.tex files. Any ideas? Thank in advance. -- Romain Diss 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] [***SPAM***] Continuous preview
Le mardi 27 août 2013 12:12:32 Thangalin a écrit : > When using the "evince" PDF reader on Linux, reloading the PDF is as simple > as: > > context filename.tex -- Generate for the first time > evince filename.pdf & -- Open the reader in the background > > context filename.tex -- The evince process automatically refreshes with Same here with 'okular' (it can be configured: so one can decide to not refresh on file change). -- Romain Diss 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] [***SPAM***] No letter in math mode with \bold and dejavu font
Hi, With this minimal exemple : %%% MWE \setupbodyfont[dejavu] \starttext 1. \m{E = m c^2} \par 2. \m{\bf E = m c^2} \par 3. {\bf \m{E = m c^2}} \par 4. \bold{\m{E = m c^2}} \par \stoptext %%% The letters disappear in the case 4. I had a look into the font manual and it seems to be related to the bold/mathbold difference but I do not understand these subtilities enough to understand what goes wrong. Anyway it seems that there is a bug here with dejavu because with lm the case 4. works (with the same rendering as 3.). Any ideas? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \digits get \times instead of \cdot before exponent
Le mercredi 22 mai 2013, Hans Hagen a écrit : > On 5/21/2013 11:35 PM, Romain Diss wrote: > >> We've already got \setdigitmode, \setdigitorder, and \setdigitspace; > >> it might make sense to create a \setupdigits to consolidate these > >> setups into one interface. Something like this: > >> > >> \setupdigits > >> > >> [mode=4, % -->\setdigitmode{4} > >> > >>% (decimal period, thinspace between groups) > >> > >> inputdecimalmark={,}, % -->\setdigitorder{0} > >> signspace=yes,% -->\setdigitsign{1}; '+ 1.4', not '+1.4' > >> times=\times, % or times=\cdot > >> ] > > > > +1 > > > >> P.s: I've been thinking I'd like to write more contexty interface that > >> doesn't use predefined modes, but lets you setup the decimal mark, > >> separator mark, the input decimal mark, etc. Something like this: > >> > >> \setupdigits > >> > >> [inputdecimal={.}, % input 3.1415926535 > >> > >> decimal={,} > >> separator=\space, > >> groupsize=4, % output 3,1415 9265 45 > >> signspace=,] % +3.14159... > >> > >> That could even tie into \setuplanguage to allow setting > >> language-specific defaults. Would anyone be interested in this? > > > > +1 again! > > needs a bit of thinking as when we start this route we get lots of new > keywords (with the danger of introducing inconsistencies) so first we > need to collect all potential candidates for such keys (e.g. using > separator might be too generic ) I don't know if it is possible and can not estimate how much work it represents but maybe one can consider to merge the digit part of the \digits and \unit code. The \unit command would then use the same code as the \digit one to format the digit part. Then, the \unit code would use a specific code to format the unit part. This would make it possible to configure the digit formatting with one unique command for both \unit and \digit and another command would be used to configure the formating of the unit part. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \digits get \times instead of \cdot before exponent
> We've already got \setdigitmode, \setdigitorder, and \setdigitspace; > it might make sense to create a \setupdigits to consolidate these > setups into one interface. Something like this: > > \setupdigits >[mode=4, % -->\setdigitmode{4} > % (decimal period, thinspace between groups) > inputdecimalmark={,}, % -->\setdigitorder{0} > signspace=yes,% -->\setdigitsign{1}; '+ 1.4', not '+1.4' > times=\times, % or times=\cdot > ] > +1 > P.s: I've been thinking I'd like to write more contexty interface that > doesn't use predefined modes, but lets you setup the decimal mark, > separator mark, the input decimal mark, etc. Something like this: > > \setupdigits >[inputdecimal={.}, % input 3.1415926535 > decimal={,} > separator=\space, > groupsize=4, % output 3,1415 9265 45 > signspace=,] % +3.14159... > > That could even tie into \setuplanguage to allow setting > language-specific defaults. Would anyone be interested in this? +1 again! -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \digits get \times instead of \cdot before exponent
Le lundi 20 mai 2013, Christian Prim a écrit : > is it possible to change the behaviour of \digits to have \cdot as in > http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at > the bottom) instead of \times as shown in the latest units-mkiv-document > http://www.pragma-ade.com/general/manuals/units-mkiv.pdf pages 6&7? Seems to be hardcoded in phys-dim.mkiv for the moment: l. 173-175 \unexpanded\def\digitspower #1{\times10\phys_digits_raised{#1}} \unexpanded\def\digitspowerplus #1{\times10\phys_digits_raised{\digitsplus#1}} \unexpanded\def\digitspowerminus #1{\times10\phys_digits_raised{\digitsminus#1}} ntextgarden.net/) -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing °C symbol in math mode with dejavu font
Le lundi 20 mai 2013, Alan BRASLAU a écrit : > On Mon, 20 May 2013 22:29:22 +0200 > Romain Diss wrote: > > The °C symbol is missing in math mode with the dejavu font. I thought > > that this should be handled by using the '°' + 'C' symbols instead > > but it is not the case. > > Is that a bug? > > What can I do to get the °C symbol with this font? > With dejavu, A, B, and D all work, but C is missing a symbol. > A 100℃ > B 100°C > C $100℃$ > D $100°C$ The question is: do \unit is supposed to handle this case and automatically switch from C to D if C is missing. If not, how can I tell \unit that C is missing and that I want \unit{celsius} to use D? Thanks -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Missing °C symbol in math mode with dejavu font
Hi all, The °C symbol is missing in math mode with the dejavu font. I thought that this should be handled by using the '°' + 'C' symbols instead but it is not the case. Is that a bug? What can I do to get the °C symbol with this font? %% MWE \setupbodyfont[dejavu] \starttext Temperature : \unit{100 celsius} works.\par Temperature : \m{\unit{100 celsius}} doesn't work. \stoptext -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] Wrong °C symbol with \unit and dejavu font
Hi all, With this minimal example: %%% start \setupbodyfont[dejavu] \starttext Temperature : \unit{100 celsius}. \stoptext %%% end I get the °F symbol instead of °C. With lmodern or pagella (I did not try other fonts) the right symbol (°C) is printed. Any idea of what goes wrong? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Small bug in the result filename extension in log
Hi, I just noticed a small bug in the log of a context job. It has no incidence but maybe this can cause a side effect somewhere. When a file contain several dot in its name, context remove the last part in the result filename in the log: $ context test.foo.bar ... system > files > jobname 'test.foo.bar', input './test.foo.bar', result 'test.foo' ... However, the output is correct and one obtain 'test.foo.bar.pdf' and not 'test.foo.pdf'. All the best. -- Romain Diss 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] Request for metadata:keywords support in startdocument
Hi, This is probably adressed to Hans. Is it possible to add the support for metadata:keywords in \startdocument? scrn-ini.mkvi l. 197 +++ \doifvariable{document}{metadata:keywords} {\setupinteraction[\c!subject=\documentvariable{metadata:keywords}]}% Thank you in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] sozi presentations
Hi, Le mardi 09 avril 2013, Thomas A. Schmitz a écrit : > this is a very far shot, but just maybe... I have been looking at prezi > (http://prezi.com/). There's lots of aspects there that don't appeal to (...) I just wanted to mention a free (GPL) alternative to prezi : sozi (http://sozi.baierouge.fr/wiki/doku.php). It works with as inkscape plugin. All the best -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Visualcounter: style parameter not working as expected
Hi all, I'm actually using the visualcounter module for a presentation and I can't modify the style of the page number inside the countdown counter. The documentation let me think the 'style' parameter should do the job but it doesn't seem to work. Do I miss something or is this a bug? %% Minimal working exemple %% \usemodule[visualcounter] \definevisualcounter [test] [countdown] [counter=userpage] \setupvisualcounter [test] [style=\tfd] % This is not taken into account \setupfootertexts[][\usevisualcounter{test}] \starttext \dorecurse{3}{\input knuth \par \input knuth \page} \stoptext %% Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] Re: Spacing and font problem with \chemical inside display math
Thanks for your response, Le jeudi 13 décembre 2012, vous avez écrit : > In your example, I see the spacing problem in display math but do not see > the font problem. Maybe Hans can fix this extra spacing problem. I joined the pdf output I get with my minimal sample. The font problem occurs on line 3 where the last parenthesis is smaller than expected. > Rather than display math (as was suggested with ppchTeX), we have now > introduced \startchemicalformula > \stopchemicalformula > in order to "display" a chemical formula. Yes but in my cases I do want a mathematic display and not an chemicalformula one because I want to express a mathematical formula where chemical formulas are indexes. As an example, considere the calculation of the molecular weight: M(C6H12O6) = 6 M(C) + 12 M(H) + 6 M(O) > Also, I'm not sure why you might want to put \chemical{} within a \text > command; may I suggest either \type{\chemical{CO_2}} or {\tt typewriter > \chemical{CO_2}}, depending upon what you want to achieve. In fact, it's an habit I made when I used to put chemical formulas in subscript like in: m_{H20} = ... With \math{m_{\chemical{H_2O}}}, H2O was typed in normal font whereas with \math{m_{\text{\chemical{H_2O, it was typed in subscript font as expected. Did not test if it's still the case. > We are currently in the process of a complete re-write of the chemical > macros. In fact, we are almost finished and Hans is including the new > macros in the beta (as fast as he can keep up with my changes...). So I will wait for the new rewritten macros. Thanks again. -- Romain Diss test-chemical.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Spacing and font problem with \chemical inside display math
Strange, why did I get a spam tag on this message… -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] Spacing and font problem with \chemical inside display math
Hi all, I found what I suppose to be a bug with the \chemical command: - when one use \chemical inside display math, the spacing is wrong around the \chemical stuff. The font change inside \chemical also persists outside the command. - if one enclose the \chemical command into curly braces, the font problem do not appear but the spaces are still wrong. - if one put the \chemical command inside a \text{} command, ConTeXt stops with an error. These problems do not occur in inline math. Here is a minimal example: %% START \starttext Chemical within inline math: \m{M(\chemical{CO_2})} or \m{M(\text{\chemical{CO_2}})}. This works fine. Chemical in display math: \startformula M(\chemical{CO_2}) \stopformula gives some strange spacing and seems to modify the font outside \tex{chemical}. Chemical in display math: \startformula M({\chemical{CO_2}}) \stopformula corrects the font problem but still gives some strange spacing. %Chemical inside \text in display math: \startformula %M(\text{\chemical{CO_2}}) \stopformula gives an error. \stoptext %% END Anyone has an idea to solve this? Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Reading product environment within a component file
Hi all, Since I read the thread concerning the LaTeX \includeonly equivalent, I tried again to make to project structure work for me (I gave up some time ago). Here is my problem: I have a product file p.tex %% p.tex \startproduct p \environment e \component c \component d \stopproduct %% end an environment file e.tex %% e.tex \startenvironment e % style commands... \stopenvironment %% end and two component files c.tex and d.tex %% c.tex (d.tex is the same file, except content part) \setupreferencing[autofile=yes] \setupinteraction[state=start] \startcomponent c \product p % content \stopcomponent but no project file. When I run context on the product file, everything is ok. But when I run context on one component file, it doesn't read the environment file because the \product command doesn't seem to be read (that's what I understand from the documentation). So, how should I do to inform context to read the environment mentionned in the product file. Is it obligatory to use a project file to be able to read the parent environment when processing a component? Another question which I think is linked to the previous one is: is one supposed to run context on a component? My different tests shows that a run on a component load all the other components mentionned in the product. So it seems to be equivalent to run context on a product or on a component (except for the environment problem mentionned before). That's also what the wiki seems to say (http://wiki.contextgarden.net/Project_structure): "In addition, you have to keep in mind that when compiling a product or component file, ConTeXt goes "up" to the project file and compiles everything it finds in there that is not a \product". So, actually, I'm not able to reproduce the \includeonly equivalent with \component (even if I use \setupreferencing[autofile=yes] and \setupinteraction[state=start]). Do I miss something? All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with units
Le jeudi 29 novembre 2012, Andreas Mang a écrit : > Hi there, > > I encountered some problems with the built in units command in MKIV. I > provide a minimal example which should demonstrate my problems. Maybe I am > doing something wrong... > > \setupbodyfont[pagella] > \starttext > \unit{11,1e-1 micro mol per second} \par > $\unit{11,1e-1 micro mol per second}$ \par > \unit{11,1e-1 per second} \par > \unit{11,1e-1 / second} \par > \stoptext Don't know for the first two, but the last two should be replaced by: \unit{11,1e-1 inverse second} All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem with powers of ten.
Le samedi 24 novembre 2012, Hans Hagen a écrit : > On 11/24/2012 1:48 AM, Sietse Brouwer wrote: > >>> The '^' and 'e' all print a '10 ×' at the begining. It's what is > >>> expected for > >>> 'e' but not for '^'. Did I miss something? > >> > >> well, until now ^ and e were equivalent so if that has to change (say ^ > >> no 10) then there need to be agreement about this as it's an > >> incompatible change > > > > I, for one, would expect 2^3 to mean '2 cubed', not 2x10^3. So I'd be > > in favour of this change. Then again, I have no code that depends on > > the old meaning... > > interesting so then we need a list of more ^2 ^3 ^4 ^5 ... and what > about ^1.2 I don't know everyone's use of \units but for physicists I think that the only case where it should be usefull is for 10^something (like \unit{10^-12 second} ;). Maybe the informaticians need 2^something… The other cases are probably marginals. > then, what will be the escape for the texlike 2^3? maybe $2^3$, so $ > will leave scanning mode That's already working and this should be the way when one need something unusual. Maybe a support for \m{} should be usefull for those who do not use $...$ anymore. For the moment nested curly brackets aren't supported inside a \m{} which himself is inside a \unit{}. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A problem with units
Hi, Le vendredi 23 novembre 2012, Marcin Borkowski a écrit : > being quite happy with things like \unit{10 km/h}, once I did \unit{45 > min}, only to get "45 m" in the resulting file. I suspect that \unit > does not know about minutes; is there any way to teach it;)? One can add units with \registerunit[unit] and \setupunittext (see line 652 in phys-dim.mkiv): \starttext \registerunit [unit] [minute=minute] \setupunittext [minute=min] \unit{45 minute} \stoptext However, I'm unable to explain what exactly \registerunit or \setupunittext does. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem with powers of ten.
Le samedi 24 novembre 2012, Sietse Brouwer a écrit : > > > The '^' and 'e' all print a '10 ×' at the begining. It's what is > > > expected for > > > 'e' but not for '^'. > > > > well, until now ^ and e were equivalent so if that has to change (say ^ > > no 10) then there need to be agreement about this as it's an > > incompatible change > > I, for one, would expect 2^3 to mean '2 cubed', not 2x10^3. So I'd be > in favour of this change. Then again, I have no code that depends on > the old meaning... Of course, I'm also in favour of 2^3 to mean '2 cubed'. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem with powers of ten.
Hi, Le jeudi 22 novembre 2012, Hans Hagen a écrit : > On 11/19/2012 11:44 PM, Romain Diss wrote: > > Hi all, > > > > I got some problems to express powers of ten in the \unit command. See > > the strange behaviour with these two minimal examples. > > > > \starttext > > \unit{10^2 meter}\\ > > \unit{10^{-12} second} > > \stoptext > > Is this a bug or are these expressions not supported? > > not supported .. i've added it to the upcoming beta: Thank you very much. > needs testing as usual (and wiki adaption as well) I have upgraded my context version few minutes ago: $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | current version: 2012.11.23 17:35 but your following code doesn't work completely: > \starttext > > \startlines > \unit{10^12 meter} > \unit{10^{-12} second} > \unit{10^{12} second} > \unit{10e12 meter} > \unit{10e{-12} second} > \unit{10e{12} second} > \stoplines > > \stoptext The '^' and 'e' all print a '10 ×' at the begining. It's what is expected for 'e' but not for '^'. Did I miss something? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem with powers of ten.
Hi all, Le mardi 20 novembre 2012, Romain Diss a écrit : > Le lundi 19 novembre 2012, Romain Diss a écrit : > > I got some problems to express powers of ten in the \unit command. See > > the strange behaviour with these two minimal examples. > > > > \starttext > > \unit{10^2 meter}\\ > > \unit{10^{-12} second} > > \stoptext > > Is this a bug or are these expressions not supported? > > I'm not an expert neither in TeX nor Lua, but I quickly glance at the > source code (phys-dim.*) and here is what I understand: > — the brackets { } are not recognized (a comment in the lua code mentioned > it), so \unit{10^{-12} second} should be \unit{10^-12 second}; > — the hat sign '^' is recognized as 'e' so it means "… times ten to the > power…" instead of "to the power…" as one should expect. > > So I come back to my problem. I want to write 10⁻¹² s (ten to the negative > twelfth power second). Actually, I'm typing \math{10^{-12} \unit{second}} > but I'd prefer to type \unit{10^-12 second} (for coherence). Is it > possible to modify phys-dim.lua in that way or is this to much work (I > have no idea if this is a matter of changing one line or a hundred lines > in phys-dim.lua. Maybe also this is a too specific request, I don't know… Nobody seems very enthusiastic concerning this thread so I tried to go further in the comprehension of the phys-dim.lua code. I now have found an approximate solution to my problem : \unit{$10^{-12}$ second} give the right result. It is not very satisfactory because I'm now used to use \m{} instead of $ $. In the phys-dim.lua code, the line 64 shows that \m{} can be used inside \unit{} but this doesn't work for: \unit{\m{10^{-12}} second} because the pattern doesn't handle nested curly braces. Is there any Lua expert to find a pattern to handle exponents? Thank you. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem with powers of ten.
Le lundi 19 novembre 2012, Romain Diss a écrit : > I got some problems to express powers of ten in the \unit command. See the > strange behaviour with these two minimal examples. > > \starttext > \unit{10^2 meter}\\ > \unit{10^{-12} second} > \stoptext > Is this a bug or are these expressions not supported? I'm not an expert neither in TeX nor Lua, but I quickly glance at the source code (phys-dim.*) and here is what I understand: — the brackets { } are not recognized (a comment in the lua code mentioned it), so \unit{10^{-12} second} should be \unit{10^-12 second}; — the hat sign '^' is recognized as 'e' so it means "… times ten to the power…" instead of "to the power…" as one should expect. So I come back to my problem. I want to write 10⁻¹² s (ten to the negative twelfth power second). Actually, I'm typing \math{10^{-12} \unit{second}} but I'd prefer to type \unit{10^-12 second} (for coherence). Is it possible to modify phys-dim.lua in that way or is this to much work (I have no idea if this is a matter of changing one line or a hundred lines in phys-dim.lua. Maybe also this is a too specific request, I don't know… Anyway, thank you in advance. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem with powers of ten.
Hi all, I got some problems to express powers of ten in the \unit command. See the strange behaviour with these two minimal examples. \starttext \unit{10^2 meter}\\ \unit{10^{-12} second} \stoptext However, there is no problem with this one: \unit{1e-4 kilogram}. Is this a bug or are these expressions not supported? Thanks. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \startplacefigure equivalent of \placefigure
Le dimanche 18 novembre 2012, Wolfgang Schuster a écrit : > Am 18.11.2012 um 21:58 schrieb Romain Diss : > > I did not find the \startplacefigure equivalent of: > > \placefigure > >[high,low] % <- here are the options I need > >{test} > >{\externalfigure[pic-test]} > \startplacefigure[location={high,low},title=test] > \externalfigure[pic-test] > \stopplacefigure Thank you. Like most of the time, the answer seems obvious afterwards. > See also http://www.ntg.nl/pipermail/ntg-context/2012/069414.html The wiki also mentions this. I took a look on it before posting but it didn't help me because I only used location= to place the caption. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \startplacefigure equivalent of \placefigure
Hi all, I did not find the \startplacefigure equivalent of: \placefigure [high,low] % <- here are the options I need {test} {\externalfigure[pic-test]} I checked in the sources but found nothing about these 'high', 'low' options. Anybody has an idea? Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing file.tuc with setuparranging[2SIDE]
Hi Le jeudi 15 novembre 2012, Wolfgang Schuster a écrit : > Am 15.11.2012 um 01:28 schrieb Romain Diss : > > I found a strange problem using \setuparranging[2SIDE] : the .tuc file is > > not created anymore and this lead to a missing section number (for the > > first section only). How can I remedy to that ? Any idea ? > > Use “context --arrange ”. Thank you, it seems trivial but it works well. Do the use of \setuparranging should always be accompanied by "context -- arrange " or are there specific cases? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Missing file.tuc with setuparranging[2SIDE]
Hi, I found a strange problem using \setuparranging[2SIDE] : the .tuc file is not created anymore and this lead to a missing section number (for the first section only). How can I remedy to that ? Any idea ? The minimal example : %% \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \starttext \dorecurse{10}{ \section{Knuth} \input knuth} \stoptext %% If one comment the \setuparranging[2SIDE] line, everything is ok. Thank you. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt unofficial test suite stub (chemistry)
Le jeudi 18 octobre 2012, Alan BRASLAU a écrit : > By the way, \lohi[left]{2}{4}He is somewhat a tautology, like all such > isotopic nomenclature, as He ALWAYS has an atomic number of 2, > otherwise it is not He (and U ALWAYS has an atomic number of 92, > otherwise it is no longer U). Sure but but the format is nevertheless usefull in some cases: - exercises like: "what is the chemical symbol of the \lohi[left]{2}{4}X atom?" - nuclear reactions where Z are usefull to balance the equations (see http://en.wikipedia.org/wiki/Nuclear_reaction for exemples). Of course if one know every Z and atomic symbol associated by heart, the nomenclature with Z is not needed. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt unofficial test suite stub (chemistry)
Le jeudi 18 octobre 2012, Sietse Brouwer a écrit : > What about \lohi with the [left] key? That might serve your needs until > Alan gets \chemistry to parse and typeset isotopes correctly. Yes there are some "hacks" to typeset isotopes correctly, but I think it would be better to be able to typeset it in a simple way with \chemistry. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt unofficial test suite stub (chemistry)
Le mercredi 17 octobre 2012, Alan BRASLAU a écrit : > Furiously, "breaking" many old curiosities, > fixing broken and incomplete functionality, > AND completely re-writing the documentation! > (Not that I really know much about chemistry myself... :) Since you talk about chemistry, is there now a way to type correctly isotopes (without any hacks). Actually \chemistry{^{238}_{92}U} do align '92' to the left. It should be aligned to the right. Thank you. (Maybe I should have open a new thread...) -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit and french
Hi, Thanks for the response. > If inputting in the English format is an option, this works: > \setupunit[method=3] % comma as decimal mark, thin space for digits > seperator \units{12,345.00} %--> 12 345,00 Yes, I confirm it works (with \unit{12,345.00}). I'd prefer inputting in french but this should do the job. > % doesn't work correctly: comma is accepted as decimal mark at parse time, > % but then printed as thin space anyway. ?!? > \setupunit[method=3, order=reverse] > \units{12.345,00} %--> 12,345 00 This one should give what I need. Can someone confirm there is a bug here and if so, is it possible to fix it? Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit and french
Le mardi 09 octobre 2012, Wolfgang Schuster a écrit : > Am 09.10.2012 um 22:11 schrieb Marco Patzer : > > 2012-10-09 Wolfgang Schuster: > >> Can you explain which numbers this should represent: > >> > >> \m{12\,345,567\,89}~kg > > > > 12345.56789 kg > > > >> \m{345,567\,89}~kg > > > > 345.56789 kg > > Thanks but I realized it myself (I guess I need sleep), The problem is that > Hans number parser doesn’t check for a separator in the decimal numbers. Thanks for the response. The minimal example was suppose to test three numbers: one with a separator in the integer part (12345.567), one with a separator in the decimal part (345.56789) and one in both (12345.56789). Anyway, if one forget the problem of the separator in the decimal part which is not handle, none of the 'method=', 'order=' and 'language=' combinations in \setupunit make it possible to render a number in the french format (a comma as the decimal separator and a thin space for the "three digits" separator). Any idea to get this work? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit and french
Hi all, As you know, the french number format is almost opposite to the english one: period and comma have opposite roles. My question concerns the way to render properly numbers in french with the \unit command. I already tried different combinations of \setupunit[method=,order=] but I can’t find the right way. I tried even to type french or english format as input for \unit but none output is right (actually I'd prefer to type french format as \unit input). Also, when there are "three digits" separators on both sides of the decimal point, some method outputs are not consistent. I attached a not so minimal exemple. Thanks for any idea to solve this. -- Romain Diss \starttext \startbuffer \starttabulate[|l|l|l|] \HL \NC \NC \tex{unit} input: french format \NC \NR \HL \NC method 0 \NC \setupunits[method=0]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \NC method 1 \NC \setupunits[method=1]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \NC method 2 \NC \setupunits[method=2]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \NC method 3 \NC \setupunits[method=3]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \NC method 4 \NC \setupunits[method=4]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \NC method 5 \NC \setupunits[method=5]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \NC method 6 \NC \setupunits[method=6]\unit{12.345,567 kilogram} --- \unit{12.345,567.89 kilogram} --- \unit{345,567.89 kilogram} \NC \NR \HL \stoptabulate \starttabulate[|l|l|l|] \HL \NC \NC \tex{unit} input: english format \NC \NR \HL \NC method 0 \NC \setupunits[method=0]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \NC method 1 \NC \setupunits[method=1]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \NC method 2 \NC \setupunits[method=2]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \NC method 3 \NC \setupunits[method=3]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \NC method 4 \NC \setupunits[method=4]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \NC method 5 \NC \setupunits[method=5]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \NC method 6 \NC \setupunits[method=6]\unit{12,345.567 kilogram} --- \unit{12,345.567,89 kilogram} --- \unit{345.567,89 kilogram} \NC \NR \HL \stoptabulate \stopbuffer \language[en] What is expected in french: \language[fr] \m{12\,345,567}~kg --- \m{12\,345,567\,89}~kg --- \m{345,567\,89}~kg \language[en] What would be expected in english: \language[fr] \m{12,345.567}~kg --- \m{12,345.567,89}~kg --- \m{345.567,89}~kg \stoptabulate \startsection[title=French language] \language[fr] \startsubsection[title=Normal order] \setupunit[order=normal] \getbuffer \stopsubsection \startsubsection[title=Reverse order] \setupunit[order=reverse] \getbuffer \stopsubsection \stopsection \startsection[title=English language] \language[en] \startsubsection[title=Normal order] \setupunit[order=normal] \getbuffer \stopsubsection \startsubsection[title=Reverse order] \setupunit[order=reverse] \getbuffer \stopsubsection \stopsection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Hi, Le vendredi 10 août 2012, Hans Hagen a écrit : > On 10-8-2012 00:31, Mojca Miklavec wrote: > > On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: > >> As I wanted to acccess the help on the wiki, I've added a feature to > >> mtxrun that can be used in an editor: > >> > >> mtxrun > >> > >>--gethelp > >>--url="http://www.contextgarden.net/Command/setuplist"; > > > > sh: http://www.contextgarden.net/Command/setuplist: No such file or > > directory > > So what would be the right way? Is there some abstract shortcut to the > preferred browser? On unix shells, 'xdg-open' open any file or URL with the appropriate program. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Complexeslide module
Hi, Thanks for the different answers. It sure looks very promising… > > Beamer like?? No. Much better :) > > In all honesty, it is much more limited than Beamer. > > >> actual state, roadmap... > > > > You can follow the code at bitbucket: > > https://bitbucket.org/adityam/complexslides/overview > > > > It still seems to be in a very early stage. But the ideas > > look very promising. > > Thomas and I have been discussing how to modularize the simpleslides > module for almost two years now, complex slides incorporates some of those > ideas but some details are still missing. > > I do use the module for my presentations, but it does not have all the > features needed for Thomas's presentations. So, it is in extremely > preliminary stage and the interface and the backend are bound to change. > It is for that reason that I have not released it. There is no fixed > roadmap. This is a very time comsuming project, and Thomas and I work on > it when we get some time or an itch to scratch. So, right now there is no > roadmap for release. > > We will be releasing parts of the module as they are ready. The first part > is the visual counter module https://github.com/adityam/visualcounter > which is ready to be released one I finish the documentation: > https://github.com/adityam/visualcounter/blob/master/visualcounter.tex > > I also have a "backgrounds" module in mind, which will be a collection of > different frame backgrounds. This can be combined with Wolfgang's > annotation module to have a more flexible implementation of the beamer > block environment. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Complexeslide module
Hi all, In some of the lasts Aditya's posts, one can understand that some work is already done on a new module: complexeslide. Is there any information about this new module: goal (beamer like?), actual state, roadmap... Thanks. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Le vendredi 20 janvier 2012, Wolfgang Schuster a écrit : > Am 20.01.2012 um 00:20 schrieb Romain Diss: > > Le vendredi 20 janvier 2012, Wolfgang Schuster a écrit : > >> Am 19.01.2012 um 23:57 schrieb Romain Diss: > >>>> Do you use TeXLive or the ConTeXt Suite (minimals)? > >>> > >>> I use the latest beta of the ConTeXt Suite (minimals): > >>> (...) > >> Can show your log file, you should see something like this: > >> (...) > > Here is what the log looks like: > > (...) > The right files are loaded, i was curious because you wrote this earlier: > > 1. When I run context on a context letter input (like the previous minimal > example), the log let me suppose that the \usemodule[letter] command loads > the t-letter.mkii instead of the t-letter.mkiv. Is this the case and why. > Moreover, t-letter.mkiv goal seems to only print an error message, even if > my context version is more recent than the one recommended. > > t-letter.mkii or t-letter.mkiv aren’t loaded with the context suite, both > files are only used with texlive 2011 but a recent context doesn’t use > them. Excuse me. I think I misunderstood the way the module was loaded. Just by curiosity, if none of the t-letter.* files are loaded, how does context know that it have to load the s-cor-* files when I type \usemodule[letter]? All the best -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Le vendredi 20 janvier 2012, Wolfgang Schuster a écrit : > Am 19.01.2012 um 23:57 schrieb Romain Diss: > >> Do you use TeXLive or the ConTeXt Suite (minimals)? > > > > I use the latest beta of the ConTeXt Suite (minimals): > > - context 2012.01.16 18:33 > > - luatex beta-0.70.1-2011051918 (rev 4277) > > Can show your log file, you should see something like this: > > resolvers > modules > loaded: 'letter' > interface > macros > processed file 's-cor-01.mkvi', delta 24 > (s-cor-01.mkvi > resolvers > modules > loaded: 'cor-00' > interface > macros > processed file 's-cor-00.mkvi', delta 1195 > (s-cor-00.mkvi<+ s-cor-00.lua>) (letter-imp-default.mkiv) > (letter-imp-dinb.mkiv > (letter-imp-default.mkiv))){/Users/wolf/context/beta/tex/texmf-context/fon > ts/map/pdftex/context/mkiv-base.map} Here is what the log looks like: resolvers > modules > loaded: 'letter' (/home/roms/opt/context/tex/texmf-modules/tex/context/third/letter/base/s- cor-01.mkvi resolvers > modules > loaded: 'cor-00' (/home/roms/opt/context/tex/texmf-modules/tex/context/third/letter/base/s- cor-00.mkvi<+ /home/roms/opt/context/tex/texmf- modules/tex/context/third/letter/base/s-cor-00.lua>) (/home/roms/opt/context/tex/texmf- modules/tex/context/third/letter/style/letter-imp-default.mkiv) (/home/roms/opt/context/tex/texmf- modules/tex/context/third/letter/style/letter-imp-dinb.mkiv (/home/roms/opt/context/tex/texmf- modules/tex/context/third/letter/style/letter-imp-default.mkiv))) {/home/roms/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv- base.map} and later in the log: mkiv lua stats > loaded tex modules- 2 requested, 2 found (*-cor-00 *-cor-01), 0 missing -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Thank you for the (always) quick response. Le jeudi 19 janvier 2012, Wolfgang Schuster a écrit : > Am 19.01.2012 um 23:06 schrieb Romain Diss: > > However, this leads me to new questions... > > > > 1. When I run context on a context letter input (like the previous > > minimal example), the log let me suppose that the \usemodule[letter] > > command loads the t-letter.mkii instead of the t-letter.mkiv. Is this > > the case and why. Moreover, t-letter.mkiv goal seems to only print an > > error message, even if my context version is more recent than the one > > recommended. > > Do you use TeXLive or the ConTeXt Suite (minimals)? I use the latest beta of the ConTeXt Suite (minimals): - context 2012.01.16 18:33 - luatex beta-0.70.1-2011051918 (rev 4277) -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Le jeudi 19 janvier 2012, Wolfgang Schuster a écrit : > Am 19.01.2012 um 15:28 schrieb Romain Diss: > > Le jeudi 19 janvier 2012, vous avez écrit : > >> Am 18.01.2012 um 21:14 schrieb Romain Diss: > >>> Hi, > >>> (...) > >>> So is there any command which replace \encl{}? And is there any > >>> documentation (even succint) of the new module? > >> > >> With the new version of the module I tried to get rid of a few things > >> which lead to problems or which didn’t fit into context normal syntax. > >> The \encl, \cc and \ps had been such a thing and all three value can > >> now only bet set as keyval argument, e.g. \startletter[enclosure=…] > >> > >> There isn’t a new documentation yet but I’ll give a short overview: > >> (...) > > > > Unfortunatly, I have now another problem which I didn't notice before > > because the \encl{} error didn't let me go to the end of the tex > > processing. (...) > > > It’s a bug a fixed a while ago but I hadn’t uploaded the new version yet. Thank you for the new version. It now works... However, this leads me to new questions... 1. When I run context on a context letter input (like the previous minimal example), the log let me suppose that the \usemodule[letter] command loads the t-letter.mkii instead of the t-letter.mkiv. Is this the case and why. Moreover, t-letter.mkiv goal seems to only print an error message, even if my context version is more recent than the one recommended. 2. The enclosure formatting is not good: there is no space between the encl. label and the text. Here is a minimal exemple: % start \usemodule[letter] \setupletter [enclosure=Something] \startletter \input tufte \stopletter % end Is this a bug or is this something to be set by hand? In the latter case, what is the best way to do (I think \setuplettertext[\s!en][\v!enclosure={encl:~}] should work but one have then to modify the text for all the languages). 3. I respond to one of my previous post: the \getbuffer command works as argument of the enclosure key. But in the following minimal example case, this leads to strange sapcing. Any idea of what causes this? %start \usemodule[letter] \startbuffer[enclosure] \startitemize \startitem something; \stopitem \startitem and something else. \stopitem \stopitemize \stopbuffer \setupletter [enclosure={\getbuffer[enclosure]}] \startletter \input tufte \stopletter % end Thanks in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Le jeudi 19 janvier 2012, Michael Green a écrit : > On Jan 19, 2012, at 7:32 AM, Romain Diss wrote: > > Unfortunately, I have now another problem which I didn't notice before > > because the \encl{} error didn't let me go to the end of the tex > > processing. (...) > Does your file start with a byte order mark (BOM)? I don't think. I checked with okteta and I saw nothing but maybe it is not the right way to do. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] MKIV only installation of the suite
Thank both you and Hans for your responses. Le jeudi 19 janvier 2012, Mojca Miklavec a écrit : > On Thu, Jan 19, 2012 at 15:41, Romain Diss wrote: > > Is there any way to install a MKIV only context suite (with no file used > > only for MKII). I know there is a --engine=luatex option for the > > first-setup.sh script but it doesn't prevent from installing MKII files. > I think it is --engines=luatex, but it only prevents installing > certain font files and pdftex/xetex binaries. In the first-setup.sh script, there is a comment where it is written -- engine=luatex (without 's'). All the best -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] MKIV only installation of the suite
Hi, Is there any way to install a MKIV only context suite (with no file used only for MKII). I know there is a --engine=luatex option for the first-setup.sh script but it doesn't prevent from installing MKII files. All the best -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Le jeudi 19 janvier 2012, vous avez écrit : > Am 18.01.2012 um 21:14 schrieb Romain Diss: > > Hi, > > (...) > > So is there any command which replace \encl{}? And is there any > > documentation (even succint) of the new module? > > With the new version of the module I tried to get rid of a few things which > lead to problems or which didn’t fit into context normal syntax. The > \encl, \cc and \ps had been such a thing and all three value can now only > bet set as keyval argument, e.g. \startletter[enclosure=…] I forgot another question: does the 'enclosure' key accept a \getbuffer command? I tried and it seems that it doesn't work but I am not sure because my input doesn't compile completely. Thanks -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Le jeudi 19 janvier 2012, vous avez écrit : > Am 18.01.2012 um 21:14 schrieb Romain Diss: > > Hi, > > (...) > > So is there any command which replace \encl{}? And is there any > > documentation (even succint) of the new module? > > With the new version of the module I tried to get rid of a few things which > lead to problems or which didn’t fit into context normal syntax. The > \encl, \cc and \ps had been such a thing and all three value can now only > bet set as keyval argument, e.g. \startletter[enclosure=…] > > There isn’t a new documentation yet but I’ll give a short overview: > (...) Thank you for all these clarifications. Unfortunatly, I have now another problem which I didn't notice before because the \encl{} error didn't let me go to the end of the tex processing. The following minimal example do not compile: % example \usemodule[letter] \startletter \input tufte \stopletter % end Instead, I get the following error message: ! Missing number, treated as zero. system > tex > error on line 100 in file letter.tex: Missing number, treated as zero ... \relax \pack_layers_set_content ..._pack_layers_x \relax \d_pack_layers_y_position ... \pack_layers_set_finish ...layers_set_content {#1} \fi \fi \else \writestatus... \correspondence_layer_place ...dence_layer_direct \fi \else \ifodd \c_corres... \executedefinedoverlay ...dp \the \everyoverlay #2 \else \lower \d_framed_tar... \pack_framed_process_background_indeed_external ... \else \kern -\framedbackgr... ... l.7 \stopletter Any idea which could help me? Thanks in advance. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Problem with letter module
Hi, I am writing a letter with the 'letter' module (mkiv and last beta) and the \encl{} command doesn't work anymore. I know that the module has been rewriten recently but I can't find any doc or examples of the new syntax. I tried to look at the source code but it doesn't help. So is there any command which replace \encl{}? And is there any documentation (even succint) of the new module? Thanks. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Luatex fatal error with math subscript and pagella font
Hi, Le lundi 09 janvier 2012, Wolfgang Schuster a écrit : > Am 09.01.2012 um 23:03 schrieb Romain Diss: > > The error is the following: > > !LuaTeX error: cannot open Type 1 font file for reading (qplri.pfb) > > ==> Fatal error occurred, no output PDF file produced! > > > > The problem is quite recent but I think it is not related to the last > > beta. > > The font “qplri.pfb” is broken or not available on your system. > > What happens when you write “mtxrun --find-file qplri.pfb” on the command > line? The command gave nothing. I tried to update the standalone installation few times but the file was still missing. So i tried to remove and purge completely the installation and re-install it from scratch... and surprisingly, the file is now here! Many thanks for your response and sorry for the noise... All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Luatex fatal error with math subscript and pagella font
Hi everybody. I got a fatal error from luatex when using math subscript with the pagella font. The other fonts tested are ok. Here is the minimal example: \setupbodyfont[pagella,9pt] \starttext This notation causes a fatal error: \m{x_y}. \stoptext The error is the following: !LuaTeX error: cannot open Type 1 font file for reading (qplri.pfb) ==> Fatal error occurred, no output PDF file produced! The problem is quite recent but I think it is not related to the last beta. Thanks. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Hi Hans, Reading the new code (just to see what the clean-up looks like), I saw that a lot of "intermediate" macros are now named whith a new scheme : underscore separated words, and something like a namespace in the macro name. So the question (just for curiosity)... Are there any documents which describe this new "API" and the recommended way to code in context. Thanks -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit and Hertz, lux, and degrees/minutes/seconds
Le jeudi 24 novembre 2011, robin.kirk...@csiro.au a écrit : > I attach a document (source and PDF) with some \unit test cases that don't > currently work (even with the most recent beta). It also has a number of > suggestions for improvement. Some of this should be construed as personal > opinion, but hopefully it isn't too controversial. As Wolfgang said, it's a nice summary and I agree with most of the suggestions. However. this points out some conventions which are specific to certain languages: - for example, in french, the percent symbol is preceded by a space. - again in french, the liter symbol is lowercase l (althought the uppercase L is also temporarly accepted). All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Footnote bug with \setuparranging
Le vendredi 18 novembre 2011, Hans Hagen a écrit : > On 17-11-2011 20:41, Romain Diss wrote: > > I have a small problem with footnotes. If I use \setuparranging to print > > two A5 pages on one A4, the footnote index of the left page footnotes go > > to the right page. > > also in the latest version? Tested with context 2011.11.17 23:31 and it works perfectly now. Thank you for the awesome quick fix. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Footnote bug with \setuparranging
Hi all, I have a small problem with footnotes. If I use \setuparranging to print two A5 pages on one A4, the footnote index of the left page footnotes go to the right page. Here is a minimal example. %% START %% \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \starttext \dorecurse{2}{\input tufte} Test of a small footnote \footnote{This one is numeroted on the wrong page.} with some usefull text. \dorecurse{6}{\input knuth} And another footnote test on the other side \footnote{This one works.}. \stoptext %% END %% Any idea of what to do? All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] units
Hi, Le jeudi 17 novembre 2011, Hans Hagen a écrit : > The next beta will have some fixes, additional units and provide Thanks for the new beta which fixes the strange behaviours precedently mentioned (milli prefix, disparition of some unit symbols). However, I inadvertently found a small bug: 3\unit[Hz] and 3\unit[hertz] give 3 hz and 3 hz (without upcase). All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] User macros and settings: environment or style module?
Hi all, Like any of the context users who write documents, I use some personal macros, definitions, setups... In most of the context manuals, it is recommended to declare all of these personal settings in an environment file. This file is then included by: \environment myStyle However, in certain case, these settings goes in a style module file, like what is done for MyWay articles where one includes the style file with: \usemodule[myStyle] So my question is: Is there any technical reason to choose between those two possibilities or is it only a matter of personal preference? All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Small issue with dimensions
On 14 nov 2011, Vedran Miletić wrote: > Datuma 14. studenoga 2011. 20:19 Romain Diss je > napisao/la: > > On 14 nov 2011, Vedran Miletić wrote: > >> the following code > >> > >> \starttext > >> 1\unit{bit / second} > >> \stoptext > >> > >> gives > >> 1 econd > > > > It works correctly here with the latest beta. It gives "1 bit/s". > > It does. I posted the wrong code, sorry. Therefore: > > \starttext > 1\unit{second} > \stoptext > > gives 1 econd. But \unit{1 second} gives the correct result... -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Small issue with dimensions
Hi, On 14 nov 2011, Vedran Miletić wrote: > the following code > > \starttext > 1\unit{bit / second} > \stoptext > > gives > 1 econd It works correctly here with the latest beta. It gives "1 bit/s". I take the opportunity of this mail to mention again another \unit problem. I copy/paste here a part of a mail I sent two weeks ago but which didn't get any answer... > It seems that some unit combinations don't work very well with the \unit > macro. I have some problems with the m- (milli-) prefix but some tests reveal > other strange errors. > Here is a minimal example. The entries 02, 07, 08, 09, 10, 11, 12 and 15 > cause problem : > \starttext > \startbuffer > 00: \unit{10 mm} > 01: \unit{10 km} > 02: \unit{10,2 mA} > 03: \unit{123 kA} > 04: \unit{0,001 MA} > 05: \unit{1 dal} > 06: \unit{2.21 GW} > 07: \unit{345 mW} > 08: \unit{152.20 mHz} > 09: \unit{55.5 mmol} > 10: \unit{6.7 mol/l} > 11: \unit{125 g/l} > 12: \unit{125 g / l} > 13: \unit{125 km/s} > 14: \unit{125 m/s} > 15: \unit{125 mA/s} > 16: 1\unit{bit / second} > \stopbuffer > \typebuffer > Result: \startlines \getbuffer \stoplines > \stoptext All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 manual section titles
Hi, On 14.11.2011, Andreas Harder wrote: > On 13.11.2011, at 23:24, Romain Diss wrote: > > I'm trying to make some section titles which look like the ones of the > > metafun manual: title and number underlined [...] > > you can try something like this: > [...] Thank you very much. It works perfectly! It take me some time to understand every line but the solution is quite nice. Context never stop to surprise me with all these "not so much documented" powerfull macros... -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 section titles
Hello, I'm trying to make some section titles which look like the ones of the metafun manual: title and number underlined, with number in margin. I thougth it would not be too hard but I can't do it. Actually, I'm using a frame with an overlay with a \startuniqueMPgraphic to underline the title but I can't make a frame for both the section number which is in the margin and the text which is not. I tried to make the underlining of the title text extend in the margin but it's not easy because the frame background seems to be centered automatically on the frame. Maybe I should adjust some offsets but how can I know the size of the section number... Anybody can help me on that problem ? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \unit problem
Hello all, It seems that some unit combinations don't work very well with the \unit macro. I have some problems with the m- (milli-) prefix but some tests reveal other strange errors. Here is a not so minimal example. The first 33 entries come from "phys- dim.mkiv" and work well. In the entries 100 to 115 which I added, the 102, 107, 108, 109, 110, 111, 112 and 115 cause problem : \starttext \startbuffer 01: $10\unit{km/h}$ 02: $\unit{10 km/h}$ 03: \unit{km/h} 04: \unit{10 km/h} 05: \unit{10 km/h} 06: \unit{~1 km/h} 07: 10\unit{km/h} 08: 10 \unit{km/h} 09: $10 \unit{km/h}$ 10: 10 \unit{KiloMeter/Hour} 11: 10 \unit{kilometer/hour} 12: 10 \unit{km/h} 13: 10 \unit{kilometer per hour} 14: 10 \unit{km / h} 15: 10 \unit{ km / h } 16: 10 \unit{km/ms2} 17: 10 \unit{meter per second} 18: 10 \unit{cubic meter} 19: 10 \unit{cubic meter per second} 21: 10 \unit{cubic meter / second} 22: $10 \unit{cubic meter / second}$ 23: 30 \unit{kilo pascal } 24: 30 \unit{kilo pascal square meter / second} 25: 30 \unit{kilo pascal square meter / kelvin second} 26: \unit{30 kilo pascal square meter / kelvin second} 27: $30 \unit{kilo pascal square meter / kelvin second }$ 28: 30 \unit{crap} 29: 30 \unit{AC} 30: $\frac{10 \unit{m/s}}{20 \unit{m/s}} $ 31: {\ss 30 \unit{kilo pascal square meter / second kelvin}} 32: \unit{123.22^-3 km/s} 33: \unit{123.22e-3 km/s} 100: \unit{10 mm} 101: \unit{10 km} 102: \unit{10,2 mA} 103: \unit{123 kA} 104: \unit{0,001 MA} 105: \unit{1 dal} 106: \unit{2.21 GW} 107: \unit{345 mW} 108: \unit{152.20 mHz} 109: \unit{55.5 mmol} 110: \unit{6.7 mol/l} 111: \unit{125 g/l} 112: \unit{125 g / l} 113: \unit{125 km/s} 114: \unit{125 m/s} 115: \unit{125 mA/s} \stopbuffer \typebuffer Result: \startlines \getbuffer \stoplines \stoptext Thank you for your help. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Possible bug with \date in french
On 10-10-2011, you wrote > On 10-10-2011 14:39, Romain Diss wrote: > > Hi, > > > > Since a recent upgrade of the beta the \date command give "day+ octobre > > 2011" if \mainlanguage[fr] is set. Minimal example: > > > > \mainlanguage[fr] > > \starttext > > > > \date > > \language[en] > > (\date) > > > > \stoptext > > (...) > does day:mnem work ok? I had : \setuplanguage [fr] [date={day:mnem,space,month,space,year}] to the minimal exemple and it prints "10 mai 2011". Don’t know if it is exactly what you meant I should test but it seems to work... -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Possible bug with \date in french
Hi, Since a recent upgrade of the beta the \date command give "day+ octobre 2011" if \mainlanguage[fr] is set. Minimal example: \mainlanguage[fr] \starttext \date \language[en] (\date) \stoptext A rapid search lead me to these lines (560-571) in "lang-def.mkiv": \installlanguage [\s!fr] [\c!spacing=\v!packed, (...) \c!date={\v!day+,\v!space,\v!month,\v!space,\v!year}] where the "day+" appears. Several lines further (line 670), one found: \defineconversion [\s!fr] [\v!day+] [\frordinaldaynumber] but I have not find any file defining "\frordinaldaynumber" (except "lang- ita.mkii" for MKII). Is there something to fix in the beta or is there something I missed ? Thank you in advance. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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: additional space in \inlineX{}
On tue, 22 Sep 2011, Aditya Mahajan wrote: > > This change does nothing here but the following works: > You also need to regenerate the format. Done... and it works of course! So obvious but I forgot to do it. > > Another not so linked question: what is the .mkvi extension for (in > > file- res.mkvi)? The future of mkiv? > > Yes. This allows you to write symbolic variable names (#true, #false) > rather than numeric variables (#1, #2). I think this is documented in the > mkiv manual. Ok thank you very much for all these informations. Nevertheless, I made some search on the wiki and I didn’t found much about mkvi. It only says that the syntax is different. I also made a search with 'pdfgrep' on all the context documents, examples, magazines, manuals... and I found nothing. Is the mkiv manual you mentioned something very recent? All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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: additional space in \inlineX{}
On tue, 22 Sep 2011, Aditya Mahajan wrote: > In file-res.mkvi change > > \long\def\dodoreadfile#true#false% > - {#true > + {#true% > \relax > \normalinput{\readfilename}% > \relax} This change does nothing here but the following works: > \def\InputFile#1{\input#1\relax} > \setupvimtyping[readcommand=\InputFile] Another not so linked question: what is the .mkvi extension for (in file- res.mkvi)? The future of mkiv? -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___