Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
On 06/20/2017 10:15 PM, Martin Oppegaard wrote:
> Thanks for the suggestions! Is there a way to get the amount of
> horizontal space the initial takes so that can be put in manually in
> front of the next paragraph?

Martin,

how about making the initial transparent?

\definecolor[transparentblue][t=0, a=1]
\setupwhitespace[medium]
\starttext
\placeinitial
Knuth writes:

\placeinitial \starteffect[hidden]K\stopeffect\input knuth
\setupinitial[color=transparentblue]

\placeinitial K\input knuth
\stoptext

The sample contains two methods.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Martin Oppegaard
Thanks for the suggestions! Is there a way to get the amount of horizontal
space the initial takes so that can be put in manually in front of the next
paragraph?

On Tue, Jun 20, 2017 at 6:51 PM, Pablo Rodriguez  wrote:

> On 06/09/2017 07:05 AM, Martin Oppegaard wrote:
> > Hi,
> >
> > When placing an initial and the paragraph is short, the initial is
> > laid over the next paragraph. Example:
> >
> > \starttext
> > \placeinitial
> > Knuth writes:
> >
> > \input knuth
> > \stoptext
> >
> > Is there anything to do about this?
>
> Hi Martin,
>
> I guess initials make sense only when used inside a paragraph. It is
> problematic when you have white space defined.
>
> Having margin initials is also another approach. You may compare both
> with the following sample:
>
> \setupwhitespace[medium]
> \setupinitial[location=margin]
> \starttext
> \placeinitial
> Knuth writes:
>
> \input knuth
> \setupinitial[location=text]
> \placeinitial
> Knuth writes:\\
> \input knuth
> \stoptext
>
> I hope 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-20 Thread Hans Hagen

On 6/20/2017 11:53 AM, Thomas Widmann wrote:

On 20 June 2017 at 10:41, Henri Menke  wrote:


On Tue, 2017-06-20 at 09:22 +0100, Thomas Widmann wrote:


I recently started experimenting with using ConTeXt (mkiv) for dictionary 
typesetting. It's a much
more attractive option than plain TeX or LaTeX because of the support for 
typesetting on a grid.

However, grid typesetting can easily result in a large number of orphans and 
widows, which really
doesn't look good in a dictionary.

In an ideal world, I'd want to alter the column width slightly to prevent them 
(because most
dictionaries aren't justified, this wouldn't be very noticeable).

Would it be possible to use LuaTeX to achieve this?  I.e., could one write some 
code that gets
triggered by orphans and widows and then alters the current column width 
slightly until the
problem disappears?  Has somebody already done this?  Or have the relevant TeX 
internals not been
Luafied yet?

I'd also be interested in other ways to solve this issue – for instance 
changing the looseness
dynamically instead of the column width.


Have a look at \widowpenalty and \clubpenalty.  Also use margin kerning and 
font expansion.


\widowpenalty and \clubpenalty are almost useless in this context –
believe me, I've tried! (I'm typesetting on a grid, with a fixed
number of lines per page.) Which is why I'm looking for alternatives.

Margin kerning and font expansion are definitely options, but again,
my real query would be how to trigger them dynamically to avoid a
widow or an orphan.

can you make a small example showing the problem

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Hans Hagen

On 6/20/2017 4:15 PM, Gerion Entrup wrote:

Am Dienstag, 20. Juni 2017, 13:25:42 CEST schrieb Gerion Entrup:

Am Dienstag, 20. Juni 2017, 11:45:19 CEST schrieb Henri Menke:

On Mon, 2017-06-19 at 02:34 +0200, Gerion Entrup wrote:

Good day,

I'm very new to ConTeXt, so maybe this is a fairly simple question.

I want to use TikZ in the document. The specific part of the document is:
 snip 
\usemodule[tikz]
\usetikzlibrary[positioning]
 /snip -

The problem seems to be that ConTeXt does not find the TikZ module. I use mkiv. 
The relevant
output:
 snip -
% context test-document.tex

