Re: [NTG-context] Overriding pdfview

2013-06-28 Thread luigi scarso
On Fri, Jun 28, 2013 at 4:29 AM, Arthur Reutenauer 
arthur.reutena...@normalesup.org wrote:

  Unfortunately my version of evince doesn't always print correctly  a pdf
  made by context mkiv
 
  \starttext
  $3v$ \par
 
  $3\omega$
 
  \stoptext
 
  When I do print-preview, the math is not shown, and nothing is printed.

   As has already been mentioned, this could simply be a font issue, or a
 silly mistake with the way some programs handle Unicode characters with
 codes over 65536.


it's a known problem
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697766
or
http://markmail.org/thread/butajobguctljovt#query:+page:1+mid:3kbunxjsfo2vzjcg+state:results

and probably fixed in the next release of 12.04
https://launchpad.net/ubuntu/+source/poppler/0.22.4-0ubuntu1
(I have not checked)


-- 
luigi
___
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] how to use \dimexpr and fractional values

2013-06-28 Thread Thomas A. Schmitz

Hi all,

long story short: I want to calculate a width or height from user input, 
which is in the form 0.x (as in 0.3\textwidth) since I want to use 
that number differently in different circumstances. Problem is that 
\dimexpr doesn't like decimal values. Example (uncomment second 
\externalfigure to see the problem):


\starttext

\def\myfactor{0.3}

\externalfigure[mill][height=\myfactor\textwidth]

%\externalfigure[mill][height=\dimexpr10cm*\myfactor\relax]

\stoptext

(silly, but shows my problem). How can I obtain an image of height 
0.3*10cm from my \myfactor macro? I tried to get my head around 
\numexpr etc. in the etex manual, but couldn't really figure out what to do.


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


Re: [NTG-context] Cloze Text (text with gaps)

2013-06-28 Thread Christian Prim
Hello Wolfgang

thanks for both \TextGap and \WordGap. That is exactly what I needed!

Christian


2013/6/27 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

  Hello Wolfgang.
  Here is example of other using of your TextGap.
  There is a problem in some lines? Why linewidth is change?

 Add “width 0pt” to the \vrule arguments. See also my definition of
 \WordGap.

 \def\TextGap[#1]%
  {\scratchdimen#1\relax
   \divide\scratchdimen\plusten
   \dorecurse\plusten
 {\vrule width \scratchdimen height \linewidth depth \zeropoint\relax
  \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

 \def\WordGap
   {\dowithnextbox{\TextGap[\nextboxwd]}\hbox}

 \starttext

 a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e

 My words: \WordGap{My words}. Why is line very thick here?

 Here is an sentence: \WordGap{Here is an sentence} -- linewidth is OK here.

 Here is an sentence: \WordGap{Here is an sentence}. And why is problem
 here again?

 \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

 ___

___
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] how to use \dimexpr and fractional values

2013-06-28 Thread Peter Münster
On Fri, Jun 28 2013, Thomas A. Schmitz wrote:

 %\externalfigure[mill][height=\dimexpr10cm*\myfactor\relax]

\externalfigure[mill][height=\myfactor\dimexpr10cm\relax]

-- 
   Peter
___
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] how to use \dimexpr and fractional values

2013-06-28 Thread luigi scarso
On Fri, Jun 28, 2013 at 8:54 AM, Thomas A. Schmitz 
thomas.schm...@uni-bonn.de wrote:

 Hi all,

 long story short: I want to calculate a width or height from user input,
 which is in the form 0.x (as in 0.3\textwidth) since I want to use that
 number differently in different circumstances. Problem is that \dimexpr
 doesn't like decimal values.


long answer short
\starttext
\def\myfactor{0.3}
\def\Myfactor{3}
\externalfigure[mill][height=\myfactor\textwidth]
\externalfigure[mill][height=\dimexpr \textwidth * \Myfactor / 10\relax]
\externalfigure[mill][height=\dimexpr 10cm * \Myfactor / 10\relax]
\stoptext
http://wiki.contextgarden.net/Expressions
-- 
luigi
___
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] how to use \dimexpr and fractional values

2013-06-28 Thread Thomas A. Schmitz

On 06/28/2013 09:16 AM, Peter Münster wrote:

On Fri, Jun 28 2013, Thomas A. Schmitz wrote:


%\externalfigure[mill][height=\dimexpr10cm*\myfactor\relax]

\externalfigure[mill][height=\myfactor\dimexpr10cm\relax]


