Re: [NTG-context] Slanted, double-quoted quotations

2014-10-15 Thread Rik

On 2014-10-15 17:06, Wolfgang Schuster wrote:

Am 15.10.2014 um 21:03 schrieb Rik Kabel :


I am not sure I understand the need for symstyle and symcolor. The issue is not 
that the symbols are not styled/colored, but that they do not appear at all 
when a non-normal style is specified. What I see with the example I posted is:

and I assume that Sander saw a similar issue.

Note that there are no square brackets present as defined for layer 2.

I realize that style=normal for level 3 should perhaps be style=\tf, since 
normal is redefined to slanted within the scope of layer 2. With that change to 
my example, I get

This still has the lack of square brackets, and now in addition lacks curly 
braces for level 3.

If your fix is meant to repair that, all is well. If not, could you explain why 
“it's deliberate and has always been the case in mkiv”?

When you use “location=text” context checks the value of the style key, when 
the value of the key is “normal”
the left and right arguments are used but when you use a different value (e.g. 
slanted) context applies only
the style and color values.



Thank you, Wolfgang, for that explanation of what is being done.

Can you explain why this is done? It would seem, given the name of the 
command, that the delimiter is more important than the styling, and so I 
suspect that there is some historical reason that this behavior was 
chosen. Styling can be done within the text, as can delimiters, but the 
benefit of the command is that it should be able to manage multiple 
levels automatically.


--
Rik Kabel
___
If your question is of interest to others as well, please add an 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] Trying to emulate CSS "object-fit" behaviour...

2014-10-15 Thread Stuart Hungerford
Hi,

I have a collection of PDF files of varying sizes and aspect ratios.
I'm currently using a combination and external figures to place these
into frames:

\setupexternalfigures[width=45.2mm, frame=off, factor=fit]

\setupcombinations[nx=5,ny=4,width=277mm,distance=10mm,after={\blank[10mm]}]

\setupframed[offset=1.0mm,background=color,rulethickness=0.25pt,backgroundcolor=white,framecolor=lightgray]

\starttext
  \startsection
[title={title text}]
\placefigure[here][nonumber]
  {\vspace more text}
  {\startcombination
{\framed[]
  {\externalfigure[1.pdf][location=middle]}{}}{}

  %% and so on

This works well, but what I'd like to do is choose a fixed size frame
for each PDF and have ConTeXt fill the frame in the same way as these
CSS commands:

object-fit  : cover;
object-position : top left;
overflow: hidden;

(http://www.w3.org/TR/css3-images/#the-object-fit)

That is, scale the PDF until all the frame is covered with some part
of the PDF, even if means overflowing the frame. The "overflow:
hidden" would then clip the overflow to the frame. Different PDF's
could have different scalings applied to make this work, which is fine
for this application.

I understand this may not be an idiomatic use of ConTeXt--any advice
or suggestions for alternate approaches much appreciated.

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

2014-10-15 Thread Wolfgang Schuster

Am 15.10.2014 um 21:03 schrieb Rik Kabel :

> I am not sure I understand the need for symstyle and symcolor. The issue is 
> not that the symbols are not styled/colored, but that they do not appear at 
> all when a non-normal style is specified. What I see with the example I 
> posted is:
> 
> and I assume that Sander saw a similar issue.
> 
> Note that there are no square brackets present as defined for layer 2.
> 
> I realize that style=normal for level 3 should perhaps be style=\tf, since 
> normal is redefined to slanted within the scope of layer 2. With that change 
> to my example, I get
> 
> This still has the lack of square brackets, and now in addition lacks curly 
> braces for level 3.
> 
> If your fix is meant to repair that, all is well. If not, could you explain 
> why “it's deliberate and has always been the case in mkiv”?

When you use “location=text” context checks the value of the style key, when 
the value of the key is “normal”
the left and right arguments are used but when you use a different value (e.g. 
slanted) context applies only
the style and color values.


Another way to create quotation command is to use the annotation module:

\usemodule[annotation]

\defineannotation
  [quotationsl]
  [style=slanted,
   leftsymbol={\symbol[leftquotation]},
   rightsymbol={\symbol[rightquotation]},
   alternative=quotation]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Metapost/Metafun: textext

2014-10-15 Thread Willi Egger
Hi all,

In the course of a project I wanted to create a decorative border around a 
framed text. The border should be built from chosen glyphs which are placed 
along the border as pictures. For this purpose the textext macro is a good 
candidate. However I run into troubles. With help from Hans, a solution could 
be found. Hans, thank you so much! 

I have created a section on the wiki, where the problem is shown and the 
solution is given. In order to illustrate the whole thing I placed also a full 
example.

http://wiki.contextgarden.net/MetaPost#Repetition_of_a_Text_Element_to_Fill_a_Bar_Using_textext

Kind regards 

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

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

Re: [NTG-context] Slanted, double-quoted quotations

2014-10-15 Thread Rik Kabel

On 2014-10-15 13:38, Hans Hagen wrote:

On 10/15/2014 4:58 PM, Rik Kabel wrote:

On 2014-10-15 09:06, Sander Maijers wrote:

Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted
quotation, whereas I intend to produce a slanted, double-quoted
quotation. How can I fix it?

\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}] 



