structure Mk II vs IV
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? Thanks a lot -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.valle@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)
Am 25.02.2014 um 10:57 schrieb Andrea Valle
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
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-
--------------------------------------------------
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.valle@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
Am 25.02.2014 um 10:57 schrieb Andrea Valle
: 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 ___________________________________________________________________________________
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.valle@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
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-
-------------------------------------------------- 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.valle@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
wrote: Am 25.02.2014 um 10:57 schrieb Andrea Valle
: 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 ___________________________________________________________________________________
Am 25.02.2014 um 17:03 schrieb Andrea Valle
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
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.valle@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-
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.valle@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
Am 25.02.2014 um 23:30 schrieb Andrea Valle
: 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 ___________________________________________________________________________________
Am 25.02.2014 um 23:37 schrieb Andrea Valle
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
On Tue, Feb 25, 2014 at 11:48:11PM +0100, Wolfgang Schuster wrote:
Am 25.02.2014 um 23:37 schrieb Andrea Valle
: 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: "fonts > defining > 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
Am 26.02.2014 um 13:56 schrieb Rudolf Bahr
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: "fonts > defining > 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
participants (4)
-
Andrea Valle
-
Andrea Valle
-
Rudolf Bahr
-
Wolfgang Schuster