Sigh... Thanks Peter, I should have tried this myself. I think I'm 
losing it, should look into early retirement or begin to use MS Word...


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

Re: [NTG-context] Cloze Text (text with gaps)

2013-06-28 Thread Jaroslav Hajtmar

Hello Wolfgang.
I thank you as well. These macros I will also definitely come in handy. 
Sometimes I'm doing tests for my students.

I solved it yet a little awkward, now it is OK.

Thanx Jaroslav


Dne 28.6.2013 9:06, Christian Prim napsal(a):

Hello Wolfgang

thanks for both \TextGap and \WordGap. That is exactly what I needed!

Christian


2013/6/27 Wolfgang Schuster schuster.wolfg...@gmail.com 
mailto:schuster.wolfg...@gmail.com



Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar hajt...@gyza.cz
mailto:hajt...@gyza.cz:

 Hello Wolfgang.
 Here is example of other using of your TextGap.
 There is a problem in some lines? Why linewidth is change?

Add “width 0pt” to the \vrule arguments. See also my definition of
\WordGap.

\def\TextGap[#1]%
{\scratchdimen#1\relax
\divide\scratchdimen\plusten
\dorecurse\plusten
{\vrule width \scratchdimen height \linewidth depth \zeropoint\relax
\ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

\def\WordGap
{\dowithnextbox{\TextGap[\nextboxwd]}\hbox}

\starttext

a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e

My words: \WordGap{My words}. Why is line very thick here?

Here is an sentence: \WordGap{Here is an sentence} -- linewidth is
OK here.

Here is an sentence: \WordGap{Here is an sentence}. And why is
problem here again?

\stoptext

Wolfgang

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


___
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] Overriding pdfview

2013-06-28 Thread Keith J. Schultz
Hi All,

I have been following this thread with some amusement.

There is no real optimal answer to this question short of developing
a dedicated pdfviewer for ConTeXt. But, is this the best use of our resources.
Furthermore, how about a dedicated editor? ;-)) (just joking, but I am
sure somebody would come with the idea eventually, once we start down this
path)

As a Mac user, and one that shys away from using X. I use TeXShop.
TeXShop has a multiplatform counterpart TeXWorks, distributed with
TeXLive. It has a integrated pdf viewer with SyncTeX functionality.
Its pdf viewer is based on Poppler. How good it is I can not say. But,
it should not be two hard to extract it and turn it into a standalone.

I think it could work as an adequate viewer. If someone then needs
to use something better they can write the scripts they need themselves.

Maybe, the TeXWorks guys could help. 

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
___


Re: [NTG-context] Overriding pdfview

2013-06-28 Thread Hans Hagen

On 6/28/2013 1:46 AM, Sietse Brouwer wrote:


I'll repeat what I said, though: the PDF reader that is (a) most
likely to be installed, and (b) is most logical / least surprising to
the user, is: the user's own default PDF viewer. Adobe Reader may be
clunky for this purpose, but IMO the user's choice should nonetheless
be respected.

It is easier, and less aggravating, to look up 'what is a better PDF
viewer than Adobe' than 'why does ConTeXt not respect my default PDF
viewer setting?'


well, is someone chooses 'default' i.e. --autopdf=default then the 
pdfopen and pdfclose commands are used and these will use the system 
defaults; i can add 'auto' to do 'start' and 'open' but i'm not going to 
bother then with something close (which isn't available on all systems 
anyway)


