[NTG-context] Randomize control points in metapost/metafun?

2016-07-31 Thread Mikael P. Sundqvist
Hi!

I look for a way to randomize control points of a path, leaving the
coordinates themselves untouched.

The reason is the following: I want to draw (for example) a circle
with a triangle inside, and I want them to look slightly randomized.
If I do (see attached pdf for a typical result of this)

\startMPpage
draw fullcircle scaled 2cm randomized 0.1cm;
draw ((1cm,0)--(0,1cm)--(-1cm,0)--cycle) randomized 0.1cm;
\stopMPpage

then the corners of the triangle does not stay on the circle (and I
want them to). [I dont want the triangle to consist of perfectly
straight lines, so I cannot (directly) draw the triangle using
different points along the randomized circle] I imagine that one could
achieve what I want if one could randomize the control points only.

Also, is it possible to randomize a picture (consisting of several
paths/points) somehow, without randomizing each part of it manually?

/Mikael


ctx-listexample.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
___

Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-31 Thread Aditya Mahajan

On Sat, 30 Jul 2016, Thangalin wrote:


Hi,

Possible problem converting SVG to PDF.

$ cat test.tex
\setupexternalfigures[
 order={svg,pdf,png},
 location={local,default,global},
 directory={images},
 frameoffset=.5em,
 maxwidth=\makeupwidth,
 width=\makeupwidth,
]

\starttext
   \placefigure{}{\externalfigure[images/drawing.svg]}
\stoptext

... logging ...
** (inkscape:19807): WARNING **: File path
"--export-pdf=/home/username/temp/images/m_k_i_v_drawing.svg.pdf"
includes directory that doesn't exist.
... more logging ...


Please don't cross-post. See my detailed reply at:
http://tex.stackexchange.com/a/321837/323

For Hans: There is a bug in graph-inc.lua. You need to remove `-A` from 
programs.inkscape:


programs.inkscape = {
command  = "inkscape",
pdfargument = [[
"%oldname%"
--export-dpi=600
--export-pdf="%newname%"
]],
pngargument = [[
"%oldname%"
--export-dpi=600
--export-png="%newname%"
]],
}

-A and --export-pdf are synonyms. When inkscape -A --export-pdf="..." is 
used, inkscape thinks that `--export-pdf="..."` is the filename (but only 
if "..." is not in the current directory, weird).


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] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Pablo Rodriguez
On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:
> Dear all,
> 
> I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30 00:26 MKIV 
> beta

Hi Jan Willem,

are patterns for Brittish English better?

\starttext
\hyphenatedword{schematic, maintenance and integrated
beginning procedure adequately style}


\uk\hyphenatedword{schematic, maintenance and integrated
   beginning procedure adequately style}
\stoptext

Sorry, but English hyphenation is too tricky for me.

Just in case it helps,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Jan Willem Flamma
Dear all,

I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30 00:26 MKIV beta

Below a MWE with some example sentences where the words schematic, maintenance 
and integrated are incorrect hyphenated

\mainlanguage[en]
\setuppapersize[A4][A4] 


\setuplayout
[height=middle,
 width=middle,
 backspace=1.25in,
 topspace=0.5in,
 headerdistance=0cm]

\definefontfamily [mainface] [sans]  [DejaVu Sans]
\setupbodyfont[mainface,sans,9pt]

\starttext
The following gives a sequence of events describing what happens when the ram 
close function is activated from one of the control panels. Figure 4.9 provides 
a simplified schematic of the hydraulic control system for activating the ram 
close function.

Test programs can include visual inspections, functional operations, pressure 
tests, maintenance practices and drills.

Subsea BOP systems include choke and kill lines built into the BOP stack and 
LMRP and integrated with the marine riser system. 
\stoptext

Kind regards,
Jan Willem Flamma



> On 31 jul. 2016, at 16:51, Hans Hagen  wrote:
> 
> On 7/31/2016 12:57 PM, Robert Blackstone wrote:
>> Dear all,
>> 
>> In the setupfile of my project I have \mainlanguage[en]. The font used is 
>> Verdana.
>> With mkiv versions till october 2015 the hyphenation of English words was 
>> always correct.
>> 
>> The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) 
>> give hyphenations that are definitely wrong.
>> Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle
>> 
>> I made some tests with Linux Libertine sans and here also the earlier mkiv's 
>> gave correct hyphenations, the july version wrong ones.
>> 
>> So it seems that ref. hyphenation something is wrong with this mkiv-version. 
>>  Or do I now have to use something other than  \mainlanguage[en] ?
> 
> no example so no solution
> 
> Hans
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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] Math columns in Natural Tables

2016-07-31 Thread Henri Menke
Dear list,

with the old tabulate macros there was the possibility to format columns as 
math (m for inline, M for display).  Is there any possibility to typeset cells 
in math mode in Natural Tables?  This way, the hyphen would be rendered as 
minus and spacing around relation and binary operators would be consistent 
(example below).

Cheers, Henri

---

\starttext

\starttabulate[|m|]
  \NC -4.11\%<0.02\% \NC\NR
\stoptabulate

%\setupTABLE[???]
\startTABLE
  \NC -4.11\%<0.02\% \NC\NR
\stopTABLE

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

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

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Hans Hagen

On 7/31/2016 12:57 PM, Robert Blackstone wrote:

Dear all,

In the setupfile of my project I have \mainlanguage[en]. The font used is 
Verdana.
With mkiv versions till october 2015 the hyphenation of English words was 
always correct.

The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) give 
hyphenations that are definitely wrong.
Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle

I made some tests with Linux Libertine sans and here also the earlier mkiv's 
gave correct hyphenations, the july version wrong ones.

So it seems that ref. hyphenation something is wrong with this mkiv-version.  
Or do I now have to use something other than  \mainlanguage[en] ?


no example so no solution

Hans


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

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

Re: [NTG-context] gmane might go off-line soon

2016-07-31 Thread Joseph Canedo
I personally use mail-archive.org.  
http://www.mail-archive.com/ntg-context%40ntg.nl/
Best,

Joseph

DeĀ : Arthur Reutenauer___
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] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Robert Blackstone
Dear all,

In the setupfile of my project I have \mainlanguage[en]. The font used is 
Verdana. 
With mkiv versions till october 2015 the hyphenation of English words was 
always correct.

The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) give 
hyphenations that are definitely wrong.
Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle 

I made some tests with Linux Libertine sans and here also the earlier mkiv's 
gave correct hyphenations, the july version wrong ones.

So it seems that ref. hyphenation something is wrong with this mkiv-version.  
Or do I now have to use something other than  \mainlanguage[en] ? 

BTW, I found a similar discussion on this list at the beginning of february. 
Apparently the problem either was not solved or has returned.

Thanks in advance for advice. 

Best regards,

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