Re: [NTG-context] SyncTeX and mkiv

2015-04-07 Thread Mojca Miklavec
Hi,

SyncTeX usually works for me, but I need to use
context --synctex ...
(I don't know if --synctex=1 is supposed to work in ConTeX. I believe
that Hans changed the syntax.)

Enabling it inside the document doesn't work for me for some reason.
Hans suggested to put the command inside the first line (modeline or
however that one is called).

But context --synctex filename.tex generally works. It is not as
precise as it could be (it often knows only paragraphs, not individual
lines or characters, but that's ok given how much extra info would be
needed to store position of every character) and it doesn't know all
the elements (text on metafun figures and other weird elements might
not have a sync point), but I never experienced any really strange
behaviour or positioning discrepancies. I'm using Skim.app.

On Tue, Apr 7, 2015 at 9:20 AM, Otared Kavian wrote:
 Hi Andreas,

 Thanks for your reply and your attention.
 Actually it seems that the way ConTeXt mkiv writes informations to the 
 SyncTeX file has changed and the way it works i snot completely dependable. 
 For instance sometimes the following

 \starttext
 \input knuth.tex
 \stoptex

 results in a PDF which, when clicked on with a modifier key (Command on Mac 
 OS X) opens the source file knuth.tex. But  the following simple example

 \starttext
 Hi there, can you show me this sentence in the source file?
 \stoptex

 Does nothing at all…

 So I am puzzled…

Did you actually forget a t at the end or did you just make an error
when copy-pasting?

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

2015-04-07 Thread Otared Kavian
Hi Mojca,

Thanks for your attention.
I’ll do some testing with the syntax
context —synctex
istead of 
context —synctex=1
and then I’ll report any changes in the behaviour of SyncTeX. Actually if 
SyncTeX could find in the source a paragraph, or a sctructure like 
\startformula

\stopformula
that would be largely enough for most of us (when writing a maths, or physics, 
book or lecture notes often a formula or an expression is used several times 
and so finding a specigic one of them through a search in the sourec file is 
not really convenient).

Regarding yoru observation for the missing « t » in \stoptext, I just made an 
error when copy-pasting… Usually I never forget the right syntax of 
\starttext\stoptext…

Best regards: OK

 On 07 Apr 2015, at 10:32, Mojca Miklavec mojca.miklavec.li...@gmail.com 
 wrote:
 
 Hi,
 
 SyncTeX usually works for me, but I need to use
context --synctex ...
 (I don't know if --synctex=1 is supposed to work in ConTeX. I believe
 that Hans changed the syntax.)
 
 Enabling it inside the document doesn't work for me for some reason.
 Hans suggested to put the command inside the first line (modeline or
 however that one is called).
 
 But context --synctex filename.tex generally works. It is not as
 precise as it could be (it often knows only paragraphs, not individual
 lines or characters, but that's ok given how much extra info would be
 needed to store position of every character) and it doesn't know all
 the elements (text on metafun figures and other weird elements might
 not have a sync point), but I never experienced any really strange
 behaviour or positioning discrepancies. I'm using Skim.app.
 
 On Tue, Apr 7, 2015 at 9:20 AM, Otared Kavian wrote:
 Hi Andreas,
 
 Thanks for your reply and your attention.
 Actually it seems that the way ConTeXt mkiv writes informations to the 
 SyncTeX file has changed and the way it works i snot completely dependable. 
 For instance sometimes the following
 
 \starttext
 \input knuth.tex
 \stoptex
 
 results in a PDF which, when clicked on with a modifier key (Command on Mac 
 OS X) opens the source file knuth.tex. But  the following simple example
 
 \starttext
 Hi there, can you show me this sentence in the source file?
 \stoptex
 
 Does nothing at all…
 
 So I am puzzled…
 
 Did you actually forget a t at the end or did you just make an error
 when copy-pasting?
 
 Mojca
 ___
 If your question is of interest to others as well, please add an 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] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
The list spacing parameters (fit) is not right for numbered
itemizations when using the dejavu fonts.

MWE:

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n]
\dorecurse{10}{\startitem X\stopitem}
\stoptext


(switching to 100 items is even worse!)

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
___

[NTG-context] SyncTeX and mkiv

2015-04-07 Thread Akira Kakuto

Dear Mojca,