\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers


Looks like a bug.


it's deliberate and has always been the case in mkiv


Modifying the parenthesis example at
http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates
that when a style other than normal is specified, the left and right
settings are ignored  and style settings in deeper levels ignored as
well. (There may be other keys that are ignored as well, and others that
set this off.) I tried a number of combinations. The following is one
that shows the problem. Without the style settings, it works as
described in the wiki.


well, i can do a different check (in next beta) but you deal with 
questions about incompatible behaviour ...



\definedelimitedtext[parenthesis][location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, 
right={]}]

\setupdelimitedtext [parenthesis:3] [style=normal, left={\{},
right={\}}]
\starttext
\parenthesis{My outer layer \parenthesis{my inner layer
\parenthesis{my innermost layer}}}
\stoptext


i'll add symstyle/color:

\definedelimitedtext[parenthesis]   [location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] 
[symcolor=red,symstyle=boldslanted,style=slanted, left={[}, right={]}]
\setupdelimitedtext [parenthesis:3] 
[symcolor=blue,symstyle=bold,style=normal, left={\{}, right={\}}]


\starttext
\parenthesis{My outer layer \parenthesis{my inner layer 
\parenthesis{my innermost layer}}}

\stoptext


Hans,

I am not sure I understand the need for symstyle and symcolor. The issue 
is not that the symbols are not styled/colored, but that they do not 
appear at all when a non-normal style is specified. What I see with the 
example I posted is:


and I assume that Sander saw a similar issue.

Note that there are no square brackets present as defined for layer 2.

I realize that style=normal for level 3 should perhaps be style=\tf, 
since normal is redefined to slanted within the scope of layer 2. With 
that change to my example, I get


This still has the lack of square brackets, and now in addition lacks 
curly braces for level 3.


If your fix is meant to repair that, all is well. If not, could you 
explain why “it's deliberate and has always been the case in mkiv”?


--
Rik Kabel
___
If your question is of interest to others as well, please add an 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] Stopper and itemize

2014-10-15 Thread Fabrice

Hi Mikael,
Thank you, but I should have known!!
___
If your question is of interest to others as well, please add an 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] Slanted, double-quoted quotations

2014-10-15 Thread Hans Hagen

On 10/15/2014 4:58 PM, Rik Kabel wrote:

On 2014-10-15 09:06, Sander Maijers wrote:

Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted
quotation, whereas I intend to produce a slanted, double-quoted
quotation. How can I fix it?

\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers


Looks like a bug.


it's deliberate and has always been the case in mkiv


Modifying the parenthesis example at
http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates
that when a style other than normal is specified, the left and right
settings are ignored  and style settings in deeper levels ignored as
well. (There may be other keys that are ignored as well, and others that
set this off.) I tried a number of combinations. The following is one
that shows the problem. Without the style settings, it works as
described in the wiki.


well, i can do a different check (in next beta) but you deal with 
questions about incompatible behaviour ...



