[NTG-context] Question to a formular

2024-01-05 Thread Ursula Hermann
Dear list,


I have this formular, but no idea , how to write it in Context. This is a 
formular  with  factorial.


0! := 1
(n + 1)! := (n + 1) n!

Can someone help me please?

Many thanks

Uschi

PS: Wishing  you all a happy new Year.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Question about drawing flowchart using chart module

2023-12-27 Thread Jeong Dal via ntg-context
Dear all,

I tried to draw a flow chart using the module[chart].
Following the examples, I draw one.

The problem is that the size of the chart is not changed even though I changed 
the numbers dx,dy, width, height, and maxwidth in the \setupFLOWcharts

Please tell me how to resize the chart.

Thank you.

Dalyoung

%%
\usemodule[chart]

\starttext

\startFLOWchart[bigger]
  \setupFLOWcharts
  [option=test,
   nx=3,
   ny=6,
   dx=\bodyfontsize,
   dy=\bodyfontsize,
   width=6cm,%.5\bodyfontsize,
   height=10cm,%.3\bodyfontsize,
   maxwidth=.5\textwidth
   ]

  \startFLOWcell 
\name{a} \location{2,1} \shape{loop} \text{start}  
\connection[bt]{b}
  \stopFLOWcell
  \startFLOWcell 
\name{b} \location{2,2} \shape{79} \text{input $a,b$} 
\connection[bt]{c} 
  \stopFLOWcell
  \startFLOWcell 
\name{c} \location{2,3} \shape{decision} \text{$a-b > 0$}  
\connection[lt]{d}  \comment[l]{Yes}
\connection[rt]{g}  \comment[r]{No}
  \stopFLOWcell
  \startFLOWcell 
\name{d} \location{1,5} \shape{76} \text{$a$ is bigger \\ than $b$} 
 
\connection[bt]{f}
  \stopFLOWcell
  \startFLOWcell 
\name{e} \location{2,5} \shape{76} \text{$b$ is bigger \\ than $a$} 
 
\connection[bt]{f}
  \stopFLOWcell
  \startFLOWcell 
\name{g} \location{3,4} \shape{decision} \text{$a - b < 0$}  
\connection[lt]{e}\comment[l]{Yes}
\connection[bt]{h}\comment[b]{No}
  \stopFLOWcell
  \startFLOWcell 
\name{h} \location{3,5} \shape{76} \text{$a$ is equal \\ to $b$}  
\connection[bt]{f}
  \stopFLOWcell
  \startFLOWcell 
\name{f} \location{2,6} \shape{loop} \text{stop}  
  \stopFLOWcell
\stopFLOWchart

\placefigure
  [here][fig:bigger]
  {Which is bigger?}
  {\tx\setupFLOWcharts\FLOWchart[bigger]}

\stoptext___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Question about building an array of values with Lua

2023-08-23 Thread Fabrice Couvreur
Hi,
I'm trying to fill an array using lua. So far it works but then I don't
know if it's possible.
Thanks
Fabrice

 \startluacode

