Re: [NTG-context] structure Mk II vs IV
On Tue, Feb 25, 2014 at 11:48:11PM +0100, Wolfgang Schuster wrote: Am 25.02.2014 um 23:37 schrieb Andrea Valle andrea.va...@unito.it: Ah, so I was a bit mislead by the wiki. Actually I hace this. \usemodule[simplefonts][size=8pt] \definefontfamily [myfamily][serif][TeX Gyre Termes] \definefontfamily[myfamily][mono][LM Typewriter] \definefontfamily[myfamily][sans][Avenir] \setupbodyfont[myfamily] You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? The \definefontfamily command is part of the core and you don’t have to load the simplefonts module. PS. The monospace font for Latin Modern has the name “Latin Modern Mono”. Wolfgang Hello Wolfgang, according to [1] and Andrea's unanswered question: You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? in which I'm very interested: How is fontswitching to other styles (5pt,11pt,17.3pt or bold etc.) performed with \definefontfamily? I.e. \switchtobodyfont[17.3pt] as in following example works, but is it in the official context line? And a, b, c, x, xx no more? \switchtobodyfont[17.3pt] and others will give me such messages: fontsdefining unable to define 'unknown' as 'mainface-17.3pt-rm-tf-0-a-0' therefore I think it's perhaps not the right command. Btw, I'd wish really complete context examples in the manuals. They could spare some of my stupid questions. Rudolf % -- \definefontfamily [mainface] [serif] [TeX Gyre Pagella DejaVu Serif] \definefontfamily [mainface] [sans] [DejaVu Sans] \definefontfamily [mainface] [mono] [DejaVu Sans Mono] [feature=none] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \startlines \rm rm: DejaVu Serif, yes works well. \tfx tfx: No \rma rma: No \rm {\switchtobodyfont[17.3pt] 17.3pt-rm seems to be ok.} {\switchtobodyfont[14.4pt] 14.4pt-rm seems to be ok too.} {\switchtobodyfont[12pt] 12pt-rm ok.} {\switchtobodyfont[11pt]\rm 11pt-rm ok..} {\rm\bf rm-bf doesn't work.} \stoplines \stoptext % -- Btw my context version: ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt: 2014.2.26 [1] http://www.ntg.nl/pipermail/ntg-context/2013/075428.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] structure Mk II vs IV
Am 26.02.2014 um 13:56 schrieb Rudolf Bahr qu...@quasi.de: Hello Wolfgang, according to [1] and Andrea's unanswered question: You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? in which I'm very interested: How is fontswitching to other styles (5pt,11pt,17.3pt or bold etc.) performed with \definefontfamily? I.e. \switchtobodyfont[17.3pt] as in following example works, but is it in the official context line? And a, b, c, x, xx no more? \switchtobodyfont[17.3pt] and others will give me such messages: fontsdefining unable to define 'unknown' as 'mainface-17.3pt-rm-tf-0-a-0' therefore I think it's perhaps not the right command. Btw, I'd wish really complete context examples in the manuals. They could spare some of my stupid questions. The \definefontfamily command doesn’t change the way how you change fonts or use a different font size. The reason why you can’t change the font size is this line \definefontfamily [mainface] [serif] [TeX Gyre Pagella DejaVu Serif] where you tries to load a not existing font. I’ll add a few error message to the code and a fallback solution which will use Latin Modern when no font was found. 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] structure Mk II vs IV
Am 25.02.2014 um 10:57 schrieb Andrea Valle va...@di.unito.it: Dear list, I'm rewriting a handbook I wrote with ConTeXt. While testing typography, I'm recompiling the sources now with Mark IV. My sources still compile fine with ConTeXt, buyt I'm getting this error with Mark IV. ! You can’t use ‘\end’ in internal vertical mode Can anyone shed some light? Without more information I can only guess what the problem is. One possibility is that you have product, component or TeXpage environment used inside of \framed or a framed text environment. Another possibility is a forgotten \start command of one the previous mentioned environments. 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] structure Mk II vs IV
Thanks WolfgangI attach you the files I’m using. I didn’t want to bother the list with long stuff.But I can’t reproduce this on a short example.I’m compiling c_00_introduzione (a chapter)ThanksBest-a- c_00_introduzione.tex Description: Binary data env_scMaterials.tex Description: Binary data project_scMaterials.tex Description: Binary data --Andrea Valle--CIRMA - StudiUmUniversità degli Studi di Torino-- http://www.cirma.unito.it/andrea/-- http://www.fonurgia.unito.it/andrea/-- http://www.flickr.com/photos/vanderaalle/sets/-- http://vimeo.com/vanderaalle-- andrea.va...@unito.it--"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous."(Jeffrey 'The Dude' Lebowski) On 25 Feb 2014, at 11:30, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:Am 25.02.2014 um 10:57 schrieb Andrea Valle va...@di.unito.it:Dear list, I'm rewriting a handbook I wrote with ConTeXt.While testing typography, I'm recompiling the sources now with Mark IV.My sources still compile fine with ConTeXt, buyt I'm getting this error with Mark IV.! You can’t use ‘\end’ in internal vertical modeCan anyone shed some light?Without more information I can only guess what the problem is.One possibility is that you have product, component or TeXpage environmentused inside of \framed or a framed text environment. Another possibility is a forgotten\start command of one the previous mentioned environments.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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : http://foundry.supelec.fr/projects/contextrev/wiki : http://contextgarden.net__ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] structure Mk II vs IV
OK, I think I tracked it down this works: \setuphead[chapter] [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, foregroundcolor=black, background=color, backgroundcolor=bgGrey1, framecolor=bgGrey2,offset=0.25cm, rulethickness=0.05cm, frame=off, topframe=on, bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}] but these two raises the error: \setuphead[section][style=\ss\tfb, before={\startframedtext[frame=off]\color[cirmaGrey]}, after={\color[cirmaBlue]\textrule \color[fontColor]\stopframedtext}] \setuphead[subsection][style=\ss\tfb,before={\startframedtext[frame=off]\color[cirmaGrey]}, after={\color[cirmaOrange]\textrule\color[fontColor]\stopframedtext}] Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 25 Feb 2014, at 14:42, Andrea Valle va...@di.unito.it wrote: Thanks Wolfgang I attach you the files I’m using. I didn’t want to bother the list with long stuff. But I can’t reproduce this on a short example. I’m compiling c_00_introduzione (a chapter) Thanks Best -a- c_00_introduzione.tex env_scMaterials.tex project_scMaterials.tex -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 25 Feb 2014, at 11:30, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 25.02.2014 um 10:57 schrieb Andrea Valle va...@di.unito.it: Dear list, I'm rewriting a handbook I wrote with ConTeXt. While testing typography, I'm recompiling the sources now with Mark IV. My sources still compile fine with ConTeXt, buyt I'm getting this error with Mark IV. ! You can’t use ‘\end’ in internal vertical mode Can anyone shed some light? Without more information I can only guess what the problem is. One possibility is that you have product, component or TeXpage environment used inside of \framed or a framed text environment. Another possibility is a forgotten \start command of one the previous mentioned environments. 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 ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] structure Mk II vs IV
Am 25.02.2014 um 17:03 schrieb Andrea Valle va...@di.unito.it: OK, I think I tracked it down this works: \setuphead[chapter] [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, foregroundcolor=black, background=color, backgroundcolor=bgGrey1, framecolor=bgGrey2,offset=0.25cm, rulethickness=0.05cm, frame=off, topframe=on, bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}] but these two raises the error: \setuphead[section][style=\ss\tfb, before={\startframedtext[frame=off]\color[cirmaGrey]}, after={\color[cirmaBlue]\textrule \color[fontColor]\stopframedtext}] \setuphead[subsection][style=\ss\tfb,before={\startframedtext[frame=off]\color[cirmaGrey]}, after={\color[cirmaOrange]\textrule\color[fontColor]\stopframedtext}] In MkIV Hans has made changes on the \color command which does no expect a argument and only \color[colorname]{text} is valid but you use \color without the text. To fill the missing argument context uses now the following command after \color or in some cases internal macros. Another thing which doesn’t work in MkIV are these lines: \definetypeface[tSCIRMA][rm][Xserif][Palatino] \definetypeface[tSCIRMA][tt][Xmono][LM Typewriter Regular] \definetypeface[tSCIRMA][ss][Xsans][Optima] The problem here are the Xserif etc. typescript which work only with XeTeX but MkIV provides its own commands to select system fonts. 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] structure Mk II vs IV
Thanks a lot Wolfgang -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) \color[colorname]{text} is valid but you use \color without the text. To fill the missing argument context uses now the following command after \color or in some cases internal macros. I see now, it’s here: http://wiki.contextgarden.net/Command/color Another thing which doesn’t work in MkIV are these lines: \definetypeface[tSCIRMA][rm][Xserif][Palatino] \definetypeface[tSCIRMA][tt][Xmono][LM Typewriter Regular] \definetypeface[tSCIRMA][ss][Xsans][Optima] Yeah, I had already replace with simplefonts module Best -a- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] structure Mk II vs IV
Am 25.02.2014 um 23:30 schrieb Andrea Valle va...@di.unito.it: Yeah, I had already replace with simplefonts module I suggest to use the \definefontfamily command, the simplefonts module is outdated and I don’t care when some font don’t work. 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] structure Mk II vs IV
Ah, so I was a bit mislead by the wiki. Actually I hace this. \usemodule[simplefonts][size=8pt] \definefontfamily [myfamily][serif][TeX Gyre Termes] \definefontfamily[myfamily][mono][LM Typewriter] \definefontfamily[myfamily][sans][Avenir] \setupbodyfont[myfamily] You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 25 Feb 2014, at 23:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 25.02.2014 um 23:30 schrieb Andrea Valle va...@di.unito.it: Yeah, I had already replace with simplefonts module I suggest to use the \definefontfamily command, the simplefonts module is outdated and I don’t care when some font don’t work. 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 ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] structure Mk II vs IV
Am 25.02.2014 um 23:37 schrieb Andrea Valle andrea.va...@unito.it: Ah, so I was a bit mislead by the wiki. Actually I hace this. \usemodule[simplefonts][size=8pt] \definefontfamily [myfamily][serif][TeX Gyre Termes] \definefontfamily[myfamily][mono][LM Typewriter] \definefontfamily[myfamily][sans][Avenir] \setupbodyfont[myfamily] You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? The \definefontfamily command is part of the core and you don’t have to load the simplefonts module. PS. The monospace font for Latin Modern has the name “Latin Modern Mono”. 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 ___