[NTG-context] Document metadata after context --extra=select script

2024-03-10 Thread Michael Guravage
Greetings,

I set a document's title with the following code:

\expanded
  {\setupmetadata
[title={Document Title}]}

I then create a derivative document with a selection of pages using
ConTeXt's select script.

context --extra=select [options] list-of-files

The metadata title of this document is "mtx-context-select." While I can
use any number of utilities to manually tweak the title, is there a ConTeXt
way to preserve or assign metadata values when using these scripts?

-- 
With kind regards,

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

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


[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
Greetings,

The document in question compiles correctly. Its hyperlinks are correct and
work as expected. However, if I apply a page selection, the hyperlinks in
the resulting document, while correctly coloured, no longer work.

Any suggestions on how to correct or work around this would be greatly
appreciated.

\setupinteraction[state=start, color=darkblue]
\setupwhitespace [big]
\starttext
  Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)]
.\par
  \dorecurse{5}{\samplefile{lorem}\par}
\stoptext

Processed as follows:

context  mwe.tex
context --extra=select --selection=1 --result=foobar.pdf mwe.pdf


-- 
With kind regards,

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

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


[NTG-context] imposition: getting to the last page of a booklet

2024-02-23 Thread Michael Guravage
Greetings,

I would like to use the nextquadruple and beforequadruple pagebreakhandlers
described at the bottom of the wiki's imposition page. However, the
examples complain of an error invoking the  \installpagebreakhandler
command.

The wiki page was last updated nearly four years ago. Is anyone using
updated versions of these?

-- 
With kind regards,

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

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