context.startxtable({"align={middle,lohi},bodyfont=9pt,framecolor=black"})
  context.startxrow({"background=color,
backgroundcolor=lightgray"})
  context.startxcell({"nx=4"})
  context("Units digit of")
  context.stopxcell()
  context.stopxrow()
  context.startxrow()
  context.startxcell({"width=1cm"})
  context("\\im{a}")
  context.stopxcell()
  context.startxcell({"width=1cm"})
  context("\\im{a²}")
  context.stopxcell()
  context.startxcell({"width=1cm"})
  context("\\im{b}")
  context.stopxcell()
  context.startxcell({"width=1cm"})
  context("\\im{2b²}")
  context.stopxcell()
  context.stopxrow()
  for i = 0, 9 do
  context.startxrow()
  context.startxcell()
  context(i)
  context.stopxcell()
  context.stopxrow()
  end
  context.stopxtable()
 \stopluacode
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
On 1/16/23 02:42, Michal Vlasák via ntg-context wrote:
> [...] 
> I would think that something like the attached could work. But in some
> cases it fails on the TeX side with something I am not sure about. I
> probably overlooked something. Anyways the idea is to just use the
> Start/StopRendering actions with the correct label.

Hi Michal,

many thanks for your reply.

Your code fixes the "auto" option. At least with the following sample:

  \setupinteraction[state=start]
  \unexpanded\def\IncludeVideo[#1]
   {\definerenderingwindow[#1]
  [width=\textwidth, height=\textwidth,
  framecolor=red]
\userendering[#1][video/mp4][#1]
  [embed=yes, auto]
\placerenderingwindow[#1][#1]}
  \starttext
  \null\page
  \startTEXpage[offset=1em, pagestate=start]
\IncludeVideo[video-1.mp4]
  \stopTEXpage
  \null\page
  \startTEXpage[offset=1em, pagestate=start]
\IncludeVideo[video-2.mp4]
  \stopTEXpage
  \null\page
  \stoptext

I attach a diff and complete file with the the fix from today and the
addition of controls, volume, repeat and opacity you sent me some days
ago (already sent in
https://mailman.ntg.nl/pipermail/dev-context/2022/003957.html).

Just in case Hans may review your code and merge into ConTeXt.

Many thanks for your help,

Pablo--- /home/ousia/Desktop/lpdf-wid.lmt
+++ /home/ousia/mkxl/lpdf-wid.lmt
@@ -64,6 +64,10 @@
 local v_compress   = variables.compress
 local v_list   = variables.list
 local v_title  = variables.title
+local v_controls   = variables.controls
+local v_volume = variables.volume
+local v_repeat = variables["repeat"]
+local v_opacity= variables.opacity
 
 local lpdf = lpdf
 
@@ -615,7 +619,7 @@
 -- sound is different, no window (or zero) so we need to collect them and
 -- force them if not set
 
-local ms, mu, mf = { }, { }, { }
+local mu, mf = { }, { }, { }
 
 local function delayed(label)
 local reserved = mu[label]
@@ -623,7 +627,7 @@
 reserved = pdfreserveobject()
 mu[label] = reserved
 end
-return pdfreference(reserved)
+return reserved
 end
 
 local function checkedreference(ref)
@@ -639,16 +643,16 @@
 local openpage  = specification.openpage
 local closepage = specification.closepage
 local option= settings_to_hash(specification.option)
-if option[v_auto] then
-if not openpage or openpage == "" then
-openpage = variables.StartCurrentRendering
-end
-if not closepage or closepage == "" then
-closepage = variables.StopCurrentRendering
-end
-end
 openpage  = checkedreference(openpage)
 closepage = checkedreference(closepage)
+if option[v_auto] then
+if not openpage then
+openpage = executers.startrendering(label)
+end
+if not closepage then
+closepage = executers.stoprendering(label)
+end
+end
 if openpage or closepage then
 actions = pdfdictionary {
 PO = openpage,
@@ -656,13 +660,8 @@
 }
 end
 local page = tonumber(specification.page) or texgetcount("realpageno") -- todo
-local r = mu[label] or pdfreserveobject() -- reserve, child refers to parent
-local a = pdfdictionary {
-S  = pdfconstant("Rendition"),
-R  = mf[label],
-OP = 0,
-AN = pdfreference(r),
-}
+local r = delayed(label) -- reserve, child refers to parent
+local a = executers.startrendering(label)
 local bs, bc = pdfborder()
 local d = pdfdictionary {
 Subtype = pdfconstant("Screen"),
@@ -676,7 +675,6 @@
 local width = specification.width or 0
 local height = specification.height or 0
 context(nodeinjections.annotation(width,height,0,d(),r)) -- save ref
-return pdfreference(r)
 end
 
 -- some dictionaries can have a MH (must honor) or BE (best effort) capsule
@@ -713,7 +711,7 @@
  --  B = start,
  -- }
  -- }
-local parameters = pdfdictionary {
+local permissions = pdfdictionary {
 Type = pdfconstant("MediaPermissions"),
 TF   = pdfstring("TEMPALWAYS"), -- TEMPNEVER TEMPEXTRACT TEMPACCESS TEMPALWAYS / needed for acrobat/wmp
 }
@@ -733,6 +731,20 @@
 forcereference = option[v_list] ~= v_no,
 }
 end
+local media_play_params = pdfdictionary {
+Type = pdfconstant("MediaPlayParams"),
+BE   = pdfdictionary {
+C  = option[v_controls] and option[v_controls] ~= v_no or false,
+V  = tonumber(option[v_volume]) or 100,
+RC = tonumber(option[v_repeat]) or 1,
+},
+}
+local media_screen_params = pdfdictionary {
+Type = pdfconstant("MediaScreenParams"),
+BE   = 

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
On Sun Jan 15, 2023 at 10:49 PM CET, Pablo Rodriguez via ntg-context wrote:
> Dear list,
>
> I’m planning to add an explanation about multimedia inclusion to the
> wiki, but first I wanted to discuss an issue I have found.
>
> I have the following sample (adapted from scrn-wid.mklx):
>
>   \setupinteraction[state=start]
>   \starttext
>   \null\page
>   \definerenderingwindow[myrenderingwindow]
> [width=\textwidth, height=\textwidth,
>  %openpageaction=StartCurrentRendering,
>  %closepageaction=StopCurrentRendering,
>  openpageaction=StartRendering{\currentrendering},
>  closepageaction=StopRendering{\currentrendering},
>  framecolor=red]
>   \startTEXpage[offset=1em, pagestate=start]
>   \userendering[key-name][video/mp4][video.mp4]
> [embed=yes,
>  auto,
>  ]
>   \placerenderingwindow[myrenderingwindow][key-name]
>   \stopTEXpage
>   \null\page
>   \stoptext
>
> \userendering[][][auto] would enable automatic play or stop when the
> page with the rendering is reached or left (respectively).
>
> I cannot get it working. Neither do work the commented lines in
> \definerenderingwindow.
>
> Inspecting the PDF code, the screen annotation only gets an additional
> actions dictionary
> (https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#G11.2096829)
> with /PO and /PC entries, when open and close page actions are set to
> StartRendering{\currentrendering} and StopRendering{\currentrendering}.
>
> Just for reference, this is the screen annotation object with the
> additional actions dictionary:
>
>   13 0 obj
>   <<
> /Type /Annot
> /A <<
>   /AN 13 0 R
>   /OP 0
>   /R 12 0 R
>   /S /Rendition
> >>
> /AA <<
>   /PC <<
> /AN 13 0 R
> /OP 1
> /R 12 0 R
> /S /Rendition
>   >>
>   /PO <<
> /AN 13 0 R
> /OP 0
> /R 12 0 R
> /S /Rendition
>   >>
> >>
> /Border [ 0 0 0 ]
> /P 14 0 R
> /Subtype /Screen
> /T 
> /Rect [ 12.353668 12.353668 437.54664 437.54664 ]
>   >>
>   endobj
>
> And this is what I get with \userendering[][][auto]:
>
>   13 0 obj
>   <<
> /Type /Annot
> /A <<
>   /AN 13 0 R
>   /OP 0
>   /R 12 0 R
>   /S /Rendition
> >>
> /Border [ 0 0 0 ]
> /P 14 0 R
> /Subtype /Screen
> /T 
> /Rect [ 12.353668 12.353668 437.54664 437.54664 ]
>   >>
>   endobj
>
> Could anyone be so kind to confirm the issue?

AFAICT I based the auto option on the "Start/StopCurrentRendering"
actions (2021-09-14) which we later agreed to remove (2021-09-17), so
there was a bug. Reasoning for removal of the "Current" variants at the
time:

On Tue Sep 14, 2021 at 9:37 PM CEST, Hans Hagen wrote:
> Because \currentrendering is local we could as well drop the Current 
> variants ... it's not like people will put hundreds of videos in a file 
> so enforcing the named one makes sense.

So Start/StopRendering{label} should be used instead (Hans already redid
most of the examples, you found the two places in scrn-wid.mklx where
there is an incosistency.

I would think that something like the attached could work. But in some
cases it fails on the TeX side with something I am not sure about. I
probably overlooked something. Anyways the idea is to just use the
Start/StopRendering actions with the correct label.

Michal
if not modules then modules = { } end modules ['lpdf-wid'] = {
version   = 1.001,
comment   = "companion to lpdf-ini.mkiv",
author= "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license   = "see context related readme files"
}

-- It's about time to give up on media in pdf and admit that pdf lost it to 
html.
-- First we had movies and sound, quite easy to deal with, but obsolete now. 
Then we
-- had renditions but they turned out to be unreliable from the start and look
-- obsolete too or at least they are bound to the (obsolete) flash technology 
for
-- rendering. They were already complex constructs. Now we have rich media which
-- instead of providing a robust future proof framework for general media types
-- again seems to depend on viewers built in (yes, also kind of obsolete) flash
-- technology, and we cannot expect this non-open technology to show up in open
-- browsers. So, in the end we can best just use links to external resources to 
be
-- future proof. Just look at the viewer preferences pane to see how fragile 
support
-- is. Interestingly u3d support is kind of built in, while e.g. mp4 support 
relies
-- on wrapping in swf. We used to stay ahead of the pack with support of the 
fancy
-- pdf features but it backfires and is not worth the trouble. And yes, for 
control
-- (even simple like starting and stopping videos) one has to revert to 
JavaScript,
-- the other fragile bit. And, now that adobe quits flash in 2020 we're without 
any
-- video anyway. Also, it won't play on all platforms and 

[NTG-context] question about multimedia renderings

2023-01-15 Thread Pablo Rodriguez via ntg-context
Dear list,

I’m planning to add an explanation about multimedia inclusion to the
wiki, but first I wanted to discuss an issue I have found.

I have the following sample (adapted from scrn-wid.mklx):

  \setupinteraction[state=start]
  \starttext
  \null\page
  \definerenderingwindow[myrenderingwindow]
[width=\textwidth, height=\textwidth,
 %openpageaction=StartCurrentRendering,
 %closepageaction=StopCurrentRendering,
 openpageaction=StartRendering{\currentrendering},
 closepageaction=StopRendering{\currentrendering},
 framecolor=red]
  \startTEXpage[offset=1em, pagestate=start]
  \userendering[key-name][video/mp4][video.mp4]
[embed=yes,
 auto,
 ]
  \placerenderingwindow[myrenderingwindow][key-name]
  \stopTEXpage
  \null\page
  \stoptext

\userendering[][][auto] would enable automatic play or stop when the
page with the rendering is reached or left (respectively).

I cannot get it working. Neither do work the commented lines in
\definerenderingwindow.

Inspecting the PDF code, the screen annotation only gets an additional
actions dictionary
(https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#G11.2096829)
with /PO and /PC entries, when open and close page actions are set to
StartRendering{\currentrendering} and StopRendering{\currentrendering}.

Just for reference, this is the screen annotation object with the
additional actions dictionary:

  13 0 obj
  <<
/Type /Annot
/A <<
  /AN 13 0 R
  /OP 0
  /R 12 0 R
  /S /Rendition
>>
/AA <<
  /PC <<
/AN 13 0 R
/OP 1
/R 12 0 R
/S /Rendition
  >>
  /PO <<
/AN 13 0 R
/OP 0
/R 12 0 R
/S /Rendition
  >>
>>
/Border [ 0 0 0 ]
/P 14 0 R
/Subtype /Screen
/T 
/Rect [ 12.353668 12.353668 437.54664 437.54664 ]
  >>
  endobj

And this is what I get with \userendering[][][auto]:

  13 0 obj
  <<
/Type /Annot
/A <<
  /AN 13 0 R
  /OP 0
  /R 12 0 R
  /S /Rendition
>>
/Border [ 0 0 0 ]
/P 14 0 R
/Subtype /Screen
/T 
/Rect [ 12.353668 12.353668 437.54664 437.54664 ]
  >>
  endobj

Could anyone be so kind to confirm the issue?

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hmmm it seems the trick lies in adding

\setupfloats
[freeregion=no]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hi,

I just came across nofmultipars (which is great for splitting frames across
pages, unlike a simple framed). Is there an equivalent for floats?

The MWE would contain

\startuseMPgraphic{mp:textFrame}
begingroup;
path p ;
for i = 1 upto nofmultipars :
p := (ulcorner multipars[i]) -- (llcorner multipars[i]) -- (llcorner
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) --
cycle ;
fill p withcolor "darkgreen" ;
endfor;
endgroup;
\stopuseMPgraphic

together with

\definetextbackground
[exampleFrame]
[
mp=mp:textFrame,
location=paragraph,
]

Assuming I have between \starttextbackground[exampleFrame] and
\starttextbackground[exampleFrame] also a figure in addition to text
paragraphs. Would it be possible to also draw a rule next to it?

Best regards,
Alex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Question to footnote settings

2022-08-25 Thread Tomáš Hála via ntg-context
Hi all,
I am struggling with the width of a footnote number area. I would like to ask 
how can I set it dynamically based on the width of the largest number on a 
given page.

Without width I get two different footnote texts widths (compare #9+10).
With width there is a redundant space on the left (see p. 1).
(Number alignment to the right is required.)

Thanks in advance for some hints.

Tomáš

MWE:
\setupnotation[footnote][
  alternative=left,
  width=1em,
  numbercommand={\hfill\high},
]
\starttext
\showframe[text][text]
\dorecurse{6}{This is a text.\footnote{\dorecurse{12}{Blah blah blah. }} }
\page
\dorecurse{6}{This is a text.\footnote{\dorecurse{12}{Blah blah blah. }} }
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-24 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 02.10.2021 um 11:46:

Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
:

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:

Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it or \bi as 
a result. Look at the definition. If the current fontalternative is it \it it 
will give a \tf result. It is sensitive to the current state in a similar way 
that \em and \emph are, but it will always give an italic or roman result.


If we leave the comparisons between \em and \italicface aside and talk only 
about the results from \italicface we have a common ground.

You're right the results from \italicface aren't predictable and a fix is 
needed but the same applies also to \boldface, \slantedface and \typeface.

Attached is the output from a modified version of the styling command (the \sc 
column is the fallback style). \swapface is unchanged and I'm not sure about 
its output because it uses the \em code for italic and slanted which means 
\setupbodyfontenvironment[default][em=blue] affects also the \swapface results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...


Just a short update on the topic. The following four font switches 
result now in predictable output (e.g. \typeface produces always upright 
text which is either \tf or \bf):


    - \typeface
    - \italicface
    - \slantedface
    - \boldface

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-02 Thread Henning Hraban Ramm via ntg-context

> Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:
>> 
>> Wolfgang (off-list),
>> 
>> It is simply wrong to say that \italicface as defined gives only \it or \bi 
>> as a result. Look at the definition. If the current fontalternative is it 
>> \it it will give a \tf result. It is sensitive to the current state in a 
>> similar way that \em and \emph are, but it will always give an italic or 
>> roman result.
>> 
> 
> If we leave the comparisons between \em and \italicface aside and talk only 
> about the results from \italicface we have a common ground.
> 
> You're right the results from \italicface aren't predictable and a fix is 
> needed but the same applies also to \boldface, \slantedface and \typeface.
> 
> Attached is the output from a modified version of the styling command (the 
> \sc column is the fallback style). \swapface is unchanged and I'm not sure 
> about its output because it uses the \em code for italic and slanted which 
> means \setupbodyfontenvironment[default][em=blue] affects also the \swapface 
> results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-02 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:


Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it 
or \bi as a result. Look at the definition. If the current 
fontalternative is it \it it will give a \tf result. It is sensitive 
to the current state in a similar way that \em and \emph are, but it 
will always give an italic or roman result.




If we leave the comparisons between \em and \italicface aside and talk 
only about the results from \italicface we have a common ground.


You're right the results from \italicface aren't predictable and a fix 
is needed but the same applies also to \boldface, \slantedface and 
\typeface.


Attached is the output from a modified version of the styling command 
(the \sc column is the fallback style). \swapface is unchanged and I'm 
not sure about its output because it uses the \em code for italic and 
slanted which means \setupbodyfontenvironment[default][em=blue] affects 
also the \swapface results.


Wolfgang



emphasis.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context

Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it or 
\bi as a result. Look at the definition. If the current fontalternative 
is it \it it will give a \tf result. It is sensitive to the current 
state in a similar way that \em and \emph are, but it will always give 
an italic or roman result.


--
Rik

On 9/26/2021 18:37, Wolfgang Schuster via ntg-context wrote:

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:20:


So, I am asking whether, in places where folks often use 
style=italic, it might be better to consider style=italicface.


Bug report: \meaning\italicface gives:

protected macro:\relax \ifx \fontalternative \s!tf \it \orelse
\ifx \fontalternative
\s!bf \bi \else \tf \fi

This leaves out the transition from bi to bf. That transition is done 
by \emph, but \emph may give slanted while \italicface is always italic.




The \italicface command uses either \it or \bi as result but it never 
result in upright text and the "italic" in the name tells you this, 
there are commands (e.g. \boldface) with similar results. To get a 
slanted style you have to use the \slantedface command.


Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist :ntg-context@ntg.nl  /http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :http://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:20:

On 9/26/2021 16:29, Wolfgang Schuster via ntg-context wrote:

Rik Kabel via ntg-context schrieb am 26.09.2021 um 22:13:


Hello list mavens,

What are the circumstances under which style=italicface should be 
used instead of style=italic. I note a difference when I define 
highlighting. I expected to see no difference in the line before and 
line after the hairline the example below, but see that italicface 
adapts to nesting, while italic does not:


Are there other places where this makes a difference?

\setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
\definehighlight
    [emIt]
    [style=italic]
\definehighlight
    [emIf]
    [style=italicface]
\definehighlight
    [emEm]
    [style=\em]

\starttext

{\em abc {\em def} ghi}: \type{\em}

\emph{abc {\emph def} ghi}: \type{\emph}

\emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

\emIf{abc {\emIf def} ghi}: \type{\emIf
\definehighlight[style=italicface]}

\hairline

\emIt{abc {\emIt def} ghi}: \type{\emIt
\definehighlight[style=italic]}

\stoptext



The \em command has two special values which are allowed when you 
change the style with


    \setupbodyfontenvironment[default][em=...]

with the value "slanted" and "italic". When you choose one of them 
the result depends on the current weight (\tf or \bf) but with every 
other value you're just using whatever the style command/name provides.



When you pass "italicface" you're using a style which uses either \it 
or \bi dependant on the current weight. The result from the "italic" 
value doesn't depend on the behavior or the normal italic style (\it) 
which is the reason why you get different result when you use \em 
compared with \it.



Example:

\starttext

\tex{it}: normal {\it italic} {\bf bold {\it italic}}

\tex{italicface}: normal {\italicface italic} {\bf bold {\italicface 
italic}}


\tex{em}: normal {\em italic} {\bf bold {\em italic}}

\stoptext


Wolfgang 



Wolfgang,

I understand that mechanism, but I am asking a different question, I 
think.


When we specify style=\em or style=italic (and most examples I see use 
the later) in a setup of some sort, I think most folks expect similar 
behavior, but clearly it is not because italic does not track changes 
in emphasis. However, style=italicface does seem to match the behavior 
of style=\em (mostly, see the bug report below).




The basic font commands are \tf, \it, \sl, \bf, \bs and \bi and when you 
want for example bold italic text you always have to use \bi even the 
current text is already bold because \it produces normal italic text.


\em is a special case because it affects also italic text:

\starttext

\startlines
\tf normal {\em emphasized}
\sl slanted {\em emphasized}
\it italic {\em emphasized}
\bf bold {\em emphasized}
\bs bold slanted {\em emphasized}
\bi bold italic {\em emphasized}
\stoplines

\stoptext

So, I am asking whether, in places where folks often use style=italic, 
it might be better to consider style=italicface.


Bug report: \meaning\italicface gives:

protected macro:\relax \ifx \fontalternative \s!tf \it \orelse
\ifx \fontalternative
\s!bf \bi \else \tf \fi

This leaves out the transition from bi to bf. That transition is done 
by \emph, but \emph may give slanted while \italicface is always italic.




The \italicface command uses either \it or \bi as result but it never 
result in upright text and the "italic" in the name tells you this, 
there are commands (e.g. \boldface) with similar results. To get a 
slanted style you have to use the \slantedface command.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context

On 9/26/2021 16:29, Wolfgang Schuster via ntg-context wrote:

Rik Kabel via ntg-context schrieb am 26.09.2021 um 22:13:


Hello list mavens,

What are the circumstances under which style=italicface should be 
used instead of style=italic. I note a difference when I define 
highlighting. I expected to see no difference in the line before and 
line after the hairline the example below, but see that italicface 
adapts to nesting, while italic does not:


Are there other places where this makes a difference?

\setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
\definehighlight
    [emIt]
    [style=italic]
\definehighlight
    [emIf]
    [style=italicface]
\definehighlight
    [emEm]
    [style=\em]

\starttext

{\em abc {\em def} ghi}: \type{\em}

\emph{abc {\emph def} ghi}: \type{\emph}

\emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

\emIf{abc {\emIf def} ghi}: \type{\emIf
\definehighlight[style=italicface]}

\hairline

\emIt{abc {\emIt def} ghi}: \type{\emIt
\definehighlight[style=italic]}

\stoptext



The \em command has two special values which are allowed when you 
change the style with


    \setupbodyfontenvironment[default][em=...]

with the value "slanted" and "italic". When you choose one of them the 
result depends on the current weight (\tf or \bf) but with every other 
value you're just using whatever the style command/name provides.



When you pass "italicface" you're using a style which uses either \it 
or \bi dependant on the current weight. The result from the "italic" 
value doesn't depend on the behavior or the normal italic style (\it) 
which is the reason why you get different result when you use \em 
compared with \it.



Example:

\starttext

\tex{it}: normal {\it italic} {\bf bold {\it italic}}

\tex{italicface}: normal {\italicface italic} {\bf bold {\italicface 
italic}}


\tex{em}: normal {\em italic} {\bf bold {\em italic}}

\stoptext


Wolfgang 



Wolfgang,

I understand that mechanism, but I am asking a different question, I think.

When we specify style=\em or style=italic (and most examples I see use 
the later) in a setup of some sort, I think most folks expect similar 
behavior, but clearly it is not because italic does not track changes in 
emphasis. However, style=italicface does seem to match the behavior of 
style=\em (mostly, see the bug report below).


So, I am asking whether, in places where folks often use style=italic, 
it might be better to consider style=italicface.


Bug report: \meaning\italicface gives:

   protected macro:\relax \ifx \fontalternative \s!tf \it \orelse \ifx
   \fontalternative
   \s!bf \bi \else \tf \fi

This leaves out the transition from bi to bf. That transition is done by 
\emph, but \emph may give slanted while \italicface is always italic.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 26.09.2021 um 22:13:


Hello list mavens,

What are the circumstances under which style=italicface should be used 
instead of style=italic. I note a difference when I define 
highlighting. I expected to see no difference in the line before and 
line after the hairline the example below, but see that italicface 
adapts to nesting, while italic does not:


Are there other places where this makes a difference?

\setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
\definehighlight
    [emIt]
    [style=italic]
\definehighlight
    [emIf]
    [style=italicface]
\definehighlight
    [emEm]
    [style=\em]

\starttext

{\em abc {\em def} ghi}: \type{\em}

\emph{abc {\emph def} ghi}: \type{\emph}

\emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

\emIf{abc {\emIf def} ghi}: \type{\emIf
\definehighlight[style=italicface]}

\hairline

\emIt{abc {\emIt def} ghi}: \type{\emIt
\definehighlight[style=italic]}

\stoptext



The \em command has two special values which are allowed when you change 
the style with


    \setupbodyfontenvironment[default][em=...]

with the value "slanted" and "italic". When you choose one of them the 
result depends on the current weight (\tf or \bf) but with every other 
value you're just using whatever the style command/name provides.



When you pass "italicface" you're using a style which uses either \it or 
\bi dependant on the current weight. The result from the "italic" value 
doesn't depend on the behavior or the normal italic style (\it) which is 
the reason why you get different result when you use \em compared with \it.



Example:

\starttext

\tex{it}: normal {\it italic} {\bf bold {\it italic}}

\tex{italicface}: normal {\italicface italic} {\bf bold {\italicface 
italic}}


\tex{em}: normal {\em italic} {\bf bold {\em italic}}

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context

Hello list mavens,

What are the circumstances under which style=italicface should be used 
instead of style=italic. I note a difference when I define highlighting. 
I expected to see no difference in the line before and line after the 
hairline the example below, but see that italicface adapts to nesting, 
while italic does not:


Are there other places where this makes a difference?

   \setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
   \definehighlight
    [emIt]
    [style=italic]
   \definehighlight
    [emIf]
    [style=italicface]
   \definehighlight
    [emEm]
    [style=\em]

   \starttext

   {\em abc {\em def} ghi}: \type{\em}

   \emph{abc {\emph def} ghi}: \type{\emph}

   \emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

   \emIf{abc {\emIf def} ghi}: \type{\emIf
   \definehighlight[style=italicface]}

   \hairline

   \emIt{abc {\emIt def} ghi}: \type{\emIt \definehighlight[style=italic]}

   \stoptext

--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-28 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang,
Thank you for this nice solution.
Fabrice

Le mar. 27 juil. 2021 à 21:31, Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl> a écrit :

> Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57:
> > Hi,
> > The name of the environment must always end with a dot both with a title
> > and without title. How to do ?
> > Thanks
> > Fabrice
> >
> > [...]
>
>
> You can create simple dummy environments to test the parameters.
>
> \defineenumeration
>[grouptest]
>[title=yes,
>  text={dummy text},
> titleleft=,
>titleright=,
>   headcommand=\groupedcommand{[}{]},
> numbercommand=\groupedcommand{(}{)},
>  titlecommand=\groupedcommand{<}{>}]
>
> \starttext
>
> \startgrouptest [title={dummy title}]
> \unknown
> \stopgrouptest
>
> \startgrouptest
> \unknown
> \stopgrouptest
>
> \blank[2*line]
>
> \setupenumeration
>[grouptest]
>[number=no]
>
> \startgrouptest [title={dummy title}]
> \unknown
> \stopgrouptest
>
> \startgrouptest
> \unknown
> \stopgrouptest
>
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57:

Hi,
The name of the environment must always end with a dot both with a title 
and without title. How to do ?

Thanks
Fabrice

[...]



You can create simple dummy environments to test the parameters.

\defineenumeration
  [grouptest]
  [title=yes,
text={dummy text},
   titleleft=,
  titleright=,
 headcommand=\groupedcommand{[}{]},
   numbercommand=\groupedcommand{(}{)},
titlecommand=\groupedcommand{<}{>}]

\starttext

\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest

\startgrouptest
\unknown
\stopgrouptest

\blank[2*line]

\setupenumeration
  [grouptest]
  [number=no]

\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest

\startgrouptest
\unknown
\stopgrouptest

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hi,
The name of the environment must always end with a dot both with a title
and without title. How to do ?
Thanks
Fabrice

\setupenumerations
  [before={\blank},
   after={\blank},
   alternative=serried,
   title=yes,
   titleleft={(},
   titleright={)},
   titlestyle=normal,
   titlecommand=\groupedcommand{}{\bf.},
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=italic]

\starttext
\startdefinition{With a title}
\samplefile{lorem}
\stopdefinition
Without title but no dot after the name of the environment.
\startdefinition
\samplefile{lorem}
\stopdefinition
\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about followingup.pdf

2021-07-24 Thread Hans Hagen

On 7/24/2021 1:06 PM, Pablo Rodriguez wrote:

On 7/22/21 3:53 PM, Hans Hagen wrote:

On 7/22/2021 2:57 PM, Pablo Rodriguez wrote:

[...]
In latest, the PDF document for LMTX is from yesterday, but the PDF for
the Following Up manual is almost two years old.

Is this intended or am I missing something?

i just didn't regenerate the whole thing (when i add a chapter i
generate just that) .. it's not that critical, nostly a wrapup for
myself when working on something and users can generate it anyway


Many thanks for having updated the manual in current latest, Hans.

BTW, there is a minor issue. After the experiments scaling fonts, titles
for chapters 19
(https://www.pragma-ade.com/general/manuals/followingup.pdf#page=513)
and 20
(https://www.pragma-ade.com/general/manuals/followingup.pdf#page=517)
are displayed wrong.

Just in case it might help

ah, some test code ended up there ... i'll remove that

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about followingup.pdf

2021-07-24 Thread Pablo Rodriguez
On 7/22/21 3:53 PM, Hans Hagen wrote:
> On 7/22/2021 2:57 PM, Pablo Rodriguez wrote:
>> [...]
>> In latest, the PDF document for LMTX is from yesterday, but the PDF for
>> the Following Up manual is almost two years old.
>>
>> Is this intended or am I missing something?
> i just didn't regenerate the whole thing (when i add a chapter i
> generate just that) .. it's not that critical, nostly a wrapup for
> myself when working on something and users can generate it anyway

Many thanks for having updated the manual in current latest, Hans.

BTW, there is a minor issue. After the experiments scaling fonts, titles
for chapters 19
(https://www.pragma-ade.com/general/manuals/followingup.pdf#page=513)
and 20
(https://www.pragma-ade.com/general/manuals/followingup.pdf#page=517)
are displayed wrong.

Just in case it might 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about followingup.pdf

2021-07-22 Thread Hans Hagen

On 7/22/2021 2:57 PM, Pablo Rodriguez wrote:

Hi Hans,

current latest has content added to the Following Up manual and also to
the LMTX manual.

In latest, the PDF document for LMTX is from yesterday, but the PDF for
the Following Up manual is almost two years old.

Is this intended or am I missing something?
i just didn't regenerate the whole thing (when i add a chapter i 
generate just that) .. it's not that critical, nostly a wrapup for 
myself when working on something and users can generate it anyway


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] question about followingup.pdf

2021-07-22 Thread Pablo Rodriguez
Hi Hans,

current latest has content added to the Following Up manual and also to
the LMTX manual.

In latest, the PDF document for LMTX is from yesterday, but the PDF for
the Following Up manual is almost two years old.

Is this intended or am I missing something?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about "streams" module

2021-06-23 Thread MANUEL GONZALEZ SUAREZ
Thanks very much, Thomas.

-Mensaje original-
De: ntg-context [mailto:ntg-context-boun...@ntg.nl] En nombre de Thomas A. 
Schmitz
Enviado el: martes, 22 de junio de 2021 21:57
Para: mailing list for ConTeXt users 
Asunto: Re: [NTG-context] Question about "streams" module


On 6/22/21 5:43 PM, MANUEL GONZALEZ SUAREZ wrote:
> Hello everybody:
>   My question is this: Is the "streams" module obsolete? If not, where can I 
> find documentation on its use?
> Thanks
> M. González.

Hans is working on a new mechanism and has recently been thinking about 
integrating (some of) the functionality of this module. As far as I remember, 
it was mkii. (And I was the one who pushed Hans to do work on it, but could 
never really come up with a reasonable interface and
specifications.) So I would say yes, it is more or less obsolete; I wouldn't 
start a project with it.

Thomas
___
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://context.aanhet.net archive  : 
https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about "streams" module

2021-06-22 Thread Thomas A. Schmitz


On 6/22/21 5:43 PM, MANUEL GONZALEZ SUAREZ wrote:

Hello everybody:
  My question is this: Is the "streams" module obsolete? If not, where can I 
find documentation on its use?
Thanks
M. González.


Hans is working on a new mechanism and has recently been thinking about 
integrating (some of) the functionality of this module. As far as I 
remember, it was mkii. (And I was the one who pushed Hans to do work on 
it, but could never really come up with a reasonable interface and 
specifications.) So I would say yes, it is more or less obsolete; I 
wouldn't start a project with it.


Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question about "streams" module

2021-06-22 Thread MANUEL GONZALEZ SUAREZ
Hello everybody:
 My question is this: Is the "streams" module obsolete? If not, where can I 
find documentation on its use?
Thanks
M. González.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about parsing XML and attributes (normally var.at.attrib) with a name with ':' in it

2021-02-14 Thread Taco Hoekwater
Hi Gerben,

Not behind a computer right now, but you should look at the output of 

   table.print(foo)

Best wishes,
Taco

> On 14 Feb 2021, at 23:12, Gerben Wierda  wrote:
> 
> 
> foo.at[“attribute:B”]
> 
> I looked at the code and guessed this. Still haven’t found really good 
> documentation for lua, lua in ConTeXt, and especially theXML stuff (it’s all 
> written as \xmlsomething TeX commands. No idea if this is ConTeXt, lua or 
> whatever but it works.
> 
> Gerben Wierda (LinkedIn)
> R Enterprise Architecture (main site)
> Book: Chess and the Art of Enterprise Architecture
> Book: Mastering ArchiMate
> 
>> On 14 Feb 2021, at 22:40, Gerben Wierda  wrote:
>> 
>> If I have an XML element like this:
>> 
>> 
>> 
>> and it has been read in a lua variable foo, I can get at attribute x with 
>> foo.at.x 
>> 
>> But how do I get at attribute:B?
>> 
>> Gerben Wierda (LinkedIn)
>> R Enterprise Architecture (main site)
>> Book: Chess and the Art of Enterprise Architecture
>> Book: Mastering ArchiMate
>> 
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about parsing XML and attributes (normally var.at.attrib) with a name with ':' in it

2021-02-14 Thread Gerben Wierda
foo.at[“attribute:B”]

I looked at the code and guessed this. Still haven’t found really good 
documentation for lua, lua in ConTeXt, and especially theXML stuff (it’s all 
written as \xmlsomething TeX commands. No idea if this is ConTeXt, lua or 
whatever but it works.

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

> On 14 Feb 2021, at 22:40, Gerben Wierda  wrote:
> 
> If I have an XML element like this:
> 
> 
> 
> and it has been read in a lua variable foo, I can get at attribute x with 
> foo.at .x 
> 
> But how do I get at attribute:B?
> 
> Gerben Wierda (LinkedIn )
> R Enterprise Architecture  (main site)
> Book: Chess and the Art of Enterprise Architecture 
> 
> Book: Mastering ArchiMate 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question about parsing XML and attributes (normally var.at.attrib) with a name with ':' in it

2021-02-14 Thread Gerben Wierda
If I have an XML element like this:



and it has been read in a lua variable foo, I can get at attribute x with 
foo.at.x 

But how do I get at attribute:B?

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about vardef variables

2021-01-18 Thread Taco Hoekwater


> On 17 Jan 2021, at 11:17, Damien Thiriet  wrote:
> 
> Hi,
> 
> 
> I have some troubles with understanding metafun's macro mechanism.
> 
> Given this MWE:
> 
> \starttext
> \startMPpage
> 
> vardef Test (expr ab,cd)=
>   %numeric ab;
>   %numeric cd;
>   draw unitsquare scaled 10 xshifted ab;
>   draw unitsquare scaled 10 yshifted cd;
> enddef;
> 
> Test (50,100);
> \stopMPpage
> \stoptext
> 
> Uncommenting the two declarations makes me run intro a silent error. I was 
> lucky enough yesterday to get an explicit error message with a more 
> complex macro.  It made me figure out where my problems came from.
> 
> So here are my two questions:
> - Why shouldn't we tell metafun if expr is a path, a pair or so on?

You were (attempting to) redefine the macro’s arguments, but they are read-only.

A somewhat longer answer: the type of macro arguments in this case is “expr”. 
Metapost argument types are based solely on what the internal language parser 
needs to interpret the code; the language is not strongly typed.

Also, during macro expansion, your code is replaced by:

  %numeric (READONLY TEMP VALUE 1);
  %numeric (READONLY TEMP VALUE 2);
  draw unitsquare scaled 10 xshifted (READONLY TEMP VALUE 1);
  draw unitsquare scaled 10 yshifted (READONLY TEMP VALUE 2);

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)







___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about vardef variables

2021-01-17 Thread Jeong Dal
Dear Damien Thiriet,

If you change ‘vardef’ to ‘def’, you will get the figure.
There is a difference between ‘vardef’ and ‘def’.
AFAIK, vardef returns the value of the last statement in the macro.
Please see  the examples in Metafun manual from page 32 ~ .
I hope that you find your answer there.

I am sorry that I am not good enough to explain the variables.

Best regards,

Dalyoung

> 2021. 1. 17. 오후 8:00, ntg-context-requ...@ntg.nl 작성:
> 
> \starttext
> \startMPpage
> 
> vardef Test (expr ab,cd)=
>   %numeric ab;
>   %numeric cd;
>   draw unitsquare scaled 10 xshifted ab;
>   draw unitsquare scaled 10 yshifted cd;
> enddef;
> 
> Test (50,100);
> \stopMPpage
> \stoptext

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] question about vardef variables

2021-01-17 Thread Damien Thiriet
Hi,


I have some troubles with understanding metafun's macro mechanism.

Given this MWE:

\starttext
\startMPpage

vardef Test (expr ab,cd)=
   %numeric ab;
   %numeric cd;
   draw unitsquare scaled 10 xshifted ab;
   draw unitsquare scaled 10 yshifted cd;
enddef;

Test (50,100);
\stopMPpage
\stoptext

Uncommenting the two declarations makes me run intro a silent error. I was 
lucky enough yesterday to get an explicit error message with a more 
complex macro.  It made me figure out where my problems came from.

So here are my two questions:
- Why shouldn't we tell metafun if expr is a path, a pair or so on?
- Would it be possible to issue an error message each time this wrong
declaration is made?

Thanks,


Damien Thiriet 
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Hans Hagen

On 11/26/2020 10:03 PM, Pablo Rodriguez wrote:

On 11/26/20 5:26 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 25.11.2020 um 22:43:

[...]
Which is the way to avoid any vertical space between frames?


Variant 1:

 \offinterlineskip}


Many thanks for your reply, Wolfgang.

As always, your solution is straight to the point and works like a
charm. And it’s also highly instructive.

This is the first time I see \offinterlineskip. Thanks to “TeX for the
Impatient”, I see that this is a TeX command.


beware, it's a macro, not a primitive (and context has a bit different 
definition)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
A bit late to the party but maybe this helps... try "frameoffset":

\defineframed[caja][frameoffset=\zeropoint,width=5cm,height=2cm]
\starttext
\dorecurse{5}{\caja[frame=on]{Hello}}
\stoptext

-- 
Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
Disregard that... that is the default... it doesn't work as I thought
initially. Sorry for the noise.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 5:26 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 25.11.2020 um 22:43:
>> [...]
>> Which is the way to avoid any vertical space between frames?
>
> Variant 1:
>
> \offinterlineskip}

Many thanks for your reply, Wolfgang.

As always, your solution is straight to the point and works like a
charm. And it’s also highly instructive.

This is the first time I see \offinterlineskip. Thanks to “TeX for the
Impatient”, I see that this is a TeX command.

> Variant 2:
>
> \setuparranging
>[XY]

I wonder whether arranging is a more proper way of doing labels.

Maybe I’m too lazy, but I see this variant also as a more complex way to
achieve it.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 25.11.2020 um 22:43:

Dear list,

here is a minimal sample of frames to make up labels:

   \setuplayout[page]
   \starttext
   \dorecurse{16}{\dontleavehmode\dorecurse{4}
   {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
   \stoptext

Which is the way to avoid any vertical space between frames?


Variant 1:

\setuplayout
  [page]
  [backspace=5mm,
   topspace=10mm]

\setuplayout
  [page]

\starttext

\dorecurse{14}
  {\dontleavehmode
   \dorecurse{4}
 {\framed[width=5cm,height=2cm]{}}%
   \par
   \offinterlineskip}

\stoptext

Variant 2:

\definepapersize
  [etikett]
  [width=5cm,
   height=2cm]

\setuppapersize
  [etikett] [A4]

\setuplayout
  [page]

\setuppaper
  [nx=4,
   ny=14]

\setuppaper
  [dx=1sp,
   dy=1sp,
   backspace=5mm,
   topspace=10mm]

\setuparranging
  [XY]

\setuplayout
  [location=middle]

\starttext

\dorecurse{56}
  {\framed[width=max,height=max]{}}

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 9:42 AM, Henning Hraban Ramm wrote:
>> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez:
>> [...]
>> Which is the way to avoid any vertical space between frames?
>>
>> Sorry, this may be obvious, but I don’t know how to do it now.
>
> try offset=overlay
> don’t know if that goes all the way.

Many thanks for your reply, Hraban.

I’m afraid that offset is related to the space between frame and its
content.

Or at least, I couldn’t make it work.

> How about \blank[none,back,disable]?

Nope. But this contains the key to the solution.

\blank[-0.395mm] corrects the extra vertical space between frames in
this case.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Henning Hraban Ramm


> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez :
> 
> Dear list,
> 
> here is a minimal sample of frames to make up labels:
> 
>  \setuplayout[page]
>  \starttext
>  \dorecurse{16}{\dontleavehmode\dorecurse{4}
>  {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
>  \stoptext
> 
> Which is the way to avoid any vertical space between frames?
> 
> Sorry, this may be obvious, but I don’t know how to do it now.

try offset=overlay
don’t know if that goes all the way.
How about \blank[none,back,disable]?

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] question about frames

2020-11-25 Thread Pablo Rodriguez
Dear list,

here is a minimal sample of frames to make up labels:

  \setuplayout[page]
  \starttext
  \dorecurse{16}{\dontleavehmode\dorecurse{4}
  {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
  \stoptext

Which is the way to avoid any vertical space between frames?

Sorry, this may be obvious, but I don’t know how to do it now.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] question on page transitions

2020-07-25 Thread Pablo Rodriguez
Dear list,

I have a question about page transitions (lines 297-304 from scrn-pag.mkvi):

\def\scrn_transitions_set_indeed
  {\begingroup
   \edef\currentinteractionscreendelay{\interactionscreenparameter\c!delay}%
   \clf_setpagetransition
  n {\scrn_transitions_list}%
  delay \ifx\currentinteractionscreendelay\v!none
\zerocount\else\currentinteractionscreendelay\fi
   \relax
   \endgroup}

I wonder whether the "delay" option in \setupinteractionscreen defines
the number of seconds for the page or for the transition.

From what I read in the code above, I would say that the duration is
defined for the  transition itself.

Inspecting the output PDF code in generated documents, the duration is
set for the page.

In PDF code. /Page <> sets the number of seconds for the
page
(https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#search=duration).

/Page <> >> sets the number of seconds for the transition
(https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G11.2295795).

With the followling sample:

\setuppapersize[A9,landscape]
\setupinteraction[state=start]
\setupinteractionscreen[option=max, delay=5]
\setuppagetransitions[random]
\setupbodyfont[50pt]
\starttext
\dorecurse{2}{%
  \startmakeup[page][style=\bf\ss, align=center]
\recurselevel
  \stopmakeup%
  }
\stoptext

The output PDF document may contain a /Page object such as:

6 0 obj
<<
  /Contents 4 0 R
  /Dur 5
  /Trans <<
/Di 90
/M /O
/S /Fly
  >>
  /Type /Page
>>
endobj

This forces the viewer to advance the page after 5s. To have a
transition duration of 5s, it should read:

6 0 obj
<<
  /Contents 4 0 R
  /Trans <<
/D 5
/Di 90
/M /O
/S /Fly
  >>
  /Type /Page
>>
endobj

https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G11.2104292
shows the difference between /Dur and /D.

Could anyone confirm whether this should be fixed (or I’m missing
something)?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-19 Thread Hans Hagen

On 4/16/2020 2:03 PM, denis.maier.li...@mailbox.org wrote:


Yeah, it seems so. I'm much more afraid of getting Arabic and Judeo-Arabic 
right...
Well, just try it, and when it fails we figure it out. I don't know what 
the difference is between those two arabics but in the end it's all 
about jugling glyphs and some typographic conventions / differences I 
guess.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread Pablo Rodriguez
On 4/16/20 10:05 AM, denis.maier.li...@mailbox.org wrote:
>> Pablo Rodriguez hat am 16. April 2020 09:53 geschrieben:
>> [...]
>> Do you plan to release the slides of these talks?
>
> Sure, https://boris.unibe.ch/135830/ and https://boris.unibe.ch/135828/

Many thanks for the links, Denis.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread Pablo Rodriguez
On 4/16/20 10:00 AM, Arthur Reutenauer wrote:
> On Thu, Apr 16, 2020 at 09:53:46AM +0200, Pablo Rodriguez wrote:
>> [...]
>> Do you plan to release the slides of these talks?
>
>   
> https://conference.pkp.sfu.ca/index.php/pkp2019/pkp2019/paper/viewFile/719/455
>  and 
> https://conference.pkp.sfu.ca/index.php/pkp2019/pkp2019/paper/viewFile/691/471.

Many thanks for the links, Arthur.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread denis . maier . lists

> Hans Hagen  hat am 16. April 2020 12:24 geschrieben:
> 
>  
> On 4/16/2020 9:02 AM, Henning Hraban Ramm wrote:
> > 
> > 
> >> Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:
> >>
> >> Hi,
> >>
> >>> 1) Does anybody know of any scientific publisher or single journals
> >>> which accept papers/book chapters typeset in ConTeXt yet
> >>
> >> I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
> >> (https://bop.unibe.ch/index.php/judaica/index). (The first issue should 
> >> appear soon.) However, we do not accept ConTeXt sources as we use jats xml 
> >> as our production format. (Actually, I don't expect any of our authors is 
> >> using ConTeXt.)
> > 
> > Interesting. Is ConTeXt handling Hebrew well?
> hebrew is not that complex to handle so context should handle it okay 
> (assuming a proper font setup)


Yeah, it seems so. I'm much more afraid of getting Arabic and Judeo-Arabic 
right...

Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread Hans Hagen

On 4/16/2020 9:02 AM, Henning Hraban Ramm wrote:




Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:

Hi,


1) Does anybody know of any scientific publisher or single journals
which accept papers/book chapters typeset in ConTeXt yet


I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
(https://bop.unibe.ch/index.php/judaica/index). (The first issue should appear 
soon.) However, we do not accept ConTeXt sources as we use jats xml as our 
production format. (Actually, I don't expect any of our authors is using 
ConTeXt.)


Interesting. Is ConTeXt handling Hebrew well?
hebrew is not that complex to handle so context should handle it okay 
(assuming a proper font setup)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread luigi scarso
On Thu, Apr 16, 2020 at 9:08 AM Henning Hraban Ramm  wrote:

>
>
> > Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:
>
> I’m using a Python script to convert DOCX to ConTeXt.


c# under linux is also a valid option.

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread denis . maier . lists
> Henning Hraban Ramm  hat am 16. April 2020 09:02 geschrieben:

> > I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
> > (https://bop.unibe.ch/index.php/judaica/index). (The first issue should 
> > appear soon.) However, we do not accept ConTeXt sources as we use jats xml 
> > as our production format. (Actually, I don't expect any of our authors is 
> > using ConTeXt.)
> 
> Interesting. Is ConTeXt handling Hebrew well?

Well, it's not field tested yet. But yes, the demo files work.

> 
> > 
> >> 2) If there are any is any of them convinced enought about ConTeXt to 
> >> recommend use of ConTeXt or even provide template?
> > 
> > Yes, I gave two talks last year at the Public Knowledge Project Conference 
> > in Barcelona. One was about our general workflow (going from docx via 
> > pandoc markdown to jats xml; the other was about typesetting xml with 
> > ConTeXt.)
> 
> I’m using a Python script to convert DOCX to ConTeXt. The better the input, 
> the better the output can be. Usually there’s a lot of manual work. (Last 
> week I had an article whose author never grew out of the typewriter, i.e. 
> every line was a paragraph, footnotes were just paragraphs at the end of his 
> pages – of course my script couldn’t handle that well.)

Yeah, as always, the output is only as good as the input. That's partly why I 
use pandoc (twice, actually.) In a first run, I produce a normalized markdown 
file, where such idiosyncrasies are removed. There, I then add additional 
formatting. In the second run I can then produce the XML. We need the XML to 
produce a nice web view using the Lens Viewer. And also, with pandoc it's much 
easier to produce XML than ConTeXt. 

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread Arthur Reutenauer
On Thu, Apr 16, 2020 at 09:53:46AM +0200, Pablo Rodriguez wrote:
> On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote:
>> Yes, I gave two talks last year at the Public Knowledge Project
>> Conference in Barcelona. One was about our general workflow (going
>> from docx via pandoc markdown to jats xml; the other was about
>> typesetting xml with ConTeXt.)
> 
> Do you plan to release the slides of these talks?

  
https://conference.pkp.sfu.ca/index.php/pkp2019/pkp2019/paper/viewFile/719/455 
and 
https://conference.pkp.sfu.ca/index.php/pkp2019/pkp2019/paper/viewFile/691/471

Arthur
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread denis . maier . lists

> Pablo Rodriguez  hat am 16. April 2020 09:53 geschrieben:
> 
>  
> On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote:
> > [...]
> >> 2) If there are any is any of them convinced enought about ConTeXt
> >> to recommend use of ConTeXt or even provide template?
> >
> > Yes, I gave two talks last year at the Public Knowledge Project
> > Conference in Barcelona. One was about our general workflow (going
> > from docx via pandoc markdown to jats xml; the other was about
> > typesetting xml with ConTeXt.)
> 
> Do you plan to release the slides of these talks?

Sure, https://boris.unibe.ch/135830/ and https://boris.unibe.ch/135828/

Best, 
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread Pablo Rodriguez
On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote:
> [...]
>> 2) If there are any is any of them convinced enought about ConTeXt
>> to recommend use of ConTeXt or even provide template?
>
> Yes, I gave two talks last year at the Public Knowledge Project
> Conference in Barcelona. One was about our general workflow (going
> from docx via pandoc markdown to jats xml; the other was about
> typesetting xml with ConTeXt.)

Do you plan to release the slides of these talks?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread Henning Hraban Ramm


> Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:
> 
> Hi,
> 
>> 1) Does anybody know of any scientific publisher or single journals
>> which accept papers/book chapters typeset in ConTeXt yet
> 
> I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
> (https://bop.unibe.ch/index.php/judaica/index). (The first issue should 
> appear soon.) However, we do not accept ConTeXt sources as we use jats xml as 
> our production format. (Actually, I don't expect any of our authors is using 
> ConTeXt.)

Interesting. Is ConTeXt handling Hebrew well?

> 
>> 2) If there are any is any of them convinced enought about ConTeXt to 
>> recommend use of ConTeXt or even provide template?
> 
> Yes, I gave two talks last year at the Public Knowledge Project Conference in 
> Barcelona. One was about our general workflow (going from docx via pandoc 
> markdown to jats xml; the other was about typesetting xml with ConTeXt.)

I’m using a Python script to convert DOCX to ConTeXt. The better the input, the 
better the output can be. Usually there’s a lot of manual work. (Last week I 
had an article whose author never grew out of the typewriter, i.e. every line 
was a paragraph, footnotes were just paragraphs at the end of his pages – of 
course my script couldn’t handle that well.)


>> 3) What would be needed and what could help to make them aware?
>> (difficult to properly formulate, if unclear dont bother)
> 
> Don't know. Perhaps more examples?

Even LaTeX is a niche; there are not enough users of ConTeXt for it to look 
reliable, I guess. You can’t really use it without involving yourself in the 
community.

And while I generally love working with ConTeXt, I’m cursing it often enough 
for unexpected/undocumented behaviour, unfinished features and scattered 
documentation. My book is intended to fix the latter, but there’s no progress – 
I got too many different projects and severe limitations of working capacity. 
And children at home...

Best, Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread denis . maier . lists
Hi,

> 1) Does anybody know of any scientific publisher or single journals
> which accept papers/book chapters typeset in ConTeXt yet

I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
(https://bop.unibe.ch/index.php/judaica/index). (The first issue should appear 
soon.) However, we do not accept ConTeXt sources as we use jats xml as our 
production format. (Actually, I don't expect any of our authors is using 
ConTeXt.)

> 2) If there are any is any of them convinced enought about ConTeXt to 
> recommend use of ConTeXt or even provide template?

Yes, I gave two talks last year at the Public Knowledge Project Conference in 
Barcelona. One was about our general workflow (going from docx via pandoc 
markdown to jats xml; the other was about typesetting xml with ConTeXt.)

> 3) What would be needed and what could help to make them aware?
> (difficult to properly formulate, if unclear dont bother)

Don't know. Perhaps more examples?

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread Henning Hraban Ramm

> Am 15.04.2020 um 17:47 schrieb Christoph Hintermüller 
> :
> 
> 1) Does anybody know of any scientific publisher or single journals
> which accept papers/book chapters typeset in ConTeXt yet
> 2) If there are any is any of them convinced enought about ConTeXt to
> recommend use of ConTeXt or even provide template?

IRCPS’s journals are typeset with ConTeXt.
https://ircps.org

Also, our (Verlag Dreiviertelhaus) publications are mostly typeset with 
ConTeXt, including the magazine on German literature, Kritische Ausgabe.
https://www.dreiviertelhaus.de

Best, Hraban

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread Christoph Hintermüller
Hi 
Jet a completely different question just out of curiosity?

1) Does anybody know of any scientific publisher or single journals
which accept papers/book chapters typeset in ConTeXt yet
2) If there are any is any of them convinced enought about ConTeXt to
recommend use of ConTeXt or even provide template?
3) What would be needed and what could help to make them aware?
(difficult to properly formulate, if unclear dont bother)

