[NTG-context] \nolist deprecated?

2015-12-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

\nolist produces "Undefined control sequence" - bug? Deprecated command?

Try:


\starttext
  \placecontent

  \section{Aaa \nolist{Bbb}}
\stoptext


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

NoList.log
Description: Binary data


NoList.mkiv
Description: Binary data
___
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] Switching to landscape

2015-12-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Mon, 28 Dec 2015 00:06:08 +0100, Wolfgang Schuster 
 wrote:


It’s a bug but for the moment you can call \setuplayout (no arguments
are necessary) after \setupapersize to have the correct sizes in the PDF.


OK, it works.

One question related to this theme:

How width and height of the current layout are adopted when switching to 
landscape?

I noticed that once I have set the layout "height", I have to reset the value 
manually.
If the default "height" is kept, no manual reset is necessary.

See this:


%\setuplayout[height=277mm] % This value is useful for portrait orientation; 
try to un/comment

\starttext
  Aaa

  \page
  \setuppapersize[A4,landscape] % "Height" should be reset
  \setuplayout

  Bbb

  \typefile{Text.txt}
\stoptext


Is there a way to "reset" to the default (landscape) layout?
(Even \setuplayout[reset] doesn't do the job.)


Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

PapSz2.mkiv
Description: Binary data
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
tristique senectus et netus et malesuada fames ac turpis egestas. Donec nunc
lorem, sollicitudin vel sodales eget, vehicula nec mi. Proin ullamcorper rutrum
nibh, at porttitor nunc euismod et. Donec faucibus nisi faucibus ipsum porttitor
pharetra. Sed elementum, lectus nec congue imperdiet, ipsum leo viverra nisi, 
sit
amet commodo odio odio id nisl. Fusce sagittis lobortis nisi sed consectetur. 
Nam
egestas, sem ut fermentum convallis, ipsum tellus venenatis augue, eget
condimentum risus quam id erat. Sed metus dui, sollicitudin pharetra 
pellentesque
sed, placerat eget augue. Mauris sodales pretium tortor vitae rutrum. Proin quam
sem, lobortis tincidunt pretium vitae, feugiat eu lacus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
tristique senectus et netus et malesuada fames ac turpis egestas. Donec nunc
lorem, sollicitudin vel sodales eget, vehicula nec mi. Proin ullamcorper rutrum
nibh, at porttitor nunc euismod et. Donec faucibus nisi faucibus ipsum porttitor
pharetra. Sed elementum, lectus nec congue imperdiet, ipsum leo viverra nisi, 
sit
amet commodo odio odio id nisl. Fusce sagittis lobortis nisi sed consectetur. 
Nam
egestas, sem ut fermentum convallis, ipsum tellus venenatis augue, eget
condimentum risus quam id erat. Sed metus dui, sollicitudin pharetra 
pellentesque
sed, placerat eget augue. Mauris sodales pretium tortor vitae rutrum. Proin quam
sem, lobortis tincidunt pretium vitae, feugiat eu lacus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
tristique senectus et netus et malesuada fames ac turpis egestas. Donec nunc
lorem, sollicitudin vel sodales eget, vehicula nec mi. Proin ullamcorper rutrum
nibh, at porttitor nunc euismod et. Donec faucibus nisi faucibus ipsum porttitor
pharetra. Sed elementum, lectus nec congue imperdiet, ipsum leo viverra nisi, 
sit
amet commodo odio odio id nisl. Fusce sagittis lobortis nisi sed consectetur. 
Nam
egestas, sem ut fermentum convallis, ipsum tellus venenatis augue, eget
condimentum risus quam id erat. Sed metus dui, sollicitudin pharetra 
pellentesque
sed, placerat eget augue. Mauris sodales pretium tortor vitae rutrum. Proin quam
sem, lobortis tincidunt pretium vitae, feugiat eu lacus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
tristique senectus et netus et malesuada fames ac turpis egestas. Donec nunc
lorem, sollicitudin vel sodales eget, vehicula nec mi. Proin ullamcorper rutrum
nibh, at porttitor nunc euismod et. Donec faucibus nisi faucibus ipsum porttitor
pharetra. Sed elementum, lectus nec congue imperdiet, ipsum leo viverra nisi, 
sit
amet commodo odio odio id nisl. Fusce sagittis lobortis nisi sed consectetur. 
Nam
egestas, sem ut fermentum convallis, ipsum tellus venenatis augue, eget
condimentum risus quam id erat. Sed metus dui, sollicitudin pharetra 
pellentesque
sed, placerat eget augue. Mauris sodales pretium tortor vitae rutrum. Proin quam
sem, lobortis tincidunt pretium vitae, feugiat eu lacus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
tristique senectus et netus et malesuada fames ac turpis egestas. Donec nunc
lorem, sollicitudin vel sodales eget, vehicula nec mi. Proin ullamcorper rutrum
nibh, at porttitor nunc euismod et. Donec faucibus nisi faucibus ipsum porttitor
pharetra. Sed elementum, lectus nec congue 

Re: [NTG-context] Plot using pgfplots: order of appearance of two simple plots

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Mojca,

thanks a lot for your answer and proposals.

I'll try them one after other... Option "reverse legend" is most promising so 
far.

Best regards,

Lukas


On Mon, 21 Dec 2015 14:45:25 +0100, Mojca Miklavec 
<mojca.miklavec.li...@gmail.com> wrote:


On 21 December 2015 at 13:55, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

I'm just starting with pgfplots library.

I have two plots, one being filled:


\usemodule[pgfplots]

\starttext
  \starttikzpicture
\startaxis[legend entries={Sin,Cos}]
  \addplot+[mark=none] {sin(deg(x))};
  \addplot+[mark=none,fill]{cos(deg(x))};
\stopaxis
  \stoptikzpicture
\stoptext


The problem is that the latter plot hides the former as they appear in the
order they are defined.

A solution would be to change the order - to swap plot "Sin" and "Cos".

But also I need to keep the order in which plots appear in the legend - it's
important to keep "Sin" followed by "Cos";
I'm looking for a way to set the order of plots, something like

\addplot+[mark=none,order=2] {sin(deg(x))};
\addplot+[mark=none,order=1] {sin(deg(x))};

or

\addplot+[mark=none,z=2] {sin(deg(x))};
\addplot+[mark=none,z=1] {sin(deg(x))};

Although I'm having pgfplots.pdf ("Package PGFPLOTS manual", 20. 10. 2013)
open, I cannot find a solution.

Would anyone more experienced have an idea?


There is an option "z buffer", but I guess that's only applicable for
a single \addplot.

There is an option "reverse legend" (page 213), but you might need to
take extra care about colours:

\startaxis[legend entries={Cos,Sin},reverse legend]
  \addplot+[mark=none,fill]{cos(deg(x))};
  \addplot+[mark=none] {sin(deg(x))};
\stopaxis

There is an option "reverse stacked plots" which I don't fully
understand, but it claims to reverse a number of things.

There is (somewhat low level) support for layers in TikZ. You can look
for "on background", "pgfonlayer", "on background layer", etc. (But
that calls for slightly more work than just providing a simple option
like "zorder=...").

If you don't get the answer here, I would suggest you to ask the
author of pgfplots, to raise the question on their mailing list (if
they have one) or to try luck on http://tex.stackexchange.com/. There
are probably not so many experts in pgfplots on this mailing list and
the question doesn't seem to be ConTeXt-specific.

(I'm often using matplotlib with export to TikZ, even though that's
sometimes horribly slow and probably not exactly what you were looking
for either.)

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
___



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Pgfplots - "reverse legend" by Lua

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

one more question about pgfplots & Lua:

how to specify "reverse legend" by Lua?

Here are some examples:

- Plot 1 contains no Lua code and gives the desired result (OK);
- Plot 2 uses Lua to specify "legend entries" successfully (OK);
- Plot 3 tries to use Lua to specify "reverese legend", but doesn't work;


\usemodule[pgfplots]

\starttext
  Plot 1 -- OK

  \starttikzpicture
\startaxis[legend entries={Cos,Sin2,Sin},reverse legend]
  \addplot+[mark=none,fill,green]{cos(deg(x))}\closedcycle;
  \addplot+[mark=none,fill,yellow]{0.5*sin(deg(0.5*x))}\closedcycle;
  \addplot+[mark=none,]{sin(deg(x))}\closedcycle;
\stopaxis
  \stoptikzpicture

  Plot 2 -- Legend by Lua -- OK

  \starttikzpicture
%\startaxis[legend entries={Cos,Sin2,Sin}]
\cldcommand{startaxis{["legend entries"] = "{Cos,Sin2,Sin}"}}
  \addplot+[mark=none,fill,green]{cos(deg(x))}\closedcycle;
  \addplot+[mark=none,fill,yellow]{0.5*sin(deg(0.5*x))}\closedcycle;
  \addplot+[mark=none,]{sin(deg(x))}\closedcycle;
\stopaxis
  \stoptikzpicture

  Plot 3 -- Reverse legend by Lua -- not working

  \starttikzpicture
%\startaxis[legend entries={Cos,Sin2,Sin},reverse legend]
\cldcommand{startaxis{["legend entries"] = "{Cos,Sin2,Sin}", "reverse 
legend"}}
  \addplot+[mark=none,fill,green]{cos(deg(x))}\closedcycle;
  \addplot+[mark=none,fill,yellow]{0.5*sin(deg(0.5*x))}\closedcycle;
  \addplot+[mark=none,]{sin(deg(x))}\closedcycle;
\stopaxis
  \stoptikzpicture
\stoptext


So how to make Plot 3 work?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-Plot22.mkiv
Description: Binary data


t-Plot22.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] Plot using pgfplots: order of appearance of two simple plots

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm just starting with pgfplots library.

I have two plots, one being filled:


\usemodule[pgfplots]

\starttext
  \starttikzpicture
\startaxis[legend entries={Sin,Cos}]
  \addplot+[mark=none] {sin(deg(x))};
  \addplot+[mark=none,fill]{cos(deg(x))};
\stopaxis
  \stoptikzpicture
\stoptext


The problem is that the latter plot hides the former as they appear in the 
order they are defined.

A solution would be to change the order - to swap plot "Sin" and "Cos".

But also I need to keep the order in which plots appear in the legend - it's important to keep 
"Sin" followed by "Cos";
I'm looking for a way to set the order of plots, something like

\addplot+[mark=none,order=2] {sin(deg(x))};
\addplot+[mark=none,order=1] {sin(deg(x))};

or

\addplot+[mark=none,z=2] {sin(deg(x))};
\addplot+[mark=none,z=1] {sin(deg(x))};

Although I'm having pgfplots.pdf ("Package PGFPLOTS manual", 20. 10. 2013) 
open, I cannot find a solution.

Would anyone more experienced have an idea?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-Plot2.mkiv
Description: Binary data


t-Plot2.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] issue with latest beta

2015-11-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I can confirm Ctx failure with:

"ConTeXt  ver: 2015.10.09 21:28 MKIV beta  fmt: 2015.10.22  int: 
english/english", Win XP 32b.

Lukas


On Sun, 01 Nov 2015 16:03:04 +0100, Pablo Rodriguez  wrote:


Dear list,

this basic sample crashes with latest beta on my computer:

\setuphyphenation[method=traditional]

\starttext
\startalignment[flushright]
iudad
\stopalignment
\stoptext

Could anyone confirm whether it is a bug?

Many thanks for your help,


Pablo



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.log
Description: Binary data


t.mkiv
Description: Binary data
___
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] Lua file finder for \externalimage

2015-09-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the reason I'm asking is that I'd need to perform the same lookup as is performed during 
\externalfigure with a specific "directory=" key.

In other words - when \externalfigure is able to find a picture in e.g. 
"../../../Images/Small" path, is there a a file finder in Lua (context 
namespace) which would perform the same lookup?

Sample code:


\setupexternalfigures[directory={../../../Images/Small,../../../Images/Big}]

% Suppose there in a "../../../Images/Big/Big.png"

\startluacode
  local full_name = context.ExternalFigureLocator.Find("Big.png")

  -- Is there something like "context.ExternalFigureLocator.Find(...)"?
\stopluacode



Best regards,

Lukas


On Thu, 17 Sep 2015 14:37:34 +0200, Procházka Lukáš Ing. - Pontex s. r. o. 
<l...@pontex.cz> wrote:


Hello,

what is the name of a Lua function (if such function exists) which performs 
lookup for an image inside \externalimage?

I'm asking especially due to the fact that the path here can be modified by 
[location={...}].

Best regards,

Lukas





--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Lua file finder for \externalimage

2015-09-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

what is the name of a Lua function (if such function exists) which performs 
lookup for an image inside \externalimage?

I'm asking especially due to the fact that the path here can be modified by 
[location={...}].

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \setupheadnumber and zero

2015-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Great, thanks for the answer. Lukas


On Tue, 08 Sep 2015 21:10:51 +0200, Wolfgang Schuster 
<schuster.wolfg...@gmail.com> wrote:


Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz>
29. August 2015 16:11
Hello,

can a section head be generated with the number 0 (or less)?

Sometimes I need to prepend a section while keeping existing section
head numbers...

Example:


\starttext
  \setupheadnumber[chapter][-1]
  \chapter{Ch0} % Getting "Ch0" instead of "0. Ch0"?
  \chapter{Ch1}
\stoptext


Here, "0. Ch0" is not generated, the zero is not displayed; why?

You can't set a negative number for the start of the counter but you can
change the appereance.

\defineexpandable[1]\PreviousNumber
   {\number\numexpr#1-1\relax}

\defineconversion[PreviousNumber][\PreviousNumber]

\defineconversionset[zerostart][n,PreviousNumber][n]

\setuphead[chapter,section][sectionconversionset=zerostart]

\starttext
\chapter{First chapter}
\chapter{Second chapter}
\stoptext

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] TOC with too long entry

2015-09-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way to achieve the following look of TOC:

"
1 Sec  2
1.1 A very very very very very
very long section name ... 2
"
 ^  ^
 |  | - aligned here

instead of:

"
1 Sec  2
1.1 A very very very very very
very long section name ... 2
"

i.e. the page numbers to be aligned "in one column", no matter whether an entry 
flows onto more lines, and a multiline TOC entry text to start at each line at the same 
position? (See also the attached scheme.)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.mkiv
Description: Binary data
___
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] Table setups interfering with another table?

