Re: [NTG-context] Question about a pair of floating fugures

2018-03-25 Thread Tomas Hala
I am taking it back, it has only one caption:-(

I wanted to send this code:

\starttext
\startcolumns[n=2]
\placefigure{c11}{\externalfigure[cow][height=3cm]}
\column
\placefigure{c12}{\externalfigure[cow][height=3cm]}
\stopcolumns
\stoptext

Tomáš

Sun, Mar 25, 2018 ve 12:11:58PM +0200 Tomas Hala napsal(a):
# Hi all,
# 
# I struggled with a pair of figures which will float together in a text, 
# each with its own caption. I found out the following solution and 
# I would like to ask whether this is the "oficial" and the best way
# how to do it. 
# 
# \starttext
# 
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]}
# or
# 
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]}
# \stoptext
# 
# Best,
# 
# Tomáš
# 
# 
___
# 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] Question about a pair of floating fugures

2018-03-25 Thread Wolfgang Schuster

Hi Thomas,

you have to put your images in a floatcombination environment.

\setupexternalfigure[location=default]

\starttext

\startplacefigure[location=none]
\startfloatcombination[2*1]
\placefigure{A dutch cow}{\externalfigure[cow][height=5cm]}
\placefigure{A dutch mill}{\externalfigure[mill][height=5cm]}
\stopfloatcombination
\stopplacefigure

\stoptext

Wolfgang

Tomas Hala 
25. März 2018 um 12:11
Hi all,

I struggled with a pair of figures which will float together in a text,
each with its own caption. I found out the following solution and
I would like to ask whether this is the "oficial" and the best way
how to do it.

\starttext
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]}
or
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]}
\stoptext

Best,

Tomáš

___
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
___
Tomas Hala 
25. März 2018 um 12:21
I am taking it back, it has only one caption:-(

I wanted to send this code:

\starttext
\startcolumns[n=2]
\placefigure{c11}{\externalfigure[cow][height=3cm]}
\column
\placefigure{c12}{\externalfigure[cow][height=3cm]}
\stopcolumns
\stoptext

Tomáš

Sun, Mar 25, 2018 ve 12:11:58PM +0200 Tomas Hala napsal(a):
# Hi all,
#
# I struggled with a pair of figures which will float together in a text,
# each with its own caption. I found out the following solution and
# I would like to ask whether this is the "oficial" and the best way
# how to do it.
#
# \starttext
# 
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]}

# or
# 
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]}

# \stoptext
#
# Best,
#
# Tomáš
#
# 
___
# 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
___


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

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

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد 
25. März 2018 um 17:04
Dear gang,

Consider the following:

==
\starttext
\startframedtext[width=fit,frame=off,offset=0pt]
% \startlocalfootnotes[n=2]
\startlocalfootnotes
\input ward
\startfootnote
\input ward
\stopfootnote

\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext
\stoptext
==

See attached:

1) Would like the footnote-number counter to start at 2, not 1.


Add

\setcounter[footnote][1]

after \startlocalfootnotes.

2) Alternatively, would like to be able to define a conversion that 
sets the footnote numeral to 2.
3) Uncommenting the line % \startlocalfootnotes[n=2] doesn't work, 
although it is mentioned here:

http://wiki.contextgarden.net/Command/startlocalfootnotes
So that must be for MKII..


Check setup-en.pdf for valid arguments in MkIV.

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] Question about a pair of floating fugures

2018-03-25 Thread Tomas Hala
Hi Wolfgang, 

that's genious! Thank you very much.

Tomáš 


