Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Rudolf Bahr
On Sat, Oct 19, 2019 at 07:40:32PM +0200, Bahr Rudolf wrote:
> On Sat, Oct 19, 2019 at 12:07:03PM +0200, Pablo Rodriguez wrote:
> > Dear list,
> > 
> > using the document attached to this message with the following sample
> > gives different outputs:
> > 
> > \setuppapersize[A3, landscape]
> > \starttext
> > \externalfigure[fc-first.pdf]
> > \stoptext
> > 
> > 1. LuaTeX inserts the document fine.
> > 
> > 2. LMTX inserts the document distorting its aspect.
> > 
> > I’m afraid this might be a bug in LMTX.
> > 
> > Could anyone confirm the issue?
> > 
> > BTW, the PDF document is uncompressed (so it’s easier to analyze it).
> > 
> > Many thanks for your help,
> > 
> > Pablo
> > --
> > http://www.ousia.tk
> 
> 
> Hi Pablo,
> 
> My context-LMTX, this morning installed from pragma-ade.nl/install.htm (64 
> bit Linux),
> works fine and shows up the pdf file, so I cannot confirm the issue.
> 
> I used:
> LuaMetaTeX, Version 2.00.0
> ConTeXt  ver: 2019.10.10 18:15 MKIV beta  fmt: 2019.10.19  int: 
> english/english
> 
> I hope, this helps,
> Rudolf

Hi Pablo,

sorry, I have to correct my message after running

LuaTeX, Version 1.10.1 (TeX Live 2019) 
ConTeXt  ver: 2019.10.11 15:47 MKIV beta  fmt: 2019.10.19  int: english/english

The output of LMTX is compressed in the height whereas LuaTex isn't.

Sorry again,
Rudolf
___
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 distorts PDF aspect

2019-10-19 Thread Rudolf Bahr
On Sat, Oct 19, 2019 at 12:07:03PM +0200, Pablo Rodriguez wrote:
> Dear list,
> 
> using the document attached to this message with the following sample
> gives different outputs:
> 
>     \setuppapersize[A3, landscape]
> \starttext
> \externalfigure[fc-first.pdf]
> \stoptext
> 
> 1. LuaTeX inserts the document fine.
> 
> 2. LMTX inserts the document distorting its aspect.
> 
> I’m afraid this might be a bug in LMTX.
> 
> Could anyone confirm the issue?
> 
> BTW, the PDF document is uncompressed (so it’s easier to analyze it).
> 
> Many thanks for your help,
> 
> Pablo
> --
> http://www.ousia.tk


Hi Pablo,

My context-LMTX, this morning installed from pragma-ade.nl/install.htm (64 bit 
Linux),
works fine and shows up the pdf file, so I cannot confirm the issue.

I used:
LuaMetaTeX, Version 2.00.0
ConTeXt  ver: 2019.10.10 18:15 MKIV beta  fmt: 2019.10.19  int: english/english

I hope, this helps,
Rudolf
___
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 distorts PDF aspect

2019-10-19 Thread Otared Kavian
Hi Pablo,

Yes, I can confirm that the PDF file is distorted by LMTX (version 2019.10.11 
15:47) when included in another file with the command \externalfigure (even 
when the latter command is surrounded by \startplacefigure... \stopplacefigure).

Hower the output is correct with mkiv (and mkii…).

Best regards: OK



> On 19 Oct 2019, at 12:07, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> using the document attached to this message with the following sample
> gives different outputs:
> 
>\setuppapersize[A3, landscape]
>\starttext
>\externalfigure[fc-first.pdf]
>\stoptext
> 
> 1. LuaTeX inserts the document fine.
> 
> 2. LMTX inserts the document distorting its aspect.
> 
> I’m afraid this might be a bug in LMTX.
> 
> Could anyone confirm the issue?
> 
> BTW, the PDF document is uncompressed (so it’s easier to analyze 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
> ___

___
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 distorts PDF aspect

2019-10-19 Thread Pablo Rodriguez
Dear list,

using the document attached to this message with the following sample
gives different outputs:

\setuppapersize[A3, landscape]
\starttext
\externalfigure[fc-first.pdf]
\stoptext

1. LuaTeX inserts the document fine.

2. LMTX inserts the document distorting its aspect.

I’m afraid this might be a bug in LMTX.

Could anyone confirm the issue?

BTW, the PDF document is uncompressed (so it’s easier to analyze it).

Many thanks for your help,

Pablo
--
http://www.ousia.tk


fc-first.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] Difference in right justification in LMTX

2019-10-11 Thread Joseph Canedo
Hi Hans,

I still get the issue with right justification with LMTX for some reason. I
see a small whitespace between the last 't' in the line with LMTX which I
don't see with Mkiv. I also notice that position of the 't' box computed
from all previous boxes/characters in the line is different from position I
get from pdf backend function (job.positions.getpos called in a latelua).

I attach the MWE below + pdfs I get from latest Mkiv and LMTX I've
installed from scratch.

\setuppapersize[A5][A5]
\definefontfeature[base][mode=node, protrusion=quality, expansion=quality]
\definefontfamily[mainfont][serif][EBGaramond][features=base]
\setupalign[hanging, lesshyphenation, hz]
\setupbodyfont[mainfont, 9pt]
\showframe
\starttext
les bestes/ & sus toute la terre/ & sus tout reptile qui bouge sur surete
sur la {\righttoleft terre. Dieu} donc crea l'homme a son image.
\stoptext

Thanks again
Joseph

Le ven. 11 oct. 2019 à 22:35, Joseph Canedo  a
écrit :

>
>
> Le ven. 12 avr. 2019 à 09:39, Joseph Canedo  a
> écrit :
>
>> Yes. I’ve deleted my lmtx installation directory and fetched the install
>> .zip from Pragma ADE web site and ran install.bat, to double check.
>>
>>
>>
>> *De : *Hans Hagen 
>> *Envoyé le :*jeudi 11 avril 2019 22:59
>> *À : *Joseph Canedo ; mailing list for ConTeXt
>> users 
>> *Objet :*Re: [NTG-context] Difference in right justification in LMTX
>>
>>
>>
>> On 4/11/2019 8:07 PM, Joseph Canedo wrote:
>>
>> > Thanks Hans. I’ve ran install.bat to update my LMTX local copy (ran
>>
>> > without apparent errors) and reran context command on my MWE, but I am
>>
>> > afraid I see no difference.
>>
>> >
>>
>> > Not sure if I missed any step or not.
>>
>> it works here
>>
>>
>>
>> did the update download files and remake the format?
>>
>>
>>
>> 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
>>
>> -
>>
>>
>>
>


Test2_lmtx.pdf
Description: Adobe PDF document


Test2_mkiv.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] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
Since there has not been a response (and since I am still unhappy with the 
limitations of \definesynonyms) I came up with my own solution which is 
included in this mail. The code provides a fully automated handling of symbols. 
I think this might be useful for a lot of people in engineering, physics, etc.. 
It should be more generalized and packed into a module though.

Kind regards,

Thomas

% Document Layout
\setupcolors[state=start]
\setuppapersize[A4][A4]

% Typography
\setupwhitespace[medium]
\setupindenting[no]
\setupbodyfont[sans, 11pt]

% PDF Output Adjustments
\setupinteraction[state=start, focus=standard, style=, click=yes, color=, 
contrastcolor=,]

% Units
\defineunit[sunit][separator=small]
\setupunit[space=medium]

\setuphead[section][style={\bfc}, before={\bigskip}, after={}]

% Lua code to set up a database of symbols
\definedescription[SymItem][]
\startluacode
userdata = userdata or {}
userdata.listofsymbols = {} -- hash table with all symbols of the form 
keyword:{symbol, {unit=... , description=...}}

function userdata.addsym(keyword, symbol, option) -- parses the input and adds 
an entry to the hash table
keywords = utilities.parsers.settings_to_array(keyword)
symbols = utilities.parsers.settings_to_array(symbol)
options = utilities.parsers.settings_to_hash(option)
userdata.listofsymbols[keywords[1]] = {symbols[1], options}
end

function userdata.getsym(keyword) -- prints the symbol to a given keyword
context.math(userdata.listofsymbols[keyword][1])
end

function userdata.symattr(keyword, attribute) -- prints whatever attribute of 
the symbol (its unit, description, ...)
context(userdata.listofsymbols[keyword][2][attribute])
end

function userdata.sorttable(t,o) -- sorting algorithm: hash table gets inserted 
to an indexed array which then can be indexed by the iterator
local a = {}
for n in pairs(t) do
table.insert(a, n)
end
if o then
table.sort(a, function(a,b) return o(t, a, b) end)
else
table.sort(a)
end
local i = 0
local iterator = function ()
i = i + 1
return a[i], t[a[i]]
end
return iterator
end

function userdata.placelistofsymbols() -- prints the List of Symbols
greekgroup = {}
latingroup = {}
for keyword, values in next, userdata.listofsymbols do -- devides the symbol 
list into greek and latin letters
if values[2]["group"] == "greek" then
greekgroup[keyword] = values
elseif values[2]["group"] == "latin" then
latingroup[keyword] = values
end
end
context.setuptabulate{distance="1ex"}
context.starttabulate{"|lw(0.18\\textwidth)|lw(0.18\\textwidth)|p(0.6\\textwidth)|"}
context.NC()
context.bf() context("Symbol")
context.NC()
context.bf() context("Unit")
context.NC()
context.bf() context("Description")
context.NC()
context.FR()
context.HL()
function printlistitem(keyword, values)
context.NC()
context.startSymItem({reference="sym:"..keyword, title=values[1]})
context.math(values[1])
context.stopSymItem()
context.NC()
context(values[2]["unit"])
context.NC()
context(values[2]["description"])
context.NC()
context.MR()
end
for keyword, values in userdata.sorttable(greekgroup, function(t,a,b) return 
string.lower(a) < string.lower(b) end) do -- sorting algorithm uses the 
"<"-comparator to compare the keys a and b
printlistitem(keyword, values)
end
context.TB{"2ex"}
for keyword, values in userdata.sorttable(latingroup, function(t,a,b) return 
string.lower(a) < string.lower(b) end) do
printlistitem(keyword, values)
end
context.stoptabulate()
end
\stopluacode

% Create the hook to the lua functions
\def\addsym[#1][#2][#3]{\ctxlua{userdata.addsym([==[#1]==], [==[#2]==], 
[==[#3]==])}}
\def\getsym[#1]{\ctxlua{userdata.getsym([==[#1]==])}}
\def\symattr[#1][#2]{\ctxlua{userdata.symattr([==[#1]==], [==[#2]==])}}

% Print a symbol with \sym[keyword]. Printed as an internal link to the entry 
in the List of Symbols via \goto{symbol}[sym:keyword]
\def\sym[#1]{\goto{\getsym[#1]}[sym:#1]}

% Create a database containing all symbols with 
\addsym[keyword][symbol][options]
\def\loadsymbols{
\addsym[beta][\beta][unit={\sunit{meter per second}}, description={Mass 
transfer coefficient}, group={greek}]
\addsym[alpha][\alpha][unit={\sunit{watt per square meter per kelvin}}, 
description={Heat transfer coefficient}, group={greek}]
\addsym[c][c][unit={\sunit{kilogram per cubic meter}}, 
description={Concentration}, group={latin}]
\addsym[m][m][unit={\sunit{kilogram}}, description={Mass}, group={latin}]
\addsym[A][A][unit={\sunit{square meter}}, description={Phase boundary 
interface}, group={latin}]
\addsym[Q][Q][unit={\sunit{joule}}, description={Heat}, group={latin}]
\addsym[T][T][unit={\sunit{kelvin}}, description={Temperature}, group={latin}]
\addsym[t][t][unit={\sunit{second}}, description={Time}, group={latin}]
}

% Print the List of Symbols with \placelistofsymbols
\def\placelistofsymbols{\loadsymbols\ctxlua{userdata.placelistofsymbols()}}

\start

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster

Hi,

1. Try to make shorter example because your example contains too much 
stuff for a minimal example.


2. You forgot \starttext in your example.

3. Your fonts don't contain greek letters which explains the missing 
counter in the PDF. Did you check if the fallback fonts are loaded.


\setuphead
  [section]
  [number=no]

\setuphead
  [subsection]
  [number=yes,
   sectionsegments=subsection,
   conversion=g]

\setupbodyfont[dejavu]

\starttext

\completecontent

\chapter{yay}

\section{wow}

\subsection{Text}

\stoptext

Wolfgang


Jairo A. del Rio schrieb am 06.10.2019 um 23:29:

I tried the following

\setuphead[chapter][align=middle,header=empty,footer=empty]
\setuphead[section][align=middle,number=no]
\setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g]
\mainlanguage[spanish]
\definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, 
force=yes]
\definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, 
force=yes]
\definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, 
force=yes]
\definefallbackfamily[mainface][rm][Noto Serif CJK 
KR][preset=range:korean, force=yes]
\definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, 
force=yes]
\definefallbackfamily[mainface][ss][CMU Sans 
Serif][preset=range:greek, force=yes]
\definefallbackfamily[mainface][tt][CMU Typewriter 
Text][preset=range:greek, force=yes]
\definefontfamily[mainface][rm][Latin Modern 
Roman][sc=file:lmromancaps10regular]

\definefontfamily[mainface][ss][Latin Modern Sans]
\definefontfamily[mainface][tt][Latin Modern Typewriter]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,10pt]
\setuplayout[backspace=2cm,topspace=2cm]
\definepapersize[nice][width=180mm,height=250mm]
\setuppapersize[nice][nice]
\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section,subsection]
\setupinteractionscreen[option=bookmark]
\setupindenting[medium,yes]
\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]
\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment
\setuppagenumbering[location=,alternative=doublesided]
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{}
\hfill
\sc \getmarking[section]
\hfill
\llap{\userpagenumber}
\stopsetups
\startsetups[text left]
\rlap{\userpagenumber}
\hfill
\sc \getmarking[chapter]
\hfill
\llap{}
\stopsetups
\startfrontmatter
Hello
\completecontent
\stopfrontmatter
\startbodymatter
\startchapter[title=yay]
\startsection[title=wow]
\startsubsection[title=Text]
Bye
\stopsubsection
\stopsection
\stopchapter
\stopbodymatter
\stoptext

What is puzzling to me is the absence of subsection labels. What I 
expect is:


1. Yay
   Wow
  α. Text

However, what I've got is:

1. Yay
Wow
  Text

It's weird that bookmarks and TOC correctly show α before "Text". I 
don't know what is wrong. Thank you in advance.



___
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] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
I tried the following

\setuphead[chapter][align=middle,header=empty,footer=empty]
\setuphead[section][align=middle,number=no]
\setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g]
\mainlanguage[spanish]
\definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs,
force=yes]
\definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician},
force=yes]
\definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation},
force=yes]
\definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean,
force=yes]
\definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended},
force=yes]
\definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek,
force=yes]
\definefallbackfamily[mainface][tt][CMU Typewriter
Text][preset=range:greek, force=yes]
\definefontfamily[mainface][rm][Latin Modern
Roman][sc=file:lmromancaps10regular]
\definefontfamily[mainface][ss][Latin Modern Sans]
\definefontfamily[mainface][tt][Latin Modern Typewriter]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,10pt]
\setuplayout[backspace=2cm,topspace=2cm]
\definepapersize[nice][width=180mm,height=250mm]
\setuppapersize[nice][nice]
\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section,subsection]
\setupinteractionscreen[option=bookmark]
\setupindenting[medium,yes]
\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]
\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment
\setuppagenumbering[location=,alternative=doublesided]
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{}
\hfill
\sc \getmarking[section]
\hfill
\llap{\userpagenumber}
\stopsetups
\startsetups[text left]
\rlap{\userpagenumber}
\hfill
\sc \getmarking[chapter]
\hfill
\llap{}
\stopsetups
\startfrontmatter
Hello
\completecontent
\stopfrontmatter
\startbodymatter
\startchapter[title=yay]
\startsection[title=wow]
\startsubsection[title=Text]
Bye
\stopsubsection
\stopsection
\stopchapter
\stopbodymatter
\stoptext

What is puzzling to me is the absence of subsection labels. What I expect
is:

1. Yay
   Wow
  α. Text

However, what I've got is:

1. Yay
   Wow
  Text

It's weird that bookmarks and TOC correctly show α before "Text". I don't
know what is wrong. Thank you in advance.
___
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] Column sets (span) & unwanted vertical gap

2019-10-01 Thread Procházka Lukáš Ing .

Hello,

the code bellow produces unwanted vertical gap between the bottom border of the figure and the following 
title "A" in the first column (marked by red arrows "<->" in the PDF attached).

Note that in the second column there is no such gap.

I tried to play with "before", "inbetween", "beforesection" and other keys of 
\setuphead to remove the gap but without success.

Is there a way to avoid the vertical gap?

My code so far:


\setuppapersize[A3,landscape]

\setuplayout
  [topspace=10mm,header=5mm,headerdistance=5mm,height=270mm,
   backspace=20mm,width=380mm,
  ]

\setupheadertexts[]
\setupfootertexts[]

\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]

\setupexternalfigures[location=default]

\setupindenting[no]
\setupwhitespace[none]

\setuplayout[grid=yes]

\definehead[MyTit][title]
\setuphead[MyTit]
  [style=\bf,color=MyBlue,
   
before={\blank[none]},after={\blank[none]},inbetween={\blank[none]},beforesection={BS},aftersection={AS},
   page=no,%grid=yes,
  ]

%

%\showframe
%\showboxes

%\showlayout

%

\starttext
  \startcolumnset[example]
\startcolumnsetspan[wide]
  \externalfigure[cow][height=120mm,frame=on]
  %\vbox to120mm{}
\stopcolumnsetspan
\MyTit{A}
  \input knuth
\MyTit{B}
  \input knuth
  \stopcolumnset
\stoptext


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

t6.mkiv
Description: Binary data


t6~~.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] Custom Footertext

2019-09-30 Thread Pablo Rodriguez
On 9/30/19 2:16 AM, Jeroen wrote:
> I have condensed it into a single document. The footer has in the right
> side the page numbering and at the left the "section". Both only start
> at the second page, which is good. I was wondering if the "section"
> could have the "title" in front of it. The title always stays the same,
> and the section changes.

Hi Jeroen,

I reply to your questions and make some comments.

> \setuppapersize[A4,portrait]
>    [A4,portrait]

This isn’t required, since this is the default.

> \usetypescript[pagella]
> \setupbodyfont[pagella,12pt]

I would say that the first line isn’t required.

> \setupcolors[state=start]

If I’m not wrong, this is also the default.

> \setupfootertexts[section][]

This might be what you need:

\setupfootertexts[section][\getvariable{document}{metadata:title}]

> \startdocument[
>   metadata:title={MkIV Context Notes},
>   metadata:subtitle={},
>   metadata:subject={MkIV Context},
>   affiliation=Context]

