Re: [NTG-context] Float placement problem
On Thu 29 Sep 2011, luigi scarso wrote: > I 've put \page just to show quickly the effect, but maybe there are > still problems > > \setuplayout[location=doublesided,width=20pc] > \setuppagenumbering[alternative=doublesided,location={margin,header}] > \setupfloat[figure][location=inner] > \showframe > \starttext > % An extra page. \page[yes] > \dorecurse{40}{ > \placefigure[here]{caption}{\externalfigure[cow.pdf][width=30pc]}} > \stoptext Yes, that's pretty bad... in subsequent tests I've found that ‘diluting’ the figures with sufficient text (like adding \page) fixes the problem -- unfortunately mixing [here] and [page] placement (as I need to do in my document) messes it up again. In addition, several of my tests crash ConTeXt with the error ‘Argument of \rootfloatparameter has an extra }’, for example: \setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided,location={margin,header}] \setupfloat[figure][location=inner] \showframe \starttext \input knuth \dorecurse{4}{ \placefigure[here]{caption}{\externalfigure[cow.pdf][width=17cm]} \input knuth \placefigure[page]{caption}{\externalfigure[cow.pdf][width=17cm]} \input knuth % \input knuth % uncomment this line to make the file work } \stoptext Again, this works with v2011.02.25 (although figure numbers are mixed up). I think I'll have to give up on this now and revert to the old version, but I'll put a pointer to this thread on the Wiki in case anyone else runs into similar problems. Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
Am 29.09.2011 um 22:29 schrieb john Culleton: > Excellent. Now if there is a way to make Myriad the font of choice for > sans-serif I will be deliriously happy. \usetypescriptfile[type-adobe] \setupbodyfont[minion] \starttext Minion Pro and \ss Myriad Pro \stoptext or \usemodule[simplefonts] \setmainfont[Minion Pro] \setsansfont[Myriad Pro] \starttext Minion Pro and \ss Myriad Pro \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, 29 Sep 2011 21:07:08 +0200 Wolfgang Schuster wrote: > > Am 29.09.2011 um 21:07 schrieb john Culleton: > > > OK. Can you give me the url that points to the latest Context suite? > > The offerings I see are dated 2010 etc. I run Slackware Linux 13.37. > > http://wiki.contextgarden.net/ConTeXt_Standalone > > Wolfgang > > ___ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context webpage : > http://www.pragma-ade.nl / http://tex.aanhet.net archive : > http://foundry.supelec.fr/projects/contextrev/ wiki : > http://contextgarden.net > ___ Excellent. Now if there is a way to make Myriad the font of choice for sans-serif I will be deliriously happy. And I promise not to bother the list for a while. -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] metapost to pdf on the fly
On Thu, 29 Sep 2011, Meer, H. van der wrote: I would like to generate metapost figures in separate pdf-files (in some convenient directory, they are reused elsewhere). This as part of a project structure. I know that on a separate run such a pdf can be generated with: context figurefile running on input \input some-metapost-inclusions \starttext \startMPpage .. \stopMPpage \stoptext But the idea is to do it on the fly while typesetting a project (using mode=*first to prevent further iterations): .. \component figurefile .. And in the figurefile \startcomponent figurefile \environment some-metapost-inclusions \starttext .. BUT THEN WHAT? As such it is not sufficient for the goal proposed. Can this be done at all? What I usually do is have all the figures in separate buffers: \startenvironment figures \startbuffer[fig-1] ... \stopbuffer \stopenvironment and in the main file \environment figures \starttext \processMPbuffer[fig-1] \stoptext This way you can also combine multiple figures using \processMPbuffer[fig-common,fig-1] etc. The metapost processing is fast enough that there is no noticable speed difference. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] readfile not understood
Am 29.09.2011 um 21:10 schrieb Meer, H. van der: > Finding the file works with \ReadFile{} works. But is generates another > problem because > > \input ../../../metapost-setup > and > \ReadFile{metapost-setup} > > behave differently! The \input process my \startMPinclusions correctly but > the ReadFile does not, because the following metapost has the definitions > missing. When you have files which are shared between many different files, then put the file in the tex directory. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] readfile not understood
Finding the file works with \ReadFile{} works. But is generates another problem because \input ../../../metapost-setup and \ReadFile{metapost-setup} behave differently! The \input process my \startMPinclusions correctly but the ReadFile does not, because the following metapost has the definitions missing. Hans van der Meer On 29 sep. 2011, at 21:05, Wolfgang Schuster wrote: > > Am 29.09.2011 um 20:57 schrieb Meer, H. van der: > >> I do not understand while \readfile behaves differently from \input with >> regard to TeX-code processing. >> I have the following code: >> >> \readfile{metapost-setup} %(file with metapost inclusions) >> \starttext >> \startMPpage >> .. >> \stopMPpage >> \stoptext >> >> Replace the \readfile by: >> \input ../../../metapost-setup %(file with metapost inclusions) >> works ok. >> But with \readfile seems to be skipped silently, that is without any sign of >> it in the log. The convenience of \readfile should be, if I understand >> correctly, that it searches upwards to the root of directory tree. Which >> makes the series of ../'s unnecessary and allows for easily pushing the >> tex-files further down when their number grows. >> Can it be explained? > > \readfile expects three arguments, replace it with \ReadFile which expects > only one. > > Wolfgang > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] readfile not understood
Am 29.09.2011 um 20:57 schrieb Meer, H. van der: > I do not understand while \readfile behaves differently from \input with > regard to TeX-code processing. > I have the following code: > > \readfile{metapost-setup} %(file with metapost inclusions) > \starttext > \startMPpage > .. > \stopMPpage > \stoptext > > Replace the \readfile by: > \input ../../../metapost-setup %(file with metapost inclusions) > works ok. > But with \readfile seems to be skipped silently, that is without any sign of > it in the log. The convenience of \readfile should be, if I understand > correctly, that it searches upwards to the root of directory tree. Which > makes the series of ../'s unnecessary and allows for easily pushing the > tex-files further down when their number grows. > Can it be explained? \readfile expects three arguments, replace it with \ReadFile which expects only one. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
Am 29.09.2011 um 21:07 schrieb john Culleton: > OK. Can you give me the url that points to the latest Context suite? > The offerings I see are dated 2010 etc. I run Slackware Linux 13.37. http://wiki.contextgarden.net/ConTeXt_Standalone Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, 29 Sep 2011 18:22:17 +0200 luigi scarso wrote: > On Thu, Sep 29, 2011 at 6:19 PM, john Culleton > wrote: > > On Thu, 29 Sep 2011 17:19:27 +0200 > > Wolfgang Schuster wrote: > > > >> > >> Am 29.09.2011 um 17:10 schrieb john Culleton: > >> > >> > > >> > These two fonts are in /usr/share/fonts/OTF. > >> > In that directory they are listed in fonts.dir. > >> > I want to use simplefonts to use Minion as the base font. > >> > I ran the various commands described in the Wiki page: > >> > > >> > http://wiki.contextgarden.net/Fonts_in_LuaTeX > >> > and got the two fonts listed in the font database. > >> > > >> > I put the following in my MKIV context file: > >> > ... > >> > \usemodule[simplefonts] % load the module > >> > \setmainfont[minionproregular] % > >> > > >> > %\whitespace[line] > >> > > >> > \usetypescript[serif,sans][hanging][pure] > >> > \setupalign[hanging] > >> > \setupbodyfont[minionproregular,14pt] > >> > >> To use the fonts which are shipped with Adobe Reader you can use > >> two different methods. > >> > >> Method 1: > >> > >> \usemodule[simplefonts] > >> > >> \setmainfont[Minion Pro][protrusion=quality] > >> > >> \setupalign[hanging] > >> > >> \starttext\showframe > >> \input tufte > >> \stoptext > >> > > > > Put that exact text in a file test.tex, ran > > context test.tex > > and got the same error message: > > mtx-context.lua:675: attempt to call field 'locate_format' (a nil > > value) > > > > This message cropped up after I ran some of the scripts in the wiki. > > I seem to have messed something up in that process. > > > > Unless I receive other directions here I am considering reinstalling > > texlive-2011. > I strongly suggest to you to install latest suite (was standalone was > minimals ) into a separate dir > (ie /opt/luatex/suite-2011-09-29) > and eventually copy the fonts you need into that folder. > You can always use the TeXLive in a separate shell OK. Can you give me the url that points to the latest Context suite? The offerings I see are dated 2010 etc. I run Slackware Linux 13.37. -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] readfile not understood
I do not understand while \readfile behaves differently from \input with regard to TeX-code processing. I have the following code: \readfile{metapost-setup} %(file with metapost inclusions) \starttext \startMPpage .. \stopMPpage \stoptext Replace the \readfile by: \input ../../../metapost-setup %(file with metapost inclusions) works ok. But with \readfile seems to be skipped silently, that is without any sign of it in the log. The convenience of \readfile should be, if I understand correctly, that it searches upwards to the root of directory tree. Which makes the series of ../'s unnecessary and allows for easily pushing the tex-files further down when their number grows. Can it be explained? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] metapost to pdf on the fly
I would like to generate metapost figures in separate pdf-files (in some convenient directory, they are reused elsewhere). This as part of a project structure. I know that on a separate run such a pdf can be generated with: context figurefile running on input \input some-metapost-inclusions \starttext \startMPpage .. \stopMPpage \stoptext But the idea is to do it on the fly while typesetting a project (using mode=*first to prevent further iterations): .. \component figurefile .. And in the figurefile \startcomponent figurefile \environment some-metapost-inclusions \starttext .. BUT THEN WHAT? As such it is not sufficient for the goal proposed. Can this be done at all? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, Sep 29, 2011 at 6:41 PM, john Culleton wrote: > On Thu, 29 Sep 2011 18:13:12 +0200 > luigi scarso wrote: > >> On Thu, Sep 29, 2011 at 5:38 PM, john Culleton >> wrote: >> > On Thu, 29 Sep 2011 17:12:07 +0200 >> > luigi scarso wrote: >> > >> >> On Thu, Sep 29, 2011 at 5:10 PM, john Culleton >> >> wrote: >> >> > >> >> > These two fonts are in /usr/share/fonts/OTF. >> >> > In that directory they are listed in fonts.dir. >> >> > I want to use simplefonts to use Minion as the base font. >> >> > I ran the various commands described in the Wiki page: >> >> > >> >> > http://wiki.contextgarden.net/Fonts_in_LuaTeX >> >> > and got the two fonts listed in the font database. >> >> > >> >> > I put the following in my MKIV context file: >> >> > ... >> >> > \usemodule[simplefonts] % load the module >> >> > \setmainfont[minionproregular] % >> >> > >> >> > %\whitespace[line] >> >> > >> >> > \usetypescript[serif,sans][hanging][pure] >> >> > \setupalign[hanging] >> >> > \setupbodyfont[minionproregular,14pt] >> >> > ... >> >> > Now I get a new error message: >> >> > - >> >> > mtx-context.lua:675: attempt to call field 'locate_format' (a nil >> >> > value) >> >> > >> >> > Any suggestions? >> >> which context version ? >> > 2011.05.18 18:04 >> > >> > As delivered with TeXLive 2011. >> hm, quite old but possible right. >> Can you try >> 1)mkdir texmf-project/test >> 2)## copy Minion fonts onto texmf-project/test >> 3) cd texmf-project/test >> 4) mtxrun --script fonts --reload >> 5) mtxrun --generate >> 6) context test.tex >> where test.tex is >> >> \usemodule[simplefonts] % load the module >> \setmainfont[minionproregular] % >> >> %\whitespace[line] >> >> \usetypescript[serif,sans][hanging][pure] >> \setupalign[hanging] >> >> >> \starttext >> >> \input knuth >> >> \stoptext >> >> in latest suite is ok. > > Now that works! The error message went away. The program compiles a pdf > file using the Minion Pro font. But the same test.tex program in the > parent directory came up with the same error. So long as I run context > etc. in that new directory, including my own document book.tex > I get good results. When I move to another directory the world goes > crazy again. > > I am ready for your next instruction, Sensei Luigi :<) :-) not so soon -- it's dinner time here anyway --- apart the notes from wolfgang, and assuming the suite aka standalone aka minimals installation you can 1) copy the minion font in tex/texmf/fonts/opentype/adobe/minion 2) mtxrun --script fonts --reload 3) mtxrun --generate 4) try context test.tex in a folder without the fonts, just to check that it's ok The location can vary, but I like this one ; as Wolfgang said, test.tex is a mix of mkiv and mkii and you should use \setmainfont[minionpro] instead of \setmainfont[minionproregular] % and \definefontfeature[default][default][protrusion=quality] instead of \usetypescript[serif,sans][hanging][pure] -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] usepath?
Am 29.09.2011 um 17:18 schrieb Meer, H. van der: > What are \usepath and \usesubpath supposed to do? I looked into the mkiv-code > but could not find an explanation. It’s sometimes easier to look at the definition of the MkII version of the command to understand how something works. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] usepath?
Am 29.09.2011 um 18:54 schrieb Meer, H. van der: > This didn't work for me. I guess it has to do with some misunderstanding > about the directory from where projects start reckoning. The directory > structure is: > > directory-project > directory-project/product (context runs from here) > directory-project/product/component-a-subfiles > directory-project/product/component-b-subfiles > > Code in directory-project/product/component-a-subfile does \input but cannot > find files in directories below or in directories alongside. My question is > "from what directory starts the search tree? When you process the product it starts from the directory where the product is (directory-project/product) and when you process a component it starts from the directory where the component files is (“directory-project/product/component-a-subfiles” or “directory-project/product/component-b-subfiles”). You problem could be that you use \input to load the components but you need the \component command. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] usepath?
This didn't work for me. I guess it has to do with some misunderstanding about the directory from where projects start reckoning. The directory structure is: directory-project directory-project/product (context runs from here) directory-project/product/component-a-subfiles directory-project/product/component-b-subfiles Code in directory-project/product/component-a-subfile does \input but cannot find files in directories below or in directories alongside. My question is "from what directory starts the search tree? Hans van der Meer On 29 sep. 2011, at 17:23, Wolfgang Schuster wrote: > > Am 29.09.2011 um 17:18 schrieb Meer, H. van der: > >> What are \usepath and \usesubpath supposed to do? I looked into the >> mkiv-code but could not find an explanation. >> I have a problem finding files from within a project-product-component >> structure and I hoped to solve through these macros. Sofar without success. >> In the wiki there is an item on project structure containing a \usepath but >> that didn't help me out. > > You can specify with them subdirectories where context looks when you include > a component file, e.g. instead of > > \startproduct product > > \component subdirectory/component-1 > \component subdirectory/component-2 > > \stopproduct > > you can write > > \startproduct product > > \usepath[subdirectory] > > \component component-1 > \component component-2 > > \stopproduct > > Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, 29 Sep 2011 18:13:12 +0200 luigi scarso wrote: > On Thu, Sep 29, 2011 at 5:38 PM, john Culleton > wrote: > > On Thu, 29 Sep 2011 17:12:07 +0200 > > luigi scarso wrote: > > > >> On Thu, Sep 29, 2011 at 5:10 PM, john Culleton > >> wrote: > >> > > >> > These two fonts are in /usr/share/fonts/OTF. > >> > In that directory they are listed in fonts.dir. > >> > I want to use simplefonts to use Minion as the base font. > >> > I ran the various commands described in the Wiki page: > >> > > >> > http://wiki.contextgarden.net/Fonts_in_LuaTeX > >> > and got the two fonts listed in the font database. > >> > > >> > I put the following in my MKIV context file: > >> > ... > >> > \usemodule[simplefonts] % load the module > >> > \setmainfont[minionproregular] % > >> > > >> > %\whitespace[line] > >> > > >> > \usetypescript[serif,sans][hanging][pure] > >> > \setupalign[hanging] > >> > \setupbodyfont[minionproregular,14pt] > >> > ... > >> > Now I get a new error message: > >> > - > >> > mtx-context.lua:675: attempt to call field 'locate_format' (a nil > >> > value) > >> > > >> > Any suggestions? > >> which context version ? > > 2011.05.18 18:04 > > > > As delivered with TeXLive 2011. > hm, quite old but possible right. > Can you try > 1)mkdir texmf-project/test > 2)## copy Minion fonts onto texmf-project/test > 3) cd texmf-project/test > 4) mtxrun --script fonts --reload > 5) mtxrun --generate > 6) context test.tex > where test.tex is > > \usemodule[simplefonts] % load the module > \setmainfont[minionproregular] % > > %\whitespace[line] > > \usetypescript[serif,sans][hanging][pure] > \setupalign[hanging] > > > \starttext > > \input knuth > > \stoptext > > in latest suite is ok. Now that works! The error message went away. The program compiles a pdf file using the Minion Pro font. But the same test.tex program in the parent directory came up with the same error. So long as I run context etc. in that new directory, including my own document book.tex I get good results. When I move to another directory the world goes crazy again. I am ready for your next instruction, Sensei Luigi :<) -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
Am 29.09.2011 um 18:13 schrieb luigi scarso: > > \setmainfont[minionproregular] % Use “Minion Pro” (could also be lowercase and without spaces) but not “minionproregular” because simplefonts can’t then find the italic and bold styles. > \usetypescript[serif,sans][hanging][pure] This is MkII, for MkIV overload the default set with “\definefontfeature[default][default][protrusion=quality]”. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, Sep 29, 2011 at 6:19 PM, john Culleton wrote: > On Thu, 29 Sep 2011 17:19:27 +0200 > Wolfgang Schuster wrote: > >> >> Am 29.09.2011 um 17:10 schrieb john Culleton: >> >> > >> > These two fonts are in /usr/share/fonts/OTF. >> > In that directory they are listed in fonts.dir. >> > I want to use simplefonts to use Minion as the base font. >> > I ran the various commands described in the Wiki page: >> > >> > http://wiki.contextgarden.net/Fonts_in_LuaTeX >> > and got the two fonts listed in the font database. >> > >> > I put the following in my MKIV context file: >> > ... >> > \usemodule[simplefonts] % load the module >> > \setmainfont[minionproregular] % >> > >> > %\whitespace[line] >> > >> > \usetypescript[serif,sans][hanging][pure] >> > \setupalign[hanging] >> > \setupbodyfont[minionproregular,14pt] >> >> To use the fonts which are shipped with Adobe Reader you can use two >> different methods. >> >> Method 1: >> >> \usemodule[simplefonts] >> >> \setmainfont[Minion Pro][protrusion=quality] >> >> \setupalign[hanging] >> >> \starttext\showframe >> \input tufte >> \stoptext >> > > Put that exact text in a file test.tex, ran > context test.tex > and got the same error message: > mtx-context.lua:675: attempt to call field 'locate_format' (a nil value) > > This message cropped up after I ran some of the scripts in the wiki. > I seem to have messed something up in that process. > > Unless I receive other directions here I am considering reinstalling > texlive-2011. I strongly suggest to you to install latest suite (was standalone was minimals ) into a separate dir (ie /opt/luatex/suite-2011-09-29) and eventually copy the fonts you need into that folder. You can always use the TeXLive in a separate shell -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, 29 Sep 2011 17:19:27 +0200 Wolfgang Schuster wrote: > > Am 29.09.2011 um 17:10 schrieb john Culleton: > > > > > These two fonts are in /usr/share/fonts/OTF. > > In that directory they are listed in fonts.dir. > > I want to use simplefonts to use Minion as the base font. > > I ran the various commands described in the Wiki page: > > > > http://wiki.contextgarden.net/Fonts_in_LuaTeX > > and got the two fonts listed in the font database. > > > > I put the following in my MKIV context file: > > ... > > \usemodule[simplefonts] % load the module > > \setmainfont[minionproregular] % > > > > %\whitespace[line] > > > > \usetypescript[serif,sans][hanging][pure] > > \setupalign[hanging] > > \setupbodyfont[minionproregular,14pt] > > To use the fonts which are shipped with Adobe Reader you can use two > different methods. > > Method 1: > > \usemodule[simplefonts] > > \setmainfont[Minion Pro][protrusion=quality] > > \setupalign[hanging] > > \starttext\showframe > \input tufte > \stoptext > Put that exact text in a file test.tex, ran context test.tex and got the same error message: mtx-context.lua:675: attempt to call field 'locate_format' (a nil value) This message cropped up after I ran some of the scripts in the wiki. I seem to have messed something up in that process. Unless I receive other directions here I am considering reinstalling texlive-2011. -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] intelligent commas in math (in LaTeX)
On Mon, 26 Sep 2011, Mojca Miklavec wrote: http://tug.org/pracjourn/2011-1/beccari.html Short summary: This allows the comma in $1, 2, 3$ to be have as punctuation comma (similar to \setupmathematics[autopunct=no]) and $1,23$ to behave as decimal comma (similar to \setupmatematics[autopunct=yes]). Since it is targeting pdftex and xetex engines, it makes , an active char in mathmode and redefines it as a macro that uses look ahead to check if the next token is a digit. In principle a cleaner implementation is possible in luatex (without using active characters), but I am not completely sure about this. It will be better to handle this as part of \mnum macro. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, Sep 29, 2011 at 5:38 PM, john Culleton wrote: > On Thu, 29 Sep 2011 17:12:07 +0200 > luigi scarso wrote: > >> On Thu, Sep 29, 2011 at 5:10 PM, john Culleton >> wrote: >> > >> > These two fonts are in /usr/share/fonts/OTF. >> > In that directory they are listed in fonts.dir. >> > I want to use simplefonts to use Minion as the base font. >> > I ran the various commands described in the Wiki page: >> > >> > http://wiki.contextgarden.net/Fonts_in_LuaTeX >> > and got the two fonts listed in the font database. >> > >> > I put the following in my MKIV context file: >> > ... >> > \usemodule[simplefonts] % load the module >> > \setmainfont[minionproregular] % >> > >> > %\whitespace[line] >> > >> > \usetypescript[serif,sans][hanging][pure] >> > \setupalign[hanging] >> > \setupbodyfont[minionproregular,14pt] >> > ... >> > Now I get a new error message: >> > - >> > mtx-context.lua:675: attempt to call field 'locate_format' (a nil >> > value) >> > >> > Any suggestions? >> which context version ? > 2011.05.18 18:04 > > As delivered with TeXLive 2011. hm, quite old but possible right. Can you try 1)mkdir texmf-project/test 2)## copy Minion fonts onto texmf-project/test 3) cd texmf-project/test 4) mtxrun --script fonts --reload 5) mtxrun --generate 6) context test.tex where test.tex is \usemodule[simplefonts] % load the module \setmainfont[minionproregular] % %\whitespace[line] \usetypescript[serif,sans][hanging][pure] \setupalign[hanging] \starttext \input knuth \stoptext in latest suite is ok. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, Sep 29, 2011 at 05:19:27PM +0200, Wolfgang Schuster wrote: > > To use the fonts which are shipped with Adobe Reader you can use two > different methods. > > Method 1: > > \usemodule[simplefonts] > > \setmainfont[Minion Pro][protrusion=quality] > > \setupalign[hanging] > > \starttext\showframe > \input tufte > \stoptext > > Method 2: > > \usetypescriptfile[type-adobe] > > \definefontfeature[default][default][protrusion=quality] > > \setupbodyfont[minion] > > \setupalign[hanging] > > \starttext\showframe > \input tufte > \stoptext > > Wolfgang Please note that the path to the Adobe fonts must be included in the environment. On my system, this works if I have: export OSFONTDIR="$HOME/.fonts;/usr/local/share/fonts;/usr/local/Adobe/Reader9/ENU/Adobe/Reader9/Resource/Font/" Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Finding Minion and Myriad
On Thu, 29 Sep 2011 17:12:07 +0200 luigi scarso wrote: > On Thu, Sep 29, 2011 at 5:10 PM, john Culleton > wrote: > > > > These two fonts are in /usr/share/fonts/OTF. > > In that directory they are listed in fonts.dir. > > I want to use simplefonts to use Minion as the base font. > > I ran the various commands described in the Wiki page: > > > > http://wiki.contextgarden.net/Fonts_in_LuaTeX > > and got the two fonts listed in the font database. > > > > I put the following in my MKIV context file: > > ... > > \usemodule[simplefonts] % load the module > > \setmainfont[minionproregular] % > > > > %\whitespace[line] > > > > \usetypescript[serif,sans][hanging][pure] > > \setupalign[hanging] > > \setupbodyfont[minionproregular,14pt] > > ... > > Now I get a new error message: > > - > > mtx-context.lua:675: attempt to call field 'locate_format' (a nil > > value) > > > > Any suggestions? > which context version ? 2011.05.18 18:04 As delivered with TeXLive 2011. -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] usepath?
Am 29.09.2011 um 17:18 schrieb Meer, H. van der: > What are \usepath and \usesubpath supposed to do? I looked into the mkiv-code > but could not find an explanation. > I have a problem finding files from within a project-product-component > structure and I hoped to solve through these macros. Sofar without success. > In the wiki there is an item on project structure containing a \usepath but > that didn't help me out. You can specify with them subdirectories where context looks when you include a component file, e.g. instead of \startproduct product \component subdirectory/component-1 \component subdirectory/component-2 \stopproduct you can write \startproduct product \usepath[subdirectory] \component component-1 \component component-2 \stopproduct Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
Am 29.09.2011 um 17:10 schrieb john Culleton: > > These two fonts are in /usr/share/fonts/OTF. > In that directory they are listed in fonts.dir. > I want to use simplefonts to use Minion as the base font. > I ran the various commands described in the Wiki page: > > http://wiki.contextgarden.net/Fonts_in_LuaTeX > and got the two fonts listed in the font database. > > I put the following in my MKIV context file: > ... > \usemodule[simplefonts] % load the module > \setmainfont[minionproregular] % > > %\whitespace[line] > > \usetypescript[serif,sans][hanging][pure] > \setupalign[hanging] > \setupbodyfont[minionproregular,14pt] To use the fonts which are shipped with Adobe Reader you can use two different methods. Method 1: \usemodule[simplefonts] \setmainfont[Minion Pro][protrusion=quality] \setupalign[hanging] \starttext\showframe \input tufte \stoptext Method 2: \usetypescriptfile[type-adobe] \definefontfeature[default][default][protrusion=quality] \setupbodyfont[minion] \setupalign[hanging] \starttext\showframe \input tufte \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] usepath?
What are \usepath and \usesubpath supposed to do? I looked into the mkiv-code but could not find an explanation. I have a problem finding files from within a project-product-component structure and I hoped to solve through these macros. Sofar without success. In the wiki there is an item on project structure containing a \usepath but that didn't help me out. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding Minion and Myriad
On Thu, Sep 29, 2011 at 5:10 PM, john Culleton wrote: > > These two fonts are in /usr/share/fonts/OTF. > In that directory they are listed in fonts.dir. > I want to use simplefonts to use Minion as the base font. > I ran the various commands described in the Wiki page: > > http://wiki.contextgarden.net/Fonts_in_LuaTeX > and got the two fonts listed in the font database. > > I put the following in my MKIV context file: > ... > \usemodule[simplefonts] % load the module > \setmainfont[minionproregular] % > > %\whitespace[line] > > \usetypescript[serif,sans][hanging][pure] > \setupalign[hanging] > \setupbodyfont[minionproregular,14pt] > ... > Now I get a new error message: > - > mtx-context.lua:675: attempt to call field 'locate_format' (a nil value) > > Any suggestions? which context version ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Finding Minion and Myriad
These two fonts are in /usr/share/fonts/OTF. In that directory they are listed in fonts.dir. I want to use simplefonts to use Minion as the base font. I ran the various commands described in the Wiki page: http://wiki.contextgarden.net/Fonts_in_LuaTeX and got the two fonts listed in the font database. I put the following in my MKIV context file: ... \usemodule[simplefonts] % load the module \setmainfont[minionproregular] % %\whitespace[line] \usetypescript[serif,sans][hanging][pure] \setupalign[hanging] \setupbodyfont[minionproregular,14pt] ... Now I get a new error message: - mtx-context.lua:675: attempt to call field 'locate_format' (a nil value) Any suggestions? -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] writing date with ordinal numbers (\enordinaldaynumber) in mkiv
Am 29.09.2011 um 13:22 schrieb Mojca Miklavec: > On Thu, Sep 29, 2011 at 01:06, Wolfgang Schuster wrote: >> >> Am 28.09.2011 um 23:58 schrieb Mojca Miklavec: >> >>> Hello, >>> >>> MKII contains a macro \enordinaldaynumber which I don't find in MKIV. >>> My main question: how can I setup the date to display "23\high{rd} >>> Sep, 2011"? >> >> \starttext >> >> \currentdate[day+,space,month,space,year] > > Interesting, thank you. I was looking at exactly the right page, but > overlooked the +. And how do you print "Sep", "sep" and "SEP"? Wiki > reference for \date lists >\date[d=25,m=4,y=2008][day,~,{\monthshort\normalmonth},~,year] \par >\date[d=25,m=4,y=2008][day,~,{\MONTHSHORT\normalmonth},~,year] > but that doesn't work for me. You can use “month:mnem” and “m:mnem” for the abbreviations of the months but there is a bug in core-con.lua function commands.currentdate(str,currentlanguage) -- j and jj obsolete local list = utilities.parsers.settings_to_array(str) local year, month, day = tex.year, tex.month, tex.day local auto = true for i=1,#list do local entry = list[i] local tag, plus = match(entry,"^([^%+:]+)(.*)$") local ordinal, mnemonic, whatordinal = false, false, nil if not tag then tag = entry - elseif plus == "+" or plus == "ord" then - ordinal = true - elseif plus == "mnem" then + elseif plus == "+" or plus == ":ord" then + ordinal = true + elseif plus == ":mnem" then mnemonic = true end ... end Even when you patch this you don’t get any output because context tries (in the example below) to use the label “August:mnem” but only the label “august:mnem” is defined. \starttext \date[d=1,m=8][day:ord,space,month,space,month:mnem] \starttabulate[|Tl|l|] \NC August \EQ \labeltext{August} \NC\NR \NC August:mnem \EQ \labeltext{August:mnem} \NC\NR \NC august:mnem \EQ \labeltext{august:mnem} \NC\NR \stoptabulate \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] writing date with ordinal numbers (\enordinaldaynumber) in mkiv
On Thu, Sep 29, 2011 at 01:06, Wolfgang Schuster wrote: > > Am 28.09.2011 um 23:58 schrieb Mojca Miklavec: > >> Hello, >> >> MKII contains a macro \enordinaldaynumber which I don't find in MKIV. >> My main question: how can I setup the date to display "23\high{rd} >> Sep, 2011"? > > \starttext > > \currentdate[day+,space,month,space,year] Interesting, thank you. I was looking at exactly the right page, but overlooked the +. And how do you print "Sep", "sep" and "SEP"? Wiki reference for \date lists \date[d=25,m=4,y=2008][day,~,{\monthshort\normalmonth},~,year] \par \date[d=25,m=4,y=2008][day,~,{\MONTHSHORT\normalmonth},~,year] but that doesn't work for me. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new look for wiki
2011/9/29 Alan Braslau > Thanks > (But this should be the default - maybe it is now for new users.) > > Alan > i don’t know, but i suspect that we both changed this setting from default at one point in the past, and so it now sticks to our decision. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [Layout] Problem with ConTeXt mkII
2011/9/29 Pierre-François Bonnefoi : > Hello Luigi, Wolfgang, > > neither the first proposition, nor the second solves my problem, the size of > the text area (textheight) is modified on the first page, but not well > computed from the second page (it's stuck to the same value). Hm not here; this code looks ok % \setuptolerance[verytolerant,stretch] \setuppapersize[A4][A4] \setuplayout[ backspace=3cm, topspace=1.5cm, rightmargin=0cm,leftmargin=1.3cm, width=15cm, leftmargindistance=0.2cm, height=fit, header=0cm, footer=1cm, ] \definelayout[1][ topspace=5.2cm, height=fit, ] \dorecurse{1}{\definelayout[\the\numexpr 1+\recurselevel][]} \starttext \showframe \dorecurse{100} {\input knuth} \stoptext I can send the pdf offlist -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [Layout] Problem with ConTeXt mkII
Hello Luigi, Wolfgang, neither the first proposition, nor the second solves my problem, the size of the text area (textheight) is modified on the first page, but not well computed from the second page (it's stuck to the same value). thank you for your help, Pierre-François. -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 83, rue d'Isle | Mrs. Peel, we're needed... 87000 Limoges - FRANCE | The Avengers. smime.p7s Description: S/MIME cryptographic signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new look for wiki
Thanks for all the praise. ATM I have limited time for fixing issues so do not expect instant responses or fixes. But if you have problems, it would help to list: - browser and browser version - OS - Javascript on or off - problem url About the limited width: max-width is expressed in ems. Zooming also zooms the width of the page, up to the width of the window. With a line `$wgAllowUserCss = true;' in LocalSettings.php, users could make a page User:/contextskin.css with content body { max-width: none; } to always use the full width of the window. But currently such a page has no effect. -- Siep Kroonenberg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Float placement problem
On Thu, Sep 29, 2011 at 10:32 AM, Pontus Lurcock wrote: > On Thu 29 Sep 2011, luigi scarso wrote: > >> hm , it looks like a bad match with between width=17cm and textwidth >> This extreme example seems to works >> \setuplayout[location=doublesided,width=20pc] >> \setuppagenumbering[alternative=doublesided,location={margin,header}] >> \setupfloat[figure][location=inner] >> \showframe >> \starttext >> % An extra page. \page[yes] >> \dorecurse{4}{ >> \placefigure[]{caption}{\externalfigure[cow.pdf][width=30pc]}\page} >> \stoptext > > Thanks! The \page after the figure certainly seems to fix it. > Unfortunately a page break after every figure is impractical in my > real document, but this might put me on the track of a solution (once > I've read the layout manual a couple more times). I 've put \page just to show quickly the effect, but maybe there are still problems \setuplayout[location=doublesided,width=20pc] \setuppagenumbering[alternative=doublesided,location={margin,header}] \setupfloat[figure][location=inner] \showframe \starttext % An extra page. \page[yes] \dorecurse{40}{ \placefigure[here]{caption}{\externalfigure[cow.pdf][width=30pc]}} \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Float placement problem
On Thu 29 Sep 2011, luigi scarso wrote: > hm , it looks like a bad match with between width=17cm and textwidth > This extreme example seems to works > \setuplayout[location=doublesided,width=20pc] > \setuppagenumbering[alternative=doublesided,location={margin,header}] > \setupfloat[figure][location=inner] > \showframe > \starttext > % An extra page. \page[yes] > \dorecurse{4}{ > \placefigure[]{caption}{\externalfigure[cow.pdf][width=30pc]}\page} > \stoptext Thanks! The \page after the figure certainly seems to fix it. Unfortunately a page break after every figure is impractical in my real document, but this might put me on the track of a solution (once I've read the layout manual a couple more times). Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new look for wiki
On Thu, Sep 29, 2011 at 01:06:06AM +0200, Philipp A. wrote: > 2011/9/28 Alan Braslau > > Again, very nice. But, unfortunately, I loose the style when I log in :( > > go here: http://wiki.contextgarden.net/Special:Preferences#mw-htmlform-skin Thanks (But this should be the default - maybe it is now for new users.) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Float placement problem
On Thu, Sep 29, 2011 at 9:36 AM, Pontus Lurcock wrote: > On Sun 25 Sep 2011, Pontus Lurcock wrote: > >> I've recently updated my standalone (32-bit Linux) ConTeXT from >> 2011.02.25 to 2011.09.20, and I'm now having some trouble with float >> placement. I'm using MkIV. I'm trying to have figures protruding into >> the outer margins with a double-sided layout > ... >> Does anyone have any ideas or insights? > > Hmm, I guess not. I will put a note on the wiki page and revert to my > old ConTeXt version for now. If anyone has an idea for a workaround I > would be glad to know of it. > > Regards, hm , it looks like a bad match with between width=17cm and textwidth This extreme example seems to works \setuplayout[location=doublesided,width=20pc] \setuppagenumbering[alternative=doublesided,location={margin,header}] \setupfloat[figure][location=inner] \showframe \starttext % An extra page. \page[yes] \dorecurse{4}{ \placefigure[]{caption}{\externalfigure[cow.pdf][width=30pc]}\page} \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Float placement problem
On Sun 25 Sep 2011, Pontus Lurcock wrote: > I've recently updated my standalone (32-bit Linux) ConTeXT from > 2011.02.25 to 2011.09.20, and I'm now having some trouble with float > placement. I'm using MkIV. I'm trying to have figures protruding into > the outer margins with a double-sided layout ... > Does anyone have any ideas or insights? Hmm, I guess not. I will put a note on the wiki page and revert to my old ConTeXt version for now. If anyone has an idea for a workaround I would be glad to know of it. Regards, Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___