Best
Xristoph

-- 
Christoph Hintermueller
Eisenhandstraße 33/23
4020 Linz Austria
Tel.: +43 650 8827347
mail: christ...@out-world.com
www: http://www.out-world.com

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-03-01 Thread Tomas Hala

Hans, thanks for the help.

I wikified it, see
https://wiki.contextgarden.net/Windows_10_64_bit_Installation_2019_--_how_to_install_from_TeXlive.

Would be anybody so kind and check the English collection names at some time?
(I have got no computer with W.)

Best wishes,

Tomáš

Tue, Feb 18, 2020 ve 02:56:47PM +0100 Hans Hagen napsal(a):
# On 2/18/2020 1:28 PM, Tomas Hala wrote:
# >Hi all,
# >
# >when one (eg. student) decides for customizing the Windows installation from 
TeXlive,
# >24 items will appear in the group of packages list.
# >
# >Because I have no experience with W. installations, I would like to ask
# >which of them are relevant or possible to use with ConTeXt MkIV (on W.).
# >(The aim is not to install unusable stuff.)
# >
# >Legend:
# >%=I guess no   +=I guess yes   ?=I am not sure
# >
# >[translated from the Czech version of the Installer]
# >
# >+ Additional fonts
# >+ ConTeXt etc.
# >+ LuaTeX
# >+ MetaPost and Metafont
# 
# probably not as we have mplib buil tin
# 
# >+ Recommended Fonts
# >+ TeXWorks
# 
# probably not unless you use it
# 
# >+ Auxillary programmes for W.
# 
# mkiv ... i guess nothing additional makes sense
# 
# >% Additional for LaTeX
# >% Art Fields
# >% Basic LaTeX
# >% Basic (La)TeX
# >% Publishing styles
# >% Recommended LaTeX
# >% Typesetting Games
# 
# >? Additional formats
# 
# no
# 
# >? Auxillary programmes for TeX
# 
# no
# 
# >? Graphics, images, diagrams
# 
# probably no
# 
# >? Math, nat. sci., comp. sci.
# 
# no, context stuff comes with context already
# 
# >? Music
# 
# unlikely
# 
# >? Necessary programmes and files
# 
# what is that
# 
# >? PSTricks
# 
# only if used
# 
# >? Additional for BibTeX
# 
# no
# 
# >? SW for graphics and fonts
# 
# no
# 
# >? XeTeX etc.
# 
# not for mkiv
# 
# Hans
# 
# -
#   Hans Hagen | PRAGMA ADE
#   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
#tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
# -

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Mojca Miklavec
On Tue, 18 Feb 2020 at 13:28, Tomas Hala wrote:
>
> Hi all,
>
> when one (eg. student) decides for customizing the Windows installation from 
> TeXlive,
> 24 items will appear in the group of packages list.
>
> Because I have no experience with W. installations, I would like to ask
> which of them are relevant or possible to use with ConTeXt MkIV (on W.).
> (The aim is not to install unusable stuff.)