mtx-context | run 1: luatex --fmt="/home/gerion/.texlive/texmf-var/luatex-
cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" 
--jobname="test-document"
--lua="/home/gerion/.texlive/texmf-var/luatex-
cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui" 
--no-parse-first-line
--c:currentrun=1 --c:fulljobname="./test-document.tex" 
--c:input="./test-document.tex" --
c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 1.0.4 (TeX Live 2017)
  system commands enabled.
open source > 1 > 1 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'test-document', input './test-document', 
result 'test-document'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > 
/home/gerion/sourcecode/grisu/test-document/test-document.tex
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
resolvers   > modules > 'tikz' is not found

tex error   > tex error on line 6 in file 
/home/gerion/sourcecode/test-document/test-
document.tex: ! Undefined control sequence

 \usetikzlibrary
 
l.6 \usetikzlibrary

  [positioning]

  1 \mainlanguage[de]
  2
  3 \setupcolors[state=start]
  4
  5 \usemodule[tikz]
  6 >>  \usetikzlibrary[positioning]
  7
- /snip -

Using TikZ within LaTeX is no problem in this distribution. Is this a problem 
of TeX Live (or the
distribution packaging)?
I've looked in the installed files of texlive-context and other modules are 
installed, even
modules that require TikZ (eg. gantt).


With TL 2017 the following example works as without problems.  Post a minimal 
example to reproduce
your problem, otherwise we can't help you.  Also, your problem suggests a 
faulty TL installation.

\usemodule[tikz]
\usetikzlibrary[positioning]

\starttext

\tikz\node{Hello World!};

\stoptext

Thanks so far. This exact example leads to the same error:
--- snip --
% context test.tex

mtx-context | run 1: luatex 
--fmt="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" 
--jobname="test" 
--lua="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui" 
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 
--c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 1.0.4 (TeX Live 2017)
  system commands enabled.
open source > 1 > 1 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/gerion/sourcecode/context-test/test.tex
resolvers   > modules > 'tikz' is not found

tex error   > tex error on line 2 in file 
/home/gerion/sourcecode/context-test/test.tex: ! Undefined control sequence

 \usetikzlibrary
 
l.2 \usetikzlibrary

  [positioning]

1 \usemodule[tikz]
2 >>  \usetikzlibrary[positioning]
3
4 \starttext
5
6 \tikz\node{Hello World!};
7
8 \stoptext
9
 /snip 

I ran "mtxrun --generate" before using context. Is there anything else I
can do (run another command etc.)? Otherwise I'll file a bug in my
distribution (I use Gentoo).
Do you know a way to quickfix it?


Update: The entire pgf folder in the third party module folder is missing
in my distribution package. Copying the folder from a fresh Texlive
installation does not work. I've filed a bug in my distribution. The
problem seems to be there.

you probably 

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
On 06/09/2017 07:05 AM, Martin Oppegaard wrote:
> Hi,
> 
> When placing an initial and the paragraph is short, the initial is
> laid over the next paragraph. Example:
> 
> \starttext
> \placeinitial
> Knuth writes:
> 
> \input knuth
> \stoptext
> 
> Is there anything to do about this?

Hi Martin,

I guess initials make sense only when used inside a paragraph. It is
problematic when you have white space defined.

Having margin initials is also another approach. You may compare both
with the following sample:

\setupwhitespace[medium]
\setupinitial[location=margin]
\starttext
\placeinitial
Knuth writes:

\input knuth
\setupinitial[location=text]
\placeinitial
Knuth writes:\\
\input knuth
\stoptext

I hope 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Rogers, Michael K
Hi,

Perhaps this?:

\starttext
\placeinitial
Knuth writes:
\hfill\break
\input knuth
\stoptext

There may be a more ConTeXt-idiomatic way, in which case someone else will 
probably say.  Note that structurally the above combines "Knuth writes:" and 
the first text segment (up to the first blank line or \par) of knuth.tex into a 
single paragraph with some glue and a break between them.  You would lose any 
paragraph-formatting of the first segment of knuth.tex.  If there is any, you 
might have to do that by hand.

If you wanted to have the Knuth quote begin below the initial K, then someone 
else will have to answer.  I don't know off hand.

Cheers,

Michael