I don’t know why, your sample doesn’t include the matching \stopdocument
command. Could you compile your sample source without errors?

I hope 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
___


Re: [NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
I have condensed it into a single document. The footer has in the right
side the page numbering and at the left the "section". Both only start at
the second page, which is good. I was wondering if the "section" could have
the "title" in front of it. The title always stays the same, and the
section changes.
Many Thanks
Jeroen

\setuppapersize[A4,portrait]
   [A4,portrait]
\setuplayout[backspace=20mm,
 width=175mm,
 topspace=20mm,
 header=0mm,
 footer=2mm,
 height=263mm,
 bottomheight=1mm,
 footerdistance=10mm]
\usetypescript[pagella]
\setupbodyfont[pagella,12pt]
\setupcolors[state=start]
\setupfootertexts[section][]
\setupfooter[alternative=,style=\bf\em]
\setuppagenumbering[alternative=,location={footer,right},style=\bf\em]
\setcounter[userpage][0]
\setupcombinedlist[content][level=1]
\setupexternalfigures[directory={images}]
\startdocument[
  metadata:title={MkIV Context Notes},
  metadata:subtitle={},
  metadata:subject={MkIV Context},
  affiliation=Context]
\starttext
\startfrontmatter
\title{MkIV \CONTEXT\ Notes.}
\startcolumns[n=2]
\input zapf
\stopcolumns
\vfill
\placecontent
\stopfrontmatter
\startbodymatter
\section{Introduction}
\dorecurse{5}{\input knuth}
\section{Closure}
\dorecurse{5}{\input bryson}
\stopbodymatter
\startappendices
\setupcombinedlist[content][level=1]
\section{Appendix A}
\dorecurse{5}{\input tufte}
\stopappendices
\stoptext

Op zo 29 sep. 2019 om 21:36 schreef Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com>:

> Jeroen schrieb am 29.09.2019 um 20:36:
> > This is the main file.
> Neither minimal nor complete and \stopdocument is also missing.
> > \environment mkivcnotesenv
> > \startdocument
> >  [metadata:subject={MkIV Context},
> >affiliation=Context]
> > \starttext
> > \startfrontmatter
> > \input{frontpage.tex}
> > \stopfrontmatter
> > \startbodymatter
> > \section{Introduction}
> > \dorecurse{10}{input knuth}
> > \stopbodymatter
> > \startappendices
> > %\input{a1.tex}
> > \stopappendices
> > \stoptext
>
> Are you looking for something like this (I need more information for a
> better answer):
>
> \definetext [sectionfooter] [footer] [section]
> %\definetext [sectionfooter] [footer] [text] [section] []
>
> \setupfootertexts [I'm a footer text!] [pagenumber]
>
> \setuppagenumbering
>[location=,
> style=bolditalic]
>
> \setuphead
>[section]
>[page=yes, % needed for the footer setting
> footer=sectionfooter]
>
> \starttext
>
> \section{Introduction}
>
> \dorecurse{10}{\input knuth}
>
> \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] Custom Footertext

2019-09-29 Thread Jeroen
Dear list members,

I am using the following environment file. The document itself is made-up
of sections only. Instead of the section as footer, I would like to add a
custom footer text throughout the document, starting at the second page as
is the page numbering. I just don't seem to be able to adjust it. Who can
help me out?

Best Regards,
Jeroen

\startenvironment mkivcnotesenv
\setuppapersize[A4,portrait]
   [A4,portrait]
\setuplayout[backspace=20mm,
 width=175mm,
 topspace=20mm,
 header=0mm,
 footer=2mm,
 height=263mm,
 bottomheight=1mm,
 footerdistance=10mm]
\usetypescript[pagella]
\setupbodyfont[pagella,12pt]
\setupcolors[state=start]
\setuptype[style={\switchtobodyfont[11pt,tt]}]
\setuptyping[style={\switchtobodyfont[11pt,tt]}]
\setupfootertexts[section][]
\setupfooter[alternative=,style=\bf\em]
\setuppagenumbering[alternative=,location={footer,right},style=\bf\em]
\setcounter[userpage][0]
\setupcombinedlist[content][level=1]
\setupexternalfigures[directory={images}]
\stopenvironment
___
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] special book layout problem in ConTeXt

2019-09-21 Thread nicolas mondon
Woaw! Thanks a lot... Let's try!

Le jeu. 19 sept. 2019 à 19:49, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> a écrit :

> Nicolas Mondon schrieb am 19.09.2019 um 19:18:
> >
> > Thank you Wolfgang for your answer.
> >
> > So, yes the figures/tables should appear before the text on a even
> > (left side) page while the text would appear only on odd (right side)
> > pages. The left page should be empty when there are no figures/tables
> > for the following right page, and the float doesn't have to appear
> > strictly at the same vertical position as the reference, but as
> > possible only. Specially beacause, it may have several references in
> > only one paragraph for exemple on the right page, and so the figure
> > should appear in the right order on the left page, but couldn't be
> > exactly at the same height. Also, if there are too many references in
> > on right page, the figures which can't fit the left page should go on
> > the top od the next left page...
> >
> > It's possible that my answer change the proposition you made at the
> > end of your message. Nevertherless, there is some thing in your last
> > paragrph which is not clear for me : " Afterwards you split each page
> > in half and create two separate pages from one single page which can
> > be done with a loop (can be done theoretically with the imposition
> > mechanism but a separate document is easier)."
> >
> Step 1:
>
>   Create a document with a very big left margin where you can place all
> floats.
>
> \setuppapersize
>[A3,landscape]
>
> \setuplayout
>[backspace=23.5cm,
> width=15cm,edge=14cm]
>
> \showframe
>
> \setupfloat
>[default=leftedge,
> minwidth=14cm]
>
> \starttext
>
> \input ward
>
> \startplacefigure
> \externalfigure[dummy]
> \stopplacefigure
>
> \input knuth
>
> \startplacetable
>\starttabulate[|c|c|c|]
>\FL
>\NC A \NC B \NC C \NC\NR
>\ML
>\NC X \NC Y \NC Z \NC\NR
>\LL
>\stoptabulate
> \stopplacetable
>
> \input zapf
>
> \stoptext
>
>
> Step 2:
>
> Split each page into two separate pages where one contains all floats
> while the other page contains the text.
>
> Wolfgang
>
>

-- 
*catalogue, écoutes et infos concerts :*
*http://n.mondon.free.fr/* <http://n.mondon.free.fr/>
___
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] special book layout problem in ConTeXt

2019-09-19 Thread Wolfgang Schuster

Nicolas Mondon schrieb am 19.09.2019 um 19:18:


Thank you Wolfgang for your answer.

So, yes the figures/tables should appear before the text on a even 
(left side) page while the text would appear only on odd (right side) 
pages. The left page should be empty when there are no figures/tables 
for the following right page, and the float doesn't have to appear 
strictly at the same vertical position as the reference, but as 
possible only. Specially beacause, it may have several references in 
only one paragraph for exemple on the right page, and so the figure 
should appear in the right order on the left page, but couldn't be 
exactly at the same height. Also, if there are too many references in 
on right page, the figures which can't fit the left page should go on 
the top od the next left page...


It's possible that my answer change the proposition you made at the 
end of your message. Nevertherless, there is some thing in your last 
paragrph which is not clear for me : " Afterwards you split each page 
in half and create two separate pages from one single page which can 
be done with a loop (can be done theoretically with the imposition 
mechanism but a separate document is easier)."



Step 1:

 Create a document with a very big left margin where you can place all 
floats.


\setuppapersize
  [A3,landscape]

\setuplayout
  [backspace=23.5cm,
   width=15cm,edge=14cm]

\showframe

\setupfloat
  [default=leftedge,
   minwidth=14cm]

\starttext

\input ward

\startplacefigure
\externalfigure[dummy]
\stopplacefigure

\input knuth

\startplacetable
  \starttabulate[|c|c|c|]
  \FL
  \NC A \NC B \NC C \NC\NR
  \ML
  \NC X \NC Y \NC Z \NC\NR
  \LL
  \stoptabulate
\stopplacetable

\input zapf

\stoptext


Step 2:

Split each page into two separate pages where one contains all floats 
while the other page contains the text.


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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi all,

The \mathring command puts a small circle above a letter, but in some fonts 
(namely Lucida OT) that circle is too small. So thanks to a hint by Hans and 
Wolfgang some years ago I use the following definition which works fine when 
used alone. But in maths, one needs sometimes to use it with the command 
\overline (or \overbar) and the result is not nice.

Can someone tell me please whether it is possible to modify the \mathring 
command so that th ecircle is a little bit larger, or the one I define below as 
\interior in order to have a correct result (more clearly said: I would like 
the small circle to be put above the bar which is itself above the A in 
$\interior{\overline{A}}$).

Thanks for any help: OK

%%% begin mathring-interior.tex
\setuppapersize[A5][A5]
\definemathstackers[MySymbol]
[voffset=-1.2\mathexheight,
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]
%\define[1]\interior{\mathover[MySymbol]{"2218}{#1}} %2218 U+00B0
\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\starttext
The interior of a set $A$ is denoted by $\interior{A}$.

The interior of a set $A$ is denoted by $\mathring{A}$.

The closure of the interior is $\overline{\interior{A}}$.

Beware $\overline{\interior{A}} \neq \interior{\overline{A}}$. (This is not 
nice\dots).

Beware $\overline{\mathring{A}} \neq \mathring{\overline{A}}$
\stoptext

%%% end mathring-interior.tex



mathring-interior.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] Overfull hbox issues: different font,

2019-09-04 Thread Wolfgang Schuster

Julian G schrieb am 03.09.2019 um 23:17:

Hello everyone,
I apologize if this has been brought up already (or if my mistake is painfully 
obvious), but I'm having a slight issue with overfull hboxes. I think it is 
connected to hyphenation and/or using different fonts.

Test file: at the end of this mail or at 
https://gist.github.com/JulianGmp/fe20df633554f5aff02e02eb47a6780f
The output PDF I got: https://i.imgur.com/c8S7Di5.png

Best regards,
Julian



% Compiled document (screenshot):
% https://i.imgur.com/c8S7Di5.png

\setuppapersize[A4]
\showframe

\setuplayout[
topspace=1cm,
header=0cm,
width=16cm,
footer=0cm,
bottom=1cm,
]

\definefontfamily[arialFamily]   [sans]  [Arial]
\definefontfamily[calibriFamily] [sans]  [Calibri]
% \setupbodyfont[myfontfamily, 12pt]

\define\printExample{Es kann allerdings ein Problem auftreten: Es ist nicht 
immer eindeutig, ob die gemessen Phasenerschiebung eine komplette Umdrehung 
enthaltem. Angenommen sei eine gemessene Verschiebung von \m{\Delta_{\varphi}}, 
visualisiert in Abbildung 10 ... \blank[small] Zwar wird dadurch eine gewisse 
Übersicht geschaffen, jedoch werden potentielle Namens-
konflikte nicht verhindert.}

\setuptolerance[verytolerant]

or

\setupalign[verytolerant]

\starttext

\language[de]


\section{Standard Font}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}


\switchtobodyfont[arialFamily, 12pt]
\section{Arial 12pt}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}

\page

\switchtobodyfont[calibriFamily, 14pt]
\section{Calibri 14pt}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}

\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] Overfull hbox issues: different font,

2019-09-03 Thread Julian G
Hello everyone,
I apologize if this has been brought up already (or if my mistake is painfully 
obvious), but I'm having a slight issue with overfull hboxes. I think it is 
connected to hyphenation and/or using different fonts.

Test file: at the end of this mail or at 
https://gist.github.com/JulianGmp/fe20df633554f5aff02e02eb47a6780f
The output PDF I got: https://i.imgur.com/c8S7Di5.png

Best regards,
Julian



% Compiled document (screenshot):
% https://i.imgur.com/c8S7Di5.png

\setuppapersize[A4]
\showframe

\setuplayout[
topspace=1cm,
header=0cm,
width=16cm,
footer=0cm,
bottom=1cm,
]

\definefontfamily[arialFamily]   [sans]  [Arial]
\definefontfamily[calibriFamily] [sans]  [Calibri]
% \setupbodyfont[myfontfamily, 12pt]

\define\printExample{Es kann allerdings ein Problem auftreten: Es ist nicht 
immer eindeutig, ob die gemessen Phasenerschiebung eine komplette Umdrehung 
enthaltem. Angenommen sei eine gemessene Verschiebung von \m{\Delta_{\varphi}}, 
visualisiert in Abbildung 10 ... \blank[small] Zwar wird dadurch eine gewisse 
Übersicht geschaffen, jedoch werden potentielle Namens-
konflikte nicht verhindert.}

\starttext

\language[de]


\section{Standard Font}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}


\switchtobodyfont[arialFamily, 12pt]
\section{Arial 12pt}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}

\page

\switchtobodyfont[calibriFamily, 14pt]
\section{Calibri 14pt}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}

\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] Produce multiple versions in one run

2019-08-23 Thread Denis Maier
Well, but that will give me one file with papersize a5.
Can I instruct context to produce two files: one with --mode=a5, one with
the normal settings?
Or is a makefile better suited for this?

Best,
Denis

Am Fr., 23. Aug. 2019 um 17:26 Uhr schrieb Hans Hagen :

> On 8/23/2019 5:04 PM, Denis Maier wrote:
> > Hi,
> > let's say I want to produce two different versions of my document, one
> > with papersize a4, the other with papersize a5.
> >
> > ```
> > \setuppapersize[a4][a4]
> > \startmode[a5]
> >\setuppapersize[a5][a5]
> > \stopmode
> > ```
> >
> > What is the best way to produce both versions with one command? A
> > makefile? Or is there a way to do this with context alone?
> context --mode=a5 ...
>
>
> -
>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] Produce multiple versions in one run

2019-08-23 Thread Hans Hagen

On 8/23/2019 5:04 PM, Denis Maier wrote:

Hi,
let's say I want to produce two different versions of my document, one 
with papersize a4, the other with papersize a5.


```
\setuppapersize[a4][a4]
\startmode[a5]
   \setuppapersize[a5][a5]
\stopmode
```

What is the best way to produce both versions with one command? A 
makefile? Or is there a way to do this with context alone?

context --mode=a5 ...


-
  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] Produce multiple versions in one run

2019-08-23 Thread Denis Maier
Hi,
let's say I want to produce two different versions of my document, one with
papersize a4, the other with papersize a5.

```
\setuppapersize[a4][a4]
\startmode[a5]
  \setuppapersize[a5][a5]
\stopmode
```

What is the best way to produce both versions with one command? A makefile?
Or is there a way to do this with context alone?

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
___


[NTG-context] Different layout for specific pages

2019-08-23 Thread Stanislav Sokolenko

Dear list,

I would like to specify in advance that certain pages are to have 
different layouts. I put together an example based on what read on the 
wiki (https://wiki.contextgarden.net/Layout#Multiple_layouts):


\setuppapersize[A6]

\definelayout[bigheader][header=0.5\textheight]
\definelayout[smallheader][header=0.1\textheight]

\setuplayout[smallheader]
\definelayout[1][bigheader]
\definelayout[2][smallheader]

\starttext
\showframe
\input knuth
\input knuth
\input knuth
\stoptext

However, rather then having the big header only on page 1, I end up with 
it on every page except page 2. Is this a bug or can someone tell me 
what I'm doing wrong? I've tried using the lmtx binaries, a recent 
context standalone version (2019-08-17) and using context live with the 
same result everywhere.


Thanks,

Stan

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

2019-08-17 Thread jk...@inradius.net
Booklet layout 2UP is not working with lmtx for me.

MWE: under mkiv I get all 4 booklet pages laid out for two-sided print and fold.

\setuppapersize[A5][A4,landscape]
\setuparranging[2UP,doublesided]
\starttext
\dorecurse{4}{\input tufte \blank}
\dorecurse{3}{\input bryson \blank}
\dorecurse{3}{\input ward \blank}
\stoptext

context —version:
mtx-context | main context file: 
/users/kitz/ctxmkiv/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.04.25 10:36




MNWE: When I switch to lmtx, only booklet pages 1 and 4 are set and repeated on 
next page.

context —version:
mtx-context | main context file: 
/users/kitz/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2019.08.17 12:16

There seems to be flushing of pages going on under lmtx. Thanks for any help.

Kitz___
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] white space after a float in a column

2019-08-10 Thread Sytse knyps...@home.nl
Dear list members,

I am struggling with floats in a two-column layout. I understand that there are 
three up-to-date mechanisms for columns: columnsets, pagecolumns and pagegrids.

However, in neither setup I succeed in producing some extra vertical whitespace 
after the float if a caption is omitted (i.e. location=none in \setupcaption).

My example:



\definepapersize[square21][width=21cm,height=21cm]

\setuppapersize[square21][square21]

\definecolumnset[Two][n=2]

\setupcolumnset[Two]

\setupcaption[intermezzo][location=none,spaceafter=1cm]
 % no value for 
spaceafter seems to work
\setuptolerance[verytolerant,stretch]

\setupframedtexts[frame=on,corner=round,width=local]

\setuplayout[grid=yes]

\starttext

\startcolumnset[Two]

\input knuth \par

   \placeintermezzo[bottom][]{}

\startframedtext

\input tufte \par

\stopframedtext

   \input knuth \par

\stopcolumnset
\stoptext

If 'columnset' is replaced everywhere by 'pagecolumns' or by 'pagegrid' through 
a find-and-replace operation, the result remains identical.

Is it possible to insert more vertical white space after the intermezzo?

A secondary remark: \placeintermezzo always puts the framed text at the top of 
the next column, no matter whether the parameter is top or bottom. But this is 
not a big deal.

Sytse Knypstra
___
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] Captions with background

2019-08-04 Thread Hans Hagen

On 8/3/2019 5:22 PM, Henning Hraban Ramm wrote:

Hi,

