[NTG-context] issue with references

2021-02-19 Thread Pablo Rodriguez
Hans,

I have the following sample:

  \setuphead[chapter][sectionsegments=chapter]
  \setuphead[section][sectionsegments=section]
  \setupreferencestructureprefix
[default]
[prefixsegments=*:*]
  \starttext
  \startTEXpage[offset=1em]
  \chapter{Chapter}
  \section[sec]{Section}

  As told in \getreference[number][sec]. \getreference[title][sec].\\
  As told in \in[sec]. \about[sec].
  \stopTEXpage
  \stoptext

\getreference[number] doesn’t follow \setupreferencestructureprefix.

I don’t know whether this is intended, but I think it might be a bug.

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] \blackrule and margin

2021-02-19 Thread Hans Hagen

On 2/19/2021 4:02 PM, Ursula Hermann wrote:

Dear List,
i have the little following example:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
              leftmargindistance=0.2cm,
              backspace=2.9cm,
              width=4cm]
\showframe
\starttext
\blackrule
\margintext{Me}
\blackrule[color=black, height=0.5ex, width=1cm]
\stoptext
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext
What i want is a\blackrule over the margintext, but i do not get what I 
wantend.

\definemargindata  [MyInMargin][inleft]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=fit]

\starttext
\inmargin[][topframe=on,bottomframe=on,rulethickness=1pt,width=fit]{Me}
\startformula
a^n + b^n = c^n.
\stopformula
\blank[3*big]
\MyInMargin{You}
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext


-
  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] \blackrule and margin

2021-02-19 Thread Pablo Rodriguez
On 2/19/21 4:02 PM, Ursula Hermann wrote:
> Dear List, 
> i have the little following example: 
>
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>              leftmargindistance=0.2cm,
>              backspace=2.9cm,
>              width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{Me}
> \blackrule[color=black, height=0.5ex, width=1cm]
> \stoptext
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext 
> What i want is a\blackrule over the margintext, but i do not get what I
> wantend. 

Hi Uschi,

I don’t know whether this is similar to whay you might intend:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\blackrule
\margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext

BTW, it isn’t also clear to me whether the formula is part of your
document or not.

Just in case it helps,

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] \blackrule and margin

2021-02-19 Thread Ursula Hermann
Dear List,
i have the little following example:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\blackrule
\margintext{Me}
\blackrule[color=black, height=0.5ex, width=1cm]
\stoptext
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext
What i want is a\blackrule over the margintext, but i do not get what I wantend.

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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread juh
Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen:
> The question is: what happens in that file with modes?

Nothing too fancy. I attached the files with mode definitions


-- 
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de


\startmode[bleed-1mm]
\definemeasure
	[bleed]
	[1mm]
\stopmode

\startmode[bleed-2mm]
\definemeasure
	[bleed]
	[2mm]
\stopmode

\startmode[bleed-3mm]
\definemeasure
	[bleed]
	[3mm]
\stopmode\startenvironment env-colors

%% Hostsharing corporate colors
%% Für RGB-Medien wie zum Beispiel Präsentationen
%% definieren wir RGB-Farben.
%% Wenn context ohne mode=fogra39 und ohne mode=isocoated aufgerufen wird,
%% werden diese RGB-Farben benutzt.
\startnotmode[fogra39,isocoated,pso_uncoated]
\definecolor  [hs-logoblau]   [r=0.000, g=0.314, b=0.580]
\definecolor  [hs-dunkelblau] [r=0.258, g=0.474, b=0.737]
\definecolor  [hs-hellblau]   [r=0.600, g=0.737, b=0.858]
\definecolor  [hs-orange] [r=0.866, g=0.286, b=0.003]
\setupcolors[cmyk=no,rgb=yes]
\stopnotmode

%% Für Druckwerke definieren wir CMYK-Farben
%% wählen das gewünschte PDF-Format und 
%% das Farbprofil der Druckerei
%% Druck-PDFs müssen mit der Option --mode=isocoated oder
%% --mode=fogra39 erzeugt werden.