[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
Greetings,

I'm typesetting an address book whose addresses are in XML. A typical entry
has this structure:

  


  
  
  

  

initials and birthday are required, first_name can be left blank and email,
mobile and maiden_name are optional.

I've written a macro (name) to compose the name, i.e. initials, first_name
(maiden_name), and another macro (nameemaillink) to make the name a link
associated with an email address.

% Derive an individual's name
\def\name#1%
  {\ifxmlattempty{#1}{first_name} {\xmlatt{#1}{initials}} \else
{\xmlatt{#1}{initials}, \xmlatt{#1}{first_name}} \fi
   \ifxmlattempty{#1}{maiden_name} {} \else {
\tfxx(\xmlatt{#1}{maiden_name})} \fi}

% Create a mailto:link that associates a individual's name with their email
address.
\def\nameemaillink#1%
  {\ifxmlattempty{#1}{email} {\name{#1}} \else {\goto{\name{#1}}
[url(mailto:\xmlatt{#1}{email})]} \fi}

I thought I was done when I noticed that a composed name with an empty
first name, with or without an email address, is slightly indented. In the
mwe Moe and Curly, without first names, are indented; while Shemp and
Michael aren't.

That the undesired indentation/alignment is dependent on the presence of a
first name is baffling.  After this long description, if someone would look
at the code and tell me where I've gone wrong I would be very grateful. The
interesting bits begin on lines 8 and 12 in xml.tex.

-- 
With kind regards,

Michael
% XML processing instructions

% Turn a phone number into a tel:link - without spaces
\def\phonelink#1%
  {\goto{#1} [url(tel:\cldcontext{string.nospaces("#1")})]}

% Derive an individual's name
\def\name#1%
  {\ifxmlattempty{#1}{first_name} {\xmlatt{#1}{initials}} \else {\xmlatt{#1}{initials}, \xmlatt{#1}{first_name}} \fi
   \ifxmlattempty{#1}{maiden_name} {} \else { \tfxx(\xmlatt{#1}{maiden_name})} \fi}

% Create a mailto:link that associates a individual's name with their email address.
\def\nameemaillink#1%
  {\ifxmlattempty{#1}{email} {\name{#1}} \else {\goto{\name{#1}} [url(mailto:\xmlatt{#1}{email})]} \fi}

% Make an individual's mobile phone number a tel:link.
\def\mobilelink#1%
  {\ifxmlattempty{#1}{mobile} {} \else {\phonelink{\xmlatt{#1}{mobile}}} \fi}

% Track these several elements.
\startxmlsetups xml:list:base
  \xmlsetsetup{#1}{addressBook|family|address|members|member}{xml:list:*}
\stopxmlsetups

\xmlregisterdocumentsetup{list}{xml:list:base}

% When we encounter the root  element merely flush the rest.
\startxmlsetups xml:list:addressBook
  \xmlflush{#1}
\stopxmlsetups

% Place each family in a frametext box
\startxmlsetups xml:list:family
  \startframedtext[width=\textwidth]
{\tfb \bf \xmlatt{#1}{surname}\ifxmlattempty{#1}{prefix}{}\else{, \xmlatt{#1}{prefix}}\fi}\blank
\xmlflush{#1}
  \stopframedtext
  \blank[big]
\stopxmlsetups

% Enumerate the address information
\startxmlsetups xml:list:address
  \xmlatt{#1}{street} \xmlatt{#1}{housenumber}\crlf
  \xmlatt{#1}{postcode} \xmlatt{#1}{city}\crlf
  \ifxmlattempty{#1}{telephone}{\vskip -1em}\else{\phonelink{\xmlatt{#1}{telephone}}}\fi
  %\vskip -1em
  \xmlflush{#1}
  \blank[big]
\stopxmlsetups

% The only purpose of the  element is to make a table of members.
\startxmlsetups xml:list:members
  \starttabulate[|l|l|l|]
\xmlflush{#1}
  \stoptabulate
\stopxmlsetups

% Each  gets his own table row.
\startxmlsetups xml:list:member
  \NC \nameemaillink{#1} \NC \xmlatt{#1}{birthday} \NC \mobilelink{#1} \NC\NR
\stopxmlsetups

% finis
\environment xml.tex % XML processing instructions

\setupframedtext[frame=off, width=\textwidth, align={flushleft,broad,nothyphenated}]
\setupinteraction[state=start, color=darkblue]

\starttext
  \xmlprocessfile{list}{mwe.xml}{}
\stoptext

% finis



   


  	
  		
  	
  

  





mwe.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: removing whitespace

2024-02-13 Thread Michael Guravage
While reading the documentation I spotted something similar from which I
derived this solution:

\setupinteraction[state=start]
\def\squeeze#1%
  {
\goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})]
  }

\starttext
  Call \squeeze{01234 56789}
\stoptext

With kind regards,

Michael




On Tue, Feb 13, 2024 at 2:54 AM Michael Guravage <
gurav...@literatesolutions.com> wrote:

> In the example below I pass the macro a string with a space, but the space
> should not appear in the url.
>
> I've tried using \ctxlua to invoke string substitution, but without
> success. What is the proper way to remove this space, and to perform string
> manipulation more generally?
>
> \setupinteraction[state=start]
>
> \def\squeeze#1%
>   {\goto{#1}[url(tel:#1)]}
>
> \starttext
>   Call \squeeze{01234 56789}
> \stoptext
>
> --
> With kind regards,
>
> Michael
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] removing whitespace

2024-02-12 Thread Michael Guravage
In the example below I pass the macro a string with a space, but the space
should not appear in the url.

I've tried using \ctxlua to invoke string substitution, but without
success. What is the proper way to remove this space, and to perform string
manipulation more generally?

\setupinteraction[state=start]

\def\squeeze#1%
  {\goto{#1}[url(tel:#1)]}

\starttext
  Call \squeeze{01234 56789}
\stoptext

-- 
With kind regards,

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

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


[NTG-context] cont-new.mkiv and \everymathematics

2024-01-20 Thread Rogers, Michael K
Hi all,

In writing class notes, I frequently make one-letter macros for formatted 
symbols, such \v and \w for vectors. Generally speaking, one-letter names for 
function/macros/variables is frowned upon in programming, but I find this 
localized use very convenient.

In cont-new.mkiv, one finds definitions of \t and \w (via \let) appended to 
\everymathematics, which overwrites my definition of \w every time TeX enters 
math mode. I can fix this by appending my definition to \everymathematics. The 
inefficiency seems minor, and I can live with it. I have a question and a 
couple of points:

1. Is there a better way than adding the definition to \everymathematics?

2. I don’t think these definitions should be in ConTeXt. Let users add them if 
they wish. Or add a ‘useshortcuts’ option to \setupmathematics.

3. \t and \w are undocumented, \mathword is undocumented, and it took me a 
while to track down the bug it created for me. In particular, they overwrote my 
definition only in math mode, and “\show\w” did not work in math mode. 
Frustrating.  I could add a wikipage, I suppose, but I’m not proud of the 
extent of my knowledge: “\mathword{word} typesets “word” in math mode in a 
normal text font, somewhat like \text{word}, and \w is an abbreviation of it 
that is added to \everymathematics on startup.” 

Thank you very much,

Michael

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

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


[NTG-context] Re: [External] Re: Looking for itemize help

2024-01-15 Thread Rogers, Michael K
Hi Jim,

I think you want alternative “a”, if the dot instead of a letter is the problem 
and not the whitespace:

%%

\starttext

This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[a,packed,joinedup]
\item First item.
\item Second item.
\stopitemize
This is a line immediately following the above itemization.

This is a short paragraph.

\stoptext

%%

Cheers,

Michael

> On Jan 15, 2024, at 6:36 AM, Jim  wrote:
>
> Hi Hraban,
>
> thanks for your response.  But...
>
> On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:
>
>> Am 15.01.24 um 01:42 schrieb Jim:
>
>>> Some text preceding the list of items:
>>> a. Item one.
>>> b. Second item.
>>> This sentence is part of the same paragraph.
>
>>> The next paragraph starts here...
>
>> \startitemize[packed,joinedup] should be the right combination.
>
> I won't argue about "should", but I will point out it isn't, at least on my
> computer with a recently updated context.
>
> Here is a non-minimal but short non-working example.
>
> %%%
>
> \setupwhitespace [big]
>
> \setuppapersize [letter]
>
> \starttext
> This is a short paragraph.
>
> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
> This is a line immediately following the above itemization.
>
> This is a short paragraph.
>
> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
>
> This is another short paragraph.
>
> \stoptext
>
> %%%
>
> Thoughts?
>
>Jim
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net/
> ___

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

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


[NTG-context] Solaris 11 SPARC Support [SEC=OFFICIAL]

2024-01-04 Thread Michael Wigston via ntg-context
Hi,

Would you consider supporting Solaris 11 on SPARC?

Alternatively if you could provide documentation how to build Context on "SunOS 
sun4v" hardware would also be beneficial.

I have compiled luametatex, but getting below error when trying to create cache 
and not sure if this is a compatibility issue.

bin/custom# ./mtxrun --generate
startup error : no format file given, quitting

Regards,

Michael Wigston
Senior Analyst/Programmer, Digital Applications
People, Transformation & Technology Group
Level 5, 100 Market Street, Sydney, 2000
Tel: +61 2 9911 2426
michael.wigs...@asic.gov.au<mailto:michael.wigs...@asic.gov.au>
[cid:image001.png@01DA3FC5.8B11FCD0]


Please consider the environment before printing this document.

Information collected by ASIC may contain personal information. Please refer to 
our Privacy Policy<https://asic.gov.au/privacy/> for information about how we 
handle your personal information, your rights to seek access to and correct 
your personal information, and how to complain about breaches of your privacy 
by ASIC.

This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged, copyright material or 
personal and /or confidential information. You should not read, copy, use or 
disclose the content without authorisation. If you have received this email in 
error, please notify the sender as soon as possible, delete the email and 
destroy any copies. This notice should not be removed.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Testing whether an XML attribute exists

2023-10-17 Thread Michael Guravage
Hi,

I am typesetting a very simple address list whose source is written in
XML.  Typesetting choices need to be made dependent on the presence of
various attributes; consider the following  element.



If the prefix attribute exists I'l like the name to appear as, e.g. 'Boer,
den."  The several XML attribute testing functions in the XML manual appear
to discriminate on an attribute's value. I tried  \xmldoifnotatt in an
attempt to say, "TRUE if prefix does not match an empty string",  since I
am not interested in the attribute's value but only whether or not it
exists. The code below doesn't work. If someone who knows why it doesn't
work would enlighten my ignorance I would be most grateful. A brief
explanation and example of \xmldoifatt, \xmldoifnotatt, and \xmldoifelseatt
would be exceedingly helpful.

\startxmlsetups xml:list:family
  {\bf \xmlatt{#1}{surname} \xmldoifnotatt{#1, prefix, ''} {,
\xmlatt{#1}{prefix}}} \crlf
  \xmlflush{#1}
\stopxmlsetups

I have attached three files below: an XML address list, the ConTeXt source
file and the typeset result.

-- 
With kind regards,

Michael Guravage




  


  
  
  

  


  


  
  

  


\startxmlsetups xml:list:base
  \xmlsetsetup{#1}{addressBook|family|address|members|member}{xml:list:*}
\stopxmlsetups

\xmlregisterdocumentsetup{list}{xml:list:base}

\startxmlsetups xml:list:addressBook
  \title{Address List}
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:list:family
  %% {\bf \xmlatt{#1}{surname} \xmldoifnotatt{#1, prefix, ''} {, \xmlatt{#1}{prefix}}} \crlf
  {\bf \xmlatt{#1}{surname}}\crlf
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:list:address
  \xmlatt{#1}{street} \xmlatt{#1}{housenumber}\crlf
  \xmlatt{#1}{postcode}\crlf
  \xmlatt{#1}{city}\crlf
  \xmlatt{#1}{telephone}\crlf
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:list:members
  \starttabulate[|l|l|l|l|]
\xmlflush{#1}
  \stoptabulate
\stopxmlsetups


\startxmlsetups xml:list:member
 \NC \xmlatt{#1}{name} {\tfxx \xmlatt{#1}{maiden_name}} \NC \xmlatt{#1}{birthday} \NC \xmlatt{#1}{email} \NC \xmlatt{#1}{mobile} \NC\NR
\stopxmlsetups

\starttext
  \xmlprocessfile{list}{stooges.xml}{}
\stoptext


stooges.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread Michael Loescher

Am 18.09.2023 um 16:20 schrieb Hans Hagen:

On 9/18/2023 3:58 PM, Michael Loescher wrote:

There seems to be something wrong with the \type command.

MWE:
\starttext
\type{hello}
\stoptext

gives an error:
tex error   > tex error on line 2 in file Z:/test.tex: Control sequence 
expected instead of undefined

what platform?


I run the latest win64 build.

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

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

[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread Michael Loescher

There seems to be something wrong with the \type command.

MWE:
\starttext
\type{hello}
\stoptext

gives an error:
tex error   > tex error on line 2 in file Z:/test.tex: Control sequence 
expected instead of undefined


 \buff_verbatim_type_normal
#1->\buff_verbatim_initialize_type_two \dostarttaggedchained \t!verbatim 
\currenttype \??type \clf_type data{\protecteddetokenize
{#1}}tab{\typeparameter \c!tab }method{\p_buff_option 
}compact{\typeparameter \c!compact }escape{\typeparameter \c!escap


\type{hello}

1 \starttext
2 >>  \type{hello}
3 \stoptext
You injected something that confused the parser, maybe by using some Lua call.
mtx-context | fatal error: return code: 1

Michael

Am 17.09.2023 um 10:01 schrieb Cron Daemon:

receiving incremental file list
  ./
  ctan.lsr
  document-2.htm
  download-1.htm
  download-2.htm
  logo-ade.png
  logo-cts.png
  logo-pod.png
  rss.xml
  show-fil.pdf
  context/latest/
  context/latest/cont-lmt.zip
  context/latest/cont-mpd.zip
  context/latest/cont-ppc.zip
  context/latest/cont-sci.zip
  context/latest/cont-tmf.zip
  context/latest/cont-tst.7z
  context/latest/cont-tst.tar.xz
  context/latest/cont-tst.zip
  general/manuals/
  general/manuals/luametatex.pdf
  general/manuals/primitives.pdf
  
  sent 185,495 bytes  received 41,503,755 bytes  3,335,140.00 bytes/sec

  total size is 562,644,378  speedup is 13.50


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10
232388526   
/var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10/current
359137939   
/var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10
359137939   total
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

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

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


[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-17 Thread Michael Loescher

Hello,

after the update the latest luametatex.pdf cannot be opened, the file is 
corrupted.

Am 17.09.2023 um 10:01 schrieb Cron Daemon:

receiving incremental file list
  ./
  ctan.lsr
  document-2.htm
  download-1.htm
  download-2.htm
  logo-ade.png
  logo-cts.png
  logo-pod.png
  rss.xml
  show-fil.pdf
  context/latest/
  context/latest/cont-lmt.zip
  context/latest/cont-mpd.zip
  context/latest/cont-ppc.zip
  context/latest/cont-sci.zip
  context/latest/cont-tmf.zip
  context/latest/cont-tst.7z
  context/latest/cont-tst.tar.xz
  context/latest/cont-tst.zip
  general/manuals/
  general/manuals/luametatex.pdf
  general/manuals/primitives.pdf
  
  sent 185,495 bytes  received 41,503,755 bytes  3,335,140.00 bytes/sec

  total size is 562,644,378  speedup is 13.50


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10
232388526   
/var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10/current
359137939   
/var/www/aanhet.net/context//htdocs/archives/context-2023-09-17.10
359137939   total
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

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

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


[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Michael Löscher
Yes, I have done that. But I don't seem to have the basic context of how 
the processing works in order. All I have so far is this as a starting 
point:


\startxmlsetups xml:mysetup

\xmlsetsetup{main}{document|element|mdata|tdata|name|date|num|content|shortdescription|p}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetup}

\startxmlsetups xml:mysetup:document
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:element
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:mdata
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:tdata
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:name
\xmlflush
\stopxmlsetups

\startxmlsetups xml:mysetup:num
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:content
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:shortdescription
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:mysetup:p
\xmlflush{#1}\par
\stopxmlsetups

\starttext
  \xmlprocessbuffer {mysetup}{xmlcontent}{}
\stoptext

Am 21.08.2023 um 17:45 schrieb Thomas A. Schmitz:
Have you looked at chapter 3.10 "Testing" of the manual xml-mkiv.pdf? 
There are a lot of commands there that should help you, such as


\xmldoiftext {#1} {/mdata/date}
  {\bf \xmlflush {#1}}

or \xmldoifelsetext.

There's also \xmlfilter, which you can use to test for the content of 
tags. And of course, you can process in Lua and search for strings or 
use lpeg. However, your question is a bit vague now. Show us some code 
you have and we can take it from there; that's easier than writing the 
whole setup for you.


Thomas


On 8/21/23 17:29, Michael Löscher wrote:

Hello list,

having the xml data at the bottom, I would like to process it so that 
the result is like this:


---
What it is (e.g. bold formatted)
date: 2023-08-01 (italic)
Description (small font size)
Another text (small font size)

hd1 - Header 1

§ 1 First  (A first short description)
AA
BB

§ 2 Second (A second short description)
CC
DD

§ 3 Third (A third short description)
EE
FF
---

How can I process the s differently? The first element 
contains a  tag and so it differs from the other ones. The 
second element's  tag contains the word "Header" which makes it 
different again. The other elements contain a  tag 
that they all have in common.


What could be the appropriate xml setups to generate the above output?

Michael

---
xml data:
\startbuffer[xmlcontent]


   
 
   What it is
   2023-08-01
 
 
   
 Description
 Another text
   
 
   
   
 
   hd1
   Header 1
 
 
   
 Text of Header 1
   
 
   
   
 
   1
   First
   A first short description
 
 
   
 AA
 BB
   
 
   
   
 
   2
   Second
   A second short description
 
 
   
 CC
 DD
   
 
   
   
 
   3
   Third
   A third short description
 
 
   
 EE
 FF
   
 
   

\stopbuffer



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


maillist : ntg-context@ntg.nl / 
https://www.ntg.nl/mailman/listinfo/ntg-context

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

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

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

[NTG-context] XML processing beginner's question

2023-08-21 Thread Michael Löscher

Hello list,

having the xml data at the bottom, I would like to process it so that 
the result is like this:


---
What it is (e.g. bold formatted)
date: 2023-08-01 (italic)
Description (small font size)
Another text (small font size)

hd1 - Header 1

§ 1 First  (A first short description)
AA
BB

§ 2 Second (A second short description)
CC
DD

§ 3 Third (A third short description)
EE
FF
---

How can I process the s differently? The first element contains 
a  tag and so it differs from the other ones. The second element's 
 tag contains the word "Header" which makes it different again. 
The other elements contain a  tag that they all have 
in common.


What could be the appropriate xml setups to generate the above output?

Michael

---
xml data:
\startbuffer[xmlcontent]


  

  What it is
  2023-08-01


  
Description
Another text
  

  
  

  hd1
  Header 1


  
Text of Header 1
  

  
  

  1
  First
  A first short description


  
AA
BB
  

  
  

  2
  Second
  A second short description


  
CC
DD
  

  
  

  3
  Third
  A third short description


  
EE
FF
  

  

\stopbuffer

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

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

[NTG-context] Slow sreach with new mailing list interfache

2023-07-16 Thread Michael Loescher
Hello,

searching the mailing list is very slow recently (since the new interface hast 
been established).
For example searching for "font" takes 20 seconds for the results to show up.
Is it only me experiencing this phenomenon or ist it a general problem?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new units

2023-05-06 Thread Michael Urban via ntg-context
If you are going to introduce new units, you should at least include the 
Potrzebie, invented by teenager Donald Knuth and published in the humor 
magazine Mad Magazine #33.  The system is based on the thickness of Mad 
Magazine #26, equal to 2.2633484517438173216473 mm.
See the Wikipedia entry for 'potrzebie' for more information, or search for 
suitable images.

Honestly, I don't know how Knuth resisted putting this in plain TeX.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread Michael Urban via ntg-context



> On Apr 25, 2023, at 8:30 PM, jbf via ntg-context  wrote:
> 
> 
> \startitemize[continue]% THIS SHOULD DO WHAT YOU WANT


Wow, thanks.  I must have read that 'Enumerations' contextgarden wiki page a 
half dozen times and missed it anyway.

Mike

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

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


[NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread Michael Urban via ntg-context
I am trying to have two numbered itemizations, with a paragraph in between, 
such that the second list starts where the first left off, without having to 
manually calculate the new start point.  The following does not work, and I do 
not understand why.

Mike


\starttext
\definecounter[mynumber][]
\startitemize[n]
\item The first item.
\item The second item
\item Item number \currentitemnumber{}, the last one.
\setcounter[mynumber][\currentitemnumber]
\stopitemize

The \type{\getnumber[mynumber]} value is \getnumber[mynumber].
\incrementcounter[mynumber]

And now the big finish, start at \getnumber[mynumber]:
\startitemize[n][start=\getnumber[mynumber]] % WHY DOES THIS FAIL? 
\item Picking up where we left off.

\item And all is well.
\stopitemize
Done!
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Tabulate \TH command not working in latest release

2023-01-04 Thread Michael Guravage via ntg-context
While typesetting a document containing a small tabulated table with the
latest release I noticed that the tabulate \TH command hadn't added any
vertical space between the rows. Here's a mwe.

\starttext
  \starttabulate[|l|l|]
\NC Γ \NC Gamma \NC\NR
\NC Θ \NC Theta \NC\NR
\TB[line]
\NC Φ \NC Phi \NC\NR
  \stoptabulate
\stoptext

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

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


[NTG-context] Definestartstop, Narrower, and Blockquotej

2022-12-17 Thread Michael Urban via ntg-context
I get a decidedly odd (or, at least, unexpected by me) result from this, based 
on the example on the contextgarden page for definestartstop:

\starttext

\defineblank[ExtractDistance][3pt]
\definestartstop[Extract][
   style=slanted,
   before={\blank[ExtractDistance]
  \setupnarrower[left=2in,right=1in]
  \startnarrower[left,right]
  \noindent},
   after={\stopnarrower
  \blank[ExtractDistance]
  \indenting[next]}]
%Now the following commands are available: \startExtract and \stopExtract

\starttext
The extract from Knuth
\startExtract \input knuth \stopExtract
\stoptext

But now, blockquote is altered:

\startblockquote
\input lorem
\stopblockquote

But not narrower itself:

\startnarrower
\input lorem
\stopnarrower

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

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


[NTG-context] lmtx and \prime ?

2022-08-04 Thread Michael Urban via ntg-context
I get a different result for mkiv and lmtx for the following input:

\starttext
 Even now, a six footer is two
standard deviations from the mean. Remember, 5\prime{}7\prime\prime{} is 50th 
percentile today
for a 15 year old. 
\stoptext


With mkiv, the prime marks for inches and feet are where I expect them; in 
lmtx, they are placed almost to the baseline.

Wrong lmtx, or user error?

Mike

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

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


[NTG-context] If a Font Has Ligature Glyphs But No Feature?

2022-07-19 Thread Michael Urban via ntg-context
I downloaded something that purports to be Century Expanded from fontsgeek.com. 
  Although the font has fi and fl ligature glyphs, it does not have a ligature 
font feature and ConTeXt does not use those glyphs.

Aside from purchasing a real font product from Linotype at enormous expense and 
hoping it is better equipped, is there a way to coerce ConTeXt into using the 
ligature glyphs for fi and fl?


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

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


Re: [NTG-context] lmtx \placeinitial with nonzero par indent?

2022-07-11 Thread Michael Urban via ntg-context
Never mind.  Apparently lmtx changed the default for \setupindenting from 
'next' to 'first'?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] lmtx \placeinitial with nonzero par indent?

2022-07-11 Thread Michael Urban via ntg-context
The following produces different results in mkiv and lmtx (to which I am brand 
new):



\setupinitial[distance=1pt,font=Serif at 36pt,n=2]
\setupindenting[medium,yes]

\starttext

\placeinitial
\input knuth

\stoptext





The mkiv output is the desired effect.  It works fine in lmtx if I do not 
change to medium indentation.   Is this a bug or a feature (i.e., should I 
change something to work properly in both environments)?

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

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


Re: [NTG-context] Full-page Figure?

2022-03-31 Thread Michael Urban via ntg-context


> On Mar 30, 2022, at 11:38 PM, Hans Hagen  wrote:
> 
> does adding page=no help?
> 
Yes.  Once again, everyone’s help has been spot on.

___
If your question is of interest to others as well, please add an 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] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered 
blank page after.  If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is 
still a blank page before.  It is seemingly forcing
a right-hand page for some reason I do not understand.

Mike


> On Mar 28, 2022, at 6:37 PM, śrīrāma via ntg-context  
> wrote:
> 
> On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
>> Is there a simple way to accomplish this?
> 
> I suppose you need 'postponing'. See
>  https://wiki.contextgarden.net/Command/startpostponing
> [One can specify a page explicitly, or, more conveniently, an offset]
> 
> First, we define a makeup and enable header, footer and page for it. Then we 
> can put the float inside the makeup and wrap it with 
> \start...\stoppostponing. Here is a MWE:
> 
> %%% start example
>  \setupexternalfigures[location=default]
>  \definemakeup
>[FloatPage]
>  \setupmakeup
>[FloatPage]
>[headerstate=normal,
>   pagestate=start,
>   align=middle,
> footerstate=normal]
> 
>  \setupheadertexts[]
>  \setupheadertexts[chapter][\date]
>  \setupfootertexts[pagenumber]
> 
>  \starttext
>  \startchapter [title={Chapter title}]
>\startpostponing[+1]
>  \startFloatPagemakeup
>  \placefigure{a floating cow}{\externalfigure[cow]}
>  \stopFloatPagemakeup
>\stoppostponing
>  \dorecurse{6}{\samplefile{knuth}}
>  \blank
> 
>  \dorecurse{2}{\samplefile{tufte}}
>  \stopchapter
>  \stoptext
> %%% stop example
> 
> Of course, I think some manual hand-tuning is required (in the final stages 
> of the document) in deciding the right place to put the postponing block and 
> in deciding what offset is best.
> 
> Sreeram
> 
> 
> ___
> If your question is of interest to others as well, please add an 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] Full-page Figure?

2022-03-28 Thread Michael Urban via ntg-context
I want to have a float (illustration for fiction, with caption) that takes up 
just one page, irrespective of the size of the image in the figure.   This can 
be done with a \startmakeup, but makeup pages do not float, as near as I can 
tell; they interrupt the text (leaving a partly blank page); and of course they 
will not include headers and footers.   And a float with [page] will start the 
figure on a new page as desired, but if the image is too small, other text will 
end up on the page, which is not the desired result.  I want to vertically (and 
horizontally) center the figure on the page, with no other content but glue, in 
the main text block.  Headers and footers should appear as normal.

Is there a simple way to accomplish this?

Mike


___
If your question is of interest to others as well, please add an 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] Indented Paragraph After Float?

2022-02-07 Thread Michael Urban via ntg-context
On Feb 7, 2022, at 6:10 PM, śrīrāma via ntg-context  wrote:
> 
> On Tuesday, February 8, 2022 7:12 AM Michael Urban via ntg-context wrote:
>> produces output (for me) with the next paragraph after the figure placement
>> unindented.  I cannot think of a workaround hack in this case.
> 
> Some location values seem to affect the indentation in the next paragraph. A 
> fix 
> is to use \indentation after \stopplacefigure.
> 

Wow, that was fast. At least I know it wasn‘t a misunderstanding on my part 
this time!

Thanks.

Mike


___
If your question is of interest to others as well, please add an 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] Indented Paragraph After Float?

2022-02-07 Thread Michael Urban via ntg-context
As always, it is hard to tell whether this is my stupidity, the wrong version 
of ConText, or a bug.

\setupfloat[figure][indentnext=yes]
\starttext
%\setupbodyfont[11pt]
\setupindenting[yes, medium]
\input ward
\startplacefigure[title=A Figure,location=page]
\startframedtext \input ward.tex \stopframedtext
\stopplacefigure

Why am I not indented?

\input ward
\stoptext


produces output (for me) with the next paragraph after the figure placement 
unindented.  I cannot think of a workaround hack in this case.

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.03.10 14:44
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.03.10 14:44




___
If your question is of interest to others as well, please add an 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] Odd Font Behavior in startstop Group

2022-02-05 Thread Michael Urban via ntg-context
I am experiencing an odd behavior switching text styles in a defined startstop 
group ("blockquote").   I get different behavior depending on whether the 
switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf 
} text.   If they are not there, the italic and boldface switches in the second 
blockquote revert to the gyreschola body font of the main text; but this only 
happens if there is an earlier blockquote with no style changes.  This is with:

$  context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.03.10 14:44
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.03.10 14:44

Do I need a newer version of ConTeXt, or am I doing something wrong?
Fonts in ConTeXt are always perilous, alas.  For me, anyway.





\definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]
\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]
\definefontfamily[story][mm][TeX Gyre Pagella Math]
\setupbodyfont[story,11pt]

\definestartstop[blockquote]
 [
  before={ \blank \startnarrower \setupwhitespace[2pt] \setupindenting[none]
   \switchtobodyfont[termes]{\it }{\bf }% This is so weird.  Put a 
comment marker after [termes] for a different result
  },
  after={ \stopnarrower \blank \indenting[next]},
 ]%
\starttext
\chapter{Testing}
\input ward

\startblockquote
\input knuth

\stopblockquote

\input zapf

{\it This is what Italic letters look like.} {\bf And these are bold.}


\startblockquote
This is what it said, in {\it Italic} and {\bf bold} letters:

\bgroup
\it\noindent This is what Italic letters look like here.
\egroup

\bgroup
\bf\noindent This is what Bold letters look like here.
\egroup
\stopblockquote
\stoptext

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

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


[NTG-context] Get Current Section Number

2022-01-09 Thread Michael Urban via ntg-context
I want to put a book title above the Chapter title for the first chapter of a 
book.  I suppose that this can be accomplished with a 'before=' clause that 
checks to see if it is the first chapter... but how do I look at the chapter 
number in order to set up the conditional?

Mike

___
If your question is of interest to others as well, please add an 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] Table of Contents Header?

2021-12-30 Thread Michael Urban via ntg-context
I am playing around with imitating the design of fiction books from the early 
20th century.   The table of contents for these books often has small headings, 
'CHAPTER' (or 'CHAP.') and 'PAGE' over the respective columns.   How might this 
best be accomplished in ConTeXt?  Just add a carefully formatted line before 
the \placecontent ?  Or is there some more foolproof way of getting those 
headers into the right place?
___
If your question is of interest to others as well, please add an 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] Problem with Google Font 'Vollkorn'

2021-11-12 Thread Michael Urban via ntg-context
I downloaded the Google free font ‘Vollkorn’ 
(https://fonts.google.com/specimen/Vollkorn) into an appropriate directory and 
ran 
 mtxrun --script font --reload 
all went well, and the Vollkorn truetype fonts show up in the output of mtxrun 
--script font --list --all   .

However, the following input:

\starttext
\definedfont[name:vollkornregular*default at 14pt]
\input tufte
\stoptext

fails, with the following output:
system   > ConTeXt  ver: 2020.03.10 14:44 MKIV beta  fmt: 2020.6.8  int: 
english/english
  
fonts   > otf loading > loading 
'MYPATH/texmf/fonts/truetype/google/Vollkorn-Regular.ttf', hash 
'vollkorn-regular'
fonts   > otf loading > loading failed due to read error
fonts   > defining > forced type 'ttf' of 'Vollkorn-Regular' not found
fonts   > defining > font with asked name 'Vollkorn-Regular' is not 
found using lookup 'name'
fonts   > defining > unknown font 'Vollkorn-Regular', loading aborted

This is on Mac OSX.   I don't recall this problem coming up before.  Evidently 
the difficulty is that it is expecting an otf font and is confounded by the 
truetype file.   

The ConTeXt font system always bewilders me, but this time it's pretty 
specific.  Help?




___
If your question is of interest to others as well, please add an 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] [External] special case of hskip...?

2021-09-28 Thread Rogers, Michael K via ntg-context
Can you stick "\phantom{Introduction:}"  in front of “DIsability”?

Michael

> On Sep 28, 2021, at 11:08 PM, jbf via ntg-context  wrote:
> 
> In just one instance I would like the following to work differently:
> 
> \startchapter[title={Introduction\\Disability and 
> marginalisation},list={Introduction:\crlf Disability and marginalisation}].
> 
> That gives me:
> 
> Introduction:
> Disability and marginalisation
> 
> But I would like to have:
> 
> Introduction:
> Disability and marginalisation
> 
> Is there some way I can provide a space (whose amount I can determine 
> specifically) after the \crlf in list={}? Effectively I am trying to provide 
> a space at the beginning of a line, and I know I can't use \indentation or 
> similar here.
> 
> I may have to do it back at the preamble level by setting up a different kind 
> of \setuphead, but I was hoping that in just this one case I could do it 
> inside the existing setup.
> 
> Julian
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ntg.nl%2Fmailman%2Flistinfo%2Fntg-contextdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=H8fboaArho8j7xXLUKeE0DVLRdFrUpqU6bVD3xiC1KA%3Dreserved=0
> webpage  : 
> https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pragma-ade.nl%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=i2QT5FCZ3W9Het59v8N7gHdWZR%2BEQFBSskz10uep71Q%3Dreserved=0
>  / 
> https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aanhet.net%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=w6LxBKRsOc7MyBCYT6AvoePEgs6EbC8Uhdlj08nO6Gw%3Dreserved=0
> archive  : 
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fphg%2Fcontext-mirror%2Fcommits%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294896440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=vOPJYlZeb0xh9Empn6375r7roMzB%2F3u%2B9nUWz24ISaQ%3Dreserved=0
> wiki : 
> https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontextgarden.net%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294896440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=yE%2BbqpTLsZoGPWJPzddhBCZ803EhbUDuKwSAKSFdv80%3Dreserved=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
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
Thanks for the suggestion.

I've already tried columnsets. With or without grid=yes, with or without a
columnspan, using columnsets produces the following log even though the
table fits on one page.

pages   > flushing realpage 1, userpage 1, subpage 1
pages   > flushing realpage 2, userpage 2, subpage 2
pages   > flushing realpage 3, userpage 3, subpage 3
pages   > flushing realpage 4, userpage 4, subpage 4
pages   > flushing realpage 5, userpage 5, subpage 5
pages   > flushing realpage 6, userpage 6, subpage 6
pages   > flushing realpage 7, userpage 7, subpage 7
pages   > flushing realpage 8, userpage 8, subpage 8
pages   > flushing realpage 9, userpage 9, subpage 9
pages   > flushing realpage 10, userpage 10, subpage 10
pages   > flushing realpage 11, userpage 11, subpage 11
pages   > flushing realpage 12, userpage 12, subpage 12
pages   > flushing realpage 13, userpage 13, subpage 13
pages   > flushing realpage 14, userpage 14, subpage 14
pages   > flushing realpage 15, userpage 15, subpage 15
pages   > flushing realpage 16, userpage 16, subpage 16
pages   > flushing realpage 17, userpage 17, subpage 17
pages   > flushing realpage 18, userpage 18, subpage 18
pages   > flushing realpage 19, userpage 19, subpage 19
pages   > flushing realpage 20, userpage 20, subpage 20
pages   > flushing realpage 21, userpage 21, subpage 21
...

I stopped counting at 200,

Cheers,

Michael




On Thu, Jul 22, 2021 at 1:14 PM Henning Hraban Ramm  wrote:

> columnsets need \setuplayout[grid=yes] – did you check that?
>
> HR
>
> > Am 22.07.2021 um 12:42 schrieb Michael Guravage :
> >
> > No, I'm afraid not. I have been combining the various table and column
> environments, all without success - yet.
> >
> > Michael
> >
> >
> >
> > On Thu, Jul 22, 2021 at 12:01 PM Henning Hraban Ramm 
> wrote:
> > Hi Michael,
> >
> > you could try columnsets and use a columnsetspan for the text above the
> columns.
> >
> > I don’t know if tables work well within a columnset, though.
> >
> > Hraban
> >
> >
> > > Am 22.07.2021 um 11:52 schrieb Michael Guravage <
> gurav...@literatesolutions.com>:
> > >
> > > I have created a table and placed it inside a columns environment;
> which works as advertised. However, if I place any text before the column
> environment, the columns break. More clearly stated, only one column
> appears on the first table page; whereas two columns resume on subsequent
> pages. I have attached a mwe where you can use --mode=title to invoke the
> broken columns.
> > >
> > > Any advice on how to place text above the columns environment would be
> gratefully received.
> > >
> > > With kind regards,
> > >
> > > Michael
> > >
> > >
> ___
> > > If your question is of interest to others as well, please add an 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] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
No, I'm afraid not. I have been combining the various table and column
environments, all without success - yet.

Michael



On Thu, Jul 22, 2021 at 12:01 PM Henning Hraban Ramm  wrote:

> Hi Michael,
>
> you could try columnsets and use a columnsetspan for the text above the
> columns.
>
> I don’t know if tables work well within a columnset, though.
>
> Hraban
>
>
> > Am 22.07.2021 um 11:52 schrieb Michael Guravage <
> gurav...@literatesolutions.com>:
> >
> > I have created a table and placed it inside a columns environment; which
> works as advertised. However, if I place any text before the column
> environment, the columns break. More clearly stated, only one column
> appears on the first table page; whereas two columns resume on subsequent
> pages. I have attached a mwe where you can use --mode=title to invoke the
> broken columns.
> >
> > Any advice on how to place text above the columns environment would be
> gratefully received.
> >
> > With kind regards,
> >
> > Michael
> >
> >
> ___
> > If your question is of interest to others as well, please add an 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
___


[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
I have created a table and placed it inside a columns environment; which
works as advertised. However, if I place any text before the column
environment, the columns break. More clearly stated, only one column
appears on the first table page; whereas two columns resume on subsequent
pages. I have attached a mwe where you can use --mode=title to invoke the
broken columns.

Any advice on how to place text above the columns environment would be
gratefully received.

With kind regards,

Michael
\startsetups[tablesettings]
  \setupTABLE[c][1][style=\tfc, color=darkred, align=left]
  \setupTABLE[c][2][width=3cm, align=middle]
  \setupTABLE[c][each][frame=off]
\stopsetups

\switchtobodyfont[10pt]

\starttext
  \doifmode{title}{\title{Rooster}}

  \startcolumns[n=2]
\bTABLE[split=yes, setups=tablesettings]
\dorecurse{75}{\bTR \bTD 25 \eTD \bTD aug, wo \eTD \bTD Lecture \eTD \eTR}
\eTABLE
  \stopcolumns
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Calculating Best Box Width?

2021-06-09 Thread Michael Urban
I am not especially facile with ConTeXt, and it has been years since I did 
anything complex with TeX, so I am hoping someone could help me with this.  The 
following is probably not great code, but it shows what I am trying to do.
The problems are twofold: a benign problem is that I get underfull hbox errors 
(\dontcomplain notwithstanding).  But the other problem is that with text of a 
certain size, the final line is much shorter than the others.  Is there some 
clever way to repeatedly typeset the text (e.g., put it in an hbox, measure the 
width, and repeatedly try .5, .333, .25 of the hbox width until it fits in the 
allocated space)?  How to go about this?



\defineblank[EpigraphDistance][3pt]

\definestartstop[EpigraphText][
   style=\ssa,
   before={\blank[EpigraphDistance]
  \setupnarrower[left=.25\textwidth,right=0pt]
  \startnarrower[left,right]
  \setupalign[flushright,nothyphenated,broad]
  \dontcomplain
  \noindent},
   after={\stopalignment\stopnarrower
  \blank[EpigraphDistance]
  \indenting[next]}]


\long\def\epigraph#1#2#3{%
 \startEpigraphText #1 \par \stopEpigraphText
 \ifx\hfuzz#3\hfuzz
  \rightaligned{\ssa\sl --- #2}
 \else
  \rightaligned{\ssa\sl --- #2, \tf\ssa\symbol[leftquote]#3\symbol[rightquote]}
 \fi
}

\starttext
Testing epigraph

\epigraph{% para
\quotation{My birthday-present!} he whispered to himself, as he had often done
in the endless dark days. \quotation{That's what we\unknown}
}{J.R.R. Tolkien}{The Hobbit}

That was an epigraph.

\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] quotes potruding out in the left margin

2021-06-05 Thread Michael Guravage
If you were to add a start-stopquotation block to Wolfgang's example, you'd
see that the resulting paragraph has lost its narrowness. Is there a way to
allow quotes to protrude into the left margin while preserving the
narrowness of start-stopquotation blocks? My own solution is not to
\setupquotation[method=font] but to define a delimited text environment
whose method=font, and use it when a paragraph begins with a quotation.

I have attached my own mwe. You can toggle the \setquotation command with
--mode=font.

Does anyone have a more elegant, or better yet, a correct solution?

With kind regards,

Michael



On Sat, Jun 5, 2021 at 7:36 AM Sandra Snan 
wrote:

> Thank you both for your help. Additionally, I needed to make sure that
> \setupbodyfont comes after all this. But now I've finally got the
> margin-potruding quotations of my dreams.
>
>  writes:
>
> >> -Ursprüngliche Nachricht-
> >> Von: ntg-context  Im Auftrag von Wolfgang
> >> Schuster
> >> Gesendet: Freitag, 4. Juni 2021 10:08
> >> An: mailing list for ConTeXt users 
> >> Betreff: Re: [NTG-context] quotes potruding out in the left margin
> >>
> >> Sandra Snan schrieb am 04.06.2021 um 09:52:
> >> > Oh, the example you just posted doesn't work on live.contextgarden,
> >> > let alone on my installation. The quotation marks still don't potrude.
> >>
> >> I tested my example on the garden and got the expected output with the
> >> quotation marks in the margin (only partially but this is normal with
> the
> >> quality setting).
> >>
> >
> > I can confirm that this works. As Wolfgang notes protrusion is only
> partial with the default settings, but you can tweak it with
> \setupfontprotrusion (see below).
> > \setupfontprotrusion [quality] [left=2] is probably what you want since
> this puts the complete quotation mark into the margin.
> >
> > I don't know what the numbers mean. Maybe someone can add to this.
> >
> > Denis
> >
> > 
> > %\setupfontprotrusion [quality] [left=0] % no protrusion on the left
> margin
> > \setupfontprotrusion [quality] [left=1] % default
> > %\setupfontprotrusion [quality] [left=1.5] % more protrustion
> > %\setupfontprotrusion [quality] [left=2] % even more protrustion
> > %\setupfontprotrusion [quality] [left=2.5] % too much protrusion
> >
> > \definefontfeature
> >   [default]
> >   [default]
> >   [protrusion=quality,
> >expansion=quality]
> >
> > \setupquotation
> >   [method=font]
> >
> > \setupalign
> >   [hz,hanging]
> >
> > \showframe
> >   [text]
> >   [text]
> >
> > \starttext
> >
> > oh hi there
> >
> > “you are so”
> >
> > \quotation{you are so}
> >
> > here here
> >
> > \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
> >
> ___
>
> ___
> If your question is of interest to others as well, please add an 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
>
> ___
>
\showgrid
\showframe[text][text]

\setupwhitespace[medium]
\setuplayout[grid=yes]

\definefontfeature
  [default]
  [default]
  [protrusion=quality,
   expansion=quality]
\setupalign[hz,hanging]

% Definition inherits, followed by setting up
\definedelimitedtext[parquote][quotation]
\setupdelimitedtext[parquote][method=font]
\def\parquotation#1{\startparquote{#1}\stopparquote}

% Provide protrusion for quotations.
\startmode[font]
  \setupquotation[method=font] % Toggle this line to see the effect.
\stopmode

\starttext
  \quotation{Love makes the world go round,}as an old proverb has it\ldots

  “Love makes the world go round,” as an old proverb has it\ldots

  \parquotation{Love makes the world go round,} as an old proverb has it\ldots

  \startquotation
\input tufte
  \stopquotation

\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] LMTX and my custom typescripts

2021-05-28 Thread Michael Guravage
A pox upon me for a clumsy lout!


On Fri, May 28, 2021 at 6:54 PM Thomas A. Schmitz <
thomas.schm...@uni-bonn.de> wrote:

>
> > On 28. May 2021, at 18:40, Michael Guravage <
> gurav...@literatesolutions.com> wrote:
> >
> > Any encouragement in how to resolve this would be much appreciated.
> >
>
> Hi Michael,
>
> Try renaming it to type-imp-DollyPro.tex (and then of course
> \usetypescriptfile[type-imp-DollyPro]), that should help. This changed a
> couple of months ago and was announced on the list, so shame on you for not
> following our discussions religiously…
>
> Best
>
> Thomas
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] LMTX and my custom typescripts

2021-05-28 Thread Michael Guravage
Yesterday I installed a new LMTX instance *ex nihilo*. Unfortunately, the
new instance will not load my typescripts. My several commercial fonts and
the typescripts I wrote for them reside in the texmf-project tree, along
with a style file that loads them. I load the style file in my source files
with the \environment command.

The files in texmf-project are properly indexed. I know this, because the
style file's name appears in the log, because I can list the fonts with mtxrun
--script fonts --list --files --all --pattern=Dolly*, and because he style
file evokes \showframe and \showgrid; the result of which I see in the
typeset results.

Regardless of whether a typescript files, e.g. type-DollyPro.tex, is in the
texmf-tree or in the same directory as the ConTeXt source file, evoking
\usetypescriptfile[type-DollyPro] fails. The log says:

fonts   > typescripts > unknown library 'DollyPro'
fonts   > typescripts > unknown library 'DollyPro'

However, including the typescripts in the ConTeXt source file succeeds;
which would seem to imply that my typescript definitions are correct.

Using an old instance: LMTX LuaTeX 2.03 20191227 + ConTeXt MkIV 2019.12.27
19:26, loading the typescript via the style file works as expected.

I regret that my mwe remains academic, since you need the Dolly font to run
it.

Any encouragement in how to resolve this would be much appreciated.

Cheers,

Michael

% \starttypescript [serif] [DollyPro]
%   \definefontsynonym [Regular]   [file:DollyPro-Regular.otf]
%   \definefontsynonym [Bold]  [file:DollyPro-Bold.otf]
%   \definefontsynonym [Italic][file:DollyPro-RegularItalic.otf]
%   \definefontsynonym [SmallCaps] [file:DollyPro-RegularSmallCaps.otf]
% \stoptypescript

% \starttypescript [serif] [DollyPro]
%   \setups[font:fallback:serif]
%   \definefontsynonym [Serif]   [Regular]   [features=default]
%   \definefontsynonym [SerifBold]   [Bold]  [features=default]
%   \definefontsynonym [SerifItalic] [Italic][features=default]
%   \definefontsynonym [SerifCaps]   [SmallCaps] [features=default]
% \stoptypescript

% \definefontfeature
%   [hz] [default]
%   [protrusion=quality, expansion=quality, mode=node, script=latn]

% \starttypescript[DollyPro]
%   \definetypeface [DollyPro] [rm] [serif] [DollyPro] [default] [features=hz]
% \stoptypescript

\usetypescriptfile[type-DollyPro]
\setupbodyfont[DollyPro]

\starttext
  \input tufte
\stoptext% Regular

\starttypescript [serif] [DollyPro]
  \definefontsynonym [Regular]   [file:DollyPro-Regular.otf]
  \definefontsynonym [Bold]  [file:DollyPro-Bold.otf]
  \definefontsynonym [Italic][file:DollyPro-RegularItalic.otf]
  \definefontsynonym [SmallCaps] [file:DollyPro-RegularSmallCaps.otf]
\stoptypescript

\starttypescript [serif] [DollyPro]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [Regular]   [features=default]
  \definefontsynonym [SerifBold]   [Bold]  [features=default]
  \definefontsynonym [SerifItalic] [Italic][features=default]
  \definefontsynonym [SerifCaps]   [SmallCaps] [features=default]
\stoptypescript

\definefontfeature
  [hz] [default]
  [protrusion=quality, expansion=quality, mode=node, script=latn]

\starttypescript[DollyPro]
  \definetypeface [DollyPro] [rm] [serif] [DollyPro] [default] [features=hz]
\stoptypescript

% finis
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
system  > 
system  > ConTeXt  ver: 2021.05.27 14:15 LMTX  fmt: 2021.5.28  int: english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname 'mwe', input './mwe', result 'mwe'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './mwe.tex'
fonts   > typescripts > unknown library 'DollyPro'
fonts   > typescripts > unknown library 'DollyPro'
fonts   > preloading latin modern fonts (third stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 2, order 3, name 'tufte.tex'
close source> level 2, order 3, name 'tufte.tex'
backend > xmp > using file '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 1, order 3, name './mwe.tex'
system  > start used files
system  > text: mwe
system  > stop used files
system  > start used files
system  >1: filename=char-prv.lua filetype=tex format=tex foundname=/opt/_lmtx_/tex/texmf-contex

[NTG-context] Protruding quotation marks obviate narrowed quotations

2020-12-30 Thread Michael Guravage
Several months ago I posed the following question.

When I start a paragraph with a \quote or a \quotation the left quotemark
does not protrude, but when I use Unicode quotes it does. I would prefer to
use the commands. Any suggestions on how I can achieve proper left
protrusion without resorting to Unicode characters?

Wolfgang suggested the following lines of code; which worked perfically.

\setupquotation [method=font]
\setupquote [method=font]

Returning to this project after several months I observe that when I use a
\start- stopquotation environment, the quotation is not narrowed. The
\setupquotation command obviously affects both the \quotation command and
\start- stopquotation environment.

Is there an elegant way to apply the \setupquotation command and retain the
quotation indentation?

Cheers,
Michael

Here's a mwe.

\showframe
\showgrid
\setupwhitespace[medium]

% Setup hanging punctuation, less severe style
\definefontfeature
  [default]
  [default]
  [protrusion=punctuation,expansion=quality]
\setupalign[hz,hanging]

% Provide protrusion for quotations.
\setupquotation[method=font] % Toggle this line to see the effect.
\setupquote[method=font]

\starttext
  \startparagraph
\quotation[method=font]{Love makes the world go round,} as an old
proverb has it\ldots
  \stopparagraph
  \startquotation
\input tufte
  \stopquotation
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Quote mark missing from first paragraph in quotation when location=text

2020-12-06 Thread Michael Murphy
Hi,

I have some long dialogue that I'm trying to typeset and I want to use the
convention of repeating the open quotation mark on each paragraph of
continued dialogue. I know I can set this up by doing something like

\setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote]

This works well, except in cases where the dialog starts in the middle of a
paragraph. By default \startquotation starts a new paragraph. I think the
way to suppress that is to set location=text, but when I try that I get the
odd effect that the first paragraph doesn't get quotes but the following
ones do. Minimal example below.

\setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote,
location=text]
\starttext
Some text that's not part of the quotation.
\startquotation
\input knuth
\stopquotation
\stoptext

I’m on LMTX 2.08.04, Context version 2020.12.04 20:22

Any ideas?

Michael
___
If your question is of interest to others as well, please add an 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] OK, I Don't Quite Understand \definefontfamily

2020-09-29 Thread Michael Urban

OK, that worked.  Thank you for your help.
___
If your question is of interest to others as well, please add an 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] OK, I Don't Quite Understand \definefontfamily

2020-09-28 Thread Michael Urban


> On Sep 28, 2020, at 12:39 PM, Wolfgang Schuster 
>  wrote:
> 
> Michael Urban schrieb am 25.09.2020 um 21:12:
>> I don't seem quite able to put it all together, forgive the question.
>> I have a 'Bookman' font setup, pretty vanilla:
>> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
>> \definetypeface [Bookman] [tt] [mono]  [modern] [default]
>> \definetypeface [Bookman] [ss] [sans] [unitus] [default]
>> \definetypeface [Bookman] [mm] [math] [modern] [default]
>> (Unitus is the fontsite 500 'Univers' substitute, works fine)
>> Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so 
>> if I have Bookman as my main body
>> font, \sl  produces (unsurprisingly) the same result as \it, 
>> TexGyreBonum-Italic.   If I want \sl to summon
>> Latin Modern for the variant, I have tried variations on
>> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman 
>> Slanted]
>> but to no avail — not helped by the fact that the \definetypeface 
>> contextgarden page doesn't have any pointer to just what that fifth
>> argument can contain.
> 
> https://wiki.contextgarden.net/Command/definetypeface
> 
>> How do I accomplish this?
> 
> Use \definefontfamily which is missing in your example.
> 
> \definefontfamily [Bookman] [rm] [TeX Gyre Bonum]
>  [sl=features:{*,slanted},
>   bs=features:{*,slanted}]
> 
> \definetypeface [Bookman] [mm] [math] [modern] [default]
> 
> \setupbodyfont [Bookman]
> 
> \starttext
> \tf upright \it italic \sl slanted \bf bold \bi bolditalic \bs boldslanted
> \stoptext
> 
> Wolfgang

Except that this does not work, because, as I said, the Gyre Bonum font has no 
builtin slanted version.  So, I want to use some other font (like Latin Modern) 
for a substitute for \sl .

___
If your question is of interest to others as well, please add an 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] OK, I Don't Quite Understand \definefontfamily

2020-09-25 Thread Michael Urban


> On Sep 25, 2020, at 12:12 PM, Michael Urban  wrote:
> 
> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]

Oops, this was one of my bad attempts.   the fifth argument is actually omitted 
in the normally working version.

___
If your question is of interest to others as well, please add an 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] OK, I Don't Quite Understand \definefontfamily

2020-09-25 Thread Michael Urban
I don't seem quite able to put it all together, forgive the question.

I have a 'Bookman' font setup, pretty vanilla:

\definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
\definetypeface [Bookman] [tt] [mono]  [modern] [default]
\definetypeface [Bookman] [ss] [sans] [unitus] [default]
\definetypeface [Bookman] [mm] [math] [modern] [default]

(Unitus is the fontsite 500 'Univers' substitute, works fine)

Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if 
I have Bookman as my main body
font, \sl  produces (unsurprisingly) the same result as \it, 
TexGyreBonum-Italic.   If I want \sl to summon
Latin Modern for the variant, I have tried variations on

\definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman 
Slanted]


but to no avail — not helped by the fact that the \definetypeface contextgarden 
page doesn't have any pointer to just what that fifth
argument can contain.


How do I accomplish this?



___
If your question is of interest to others as well, please add an 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] left protruding quotations

2020-05-14 Thread Michael Guravage
When I start a paragraph with a \quote or a \quotation the left quotemark
does not protrude, but when I use Unicode quotes it does. I would prefer to
use the commands. Any suggestions on how I can achieve proper left
protrusion without resorting to Unicode characters?

Cheers,

Michael
% Setup hanging punctuation, less severe style
\definefontfeature
  [default]
  [default]
  %%[protrusion=quality,expansion=quality]
  [protrusion=punctuation,expansion=quality]

\setupalign[hz,hanging]

% Setup white space between paragraphs
\setupwhitespace[medium]

% Choose a font
\setupbodyfont[pagella,11pt]
\setupbodyfontenvironment[default][em=italic]

\showframe

\starttext
  
  \input tufte

  \quotation{We thrive in information||thick worlds} because of our
  marvelous and everyday capacity to select, edit, single out,
  structure, highlight, group, pair, merge, harmonize, synthesize,
  focus, organize, condense, reduce, boil down, choose, categorize,
  catalog, classify, list, abstract, scan, look into, idealize,
  isolate, discriminate, distinguish, screen, pigeonhole, pick over,
  sort, integrate, blend, inspect, filter, lump, skip, smooth, chunk,
  average, approximate, cluster, aggregate, outline, summarize,
  itemize, review, dip into, flip through, browse, glance into, leaf
  through, skim, refine, enumerate, glean, synopsize, winnow the wheat
  from the chaff and separate the sheep from the goats.

  “We thrive in information||thick worlds” because of our marvelous
  and everyday capacity to select, edit, single out, structure,
  highlight, group, pair, merge, harmonize, synthesize, focus,
  organize, condense, reduce, boil down, choose, categorize, catalog,
  classify, list, abstract, scan, look into, idealize, isolate,
  discriminate, distinguish, screen, pigeonhole, pick over, sort,
  integrate, blend, inspect, filter, lump, skip, smooth, chunk,
  average, approximate, cluster, aggregate, outline, summarize,
  itemize, review, dip into, flip through, browse, glance into, leaf
  through, skim, refine, enumerate, glean, synopsize, winnow the wheat
  from the chaff and separate the sheep from the goats.

\stoptext

hangit.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] \startquotation and citations

2020-03-26 Thread Michael Guravage
Thank you Wolfgang,

Now is there a way to persuade the quotation marks to protrude?

Cheers,

Michael



\startsetups[userdata:extendedquotation]
   \startnarrow[]
 “\getinlineuserdata”\userdataparameter{source}
   \stopnarrow
\stopsetups

\defineuserdataalternative
   [extendedquotation]
   [renderingsetup=userdata:extendedquotation]

\defineuserdata
   [extendedquotation]
   [alternative=extendedquotation,
before=\blank,
after=\blank]

\starttext

\input tufte \blank

\startquotation  %% Quotation marks protrude
  \input tufte
\stopquotation

\startuserdata[extendedquotation][source=\footnote{See Tufte …}]  %%
Quotation marks do not protrude
  \input tufte
\stopuserdata

\stoptext



On Thu, Mar 26, 2020 at 2:56 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Michael Guravage schrieb am 26.03.2020 um 14:29:
> > Greetings,
> >
> > I would like to add a citation to a block quotation. Wolfgang proposed a
> > solution
> > <https://www.mail-archive.com/ntg-context@ntg.nl/msg55956.html>back in
> > May 2011. With \star-stopquotation, the left quotation mark protrudes to
> > the left of the text. With Wolfgang's solution, the quotation marks are
> > aligned with the text. For consistency's sake, I need cited and
> > non-cited quotations to appear alike.
> >
> > A lot has changed in the last nine years. Is there a newer way to
> > achieve this behavior?
>
> You can use the userdata environment to create a custom environment with
> optional arguments.
>
> \startsetups[userdata:extendedquotation]
>\startnarrow[middle=4em]
>“\getinlineuserdata”\userdataparameter{source}
>\stopnarrow
> \stopsetups
>
> \defineuserdataalternative
>[extendedquotation]
>[renderingsetup=userdata:extendedquotation]
>
> \defineuserdata
>[extendedquotation]
>[alternative=extendedquotation,
> before=\blank,
> after=\blank]
>
> \starttext
>
> \input tufte
>
> \startuserdata[extendedquotation][source=\footnote{See Tufte …}]
> \input tufte
> \stopuserdata
>
> \input 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
>
> ___
>


user.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] \startquotation and citations

2020-03-26 Thread Michael Guravage
Greetings,

I would like to add a citation to a block quotation. Wolfgang proposed a
solution <https://www.mail-archive.com/ntg-context@ntg.nl/msg55956.html>back
in May 2011. With \star-stopquotation, the left quotation mark protrudes to
the left of the text. With Wolfgang's solution, the quotation marks are
aligned with the text. For consistency's sake, I need cited and non-cited
quotations to appear alike.

A lot has changed in the last nine years. Is there a newer way to
achieve this behavior?

Cheers,

Michael
___
If your question is of interest to others as well, please add an 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] Command completion in TeXShop

2019-09-19 Thread Rogers, Michael K
I was looking into command completion in TeXShop (MacOS) and came across this 
two-year-old call for help by one of the developers (I assume) for implementing 
it for ConTeXt:

http://macosx-tex.576846.n2.nabble.com/TeXShop-Command-Completion-ConTeXt-td7586673.html

As far as I found, command completion for ConTeXt has not yet been implemented. 
I’m pointing this out in case someone has sufficient knowledge of ConTeXt and 
is interested. Alternatively, perhaps it has been done, and someone can point 
me in the right direction.

Thanks,

Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] typo in metafun manual

2019-09-10 Thread Michael Hallgren

Le 2019-09-10 07:36, Damien Thiriet a écrit :

Hi,


There may be a typo in metafun manual, page 104

Hopefully the next explains a bit how it works (you can find
explanations zon the internet).

Sounds too Dutch for me…


Looks like :). And 'the Internet' usually uppercase.

mh


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
___


___
If your question is of interest to others as well, please add an 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] [External] Re: Math \not

2019-09-07 Thread Rogers, Michael K
Thanks! I should have tried that.  -mkr

> On Sep 7, 2019, at 12:59 PM, Otared Kavian  wrote:
> 
> Hi you should use \nequiv as in
> 
> \starttext
> Let $f \nequiv 0$ be a function
> \stoptext
> 
> Best regards: OK
> 
>> On 7 Sep 2019, at 18:35, Rogers, Michael K  wrote:
>> 
>> In plain TeX you can get a slash through $\equiv$ with $\not\equiv$.  When I 
>> do the same in ConTeXt, the slash next to the $\equiv$.  Is there a way to 
>> get a not-equivalent sign in ConTeXt?
>> 
>> Thanks,
>> 
>> - Michael
>> 
>> \starttext
>> $\not\equiv$
>> \stoptext
>> 
>> 
>> 
>> 
>> This e-mail message (including any attachments) is for the sole use of
>> the intended recipient(s) and may contain confidential and privileged
>> information. If the reader of this message is not the intended
>> recipient, you are hereby notified that any dissemination, distribution
>> or copying of this message (including any attachments) is strictly
>> prohibited.
>> 
>> If you have received this message in error, please contact
>> the sender by reply e-mail message and destroy all copies of the
>> original message (including attachments).
>> ___
>> If your question is of interest to others as well, please add an 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
___


[NTG-context] Math \not

2019-09-07 Thread Rogers, Michael K
In plain TeX you can get a slash through $\equiv$ with $\not\equiv$.  When I do 
the same in ConTeXt, the slash next to the $\equiv$.  Is there a way to get a 
not-equivalent sign in ConTeXt?

Thanks,

- Michael

\starttext
$\not\equiv$
\stoptext




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] contextbeta moved or server down? SOLVED

2018-09-10 Thread Michael Hallgren
Usually port 22, since rsync is usually run in ssh when between distant hosts.

Cheers,
mh

Le 8 sept. 2018 à 15:19, à 15:19, Hans van der Meer  a écrit:
>I am not inclined to react so strongly. In general I am happy when the
>ISP provides its customers with default save settings. It is best for
>most people, I think.
>
>Perhaps the rsync port 873 should have been opened by default in the
>firewall, because I suspect more and more people will use it to backup
>their data over the internet.
>
>But in general I can live with changing the modem settings temporarily,
>because I am updating the ConText minimals infrequently only.
>
>> On 8 Sep 2018, at 14:34, juh  wrote:
>>
>> Hi Hans,
>>
>> I think that this is a scandal, as it is nothing else but censorship
>by
>> your ISP.
>>
>> I am a member of a cooperative hoster in Germany (Hostsharing) and
>> Telekom, the biggest German ISP, blocked our mail servers for years
>in their
>> routers they bundle with internet access services.
>>
>> We had to complain at the Netzagentur a state agency which has to
>> guarantee net neutrality in Germany – we were successful.
>>
>>
>https://www.hostsharing.net/blog/2018/06/24/telekom-speedport-mailblockade-verfa
>> hren-beendet/
>>
>> Maybe the context community should complain somewhere about this.
>>
>> juh
>>
>> --
>> Autoren-Homepage: . http://literatur.hasecke.com
>> Satiren & Essays: . http://www.sudelbuch.de
>> Privater Blog:  http://www.hasecke.eu
>> Netzliteratur-Projekt:  http://www.generationenprojekt.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
>>
>___
>
>dr. Hans van der Meer
>
>
>
>
>
>
>___
>If your question is of interest to others as well, please add an 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] How to enable Ligatures

2018-08-23 Thread Michael Zhu
Hi all,

Fira Code is Monospaced font with programming ligatures. I don't know
how to enable ligatures feature.

I hope someone can give me an example.

https://github.com/tonsky/FiraCode

Michael
___
If your question is of interest to others as well, please add an 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] Loading units fails

2018-04-24 Thread Michael Guravage
Dear list members,

I do not know when this problem first appeared, I have not used the units
package for a while, but merely invoking the package with the latest beta
provokes an error.

MWE:

\usemodule[units]
  \starttext
help
  \stoptext

The attached log says there is a problem on line 42 of m-units.mkiv.

Any help would be appreciated.

-- 
With kind regards,

Michael Guravage
open source > level 1, order 1, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2018.04.19 15:53 MKIV beta  fmt: 2018.4.24  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'testing', input './testing', result 'testing'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/tmp/testing.tex'
modules > 'units' is loaded
open source > level 3, order 4, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv'

tex error   > tex error on line 42 in file /opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv: ! Undefined control sequence

 title: units
 1: use \string \Degrees \space \string \Celsius \space instead of 
\mult_messages_start_yes ...erfacemessages {#1}{#2
  }\egroup 
l.42 \stopmessages


32 %D an upward compatibility issue.
33 
34 \startmessages  dutch  library: units
35   title: eenheden
36   1: gebruik \string\Degrees\space\string\Celsius\space in plaats van \string\Celsius !
37 \stopmessages
38 
39 \startmessages  english  library: units
40   title: units
41   1: use \string\Degrees\space\string\Celsius\space instead of \string\Celsius !
42 >>  \stopmessages
43 
44 \startmessages  german  library: units
45   title: Einheiten
46   1: Verwende \string\Degrees\space\string\Celsius\space statt \string\Celsius !
47 \stopmessages
48 
49 \startmessages  italian  library: units
50   title: unita
51   1: usare \string\Degrees\space\string\Celsius\space invece di \string\Celsius !
52 \stopmessages


? x

system  > start used files

system  > text: testing

system  > stop used files


system  > start used files

system  >1: filename=char-prv.lua filetype=tex format=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system  >2: filename=cont-yes.mkiv filetype=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system  >3: filename=publ-imp-default.lua filetype=scripts foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system  >4: filename=cont-new.mkiv filetype=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system  >5: filename=lang-exc.lua filetype=scripts foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system  >6: filename=lang-us.lua filetype=scripts foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system  >7: filename=/tmp/testing.tex foundname=/tmp/testing.tex fullname=/tmp/testing.tex usedmethod=direct
system  >8: filename=m-units.mkiv filetype=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv usedmethod=database

system  > stop used files


system  > start commandline options

system  > currentrun="1"
system  > fulljobname="./testing.tex"
system  > input="./testing.tex"
system  > kindofrun="1"
system  > maxnofruns="9"
system  > 

Re: [NTG-context] \pmatrix changed?

2018-02-16 Thread Rogers, Michael K
Thank you very much, Hans.

On Feb 16, 2018, at 10:52 AM, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 2/16/2018 3:16 PM, Rogers, Michael K wrote:

This sort of thing worked a year ago and two years ago (sorry, not sure of the 
versions now):

because it's too fragile for general use (xml etc) you now have to explicitly 
enable it:

\setupmathematics[ampersand=normal]
%%
\starttext
\startformula
A = \pmatrix{
 0.006525 \hfill& 0.006331 \hfill& 0.006828 \hfill\cr
 1.006\hfill& 0.009352 \hfill& 1.010 \hfill\cr
 0.002385 \hfill& 0.006376 \hfill& 1.001 \hfill\cr
}
\stopformula
\stoptext
%%
Now the ampersands are not treated as alignment characters, but as ordinary 
characters in the version
system  > ConTeXt  ver: 2018.01.24 10:47 MKIV beta  fmt: 2018.2.6  int: 
english/english
There is a similar sort of behavior with \cases:
%%
\starttext
$\cases{x & if $x>0$ \cr y  $x>0$ \cr}$
\stoptext
%%
Is there an easy fix? I'd like not to have to edit old files.
Thanks,
Michael

--

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




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] \pmatrix changed?

2018-02-16 Thread Rogers, Michael K
Hi,

This sort of thing worked a year ago and two years ago (sorry, not sure of the 
versions now):

%%
\starttext
\startformula
A = \pmatrix{
 0.006525 \hfill& 0.006331 \hfill& 0.006828 \hfill\cr
 1.006\hfill& 0.009352 \hfill& 1.010 \hfill\cr
 0.002385 \hfill& 0.006376 \hfill& 1.001 \hfill\cr
}
\stopformula
\stoptext
%%

Now the ampersands are not treated as alignment characters, but as ordinary 
characters in the version

system  > ConTeXt  ver: 2018.01.24 10:47 MKIV beta  fmt: 2018.2.6  int: 
english/english

There is a similar sort of behavior with \cases:

%%
\starttext
$\cases{x & if $x>0$ \cr y  $x>0$ \cr}$
\stoptext
%%

Is there an easy fix? I'd like not to have to edit old files.

Thanks,

Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] Repeating Headers for Tabulate not Working

2017-12-22 Thread Michael Guravage
Though this issue has appeared periodically over the years, this minimal
example still does not work. Compiled with ConTeXt version: 2017.12.20
10:48.

Any suggestions?

Cheers,

Michael


\starttext
\setuptabulate[split=yes,header=repeat]

\starttabulatehead
  \HL
  \NC {\bf format char} \NC {\bf meaning} \NC \AR
  \HL
\stoptabulatehead

\starttabulate[|r|l|]
\dorecurse{50}
{\NC c \NC centered  \NC \AR
\NC l \NC left aligned  \NC \AR
\NC r \NC right aligned \NC \AR}
\stoptabulate

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

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

[NTG-context] Repeating Headers for Tabulate not Working

2017-12-22 Thread Michael Guravage
Though this issue has appeared periodically over the years, this minimal
example still does not work. Compiled with ConTeXt version: 2017.12.20
10:48.

Any constructive suggestions?

\starttext
\setuptabulate[split=yes,header=repeat]

\starttabulatehead
  \HL
  \NC {\bf format char} \NC {\bf meaning} \NC \AR
  \HL
\stoptabulatehead

\starttabulate[|r|l|]
\dorecurse{50}
{\NC c \NC centered  \NC \AR
\NC l \NC left aligned  \NC \AR
\NC r \NC right aligned \NC \AR}
\stoptabulate

\stoptext

Cheers,

Michael
___
If your question is of interest to others as well, please add an 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] \cite not working with notes in xtables

2017-12-05 Thread Michael Eidenbenz
Hello List,

I have this MWE that reflects my current layout where I have images in an 
xtable with captions defined as note. Both, footnotes and captions are set in 
the margin.
The Example compiles correct with just one caption in a xcell. If there are two 
(as in the MWE) the \cite command doesnt work.

Could this be a conflict on the lua side of xtables/publication framework?

The second problem of course are the footnotes that are not placed on the 
correct side. 
I thought \automigrateinserts would help here. But it doesnt.

Any hints how to solve this?

Thanks Michael


---
\useMPlibrary[dum]

\startbuffer[bib]
@article{tufte, author = {Edward Tufte} }
\stopbuffer
\definebtxdataset[bib]
\usebtxdataset [bib][bib.buffer]
\definebtxrendering[bib][dataset=bib]

\setuplayout[backspace=80mm,width=120mm]

\setupnote  [footnote]
[location={none}]

\definenote [caption]
[location={none}]

\automigrateinserts

\setuptexttexts
  [margin]
  [{{\vbox to\textheight%
{\placenotes[caption]%
 \null\vfilll%
 \placenotes[footnote]}}}]
  []

\starttext

\input tufte
  \footnote{\cite[bib::tufte]}
  \par

  \startembeddedxtable[distance=10mm]
\startxrow
  \startxcell[width=55mm]
\externalfigure[dummy][factor=fit]
\caption[dummy]{caption}
  \stopxcell
  \startxcell[width=55mm]
\externalfigure[dummy][factor=fit]
% \caption[dummy]{caption} %without this note the \cite command compiles
  \stopxcell
\stopxrow
  \stopembeddedxtable

\input tufte
  \footnote{\cite[bib::tufte]}
  \par

\placebtxrendering [bib]

\stoptext

---

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

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

[NTG-context] Modifying an existing letter style

2017-12-05 Thread Michael Guravage
I am typesetting a letter using Wolfgang's letter module. I have a
requirement that is not satisfied by any of the existing styles, namely
that the to-address, i.e. the address, and the from-address, i.e., the
header, need to start at the same height and be positioned next to one
another. I am using the modified style and am trying to adjust the layout
via he \setupletterstyle command without success.

I have look at the sources and have seen how the elements of the various
styles are stacked.  All styles use the default style, which
defines lefthead and righthead elements, but only the din styles and those
styles derived from them seem to use these elements.

Is there any way to acheive the required side-by-side layout short of
cobbling together my own style? Any helpful advice would be greatly
appreciated.
-- 
With kind regards,

Michael Guravage


letter.tex
Description: TeX 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] Tweaking an existing letter style

2017-12-05 Thread Michael Guravage
I am typesetting a letter using Wolfgang's letter module. I have a
requirement that deviates from any of the existing styles, namely that the
recipient, i.e. the address, and the sender, i.e., the header, need to
start left and right respectively and at the same height. I am using the
modified style and am trying to adjust the layout via he \setupletterstyle
command without success.

I have look at the sources and have seen how the elements of the various
styles are stacked, but I cannot discern how to achieve the side-by-side
arrangement I require.

If anyone can advise me how I can move these various layers about, I would
be very grateful.

Cheers,

Michael
___
If your question is of interest to others as well, please add an 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] sql / swiglib doesnt find lib

2017-10-02 Thread Michael Eidenbenz
ffi does look better. 
but i cant test right now, because I have no access to my dbserver.

what about swiglib method?
I compiled and installed the library but luatex doesnt find it.
is there a way to check the search path of luatex?

thanks michael


> On 02 Oct 2017, at 10:38, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 10/2/2017 10:26 AM, Michael Eidenbenz wrote:
>> this doesnt work either.
>> Do I haven't to install the luasql-mysql module?
>> ...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: module 
>> 'luasql.mysql' not found:
> 
> yes but another alternative that copuld work is installing th enormal mysql 
> libraries and then use the 'ffi' method (works on on windows and linux)
> 
> 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
> ___

___
If your question is of interest to others as well, please add an 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] sql / swiglib doesnt find lib

2017-10-02 Thread Michael Eidenbenz
this doesnt work either.
Do I haven't to install the luasql-mysql module?

...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: module 
'luasql.mysql' not found:
no field package.preload['luasql.mysql']
no file '/usr/local/share/lua/5.2/luasql/mysql.lua'
no file '/usr/local/share/lua/5.2/luasql/mysql/init.lua'
no file '/usr/local/lib/lua/5.2/luasql/mysql.lua'
no file '/usr/local/lib/lua/5.2/luasql/mysql/init.lua'
no file './luasql/mysql.lua'
no file '/usr/local/lib/lua/5.2/luasql/mysql.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './luasql/mysql.so'
no file '/usr/local/lib/lua/5.2/luasql.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './luasql.so'
stack traceback:
[C]: in function 'savedrequire'
...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: in 
function 'require'
...f-context/tex/context/base/mkiv/util-sql-imp-library.lua:74: in main 
chunk
[C]: in function 'savedrequire'
...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: in 
function 'require'
...exp/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:114: in 
function '__index'
...exp/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:288: in 
function 'execute'
[ctxlua]:19: in main chunk




> On 02 Oct 2017, at 09:29, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 10/1/2017 11:47 PM, Michael Eidenbenz wrote:
>> Hello,
>> I'm experimenting with the SQL interface in context.
>> My testfile compiles with: utilities.sql.setmethod("client"), but I don't 
>> manage to setup the swiglib method.
>> Following the instruction described in swiglib-mkiv.pdf,
>> I compiled the mysql library for osx, and put it into: 
>> context/tex/texmf-osx-64/bin/lib/luatex/lua/swiglib/mysql/core.dylib
>> But I get this error:
>> swiglib > unknown: 'swiglib.mysql.core'
>> my texmf.cnf has the line
>> CLUAINPUTS = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//
> and how about 'library' (using the normal sql library)
> 
> 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
> ___

___
If your question is of interest to others as well, please add an 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] sql / swiglib doesnt find lib

2017-10-01 Thread Michael Eidenbenz
Hello,

I'm experimenting with the SQL interface in context.
My testfile compiles with: utilities.sql.setmethod("client"), but I don't 
manage to setup the swiglib method.

Following the instruction described in swiglib-mkiv.pdf,
I compiled the mysql library for osx, and put it into: 
context/tex/texmf-osx-64/bin/lib/luatex/lua/swiglib/mysql/core.dylib

But I get this error:
swiglib > unknown: 'swiglib.mysql.core'

my texmf.cnf has the line
CLUAINPUTS = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//

Thanks!
___
If your question is of interest to others as well, please add an 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] Initials and short paragraph

2017-06-20 Thread Rogers, Michael K
Hi,

Perhaps this?:

\starttext
\placeinitial
Knuth writes:
\hfill\break
\input knuth
\stoptext

There may be a more ConTeXt-idiomatic way, in which case someone else will 
probably say.  Note that structurally the above combines "Knuth writes:" and 
the first text segment (up to the first blank line or \par) of knuth.tex into a 
single paragraph with some glue and a break between them.  You would lose any 
paragraph-formatting of the first segment of knuth.tex.  If there is any, you 
might have to do that by hand.

If you wanted to have the Knuth quote begin below the initial K, then someone 
else will have to answer.  I don't know off hand.

Cheers,

Michael

> On Jun 8, 2017, at 10:05 PM, Martin Oppegaard <martin.oppega...@gmail.com> 
> wrote:
>
> Hi,
>
> When placing an initial and the paragraph is short, the initial is laid over 
> the next paragraph. Example:
>
> \starttext
> \placeinitial
> Knuth writes:
>
> \input knuth
> \stoptext
>
> Is there anything to do about this?
>
> Regards,
> Martin Oppegaard
> ___
> If your question is of interest to others as well, please add an 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
> ___




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] bug in cldf-int.lua

2017-03-20 Thread Michael Eidenbenz
hello 

this bug shows up when using the lua function "interfaces.definecommand".

michael


cldf-int.lua


interfaces = interfaces or { }

- _clmh_ = utilities.parsers.settings_to_array
+ _clmh_ = utilities.parsers.settings_to_hash
_clma_ = utilities.parsers.settings_to_array



___
If your question is of interest to others as well, please add an 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] everybeforeoutput vs everyafteroutput

2017-03-11 Thread Michael Eidenbenz
what i'm looking for is a way to
1. postpone a page, just before it is shipped out
2. instead ship out a page with saved tokens (images)
3. and then ship out the postponed page.

it tried to hook into the output routine without success because the 
\everybeforeoutput is typeset after the page is shipped out.

pageinjection [previouspage] sort of does what i want, but its a blank page 
without the layout.

any hints how i can solve this?

many thanks michael



> On 10 Mar 2017, at 17:36, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 3/10/2017 10:07 AM, Michael Eidenbenz wrote:
>> hello,
>> 
>> i try to understand the difference of everybeforeoutput and everafteroutput 
>> to inject some pages. it seems as there is no difference.
>> \the\everybeforeoutput is placed after the output of the page:
>> 
>> \newtoks\Before
>> \appendtoks
>> \the\Before
>> \global\Before\emptytoks
>> \to\everybeforeoutput
>> 
>> \newtoks\After
>> \appendtoks
>> \the\After
>> \global\After\emptytoks
>> \to\everyafteroutput
>> 
>> \starttext
>> \input{knuth}\par
>> \appendtoks{before}\to\Before
>> \appendtoks{after}\to\After
>> \stoptext
>> 
>> 
>> this code in page-otr.mkvi seems to put it before the content:
>> 
>> \def\page_otf_set_engine_output_routine#content%
>>  {\global\output
>> {\inotrtrue
>>  \the\everybeforeoutput
>>  #content\relax
>>  \the\everyafteroutput}}
>> 
>> can this be fixed?
> 
> there is nothing wrong .. you feed something in the output routine there
> 
> you can try to use one of the other \before\after ones but be aware of 
> possible interferences with tex's state, hold content etc ... 
> \startpostponing ... might do what you want
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
> www.pragma-pod.nl <http://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
> ___

___
If your question is of interest to others as well, please add an 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] everybeforeoutput vs everyafteroutput

2017-03-10 Thread Michael Eidenbenz
hello,

i try to understand the difference of everybeforeoutput and everafteroutput to 
inject some pages. it seems as there is no difference. 
\the\everybeforeoutput is placed after the output of the page:

\newtoks\Before
\appendtoks
\the\Before  
\global\Before\emptytoks 
\to\everybeforeoutput

\newtoks\After
\appendtoks
\the\After 
\global\After\emptytoks 
\to\everyafteroutput

\starttext
\input{knuth}\par
\appendtoks{before}\to\Before
\appendtoks{after}\to\After
\stoptext


this code in page-otr.mkvi seems to put it before the content:

\def\page_otf_set_engine_output_routine#content%
  {\global\output
 {\inotrtrue
  \the\everybeforeoutput
  #content\relax
  \the\everyafteroutput}}

can this be fixed? 
thanks michael





___
If your question is of interest to others as well, please add an 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] Encoding reserved characters in URI query strings

2017-02-05 Thread Rogers, Michael K

> On Feb 5, 2017, at 12:09 PM, Aditya Mahajan <adit...@umich.edu> wrote:
>
> On Sun, 5 Feb 2017, Rogers, Michael K wrote:
>
>> Let's say I want a link to plot x+2 in Wolfram|Alpha.  I need to catenate 
>> "http://www.wolframalpha.com/input/?i=; and  "plot+x%2B2".  Is there any way 
>> already available in ConTeXt to translate reserved characters like "+" to 
>> the percent-hexcode "%2B"?
>>
>> Something like
>>
>>   \encode[plot x+2]
>>
>> would become
>>
>>   plot+x%2B2
>>
>> Or more generally, some languages have a query constructor like this
>>
>>   \queryURI
>> [http://www.wolframalpha.com/input]
>> [i=plot x+2]
>>
>> which would construct the URI
>>
>>   http://www.wolframalpha.com/input/?i=plot+x%2B2
>>
>> I could write my own, of course.  But no need to reinvent the wheel.
>
> url.escape does exactly that.
>
> \startluacode
>  local base="http://www.wolframalpha.com/input;
>  local query="i=plot x+2"
>  local fullname = base .. query
>  print(url.escape(fullname))
> \stopluacode
>
> gives
>
> http%3A//www.wolframalpha.com/inputi%3Dplot%20x%2B2
>
> Also look at l-url.lua for other helper functions for parsing and 
> escaping/unescaping urls.
>
> Aditya

Thanks! I figured there must be a function like that.

Michael




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] Encoding reserved characters in URI query strings

2017-02-05 Thread Rogers, Michael K
Let's say I want a link to plot x+2 in Wolfram|Alpha.  I need to catenate 
"http://www.wolframalpha.com/input/?i=; and  "plot+x%2B2".  Is there any way 
already available in ConTeXt to translate reserved characters like "+" to the 
percent-hexcode "%2B"?

Something like

\encode[plot x+2]

would become

plot+x%2B2

Or more generally, some languages have a query constructor like this

\queryURI
  [http://www.wolframalpha.com/input]
  [i=plot x+2]

which would construct the URI

http://www.wolframalpha.com/input/?i=plot+x%2B2

I could write my own, of course.  But no need to reinvent the wheel.

TIA,

Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] sqrt(3)/2 with metafun

2017-02-02 Thread Rogers, Michael K
This seems to work in place of 0.866cm: sqrt(3)/2*cm

Michael

On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur 
<fabrice1.couvr...@gmail.com<mailto:fabrice1.couvr...@gmail.com>> wrote:

Hello,
I wanted to use sqrt(3)/2 but without success. Instead, I replaced this value 
with an approximate value 0.866
How should it be done ?
Thank you
Fabrice

\starttext

\startMPcode
draw fullcircle scaled 1cm withcolor magenta ;
draw fullcircle scaled 1cm shifted (1cm,0) withcolor magenta ;
draw fullcircle scaled 1cm shifted (0.5cm,0.866cm) withcolor magenta ;
 \stopMPcode

\stoptext
___
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-mirror/commits/
wiki : http://contextgarden.net
___




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an 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] btx/xml tree - entry with missing field

2016-12-22 Thread Michael Eidenbenz
thanks a lot hans!

> Am 22.12.2016 um 18:30 schrieb Hans Hagen <pra...@wxs.nl>:
> 
> On 12/22/2016 6:06 PM, Michael Eidenbenz wrote:
>> Hello
>> 
>> I use the xml interface to list all publications that dont match a
>> search criteria:
>> 
>> /field[@name='keywords'
>>and not (contains(text(),'alpha'))]
>> 
>> but there are entries where the keywords field is missing.
>> how can I include them (here "test-3") in the output?
>> 
>> Thanks Michael
>> 
>> --
>> 
>> \startbuffer[bib]
>> 
>> @article{test-1,
>>   title= {Article One},
>>   author   = {A. Foo and X. Bar},
>>   year = {2001},
>>   keywords = {alpha},
>> }
>> 
>> @book{test-2,
>>   title= {Book Two},
>>   author   = {B. Foo},
>>   year = {2002},
>>   keywords = {beta},
>> }
>> 
>> @whatever{test-3,
>>   title= {Book Three},
>>   author   = {C. Foo},
>>   year = {2003},
>> }
>> 
>> \stopbuffer
>> 
>> \usebtxdataset [database] [bib.buffer]
>> \convertbtxdatasettoxml [database]
>> 
>> \startxmlsetups btx:tag
>> \hbox{\xmlatt{#1}{tag}}
>> \stopxmlsetups
>> 
>> \startxmlsetups btx:demo
>>   \xmlfilter {#1} {
>> /bibtex
>> /*
>> /field[@name='keywords'
>>and not (contains(text(),'alpha'))]
>> /..
>> /command(btx:tag)
>>   }
>> \stopxmlsetups
>> 
>> \starttext
>> \xmlsetup{btx:database}{btx:demo}
>> \stoptext
> 
> \startxmlsetups btx:demo
>   \xmlfilter {#1} {/bibtex/*/command(btx:demo:action)}
> \stopxmlsetups
> 
> \startxmlsetups btx:demo:action
>\xmldoifelse {#1} {/field[@name='keywords']} {
>\xmlfilter {#1} {
> /field[@name='keywords'
>and not contains(text(),'alpha')]
> /..
> /command(btx:tag)
>}
>} {
>\xmlsetup{#1}{btx:tag}
>   }
> \stopxmlsetups
> 
> 
> -
>  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
> ___

___
If your question is of interest to others as well, please add an 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] btx/xml tree - entry with missing field

2016-12-22 Thread Michael Eidenbenz
Hello

I use the xml interface to list all publications that dont match a search 
criteria:

 /field[@name='keywords'
and not (contains(text(),'alpha'))]

but there are entries where the keywords field is missing.
how can I include them (here "test-3") in the output? 

Thanks Michael

--

\startbuffer[bib]

@article{test-1,
   title= {Article One},
   author   = {A. Foo and X. Bar},
   year = {2001},
   keywords = {alpha},
}

@book{test-2,
   title= {Book Two},
   author   = {B. Foo},
   year = {2002},
   keywords = {beta},
}

@whatever{test-3,
   title= {Book Three},
   author   = {C. Foo},
   year = {2003},
}

\stopbuffer

\usebtxdataset [database] [bib.buffer]
\convertbtxdatasettoxml [database]

\startxmlsetups btx:tag
\hbox{\xmlatt{#1}{tag}}
\stopxmlsetups

\startxmlsetups btx:demo
   \xmlfilter {#1} {
 /bibtex
 /*
 /field[@name='keywords'
and not (contains(text(),'alpha'))]
 /..
 /command(btx:tag)
   }
\stopxmlsetups

\starttext
\xmlsetup{btx:database}{btx:demo}
\stoptext

Michael Eidenbenz / Senior Researcher
eidenb...@arch.ethz.ch <mailto:eidenb...@arch.ethz.ch>
Phone +41 44 632 33 46

Chair of Architecture and Building Process
ETH Zurich / Building HIB / Floor E / Room 33
Stefano-Franscini-Platz 1 / CH-8093 Zurich
www.bauprozess.arch.ethz.ch <http://www.bauprozess.arch.ethz.ch/>

/ ITA
Institute of Technology in Architecture
Faculty of Architecture / ETH Zurich
www.ita.arch.ethz.ch <http://www.ita.arch.ethz.ch/>

___
If your question is of interest to others as well, please add an 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] hbox after \page[disable]

2016-12-06 Thread Michael Eidenbenz

> Am 05.12.2016 um 22:21 schrieb Hans Hagen <pra...@wxs.nl>:
> 
> On 12/5/2016 9:32 PM, Michael Eidenbenz wrote:
>> Ok I got it.
>> 
>> page[disable] is not taken into account by page[odd] so I changed it in
>> page-brk.mkiv:
>> 
>>  \installpagebreakmethod \v!odd
>>  {\relax\ifconditional\c_page_breaks_enabled
>>   \page
>>   \doifelseoddpage\donothing\page_reset_marks_and_insert_dummy
>>   \else
>>   \resetpagebreak
>>   \fi}
>> 
>> with this my MWE works perfectly.
> 
> isn't that just
> 
> \definepagebreak[mypagebreak][yes,odd,reset]
> 
> and then
> 
> \page[mypagebreak]


hmm. 
I can't see that [yes, odd, reset] implements the conditional I need to 
override page[odd]. (see code comments below)
but I guess the real problem occurs because I have to inject this in  
\everyafteroutput.


\newtoks \EvenPage

\appendtoks
\the\EvenPage
\global\EvenPage\emptytoks
\page[odd]   % will be overridden by page[disable] 
\to\everyafteroutput

\unexpanded\def\Figure#1{%
\appendtoks
\page[even]
#1
\page
\page[disable] %disable the next \page[odd] because else it will insert
\to\EvenPage}


> 
>> But will this break other things?
>> I dont really know what I'm doing just hacking.
>> 
>> Michael
>> 
>> -
>> 
>> \enabletrackers
>> [visualizers.hbox]
>> 
>> \useMPlibrary[dum]
>> 
>> \setuppagenumbering
>> [alternative=doublesided]
>> 
>> \definelayout[odd][width=10cm]
>> \definelayout[even][width=15cm]
>> 
>> \newtoks \EvenPage
>> 
>> \appendtoks
>> \the\EvenPage
>> \global\EvenPage\emptytoks
>> \page[odd]
>> \to\everyafteroutput
>> 
>> \unexpanded\def\Figure#1{%
>> \appendtoks
>> \page[even]
>> #1
>> \page
>> \page[disable] %disable the next \page[odd]
>> \to\EvenPage}
>> 
>> \showframe
>> 
>> \starttext
>> 
>> \dorecurse{4}{\input{tufte}\par}
>> 
>> \Figure{\externalfigure[dummy][factor=fit]}
>> \dorecurse{4}{\input{knuth}\par}
>> \Figure{\externalfigure[dummy][height=\textheight]}  %
>> \dorecurse{8}{\input{ward}\par}
>> \stoptext
>> 
>> 
>>> Am 04.12.2016 um 21:14 schrieb Michael Eidenbenz <eidenb...@arch.ethz.ch>:
>>> 
>>> Dear Hans,
>>> 
>>> thank you for your answer, but it doesnt solve the issue.
>>> (or I dont understand what you mean)
>>> 
>>> the argument in the macro is acually (not in the MWE) a xtable filled with 
>>> \externalfigures.
>>> so I would like to avoid floats as it makes things more complicated and 
>>> slower.
>>> 
>>> I tried finding the \page[disable] definition in the code but could not 
>>> find it.
>>> 
>>> any further suggestions how I can solve this issue?
>>> 
>>> thanks Michael
>>> 
>>> 
>>> 
>>>> Am 04.12.2016 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>:
>>>> 
>>>> On 12/4/2016 2:12 PM, Michael Eidenbenz wrote:
>>>>> I have a doublesided layout.
>>>>> On the right side i place the text, figures (if i have any) go on the 
>>>>> left side.
>>>>> the MWE below works quite nice.
>>>>> 
>>>>> But if i want the figure to be full height, two pages are skipped.
>>>>> This is becaus the hbox right below of the figure.
>>>>> I think it is placed during the \page[disable] pass.
>>>>> 
>>>>> What can I do to avoid this hbox?
>>>> 
>>>> \def\Figure#1{\placefigure[location={page,none}]{}{#1}}
>>>> 
>>>> 
>>>>> Thanks Michael
>>>>> 
>>>>> 
>>>>> \enabletrackers
>>>>> [visualizers.hbox]
>>>>> 
>>>>> \useMPlibrary[dum]
>>>>> 
>>>>> \setuppagenumbering
>>>>> [alternative=doublesided]
>>>>> 
>>>>> \definelayout[odd][width=10cm]
>>>>> \definelayout[even][width=15cm]
>>>>> 
>>>>> \newtoks \EvenPage
>>>>> 
>>>>> \appendtoks
>>>>> \the\EvenPage
>>>>> \global\EvenPage\emptytoks
>>>>> \page[odd]
>>>>> \to\everyafteroutput
>>>>> 
>>>>> \unexpanded\def\Figure#1{%
>>>>> \appendtoks
>>>>> \page[even]
>>&

Re: [NTG-context] hbox after \page[disable]

2016-12-05 Thread Michael Eidenbenz
Ok I got it.

page[disable] is not taken into account by page[odd] so I changed it in
page-brk.mkiv: 

  \installpagebreakmethod \v!odd
  {\relax\ifconditional\c_page_breaks_enabled
   \page
   \doifelseoddpage\donothing\page_reset_marks_and_insert_dummy
   \else 
   \resetpagebreak
   \fi}

with this my MWE works perfectly. 
But will this break other things?
I dont really know what I'm doing just hacking.

Michael

-

\enabletrackers 
[visualizers.hbox]

\useMPlibrary[dum]

\setuppagenumbering
[alternative=doublesided]

\definelayout[odd][width=10cm]
\definelayout[even][width=15cm]

\newtoks \EvenPage

\appendtoks
\the\EvenPage
\global\EvenPage\emptytoks
\page[odd]
\to\everyafteroutput

\unexpanded\def\Figure#1{%
 \appendtoks
 \page[even]
 #1
 \page
 \page[disable] %disable the next \page[odd]
 \to\EvenPage}

\showframe

\starttext

\dorecurse{4}{\input{tufte}\par}

\Figure{\externalfigure[dummy][factor=fit]}
\dorecurse{4}{\input{knuth}\par}
\Figure{\externalfigure[dummy][height=\textheight]}  %
\dorecurse{8}{\input{ward}\par}
\stoptext


> Am 04.12.2016 um 21:14 schrieb Michael Eidenbenz <eidenb...@arch.ethz.ch>:
> 
> Dear Hans,
> 
> thank you for your answer, but it doesnt solve the issue. 
> (or I dont understand what you mean)
> 
> the argument in the macro is acually (not in the MWE) a xtable filled with 
> \externalfigures.
> so I would like to avoid floats as it makes things more complicated and 
> slower.
> 
> I tried finding the \page[disable] definition in the code but could not find 
> it. 
> 
> any further suggestions how I can solve this issue?
> 
> thanks Michael
> 
> 
> 
>> Am 04.12.2016 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>:
>> 
>> On 12/4/2016 2:12 PM, Michael Eidenbenz wrote:
>>> I have a doublesided layout.
>>> On the right side i place the text, figures (if i have any) go on the left 
>>> side.
>>> the MWE below works quite nice.
>>> 
>>> But if i want the figure to be full height, two pages are skipped.
>>> This is becaus the hbox right below of the figure.
>>> I think it is placed during the \page[disable] pass.
>>> 
>>> What can I do to avoid this hbox?
>> 
>> \def\Figure#1{\placefigure[location={page,none}]{}{#1}}
>> 
>> 
>>> Thanks Michael
>>> 
>>> 
>>> \enabletrackers
>>> [visualizers.hbox]
>>> 
>>> \useMPlibrary[dum]
>>> 
>>> \setuppagenumbering
>>> [alternative=doublesided]
>>> 
>>> \definelayout[odd][width=10cm]
>>> \definelayout[even][width=15cm]
>>> 
>>> \newtoks \EvenPage
>>> 
>>> \appendtoks
>>> \the\EvenPage
>>> \global\EvenPage\emptytoks
>>> \page[odd]
>>> \to\everyafteroutput
>>> 
>>> \unexpanded\def\Figure#1{%
>>> \appendtoks
>>> \page[even]
>>> #1
>>> \page[disable]
>>> \to\EvenPage}
>>> 
>>> \showframe
>>> 
>>> \starttext
>>> 
>>> \dorecurse{4}{\input{tufte}\par}\page
>>> \Figure{\externalfigure[dummy][factor=fit]}
>>> \dorecurse{4}{\input{knuth}\par}\page
>>> \Figure{\externalfigure[dummy][height=\textheight]}  %
>>> \dorecurse{8}{\input{ward}\par}
>>> \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
>>> ___
>>> 
>> 
>> 
>> -- 
>> 
>> -
>> 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-con

Re: [NTG-context] hbox after \page[disable]

2016-12-04 Thread Michael Eidenbenz
Dear Hans,

thank you for your answer, but it doesnt solve the issue. 
(or I dont understand what you mean)

the argument in the macro is acually (not in the MWE) a xtable filled with 
\externalfigures.
so I would like to avoid floats as it makes things more complicated and slower.

I tried finding the \page[disable] definition in the code but could not find 
it. 

any further suggestions how I can solve this issue?

thanks Michael



> Am 04.12.2016 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>:
> 
> On 12/4/2016 2:12 PM, Michael Eidenbenz wrote:
>> I have a doublesided layout.
>> On the right side i place the text, figures (if i have any) go on the left 
>> side.
>> the MWE below works quite nice.
>> 
>> But if i want the figure to be full height, two pages are skipped.
>> This is becaus the hbox right below of the figure.
>> I think it is placed during the \page[disable] pass.
>> 
>> What can I do to avoid this hbox?
> 
> \def\Figure#1{\placefigure[location={page,none}]{}{#1}}
> 
> 
>> Thanks Michael
>> 
>> 
>> \enabletrackers
>> [visualizers.hbox]
>> 
>> \useMPlibrary[dum]
>> 
>> \setuppagenumbering
>> [alternative=doublesided]
>> 
>> \definelayout[odd][width=10cm]
>> \definelayout[even][width=15cm]
>> 
>> \newtoks \EvenPage
>> 
>> \appendtoks
>> \the\EvenPage
>> \global\EvenPage\emptytoks
>> \page[odd]
>> \to\everyafteroutput
>> 
>> \unexpanded\def\Figure#1{%
>>  \appendtoks
>>  \page[even]
>>  #1
>>  \page[disable]
>>  \to\EvenPage}
>> 
>> \showframe
>> 
>> \starttext
>> 
>> \dorecurse{4}{\input{tufte}\par}\page
>> \Figure{\externalfigure[dummy][factor=fit]}
>> \dorecurse{4}{\input{knuth}\par}\page
>> \Figure{\externalfigure[dummy][height=\textheight]}  %
>> \dorecurse{8}{\input{ward}\par}
>> \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
>> ___
>> 
> 
> 
> -- 
> 
> -
>  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
> ___

___
If your question is of interest to others as well, please add an 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] hbox after \page[disable]

2016-12-04 Thread Michael Eidenbenz
I have a doublesided layout. 
On the right side i place the text, figures (if i have any) go on the left side.
the MWE below works quite nice.

But if i want the figure to be full height, two pages are skipped.
This is becaus the hbox right below of the figure.
I think it is placed during the \page[disable] pass. 

What can I do to avoid this hbox?

Thanks Michael


\enabletrackers 
[visualizers.hbox]

\useMPlibrary[dum]

\setuppagenumbering
 [alternative=doublesided]

\definelayout[odd][width=10cm]
\definelayout[even][width=15cm]

\newtoks \EvenPage

\appendtoks
\the\EvenPage
\global\EvenPage\emptytoks
\page[odd]
\to\everyafteroutput

\unexpanded\def\Figure#1{%
  \appendtoks
  \page[even]
  #1
  \page[disable]
  \to\EvenPage}
 
\showframe

\starttext

\dorecurse{4}{\input{tufte}\par}\page
\Figure{\externalfigure[dummy][factor=fit]}
\dorecurse{4}{\input{knuth}\par}\page
\Figure{\externalfigure[dummy][height=\textheight]}  %
\dorecurse{8}{\input{ward}\par}
\stoptext

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

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

[NTG-context] (another) bug with embeddedxtables

2016-12-02 Thread Michael Eidenbenz
Settings made to \startembeddedxtable or \startxrow they will only work in the 
first call of the macro.
In every further call the settings are ignored.

On the other hand, settings made to \startxcell work for every call of the 
macro.

I assume this is a bug.

Regards Michael


\unexpanded\def\Table#1{%
  \startembeddedxtable[height=5cm]
  \startxrow
\startxcell #1 \stopxcell
  \stopxrow
\stopembeddedxtable
}

\unexpanded\def\TableCell#1{%
  \startembeddedxtable
  \startxrow
\startxcell[height=5cm] #1 \stopxcell
  \stopxrow
\stopembeddedxtable
}

\starttext
\Table{height is 5cm}
\Table{height should be 5cm}
\TableCell{height is 5cm}
\TableCell{height is 5cm}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] bug in xtables with spanning and spacing

2016-11-30 Thread Michael Eidenbenz
the spanned cells should be aligned.

\startxtable[distance=5mm,spaceinbetween=5mm]
\startxrow
\startxcell[ny=2] one + alpha\stopxcell
\startxcell[nx=2] two + three \stopxcell
\stopxrow
\startxrow
\startxcell beta \stopxcell
\startxcell gamma \stopxcell
\stopxrow
\stopxtable
___
If your question is of interest to others as well, please add an 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] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
thanks wolfgang.

> On 29 Nov 2016, at 15:55, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch> 29. November 2016 um 15:30
>> sorry, but what does "mlv" stand for?
> It’s mvl which stands for main vertical list.
> 
> 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] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
sorry, but what does "mlv" stand for?


> On 29 Nov 2016, at 11:23, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 11/29/2016 11:01 AM, Michael Eidenbenz wrote:
>> \vbox{\placefigure[][]{}{\externalfigure[][]}}
>> 
>> does the trick (but why?)
> 
> because \placefigure is a mlv command i.e. it is not supposed to be used in a 
> box
> 
>>> On 29 Nov 2016, at 09:29, Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote:
>>> 
>>> Hello,
>>> 
>>> this M(not)WE gives me the following error:
>>> 
>>> You can't use `\prevdepth' in restricted horizontal mode
>>> 
>>> Is this a bug?
>>> I'm running: 2016.11.24 12:05 MKIV beta
>>> 
>>> thanks Michael
>>> 
>>> 
>>> \starttext
>>> \startxtable
>>>   \startxrow
>>> % \startxcell
>>> \startxcell[width=10cm] % this leads to an error
>>>   \placefigure[][]{}{\externalfigure[][]}
>>> \stopxcell
>>>   \stopxrow
>>> \stopxtable
>>> \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
>>> ___
>> 
>> ___
>> If your question is of interest to others as well, please add an 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
> ___

___
If your question is of interest to others as well, please add an 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] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
\vbox{\placefigure[][]{}{\externalfigure[][]}}

does the trick (but why?)


> On 29 Nov 2016, at 09:29, Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote:
> 
> Hello, 
> 
> this M(not)WE gives me the following error:
> 
> You can't use `\prevdepth' in restricted horizontal mode
> 
> Is this a bug?
> I'm running: 2016.11.24 12:05 MKIV beta
> 
> thanks Michael
> 
> 
> \starttext
> \startxtable
>\startxrow
>  % \startxcell
>  \startxcell[width=10cm] % this leads to an error
>\placefigure[][]{}{\externalfigure[][]}
>  \stopxcell
>\stopxrow
> \stopxtable
> \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
> ___

___
If your question is of interest to others as well, please add an 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] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
Hello, 

this M(not)WE gives me the following error:

You can't use `\prevdepth' in restricted horizontal mode

Is this a bug?
I'm running: 2016.11.24 12:05 MKIV beta

thanks Michael


\starttext
\startxtable
\startxrow
  % \startxcell
  \startxcell[width=10cm] % this leads to an error
\placefigure[][]{}{\externalfigure[][]}
  \stopxcell
\stopxrow
\stopxtable
\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] startxtable, stopxtable in macro

2016-11-25 Thread Michael Eidenbenz
hmm.
I still get an error with this (ConTeXt  ver: 2016.11.24 12:05 MKIV beta)

\define\startTable{\startembeddedxtable}
\define\stopTable{\stopembeddedxtable}

\starttext
  \startTable
\startxrow
  \startxcell hallo \stopxcell
\stopxrow
  \stopTable
\stoptext


> On 25 Nov 2016, at 23:02, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> On 11/25/2016 08:46 PM, Michael Eidenbenz wrote:
>> why does this produce an TeX capacity exeeded error?
>> thanks 
> 
> Hi Michael,
> 
> I don’t know, but replacing your definitions with the following ones
> removes the error:
> 
>\define\startTable{\startembeddedxtable}
>\define\stopTable{\stopembeddedxtable}
> 
> 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
> ___

___
If your question is of interest to others as well, please add an 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] startxtable, stopxtable in macro

2016-11-25 Thread Michael Eidenbenz
why does this produce an TeX capacity exeeded error?
thanks 
Michael



\define\startTable{\startxtable}

\define\stopTable{\stopxtable}


\starttext
  \startTable
\startxrow
  \startxcell hello \stopxcell
\stopxrow
  \stopTable
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] floats in xtable flush with frame

2016-11-05 Thread Michael Eidenbenz
Hello,

I want to place floats in an xtable but cannot get rid of the gap between the 
float and the frame.
I sort of can eliminate the gap on the top with
\setupfloat [offset=-2.5pt]
but this doesnt seem to be the right way.

Is there a parameter to control this?

Thanks 

Michael


\showframe
\starttext

\startxtable
  \startxrow
\startxcell
  \placefloat{}{\externalfigure[][width=\textwidth/2]}
\stopxcell
\startxcell
  \placefloat{}{\externalfigure[][width=\textwidth/2]}
 \stopxcell 
   \stopxrow
\stopxtable
\page

\setupfloat [offset=-2.5pt]
\startxtable
  \startxrow
\startxcell
  \placefloat{}{\externalfigure[][width=\textwidth/2]}
\stopxcell
\startxcell
  \placefloat{}{\externalfigure[][width=\textwidth/2]}
 \stopxcell 
   \stopxrow
\stopxtable

\stoptext

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

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

[NTG-context] grid, interlinespace

2016-11-02 Thread Michael Eidenbenz
Hello

I want my text on a grid and there should be no gap between the top and the 
capital letters of the first line.
I managed to get this by changing the height parameter of \setupinterlinespace
with a factor I calculated for the font with this formula:

CapHeight/exheight / line = height

CapHeight and exheight are font specific numbers that I got from 
https://tug.org/TUGboat/tb34-2/tb107sharpe.pdf
for  lmroman this gives me: 683 / 431 / 2.8 = .566 for height in interlinespace

Although there is no gap to the top lines are jumping.
making the factor bigger helps. 
but smaller fonts wont snap to the grid.

What is happening here? 
And is this method of changing the height the right one?

Thanks Michael


--

\showgrid
\setuplayout [grid=yes]
\starttext
\setupinterlinespace
  [
height=.566,
line=2.8ex, 
 ]

\setupbodyfont [10pt]
MM on grid but jumping\par
\dorecurse{3}{\input tufte \par}
\page

\setupinterlinespace
  [
height=.575, 
line=2.8ex, 
 ]

\setupbodyfont [10pt]
MM on grid\par
\dorecurse{6}{\input tufte \par}
\page

\setupbodyfont [18pt]
MM on grid\par
\dorecurse{2}{\input tufte \par}
\page

\setupbodyfont [7pt]
MM on grid\par
\dorecurse{10}{\input tufte\par}
\page

\setupbodyfont [6pt]
MM NOT on grid\par
\dorecurse{10}{\input tufte \par}
\page

\setupinterlinespace
  [
height=.615, 
line=2.8ex, 
 ]
\setupbodyfont [6pt]
MM on grid but gap to top\par
\dorecurse{10}{\input tufte \par}
\page

\setupbodyfont [18pt]
MM on grid but gap to top\par
\dorecurse{2}{\input tufte \par}
\page

\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] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Michael Eidenbenz
It looks like auctex is still choosing the wrong command.

Please read this information:
https://www.gnu.org/software/auctex/manual/auctex/Selecting-a-Command.html

maybe this helps

(eval-after-load "tex"
'(add-to-list 'TeX-command-list
'("context_standalone"
 "source /home/fab/context/tex/setuptex && context"
  TeX-run-TeX
  nil
  (context-mode)
  :help "Run ConTeXt") t))

then choose the command "context_standalone" explicitly in the minibuffer

(and try without the local variables in your buffer)


> On 30 Oct 2016, at 10:10, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> wrote:
> 
> ​Hi Michael,
> ​
> Thank you for your help but it does not work, maybe a problem with the Emacs 
> shell.
> 
> Running `ConTeXt' on `ntg32' with ``context --once --texutil  --nonstop 
> ntg32.tex''
> 
> resolvers   | trees | analyzing 'home:texmf'
> mtx-context | run 1: luatex 
> --fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
>  --interaction="nonstopmode" --jobname="ntg32" 
> --lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
>  --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg32.tex" 
> --c:input="./ntg32.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode 
> --c:once --c:texutil "cont-yes.mkiv"
> This is LuaTeX, Version 0.95.0 (TeX Live 2016) 
>  system commands enabled.
> 
> resolvers   > trees > analyzing 'home:texmf'
> open source > 1 > 1 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.10.29  int: 
> english/english
> 
> system  > 'cont-new.mkiv' loaded
> open source > 2 > 2 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> close source> 2 > 2 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> 
> system  > files > jobname 'ntg32', input './ntg32', result 'ntg32'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > 2 > 3 > /home/fab/ntg32.tex
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> backend > xmp > using file 
> '/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
> pages   > flushing realpage 1, userpage 1
> close source> 2 > 3 > /home/fab/ntg32.tex
> close source> 1 > 3 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> mkiv lua stats  > used config file: 
> selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: 
> /home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
> mkiv lua stats  > resource resolver: loadtime 0.104 seconds, 1 scans with 
> scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths: 
> /home/fab/texmf
> mkiv lua stats  > stored bytecode data: 387 modules (0.366 sec), 82 tables 
> (0.011 sec), 469 chunks (0.377 sec)
> mkiv lua stats  > traced context: maxstack: 1176, freed: 1, unreachable: 1175
> mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
> mkiv lua stats  > node memory usage: 15 glue, 2 penalty, 22 attribute, 38 
> glue_spec, 8 attribute_list, 2 temp
> mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
> (re)created, 32 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
> output)mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds 
> loading
> mkiv lua stats  > callbacks: 136 direct, 245 indirect, 381 total
> mkiv lua stats  > randomizer: resumed with value 0.17602822472156
> mkiv lua stats  > positions: 13 collected, 8 regulars, 5 regions, 0 
> unresolved regions
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > result saved in file: ntg32.pdf, compresslevel 3, 
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
> lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 4 instances, 
> load time 0.161 seconds 
> mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: bin
> mkiv lua stats  > luatex banner: this is lua

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Michael Eidenbenz
the command should be:

(eval-after-load "tex"
'(add-to-list 'TeX-command-list
'("context"
 "source /home/fab/context/tex/setuptex && context"
  TeX-run-TeX
  nil
  (context-mode)
  :help "Run ConTeXt") t))





> On 29 Oct 2016, at 23:41, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> wrote:
> 
> Hi,
> @Tobias
> 
> If I add this to my .emacs I get
> 
> (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) 
> (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context")
> 
> Warning (initialization): An error occurred while loading `/home/fab/.emacs':
> 
> Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin
> 
> 
> @Michael
> 
> fab@debian:~$ which context
> /home/fab/bin/context
> fab@debian:~$ source context/tex/setuptex
> Setting "/home/fab/context/tex" as ConTeXt root.
> fab@debian:~$ which context
> /home/fab/context/tex/texmf-linux-64/bin/context
> fab@debian:~$ 
> 
> If I add this to my .emacs is always texlive 2016 is invoked when I compile
> 
> (eval-after-load "tex"
> '(add-to-list 'TeX-command-list
> '("context"
>  "(/home/fab/context)/setuptex&"
>   TeX-run-TeX
>   nil
>   (context-mode)
>   :help "Run ConTeXt") t))
> 
> 
> Thanks,
> Fabrice
> 
> 
> 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>:
> sorry that should be:
> 
> (path to textree)/setuptex && context .
> 
> 
>> 
>> cd (path to textree) && setuptex && context etc...
> 
> 
> ___
> If your question is of interest to others as well, please add an 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] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Michael Eidenbenz
sorry that should be:

(path to textree)/setuptex && context .


> 
> cd (path to textree) && setuptex && context etc...

___
If your question is of interest to others as well, please add an 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] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Michael Eidenbenz
check which binary is used with

which context

and correct our PATH according to your needs.
you can always add more C-c C-c commands for multiple installations (beta, 
current, texlive ..) as I wrote before.
just change the command to 

cd (path to textree) && setuptex && context etc...

Michael


> On 29 Oct 2016, at 09:55, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> wrote:
> 
> Hi,
> If I add this (add-to-list 'load-path 
> "/home/fab/context/tex/texmf-linux-64/bin") in the .emacs, one C-c C-c 
> invokes the executable texlive, not the context of standalone.
> Fabrice

___
If your question is of interest to others as well, please add an 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] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Michael Eidenbenz
you can add any TeX command (the ones you call with C-c C-c) to your init.el 
like this:

  '(add-to-list 'TeX-command-list
'("contex"
  "context %t --nonstopmode --purgeall" % change the command to 
your needs
  TeX-run-TeX
  nil
  (context-mode)
  :help "Run ConTeXt")
t))

I run emacs25 and auctex 11.89.5 without problems.
although i use auctex only for C-c C-c.

Michael


> On 28 Oct 2016, at 23:57, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> wrote:
> 
> Hi Mica,
> I added this  (custom-set-variables  ' (ConTeXt-Mark-version "IV"))  in my 
> .emacs and it seems to work, thank you. 
> Another question : when I do a C-c C-c is texlive context of 2016 is called. 
> How to be it standalone context ? 
> Fabrice
> 
> 2016-10-28 19:07 GMT+02:00 Mica Semrick <m...@silentumbrella.com 
> <mailto:m...@silentumbrella.com>>:
> I haven't checked in a while, since this is already set in my init.el file, 
> but auxtex was using mkii/texexec a few years ago. Have you checked you're 
> using mkiv/context?
> 
> On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur 
> <fabrice1.couvr...@gmail.com <mailto:fabrice1.couvr...@gmail.com>> wrote:
> Hello,
> I just upgraded to emacs24 and am having problems compiling my files who 
> compiled perfectly with emacs23.
> I installed AUCTeX with M-x-install package and that's it !
> I deleted my old init.el file and start over !
> The ~/.emacs.d only contains this :
> 
> fab @ debian: ~ $ cd .emacs.d /
> fab @ debian: ~ / .emacs.d $ ls -l
> total 8
> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list
> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA
> fab @ debian: ~ / $ .emacs.d
> 
> Consider the following file:
> If I make a C-c C-c, all I get is the text in italics, the macro is not 
> compiled.
> Thanks,
> Fabrice
> 
> % macros=mkvi
> 
> \setupcolors[state=start]
> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]
> 
> 
> \defineframedtext
>   [MyDefinition]
>   [before={\blank[line,halfline]},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>height=fit,
>location=left,
>style=italic]
> 
> \defineoverlay
>   [MyFrame]
>   [\useMPgraphic{MyFrame}]
> 
> \definelabel
>   [Définition]
>   [headstyle=\bf\smallcaps]
> 
> \startuseMPgraphic{MyFrame}
> path b ;
> picture p ;
> p := textext.rt("\white\Définition") ;
> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ;
> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
> fill OverlayBox withcolor \MPcolor{MyColorA} ;
> fill b withcolor \MPcolor{MyColorB} ;
> draw leftboundary OverlayBox ;
> draw p ;
> setbounds currentpicture to OverlayBox ;
>   \stopuseMPgraphic
>   
> \starttext
> \startMyDefinition
> \input knuth
> \stopMyDefinition
> 
> \stoptext
> 
> %%% Local Variables: 
> %%% mode: context
> %%% End: 
> 
> 
> 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 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits 
> <https://bitbucket.org/phg/context-mirror/commits>/
> wiki : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <http://contextgarden.net/>
> ___
> 
> ___
> If your question is of interest to ot

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
Dear Wolfgang, 

thanks for your mail, that led me to the source in syst-aux where I found the 
TeX approach, my final solution.

\def\startCitation%
  { \startnarrower[left,right]
\symbol[leftquotation]
\removeunwantedspaces}

\def\stopCitation#1\par%
  { \removeunwantedspaces
\symbol[rightquotation]
#1
\stopnarrower}
  
\starttext
  
\startCitation
  \input knuth
\stopCitation
\footnote{This is a Quote of Donald Knuth}

\input knuth

\stoptext

> On 26 Oct 2016, at 18:40, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch> 26. Oktober 2016 um 16:30
>> after some readings in the TeX book I came up with the following solution 
>> that works for me without having to change all my instances of 
>> startstopCitation in the text.
> This doesn’t work when you have more than one paragraph in the Citation 
> environment.
>> \definestartstop
>> [Citation]
>> [
>> before={\hangindent=20mm\hangafter=0\symbol[leftquotation]},
>> after={\removeunwantedspaces\symbol[rightquotation]},
>> ]
>> 
>> \starttext
>> \startCitation
>> \input tufte
>> \stopCitation
>> \footnote{This is a Quote of Donald Knuth}
>> 
>> \input tufte
>> \stoptext
> Here is a alternative version but you need a empty line or \par after 
> \stopCitation.
> 
> \define\startCitation
>   {\startnarrower[left]
>\symbol[leftquotation]\ignorespaces}
> 
> \define\stopCitation
>   {\BeforePar{\removeunwantedspaces\symbol[rightquotation]}%
>\AfterPar {\endgraf\stopnarrower}%
>\GetPar}
> 
> \starttext
> 
> \startCitation
>   \input knuth
> \stopCitation
> \footnote{This is a Quote of Donald Knuth}
> 
> \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
> ___

___
If your question is of interest to others as well, please add an 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] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
after some readings in the TeX book I came up with the following solution that 
works for me without having to change all my instances of startstopCitation in 
the text.

\definestartstop
  [Citation]
  [
before={\hangindent=20mm\hangafter=0\symbol[leftquotation]},
after={\removeunwantedspaces\symbol[rightquotation]},
  ]

\starttext
\startCitation
  \input tufte
\stopCitation
\footnote{This is a Quote of Donald Knuth}

\input tufte
\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] avoid newline after definestartstop

2016-10-25 Thread Michael Eidenbenz
thanks everybody for their input.

michael
___
If your question is of interest to others as well, please add an 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] avoid newline after definestartstop

2016-10-24 Thread Michael Eidenbenz
Thanks!

sometimes the moste obvious is hidden...
although I would consider this a hack, it works perfectly.
but I'm still wondering, if there is no soultion for the more "canonical" way.

Regards Michael

> On 24 Oct 2016, at 17:08, Otared Kavian <ota...@gmail.com> wrote:
> 
> Hi Michael,
> 
> Maybe what Wolfgang meant by « putting the marks by hand » is something like: 
> you define \StartCitation and \StopCitation in the following way:
> 
> % begin quotation-note.tex
> 
> \define\StartCitation{\startnarrower[left,right]«~}
> \define[1]\StopCitation{~»\footnote{#1}\stopnarrower}
> 
> \starttext
> \input tufte
> \StartCitation
>  \input knuth
> \StopCitation{This is a Quote of Donald Knuth}
> \stoptext
> % end quotation-note.tex
> 
> Indeed instead of the quotation marks « and » you can put whatever you wish.
> If you have quotations without footnotes, then you may define another 
> start-stop.
> 
> Best regards: OK
> 
>> On 24 Oct 2016, at 12:42, Michael Eidenbenz <eidenb...@arch.ethz.ch 
>> <mailto:eidenb...@arch.ethz.ch>> wrote:
>> 
>> hello,
>> 
>> I found this old mail below, that is related to my problem.
>> is there still no workaround for this problem?
>> putting a (foot)note after a quotation mark is quite common and I don't want 
>> to put the marks by hand.
>> 
>> i was looking at spac-hor.mkiv and tried setupnarrower[after=]. 
>> but this did not work.
>> 
>> any help is appreciated
>> 
>> thanks michael
>> 
>> 
>>> Am 21.08.2014 um 23:42 schrieb Gerben Wierda <gerben.wie...@rna.nl 
>>> <http://rna.nl/>>:
>>> 
>>>> Is it possible to use \startquotation..\stopquotation and have an endnote 
>>>> number follow the closing ''? If the \endnote is before \stopquotation, it 
>>>> ends up inside the '' character at the end. If it is after \stopquotation, 
>>>> it 
>>>> becomes the beginning of the next paragraph.
>>> 
>>> 
>>> AFAIK this is only possible when you place the quotation marks by hand.
>>> 
>>> Wolfgang
>> 
>> 
>> 
>>> 
>>> On 20 Oct 2016, at 11:13, Michael Eidenbenz <eidenb...@arch.ethz.ch 
>>> <mailto:eidenb...@arch.ethz.ch>> wrote:
>>> 
>>> hello,
>>> 
>>> how can I put the footnote number right after the quotationmarks without 
>>> having a newline?
>>> dontleavehmode does not work.
>>> 
>>> thanks michael
>>> 
>>> 
>>> 
>>> 
>>> \definestartstop[Citation]
>>>[before={\startnarrower[left,right]\startquotation},
>>> after={\stopquotation\stopnarrower\dontleavehmode}]
>>> 
>>> \starttext
>>> \input tufte
>>> \startCitation
>>>  \input knuth
>>> \stopCitation
>>> \footnote{This is a Quote of Donald Knuth}
>>> \stoptext
>>> ___
>>> 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 
>>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>>> http://context.aanhet.net <http://context.aanhet.net/>
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>>> <https://bitbucket.org/phg/context-mirror/commits/>
>>> wiki : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <http://contextgarden.net/>
>> __

  1   2   3   4   5   6   7   >