in my books I typeset captions onto full page images, therefore I need a 
background; in the attached example it’s just a white box, usually I use a 
MetaPost shadow (some of you helped me with that a few years ago, current code 
see https://wiki.contextgarden.net/Drop_shadows).

Now, the background should just enclose the text, not more. Since I don’t know 
how long the caption will be (I use the whole setup in a macro), I need a \vbox 
within \setlayer, but that always uses the full \textwidth, regardless of width 
settings of \framed.

If the caption is short, the box should be minimal. Is this possible?


Even better would be a textbackground just behind the text lines.

Unfortunately my MP foo is not up to the task, the rectangular shadow was hard 
enough, but I’d try.
There’s an example in details.pdf, but I don’t understand how I could 
manipulate the path around the text (not: paragraph).


The example shows another problem: If you run it with --mode=arrange, the bleed 
is cut off.
Is this a matter of settings or a bug?


Greetlings, 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
___




--

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

\setuppapersize[A6][A6,oversized]

\setuplayout
   [location=middle,
marking=on,
grid=yes]

\setuppagenumbering
  [alternative=doublesided]

\starttext

\definelayer
  [page]
  [width=\paperwidth,
   height=\paperheight]

\definelayer
  [footer]
  [width=\textwidth,
   height=\footerheight]

\setupbackgrounds
  [page]
  [background=page,
   state=start]

\setupbackgrounds
  [footer][text]
  [background=footer,
   state=start]

\setupfooter[strut=no]

\useMPlibrary[dum]

\showframe[frame=on]

\dorecurse{10} {

test

\page[left]

\setlayer
  [page]
  [x=-2mm,
   y=-2mm,
   preset=lefttop]
  {\externalfigure
 [bogus]
 [width=\dimexpr\paperwidth+2mm,
  height=\dimexpr\paperheight+4mm]
 [frame=on]}

\setlayerframed
  [footer]
  [preset=leftbottom]
  [frame=off,
   align=normal,
   background=color,
   backgroundcolor=white]
  {\fakewords{#1}{#1}}

\page[empty]

test

}

\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] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen

On 8/2/2019 11:59 PM, Alan Braslau wrote:

On Fri, 2 Aug 2019 23:36:47 +0200
Wolfgang Schuster  wrote:


we have a lot or areas ... and if you really want you can do this ...

\setuplayouttext

Has been there for ages ... (but I never use that method).


I has the same question a few years ago but I never used it
because it has a few limitations like missing style/color support.


I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usually towards
better solutions, even if we leave in place for reasons of backward
compatibility habits that can be hard to quit.

One example is \setuppapersize [page=letter,paper=letter]
(sorry, and I *do* much prefer A4).
This is, I believe, far superior to \setuppapersize [letter] [letter]


Do you find that keys in \setupheader make sense? If so, what choice?
(as we like to limit the proliferation of key names).
actually there is not really a \setupheader as these are shortcuts to a 
few kind of generic commands that set up properties of these areas (a 
matrix) on the one hand, and set the content with a different command


(also, this part of context is quite optimized deep down because 
checking 25 areas for all possible properties each page flush is costly, 
so it would be a major rewrite with little gain; it would also mean 
dropping \setuphead etc and using one command for everything ... not 
something i want to do in the middle of other transitions like 
mkiv->mkxl and such)


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] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen

On 8/2/2019 11:59 PM, Alan Braslau wrote:

On Fri, 2 Aug 2019 23:36:47 +0200
Wolfgang Schuster  wrote:


we have a lot or areas ... and if you really want you can do this ...

\setuplayouttext

Has been there for ages ... (but I never use that method).


I has the same question a few years ago but I never used it
because it has a few limitations like missing style/color support.


I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usually towards
better solutions, even if we leave in place for reasons of backward
compatibility habits that can be hard to quit.


What limitations? \foo[{sometext}] is not that different from 
\foo[text={sometext}] and often I do


\setupheadertexts[\setups[header}]

\startsetups
  lots of stuff
\stopsetups

because you don't want to add all kind of stuff in a value.


One example is \setuppapersize [page=letter,paper=letter]
(sorry, and I *do* much prefer A4).
This is, I believe, far superior to \setuppapersize [letter] [letter]


A matter of taste but we're not going to drop something ... that kind of 
compatibility has always been a principle. If one has few docs it's no 
problem to adapt a few styles but it's a no go otherwise (and I'm not 
even speaking of adapting all kind of manuals, examples, etc etc.)


And for most of those commands there are k/v varianst too.

(\setuppapersize actually takes lists as page setups can be more complex 
than just 'letter')


(But I'm willing to remove the command that I know you hate most, namely 
{ {foo} \over {bar} }.)



Do you find that keys in \setupheader make sense? If so, what choice?
(as we like to limit the proliferation of key names).

\setupheader is used for styling and such, not for content.

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] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
On Fri, 2 Aug 2019 23:36:47 +0200
Wolfgang Schuster  wrote:

> > we have a lot or areas ... and if you really want you can do this ...
> >
> > \setuplayouttext
> >
> > Has been there for ages ... (but I never use that method).  
>
> I has the same question a few years ago but I never used it
> because it has a few limitations like missing style/color support.

I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usually towards
better solutions, even if we leave in place for reasons of backward
compatibility habits that can be hard to quit.

One example is \setuppapersize [page=letter,paper=letter]
(sorry, and I *do* much prefer A4).
This is, I believe, far superior to \setuppapersize [letter] [letter]


Do you find that keys in \setupheader make sense? If so, what choice?
(as we like to limit the proliferation of key names).

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] In a two column layout, activate line numbering for one column only

2019-07-30 Thread Oliver von Criegern

Dear list members,

I am trying to recreate a layout for some dictionary with ConTeXt. It is 
a two column layout with line numbering between the columns, that is, 
there is only one numbering for both columns. How can I do this with 
ConTeXt?


I would need either an option to activate line numbering only for one 
column, which, as far as I can see, does not exist; or I could use the 
"command" option for "\setuplinenumbering" to make the line numbers 
dissappear for one column, but then I would need some way to decide 
whether a line number belongs to the first or to the second column, some 
command that returns to me the number of the actual column, which I 
can't find, too.


For illustration, I give a minimal example:


||\setuppapersize[A4][A4]\setupbodyfont[9pt]||
|||\setupcolumns[n=2, distance=1cm, ]\setuplinenumbering[step=5, 
method=page, location=right, align=flushright, 
width=.25cm]\starttext\startcolumns\startlinenumbering\dorecurse{10}{\inputlorem}\par\stoplinenumbering\stopcolumns\stoptext|||



In the result, there are (as is to be expected) line numbers between 
both columns and also to the right of the second column. How can I get 
rid of the latter ones?


(For the pdf result see also: 
https://tex.stackexchange.com/questions/501269/context-how-to-have-line-numbering-in-a-two-column-layout-for-one-column-only). 



Best regards,
Oliver.


||

___
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] problems with images, layers and crop marks

2019-07-08 Thread Henning Hraban Ramm

Zitat von Hans Hagen :


On 7/8/2019 12:26 PM, Henning Hraban Ramm wrote:

I found the culprit, it’s \clip :


\setuppapersize[A6][C6]
\setuplayout[
location=middle,
marking=on,
]

\starttext
\clip[
    hoffset=\textwidth,
    voffset=5mm,
    width=\pagewidth,
    height=\pageheight]{%
\externalfigure[hacker][height=\pageheight]}

\page[right]
\strut


beware: \pagewidth and \pageheight are low level engine variables,  
use \paperwidth and \paperheight instead as these engine ones will  
be nilled


Thank you for the hint. In my actual code I use other measures.



\stoptext


Crop marks as well as some layers (not shown in example) are  
shifted by \clip’s hoffset and voffset.

I guess there’s some internal variables bleeding or the like?

hm, i'll apply a bit more agressive grouping there; i'll send you a test


Thank you, that seems to fix it.


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] problems with images, layers and crop marks

2019-07-08 Thread Hans Hagen

On 7/8/2019 12:26 PM, Henning Hraban Ramm wrote:

I found the culprit, it’s \clip :


\setuppapersize[A6][C6]
\setuplayout[
 location=middle,
 marking=on,
]

\starttext
 \clip[
     hoffset=\textwidth,
     voffset=5mm,
     width=\pagewidth,
     height=\pageheight]{%
 \externalfigure[hacker][height=\pageheight]}

\page[right]
\strut


beware: \pagewidth and \pageheight are low level engine variables, use 
\paperwidth and \paperheight instead as these engine ones will be nilled



\stoptext


Crop marks as well as some layers (not shown in example) are shifted by 
\clip’s hoffset and voffset.

I guess there’s some internal variables bleeding or the like?

hm, i'll apply a bit more agressive grouping there; i'll send you a test

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] problems with images, layers and crop marks

2019-07-08 Thread Henning Hraban Ramm

I found the culprit, it’s \clip :


\setuppapersize[A6][C6]
\setuplayout[
location=middle,
marking=on,
]

\starttext
\clip[
hoffset=\textwidth,
voffset=5mm,
width=\pagewidth,
height=\pageheight]{%
\externalfigure[hacker][height=\pageheight]}

\page[right]
\strut

\stoptext


Crop marks as well as some layers (not shown in example) are shifted  
by \clip’s hoffset and voffset.

I guess there’s some internal variables bleeding or the like?



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] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Wolfgang Schuster

Ursula Hermann schrieb am 12.06.2019 um 11:55:


Hello List!

\setuppapersize[A4]

\setupexternalfigures

  [location=default]

\setupbodyfont[Computer Modern Roman ,rm, tfx 7pt]


\setupbodyfont[7pt]

everything else can be removed because

1. "rm" is the default style in most typescripts

2. there is no typescript with the name "Computer Modern Roman"

3. "tfx" is a font switch in the document


\setupindenting

  [yes, small]

\setupwhitespace

  [small]

\setupcombination

   [location=top,

    distance=\spaceamount]

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

   \bTR

 \bTD[width=.2\textwidth]Small \eTD

 \bTD[width=0.05\textwidth] \eTD

   \eTR

\eTABLE

\setupexternalfigures

  [location=default]

\setupindenting

  [yes, small]

\setupwhitespace

  [small]

\definecolor [rosybrown:1][h=FFBCB3]

\defineframedtext

[prettyblock]

  [width=10cm,

   indenting={yes, small},

   background=color, backgroundcolor=rosybrown:1,

   foreground=color, foregroundcolor=black,

   offset=2mm,

   align=flushleft]

\starttext

\startprettyblock[width=7.5 cm,align={flushleft}]

\noindentation  The Earth, as a habitat for animal life, is in old age 
and has a fatal illness. Several, in fact.


\stopprettyblock

Below, we have two separate columns; but up here, for the nonce, we 
have but the one.


\startcolumns [n=2]

  Text, text, text \dots

  all in the first column

\column

  Words, words, words \dots

  all in the second column.

\stopcolumns

\stoptext

\startcolumns[n=2]

\input ward

\column

\input weisman

\stopcolumns

After installing ConTeXt in WinEdt:

Command Line: C:\Users\Hermann\Downloads\context-mswin\bin\mtxrun.exe 
--synctex=-1 "melon.tex"



Change "mtxrun.exe" to "context.exe" or "mtxrun.exe --script context".

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] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Ursula Hermann
I have forgotten: As Editor I have WinEdt.

Uschi

Von: ntg-context  Im Auftrag von Ursula Hermann
Gesendet: Mittwoch, 12. Juni 2019 11:55
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Something wrong after ConTeXt installation, could 
somebody help me please?

Hello List!

\setuppapersize[A4]
\setupexternalfigures
  [location=default]

\setupbodyfont[Computer Modern Roman ,rm, tfx 7pt]
\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\setupcombination
   [location=top,
distance=\spaceamount]
\bTABLE[align=flushleft,columndistance=0.1em]
   \bTR
 \bTD[width=.2\textwidth]Small \eTD
 \bTD[width=0.05\textwidth] \eTD
   \eTR
