[NTG-context] Synonyms - feature request?

2015-03-25 Thread Robin.Kirkham
Folks,

I use the synonym feature heavily as technical documents can have hundreds of 
them. It’s great I can produce a list of synonyms I actually use in a document. 
Proper style however requires that each synonym be “explained” (shown in full) 
the first time it is used — usually in a document, but sometimes in a smaller 
scope, like a part or chapter. This is something I frequently get wrong, and is 
something document reviewers are quick to complain about.

So it would be great if Context could do this automatically. The attached MWE 
shows what I mean — with such a feature, the two paragraphs should come out the 
same.

I’ve placed some (commented) guesses as to how this might be configured in 
\setupsynonyms. Maybe better key names can be imagined.

Typically I would want synonym \XX\ to be expanded to XX (Xxx Xxx) the first 
time it is used (alternative a), but the reverse (alternative b), Xxx Xxx (XX) 
might be preferred. However a command could be used for a custom “explanation”.

Internally to Context, I guess this means each group of synonyms actually used 
has to be complemented with a list of the synonyms that have been “explained” 
(i.e., \infull{}) would add them to this second list). The second list would be 
cleared each new scope (chapter, section). The \XX\ macro would explain the 
synonym if it wasn’t on the second list (using \infull{}, which would then add 
it).

None of this would change the behaviour of \placelistof… where you would 
continue to select the criterium for the list you want output, independently of 

The only further tweak might be a scheme so that certain common synonyms (a 
third list) are never explained automatically (perhaps by example, UK in a 
document written in and for a UK audience). This list would silently added to 
the second list immediately after it was cleared, I guess. Synonyms for this 
this list would be added by a slightly different version of the
synonym definition macro (perhaps \commonabbreviation instead of \abbreviation, 
in the MWE).

Anyone think this would be a useful feature addition?

Robin


\definesynonyms[abbreviation][abbreviations][\infull]
\setupsynonyms[abbreviation][
state=start,
%explain=first,% first,always,never
%explainscope=text,% text,part,chapter,section...
%explainalternative=a, % a: XX (Xxx Xxx), b: Xxx Xxx (XX), command
%explaincommand=COMMAND#1#2,   % to format it yourself
textstyle=normal,
synonymstyle=\cap]

\abbreviation [UN]  {UN}  {United Nations}
\abbreviation [UK]  {UK}  {United Kingdom}
\abbreviation [USA] {USA} {United States of America}
\abbreviation [UAE] {UAE} {United Arab Emirates}

%\commonabbreviation [OK] {OK} {okay}
\abbreviation [OK] {OK} {okay}

\setupwhitespace[medium]

\starttext
The \UK\ and the \USA\ are both founding members of the \UN.
And I'm told the \UK\ and \USA\ are both English speaking countries.
But that’s \OK.

The \UK\ (\infull{UK}) and the \USA\ (\infull{USA}) are both founding
members of the \UN\ (\infull{UN}).
And I'm told the \UK\ and \USA\ are both English speaking countries.
But that’s \OK.

\placelistofabbreviations
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \appendtoks and structuring commands

2015-03-25 Thread Hans Hagen

On 3/24/2015 8:48 PM, Sam Ḥilluc wrote:

Hi list,

I'm trying to leverage the structuring facilities of context. In my previous
setup I added a title page automatically by using:
 \appendtoks
 \placetitle
 \to \everystarttext

But now that I'm using environments and products, it doesn't seem to work.

Here is a minimal (not) working example:
 % env.tex
 \startenvironment env
 \setuppapersize[A5]
 \appendtoks
 Title page
 \to \everystarttext
 \stopenvironment


 % prj.tex
 \startproject prj
 \environment env
 \stopproject

 % prd.tex
 \startproduct prd
 \project prj

 \starttext
 Bla bla
 \stoptext
 \stopproduct

Note that when using \everystoptext rather than \everystarttext, it does work
(it adds the text to the last page)

So what am I doing wrong ?


\startsetups [document:titlepage]
  bla bla \documentvariable{title} bla bla
\stopsetups

\setupdocument
  [before=\directsetup{document:titlepage}]


\startdocument[title=Some title]

...

\stopdocument

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Reminder: BachoTeX

2015-03-25 Thread Willi Egger
Dear reader!

Today I received the mail here under. Please consider a visit to the 
BachoTeX-conference. Beyond the fact that this conference is always extremely 
interesting it is also in one of the most beautiful places you can imagine. It 
is an ideal place to feel on holidays, amid great nature, forests and water…


Kind regards