%% ISO Coated v2 300%
%% Die CMYK-Werte wurden mit Hilfe von transicc aus
%% dem lcms-Paket bestimmt
%% Der Aufruf lautet:
%% transicc -i srgb_v4_icc_preference.icc -o ISOcoated_v2_300_eci.icc
%% Die letzte Stelle wird gerundet.
%% Auskommentiert folgen die Werte von transicc.

\startmode[isocoated]
\doiffileelse{ISOcoated_v2_300_eci.icc}{}{\farbprofilnichtgefunden}
\definecolor  [hs-logoblau]   [c=1.000, m=0.643, y=0.066, k=0.314]
%% C=99.9985 M=64.2680 Y=6.6178 K=31.4366
\definecolor  [hs-dunkelblau] [c=0.881, m=0.549, y=0.015, k=0.004]
%% C=88.1529 M=54.9889 Y=1.5198 K=0.4532
\definecolor  [hs-hellblau]   [c=0.479, m=0.211, y=0.049, k=0.003]
%% C=47.8904 M=21.0712 Y=4.9241 K=0.3861
\definecolor  [hs-orange] [c=0.021, m=0.790, y=1.000, k=0.100]
%% C=2.1241 M=79.0951 Y=100. K=10.0877
\definecolor   [hs-grau]   [c=0.000,m=0.000,y=0.000,k=0.700]

\setupcolors[cmyk=yes,rgb=no,]

%% Bitte hier PDF-Format und Farbprofil auswählen, 
%% Falls unbekannt, bitte bei der jeweiligen Druckerei
%% nachfragen.

\setupbackend[
   %format=PDF/X-1a:2001,
   %format=PDF/X-1a:2003,
   %format=PDF/X-3:2002,
   format=PDF/X-3:2003,
   %format=PDF/X-4,
   %format=PDF/X-4p,
   intent={ISO Coated v2 300\letterpercent\space (ECI)},
   ]
\stopmode

%% FOGRA 39 Coated
%% Bestimmung der CMYK-Werte mit transicc
%% transicc -i srgb_v4_icc_preference.icc -o CoatedFOGRA39.icc
%% Rundung wie oben
\startmode[fogra39]
\doiffileelse{CoatedFOGRA39.icc}{}{\farbprofilnichtgefunden}
\definecolor  [hs-logoblau]   [c=1.000, m=0.735, y=0.279, k=0.160]
%% C=100. M=73.4707 Y=27.9103 K=16.0891
\definecolor  [hs-dunkelblau] [c=0.844, m=0.544, y=0.070, k=0.000]
%% C=84.3748 M=54.4472 Y=7.0237 K=0.0824 
\definecolor  [hs-hellblau]   [c=0.468, m=0.220, y=0.086, k=0.002]
%% C=46.8208 M=21.9745 Y=8.5573 K=0.1816
\definecolor  [hs-orange] [c=0.127, m=0.832, y=1.000, k=0.042]
%% C=12.7245 M=83.1647 Y=100. K=4.1581
\definecolor   [hs-grau]   [c=0.000,m=0.000,y=0.000,k=0.700]

\setupcolors[cmyk=yes,rgb=no,]

%% Bitte hier PDF-Format und Farbprofil auswählen, 
%% Falls unbekannt, bitte bei der jeweiligen Druckerei
%% nachfragen.
\setupbackend[
   %format=PDF/X-1a:2001,
   %format=PDF/X-1a:2003,
   %format=PDF/X-3:2002,
   format=PDF/X-3:2003,
   %format=PDF/X-4,
   %format=PDF/X-4p,
   %intent={ISO Coated v2 300\letterpercent\space (ECI)},
   intent={Coated FOGRA39 (ISO 12647-2:2004)},
   ]

\stopmode

%% PSO Uncoated ISO12647
%% Die CMYK-Werte wurden mit Hilfe von transicc aus
%% dem lcms-Paket bestimmt
%% Der Aufruf lautet:
%% transicc -i srgb_v4_icc_preference.icc -o PSO_Uncoated_ISO12647_eci.icc
%% Die letzte Stelle wird gerundet.
%% Auskommentiert folgen die Werte von transicc.