Here
(1) context --synctex filename
(2) context --synctex=1 filename
(3) context --synctex=-1 filename
all work.  (1) and (2) are equivalent.

\enabledirectives[system.synctex]
\starttext
... ...
\stoptext

in a source does not work correctly.
(Input files are not recorded in a data correctly.)

Best,
Akira

___
If your question is of interest to others as well, please add an 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] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 11:14 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 The list spacing parameters (fit) is not right for numbered
 itemizations when using the dejavu fonts.
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)

You missed the \stopitemize after the last item.

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] RAL colours

2015-04-07 Thread Alan BRASLAU
On Sat, 4 Apr 2015 13:42:55 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 4/4/2015 1:31 PM, Pavneet Arora wrote:
  Of and on, I have struggled to find a colour space that is
  expressive enough for printing, but convenient to access through
  ConTeXt for day-to-day usage.  I find with X11 that the emphasis on
  screen skews the colours to be brighter than what is desired,
  especially if one is dealing with coloured stock---say beige
  kraft---as I am doing with my current bit of typesetting.
 
  In this process I have come across the RAL colour space:
 
  http://www.ral-farben.de/content/application-help/all-ral-colours-names/overview-ral-classic-colours.html
 
  whose values can be conveniently (sort of) accessed at:
 
  http://rgb.to/ral/page/1
 
  For my immediate needs, I have simply created a set of:
 
  \definecolor[colourName][h=HH]
 
  However, I am wondering if it might make sense to have a
  colo-imp-ral.mkiv?  So my questions would be:
 
  1.  Is the RAL colour space a decent one for printing purposes?
  What would be disadvantages, if not?
 
  2.  Does colo-imp-ral.mkiv exist already?
 
 it's not in the distribution so it doesn't exist
 
  3.  If not, would others find it useful to have a
  colo-imp-ral.mkiv?  If it doesn't then I would be happy to prepare
  one and submit it.
 
 just go ahead

I have produced both Pantone as well as Roscolux color palates
from published web resources for my own use as they are of course
copyrighted. One could do the same with a RAL color palatte that is
widely used in the paint industry. Of course, none of these really make
any sense in printing as one needs appropriate tools to produce the
desired result - they will remain an approximation.

Alan


Roscolux: standard color set used in theater and cinema lighting.
(created from www.rosco.com) © Rosco Laboratories 1998-2009
___
If your question is of interest to others as well, please add an 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] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 11:46:06 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

  MWE:
  
  \setupbodyfont [dejavu,10pt]
  \starttext
  \startitemize [n]
  \dorecurse{10}{\startitem X\stopitem}
  \stoptext
  
  (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.

Just in the email (and so-called MWE)
but not in the test (and my applications).

Adding the missing \stopitemize in the MWE above
does not change the problem.

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] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 11:46:06 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.
 
 Just in the email (and so-called MWE)
 but not in the test (and my applications).
 
 Adding the missing \stopitemize in the MWE above
 does not change the problem.

When I add \stopitemize to your example and use the fit option which is missing 
in your example
there are no problems in the output but you have to use the distance key to put 
a space between
the last item number and the content.

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
\dorecurse{100}{\startitem X\stopitem}
\stopitemize
\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] Textbackgrounds interrupted by floats

2015-04-07 Thread Robin.Kirkham
Folks,

Here is problem that must have been asked about before, but I can’t seem to 
find a solution on the archive or anywhere else. I want a colour background for 
verbatim text (for code), and floating figures. However if a figure floats to 
the bottom (as in the example below), and the verbatim text is broken over to 
the next page because it is long, I don’t want the colour background under the 
figure as well — I want no background at all.

What is the correct setup to do that?

Thanks, Robin

\setupexternalfigures[location=default]
\setupcolors[state=start]

\definetextbackground[code][
frame=off,
location=paragraph,
background=color,
backgroundcolor=yellow]
\setuptyping[typing][
%option=color,
before={\starttextbackground[code]},
after=\stoptextbackground]

\starttext

\startplacefigure[location=bottom]
\externalfigure[cow][width=0.5\textwidth]
\stopplacefigure

\input tufte

