ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* structure Mk II vs IV
@ 2014-02-25  9:57 Andrea Valle
  2014-02-25 10:30 ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Andrea Valle @ 2014-02-25  9:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 886 bytes --]

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)


[-- Attachment #1.2: Type: text/html, Size: 4759 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25  9:57 structure Mk II vs IV Andrea Valle
@ 2014-02-25 10:30 ` Wolfgang Schuster
  2014-02-25 13:42   ` Andrea Valle
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2014-02-25 10:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2014 um 10:57 schrieb Andrea Valle <valle@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 10:30 ` Wolfgang Schuster
@ 2014-02-25 13:42   ` Andrea Valle
  2014-02-25 16:03     ` Andrea Valle
  0 siblings, 1 reply; 11+ messages in thread
From: Andrea Valle @ 2014-02-25 13:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2118 bytes --]

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 <schuster.wolfgang@gmail.com> wrote:

> 
> Am 25.02.2014 um 10:57 schrieb Andrea Valle <valle@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
> ___________________________________________________________________________________
> 


[-- Attachment #1.2.1: Type: text/html, Size: 581 bytes --]

[-- Attachment #1.2.2: c_00_introduzione.tex --]
[-- Type: application/octet-stream, Size: 4776 bytes --]

\startcomponent c_00_introduzione
\project project_scMaterials

\product prd_tSCIRMA

\chapter{Introduzione}

\section{Ciò di cui si parla: SuperCollider}
SuperCollider (SC) è un pacchetto software per la sintesi e il controllo dell'audio in tempo reale \footnote{Si vedrà più avanti che cosa indica specificamente ``pacchetto software''}. Attualmente rappresenta lo stato dell'arte nell'ambito della programmazione audio: non c'è altro software disponibile che sia insieme così potente, efficiente, flessibile. L'unico punto a sfavore di SC è che non è ``intuitivo'': richiede competenze relative alla programmazione, alla sintesi del segnale audio, alla composizione musicale (nel senso più lato, aperto e sperimentale del termine). Ci si potrebbe chiedere d'altra parte in che senso un violino, una chitarra elettrica, una batteria presentino un'interfaccia utente ``intuitiva'': non c'è forse bisogno di un duro lavoro per cavare fuori una nota da un violino o per tenere un tempo suonando una batteria? Il disagio che il neofita prova con SC dipende però forse da un altro fatto: SC è preciso ed efficiente ma è puntiglioso ed ha un forte senso della responsabilità. Ciò che spetta al programmatore, spetta a lui solo: SC non lo aiuterà in caso di sue mancanze. Per chiudere il parallelo, SC è come uno Stradivari per il violinista: dipende da quest'ultimo farlo suonare come quello sa fare. Non è come un carillon in cui basta caricare la molla, poiché tutta la competenza relativa alla generazione e al controllo del suono è in fondo già ascritta al meccanismo. \crlf
Anche se a dire il vero, come si vedrà, SC può tramutare un carillon in uno Stradivari.
 

\section{Obiettivi}
L'obiettivo di quanto segue è duplice:
\startitemize[n]
\item introdurre alcuni aspetti fondamentali relativi a quell'ambito che viene usualmente indicato, con una definizione a volte imprecisa e a volte impropria, {\em computer music}
\item fornire una breve panoramica ed insieme un'introduzione a SuperCollider in italiano.
\stopitemize
L'ipotesi di partenza (e indipendentemente dai risultati) è quella di far interagire i due ambiti, attraverso una reciproca specificazione


\section{Fonti}
Il materiale presentato è, in qualche misura, ``originale''. La parte relativa alla sintesi riprende alcune parti di {\em Audio e multimedia}\footnote{Lombardo, V. e Valle, A., Milano, Apogeo 2008 (3\high{ed.}).} e vi include parti di materiali provenienti dai corsi degli anni precedenti.  Trattandosi di materiale introduttivo, è chiaro che il testo si affida saldamente al suo intertesto costituito dai molti testi analoghi, più complessi e più completi, che lo precedono. Questo vale a maggior ragione per la parte dedicata a SuperCollider. Non è una traduzione in senso stretto di scritti già esistenti: tra l'altro, attualmente, non esiste un libro di riferimento per SuperCollider\footnote{È in corso di pubblicazione (l'uscita è prevista per la fine del 2008) il progetto di un {\em SuperCollider Book}, sull'esempio del {\em Csound Book}, per gli stessi tipi della MIT press.}. E tuttavia è chiaro che il testo scritto è fittamente intessuto  di prestiti provenienti dagli help file, dai tutorial di James McCartney, Mark Polishook, Scott Wilson, dal testo di David Cottle, dalle osservazioni preziosi fornite dalla SuperCollider mailing list, dalle informazioni accessibili attraverso il SuperCollider wiki. La lettura di queste fonti non è in nessun modo resa superflua dal testo seguente, il quale ha invece semplicemente un ruolo propedeutico rispetto alle stesse, perché quantomeno  evita al lettore italiano la difficoltà supplementare della lingua straniera.   

\section{Convenzioni grafiche}

Il manuale prevede tre distinzioni:
\startitemize[n]
\item testo: in carattere nero normale, senza particolarità, esattamente come quanto scritto qui
\item  codice: è scritto in carattere {\tt typewriter}, utilizza lo schema colori della versione MacOSX per la sintassi, è riquadrato in blu e le righe sono numerate. Al di sotto di ogni esempio è presente un marcatore interattivo. Esso permette di accedere al file sorgente dell'esempio {\em che è incluso nel pdf}, e di aprirlo direttamente con l'applicazione SuperCollider. Per garantire la funzione è bene usare Acrobat Reader (che è gratuito e multipiattaforma). Alla prima apertura Reader richiede di impostare il suo comportamento nei confronti dell'allegato 
%\Ex{introduzione/adEsempio}
\item 
post-window:  è scritto in nero; con carattere {\tt typewriter}, e riporta una parte di sessione con l'interprete SuperCollider. È riquadrato in arancio e le righe sono numerate.
%\startcode
"così".postln 
%\stopcode
\stopitemize
\stopcomponent

[-- Attachment #1.2.3: Type: text/html, Size: 219 bytes --]

[-- Attachment #1.2.4: env_scMaterials.tex --]
[-- Type: application/octet-stream, Size: 4470 bytes --]

\startenvironment env_scMaterials

\enableregime[utf]
\mainlanguage[it]
\setupinteraction[state=start]

%\setuppapersize[A5][A4, landscape]

%%%

%% the original format
\setuppapersize[A5][A5]

%% two pages side by side
%\setuppapersize[A5][A4, landscape]
%\setuparranging[2SIDE]


%% print:
%\setuppapersize[A5][A4, landscape]
%\setuparranging[2*2]  %% print in A4 double sided, cut pages and bind
%\setuppagenumbering[alternative={singlesided,doublesided}]
%\setupbackgrounds[rightpage][leftframe=on]
%% end print

\setupcolors[state=start]

%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%

%% SC colors %%
\definecolor [SCwhite] [r=1.0, g=1.0, b=1.0] 
\definecolor [SCblack] [r=0.0, g=0.0, b=0.0] 
\definecolor [SCblue] [r=0.0, g=0.0, b=0.75] 
\definecolor [SCred] [r=0.75, g=0.0, b=0.0] 

\definecolor [SCgrey] [r=0.376, g=0.376, b=0.376] 
\definecolor [SCgreen] [r=0.0, g=0.45, b=0.0] 
%%%%%%%%%%%%

%% CIRMA colors %%
\definecolor[cirmaBlue] [r=.0,g=.2,b=.6] 
%\definecolor[cirmaGrey] [r=.2,g=.2,b=.2] %lighter follows
\definecolor[cirmaGrey] [r=.3,g=.3,b=.3] 
\definecolor[cirmaOrange] [r=1,g=.6,b=.0] 
% another grey
\definecolor[bgGrey] [r=.9,g=.9,b=.9] 
%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%% Define the color for bodyfont
\definecolor [fontColor][black]

\setupfootertexts[{\color[cirmaBlue]\tfxx  Andrea Valle \hfill tSCIRMA }]
\setuppagenumbering[location=footer, sectionnumber=yes, state=start]

\setupfooter[state=start]


\setuphead[chapter]
[style=\ss\tfc, before={\startframedtext[width=local, foregroundcolor=white, background=color, backgroundcolor=cirmaBlue, framecolor=cirmaOrange,offset=.25cm,
rulethickness=0.05cm, frame=off, topframe=on,  bottomframe=on]},after={\stopframedtext\blank[.25\textheight]},
]




\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}]


\setupframedtexts[width=local, framecolor=cirmaOrange]

%\setuplayout[marking=on, margin=0pt, width=fit]
%[width=fit,
%              rightmargin=1.5cm,
%              leftmargin=1.5cm,
%              leftmargindistance=0pt,
%              rightmargindistance=0pt,
%              height=fit, 
%              header=0pt, 
%              footer=20pt, 
%              topspace=1.5cm, 
%              backspace=1.5cm,
%%              cutspace=1.5cm, 
%              bottomspace=8pt,
%              location=singlesided]


%\setupfootertexts[{\color[blue]\tfxx  a.a. 2005-06 \hfill Andrea Valle \type{<}andrea.valle@unito.it\type{>} \hfill \currentdate}]

%\setupfooter[state=stop]

\setupcombinations[distance=5pt]

%\setupframed[frame=on,height=.9\textheight,width=.9\textwidth,top=\vss,bottom=\vss,align=right]

%%\setuplabels[]
%\setupcaption[figure][number=no]

\definetypeface[tSCIRMA][rm][Xserif][Palatino]
\definetypeface[tSCIRMA][tt][Xmono][LM Typewriter Regular]
\definetypeface[tSCIRMA][ss][Xsans][Optima]

\setupbodyfont[tSCIRMA, 10pt]

%\setupbodyfont[sansserif]
\setuptyping[color=black] %% redundant?


%%%% Some defs %%%%%%%%

\define[1]\Note{\blank{\tt [Lavori in corso:  #1]}\blank}
\define[1]\Code{{\tt #1}}
\define[1]\Line{\startnarrower\tfx\startlines\blank{\tt #1}\blank\stoplines\tfa\stopnarrower}
\define[1]\Url{\startnarrower #1 \stopnarrower}
%%%%%%
\define[1]\Ex{\tfx \input code/#1 \tfa} 
% "code" folder is where you put the examples
% code must be ascii and result from processing  
% .sc files (ASCII, not rtf) in scToConTeXt.py 
% usage: \Ex{testSC}
%%%%%%




% stolen from wiki

% different colors for frame in code and interpreter

\defineframedtext
  [framedSC]
  [framecolor=cirmaBlue,
   strut=yes,
   offset=2mm,
   width=local,
   align=right]

\definetyping[SC][option=commands, 
					tab=2,numbering=line,
					bodyfont=4pt, %% does not work: ?
                    before={\startframedSC\tfx},
                    after={\tfa\stopframedSC}]




\defineframedtext
  [framedcode]
  [framecolor=cirmaOrange,
   strut=yes,
   offset=2mm,
   width=local,
   align=right]

\definetyping[code][numbering=line,
                    bodyfont=8pt,
                    before={\startframedcode\tfx},
                    after={\tfa\stopframedcode}]

\defineenumeration 
[Osservazione] 
[location=top, 
text=Osservazione, 
inbetween=\blank,
after=\blank] 
 
 
\stopenvironment 

[-- Attachment #1.2.5: Type: text/html, Size: 219 bytes --]

[-- Attachment #1.2.6: project_scMaterials.tex --]
[-- Type: application/octet-stream, Size: 129 bytes --]

\startproject project_scMaterials
\environment env_scMaterials
 
\product prd_tSCIRMA
 
% \completetableofcontents
 
\stopproject

[-- Attachment #1.2.7: Type: text/html, Size: 6151 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 13:42   ` Andrea Valle
@ 2014-02-25 16:03     ` Andrea Valle
  2014-02-25 22:23       ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Andrea Valle @ 2014-02-25 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4153 bytes --]

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 <valle@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.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 <schuster.wolfgang@gmail.com> wrote:
> 
>> 
>> Am 25.02.2014 um 10:57 schrieb Andrea Valle <valle@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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 12969 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 16:03     ` Andrea Valle
@ 2014-02-25 22:23       ` Wolfgang Schuster
  2014-02-25 22:30         ` Andrea Valle
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2014-02-25 22:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2014 um 17:03 schrieb Andrea Valle <valle@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 22:23       ` Wolfgang Schuster
@ 2014-02-25 22:30         ` Andrea Valle
  2014-02-25 22:33           ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Andrea Valle @ 2014-02-25 22:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1159 bytes --]

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-