2015-09-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Mari,

I can see two ways:

1. Enclose each table into \bgroup ... \egroup scope, so all \setupTABLE will 
be treated local (table_test.mkiv).

2. Perform all setups right after \bTABLE (table_test2.mkiv). This is not 
applicable in all cases (e.g. \bTABLE[width=\textwidth] must be done here, not 
later) but in you case - you just setup specific columns and row, which can be 
done after \bTABLE safely. I deduce that each \bTABLE  \eTABLE creates a 
group, so all initializations done within remain local.

See my attempts.

Best regards,

Lukas



On Tue, 01 Sep 2015 12:25:03 +0200, Mari Voipio  wrote:


Hello!

I have a bit of a table mystery. It seems that the setups of an
earlier table interfere with the table coming after it (in the real
thing there's text between the tables, but the behaviour is the same).
Each table looks fine by itself, but if I compile a file with both,
the second one looks weird. What is it that I don't see or understand?

And yes, the tables really need to look like that. I'm recreating from
a pdf a document that is probably made with Word and this is how
they've done their tables in the original.

I admit that my ConTeXt version isn't exactly the newest available, it
is dated 2015.02.03. If the combination of tables works in newer
versions, I'll update, otherwise I'm not keen to fiddle with a working
combo.


As always, I'll be grateful for any help I can get,


Mari




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

table_test.mkiv
Description: Binary data


table_test.pdf
Description: Adobe PDF document


table_test2.mkiv
Description: Binary data


table_test2.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] \setupheadnumber and zero

2015-08-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

can a section head be generated with the number 0 (or less)?

Sometimes I need to prepend a section while keeping existing section head 
numbers...

Example:


\starttext
  \setupheadnumber[chapter][-1]
  \chapter{Ch0} % Getting Ch0 instead of 0. Ch0?
  \chapter{Ch1}
\stoptext


Here, 0. Ch0 is not generated, the zero is not displayed; why?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.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] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks, that's it... Lukas


On Mon, 24 Aug 2015 13:57:12 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz
24. August 2015 13:30
Hello,

is there a way to specify width for a tabulator ('\t') being read in a
text file during \typefile command?

E.g. 10 spaces...

\setuptyping[file][tab=10]

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way to specify width for a tabulator ('\t') being read in a text 
file during \typefile command?

E.g. 10 spaces...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

great, thanks for explanation!

Best regards,

Lukas


On Thu, 06 Aug 2015 12:07:18 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


One difference between \startsubformulas[+] and \startsubformulas[label]
is that the second method creates a label which can be used to refer to
the number of the formula.



You have to change the separator list with the numberseparator key for
\setupformulas.

\defineseparatorset[none][][]
\setupformulas[numberseparatorset=none]

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Wolfgang,

thank you for the patch (not in today's beta); I also attach the modified 
strc-mat.mkiv and a test file.

Two questions:

1.

What exactly are

  %\startsubformulas[+]   % These two options for \subformulas
  %\startsubformulas[mylabel] % enable subnumbers for the formulas

intended for?

The simple \startsubformulas[eq:b] meets my needs (subformulas are sub-numbered) and I 
can't see any difference to \startsubformulas[+].

2.

Is there a way to setup numbering subformulas to (1a) form instead of (1.a), i.e. set 
the separator to ?

Best regards,

Lukas


On Thu, 06 Aug 2015 01:25:10 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


Aditya Mahajan mailto:adit...@umich.edu
4. August 2015 02:08
On Mon, 3 Aug 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


I am not sure when the subformula numbering broke, but I can confirm
that it is not working with the latest beta.

You have to make three changes in strc-mat.mkiv to fix subformula numbering.

The first change is necessary to show the even when there isn’t a
argument for \startsubformulas.

The second change is necessary to prevent context from reseting the mode
for subnumbers
at the end of each formula.

The changes in \stopsubfomulas is necessary because of the test in
\everyresetformulas.


\def\strc_formulas_number_indeed
   {\ifconditional\c_strc_formulas_handle_number
  \hbox\bgroup
% main counter
\ifconditional\c_strc_formulas_inside_formulas_sub
  % nothing
\else
  \ifcase\c_strc_formulas_number_mode
\ifcase\c_strc_formulas_place_number_mode
  \strc_formulas_handle_numbering
\or
  \strc_formulas_handle_numbering
\or
  % nothing
\or
  \strc_formulas_handle_numbering
\fi
  \or
\strc_formulas_handle_numbering
  \or
% nothing
  \or
\strc_formulas_handle_numbering
  \fi
\fi
% subcounter
\ifconditional\c_strc_formulas_inside_formulas_sub
  \ifcase\c_strc_formulas_sub_number_mode
-  % nothing
+  \strc_formulas_handle_sub_numbering
  \or
\strc_formulas_handle_sub_numbering
  \or
% nothing
  \or
\strc_formulas_handle_sub_numbering
  \fi
\fi
   \strc_formulas_reference_trace
  \egroup
\fi}

\appendtoks
 \c_strc_formulas_place_number_mode \zerocount
 \c_strc_formulas_number_mode   \zerocount
-   \c_strc_formulas_sub_number_mode   \zerocount
+   \ifconditional\c_strc_formulas_inside_formulas_sub \else
+   \c_strc_formulas_sub_number_mode\zerocount
+   \fi
 \c_strc_formulas_nested_number_mode\zerocount
\to \everyresetformulas

\unexpanded\def\stopsubformulas
   {\nonoindentation
\useindentnextparameter\subformulaparameter
-  \the\everyresetformulas % to be checked
\global\setfalse\c_strc_formulas_inside_formulas_sub
+  \the\everyresetformulas % to be checked
\dorechecknextindentation} % here ?


 begin example
\usemodule[visual]

\starttext

\placeformula
\startformula
\fakeformula
\stopformula

%\startsubformulas[+]   % These two options for \subformulas
%\startsubformulas[mylabel] % enable subnumbers for the formulas
\startsubformulas

 \placeformula
 \startformula
 \fakeformula
 \stopformula

 \placeformula
 \startformula
 \fakeformula
 \stopformula

\stopsubformulas

\stoptext
 end example


Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

strc-mat.mkiv
Description: Binary data


SubForm3.mkiv
Description: Binary data


SubForm3.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] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Otared,

thanks for the hint. However, I'm still not able to tune the numbering setup 
fully.

Now I have (with resulting numbers | desired number):


\setuphead[part,chapter][placehead=yes,page=no]

\setupformulas
  [prefix=yes,
   %prefix=no,
   %prefixsegments=chapter:section,
   prefixsegments=part,
   way=bysection,
   %way=bytext,
   %location=right,
  ]

\def\fakeformula{a^2 + b^2 = c^2}

\starttext
  \part{P1}
\chapter{Cha1}
  \section{A}
\placeformula\startformula\fakeformula\stopformula % 1.1 | 1.1 be part 1, 
formula #1 in the part

  \section{B}
\placeformula\startformula\fakeformula\stopformula % 1.1 | 1.2 be part 1, 
formula #2 in the part

\subsection{Ba}
  \placeformula\startformula\fakeformula\stopformula % 1.2 | 1.3 be part 1, 
formula #3 in the part

\chapter{Cha2}
  \section{A}
\placeformula\startformula\fakeformula\stopformula % 1.1 | 1.4 be part 1, 
formula #4 in the part

  \part{P2}
\chapter{Cha1}
  \section{A}
\placeformula\startformula\fakeformula\stopformula % 2.1 | 2.1 be part 2, 
formula #1 in the part
\stoptext


So the problem here is that EVERY SECTION resets the formula counter, whilst I would need 
only \part to reset the counter, something like [way=bypart].

I played somehow with \setupformulas keys but without the wanted output...

Is there a way?

Best regards,

Lukas


On Thu, 06 Aug 2015 16:38:35 +0200, Otared Kavian ota...@gmail.com wrote:


Hi Lukás,

You configure the way the equations are numbered by sayng (for example)

\setupformulas[prefix=yes, prefixsegments=chapter:section, 
way=bysection, location=right]


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

SubForm4.mkiv
Description: Binary data


SubForm4.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] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

some more observation:

It seems (sub)numbering (sub)formulas can be achieved enclosing expressions 
into \start/\stop-align.

I wrote a code based on a test suite file:

...\test\doc\context\tests\mkiv\math\formulas-001.tex


\starttext
  \startsubformulas[eq:sub1]
  \placeformula
  \startformula
  \startalign
  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:11]
  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:12]
  \stopalign
  \stopformula
  \stopsubformulas

  \in{eq:11}[eq:11]
  \in{eq:12}[eq:12]

  \placeformula
  \startformula
  \startsubformulas[eq:sub2]
  \startalign
  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:21]
  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:22]
  \stopalign
  \stopsubformulas
  \stopformula

  \input knuth

  \placeformula
  \startformula
  \startsubformulas[eq:sub2]
  \startalign
  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:31]
  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:32]
  \stopalign
  \stopsubformulas
  \stopformula

  \in{eq:31}[eq:31]
  \in{eq:32}[eq:32]
\stoptext


Problems are:

1. I am not able to make numbering of eq:31 and eq:32 continue on eq:22, so to 
have equations numbered:

1a, 1b; 2a, 2b; 2c, 2d

instead of:

1a, 1b; 2a, 2b; 3a, 3b

(Some text - here: knuth - between 2b and 3a/2c is required.)

(I played with commenting some combinations of lines but with no success.)

So - is there a way how to continue numbering subformulas (after some inserted 
text) - something like itemizing has \startitemize[continue]?

2. How to affect the numbering style to be 1a instead 1.a?

3. @Hans: The test suite file:

...\test\doc\context\tests\mkiv\math\subformulas-001.tex

compiles, but gives no-reference ??.

(
The example on wiki:


http://wiki.contextgarden.net/Math/Display#Automatic_Sub-Formula_Numbering

seems to be very ancient as it GIVES the desired result.
)

Lukas


On Mon, 03 Aug 2015 12:20:44 +0200, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:


Hello,

it seems this is a frequent thesis - in the mailing archive, stackoverflow...

Anyway, I'm not able to find a valid way (MWE) how to number subformulas (with option to 
create a reference name, like 'eq:1a' and 'eq:1b', and to be able to refer to them, like 
\ineq[eq:1a] and \ineq[eq:1b]), so to get something like:


Some text
a + b = c   (1a)
and later
d + e = f   (1b)
so nothing surprising in [1a] and [1b].


Moreover, on http://wiki.contextgarden.net/Math there is a red Warning!:


If you consider using ConTeXt for a paper with a proper formula numbering 
please wait until it is implemented in mkiv. At the moment only a very limited 
formula numbering is possilbe:
  number formula(s) with a plain number
  number formula(s) with a subnumber

Not possible is at the moment:
  Table of formulas
  Named subformulas
  Mixure of formulas and subformulas in one block
  Reference on a (sub-)formula without having it listed in the Table of formulas

For more details and actual state see mailing list and Summary of formula 
numbering problem.


I don't know which date this warning comes from, if it is outdated or still 
valid...

So, finally, what is the PROPER way (if it really exists) in ConTeXt how to 
typeset subformulas?

(I'm typesetting a large article on physics which contains many math 
(sub-)formulas, so knowledge of a working tool for Ctx would be nice...)

Best regards,

Lukas





--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

subformulas-001.log
Description: Binary data


subformulas-001.pdf
Description: Adobe PDF document


SubForm2.mkiv
Description: Binary data
___
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] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

it seems this is a frequent thesis - in the mailing archive, stackoverflow...

Anyway, I'm not able to find a valid way (MWE) how to number subformulas (with option to 
create a reference name, like 'eq:1a' and 'eq:1b', and to be able to refer to them, like 
\ineq[eq:1a] and \ineq[eq:1b]), so to get something like:


Some text
a + b = c   (1a)
and later
d + e = f   (1b)
so nothing surprising in [1a] and [1b].


Moreover, on http://wiki.contextgarden.net/Math there is a red Warning!:


If you consider using ConTeXt for a paper with a proper formula numbering 
please wait until it is implemented in mkiv. At the moment only a very limited 
formula numbering is possilbe:
 number formula(s) with a plain number
 number formula(s) with a subnumber

Not possible is at the moment:
 Table of formulas
 Named subformulas
 Mixure of formulas and subformulas in one block
 Reference on a (sub-)formula without having it listed in the Table of formulas

For more details and actual state see mailing list and Summary of formula 
numbering problem.


I don't know which date this warning comes from, if it is outdated or still 
valid...

So, finally, what is the PROPER way (if it really exists) in ConTeXt how to 
typeset subformulas?

(I'm typesetting a large article on physics which contains many math 
(sub-)formulas, so knowledge of a working tool for Ctx would be nice...)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Colored descriptions

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Mon, 03 Aug 2015 15:31:49 +0200, Eric Détrez i...@eric-detrez.fr wrote:


I wish to write a text where there are definitions, theorems, ...
I wish to get a table of definitions at the end so I think the right
tool is description.
But I want the head or/and the main text have colored background.

Is it possible ?


there was a similar discussion - see

http://www.ntg.nl/pipermail/ntg-context/2015/081528.html

Best regards,

Lukas



I tried inbetween=\startframedtext,after=\stopframedtext in the
\setupdescriptions but this lead to an error Missing } inserted




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Numbering subformulas broken?

2015-08-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the following example (based on 
http://wiki.contextgarden.net/Math/Display#Automatic_Sub-Formula_Numbering ):


\starttext
  \startsubformulas[eq:1]
\placeformula[eq:1a]
  \startformula
c^2 = a^2 + b^2
  \stopformula

\placeformula[eq:1b]
  \startformula
c^2 = a^2 + b^2
  \stopformula

\placeformula[eq:1c]
  \startformula
c^2 = a^2 + b^2
  \stopformula
  \stopsubformulas

  Formula (\in[eq:1]) states the Pythagora's Theorem twice,
once in (\in[eq:1a]) and again in (\in[eq:1b]) and \in[eq:1c].
\stoptext


has two faults:

- subformulas 1b and 1c are not numbered (obviously, references to them show 
??),
- vertical distance between 1c and 1b is somehow bigger that that between 1b 
and 1c.

How to fix it?

(Compiled with: ConTeXt  ver: 2015.07.28 19:12 MKIV beta  fmt: 2015.7.30  int: 
english/english.)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

SubForm.mkiv
Description: Binary data


SubForm.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] Printing bibliographic entries without the full publication list