\startmode[pso_uncoated]
\doiffileelse{PSO_Uncoated_ISO12647_eci.icc}{}{\farbprofilnichtgefunden}
\definecolor  [hs-logoblau]   [c=0.995, m=0.587, y=0.058, k=0.266]
%% C=99.5209 M=58.7106 Y=5.8198 K=26.6453
\definecolor  [hs-dunkelblau] [c=0.873, m=0.503, y=0.013, k=0.012]
%% C=87.3442 M=50.2876 Y=1.2558 K=1.2497
\definecolor  [hs-hellblau]   [c=0.409, m=0.150, y=0.016, k=0.016]
%% C=40.9125 M=15.0347 Y=1.6480 K=1.6358
\definecolor  [hs-orange] [c=0.025, m=0.740, y=0.950, k=0.025]
%% C=2.5330 M=73.9895 Y=94.6715 K=2.5391
\definecolor   [hs-grau]   [c=0.000,m=0.000,y=0.000,k=0.700]

\setupcolors[cmyk=yes,rgb=no,]

%% Bitte hier PDF-Format und Farbprofil auswählen, 
%% Falls unbekannt, bitte bei der jeweiligen Druckerei
%% nachfragen.
\setupbackend[
   %format=PDF/X-1a:2001,
   %format=PDF/X-1a:2003,
   %format=PDF/X-3:2002,
   format=PDF/X-3:2003,
   %format=PDF/X-4,
   

Re: [NTG-context] Lua code and table

2021-02-19 Thread Hans Hagen

On 2/19/2021 2:12 PM, Jano Kula wrote:

Hi,

On Fri, 19 Feb 2021 at 13:06, Hans Hagen > wrote:


On 2/19/2021 12:42 PM, Fabrice Couvreur wrote:
 > Hi Hans,Thanks again for the ideas to improve my code. However, I
am new
 > to Lua and my level is far from sufficient to understand
everything. Why
 > in no table do the crosses appear in the cells; which was my
original
 > idea.Thank you.Fabrice
I get a cross (see attached).


I've got no crosses with ConTeXt  ver: 2021.02.05 17:45 LMTX.
Fresh install of ConTeXt  ver: 2021.02.19 13:15 LMTX gives me no 
crosses, too.

No missing fonts in both cases.
Log and tuc attached.
And with the previously attached xx.tex file? maybe the mailer messes up 
something?


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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread juh
Hi,

I can't yet provide a mwe as the project is quite complex and includes color
profiles and bleed.

I can process it with context.

When I process it using lmtx but without colorprofiles and bleed, it works.

When I process it using lmtx with colorprofiles and bleed, it get this error:

tex error   > tex error on line 1 in file 
./prod-poster-motiv-souveraenitaet.tex: You can't use 'integer 340' in internal 
vertical mode


 \page_shipouts_arrange ...setbox \shipoutscratchbox \hpack {\getobject 
\??arrangedpage {\the \realpageno }}\fi \pusharrangedpage \shipoutscratchbox 
\deadcycles \zerocount \endgroup 
 \page_boxes_shipout ...tbox \shipoutscratchbox \hpack 
{#1}\page_shipouts_handle {\finalizeshipoutbox \shipoutscratchbox \box 
\shipoutscratchbox }
\fi \setnextrealpageno \the \everyaftershipout \ifcase 
\c_page_boxes_flush_n \else \page_boxes_flush_after \fi 
 \page_otr_construct_and_shipout #1#2#3->\forgetall \page_boxes_shipout 
{\page_boxes_constructed_page #1#2}
\page_otr_flush_pending_content \page_otr_check_for_pending_inserts 
\inpagebodytrue \pagebodymode \plusone \page_otr_command_flush_saved_floats 
\page_otr_command_set_vsize \str

 \currentcolorname \page_otr_command_side_float_output 
\ifconditional \c_page_sides_short \global \setfalse \c_page_sides_short 
\else \global \d_page_sides_vsize \d_page_sides_vsize_reset \global 
\c_page_sides_n_of_lines \zerocount \fi 

 \currentcolorname \ifcsname \??otrtriggers \the \outputpenalty 
\endcsname \lastnamedcs \else \page_otr_command_routine 
\fi 

 {\inotrtrue \the \everybeforeoutput \page_otr_triggered_output_routine 
\relax \the \everyafteroutput }
...

 \stopproduct

Are there changes with modes or setupbackend in lmtx?

My configuration is:

\setupbackend[
   format=PDF/X-3:2003,
   intent={ISO Coated v2 300\letterpercent\space (ECI)},
   ]

Ciao!
Jan Ulrich Hasecke

-- 
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
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] Lua code and table

2021-02-19 Thread Jano Kula
Hi,

On Fri, 19 Feb 2021 at 13:06, Hans Hagen  wrote:

> On 2/19/2021 12:42 PM, Fabrice Couvreur wrote:
> > Hi Hans,Thanks again for the ideas to improve my code. However, I am new
> > to Lua and my level is far from sufficient to understand everything. Why
> > in no table do the crosses appear in the cells; which was my original
> > idea.Thank you.Fabrice
> I get a cross (see attached).
>

I've got no crosses with ConTeXt  ver: 2021.02.05 17:45 LMTX.
Fresh install of ConTeXt  ver: 2021.02.19 13:15 LMTX gives me no crosses,
too.
No missing fonts in both cases.
Log and tuc attached.

Jano


hans-metapost.log
Description: Binary data


hans-metapost.tuc
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
___


[NTG-context] lmtx

2021-02-19 Thread Hans Hagen

Hi,

In the last couple of lmtx uploads \startTEXpage should work a bit 
better. These uploads also introduced a new option for alignments, which 
can be checked in:


\def\DemoA#1{\vbox{\red  \hsize#1\input tufte }}
\def\DemoB#1{\vbox{\green \setupalign[always]\hsize#1\input tufte }}
\def\DemoC#1{\startTEXpage[offset=10pt]\DemoA{#1pt}\blank\DemoB{#1pt}\blank#1pt\stopTEXpage}

\starttext

\dostepwiserecurse{300}{600}{10}{
\startTEXpage[offset=10pt]
\startoverlay
{\DemoA{#1pt}}
{\DemoB{#1pt}}
\stopoverlay
\blank
\the\dimexpr#1pt\relax
\stopTEXpage
}

\DemoC{370} \DemoC{390} \DemoC{490} \DemoC{540} \DemoC{580}

\stoptext

I leave it to users to determine if the few cases where the results 
differ are better or worse but one can for instance use it to influence 
(as side effect) the last line. In general, tweaking the machinery can 
give different results and i guess that hardly any user can make 
consistent claims about what is better. It all depends on what one deals 
with.


(The keyword is suboptimal, it kind of tells what happens but on the 
other obscurew what really goes on: always forcing a first hyphenation 
pass when breaking lines.)


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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread Hans Hagen

On 2/19/2021 11:46 AM, juh wrote:

Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen:

The question is: what happens in that file with modes?


Nothing too fancy. I attached the files with mode definitions

works here so you need to make a mwe

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] Lua code and table

2021-02-19 Thread Hans Hagen

On 2/19/2021 12:42 PM, Fabrice Couvreur wrote:
Hi Hans,Thanks again for the ideas to improve my code. However, I am new 
to Lua and my level is far from sufficient to understand everything. Why 
in no table do the crosses appear in the cells; which was my original 
idea.Thank you.Fabrice

I get a cross (see attached).

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
-
\setupbodyfont[pagella]

\starttext

\definextable
  [MyTable]
  [align={middle,lohi},
   width=0.8cm,
   offset=0.8ex,
   bodyfont=9pt,
   framecolor=cyan]

\startluacode
function document.MyTable(specification)

local pattern= specification.pattern
local action = specification.action
local conversion = specification.conversion or "Characters"

local n = #pattern

--  context.startxtable { align = "middle,lohi", width = "0.8cm", offset = 
"0.8ex", bodyfont = "9pt", framecolor = "cyan" }
context.startxtable { "MyTable" }
context.startxrow()
context.startxcell { frame = "off" }
context()
context.stopxcell()
for i=1,n do
context.startxcell()
context.convertnumber(conversion,i)
context.stopxcell()
end
context.stopxrow()
for i=1,n do
context.startxrow()
context.startxcell()
context.convertnumber(conversion,i)
context.stopxcell()
for j=1,n do
context.startxcell { align = "middle" }
action(string.sub(pattern[i],j,j))
context.stopxcell()
end
context.stopxrow()
end
context.stopxtable()

end
\stopluacode

\startuniqueMPgraphic{cross}{width,height,depth,color,line}
draw image (
draw (\MPvar{depth},\MPvar{height}) -- (\MPvar{width},0) ;
draw (\MPvar{depth},0) -- (\MPvar{width},\MPvar{height}) ;
)
withpen pencircle scaled \MPvar{line}
withcolor \MPvar{color} ;
\stopuniqueMPgraphic

\definesymbol
  [MyRedCross]
  [\uniqueMPgraphic{cross}{width=1em,height=1ex,depth=.5ex,color=red,line=.2ex}]

\definesymbol
  [MyGreenCross]
  
[\uniqueMPgraphic{cross}{width=1em,height=1ex,depth=.5ex,color=green,line=.2ex}]

\startluacode
document.MyTable {
action = function(value)
context(value == "X" and 1 or 0)
end,
conversion = "Characters",
pattern = {
".XXX..XX",
"X...XXX.",
"X..X.XXX",
"X.X.X..X",
".X.X.XX.",
".XX.X...",
"XXX.X...",
"X.XX"
}
}
\stopluacode

\startluacode
document.MyTable {
action = function(value)
context(value == "X" and 1 or 0)
end,
conversion = "Greek",
pattern = {
".XXX..XX",
"X...XXX.",
"X..X.XXX",
"X.X.X..X",
}
}
\stopluacode

\startluacode
document.MyTable {
action = function(value)
if value == "X" then
context.symbol { "MyRedCross" }
end
end,
conversion = "Romannumerals",
pattern = {
".XXX..XX",
"X...XXX.",
"X..X.XXX",
"X.X.X..X",
".X.X.XX.",
".XX.X...",
"XXX.X...",
"X.XX"
}
}
\stopluacode

\startluacode
document.MyTable {
action = function(value)
context.symbol { value == "X" and "MyRedCross"  or "MyGreenCross" }
end,
conversion = "Romannumerals",
pattern = {
"X.X.X..X",
".X.X.XX.",
".XX.X...",
"XXX.X...",
"X.XX"
}
}
\stopluacode

\stoptext


xx.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] Lua code and table

2021-02-19 Thread Fabrice Couvreur
Hi Hans, Thanks again for the ideas to improve my code. However, I am new
to Lua and my level is far from sufficient to understand everything. Why in
no table do the crosses appear in the cells; which was my original idea. Thank
you. Fabrice

Le jeu. 18 févr. 2021 à 16:28, Fabrice Couvreur 
a écrit :

> Hello Jano,
> Thanks.
> Fabrice
>
> Le jeu. 18 févr. 2021 à 16:27, Jano Kula  a écrit :
>
>> Hello Fabrice,
>>
>>
>>
>> On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur <
>> fabrice1.couvr...@gmail.com> wrote:
>>
>>> Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning
>>> thanks to you
>>> Hans, I compiled your code and I get an error message :
>>>
>>> lua error   > lua error on line 50 in file ./table_1.tex:
>>>
>>> token call, syntax: [ctxlua]:11: unexpected symbol near '='
>>>
>>> 13 \startluacode
>>> 14  function document.MyTable(specification)
>>> 15
>>> 16  local pattern= specification.pattern
>>> 17  local action = specification.action
>>> 18  local conversion = specification.conversion or
>>> "Characters"
>>> 19
>>> 20  local n = #pattern
>>> 21
>>> 22  --  context.startxtable { align = "middle,lohi", width =
>>> "0.8cm",
>>> 23 >>  offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" }
>>>
>>
>> Just comment out line 23, too, or join 22 + 23 to one line.
>>
>> Jano
>>
>>
>>
>> ___
>> 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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread Hans Hagen

On 2/19/2021 10:21 AM, juh wrote:

Hi,

I can't yet provide a mwe as the project is quite complex and includes color
profiles and bleed.

I can process it with context.

When I process it using lmtx but without colorprofiles and bleed, it works.

When I process it using lmtx with colorprofiles and bleed, it get this error:

tex error   > tex error on line 1 in file 
./prod-poster-motiv-souveraenitaet.tex: You can't use 'integer 340' in internal 
vertical mode

The question is: what happens in that file with modes?

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
___