to be honest. i wasn't aware if anyone using --autopdf anyway and i 
mostly made it for my own edit/view cycle with scite, and the defaults 
there are my personal ones and users can easilly override them in a user 
properties file (so anyone not satisfied with my choices can set the 
preference to --autopdf=default there and get whatever (probably 
acrobat) is set up there (and then start fighting version clash startup 
differences)


i expect most users to use their personal favourite editor and be able 
to configure the run context command (and is one omits the --autopdf 
viewing is completely up to the editor / os: as said, i only added 
--autopdf because it's handy in scite)


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
___


Re: [NTG-context] Overriding pdfview

2013-06-28 Thread Keith J. Schultz
Hi All,

I would agree that the users default should be respected.

I will have to contradict my last post them. 

My suggestion them is to use a system variable such as
ConTeXtViewer. This variable would contain the program to be called.
If it is not set or empty context simply finishes up what ever it is doing
and exits. 

It would not be two hard for a user to set this variable. Everybody gets what 
they 
want. It is not intrusive. It survives updates. Only needs to be done once.

Now, if anybody wants to us the current method and furture versions he can
or set up he wants.

regards
Keith.


Am 28.06.2013 um 01:53 schrieb Gareth Jones gareth.k.jo...@gmail.com:

 I'll repeat what I said, though: the PDF reader that is (a) most
 likely to be installed, and (b) is most logical / least surprising to
 the user, is: the user's own default PDF viewer.
 
 For what it’s worth, as an end user, I agree.

___
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] Overriding pdfview

2013-06-28 Thread Hans Hagen

On 6/28/2013 10:56 AM, Keith J. Schultz wrote:

Hi All,

I would agree that the users default should be respected.

I will have to contradict my last post them.

My suggestion them is to use a system variable such as
ConTeXtViewer. This variable would contain the program to be called.
If it is not set or empty context simply finishes up what ever it is doing
and exits.


in that case it would be a directive in texmfcnf.lua (probably in the 
texmflocal instance) but when unset there still will be the default


no one is forced to use --autopdf and if someone doesn't want to pop up 
a browser one can simply nto use --autopdf


keep in mind that when a user uses --autopdf he/she probably knows what 
is needed can can as well pass some extra info



It would not be two hard for a user to set this variable. Everybody gets what 
they
want. It is not intrusive. It survives updates. Only needs to be done once.

Now, if anybody wants to us the current method and furture versions he can
or set up he wants.


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
___


Re: [NTG-context] [fontloader] cached fonts have invalid tounicode values

2013-06-28 Thread Philipp Gesang
···date: 2013-06-28, Friday···from: Akira Kakuto···

 Hi Philipp,
 
 I’ve traced it to luatex-basics-gen.lua.
 
 luaotfload-basics-gen.lua and luaotfload-merged.lua?

The latter is generated from the former, so yes. For a hot fix it
suffices to patch the merged file. Anyways, luaotfload will be
updated once Hans pushes a fix upstream.

Best,
Philipp



pgpyiIopJGxNl.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [fontloader] cached fonts have invalid tounicode values

2013-06-28 Thread Hans Hagen

On 6/28/2013 1:12 PM, Philipp Gesang wrote:

···date: 2013-06-28, Friday···from: Akira Kakuto···


Hi Philipp,


I’ve traced it to luatex-basics-gen.lua.


luaotfload-basics-gen.lua and luaotfload-merged.lua?


The latter is generated from the former, so yes. For a hot fix it
suffices to patch the merged file. Anyways, luaotfload will be
updated once Hans pushes a fix upstream.


but be careful with that ... there will be some experimental code in 
coming betas that won't effect context but will probably make there way 
into generic some time later, when found ok


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
___


Re: [NTG-context] Cloze Text (text with gaps)

2013-06-28 Thread Wolfgang Schuster

Am 28.06.2013 um 09:36 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello Wolfgang.
 I thank you as well. These macros I will also definitely come in handy. 
 Sometimes I'm doing tests for my students.
 I solved it yet a little awkward, now it is OK.

The code is usable but far from perfect because I make the rule
of many small parts which length depends on the requested width.

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
___


Re: [NTG-context] french character spacing in footnotes

2013-06-28 Thread Alan Bowen
Thanks, Wolfgang—that code works perfectly and is a great help.

Alan


On Thu, Jun 27, 2013 at 10:56 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 28.06.2013 um 00:27 schrieb Alan Bowen bowenala...@gmail.com:

  The following code has the right character spacing spacing in the body
 text but not in the footnote.
 
  \startcomponent Test
  \mainlanguage[fr]
  \setcharacterspacing[frenchpunctuation]
  Le début est lacunaire; le début est lacunaire: le début est lacunaire.
 Est-ce que le début est lacunaire? \quote{Il n’y a pas de titre final}?%
  \footnote{Le début est lacunaire; le début est lacunaire: le début est
 lacunaire. Est-ce que le début est lacunaire? \quote{Il n’y a pas de titre
 final}?}
 
  \stopcomponent
 
  I am running the latest standalone.
 
  Any suggestions?

 ConTeXt resets a few features for the notes and you have to enable them
 for the notes block.
 Add the following lines to your document and it should work.

 \startsetups[footnote:french]
   \setcharacterspacing[frenchpunctuation]
 \stopsetups

 \setupnote[footnote][setups=footnote:french]

 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

 ___

___
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] french character spacing in footnotes

2013-06-28 Thread Alan Bowen
Thanks, Peter. I like your last idea of tying the french punctuation and
character spacing to \fr or \mainlanguage[fr].