\eTABLE

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\definecolor [rosybrown:1][h=FFBCB3]
\defineframedtext
[prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=rosybrown:1,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock[width=7.5 cm,align={flushleft}]
\noindentation  The Earth, as a habitat for animal life, is in old age and has 
a fatal illness. Several, in fact.
\stopprettyblock
Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
\stopcolumns
\stoptext

\startcolumns[n=2]
\input ward
\column
\input weisman
\stopcolumns

After installing ConTeXt in WinEdt:
Command Line:   C:\Users\Hermann\Downloads\context-mswin\bin\mtxrun.exe 
--synctex=-1 "melon.tex"
Startup Folder: 
\\ub.univie.ac.at\U_Dom\Users 
G-L\Hermann\Documents\My Documents

mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-base.lua' using hash 
'lua::mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-bases.lua' using hash 
'lua::mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-base.lua' using hash 
'lua::mtx-t-mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-bases.lua' using hash 
'lua::mtx-t-mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-base.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
mtxrun  | unknown script 'mtx-base.lua' or 'mtx-mtx-base.lua'

There's something wrong, but I don't know what.
_

ConTeXt Compilation Report (Pages: 0)

Errors: 0   Warnings: 0   Ba

[NTG-context] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Ursula Hermann
Hello List!

\setuppapersize[A4]
\setupexternalfigures
  [location=default]

\setupbodyfont[Computer Modern Roman ,rm, tfx 7pt]
\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\setupcombination
   [location=top,
distance=\spaceamount]
\bTABLE[align=flushleft,columndistance=0.1em]
   \bTR
 \bTD[width=.2\textwidth]Small \eTD
 \bTD[width=0.05\textwidth] \eTD
   \eTR
\eTABLE

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\definecolor [rosybrown:1][h=FFBCB3]
\defineframedtext
[prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=rosybrown:1,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock[width=7.5 cm,align={flushleft}]
\noindentation  The Earth, as a habitat for animal life, is in old age and has 
a fatal illness. Several, in fact.
\stopprettyblock
Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
\stopcolumns
\stoptext

\startcolumns[n=2]
\input ward
\column
\input weisman
\stopcolumns

After installing ConTeXt in WinEdt:
Command Line:   C:\Users\Hermann\Downloads\context-mswin\bin\mtxrun.exe 
--synctex=-1 "melon.tex"
Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\My Documents

mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-base.lua' using hash 
'lua::mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-bases.lua' using hash 
'lua::mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-base.lua' using hash 
'lua::mtx-t-mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-bases.lua' using hash 
'lua::mtx-t-mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-base.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
mtxrun  | unknown script 'mtx-base.lua' or 'mtx-mtx-base.lua'

There's something wrong, but I don't know what.
_

ConTeXt Compilation Report (Pages: 0)

Errors: 0   Warnings: 0   Bad Boxes: 0
___
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
archiv

Re: [NTG-context] background color, was: CMYK Color profile

2019-06-02 Thread Benjamin Koppe
When stupidity strikes, no one's safe.

Turns out \setupbackgrounds has an option called backgroundoffset, and
this is the solution. The not colorized part was the bleed part of the
document, so the background command would be:


\setupbackgrounds
[paper]
[
background=color,
backgroundcolor=blue,
backgroundoffset=\measured{bleed}
]

wonder if this would be handy in the DIN lang folder template in the
wiki, as most such brochures will supposingly have a colored
background...?




Am Samstag, den 01.06.2019, 05:48 +0200 schrieb Benjamin Koppe:
> Here's the example. It's basically the code from DIN Lang Folder in
> the
> Wiki plus a setupbackgrounds command. It works with `page` but fails
> to
> work with `paper`:
>
>
>
>
> %% This is a template for a Din lang Folder.
> %% The folded page of such a flyer is shorter (97mm) than the other
> pages (100mm)
>
> %% This measure shows how much shorter the folded page is.
> \definemeasure
> [shortfold]
> [3mm]
>
> %% The bleed measure is necessary if you have colored page
> backgrounds
> %% or images in the bleed.
> %% Different print shops need different bleeds.
> \definemeasure
> [bleed]
> [1mm]
>
> %% This is the pagesize of the final PDF.
> %% The bleed size is added two times to width and height.
> \definepapersize
> [A4-flyer]
> [width=\dimexpr297mm+2\measured{bleed}\relax,
>  height=\dimexpr210mm+2\measured{bleed}\relax]
>
> %% The size of a normal page.
> \definepapersize
> [flyer-page]
> [width=100mm,
>  height=210mm]
>
> %% The size of the folded page.
> \definepapersize
> [flyer-page-small]
> [width=\dimexpr100mm-\measure{shortfold}\relax,
>  height=210mm]
>
> %% Imposition: With the following two commands we arrange the six
> pages
> %% on the final PDF print sheet.
>
> %% The flyerpages are imposed on the printed sheet.
> \setuppapersize
> [flyer-page]
> [A4-flyer]
>
> %% The pages are arranged as a tryptichon.
> \setuparranging
> [TRYPTICHON]
>
> %% Because of the shorter folded page and the bleed the pages has
> %% to be shifted horizontally on the printed sheet.
> %% The values are calculated here.
> \definepageshift
> [flyer]
> [horizontal]
> [\dimexpr\measure{bleed}-\measured{shortfold}\relax,
> \measure{bleed},
>  \measure{bleed},
>  \dimexpr2\measured{shortfold}+\measured{bleed}\relax,
>  \measure{bleed},
> \dimexpr\measure{bleed}-\measured{shortfold}\relax
> ]
>
>
> %% The vertical pageshift is simple.
> \definepageshift
> [flyer]
> [vertical]
> [\measure{bleed}]
>
> \setuppageshift
> [paper]
> [flyer]
>
> %% We define some measures to construct the page layout.
> \definemeasure
> [small]
> [3mm]
>
> \definemeasure
> [big]
> [\measure{small}*2]
>
> %% Each page has a slightly different page layout.
> %% The named layouts (1. bracket) inherit values from other layouts
> %% which are assigned in the second bracket.
> \definelayout
> [first]
> [page]
> [page=flyer-page,
>  topspace=2\measured{big},
>  backspace=2\measured{small},
>  width=\dimexpr\paperwidth-4\measured{small}\relax,
>  height=\dimexpr\paperheight-4\measured{big}\relax]
>
> \definelayout
> [second]
> [first]
> [topspace=2\measured{big},
>  backspace=2\measured{small},
>  width=\dimexpr\paperwidth-2\measured{big}\relax]
>
> \definelayout
> [thirdandfourth]
> [second]
> [backspace=\measure{big},
>  width=\dimexpr\paperwidth-2\measured{big}\relax]
>
> \definelayout
> [fifthandsixth]
> [first]
> [backspace=\measure{big},
>  width=\dimexpr\paperwidth-2\measured{big}\relax]
>
> %% We assign the layouts to the pages.
> \definelayout [1] [first]
> \definelayout [2] [second]
> \definelayout [3] [thirdandfourth]
> \definelayout [4] [thirdandfourth]
> \definelayout [5] [fifthandsixth]
> \definelayout [6] [fifthandsixth]
>
>
> %% Some setups
> \setupmakeup [doublesided=no]
> \setuptolerance [verytolerant]
>
>
> %% We want to see page and layout borders.
> %% COMMENT THIS OUT BEFORE YOU PRINT!
> \showframe
>
> \setupbackgrounds[paper][background=color,backgroundcolor=blue]
>
> \starttext
> \starttitle[title={First page}]
> \input lorem
>   \stoptitle
>   \starttitle[title={Second page}]
> \input lorem
>
>   \stoptitle
>   \starttitle[title={Third page}]
> \input lorem
>
>   \stoptitle
>
>   \starttitle[title={Fourth page}]
> \setuppapersize [flyer-p

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
Here's the example. It's basically the code from DIN Lang Folder in the
Wiki plus a setupbackgrounds command. It works with `page` but fails to
work with `paper`:




%% This is a template for a Din lang Folder.
%% The folded page of such a flyer is shorter (97mm) than the other
pages (100mm)

%% This measure shows how much shorter the folded page is.
\definemeasure
[shortfold]
[3mm]

%% The bleed measure is necessary if you have colored page backgrounds
%% or images in the bleed.
%% Different print shops need different bleeds.
\definemeasure
[bleed]
[1mm]

%% This is the pagesize of the final PDF.
%% The bleed size is added two times to width and height.
\definepapersize
[A4-flyer]
[width=\dimexpr297mm+2\measured{bleed}\relax,
 height=\dimexpr210mm+2\measured{bleed}\relax]

%% The size of a normal page.
\definepapersize
[flyer-page]
[width=100mm,
 height=210mm]

%% The size of the folded page.
\definepapersize
[flyer-page-small]
[width=\dimexpr100mm-\measure{shortfold}\relax,
 height=210mm]

%% Imposition: With the following two commands we arrange the six pages
%% on the final PDF print sheet.

%% The flyerpages are imposed on the printed sheet.
\setuppapersize
[flyer-page]
[A4-flyer]

%% The pages are arranged as a tryptichon.
\setuparranging
[TRYPTICHON]

%% Because of the shorter folded page and the bleed the pages has
%% to be shifted horizontally on the printed sheet.
%% The values are calculated here.
\definepageshift
[flyer]
[horizontal]
[\dimexpr\measure{bleed}-\measured{shortfold}\relax,
\measure{bleed},
 \measure{bleed},
 \dimexpr2\measured{shortfold}+\measured{bleed}\relax,
 \measure{bleed},
\dimexpr\measure{bleed}-\measured{shortfold}\relax
]


%% The vertical pageshift is simple.
\definepageshift
[flyer]
[vertical]
[\measure{bleed}]

\setuppageshift
[paper]
[flyer]

%% We define some measures to construct the page layout.
\definemeasure
[small]
[3mm]

\definemeasure
[big]
[\measure{small}*2]

%% Each page has a slightly different page layout.
%% The named layouts (1. bracket) inherit values from other layouts
%% which are assigned in the second bracket.
\definelayout
[first]
[page]
[page=flyer-page,
 topspace=2\measured{big},
 backspace=2\measured{small},
 width=\dimexpr\paperwidth-4\measured{small}\relax,
 height=\dimexpr\paperheight-4\measured{big}\relax]

\definelayout
[second]
[first]
[topspace=2\measured{big},
 backspace=2\measured{small},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
[thirdandfourth]
[second]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
[fifthandsixth]
[first]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

%% We assign the layouts to the pages.
\definelayout [1] [first]
\definelayout [2] [second]
\definelayout [3] [thirdandfourth]
\definelayout [4] [thirdandfourth]
\definelayout [5] [fifthandsixth]
\definelayout [6] [fifthandsixth]


%% Some setups
\setupmakeup [doublesided=no]
\setuptolerance [verytolerant]


%% We want to see page and layout borders.
%% COMMENT THIS OUT BEFORE YOU PRINT!
\showframe

\setupbackgrounds[paper][background=color,backgroundcolor=blue]

\starttext
\starttitle[title={First page}]
\input lorem
  \stoptitle
  \starttitle[title={Second page}]
\input lorem

  \stoptitle
  \starttitle[title={Third page}]
\input lorem

  \stoptitle

  \starttitle[title={Fourth page}]
\setuppapersize [flyer-page-small] [A4-flyer]
\input lorem

  \stoptitle
  \starttitle[title={Fifth page}]
\input lorem

  \stoptitle

  \starttitle[title={Sixth page}]
  \setuppapersize [flyer-page] [A4-flyer]
\input lorem

  \stoptitle

\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] Extend figure to margin, or extend figure from margin to text

2019-05-30 Thread Zhichu
Dear Wolfgang,

I've made an MWE. It seems that once I changed the layout, the output would be 
a little strange:
* The edgefigure (default=outer) on the odd pages can't be moved to the margin. 
Those on the even pages are fine as long as I use 
"leftmargindistance=-\innercombitotal"
* the marginfigure (default={outermargin, hanging}) on the odd pages are fine, 
but those on the even pages have a weird offset.
* by the way, the offset of the marginfigure on the even pages are the same as 
the edgefigure on the even pages if I set "leftmargindistance=-\outercombitotal"

I managed to make the marginfigure work by adding (just in this case)
  leftmargindistance=\dimexpr\outercombitotal-\innercombitotal\relax,
 rightmargindistance=0pt

But I could never make edgefigure work. Its different behavior on odd and even 
pages really bothers me.

Although the output is acceptable now, I'm still concerned that the settings 
are not logical (to a human being). I'm afraid that one day it won't work out 
like that.


Here's the MWE:
===
\showframe

\setuppagenumbering
 [alternative=doublesided]
\definepapersize
 [911]
 [width=9in,
 height=11in]
\setuppapersize
 [911]
\setuplayout
 [backspace=1in%
 ,leftmargin=.5in%
 ,leftmargindistance=0.25in%
 ,width=5.5in%
 ,rightmargindistance=0.25in%
 ,rightmargin=2in%
 ]

\definefloat
 [edgefigure]
 [figure]
\setupfloat
 [edgefigure]
 [rightmargindistance=-\outercombitotal
 ,leftmargindistance=-\innercombitotal
 ,default={outer,low,high,none}]

\definefloat
 [marginfigure]
 [figure]
\setupfloat
 [marginfigure]
 [default={outermargin,hanging,none}]

\startbuffer[fitframe]
\framed[width=\rightmarginwidth,height=.6\rightmarginwidth,framecolor=darkgreen]{\tt
 width=rightmarginwidth}
\stopbuffer

\startbuffer[wideframe]
\framed[width=2\rightmarginwidth,height=.6\rightmarginwidth,framecolor=darkred]{\tt
 width=2*rightmarginwidth}
\stopbuffer

\starttext

\chapter{edge}

\dorecurse{10}{
\startplaceedgefigure
\getbuffer[fitframe]
\stopplaceedgefigure

\input knuth
}

\chapter{margin}

\dorecurse{10}{
\startplacemarginfigure
\getbuffer[fitframe]
\stopplacemarginfigure
\input knuth
}

\dorecurse{10}{
\startplacemarginfigure
\getbuffer[wideframe]
\stopplacemarginfigure
\input knuth
}

\stoptext
===
--
From:Wolfgang Schuster 
Sent At:2019 May 29 (Wed.) 17:55
To:陈之初 ; mailing list for ConTeXt users 

Subject:Re: [NTG-context] Extend figure to margin, or extend figure from margin 
to text


Zhichu  schrieb am Mi., 29. Mai 2019, 10:30:


Hi everyone,

I am writing a book, in which all figures are placed in the margin. But some 
graphics are too big to fit in the margin. I was wondering whether there's an 
elegant way to use some room of the text body?

Take a look into the Details manual: http://www.pragma-ade.nl/show-man-15.htm

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] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 8:05 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 18:51:
>> [...]
>> I think it might be a bug.
>
> When you add \setupinteractionscreen to your document ConTeXt uses a
> more complex method to save the page size which includes calculations
> for the different box types. Part of these calculations are the width
> and height of the document and paper but when you rotate one of them you
> get unexpected values for them.

Many thanks for your reply, Wolfgang.

I see that a more complex method is deployed to get the box sizes.

I simply thought that this could be a bug.

Many thanks four your help,

Pablo


> \setuppapersize [A4,landscape,90] [A4]
>
> \starttext
>
> \starttabulate
> \NC Printpaperwidth  \EQ \the\printpaperwidth  \NC\NR
> \NC Paperwidth   \EQ \the\paperwidth   \NC\NR
> \TB
> \NC Printpaperheight \EQ \the\printpaperheight \NC\NR
> \NC Paperheight  \EQ \the\paperheight  \NC\NR
> \stoptabulate
>
> \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
> ___
>


--
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] issues with rotated paper size

2019-05-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 18:51:

On 5/14/19 4:53 PM, Hans Hagen wrote:

i have no clue what you want to achieve

Hans and Wolfgang,

I think I have found a weird behaviour in ConTeXt (latest beta from
2019.05.12 19:05).

This is a sample of what I want to achieve (thanks to Wolfgang’s help):

 \setuppapersize [A4,landscape,90] [A4]
 \setupinteractionscreen[option={none, max}]
 \showframe
 \starttext
 \showlayout
 \stoptext

If I set "option=max" (instead of "option={none, max}", I get a square
paper of 210x210mm.

These are the right page dimensions in PDF with the sample above:

   /MediaBox [ 0 0 595.2756 841.8898 ]
   /CropBox [ 0 0 595.2756 841.8898 ]
   /TrimBox [ 0 0 595.2756 841.8898 ]

These are the dimensions with "\setupinteractionscreen[option=max]":

   /MediaBox [ 0 0 841.8898 595.2756 ]
   /CropBox [ 0 -246.61417 595.2756 595.2756 ]
   /TrimBox [ 0 -246.61417 595.2756 595.2756 ]

I think it might be a bug.
When you add \setupinteractionscreen to your document ConTeXt uses a 
more complex method to save the page size which includes calculations 
for the different box types. Part of these calculations are the width 
and height of the document and paper but when you rotate one of them you 
get unexpected values for them.


\setuppapersize [A4,landscape,90] [A4]

\starttext

\starttabulate
\NC Printpaperwidth  \EQ \the\printpaperwidth  \NC\NR
\NC Paperwidth   \EQ \the\paperwidth   \NC\NR
\TB
\NC Printpaperheight \EQ \the\printpaperheight \NC\NR
\NC Paperheight  \EQ \the\paperheight  \NC\NR
\stoptabulate

\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] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 4:53 PM, Hans Hagen wrote:
> i have no clue what you want to achieve

Hans and Wolfgang,

I think I have found a weird behaviour in ConTeXt (latest beta from
2019.05.12 19:05).

This is a sample of what I want to achieve (thanks to Wolfgang’s help):

    \setuppapersize [A4,landscape,90] [A4]
\setupinteractionscreen[option={none, max}]
\showframe
\starttext
\showlayout
\stoptext

If I set "option=max" (instead of "option={none, max}", I get a square
paper of 210x210mm.

These are the right page dimensions in PDF with the sample above:

  /MediaBox [ 0 0 595.2756 841.8898 ]
  /CropBox [ 0 0 595.2756 841.8898 ]
  /TrimBox [ 0 0 595.2756 841.8898 ]

These are the dimensions with "\setupinteractionscreen[option=max]":

  /MediaBox [ 0 0 841.8898 595.2756 ]
  /CropBox [ 0 -246.61417 595.2756 595.2756 ]
  /TrimBox [ 0 -246.61417 595.2756 595.2756 ]

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] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 5:16 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 16:12:
>> Dear list,
>>
>> I have the following sample:
>>
>>  \setuppapersize[A4, landscape][A4, 90]
>>  %~ \setupinteractionscreen[option=max]
>>  \showframe
>>  \starttext
>>  \showlayout
>>  \stoptext
>>
>> For some reason, the page is displaced from the paper bottom.
> \setuppapersize [A4,landscape,90] [A4] ?

Many thanks for your reply, Wolfgang.

This is exactly what I want.

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] issues with rotated paper size

2019-05-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 16:12:

Dear list,

I have the following sample:

 \setuppapersize[A4, landscape][A4, 90]
 %~ \setupinteractionscreen[option=max]
 \showframe
 \starttext
 \showlayout
 \stoptext

For some reason, the page is displaced from the paper bottom.

\setuppapersize [A4,landscape,90] [A4] ?

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] issues with rotated paper size

2019-05-14 Thread Hans Hagen

On 5/14/2019 4:12 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setuppapersize[A4, landscape][A4, 90]
 %~ \setupinteractionscreen[option=max]
 \showframe
 \starttext
 \showlayout
 \stoptext

For some reason, the page is displaced from the paper bottom. And if
fullscreen is set, the real paper size is a square.

I think this may be a bug. Could anyone explain me what I’m doing wrong
or confirm the issue?

i have no clue what you want to achieve

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] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A4, landscape][A4, 90]
%~ \setupinteractionscreen[option=max]
\showframe
\starttext
\showlayout
\stoptext

For some reason, the page is displaced from the paper bottom. And if
fullscreen is set, the real paper size is a square.

I think this may be a bug. Could anyone explain me what I’m doing wrong
or confirm the issue?

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] placing content in footers

2019-05-12 Thread Henning Hraban Ramm
Am 2019-05-11 um 19:40 schrieb Henning Hraban Ramm :

> Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez :
> 
>> Dear list,
>> 
>> I have the following sample:
>> 
>>   \setuppapersize[A8]
>>   \setuppagenumbering
>>   [alternative=doublesized]
>>   \setupfootertexts
>>   [even-right]
>>   [even-left]
>>   [odd-right]
>>   [odd-left]
>>   %~ [even-middle]
>>   %~ [odd-middle]
>>   \starttext
>>   \mbox{}\page\mbox{}
>>   \stoptext
>> 
>> Is there any way to place content in the middle of doublesided footers,
>> besides left and right contents?
> 
> \setuppagenumbering[alternative=doublesided]
> \setupheadertexts[]
> \setupheadertexts[\setups{text right}][][][\setups{text left}]
> 
> \startsetups[text right]
>  \rlap{\pagenumber}
>  \hfill
>  \getmarking[chapter]
>  \hfill
>  \llap{Un Nom}
> \stopsetups
> 
> \startsetups[text left]
>  \rlap{Una Person}
>  \hfill
>  \getmarking[section]
>  \hfill
>  \llap{\pagenumber}
> \stopsetups

Sorry, I didn’t take time to comment on that example – of course it’s about 
headers not footers (they work the same) and shows a way to spread three pieces 
of text instead just centering one, which is much easier.


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] placing content in footers

2019-05-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 11.05.2019 um 16:35:

Dear list,

I have the following sample:

 \setuppapersize[A8]
 \setuppagenumbering
 [alternative=doublesized]
 \setupfootertexts
 [even-right]
 [even-left]
 [odd-right]
 [odd-left]
 %~ [even-middle]
 %~ [odd-middle]
 \starttext
 \mbox{}\page\mbox{}
 \stoptext

Where did you learn to use \mbox?

Is there any way to place content in the middle of doublesided footers,
besides left and right contents?

\setuppagenumbering
  [alternative=doublesided]

\setupfootertexts
  [\doifoddpageelse{right page}{left page}]

\setupfootertexts
  [inner margin] [outer margin]
  [outer margin] [inner margin]

\starttext
%\dorecurse{2}{\dontleavehmode\page}
\dorecurse{2}{\page[dummy]}
\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] placing content in footers

2019-05-11 Thread Henning Hraban Ramm
Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez :

> Dear list,
> 
> I have the following sample:
> 
>\setuppapersize[A8]
>\setuppagenumbering
>[alternative=doublesized]
>\setupfootertexts
>[even-right]
>[even-left]
>[odd-right]
>[odd-left]
>%~ [even-middle]
>%~ [odd-middle]
>\starttext
>\mbox{}\page\mbox{}
>\stoptext
> 
> Is there any way to place content in the middle of doublesided footers,
> besides left and right contents?

\setuppagenumbering[alternative=doublesided]
\setupheadertexts[]
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
  \rlap{\pagenumber}
  \hfill
  \getmarking[chapter]
  \hfill
  \llap{Un Nom}
\stopsetups

\startsetups[text left]
  \rlap{Una Person}
  \hfill
  \getmarking[section]
  \hfill
  \llap{\pagenumber}
\stopsetups



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
___


[NTG-context] placing content in footers

2019-05-11 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A8]
\setuppagenumbering
[alternative=doublesized]
\setupfootertexts
[even-right]
[even-left]
[odd-right]
[odd-left]
%~ [even-middle]
%~ [odd-middle]
\starttext
\mbox{}\page\mbox{}
\stoptext

Is there any way to place content in the middle of doublesided footers,
besides left and right contents?

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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
Hi!

I have a table with 39 columns (the file is attached). With the context
version:
ConTeXt Process Management 1.01
current version: 2017.05.15 21:48

I don't have any problem; but with the newer version:
ConTeXt Process Management 1.02
current version: 2019.04.29 08:52

show the next error:

tex error   > tex error on line 114 in file
/home/fmolina/tempo/latex/context/pbas/ts.tex: ! Dimension too large

\tabl_ntb_table_get_max_width ...<\wd \scratchbox
  \relax \scratchdimen \wd
\...
\tabl_ntb_table_stop ...l_ntb_table_get_max_width
  \ifautoTBLspread
\tabl_ntb...
\eTABLE ...oveunwantedspaces \tabl_ntb_table_stop
  \stopTBLprocessing \fi
\po...
l.114 \eTABLE


My table is:

\setupTABLE[header][each][background=color,backgroundcolor=white,
width=broad]
\bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]
  \bTABLEhead[align=flushright]
\bTR
   \bTH [offset=none, align={flushleft}, nc=39]
.
   \eTH
   ...
  \bTR[strut=no]
   \bTD[align={flushleft,lohi}, nr=1]
  {
\bTABLE[option={stretch},offset=0pt, frame=off]
 ...
 \eTABLE % fin de tabla interna en columna matriz
  }
   \eTD
   \bTD[ width=broad, nr=1 ] banco 1\eTD
   \bTD[ width=broad, nr=1 ] banco 1\eTD
   ... % to complet 39 columns

When i remove "width=broad" from  the "\bTD...banco 1\eTD" i can generate
my pdf with it new version

How wan resolve this problem? please guide me!!

Thank's in advance!

See you
\starttext
% Hoja legal horizontal
\definepapersize[LH][legal,landscape][legal,landscape]
\setuppapersize[LH]
%
\setuplayout
  [backspace=0.8cm,
   topspace=1.6cm,
   bottomspace=0cm,
   leftmargin=0cm,
   rightmargin=0cm,
   bottomspace=0cm,
   header=0cm,
   footer=0.5cm,
%  paperwidth=34.7cm
%  width=33.9cm,
%  height=39.2cm
   ]

\usetypescript[heros]
\setupbodyfont[heros,8pt]
\testpage[15]
% Calculamos el tamaño de la columna matriz. \textwidth tiene el ancho de la
% linea en puntos (en la documentación indica que es el ancho del contexto en el
% que se encuentra). Dividimos entre el total de columnas menos las columnas que
% son llamadas y las que son separadoras de columna
\definemeasure[tam][1.5\dimexpr (\textwidth/39)\relax]

\setupTABLE[column][1][width=1.5\dimexpr (\textwidth/39)]
\setupTABLE[header][each][background=color,backgroundcolor=white, width=broad]
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][even][background=color,backgroundcolor=white]

\bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]
  \bTABLEhead[align=flushright]
\bTR
   \bTH [offset=none, align={flushleft}, nc=39]
   {
 \bTABLE[option=tight, align={flushright}, frame=off]
   \bTR
 \bTD[ align={flushleft}, width=.8\textwidth ]
   Sucursales de la banca múltiple por demarcación territorial según institución
 \eTD
 \bTD[ align={flushright}, width=.2\textwidth ]
   Cuadro 23.1
 \eTD
   \eTR
 \eTABLE
   }
   \eTH
\eTR
\bTR[strut=no]
   \bTH[align={flushleft}, nc=39]
 Al 31 de diciembre de 2017   \eTH
\eTR