\starttyping
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
Long
\stoptyping

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

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 12:39:08 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
  Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
  
  On Tue, 7 Apr 2015 11:46:06 +0200
  Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
  
  MWE:
  
  \setupbodyfont [dejavu,10pt]
  \starttext
  \startitemize [n]
  \dorecurse{10}{\startitem X\stopitem}
  \stoptext
  
  (switching to 100 items is even worse!)  
  
  You missed the \stopitemize after the last item.
  
  Just in the email (and so-called MWE)
  but not in the test (and my applications).
  
  Adding the missing \stopitemize in the MWE above
  does not change the problem.
 
 When I add \stopitemize to your example and use the fit option which
 is missing in your example there are no problems in the output but
 you have to use the distance key to put a space between the last item
 number and the content.
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
 \dorecurse{100}{\startitem X\stopitem}
 \stopitemize
 \stoptext

fit is without effect,
so it is distance= that does not have a reasonable default.

Other fonts are not so bad, but dejavu (which is a bit larger)
looks really bad, by default.

Ala
-- 
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] Textbackgrounds interrupted by floats

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 13:31 schrieb robin.kirk...@csiro.au:
 
 Folks,
 
 Here is problem that must have been asked about before, but I can’t seem to 
 find a solution on the archive or anywhere else. I want a colour background 
 for verbatim text (for code), and floating figures. However if a figure 
 floats to the bottom (as in the example below), and the verbatim text is 
 broken over to the next page because it is long, I don’t want the colour 
 background under the figure as well — I want no background at all.
 
 What is the correct setup to do that?


Add the following line to your document:

\setconstant\kindofpagetextareas\plusone

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] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 13:31 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 12:39:08 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com 
 mailto:schuster.wolfg...@gmail.com wrote:
 
 
 Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 11:46:06 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.
 
 Just in the email (and so-called MWE)
 but not in the test (and my applications).
 
 Adding the missing \stopitemize in the MWE above
 does not change the problem.
 
 When I add \stopitemize to your example and use the fit option which
 is missing in your example there are no problems in the output but
 you have to use the distance key to put a space between the last item
 number and the content.
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
 \dorecurse{100}{\startitem X\stopitem}
 \stopitemize
 \stoptext
 
 fit is without effect,
 so it is distance= that does not have a reasonable default.
 
 Other fonts are not so bad, but dejavu (which is a bit larger)
 looks really bad, by default.

Can you show your output from the example and tell what you expect from the fit 
option.

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] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 13:37:54 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Can you show your output from the example and tell what you expect
 from the fit option.

For example:

\setupbodyfont [scola,10pt]
\startitemize [n]
...

yields a reasonable output:
10. X

\setupbodyfont [dejavu,10pt]
\startitemize [n]
...

the output is ugly:
10.X
where the period and the X almost touch.

AND if one goes to 100 items, then result is
100.X
where the 0 and the X overlap
(the period is in the right foot of the X).

Using the scola font, the result with 100 is similar to the result with
10 in dejavu, so going to a fourth digit would be just as horrible as
with three digits and dejavu.

\setupbodyfont [whatever]
\startitemize[n,fit]
yields
10.X
with no spacing in all fonts, and this is pretty ugly unless one also
specifies [distance=\spaceamount]. Perhaps this correct (with
distance=, by default) as fit should then fit with no spacing.

HOWEVER,
\startitemize [n]
with no other options should simply work correctly out of the box for
all fonts and not give such horrible results.

I understand now: the default is a fixed offset to the list body that
works OK for small itemizations (i.e. one digit) with most fonts and
more-or-less well with two digits, but not with dejavu. Choosing the
option fit and setting a distance gives a reasonable result, so we
cannot call this a bug, but the result by default is rather surprising.
Notice that \startitemize[R] works poorly with even less than 10 items.

May I suggest that the default spacing (i.e. the list setup) that is
used be enlarged a little bit, as two digit numbered itemizations are
not rare and dejavu is such a useful font. Indeed, this is obtained
with the option broad. Indeed, in the manual, broad (and
2*broad) is used in such examples. Perhaps the fixed spacing that is
presently tuned works well with simple symbol item lists and passably
with single digit numbered lists, which probably explains why this is
the default. Also, I suppose that there is some aesthetic value in
having item lists take a fixed, uniform distance by default in a
document which is why fit is not a default option. Thus, a design
choice (or compromise).

Moral: read the manual!

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

[NTG-context] adjust text width mkiv