Pick the ConTeXt scheme.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Hans Hagen

On 2/18/2020 1:28 PM, Tomas Hala wrote:

Hi all,

when one (eg. student) decides for customizing the Windows installation from 
TeXlive,
24 items will appear in the group of packages list.

Because I have no experience with W. installations, I would like to ask
which of them are relevant or possible to use with ConTeXt MkIV (on W.).
(The aim is not to install unusable stuff.)

Legend:
%=I guess no   +=I guess yes   ?=I am not sure

[translated from the Czech version of the Installer]

+ Additional fonts
+ ConTeXt etc.
+ LuaTeX
+ MetaPost and Metafont


probably not as we have mplib buil tin


+ Recommended Fonts
+ TeXWorks


probably not unless you use it


+ Auxillary programmes for W.


mkiv ... i guess nothing additional makes sense


% Additional for LaTeX
% Art Fields
% Basic LaTeX
% Basic (La)TeX
% Publishing styles
% Recommended LaTeX
% Typesetting Games



? Additional formats


no


? Auxillary programmes for TeX


no


? Graphics, images, diagrams


probably no


? Math, nat. sci., comp. sci.


no, context stuff comes with context already


? Music


unlikely


? Necessary programmes and files


what is that


? PSTricks


only if used


? Additional for BibTeX