> On Jun 8, 2017, at 10:05 PM, Martin Oppegaard  
> wrote:
>
> Hi,
>
> When placing an initial and the paragraph is short, the initial is laid over 
> the next paragraph. Example:
>
> \starttext
> \placeinitial
> Knuth writes:
>
> \input knuth
> \stoptext
>
> Is there anything to do about this?
>
> Regards,
> Martin Oppegaard
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Gerion Entrup
Am Dienstag, 20. Juni 2017, 13:25:42 CEST schrieb Gerion Entrup:
> Am Dienstag, 20. Juni 2017, 11:45:19 CEST schrieb Henri Menke:
> > On Mon, 2017-06-19 at 02:34 +0200, Gerion Entrup wrote:
> > > Good day,
> > > 
> > > I'm very new to ConTeXt, so maybe this is a fairly simple question.
> > > 
> > > I want to use TikZ in the document. The specific part of the document is:
> > >  snip 
> > > \usemodule[tikz]
> > > \usetikzlibrary[positioning]
> > >  /snip -
> > > 
> > > The problem seems to be that ConTeXt does not find the TikZ module. I use 
> > > mkiv. The relevant
> > > output:
> > >  snip -
> > > % context test-document.tex
> > > 
> > > mtx-context | run 1: luatex 
> > > --fmt="/home/gerion/.texlive/texmf-var/luatex-
> > > cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" 
> > > --jobname="test-document"
> > > --lua="/home/gerion/.texlive/texmf-var/luatex-
> > > cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui"
> > >  --no-parse-first-line
> > > --c:currentrun=1 --c:fulljobname="./test-document.tex" 
> > > --c:input="./test-document.tex" --
> > > c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> > > This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
> > >  system commands enabled.
> > > open source > 1 > 1 > 
> > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> > > 
> > > ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
> > > english/english
> > > 
> > > system  > 'cont-new.mkiv' loaded
> > > open source > 2 > 2 > 
> > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> > > close source> 2 > 2 > 
> > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> > > system  > files > jobname 'test-document', input 
> > > './test-document', result 'test-document'
> > > fonts   > latin modern fonts are not preloaded
> > > languages   > language 'en' is active
> > > open source > 2 > 3 > 
> > > /home/gerion/sourcecode/grisu/test-document/test-document.tex
> > > colors  > 'rgb' color space is supported
> > > colors  > 'cmyk' color space is supported
> > > resolvers   > modules > 'tikz' is not found
> > > 
> > > tex error   > tex error on line 6 in file 
> > > /home/gerion/sourcecode/test-document/test-
> > > document.tex: ! Undefined control sequence
> > > 
> > >  \usetikzlibrary 
> > > 
> > > l.6 \usetikzlibrary
> > >  [positioning]
> > > 
> > >  1 \mainlanguage[de]
> > >  2 
> > >  3 \setupcolors[state=start]
> > >  4 
> > >  5 \usemodule[tikz]
> > >  6 >>  \usetikzlibrary[positioning]
> > >  7
> > > - /snip -
> > > 
> > > Using TikZ within LaTeX is no problem in this distribution. Is this a 
> > > problem of TeX Live (or the
> > > distribution packaging)?
> > > I've looked in the installed files of texlive-context and other modules 
> > > are installed, even
> > > modules that require TikZ (eg. gantt).
> > 
> > With TL 2017 the following example works as without problems.  Post a 
> > minimal example to reproduce
> > your problem, otherwise we can't help you.  Also, your problem suggests a 
> > faulty TL installation.
> > 
> > \usemodule[tikz]
> > \usetikzlibrary[positioning]
> > 
> > \starttext
> > 
> > \tikz\node{Hello World!};
> > 
> > \stoptext
> Thanks so far. This exact example leads to the same error:
> --- snip --
> % context test.tex
> 
> mtx-context | run 1: luatex 
> --fmt="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en"
>  --jobname="test" 
> --lua="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui"
>  --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" 
> --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
>  system commands enabled.
> open source > 1 > 1 > 
> /usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
> english/english
> 
> system  > 'cont-new.mkiv' loaded
> open source > 2 > 2 > 
> /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> close source> 2 > 2 > 
> /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> system  > files > jobname 'test', input './test', result 'test'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > 2 > 3 > /home/gerion/sourcecode/context-test/test.tex
> resolvers   > modules > 'tikz' is not found
> 
> tex error   > tex error on line 2 in file 
> /home/gerion/sourcecode/context-test/test.tex: ! Undefined control sequence
> 
>  \usetikzlibrary 
> 
> l.2 \usetikzlibrary
>  [positioning]
> 
> 1 \usemodule[tikz]
> 2 >>  \usetikzlibrary[positioning]
> 3 
> 4 

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Gerion Entrup
Am Dienstag, 20. Juni 2017, 11:45:19 CEST schrieb Henri Menke:
> On Mon, 2017-06-19 at 02:34 +0200, Gerion Entrup wrote:
> > Good day,
> > 
> > I'm very new to ConTeXt, so maybe this is a fairly simple question.
> > 
> > I want to use TikZ in the document. The specific part of the document is:
> >  snip 
> > \usemodule[tikz]
> > \usetikzlibrary[positioning]
> >  /snip -
> > 
> > The problem seems to be that ConTeXt does not find the TikZ module. I use 
> > mkiv. The relevant
> > output:
> >  snip -
> > % context test-document.tex
> > 
> > mtx-context | run 1: luatex 
> > --fmt="/home/gerion/.texlive/texmf-var/luatex-
> > cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" 
> > --jobname="test-document"
> > --lua="/home/gerion/.texlive/texmf-var/luatex-
> > cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui" 
> > --no-parse-first-line
> > --c:currentrun=1 --c:fulljobname="./test-document.tex" 
> > --c:input="./test-document.tex" --
> > c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> > This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
> >  system commands enabled.
> > open source > 1 > 1 > 
> > /usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> > 
> > ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
> > english/english
> > 
> > system  > 'cont-new.mkiv' loaded
> > open source > 2 > 2 > 
> > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> > close source> 2 > 2 > 
> > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> > system  > files > jobname 'test-document', input './test-document', 
> > result 'test-document'
> > fonts   > latin modern fonts are not preloaded
> > languages   > language 'en' is active
> > open source > 2 > 3 > 
> > /home/gerion/sourcecode/grisu/test-document/test-document.tex
> > colors  > 'rgb' color space is supported
> > colors  > 'cmyk' color space is supported
> > resolvers   > modules > 'tikz' is not found
> > 
> > tex error   > tex error on line 6 in file 
> > /home/gerion/sourcecode/test-document/test-
> > document.tex: ! Undefined control sequence
> > 
> >  \usetikzlibrary 
> > 
> > l.6 \usetikzlibrary
> >  [positioning]
> > 
> >  1 \mainlanguage[de]
> >  2 
> >  3 \setupcolors[state=start]
> >  4 
> >  5 \usemodule[tikz]
> >  6 >>  \usetikzlibrary[positioning]
> >  7
> > - /snip -
> > 
> > Using TikZ within LaTeX is no problem in this distribution. Is this a 
> > problem of TeX Live (or the
> > distribution packaging)?
> > I've looked in the installed files of texlive-context and other modules are 
> > installed, even
> > modules that require TikZ (eg. gantt).
> 
> With TL 2017 the following example works as without problems.  Post a minimal 
> example to reproduce
> your problem, otherwise we can't help you.  Also, your problem suggests a 
> faulty TL installation.
> 
> \usemodule[tikz]
> \usetikzlibrary[positioning]
> 
> \starttext
> 
> \tikz\node{Hello World!};
> 
> \stoptext
Thanks so far. This exact example leads to the same error:
--- snip --
% context test.tex

