[NTG-context] structure Mk II vs IV

2014-02-25 Thread 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?

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.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)

___
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] Accessing current XML node in Lua function

2014-02-25 Thread Birke, Gabriel
Hi,

I'd like to write a Lua function that processes the href attribute from a
HTML file and outputs different content depending on the URL.
However, I don't know how to convert the XML attribute and the contents of
the link tag to a string value for the Lua function. I've tried the
following, which does not work but makes my intention clearer:

\startxmlsetups xml:a
\directlua{getlinkcode(\\xmlatt{#1}{href}, \\xmlflush{#1})}
\stopxmlsetups

It's probably calls to lxml.att and lxml.flush instead of the strings, but
how do I convert the #1 ?

Kind regards,

Gabriel

--
Gabriel Birke
Open Science Lab
Technische Informationsbibliothek / German National Library of Science and
Technology
Welfengarten 1 B, 30167 Hannover, Germany
Telefon: +49 511 762 14235
E-Mail: gabriel.bi...@tib.uni-hannover.de
Internet: http://www.tib.uni-hannover.de
___
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

2014-02-25 Thread Wolfgang Schuster

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] Update overwrites configuration

2014-02-25 Thread Mojca Miklavec
On Tue, Feb 25, 2014 at 7:53 AM, Thangalin wrote:
 http://wiki.contextgarden.net/Custom_Configuration

 Thank you, Mojca.

 I couldn't find an existing configuration wiki page that discussed the
 items in your email, Mojca. If configuring directories and variables
 exists on the wiki, please let me know where to find it and I'll merge
 the documentation.

An old related page is at
http://wiki.contextgarden.net/texmf.cnf

The file texmf.cnf is used by pdfTeX, XeTeX (Mark II), MetaPost and
basically all other engines, while texmfcnf.lua is used by
ConTeXt+LuaTeX (Make IV, Mark VI).

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] Accessing current XML node in Lua function

2014-02-25 Thread Thomas A. Schmitz

On 02/25/2014 11:13 AM, Birke, Gabriel wrote:

Hi,

I'd like to write a Lua function that processes the href attribute from a
HTML file and outputs different content depending on the URL.
However, I don't know how to convert the XML attribute and the contents of
the link tag to a string value for the Lua function. I've tried the
following, which does not work but makes my intention clearer:

\startxmlsetups xml:a
 \directlua{getlinkcode(\\xmlatt{#1}{href}, \\xmlflush{#1})}
\stopxmlsetups

It's probably calls to lxml.att and lxml.flush instead of the strings, but
how do I convert the #1 ?

Kind regards,

Gabriel


Have you seen http://wiki.contextgarden.net/XML_Lua ? In lua, you get 
the attribute with xml.attribute(t, /, name, default value), and 
can then use it for tests or typeset it. If you want to know more, you 
will need to provide a real example instead of a code snippet.


Thomas

Thomas

--
Prof. Dr. Thomas A. Schmitz
Geschäftsführender Direktor
Institut für Klassische und Romanische Philologie
Universität Bonn
Am Hof 1e
53113 Bonn
http://www.philologie.uni-bonn.de/personal/schmitz
___
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] Remove external file name references

2014-02-25 Thread Hans Hagen

On 2/25/2014 2:42 AM, Thangalin wrote:

Hi,

A flexible solution could be:

   \setupexternalfigures[
 pdfptexfilename={customfilename.jpg},
   ]

To eliminate the filename altogether:

   \setupexternalfigures[
 pdfptexfilename=,
   ]

This looks like it could be extended to customize the other PTEX
attributes, or be used to configure values in other namespaces.


no, it would probably be:

\disabledirective[backend.ptex]

or so where we don't bother about the fact that there are multiple ptex 
keys ... 'all' or 'none'


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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

2014-02-25 Thread Andrea Valle
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] different page sizes on one sheet

2014-02-25 Thread amerke

hi wolfgang  list,

what/where would be a good starting point of implementing such a feature 
... ?
do i have to hack ConTeXt source code for this or can it be done with a 
user defined macro?


my plan for now will be: to produce the pages with ConTeXt and produce 
then directly

a PDF file, which will include the generated pages at the right position.

but a pure ConTeXt solution would be nice in the end ...

cheers

artur


On 02/24/2014 10:42 PM, Wolfgang Schuster wrote:

Am 24.02.2014 um 20:55 schrieb amerkeartur.me...@udo.edu:


hi again,

a simplified setup with two A6 and one A5 page on one sheet of A4 paper (no 
back page in this case) would also be a great starting point ...

+--+--+
|  |  |
|   A6 |  |
|  |  |
+--+A5+
|  |  |
|   A6 |  |
|  |  |
+--+--+


please also answer if it's not possible with ConTeXt at all, so i can start 
looking for other options as soon as possible.

I won’t say it’s impossible but you have to write your own imposition 
alternative because
the predefined alternatives expect pages of the same size.

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

2014-02-25 Thread 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}]

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
___