%  Linea horizontal de encabezados ***
\bTR[strut=no]
   \bTH[rulethickness=2pt,topframe=on, nc=39] \eTH
\eTR
\bTR[strut=no]
  \bTD[align={flushleft,lohi}, nr=1] 
  {
\bTABLE[option={stretch},offset=0pt, frame=off]
  \bTR
  \bTD[loffset= 0ex]
  Demarcación territorial
  \eTD
  \eTR
\eTABLE % fin de tabla interna en columna matriz
  }
   \eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
   \bTD[ width=broad, nr=1 ] banco 1\eTD  
%  \bTD[ width=broad, nr=1 ] banco 1\eTD  
%  \bTD[

Re: [NTG-context] XML xmldoif struggle!

2019-05-01 Thread Geert Verhaag

Hoi Pablo,

Thanks for your prompt reply!

The output Euro set! is printed always, it doesn't matter whether I put 
EURO or DOLLAR first?!


Also I can't find any clue on the suggested page 49 of xml-mkiv.pdf 
manual, sorry!


By the way, in my document it still doesn't seem to work!

I'm afraid all this is far too complex for me! The documentation simply 
isn't meant for beginners like me, sorry!


Regards,
Gerard


On 01-05-19 13:20, Pablo Rodriguez wrote:

On 4/30/19 9:58 PM, Geert Verhaag wrote:

[...]
\startxmlsetups xml:invoice:invoice
    \xmlfirst{#1}{currency} \par
    \xmldoif{\xmlfirst{#1}{currency}}{contains(text(),'EURO')} {
   Euro set! \par
    }
[...]
But the xmldoif command doesn't cause the Euro set be printed?!

What's wrong here? The manual xml-mkiv.pdf doesn't give me any hint on
how to make this work!

Hi Geert,

the syntax reads \xmldoif{#1}{lpath}{action}. So your conditional may read:

 \xmldoif{#1}{currency[first() and contains(text(),'EURO')]}
 {Euro set!}

In a complete sample (with dollar set first [it won’t show the result
unless you set EURO first]):

   \startbuffer[demo]
   
 
   DOLLAR
   EURO
 
   
   \stopbuffer

   \startxmlsetups xml:initialize
  \xmlsetsetup{#1}{doc}{xml:*}
   \stopxmlsetups

   \xmlregistersetup{xml:initialize}

   \startxmlsetups xml:doc
 \xmlfirst{#1}{currency} \par
 \xmldoif{#1}{currency[first() and contains(text(),'EURO')]}
 {Euro set!}
   \stopxmlsetups

   \setuppapersize[A8]

   \starttext
  \xmlprocessbuffer{main}{demo}{}
   \stoptext

It is all in xml-mkiv.pdf
(http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=49). I have
just discovered it .

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
___

___
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] XML xmldoif struggle!

2019-05-01 Thread Pablo Rodriguez
On 4/30/19 9:58 PM, Geert Verhaag wrote:
> [...]
> \startxmlsetups xml:invoice:invoice
>    \xmlfirst{#1}{currency} \par
>    \xmldoif{\xmlfirst{#1}{currency}}{contains(text(),'EURO')} {
>   Euro set! \par
>    }
> [...]
> But the xmldoif command doesn't cause the Euro set be printed?!
>
> What's wrong here? The manual xml-mkiv.pdf doesn't give me any hint on
> how to make this work!

Hi Geert,

the syntax reads \xmldoif{#1}{lpath}{action}. So your conditional may read:

\xmldoif{#1}{currency[first() and contains(text(),'EURO')]}
{Euro set!}

In a complete sample (with dollar set first [it won’t show the result
unless you set EURO first]):

  \startbuffer[demo]
  

  DOLLAR
  EURO

  
  \stopbuffer

  \startxmlsetups xml:initialize
 \xmlsetsetup{#1}{doc}{xml:*}
  \stopxmlsetups

  \xmlregistersetup{xml:initialize}

  \startxmlsetups xml:doc
\xmlfirst{#1}{currency} \par
\xmldoif{#1}{currency[first() and contains(text(),'EURO')]}
{Euro set!}
  \stopxmlsetups

  \setuppapersize[A8]

  \starttext
 \xmlprocessbuffer{main}{demo}{}
  \stoptext

It is all in xml-mkiv.pdf
(http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=49). I have
just discovered it .

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
___


Re: [NTG-context] underscore hyphenation in LMTX

2019-04-29 Thread Hans Hagen

On 4/27/2019 1:51 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \startluacode
 function document.addfunnyhyphen(tfmdata)
 local underscore = utf.byte("_")
 local char   = tfmdata.characters[underscore]
 tfmdata.characters[0xFE000]   = {
 width= 0,
 height   = 0,
 depth= 0,
 commands = {
 { "right", -char.width },
 { "down", char.depth },
 { "slot", 1, underscore },
 }
 }
 end

 utilities.sequencers.appendaction("aftercopyingcharacters","after",
 "document.addfunnyhyphen")
 \stopluacode

 \definehyphenationfeatures
   [whatever]
   [righthyphenchar="FE000]

 \setuphyphenation[method=traditional]
 \sethyphenationfeatures[strict, whatever]

 \setuppapersize[A10, lanscape]

 \starttext
 \startmakeup[standard]
 \hsize\zeropoint
 \tt definebodyfont
 \stopmakeup
 \stoptext

I get the underscore hyphenation with latest ConTeXt beta (LuaTeX-1.10),
but not with latest LMTX (LuaTeX-2.0).

Am I missing something here?


use slot '0' instead of '1' (i'll catch 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] underscore hyphenation in LMTX

2019-04-27 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startluacode
function document.addfunnyhyphen(tfmdata)
local underscore = utf.byte("_")
local char   = tfmdata.characters[underscore]
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ "right", -char.width },
{ "down", char.depth },
{ "slot", 1, underscore },
}
}
end

utilities.sequencers.appendaction("aftercopyingcharacters","after",
"document.addfunnyhyphen")
\stopluacode

\definehyphenationfeatures
  [whatever]
  [righthyphenchar="FE000]

\setuphyphenation[method=traditional]
\sethyphenationfeatures[strict, whatever]

\setuppapersize[A10, lanscape]

\starttext
\startmakeup[standard]
\hsize\zeropoint
\tt definebodyfont
\stopmakeup
\stoptext

I get the underscore hyphenation with latest ConTeXt beta (LuaTeX-1.10),
but not with latest LMTX (LuaTeX-2.0).

Am I missing something here?

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] Manipulating the pagenumber in the TOC

2019-04-21 Thread Wolfgang Schuster

Willi Egger schrieb am 21.04.2019 um 19:28:

Hi all,

"when manipulating in one area you will have to manipulate also in other aeras” 
I must confess.

I asked some time ago about manipulating the pagenumber. Wolfgang provide me 
the following approach:


\cldcontext{“\letterpercent.0f”,(\pagenumber+1)/2}

This works indeed fine. However now I am confronted with the fact, that in the 
TOC the manipulated pagenumbers should be taken into account.


\def\dwarsliggernumber#1%
  {\number\numexpr(#1+1)/2\relax}

\defineconversion [dwarsligger] [\dwarsliggernumber]

\setuppapersize[A5,landscape]

\setupuserpagenumber[numberconversion=dwarsligger]

\setuppagenumbering[location=none]

\setupheadertexts [\doifoddpageelse{}{\prefixedpagenumber}]
\setupfootertexts [\doifoddpageelse{\prefixedpagenumber}{}]

\usemodule [visual]

\starttext

\completecontent

\dorecurse{10}
  {\chapter{\fakewords{5}{10}}
   \fakelines{50}{100}}

\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] Imposition: 4 on 1, last 2 pages upside down

2019-04-18 Thread Paul Schalck
Hello,

I'm trying to get four small A6 pages on one A4 page (portrait) like this:

4 1
3 2

The last two pages should be upside down.

This is my starting point:

\setuppapersize[A6][A4]
\setuparranging[1*4]

Aside from the different page sequence, this rotates the last two pages, which 
is not what I'm looking for.

Can anyone help me with this? Sorry if this has been covered before. I'm not 
very familiar with imposition.

Greetings!

Paul
___
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] Unwanted uppercase letter in \high{} within bibliography

2019-04-12 Thread Huseyin Özoguz

Hello @list,



I have an unwanted output that might be a bug in my bibliographies.
Consider this MWE :

\setuppapersize[S4]
\mainlanguage[fr]
\language[fr]

\startbuffer[bib]


@book{Manuel5,
editor = {Martin Ivernel and Benjamin Villemagne and Jean Hubac},
title = {Histoire Géographie EMC 5\high{ème}, cycle 4},
publisher = {Hatier},
address = {Paris},
year = {2016},
pagetotal = {398},
language = {french}
}
\stopbuffer

\usebtxdataset[bib.buffer]
\definebtxrendering
[biblio]
[apa]
[numbering=no,
 sorttype=cite,
 title="Bibliographie"]

\starttext
\nocite[Manuel5]
\placelistofpublications
\stoptext

As you can see, we get Ème in the output instead of ème.
Is this a bug, or did I miss something?

Regards,


Damien Thiriet


Hi,

same issue here with \low and \lohi – I don't know if it is a bug or for 
purpose.


But there is a simple workaround:

Dirty workaround: \high{\color[white]{e}\hskip-1.3ex ème}
Maybe better: \lohi{\color[white]{b}}{ème}

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.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
___


Re: [NTG-context] Difference in right justification in LMTX

2019-04-11 Thread Joseph Canedo
Thanks Hans. I’ve ran install.bat to update my LMTX local copy (ran without 
apparent errors) and reran context command on my MWE, but I am afraid I see no 
difference.
Not sure if I missed any step or not.

Joseph

De : Hans Hagen
Envoyé le :mercredi 10 avril 2019 10:15
À : mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Difference in right justification in LMTX

On 4/10/2019 12:07 AM, Joseph Canedo wrote:
> Dear list.
> 
> Given the following MWE (could not reproduce with smaller example).
> 
> \setuppapersize[A5][A5]
> 
> \definefontfeature[base][mode=node, protrusion=quality, expansion=quality]
> 
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
> 
> \setupalign[hanging, lesshyphenation, hz]
> 
> \setupbodyfont[mainfont, 9pt]
> 
> \showframe
> 
> \starttext
> 
> les bestes/ & sus toute la terre/ & sus tout reptile qui bouge sur 
> surete sur la {\righttoleft terre. Dieu} donc crea l'homme a son image.
> 
> \stoptext
> 
> I notice that LMTX seems to add some small gap at right margin in the 
> 1st typeset line. I attach the pdf I get with luatex and lmtx. The 
> showframe directive makes it more visible.
i uploaded a new version

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] Unwanted uppercase letter in \high{} within bibliography

2019-04-11 Thread Damien Thiriet
Hello @list,



I have an unwanted output that might be a bug in my bibliographies.
Consider this MWE :

\setuppapersize[S4]
\mainlanguage[fr]
\language[fr]

\startbuffer[bib]


@book{Manuel5,
   editor = {Martin Ivernel and Benjamin Villemagne and Jean Hubac},
   title = {Histoire Géographie EMC 5\high{ème}, cycle 4},
   publisher = {Hatier},
   address = {Paris},
   year = {2016},
   pagetotal = {398},
   language = {french}
}
\stopbuffer

\usebtxdataset[bib.buffer]
\definebtxrendering
   [biblio]
   [apa]
   [numbering=no,
sorttype=cite,
title="Bibliographie"]

\starttext
\nocite[Manuel5]
\placelistofpublications
\stoptext

As you can see, we get Ème in the output instead of ème.
Is this a bug, or did I miss something?

Regards,


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
___


[NTG-context] DIN lang folder with crop marks

2019-04-10 Thread Benjamin Koppe
Hallo,

I'm new to ConTeXt and am crazy enough to start with something
nonstandard.

Of course I got stuck pretty fast. I started out with this:

https://wiki.contextgarden.net/DIN_lang_folder

and then found some info on crop marks here:

https://wiki.contextgarden.net/PaperSetup#Crop_marks


I tried different options (marked=on, market=colour, marked=color...,
something with \setuplayout[location={middle,middle}]...)

Some times the crop marks don't show at all, sometimes they are set off
a bit so they don't fit with the actual document.

I added the whole file as I really do not knwo (yet) how to reduce
things...

Thanks for any help
De Benny

%% This is a template for a Din lang Folder.
%% The folded page of such a flyer is shorter (97mm) than the other pages (100mm)

%% This measure shows how much shorter the folded page is.
\definemeasure
[shortfold]
[3mm]

%% The bleed measure is necessary if you have colored page backgrounds 
%% or images in the bleed.
%% Different print shops need different bleeds.
\definemeasure
[bleed]
[3mm]

%% This is the pagesize of the final PDF.
%% The bleed size is added two times to width and height.
\definepapersize
[A4-flyer]
[width=\dimexpr297mm+2\measured{bleed}\relax,
 height=\dimexpr210mm+2\measured{bleed}\relax]

%% The size of a normal page.
\definepapersize
[flyer-page]
[width=100mm,
 height=210mm]

%% The size of the folded page.
\definepapersize
[flyer-page-small]
[width=\dimexpr100mm-\measure{shortfold}\relax,
 height=210mm]

%% Imposition: With the following two commands we arrange the six pages
%% on the final PDF print sheet.

%% The flyerpages are imposed on the printed sheet.
\setuppapersize
[flyer-page]
[A4-flyer]


%% The pages are arranged as a tryptichon.
\setuparranging
[TRYPTICHON]

%% Because of the shorter folded page and the bleed the pages has
%% to be shifted horizontally on the printed sheet.
%% The values are calculated here.
\definepageshift
[flyer]
[horizontal]
[\dimexpr\measure{bleed}-\measured{shortfold}\relax,
\measure{bleed},
 \measure{bleed},
 \dimexpr2\measured{shortfold}+\measured{bleed}\relax,
 \measure{bleed},
\dimexpr\measure{bleed}-\measured{shortfold}\relax
]


%% The vertical pageshift is simple.
\definepageshift
[flyer]
[vertical]
[\measure{bleed}]

\setuppageshift
[paper]
[flyer]

%% We define some measures to construct the page layout.
\definemeasure
[small]
[3mm]

\definemeasure
[big]
[\measure{small}*2]

%% Each page has a slightly different page layout.
%% The named layouts (1. bracket) inherit values from other layouts
%% which are assigned in the second bracket.
\definelayout
[first]
[page]
[page=flyer-page,
 topspace=2\measured{big},
 backspace=2\measured{small},
 width=\dimexpr\paperwidth-4\measured{small}\relax,
 height=\dimexpr\paperheight-4\measured{big}\relax]

\definelayout
[second]
[first]
[topspace=2\measured{big},
 backspace=2\measured{big},
 width=\dimexpr\paperwidth-3\measured{big}\relax]

\definelayout
[thirdandfourth]
[second]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
[fifthandsixth]
[first]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

%% We assign the layouts to the pages.
\definelayout [1] [first]
\definelayout [2] [second]
\definelayout [3] [thirdandfourth]
\definelayout [4] [thirdandfourth]
\definelayout [5] [fifthandsixth]
\definelayout [6] [fifthandsixth]


%% Some setups
\setupmakeup [doublesided=no]
\setupbodyfont  [mainface,10pt]
\setuptolerance [verytolerant]

\setuplayout[marking=color]


%% We want to see page and layout borders.
%% COMMENT THIS OUT BEFORE YOU PRINT!
\showframe


\starttext
\starttitle[title={First page},marking{ }]
\input lorem
  \stoptitle 
  \starttitle[title={Second page},marking{ }]
\input lorem

  \stoptitle 
  \starttitle[title={Third page},marking{ }]
\input lorem

  \stoptitle

  \starttitle[title={Fourth page},marking{ }]
\setuppapersize [flyer-page-small] [A4-flyer]
\input lorem

  \stoptitle

  \starttitle[title={Fifth page},marking{ }]
\input lorem

  \stoptitle

  \starttitle[title={Sixth page},marking{ }]
  \setuppapersize [flyer-page] [A4-flyer]
\input lorem

  \stoptitle

\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] Difference in right justification in LMTX

2019-04-10 Thread Hans Hagen

On 4/10/2019 12:07 AM, Joseph Canedo wrote:

Dear list.

Given the following MWE (could not reproduce with smaller example).

\setuppapersize[A5][A5]

\definefontfeature[base][mode=node, protrusion=quality, expansion=quality]

\definefontfamily[mainfont][serif][EBGaramond][features=base]

\setupalign[hanging, lesshyphenation, hz]

\setupbodyfont[mainfont, 9pt]

\showframe

\starttext

les bestes/ & sus toute la terre/ & sus tout reptile qui bouge sur 
surete sur la {\righttoleft terre. Dieu} donc crea l'homme a son image.


\stoptext

I notice that LMTX seems to add some small gap at right margin in the 
1st typeset line. I attach the pdf I get with luatex and lmtx. The 
showframe directive makes it more visible.

i uploaded a new version

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] Difference in right justification in LMTX

2019-04-09 Thread Joseph Canedo
Dear list.

Given the following MWE (could not reproduce with smaller example).

\setuppapersize[A5][A5]
\definefontfeature[base][mode=node, protrusion=quality, expansion=quality]
\definefontfamily[mainfont][serif][EBGaramond][features=base]
\setupalign[hanging, lesshyphenation, hz]
\setupbodyfont[mainfont, 9pt]
\showframe

\starttext

les bestes/ & sus toute la terre/ & sus tout reptile qui bouge sur surete sur 
la {\righttoleft terre. Dieu} donc crea l'homme a son image.

\stoptext

I notice that LMTX seems to add some small gap at right margin in the 1st 
typeset line. I attach the pdf I get with luatex and lmtx. The showframe 
directive makes it more visible.

Joseph



Test2_lmtx.pdf
Description: Adobe PDF document


Test2_mkiv.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
___


[NTG-context] Filterpages is broken in LMTX

2019-04-08 Thread Markus Finke

\setuppapersize [A5] [A4, landscape]

\setuparranging [2SIDE]



\starttext

\filterpages[test.pdf][1:6][]

\stoptext



Thank you,
Markus
___
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] Layer failure with LMTX

2019-04-08 Thread Hans Hagen

On 4/8/2019 12:21 AM, Rik Kabel wrote:

List,

The following example works as expected with MKIV but fails for me with 
LMTX.


\setuppapersize[A7]
\setuppagenumbering [location=]

\definelayer [pageNumber][
   x=\dimexpr\pagewidth-\cutspace\relax,
   y=\topspace,
   width=\pagewidth,
   height=\pageheight,
  ]

\startsetups [setupPage]
 \setlayer[pageNumber]
 {\hskip\leftmargindistance
   \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}}
\stopsetups

\setupbackgrounds[page]
  [setups=setupPage,
   background=pageNumber]
\starttext
\page[empty]
\stoptext
use the official interface variables \paperwidth and \paperheight ... 
\pagewidth and \pageheight were never user variables (so you were lucky 
till now)


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] Layer failure with LMTX

2019-04-07 Thread Rik Kabel

List,

The following example works as expected with MKIV but fails for me with 
LMTX.


   \setuppapersize[A7]
   \setuppagenumbering [location=]

   \definelayer [pageNumber][
  x=\dimexpr\pagewidth-\cutspace\relax,
  y=\topspace,
  width=\pagewidth,
  height=\pageheight,
 ]

   \startsetups [setupPage]
\setlayer[pageNumber]
{\hskip\leftmargindistance
  \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}}
   \stopsetups

   \setupbackgrounds[page]
 [setups=setupPage,
  background=pageNumber]
   \starttext
   \page[empty]
   \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] index "compress" option / collapsing of page numbers

2019-04-03 Thread Henning Hraban Ramm
Am 2019-04-02 um 18:53 schrieb Hans Hagen :

> On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote:
>> Ahoi,
>> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s 
>> great.
>> But (at least in German publications) it’s usual that 1,2 becomes 1f. and 
>> 1,2,3 becomes 1ff.
>> Is it possible to configure it that way?
> it should not be too hard to program but, it being german problem:
> 
> - you have to come up with an example
> - wolfgang has to come up with a proper keyword (compress=?)
> 

Thank you – it’s not only a German habit, even if we pronounce it “folgende”, 
“f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was 
usual in mediaeval Latin.
So, this is at least used in English, German, Norwegian and Swedish, as far as 
I could find. In French they seem to use “sq.” and “sqq.” (sequens).

https://de.wiktionary.org/wiki/ff.
https://en.wiktionary.org/wiki/ff.
https://fr.wiktionary.org/wiki/sq.

I suggest the following setup options:

compress = no  —> don’t collapse (as now)
compress = yes —> always use – (as now)

compresssymbols={\,f.,\,ff.} (or how can you setup a list?)
compress = symbols —> use first symbol for one other page, second for more pages
if there’s only one symbol, more than one sequential page should use – 
(like “yes”)

Is this feasible?

As far as I see, we need this only for index entries, i.e. \setupregister, 
since there’s no command like \at for more than one page anyway; or is there a 
need to collapse pages in bibliographies?


Test case:


\usemodule[visual]
\setuppapersize[A6]

\setupregister[index][
  compress=yes,
  %compresssymbols={\,f.,\,ff.},
  %compress=symbols,
]

\starttext
\placeindex\index{nonsense}
\page

\strut\index{something}\page
\strut\index{something}\page

\dorecurse{7}{
\fakewords{10}{100}\index{something}\par
\fakewords{20}{200}\index{other}\par
\fakewords{10}{100}\index{something}\par
}
\index{finis} % not flushed?

\stoptext



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] LMTX deeptextcommand issue

2019-04-02 Thread Hans Hagen

On 4/2/2019 8:41 PM, Jan Tosovsky wrote:

Dear All,

my document ends with the index

\startbackmatter
\chapter{Rejstřík jmenný}
\start
\switchtobodyfont[8pt]
\placeindexname
\stop
\stopbackmatter
\startbackmatter
\chapter{Rejstřík věcný}
\start
\switchtobodyfont[8pt]
\placeindexsubject
\stop
\stopbackmatter

At the beginning there is a condition for one word (kind of manual column
balancing) - but according to the log, see below, this seems to be an issue:
\newconditional\IndexState
\define[1]\IndexInternalCommand
  
{\doifelse{#1}{Dolsko}{\global\settrue\IndexState}{\global\setfalse\IndexSta

te}#1}

\define[1]\IndexCommand
   {\setfalse\IndexState
\setbox\scratchbox\hbox{#1}%
\ifconditional\IndexState
  \column
\fi
\box\nextbox}


does

\unexpanded\def\IndexCommand#1%
  {

work?


\defineregister[indexname][indexnames]
\setupregister[indexname][command=\Word, textcommand=\IndexCommand,
deeptextcommand=\IndexInternalCommand]

\defineregister[indexsubject][indexsubjects]
\setupregister[indexsubject][command=\Word]
\setupheadtext[indexname=Rejstřík jmenný]
\setupheadtext[indexsubject=Rejstřík věcný]


This worked in luatex 1.0.1, but in LMTX I am getting:

structures  > begin of sectionblock 'backpart'
structure   > sectioning > chapter @ level 2 : 0.1 -> Rejstřík jmenný
fonts   > defining > font 'palab', feature 'locl', script 'latn', no
language 'dflt'

tex error   > tex error on line 25 in file
D:/context-lmtx/tex/texmf-context/tex/context/base/mkiv/page-run.mkiv: ?

 [internal expandable lua function call]

\IndexInternalCommand ...\setfalse \IndexState }#1
   
\IndexCommand ...ate \setbox \scratchbox \hbox {#1

   }\ifconditional
\IndexStat...
\doapplyregisterentrycommand ...extcommand {#2
   \dostoptagged
\registerentry ...plyregisterentrycommand {#2}{#5}
   \fi \else \let
\currentreg...
l.25 }
 
...l.11633 \stop



15
16 \registerctxluafile{page-run}{}
17
18 \unprotect
19
20 \unexpanded\gdef\showprint{\dotripleempty\page_layouts_show_print}
21
22 \gdef\page_layouts_show_print[#1][#2][#3]% only english
23   {\setbuffer[crap]%
24   \unprotect
25 >>  \definepapersize[X][\c!width=4em, \c!height=6em]
26 \definepapersize[Y][\c!width=12em,\c!height=14em]
27 \setuppapersize[X,#1][Y,#2]
28 \setuplayout[#3]
29 \setuplayout[\v!page]
30 \framed
31   [\c!offset=\v!overlay,\c!strut=\v!no,
32\c!width=\paperwidth,\c!height=\paperheight]
33   {\ss ABC\par DEF}%
34   \protect
35\endbuffer


When I've seen that 'crap' and weird page dimensions, I thought it is part
of the April fool, like all that LMTX announcement.

This issue is not urgent, I was just curious how different the output is.

Thanks,

Jan

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


Re: [NTG-context] Troubles with the \cldcontext command

2019-04-02 Thread Willi Egger
Dear Wolfgang!


thank you so much for your reply. I tried the test file and it works. tomorrow 
I will look further in a bigger environment.

Thanks and good night!

Willi

> On 2 Apr 2019, at 21:17, Willi Egger  wrote:
> 
> Hello!
> 
> I have the following code, which should manipulate the page number. However I 
> get an error:
> 
> 
> MWE:
> 
> \setuppapersize [A6] [A6]
> 
> \setuppagenumbering[location=none]
> 
> \startsetups [Pagenumber]
>  \doifrightpageelse
>{\cldcontext{"\letterpercent d",(\pagenumber+1)/2}}
>{}
> \stopsetups
> 
> \setupfootertexts [\directsetup{Pagenumber}]
> 
> \setupbodyfont [pagella,9pt]
> 
> 
> \starttext
> 
> \startstandardmakeup
>  Hello world!
> \stopstandardmakeup
> 
> \dorecurse{3}{TEST\page}
> 
> \stoptext
> 
> 
> Error:
> 
> 
> \cldcontext #1->\directlua {context(#1)}
> 
>  \ignorecrlf \directsetup {Pagenumber}
> {}{}{}
> \secondoftwoarguments #1#2->#2
> 
> \page_layouts_process_element_single_indeed ...#4}
>  \fi \endgroup 
> \page_layouts_process_element_single ...#1#2#3{#4}
>  \fi 
>  ...th {\hss \layoutelementparameter \c!middletext 
>  \hss }\kern -\makeupwidth ...
> 
> 
> What do i miss here? I am stumid…
> 
> Willi
> ___
> 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] Troubles with the \cldcontext command

2019-04-02 Thread Wolfgang Schuster

Willi Egger schrieb am 02.04.19 um 21:17:

Hello!

I have the following code, which should manipulate the page number. However I 
get an error:


MWE:

\setuppapersize [A6] [A6]

\setuppagenumbering[location=none]

\startsetups [Pagenumber]
   \doifrightpageelse
 {\cldcontext{"\letterpercent d",(\pagenumber+1)/2}}
 {}
\stopsetups

[...]

What do i miss here? I am stumid…


I guess %d wasn’t the right way to round the number, you can use

\startsetups [Pagenumber]
  \doifoddpageelse
{\cldcontext{"\letterpercent.0f",(\pagenumber+1)/2}}
{}
\stopsetups

or

\startsetups [Pagenumber]
  \doifoddpageelse
{\cldcontext{"\letterpercent r",(\pagenumber+1)/2}}
{}
\stopsetups

Search in cld-mkiv.pdf for formatters to find more options.

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] Troubles with the \cldcontext command

2019-04-02 Thread Willi Egger
Hello!

I have the following code, which should manipulate the page number. However I 
get an error:


MWE:

\setuppapersize [A6] [A6]

\setuppagenumbering[location=none]

\startsetups [Pagenumber]
  \doifrightpageelse
{\cldcontext{"\letterpercent d",(\pagenumber+1)/2}}
{}
\stopsetups

\setupfootertexts [\directsetup{Pagenumber}]

\setupbodyfont [pagella,9pt]


\starttext

\startstandardmakeup
  Hello world!
\stopstandardmakeup

\dorecurse{3}{TEST\page}

\stoptext


Error:


\cldcontext #1->\directlua {context(#1)}

 \ignorecrlf \directsetup {Pagenumber}
 {}{}{}
\secondoftwoarguments #1#2->#2
  
\page_layouts_process_element_single_indeed ...#4}
  \fi \endgroup 
\page_layouts_process_element_single ...#1#2#3{#4}
  \fi 
 ...th {\hss \layoutelementparameter \c!middletext 
  \hss }\kern -\makeupwidth ...


What do i miss here? I am stumid…

Willi
___
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 deeptextcommand issue

2019-04-02 Thread Jan Tosovsky
Dear All,

my document ends with the index

\startbackmatter
\chapter{Rejstřík jmenný}
\start
\switchtobodyfont[8pt]
\placeindexname
\stop
\stopbackmatter
\startbackmatter
\chapter{Rejstřík věcný}
\start
\switchtobodyfont[8pt]
\placeindexsubject
\stop
\stopbackmatter

At the beginning there is a condition for one word (kind of manual column
balancing) - but according to the log, see below, this seems to be an issue:
\newconditional\IndexState
\define[1]\IndexInternalCommand
 
{\doifelse{#1}{Dolsko}{\global\settrue\IndexState}{\global\setfalse\IndexSta
te}#1}

\define[1]\IndexCommand
  {\setfalse\IndexState
   \setbox\scratchbox\hbox{#1}%
   \ifconditional\IndexState
 \column
   \fi
   \box\nextbox}

\defineregister[indexname][indexnames]
\setupregister[indexname][command=\Word, textcommand=\IndexCommand,
deeptextcommand=\IndexInternalCommand]

\defineregister[indexsubject][indexsubjects]
\setupregister[indexsubject][command=\Word]
\setupheadtext[indexname=Rejstřík jmenný]
\setupheadtext[indexsubject=Rejstřík věcný]


This worked in luatex 1.0.1, but in LMTX I am getting:

structures  > begin of sectionblock 'backpart'
structure   > sectioning > chapter @ level 2 : 0.1 -> Rejstřík jmenný
fonts   > defining > font 'palab', feature 'locl', script 'latn', no
language 'dflt'

tex error   > tex error on line 25 in file
D:/context-lmtx/tex/texmf-context/tex/context/base/mkiv/page-run.mkiv: ?

 [internal expandable lua function call]
   
\IndexInternalCommand ...\setfalse \IndexState }#1
  
\IndexCommand ...ate \setbox \scratchbox \hbox {#1
  }\ifconditional
\IndexStat...
\doapplyregisterentrycommand ...extcommand {#2
  \dostoptagged 
\registerentry ...plyregisterentrycommand {#2}{#5}
  \fi \else \let
\currentreg...
l.25 }

...l.11633 \stop
   

15 
16 \registerctxluafile{page-run}{}
17 
18 \unprotect
19 
20 \unexpanded\gdef\showprint{\dotripleempty\page_layouts_show_print}
21 
22 \gdef\page_layouts_show_print[#1][#2][#3]% only english
23   {\setbuffer[crap]%
24   \unprotect
25 >>  \definepapersize[X][\c!width=4em, \c!height=6em]
26 \definepapersize[Y][\c!width=12em,\c!height=14em]
27 \setuppapersize[X,#1][Y,#2]
28 \setuplayout[#3]
29 \setuplayout[\v!page]
30 \framed
31   [\c!offset=\v!overlay,\c!strut=\v!no,
32\c!width=\paperwidth,\c!height=\paperheight]
33   {\ss ABC\par DEF}%
34   \protect
35\endbuffer


When I've seen that 'crap' and weird page dimensions, I thought it is part
of the April fool, like all that LMTX announcement.

This issue is not urgent, I was just curious how different the output is.

Thanks,

Jan

___
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] follow up

2019-04-02 Thread Hans Hagen

On 4/2/2019 2:40 PM, Floris van Manen wrote:
There seems to be some subtle differences in the pdf output when 
comparing the old and new context


Hm. Apart from a bit more efficient output there should be no real 
fundamental differences.



This is the context input:

\usemodule [vim]
\setuppapersize [A4]
\setuplayout [
   backspace=10mm,
   topspace=25mm,
   width=190mm,
   header=0mm,
   footer=0mm,
   height=240mm,
]

\setupheader [state=empty, no]
\setupbodyfontenvironment [default] [em=italic]
\definefontfamily [myfamily] [serif] [TeX Gyre Termes]
\setupbodyfont [myfamily, 10pt]
\definefontsize [e]
\definebodyfontenvironment [default] [e=3.5]
\starttext
\strut\vfill
\startalign[center]
{\tfe conText is fun}
\blank[10mm]
{\em ( ijver & vlijt 8+ )}

\stopalign
\vfill\strut
\stoptext


this is the old version
this is the new output
With osx preview? How small can you make that test (try removing 
characters) till it shows up ok.


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] follow up

2019-04-02 Thread Floris van Manen
There seems to be some subtle differences in the pdf output when comparing the 
old and new context

This is the context input:

\usemodule [vim]
\setuppapersize [A4]
\setuplayout [
  backspace=10mm,
  topspace=25mm,
  width=190mm,
  header=0mm,
  footer=0mm,
  height=240mm,
]

\setupheader [state=empty, no]
\setupbodyfontenvironment [default] [em=italic]
\definefontfamily [myfamily] [serif] [TeX Gyre Termes]
\setupbodyfont [myfamily, 10pt]
\definefontsize [e]
\definebodyfontenvironment [default] [e=3.5]
\starttext
\strut\vfill
\startalign[center]
{\tfe conText is fun}
\blank[10mm]
{\em ( ijver & vlijt 8+ )}

\stopalign
\vfill\strut
\stoptext


this is the old version

this is the new output





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] issue with symbol in attachments

2019-03-25 Thread Pablo Rodriguez
On 3/25/19 10:48 AM, Hans Hagen wrote:
> On 3/24/2019 6:47 PM, Pablo Rodriguez wrote:
>
>> Can anyone confirm that all attachment symbols are distorted, except the
>> first one?
> hard to say ... support for these symbols / icons in viewers has been an
> inconsistent mess right from the start and one has to keep adapting ...
> (scaling, positioning, decoupled representations, colors) ... a bit of a
> gamble

Many thanks for your reply, Hans.

I find suprising that /Rect entriess aren’t calculated the same way when
no dimension is specified. The following sample shows it:

\setupinteraction[state=start]
\setuppapersize[A9]
\starttext
\attachment[xml-mkiv.pdf]\\
\attachment[xml-mkiv.pdf]
[symbol=Pushpin]\\
\attachment[xml-mkiv.pdf]
[symbol=Default]\\
\stoptext

  /Rect [ 12.48609 117.54327 18.46039 123.51757 ]
  /Rect [ 12.48609 100.805667 54.306196 111.41602 ]
  /Rect [ 12.48609 88.58463 50.351209 97.11594 ]

Could it be possible that all /Rect entries for attachments are
calculated the same way (with a square of about 6×6), no matter which
symbol is used? At least, when no dimension is specified.

BTW, only one attachment is shown in each margin. It seems to be the
last one. I have just discovered it accidentally:

\setupinteraction[state=start]
\starttext
one\attachment[file=onandon, location=inmargin]

two (actually)\attachment[file=notnow, location=inmargin]%
\attachment[file=about, location=rightmargin]%
\attachment[file=onandon, location=leftmargin]%

three\attachment[file=notnow, location=rightmargin]%
\attachment[file=about, location=rightmargin]%
\attachment[file=onandon, location=rightmargin]%

four\attachment[file=about]\attachment[file=about]%
\attachment[file=about]\attachment[file=about]
\stoptext

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] issue with symbol in attachments

2019-03-24 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start]
\setuppapersize[A9]
\starttext
\attachment[xml-mkiv.pdf]\\
\attachment[xml-mkiv.pdf]
[symbol=Pushpin
 width=fit,
 width=fit,
 depth=fit]\\
\attachment[xml-mkiv.pdf]
[symbol=Default]\\
\attachment[xml-mkiv.pdf]
[symbol=Paperclip]\\
\attachment[xml-mkiv.pdf]
[symbol=Graph]\\
\attachment[xml-mkiv.pdf]
[symbol=Pushpin]\\
\stoptext

Symbols aren’t distorted with comments, although option "Default"
doesn’t seem to work well.

\setupinteraction[state=start]
\setuppapersize[A9]
\starttext
 \comment[xml-mkiv.pdf]\\
a\comment[xml-mkiv.pdf]
[symbol=Default]\\
b\comment[xml-mkiv.pdf]
[symbol=Newparagraph]\\
c\comment[xml-mkiv.pdf]
[symbol=Note]\\
d\comment[xml-mkiv.pdf]
[symbol=Insert]\\
e\comment[xml-mkiv.pdf]
[symbol=Help]\\
\stoptext


Can anyone confirm that all attachment symbols are distorted, except the
first one?

BTW, I’m using latest beta (2019.03.21 21:39).

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] Small pages and large framed texts

2019-03-21 Thread Willi Egger
Gosh Wolfgang! Thank you so much for your piece of code! — It starts to look 
nicer and nicer in my little project :-)

Kindest regards

Willi

> On 20 Mar 2019, at 22:31, Wolfgang Schuster 
>  wrote:
> 
> Willi Egger schrieb am 20.03.19 um 22:11:
>> It’s me again…
>> I appears that I was not clear enough, though I am happy about the 
>> possibility of using textbackground.
>> What I must do is to prepare a list of ConTeXt commands on a very small 
>> page. So the specific question is, how I can influence the 
>> \placelistofsorts[texcommand] in such a way, that the framed pieces break 
>> over the page.
> 
> \usemodule [setups]
> 
> \setuppapersize [A6] [A6]
> 
> \setupbodyfont [pagella,9pt]
> 
> \definetextbackground
>  [SetupsParameter]
>  [before=\blank,
>   after=\blank,
>   topoffset=10pt,
>   leftoffset=10pt,
>   location=paragraph,
>   frame=on]
> 
> \startsetups [xml:setups:start]
>  \starttextbackground [SetupsParameter]
> \stopsetups
> 
> \startsetups [xml:setups:stop]
>  \stoptextbackground
> \stopsetups
> 
> \starttext
> 
> \startsection[title={Short Version of the Command}]
> 
>  \cmdshortsetup [setupframed]
>  \cmdshortsetup [setupinteraction]
> 
> \stopsection
> 
> \startsection[title={\TEX-commands}]
> 
>  \placesetup
> 
> \stopsection
> 
> \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] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster

Willi Egger schrieb am 20.03.19 um 22:11:

It’s me again…

I appears that I was not clear enough, though I am happy about the possibility 
of using textbackground.

What I must do is to prepare a list of ConTeXt commands on a very small page. 
So the specific question is, how I can influence the 
\placelistofsorts[texcommand] in such a way, that the framed pieces break over 
the page.


\usemodule [setups]

\setuppapersize [A6] [A6]

\setupbodyfont [pagella,9pt]

\definetextbackground
  [SetupsParameter]
  [before=\blank,
   after=\blank,
   topoffset=10pt,
   leftoffset=10pt,
   location=paragraph,
   frame=on]

\startsetups [xml:setups:start]
  \starttextbackground [SetupsParameter]
\stopsetups

\startsetups [xml:setups:stop]
  \stoptextbackground
\stopsetups

\starttext

\startsection[title={Short Version of the Command}]

  \cmdshortsetup [setupframed]
  \cmdshortsetup [setupinteraction]

\stopsection

\startsection[title={\TEX-commands}]

  \placesetup

\stopsection

\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] Small pages and large framed texts

2019-03-20 Thread Willi Egger
It’s me again…

I appears that I was not clear enough, though I am happy about the possibility 
of using textbackground.

What I must do is to prepare a list of ConTeXt commands on a very small page. 
So the specific question is, how I can influence the 
\placelistofsorts[texcommand] in such a way, that the framed pieces break over 
the page.

\usemodule[x][set-11]
\loadsetups[i-context]

\setuppapersize[A6][A6]

\setupbodyfont[pagella,rm,10pt]


\starttext

\startsection[title=hSort Version of the Command]

\shortsetup{setupframed}
\shortsetup{setupinteraction}

\stopsection

\startsection[title=\TEX -commands]

\placelistofsorts[texcommand]

\stopsection

\stoptext


Willi

> On 20 Mar 2019, at 20:48, Willi Egger  wrote:
> 
> Thank you Wolfgang, I will try this!
> 
> Willi
> 
>> On 20 Mar 2019, at 18:26, Willi Egger  wrote:
>> 
>> Hi,
>> 
>> I deal with a small project, in which I should be able to make a framed text 
>> break over the page. — Does anyone have an idea how to achieve this?
>> 
>> \setuppapersize[A6][A6]
>> 
>> \setupbodyfont[pagella,rm,10pt]
>> 
>> 
>> \starttext
>>  \framedtext
>>  {\dorecurse{3}{\input ward\blank}}
>> \stoptext
>> 
>> 
>> Any hints would be welcome
>> 
>> Willi
>> ___
>> 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] Small pages and large framed texts

2019-03-20 Thread Willi Egger
Thank you Wolfgang, I will try this!

Willi

> On 20 Mar 2019, at 18:26, Willi Egger  wrote:
> 
> Hi,
> 
> I deal with a small project, in which I should be able to make a framed text 
> break over the page. — Does anyone have an idea how to achieve this?
> 
> \setuppapersize[A6][A6]
> 
> \setupbodyfont[pagella,rm,10pt]
> 
> 
> \starttext
>   \framedtext
>   {\dorecurse{3}{\input ward\blank}}
> \stoptext
> 
> 
> Any hints would be welcome
> 
> Willi
> ___
> 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] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster

Willi Egger schrieb am 20.03.19 um 18:26:

Hi,

I deal with a small project, in which I should be able to make a framed text 
break over the page. — Does anyone have an idea how to achieve this?

\setuppapersize[A6][A6]

\setupbodyfont[pagella,rm,10pt]


\starttext
\framedtext
{\dorecurse{3}{\input ward\blank}}
\stoptext


Any hints would be welcome


Use the textbackground environment.

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] Small pages and large framed texts

2019-03-20 Thread Willi Egger
Hi,

I deal with a small project, in which I should be able to make a framed text 
break over the page. — Does anyone have an idea how to achieve this?

\setuppapersize[A6][A6]

\setupbodyfont[pagella,rm,10pt]


\starttext
\framedtext
{\dorecurse{3}{\input ward\blank}}
\stoptext


Any hints would be welcome

Willi
___
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] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Jan U. Hasecke
Am 12.03.19 um 17:25 schrieb Wolfgang Schuster:
> \definepapersize [A4/3] [width=99mm,height=210mm]
> 
> \setuppapersize [A4/3] [A4,landscape]
> 
> \setuppaper [nx=3,ny=1]
> 
> \setuparranging [XY]
> 
> \setupbodyfont [10pt]
> 
> \showframe[page]
> 
> \starttext
> \dorecurse{10}{\samplefile{tufte}}
> \stoptext

Thanks a lot, Wolfgang.

juh

-- 
Soziale Plastik. Die Kunst der Allmende
Essay zum 30. Todestag von Joseph Beuys
http://www.amazon.de/dp/1523458763/
Taschenbuch, 130 Seiten, EUR 9,90
___
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] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Wolfgang Schuster

Jan U. Hasecke schrieb am 12.03.19 um 13:04:

Hi,

I managed to print din long flyers (100mmx210mm with 97mmx210mm fold
page) with 6 pages using a lot of pageshifts etc.

But how can I print one simple din long page (99mmx210mm) three times on
a din a4 page so that I can cut it myself?

The following does not work.

\definepapersize
[flyer]
[width=99mm,height=210mm]

\setuppapersize [flyer] [a4]

\setuparranging[1*3]

The option [1*3] does not exist for \setuparranging.
But I thought this could be what I want one sheet three pages.


Use the XY arrangement method and set the number of columns with the 
nx-key of \setuppaper.



\definepapersize [A4/3] [width=99mm,height=210mm]

\setuppapersize [A4/3] [A4,landscape]

\setuppaper [nx=3,ny=1]

\setuparranging [XY]

\setupbodyfont [10pt]

\showframe[page]

\starttext
\dorecurse{10}{\samplefile{tufte}}
\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] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Jan U. Hasecke
Hi,