mtx-context | run 1: luatex 
--fmt="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en"
 --jobname="test" 
--lua="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" 
--c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
 system commands enabled.
open source > 1 > 1 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/gerion/sourcecode/context-test/test.tex
resolvers   > modules > 'tikz' is not found

tex error   > tex error on line 2 in file 
/home/gerion/sourcecode/context-test/test.tex: ! Undefined control sequence

 \usetikzlibrary 

l.2 \usetikzlibrary
 [positioning]

1 \usemodule[tikz]
2 >>  \usetikzlibrary[positioning]
3 
4 \starttext
5 
6 \tikz\node{Hello World!};
7 
8 \stoptext
9
 /snip 

I ran "mtxrun --generate" before using context. Is there anything else I
can do (run another command etc.)? Otherwise I'll file a bug in my
distribution (I use Gentoo).
Do you know a way to quickfix it?

Gerion

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-20 Thread Thomas Widmann
On 20 June 2017 at 10:41, Henri Menke  wrote:
>
> On Tue, 2017-06-20 at 09:22 +0100, Thomas Widmann wrote:
> >
> > I recently started experimenting with using ConTeXt (mkiv) for dictionary 
> > typesetting. It's a much
> > more attractive option than plain TeX or LaTeX because of the support for 
> > typesetting on a grid.
> >
> > However, grid typesetting can easily result in a large number of orphans 
> > and widows, which really
> > doesn't look good in a dictionary.
> >
> > In an ideal world, I'd want to alter the column width slightly to prevent 
> > them (because most
> > dictionaries aren't justified, this wouldn't be very noticeable).
> >
> > Would it be possible to use LuaTeX to achieve this?  I.e., could one write 
> > some code that gets
> > triggered by orphans and widows and then alters the current column width 
> > slightly until the
> > problem disappears?  Has somebody already done this?  Or have the relevant 
> > TeX internals not been
> > Luafied yet?
> >
> > I'd also be interested in other ways to solve this issue – for instance 
> > changing the looseness
> > dynamically instead of the column width.
>
> Have a look at \widowpenalty and \clubpenalty.  Also use margin kerning and 
> font expansion.

