Re: [NTG-context] The best command for parallel texts

2018-07-02 Thread Wolfgang Schuster



Martin Hasoň 
1. Juli 2018 um 12:18
Hi all,

I need to type parallel text on double columns. I've tried paragraphs, 
tabulate, table and column environments.The best result of these 
options gives the tabulate.Unfortunately, it does not respect 
alignment - many \hbox errors in all environments except columns 
:(.What should I use and set up?


None of the table environments use the global alignment settings and
you have to set them again to get better results for the content.

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

[NTG-context] about \useexternalsoundtrack

2018-07-02 Thread Pablo Rodriguez
Dear list,

I’m interesting in embedding media clip objects (sounds) in PDF
documents and using them with JavaScript (something I’d have to learn
later).

I found the \useexternalsoundtrack command, but I don’t get it working
(https://mailman.ntg.nl/pipermail/ntg-context/2006/016503.html).

I don’t mean that Adobe is crappy, but that no sound is embedded or
referenced in the PDF document itself. Or at least, I don’t find either
of them.

lpdf-wid.lua seems to contain the functionality, but I don’t know how to
use it in a ConTeXt document.

Does anyone know how to use the functionality shown in lpdf-wid.lua?

Many thanks for your help,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 02 Jul 2018 07:21:19 -0600, Wolfgang Schuster  
 wrote:



Idris Samawi Hamid ادريس سماوي حامد 
2. Juli 2018 um 14:34
Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster
 wrote:


Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are
superfluous, e.g., the reader already knows which chapter one is
reading. But to reference a footnote from a later chapter, a prefix is
needed to let the reader know which chapter.

So the question is: Can the prefix be made to apply only to the
reference and not the marker or notation header?


You have to set different prefixsegments settings for the note entries
and the references.


\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
   [sectionconversionset=OLIE]

\setupnotation
   [footnote]
   [prefix=yes,
prefixset=none]

\setupreferencestructureprefix
   [footnote]
   [default]
   [prefixsegments=chapter,
prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext


Excellent; this is a big help. Many thanks!


==
Observation:

For endnotes at the end of a book having the prefix in the header is
also useful, i.e.,

marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three
would be useful.

If not currently supported, would like to make this a feature request.
==


I don’t think this is possible because marker and header share the same
counter setups.


Ok, that makes sense. As always, thank you for your pointers and  
explanations!


Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد 
2. Juli 2018 um 14:34
Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster 
 wrote:



Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are 
superfluous, e.g., the reader already knows which chapter one is 
reading. But to reference a footnote from a later chapter, a prefix is 
needed to let the reader know which chapter.


So the question is: Can the prefix be made to apply only to the 
reference and not the marker or notation header?


You have to set different prefixsegments settings for the note entries 
and the references.



\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
  [sectionconversionset=OLIE]

\setupnotation
  [footnote]
  [prefix=yes,
   prefixset=none]

\setupreferencestructureprefix
  [footnote]
  [default]
  [prefixsegments=chapter,
   prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext



==
Observation:

For endnotes at the end of a book having the prefix in the header is 
also useful, i.e.,


marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three 
would be useful.


If not currently supported, would like to make this a feature request.
==


I don’t think this is possible because marker and header share the same 
counter setups.


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

Re: [NTG-context] \setupreferencestructureprefix and numberconversionset

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Mon, 02 Jul 2018 01:08:23 -0600, Wolfgang Schuster  
 wrote:



Hi Idris,

you get the correct reference numbers when you apply the conversion of
the section numbers
with the sectionconversionset-key, this does also mean you have to
remove “conversion=R”
from chapter setup.

==
\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead[sectionconversionset=OLIE]
==


Amazing and elegant. Many thanks!

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد 
30. Juni 2018 um 22:42
Dear gang,

Chapter numbers are indicated roman numerals (conversion=R), all
subsectioning by decimal numerals. See attached and below:

===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

% \setupreferencestructureprefix [chapter] [default]
   % [prefixstopper=\zerowidthspace,
% numberconversionset=OLIE]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsubsection[title={},reference={reference4}]
\input ward
\stopsubsubsection
\startsubsection[title={},reference={reference5}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

So, e.g., Chapter II, Subsection 1, Subsubsection 1

In the references we get

2.1.1

But what we want is

II.1.1

Adding the following to the preamble doesn't appear to work:

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]
What am I missing? Thanks in advance for any guidance.

Best wishes
Idris
___
If your question is of interest to others as well, please add an entry
to the Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster  
 wrote:



Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are  
superfluous, e.g., the reader already knows which chapter one is reading.  
But to reference a footnote from a later chapter, a prefix is needed to  
let the reader know which chapter.


So the question is: Can the prefix be made to apply only to the reference  
and not the marker or notation header?


==
Observation:

For endnotes at the end of a book having the prefix in the header is also  
useful, i.e.,


marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three would  
be useful.


If not currently supported, would like to make this a feature request.
==

Thank you again, Wolfgang.

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد 
30. Juni 2018 um 23:04
Dear gang,

When referencing footnotes that reset each chapter, is there a way to
include the chapter information? See attached and below:

===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an
ambiguity: Both references give back

 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the
reference-numberconversionset issue of the other thread, where

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

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

Re: [NTG-context] \setupreferencestructureprefix and numberconversionset

2018-07-02 Thread Wolfgang Schuster

Hi Idris,

you get the correct reference numbers when you apply the conversion of 
the section numbers
with the sectionconversionset-key, this does also mean you have to 
remove “conversion=R”

from chapter setup.

==
\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead[sectionconversionset=OLIE]
==

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد 
30. Juni 2018 um 22:42
Dear gang,

Chapter numbers are indicated roman numerals (conversion=R), all 
subsectioning by decimal numerals. See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

% \setupreferencestructureprefix [chapter] [default]
   % [prefixstopper=\zerowidthspace,
% numberconversionset=OLIE]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsubsection[title={},reference={reference4}]
\input ward
\stopsubsubsection
\startsubsection[title={},reference={reference5}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

So, e.g., Chapter II, Subsection 1, Subsubsection 1

In the references we get

2.1.1

But what we want is

II.1.1

Adding the following to the preamble doesn't appear to work:

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]
What am I missing? Thanks in advance for any guidance.

Best wishes
Idris
___
If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Wolfgang Schuster

Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
  [footnote]
  [prefix=yes,
  %prefixsegments=chapter,
   way=bychapter]

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد 
30. Juni 2018 um 23:04
Dear gang,

When referencing footnotes that reset each chapter, is there a way to 
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an 
ambiguity: Both references give back


 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the 
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___