2015-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

\textcite [authoryear] [whatever-1] etc. gives weird (see attached):


text citation: (, 2015)


with:

ConTeXt  ver: 2015.07.28 19:12 MKIV beta  fmt: 2015.7.30  int: 
english/english

I would expect something like:


text citation: (Mo, 2015)


Best regards,

Lukas


On Wed, 29 Jul 2015 15:37:14 +0200, Hans Hagen pra...@wxs.nl wrote:


On 7/29/2015 11:38 AM, Mojca Miklavec wrote:

Dear Hans  Alan,

I would like to manually print the selected list of publications, like this:

\usebtxdataset[items.bib]
\usebtxdefinitions[aps]
\starttext
\startitemize
\item \cite[entry][bib1]
\item some random text
\item \cite[entry][bib5]
\stopitemize
\stoptext

The problem is that this doesn't print anything unless I add
\placelistofpublications somewhere.

While I do understand (to some extent at least) the rationale for not
printing the number of bib item when \placelistofpublications is
missing, I don't see any reason why I should be unable to print the
complete publication that doesn't even require printing out any
number.

Any hints about how to do a workaround?

I could do

\nocite[bib1]
\nocite[bib5]
\placelistofpublications

but then I'm unable to do manual tweaking of the list and adding free text.


a while ago i made this for that purpose (as you wanted it) and alan is
busy documenting it ... (btw, there is also criterium=dataset when
placing lists)

\starttext

\startbuffer [demo]
 @article{whatever-1,
   title  = {Whatever Title 1},
   author = {One and Two and Three and Four and Five and Six and
Seven and Eight},
   year   = {2015}
 }
 @article{whatever-2,
   title  = {Whatever Title 2},
   author = {Mojca and others},
   year   = {2015}
 }
 @article{whatever-3,
   title  = {Whatever Title 3},
   author = {Mojca and Alan and others},
   year   = {2015}
 }
 @article{whatever-4,
   title  = {Whatever Title 4},
   author = {Mojca and Hans},
   year   = {2015}
 }
\stopbuffer

\usebtxdataset [demo.buffer]

\usebtxdefinitions [aps]

\setupbtxrendering [aps] [numbering=yes]

% methods:
%
% \hiddencite : mark for list, don't show in text
% \listcite   : mark for list, show in text only when in list
% \textcite   : not to list, show in text
% \alwayscite : mark for list, show in text
%
% \cite   == \listcite
% \nocite == \hiddencite

% \subsubject{only shown when in list (okay)} % todo: (no list)

% list citation: \listcite [authoryear] [whatever-1]\par
% list citation: \listcite [authoryear] [whatever-2]\par
% list citation: \listcite [authoryear] [whatever-3]\par
% list citation: \listcite [authoryear] [whatever-4]\par

% \subsubject{only list}

% hidden citation: \hiddencite [whatever-1]\par
% hidden citation: \hiddencite [whatever-2]\par
% hidden citation: \hiddencite [whatever-3]\par
% hidden citation: \hiddencite [whatever-4]\par

% \subsubject{only in text (okay)}

% text citation: \textcite [authoryear] [whatever-1]\par
% text citation: \textcite [authoryear] [whatever-2]\par
% text citation: \textcite [authoryear] [whatever-3]\par
% text citation: \textcite [authoryear] [whatever-4]\par

% \subsubject{always in text and optionally in list}

% always citation: \alwayscite [authoryear] [whatever-1]\par
% always citation: \alwayscite [authoryear] [whatever-2]\par
% always citation: \alwayscite [authoryear] [whatever-3]\par
% always citation: \alwayscite [authoryear] [whatever-4]\par

\page

\placelistofpublications

\stoptext



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

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



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Mojca.mkiv
Description: Binary data


Mojca.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  : 

Re: [NTG-context] SyncTeX (TeXworks) - \enabledirectives[system.synctex] (now with attachments)

2015-07-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

any answer to \enabledirectives[system.synctex] functionality or 
deprecateness?

Best regards,

Lukas


On Sat, 18 Jul 2015 09:43:29 +0200, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:


Hello,

two questions related to SyncTeX (and maybe on TeXworks):

1. The following code:


\enabledirectives[system.synctex]

\starttext
Hello!
\startluacode % line 6
  context(Something)
\stopluacode
\stoptext


doesn't produce SyncTeX file (SyncTeX.synctex.gz).

When I compile the file with context.exe --synctex option, the file is 
produced.

Does it mean that \enabledirectives[system.synctex] is deprecated?


2. In the code above, text Hello! is generated in normal TeX scope whilst 
Something is generated from within Lua.

When I click Jump to source from TeXworks editor and previewer, jumping from 
Something works well and goes to the source SyncTeX.mkiv correctly.

Jumping to source from Something yields Cannot read file 
directory-of-the-source-file error (see attached picture).

I don't know whether this relates to ConTeXt or rather TeXworks;
for the case it should relate to ConTeXt, would it be possible generate an anchor (e.g.) to the nearest 
encapsulating \startluacode (if present; or \ctxlua, \cldcontext and so), so that Jump to source 
over Something would jump to \startluacode on line 6?

Best regards,

Lukas





--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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 (TeXworks) - \enabledirectives[system.synctex]

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

two questions related to SyncTeX (and maybe on TeXworks):

1. The following code:


\enabledirectives[system.synctex]

\starttext
  Hello!
  \startluacode % line 6
context(Something)
  \stopluacode
\stoptext


doesn't produce SyncTeX file (SyncTeX.synctex.gz).

When I compile the file with context.exe --synctex option, the file is 
produced.

Does it mean that \enabledirectives[system.synctex] is deprecated?


2. In the code above, text Hello! is generated in normal TeX scope whilst 
Something is generated from within Lua.

When I click Jump to source from TeXworks editor and previewer, jumping from 
Something works well and goes to the source SyncTeX.mkiv correctly.

Jumping to source from Something yields Cannot read file 
directory-of-the-source-file error (see attached picture).

I don't know whether this relates to ConTeXt or rather TeXworks;
for the case it should relate to ConTeXt, would it be possible generate an anchor (e.g.) to the nearest 
encapsulating \startluacode (if present; or \ctxlua, \cldcontext and so), so that Jump to source 
over Something would jump to \startluacode on line 6?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Temporary spacing between letters

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is it possible to affect the space between letters temporarily?

The following code provides it, but I guess there is a better ConTeX way:


\starttext
  \startluacode
t = function(str, filler)
  return str:gsub((.), %1 .. (filler or ~), #str - 1)
end
  \stopluacode

  Doslov\par
  \cldcontext{t(Doslov, \\,)}\par
  \cldcontext{t(Doslov, \\;)}\par
  \cldcontext{t(Doslov)}\par
  \cldcontext{t(Doslov, ~~)}\par
  \cldcontext{t(Doslov, \\quad )}\par
  \cldcontext{t(Doslov, \\qquad )}\par
\stoptext


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

LetSpac.mkiv
Description: Binary data


LetSpac.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] Math - how to mix fonts?

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

simpler than I thought, thank you!

Best regards,

Lukas


On Fri, 17 Jul 2015 15:15:38 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


You can use the normal font switching commands (e.g. \it or \ss) to
change the math alphabet.

%\setupbodyfont[xits]

\setupmathematics[lcgreek=none,ucgreek=none]

\starttext

\startformula
  abcdef  \quad
 {\tf abcdef} \quad
 {\it abcdef} \quad
 {\bf abcdef} \quad
 {\bi abcdef}
\stopformula

\startformula
 {\ssabcdef} \quad
 {\ss\it abcdef} \quad
 {\ss\bf abcdef} \quad
 {\ss\bi abcdef}
\stopformula

\startformula
 \alpha\beta\gamma  \quad
 {\rm\alpha\beta\gamma} \quad
 {\it\alpha\beta\gamma} \quad
 {\bf\alpha\beta\gamma} \quad
 {\bi\alpha\beta\gamma}
\stopformula

\startformula
 \Alpha\Beta\Gamma  \quad
 {\rm\Alpha\Beta\Gamma} \quad
 {\it\Alpha\Beta\Gamma} \quad
 {\bf\Alpha\Beta\Gamma} \quad
 {\bi\Alpha\Beta\Gamma} \quad
\stopformula

\stoptext

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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 (TeXworks) - \enabledirectives[system.synctex] (now with attachments)

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

two questions related to SyncTeX (and maybe on TeXworks):

1. The following code:


\enabledirectives[system.synctex]

\starttext
   Hello!
   \startluacode % line 6
 context(Something)
   \stopluacode
\stoptext


doesn't produce SyncTeX file (SyncTeX.synctex.gz).

When I compile the file with context.exe --synctex option, the file is 
produced.

Does it mean that \enabledirectives[system.synctex] is deprecated?


2. In the code above, text Hello! is generated in normal TeX scope whilst 
Something is generated from within Lua.

When I click Jump to source from TeXworks editor and previewer, jumping from 
Something works well and goes to the source SyncTeX.mkiv correctly.

Jumping to source from Something yields Cannot read file 
directory-of-the-source-file error (see attached picture).

I don't know whether this relates to ConTeXt or rather TeXworks;
for the case it should relate to ConTeXt, would it be possible generate an anchor (e.g.) to the nearest 
encapsulating \startluacode (if present; or \ctxlua, \cldcontext and so), so that Jump to source 
over Something would jump to \startluacode on line 6?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

SyncTeX.mkiv
Description: Binary data
___
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 - how to mix fonts?

2015-07-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I am not very familiar with mixing fonts in math. I would need to mix several 
font styles:

1. normal (default - slanted, serif) for general variables,
2. slanted serif bold for vectors,
3. slanted sans bold for varieties.

In the following snippet, the right fonts are displayed in the \text scope, but 
not in the math:


\definetypeface[boldmath][mm][boldmath][latin-modern][default]

\starttext
  \startformula
\text{\sl 1. Normal:}\quad Abcd \alpha
  \stopformula

  \startformula
\text{\bs 2. Bold:}\quad\boldmath{Abcd \alpha}
  \stopformula

  \startformula
\text{\bs\ss 3. SansBold:}\quad\ss\boldmath{Abcd \alpha}
  \stopformula
\stoptext


You can see that \boldmath has no effect (although 
\definetypeface[boldmath][mm][boldmath][latin-modern][default] was used, as 
described on http://wiki.contextgarden.net/Bold_Math ).

So - what is the best way to define (enable) and use fonts styles 1.-3. in math?

(
Notes:
- The font must allow to type Greek letters - \alpha.
- Other font(s) than LatinModern may be used for math, if it enables bold and 
sans switching.
)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Math.mkiv
Description: Binary data


Math.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] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

why this code:


\def\GG{\ifmmode G_G\else$\GG$\fi}

\starttext
  \GG $\GG$ % OK
  \startitemize[][]
\sym{\GG} \GG % OK
  \stopitemize

  \startluacode
context.startitemize()
  context.sym([[\GG]])
  context(Abc)
context.stopitemize()
  \stopluacode
\stoptext


fails with:


...
tex errortex error on line 14 in file 
d://Lukas/Docs/Ull-Gra/Test/Abr.mkiv: ! TeX capacity exceeded, sorry [input stack 
size=1]


\GG -\ifmmode G_G\else $\GG
 $\fi
\GG -\ifmmode G_G\else $\GG
 $\fi
\GG -\ifmmode G_G\else $\GG
 $\fi
\GG -\ifmmode G_G\else $\GG
 $\fi
\GG -\ifmmode G_G\else $\GG
 $\fi
\GG -\ifmmode G_G\else $\GG
 $\fi
...
l.14   \stopluacode
...


I need to call \GG from within Lua, and the real macro name is created 
run-time (contrary to this MNWE; so to be \GG, \HH, \Fik etc. - the name is obtained from 
a Lua table as a string).

I cannot understand why all TeX calls are OK but the problem appears in Lua 
block...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Abr.mkiv
Description: Binary data
___
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] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Thu, 16 Jul 2015 11:03:05 +0200, luigi scarso luigi.sca...@gmail.com wrote:


 \def\GG{\ifmmode G_G\else$\GG$\fi}
means define the macro \GG as G_G if mmmod is true,
else as \GG 
It's clear that you  always are in a situation where mmod is true, then \GG
is replaced with  G_G


Well, I intended replaced with $G_G$,
 not replaced with  G_G;
so I thought this would force/ensure math mode and thus prevent infinite 
recursion.


but as soon as you fall into mmod not true then you have infinite
recursion.


Also, my observation was that my original macro worked well when called for TeX 
code (at various places of use:
  \GG $\GG$
  \startitemize[][]
\sym{\GG} \GG
\sym{$\GG$} $\GG$
\sym{\m{\GG}} \m{\GG}
\item End
  \stopitemize
)
but stopped working when called from Lua (?!).

@Hans:

This seems to be best solution - exactly what I wanted to achieve: 
\def\GG{\mathematics{G_G}}.

Thanks both for your help.

Best ragrds,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Thu, 16 Jul 2015 10:27:48 +0200, Hans Hagen pra...@wxs.nl wrote:


On 7/16/2015 10:20 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

why this code:


\def\GG{\ifmmode G_G\else$\GG$\fi}


because in math mode \GG expands \GG which expands \GG 


I want to just pass G_G in math mode, so it seems to me that \ifmmode G_G... 
does the check.

The macro should write G + lower index G for both math and non-math scope.

And, in non math scope, the macro should just enclose itself by $...$ (or 
\m{...})...

And, this works well in TeX code:


\def\GG{\ifmmode G_G\else$\GG$\fi}

\starttext
  \GG $\GG$
  \startitemize[][]
\sym{\GG} \GG
\sym{$\GG$} $\GG$
\sym{\m{\GG}} \m{\GG}
\item End
  \stopitemize
\stoptext


So how to rewrite the itemization into Lua?


maybe you mean:

\def\GG{\ifmmode G_G\else$GG$\fi}


... Could be \def\GG{\ifmmode G_G\else$G_G$\fi}, too, but why not 
\def\GG{\ifmmode G_G\else$\GG$\fi} (seems to me be simpler as the macro 
definition - which may be more complicated - appears only once)?

Lukas