Willi Egger
secretary CG-group

Dear TeXies,

a brief reminder:
BachoTeX 2015: Various faces of typography
==
The early-bird registrations deadline for BachoTeX 2015 is approaching fast!

You can register at 
http://www.gust.org.pl/bachotex/2015-en/registration/registration-form 
http://www.gust.org.pl/bachotex/2015-en/registration/registration-form

Please share with other TeXies -- we still do accept papers:
* the call for papers is at http://www.gust.org.pl/bachotex/2015-en/cfp 
http://www.gust.org.pl/bachotex/2015-en/cfp
* info for authors is at http://www.gust.org.pl/bachotex/2015-en/submissions 
http://www.gust.org.pl/bachotex/2015-en/submissions

See you there!
-- Jerzy Ludwichowski___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] slanting an intermezzo.

2015-03-25 Thread John Culleton
I am redoing a book originally done in InDesign
and the prior typesetter took delight in using
every trick in the book. I can match all of them
 in context except one. He creates little sidebars
 and sometimes he leans them to the left by a few
degrees. Here is an example of one such sidebar.
How do I cause it to lean to the left about 3
degrees?
--

\starttext
\setupframed[background=screen,framecorner=rectangular,backgroundscreen=0.70]
\placeintermezzo[right,none]{}
\startframedtext[width=3in]

\centerline {\bf RECIPE FOR SUCCESS}

\noindent

\input knuth.tex
\stopframedtext
\input knuth.tex
\input knuth.tex
\input knuth.tex

\stoptext
--
I know I am supposed to use \rotate but I can't
figure out how to rotate an intermezzo.

Please help!

John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: Create Book Covers with
Scribus 1.4.5 coming soon at
http://www.booklocker.com/!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] beta

2015-03-25 Thread Hans Hagen

Hi,

I uploaded a beta. This is the last one that works with luatex  0.80 
but the good news is that the contextgarden has 0.80. I will start 
moving in some new code now so if you don't want any risks you need to 
snapshot your context tree.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Bug with ligatures (EBGaramond) and \mainlanguage[es]

2015-03-25 Thread Andrés Conrado
Hello, list. When I try to use the EBGaramond font 
(http://www.georgduffner.at/ebgaramond/) in spanish (using 
\mainlanguage[es]), ligatures disappear. But they only disappear when 
they belong to a word (when alone, they look fine). See MWE, if you 
remove the comment in the \mainlanguage command, ligatures get screwed up:


%%
% remove the comment below to see the effect on ligatures.
%\mainlanguage[es]

\loadtypescriptfile[ebgaramond]

\setupbodyfont[ebgaramond,48pt]

\starttext

flagrantemente y figurativamente ff fl fi ffi ffl ffii figura ffla fflego

\stoptext
%%


Thanks for any ideas you may have, I'm clueless, and really need to use 
those ligatures. I can edit whatever needs to be edited, but I can't 
find any ideas in the source, nor the mailing list.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Help with \setuplist number width (for appendices)

2015-03-25 Thread Robin.Kirkham
Am 23.03.2015 um 10:29 schrieb 
robin.kirk...@csiro.aumailto:robin.kirk...@csiro.au 
robin.kirk...@csiro.aumailto:robin.kirk...@csiro.au:

Dear List,

I’m implementing a predefined document style. This requires chapters numbered 
1, 2, 3 … and appendices numbered Appendix A, Appendix B, Appendix C, … both in 
the actual heads and also the table of contents.

The style also requires the chapter numbers in the table of contents to be set 
in a 12mm column. The MWE below does all this, but for the appendices the 
number overflows the 12mm width, which is ugly of course. So I need to specify 
either a width with some stretch so the list layout will adapt, or somehow be 
able to specify a different width for the appendix entries.

Any help appreciated,

Robin

\setuplist[chapter][
  width=12mm, % but want 30mm for appendices
  label=yes,
  alternative=c]

\define[1]\ChapterlistNumber
 {\dowithnextbox
{\ifdim\nextboxwd12mm
   \simplealignedbox{12mm}{flushleft}{\flushnextbox}%
 \else
   \simplealignedbox{30mm}{flushleft}{\flushnextbox}%
 \fi}
\hbox{#1}}

\setuplist
 [chapter]
 [width=0pt,
  label=yes,
  alternative=c,
  numbercommand=\ChapterlistNumber]

Wolfgang

Thanks Wolfgang!  I actually tried something a bit like this but couldn’t get 
it to work. The key is to set the width to 0pt in the \setuplist.

Best wishes from Melbourne,

Robin

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___