[-- Attachment #1.2: Type: text/html, Size: 5184 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 22:30         ` Andrea Valle
@ 2014-02-25 22:33           ` Wolfgang Schuster
  2014-02-25 22:37             ` Andrea Valle
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2014-02-25 22:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2014 um 23:30 schrieb Andrea Valle <valle@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 22:33           ` Wolfgang Schuster
@ 2014-02-25 22:37             ` Andrea Valle
  2014-02-25 22:48               ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Andrea Valle @ 2014-02-25 22:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1801 bytes --]

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 <schuster.wolfgang@gmail.com> wrote:

> 
> Am 25.02.2014 um 23:30 schrieb Andrea Valle <valle@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
> ___________________________________________________________________________________
> 


[-- Attachment #1.2: Type: text/html, Size: 8087 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 22:37             ` Andrea Valle
@ 2014-02-25 22:48               ` Wolfgang Schuster
  2014-02-26 12:56                 ` Rudolf Bahr
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2014-02-25 22:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2014 um 23:37 schrieb Andrea Valle <andrea.valle@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-25 22:48               ` Wolfgang Schuster
@ 2014-02-26 12:56                 ` Rudolf Bahr
  2014-02-26 23:51                   ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Rudolf Bahr @ 2014-02-26 12:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On Tue, Feb 25, 2014 at 11:48:11PM +0100, Wolfgang Schuster wrote:
> 
> Am 25.02.2014 um 23:37 schrieb Andrea Valle <andrea.valle@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:
"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




___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: structure Mk II vs IV
  2014-02-26 12:56                 ` Rudolf Bahr
@ 2014-02-26 23:51                   ` Wolfgang Schuster
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2014-02-26 23:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.02.2014 um 13:56 schrieb Rudolf Bahr <quasi@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:
> "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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-26 23:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-25  9:57 structure Mk II vs IV Andrea Valle
2014-02-25 10:30 ` Wolfgang Schuster
2014-02-25 13:42   ` Andrea Valle
2014-02-25 16:03     ` Andrea Valle
2014-02-25 22:23       ` Wolfgang Schuster
2014-02-25 22:30         ` Andrea Valle
2014-02-25 22:33           ` Wolfgang Schuster
2014-02-25 22:37             ` Andrea Valle
2014-02-25 22:48               ` Wolfgang Schuster
2014-02-26 12:56                 ` Rudolf Bahr
2014-02-26 23:51                   ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).