\starttext
   \GG $\GG$ % OK
   \startitemize[][]
 \sym{\GG} \GG % OK
   \stopitemize

   \startluacode
 context.startitemize()
   context.sym([[\GG]])
   context(Abc)
 context.stopitemize()
   \stopluacode
\stoptext


fails with:



tex errortex error on line 14 in file
d://Lukas/Docs/Ull-Gra/Test/Abr.mkiv: ! TeX capacity exceeded, sorry
[input stack size=1]


\GG -\ifmmode G_G\else $\GG
  $\fi
\GG -\ifmmode G_G\else $\GG
  $\fi
\GG -\ifmmode G_G\else $\GG
  $\fi
\GG -\ifmmode G_G\else $\GG
  $\fi
\GG -\ifmmode G_G\else $\GG
  $\fi
\GG -\ifmmode G_G\else $\GG
  $\fi

l.14   \stopluacode



I need to call \GG from within Lua, and the real macro name is created
run-time (contrary to this MNWE; so to be \GG, \HH, \Fik etc. - the name
is obtained from a Lua table as a string).

I cannot understand why all TeX calls are OK but the problem appears in
Lua block...

Best regards,

Lukas




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







--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Tabulate: lines bellow header

2015-07-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

Let's have the following code:


\starttext
  \setuptabulate[header=repeat,split=yes]
  \starttabulatehead
\HL
\NC H \NC H \NC\NR
\LL % \LL[8] causes error
  \stoptabulatehead
  \starttabulate[|l|l|]
\dorecurse{50}{
  \NC A \NC A \NC\NR
  \HL[8]
}
  \stoptabulate
\stoptext


It produces:

1) horizontal line bellow header, which is somewhat shifted down, closer to the 
first body row, but only on the 1st page;

2) horizontal line bellow header on page look differently from that on page 1
- its thickness if about a half of that between body rows,
- and also its position is different from that on page 1.

3) Is there a way to affect thickness of the rule bellow header? \LL[8] causes 
error.
I guess this is quite normal - to have a table header separated by a thicker 
rule, to have:


table header

body row 1

body row 2


So:

Ad 1: Is it possible to place the rule bellow the header to a better position? E.g. 
using a more proper command than \LL?

Ad 2: Is it a Ctx feature or -- ?

Ad 3: Any idea how to achieve this?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Tabulate.mkiv
Description: Binary data


Tabulate.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] beta/7.7.2015: error with \in

2015-07-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm getting the following error:


mtx-context | run 1: luatex 
--fmt=c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde...
iv --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode 
--c:path=C:\\Lukas\\ConTeXt\\Styles cont-yes.mkiv
This is LuaTeX, Version beta-0.80.1 (TeX Live 2015/W32TeX) (rev 5274)
  \write18 enabled.

system   callbacks  not registering frozen 'find_format_file'
open source  1  1  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.07 21:43 MKIV beta  fmt: 2015.7.9  int: english/english
...
c:/Ctx-Beta/tex/texmf-context/tex/context/base/strc-ref.lua:1610: attempt to 
index field 'structure' (a nil value)
stack traceback:
 c:/Ctx-Beta/tex/texmf-context/tex/context/base/strc-ref.lua:1610: in 
function 'identify_inner_or_outer'
 c:/Ctx-Beta/tex/texmf-context/tex/context/base/strc-ref.lua:1785: in 
function 'identify'
 c:/Ctx-Beta/tex/texmf-context/tex/context/base/strc-ref.lua:1806: in 
function 'action1'
 [string ...]:21: in function [string ...]:20
 (...tail calls...)
...
45 Hello \in{kap.}[NonExisting]
...


Any quick fix?

(
I'm not attaching a MNWE as the error appears in a large project so extracting 
a MNWE is not so easy...
but is possible... not at the moment...

But error message would help.
)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Alan,

thanks for the idea. Now I have:

 Bib6.mkiv, UTF-8
\startbuffer[biblio]
@article{Angell,
   Author = {Marcia Angell},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
@article{Me,
   Author = {Štěpán Čech},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
@article{101,
   Author = {Štěpán Čech},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
\stopbuffer

%%

\usebtxdataset[biblio.buffer]

\if+- % (1)
   \def\bracketed#1{\hbox to 20pt{\hfill [#1]}}

   \setuppublications
 [sorttype=bbl,
  autohang=no,
  refcommand=num,
  criterium=all,
  numbering=bib,
  %numbercommand=\bracketed,
 ]
\fi

%%

\starttext
   Hello \cite[Angell] \cite[Me] \cite[101]!

   \hairline
   \placelistofpublications[criterium=all]
   \hairline
   %\placepublications[criterium=all] % (2)
\stoptext


Some more questions:

1) Is \placepublications deprecated?

I'm getting Undefined control sequence when I uncomment (2);
even though \placepublications is widely cited on wiki (e.g. 
http://wiki.contextgarden.net/Bibliography_mkiv ) and is also mentioned in 
bibmod-doc.pdf 
(http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf ).

2) When I turn (1) on (\if+- - \if++), the Ctx doesn't crash but citations are 
broken and no list of pubs is generated.

I copied \setuppublications from 
http://wiki.contextgarden.net/Theory_book_style ;
strange for me that also empty \setuppublications (i.e.

   \setuppublications
 [%sorttype=bbl,
  %autohang=no,
  %refcommand=num,
  %criterium=all,
  %numbering=bib,
  %numbercommand=\bracketed,
 ]

) produces the same no-result.

3) I would like to alter citation style from [1] to MA2004; I guess this could be 
done by \setuppublications[refcommand=author] (see bibmod-doc.pdf, art. 2.1, pg. 2);
but - as mentioned at 2) - it doesn't work.

4) Finally, in list of publications, I'd rather enumerate publications in [1] style 
rather than simple 1, i.e. enclose the publication number into [].

In http://wiki.contextgarden.net/Theory_book_style , 
\setuppublications[numbercommand=\bracketed] provided that, but again, it 
doesn't work here due to 2).

So, how to overcome all these obstacles?

Best regards,

Lukas


On Thu, 09 Jul 2015 20:30:27 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


On Wed, 8 Jul 2015 22:21:36 +0200
Lukáš Procházka l...@pontex.cz wrote:


- have a DB of publications (preferably in standard ConTeXt
space, not in a .bib file)


MKiv bibliographies:

\startbuffer[biblio]
entries in .bib format
\stopbuffer

\usebtxdataset[biblio.buffer]

\cite[bibkey]

\placelistofpublications



Alan




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bib6.log
Description: Binary data


Bib6.mkiv
Description: Binary data


Bib6.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] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Fri, 10 Jul 2015 10:29:52 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


On Fri, 10 Jul 2015 08:47:35 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:


I'm getting Undefined control sequence when I uncomment (2);
even though \placepublications is widely cited on wiki (e.g.
http://wiki.contextgarden.net/Bibliography_mkiv ) and is also
mentioned in bibmod-doc.pdf
(http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf
).


Do not mix-up the bibmod (mkii, also adapted for mkiv)
with the mkiv bibliography dataset system (which is completely new).


OK. I studied MkIV related part on bibliography on wiki, probably too archaic.


I do not know anything about the wiki on this subject but it must be
completely obsolete as the development of this new system has been very
active over the past year.

Hans and I are (still) working on the documentation that has been
promised.


Great.

Back to my questions:

3) I would like to alter citation style from [1] to MA2004; I guess this could be 
done by \setuppublications[refcommand=author]...

4) Finally, in list of publications, I'd rather enumerate publications in [1] style 
rather than simple 1, i.e. enclose the publication number into [].

Are / will be points 3) a 4) achievable anyhow - now, in near future, any day?

Thank you anyway.

Best regards,

Lukas


Alan




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Hidden section - weird counting?

2015-07-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

let's have the following example with hidden section:


\definehead[HidSec][section]
\setuphead[HidSec][placehead=hidden]

\starttext
  \placecontent
  \hairline
  \HidSec{A}
\subsection{B}
\subsection{C}
\stoptext


It gives:


1.1 B 1
---
1.2 B
1.2 C


Whilst I'd expect:


1.1 B 1
1.2 C 1
---
1.1 B
1.2 C


Is my idea wrong, i.e. is hidden attribute for \setuphead intended 
differently or ... ?

(Compiled with today's beta.)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

HidSec.log
Description: Binary data


HidSec.mkiv
Description: Binary data


HidSec.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] Bibliography (bug compiling components-001.tex?)

2015-07-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I also tried one of the ConTeXt suite test files, namely:

test\doc\context\tests\mkiv\bibtex\components-002.tex

where I just commented two lines, so I got:


% Was: components-001.tex

% \endinput % to be adapted

% adapted example from list

\startpublication[
k=me,
t=manual,
a=Hoekwater,
y=2006,
s=TH2006,
n=1,
u=http://contextgarden.net/Bibliography,
]
\author{Taco}[T.]{}{Hoekwater}
\title{\CONTEXT\ Publication Module, The user documententation}
\pubyear{2006}
\note{In case you didn’t know: it’s the document you are reading now}
\pages{14}
\stoppublication

\startproduct components-001

\startfrontmatter

  % \component components-002

  two: \cite[me]

\stopfrontmatter

\placepublications
  [criterium=text]

\stopproduct


But, I'm not able to compile even this file.

I'm getting:


mtx-context | run 1: luatex 
--fmt=c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --interaction=nonstopmode --jobname=Bib
--c:path=C:\\Lukas\\ConTeXt\\Styles cont-yes.mkiv
This is LuaTeX, Version beta-0.80.1 (TeX Live 2015/W32TeX) (rev 5274)
 \write18 enabled.

system   callbacks  not registering frozen 'find_format_file'
open source  1  1  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.01 21:40 MKIV beta  fmt: 2015.7.2  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
close source 2  2  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv

system   jobfiles  using path: C:\\Lukas\\ConTeXt\\Styles
system   files  jobname 'Bib', input 
'd:\\Lukas\\ConTeXt\\Test\\Bib.mkiv', result 'Bib'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  d://Lukas/ConTeXt/Test/Bib.mkiv
fontspreloading latin modern fonts (second stage)
fonts'fallback modern-designsize rm 12pt' is loaded
structures   begin of sectionblock 'frontpart'
publications analyzing previous publication run for 'default'

lua errorerror on line 30 in file d://Lukas/ConTeXt/Test/Bib.mkiv:

c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: attempt to 
index field '?' (a nil value)
stack traceback:
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: in 
function 'register'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:591: in 
function 'findallused'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2503: in 
function 'processcite'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2814: in 
function '?'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2304: in function 
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2262
(...tail calls...)

20 \pages{14}
21 \stoppublication
22
23 \startproduct components-001
24
25 \startfrontmatter
26
27   % \component components-002
28
29   two: \cite[me]
30 
31 \stopfrontmatter
32
33 \placepublications
34   [criterium=text]
35
36 \stopproduct
37


structures   end of sectionblock 'frontpart'
backend  xmp  using file 
'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1

lua errorerror on line 33 in file d://Lukas/ConTeXt/Test/Bib.mkiv:

c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: attempt to 
index field '?' (a nil value)
stack traceback:
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: in 
function 'register'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:591: in 
function 'findallused'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2503: in 
function 'processcite'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2814: in 
function '?'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2304: in function 
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2262
(...tail calls...)

23 \startproduct components-001
24
25 \startfrontmatter
26
27   % \component components-002
28
29   two: \cite[me]
30
31 \stopfrontmatter
32
33   \placepublications
34   [criterium=text]
35
36 \stopproduct
37


pagesflushing realpage 2, userpage 2
close source 2  3  d://Lukas/ConTeXt/Test/Bib.mkiv
close source 1  3  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv
...
mtx-context | fatal error: return code: 1


The full log is attached...

What is wrong?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038


[NTG-context] Bibliography

2015-07-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I have a bibliography database in Lua.
I suppose to use this DB to create a list of publications with Lua and 
\startpublication ... \stoppublication.
So I will get something like:


% Will be generated by Lua, but for now 
\startpublication
  [k=me,
   t=article,
   a=LPr,
   y=2000,
   s=Shr,
   n=1,
  ]
  \city{Prg}
\stoppublication
% Will be generated by Lua, but for now 

\setuppublications[alternative=apa]

\starttext
  Hello \cite[me] -- \cite[Shr] -- \cite[1].

  \placepublications[criterium=all]
\stoptext


The problem is that \cite produces (Xx, ) and no list of 
publications is generated.

What am I doing wrong?

NB: I learned from
http://wiki.contextgarden.net/Bibliography_mkiv
and
http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf

My one-off is that I have not a .bib file and I would like to avoid .bib 
generation and use of BibTeX if possible.
I guess that having a biblio DB in Lua is handy enough as Lua can convert the 
DB in whatever format - eg. via

context.startpublication(...)
 ...
context.stoppublication()

So, how to handle the bibliography in a best manner?

Than you in advance,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bib.test.mkiv
Description: Binary data


Bib.test.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] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Wolfgang,

thanks again, it works perfectly.

Best regards,

Lukas


On Mon, 29 Jun 2015 14:33:41 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:




Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz
29. Juni 2015 14:05
Hello,

one more question.

When I place \part into \...bodymatter and \...appendices, the \part
in body matter yields Díl  + number, which is OK, but in appendices
it gives nothing + Roman number (I, II, ...).

You have to change the default conversion for the appendix.

What is the most systemic to \setuphead[part] to give Díl... in body
matter and Dodatek... in appendices, and also to get letter
numbering (A, B...) in appendices (so Dodatek A, Doadatek B,
...)?

You have to set a label for the appendix with the appendixlabel key.

A sample source code with body matter and appendices is attached...

% Method 1: change the values of the predefined default conversion set,
% you can use name of the sectionblock as prefix (separated by a :) to set
% the values only for a certain part (e.g. the appendix) of your document

\defineconversionset[appendix:default][A,R][n]

% Method 2: Create your own conversion set and apply it to all sections
%
% \defineconversionset[bodypart:myconversion][n,n][n]
% \defineconversionset[appendix:myconversion][A,R][n]
% \setuphead[part,chapter,section][sectionconversionset=myconversion]

\setuphead
   [part]
   [placehead=yes,
bodypartlabel=bodypart-mypart,
appendixlabel=appendix-mypart]

\setuplabeltext[en][bodypart-mypart=Díl ,appendix-mypart=Dodatek ]