Sun, Mar 25, 2018 ve 02:37:17PM +0200 Wolfgang Schuster napsal(a):
#Hi Thomas,
# 
#you have to put your images in a floatcombination environment.
# 
#\setupexternalfigure[location=default]
# 
#\starttext
# 
#\startplacefigure[location=none]
#    \startfloatcombination[2*1]
#        \placefigure{A dutch cow}{\externalfigure[cow][height=5cm]}
#        \placefigure{A dutch mill}{\externalfigure[mill][height=5cm]}
#    \stopfloatcombination
#\stopplacefigure
# 
#\stoptext
# 
#Wolfgang
# 
# [1]Tomas Hala
#  25. März 2018 um 12:11
#  Hi all,
# 
#  I struggled with a pair of figures which will float together in a text,
#  each with its own caption. I found out the following solution and
#  I would like to ask whether this is the "oficial" and the best way
#  how to do it.
# 
#  \starttext
#  
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]}
#  or
#  
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]}
#  \stoptext
# 
#  Best,
# 
#  Tomáš
# 
#  
___
#  If your question is of interest to others as well, please add an entry
#  to the Wiki!
# 
#  maillist : [2]ntg-context@ntg.nl /
#  [3]http://www.ntg.nl/mailman/listinfo/ntg-context
#  webpage : [4]http://www.pragma-ade.nl / [5]http://context.aanhet.net
#  archive : [6]https://bitbucket.org/phg/context-mirror/commits/
#  wiki : [7]http://contextgarden.net
#  
___
# [8]Tomas Hala
#  25. März 2018 um 12:21
#  I am taking it back, it has only one caption:-(
# 
#  I wanted to send this code:
# 
#  \starttext
#  \startcolumns[n=2]
#  \placefigure{c11}{\externalfigure[cow][height=3cm]}
#  \column
#  \placefigure{c12}{\externalfigure[cow][height=3cm]}
#  \stopcolumns
#  \stoptext
# 
#  Tomáš
# 
#  Sun, Mar 25, 2018 ve 12:11:58PM +0200 Tomas Hala napsal(a):
#  # Hi all,
#  #
#  # I struggled with a pair of figures which will float together in a
#  text,
#  # each with its own caption. I found out the following solution and
#  # I would like to ask whether this is the "oficial" and the best way
#  # how to do it.
#  #
#  # \starttext
#  #
#  
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]}
#  # or
#  #
#  
\placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]}
#  # \stoptext
#  #
#  # Best,
#  #
#  # Tomáš
#  #
#  #
#  
___
#  # If your question is of interest to others as well, please add an entry
#  to the Wiki!
#  #
#  # maillist : [9]ntg-context@ntg.nl /
#  [10]http://www.ntg.nl/mailman/listinfo/ntg-context
#  # webpage : [11]http://www.pragma-ade.nl / [12]http://context.aanhet.net
#  # archive : [13]https://bitbucket.org/phg/context-mirror/commits/
#  # wiki : [14]http://contextgarden.net
#  #
#  
___
# 
#  
___
#  If your question is of interest to others as well, please add an entry
#  to the Wiki!
# 
#  maillist : [15]ntg-context@ntg.nl /
#  [16]http://www.ntg.nl/mailman/listinfo/ntg-context
#  webpage : [17]http://www.pragma-ade.nl / [18]http://context.aanhet.net
#  archive : [19]https://bitbucket.org/phg/context-mirror/commits/
#  wiki : [20]http://contextgarden.net
#  
___
# 
# References
# 
#Visible links
#1. mailto:tomas.h...@mendelu.cz
#2. mailto:ntg-context@ntg.nl
#3. http://www.ntg.nl/mailman/listinfo/ntg-context
#4. http://www.pragma-ade.nl/
#5. http://context.aanhet.net/
#6. https://bitbucket.org/phg/context-mirror/commits/
#7. http://contextgarden.net/
#8. mailto:tomas.h...@mendelu.cz
#9. mailto:ntg-context@ntg.nl
#   10. http://www.ntg.nl/mailman/listinfo/ntg-context
#   11. http://www.pragma-ade.nl/
#   12. http://context.aanhet.net/
#   13. https://bitbucket.org/phg/context-mirror/commits/
#   14. http://contextgarden.net/
#   15. mailto:ntg-context@ntg.nl
#   16. http://www.ntg.nl/mailman/listinfo/ntg-context
#   17. http://www.pragma-ade.nl/
#   18. http://context.aanhet.net/
#   19. 

[NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Consider the following:

==
\starttext
\startframedtext[width=fit,frame=off,offset=0pt]
% \startlocalfootnotes[n=2]
\startlocalfootnotes
\input ward
\startfootnote
\input ward
\stopfootnote

\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext
\stoptext
==

See attached:

1) Would like the footnote-number counter to start at 2, not 1.
2) Alternatively, would like to be able to define a conversion that sets  
the footnote numeral to 2.
3) Uncommenting the line % \startlocalfootnotes[n=2] doesn't work,  
although it is mentioned here:

http://wiki.contextgarden.net/Command/startlocalfootnotes
So that must be for MKII..

Any pointers in setting up 1) and 2) are much appreciated. Thank you in  
advance!


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

scratch.pdf
Description: Adobe PDF document


scratch.tex
Description: TeX 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] linux binaries split?

2018-03-25 Thread Arthur Reutenauer
On Sat, Mar 24, 2018 at 06:05:08PM +0100, Thomas A. Schmitz wrote:
> Arthur's
> 
> if command -v ldd >/dev/null && ldd --version 2>&1 | fgrep -q '^musl'
> 
> works for me, but again, there may be other corner cases that we don't see
> now. I would suggest reversing the logic of this test: default to linux
> unless you clearly find the string "musl" in the output; don't rely on a
> zero result, which may be prevented by a number f reasons...

  Yes, well.  About that ...

  If you think about what “default” means, you’ll realise that the bit
of code you quote does actually make glibc the default: indeed,

if [some complex condition]; then
libc=musl
else
libc=glic
fi

or, equivalently, Henri’s suggested alternative

libc=glibc
if [some complex condition]; then
libc=musl
fi

means exactly “set libc to glibc, unless [some complex condition] is
met”.  The trick is that in your case, the test unexpectedly *succeeds*
(which confused me yesterday).  How can that be?

  The exact test is

command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl

which in your case boils down to

grep -q ^musl [output of ldd --version]

meaning that grep will search for the regexp ^musl in the output of ldd 
--version.
Or will it?  As I explained, the string ^musl can in zsh (if EXTENDED_GLOB
is set) be interpreted as “all file names in the current directory but musl”,
which means that it is actually expanded as

grep -q [filename 1] [filename 2] [filename 3] ... [output of ldd 
--version]

and grep will thus look for the first file name in that list (whose
exact order is hard to predict and depends in particular on your
locale).  Every file in the current directory (and the output of ldd
--version) will be searched for that name, so if it’s simple enough
there’s a high chance that it will be found.  Amusingly, in my case, the
first file name is the rather unlikely 20170802093441240.pdf, but it is
found anyway, because I sent it as an email attachment one day, so the
line

Content-Disposition: attachment; filename="20170802093441240.pdf"

is found in my sent messages (which is a plain text file in my home
directory).

  That is not all!  As you experienced, grep does actually report an
error for each directory name, and should thus return a non-zero value;
which indeed it does in a number of experiments I conducted.  But!  In
the original test, grep is called with the -q switch, that has the
following specification in POSIX:

Quiet.  Nothing shall be written to the standard output,
regardless of matching lines.  Exit with zero status if an input
line is selected.

  And here we are.  For a number of unlikely reasons, the condition,
that should only hold true in a very specific situation, ends up being
satisfied.

Best,

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

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

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 25 Mar 2018 09:29:01 -0600, Wolfgang Schuster
 wrote:


Idris Samawi Hamid ادريس سماوي حامد 
25. März 2018 um 17:04
Dear gang,

Consider the following:

==
\starttext
\startframedtext[width=fit,frame=off,offset=0pt]
% \startlocalfootnotes[n=2]
\startlocalfootnotes
\input ward
\startfootnote
\input ward
\stopfootnote

\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext
\stoptext
==

See attached:

1) Would like the footnote-number counter to start at 2, not 1.


Add

 \setcounter[footnote][1]