2015-04-07 Thread John Culleton
I am still matching my file with a previous
InDesign layout.

 On one particular page I want to narrow the text
 width a bit to cause the bottom line to fill
 the full text width. I have tried adjusting
 \hsize within braces, and changing setlayout. I
 am considering putting all the text in a
 framedtext but with the frame suppressed.

Any suggestions? 
-- 
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
___

Re: [NTG-context] SyncTeX and mkiv

2015-04-07 Thread Thomas Floeren

On 7 Apr 2015, at 10:32, Mojca Miklavec wrote:


Hi,

SyncTeX usually works for me, but I need to use
 context --synctex ...
(I don't know if --synctex=1 is supposed to work in ConTeX. I believe
that Hans changed the syntax.)

Enabling it inside the document doesn't work for me for some reason.
Hans suggested to put the command inside the first line (modeline or
however that one is called).

But context --synctex filename.tex generally works.



Yes, this is strange. `\enabledirectives [system.synctex]` works for me 
*if* it’s in the product file (no `--synctex` switch needed). It even 
works if it is not in the first line, for example:


Product file:

\startproduct pd-test
\enabledirectives [system.synctex]
\component 01-intro
\stopproduct

Component:

\startcomponent 01-intro
Hi there, can you show me this sentence in the source file?
\stopcomponent


But, indeed, it doesn’t work with single-file documents.

--
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] text alignment in table

2015-04-07 Thread Thomas Floeren
On 7 Apr 2015, at 17:40, John Culleton wrote:

 Given this table:
 \starttabulate[|l|l]
 \NC 8:00\emdash noon \NC Ordering/opening/training\NR
 \NC \NC Food~preparation\NC\NR
 \NC Noon\emdash 2:00 PM \NC Luncheon~sales\NR
 \NC 2:00 PM\emdash 7:00 PM \NC General administration/baking \NR
 \NC \NC Supplier meeting (this is you) \NC\NR
 \stoptabulate
 
 the Word Food is left justified in the
 column (good) and the word preparation
 is right justified (bad). The same problem occurs
 in the string Luncheon sales. The glyph ~
 doesn't help.


A missing `|`

\starttabulate[|l|l|]

-- 
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] text alignment in table

2015-04-07 Thread Aditya Mahajan

On Tue, 7 Apr 2015, John Culleton wrote:


Given this table:
\starttabulate[|l|l]
\NC 8:00\emdash noon \NC Ordering/opening/training\NR 
\NC \NC Food~preparation\NC\NR 
\NC Noon\emdash 2:00 PM \NC Luncheon~sales\NR

\NC 2:00 PM\emdash 7:00 PM \NC General administration/baking \NR
\NC \NC Supplier meeting (this is you) \NC\NR 
\stoptabulate


the Word Food is left justified in the
column (good) and the word preparation
is right justified (bad). The same problem occurs
in the string Luncheon sales. The glyph ~
doesn't help.


The syntax is

\starttabulate[|l|l|]
  \NC .. \NC ... \NC \NR
  \NC .. \NC ... \NC \NR
\stoptabulate

You do not have enough \NC-s in all rows.

Aditya
___
If your question is of interest to others as well, please add an 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] adjust text width mkiv

2015-04-07 Thread Alias 1
You can try the command \startnarrower … \stopnarrower (see: 
http://wiki.contextgarden.net/Command/startnarrower). To change the default 
settings, use \setupnarrower.


Jannik

Am 7. April 2015 bei 15:17:22, John Culleton (j...@wexfordpress.com) schrieb:

I am still matching my file with a previous
InDesign layout.

On one particular page I want to narrow the text
width a bit to cause the bottom line to fill
the full text width. I have tried adjusting
\hsize within braces, and changing setlayout. I
am considering putting all the text in a
framedtext but with the frame suppressed.

Any suggestions?  
--  
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
__
If your question is of interest to others as well, please add an 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] formal multipage table

2015-04-07 Thread Csikos Bela
Hello:

I would like to place a landscape formal multi-page table in a document.
I try to attach a pdf showing what I would like to achieve.
The example file was made in latex using array, booktabs, lscape, and  
longtable packages.

I read the contextgarden wiki pages on different table packages but according 
to that information none of the available table modules can be used to make 
such table. Is the information up-to-date and accurate? Furthermore, how can I 
insert the table in landscape mode on a portrait page (page numbers should be 
portrait). I need different headers for the first and the following pages, 
different footers for the last and the previous pages, rules width different 
depths for start/end and middle rules.