\starttext
 \startbodymatter
 \part{My First Part}
 \input knuth
 \stopbodymatter
 \startappendices
 \part{My First Appendix}
 \input tufte
 \stopappendices
\stoptext

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

one more question.

When I place \part into \...bodymatter and \...appendices, the \part in body matter yields Díl  + number, which 
is OK, but in appendices it gives nothing + Roman number (I, II, ...).

What is the most systemic to \setuphead[part] to give Díl... in body matter and Dodatek... in appendices, and also 
to get letter numbering (A, B...) in appendices (so Dodatek A, Doadatek B, ...)?

A sample source code with body matter and appendices is attached...

Best regards,

Lukas


On Tue, 23 Jun 2015 16:28:46 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:




Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz
23. Juni 2015 09:45
Hello,

I'm really satisfied with the way you coded the part page layout.

I've modified a bit your code - just to highlight the dependencies
(rendering setup, makeup and so on; if anyone interested, see the
attachment).

You can drop the \definebodyfontenvironment line when you use
\definefont to set the part fonts, e.g.

\definefont[PartText][SerifBold sa 5]
\setuphead[part][textstyle=PartText]


On Mon, 22 Jun 2015 18:36:03 +0200, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:


This method to set your own layout is also used by other command (e.g.
the list mechanism used for the table of contents) and the
\defineheadplacement has also a alternative key which is needed when you
want an inline heading (e.g. \setuphead[...][alternative=text]).


...


The necessary key would be endless with each new layout and with the
\defineheadplacement command to create your own without adding
additional keys but you can also use the command key instead of
\defineheadplacement. The advantage of \defineheadplacement is that you
can better structure the code in the setups environment because you
don't have to worry about spaces.

Wolfgang


As \defineheadplacement is concerned:

You mentioned this command in your response, but
\defineheadplacement is used nowhere in your code and there is no
info about on wiki.

Could you provide a MWE how \defineheadplacement is supposed to be used?

You shouldn't use it because Hans kept it only for backwards
compatibility and \defineheadplacement is the better alternative. You
can also use the same rendering (the content of the setups environment)
for different head alternatives where you set the differences with the
\defineheadalternative command.

% HeadA

\defineheadplacement[HeadA][vertical]#1#2%
   {\startframedtext
  #1\quad #2%
\stopframedtext}

\definehead[HeadA][section][alternative=HeadA]

% HeadB

\defineheadalternative[HeadB][renderingsetup=HeadB] % alternative=vertical

\startsetups[HeadB]
   \startframedtext
 \headnumbercontent \qquad \headtextcontent
   \stopframedtext
\stopsetups

\definehead[HeadB][section][alternative=HeadB]

\starttext

\HeadA{Knuth}

\input knuth

\HeadB{Tufte}

\input tufte

\stoptext

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Ull-Gra.test2.mkiv
Description: Binary data


Ull-Gra.test2.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] Mode for footnote?

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

there are many modes for various situations 
(http://wiki.contextgarden.net/Modes).

Is there a mode to signal being inside a footnote?

This would be handy for head definition:


\definehead[paragraph][subsubsubject]

\define\ShBlank{\doifnotmode{*footnote}{\blank}}

\setuphead[paragraph][before=\ShBlank]


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \setuphead[part] - special look

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm really satisfied with the way you coded the part page layout.

I've modified a bit your code - just to highlight the dependencies (rendering 
setup, makeup and so on; if anyone interested, see the attachment).

On Mon, 22 Jun 2015 18:36:03 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


This method to set your own layout is also used by other command (e.g.
the list mechanism used for the table of contents) and the
\defineheadplacement has also a alternative key which is needed when you
want an inline heading (e.g. \setuphead[...][alternative=text]).


...


The necessary key would be endless with each new layout and with the
\defineheadplacement command to create your own without adding
additional keys but you can also use the command key instead of
\defineheadplacement. The advantage of \defineheadplacement is that you
can better structure the code in the setups environment because you
don't have to worry about spaces.

Wolfgang


As \defineheadplacement is concerned:

You mentioned this command in your response, but \defineheadplacement is used 
nowhere in your code and there is no info about on wiki.

Could you provide a MWE how \defineheadplacement is supposed to be used?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Ull-Gra.test2.mkiv
Description: Binary data


Ull-Gra.test2.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] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Wolfgang,

thank you for the solution, it pretty systemic.

Ad Ad 2: There was no question as succeeded placing page number and name into 
the page gold ratio, so just mentioned as one of the features required.

After some plying with your solution, I deduce:

We have to derive a new alternative for part (here partpage) as we CAN assign a new 
renderingsetup to this alternative but we CANNOT assign a rendering setup in the scope of 
\setuphead.

IOW, there is no \setuphead[part][renderingsetup=partpage].

If there was the option \setuphead[part][renderingsetup=partpage] we could 
simplify to:


% No headalternative here

\startsetups[partpage]
   \startmakeup[part]
   \headsetupspacing
   \headnumbercontent
   \blank[big]
   \headtextcontent
   \stopmakeup
\stopsetups

\definemakeup
 [part]
 [align=middle,
  top=\vfill\vfill,
  bottom=\vfill\vfill\vfill]

\setuphead
 [part]
 [...
  renderingsetup=partpage,
  ...
 ]

...



Am I right?

(And, I understand that the aim is not to support all extraordinary request(s) in 
\setuphead by its keys/options - it is enough to have A way to get them, here using a 
headalternative...)

Thanks again.

Best regards,

Lukas


On Mon, 22 Jun 2015 10:51:46 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:



You can use the \pushbackground and \popbackground command to limit the
background changes to a certain part of your document.



\defineheadalternative
   [partpage]
   [renderingsetup=partpage]

\startsetups[partpage]

 \startmakeup[part]
 \headsetupspacing
 \headnumbercontent
 \blank[big]
 \headtextcontent
 \stopmakeup

\stopsetups

\definemakeup
   [part]
   [align=middle,
top=\vfill\vfill,
bottom=\vfill\vfill\vfill]

\setuphead
   [part]
   [placehead=yes,
alternative=partpage,
page=right,
before={\pushbackground[page]\setupbackgrounds[page][background=color,backgroundcolor=blue]},
after={\page\popbackground},
bodypartlabel=part,
align=middle,
numberstyle=\bfb,
textstyle=\bfd\sc]

\setuplabeltext[en][part=DĂl ]

\starttext
   \part{Part}
   \input knuth
\stoptext

BTW: Where is Ad 2?

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm trying to \setuphead[part] to have the following features:

1. Part head to fill the whole page.

2. Part number and name to be placed (approx.) in the golden ratio of the page.

3. Page background (for the \part only!) to be colored, e.g. blue.


\define[2]\MyPartCmd{%
{%
  \vbox to\vsize{%
\vfill\vfill%
#1
\blank[big]
#2
\vfill\vfill\vfill%
  }
}%
}

\define[1]\MyPartCmdText{%
  \hbox to\hsize{\hfill \bf DĂl #1\hfill}%
}

\definefontsize[e]
\definebodyfontenvironment[default][e=5.]

\define[1]\MyPartCmdNum{%
  \hbox to\hsize{\hfill \bfe\sc#1\hfill}%
}

\setuphead[part]
  [command=\MyPartCmd,
   numbercommand=\MyPartCmdText,
   textcommand=\MyPartCmdNum,
   placehead=yes,header=none,page=odd,
   
before={\setupbackgrounds[page][background=color,backgroundcolor=blue,state=start]},
   %after={\setupbackgrounds[page][background=]},
  ]

\starttext
  \showboxes
  \part{Part}
  \input knuth
\stoptext


The code above doesn't satisfy the features:

Ad 1: Some text (from knuth) appears in the bottom (should be solved by 
after=\page, but is there a better solution, e.g. to affect height of the 
\vbox in \MyPartCmd?)

Ad 3: I'm able to make only the part page blue (now all pages are blue; when I uncomment 
after={\setupbackgrounds[page][background=]},, no page is blue).

Could anyone help me to tune the \setuphead[part]?

Thank you in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Ull-Gra.test.mkiv
Description: Binary data


Ull-Gra.test.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] How to limit level of sections in TOC?

2015-06-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm not able to limit level of sections in TOC so to not show \subsubsection:


%\setuplist[content][level=subsection] % Doesn't work
%\setuplist[content][section,subsection] % Doesn't work

\starttext
  \placecontent[level=subsection] % Doesn't work
  \hairline
  \placecontent[level=3] % Doesn't work
  \hairline

  \section{Sec}
\subsection{SSec}
  \subsubsection{SSSec}
\stoptext


I studied wiki (http://wiki.contextgarden.net/Command/setuplist) and also 
contextref.pdf (pg. 218) but without success.

What am I doing wrong?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

TOC.mkiv
Description: Binary data


TOC.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] How to limit level of sections in TOC?

2015-06-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Thank you,

it works perfectly.

Lukas


On Sat, 20 Jun 2015 11:40:47 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:




Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz
20. Juni 2015 11:30
Hello,

I'm not able to limit level of sections in TOC so to not show
\subsubsection:


%\setuplist[content][level=subsection] % Doesn't work
%\setuplist[content][section,subsection] % Doesn't work

\starttext
  \placecontent[level=subsection] % Doesn't work
  \hairline
  \placecontent[level=3] % Doesn't work
  \hairline

  \section{Sec}
\subsection{SSec}
  \subsubsection{SSSec}
\stoptext


I studied wiki (http://wiki.contextgarden.net/Command/setuplist) and
also contextref.pdf (pg. 218) but without success.

The level key doesn't work with MkIV but you can use the following two
methods.

1. Use the \placelist command and list the sections you want to show, e.g.

 \placelist[chapter,section,subsection]

2. Use the list key for \placecontent to show only the listed entries, e.g.

 \placecontent[list={chapter,section,subsection}]

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Component of a product (correction!)

2015-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose the following case:

 Book.mkiv
\startproduct *
   \component A.mkiv
   \component B.mkiv
\stopproduct


 A.mkiv
\startcomponent *
   \section{A}
\stopcomponent


 B.mkiv
\startcomponent *
   \section{B}
\stopcomponent


When compiling Book.mkiv, I'm getting the following sections (obviously):
1. A
2. B

Similarly, when compiling A.mkiv, I'm getting:
1. A

and for B.mkiv:
1. B

But: is there a way to say to ConTeXt - when compiling just B.mkiv - that 
B.mkiv is supposed to be a part of a product (Book.mkiv) and so that the 
chapter should be numbered from 2, so to get:
2. B... --- Correction here compared with the previous mail
?

I supposed that project/product/component abilities of ConTeXt were mentioned 
for this, but...?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Book.mkiv
Description: Binary data


B.mkiv
Description: Binary data


A.mkiv
Description: Binary data
___
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] Component of a product

2015-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose the following case:

 Book.mkiv
\startproduct *
  \component A.mkiv
  \component B.mkiv
\stopproduct


 A.mkiv
\startcomponent *
  \section{A}
\stopcomponent


 B.mkiv
\startcomponent *
  \section{B}
\stopcomponent


When compiling Book.mkiv, I'm getting the following sections (obviously):
1. A
2. B

Similarly, when compiling A.mkiv, I'm getting:
1. A

and for B.mkiv:
1. B

But: is there a way to say to ConTeXt - when compiling just B.mkiv - that 
B.mkiv is supposed to be a part of a product (Book.mkiv) and so that the 
chapter should be numbered from 2, so to get:
1. B
?

I supposed that project/product/component abilities of ConTeXt were mentioned 
for this, but...?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

A.mkiv
Description: Binary data


B.mkiv
Description: Binary data


Book.mkiv
Description: Binary data
___
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 typeset differential (math)?

2015-06-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to typeset differential in math correctly?

Here are my attempts:


\definemathcommand[dif][nolop]{\mfunction{d}} % Based on 
http://wiki.contextgarden.net/Math/functions

\starttext
  \startformula
\sin x {\tf d} x
  \stopformula

  \startformula
\sin x \dif x
  \stopformula
\stoptext


But:

- case 1: there is no space between d and x (should be similar to that between sin 
and x)

- case 2: d in the formula is shifted down (?!) somehow.

So - ?

Other questions:

I need to typeset some math text.

- Variables should be typeset slanted, which is OK (see x in the example).

- Functions (sin, log... d in df/dx) should be typeset non-slanted - I guess 
\definemathcommand is supposed for this (or is there a better way?).

- Vector variables should be typeset bold slanted - is there a special command 
for this? (\vec adds arrow above the expression, so it is not supposed for 
this).

Thank you in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

dif.mkiv
Description: Binary data


dif.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] How to typeset differential (math)?

2015-06-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Wed, 17 Jun 2015 16:23:01 +0200, Manuel Blanco manue...@ucm.es wrote:


The easy way to answer that:
\definemathcommand[dif][nolop]{\mfunction{d}} didn't work because it's
intended for log-like functions, and you don't want a log-like
function, but a differential, which behaves differently (for instance,
you *want* space between the function and the argument in `\sin x \cos
y` but you *don't want* spaces between the “d” and the variable in
`\dif x \dif y`).

About `\mfunction` I don't know, I think what's in the wiki is enough,
it's the command that sets the font used for other upright functions
(notice that some people prefer italic differentials hence the
definition would be \define\dif{\mathop{}\!d}).

And about how does that work, well, basically what you want is a thin
space added on the left, but not on the right, so \mathop{} gives a
thin space on both sides, then with \! you remove the thin space on
the right and you then leave the \mfunction{d} with normal spacing.

That definition behaves correctly in every case (except if you use
“physics-like” notation where the differential comes just after \int).

I hope I don't leave anything relevant out (but I'm no expert).


... thank you for deep explanation!

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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 typeset differential (math)?

2015-06-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks for the solution: \define\dif{\mathop{}\!\mfunction{d}}

Some explanation for \mathop and \mfunction would be appreciated,
and also explanation why \definemathcommand[dif][nolop]{\mfunction{d}} didn't 
work...

But it is not urgent, just for perfection...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thank you, that's great.

One more question - how to use another symbol, bigstar (see symbols-a4.pdf 
or the attached image)?

I tried the following code, but with no success:


\starttext
Ttt \symbol[bigstar]

Aaa \bigstar

Bbb \symbol[mathabx][bigstar]

\stoptext


Best regards,

Lukas


On Tue, 09 Jun 2015 11:02:05 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:




Am 09.06.2015 um 09:21 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

Hello,

how to typeset centerd asterisk (*) in Ctx?

I mean the symbol which is used in the third level of itemization 
(http://wiki.contextgarden.net/Enumerations) or which can be typeset by 
\textasteriskcentered in LaTeX.

(I cannot find the symbol definition in Ctx itemize-command definition (source files) and 
simple writing \textasteriskcentered doesn't work.)


The symbols in different itemise levels can be shown with \symbol[1], 
\symbol[2] etc. but since these numbered symbols can be redefined it is better 
to use the named symbol to access the star with \symbol[star].

The following example shows a few of the predefined symbols.

\starttext

\starttabulate[|l|c|]
\NC \bf Command \NC \bf Symbol   \NC\NR
\TB
\NC \type{\symbol[1]}   \NC \symbol[1]   \NC\NR
\NC \type{\symbol[2]}   \NC \symbol[2]   \NC\NR
\NC \type{\symbol[3]}   \NC \symbol[3]   \NC\NR
\NC \type{\symbol[4]}   \NC \symbol[4]   \NC\NR
\NC \type{\symbol[5]}   \NC \symbol[5]   \NC\NR
\NC \type{\symbol[6]}   \NC \symbol[6]   \NC\NR
\NC \type{\symbol[7]}   \NC \symbol[7]   \NC\NR
\NC \type{\symbol[8]}   \NC \symbol[8]   \NC\NR
\TB
\NC \type{\symbol[bullet]}  \NC \symbol[bullet]  \NC\NR
\NC \type{\symbol[dash]}\NC \symbol[dash]\NC\NR
\NC \type{\symbol[star]}\NC \symbol[star]\NC\NR
\NC \type{\symbol[triangle]}\NC \symbol[triangle]\NC\NR
\NC \type{\symbol[circle]}  \NC \symbol[circle]  \NC\NR
\NC \type{\symbol[square]}  \NC \symbol[square]  \NC\NR
\NC \type{\symbol[diamond]} \NC \symbol[diamond] \NC\NR
\TB
\NC \type{\symbol[smallcircle]} \NC \symbol[smallcircle] \NC\NR
\NC \type{\symbol[medcircle]}   \NC \symbol[medcircle]   \NC\NR
\NC \type{\symbol[bigcircle]}   \NC \symbol[bigcircle]   \NC\NR
\stoptabulate

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



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-Ast.mkiv
Description: Binary data
___
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] Asterisk

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

could you provide a MWE?

 A file in UTF-8
\starttext
% Let's use the default Ctx font
% What to come here?
\stoptext


Lukas


On Tue, 09 Jun 2015 09:46:55 +0200, Philipp A. flying-sh...@web.de wrote:


just copy some symbol from here:
http://en.wikipedia.org/wiki/Asterisk#Encodings

and be sure to use a font containing them.

alternatively define a command which temporarily switches to such a font
in, displays the symbol, and switches back.

Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz schrieb am Di., 9.
Juni 2015 um 09:25 Uhr:


Hello,

how to typeset centerd asterisk (*) in Ctx?

I mean the symbol which is used in the third level of itemization (
http://wiki.contextgarden.net/Enumerations) or which can be typeset by
\textasteriskcentered in LaTeX.

(I cannot find the symbol definition in Ctx itemize-command definition
(source files) and simple writing \textasteriskcentered doesn't work.)

Thank you in advance.

Best regards,

Lukas



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to typeset centerd asterisk (*) in Ctx?

I mean the symbol which is used in the third level of itemization 
(http://wiki.contextgarden.net/Enumerations) or which can be typeset by 
\textasteriskcentered in LaTeX.

(I cannot find the symbol definition in Ctx itemize-command definition (source files) and 
simple writing \textasteriskcentered doesn't work.)

Thank you in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Gobbled spaces after \starttyping

2015-06-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose the following code:


\starttext
\starttyping
  Aaa
  Bbb
\stoptyping
\stoptext


It produces:


Aaa
  Bbb


How to force ConTeXt not to gobble spaces after \setuptyping, to get:


  Aaa
  Bbb


i.e. to obey two blanksbefore Aaa?

Thank you in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Verb.mkiv
Description: Binary data


Verb.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] parsing in child attribute

2015-05-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Mon, 04 May 2015 00:09:38 +0200, Pablo Rodriguez oi...@gmx.es wrote:


And chapter 7 is especially cryptic to me, In fact, I tried
\xmlattribute {#1} {../div} {id} before and it didn’t worked. Now I
don’t understand why.


I must confirm Pablo's experience with myself
- chapter Example paths just tell me there are great possibilities with x-paths but 
I'm not able to assemble them successfully.

E.g. there is (pg. 38):


pattern: answer/test/child:

1 axis auto-descendent-or-self
2 nodes *:answer
3 axis auto-child
4 nodes *:test
5 axis child


How to understand this?
What does axis / node mean?
What numbers 1 ... 5 mean?

Some basic explanation of such pattern would be nice...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] ConTeXt installation problem with Windows 8.1

2015-04-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Tue, 28 Apr 2015 18:07:58 +0200, Jaroslav Hajtmar hajt...@gyza.cz wrote:


Hello ConTeXist.
I tried to install standalone ConTeXt (64 bit. Version) into the new 
installation of Windows 8.1 During installation, I encounter a message about 
missing DLL library (at first MSVCR100.DLL, after insert this library next 
error message.). Does anyone have a similar experience? respectively. How do I 
install Windows ConTeXt to 8.1
Thanks. Jaroslav Hajtmar


although the following solution for Ctx installation is ad-hoc, not 
systematic, it should solve your problem:
add the missing MSVC libraries from MS Redistributable Package:

https://msdn.microsoft.com/en-us/library/8kche8ah(v=vs.100).aspx

The problem appears time-to-time to end users and not to program developers, as MS Visual 
Studio includes/installs the required DLLs (which are part of Redist. Pack.) 
automatically (so it works for developers).

And then, an end user may need to install the missing DLLs manually.
(When a SW has an installer, it often handles this step automatically.)

So, try do download  install the proper MS Redistributable Package; it's 
free (download and install, both).

Cheers,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Keeping section and subsection together

2015-04-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks Pablo for the suggestion and Hans for the solution...

I'd rather wait publishing the trick 
\setuphead[section][after={\blank[samepage,big]}] as I think this issue will be handled 
systematically (Hans' intention for the next beta).

Best regards,

Lukas


On Fri, 24 Apr 2015 10:31:50 +0200, Hans Hagen pra...@wxs.nl wrote:


On 4/24/2015 7:32 AM, Pablo Rodriguez wrote:

On 04/23/2015 11:50 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

the following sample generates section title 5 Sec as a
last/solitary heading (section) on the page.


\starttext
\dorecurse{5}{
  \section{Sec}
\subsection{Subsec}
  \input ward
}
\stoptext


Is there a way to bind it with the next head (subsection) - so that
5 Sec, 5.1 Subsec (and at least one line of the following
paragraph) would be together on one page?


Hi Lukáš,

add the following to the document preamble:

 \setuphead[section][after={\blank[samepage,big]}]

BTW, could you add this to http://wiki.contextgarden.net/Titles?


actually there is rather complex code in the core that deals with it ..
(and also deals with too many on one page and so, as it's a weighted
system) ... i just checked and a variable is not reset .. fixed in an
upcoming beta (no upload yet, first alan and i need to agree on some bib
issues working ok)

Hans



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Keeping section and subsection together

2015-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the following sample generates section title 5 Sec as a last/solitary heading 
(section) on the page.


\starttext
  \dorecurse{5}{
\section{Sec}
  \subsection{Subsec}
\input ward
  }
\stoptext


Is there a way to bind it with the next head (subsection) - so that 5 Sec, 5.1 
Subsec (and at least one line of the following paragraph) would be together on one page?

Kind regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-Sec.mkiv
Description: Binary data


t-Sec.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] \setuphead for all existing sections

2015-04-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Tue, 21 Apr 2015 00:38:18 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


The \setupheads command is only a synonym for \setuphead but there can be a 
difference between

\setuphead[..,..=..,..]

and

\setuphead[section][..,..=..,..]

Wolfgang


confirmed:


\setuphead[distance=2in]

\starttext
 \section{Sec}
   \subsection{Subsec}
\stoptext


the code above doesn't change the section distance, either.

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \setuphead for all existing sections

2015-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way to affect (setup) all sections that have been defined, like:


\setuphead[*][distance=1.5em]


instead of:


\setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em]


The latter way needs to know all section names;
the former way allows to modify them all, without knowledge of their individual 
names.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Evaluating a Lua expression at the end

2015-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

another single-pass approach, which uses the fact that you know the questions and their 
point weights in advance is to form questions into a Lua table and evaluate 
the total first:


local C = context

local tab =
{ {Question 1, 10, },
  {Question 2, 20, },
  {Question 3, 30, },
}

local n = 0

for _, v in ipairs(tab) do local q, n1 = unpack(v); n = n + n1 end

-- Or: for _, v in ipairs(tab) do n = n + v[2] end

local f = function(it)
  local q, n1 = unpack(it)

  n = n + n1

  C(q .. :  .. n)
  C.par()
end

C.starttext()
  C(Total score:  .. n)
  C.par()

  n = 0 -- Reset

  f(tab[1])
  f(tab[2])
  f(tab[3])

  -- Or: for _, v in ipairs(tab) do f(v) end
C.stoptext()


Best regards,

Lukas



Thanks for the response. I am looking at something like this:

==
\starttext
\directlua{total = 0}
\title{Homework 1}

Total score: \directlua{tex.print(total);}

Question 1 (3 points)
\directlua{total = total + 3}

Question 2 (4 points)
\directlua{total = total + 4}

Question 3 (5 points)
\directlua{total = total + 5}

\stoptext
==

I expect the “Total score” to be followed by “12”, but I don't know
how to get that (or whether that is even possible).

Thanks.

Kumar



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Count2.cld
Description: Binary data


Count2.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] Evaluating a Lua expression at the end

2015-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Kumar,

could you provide a (non-working) minimal example?

I tried this:


local C = context

local n = 0

C.starttext()

  C(A)
  n = n + 1
  C(B)
  n = n + 1
  C(C)
  n = n + 1

print(***, n)

C.stoptext()

print(, n)


and I got 3 (twice) - what I expected:


...
ConTeXt  ver: 2015.04.08 21:31 MKIV beta  fmt: 2015.4.9  int: english/english
...
\\Count.cld', result 'Count'
...
sandbox  call  processing as cld: 
d://Lukas/Jobs/Podebrady-Sachta.RDS/Deska.SO/Statics/t/Count.cld
*** 3

3

...


... And similar result for Count.mkiv.

On Mon, 13 Apr 2015 13:53:28 +0200, Kumar Appaiah a.ku...@alumni.iitm.ac.in 
wrote:


Hi.

I am trying to set up a system where I can use Lua to find a total
that I can display at the end. For example, if I set a question paper,
after each question, I do a \directlua{total = total + 4}, assuming
this question has 4 points. At the top of my document, I now want to
say Total points: and display the value of total.

Now, naturally, using \directlua gives me 0, since total is 0 at the
beginning. But \latelua didn't seem to be what I am looking for. Could


Where could I learn more about \latelua (I'm hearing first time now about that 
command)...

Best regards,

Lukas



someone please guide me in the right direction?

Thanks.

Kumar



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Count.cld
Description: Binary data


Count.pdf
Description: Adobe PDF document


Count.mkiv
Description: Binary data
___
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] Non-shortened month name in \date

2015-04-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,


\mainlanguage[cz]

\starttext
  \date[d=1,m=3,y=2000][d,~,m,~,y]\par
  \date[d=1,m=3,y=2000][d,~,mm,~,y]\par
  \date[d=1,m=3,y=2000][d,~,month,~,y]\par
\stoptext


gives:


1 břez. 2000
1 03 2000
1 břez. 2000


Is there a way to get non-shortened month name, i.e. března instead břez.?

Kind regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Wiki / sample

2015-04-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the Sample 2 on http://wiki.contextgarden.net/Command/definedescription
compiles well on my computer (one of the latest Ctx version)
but not on wiki.

(It happens to me time to time when I want to add a sample, mostly a snip from 
the mailing list.)

IMHO, there is still a Ctx version mismatch between latest Ctx Beta (or another 
stable Ctx version) and that on wiki.

It would be nice:

- to know which Ctx version compiles wiki samples
(Ctx, Lua  MP stamp - automatically generated on each Ctx renewal - 
would be useful to appear (on the initial?) wiki page),

- I guess wiki Ctx should renew more often (to prevent difference between the 
latest Ctx and that on wiki enlarges).

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] overlay or layer for chapter head.

2015-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Thu, 02 Apr 2015 14:46:11 +0200, Otared Kavian ota...@gmail.com wrote:


Hi,

Maybe you need to say state=repeat in the definition of your layer:

\definelayer[chapterbackground][state=repeat]


'[state=repeat]' causes all pages have the 'mill' background.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Vertical space after \head

2015-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is it possible to affect simply vertical space being generated after \head?

Here:


\starttext
  \startitemize[][headstyle=bold]
\head Something\par
  \input knuth
  \stopitemize
\stoptext


I'd like to have space of size \blank[medium] between the head and the 
following text.

But it seems nothing of joinedup, after, before or inbetween affects 
the space.

So - is it possible somehow?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Vertical space after \head

2015-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thank you, Wolfgang; I wasn't aware of afterhead option.

I added some info (and a snip) here:

http://wiki.contextgarden.net/Command/startitemize

although I found some existing info on wiki/\setupitemgroup;
however, I wasn't able to add some useful info onto the latter place.

Best regards,

Lukas


On Tue, 31 Mar 2015 15:39:14 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


\starttext

\setupitemize[headstyle=bold,afterhead={\blank[medium]}]

\startitemize
\starthead{Ward}
\input ward
\stophead
\startitem
\input weisman
\stopitem
\stopitemize

\stoptext

Wolfgang


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Is there a way to completely remove all auxiliary and resulting files?

2015-03-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

typing context.exe with no argument yields:

C:\Lukas\Jobs\R6-011.ZDS\1-PDPS\B-StavCast\SO_201\Detailscontext.exe


