Re: [NTG-context] OpenBSD install broken

2019-09-23 Thread Robert Krug




On September 21, 2019 at 4:22 AM, Mojca Miklavec 
 wrote:



On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote:



6) Finally, the setuptex script gives me an error message:


megaera$ . /home//Context/tex/setuptex
/bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad substitution


but it is not hard to set the path correctly:


PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH

This is something that I need to fix independently in the installation
script. Do you have any clue what could be done to make it work
properly on OpenBSD?

Mojca

Shell scripting has always been a mystery to me. For what it is worth,
however, here is what I was able to come up with:

megaera$ cat test
echo "$SHELL"
echo "$KSH_VERSION"
SCRIPTPATH="$_"
OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P)
echo $OWNPATH

megaera$ ./test
/bin/ksh
@(#)PD KSH v5.2.14 99/07/13.2
/home//Temp

It seems that OpenBSD uses public domain ksh also known as ksh88, as
opposed to the more common ksh93. I also found on the internet the
following code snippet for testing ksh versions:

case "$KSH_VERSION" in
(*MIRBSD*|*PD*|*LEGACY*) printf '%s\n' "$KSH_VERSION" ;;
(*) [ -z "$ERRNO" ] && printf '%s\n' "${.sh.version}" || echo ksh88/86 ;;
esac

All that said however, while it would be nice to have setuptex work on
OpenBSD also, I think anyone using it can set their own paths if they
have to.

Robert
 ___
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] OpenBSD install broken

2019-09-20 Thread Robert Krug

Greetings,



First, thanks for all the wonderful work on context.



Now, to the reason for this note. I recently tries to install context on an 
OpenBSD 6.5 AMD64

system, but the install failed. Thanks to some helpful emails in the archives 
from 2017 and 2018,

I was able to get this working by editing mtxrun and mtx-update.sh.



I include what I did below.



Thanks again,

Robert



1) Do the usual:

  mkdir context && cd context
  rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh .
  ./first-setup.sh

This will silently fail, because
bin/mtx-update.lua
bin/mtxrun
do not recognize openbsd.

2) Edit bin/mtxrun:

We need to define a "good" version of resolvers.platform(t,k)
At line 4049, there is a default definition. Replace it with:

 function resolvers.platform(t,k)
  local platform="openbsd6.5-amd64"
  os.setenv("MTX_PLATFORM",platform)
  os.platform=platform
  return platform
 end

3) Edit bin/mtx-update:

3a) In the table update.platforms add an entry for openbsd:

    ["openbsd6.5-amd64"]  = "openbsd6.5-amd64",

I put this at line 198, after the entries for freebsd.

3b) In the function update.synchronize()

replace line 282:

    local platforms    = states.get('platforms') or { }

with:

    local platforms    = states.get('platforms') or {"openbsd6.5-amd64" }

3c) At the very start of local function add_collection(collection,platform)
line 417, add:

    platform = "openbsd6.5-amd64"

Maybe something is broken on my system or these last two aren't
really needed, but this is what I did,

4) Edit first-setup.sh:

To avoid overwriting the files we just edited, comment out line 146:

# rsync -rlptv rsync://contextgarden.net/minimals/setup/$platform/bin .

This may interfere with future updates.

5) Install for real this time:

  ./first-setup.sh --modules=all

6) Finally, the setuptex script gives me an error message:

  megaera$ . /home//Context/tex/setuptex
  /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad 
substitution

but it is not hard to set the path correctly:

  PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH



___
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] Margin text running off bottom of page

2016-04-03 Thread Robert Krug
Greetings,

Is there any way to prevent marginal text from running off the bottom
ot the page? I can adjust the margin widths to prevent them from
running off the edges, but I cannot figure out how to do the same for
the bottom of the page.

\starttext

text.

\vskip 7.5in

text
\margintext{The book I am working with has marginal annotations that
act as a précis of the argument in the main text. Some of them are
several sentances long.}
text.

\stoptext

Robert

___
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] Footnote markers

2016-03-26 Thread Robert Krug
Thank you! 

Robert

> On Mar 26, 2016, at 8:00 AM, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 3/25/2016 11:42 PM, Robert Krug wrote:
>> Greetings,
>> 
>> Is there a way to attach a footnote marker to the text following the
>> footnote, rather than to the text preceding? That is, given something
>> like:
>> 
>> Some text
>> \footnote{note.}
>> more text.
>> 
>> I would get (using an asterisk here, but that is not important):
>> 
>> Some text *more text.
>> 
>> rather than:
>> 
>> Some text* more text.
>> 
>> I am trying to re-typeset a couple of documents from circa 1600
>> where it is done that way.
>> 
>> Many thanks for Context. It is quite nifty.
> 
> i've added an option for that (experimental in beta)
> 
> \starttext
> 
>test
>\footnote{note 1}
>\footnote{note 2}
>test
> 
>\setupnotes[footnote][anchor=next]
> 
>test
>\footnote{note 3}
>\footnote{note 4}
>test
> 
> \stoptext
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com <http://www.pragma-ade.com/> | 
> www.pragma-pod.nl <http://www.pragma-pod.nl/>
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

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