\definedelimitedtext[parenthesis][location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, right={]}]
\setupdelimitedtext [parenthesis:3] [style=normal, left={\{},
right={\}}]
\starttext
\parenthesis{My outer layer \parenthesis{my inner layer
\parenthesis{my innermost layer}}}
\stoptext


i'll add symstyle/color:

\definedelimitedtext[parenthesis]   [location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] 
[symcolor=red,symstyle=boldslanted,style=slanted, left={[}, right={]}]
\setupdelimitedtext [parenthesis:3] 
[symcolor=blue,symstyle=bold,style=normal, left={\{}, right={\}}]


\starttext
\parenthesis{My outer layer \parenthesis{my inner layer 
\parenthesis{my innermost layer}}}

\stoptext


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

Re: [NTG-context] (MKIV beta) APA citations: "et al." incorrectly written

2014-10-15 Thread Alan BRASLAU
On Wed, 8 Oct 2014 16:12:43 +0200
Sander Maijers  wrote:

> My .bib file is being autogenerated by Mendeley, a reference manager,
> and changes often in terms of contents. That workflow seems
> incompatible with your solution. Furthermore, I may not let the
> authors appear in citations with all their names every time, it should
> be limited to the first time (the APA 6 rules, that I referred to).
> With your solution, 1 out of n citations would be correct, while in
> the current situation (without manual intervention) n-1 out of n would
> be correct (all but the first).

Although it is not yet "production" ready, we are working on this issue
with the new mkiv-bibliography subsystem. The rendering of citations
and the rendering of bibliography lists can be quite complicated, as
you are showing.

I note a second issue here: As you are working with an
autogenerated .bib file, you may have less control over its contents,
so playing with the field contents is not a solution.

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

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

Re: [NTG-context] Slanted, double-quoted quotations

2014-10-15 Thread Rik Kabel

On 2014-10-15 09:06, Sander Maijers wrote:

Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted 
quotation, whereas I intend to produce a slanted, double-quoted 
quotation. How can I fix it?


\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers


Looks like a bug.

Modifying the parenthesis example at 
http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates 
that when a style other than normal is specified, the left and right 
settings are ignored  and style settings in deeper levels ignored as 
well. (There may be other keys that are ignored as well, and others that 
set this off.) I tried a number of combinations. The following is one 
that shows the problem. Without the style settings, it works as 
described in the wiki.


   \definedelimitedtext[parenthesis][location=text]
   \setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
   \setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, right={]}]
   \setupdelimitedtext [parenthesis:3] [style=normal, left={\{},
   right={\}}]
   \starttext
   \parenthesis{My outer layer \parenthesis{my inner layer
   \parenthesis{my innermost layer}}}
   \stoptext

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

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

Re: [NTG-context] (MKIV beta) APA citations: "et al." incorrectly written

2014-10-15 Thread Alan BRASLAU
On Wed, 8 Oct 2014 16:12:43 +0200
Sander Maijers  wrote:

> Who can tell me please how to hide \cite output in the neatest way
> possible, while keeping the semantics in tact (i.e. establish that a
> reference was made)?

\nocite
___
If your question is of interest to others as well, please add an 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] Starting with bibliography / international entries

2014-10-15 Thread Alan BRASLAU
On Tue, 14 Oct 2014 14:06:59 +0200
Ulrike Fischer  wrote:

> You first has to decide "do I want title_variant_a always, or only
> if the main language of the document is english, or only if an
> option is set or only if ...". 
> What should happen if the language of the document is in japanese,
> the bib-entry is a french book and there is a translated_chinese
> variant of the title? 

According to the APA style guide:

"If the original version of a non-English article is used as the
source, cite the original version. Give the original title and, in
brackets, the English translation."
"If an English translation of a non-English article is used as the
source, cite the English translation. Give the English title without
brackets."

Other styles might specify differently.

Hans and I are working (furiously) on the new mkiv bibliography
subsystem. We have been discussing language (with Thomas as well). The
title= will be typeset (and hyphenated) according to the language=
field, if present; The rest of the bibliography list ("and", for
example) will be typeset using the document language. A global
bibliography rendering option can modify this choice.