I managed to print din long flyers (100mmx210mm with 97mmx210mm fold
page) with 6 pages using a lot of pageshifts etc.

But how can I print one simple din long page (99mmx210mm) three times on
a din a4 page so that I can cut it myself?

The following does not work.

\definepapersize
[flyer]
[width=99mm,height=210mm]

\setuppapersize [flyer] [a4]

\setuparranging[1*3]

The option [1*3] does not exist for \setuparranging.
But I thought this could be what I want one sheet three pages.

TIA
juh

___
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] inmargin attachments from notes

2019-03-10 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start]
\setupinteractionscreen[option=attachment]
\setuppapersize[A9, landscape]
\starttext
\footnote{attachment\attachment
[xml-mkiv.pdf]
[location=inmargin]}
\stoptext

Using latest beta (from 2019.03.05 15:40), I’m afraid that inmargin
attachments aren’t displayed in footnotes.

It makes no difference with

\setupnotation[footnote][alternative=serried]

Am I missing something or have I hit 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] Distance between two Columns

2019-02-28 Thread Wolfgang Schuster

Ursula Hermann schrieb am 28.02.19 um 11:43:

Dear List!

I have the following example. I would like to have two columns that are 
in the distance small. So I have tried:


\setuppapersize[A5]

\startcolumns