[NTG-context] Footnote markers

2016-03-25 Thread Robert Krug
Greetings,

Is there a way to attach a footnote marker to the text following the
footnote, rather than to the text preceding? That is, given something
like:

Some text
\footnote{note.}
more text.

I would get (using an asterisk here, but that is not important):

Some text *more text.

rather than:

Some text* more text.

I am trying to re-typeset a couple of documents from circa 1600
where it is done that way.

Many thanks for Context. It is quite nifty.

Robert

___
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] Footnotes and Marginal texts

2015-02-15 Thread Robert Krug
This is definite progress.  Thanks.  But I don’t see footnotes of type NoteC
when used inside a NoteB.  Example:

==

\definenote[NoteA]
\definenote[NoteB]
\definenote[NoteC]

\setupnotation[NoteB][numberconversion=characters]
\setupnotation[NoteC][numberconversion=Romannumerals]

\starttext

  Text for the \NoteB{B\margintext[scope=local]{Where am I?} footnote
\NoteC{C footnote C.}  B.}  main body.

  Text for the \NoteA{A first footnote A.} main\inleft{I am here.} body.

  Text for the \NoteA{A second footnote A.} body.

\stoptext

==

This seems related to an even simpler example from the Wiki

==

\starttext

This\footnote{Or that\footnote{Or possibly even the other.}, if you
prefer.} is a sentence with a footnote.

\stoptext

==

Robert

On Feb 15, 2015, at 6:26 AM, Hans Hagen pra...@wxs.nl wrote:

 On 2/15/2015 12:04 AM, Robert Krug wrote:
 Greetings,
 
 I am working on a document with many annotations of different types,
 and have a couple of questions.
 
 (Before the questions, though, I am quite impressed with ConTeXt so
 far.  It is much nicer to work with than any of the TeX or LaTeX packages
 I have worked with before.)
 
 First, what is the preferred way to get marginal text?  Is \margintext,
 \inmargin, or some other the current best practice?
 
 Second, is there a way to get marginal text for a footnote?  Here is a
 minimal working example:
 
 
 \starttext
 
 Text for
 the\footnote{A\margintext{Where am I?} footnote.}
 main\margintext{I am here.}
 body.
 
 \stoptext
 
 
 Finally, is there a way to have different classes of footnotes?  I would like
 to have three classes of footnotes to be displayed something like:
 
 
 ——
 1. first footnote of class 1
 2. second footnote of class 1.
 ——
 a. first footnote of class 2.
 b. second footnote of class 2.
 ——
 1. first footnote of class 3.
 2. second footnote of class 3.
 
 
 That is, the footnotes of each class should appear together, with a “normal” 
 footnote rule
 above them.  Each class of footnotes should also have its own numbering 
 scheme.
 
 Footnotes of class 1 are “regular” footnotes in the main text body.
 
 Footnotes of class 2 will be longer, and will occasionally be more than one 
 paragraph.
 They, also, will occur in the main text body.  To complicate matters, they 
 may have
 marginal notes and footnotes (of class 3).
 
 Footnotes of class 3 are footnotes that occur in footnotes of class 2.
 
 \definenote[NoteA]
 \definenote[NoteB]
 \definenote[NoteC]
 
 \starttext
 
Text for the \NoteA{A\margintext[scope=local]{Where am I?} footnote A.}
main\inleft{I am here.} body.
 
Text for the \NoteB{B\margintext[scope=local]{Where am I?} footnote B.}
main\inleft{I am here.} body.
 
Text for the \NoteC{C\margintext[scope=local]{Where am I?} footnote C.}
main\inleft{I am here.} body.
 
 \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
 ___

___
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] Footnotes and Marginal texts

2015-02-14 Thread Robert Krug
Greetings,

I am working on a document with many annotations of different types,
and have a couple of questions.

(Before the questions, though, I am quite impressed with ConTeXt so
far.  It is much nicer to work with than any of the TeX or LaTeX packages
I have worked with before.)

First, what is the preferred way to get marginal text?  Is \margintext, 
\inmargin, or some other the current best practice?

Second, is there a way to get marginal text for a footnote?  Here is a
minimal working example:


\starttext

Text for 
the\footnote{A\margintext{Where am I?} footnote.} 
main\margintext{I am here.} 
body.

\stoptext


Finally, is there a way to have different classes of footnotes?  I would like
to have three classes of footnotes to be displayed something like:


——
1. first footnote of class 1
2. second footnote of class 1.
——
a. first footnote of class 2.
b. second footnote of class 2.
——
1. first footnote of class 3.
2. second footnote of class 3.


That is, the footnotes of each class should appear together, with a “normal” 
footnote rule
above them.  Each class of footnotes should also have its own numbering scheme.

Footnotes of class 1 are “regular” footnotes in the main text body.

Footnotes of class 2 will be longer, and will occasionally be more than one 
paragraph.  
They, also, will occur in the main text body.  To complicate matters, they may 
have 
marginal notes and footnotes (of class 3).

Footnotes of class 3 are footnotes that occur in footnotes of class 2.


Many thanks,
Robert


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