[NTG-context] defining headcommand

2014-02-25 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definetype[TeXcode][option=TEX]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\definedescription[TeXcommand][width=fit,hang=fit,headcommand=\tex]
\starttext
Its logo can be invoked with \tex{ConTeXt}. But you can have
different logos.

\TeXcommand{ConTeXt} lowercase.

\TeXcommand{CONTEXT} all caps.

\TeXcommand{Context} small caps.
\stoptext

How should i redefine the headcommand value, so I can get headcommand
with colored output? (I mean, so I get the same output as when invoking
\tex{ConTeXt}.)

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Hi,
I find that there is too much space between the text and the beginning of
the paragraph.

\defineenumeration[ex]
[text={\sc\bf Exercice},
location=left,
stopper={\bf.}]

For example, I use the \topset with LuaLaTeX order.
Thank you.
___
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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Peter Münster
On Tue, Feb 25 2014, Fabrice Couvreur wrote:

 I find that there is too much space between the text and the beginning of the
 paragraph. 

 \defineenumeration[ex]
 [text={\sc\bf Exercice},
 location=left,
 stopper={\bf.}]

stopper={\bf.}, inbetween=]


 For example, I use the \topset with LuaLaTeX order.

???

-- 
   Peter
___
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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Wolfgang Schuster

Am 25.02.2014 um 19:41 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 Hi, 
 I find that there is too much space between the text and the beginning of the 
 paragraph. 
 
 \defineenumeration[ex]
 [text={\sc\bf Exercice},
 location=left,
 stopper={\bf.}]

\defineenumeration
  [ex]
  [text={Exercice},
   headstyle={\bf\feature[+][f:smallcaps]},
   width=fit,
  %distance=2em,
   alternative=left,
   stopper={.}]

\setupbodyfont[pagella]

\starttext

\startex
\input knuth
\stopex

\stoptext

 For example, I use the \topset with LuaLaTeX order. 

???

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

2014-02-25 Thread Wolfgang Schuster

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] different page sizes on one sheet

2014-02-25 Thread Wolfgang Schuster

Am 25.02.2014 um 15:32 schrieb amerke artur.me...@udo.edu:

 hi wolfgang  list,
 
 what/where would be a good starting point of implementing such a feature ... ?
 do i have to hack ConTeXt source code for this or can it be done with a user 
 defined macro?
 
 my plan for now will be: to produce the pages with ConTeXt and produce then 
 directly
 a PDF file, which will include the generated pages at the right position.
 
 but a pure ConTeXt solution would be nice in the end …

Context has a interface which can be used to save finished pages before the page
is put in the pdf file but what you want can only be done with low level tex 
code.

The difficulty depends on your requirements and your own tex skills to write it.

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

2014-02-25 Thread Andrea Valle
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

2014-02-25 Thread Wolfgang Schuster

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

2014-02-25 Thread 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]?

-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

2014-02-25 Thread Wolfgang Schuster

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
___


[NTG-context] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Sorry, but my question is unclear.
In fact, I created a new environment with the package amsthm in LuaLaTeX like
this :