\defineframed

    [tightframed][width=5cm,width.1\textwidth,align=right]

\tightframed{Small}

\column

\tightframed{A really really long line that is split at 5cm}

If I take the example with only \tightframed, without the columns, I 
have the small distance, but I would like to have a left and right 
column with small distance.


Are you looking for something like the examples below?

\setupcombination
  [location=top,
   distance=\spaceamount]

\starttext

\startcombination[2*1]
{\framed[width=5cm,align=flushleft]{Small}}{}
	{\framed[width=5cm,align=flushleft]{A really really long line that is 
split at 5cm}}{}

\stopcombination

\blank

\placesidebyside
{\framed[width=5cm,align=flushleft]{Small}}
	{\framed[width=5cm,align=flushleft]{A really really long line that is 
split at 5cm}}


\blank

\bTABLE[width=5cm,align=flushleft,columndistance=\spaceamount]
  \bTR
\bTD Small \eTD
\bTD A really really long line that is split at 5cm \eTD
  \eTR
\eTABLE

\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] Distance between two Columns

2019-02-28 Thread Marco Patzer
On Thu, 28 Feb 2019 10:43:48 +
Ursula Hermann  wrote:

> I have the following example. I would like to have two columns that
> are in the distance small.

I'm not sure if I understand you correctly. You want to change the
distance between the columns? That can be done with:

  \setupcolumns
[distance=2cm]

> So I have tried:
> 
> \setuppapersize[A5]
> \startcolumns
> \defineframed
>[tightframed][width=5cm,width.1\textwidth,align=right]

1. Usually you don't define stuff in the main text. That's what the
   setup area (before \starttext) if for.
2. width is specified twice
3. width.1\textwidth is not valid, an = sign is missing

> \tightframed{Small}
> \column
> \tightframed{A really really long line that is split at 5cm}

\stopcolumns is missing.

Furthermore, \start/stoptext is missing. That results in the
monospaced font. I'd write your example as follows:

\setuppapersize
  [A5]

\defineframed
  [tightframed]
  [width=5cm,
   %% width=.1\textwidth,
   align=right]

\setupcolumns
  [distance=.5cm]

\starttext

\startcolumns
  \tightframed{Small}
\column
  \tightframed{A really really long line that is split at 5cm}
\stopcolumns

\stoptext

Marco
___
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] Distance between two Columns

2019-02-28 Thread Ursula Hermann
Dear List!

I have the following example. I would like to have two columns that are in the 
distance small. So I have tried:

\setuppapersize[A5]
\startcolumns
\defineframed
   [tightframed][width=5cm,width.1\textwidth,align=right]
\tightframed{Small}
\column
\tightframed{A really really long line that is split at 5cm}

If I take the example with only \tightframed, without the columns, I have the 
small distance, but I would like to have a left and right column with small 
distance.

Can someone help me please?


tight.pdf
Description: tight.pdf
___
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] How to define a new language?

2019-02-27 Thread Paul Hoffman
I'm trying to define a new language for use in a bilingual document, but 
my hyphenation patterns are being ignored and I'm sure I must be doing 
something wrong.

I've devised a minimal example that should hyphenate between vowels but 
doesn't.  Here's the hyphenation patterns file:

- lang-foo.pat -
% Hyphenation patterns for Foo.
\begingroup
\patterns{
a1a a1e a1i a1o a1u
e1a e1e e1i e1o e1u
i1a i1e i1i i1o i1u
o1a o1e o1i o1o o1u
u1a u1e u1i u1o u1u
}
\endgroup


I tried to convert this to Lua code but couldn't figure out the right 
invocation of _mtxrun --script pattern --convert_.

Then I wrote a minimal Context file and hoped it would pick up 
lang-foo.pat anyhow:

- test-foo.tex -
\installlanguage[foo][
spacing=broad,
leftsentence=---,
rightsentence=---,
leftsubsentence=---,
rightsubsentence=---,
leftquote=\upperleftsinglesixquote,
rightquote=\upperrightsingleninequote,
leftquotation=\upperleftdoublesixquote,
rightquotation=\upperrightdoubleninequote,
date={month,\ ,day,{,\ },year},
state=stop,
]
\mainlanguage[foo]
\setuppapersize[A6]
\setupalign[hyphenated,morehyphenation,flushleft]
\starttext
umleoeoikaoukkoiiaaiewuewniimoaralkokolwwuiuirmlkipetnoaeteuntoilamm
uuuauemepokawpoieoomtkeaipeailloaukoiwaeuaewurawiueanwtaoaoemmuuonwleaue
mrtmuweokmikariurtlluiraapnkowuaueolmrneraiiioeauemmaamauiiolluwrltounte
aaaunnoitwueemwlniowotuauwomaupaapwtawiikiuolnrolouletouunwptoioououoael
kiitinouoeolopewourtuineuaermnmmioaiuienkewuiaaklinipprurainouioiomuwokr
koriiaieulkppwwieoemlipiakinppprnpaiaaekapnpatritotoeormaetualeonemlppau
earoeauoiimekoilliiuomirnrwarpupieiilaaueeoaekwriummikpatakeairolwpiaoaa
tniweuiineeetuiektpalukluanetoiklwnemutlonnuaalpnelpniiuiutmaoakmkoiomia
ineioporrieopatakomonipiuwuiwiiaueiueoluoeaaiootwuekinkwawrrwwppilewoioo
itroreraeonkeuiaawalunnueoreiaaeewknailaeomomilkruruekuonkaonwwiieunonow
\stoptext


It does seem to see lang-foo.pat:

$ context --pdf test-foo.tex | fgrep patterns
mkiv lua stats  > loaded patterns: en::2 foo::67, load time: 0.000

But in the resulting PDF, nothing is hyphenated.  (I'll post the PDF if 
anyone really wants to see it.)

Here's my _context --version_ output:

mtx-context | ConTeXt Process Management 1.02
mtx-context |
mtx-context | main context file: 
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2018.01.19 13:42

Can someone point me to my mistake?

Thanks in advance,

Paul.

-- 
Paul Hoffman 
___
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] Insert "minipage"

2019-02-22 Thread Lizardo M. Reyna Bowen
Thanks,  it works ok.

On 2/22/19 2:55 PM, Wolfgang Schuster wrote:
> Lizardo M. Reyna Bowen schrieb am 22.02.19 um 18:20:
>> Hi all,
>>
>> How to insert a sample code and the result in a "minipage" in a
>> presentation? For example, I need to show the result of a
>> startdarmakeup, as in the following pdf.
>>
>> http://www.pragma-ade.com/show-art.pdf#[0,{%22name%22:%22Fit%22}]
>
> \setuppapersize[A4,landscape]
>
> \starttext
>
> \startbuffer[standardmakeup]
> \startstandardmakeup
> Hello
> \stopstandardmakeup
> \stopbuffer
>
> \typesetbuffer[standardmakeup][frame=on,height=\textheight]
>
> \stoptext
>
> Wolfgang
>
-- 
Lizardo Mauricio Reyna Bowen
Docente-Investigador
Facultad de Ingerniería Agrícola
Universidad Técnica de Manabí
+593 982924637 | lre...@utm.edu.ec |reyna@gmail.com
Manabí - Ecuador
PGP Key: 0xa35a15b90ee64e8d

___
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] Insert "minipage"

2019-02-22 Thread Lizardo M. Reyna Bowen
Thanks,  it is exactly what I want.

On 2/22/19 2:55 PM, Wolfgang Schuster wrote:
> Lizardo M. Reyna Bowen schrieb am 22.02.19 um 18:20:
>> Hi all,
>>
>> How to insert a sample code and the result in a "minipage" in a
>> presentation? For example, I need to show the result of a
>> startdarmakeup, as in the following pdf.
>>
>> http://www.pragma-ade.com/show-art.pdf#[0,{%22name%22:%22Fit%22}]
>
> \setuppapersize[A4,landscape]
>
> \starttext
>
> \startbuffer[standardmakeup]
> \startstandardmakeup
> Hello
> \stopstandardmakeup
> \stopbuffer
>
> \typesetbuffer[standardmakeup][frame=on,height=\textheight]
>
> \stoptext
>
> Wolfgang
>
-- 
Lizardo Mauricio Reyna Bowen
Docente-Investigador
Facultad de Ingerniería Agrícola
Universidad Técnica de Manabí
+593 982924637 | lre...@utm.edu.ec |reyna@gmail.com
Manabí - Ecuador
PGP Key: 0xa35a15b90ee64e8d

___
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] Insert "minipage"

2019-02-22 Thread Wolfgang Schuster

Lizardo M. Reyna Bowen schrieb am 22.02.19 um 18:20:

Hi all,

How to insert a sample code and the result in a "minipage" in a
presentation? For example, I need to show the result of a
startdarmakeup, as in the following pdf.

http://www.pragma-ade.com/show-art.pdf#[0,{%22name%22:%22Fit%22}]


\setuppapersize[A4,landscape]

\starttext

\startbuffer[standardmakeup]
\startstandardmakeup
Hello
\stopstandardmakeup
\stopbuffer

\typesetbuffer[standardmakeup][frame=on,height=\textheight]

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

2019-02-22 Thread Ursula Hermann
High list!

Another example, instead oft he cow, I took another figure:

\setuppapersize
  [A5]

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=lightgreen,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock
\setupindenting[next]
  The Earth, as a habitat for animal life, is in old age and has a fatal
  illness. Several, in fact.

  It would be happening whether humans had ever evolved or not.

  \placefigure
[][fig:church]
{Stephanus Church.}
{\externalfigure[ma-cb-24][width=.4\textwidth]}

\stopprettyblock
\setupindenting[next]
Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
  And look ye here! Even more words!
\stopcolumns

\stoptext

Works great. 

Many Regards 

Uschi 

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Wolfgang Schuster
Gesendet: Donnerstag, 21. Februar 2019 18:24
An: mailing list for ConTeXt users ; Marco Patzer 

Betreff: Re: [NTG-context] Frame

Marco Patzer schrieb am 21.02.19 um 12:19:
> On Thu, 21 Feb 2019 10:50:21 +
> Ursula Hermann  wrote:
>
>> Here is my example:
>>
>> \setuppapersize[A5]
>> \setupcolors[state=start]
> This is the default, no need to start the colours any longer.
>
>> {\framed
>> [width=10cm,
>> background=color,backgroundcolor=darkblue,
>> foreground=color,foregroundcolor=white,
>> align={flushleft}]
>> {The Earth, as a habitat for animal life, is in old age and has a 
>> fatal illness. Several, in fact.\par \setupindenting[yes, small] It 
>> would be happening whether humans had ever evolved or not.
>>
>> \externalfigure[cow.pdf][width=1cm]}
>>
>> \setupwhitespace[small]
>> \starttext
>> Below, we have two separate columns; but up here, for the nonce, we 
>> have but the one.
>>
>> \startcolumns[n=2]  % Two columns, please
>>  Text, text, text \dots
>>  all in the first column
>> \column
>>  Words, words, words \dots
>> all in the second column.
>>  And look ye here! Even more words!
>> \stopcolumns
>> \stoptext
>> Why can‘t I see the cow?
> You're missing
>
>\setupexternalfigures
>  [location=default]
>
> Without setting the location context doesn't check the system 
> directories for the sample images.
>
> Furthermore, you're typesetting before \starttext. That's why your 
> font is monospaced.
>
> And I try to separate content from style. That's why I move all style 
> information before \starttext and after \starttext comes only content 
> and markup (if possible). Nothing wrong with mixing it, but it's 
> easier to read and easier to change the layout after the fact.
> I'd write your example as follows.
>
> \setuppapersize
>[A5]
>
> \setupexternalfigures
>[location=default]
>
> \setupindenting
>[yes, small]
>
> \setupwhitespace
>[small]
>
> \defineframedtext
>[prettyblock]
>[width=10cm,
> indenting={yes, small},
> background=color, backgroundcolor=darkblue,
> foreground=color, foregroundcolor=white,
> offset=2mm,
> align=flushleft]
>
> \starttext
>
> \startprettyblock
>\noindentation

You don’t need \noindentation when you add “next” to the indenting options.

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] Frame