no


? SW for graphics and fonts


no


? XeTeX etc.


not for mkiv

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Tomas Hala
Hi all,

when one (eg. student) decides for customizing the Windows installation from 
TeXlive, 
24 items will appear in the group of packages list. 

Because I have no experience with W. installations, I would like to ask
which of them are relevant or possible to use with ConTeXt MkIV (on W.).
(The aim is not to install unusable stuff.)

Legend:
%=I guess no   +=I guess yes   ?=I am not sure

[translated from the Czech version of the Installer]

+ Additional fonts
+ ConTeXt etc.
+ LuaTeX
+ MetaPost and Metafont
+ Recommended Fonts
+ TeXWorks
+ Auxillary programmes for W.

% Additional for LaTeX
% Art Fields
% Basic LaTeX 
% Basic (La)TeX 
% Publishing styles
% Recommended LaTeX
% Typesetting Games

? Additional formats
? Auxillary programmes for TeX
? Graphics, images, diagrams
? Math, nat. sci., comp. sci. 
? Music
? Necessary programmes and files
? PSTricks
? Additional for BibTeX
? SW for graphics and fonts
? XeTeX etc.

Thanks in advance. 
(After completion I can put it on the wiki.)

Best wishes,

Tomáš
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] [question] \clipping some data from a pdf

2020-01-30 Thread Aditya Mahajan

On Wed, 29 Jan 2020, Henning Hraban Ramm wrote:




Am 2020-01-29 um 00:27 schrieb Floris van Manen :
Or does there happen to be some snazzy tool out there to get the
coordinates of embedden images within a pdf?


In case the "right" size of your image is defined as one of the PDF boxes 
(MediaBox, TrimBox, CropBox, ArtBox), you can set \externalfigure[drawing][size=art] 
(size=none/media/crop/trim/art).


This was documented at 
https://www.contextgarden.net/Command/useexternalfigure


but I also added a short description at 
https://www.contextgarden.net/Using_Graphics


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] [question] \clipping some data from a pdf

2020-01-28 Thread Henning Hraban Ramm

> Am 2020-01-29 um 00:27 schrieb Floris van Manen :
> Or does there happen to be some snazzy tool out there to get the
> coordinates of embedden images within a pdf?

In case the "right" size of your image is defined as one of the PDF boxes 
(MediaBox, TrimBox, CropBox, ArtBox), you can set 
\externalfigure[drawing][size=art] (size=none/media/crop/trim/art).

Best, Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] [question] \clipping some data from a pdf

2020-01-28 Thread Floris van Manen
Does anyone know?

Using the latest LMTX, i try to clip some portion of an external  pdf
page, then resize that portion on top a new page.
i use the \clip command.

\starttext
\scale[width=100mm, hwight=100mm]{\clip[width=150mm, height=120mm,
hoffset=30mm, voffset=40mm]{\externalfigure[drawing.pdf]}} % incorrect

\scale[width=100mm, hwight=100mm]{\clip[width=150mm, height=120mm,
hoffset=30mm, voffset=136mm]{\externalfigure[drawing.pdf]}} % correct
\stoptext

I noticed that the voffset parameter *always* counts from the top/left
of the external source. Also if the source has its origin defined at the
lower/left corner.
Is that intentional?

It is confusing as when i place a rectangle on top of the clip i want to
extract from the source pdf, the x,w,w,h of that rectangle will not
match the parameter needed for the \clip command.