Alan

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

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

Re: [NTG-context] Structure of titles in MkIV

2014-10-15 Thread Alan BRASLAU
On Wed, 15 Oct 2014 14:25:11 +0200
Keith Schultz  wrote:

> BUT, Michal I believe has a point. Or should I say has come across a
> FLAW, according to my view of things. ConTeXt should warn...

I was warned (a few years ago) on the mailing list NOT to place any
text outside of structure elements. For example,

\starttext
This is a forward.
\startchapter[title=First chapter]
\input tufte
\stopchapter
This is a an afterthought.
\stoptext

Of course, this works, but I was warned that everything might not work
correctly as expected outside of the structure, since such text is
"nowhere".

I cannot remember the example of what had gone haywire, but I leaned my
lesson (and started systematically using \start\stop for everything,
well, not for paragraphs as I find that a bit too heavy...).

As to WARNINGS: ConTeXt generally silently ignores incorrect coding,
unknown options, etc. One might call for all sorts of "bells and
whistles" but these come at a performance cost so I have also learned
to do without them. Of course, this sometimes makes debugging one's
errors a bit more difficult, but after 10 years or so of practice one
will no longer make many errors! (one of my favorites still is
"\startext") ;-)

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

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

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-15 Thread Otared Kavian
Hi Mikael,

You are right, it seems to be a new bug in
ConTeXt  ver: 2014.10.14 12:05 MKIV beta  fmt: 2014.10.14  int: 
english/english

The same behavior appears with 
\setupformulas[align=flushright]

However the results are fine and as expected with mkii and with
ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2014.6.27 int: 
english/english

Best regards: OK

On 15 Oct 2014, at 19:03, Mikael P. Sundqvist  wrote:

> Hi,
> 
> with a standalone installation updated today, I get smaller letters in
> \frac if \setupformulas[align=flushleft] is applied. The test file
> below generates the attached pdf.
> 
> /Mikael
> 
> \starttext
> \startformula
> z=\frac{x}{y}
> \stopformula
> 
> \setupformulas[align=flushleft]
> 
> \startformula
> z=\frac{x}{y}
> \stopformula
> \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
> ___

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

2014-10-15 Thread Sander Maijers
Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted
quotation, whereas I intend to produce a slanted, double-quoted quotation.
How can I fix it?

\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers
___
If your question is of interest to others as well, please add an 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] Structure of titles in MkIV

2014-10-15 Thread Keith Schultz
Hello All,

First, let me say that the semantics of Book-making can be confusing as
certain terms are used differently by different professionals.
What has made it worse these terms have been convoluted by the
computational adaptation of Book-making.

A book generally has three divisions frontmatter, backmatter, and "main" 
text/body.
These are made up of "parts".  What belongs in these divisions are dependent on 
your field,
tradition, and publishers style! 

Basically, Alan is on the mark.


Second, Michal TeX and ConTeXt has a section leveling. That is part is the 
highest level. and chapters are always
part of a part. So, you want the effect you need, you should either enclose the 
Prologue and
Epilogue in the frontmatter and backmatter parts respectively, (See MWE below) 
or wrap them in a part environment.

BUT, Michal I believe has a point. Or should I say has come across a FLAW, 
according to my view of things.
ConTeXt should warn that once you use a chapter the part command should not be 
mixed. That is if one uses parts
that Chapters must be embedded a Part! 



I adjusted Michals MWE and we get basically, what he expects, that is Prologue 
and Epilogue on the same
level. But, without it surrounding part the Epilogue is set at an level that is 
under "Part A"-level the Epilogue.
This would mean that the \stoppart for "Part A" or my inserted "Part B" is not 
being recognize and the
"sectioning Counter" being adjusted properly! Or an error should be flagged! 
Yes, there are easy work arounds!

This FLAW is intrinsic to the intelligence of ConTeXt. Most of us would be 
using front- and backmatter, sectioning commands,
numbering schemes and thereby avoiding it. But, ConTeXt should warn of the 
false behaviour.

Below I have a MWE to show the FLAW.

MWE:

\starttext
\placecontent

 %\startfrontmatter  % uncomment line to show what you would expect