\widowpenalty and \clubpenalty are almost useless in this context –
believe me, I've tried! (I'm typesetting on a grid, with a fixed
number of lines per page.) Which is why I'm looking for alternatives.

Margin kerning and font expansion are definitely options, but again,
my real query would be how to trigger them dynamically to avoid a
widow or an orphan.

Cheers,

Thomas
-- 
Thomas Widmann
Director
Complexli Limited
+44 789 444 3009
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Henri Menke
On Fri, 2017-06-09 at 06:05 +0100, Martin Oppegaard wrote:
> Hi,
> 
> When placing an initial and the paragraph is short, the initial is laid over 
> the next paragraph.
> Example:
> 
> \starttext
> \placeinitial
> Knuth writes:
> 
> \input knuth
> \stoptext
> 
> Is there anything to do about this?

- Make longer paragraphs.
- Don't use initials.

What kind of answer do you expect?

> Regards,
> Martin Oppegaard
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Henri Menke
On Mon, 2017-06-19 at 02:34 +0200, Gerion Entrup wrote:
> Good day,
> 
> I'm very new to ConTeXt, so maybe this is a fairly simple question.
> 
> I want to use TikZ in the document. The specific part of the document is:
>  snip 
> \usemodule[tikz]
> \usetikzlibrary[positioning]
>  /snip -
> 
> The problem seems to be that ConTeXt does not find the TikZ module. I use 
> mkiv. The relevant
> output:
>  snip -
> % context test-document.tex
> 
> mtx-context | run 1: luatex --fmt="/home/gerion/.texlive/texmf-var/luatex-
> cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" 
> --jobname="test-document"
> --lua="/home/gerion/.texlive/texmf-var/luatex-
> cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui" 
> --no-parse-first-line
> --c:currentrun=1 --c:fulljobname="./test-document.tex" 
> --c:input="./test-document.tex" --
> c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
>  system commands enabled.
> open source > 1 > 1 > 
> /usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
> english/english
> 
> system  > 'cont-new.mkiv' loaded
> open source > 2 > 2 > 
> /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> close source> 2 > 2 > 
> /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> system  > files > jobname 'test-document', input './test-document', 
> result 'test-document'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > 2 > 3 > 
> /home/gerion/sourcecode/grisu/test-document/test-document.tex
> colors  > 'rgb' color space is supported
> colors  > 'cmyk' color space is supported
> resolvers   > modules > 'tikz' is not found
> 
> tex error   > tex error on line 6 in file 
> /home/gerion/sourcecode/test-document/test-
> document.tex: ! Undefined control sequence
> 
>  \usetikzlibrary 
> 
> l.6 \usetikzlibrary
>  [positioning]
> 
>  1 \mainlanguage[de]
>  2 
>  3 \setupcolors[state=start]
>  4 
>  5 \usemodule[tikz]
>  6 >>  \usetikzlibrary[positioning]
>  7
> - /snip -
> 
> Using TikZ within LaTeX is no problem in this distribution. Is this a problem 
> of TeX Live (or the
> distribution packaging)?
> I've looked in the installed files of texlive-context and other modules are 
> installed, even
> modules that require TikZ (eg. gantt).