mtx-context | ConTeXt Process Management 0.61
mtx-context |
mtx-context | basic options:
mtx-context |
mtx-context | --run  process (one or more) files (default 
action)
mtx-context | --make create context formats
mtx-context |
mtx-context | --ctx=name use ctx file (process management 
specification)
mtx-context | --interfaceuse specified user interface (default: 
en)
mtx-context |
mtx-context | --autopdf  close pdf file in viewer and start pdf 
viewer afterwards
mtx-context | --purgepurge files either or not after a run 
(--pattern=...)
mtx-context | --purgeall purge all files either or not after a 
run (--pattern=...)
...
mtx-context | wiki : http://contextgarden.net


So isn't context.exe --purgeall what you're looking for?

Lukas


On Tue, 24 Mar 2015 15:04:38 +0100, Norbert Melzer timmel...@gmail.com wrote:


Is there a way to completely delete all files, that were created during a
context run?

Similar to the `-c`/`-C` options in `latexmk`?

I could create a script using bat/sh but I would prefer to not have to
maintain 2 cleanscripts for the different environments that are used to
create the document.




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] # in file name

2015-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Fri, 20 Mar 2015 15:05:25 +0100, Hans Hagen pra...@wxs.nl wrote:


On 3/20/2015 2:25 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

I need to insert a figure PrehlSit#A2.pdf - a file whose name contains # - by 
Lua.

How to code the name?



one can flush with verbatim catcodes but another solution is:

foo\\letterhash bar


great, it works, thank you!

Lukas


How to code the file name?



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] # in file name

2015-03-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I need to insert a figure PrehlSit#A2.pdf - a file whose name contains # - by 
Lua.

How to code the name?

I tried:


\startluacode
  context.pagefigure({PrehlSit#A2.pdf}, {scale=500})
  context.pagefigure({PrehlSit\#A2.pdf}, {scale=500})
  context.pagefigure({PrehlSit##A2.pdf}, {scale=500})
\stopluacode


But nothing works.

How to code the file name?

(BTW:

I'm aware that # in file names is not recommended.
But files with # mean final among all files I (and others) are working on, so 
keeping # in the file name (like a flag) is really desirable.)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] File name to print to include %

2015-03-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'd like to get:

%Home%

with \hyphenatedfilename to the Ctx output.

But, these two methods don't work:

\hyphenatedfilename{\%Home\%} -- gives \%Home\% and
\hyphenatedfilename{%Home%} -- (obviously) produces error.

So what to write into \hyphenatedfilename to get %Home%?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Multiline header

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... And wikified: http://wiki.contextgarden.net/Command/setupheadertexts

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Multiline header

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Mon, 16 Mar 2015 18:34:00 +0100, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:




Am 16.03.2015 um 13:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

Hello,

how to create multiline header?

This code ignores all attempts to force a new line:


\setupheadertexts[{abc\par def\\ ghi\crlf jkl}]


\startsetups[headertext]
\startframed[frame=off,align=flushleft,width=fit]
abc\\
def\\
ghi\\
jkl
\stopframed
\stopsetups

\setupheadertexts[\directsetup{headertext}]

\starttext
 aaa
\stoptext

Wolfgang


this works perfectly, thank you!

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

MLHeader.mkiv
Description: Binary data


MLHeader.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] Now that I have something working on mkiv, I'd like to try ePUB

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

there are some ePUB and XML conversion/processing questions time to time here 
in the forum.

Try to search or to ask directly someone who asked for ePUB conversion.

(I have no experience with ePUB.)

Lukas


On Sun, 15 Mar 2015 22:12:33 +0100, Gerben Wierda gerben.wie...@rna.nl wrote:


Now that I have my book project basically running on mkiv (the layout probably 
has a few problems left, the main one currently being extra whitespace after a 
chapter heading  compared to mkii), I’d like to try producing ePUB from it.

ConTeXtgarden says I have to add a backend and points me to the info on the 
standard project structure (which I use), but there I don’t find anything about 
a backend. The extended example says that starting january 2015, things have 
changed with ePUB, which probably also applies to me as I only recently started 
with a fresh download of a current ConTeXt mkiv.

So, can someone tell me what I need to do to get a basic ePUB output?

And what command do I run to update my separate ConTeXt tree?

And which one to find out what version I’m running?

G



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Multiline header

2015-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to create multiline header?

This code ignores all attempts to force a new line:


\setupheadertexts[{abc\par def\\ ghi\crlf jkl}]

\starttext
  aaa
\stoptext


Thank you in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Multiline header

2015-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Mon, 16 Mar 2015 14:00:54 +0100, luigi scarso luigi.sca...@gmail.com wrote:


On Mon, Mar 16, 2015 at 1:54 PM, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:


Hello,

how to create multiline header?

This code ignores all attempts to force a new line:


\setupheadertexts[{abc\par def\\ ghi\crlf jkl}]

\starttext
  aaa
\stoptext




this works, but probably there are better options

\setupheadertexts[\ruledvbox{abc\par def\par ghi\par jkl}]


\setupheadertexts[\vbox{abc\par def\par ghi\par jkl}]

works, too, but a nicer solution would be appreciated...

Lukas



\starttext
  aaa
\stoptext





--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Fri, 06 Mar 2015 14:45:44 +0100, Hans Hagen pra...@wxs.nl wrote:


On 3/6/2015 1:08 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Thanks for explanation, I didn't know about that...


i guess that there is a lot of stuff deep down only a few people know
about (this is typical needed for more complex workflows) ... when i run
into them i'll try to document them in 'workflows' but suggestions are
welcome


one all-embracing though non-final manual (even pasted together from 
various fragments) would be welcome;
and is asked here in the forum from time to time (especially by newbies who 
suppose such document must exist).


(right now Alan is updating the new publications manual which will have
some 8000 pages of tricky details and hidden features that we forget
about as soon as we've added them)


Comparing with the last (AutoCAD) manual I bought:
such Ctx manual in printed version would give 8 volumes with 1000 pages;
each volume 50 mm thick, on a thinner paper, onto 180 x 240 mm page size.

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Thanks for explanation, I didn't know about that...

Lukas


On Fri, 06 Mar 2015 10:52:47 +0100, Hans Hagen pra...@wxs.nl wrote:


On 3/6/2015 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

when you want to use your personal (additional) path (but apparently not
a tree), e.g. for styles (environments), you can use --path switch:


context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex


(Source: context.exe --help)

(Once I tried also:


set TeXMFLocal=c:\MyName\MyContextStyles  context.exe MyFile.tex


but ConTeXt doesn't look for TeXMFLocal nor TeXMF-Local environment
paths, as I believed.)

I didn't test whether
--path=c:\MyDirectory\MyContextStyles/ or
--path=c:\MyDirectory\MyContextStyles// or
--path=c:\MyDirectory\MyContextStyles/* or
--path=c:\MyDirectory\MyContextStyles/**
causes Ctx to use the whole tree instead of one path.


why should it ... a path is a path unless specified otherwise

we have a runtime tree search with:

   context --path=tree://e:/tmp/whatever/**/ --global somefile.tex

which is quite ok for jobs that involve not that many files

and a cached-across-jobs search with

   context --path=dirfile://e:/tmp/whatever --global somefile.tex

(in that case you need to delete dirlist.tuc in the given path when you
add or remove files)

the second one we use here in automated runs on servers where books are
generated from thousands of small files sitting on an nfs share and this
speeds up the search

the --global bypasses the check for a valid file

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
___



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

when you want to use your personal (additional) path (but apparently not a 
tree), e.g. for styles (environments), you can use --path switch:


context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex


(Source: context.exe --help)

(Once I tried also:


set TeXMFLocal=c:\MyName\MyContextStyles  context.exe MyFile.tex


but ConTeXt doesn't look for TeXMFLocal nor TeXMF-Local environment paths, as I 
believed.)

I didn't test whether
--path=c:\MyDirectory\MyContextStyles/ or
--path=c:\MyDirectory\MyContextStyles// or
--path=c:\MyDirectory\MyContextStyles/* or
--path=c:\MyDirectory\MyContextStyles/**
causes Ctx to use the whole tree instead of one path.

Best regards,

Lukas



texmfcnf.lua (can be in your texmf-local tree) or the TEXMF env var; not
so different from regular texlive, only in a different configuration file



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Blank space between \subsection columns (related to: XML processing columns (almost) empty pages)

2015-02-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I found a more minimal example which produces unwanted blank space between 
\subsection and columns:


% nofruns=1

\starttext
  \dorecurse{5}{
\subsection{T}
\startcolumns[n=4,balance=yes]
  \input knuth
\stopcolumns
}
\stoptext


The blank space appears on pg. 2 (subsection #4) - the head is not bound to the 
following columns.

Why is there the blank space?
How to avoid it?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Cols.mkiv
Description: Binary data


Cols.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] Placing a box with left-aligned lines on the right border

2015-02-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to more easily achieve this?:


Some text on line   Text in box
Longer text in the box
Shorter text in box

|--|
  Width of the box is
  that of the longest
  text in it

 ||
  Some space between the preceeding
  text and the box
|--|
  Text width available (\textwidth)


The solution should have the following features:

- Text in the box to be written at once with a token (be \\ or \par or 
another) to go to the next line;
- The box (wrapping Text in box, Longer text in the box, Shorter text in 
box) should have no width specified -
it should get it from the longest member (line) in it (in our case: width of 
Longer text in the box);
- Text in the box should be alignleft;
- Base line of first text the box to be vertically aligned to the base of the 
preceding text, i.e.
Some text on line to have the same basement as Text in box;
- A horizontal filler may be placed between Some text on line and the box to fit 
text width available.

Two ways that don't go to the goal, just to demonstrate my trials and fails:


\starttext

% 1

Some text on line\hfill Text in box\par
 \hfill Longer text in the box\par
 \hfill Shorter text in box\par

% 2

Some text on line\hfill\framed[width=5cm,align=flushleft,frame=off]
  {Text in box\\
   Longer text in the box\\
   Shorter text in box}

\stoptext


Way 1 - problems:

- The text to be boxed is not written in a box environment;
- the text to be boxed is not left-aligned in the box (as it actually is not in 
a box).

Way 2 - problems:

- The text in the box (\framed) must have width specified;
- the text in the box goes over the line where it is placed, not with first 
line basement aligned.

So - how to achieve the layout desired?

(Hint:

The situation may be imagined as the top of a letter page:

write some text to the left, fill with the maximum space till you reach the box 
for an address on the right of the current line;
write address lines left-aligned inside the box.)

Thank you for ideas in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t3.mkiv
Description: Binary data


t3.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] Placing a box with left-aligned lines on the right border

2015-02-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thank you - method 1 is exactly what I'm looking for.

Best regards,

Lukas

On Wed, 18 Feb 2015 14:58:49 +0100, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:




Am 18.02.2015 um 11:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

Hello,

how to more easily achieve this?:


Some text on line   Text in box
   Longer text in the box
   Shorter text in box

   |--|
 Width of the box is
 that of the longest
 text in it

||
 Some space between the preceeding
 text and the box
|--|
 Text width available (\textwidth)


The solution should have the following features:

- Text in the box to be written at once with a token (be \\ or \par or 
another) to go to the next line;
- The box (wrapping Text in box, Longer text in the box, Shorter text in 
box) should have no width specified -
it should get it from the longest member (line) in it (in our case: width of 
Longer text in the box);
- Text in the box should be alignleft;
- Base line of first text the box to be vertically aligned to the base of the 
preceding text, i.e.
Some text on line to have the same basement as Text in box;
- A horizontal filler may be placed between Some text on line and the box to fit 
text width available.



Method 1 (frame based):

\starttext

Some text on line
\hfill
\startframed[width=fit,align=flushleft,frame=off,location=top]
Text in box\\
Longer text in the box\\
Shorter text in box
\stopframed

\stoptext


Method 2 (layer based):

\definelayer[letterhead][width=\textwidth]

\setupbackgrounds[text][background=letterhead]

\starttext

\setlayerframed
  [letterhead]
  [preset=lefttop]
  [offset=0pt,frame=off]
  {Some text on line}

\setlayerframed
  [letterhead]
  [preset=righttop]
  [offset=0pt,width=fit,align=flushleft,frame=off,location=top]
  {Text in box\\
   Longer text in the box\\
   Shorter text in box}

\blank[force,4*line]

\input knuth

\stoptext


Wolfgang



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] XML - accessing parental children attribute (was: some troubles)

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks Hans, this works perfectly...

Lukas



\startbuffer[demo]
a
   aa number=/aa
   aa number=a1A1/aa
   ax number=x1X1/ab
   ab number=b1B1/ab
   aa number=/aa
   aa number=a2A2/aa
   ax number=x2X2/ab
   ab number=b2B2/ab
   aa number=/aa
   aa number=a3A3/aa
   ax number=x3X3/ab
   ab number=b3B3/ab
/a
\stopbuffer

\startxmlsetups xml:initialize
 \xmlsetsetup{#1}{*}{xml:*}
\stopxmlsetups

\startxmlsetups xml:a
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:aa
 \par
 aa\xmlflush{#1}/aa
 \par
\stopxmlsetups

\startxmlsetups xml:ax
 \par
 ax\xmlflush{#1}/ax
 \par
\stopxmlsetups

\startxmlsetups xml:ab
 \par
 ab
 \xmlflush{#1}:\space
 aa: \xmlfilter{#1}{reverse-sibling::[tag() ==
'aa']/attribute('number')}\space
 ax: \xmlfilter{#1}{reverse-sibling::[tag() ==
'ax']/attribute('number')}\space
 /ab
 \par
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\starttext
   \xmlprocessbuffer{main}{demo}{}
\stoptext



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] XML - accessing parental children attribute (was: some troubles)

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

a slightly modified example:

 t.xml

a
  aa number=111AA/aa
  ab number=222AB/ab
/a



and the Ctx source:

 t.mkiv

\startxmlsetups xml:T
  \xmlfunction{#1}{test}
  \xmlsetsetup{\xmldocument}{*}{+}
  % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?!
  \xmlsetsetup{\xmldocument}{a/aa}{xml:*}
  \xmlsetsetup{\xmldocument}{a/ab}{xml:*}
\stopxmlsetups

\startluacode
  local aux = aux; if not aux then aux = {}; _G.aux = aux end

  xml.functions.aa = function(t)
aux.num = t.at.number
  end
\stopluacode

\startxmlsetups xml:aa
  \xmlfunction{#1}{aa}
\stopxmlsetups

\startxmlsetups xml:ab
  \xmlfunction{#1}{ab}
  \ctxlua{context.section(New section  .. (aux.num or ??))}
  \xmlflush{#1}
\stopxmlsetups

\xmlregistersetup{xml:T}

\starttext
  Hello

  \xmlprocessfile{id}{t.xml}{}
\stoptext



Two (remaining) questions:

1)

Why the line \xmlsetsetup{\xmldocument}{*}{-} (try to uncomment!) causes the whole 
output is empty, even if I specify another operation for a/ab elements later?

My intention is to have {*}{-} (don't flush anything by default), excluding elements 
specified later, e.g. a/ab (with another operation specified);
how to achieve this?

2)

How to get aa.number from within ab element?

I believed \xmlatt{#1/../aa}{number} within a/ab will do that, but...? How 
to do that?

I have a partial solution: when processing a/aa, I save an attribute value to 
a Lua variable, which I use later;
but this solution doesn't look very clean for me;
I'd rather find a way to access parental (first) child attributes form within a 
node...

Thank you in advance;
I'm not very familiar with Ctx XML processing (so far)...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
a
  aa number=111AA/aa
  ab number=222AB/ab
/a
___
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] XML - some troubles

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose having:

 t.xml

a
  aa number=111AA/aa
  abAB/ab
/a



and the Ctx source:

 t.mkiv

\startxmlsetups xml:T
  \xmlsetsetup{\xmldocument}{*}{+}
  % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?!
  \xmlsetsetup{\xmldocument}{a/ab}{xml:*}
\stopxmlsetups

\startxmlsetups xml:ab
  \section{New section \xmlatt{#1/../aa}{number}}
  \xmlflush{#1}
\stopxmlsetups

\xmlregistersetup{xml:T}

\starttext
  Hello

  \xmlprocessfile{id}{t.xml}{}
\stoptext



Some questions:

1)

Why the line \xmlsetsetup{\xmldocument}{*}{-} (try to uncomment!) causes the whole 
output is empty, even if I specify another operation for a/ab elements later?

My intention is to have {*}{-} (don't flush anything by default), excluding elements 
specified later, e.g. a/ab (with another operation specified);
how to achieve this?

2)

How to get aa.number from within ab element?

I believed \xmlatt{#1/../aa}{number} within a/ab will do that, but...? How 
to do that?

Thank you in advance;
I'm not very familiar with Ctx XML processing (so far)...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.mkiv
Description: Binary data
a
  aa number=111AA/aa
  abAB/ab
/a
___
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] Attachment marks to be aligned horizontally

2015-01-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

marks of attachments in the attached MWE are aligned in the following way:

- after A and C - horizontally,
- after B - vertically.

The only difference is that \blank precedes in the B case.

So - how to force horizontal alignment for attachment marks in the B case,
supposing that \blank before is necessary for any reason?

The code follows:


\setupinteraction[state=start]

%

\starttext
  A
  \attachment[t-Att2.mkiv]
  \attachment[t-Att2.mkiv]

  \startitemize[][]
\item B
  \blank
  \attachment[t-Att2.mkiv]
  \attachment[t-Att2.mkiv]

\item C
  \attachment[t-Att2.mkiv]
  \attachment[t-Att2.mkiv]
  \stopitemize
\stoptext


TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-Att2.mkiv
Description: Binary data


t-Att2.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] Latest beta: bug with 'convert()'?

2014-12-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm getting the following failure:


c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:109: attempt to 
call field 'convert' (a nil value)
stack traceback:
c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:109: in 
function 'valid_xmp'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:117: in 
function 'pdfaddxmpinfo'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:132: in 
function 'addtoinfo'
[\directlua]:1: in main chunk

1 \environment ../../../../_e-TZ.mkiv
2
3 \starttext
4   \completecontent
5   \page
6   \stoptext
7


backend  xmp  using file 
'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'


I guess it has to do something with latest XML/Lua extension;
I don't have MnWE at the moment - but it might be fixed anyway...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Latest beta: bug with 'convert()'?

2014-12-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Hans,


hard to imagine ... did you patch one of the lxml-*.lua files?


I renewed Ctx now and it seems to work (the reported problem related to the 
yesterday's beta)...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Ctx XML

2014-12-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Hans,

On Thu, 11 Dec 2014 10:10:16 +0100, Hans Hagen pra...@wxs.nl wrote:



that already makes assumptions that it's just data ... the context xml
parser is a roundtrip one so a bit more control is provided:

local str = [[
?xml version=1.0 ?
a one=1
 !-- rubish --
   b two=1/
   b two=2
 c gt; d
   /b
/a
]]

I've added some flags:

inspect(xml.totable(xml.convert(str)))

table={
  {
   xml version=\1.0\ ,
   [_type]=instruction,
  },
  \
,
  {
   \
 ,
   {
 rubish ,
[_type]=comment,
   },
   \
   ,
   {
[_tag]=b,
[_type]=_element,
[two]=1,
   },
   \
   ,
   {
\
 c  d\
   ,
[_tag]=b,
[_type]=_element,
[two]=2,
   },
   \
,
   [_tag]=a,
   [_type]=_element,
   [one]=1,
  },
  [_type]=root,
}

inspect(xml.totable(xml.convert(str),true))

table={
  {
   xml version=\1.0\,
   [_type]=instruction,
  },
  {
   {
rubish,
[_type]=comment,
   },
   {
[_tag]=b,
[_type]=_element,
[two]=1,
   },
   {
c  d,
[_tag]=b,
[_type]=_element,
[two]=2,
   },
   [_tag]=a,
   [_type]=_element,
   [one]=1,
  },
  [_type]=root,
}

inspect(xml.totable(xml.convert(str),true,true))

table={
  {
   [0]=a,
   {
[0]=b,
[two]=1,
   },
   {
[0]=b,
c  d,
[two]=2,
   },
   [one]=1,
  },
}

The last one is yours. Of course in all cases you loose info that is
present in the original representation (where you can also access the
nodes via expressions). Don't expect additional helpers for this
'totable' variant.


this is great. I'll try it...

Thank you.

BTW: In your example, you are using the following enum of _type:

instruction,
comment,
_element, -- REALLY UNDERSCORE here?
root,

Best regards,

Lukas



Hans



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] pagefigure cow

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the following code doesn't find cow image with the latest beta; what am I 
doing wrong?


local C = context

C.starttext()
  C(a)
  C.pagefigure{cow}
C.stoptext()


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.cld
Description: Binary data


t.log
Description: Binary data


t.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] Ctx XML

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Thu, 11 Dec 2014 02:24:24 +0100, Hans Hagen pra...@wxs.nl wrote:


On 12/10/2014 11:08 PM, Lukáš Procházka wrote:

I assume that you also want the content of elements, not just the
attributes.


Yes...


Or how to achieve this in a best way under Ctx: XML file - Lua table/tree?


It all depends on what kin dof table you want (if the content is an
indexed table and attributes keys then you have the problem that the
element cannot be a key too as it can clash) .. anyway, it's no big deal
to provide a stupid table, so I can provide something because after all
the loaded xml file is a table already.


It would be great.


local x = xml.load(file.xml)

local t = xml.totable(x)

where x is an index/hash mix plus _tag, _type and _namespace fields as
well (after all I assume that you need to know that too).

(btw, I bet that you can do what you want with the existing
functionality as well, so there is not much benefit in such a table)

Probably in the next upload,


... Means - some functionality (for me to test or to play with) might be 
available tomorrow morning?


Hans


BTW, I prepared a really-simple-XML-test which shows XML - Lua table/tree 
conversion, which I'd like to achieve (and which (approx.) provides LuaXml lib).

 XML
a aaa=AAA
  b bbb=B1/
  b bbb=B2
c
  /b
/a


 Lua representation
{ [0] = a, -- Element name
  { [0] = b, -- Element name
-- No nested members
bbb = B1, -- Atts
  },
  { [0] = b, -- Element name
{ c, }, -- Nested member
bbb = B2, -- Atts
  },
  aaa = AAA, -- Atts
}


Thanks again.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038a aaa=AAA
  b bbb=B1/
  b bbb=B2
c
  /b
/a

!--
{ [0] = a, -- Element name
  { [0] = b, -- Element name
-- No nested members
bbb = B1, -- Atts
  },
  { [0] = b, -- Element name
{ c, }, -- Nested member
bbb = B2, -- Atts
  },
  aaa = AAA, -- Atts
}
--
___
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] MP/Lua binding (was: Pass a lua table to metapost)

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Hans,


it's possible to ask values from within mp:

\starttext

\startluacode
document.variables = {
 labels = {
 one,
 two,
 three,
 }
}
\stopluacode

\startMPpage
 numeric dx, dy;
 dx = 4.4cm;
 dy = 0.53cm;
 path b[];
 for i=1 upto lua(mp.print(\#document.variables.labels)) :
 b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy);
 draw b[i];
 label(lua(mp.quoted(document.variables.labels[  decimal i 
])), center b[i]);
 endfor
\stopMPpage

\stoptext


is there a doc where to study MP/Lua binding (mp members; examples) - like the manual 
ConTeXt Lua Documents?

Here we can see Lua mp.print() and mp.quoted() usage...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] MP/Lua binding

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 08 Dec 2014 14:32:16 +0100, Hans Hagen pra...@wxs.nl wrote:


article in bachotek proceedings and upcoming ctx group proceedings ... i
might consider a manual indeed

Hans


Personally, any printable/buyable manual on this topic would be appreciated...

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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

2014-10-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 20 Oct 2014 03:46:39 +0200, Hongwen Qiu qiuhong...@gmail.com wrote:


在 2014年10月17日 19:32, Procházka Lukáš Ing. - Pontex s. r. o. 写道:

Source  result attached.

I didn't expect your source even to compile since you missed out the
\starttext thing.


- I succeeded to compile... Of course, the code must contain \starttext, so 
re-attaching...

--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bkgs.mkiv
Description: Binary data
___
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] backgrounds

2014-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Source  result attached.

On Wed, 15 Oct 2014 10:33:28 +0200, Hans Hagen pra...@wxs.nl wrote:


Hi,

new in next beta

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

\starttext

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

\stoptext

(only two parameters pushed/popped)



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bkgs.mkiv
Description: Binary data


Bkgs.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] sidefloats

2014-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Source  result attached.

On Wed, 15 Oct 2014 10:35:04 +0200, Hans Hagen pra...@wxs.nl wrote:


new in next beta:

\starttext

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

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

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

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

\stoptext




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

SideFloat.mkiv
Description: Binary data


SideFloat.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] Win fonts lookup: ** (was: Animation captions (was: error in animation))

2014-10-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

when trying Jeong's example, Ctx prints:


fontsnames  globbing path 'c:/windows/fonts/**.otf'
fontsnames  identifying system font files with suffix 'OTF'
fontsnames  globbing path 'c:/windows/fonts/**.OTF'
fontsnames  0 system files identified, 0 skipped, 0 duplicates, 0 
hash entries added, runtime 0.094 seconds
fontsnames  identifying system font files with suffix 'ttf'
fontsnames  globbing path 'c:/windows/fonts/**.ttf'
fontsnames  identifying system font files with suffix 'TTF'
fontsnames  globbing path 'c:/windows/fonts/**.TTF'
fontsnames  453 system files identified, 2 skipped, 2 duplicates, 
451 hash entries added, runtime 6.719 seconds
fontsnames  identifying system font files with suffix 'ttc'
fontsnames  globbing path 'c:/windows/fonts/**.ttc'
fontsnames  identifying system font files with suffix 'TTC'
fontsnames  globbing path 'c:/windows/fonts/**.TTC'
fontsnames  3 system files identified, 0 skipped, 0 duplicates, 3 
hash entries added, runtime 0.094 seconds
fontsnames  identifying system font files with suffix 'dfont'
fontsnames  globbing path 'c:/windows/fonts/**.dfont'
fontsnames  identifying system font files with suffix 'DFONT'
fontsnames  globbing path 'c:/windows/fonts/**.DFONT'
fontsnames  0 system files identified, 0 skipped, 0 duplicates, 0 
hash entries added, runtime 0.047 seconds
fontsnames  identifying system font files with suffix 'afm'
fontsnames  globbing path 'c:/windows/fonts/**.afm'
fontsnames  identifying system font files with suffix 'AFM'
fontsnames  globbing path 'c:/windows/fonts/**.AFM'


So just to point there are two asterisks ** in the file name masks 
(c:/windows/fonts/**.otf, ... c:/windows/fonts/**.AFM), which probably produces no error, but it 
may have been intended to have just one asterisk, like c:/windows/fonts/*.otf etc.

Best regards,

Lukas


On Mon, 06 Oct 2014 04:33:28 +0200, Jeong Dal hak...@me.com wrote:


\usemodule[animation]
\useMPlibrary[dum]
\setupinteraction[state=start]
\definepairedbox[animationtext][location=top,align=middle]
\starttext
\startanimation
{\placeanimationtext{The letter a}{\externalfigure[dummy]}}
{\placeanimationtext{The letter b}{\externalfigure[dummy]}}
{\placeanimationtext{The letter c}{\externalfigure[dummy]}}
{\placeanimationtext{The letter d}{\externalfigure[dummy]}}
\stopanimation



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Gallery of fonts

2014-09-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I (partially) succeeded with creation of the font showcase;
the script attached generates simple preview of how the font looks.

If anyone interested, the result (~2.2 MB) may be downloaded from:

http://leteckaposta.cz/309703124

(The link will be valid for about 1 month from now.)

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

FontShow.cld
Description: Binary data
___
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] Gallery of fonts

2014-09-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello ConTeXtists,

there are many fonts distributed with Ctx standalone (minimals).

I'd like to create a gallery (or preview) of fonts - one font per page (A4) with all 
its kinds (italic, bold, semibold; ss, rm, hw atc.), and a couple of sizes (10, 11, 12, 16, 24 
pt).

Is there a way how to create such gallery, which would walk through Ctx fonts 
directory (on my machine: c:\ConTeXt\tex\texmf\fonts\*) automatically?

- This would allow user to have a better overview over AVAILABLE fonts and 
their LOOK;
and the code for the gallery generator would help user to see how to use/access 
fonts in a Ctx document.

Thanks in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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


  1   2   3   4   5   6   >