I experimented with both Tables and TABLE modules but before I go into it more 
I would like to know if it is feasible at all what I want.

This is one of the trials I made:

\defineipsum[tf][alternative=lines,n=2]

\starttext

\setupTABLE[r][first][style=\tf]

\bTABLE[split=repeat,option=stretch,frame=off,bottomframe=on]
\bTABLEhead
\bTR
  \bTH[nc=2]  This is the first page header \eTH
\eTR
\bTR
  \bTH  Column 1 \eTH  
  \bTH  Column 2 \eTH
\eTR
\eTABLEhead

\bTABLEnext
\bTR
  \bTH[nc=2]  This is the page header (not on first page) \eTH
\eTR
\bTR
  \bTH  Column 1 \eTH  
  \bTH  Column 2 \eTH
\eTR
\eTABLEnext

\bTABLEbody
\dorecurse{25}{
\bTR
  \bTC  \ipsum[tf] \eTC
  \bTC   \eTC
\eTR}
\eTABLEbody

\bTABLEfoot[bottomframe=off]
\bTR
  \bTC[nc=2] This is the footer \eTC
\eTR
\eTABLEfoot
\eTABLE

\stoptext

There is no separate footer, I could not get rid of the rule below the footer, 
and I don't understand why the firs header is not in normal typeface instead of 
bold.


Thanks in advance,

bcsikos

formal-multipage-table.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] text alignment in table

2015-04-07 Thread John Culleton
Given this table:
\starttabulate[|l|l]
\NC 8:00\emdash noon \NC Ordering/opening/training\NR 
\NC \NC Food~preparation\NC\NR 
\NC Noon\emdash 2:00 PM \NC Luncheon~sales\NR
\NC 2:00 PM\emdash 7:00 PM \NC General administration/baking \NR
\NC \NC Supplier meeting (this is you) \NC\NR 
\stoptabulate

the Word Food is left justified in the
column (good) and the word preparation
is right justified (bad). The same problem occurs
in the string Luncheon sales. The glyph ~
doesn't help.

I also tried the table variation in chapter
twenty-two of  The TeXbook. That doesn't work
in MKIV. 

My last resort is to introduce a one page pdf from
the InDesign-created pdf. But the must be a
Context solution.


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

Re: [NTG-context] \placefootnotes bug?

2015-04-07 Thread Hans Hagen

On 4/6/2015 7:34 AM, Pablo Rodriguez wrote:

On 04/05/2015 09:09 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,

In the attached files, watch the behavior of the second footnote: The
footnote numeral and accompanying note are out of alignment. Toggle this
line:

\setupnotation[footnote]
[before={\setupwhitespace[none]},indenting={yes,big},after={\blank[small]}]

On, we get a misalignment. Off, no misalignment. Is this a bug or am I
missing something? Thanks in advance for any advice and


Hi Idris,

I’m afraid it may be a bug.

The issue doesn’t show with stable version from 2014.01.03 00:40.

It seems to be triggered when either after or before contain \blank in
\setupnotation.

Just in case it might help,


\setting up whitespace in the middle of mechanisms that make an 
assumption about whitespace when it starts is kind of not-done so this 
better:


\setupnotation
  [footnote]
  [before=,
   indenting={yes,big},
   after=]

with

\startsubject[title=Endnotes]
\start
\setupwhitespace[none]
\placefootnotes
\stop
\stopsubject



-
  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] Figure-libray/resource library

2015-04-07 Thread Willi Egger
Hi all!

I am  working on an older project… Herein a resource-library is used. Now I 
have the problem, that Context does not find page 103 (resulting in a fatal 
error: LuaTeX error: PDF inclusion: required page 103 does not exist  == 
Fatal error occurred, no output PDF file produced!). 

When I put the the figure contained on page 103 as an 
\externalfigure[mylibrary][page=103], the figure is displayed. — Now I tried to 
remake the resource library with changing the format from MKII to MKIV. However 
there seems to be a problem, since I get only two pages of output. Even with 
the enclosed minimal I get only two empty pages… What to do?



test.log
Description: Binary data


test.pdf
Description: Adobe PDF document


test.xml
Description: XML document


Thank you for advice!

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
___