With TL 2017 the following example works as without problems.  Post a minimal 
example to reproduce
your problem, otherwise we can't help you.  Also, your problem suggests a 
faulty TL installation.

\usemodule[tikz]
\usetikzlibrary[positioning]

\starttext

\tikz\node{Hello World!};

\stoptext


> Thanks in advance,
> Gerion
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-20 Thread Henri Menke
On Tue, 2017-06-20 at 09:22 +0100, Thomas Widmann wrote:
> Hello,
> 
> I recently started experimenting with using ConTeXt (mkiv) for dictionary 
> typesetting. It's a much
> more attractive option than plain TeX or LaTeX because of the support for 
> typesetting on a grid.
> 
> However, grid typesetting can easily result in a large number of orphans and 
> widows, which really
> doesn't look good in a dictionary.
> 
> In an ideal world, I'd want to alter the column width slightly to prevent 
> them (because most
> dictionaries aren't justified, this wouldn't be very noticeable).
> 
> Would it be possible to use LuaTeX to achieve this?  I.e., could one write 
> some code that gets
> triggered by orphans and widows and then alters the current column width 
> slightly until the
> problem disappears?  Has somebody already done this?  Or have the relevant 
> TeX internals not been
> Luafied yet?
> 
> I'd also be interested in other ways to solve this issue – for instance 
> changing the looseness
> dynamically instead of the column width.

Have a look at \widowpenalty and \clubpenalty.  Also use margin kerning and 
font expansion.

> Thanks a lot,
> 
> Thomas
> --
> Thomas Widmann
> Director
> Complexli Limited
> +44 789 444 3009
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-20 Thread Thomas Widmann
Hello,

I recently started experimenting with using ConTeXt (mkiv) for dictionary
typesetting. It's a much more attractive option than plain TeX or LaTeX
because of the support for typesetting on a grid.

However, grid typesetting can easily result in a large number of orphans
and widows, which really doesn't look good in a dictionary.

In an ideal world, I'd want to alter the column width slightly to prevent
them (because most dictionaries aren't justified, this wouldn't be very
noticeable).

Would it be possible to use LuaTeX to achieve this?  I.e., could one write
some code that gets triggered by orphans and widows and then alters the
current column width slightly until the problem disappears?  Has somebody
already done this?  Or have the relevant TeX internals not been Luafied yet?

I'd also be interested in other ways to solve this issue – for instance
changing the looseness dynamically instead of the column width.

Thanks a lot,

Thomas
--
Thomas Widmann
Director
Complexli Limited
+44 789 444 3009
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Gerion Entrup
Good day,

I'm very new to ConTeXt, so maybe this is a fairly simple question.

I want to use TikZ in the document. The specific part of the document is:
 snip 
\usemodule[tikz]
\usetikzlibrary[positioning]
 /snip -

The problem seems to be that ConTeXt does not find the TikZ module. I use mkiv. 
The relevant output:
 snip -
% context test-document.tex

mtx-context | run 1: luatex 
--fmt="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en"
 --jobname="test-document" 
--lua="/home/gerion/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test-document.tex" 
--c:input="./test-document.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
 system commands enabled.
open source > 1 > 1 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2017.6.11  int: 
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > 
/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'test-document', input './test-document', 
result 'test-document'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > 
/home/gerion/sourcecode/grisu/test-document/test-document.tex
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
resolvers   > modules > 'tikz' is not found