\startchapter[title=Prologue]
\input knuth
\stopchapter

%\stopfrontmatter % uncomment line to show what you would expect

\startpart[title={Part A}]
 \startchapter[title=One]
 \input knuth
 \stopchapter
\stoppart

% FLAW: sectioned under Part A should expect sectioning  level 1
% or throw error that part needed here!
\startchapter[title={not at top level}]  
\input knuth
\stopchapter

\startpart[title={Part B}]
 \startchapter[title=One]
 \input knuth
 \stopchapter
\stoppart

% \startbackmatter  % uncomment line to show what you would expect


% FLAW:  sectioned under Part B should expect sectioning  level 1
% or throw error that part needed here!
\startchapter[title=Epilogue] 
\input knuth
\stopchapter


%\stopbackmatter % uncomment line to show what you would expect

\stoptext 

regards
Keith.
___
If your question is of interest to others as well, please add an 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] math snapping

2014-10-15 Thread Hans Hagen

Hi,

new experimental feature in next beta

\enabletrackers[math.openedup]

\starttext

\dorecurse{10}{\dorecurse{#1}{whatever }}

\startitemize[packed]
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\stopitemize
\startitemize[packed,columns]
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\stopitemize

\dorecurse{5}{\dorecurse{#1}{whatever }\openedupimath{\frac{1}{2}} }

\startitemize[packed,columns]
\startitem whatever \openedupimath{1+2} whatever
\startitem whatever \openedupimath{1+2} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{1+2} whatever
\startitem whatever \openedupimath{1+2} whatever
\stopitemize

\dorecurse{5}{\dorecurse{#1}{whatever }\openedupimath{1+2} }

\startitemize[packed]
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\startitem whatever \openedupimath{\frac{1}{2}} whatever
\stopitemize

\dorecurse{10}{whatever }
\dorecurse {5}{\dorecurse{#1}{whatever }\openedupimath{\frac{1}{2}} }
\dorecurse{10}{whatever }

\stoptext

--

-
  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] \setupformulas and \frac give small symbols

2014-10-15 Thread Mikael P. Sundqvist
Hi,

with a standalone installation updated today, I get smaller letters in
\frac if \setupformulas[align=flushleft] is applied. The test file
below generates the attached pdf.

/Mikael

\starttext
\startformula
z=\frac{x}{y}
\stopformula

\setupformulas[align=flushleft]

\startformula
z=\frac{x}{y}
\stopformula
\stoptext


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

[NTG-context] sidefloats

2014-10-15 Thread Hans Hagen

new in next beta:

\starttext

\placefigure
  [left]
  {}
  {\framed[height=1cm,width=2cm]{}} \input tufte

\doifelsesidefloat
{\dontleavehmode{\bf OKAY}: HERE}
{\inmargin{OKAY} HERE}

\placefigure
  [left]
  {}
  {\framed[height=10cm,width=2cm]{}} \input tufte

\doifelsesidefloat
{\dontleavehmode{\bf OKAY}: HERE}
{\inmargin{OKAY} HERE}

\stoptext

--

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

2014-10-15 Thread Hans Hagen

Hi,

new in next beta

%D Sometimes you have a document wide (page) background but need to 
overload it
%D locally. In such case (at least in my experience) the only values 
that get set
%D are the background and backgroundcolor (if set at all). A full 
inheritance chain
%D would complicate things because then we need to use named backgrounds 
which in
%D turn will make this mechanism slower. I considered independent local 
backgrounds
%D but that also complicates the code (not that much) but isolation 
means that we
%D need to set more parameters each time. The following simple approach 
proabbly

%D suits most usage.

\starttext

\setupbackgrounds[page][background=color,backgroundcolor=red]
\input tufte
\page
\setupbackgrounds[page][background=,backgroundcolor=]
\input tufte
\page
\setupbackgrounds[page][background=color,backgroundcolor=red]
\input tufte
\page
\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=green]
\input tufte
\page
\popbackground
\input tufte
\page

\stoptext

(only two parameters pushed/popped)
--

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

Re: [NTG-context] Structure of titles in MkIV

2014-10-15 Thread Alan BRASLAU
Quoting from the thread "Adaptive section structuring" of September
2012:

> %\definesectionlevels[default][section,subsection,subsubsection]
> \definesectionlevels[mine][title,subject,subsubject]
> 
> \starttext
> 
> \startsectionlevel [title=Alpha]
>   \startsectionlevel [title=Beta]
> \startsectionlevel [title=Gamma]
> \stopsectionlevel
>   \stopsectionlevel
> \stopsectionlevel
> 
> \startsectionlevel [mine] [title=One]
>   \startsectionlevel [mine] [title=Two]
> \startsectionlevel [mine] [title=Three]
> \stopsectionlevel
>   \stopsectionlevel
> \stopsectionlevel
> 
> \stoptext
> 
> Wolfgang

Alan



On Wed, 15 Oct 2014 09:42:19 +0200
Alan BRASLAU  wrote:

> Hello,
> 
> Structure (sectioning) is a question of hierarchical level, there is
> nothing special about the names "part" or "chapter" except setups that
> reflect common usage.
> 
> I place Prologue and Epilogue at the "part" level. Better yet, I
> situate them in "frontmatter" and "backmatter". Maybe my use is
> incorrect but this is how I understand things.
> 
> There is a mechanism for automatic section level which is very nice.
> Hans describes this in: "levels-001.tex and levels-002.tex in the test
> suite to see how to use relative sectioning."
> 
> Alan
> 
> 
> On Tue, 14 Oct 2014 13:49:36 +0200
> Michał Goliński  wrote:
> 
> > Given a file:
> > 
> > \setupinteraction[state=start]
> > \placebookmarks[part,chapter][part,chapter]
> > 
> > \starttext
> > 
> > \startchapter[title=Prologue, number=no]
> > \input knuth
> > \stopchapter
> > 
> > \startpart[title={Part A}]
> >\startchapter[title=One]
> >\input knuth
> >\stopchapter
> > \stoppart
> > 
> > \startchapter[title=Epilogue]
> > \input knuth
> > \stopchapter
> > 
> > \stoptext
> > 
> > I would expect to have the logical structure of titles as follows:
> > 
> > + Prologue
> > + Part A
> > - + One
> > + Epilogue
> > 
> > i.e., "Epilogue" should be at the highest level, as "Prologue" is.
> > Context gives me an Epilogue that is a child of "Part A".
> > 
> > Is it possible to have the chapter "Epilogue" not be a child of
> > "Part A"?
> > 
> > Best regards
> > Michał Goliński
> 



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Structure of titles in MkIV

2014-10-15 Thread Alan BRASLAU
Hello,

Structure (sectioning) is a question of hierarchical level, there is
nothing special about the names "part" or "chapter" except setups that
reflect common usage.

I place Prologue and Epilogue at the "part" level. Better yet, I
situate them in "frontmatter" and "backmatter". Maybe my use is
incorrect but this is how I understand things.

There is a mechanism for automatic section level which is very nice.
Hans describes this in: "levels-001.tex and levels-002.tex in the test
suite to see how to use relative sectioning."

Alan


On Tue, 14 Oct 2014 13:49:36 +0200
Michał Goliński  wrote:

> Given a file:
> 
> \setupinteraction[state=start]
> \placebookmarks[part,chapter][part,chapter]
> 
> \starttext
> 
> \startchapter[title=Prologue, number=no]
> \input knuth
> \stopchapter
> 
> \startpart[title={Part A}]
>\startchapter[title=One]
>\input knuth
>\stopchapter
> \stoppart
> 
> \startchapter[title=Epilogue]
> \input knuth
> \stopchapter
> 
> \stoptext
> 
> I would expect to have the logical structure of titles as follows:
> 
> + Prologue
> + Part A
> - + One
> + Epilogue
> 
> i.e., "Epilogue" should be at the highest level, as "Prologue" is.
> Context gives me an Epilogue that is a child of "Part A".
> 
> Is it possible to have the chapter "Epilogue" not be a child of "Part 
> A"?
> 
> Best regards
> Michał Goliński

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