\newtheoremstyle{exa}
  {\topsep}{\topsep}
  {}
  {0pt}
  {\strut\bfseries}
  {}
  {\newline}
  {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup
  {#2}}\thmnote{ \textnormal{(#3)}}}
\theoremstyle{exa}
\newtheorem{ex}{Exercice}

I try to do the same with ConteXt.


 
correctiondm7_seconde.pdfhttps://docs.google.com/file/d/0B-mkD83s36jbYTJhVFpUdGw3SjQ/edit?usp=drive_web

@Wolfgang The paragraph should find the following line, and not on the
same line
of text.

@Peter I do not see what changes adding inbetween = .

Thank you.
___
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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Wolfgang Schuster

Am 25.02.2014 um 23:48 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 Sorry, but my question is unclear. 
 In fact, I created a new environment with the package amsthm in LuaLaTeX like 
 this :
 
 \newtheoremstyle{exa}
   {\topsep}{\topsep}
   {}
   {0pt}
   {\strut\bfseries}
   {}
   {\newline}
   {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup
   {#2}}\thmnote{ \textnormal{(#3)}}}
 \theoremstyle{exa}
 \newtheorem{ex}{Exercice}
 
 I try to do the same with ConteXt. 
 
 
  correctiondm7_seconde.pdf
 
 @Wolfgang The paragraph should find the following line, and not on the same 
 line of text.

And why had you “location=left” in your code snippet.

 @Peter I do not see what changes adding inbetween = „.

To avoid such problems it is always recommended to make a minimal example which 
demonstrates the problem.

\defineenumeration
  [ex]
  [text={Exercice},
   headstyle={\bf\feature[+][f:smallcaps]},
   inbetween={\blank[small]},
   stopper={.}]

\setupbodyfont[pagella]

\starttext

\startex
\input knuth
\stopex

\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] Wiki - Main Page

2014-02-25 Thread Thangalin
Hi,

The link to Documentation of the source code on the front page of
the ConTeXt Garden Wiki is broken:

https://foundry.supelec.fr/gf/project/modules/
___
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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Because I'm really starting with ConteXt, and if I compile with location =
left or not, the result is the same (with minimal ConteXt).
For cons, I understand better the role of the option alternative = left,
right or top.
___
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] Appendix Page Numbering

2014-02-25 Thread Troy Henderson

 Is it possible to have ONLY the prefix (not followed by the corresponding
 page number) with this implementation?  If not, is that a feature that can
 also be added?


I tried to create a custom label called viewercustom (which operates like
viewerprefix but omits the userpage counter value), but I have been
unsuccessful .  I modified the following four files (which were the only
files that I could find containing viewerprefix)

./tex/texmf-context/tex/context/base/strc-pag.mkiv
./tex/texmf-context/tex/context/base/strc-pag.lua
./tex/texmf-context/tex/context/base/mult-def.mkiv
./tex/texmf-context/tex/context/base/lpdf-mis.lua

Is there something else that needs to be modified that I am missing?

Troy
___
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] Appendix Page Numbering

2014-02-25 Thread Aditya Mahajan

On Tue, 25 Feb 2014, Troy Henderson wrote:



Is it possible to have ONLY the prefix (not followed by the corresponding
page number) with this implementation?  If not, is that a feature that can
also be added?



I tried to create a custom label called viewercustom (which operates like
viewerprefix but omits the userpage counter value), but I have been
unsuccessful .  I modified the following four files (which were the only
files that I could find containing viewerprefix)

./tex/texmf-context/tex/context/base/strc-pag.mkiv
./tex/texmf-context/tex/context/base/strc-pag.lua
./tex/texmf-context/tex/context/base/mult-def.mkiv
./tex/texmf-context/tex/context/base/lpdf-mis.lua

Is there something else that needs to be modified that I am missing?


Did you regenerate the format? context --make.

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] Appendix Page Numbering

2014-02-25 Thread Troy Henderson

 Did you regenerate the format? context --make.


I have now :-) which now reflects may changes, but now I have to figure out
why my changes aren't working as expected. :-/

Troy
___
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
___