Or does there happen to be some snazzy tool out there to get the
coordinates of embedden images within a pdf?

.Floris



pEpkey.asc
Description: application/pgp-keys
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to a table

2019-08-07 Thread Wolfgang Schuster

Ursula Hermann schrieb am 07.08.2019 um 11:22:


Hello list!

I have:

\starttext

\setupcombination

   [location=top,

    distance=\spaceamount]

\bTABLE[align=flushleft,columndistance=0.1em]

   \bTR

 \bTD[width=2cm] Small \eTD

     \bTD[width=0.05\textwidth] \eTD

   \eTR

\eTABLE

\stoptext

I have a question tot he sencond bTD [with 0.05\textwidth] \eTD, because:

I would like to know:

how can I put two different colors in this second bTD, should I do 
this like an overlay?


There is not any text there.

So that i have as an example to the list, pink and mystirose together, 
in one peace of the table without any text.


Can you be more concrete what you try to achieve. Do want different 
colors for the borders or just two rules with different colors, the 
first can be achieved with a background graphics while the second can be 
done with the \blackrule command.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question to a table

2019-08-07 Thread Ursula Hermann
Hello list!

I have:
\starttext
\setupcombination
   [location=top,
distance=\spaceamount]
\bTABLE[align=flushleft,columndistance=0.1em]
   \bTR
 \bTD[width=2cm] Small \eTD
 \bTD[width=0.05\textwidth] \eTD
   \eTR
\eTABLE
\stoptext

I have a question tot he sencond bTD [with 0.05\textwidth] \eTD, because:
I would like to know:
how can I put two different colors in this second bTD, should I do this like an 
overlay?
There is not any text there.
So that i have as an example to the list, pink and mystirose together, in one 
peace of the table without any text.

Many thanks to the list

Uschi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about lpath

2019-06-09 Thread Pablo Rodriguez
On 6/9/19 12:14 PM, Hans Hagen wrote:
> On 6/8/2019 8:17 PM, Pablo Rodriguez wrote:
>> [...]
>>[contains(@class,'level2') and not contains(@id,'sinopsis')]
>>
>> Is there no way to get something as "@id~='sinopsis'" (which intends to
>> have the id attribute "not equal to" sinopsis) in an lpath?.
>
> did you try [. and not (@id == 'sinopsis') .]

Many thanks for your help, Hans.

I had no idea that there was such an option in lpaths.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about lpath

2019-06-09 Thread Hans Hagen

On 6/8/2019 8:17 PM, Pablo Rodriguez wrote:

Dear list,

I have the following lpath:

   [contains(@class,'level2') and not contains(@id,'sinopsis')]

Is there no way to get something as "@id~='sinopsis'" (which intends to
have the id attribute "not equal to" sinopsis) in an lpath?.


did you try [. and not (@id == 'sinopsis') .]


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] question about lpath

2019-06-08 Thread Pablo Rodriguez
Dear list,

I have the following lpath:

  [contains(@class,'level2') and not contains(@id,'sinopsis')]

Is there no way to get something as "@id~='sinopsis'" (which intends to
have the id attribute "not equal to" sinopsis) in an lpath?.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to lines in linetable

2019-04-28 Thread Tomas Hala

Sun, Apr 28, 2019 ve 01:01:12PM +0200 Hans Hagen napsal(a):
# On 4/27/2019 10:55 PM, Tomas Hala wrote:
# >Hi all,
# >
# >I tried linetable tables (mkiv, TL2017) because I need even
# >horizontal splitting. It works fine but I do not know how to make
# >either horizontal or vertical lines.
# >
# >Have somebody got some experience with this?
# There are no options (yet) for that but you can do
# 
# % \setuplinetable[r][odd] [background=color,backgroundcolor=gray]
# % \setuplinetable[r][even][background=color,backgroundcolor=green]
# 
# Hans

Thank you.

It could help but unfornately in the given case it does not suit to 
other (natural) tables which are designed by hrules.

I am looking forward to the future option.

The bes,

Tomáš


# 
# -
#   Hans Hagen | PRAGMA ADE
#   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
#tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
# -

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to lines in linetable

2019-04-28 Thread Hans Hagen

On 4/27/2019 10:55 PM, Tomas Hala wrote:

Hi all,

I tried linetable tables (mkiv, TL2017) because I need even
horizontal splitting. It works fine but I do not know how to make
either horizontal or vertical lines.

Have somebody got some experience with this?

There are no options (yet) for that but you can do

% \setuplinetable[r][odd] [background=color,backgroundcolor=gray]
% \setuplinetable[r][even][background=color,backgroundcolor=green]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question to lines in linetable

2019-04-27 Thread Tomas Hala
Hi all,

I tried linetable tables (mkiv, TL2017) because I need even
horizontal splitting. It works fine but I do not know how to make
either horizontal or vertical lines.

Have somebody got some experience with this?

Best wishes,

Tomáš

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question to floating figure and grid

2019-03-22 Thread Tomas Hala
Hi all,

the following code worked in TL2017 but in TL2018 the unwanted vertical
space appears before the 2nd knuth.tex. I do not know how to supress it.

I also do not know how to deal with the distance between the text and the
figure, I guessed that is controled by leftmargindistance but it makes
nothing. What am I doing wrong?

Best wishes,

Tomáš

%%%
\setuplayout[grid=yes] 
\starttext

\def\myfig#1#2#3#4{
\startplacefigure[location={right,none}]
  \setupfloat[roffset=0cc]  % leftmargindistance=2cm
  \startfloatcombination[1*1]
\setupfloatcaption[align=middle]
\placefigure[][#1]{#2}{\externalfigure[#3][#4]}
  \stopfloatcombination
\stopplacefigure}

\input knuth

\myfig{fig1}{This is FIG1}{any.jpg}{scale=250}
\input knuth

\input knuth

\stoptext

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question and Answer Iteration

2019-03-12 Thread Wolfgang Schuster

Jeroen schrieb am 12.03.19 um 18:16:

Dear list

The configuration below is what I found for a question and answer 
section. If would like the text to start immediately after "question 
1", "question2", etc. and not below it and the same for the answers. 
Is there an easy way to achieve this?


Regards, Jeroen


\setupinteraction[state=start]