2019-02-21 Thread Wolfgang Schuster

Marco Patzer schrieb am 21.02.19 um 12:19:

On Thu, 21 Feb 2019 10:50:21 +
Ursula Hermann  wrote:


Here is my example:

\setuppapersize[A5]
\setupcolors[state=start]

This is the default, no need to start the colours any longer.


{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a
fatal illness. Several, in fact.\par \setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.

\externalfigure[cow.pdf][width=1cm]}

\setupwhitespace[small]
\starttext
Below, we have two separate columns; but up here, for the nonce, we
have but the one.

\startcolumns[n=2]  % Two columns, please
 Text, text, text \dots
 all in the first column
\column
 Words, words, words \dots
all in the second column.
 And look ye here! Even more words!
\stopcolumns
\stoptext
Why can‘t I see the cow?

You're missing

   \setupexternalfigures
 [location=default]

Without setting the location context doesn't check the system
directories for the sample images.

Furthermore, you're typesetting before \starttext. That's why your
font is monospaced.

And I try to separate content from style. That's why I move all
style information before \starttext and after \starttext comes only
content and markup (if possible). Nothing wrong with mixing it, but
it's easier to read and easier to change the layout after the fact.
I'd write your example as follows.

\setuppapersize
   [A5]

\setupexternalfigures
   [location=default]

\setupindenting
   [yes, small]

\setupwhitespace
   [small]

\defineframedtext
   [prettyblock]
   [width=10cm,
indenting={yes, small},
background=color, backgroundcolor=darkblue,
foreground=color, foregroundcolor=white,
offset=2mm,
align=flushleft]

\starttext

\startprettyblock
   \noindentation


You don’t need \noindentation when you add “next” to the indenting options.

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] Frame

2019-02-21 Thread Ursula Hermann
Hello Marco!

Thanks a lot, that worked. 

Many regards
Uschi 

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Marco Patzer
Gesendet: Donnerstag, 21. Februar 2019 12:19
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame

On Thu, 21 Feb 2019 10:50:21 +
Ursula Hermann  wrote:

> Here is my example:
> 
> \setuppapersize[A5]
> \setupcolors[state=start]

This is the default, no need to start the colours any longer.

> {\framed
>[width=10cm,
>background=color,backgroundcolor=darkblue,
>foreground=color,foregroundcolor=white,
>align={flushleft}]
> {The Earth, as a habitat for animal life, is in old age and has a 
> fatal illness. Several, in fact.\par \setupindenting[yes, small] It 
> would be happening whether humans had ever evolved or not.
> 
> \externalfigure[cow.pdf][width=1cm]}
> 
> \setupwhitespace[small]
> \starttext
> Below, we have two separate columns; but up here, for the nonce, we 
> have but the one.
> 
> \startcolumns[n=2]  % Two columns, please
> Text, text, text \dots
> all in the first column
> \column
> Words, words, words \dots
>all in the second column.
> And look ye here! Even more words!
> \stopcolumns
> \stoptext
> Why can‘t I see the cow?

You're missing

  \setupexternalfigures
[location=default]

Without setting the location context doesn't check the system directories for 
the sample images.

Furthermore, you're typesetting before \starttext. That's why your font is 
monospaced.

And I try to separate content from style. That's why I move all style 
information before \starttext and after \starttext comes only content and 
markup (if possible). Nothing wrong with mixing it, but it's easier to read and 
easier to change the layout after the fact.
I'd write your example as follows.

\setuppapersize
  [A5]

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=darkblue,
   foreground=color, foregroundcolor=white,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock
  \noindentation
  The Earth, as a habitat for animal life, is in old age and has a fatal
  illness. Several, in fact.

  It would be happening whether humans had ever evolved or not.

  \externalfigure[cow][width=1cm]
\stopprettyblock

Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
  And look ye here! Even more words!
\stopcolumns

\stoptext

Marco
___
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] Frame

2019-02-21 Thread Marco Patzer
On Thu, 21 Feb 2019 10:50:21 +
Ursula Hermann  wrote:

> Here is my example:
> 
> \setuppapersize[A5]
> \setupcolors[state=start]

This is the default, no need to start the colours any longer.

> {\framed
>[width=10cm,
>background=color,backgroundcolor=darkblue,
>foreground=color,foregroundcolor=white,
>align={flushleft}]
> {The Earth, as a habitat for animal life, is in old age and has a
> fatal illness. Several, in fact.\par \setupindenting[yes, small]
> It would be happening whether humans had ever evolved or not.
> 
> \externalfigure[cow.pdf][width=1cm]}
> 
> \setupwhitespace[small]
> \starttext
> Below, we have two separate columns; but up here, for the nonce, we
> have but the one.
> 
> \startcolumns[n=2]  % Two columns, please
> Text, text, text \dots
> all in the first column
> \column
> Words, words, words \dots
>all in the second column.
> And look ye here! Even more words!
> \stopcolumns
> \stoptext
> Why can‘t I see the cow?

You're missing

  \setupexternalfigures
[location=default]

Without setting the location context doesn't check the system
directories for the sample images.

Furthermore, you're typesetting before \starttext. That's why your
font is monospaced.

And I try to separate content from style. That's why I move all
style information before \starttext and after \starttext comes only
content and markup (if possible). Nothing wrong with mixing it, but
it's easier to read and easier to change the layout after the fact.
I'd write your example as follows.

\setuppapersize
  [A5]

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=darkblue,
   foreground=color, foregroundcolor=white,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock
  \noindentation
  The Earth, as a habitat for animal life, is in old age and has a fatal
  illness. Several, in fact.

  It would be happening whether humans had ever evolved or not.

  \externalfigure[cow][width=1cm]
\stopprettyblock

Below, we have two separate columns; but up here, for the nonce, we have but
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
  And look ye here! Even more words!
\stopcolumns

\stoptext

Marco
___
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] Frame

2019-02-21 Thread Ursula Hermann
Hello Lars!

Here is my example:

\setuppapersize[A5]
\setupcolors[state=start]
{\framed
   [width=10cm,
   background=color,backgroundcolor=darkblue,
   foreground=color,foregroundcolor=white,
   align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a fatal 
illness. Several, in fact.\par
\setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.

\externalfigure[cow.pdf][width=1cm]}

\setupwhitespace[small]
\starttext
Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns[n=2]  % Two columns, please
Text, text, text \dots
all in the first column
\column
Words, words, words \dots
   all in the second column.
And look ye here! Even more words!
\stopcolumns
\stoptext
Why can‘t I see the cow?
Many Regards
Uschi
Von: ntg-context  Im Auftrag von Lars
Gesendet: Mittwoch, 20. Februar 2019 15:38
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame


It's the same as with text, but instead of text you put

\externalfigure[path/to-figure.pdf][setup=value]

inside the parenthesis { }:

\setuppapersize[A5]

\starttext

{\framed
   [width=10cm,
   background=color,backgroundcolor=darkblue,
   foreground=color,foregroundcolor=white,
   align={flushleft}]
{The Earth, as a habitat for animal life, is
in old age and has a fatal illness. Several,
in fact.\par
\setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.}

\blank

{\framed
   [width=10cm,
   background=color,backgroundcolor=darkblue,
   foreground=color,foregroundcolor=white,
   align=middle]
{\externalfigure[path/to-figure.pdf][width=.8\textwidth]}

\stoptext



You don't need the \setupcolors[state=start] command in ConTeXt mkiv by the way.


Am 20/02/2019 um 12:31 schrieb Ursula Hermann:

Hi Marco!



I have another question to Frame. How is the process, if i have to take Figures 
in a Frame? Sorry, here I have no example, because I dont know, how to write it.



Many thanks



Uschi







-Ursprüngliche Nachricht-

Von: Ursula Hermann

Gesendet: Mittwoch, 20. Februar 2019 11:10

An: 'mailing list for ConTeXt users' 
<mailto:ntg-context@ntg.nl>

Betreff: AW: [NTG-context] Frame





Hi, Marco!



With colour:



\setuppapersize[A5]

\setupcolors[state=start]

{\framed

   [width=10cm,

   background=color,backgroundcolor=darkblue,

   foreground=color,foregroundcolor=white,

   align={flushleft}]

{The Earth, as a habitat for animal life, is in old age and has a fatal 
illness. Several, in fact.\par \setupindenting[yes, small] It would be 
happening whether humans had ever evolved or not.}



Many Regards



Uschi

-Ursprüngliche Nachricht-

Von: Ursula Hermann

Gesendet: Mittwoch, 20. Februar 2019 10:44

An: 'mailing list for ConTeXt users' 
<mailto:ntg-context@ntg.nl>

Betreff: AW: [NTG-context] Frame



Hello Marco!



It works, like I wanted:



\setuppapersize[A5]

{\framed

   [width=10cm,

align={flushleft}]

{The Earth, as a habitat for animal life, is in old age and has a fatal 
illness. Several, in fact.\par \setupindenting[yes, small] It would be 
happening whether humans had ever evolved or not.}



Thank you for helping

Uschi



-Ursprüngliche Nachricht-

Von: ntg-context 
<mailto:ntg-context-boun...@ntg.nl> Im Auftrag von 
Ursula Hermann

Gesendet: Dienstag, 19. Februar 2019 14:17

An: mailing list for ConTeXt users 
<mailto:ntg-context@ntg.nl>

Betreff: Re: [NTG-context] Frame



Hi Marco!



Thanks a lot.



Best regards



Uschi



-Ursprüngliche Nachricht-

Von: ntg-context 
<mailto:ntg-context-boun...@ntg.nl> Im Auftrag von 
Marco Patzer

Gesendet: Dienstag, 19. Februar 2019 14:11

An: ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>

Betreff: Re: [NTG-context] Frame



On Tue, 19 Feb 2019 13:01:35 +

Ursula Hermann 
<mailto:ursula.herm...@univie.ac.at> wrote:



I have:

\framed

  [height=3em,

   width=.5\textwidth,

   foregroundcolor=red,

   framecolor=blue,

   rulethickness=2pt,

   background=color,

   backgroundcolor=green]

\starttext

{Ich bin da.\par Du auch}

\stoptext



Move the \starttext to the beginning:



\starttext

\framed

  [height=3em,

   width=.5\textwidth,

   foregroundcolor=red,

   framecolor=blue,

   rulethickness=2pt,

   background=color,

   backgroundcolor=green]

{Ich bin da.\par Du auch}

\stoptext



Marco

___

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



maillist : ntg-context@ntg.nl<mailto: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-mirr

Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Taco Hoekwater


> On 21 Feb 2019, at 10:03, Damien Thiriet  wrote:
> 
> Hi,
> 
> 
> Why does (1) compile, whereas (2) doesn’t?

For me, both compile. However (2) does not work.

1. Variable names x and y are special and cleared before
   every graphic. This is related to the fact that “z" is 
   defined as a shortcut for "(x,y)”. Both of these are
   traditional. 

   Every metapost graphic does at least this at its start:

   save x,y;
   currentpicture := nullpicture;
   currentpen:=defaultpen;
  
   so pair xx[]; would have worked just fine.

   In general, I would advice to stay away from single-letter
   variable names inside MPinclusions, and use CamelCase
   to avoid clashes with metafun internals.

2. You need a bigger pen to actually see the dots even if
   you change the variable name. :)

Best wishes,
Taco

> I can't understand why can MPinclusions store path and not pairs.  
> 
> 
> %%%% (1) %%
> \setuppapersize[A4,landscape]
> 
> \startMPinclusions
> u:=1mm ;
> %fond
> path p ;
> p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
> pair x[] ;
> x[0]:= (20u,90u) ;
> x[1]:= (40u,90u) ;
> x[2]:= (90u,90u) ;
> x[3]:= (140u,90u) ;
> \stopMPinclusions
> 
> \startreusableMPgraphic{test}
> draw p ;
> \stopreusableMPgraphic
> 
> \starttext 
>\reuseMPgraphic{test}
> \stoptext
> 
>  (1) %%
> \setuppapersize[A4,landscape]
> 
> \startMPinclusions
> u:=1mm ;
> %fond
> path p ;
> p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
> pair x[] ;
> x[0]:= (20u,90u) ;
> x[1]:= (40u,90u) ;
> x[2]:= (90u,90u) ;
> x[3]:= (140u,90u) ;
> \stopMPinclusions
> 
> \startreusableMPgraphic{test}
> draw p ;
> for i=0 step 1 until 3 :
>drawdot x[i] ;
> endfor ;
> \stopreusableMPgraphic
> 
> \starttext 
>\reuseMPgraphic{test}
> 
> 
> More generaly, which kind of variables cannot be stored in
> \startMPinclusions ?
> 
> 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
> ___

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
___


Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Hans Hagen

On 2/21/2019 10:03 AM, Damien Thiriet wrote:

Hi,


Why does (1) compile, whereas (2) doesn't?
I can't understand why can MPinclusions store path and not pairs.


 (1) %%
\setuppapersize[A4,landscape]

\startMPinclusions
u:=1mm ;
%fond
path p ;
p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
pair x[] ;
x[0]:= (20u,90u) ;
x[1]:= (40u,90u) ;
x[2]:= (90u,90u) ;
x[3]:= (140u,90u) ;
\stopMPinclusions

\startreusableMPgraphic{test}
draw p ;
\stopreusableMPgraphic

\starttext
 \reuseMPgraphic{test}
\stoptext

 (1) %%
\setuppapersize[A4,landscape]

\startMPinclusions
u:=1mm ;
%fond
path p ;
p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
pair x[] ;
x[0]:= (20u,90u) ;
x[1]:= (40u,90u) ;
x[2]:= (90u,90u) ;
x[3]:= (140u,90u) ;
\stopMPinclusions

\startreusableMPgraphic{test}
draw p ;
for i=0 step 1 until 3 :
 drawdot x[i] ;
endfor ;
\stopreusableMPgraphic

\starttext
 \reuseMPgraphic{test}


More generaly, which kind of variables cannot be stored in
\startMPinclusions ?


those that are likely to clash later

\startMPinclusions
vardef MyStuff =
numeric u;
u:=1mm ;
path p ;
p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
pair x[] ;
x[0]:= (20u,90u) ;
x[1]:= (40u,90u) ;
x[2]:= (90u,90u) ;
x[3]:= (140u,90u) ;
enddef ;
\stopMPinclusions

\startreusableMPgraphic{test}
save p, u, x ;
MyStuff ;
draw p ;
for i=0 step 1 until 3 :
drawdot x[i] ;
endfor ;
\stopreusableMPgraphic

\starttext
\reuseMPgraphic{test}
\stoptext

but in your case you could as well put the inclusions in the test 
graphic itself


\startreusableMPgraphic{test}
save p, u, x ;
numeric u;
u:=1mm ;
path p ;
p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
pair x[] ;
x[0]:= (20u,90u) ;
x[1]:= (40u,90u) ;
x[2]:= (90u,90u) ;
x[3]:= (140u,90u) ;
draw p ;
for i=0 step 1 until 3 :
drawdot x[i] ;
endfor ;
\stopreusableMPgraphic

\starttext
\reuseMPgraphic{test}
\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
___


[NTG-context] troubles with \MPinclusions

2019-02-21 Thread Damien Thiriet
Hi,


Why does (1) compile, whereas (2) doesn't?
I can't understand why can MPinclusions store path and not pairs.  


 (1) %%
\setuppapersize[A4,landscape]

\startMPinclusions
u:=1mm ;
%fond
path p ;
p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
pair x[] ;
x[0]:= (20u,90u) ;
x[1]:= (40u,90u) ;
x[2]:= (90u,90u) ;
x[3]:= (140u,90u) ;
\stopMPinclusions

\startreusableMPgraphic{test}
draw p ;
\stopreusableMPgraphic

\starttext 
\reuseMPgraphic{test}
\stoptext

 (1) %%
\setuppapersize[A4,landscape]

\startMPinclusions
u:=1mm ;
%fond
path p ;
p:= (0,0) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ;
pair x[] ;
x[0]:= (20u,90u) ;
x[1]:= (40u,90u) ;
x[2]:= (90u,90u) ;
x[3]:= (140u,90u) ;
\stopMPinclusions

\startreusableMPgraphic{test}
draw p ;
for i=0 step 1 until 3 :
drawdot x[i] ;
endfor ;
\stopreusableMPgraphic

\starttext 
\reuseMPgraphic{test}


More generaly, which kind of variables cannot be stored in
\startMPinclusions ?

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] A strange request...

2019-02-20 Thread Wolfgang Schuster

Willi Egger schrieb am 20.02.19 um 17:23:

Hi all,

I am siting with a project of making a “dwarsligger”, you know these books, 
printed on bible-thin-printing paper, which are about  12 x 8 cm. One opens 
them while holding them ‘landscape’ with the spine on the top…

Now there is of course a little struggle with the page numbering. The reading 
page consists out of the even page together with the following uneven page. It 
is easy to print on the uneven page a page number, however this will result in 
uneven page numbers only throughout the book.

My question is, whether there is an algorithm to print page numbers as follows:


1  2  3  4  5  6  7  8  9 (this is the ordinary numbering)
1 2 3 4 5 (this is the requested numbering)

Does someone have an idea how to solve this?


Variant 1:

\setuppapersize[A5,landscape]

\setuppagenumbering[location=none]

\startsetups [pagenumber]
  \doifoddpageelse
{\cldcontext{"\letterpercent d",(\pagenumber+1)/2}}
{}
\stopsetups

\setupheadertexts [\directsetup{pagenumber}]

\starttext
\dorecurse{10}{\samplefile{knuth}}
\stoptext


Variant 2:

\defineexpandable[1]\DwarsliggerNumber
  {\cldcontext{"\letterpercent d",(#1+1)/2}}

\defineconversion [dwarsligger] [\DwarsliggerNumber]

\setuppapersize[A5,landscape]

\setupuserpagenumber[numberconversion=dwarsligger]

\setuppagenumbering[location=none]

\setupheadertexts [\doifoddpageelse{\prefixedpagenumber}{}]

\starttext
\dorecurse{10}{\samplefile{knuth}}
\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
___


  1   2   3   4   5   6   7   8   9   10   >