after \startlocalfootnotes.


Works, many thanks.


2) Alternatively, would like to be able to define a conversion that
sets the footnote numeral to 2.
3) Uncommenting the line % \startlocalfootnotes[n=2] doesn't work,
although it is mentioned here:
http://wiki.contextgarden.net/Command/startlocalfootnotes
So that must be for MKII..


Check setup-en.pdf for valid arguments in MkIV.


There are no options for \startlocalfootnotes and there is no command such
as \setuplocalfootnotes. So how does one setup a conversion (or manual
numbering) for localfootnotes?

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] How to setup the footnote number in local footnotes

2018-03-25 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد 
26. März 2018 um 00:24


2) Alternatively, would like to be able to define a conversion that
sets the footnote numeral to 2.
3) Uncommenting the line % \startlocalfootnotes[n=2] doesn't work,
although it is mentioned here:
http://wiki.contextgarden.net/Command/startlocalfootnotes
So that must be for MKII..


Check setup-en.pdf for valid arguments in MkIV.


There are no options for \startlocalfootnotes and there is no command 
such

as \setuplocalfootnotes. So how does one setup a conversion (or manual
numbering) for localfootnotes?


\startlocalnotes[footnote]
\setupnotation[footnote][numberconversion=...]
...
\stoplocalnotes


BTW: \startlocalfootnotes = \startlocalnotes[footnote]


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] decomposed u umlaut

2018-03-25 Thread Arthur Reutenauer
On Thu, Mar 22, 2018 at 10:08:44AM +0100, Mojca Miklavec wrote:
> On 20 March 2018 at 08:42, Henning Hraban Ramm wrote:
>> I’ve one annoying problem with ConTeXt: all üs (small u umlauts) seem to be 
>> encoded as decomposed unicode or something like that, at least every ü 
>> breaks into u + garbage if I copy some text from a ConTeXt PDF to an app 
>> that doesn’t really support Unicode.
> 
> You are on macOS, right?
> 
> In my experience it was usually Apple's technology to blame.

  I agree with you that Apple’s software has a tendency to decompose
characters, but I wouldn’t blame them for that: it’s perfectly
Unicode-compliant to do so, and by now software should support
combining characters in at least a basic way.  It’s a real problem that
the software from the Deutsche Post isn’t able to handle them correctly.

Best,

Arthur
___
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] decomposed u umlaut

2018-03-25 Thread Henning Hraban Ramm
Am 2018-03-25 um 22:36 schrieb Arthur Reutenauer 
:

> On Thu, Mar 22, 2018 at 10:08:44AM +0100, Mojca Miklavec wrote:
>> On 20 March 2018 at 08:42, Henning Hraban Ramm wrote:
>>> I’ve one annoying problem with ConTeXt: all üs (small u umlauts) seem to be 
>>> encoded as decomposed unicode or something like that, at least every ü 
>>> breaks into u + garbage if I copy some text from a ConTeXt PDF to an app 
>>> that doesn’t really support Unicode.
>> 
>> You are on macOS, right?
>> In my experience it was usually Apple's technology to blame.
> 
>  I agree with you that Apple’s software has a tendency to decompose
> characters, but I wouldn’t blame them for that: it’s perfectly
> Unicode-compliant to do so, and by now software should support
> combining characters in at least a basic way.  It’s a real problem that
> the software from the Deutsche Post isn’t able to handle them correctly.

While DP shop should be able to handle more than Latin-1, the problem seems to 
be in the viewer or in a combination of viewer and OS:
- It doesn’t depend on the font, I tried Computer Modern and Alegreya (that is 
known to have some OpenType ligature issues).
- I checked with several viewers, and the Adobe apps (Acrobat Pro 9 and Reader 
DC) decompose just the ü, while my other viewers including Apple’s Preview 
decompose all the umlauts. (Just copied and pasted into an hex editor.)
- It also happens with PDFs from other sources.

So it’s not a ConTeXt bug. Sorry for the noise.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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