\define[1]\QuestionTextCommand
{\doglobal\increment\QuestionCounter
\pagereference[question:\QuestionCounter]%
\doifreferencefoundelse{answer:\QuestionCounter}
{\goto{#1}[answer:\QuestionCounter]}
  {#1}}

\define[1]\AnswerTextCommand
{\doglobal\increment\AnswerCounter
\pagereference[answer:\AnswerCounter]%
\doifreferencefoundelse{question:\AnswerCounter}
{\goto{#1}[question:\AnswerCounter]}
  {#1}}

\defineenumeration
[question]
   [text=Question,

alternative=serried,

    headcommand=\QuestionTextCommand]

\defineenumeration
[answer]
   [text=Answer,

alternative=serried,

    headcommand=\AnswerTextCommand]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question and Answer Iteration

2019-03-12 Thread Jeroen
Dear list

The configuration below is what I found for a question and answer section.
If would like the text to start immediately after "question 1",
"question2", etc. and not below it and the same for the answers. Is there
an easy way to achieve this?

Regards, Jeroen


\setupinteraction[state=start]

\define[1]\QuestionTextCommand
   {\doglobal\increment\QuestionCounter
\pagereference[question:\QuestionCounter]%
\doifreferencefoundelse{answer:\QuestionCounter}
  {\goto{#1}[answer:\QuestionCounter]}
  {#1}}

\define[1]\AnswerTextCommand
   {\doglobal\increment\AnswerCounter
\pagereference[answer:\AnswerCounter]%
\doifreferencefoundelse{question:\AnswerCounter}
  {\goto{#1}[question:\AnswerCounter]}
  {#1}}

\defineenumeration
   [question]
   [text=Question,
headcommand=\QuestionTextCommand]

\defineenumeration
   [answer]
   [text=Answer,
headcommand=\AnswerTextCommand]

\defineblock[answer]

\startbuffer
 %
 \startquestion
 \input knuth
 \stopquestion
 %
 \beginanswer
 \startanswer
 \input knuth
 \stopanswer
 \endanswer
 %
\stopbuffer

\starttext
\dorecurse{10}{\getbuffer}

\page

\useblocks[answer]

\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to key commnad at \setuphead

2019-03-05 Thread Tomas Hala
Thank you, Wolgang, that's it. 

Yesterday I tried also numbercommand, textcommand, etc. and the described
problem did not appear. Why the key "command" needs \unexpanded and
other keys (*command) not? 

Best wishes,

Tomáš 


Mon, Mar 04, 2019 ve 06:50:27PM +0100 Wolfgang Schuster napsal(a):
# Tomas Hala schrieb am 04.03.19 um 18:42:
# >Hi all,
# >
# >compiling the ME below (ConTeXt from TeXlive) I got this error message:
# >
# >! Argument of \MyChapterCommand has an extra }
# >
# >and I do not know why. What am I doing wrong?
# >
# >Best wishes,
# >
# >Tomáš
# >
# >===
# >\starttext
# >\def\MyChapterCommand#1#2{::#1//#2==}
# 
# Use
# 
# \define[2]\MyChapterCommand{::#1//#2==}
# 
# or
# 
# \unexpanded\def\MyChapterCommand#1#2{::#1//#2==}
# 
# 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question to key commnad at \setuphead

2019-03-04 Thread Wolfgang Schuster

Tomas Hala schrieb am 04.03.19 um 18:42:

Hi all,

compiling the ME below (ConTeXt from TeXlive) I got this error message:

! Argument of \MyChapterCommand has an extra }

and I do not know why. What am I doing wrong?

Best wishes,

Tomáš

===
\starttext
\def\MyChapterCommand#1#2{::#1//#2==}


Use

\define[2]\MyChapterCommand{::#1//#2==}

or

\unexpanded\def\MyChapterCommand#1#2{::#1//#2==}

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Question to key commnad at \setuphead

2019-03-04 Thread Tomas Hala
Hi all,

compiling the ME below (ConTeXt from TeXlive) I got this error message:

! Argument of \MyChapterCommand has an extra }

and I do not know why. What am I doing wrong?

Best wishes,

Tomáš 

===
\starttext
\def\MyChapterCommand#1#2{::#1//#2==}
%\setuphead [chapter][command=\MyChapterCommand]  %% does not work
 \setupheads[chapter][command=\MyChapterCommand]  %% does not work
\chapter{A}
\stoptext
===

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Alan Braslau
On Fri, 21 Dec 2018 00:17:25 +0100
Fabrice Couvreur  wrote:

> Why does the definition of the r path that Hans proposed give the
> same result as what I propose ?

Look at the definition of bottomboundary in mp-tool.mpiv
Use whatever you prefer.

You might also be interested in the modification that I added to
label:

label.llft("B", p) ;
label.lrt ("C", p) ;

etc.

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Fabrice Couvreur
Hi,
I need to make a figure with shaded areas and I found this code proposed by
Hans. Why does the definition of the r path that Hans proposed give the
same result as what I propose ?
Thank you.
Fabrice

\starttext
\startMPpage[offset=2pt]
 path p, q, r ; pair z ;
 p := unitsquare scaled 4cm ;
 z := point 3.6 of p ;
 q := z--urcorner p ;
 r := z--urcorner p--lrcorner p--llcorner p--cycle ;
  %r := q -- reverse bottomboundary p -- cycle ; definition of Hans
 draw p ;
 draw r numberstriped (.25,10,5) withcolor magenta ;
 draw thetextext.llft("B", llcorner p) ;
 draw thetextext.lrt ("C", lrcorner p) ;
 draw thetextext.ulft("A", ulcorner p) ;
 draw thetextext.urt ("D", urcorner p) ;
 draw thetextext.lft ("M", z) ;
\stopMPpage
\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] question about fonts.handlers.otf.addfeature

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 11:03 PM, Hans Hagen wrote:
> On 12/6/2018 9:55 PM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> as far as I know, fonts.handlers.otf.addfeature has the following types:
>> substitution, alternate, multiple, ligature, kern and chainsubstitution.
>>
>> Is there a type of feature that simply moves a single glyph when activated?
> 
> i think that there are examples in the test suite of pairwise or single 
> positioning

You are right, Hans.

\startluacode
fonts.handlers.otf.addfeature {
name = "stest",
type = "single",
data = {
a = { -500, 0, -500, 0 },
}
}
\stopluacode

Sorry, but I forgot to consider the test suite.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] question about fonts.handlers.otf.addfeature

2018-12-06 Thread Hans Hagen

On 12/6/2018 9:55 PM, Pablo Rodriguez wrote:

Dear list,

as far as I know, fonts.handlers.otf.addfeature has the following types:
substitution, alternate, multiple, ligature, kern and chainsubstitution.

Is there a type of feature that simply moves a single glyph when activated?


i think that there ae examples in the test suite of pairwise or single 
positioning




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] question about fonts.handlers.otf.addfeature

2018-12-06 Thread Pablo Rodriguez
Dear list,

as far as I know, fonts.handlers.otf.addfeature has the following types:
substitution, alternate, multiple, ligature, kern and chainsubstitution.

Is there a type of feature that simply moves a single glyph when activated?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] question about a ligature

2018-12-02 Thread Pablo Rodriguez
Dear list,

diving into the Lua code from MkIV, I found a way to add ligatures.

But I have a problem with the following sample:

\startluacode
fonts.handlers.otf.addfeature {
name = "linearb",
type = "ligature",
data = {
C  = { "d", "w", "e" },
Y = { "d", "a" },
b = { "P", "Q" },
}
}
\stopluacode
\definefontfeature[default][default][linearb=yes]

\definefallbackfamily
[mainface]
[rm]
[Noto Sans Linear B]
[range={linearbideograms, linearbsyllabary}]

\definefontfamily
[mainface]
[rm]
[Noto Sans]

\setupbodyfont[mainface]

\starttext
\startTEXpage
da dwe PQ C
\stopTEXpage
\stoptext

What am I missing to get the "dwe" ligature?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-30 Thread Fabrice Couvreur
Hello Mikael,
I read the documentation that I think I partly understood; I was really off
topic.
Fabrice

Le mar. 28 août 2018 à 12:58, Mikael P. Sundqvist  a
écrit :

> On Tue, Aug 28, 2018 at 11:59 AM Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> wrote:
>
>> Hi Mikael,
>> I suppose the files test1 and test2 have a special structure ?
>>
>> %%% file.tex
>> \doifnotmode{test1}{\enablemode[test1,test2]}
>> \starttext
>> \startmode[test1,all]
>> We are in mode test1.
>> \stopmode
>> \startmode[test2,all]
>> We are in mode test2.
>> \stopmode
>> \stoptext
>> %%%
>>
>> %%% test1.tex
>> 
>> %%%
>>
>> %%% test2.tex
>> ???
>> %%%
>>
>> Fabrice
>>
>> Le mar. 28 août 2018 à 11:05, Mikael P. Sundqvist  a
>> écrit :
>>
>>> On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur <
>>> fabrice1.couvr...@gmail.com> wrote:
>>>
 Hi Mikael,
 I do not know this way yet. Can you attach a complete example ?
 Regards,
 Fabrice

 Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a
 écrit :

> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :
>
> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
> wrote:
> > >
> > > Hi!
> > >
> > > I am writing notes for my teaching and would like to do the
> following with modes:
> > >
> > > * If the file is compiled with context file.tex then everything
> (i.e. the content in all modes) is typeset.
> > > * If the file is compiled with context --mode=test1 file.tex then
> only mode test1 is typeset.
> > >
> > > I do not see how to do this easily.
> >
> >
> > This is what I would do if the list of modes is small:
> >
> > \doifnotmode{test1}{\enablemode[test1,test2]}
> >
> > (and don’t use the \definemode lines)
> >
> > But if you need many of them, that could get problematic with
> > many nested \doifmodeelse statements.
> >
> > In that case, I would use a separate ‘all’ mode, and call the
> > context script with that as argument in the generic case.
> >
> >
> > %%% file.tex
> > \starttext
> > \startmode[test1,all]
> > We are in mode test1.
> > \stopmode
> > \startmode[test2,all]
> > We are in mode test2.
> > \stopmode
> > \stoptext
> > %%%
> >
> >
> ___
> >
> > Thank you, Taco!
> >
> > I have around 25 of them, and your solution with "all" works indeed
> well for me.
>
>
> There’s also
>
> \startnotmode[some]
> This is not typeset in "some" mode.
> \stopnotmode
>
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
 archive  : https://bitbucket.org/phg/context-mirror/commits/
 wiki : http://contextgarden.net

 ___
>>>
>>>
>>> Fabrice,
>>>
>>> Taco's example is complete. Try
>>>
>>> context file.tex
>>> context --mode=test1 file.tex
>>> context --mode=all file.tex
>>>
>>> and you will get, in turn, nothing, the content in mode test1,
>>> everything.
>>>
>>> /Mikael
>>>
>>> ___
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> 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 /
>> 

Re: [NTG-context] question about German hyphenation

2018-08-28 Thread Pablo Rodriguez
On 08/26/2018 09:36 PM, Ulrike Fischer wrote:
> Am Sun, 26 Aug 2018 17:26:45 +0200 schrieb Pablo Rodriguez:
>> [...]
>> I’m not a native speaker, but I think that "Rindfleisch-etikettierung"
>> is right in German. (And I think that "Rindflei-schetikettierung" is wrong.)
>>
> Yes it is wrong. Correct hyphenation points are 
> 
> Rind-fleisch-e-ti-ket-tie-rung 

Many thanks for your reply, Ulrike.

>> Are the hyphenation patterns wrong in the cases above, or am I missing
>> something?
> 
> That's difficult to do right with patterns, in latex it is isn't
> correct either. The problem is that two words have been combined.
> (Rindfleisch and Etikettierung). 

I understand that this is an extreme example, so I’m going to add a new
hyphenation pattern to my presentation and forget about it.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Mikael P. Sundqvist
On Tue, Aug 28, 2018 at 11:59 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hi Mikael,
> I suppose the files test1 and test2 have a special structure ?
>
> %%% file.tex
> \doifnotmode{test1}{\enablemode[test1,test2]}
> \starttext
> \startmode[test1,all]
> We are in mode test1.
> \stopmode
> \startmode[test2,all]
> We are in mode test2.
> \stopmode
> \stoptext
> %%%
>
> %%% test1.tex
> 
> %%%
>
> %%% test2.tex
> ???
> %%%
>
> Fabrice
>
> Le mar. 28 août 2018 à 11:05, Mikael P. Sundqvist  a
> écrit :
>
>> On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur <
>> fabrice1.couvr...@gmail.com> wrote:
>>
>>> Hi Mikael,
>>> I do not know this way yet. Can you attach a complete example ?
>>> Regards,
>>> Fabrice
>>>
>>> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a
>>> écrit :
>>>
 Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :

 > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
 wrote:
 > >
 > > Hi!
 > >
 > > I am writing notes for my teaching and would like to do the
 following with modes:
 > >
 > > * If the file is compiled with context file.tex then everything
 (i.e. the content in all modes) is typeset.
 > > * If the file is compiled with context --mode=test1 file.tex then
 only mode test1 is typeset.
 > >
 > > I do not see how to do this easily.
 >
 >
 > This is what I would do if the list of modes is small:
 >
 > \doifnotmode{test1}{\enablemode[test1,test2]}
 >
 > (and don’t use the \definemode lines)
 >
 > But if you need many of them, that could get problematic with
 > many nested \doifmodeelse statements.
 >
 > In that case, I would use a separate ‘all’ mode, and call the
 > context script with that as argument in the generic case.
 >
 >
 > %%% file.tex
 > \starttext
 > \startmode[test1,all]
 > We are in mode test1.
 > \stopmode
 > \startmode[test2,all]
 > We are in mode test2.
 > \stopmode
 > \stoptext
 > %%%
 >
 >
 ___
 >
 > Thank you, Taco!
 >
 > I have around 25 of them, and your solution with "all" works indeed
 well for me.


 There’s also

 \startnotmode[some]
 This is not typeset in "some" mode.
 \stopnotmode


 Greetlings, Hraban
 ---
 https://www.fiee.net
 http://wiki.contextgarden.net
 https://www.dreiviertelhaus.de
 GPG Key ID 1C9B22FD


 ___
 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://context.aanhet.net
 archive  : https://bitbucket.org/phg/context-mirror/commits/
 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>>
>>> ___
>>
>>
>> Fabrice,
>>
>> Taco's example is complete. Try
>>
>> context file.tex
>> context --mode=test1 file.tex
>> context --mode=all file.tex
>>
>> and you will get, in turn, nothing, the content in mode test1, everything.
>>
>> /Mikael
>>
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___


Fabrice,

there is some misunderstanding. The code from 

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Fabrice Couvreur
Hi Mikael,
I suppose the files test1 and test2 have a special structure ?

%%% file.tex
\doifnotmode{test1}{\enablemode[test1,test2]}
\starttext
\startmode[test1,all]
We are in mode test1.
\stopmode
\startmode[test2,all]
We are in mode test2.
\stopmode
\stoptext
%%%

%%% test1.tex

%%%

%%% test2.tex
???
%%%

Fabrice

Le mar. 28 août 2018 à 11:05, Mikael P. Sundqvist  a
écrit :

> On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> wrote:
>
>> Hi Mikael,
>> I do not know this way yet. Can you attach a complete example ?
>> Regards,
>> Fabrice
>>
>> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a
>> écrit :
>>
>>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :
>>>
>>> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
>>> wrote:
>>> > >
>>> > > Hi!
>>> > >
>>> > > I am writing notes for my teaching and would like to do the
>>> following with modes:
>>> > >
>>> > > * If the file is compiled with context file.tex then everything
>>> (i.e. the content in all modes) is typeset.
>>> > > * If the file is compiled with context --mode=test1 file.tex then
>>> only mode test1 is typeset.
>>> > >
>>> > > I do not see how to do this easily.
>>> >
>>> >
>>> > This is what I would do if the list of modes is small:
>>> >
>>> > \doifnotmode{test1}{\enablemode[test1,test2]}
>>> >
>>> > (and don’t use the \definemode lines)
>>> >
>>> > But if you need many of them, that could get problematic with
>>> > many nested \doifmodeelse statements.
>>> >
>>> > In that case, I would use a separate ‘all’ mode, and call the
>>> > context script with that as argument in the generic case.
>>> >
>>> >
>>> > %%% file.tex
>>> > \starttext
>>> > \startmode[test1,all]
>>> > We are in mode test1.
>>> > \stopmode
>>> > \startmode[test2,all]
>>> > We are in mode test2.
>>> > \stopmode
>>> > \stoptext
>>> > %%%
>>> >
>>> >
>>> ___
>>> >
>>> > Thank you, Taco!
>>> >
>>> > I have around 25 of them, and your solution with "all" works indeed
>>> well for me.
>>>
>>>
>>> There’s also
>>>
>>> \startnotmode[some]
>>> This is not typeset in "some" mode.
>>> \stopnotmode
>>>
>>>
>>> Greetlings, Hraban
>>> ---
>>> https://www.fiee.net
>>> http://wiki.contextgarden.net
>>> https://www.dreiviertelhaus.de
>>> GPG Key ID 1C9B22FD
>>>
>>>
>>> ___
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>>
>> ___
>
>
> Fabrice,
>
> Taco's example is complete. Try
>
> context file.tex
> context --mode=test1 file.tex
> context --mode=all file.tex
>
> and you will get, in turn, nothing, the content in mode test1, everything.
>
> /Mikael
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Mikael P. Sundqvist
On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hi Mikael,
> I do not know this way yet. Can you attach a complete example ?
> Regards,
> Fabrice
>
> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a
> écrit :
>
>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :
>>
>> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
>> wrote:
>> > >
>> > > Hi!
>> > >
>> > > I am writing notes for my teaching and would like to do the following
>> with modes:
>> > >
>> > > * If the file is compiled with context file.tex then everything (i.e.
>> the content in all modes) is typeset.
>> > > * If the file is compiled with context --mode=test1 file.tex then
>> only mode test1 is typeset.
>> > >
>> > > I do not see how to do this easily.
>> >
>> >
>> > This is what I would do if the list of modes is small:
>> >
>> > \doifnotmode{test1}{\enablemode[test1,test2]}
>> >
>> > (and don’t use the \definemode lines)
>> >
>> > But if you need many of them, that could get problematic with
>> > many nested \doifmodeelse statements.
>> >
>> > In that case, I would use a separate ‘all’ mode, and call the
>> > context script with that as argument in the generic case.
>> >
>> >
>> > %%% file.tex
>> > \starttext
>> > \startmode[test1,all]
>> > We are in mode test1.
>> > \stopmode
>> > \startmode[test2,all]
>> > We are in mode test2.
>> > \stopmode
>> > \stoptext
>> > %%%
>> >
>> >
>> ___
>> >
>> > Thank you, Taco!
>> >
>> > I have around 25 of them, and your solution with "all" works indeed
>> well for me.
>>
>>
>> There’s also
>>
>> \startnotmode[some]
>> This is not typeset in "some" mode.
>> \stopnotmode
>>
>>
>> Greetlings, Hraban
>> ---
>> https://www.fiee.net
>> http://wiki.contextgarden.net
>> https://www.dreiviertelhaus.de
>> GPG Key ID 1C9B22FD
>>
>>
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___


Fabrice,

Taco's example is complete. Try

context file.tex
context --mode=test1 file.tex
context --mode=all file.tex

and you will get, in turn, nothing, the content in mode test1, everything.

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Fabrice Couvreur
Hi Mikael,
I do not know this way yet. Can you attach a complete example ?
Regards,
Fabrice

Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a écrit :

> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :
>
> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
> wrote:
> > >
> > > Hi!
> > >
> > > I am writing notes for my teaching and would like to do the following
> with modes:
> > >
> > > * If the file is compiled with context file.tex then everything (i.e.
> the content in all modes) is typeset.
> > > * If the file is compiled with context --mode=test1 file.tex then only
> mode test1 is typeset.
> > >
> > > I do not see how to do this easily.
> >
> >
> > This is what I would do if the list of modes is small:
> >
> > \doifnotmode{test1}{\enablemode[test1,test2]}
> >
> > (and don’t use the \definemode lines)
> >
> > But if you need many of them, that could get problematic with
> > many nested \doifmodeelse statements.
> >
> > In that case, I would use a separate ‘all’ mode, and call the
> > context script with that as argument in the generic case.
> >
> >
> > %%% file.tex
> > \starttext
> > \startmode[test1,all]
> > We are in mode test1.
> > \stopmode
> > \startmode[test2,all]
> > We are in mode test2.
> > \stopmode
> > \stoptext
> > %%%
> >
> >
> ___
> >
> > Thank you, Taco!
> >
> > I have around 25 of them, and your solution with "all" works indeed well
> for me.
>
>
> There’s also
>
> \startnotmode[some]
> This is not typeset in "some" mode.
> \stopnotmode
>
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Henning Hraban Ramm
Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :

> > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist  wrote:
> > 
> > Hi!
> > 
> > I am writing notes for my teaching and would like to do the following with 
> > modes:
> > 
> > * If the file is compiled with context file.tex then everything (i.e. the 
> > content in all modes) is typeset.
> > * If the file is compiled with context --mode=test1 file.tex then only mode 
> > test1 is typeset.
> > 
> > I do not see how to do this easily.
> 
> 
> This is what I would do if the list of modes is small:
> 
> \doifnotmode{test1}{\enablemode[test1,test2]}
> 
> (and don’t use the \definemode lines)
> 
> But if you need many of them, that could get problematic with
> many nested \doifmodeelse statements. 
> 
> In that case, I would use a separate ‘all’ mode, and call the
> context script with that as argument in the generic case.
> 
> 
> %%% file.tex
> \starttext
> \startmode[test1,all]
> We are in mode test1.
> \stopmode
> \startmode[test2,all]
> We are in mode test2.
> \stopmode
> \stoptext
> %%%
> 
> ___
> 
> Thank you, Taco!
> 
> I have around 25 of them, and your solution with "all" works indeed well for 
> me.


There’s also

\startnotmode[some]
This is not typeset in "some" mode.
\stopnotmode


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
On Mon, Aug 27, 2018 at 3:17 PM Taco Hoekwater  wrote:

>
>
> > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist  wrote:
> >
> > Hi!
> >
> > I am writing notes for my teaching and would like to do the following
> with modes:
> >
> > * If the file is compiled with context file.tex then everything (i.e.
> the content in all modes) is typeset.
> > * If the file is compiled with context --mode=test1 file.tex then only
> mode test1 is typeset.
> >
> > I do not see how to do this easily.
>
>
> This is what I would do if the list of modes is small:
>
> \doifnotmode{test1}{\enablemode[test1,test2]}
>
> (and don’t use the \definemode lines)
>
> But if you need many of them, that could get problematic with
> many nested \doifmodeelse statements.
>
> In that case, I would use a separate ‘all’ mode, and call the
> context script with that as argument in the generic case.
>
>
> %%% file.tex
> \starttext
> \startmode[test1,all]
> We are in mode test1.
> \stopmode
> \startmode[test2,all]
> We are in mode test2.
> \stopmode
> \stoptext
> %%%
>
>
> Best wishes,
> Taco
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___


Thank you, Taco!

I have around 25 of them, and your solution with "all" works indeed well
for me.

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Taco Hoekwater


> On 27 Aug 2018, at 14:14, Mikael P. Sundqvist  wrote:
> 
> Hi!
> 
> I am writing notes for my teaching and would like to do the following with 
> modes:
> 
> * If the file is compiled with context file.tex then everything (i.e. the 
> content in all modes) is typeset.
> * If the file is compiled with context --mode=test1 file.tex then only mode 
> test1 is typeset.
> 
> I do not see how to do this easily.


This is what I would do if the list of modes is small:

\doifnotmode{test1}{\enablemode[test1,test2]}

(and don’t use the \definemode lines)

But if you need many of them, that could get problematic with
many nested \doifmodeelse statements. 

In that case, I would use a separate ‘all’ mode, and call the
context script with that as argument in the generic case.


%%% file.tex
\starttext
\startmode[test1,all]
We are in mode test1.
\stopmode
\startmode[test2,all]
We are in mode test2.
\stopmode
\stoptext
%%%


Best wishes,
Taco

Taco Hoekwater
Elvenkind BV




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
Hi!

I am writing notes for my teaching and would like to do the following with
modes:

* If the file is compiled with context file.tex then everything (i.e. the
content in all modes) is typeset.
* If the file is compiled with context --mode=test1 file.tex then only mode
test1 is typeset.

I do not see how to do this easily. The example I am working on looks like
this:

%%% file.tex
\definemode[test1][keep]
\definemode[test2][keep]
\starttext
\startmode[test1]
We are in mode test1.
\stopmode
\startmode[test2]
We are in mode test2.
\stopmode
\stoptext
%%%

This, however, naturally gives not output, since the modes test1 and test2
are not activated. If I compile with context --mode=test1 file.tex I get
the content in mode test1, as I want.

I have tried to change "keep" to "yes" in the setup of the modes, but then
the material in both modes are typeset no matter what command flag I use.

Do I miss something?

/Mikael

PS In reality I have about 25 lectures, so using this method there will be
about 25 modes in total.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] question about German hyphenation

2018-08-26 Thread Ulrike Fischer
Am Sun, 26 Aug 2018 17:26:45 +0200 schrieb Pablo Rodriguez:

> Dear list,
> 
> I have the following sample:
> 
> \starttext
> \de\hyphenatedword{Rindfleisch}
> \de\hyphenatedword{Rindfleischetikettierung}
> \stoptext
> 
> I’m not a native speaker, but I think that "Rindfleisch-etikettierung"
> is right in German. (And I think that "Rindflei-schetikettierung" is wrong.)
> 

Yes it is wrong. Correct hyphenation points are 

Rind-fleisch-e-ti-ket-tie-rung 

> Are the hyphenation patterns wrong in the cases above, or am I missing
> something?

That's difficult to do right with patterns, in latex it is isn't
correct either. The problem is that two words have been combined.
(Rindfleisch and Etikettierung). 

-- 
Ulrike Fischer 
https://www.troubleshooting-tex.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] question about German hyphenation

2018-08-26 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\de\hyphenatedword{Rindfleisch}
\de\hyphenatedword{Rindfleischetikettierung}
\stoptext

I’m not a native speaker, but I think that "Rindfleisch-etikettierung"
is right in German. (And I think that "Rindflei-schetikettierung" is wrong.)

Are the hyphenation patterns wrong in the cases above, or am I missing
something?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] question regarding \placefloats

2018-08-08 Thread Alan Braslau
On Wed, 8 Aug 2018 14:33:21 +0200
"Susanne G. Loeber"  wrote:

> \placelistoffloats does not exist as a command
> 
> My solution is two seperate commands, one for the tables \placelistoftables
> and one for the figures \completelistoffigures.
> 
> Question: how to use \placefloats correctly to get a list of all floats?

Floating objects or floats exist in many instances. One predefined instance is 
figure and a second is table. So \placelistofINSTANCEs will give you the list. 
You can define more floating objects, for example a sidebox, etc.

The figure and table lists can be combined:

\definecombinedlist [figuresandtables] [figure,table]

\placelistoffiguresandtables

or something like that.


> Second:
> 
> \startcombination[1*2] looks nice, but does not add information to the
> \placelistoffigures .
> 
> My solution is to place the \startcombination inside a \placefigure.

\startcombination [nx=1,ny=2] % my preferred syntax

\stopcombination

allows you to create a combined (matrix) of graphics. It is indeed generally 
used inside a float construct such as \startplacefigure ... \stopplacefigure.


By the way, "alternative=label" is a favorite of mine, making it unnecessary to 
explicitly include labels, as in:

\startcombination [nx=1,ny=2,alternative=label]
  {My top graphic}
  {My bottom graphic}
\stopcombination

rather than

\startcombination [nx=1,ny=2]
  {My top graphic}{a}
  {My bottom graphic} {b}
\stopcombination


Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] question regarding \placefloats

2018-08-08 Thread Susanne G. Loeber
Dear Reader,

I have a document with figures and tables. I have tried to use the command
  \placefloats to create a list of all my floats as recommended on the page
Floating Objects, section Flushing floats. There it states: The command
\placefloats outputs all pending floats. I hoped to get a list with all
tables, all figures and all other possible floats.That list would either be
sorted per chapter or sorted per float. However, I was not able to make it
work at all.

In the appendix, you can find my struggles.
First:
\placefloats does not work.

\placelistoffloats does not exist as a command

My solution is two seperate commands, one for the tables \placelistoftables
and one for the figures \completelistoffigures.

Question: how to use \placefloats correctly to get a list of all floats?


Second:

\startcombination[1*2] looks nice, but does not add information to the
\placelistoffigures .

My solution is to place the \startcombination inside a \placefigure.

Question: Is there a better way?


Kind regards, thanks,

Susanne


placefloat.tex
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question to covers

2018-07-28 Thread Wolfgang Schuster



Henning Hraban Ramm schrieb am 28.07.18 um 12:01:

Am 2018-07-28 um 11:15 schrieb Henning Hraban Ramm :


Am 2018-07-28 um 10:12 schrieb Tomas Hala :

1. Is a ConTeXt layer accepted as a whole in commercial Acrobat, or is it
visible as a heap of small objects? Or is it "only" better for more
comfortable manipulation in ConTeXt?

I don’t understand the question.
A ConTeXt layer is not a PDF layer.
All the objects are manipulatable in Acrobat Pro (or another PDF editor),
there’s no grouping on the PDF level.

If you need PDF layers, there are "viewer layers" in ConTeXt:

\defineviewerlayer[Ebene]
\setupviewerlayer[Ebene][
   state=start,
   visible=no,
   title=Test,
]

\starttext

Text

\startviewerlayer[Ebene]
{\bfa TOP SECRET}
\stopviewerlayer

More Text

\stoptext

AFAIK completely undocumented, I found them at 
http://source.contextgarden.net/tex/context/base/mkiv/attr-lay.mkiv
while tracking effects/properties (where these were implemented first).

While the example above works, I don’t get viewer layers in my current project, 
must investigate...
And then, if the combination of ConTeXt layers and viewer layers works 
(\setlayer within \start/stopviewerlayer?).


You have to put the viewerlayer command within the the \setlayer argument.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question to covers

2018-07-28 Thread Henning Hraban Ramm
Am 2018-07-28 um 11:15 schrieb Henning Hraban Ramm :

> Am 2018-07-28 um 10:12 schrieb Tomas Hala :
>> 1. Is a ConTeXt layer accepted as a whole in commercial Acrobat, or is it
>> visible as a heap of small objects? Or is it "only" better for more
>> comfortable manipulation in ConTeXt?
> 
> I don’t understand the question.
> A ConTeXt layer is not a PDF layer.
> All the objects are manipulatable in Acrobat Pro (or another PDF editor),
> there’s no grouping on the PDF level.

If you need PDF layers, there are "viewer layers" in ConTeXt:

\defineviewerlayer[Ebene]
\setupviewerlayer[Ebene][
  state=start,
  visible=no,
  title=Test,
]

\starttext

Text

\startviewerlayer[Ebene]
{\bfa TOP SECRET}
\stopviewerlayer

More Text

\stoptext

AFAIK completely undocumented, I found them at 
http://source.contextgarden.net/tex/context/base/mkiv/attr-lay.mkiv
while tracking effects/properties (where these were implemented first).

While the example above works, I don’t get viewer layers in my current project, 
must investigate...
And then, if the combination of ConTeXt layers and viewer layers works 
(\setlayer within \start/stopviewerlayer?).


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question to covers

2018-07-28 Thread Henning Hraban Ramm
Am 2018-07-28 um 10:12 schrieb Tomas Hala :

> Hi Hraban, Wolfgang and Hans,
> nobody else reacted so I am writing 

Better keep this on the list.

> Thanks to Hraban for the code and Wolfgang for its revision, it's a good
> material how to work with layers, measures  (I'll inspire by it) etc.

You’re welcome.

> 1. Is a ConTeXt layer accepted as a whole in commercial Acrobat, or is it
> visible as a heap of small objects? Or is it "only" better for more
> comfortable manipulation in ConTeXt?

I don’t understand the question.
A ConTeXt layer is not a PDF layer.
All the objects are manipulatable in Acrobat Pro (or another PDF editor),
there’s no grouping on the PDF level.

> 2. Is better to write it as much as possible at ConTeXt level (as Hraban or
> Wolfgang did), or is better to write it in lua? There is more than dozen
> measures... Also more computations are required and they are different
> for different kinds of covers (book bindings).

I guess it’s a matter of taste.
Of course calculations are easier in Lua, but in my image placement macros
I struggled a lot with numbers vs. measures/dimensions, regardless if in Lua
or on the TeX level.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

  1   2   3   4   >