tex error   > tex error on line 6 in file 
/home/gerion/sourcecode/test-document/test-document.tex: ! Undefined control 
sequence

 \usetikzlibrary 

l.6 \usetikzlibrary
 [positioning]

 1 \mainlanguage[de]
 2 
 3 \setupcolors[state=start]
 4 
 5 \usemodule[tikz]
 6 >>  \usetikzlibrary[positioning]
 7
- /snip -

Using TikZ within LaTeX is no problem in this distribution. Is this a problem 
of TeX Live (or the distribution packaging)?
I've looked in the installed files of texlive-context and other modules are 
installed, even modules that require TikZ (eg. gantt).

Thanks in advance,
Gerion
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Footnotes in paragraph form + annotating them in margin

2017-06-20 Thread Michelle Rodzis
Dear list,


in my document I have several kinds of footnotes including footnotes in
paragraph form. In some cases I need to annotate these. The annotation
should to appear in the outer margin of the page and in line with the
annotated footnote.

I tried a few different approaches, but none yields exactly the result I
want to obtain:


1. I defined a seperate footnote type for the annotations according to
the wiki, but the annotations are centered in the margin and not in line
with the footnote(s) they refer to.


2. As suggested on the mailinglist some time ago, I tested

\myCustomFootnote{Text.\margintext[scope=local]{Annotation.}}

but since I have \definenote[myCustomNote][paragraph=yes], no text in
the margin is displayed unless I delete this parameter (which
unfortunately is no option for my document layout).


Do you have any ideas how to solve this?


Thanks in advance and best regards,
Michelle


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Initials and short paragraph

2017-06-20 Thread Martin Oppegaard
Hi,

When placing an initial and the paragraph is short, the initial is
laid over the next paragraph. Example:

\starttext
\placeinitial
Knuth writes:

\input knuth
\stoptext

Is there anything to do about this?

Regards,
Martin Oppegaard
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] how to prevent stupid typos?

2017-06-20 Thread Brian Ballsun-Stanton
Hi Pablo,

Your script doesn't have texroot set.

You either need to source ~/.profile (or whatever sets texroot) or
explicitly set it.

At the top of my compile script, I've got:

TEXROOT=/opt/context/tex/
TEXMFOS=$TEXROOT/texmf-linux-64
export PATH=$TEXMFOS/bin:$PATH

I think the fact that you're sourcing setuptex but passing in $1 as a file
path is problematic, since setuptex eats $1 as the texroot.


On 8 June 2017 at 14:05, Pablo Rodriguez  wrote:

> On 06/07/2017 11:01 PM, Hans Hagen wrote:
> > sure it's no big deal to write such a script but in decades of tex i
> > never felt the need
>
> I wrote a small script for my Linux machine (check-context.sh), to be
> able to check a single file:
>
>   source $HOME/ctxbeta/tex/setuptex
>   mtxrunjit --autogenerate --script check $1
>   echo $1
>
> But when applied to a file, I get the following:
>
>   $ check-context untitled.tex
>   The argument "/home/ousia/untitled.tex" is not a valid TEXROOT path.
>   (There is no file "/home/ousia/untitled.tex/texmf/tex/plain
>   /base/plain.tex")
>   8  grouping error  ode[abc]  This is \linenote{abed
>intended.\stopt
>10  missing stop  enote{abed intended.\stoptext
>  (see line 7)
>
>   untitled.tex
>
> I mean, I get the output, but after an error. $1 has full path in the
> first ocurrence, but it has only the relative path with echo.
>
> Of course, I get not error by direct invocation:
>
>   $ mtxrunjit --autogenerate --script check untitled.tex
>   8  grouping error  ode[abc]  This is \linenote{abed
>intended.\stopt
>10  missing stop  enote{abed intended.\stoptext
> (see line 7)
>
> What am I doing wrong here?
>
> Many thanks for your help,
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>



-- 



Brian Ballsun-Stanton Ph.D.
FAIMS Project  - Data Architect

br...@fedarch.org 0479 178 749
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___