Alan


On Fri, Jun 28, 2013 at 1:33 AM, Peter Münster pmli...@free.fr wrote:

 On Fri, Jun 28 2013, Wolfgang Schuster wrote:

  ConTeXt resets a few features for the notes and you have to enable them
 for the notes block.
  Add the following lines to your document and it should work.
 
  \startsetups[footnote:french]
\setcharacterspacing[frenchpunctuation]
  \stopsetups
 
  \setupnote[footnote][setups=footnote:french]

 See also: http://tracker.luatex.org/view.php?id=428#c1092

 --
Peter

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

Re: [NTG-context] Overriding pdfview

2013-06-28 Thread Keith J. Schultz
Hi Hans,

I meant a OS system variable. But that actually does not matter.
The default action would be changed to not call a browser!

I agree that nobody should be forced to use autopdf.
Yet, as I understand the discussion there seems to be a need 
to add some generality to the method. 

Possibly, a cleaner way to resolve this discussion is to define calls for
user as in user defined. In other words, in addition to -autopdf there will be 
a parameter -autocalls which is a list of commands for the calls opencalls, 
closecalls,
allcalls.

No for more need for anyone to really change a file it would be in their call 
to context.

regards
Keith.

Am 28.06.2013 um 12:34 schrieb Hans Hagen pra...@wxs.nl:

 On 6/28/2013 10:56 AM, Keith J. Schultz wrote:
 Hi All,
 
 I would agree that the users default should be respected.
 
 I will have to contradict my last post them.
 
 My suggestion them is to use a system variable such as
 ConTeXtViewer. This variable would contain the program to be called.
 If it is not set or empty context simply finishes up what ever it is doing
 and exits.
 
 in that case it would be a directive in texmfcnf.lua (probably in the 
 texmflocal instance) but when unset there still will be the default
 
 no one is forced to use --autopdf and if someone doesn't want to pop up a 
 browser one can simply nto use --autopdf
 
 keep in mind that when a user uses --autopdf he/she probably knows what is 
 needed can can as well pass some extra info
[snip, snip]
___
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] Having text overflow an image

2013-06-28 Thread Sander Maijers
I have a few large plots that each should take up an entire landscape A3 
paper sheet. There is a heading above it. Can I print it on top of the 
image (overflowing it)?


Example code:

\setuppapersize[A3,landscape][A3,landscape]
\setuplayout[topspace=10mm,header=0mm,footer=10mm]

\part[appendices]{Appendices}

\appendix[visualization_relations]{A: Visualizations of the 
relations between perplexity, WER}


\subappendix{A-1: Scatterplot of perplexity 
(LM\low{baseline} and LM\low{skip})}

\placefigure
[force]
[scatterplot_of_PPL]
{Scatterplot of perplexity (LM\low{baseline} and 
LM\low{skip}).}

{\externalfigure[/tmp/scatterplot_of_PPL.svg][factor=fit]}
___
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] Possible bug with new \start ... \stop way for title, chapter, subject, etc.?

2013-06-28 Thread Andres Conrado Montoya
I was trying to implement the solution provided by this thread:
http://www.mail-archive.com/ntg-context@ntg.nl/msg51152.html and it
works very well. However, finding a problem related to this
implementation, I found that the output of the new \start ... \stop
versions of the title, section, chapter, subject, etc. commands is
different from the old \title, \chapter, \subject, etc.
As you can see in the following MWE, the new implementation indents
the first paragraph of the given section, by some amount (even
different from the default for paragraphs).

Is this a bug or a new feature that I don't understand?

mtx-context | current version: 2013.06.10 22:51

% START MWE **%

\setuplayout[grid=yes]
\setuppagenumbering
  [alternative=doublesided,location={footer,center}]
\showgrid
\setupindenting[yes,big,next]
\usemodule[lettrine]

\define[2]\SectionCommand
  {\inoutermargin{#2}}

\setuphead
  [title,subject]
  [page=no,
   alternative=text,
   command=\SectionCommand,
   distance=0pt,
   style={\tf\sc},
   before={\blank[line]}]

\starttext

\title{Knuth}
  With title: \input knuth\par

\starttitle[title={Tufte}]
  With starttitle: \input tufte\par
\stoptitle

\subject{Knuth}
  With subject: \input knuth\par

\startsubject[title={Tufte}]
  With startsubject: \input tufte\par
\stopsubject

\stoptext

% STOP MWE %
___
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
___