[NTG-context] Blank line after \item: MkIV vs LMTX and how to properly get rid of it

2021-09-30 Thread Vladimir Lomov via ntg-context
Hello.

Consider the following small example:

 8< --
\starttext

\startitemize[n]
\item \input tufte
\item \placefigure[right,none]{}{\externalfigure[cow]}%
  \input tufte
\item \blank[overlay]%
  \placefigure[right,none]{}{\externalfigure[cow]}%
  \input tufte
\stopitemize

\startitemize[n,intext]
\item \input tufte
\item \placefigure[right,none]{}{\externalfigure[cow]}%
  \input tufte
\item \blank[overlay]%
  \placefigure[right,none]{}{\externalfigure[cow]}%
  \input tufte
\stopitemize

\stoptext
 8< --

I see a difference in MkIV and LMTX work:
- MkIV always put a blank line despite '\blank[overlay]' command;
- with \blank[overlay] and 'intext' option LMTX clutters item label (number in
  this case).

Q1: is this the expected behavior for MkIV and LMTX? I found a recipe with
  \blank[overlay] in the mailing list.
Q2: is it expected that LMTX will clutter item label when I use
  \blank[overlay]? I suspect the answer is "yes" due to the option name.
Q3: how to prevent blank line insertion in such case: an item with text
  framing a picture (on right side or on left side but the picture is below
  the item label)?

---
WBR, Vladimir Lomov

-- 
Without freedom of choice there is no creativity.
-- Kirk, "The return of the Archons", stardate 3157.4


signature.asc
Description: PGP signature
___
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] oldstyle math

2021-06-02 Thread Vladimir Lomov
Hello,
** Alan Bowen  [2021-06-02 17:44:57 -0400]:

> Thanks, Wolfgang. That’s good to know, I guess. I had hoped to stay with
> the older version in order to complete a project. But now I see that I must
> update. Sadly this brings me to the unresolved problem that updating with
> sh install.sh stopped working in early May.

If you are talking about ConTeXt (ConTeXt Suite, MkIV) then there was a
problem with update server but it was resolved (thank you Mojca). As for LMTX
I was able to install updates even when MkIV was fail to update.

[...]

---
WBR, Vladimir Lomov

-- 
 I should probably reboot...
 ok brb
 So, what apart form avoiding virii, memory leaks, and rampant
 crashing does Linux reallhy offer :)
 reliable multitasking?


signature.asc
Description: PGP signature
___
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] contextgarden.net seems to be down

2021-05-24 Thread Vladimir Lomov
Hello.

According to page https://wiki.contextgarden.net/ConTeXt_Standalone to install
ConTeXt standalone (I assume MkIV) one has to download first-setup.sh script
(Linux,Mac,*BSD) from contextgarden.net (minimals.contextgarden.net) but this
host seems to be down.

On linux I have
$ host contextgarden.net
contextgarden.net has address 193.2.4.200
contextgarden.net has IPv6 address 2001:1470:ff80:88::80:c
contextgarden.net mail is handled by 10 mail.ijs.si.

$ host minimals.contextgarden.net
minimals.contextgarden.net is an alias for server-si.contextgarden.net.
server-si.contextgarden.net has address 193.2.4.200
server-si.contextgarden.net has IPv6 address 2001:1470:ff80:88::80:c

$ ping -c 3 contextgarden.net
PING contextgarden.net(context.ijs.si (2001:1470:ff80:88::80:c)) 56 data bytes
From cmigw.ijs.si (2001:1470:ff80:1::1:26) icmp_seq=1 Destination unreachable: 
Address unreachable
From cmigw.ijs.si (2001:1470:ff80:1::1:26) icmp_seq=2 Destination unreachable: 
Address unreachable
From cmigw.ijs.si (2001:1470:ff80:1::1:26) icmp_seq=3 Destination unreachable: 
Address unreachable

--- contextgarden.net ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2073ms

$ ping -c 3 minimals.contextgarden.net
PING minimals.contextgarden.net(context.ijs.si (2001:1470:ff80:88::80:c)) 56 
data bytes
From cmigw.ijs.si (2001:1470:ff80:1::1:26) icmp_seq=1 Destination unreachable: 
Address unreachable
From cmigw.ijs.si (2001:1470:ff80:1::1:26) icmp_seq=2 Destination unreachable: 
Address unreachable
From cmigw.ijs.si (2001:1470:ff80:1::1:26) icmp_seq=3 Destination unreachable: 
Address unreachable

--- minimals.contextgarden.net ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2014ms

P.S. Nowadays I use mostly lmtx but I keep MkIV in case of troubles with lmtx.

---
Vladimir Lomov

-- 
It is better to wear out than to rust out.


signature.asc
Description: PGP signature
___
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 do I add cyrillic to my typescript/document?

2020-05-03 Thread Vladimir Lomov
m than
ConTeXt one but I don't use ConTeXt as often as LaTeX. If I understand
correctly, fallback mechanism allows to use some "main" font for most of
letters in a document, for example, for Latin letters and use another font, if
some letters are missing from "main" one. The "missing" is based on letters
codes, see "range" above.

Your original question is a bit unclear to me. Do you want typeset document
with Cyrillic letters, for example Russian text or just want to include some
words using Cyrillic (Russian) letters? The former assumes that you will use
\mainlanguage[ru] and appropriate font with Cyrillic glyphs, while for the
latter you need only the font.

I'm not a Mac OS user neither I have Optima nor Helvetica fonts, but Computer
Modern Unicode (OTF) and OldStandard (OTF) have both Cyrillic and Latin
letters (OldStandard doesn't have support "out of box" in context while
Computer Modern Unicode has) so I made two small examples (well, the first
example not so small, sometimes I prepare example not only for others but for
myself too) which show both uses. Both fonts can be found on ctan:
https://ctan.org/pkg/cm-unicode and https://ctan.org/pkg/oldstandard.

> G

---
WBR, Vladimir Lomov

-- 
Girls marry for love.  Boys marry because of a chronic irritation that
causes them to gravitate in the direction of objects with certain curvilinear
properties.
-- Ashley Montagu


rus-text.tex
Description: TeX document


mixed-text.tex
Description: TeX document


signature.asc
Description: PGP signature
___
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] Basic font question (Optima, but no bold, no italics)

2020-04-23 Thread Vladimir Lomov
Hello,
** Gerben Wierda  [2020-04-23 23:57:26 +0200]:

>> On 23 Apr 2020, at 19:18, Henning Hraban Ramm  wrote:
>> 
>>> 
>>> Am 23.04.2020 um 16:42 schrieb Gerben Wierda :
>>> 
>>>> 
>>>> On 23 Apr 2020, at 16:34, Henning Hraban Ramm  wrote:
>>>> 

[...]

>>>> What do you get from
>>>> mtxrun --script=fonts --list --all --pattern=Optima
>>> 
>>> hermione:Export and Metapost gerben$ mtxrun --script fonts --list --all 
>>> --pattern=optima
>>> identifier familyname   fontname   filename 
>>>   subfont   instances
>>> 
>>> optimablackoptima   optimaextrablack   
>>> /System/Library/Fonts/Optima.ttc   5
>>> optimabold optima   optimabold 
>>> /System/Library/Fonts/Optima.ttc   2
>>> optimabolditalic   optima   optimabolditalic   
>>> /System/Library/Fonts/Optima.ttc   4
>>> optimaextrablack   optima   optimaextrablack   
>>> /System/Library/Fonts/Optima.ttc   5
>>> optimaitalic   optima   optimaitalic   
>>> /System/Library/Fonts/Optima.ttc   3
>>> optimanormal   optima   optimaregular  
>>> /System/Library/Fonts/Optima.ttc   1
>>> optimaregular  optima   optimaregular  
>>> /System/Library/Fonts/Optima.ttc   1
>> 
>> Hm. Here, ConTeXt only found subfont #5 until I rebuilt the font cache, then 
>> it looked like yours.
>> 
>> And the minimal example (plus \starttext ... \stoptext) worked.
>> 
>> (Latest ConTeXt on MacOS Mojave.)

> No such luck for me. Any help welcome. I did remove the macOS font cache
> with sudo atsutil databases -remove and I rebooted. I am running an up to
> date macOS Mojave.

I think Henning Hraban Ramm meant not OS font cache (but may be including it,
I'm not a Mac OS user) but context font cache. Run

$ mtxrun --script fonts --reload --force

and try above '--list --all ...' command again and your example:

> \starttext
> \definefontfamily[mainface][rm][Optima]
> \setupbodyfont[mainface,10pt]

> {\bf Bold} and {\it Italic} and {\rm Regular} text.
> \stoptext

Hope this will resolve you issue.

[...]

---
WBR, Vladimir Lomov

-- 
Practically perfect people never permit sentiment to muddle their thinking.
-- Mary Poppins


signature.asc
Description: PGP signature
___
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] useexternaldocument with custom file type

2020-04-23 Thread Vladimir Lomov
Hello,
** Jan U. Hasecke  [2020-04-23 15:35:54 +0200]:

> Am 23.04.20 um 14:22 schrieb Vladimir Lomov:

>> Otherwise could you describe what exactly you want to achive?

> This works:

> \setupinteraction[state=start]
> \setupcolors[state=start]
> \starttext
> \goto{linkname}[file(target.pdf)]
> \stoptext

> This does not work:

> \setupinteraction[state=start]
> \setupcolors[state=start]
> \starttext
> \goto{linkname}[file(target.doc)]
> \stoptext

What do you mean "work" and "not work"?

Do you what to open a file by clicking on text in viewer? What application
should be used to open a file? Take a look on page I linked in previous
message.

> The PDF Viewer does not support the file type.

What "PDF Viewer"?

For example, I use different viewers: mupdf, zathura-pdf-mupdf (zathura with
mupdf pdf backend), okular, pdf-tools (emacs major mode). Some of application
(okular, for example) could preview many file types (ps, pdf, odt), while
other can't do that. It is up to application what to do (or actually, PDF
backend) on link.

Please see the page about '\goto' command, it was written for a reason!

> TIA
> juh

---
WBR, Vladimir Lomov

-- 
Virtue is not left to stand alone.  He who practices it will have neighbors.
-- Confucius


signature.asc
Description: PGP signature
___
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] Basic font question

2020-04-23 Thread Vladimir Lomov
Hello,
** Gerben Wierda  [2020-04-23 16:00:34 +0200]:

> On my Mac, I am trying:

> \definefontfamily[mainface][rm][Optima]
> \setupbodyfont[mainface,10pt]

> {\bf Bold} and {\it Italic} and {\rm Regular} text.

https://wiki.contextgarden.net/Font_Switching

> What do I need to do to get actual bold and italics in my output?

\bi == \bf\it

Or by "actual bold" you mean something different?

> Thx,

> G

---
WBR, Vladimir Lomov

-- 
There has been an alarming increase in the number of things you know
nothing about.


signature.asc
Description: PGP signature
___
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] useexternaldocument with custom file type

2020-04-23 Thread Vladimir Lomov
Hello,
** Jan U. Hasecke  [2020-04-23 12:21:27 +0200]:

> Hi Wolfgang,

> thanks for the fast reply.

> Am 23.04.20 um 12:06 schrieb Wolfgang Schuster:
>> Jan U. Hasecke schrieb am 23.04.2020 um 11:54:
>>> Hi,
>>>
>>> can I link to a file with custom file type eg. OpenDocument with
>>> \useexternaldocument?
>>>
>>> This does not work.
>>>
>>> \useexternaldocument[test][test.ods][A test document]
>>>
>>> As the PDF viewer is opened first, it does not recognize the file type.
>> 
>> The \useexternaldocument is used to access referecens from other ConTeXt
>> documents.

> Ok. No way to link to other file types from the pdf?

May be you after this one 
https://wiki.contextgarden.net/Command/goto
?

Otherwise could you describe what exactly you want to achive?

>> https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html

> I must confess that I don't understand this utilitydata-Thread.


> juh

---
WBR, Vladimir Lomov

-- 
He asked me if I knew what time it was -- I said yes, but not right now.
-- Steven Wright


signature.asc
Description: PGP signature
___
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] [OBORONA-SPAM] Re: lmtx & lohit-devanagari fonts

2020-04-22 Thread Vladimir Lomov
ecification
> 'selfautoparent:/texmf/web2c' resolvers   | resolving | looking for
> fallback 'contextcnf.lua' on given path '/home/gour/texmf/web2c' from
> specification 'home:texmf/web2c' resolvers   | resolving | looking
> for fallback 'contextcnf.lua' on given path
> '/home/gour/opt/texmf-local/web2c' from specification
> 'selfautoparent:/texmf-local/web2c' resolvers   | resolving |
> looking for fallback 'contextcnf.lua' on given path
> '/home/gour/opt/texmf-context/web2c' from specification
> 'selfautoparent:/texmf-context/web2c' resolvers   | resolving |
> looking for fallback 'contextcnf.lua' on given path
> '/home/gour/opt/texmf-dist/web2c' from specification
> 'selfautoparent:/texmf-dist/web2c' resolvers   | resolving |
> looking for fallback 'contextcnf.lua' on given path
> '/home/gour/opt/texmf/web2c' from specification
> 'selfautoparent:/texmf/web2c' resolvers   | resolving | resolvers
> | resolving | warning: no lua configuration files found resolvers
> | resolving | no texmf paths are defined (using TEXMF) resolvers
>| resolving | mtxrun  | mtxrun  | elapsed lua time:
> 0.019 seconds

You have a problem here (aside from broken formatting). The 'mtxrun' didn't
find necessary files, take a look on last part of output.

I have installed LMTX (Luametatex) into /usr/local/opt/lmtx as root and
/usr/local/opt/lmtx/tex/texmf-cache is owned by root. If I delete the "root"
cache and "user" cache and run 'mtxrun --generate' as root at first I see at
bottom of 'mtxrun' output:

system  | lua | compiling 
'/usr/local/opt/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lua'
 into 
'/usr/local/opt/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lud'
system  | lua | dumping 
'/usr/local/opt/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lua'
 into 
'/usr/local/opt/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lud'
 stripped
resolvers   | caching | 'files' compiled to 
'/usr/local/opt/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lud'
mtxrun  |
mtxrun  | elapsed lua time: 0.050 seconds

and then 'mtxrun --generate' as an user:

system  | lua | compiling 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lua'
 into 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lud'
system  | lua | dumping 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lua'
 into 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lud'
 stripped
resolvers   | caching | 'files' compiled to 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/dcb651482955ac31eaab7723b70e0184.lud'
mtxrun  |
mtxrun  | elapsed lua time: 0.052 seconds

(don't bother by cache path I configured it being like that).

So at first you have to be sure that 'mtxrun --generate' has done its work
right.

> and I notice that after that 

> /home/gour/opt/lmtx/tex/texmf-cache/luatex-cache/ is empty?

That's wrong. The following will of course fail.

> My $PATH is:

> $ env | grep PATH
> PATH=/home/gour/opt/lmtx/bin:/home/gour/opt/lmtx/tex/texmf-linux-64/bin:/home/gour/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin

>> 3. Run "context t.tex"

> I use the following t.tex

> \definefallbackfamily [mainface] [ss] [Noto Sans Devanagari]
>[range={devanagari,devanagariextended},
> features=devanagari-two]

> \definefontfamily [mainface] [ss] [Noto Sans]

> \setupbodyfont[mainface]

> \starttext

> ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते ।
> सङ्गात्सञ्जायते कामः कामात्क्रोधोऽभिजायते ॥ ६२ ॥

> dhyāyato viṣayān puṁsaḥ
> saṅgas teṣūpajāyate
> saṅgāt sañjāyate kāmaḥ
> kāmāt krodho ’bhijāyate

> \stoptext

> as sugested by Wofgang, but it fails:

> $ context t.tex 
> mtxrun  | unknown script 'mtx-context.lua' or
> 'mtx-mtx-context.lua'

> Do I need to setup some other envvar as it is suggested in the link
> posted by Wolfgang?

> Sincerely,
> Gour

I would suggest you to reinstall lmtx, update PATH, correctly set OSFONTDIR
variable and in fresh shell session run 'mtxrun --generate' again.

---
WBR, Vladimir Lomov

-- 
The problem that we thought was a problem was, indeed, a problem, but
not the problem we thought was the pro

Re: [NTG-context] simplefonts directory

2020-02-18 Thread Vladimir Lomov
Hello,
** Yves Cloutier  [2020-02-18 08:49:37 -0500]:

> Hello,

> I'm on linux and trying to add my fonts directories using

> export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts

> however when I do, I get the following message:

> bash: /home/drifter/.fonts: Is a directory

> I'm not what I'm doing wrong or why it's not liking this. Any pointers
> would be appreciated.

Use double quotes:
export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"

P.S. You may be interested to read bash scripting guide, but in short the
semicolon is used in shell (bash, zsh) to separate two or more commands in a
row, so your line was interpreted by a shell (I assume that it is bash) like
1 command: export OSFONTDIR=/usr/share/fonts
2 command: $HOME/.fonts
so indeed the $HOME/.fonts is a directory.

---
WBR, Vladimir Lomov

-- 
If all else fails, lower your standards.


signature.asc
Description: PGP signature
___
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] new beta

2019-12-05 Thread Vladimir Lomov
Hello,
** Otared Kavian  [2019-12-06 04:23:28 +0100]:

> Dear Hans,
 
> The problem I described in my previous message comes indeed from
> \defineexpansion which is not defined.  Upon commenting out the lines
> 95--98 in the file « hand-ini.mkxl » that is the four lines:
 
> \defineexpansion
>   [\c!step=1,
>\c!stretch=40,
>\c!shrink=20]

That's strange. I indeed see these lines in 'hand-ini.mkxl' but I could
recreate format without problem on my Linux box (Archlinux x86_64), even
after clearing the cache and doing

  $ mtxrun --generate ; context --make

gives me working context (lmtx).

> I could remake the format with version 2019.12.05 18:59. Then lmtx
> works fine as far as my files are concerned, but I don't know if there
> are side effects… (However, once the format is made, if I uncomment
> those lines then lmtx works fine, but clearly one cannot make again
> the format)

I tried two examples with lmtx and they typeset fine.

> Best regards: OK

[...]

---
WBR, Vladimir Lomov

-- 
There is grandeur in this view of life, with its several powers, having been
originally breathed into a few forms or into one; and that, whilst this planet
has gone cycling on according to the fixed law of gravity, from so simple a
beginning endless forms most beautiful and most wonderful have been, and are
being, evolved.
-- Darwin


signature.asc
Description: PGP signature
___
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] [LMTX urgent] core keeps getting dumped after 2019.11.28 LMTX update

2019-11-29 Thread Vladimir Lomov
Hello,
** Vladimir Lomov  [2019-11-29 19:39:14 +0800]:

> Hello,
> ** Hans Hagen  [2019-11-29 10:34:31 +0100]:
> 
>> On 11/29/2019 7:32 AM, Floris van Manen wrote:
>>> Anyone?
>>> 
>>> After updating LMTX to the latest version 2019.11.28, context stopped
>>> working, only to produce core dumps ...
>>> 
>>> Any hints as how to resolve this?
>> wipe the cache
> 
> Same here: Archlinux x86_64, luametatex 2019.11.28.

On other host I have luametatex 2019.11.14 and it works fine on all
investigated examples.

[...]

---
WBR, Vladimir Lomov

-- 
THE LESSER-KNOWN PROGRAMMING LANGUAGES #12: LITHP

This otherwise unremarkable language is distinguished by the absence of
an "S" in its character set; users must substitute "TH".  LITHP is said
to be useful in protheththing lithtth.


signature.asc
Description: PGP signature
___
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] [LMTX urgent] core keeps getting dumped after 2019.11.28 LMTX update

2019-11-29 Thread Vladimir Lomov
Hello,
** Hans Hagen  [2019-11-29 10:34:31 +0100]:

> On 11/29/2019 7:32 AM, Floris van Manen wrote:
>> Anyone?
>> 
>> After updating LMTX to the latest version 2019.11.28, context stopped
>> working, only to produce core dumps ...
>> 
>> Any hints as how to resolve this?
> wipe the cache

Same here: Archlinux x86_64, luametatex 2019.11.28. I deleted
luatex-cache, run
$ mtxrun --generate; context --make
and on simplest example
--- 8< -
\starttext
Hello, World!
\stoptext
--- 8< -

I got

--- 8< -
resolvers   | formats | executing runner 'run luametatex format': 
/usr/local/opt/lmtx/tex/texmf-linux-64/bin/luametatex --jobname="simple" 
--fmt=/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./simple.tex" 
--c:input="./simple.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/usr/local/opt/lmtx/tex/texmf-linux-64/bin"
This is LuaMetaTeX, Version 2.01.0 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.11.28 14:27 MKIV beta  fmt: 2019.11.29  
int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/usr/local/opt/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/usr/local/opt/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'simple', input './simple', result 'simple'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './simple.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > otf loading > loading 
'/usr/local/opt/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf', 
hash 'lmroman12-regular'
fonts   > otf loading > loading done
fonts   > otf loading > saving 
'/usr/local/opt/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf' 
in cache
system  > lua > compiling 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/lmroman12-regular.tma'
 into 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/lmroman12-regular.tmd'
system  > lua > dumping 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/lmroman12-regular.tma'
 into 
'/home/vladimir/.cache/lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/lmroman12-regular.tmd'
 stripped
fonts   > otf loading > loading, optimizing, packing and caching time 
0.060
mtx-context | fatal error: return code: 136
--- 8< -

I don't see any core dump but on other examples being fine with
context I see this "fatal error" but with the same return code.

Or I missed something? Is luatex-cache (as in log above) a cache?

P.S. I have the following *tex* env. variables set in the session:

--- 8< -
$ env | grep -i tex
PWD=/home/vladimir/works/tex/context/examples
TEXMFCACHE=/home/vladimir/.cache/lmtx
PATH=/usr/local/opt/lmtx/tex/texmf-linux-64/bin:/home/vladimir/bin:/usr/local/opt/texlive/2019/bin/x86_64-linux:/usr/bin:/usr/bin/core_perl:/usr/bin/vendor_perl:/usr/local/bin:/bin
OSFONTDIR=/usr/share/fonts;/usr/local/share/fonts;/usr/local/opt/texlive/2019/texmf-dist/fonts/truetype;/usr/local/opt/texlive/2019/texmf-dist/fonts/opentype
OLDPWD=/home/vladimir/works/tex/context
--- 8< -

---
WBR, Vladimir Lomov

-- 
The absence of labels [in ECL] is probably a good thing.
-- T. Cheatham


signature.asc
Description: PGP signature
___
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] context (lmtx) segfaults on x86_64 linux

2019-09-11 Thread Vladimir Lomov
Hello
** Hans Hagen [2019-09-11 10:54:41 +0200]:

> On 9/11/2019 10:14 AM, Vladimir Lomov wrote:
> 
>> LUAMETATEX:
>> 
>> -- 8< 
>> --
>> tree $TEXMFCACHE/ | sed -e "s@$HOME/.cache/@@"
>> lmtx/
>> └── luatex-cache
>>  └── context
>>  └── 5fe67e0bfe781ce0dde776fb1556f32e
>>  ├── formats
>>  │   └── luametatex
>>  │   ├── cont-en.fmt
>>  │   ├── cont-en.log
>>  │   ├── cont-en.lui
>>  │   └── cont-en.luv
> 
> these are regular lua files

The last two, Ok.

> 
>>  └── trees
>>  ├── 3952aa25b6a1b9f9f8d3eeb6e65f0039.lua
>>  ├── 3952aa25b6a1b9f9f8d3eeb6e65f0039.luc
>>  ├── 3f406286dc3075cdfb044f836920f46a.lua
>>  ├── 3f406286dc3075cdfb044f836920f46a.luc
>>  ├── 3f6978edf9feb817ad6c1f21fc262031.lua
>>  ├── 3f6978edf9feb817ad6c1f21fc262031.luc
>>  ├── 71c82419867f9a0df8a150196c03c86f.lua
>>  ├── 71c82419867f9a0df8a150196c03c86f.luc
>>  ├── 73630a261795d9c53610a28af4550cbc.lua
>>  ├── 73630a261795d9c53610a28af4550cbc.luc
>>  ├── dcb651482955ac31eaab7723b70e0184.lua
>>  ├── dcb651482955ac31eaab7723b70e0184.luc
>>  ├── fb39a92c95ceca857c3f2d0ee48a2ad3.lua
>>  └── fb39a92c95ceca857c3f2d0ee48a2ad3.luc
> actually these *.luc files should be *.lud files so I need to check that

That make sense, lua, (lub), luc, lud but even lua files are different
or do you mean that luc/lud are generated (compiled) from lua and then
contex don't read them only luc/lud?

> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

---
WBR, Vladimir Lomov

-- 
Besides, REAL computers have a rename() system call.:-)
-- Larry Wall in <7...@jpl-devvax.jpl.nasa.gov>


signature.asc
Description: PGP signature
___
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] context (lmtx) segfaults on x86_64 linux

2019-09-11 Thread Vladimir Lomov
Hello,
** Hans Hagen [2019-09-11 10:38:21 +0200]:

> On 9/11/2019 10:14 AM, Vladimir Lomov wrote:
> 
>> so I'm sure that this is different "context"s (I'm curious why current
>> version of mkiv files are different but I suppose it is related to other
>> "system" files of context).
> 
> the lmtx files can have different solutions because luametatex has some
> possibilities that luatex hasn't (yet or never will have)

Got it.

>> Is it "safe" to simply run always
>> 
>>$ mtxrun --generate; context --make
>> 
>> after each context/lmtx update? May be one should add there commands in
>> 'install.sh'?
> 
> normally this will happen automatically but there are rare cases when it
> might fail, for instance in lmtx because there is a change in bytecode that
> gets unnoticed (we use the still experimental lua 5.4 there)

Got it, so as lmtx has "experimental" status, one should pay more
attention, be prepared to run manually 'mtxrun --generate ; context
--make', ok with me.

Thank you Hans for clarification.

> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

---
WBR, Vladimir Lomov

-- 
Subject to change without notice.


signature.asc
Description: PGP signature
___
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] context (lmtx) segfaults on x86_64 linux

2019-09-11 Thread Vladimir Lomov
tually).

> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

---
WBR, Vladimir Lomov

-- 
echo "Congratulations.  You aren't running Eunice."
-- Larry Wall in Configure from the perl distribution


signature.asc
Description: PGP signature
___
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] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Vladimir Lomov
Hello,
** Henri Menke [2019-09-11 11:19:57 +1200]:

> On 9/11/19 3:50 AM, Aditya Mahajan wrote:
>> On Tue, 10 Sep 2019, Hans Hagen wrote:
>> 
>>> On 9/10/2019 4:11 PM, Vladimir Lomov wrote:
>>>> Hello,
>>>> today I updated lmtx and on simple
>>>>
>>>>$ context --version
>>>>
>>>> I get segfault (in the same time luametatex --version works fine).
>>>> Running under gdb shows me that the problem might be in one of 'realloc'
>>>> calls.
>>>>
>>>> The context from Context Suite (mkiv) works fine.
>>>>
>>>> P.S. I tested on two systems, both runs Archlinux x86_64.
>>> can you completely wipe the texmf-cache directory and then run
>>>
>>> mtxrun --generate
>>> context --make
>>>
>>> (there is a change in bytecode that gets not automatically noticed that 
>>> can give that crash)
>> 
>> I had the same issue and completely wiping the texmf-cache fixes it.
>> 
>> @Vladimir: If you are using the luametatex package from AUR, then the 
>> texmf-cache is located at $HOME/.cache/luametatex.

No, I don't use the package from AUR, I simply do

  /usr/local/opt/lmtx $ sudo ./install.sh

but I explicitly set TEXMFCACHE=$HOME/.cache/lmtx (for context suite I
set it to $HOME/.cache/context-suite).

> I'm receiving the super helpful error message:
> 
> ! error (lua): function call: no
> 
> Maybe some sort of cache versioning is in order to at least give a better 
> error.

It didn't occured to me that the problem may be with the cache, it would
be helpfull if context/luametatex will give error message, something
like "cache version mismatch" and exit.

> Cheers, Henri
> 
>> 
>> Aditya

---
WBR, Vladimir Lomov



-- 
Sometimes I live in the country,
And sometimes I live in town.
And sometimes I have a great notion,
To jump in the river and drown.


signature.asc
Description: PGP signature
___
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] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Vladimir Lomov
Hello,
** Hans Hagen [2019-09-10 17:18:45 +0200]:

> On 9/10/2019 4:11 PM, Vladimir Lomov wrote:
>> Hello,
>> today I updated lmtx and on simple
>>$ context --version
>> 
>> I get segfault (in the same time luametatex --version works fine).
>> Running under gdb shows me that the problem might be in one of 'realloc'
>> calls.
>> 
>> The context from Context Suite (mkiv) works fine.
>> 
>> P.S. I tested on two systems, both runs Archlinux x86_64.
> can you completely wipe the texmf-cache directory and then run
> 
> mtxrun --generate
> context --make
> 
> (there is a change in bytecode that gets not automatically noticed that can
> give that crash)

Yes, that "fixed" the problem, thank you.

> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

---
WBR, Vladimir Lomov

-- 
Got a wife and kids in Baltimore Jack,
I went out for a ride and never came back.
Like a river that don't know where it's flowing,
I took a wrong turn and I just kept going.

Everybody's got a hungry heart.
Everybody's got a hungry heart.
Lay down your money and you play your part,
Everybody's got a hungry heart.

I met her in a Kingstown bar,
We fell in love, I knew it had to end.
We took what we had and we ripped it apart,
Now here I am down in Kingstown again.

Everybody needs a place to rest,
Everybody wants to have a home.
Don't make no difference what nobody says,
Ain't nobody likes to be alone.
-- Bruce Springsteen, "Hungry Heart"


signature.asc
Description: PGP signature
___
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] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Vladimir Lomov
Hello,
today I updated lmtx and on simple
  
  $ context --version

I get segfault (in the same time luametatex --version works fine).
Running under gdb shows me that the problem might be in one of 'realloc'
calls.

The context from Context Suite (mkiv) works fine.

P.S. I tested on two systems, both runs Archlinux x86_64.

---
WBR, Vladimir Lomov

-- 
Carelessly planned projects take three times longer to complete than expected.
Carefully planned projects take four times longer to complete than expected,
mostly because the planners expect their planning to reduce the time it takes.


signature.asc
Description: PGP signature
___
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] Emacs with context lmtx

2019-04-09 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2019-04-09 00:58:46 +0200]:

> Hi Vladimir,
> I use AUCTeX and I compile with the command C-c C-c. The configuration you
> proposed for my .emacs file last time works perfectly. So I tried to do the
> same thing with context lmtx and if I add this
> 
> ("ConTeXt" "PATH = /home/viserion/data/context/tex/texmf-linux-64/bin: $
> PATH context --purgeall% s"
>  TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list)
> I get the message
> 
> For information about GNU Emacs and the GNU system, type C-h C-a.
> File mode specification error: (wrong-type-argument symbolp (ConTeXt PATH =
> / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH
> context -purgeall% s TeX-run-command nil t : help Run context (LMTX)))

This message tells that something wrong with your settings (I assume the
spaces in above strings are side effect of mail system). The 'cons'
function that you use allows to add only one element to a list (see
Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp
but tested a bit and think this should work:

 8< 
(eval-after-load "context"
  '(setq TeX-command-list
(append
  '(
("ConTeXt" "PATH=...:$PATH context --purgeall %s"
  TeX-run-command nil t :help "Run context (MarkIV)")
("LMTX""PATH=...:$PATH context --purgeall %s"
  TeX-run-command t   t :help "Run context (LMTX)")
  ) TeX-command-list
)
  )
)
 8< 

I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX uses
'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX' instead
of 'TeX-run-command'. Also you may change the 'nil t' to 't
(context-mode)' if you what to edit (expanded) string and only want to
see these entries for buffers set in 'context' mode.

And please check the binary name and it's location (I didn't play with
LMTX yet).

> Fabrice

---
WBR, Vladimir Lomov

-- 
 Anyone here knowledgable in matters of water fowl?  If you
 walk through a park, and a goose starts following you... and
 ends up following you more than half a mile until you reach
 your car... at 11pm.  Is the goose rabid or something?


signature.asc
Description: PGP signature
___
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] Emacs with context lmtx

2019-04-08 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2019-04-08 12:08:44 +0200]:

> Hi,
> I compile all my files with Emacs and standalone context. I would like to
> compare context lmtx.
> I added this in my .emacs file but it does not work.

Does Emacs prints error messages? How do you run the command in Emacs?
Do you use AUCTeX or not? What messages do you see in *Messages* buffer?

> #
> (eval-after-load "context"
>   '(setq TeX-command-list
>(cons '("ConTeXt"
> "PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
> TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list)
>("ConTeXt"
> "PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
> TeX-run-command t t :help "Run context (LMTX)") t)
> )
> #
> 
> 
> For information about GNU Emacs and the GNU system, type C-h C-a.
> File mode specification error: (wrong-type-argument symbolp (ConTeXt
> PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s TeX-run-command t t :help Run context (LMTX)))
> 
> Thank you.
> Fabrice

P.S. I didn't try lmtx yet, on my agenda.

P.P.S. It might be more useful to discuss this topic on AUCTeX mailing
list if you use AUCTeX.

---
WBR, Vladimir Lomov

-- 
Nothing recedes like success.
-- Walter Winchell


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-29 Thread Vladimir Lomov
)
>  '(ConTeXt-engine "luatex")
>  '(TeX-command-extra-options "-shell-escape")
>  '(ansi-color-faces-vector
>[default default default italic underline success warning error])
>  '(ansi-color-names-vector
>["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#66" "#ccaa8f"
> "#f6f3e8"])
>  '(custom-enabled-themes (quote (leuven)))
>  '(package-selected-packages
>(quote
> (yasnippet-snippets auto-complete-auctex context-coloring nova-theme
> auctex)))
>  '(tab-width 4))
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  )
> 
> ;; SERVER Download (MELPA):
> 
> (when (>= emacs-major-version 24)
>   (require 'package)
>   (add-to-list
>'package-archives
>'("melpa" . "http://melpa.org/packages/;)
>t))
> 
> 
> (eval-after-load "context"
>   '(setq TeX-command-list
>(cons '("ConTeXt"
> "PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context --purgeall
> %s"
>      TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list))
> )
> 
> 
> ;;(add-hook 'ConTeXt-mode-hook
>   ;;(lambda()
>   ;;  (setq TeX-command-default "ConTeXt Full")))
> 
> (setq-default cursor-type 'bar)
> 
> (set-cursor-color "#ff")
> 
> 
> (setq TeX-view-program-list '(("Evince" "evince %o"))
>   TeX-view-program-selection '((output-pdf "Evince")))
> 
> (setq make-backup-files nil) ; stop creating backup~ files
> (setq auto-save-default nil) ; stop creating #autosave# files
> 
> ;; auto close bracket insertion. New in emacs 24
> (electric-pair-mode 1)
> 
> ;; turn on highlight matching brackets when cursor is on one
> (show-paren-mode 1)
> 
> 
> (setq inhibit-startup-screen t)
> 
> 
> (add-to-list 'load-path "/home/aragorn/texlive/2018/texmf-dist/asymptote")
> (autoload 'asy-mode "asy-mode.el" "Asymptote major mode." t)
> (autoload 'lasy-mode "asy-mode.el" "hybrid Asymptote/Latex major mode." t)
> (autoload 'asy-insinuate-latex "asy-mode.el" "Asymptote insinuate LaTeX." t)
> (add-to-list 'auto-mode-alist '("\\.asy$" . asy-mode))
> 
> (setq column-number-mode t)
> 
> (setq line-number-mode t)
> 
> 
> (setq py-install-directory "~/.emacs.d/site-lisp/python-mode.el-6.1.1")
> 
> (add-to-list 'load-path py-install-directory)
> 
> (require 'python-mode)
> 
> ;;(add-hook 'ConTeXt-mode-hook
>   ;;(lambda ()
>;; (setq indent-tabs-mode t
> ;;  indent-line-function 'indent-relative)))
> 
> (add-hook 'LaTeX-mode-hook
>   (lambda()
>  (add-to-list 'TeX-command-list '("LuaTeX" "%`lualatex%(mode)%'
> %t" TeX-run-TeX nil t))
>  (setq TeX-command-default "LuaTeX")
>  (setq TeX-save-query nil)
>  (setq TeX-show-compilation t)))
> 
> 
> (setq-default TeX-engine 'luatex
>   TeX-PDF-mode t)

These settings looks good. Hope you resolved your problem.

P.S. Why you install auctex as MELPA and don't use Archlinux package?

> Thanks
> Fabrice

[...]

---
WBR, Vladimir Lomov

-- 
A memorandum is written not to inform the reader, but to protect the writer.
-- Dean Acheson


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-29 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-29 11:39:07 +0200]:

> Hello,
> Before considering modifications, here's what I get when I do which context
> :
> 
> Setting "/home/aragorn/context/tex" as ConTeXt root.
> [aragorn@fab ~]$ which context
> /home/aragorn/context/tex/texmf-linux-64/bin/context
> [aragorn@fab ~]$

Ok, context from ConTeXt Standalone.

> $ pacman -Qs texlive

Ok, your system doesn't have any texlive packages.

> 
>  [root@fab aragorn]# pacman -Qs texlive
> [root@fab aragorn]#

Running commands as root is a bit dangerous.

> $ pacman -Qs emacs
>
> 
>  [root@fab aragorn]# pacman -Qs emacs
> local/emacs 26.1-2
> The extensible, customizable, self-documenting real-time display editor
> local/emacs-python-mode 6.2.3-1
> Python mode for Emacs
> [root@fab aragorn]#

Your system has only these two packages.

> you mentioned that commands run in terminal worked fine, but you
> >   invoked them by full path;
> >
> 
> 
> To be able to test with the
> texlive context binary and context standalone context binary
> .

Got it.

> 
> 
> The next in the next message after restarting my PC ...
> 
> Fabrice

[..]

---
WBR, Vladimir Lomov

-- 
I think that I shall never see
A thing as lovely as a tree.
But as you see the trees have gone
They went this morning with the dawn.
A logging firm from out of town
Came and chopped the trees all down.
But I will trick those dirty skunks
And write a brand new poem called 'Trunks'.


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-28 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-28 11:18:58 +0200]:

> Hi Vladimir,

> I do not use Arch Linux repositories to install  texlive 2018 packages

Some texlive-* packages could be installed as dependencies of other
packages. You may check if your system has any texlive package:

  $ pacman -Qs texlive

> but I installed texlive 2018 "scheme-full" with tlmgr -gui  in
> /home/aragorn /texlive/2018.  I then make regular updates in the same
> way. No texlive traces in the \usr\share\ directory or elsewhere.

I prefer to rely on package manager.

> Standalone Context is also installed in my home directory. However,
> Emacs is installed from the Arch Linux repositories and is located in
> /usr/share/emacs.

  $ pacman -Qs emacs

> So I have to add the path of texlive 2018 ?
> Maybe you do not need to add the Context Standalone path ?
> My ~/.profile file would be this :
> 
> source /home/aragorn/context/tex/setuptex
> export PATH = $ PATH: /home/aragorn/texlive/2018/bin/x86_64-linux
> export PATH = $ PATH: /home/aragorn /bin

This part is a bit strange:
- in message
  https://mailman.ntg.nl/pipermail/ntg-context/2018/092418.html
  you mentioned that commands run in terminal worked fine, but you
  invoked them by full path;

- in the same message you set PATH in emacs as

(setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)

  (I have to admit that I didn't know it is possible to use '$PATH' in
  setenv), so it prepends path to context binary to PATH list. The above
  lines do opposite: they append path to context binary to the end of
  PATH list.

  The first line, 'source ...', helps here because 'setuptex' in turns
  prepend path to context binary to PATH.

When you invoke 'context' in terminal (I assume it is bash shell) the
shell searches program in current directory (depends on configuration)
and then in PATH, the first wins. So to use context from ConTeXt
standalone you may simply do

  $ export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH

either in terminal or in ~/.profile. You may always check if this is
true by runnig

  $ command -v context

(for bash shell) or

  $ which context

Returning to your problem. I looked closely again in messages with
output from context and I don't understand what may cause the error.
Seems that Emacs uses correct context (according to loading files).
Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
Emacs?

> Regards,
> Fabrice
> 

[...]

---
WBR, Vladimir Lomov


-- 
Uncontrolled power will turn even saints into savages.  And we can all
be counted on to live down to our lowest impulses.
-- Parmen, "Plato's Stepchildren", stardate 5784.3


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-27 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-27 15:47:41 +0200]:

> Le lun. 27 août 2018 à 11:51, Fabrice Couvreur 
> a écrit :
> 
>> Hi Vladimir,
>> I just made a new standalone context install and added this to my
>> ~/.profile :  source /home/aragorn/context/tex/setuptex
>> It finally seems to work !

I'm glad it works for you though

>> export PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin
>> source /home/aragorn/context/tex/setuptex
>> export PATH=$PATH:/home/aragorn/texlive/2018/bin/x86_64-linux
>> export PATH=$PATH:/home/aragorn/bin

don't understand how these lines help you. As you said you were able to
typeset a sample document in terminal, so all settings in terminal (bash
I presume) were fine, especially taking into account that 'setuptex'
exports only PATH variable with correct path for Standalone ConTeXt.
They might change environment from which Emacs is launched but again,
you use full path to run context so they must be irrelevant here.

In one of previous messages
(https://www.mail-archive.com/ntg-context@ntg.nl/msg88742.html) you told
that you use Archlinux, did you install texlive-* packages? Did you
update your system? I use Archlinux and have not only ConTeXt
standalone/suite and TeX Live (TUG) installed but also I have installed
texlive-* packages from distribution repository and don't have any
problem with the example either in terminal or Emacs(+AUCTeX), I suspect
that your Emacs configuration might be the cause of the problem.

> Hi Vladimir,
> I just realized that does not work anymore
> !
> 
> (setq ConTeXt-mode-hook
>   (lambda () (setq TeX-command-extra-options "--purgeall")))

Why you insist on using hooks when you specify in full the custom
target? Just add this option to the custom target:

(eval-after-load "context"
  '(setq TeX-command-list
   (cons '("ConTeXt" 
"PATH=/usr/local/opt/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s"
 TeX-run-command nil t :help "Run context (MarkIV)") TeX-command-list))
)

> Thanks
> Fabrice

[...]

---
WBR, Vladimir Lomov

-- 
It is necessary for the welfare of society that genius should be privileged
to utter sedition, to blaspheme, to outrage good taste, to corrupt the
youthful mind, and generally to scandalize one's uncles.
-- George Bernard Shaw


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-26 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-25 01:23:28 +0200]:

> Hi Vladimir,
> I use ConTeXt Full following this question asked on the forum
> https://mailman.ntg.nl/pipermail/ntg-context/2017/089501.html
> Then, if I compile with ConTeXt, the problem is not solved and the file
> vladimir.log is empty !

I don't know what trigger this error, in my configuration (even in
minimal one, see below) the sample document is typeset just fine.

> This is the buffer vladimir.output with emacs
> 
>  8<
> --
> Running `ConTeXt' on `vladimir' with
> ``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context vladimir''
> resolvers   | trees | analyzing 'home:texmf'
> mtx-context | warning: no (local) file './vladimir', proceeding
> mtx-context | run 1: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --jobname="vladimir"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
> --c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>  system commands enabled.
> 
> resolvers   > trees > analyzing 'home:texmf'
> open source > level 1, order 1, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system  >
> system  > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20
> int: english/english
> system  >
> system  > 'cont-new.mkiv' loaded
> open source > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'vladimir', input './vladimir', result
> 'vladimir'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > level 2, order 3, name '/home/aragorn/vladimir.tex'
> system  > synctex functionality is enabled, expect 5-10 pct runtime
> overhead!
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> structure   > sectioning > chapter @ level 2 : 0.1 -> First chapter
> metapost> initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost> loading 'metafun' as
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> using method 'default'
> metapost> initializing number mode 'scaled'
> 
> lua error   > lua error on line 10 in file /home/aragorn/vladimir.tex:
> 
> ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
> call a nil value (global 'getid')
> stack traceback:
> ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
> upvalue 'getexpansion'
> ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
> function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
> ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
> local 'boxtomp'
> ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
> function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
> (...tail calls...)
> 
>  1
>  2 \setupsynctex[state=start]
>  3
>  4 \startusableMPgraphic{NumberHead}
>  5   draw outlinetext.f
>  6   ("\bf\namedheadnumber{chapter}")
>  7   (withcolor "red")
>  8   ysized 50pt ;
>  9 \stopusableMPgraphic
> 10 >>
> 11 \unexpanded\def\processMPheadnumber#1%
> 12   {\useMPgraphic{NumberHead}}
> 13
> 14 \setuphead%
> 15 [chapter]%
> 16 [command=\HeadTitle,%
> 17  headstyle=\ss,%
> 18  numbercommand=\processMPheadnumber]
> 19
> 20 \unexpanded\def\HeadTitle#1#2%
> 

I didn't see nothing suspicios, only the message with lua error, I
didn't see it in terminal and in Emacs.

Last try, could you make a backup of your ~/.emacs file and use attached
one to test your system (Emacs+AUCTeX). Just
1. make a copy of your original ~/.emacs;
2. change it's context to th

Re: [NTG-context] Emacs + latest beta

2018-08-26 Thread Vladimir Lomov
Hello,
** Hans Hagen [2018-08-24 16:39:54 +0200]:

> On 8/24/2018 3:48 PM, Vladimir Lomov wrote:
> 
>> I don't know why you get "damaged" pdf file (in fact how do you know
>> that file is damaged?) but "TEXMFCNF" is special variable that I uses to
>> tweak TeX Live configuration for my latex workflow but context
>> (standalone and from TL) refuses to work if this variable is set (in
>> terminal I do 'unset' while in Emacs I set its value to 'nil' because
>> this is identical to "unset" it). The "TEXROOT" variable I found in
>> update script, I'm not sure if context requires it to work but IMHO, it
>> is harmless. And the last variable "TEXMFCACHE" I use to force context
>> to use ~/.cache for "luatex-cache" directory and not "pollute" my home
>> directory (without it the "luatex-cache" directory will be created in
>> $HOME directory).
> 
> context does listen to some of these variables but all lookups are done
> independent of kpse,

And I suspect this causes strange behaviour of context in my case. I have

$ echo $TEXMFCNF
/home/vladimir/.texlive2018/texmf-config/web2c:

The last colon is kpse feature to use not only the first texmf.cnf
(https://www.tug.org/texinfohtml/kpathsea.html#Config-files) but all
others (I use personal texmf.cnf to adjust some TEXMF variables for my
latex workflow). With that TEXMFCNF context can't find its files (this
is for context from TeX Live:
 8< ---
mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/home/vladimir/.texlive2018/texmf-config/web2c:' from specification 
'/home/vladimir/.texlive2018/texmf-config/web2c:'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/home/vladimir/.texlive2018/texmf-config/web2c:' from specification 
'/home/vladimir/.texlive2018/texmf-config/web2c:'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-context.lua' using hash 
'lua::mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-contexts.lua' using hash 
'lua::mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-t-context.lua' using hash 
'lua::mtx-t-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-t-contexts.lua' using hash 
'lua::mtx-t-contexts.lua'
resolvers   | resolving | remembered file 'mtx-t-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'context.lua' using hash 
'lua::context.lua'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
 8< ---

). I didn't try to figure out how to "fix" this, I simply unset that variable
when I use context (both standalone and from TeX Live).

> basically you only need to set the path or run context
> / mtxrun with a full path, often from an editor
> /mtxrun --script context 
>
> works ok

context script do exactly that.

> Hans

---
WBR, Vladimir Lomov

-- 
If you ever want to have a lot of fun, I recommend that you go off and program
an imbedded system.  The salient characteristic of an imbedded system is that
it cannot be allowed to get into a state from which only direct intervention
will suffice to remove it.  An imbedded system can't permanently trust
anything it hears from the outside world.  It must sniff around, adapt,
consider, sniff around, and adapt again.  I'm not talking about ordinary
modular programming carefulness here.  No.  Programming an imbedded system
calls for undiluted raging maniacal paranoia.  For example, our ethernet front
ends need to know what network number they are on so that they can address and
route PUPs properly.  How do you find out what your network number is?  Easy,
you ask a gateway.  Gateways are required by definition to know their correct
network numbers.  Once you've got your network number, you start using it and
before you can blink you've got it wired into fifteen different sockets spread
all over creation.  Now what happens when the panic-stricken operator realizes
he was running the wrong version of the gateway which was giving out the wrong
n

Re: [NTG-context] Emacs + latest beta

2018-08-24 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-24 12:31:19 +0200]:

> Hi Vladimir,
> Thanks for everything, it seems to work !

> You are the only one who knew how to solve the problem.

> Here is the content of my ~./emacs file that you probably need to improve :
> 
>  8< -
> 
> (eval-after-load "context"
>   '(setq TeX-command-list
>  (cons '("ConTeXt"
> "PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context %s"
>TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list))
> )
> 
> (setq ConTeXt-mode-hook
>   (lambda () (setq TeX-command-extra-options "--purgeall")))
> 
> 
> (add-hook 'ConTeXt-mode-hook
>   (lambda()
> (setq TeX-command-default "ConTeXt Full")))

Why did you set "ConTeXt Full" as your default command? The above
'setq' introduces "ConTeXt" command to process a context file. When I
said that everything is OK I meant that I did C-c C-c, checked that in
minibuffer the "ConTeXt" command is chosen and then hit Enter.

>  8< -
> 
> By cons if I add this :
> 
>  8< -
> 
> (setenv "TEXMFCNF" nil)
> (setenv "TEXROOT" "/home/aragorn/context/tex")
> (setenv "TEXMFCACHE" (format "%s/.cache" (getenv "HOME")))
> 
> 
>  8< -
> 
> 
>  the compilation returns a damaged pdf file that I can not open.

I don't know why you get "damaged" pdf file (in fact how do you know
that file is damaged?) but "TEXMFCNF" is special variable that I uses to
tweak TeX Live configuration for my latex workflow but context
(standalone and from TL) refuses to work if this variable is set (in
terminal I do 'unset' while in Emacs I set its value to 'nil' because
this is identical to "unset" it). The "TEXROOT" variable I found in
update script, I'm not sure if context requires it to work but IMHO, it
is harmless. And the last variable "TEXMFCACHE" I use to force context
to use ~/.cache for "luatex-cache" directory and not "pollute" my home
directory (without it the "luatex-cache" directory will be created in
$HOME directory).

> I installed texlive 2018 and context standalone in my home directory and
> emacs in the /usr/share/emacs directory with Arch Linux ; can that explain
> my problems ?

Not sure but I'll wait you answer about "ConTeXt Full" vs "ConTeXt" I
mentioned above.

> Fabrice

[...]

---
WBR, Vladimir Lomov

-- 
I'm serious about thinking through all the possibilities before we
settle on anything.  All things have the advantages of their
disadvantages, and vice versa.
 -- Larry Wall in <199709032332.qaa21...@wall.org>


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-23 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-23 10:48:42 +0200]:

> Hi,
> Thanks for your help but ...

I checked again and it is fine. May be I was too unspecific. First, I
changed a bit your example to this one:

[test.tex]
 8< 
\setupsynctex[state=start]

\startusableMPgraphic{NumberHead}
  draw outlinetext.f
  ("\bf\namedheadnumber{chapter}")
  (withcolor "lightgray")
  ysized 50pt ;
\stopusableMPgraphic

\unexpanded\def\processMPheadnumber#1%
  {\useMPgraphic{NumberHead}}

\setuphead%
[chapter]%
[command=\HeadTitle,%
 headstyle=\ss,%
 numbercommand=\processMPheadnumber]

\unexpanded\def\HeadTitle#1#2%
{\framed%
  [frame=off,%
bottomframe=on,%
width=broad,
align={broad,nothyphenated,left}]%
{#1\blank[nowhite]#2}}

\starttext
\startchapter[title=First chapter]
  \input ward
\stopchapter
\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:
 8< 

And second, I tweaked a bit my Emacs configuration:

 8< 
(setenv "TEXMFCNF" nil)
(setenv "TEXROOT" "/usr/local/opt/context/tex")
(setenv "TEXMFCACHE" (format "%s/.cache" (getenv "HOME")))
 8< 

(I have to do that because I have both TeX Live and ConTeXt
Standalone/Suite in parallel, and use mainly LaTeX.)

You should check your Emacs configuration.

This is my Emacs configuration:
https://bitbucket.org/vp1981/scripts/src/master/config/emacs/
and I have
Emacs:  27.0.50 (git)
AUCTEX: 12.1 (git)

[...]

---
WBR, Vladimir Lomov

-- 
Come, you spirits
That tend on mortal thoughts, unsex me here,
And fill me, from the crown to the toe, top-full
Of direst cruelty! make thick my blood,
Stop up the access and passage to remorse
That no compunctious visiting of nature
Shake my fell purpose, not keep peace between
The effect and it! Come to my woman's breasts,
And take my milk for gall, you murdering ministers,
Wherever in your sightless substances
You wait on nature's mischief! Come, thick night,
And pall the in the dunnest smoke of hell,
That my keen knife see not the wound it makes,
Nor heaven peep through the blanket of the dark,
To cry `Hold, hold!'
-- Lady MacBeth


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-23 Thread Vladimir Lomov
Hello,
** Wolfgang Schuster [2018-08-23 20:58:01 +0200]:

> You get an error message because outlinetext doesn’t work.
> 
> \starttext
> 
> \startMPcode
> draw outlinetext.f
> ("A")
> () ;
> \stopMPcode
> 
> \stoptext

The example that Fabrice Couvreur presented works fine on my side,
besides

> Fabrice Couvreur schrieb am 22.08.18 um 13:05:
>> Hello,
>> Sorry to insist, but could anyone help me understand the problem I'm
>> having in using Emacs with standalone context ?
>> The following file compiles perfectly from a terminal :

--^^

[...]

---
WBR, Vladimir Lomov

-- 
No snowflake in an avalanche ever feels responsible.


signature.asc
Description: PGP signature
___
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] Emacs + latest beta

2018-08-23 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2018-08-22 13:05:31 +0200]:

> Hello,
> Sorry to insist, but could anyone help me understand the problem I'm having
> in using Emacs with standalone context ?

Check environment variables both in terminal and Emacs.

> The following file compiles perfectly from a terminal :
> 
> /home/aragorn/texlive/2018/bin/x86_64-linux/context  test.tex
> 
> /home/aragorn/context/tex/texmf-linux-64/bin/context  test.tex (latest beta)
> 
> With Emacs, it compiles perfectly if you use the 2018 texlive context
> binary.
> 
> If I want to use the latest beta context binary, I need to add this to my
> ~/.emacs file :
> 
> (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)

Instead of this I use this (in my ~/.emacs):

(eval-after-load "context"
  '(setq TeX-command-list
 (cons '("ConTeXt" 
"PATH=/usr/local/opt/context/tex/texmf-linux-64/bin:$PATH context %s"
   TeX-run-command nil t :help "Run context (MarkIV)") TeX-command-list))
)

> And there, I encounter a compilation problem :

and I don't see any errors (note, that in my case the "target" in
"ConTeXt", not "ConTeXt Full").

> Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop
> pouf.tex''resolvers   | trees | analyzing 'home:texmf'
> mtx-context | run 1: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --interaction="nonstopmode" --jobname="pouf"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex"
> --c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode
> --c:purgeall "cont-yes.mkiv"
[...]

---
WBR, Vladimir Lomov

-- 
Old timer, n.:
One who remembers when charity was a virtue and not an organization.


signature.asc
Description: PGP signature
___
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] mtxrun uses 'nil' for platform

2018-04-16 Thread Vladimir Lomov
** Hans Hagen [2018-04-16 10:47:32 +0200]:

> On 4/16/2018 6:08 AM, Vladimir Lomov wrote:
>> Hello list,
>> recent update of context suite (beta) changed something in the code of
>> 'mtxrun' so now it shows me a warning:
>>${CONTEXT}/bin/mtxrun:20683: attempt to concatenate a nil value (field 
>> 'platform')
>> I didn't notice this warning earilier.
>> 
>> The line 20683 in 'mtxrun' is
>>  local texos="texmf-"..os.platform
>> 
>> To check the return of 'os.platform' I made small lua script and run it
>> as
>>mtxrun --script SCRIPT --platform=linux-64
>> It returned 'nil nil'. Is this expected behavior?
>> 
>> % SCRIPT.lua
>> --- 8< 
>> local plat=os.platform
>> local plat2=os.getenv("MTX_PLATFORM")
>> print("platform = ", plat)
>> print("platform2 = ", plat2)
>> --- 8< 
> 
> it should be
> 
> local platform = os.getenv("MTX_PLATFORM") or ""

Thank you, now 'mtxrun' runs without any warnings.

---
WBR, Vladimir Lomov

-- 
The  White Rabbit put on his spectacles.
"Where shall  I  begin, please your Majesty ?" he asked.
"Begin at the beginning,", the King said, very gravely, "and go on
till you come to the end: then stop."
-- Lewis Carroll
___
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] mtxrun uses 'nil' for platform

2018-04-15 Thread Vladimir Lomov
Hello list,
recent update of context suite (beta) changed something in the code of
'mtxrun' so now it shows me a warning:
  ${CONTEXT}/bin/mtxrun:20683: attempt to concatenate a nil value (field 
'platform')
I didn't notice this warning earilier.

The line 20683 in 'mtxrun' is
local texos="texmf-"..os.platform

To check the return of 'os.platform' I made small lua script and run it
as
  mtxrun --script SCRIPT --platform=linux-64
It returned 'nil nil'. Is this expected behavior?

% SCRIPT.lua
--- 8< 
local plat=os.platform
local plat2=os.getenv("MTX_PLATFORM")
print("platform = ", plat)
print("platform2 = ", plat2)
--- 8< ----

---
WBR, Vladimir Lomov


-- 
Hacking's just another word for nothing left to kludge.
___
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] Cambria official typescript (mis)behavior

2017-08-02 Thread Vladimir Lomov
Hello,
** Aditya Mahajan [2017-08-02 17:46:53 -0400]:

> On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:
> 
>> On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan <adit...@umich.edu> wrote:
>> 
>>>  Not sure if it helps, but this is worth a try (note the force key):
>>> 
>>>  mtxrun --script fonts --reload --force
>> 
>> Hmm, now I get
>> 
>> mkiv lua stats  > loaded fonts: 1 files: cambria.ttc
>> 
>> and the pdf file is correct. Thanks, Aditya! (Although I still don't
>> understand why there was a problem to begin with!)
> 
> I occasionally experience a similar issue (after an update wrong fontface is
> used, especially with math fonts) and reloading the fonts database with
> --force always fixes the issue for me. So, I have never bothered to
> investigate why the issue comes up in the first place.
> 
> Aditya

Thanks for hint Aditya.

Idris, if you use Windows 10 then may be your OS has been updated (some
time ago one of host I has access with Windows 10 has been upgraded to
ver. Windows 10 1703) and then you have updated fonts, including
Cambria. AFAIU font cache tracks somehow font version, so in case fonts
update one has to update font cache.

---
WBR, Vladimir Lomov

-- 
 Feanor: u have no idea of the depth of the stupidty of american law
___
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] The requested font has no files for the 'tf' alternative

2017-03-09 Thread Vladimir Lomov
Hello
** Marco Patzer [2017-03-09 10:33:34 +0100]:

> Hi!
> 
> I run into a problem using some fonts. Latin Modern is used instead
> and ConTeXt displays:
> 
>   selectfont > The requested font 'Caecilia LT Std Roman' has no files for 
> the 'tf' alternative, Latin Modern is used instead.
> 
> Example:
> 
> \definefontfamily
>   [mainface]
>   [rm]
>   [Caecilia LT Std Roman]
>   %% doesn't work, either
>   %% [tf=file:CaeciliaLTStd-Roman.otf]
> 
> \setupbodyfont [mainface]
> 
> \starttext
>   %% \definedfont [name:CaeciliaLTStd-Roman] %% this works
>   \input knuth
> \stoptext
> 
> The font is in the database:
> 
>   mtxrun -script fonts -list -all caecilia
> 
> This happens with other fonts too, not only Caecilia. Some fonts
> work, others don't. Couldn't find anything on the list, so I might
> be doing something wrong here. What's the issue here?
> 
> context: 2017.03.02 22:23
> 
> Marco

Some time ago I faced the same problem: I tried to use one of Microsoft
font but it didn't work, the only thing I saw in log was the same
message. I solved the problem by deleting "font cache"
  luatex-cache/context/HASH/fonts
and generating it again
  mtxrun --script fonts --reload --force
(may be with '--force' option you may not delete the "cache" but it
didn't hurt anyway).

Hope this will help you.

---
WBR, Vladimir Lomov

-- 
This is Jim Rockford.
At the tone leave your name and message; I'll get back to you.

This is Maria, Liberty Bail Bonds.  Your client, Todd Lieman, skipped and
his bail is forfeit.  That's the pink slip on your '74 Firebird, I believe.
Sorry, Jim, bring it on over.

This is Marilyn Reed, I wanta talk to you...  Is this a machine?  I don't
talk to machines!  [Click]
-- "The Rockford Files"
___
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] Specifying the cell column: are \TD[n] and \TD[m] broken?

2017-02-19 Thread Vladimir Lomov
Hello,

on wiki page
[[http://wiki.contextgarden.net/TABLE#Specifying_the_cell_column]] there
are two examples (also I found them in tabl-ntb.mkiv) to "skip" empty
cells:

 8< -
\bTABLE[width=3em]
\bTR\bTD d1 \eTD\bTD[n=2] d2 \eTD\bTD[n=5] d5 \eTD\bTD[n=7] d7 \eTD\eTR
\bTR\bTD f1 \eTD\bTD[n=4] f4 \eTD\bTD[n=5] f5 \eTD\bTD[n=7] f7 \eTD\eTR
\eTABLE
 8< -

and

 8< -
\bTABLE[width=3em]
\bTR\bTD d1 \eTD\bTD[m=2] d2 \eTD\bTD[m=5] d5 \eTD\bTD[m=7] d7 \eTD\eTR
\bTR\bTD f1 \eTD\bTD[m=4] f4 \eTD\bTD[m=5] f5 \eTD\bTD[m=7] f7 \eTD\eTR
\eTABLE
 8< -

but in current context (Context Standalone, ver. 2017.01.27, ver.
2017.02.19) and in context from TeX Live 2016 (ver. 2016.05.17) these
two examples give identical tables that differ from results on the wiki
page.

P.S. I don't use this feature but find it very interesting and sometimes
useful.

---
WBR, Vladimir Lomov

-- 
Start every day off with a smile and get it over with.
-- W.C. Fields
___
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] Problem with Russian letters in itemize

2017-02-13 Thread Vladimir Lomov
Hello,
** Ulrike Fischer [2017-02-13 14:16:52 +0100]:

> Am Mon, 13 Feb 2017 17:24:19 +0800 schrieb Vladimir Lomov:
> 
>> I'm trying to use Russian (Cyrillic) letters for itemize list but
>> without luck.
> 
> Imho there is no predefined conversion, but you can define your own:
> 
> http://wiki.contextgarden.net/User-Defined_Enumerations 

Thank you, I saw this page but was confused by other page about
Enumerations (http://wiki.contextgarden.net/Enumerations) that mentions
two special examples: Slovenian and Spain (and some alphabetic thing).

I tried to make custom conversion command and it works, but my point was
that I expected that \items will give Russian letters if I use
'\mainlanguage[ru]'. I tried with 'sl' and 'es' and both give special
letters. Still 'ar', 'gr' and 'kr' don't give me other than Latin
letters in \items as I would expect (examples with 'sl' and 'es' work!).

So I conclude that either I'm doing something wrong (in wrong way) or
something still missing in context regarging usage of other alphabets
letters as \items.

---
WBR, Vladimir Lomov

-- 
Science may someday discover what faith has always known.
___
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] Problem with Russian letters in itemize

2017-02-13 Thread Vladimir Lomov
Hello,

I'm trying to use Russian (Cyrillic) letters for itemize list but
without luck.

This is small example to show a problem:

-- 8< -
\mainlanguage[ru]
\setupbodyfont[cambria]
% \setupbodyfont[computer-modern-unicode]
% \setupbodyfont[dejavu]

\starttext

\startitemize[a]
\item первый
\item второй
\stopitemize
\stoptext
-- 8< -

Compilation (typesetting) of the example by context (curr. ver.
2017.01.27) gives a PDF file with Latin letters.

According to 'language-mkiv.pdf' (found in
texmf-context/doc/context/documents/general/manuals)

  The \type{alphabetic} converter adapts to the current main language.
  When a language has no special alphabet, the regular 26 characters are
  used.

the use of Latin letters is expected behaviour if current language has
not special alphabet. But Russian alphabet (based on Cyrillic) has
differences with Latin one. Did I face a bug or I misunderstand the
documentation and I have to use (add?) another command to obtain Russian
letters for item?

Also, it is possible that I incorrectly use 'setupbodyfont' but I tested
all cases shown above and they work fine, expect the fact that 'cambria'
case gives me italic variant of font while 'computer-modern-unicode' and
'dejavu' use "roman" font.

Thank you in advance, Vladimir Lomov

-- 
Trying to define yourself is like trying to bite your own teeth.
-- Alan Watts
___
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] new blank

2014-03-27 Thread Vladimir Lomov
Hello,
** Hans Hagen [2014-03-27 20:09:55 +0100]:

 Hi,

 this works ok in the beta

 \showmakeup

 \starttext

 \strut \hfill first line
 \blank[overlay]
 second line \hfill \strut

 \ruledvbox {
 \strut \hfill line 1
 \blank[overlay]
 line 2\hfill \strut
 \blank[overlay]
 \strut \hfill line 3\hfill \strut
 }

 \startitemize[n]
 \item bla
 \item \startitemize[a]
 \item bla $\displaystyle\int^{x^{y^4}}$ \item bla
 \stopitemize
 \stopitemize

 \stoptext

This example causes luatex to core dump on my system: Archlinux x86_64 with
up-to-date ConTeXt Suite, though this example works fine on Windows x64.

Seems that linux binaries a bit outdated, I get here:

$ luatex --version | head -n 1
This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)

while on Windows:

 luatex --version
This is LuaTeX, Version beta-0.79.0 (TeX Live 2013/W32TeX) (rev 4953)
...


For the record, this is message that luatex shows on Linux:

...
luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830: free_error: 
Assertion `p my_prealloc' failed.

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted


---
WBR, Vladimir Lomov

-- 
True happiness will be found only in true love.
___
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] Compiling to EPUB

2014-01-16 Thread Vladimir Lomov
Hello,
** H. Özoguz [2014-01-16 12:11:09 +0100]:

 Looks like you should install a command line ?zip? program.
 ePub is a zipped format.

 Thanks, Hraban.

 But what does that mean exactly, I have installed 7zip and besides that,
 Windows can natively zip any file. What exactly to do to install an command
 line zip program and to get over this error.

I didn't try to generate EPUB but may give some hints. First, 7zip
allows to create different kinds of archives, compressed or not and to
extract content of archive created in most popular formats.

Windows has built-in capability to natively opens zip archives BUT
not (AFAIR) to create them.

In your case context needs a program able to create an archive in ZIP.
Surprisingly there is program named 'zip.exe' (it is called that on
Windows) that context uses to create ZIP. You can download this program
on this site: http://www.info-zip.org/Zip.html

Next, you should place this program to a directory (aka folder on
Windows) mentioned in PATH variable.

---
WBR, Vladimir Lomov

-- 
Famous last words:
(1) Don't unplug it, it will just take a moment to fix.
(2) Let's take the shortcut, he can't see us from there.
(3) What happens if you touch these two wires tog--
(4) We won't need reservations.
(5) It's always sunny there this time of the year.
(6) Don't worry, it's not loaded.
(7) They'd never (be stupid enough to) make him a manager.
(8) Don't worry!  Women love it!
___
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] Synctex problems with context and texworks

2012-11-12 Thread Vladimir Lomov
Hello,

** H. Özoguz [2012-11-12 08:53:46 +0100]:

 Hello there,

 sind yesterday the pdf-view with synctex had no problems. But today,
 without any change (afaik), it does not work anymore. The arguments
 for compiling with context.exe are

 --synctex
 $fullname

 That is default. I deleted the .synctex.gz files manually, but it
 did not help. What could be the problem?

Wild guess:

http://tug.org/pipermail/texworks/2012q1/005238.html

---
WBR, Vladimir Lomov

-- 
There is a certain impertinence in allowing oneself to be burned for an opinion.
-- Anatole France
___
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] **SPAM** ConTeXt breaks pdfcrop

2012-06-18 Thread Vladimir Lomov
Hello,
** S Barmeier [2012-06-18 15:38:20 +0900]:

 I guess this has to do with my path variables, but having context
 minimals installed prevents pdfcrop from running successfully:

 PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.

 kpathsea: Running mktexfmt pdftex.fmt
 /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395:
 /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt:
 /home/user/context/tex/texmf/texconfig/tcfmgr: not found
 fmtutil: config file `fmtutil.cnf' not found.
 !!! Error: pdfTeX run failed!

 Does anybody have a suggestion of how to deal with this issue successfully?

Do you familiar with shell script writing?

 Thank you.
 Severin

 P.S.: I'm on ubuntu 12.04.

Save this code as `pdfcrop-tl' (or use any other name, except pdfcrop)
code
#!/bin/bash

PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH
pdfcrop $@
exit 0
/code
and run as
terminal
$ pdfcrop-tl FILE.PDF
/terminal

(If I not mistake this is known as `wrapper'.)

---
WBR, Vladimir Lomov

-- 
Protozoa are small, and bacteria are small, but viruses are smaller
 than the both put together.
___
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] Luatex crash on \endinput \end

2012-05-17 Thread Vladimir Lomov
Hello,
** Aditya Mahajan [2012-05-17 10:30:53 -0400]:

 On Thu, 17 May 2012, Taco Hoekwater wrote:

On 05/17/2012 02:24 PM, luigi scarso wrote:

# echo '\\endinput \\end' | context --pipe

mtx-context | entering scrollmode, end job with \endThis is
LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
  \write18 enabled.

I get the same results as luigi, except:

 This is LuaTeX, Version beta-0.71.0-2012051009 (rev 4415)
 ConTeXt  ver: 2012.04.26 22:27 MKIV

Linux...2.6.32-41-generic-pae #89-Ubuntu SMP Fri Apr 27 23:59:24 UTC
2012 i686 GNU/Linux

Linux boobuntu 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22
UTC 2012 x86_64 GNU/Linux

 I tested on another machine

 Linux  3.2.7-1-ARCH #1 SMP PREEMPT Tue Feb 21 16:59:04 UTC 2012
 i686 Intel(R) Atom(TM) CPU N450 @ 1.66GHz GenuineIntel GNU/Linux

 with the same crash. Can someone else using context minimals with
 archlinux check if they get a crash or not?

Two systems (notebook and desktop) both Archlinux x86_64, Intel
(notebook) and AMD (desktop) processors, context suite (aka context minimals),

notebook: 2012.05.11
$ echo '\\endinput \\end' | context --pipe

mtx-context | entering scrollmode, end job with \endThis is LuaTeX, Version 
beta-0.70.1-2011051918 (rev 4277) 
 \write18 enabled.

ConTeXt  ver: 2012.05.11 13:19 MKIV  fmt: 2012.5.12  int: english/english

system   cont-new.mkiv loaded
(/usr/local/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   no texput.top
fontslatin modern fonts are not preloaded
languageslanguage en is active

*
*
! Emergency stop.

system   tex  error on line 0 in file : Emergency stop ...

empty file

* \\endinput \\end
 
!  == Fatal error occurred, no output PDF file produced!
system  | total runtime: 0.336

desktop: 2012.05.14
$ echo '\\endinput \\end' | context --pipe

mtx-context | entering scrollmode, end job with \endThis is LuaTeX, Version 
beta-0.70.1-2011051918 (rev 4277) 
 \write18 enabled.

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.16  int: english/english

system   cont-new.mkiv loaded
(/usr/local/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   no texput.top
fontslatin modern fonts are not preloaded
languageslanguage en is active

*
*
! Emergency stop.

system   tex  error on line 0 in file : Emergency stop ...

empty file

* \\endinput \\end
 
!  == Fatal error occurred, no output PDF file produced!
system  | total runtime: 0.668

And yes,
$ which context
/usr/local/opt/context/tex/texmf-linux-64/bin/context

P.S. For me it is weird that you have iCore7 and uses Archlinux i686.

---
WBR, Vladimir Lomov


-- 
To ordinary folks, conversion is not always automatic.  It's something
that may or may not require explicit assistance.  See Billy Graham.  :-)
 -- Larry Wall in 199710141738.kaa22...@wall.org
___
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] Should command `\setnumber' print number in text?

2012-04-29 Thread Vladimir Lomov
Hello,
I faced with following behavior of `\setnumber' command, consider the
example:

example file=ex1.tex
\setupbodyfont[computer-modern-unicode,12pt]

\definenumber[course]
\setnumber[course]{3}

\starttext
Hello.
\stoptext
/example

Processing by context (ConTeXt  ver: 2012.04.26 22:27 MKIV  fmt:
2012.4.28  int: english/english) I get PDF with number 3 typeset on line
above Hello.

Is it expected behavior? If yes, how can I increase/set value for
number-command (counter) then?

P.S. I tried with commented `\setupbodyfont', all is ok. Is it mean that
command is deprecated?

---
WBR, Vladimir Lomov

-- 
You worry too much about your job.  Stop it.  You are not paid enough to worry.
___
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] Seems `\definedescription' do not work

2012-04-29 Thread Vladimir Lomov
Hello,

I borrow this example from wiki:
example file=ex2.tex
%\setupbodyfont[computer-modern-unicode,12pt]

\definedescription
  [Desc]
  [location=top,hang=20,
   headstyle={\bf\color[blue]},
   command=\hskip-1cm,margin=1cm]

\starttext
\startDesc{Tufte}
\input tufte
\stopDesc
\stoptext
/example

but context can't compile it:
terminal output
mtx-context | run 1: luatex 
--fmt=/usr/local/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
 
--lua=/usr/local/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
 --backend=pdf ./ex2.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2011051918 (rev 4277) 
 \write18 enabled.
(ex2.tex

ConTeXt  ver: 2012.04.26 22:27 MKIV  fmt: 2012.4.28  int: english/english

system   cont-new.mkiv loaded
(/usr/local/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   ex2.top loaded
(ex2.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/local/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/usr/local/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
! Missing } inserted.

system   tex  error on line 11 in file ex2.tex: Missing  ...

 1 %\setupbodyfont[computer-modern-unicode,12pt]
 2 
 3 \definedescription
 4   [Desc]
 5   [location=top,hang=20,
 6headstyle={\bf\color[blue]},
 7command=\hskip-1cm,margin=1cm]
 8 
 9 \starttext
10 \startDesc{Tufte}
11   \input tufte
12 \stopDesc
13 \stoptext
14 

inserted text 
}
to be read again 
   \endgroup 
\currentconstructiontext ...ionhandler \endcsname 
  \endstrut 
\144construction ... \currentconstructionsample }
  }\assignwidth {\constructi...
\dodogotopar ...andler \v!construction \endcsname 
  \BeforePar \emptytoks 
to be read again 
   \input 
l.11 \input
tufte
? 
/terminal output

Do I miss something?

---
WBR, Vladimir Lomov

-- 
The time was the 19th of May, 1780.  The place was Hartford, Connecticut.
The day has gone down in New England history as a terrible foretaste of
Judgement Day.  For at noon the skies turned from blue to grey and by
mid-afternoon had blackened over so densely that, in that religious age,
men fell on their knees and begged a final blessing before the end came.
The Connecticut House of Representatives was in session.  And, as some of
the men fell down and others clamored for an immediate adjournment, the
Speaker of the House, one Col. Davenport, came to his feet.  He silenced
them and said these words: The day of judgment is either approaching or
it is not.  If it is not, there is no cause for adjournment.  If it is, I
choose to be found doing my duty.  I wish therefore that candles may be
brought.
-- Alistair Cooke
___
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] Should command `\setnumber' print number in text?

2012-04-29 Thread Vladimir Lomov
Hello Wolfgang,

** Wolfgang Schuster [2012-04-29 09:16:38 +0200]:


 Am 29.04.2012 um 08:13 schrieb Vladimir Lomov:

 Hello,
 I faced with following behavior of `\setnumber' command, consider the
 example:

 example file=ex1.tex
 \setupbodyfont[computer-modern-unicode,12pt]

 \definenumber[course]
 \setnumber[course]{3}

 \starttext
 Hello.
 \stoptext
 /example

 Processing by context (ConTeXt  ver: 2012.04.26 22:27 MKIV  fmt:
 2012.4.28  int: english/english) I get PDF with number 3 typeset on line
 above Hello.

 Is it expected behavior? If yes, how can I increase/set value for
 number-command (counter) then?

 P.S. I tried with commented `\setupbodyfont', all is ok. Is it mean that
 command is deprecated?

 There was a change in the \setupnumber command for MkIV and you need now 
 brackets for both arguments, e.g. \setupnumber[course][3].

 Wolfgang
Thank you Wolfgang, `\setupnumber' works.

Just to clarify question (before update wiki): is `\setnumber' command
obsolete and `\setupnumber' should be used instead?

I'm also reading dev-context, some time ago there were discussion about
`\definestructure...', in message `4f737d98.5040...@wxs.nl' Hans shown
several `\let' commands, from that I thought that `\setnumber' is ok to
use with `[]{}'.

---
WBR, Vladimir Lomov

-- 
What does it take for Americans to do great things; to go to the moon, to
win wars, to dig canals linking oceans, to build railroads across a continent?
In independent thought about this question, Neil Armstrong and I concluded
that it takes a coincidence of four conditions, or in Neil's view, the
simultaneous peaking of four of the many cycles of American life.  First, a
base of technology must exist from which to do the thing to be done.  Second,
a period of national uneasiness about America's place in the scheme of human
activities must exist.  Third, some catalytic event must occur that focuses
the national attention upon the direction to proceed.  Finally, an articulate
and wise leader must sense these first three conditions and put forth with
words and action the great thing to be accomplished.  The motivation of young
Americans to do what needs to be done flows from such a coincidence of
conditions. ...  The Thomas Jeffersons, The Teddy Roosevelts, The John
Kennedys appear.  We must begin to create the tools of leadership which they,
and their young frontiersmen, will require to lead us onward and upward.
-- Dr. Harrison H. Schmidt
___
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] Seems `\definedescription' do not work

2012-04-29 Thread Vladimir Lomov
Hello Wolfgang,

** Wolfgang Schuster [2012-04-29 09:14:57 +0200]:


 Am 29.04.2012 um 08:48 schrieb Vladimir Lomov:

 Hello,

 I borrow this example from wiki:
 example file=ex2.tex
 %\setupbodyfont[computer-modern-unicode,12pt]

 \definedescription
  [Desc]
  [location=top,hang=20,
   headstyle={\bf\color[blue]},
   command=\hskip-1cm,margin=1cm]

 \starttext
 \startDesc{Tufte}
 \input tufte
 \stopDesc
 \stoptext
 /example


 The problem is \color which expects a argument for the text to be colored 
 (e.g. \color[blue]{…}) which is never the case when you put it in a style key 
 but you can use the color key to set the value.

Yes, it is true, I saw some topics about that on ML but forgot (this
example from my old code).

 \definedescription
  [description]
  [alternative=top,
   headstyle=bold,
   headcolor=blue,
   headcommand={\offset[x=-1cm]},
   margin=1cm]

Thanks, this is much cleaner solution. (Again, I already saw message
about change from `location=' to `alternative='.)

 \starttext

 \input tufte

 \startdescription{Tufte}
 \input tufte
 \stopdescription

 \stoptext

 Wolfgang

---
WBR, Vladimir Lomov

-- 
Banacek's Eighteenth Polish Proverb:
The hippo has no sting, but the wise man would rather be sat upon
by the bee.
___
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 in formulas

2012-03-15 Thread Vladimir Lomov
Hello,
** Procházka Lukáš Ing. - Pontex s. r. o. [2012-03-15 09:34:03 +0100]:

 Hello,

 what is the good way how to use footnotes in formulas?

 This code lowers the Bbb text:

 
 \starttext
   \startformula
 Aaa\footnote{Some footnote text}
 \qquad
 Bbb
   \stopformula
 \stoptext
 

 Example 2:

 
 \starttext
   \startformula
 Ccc{\footnote{Footnote C}}
 \qquad
 Aaa\footnote{Some footnote text}
 \qquad
 Bbb
   \stopformula
 \stoptext
 

 In this case, the footnote after Ccc doesn't lower next text;
 but Footnote C is not listed in the bottom of the page (?).

 So - how to add a footnote to formula scope? Or to avoid it?

Sorry, but in which book did you see footnote in mathematical formula?


 Best regards,


---
WBR, Vladimir Lomov

-- 
Consultant, n.:
[From con to defraud, dupe, swindle, or, possibly, French con
(vulgar) a person of little merit + sult elliptical form of
insult.]  A tipster disguised as an oracle, especially one who
has learned to decamp at high speed in spite of a large briefcase
and heavy wallet.
___
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] Dubious checksum mismatch message on log file

2012-02-01 Thread Vladimir Lomov
Hello,
** luigi scarso [2012-02-01 08:45:18 +0100]:

 On Wed, Feb 1, 2012 at 7:00 AM, Vladimir Lomov lomov...@gmail.com wrote:

 I specially chose that font (txr, txr.tfm and txr.vf files), it is
 distributed by txfonts package. May be you installation doesn't have
 them because I installed context suite with './first-setup.sh --modules=all'.

 Nevertheless, that 'Font ... at 600 ...' reminds me how pdftex (pdflatex
 actually) deals with tfm/mf/pk fonts (generate pk and insert them into
 pdf file).
 Even with --modules=all'
 LuaTeX warning (file rtxptmr): Font rtxptmr at 600 not found
 and
 $ pdffonts test.pdf

 name type  emb sub uni object ID
  - --- --- --- -
 Error: font resource is not a dictionary
 JFRMQG+LMRoman10-Regular CID Type 0C   yes yes yes 18  0

 It seems that this font is not a font of the suite.

Let me stess it in other words: this (Font ... not found) is not the
topic of thread. It is completely inrelated (IMHO) with vf font
problem (vf font leads to that checksum message). I took that font
because it has corresponding vf file.

The message Font ... not found is on terminal output while checksum
mismatch only in log file.

Ok, IIRC, if I want to use font with plain tex (pdftex engine) I have to
have TFM, and may be VF files, then MF source _or_ type1 font (pfb
file), if I have only type1 font, i.e. pfb+tfm[+vf] files, I must
instruct pdftex to use pfb file for corresponding tfm, this is what MAP
file do, e.g. file 'original-ams-cmr.map':
cmr10   CMR10   cmr10.pfb
(I don't remember the purpose of second column), the first is TFM
file/font, the last one is type1 file (obviously). If there isn't such
entry for a font, pk for is generated from MF source. It MF source is
missing similar message is printed.

---
WBR, Vladimir Lomov

-- 
War isn't a good life, but it's life.
-- Kirk, A Private Little War, stardate 4211.8
___
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] Dubious checksum mismatch message on log file

2012-02-01 Thread Vladimir Lomov
Hello,
** luigi scarso [2012-02-01 10:54:04 +0100]:

 On Wed, Feb 1, 2012 at 10:21 AM, Vladimir Lomov lomov...@gmail.com wrote:
 Hello,
 ** luigi scarso [2012-02-01 08:45:18 +0100]:

 On Wed, Feb 1, 2012 at 7:00 AM, Vladimir Lomov lomov...@gmail.com wrote:

 I specially chose that font (txr, txr.tfm and txr.vf files), it is
 distributed by txfonts package. May be you installation doesn't have
 them because I installed context suite with './first-setup.sh 
 --modules=all'.

 Nevertheless, that 'Font ... at 600 ...' reminds me how pdftex (pdflatex
 actually) deals with tfm/mf/pk fonts (generate pk and insert them into
 pdf file).
 Even with --modules=all'
 LuaTeX warning (file rtxptmr): Font rtxptmr at 600 not found
 and
 $ pdffonts test.pdf

 name                                 type              emb sub uni object ID
  - --- --- --- -
 Error: font resource is not a dictionary
 JFRMQG+LMRoman10-Regular             CID Type 0C       yes yes yes     18  0

 It seems that this font is not a font of the suite.

 Let me stess it in other words: this (Font ... not found) is not the
 topic of thread. It is completely inrelated (IMHO) with vf font
 problem (vf font leads to that checksum message). I took that font
 because it has corresponding vf file.
ok it was just to have as much data as possible.

 We have

 $vftovp txr.vf
 (VTITLE )
 (FAMILY TXR)
 (FACE F MRR)
 (CODINGSCHEME TEX TEXT)
 (DESIGNSIZE R 10.0)
 (COMMENT DESIGNSIZE IS IN POINTS)
 (COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
 (CHECKSUM O 32212676346)

 while from  luatex source

 source/texk/web2c/luatexdir/font/vfovf.w:
 @ process a local font in \.{VF} file
 @c
 static internal_font_number
 vf_def_font(internal_font_number f, unsigned char *vf_buffer, int *vf_cr)
 {
 :
 unsigned long checksum;
 cs.b0 = vf_buffer[(*vf_cr)];
 cs.b1 = vf_buffer[(*vf_cr) + 1];
 cs.b2 = vf_buffer[(*vf_cr) + 2];
 cs.b3 = vf_buffer[(*vf_cr) + 3];
 (*vf_cr) += 4;
 checksum = (unsigned)
 (cs.b0 * 256 * 256 * 256 + cs.b1 * 256 * 256 + cs.b2 * 256 + cs.b3);
 :

 if (checksum != 0  font_checksum(k) != 0
  checksum != font_checksum(k))
 vf_local_font_warning(f, k, checksum mismatch, (int) checksum,
   (int) font_checksum(k));
 if (ds != font_dsize(k))
 vf_local_font_warning(f, k, design size mismatch, ds,
   font_dsize(k));

 It's not related to MKIV but to luatex, and it's a warning.
 It doesn't even matter to have --modules==all, this vf file  in the
 standard standalone.
 Of course you must have the pfb/afm or otf or ttf file, as usual,
 otherwise the pdf is wrong

I was not sure, that why I began this thread. I started with latex example,
then strip it down to plain tex one and after that came to context
minimal example.

AFAIU, context suite doesn't have plain pdftex and luatex formats,
therefore I compile minimal plain tex example with TeX Live 2011, and
luatex doesn't print such message though it reads vf file.

The problem indeed may be it luatex and how it works with vf fonts, but
as I said, I'm not sure (don't know very well either plain tex or context).

P.S. Unrelated: seems I completely lost, I read web sources, the
quoted extract from luatex source and I don't understand how this
number '32212676346' can be presented as

cs.b0 * 256 * 256 * 256 + cs.b1 * 256 * 256 + cs.b2 * 256 + cs.b3

If I don't lose my math skills the '32212676346' is
32212676346=7·256^{4}+128·256^{3}+6·256^{2}+110·256^{1}+250·256^{0}

---
WBR, Vladimir Lomov

-- 
If only God would give me some clear sign!  Like making a large deposit
in my name at a Swiss bank.
-- Woody Allen, Without Feathers
___
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] Dubious checksum mismatch message on log file

2012-02-01 Thread Vladimir Lomov
Hello,
** Hans Hagen [2012-02-01 15:22:58 +0100]:

 On 1-2-2012 15:15, Ulrike Fischer wrote:
 Am Wed, 1 Feb 2012 10:54:04 +0100 schrieb luigi scarso:

It's not related to MKIV but to luatex.

I think it is related to MKIV (or more precisely to the fontloader).

It is a bit difficult to demonstrate it with context (how to you use
luatex without mkiv there?) but latex (or plain) it is quite easy:

The followings examples load pplr7t.vf.  Both give the checksum
mismatch message in the log if and only if the lua-fontloader
luaotfload it also loaded:

%LaTeX
\documentclass{article}
\usepackage{luaotfload}
\begin{document}
\font\test=pplr7t \test abc
\end{document}

%plain
\input luaotfload.sty
\font\test=pplr7t \test abc
\bye

So the code from luaotfload (which is based on the context
fontloader code) changes a checksum (either in the vf or in the
tfm-information) and so the check in the luatex engines fails.

(Imho it is only a minor problem, vf-fonts are not much used with
luatex).

 Afaik nothing is done with a checksum. There is a checksum field in
 the loaded tfm but I don't think one has to be passed to luatex.
 Maybe one should be passed when a regular tfm file is used but even
 then, loading a vf file is independent.

 So, it's best to just ignore that message.

Correct me if I'm wrong, but this how I understand TFM font and currect
state of tex engines (actually pdftex, xetex and luatex):
1. to use any font in tex one need a TFM file (file name = fontname.TFM),
that file actually contain informationabout font, not how exatly glyphs
are constructed;
2. when [original] tex read a document file it searches for TFM and VF
files, read them and write DVI file with information about that files;
3. after that user can send file to printer or publisher to print it on
printer. As I understand the purpose of checksum was to be sure that
publisher or printer would use exatly the same fonts as user. If user
converts DVI file to PS/PDF one on his/she computer using dvips or
dvipdfm* the checksum mostly useless, assuming files are not corrupted.

Nowadays pdftex, xetex and luatex are widely used and most time users
generate PDF files on the same computer they write documents, send PDF
files which have they own mechanism to check font consistency.

But still there are [plenty] DVI files around, as well as luatex engine
might generate DVI file. The convertion to PS/PDF is performed by
dvips/dvipdfm* programs, that's ok. But what about luatex with DVI
output?

My conclusion:
1. if PDF output is only interesting then it is Ok, ignore that message,
because font information is already in PDF and PDF programs should deal
with it;
2. if DVI output is concerned then luatex _must_ be consistent with
pdftex (also can write DVI files), which, imho (don't check), takes care
about both TFM and VF checksums.

---
WBR, Vladimir Lomov

-- 
The happiest time of a person's life is after his first divorce.
-- J.K. Galbraith 
___
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] Dubious checksum mismatch message on log file

2012-02-01 Thread Vladimir Lomov
Hello,
** luigi scarso [2012-02-01 15:04:07 +0100]:
[...]

 I was not sure, that why I began this thread. I started with latex example,
 then strip it down to plain tex one and after that came to context
 minimal example.
 it's also in pdftex: see
 function vf_def_font
 in
 src/texk/web2c/pdftexdir/pdftex.web

Will look in it.

 AFAIU, context suite doesn't have plain pdftex and luatex formats,
 therefore I compile minimal plain tex example with TeX Live 2011, and
 luatex doesn't print such message though it reads vf file.
 Hm, have a look at
 tex/texmf-context/tex/generic/context/luatex

In my installation this directory doesn't have fmt files. In any case I
will look in it.

 The problem indeed may be it luatex and how it works with vf fonts, but
 as I said, I'm not sure (don't know very well either plain tex or context).

 P.S. Unrelated: seems I completely lost, I read web sources, the
 quoted extract from luatex source and I don't understand how this
 number '32212676346' can be presented as

 cs.b0 * 256 * 256 * 256 + cs.b1 * 256 * 256 + cs.b2 * 256 + cs.b3

 If I don't lose my math skills the '32212676346' is
 32212676346=7·256^{4}+128·256^{3}+6·256^{2}+110·256^{1}+250·256^{0}
 IIRC, 32212676346 should be the checksum stored inside the file, ie
 the font_checksum.

Yes, that's right, but I forgot that this is octal number, therefore
032212676346=3526065382=210·256^{3}+43·256^{2}+124·256^{1}+230·256^{0},
so 210,43,124,230 are written in file as D2, 2B, 7C, E6 (which I found
in VF file :).

---
WBR, Vladimir Lomov

-- 
The molars, I'm sure, will be all right, the molars can take care of
themselves, the old man said, no longer to me.  But what will become 
of the bicuspids?
-- The Old Man and his Bridge
___
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] Dubious checksum mismatch message on log file

2012-01-31 Thread Vladimir Lomov
Hello,
please consider the following example:
example file=ex8.tex
\starttext

\font\test=txr \test abs

\stoptext
/example

I process this document with context (context --version - 2012.01.25)
nothing suspecious in terminal output but in log file I see checksum mismatch,
terminal
$ grep 'checksum' ex8.log
checksum mismatch in font txr.vf ignored 
/terminal

Simple plain tex file
example file=ex9.tex
\font\test=txr \test abs
\bye
/example

processed by luatex and pdftex engines (both from TeX Live 2011, I don't know
how to generate formats for them in context suite) doesn't give same message.

Is it a bug in font system of context?

P.S. There is a thread on tex-live mailing list about checksum mismatch,
I took a little investigation that reveals the source of problem:
'luaotfload', adaptation of context font system for latex world. As you
can see from ex8.tex, current context have the same behaviour. I'm not
fully sure if it is save to ignore this message (I read briefly about vf
fonts here: http://www.tex.ac.uk/tex-archive/help/virtual-fonts.knuth)
but as both pdftex and luatex engines give nothing on plain example I
want to report about this issue.

--
WBR, Vladimir Lomov

-- 
That's the thing about people who think they hate computers.  What they
really hate is lousy programmers.
-- Larry Niven and Jerry Pournelle in Oath of Fealty
___
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] Dubious checksum mismatch message on log file

2012-01-31 Thread Vladimir Lomov
Hello,
** luigi scarso [2012-02-01 02:37:20 +0100]:

 On Wed, Feb 1, 2012 at 2:09 AM, Vladimir Lomov lomov...@gmail.com wrote:

 Hello,
 please consider the following example:
 example file=ex8.tex
 \starttext

 \font\test=txr \test abs

 \stoptext
 /example

 I process this document with context (context --version - 2012.01.25)
 nothing suspecious in terminal output but in log file I see checksum
 mismatch,
 terminal
 $ grep 'checksum' ex8.log
 checksum mismatch in font txr.vf ignored
 /terminal

 Simple plain tex file
 example file=ex9.tex
 \font\test=txr \test abs
 \bye
 /example

 processed by luatex and pdftex engines (both from TeX Live 2011, I don't
 know
 how to generate formats for them in context suite) doesn't give same
 message.

 Is it a bug in font system of context?

 My standalone also says
 LuaTeX warning (file rtxptmr): Font rtxptmr at 600 not found
 i.e I have not the font.
 Maybe the tl2011 has this font ?

I specially chose that font (txr, txr.tfm and txr.vf files), it is
distributed by txfonts package. May be you installation doesn't have
them because I installed context suite with './first-setup.sh --modules=all'.

Nevertheless, that 'Font ... at 600 ...' reminds me how pdftex (pdflatex
actually) deals with tfm/mf/pk fonts (generate pk and insert them into
pdf file).

---
WBR, Vladimir Lomov

-- 
Never eat anything bigger than your head.
___
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] layout space between paper and text

2012-01-17 Thread Vladimir Lomov
Hello,
** Pavel Dohnal [2012-01-17 12:38:11 +0100]:

 Hello,
 I want to have 10mm space between rim of the paper and beginig of the text.
 This is my layout:

 \definelayout[normal][
 bottompace=0mm,
  footerheight=6mm,
 footerdistance=0mm,
 bottomdistance=0mm,
  bottomspace=0mm,
 topdistance=0mm,
 topspace=0mm,
  headerheight=60mm,
 headerdistance=0mm,
 leftedgewidth=0mm,
  leftmargin=10mm,
 leftedgedistance=0mm,
 leftmargindistance=0mm,
  backspace=10mm,
 rightedge=0mm,
 rightmargin=10mm,
  cutspace=0mm,
 rightmargindistance=0mm,
 rightedgedistance=0mm,
  width=277mm,
 height=210mm
  ]
 \setuplayout[normal]
 After printing is space in left 10mm, but space between top rim of the
 paper and top text is 14mm. Why is that? How to setup my layout to have
 exactly 10 mm both in top and in left?
I'm not sure what precisely you want to achive but take a look on this
example
example file=ex.tex
\setuplayout
  [backspace=2.1cm,
   cutspace=2.1cm,
   width=middle,
   topspace=2.97cm,
   bottomspace=2.97cm,
   height=middle]

\showframe

\starttext

\input tufte

\showlayout

\stoptext

/example
(I don't remember from where I took it) and read wiki:
http://wiki.contextgarden.net/Layout

---
WBR, Vladimir Lomov

-- 
At the source of every error which is blamed on the computer you will find
at least two human errors, including the error of blaming it on the computer.
___
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] Questions on \definition

2012-01-17 Thread Vladimir Lomov
Hello,
** Kip Warner [2012-01-17 17:47:21 -0800]:

 On Tue, 2012-01-17 at 13:38 +0900, Vladimir Lomov wrote:

 Hey Vlad.

Actually Vladimir, Vlad is usually used as short for Vladislav.

 (not an expert, just read command reference)
 (1) What is the difference between \definedescription and
 \setupdescriptions?
 the first should define new description, the second change style of
 already defined description.

 Ah, so \setupdescriptions inherits the default values of
 \definedescription?

I suppose no, '\define...', eh-m, defines a command while '\setup...', eh-m,
sets up its 'style'. When one defines a command one could set its
custom 'style' instead of default.

Consider the following example:
example file=ex1.tex
\starttext

\definedescription[definition]

\definition{Hi} This is first definition.

\setupdescriptions[definition][headstyle=italic,color=blue]

\definition{Hi2} This is second definition.

\stoptext
/example

The first 'definition' would be:
[bold] TEXT
after '\setup...' it would be
[italic] BLUE COLORTEXT/BLUE COLOR

 (2) What is the difference between \definition and \description?
 This example
 example
 \starttext

 \definition{Hi}

 \stoptext
 /example
 gives error: Undefined control sequence  Where this command is
 defined?

 In section 10.2 of the ConTeXt User Manual (p222 of the pdf). Maybe it
 is a type:

 ...
 An example of the definition is:
 \definedescription[definition][location=top,headstyle=bold]
 search
 \definition{icon}
 ...

 Or maybe you mean \description which is on the same page.

May be because this is an example? I would say that ConTeX User Manual
shows different commands from context itself and how one could define
custom commands. The '\definition' is one them.

 (3) How do I change the colour of the definition header? I tried the
 following, but it did not work:

 \setuphead
   [definition]
   [color=colour_head]

 If I were you I would do that:
 example
 \starttext

 \definedescription[definition][headcolor=colour_head]

 \definition{Hi}. This is definition.
 \setupdescriptions[definition][headcolor=colour_head2]

 \definition{Hi2}. This is second definition.

 \stoptext
 /example

 Thank you. That makes sense now. But why does \setuphead[definition]
 method not work?

I don't know but reading manuals (context and latex ones), wiki and etc
somehow convince me that 'head' relates with section heading (styling),
for the rest there are '\setup...' commands and 'headstyle' key (not
always, of course), may be that's why I always consult reference on wiki
and sometimes source code.

---
WBR, Vladimir Lomov

-- 
The only way to learn a new programming language is by writing programs in it.
- Brian Kernighan
___
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] Referencing a \startdefinition

2012-01-17 Thread Vladimir Lomov
Hello,
** Kip Warner [2012-01-17 18:07:18 -0800]:

 Hey list,

 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?
I could be wrong but from 'strc-des.mkiv'

%D TODO: commandhandler
%D TODO: \startxxx[reference=...]

So, answer could not yet implemented.

---
WBR, Vladimir Lomov

-- 
I distrust a man who says when.  If he's got to be careful not to drink
too much, it's because he's not to be trusted when he does.
-- Sidney Greenstreet, The Maltese Falcon
___
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] Wrong placement parameter (Was: two problems with natural tables)

2012-01-17 Thread Vladimir Lomov
Hello,
** Brian Landy [2012-01-17 23:19:41 -0500]:

 Hi, sorry to dredge up such an old thread, but I recently updated from
 a Feb 2010 vintage minimals to current (first to 1/12/2012, then to
 today 1/17).  I ran into problems splitting a table within a
 splitfloat.  I search the list archives and came up with this example,
 which is failing for me.
Don't hi-jack old thread with unrelated question, always start new topic
on new problem.

 \starttext
 \placetable[split]{Test}
 {\bTABLE[split=yes]
 \dorecurse{60}{
 \bTR \bTD hello \eTD \eTR
 }
 \eTABLE}
 \stoptext

 I get this error:

 ! Undefined control sequence.

 system   tex  error on line 7 in file test.tex: Undefined control 
 sequence ...

 1 \starttext
 2 \placetable[split]{Test}
 3 {\bTABLE[split=yes]
 4 \dorecurse{60}{
 5 \bTR \bTD hello \eTD \eTR
 6 }
 7   \eTABLE}
 8 \stoptext
 9 

 argument \c!suffixstopper 

 \floatcaptionparameter ...\currentfloatcaption :#1
   \endcsname 
 \??floatcaption...
 argument ...mber )}\thecurrentfloatnumbersuffix 
   \dostoptagged 
 \dostarttagg...
 \flushbothlabelclass #1#2#3-#1#3
  #2
 \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
   \dostoptagged \endgroup 
 \thecurrentfloatnumber ...rrentfloatnumbersuffix }
   \fi \fi \fi 
 ...
 l.7 \eTABLE
}


 Any ideas?

According to Command reference on wiki, placetable doesn't have 'split'
parameter, see http://wiki.contextgarden.net/Reference/en/placefloat

Just remove 'split' and your example will be compiled.


---
WBR, Vladimir Lomov

-- 
Quality control, n.:
Assuring that the quality of a product does not get out of hand
and add to the cost of its manufacture or design.
___
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] Questions on \definition

2012-01-16 Thread Vladimir Lomov
Hello,
** Kip Warner [2012-01-16 19:52:39 -0800]:

 Hey list,

 A couple of questions concerning \definition:
(not an expert, just read command reference)
 (1) What is the difference between \definedescription and
 \setupdescriptions?
the first should define new description, the second change style of
already defined description.

 (2) What is the difference between \definition and \description?
This example
example
\starttext

\definition{Hi}

\stoptext
/example
gives error: Undefined control sequence  Where this command is
defined?

 (3) How do I change the colour of the definition header? I tried the
 following, but it did not work:

 \setuphead
   [definition]
   [color=colour_head]

If I were you I would do that:
example
\starttext

\definedescription[definition][headcolor=colour_head]

\definition{Hi}. This is definition.

\setupdescriptions[definition][headcolor=colour_head2]

\definition{Hi2}. This is second definition.

\stoptext
/example

---
WBR, Vladimir Lomov

-- 
Because the wine remembers.
___
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] Hyphenation in Natural Table

2011-12-28 Thread Vladimir Lomov
Hello,

I want to clarify the topic: is it possible to enable hyphenation in
Natural Table? Most of full-text examples in enattab.pdf are not
hyphenated as in my (not minimal) example.

example file=table-hyphenation-test.tex
\starttext

\input tufte

\bTABLE
\bTR
  \bTD Topic\eTD \bTD Text\eTD
\eTR
\bTR
  \bTD Foo\crlf Bar\eTD
  \bTD \input tufte \eTD
\eTR
\bTR
  \bTD BAR \crlf FOO\eTD
  \bTD
  \startitemize
  \item \input tufte
  \item \input tufte
  \stopitemize
  \eTD
\eTR
\eTABLE

\stoptext
/example

P.S. In my real document I use Russian (\mainlanguage[ru]) and
enumeration in table, with hyphenated text document would look more
fancy.

---
WBR, Vladimir Lomov

-- 
Your files are now being encrypted and thrown into the bit bucket.
EOF
___
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] Hyphenation in Natural Table

2011-12-28 Thread Vladimir Lomov
Hello,
** Andreas Harder [2011-12-29 02:29:26 +0100]:

 Hi,

 try it with:

 \starttext
 \bTABLE[align=normal]
 \bTR
  \bTD Topic\eTD \bTD Text\eTD
 \eTR
 \bTR
  \bTD Foo\crlf Bar\eTD
  \bTD \input tufte \eTD
 \eTR
 \bTR
  \bTD BAR \crlf FOO\eTD
  \bTD
  \startitemize
  \item \input tufte
  \item \input tufte
  \stopitemize
  \eTD
 \eTR
 \eTABLE

 \stoptext

 Greeting
   Andreas

Thank you Andreas.

(I have looked for something like 'hyphenation' on wiki and source w/o
luck, now I understand why :).

---
WBR, Vladimir Lomov

-- 
  Goes (Went) over like a lead balloon.
___
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] Undefined control sequence

2011-12-19 Thread Vladimir Lomov
Hello,
** Kip Warner [2011-12-18 20:48:11 -0800]:

 On Sat, 2011-12-17 at 11:56 +0900, Vladimir Lomov wrote:
 system   cont-new.mkiv loaded
 (/usr/share/texmf/tex/context/base/cont-new.mkiv
 system   beware: some patches loaded from cont-new.mkiv
 )
 but this and other paths are odd, this is not context-suite (aka context
 minimal). Are you sure that you use correct version? I suspect that you
 have Ubuntu with TL installed (therefore /usr/share/...), and may be
 context suite somewhere.

 I am using Ubuntu, and I'm not sure what TL is. I think that might mean
 Texlive,
Yes
 which I don't know much about.
it doesn't matter.

 Please provide more information:
 - either you use context suite (which version, where it is installed,
 how you set up PATH,...),
 - or you use PPA,
 - or TL with context from Ubuntu package repository.

 I am using context from Adam's PPA, version 2:2011.11.29~maverick1:
 https://launchpad.net/~reviczky/+archive/context-daily
As I thought, (all those /usr/share... paths) but this version differs
from that your log tells (2011.11 and 2011.12). I would recommend to use
context suite (aka context minimal), see context garden. For example,
you could install CS (= context suite) either under $HOME/context or
under /usr/local/opt or under /opt (i.e. to the location where you have
permission to write).

 I also apparently have a shitload of texlive* packages installed. They
 all look like they are official Ubuntu packages. Should I keep them?
As simple advice: don't touch them (this is another story). You could
use CS independently from these packages.

---
WBR, Vladimir Lomov

-- 
Catproof is an oxymoron, childproof nearly so.
___
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] Undefined control sequence

2011-12-16 Thread Vladimir Lomov
Hello,
** Kip Warner [2011-12-16 16:41:14 -0800]:

 Hey folks,

 As of today's nightly build, my typesetting won't compile anymore. The
 following is the console output:
My reply won't help you much but this is strange:

 $ context Source/Handbook.tex --result=Avaneya Project Crew
 Handbook.pdf --purgeresult

 resolvers   | resolving | loading configuration file
 'selfautodir:/share/texmf/web2c/contextcnf.lua'
 resolvers   | resolving | loading configuration file
 '/usr/share/texmf/web2c/contextcnf.lua'
 mtx-context | run 1: luatex
 --fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
  
 --lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
  --backend=pdf Source/Handbook.tex \stoptext
 This is LuaTeX, Version beta-0.71.0-2011101421 (rev 4358) 
  \write18 enabled.

 resolversresolving  loading configuration file
 '/usr/share/texmf/web2c/contextcnf.lua'
 (Source/Handbook.tex

 ConTeXt  ver: 2011.12.16 17:07 MKIV  fmt: 2011.12.16  int:
 english/english
This version seems Ok,

 system   cont-new.mkiv loaded
 (/usr/share/texmf/tex/context/base/cont-new.mkiv
 system   beware: some patches loaded from cont-new.mkiv
 )
but this and other paths are odd, this is not context-suite (aka context
minimal). Are you sure that you use correct version? I suspect that you
have Ubuntu with TL installed (therefore /usr/share/...), and may be
context suite somewhere.
 system   Handbook.top loaded
 (Handbook.top)
 fontslatin modern fonts are not preloaded
 languageslanguage en is active
 {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
 fontspreloading latin modern fonts (second stage)
 (/usr/share/texmf/tex/context/base/type-siz.mkiv)
 (/usr/share/texmf/tex/context/base/type-otf.mkiv)
 filesreadfile  asked name: 'loc', not found
 {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
 fontsdefining  forced type afm of stmary10 not found
 fontsdefining  font with asked name 'stmary10' is not
 found using lookup 'file'
 fontsvirtual math  loading font LMMath7-Regular subfont 9
 with name stmary10.afm at 458752 is skipped, not found
 fontsdefining  forced type afm of stmary10 not found
 fontsdefining  font with asked name 'stmary10' is not
 found using lookup 'file'
 fontsvirtual math  loading font LMMath9-Regular subfont 9
 with name stmary10.afm at 589824 is skipped, not found
 fontsdefining  forced type afm of stmary10 not found
 fontsdefining  font with asked name 'stmary10' is not
 found using lookup 'file'
 fontsvirtual math  loading font LMMath12-Regular subfont 9
 with name stmary10.afm at 786432 is skipped, not found
 fontsfallback modern rm 12pt is loaded
 (Source/Environment.tex
 resolversmodules  loaded: 'units'
 (/usr/share/texmf/tex/context/base/m-units.mkiv
 + /usr/share/texmf/tex/context/base/x-mathml.lua)
 resolversmodules  loaded: 'simplefonts'
 (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex)
 ! Undefined control sequence.
 l.136 \setmainfont
   [Ubuntu]
 ?

 I'm not sure why it is bailing now, since I still have the same Ubuntu
 font installed (haven't changed that). I also have
 \usemodule[simplefonts] specified in the environment file, and nothing
 really has changed other than the version of ConTeXt.

Please provide more information:
- either you use context suite (which version, where it is installed,
how you set up PATH,...),
- or you use PPA,
- or TL with context from Ubuntu package repository.

---
WBR, Vladimir Lomov

-- 
QOTD:
Do you smell something burning or is it me?
-- Joan of Arc
___
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 numbering pro page

2011-09-30 Thread Vladimir Lomov
Hello,
** Cecil Westerhof [2011-09-30 15:21:54 +0200]:

 A footnote is placed (at least the way I use it) on the same page as it is
 referred. But the numbering of the footnotes is continues. How can I make
 the footnote numbering reset to one at every page?
Does
\setupfootnotes[way=bypage]
work?

P.S. I found this on wiki.contextgarden.net. If this doesn't work wiki
should be updated.

---
WBR, Vladimir Lomov

-- 
Be sociable. Speak to the person next to you in the unemployment line tomorrow.
___
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] [PATCH] Small improvement for 'setuptex'

2011-09-23 Thread Vladimir Lomov
Hello,
** Mojca Miklavec [2011-09-23 09:38:40 +0200]:

 On Thu, Sep 22, 2011 at 15:46, Vladimir Lomov lomov...@gmail.com wrote:
 Hello.

 I'm using standard 'setuptex' file to set apropriate variables for my
 shell. I'd like to suggest small improvement for this file. See
 attached patch.

 P.S. The real use of this file is in my shell initialization scripts.
 It is sourced in specific way so I faced a situation when 'export' is
 required. Besides that unsetting unused variables also good habit to
 interactive session.

 Done, thanks.

 But I also unset TEXMFOS.
I wasn't sure about that variable. Quick search (grep -r 'TEXMFOS'
CONTEXT_MINIMAL/*) shows me a lot places where that variable is used.

 Out of curiosity: why/when do you need export?
In short: for shell session set up.

IMHO, this is not right place to disscuss shell sessions, but I use `setuptex'
for tmux window initialization (see here:
https://github.com/vp1981/scripts/tree/master/tmux/scripts, files
smoon{,3,4}, though I didn't test with export yet).

---
WBR, Vladimir Lomov

-- 
It is wise to keep in mind that neither success nor failure is ever final.
-- Roger Babson
___
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] [PATCH] Small improvement for 'setuptex'

2011-09-22 Thread Vladimir Lomov
Hello.

I'm using standard 'setuptex' file to set apropriate variables for my
shell. I'd like to suggest small improvement for this file. See
attached patch.

P.S. The real use of this file is in my shell initialization scripts.
It is sourced in specific way so I faced a situation when 'export' is
required. Besides that unsetting unused variables also good habit to
interactive session.

---
WBR, Vladimir Lomov

-- 
Violence is molding.
--- setuptex.orig   2011-09-22 22:36:37.0 +0900
+++ setuptex2011-09-22 22:38:12.0 +0900
@@ -148,13 +148,16 @@
fi
 
 # ConTeXt binaries have to be added to PATH
-TEXMFOS=$TEXROOT/texmf-$platform
-PATH=$TEXMFOS/bin:$PATH
+export TEXMFOS=$TEXROOT/texmf-$platform
+export PATH=$TEXMFOS/bin:$PATH
 # TODO: we could set OSFONTDIR on Mac for example
 
 # not sure why this would be needed
 # export CTXMINIMAL=yes
 
+# unset variables that won't be used lately
+unset platform cpu system OWNPATH SCRIPTPATH ARGPATH
+
 else
echo provide a proper tex root (like '. setuptex /something/tex') ;
 fi
___
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] Line length limitation of typing block?

2011-08-16 Thread Vladimir Lomov
Hi.

Please consider the following two examples:

file name=exa-feat1.tex
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]

\starttext

This is an example with \quotation{long} verbatim text.
Why context fails to compile the file? Is there a method to process this file?

\startEXAMPLE
This is a short verbatim line

This this this this this this very very very very very very long long long long 
long long line line line line line line
\stoptext

\stoptext
/file

file name=exa-feat2.tex
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]

\starttext

This is an example with \quotation{long} verbatim text.
The version without buffer fails.

\startbuffer[ex1]
This is a short verbatim line

This this this this this this very very very very very very long long long long 
long long line line line line line line
\stopbuffer

\startEXAMPLE
/BTEX\getbuffer[ex1]/ETEX
\stopEXAMPLE

\stoptext
/file

context (mkiv) fails to compile first file (error:
output name=exa-feat1.tex
Runaway argument?
This this this this this this very ve\ETC.
! File ended while scanning use of \dododowithbuffer.

system   tex  error on line 0 in file : File ended while
scanning use of \dododowithbuffer ...

empty file

inserted text 
\par 
* ./exa-feat1.tex 
\stoptext
?
/output
)

Seems that there is a limitation on line length in typing block, then
how to process a file with such line?

The second example compiles well but the long is splitted. How to avoid
this? (Adding ',space=fixed' to '\definetyping' doesn't help.)


P.S. Sorry two questions in one topic.

---
TIA, Vladimir Lomov

-- 
The wages of sin are death; but after they're done taking out taxes,
it's just a tired feeling:
___
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] DTD or similar for export file?

2011-08-16 Thread Vladimir Lomov
Hi.

I'm playing with 'export' and wonder is there 'official' DTD or
something similar for 'export' file?



P.S. I'm trying to figure out how to write notes using context and
export them into (x)html. Currently I'm happy with default xhtml
produced by context but want to get 'real' xhtml.


---
TIA, Vladimir Lomov

-- 
What a misfortune to be a woman!  And yet, the worst misfortune is not to
understand what a misfortune it is.
-- Kierkegaard, 1813-1855.
___
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] Line length limitation of typing block?

2011-08-16 Thread Vladimir Lomov
** Wolfgang Schuster [2011-08-16 12:07:22 +0200]:


 Am 16.08.2011 um 12:00 schrieb Vladimir Lomov:

 Hi.

 Please consider the following two examples:

 [...]

 context (mkiv) fails to compile first file (error:

 You forgot \stopEXAMPLE.
Sigh, I overlooked it (acutally my vim setup uses autocompletion and it
autocompleted wrong command so I even didn't check whole example).

 Seems that there is a limitation on line length in typing block, then
 how to process a file with such line?

 The second example compiles well but the long is splitted. How to avoid
 this? (Adding ',space=fixed' to '\definetyping' doesn't help.)

 Use \typebuffer[ex1].
Thank you, this rises another question...

---
WBR, Vladimir Lomov

-- 
More are taken in by hope than by cunning.
-- Vauvenargues
___
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 prevent line split in typing block when using custom command?

2011-08-16 Thread Vladimir Lomov
Hi.

Consider the following two example files:

- 8 

file name=exa-feat1.tex
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]

\starttext

This is an example with \quotation{long} verbatim text.
Why context complians? Is there a method to process this file?

\startEXAMPLE
This is a short verbatim line

This this this this this this very very very very very very long long long long 
long long line line line line line line
\stopEXAMPLE

\stoptext
/file

- 8 

file name=exa-feat3.tex
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]
\definestartstop[important][style=bold]

\starttext

This is an example with \quotation{long} verbatim text.
Why context fail to compile this example? Is there a method to process it?

\startEXAMPLE
This is a short verbatim line

This this this this this this very very very very very very 
/BTEX\important{long long long long}/ETEX long long line line line line line 
line
\stopEXAMPLE

\stoptext
/file

- 8 


In first case the long line is not splitted, in second case the line is
splitted. How to prevent line splitting?


---
TIA, Vladimir Lomov

-- 
Q:  How many surrealists does it take to change a light bulb?
A:  Two, one to hold the giraffe, and the other to fill the bathtub
with brightly colored machine tools.

[Surrealist jokes just aren't my cup of fur.  Ed.]
___
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] Missing font switch in 'export=yes'

2011-08-15 Thread Vladimir Lomov
Hi.

Consider the following example:

file name=feat1.tex
\setupbackend[export=yes]

\starttext

\definetyping[EXAMPLE][escape=yes]

This is a small example.

See the backend output (export file). How to put a word in the example between 
tags?

\startEXAMPLE
Here we go /BTEX\bold{AGAIN}/ETEX
\stopEXAMPLE

\stoptext
/file

The 'AGAIN' in PDF file created by 'context' is bold but in 'feat1.export' file 
the word isn't placed between any tag.

Should I use some special command in order to put 'AGAIN' between apropriate 
tags?

-- 
Bradley's Bromide:
If computers get too powerful, we can organize
them into a committee -- that will do them in.
___
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] Missing font switch in 'export=yes'

2011-08-15 Thread Vladimir Lomov
** Aditya Mahajan [2011-08-15 11:27:14 -0400]:

 On Mon, 15 Aug 2011, Hans Hagen wrote:
 
On 15-8-2011 11:40, Vladimir Lomov wrote:
Hi.

Consider the following example:

file name=feat1.tex
\setupbackend[export=yes]

\starttext

\definetyping[EXAMPLE][escape=yes]

This is a small example.

See the backend output (export file). How to put a word in the
example between tags?

\startEXAMPLE
Here we go /BTEX\bold{AGAIN}/ETEX
\stopEXAMPLE

\stoptext
/file

The 'AGAIN' in PDF file created by 'context' is bold but in
'feat1.export' file the word isn't placed between any tag.

Should I use some special command in order to put 'AGAIN'
between apropriate tags?


\definestartstop[important][style=bold]

\important{...}
 
 Or, if you don't need ths start-stop macros:
 
 \definehighlight[important][style=bold]
 
 Aditya

Thank you Hans and Aditya. Both examples work as expected.

---
WBR, Vladimir Lomov

-- 
There is no doubt that my lawyer is honest.  For example, when he
filed his income tax return last year, he declared half of his salary
as 'unearned income.'
-- Michael Lara
___
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] Trying MPtoPDF!

2011-01-10 Thread Vladimir Lomov
** Verhaag, G.C.H.M. [2011-01-10 10:35:32 +0100]:

 Vladimir Lomov wrote:

** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:


Hi,

[...]


This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.

This: (TeX Live 2010) contradicts with that:

While trying to get some MetaPost plots converted to PDF, with the
latest ConTeXt minimals installation (MkIV) on my Linux box, things
happen which I don't understand, sorry!


[...]

Do I need to install other tools to get it working?

I'm not sure. But before you have to be sure that you actually use
context minimals.

Suppose, that you have TeX Live 2010 installed here:
/usr/local/texlive/2010
and context minimals installed here:
/usr/local/opt/context

Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
do
$ . /usr/local/opt/context/tex/setuptex
and _after_ that run
$ mtxrun ...

If you still get an error something is really broken.

 Hi,

 No I haven't installed TeXLive2010, only ConTeXt minimals!
Sorry, I wasn't aware that pdftex from context minimal pretends to be
from TL 2010 (or this is intentionaly?).

I tried
$ mptopdf graph1_mp.mp
and saw only file name echoed.

The 'mptopdf' script contains
mtxrun --script base $@

Sorry for noise.

---
WBR, Vladimir Lomov

-- 
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence.
-- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5
___
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] Trying MPtoPDF!

2011-01-08 Thread Vladimir Lomov
** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:

 Hi,
[...]

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
This: (TeX Live 2010) contradicts with that:
 While trying to get some MetaPost plots converted to PDF, with the
 latest ConTeXt minimals installation (MkIV) on my Linux box, things
 happen which I don't understand, sorry!

[...]
 Do I need to install other tools to get it working?
I'm not sure. But before you have to be sure that you actually use
context minimals.

Suppose, that you have TeX Live 2010 installed here:
/usr/local/texlive/2010
and context minimals installed here:
/usr/local/opt/context

Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
do
$ . /usr/local/opt/context/tex/setuptex
and _after_ that run
$ mtxrun ...

If you still get an error something is really broken.

---
WBR, Vladimir Lomov

-- 
It is enough to make one sympathize with a tyrant for the determination
of his courtiers to deceive him for their own personal ends...
-- Russell Baker and Charles Peters
___
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 font from a specified location

2010-12-23 Thread Vladimir Lomov
** Mojca Miklavec [2010-12-23 19:53:14 +0100]:

 Dear list,

 I have a bunch of fonts at some location (../myfonts/) relative to TeX
 files (for example ../myfonts/myfontA.otf).

 What is the best way to access them in MKIV?

 The best option might be to specify something equivalent to export
 TEXINPUTS=../myfonts, but I don't know what exactly I have to use. (A
 command like \addtotexinputs or \addtosearchpath[../myfonts].)
 Alternatively \definefontsynonym[a][file:../myfonts/myfontA.otf] would
 also be acceptable, though I find it a bit ugly.

 Thanks a lot,
 Mojca
On Linux (I'm not sure about Mac OS) or Windows you can use symbolic
links or juntions resp. For example,
$CONTEXT_MINIMAL_PATH/tex/texmf-fonts/data/myfonts - $WHATEVER/myfonts

---
WBR, Vladimir Lomov

-- 
* Knghtbrd crosses his toes
Knghtbrd (if I crossed my fingers it would be hard to type)
___
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] Proposal for math mappings

2010-12-10 Thread Vladimir Lomov
Hi.

** Aditya Mahajan [2010-12-09 23:49:26 -0500]:

 This is a proposal for a new way of selecting math mappings in MkIV. I want
 to get input from other math users whether this syntax would take care of all
 scenarios or not.
 
 There are five different ranges in mathematics:
 - digits (0..9)
 - lower case Latin (abc..z)
 - upper case Latin (ABC..Z)
 - lower case Greek (αβγ..ζ)
 - upper case Greek (ΑΒΓ..Z)
Should be: αβγ..ω
and ΑΒΓ..Ω
 A user may want to control what each range is mapped to. So, I suggest a setup
 command
 
 \setupmathmappings
   [
  digits={style,alternative},
 lclatin={style,alternative},
 uclatin={style,alternative},
 lcgreek={style,alternative},
 ucgreek={style,alternative},
   ]
 
 where the options for style are
 
   normal, bold
 
 while the options for alternative are
 
   normal, italic, sans, sansitalic, blackboard, script
 
 This command will the mappings for each range. **NOTE**: All combinations are 
 not valid.
 
 A companion command
 
 \definemathmappings
   [whatever]
   []
 
 can be used to define multiple mappings. These mappings can be used by
 
 \setupmathmappings[whatever]
 
 (An alternative is that these mappings are activated using \whatever ...)
 
 For example, we can define a command to typeset vectors using
 
 \definemathmappings
   [vectors]
   [ digits={bold,normal},
lclatin={bold,normal},
uclatin={bold,normal},
lcgreek={bold,normal},
ucgreek={bold,normal}]
 
 \def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}
Is it should be
\def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}}
?
 
 If later, we want to represent vectors as sans serif, we can use
 
 
 \definemathmappings
   [vectors]
   [ digits={normal,sans},
lclatin={normal,sans},
uclatin={normal,sans},
lcgreek={normal,sans},
ucgreek={normal,sans}]
 
 This interface makes it easy to switch math fonts for disiplines that want
 different style for different alphabet ranges.
 
 It is relatively easy to implement the above interface. All we need
 is some bookkeeping to set the right attributes. The default math
 mapping commands can be reimplmeneted using \definemappings. Before
 implementing this, I want to ask the opinion of other math users.
 
 Would the above interface take care of different use cases, or is it missing
 something?
IMHO, style is already used so it is normal.
 Finally, I am not too happy with the syntax. There are only a few ConTeXt
 commands in which the keys take a pair of values. Another option is to allow 
 all
 12 valid options
 
   normal, italic, sans, sansitalic, blackboard, script,
   bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript
This very depends on used fonts. 
 with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmyms.
 
 Which way of specifying the keys do you prefer?
 
 Aditya
Actually I don't get what you try to do. I thought that 'font
switching' command should take care of font switching either in math or
text modes (if typescript is set properly). Right now the only good
example of usage of proposed mechanism is \VEC command (for vectors and etc).

---
WBR, Vladimir Lomov.

-- 
I share the belief of many of my contemporaries that the spiritual crisis
pervading all spheres of Western industrial society can be remedied only 
by a change in our world view.  We shall have to shift from the materialistic,
dualistic belief that people and their environment are separate, toward a
new conciousness of an all-encompassing reality, which embraces the 
experiencing ego, a reality in which people feel their oneness with animate 
nature and all of creation.
- Dr. Albert Hoffman
___
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 and bold font

2010-12-06 Thread Vladimir Lomov
** Hans Hagen [2010-12-04 09:55:25 +0100]:
[...]
\setupbodyfont[cambria]

\starttext
This is a test.
$a=\alpha$
$\bf a=\alpha$
$\bi a=\alpha$
\stoptext

BTW, I not sure if I use correct way to switch fonts in math mode (in
LaTeX commands to switch fonts are different in text and math mode, and
I have big LaTex background, so for me this way is unusual :).
 
 best try to convert to the unicode math approach: bold a-z is
 different unicode slots than a-z and in context the \bf command does
 that transformation on ascii a-z (you can also key in the official
 unicode chars); the benefit is that you can cut and paste the bold
 characters in pdf files i.e. you retain that property; a bold b is
 not a bold one in typographic sense but a special symbol that
 happens to use a bold rendering; in for instance a section title,
 one can have all math bold, and then this regular bold character
 will become real bold
But this is not universal solution.

Suppose I want to use serif bold italic font for vectors and sans bold
italic for tensors (this is recommendation of NIST, see sp811.pdf on
nist.gov). Of course I could enter vectors and tensors as symbols from
appropriate unicode slots but what if my publisher says me that vectors
should be in sans bold and tensors in serif bold italic? So I define
commands, like \vect and \tensor to markup what symbols are verctors and
what are tensors.

Therefore I consider context (as well as LaTeX) as sort of markup
(mix of procedural and descriptive markups).

Returning to original question: I don't check but AFAIU one can define
your own typescript and choose what fonts are used in math mode (mm?).
If current typescript (modern?, latin modern?) doesn't have bold greek
letters for math one should define new typescript and use for mm (math)
font which have bold greek letters.

P.S. I could be wrong with terms.

---
WBR, Vladimir Lomov

-- 
innovate, v.:
To annoy people.
___
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 and bold font

2010-12-03 Thread Vladimir Lomov
Hi.

** Procházka Lukáš Ing. - Pontex s. r. o. [2010-12-03 08:51:41 +0100]:

 Hello all,
 
 I'd to explain some effects in the .pdf from the code bellow. It was copied 
 from co-font.pdf, pg. 19-20; just Abc was added to try something.
 
 ---
 \enableregime[cp1250]
 
 \starttext
   $Abc\sqrt{625}=5\alpha$
   $\bf Abc\sqrt{625}=5\alpha$
   $Abc\sqrt{625}=\bf5\alpha$
   $\bfmath Abc\sqrt{625}=5\alpha$
 
   
 \definetypeface[whow][mm][math,boldmath][modern][default]%[encoding=texnansi]
[]
 
   $Abc\sqrt{625}=5\alpha$
   $\bf Abc\sqrt{625}=5\alpha$
   $Abc\sqrt{625}=\bf5\alpha$
   $\bfmath Abc\sqrt{625}=5\alpha$
 
   \usetypescriptfile[typeface]
 
   $Abc\sqrt{625}=5\alpha$
   $\bf Abc\sqrt{625}=5\alpha$
   $Abc\sqrt{625}=\bf5\alpha$
   $\bfmath Abc\sqrt{625}=5\alpha$
 \stoptext
 ---
 
 Things I cannot do or understand:
 
 - The alpha symbol is not printed as soon as it's used in \bf or \bfmath 
 mode (lines 2-4 in each paragraph). Why? How to make it appear?
 
 - - The same effect may be observed in the co-fonts.pdf at the pg. 19 at the 
 lowest line - there is bold font working, but alpha is missing as well.
 
 - - - Unfortunately, there is no fully working example in the document with 
 bold math and alpha together.
 
 - In my example, normal (thin) Abc is shown a bit slanted (as should be in 
 math mode). Once it is used in bold math mode, it's no more slanted but 
 vertical as normal text. Is there a way how to keep the slantedness even 
 in math bold mode? (This is e.g. often used to mark vectors.)
 
IMHO (I'm not expert in context) this depends on used fonts. See for
example follwoing:
example file=ex1.tex
\setupbodyfont[cambria]

\starttext

This is a test.

$a=\alpha$

$\bf a=\alpha$

$\bi a=\alpha$

\stoptext
/example

BTW, I not sure if I use correct way to switch fonts in math mode (in
LaTeX commands to switch fonts are different in text and math mode, and
I have big LaTex background, so for me this way is unusual :).

P.S. My example works with mkiv but not with mkii. The last uses
default fonts that don't have bold variant for greek letters (I could
be wrong here, for LaTeX I have to redefine commands for greek letters
because there is appropriate font but greek letters are defined in a
way so nobody could use bold variant by default).


---
WBR, Vladimir Lomov

-- 
Avoid reality at all costs.
___
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] analog of \hdotsfor command

2010-11-25 Thread Vladimir Lomov
Hi.

2010/11/24 Aditya Mahajan adit...@umich.edu:
 On Wed, 24 Nov 2010, Vladimir Lomov wrote:

 Hi.

 Is there analog of \hdotsfor command in context (mkiv)?

 The description of \hdotsfor command is in amsldoc.pdf[1] on page 11.

 [1] http://mirror.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf

 I don't think there is an equivalent context macro. But hdotsfor should just
 be a combination of \span\omit + \hdotfill.
The command \hdotfill is not defined (in TeX Live 2010 context with
updates from tlcontrib.metatex.org and in context minimal).

 So, just copying the definition
 from amsmath.sty should work.
I looked into this definition and think that it uses some LaTeX
commands. I could convert it to context but I'd like to have test
files, so not right now.
 We need to think of a good syntax for matrices in ConTeXt to handle such
 things.
Command \start/stopmatrix is good enough, but you mean matrix as
visual representation.

---
WBR, Vladimir Lomov
___
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] Strange behavior of '\setupmathematics' and '\iint'

2010-11-25 Thread Vladimir Lomov
Hi.

I faced with strange (for me) behavior of combination of
'\setupmathematics' and '\iint'. Consider the following example:
example name=ex1.tex
\setupbodyfont[xits]

\setupmathematics[integral=displaylimits]

\starttext

This is a sample.

\startformula
  \exp^{\imath\phi}=\cos\phi+\imath\sin\phi
\stopformula

\startformula
  \int_{a}^{b}f(x)\text{d}x=F(x)+C
\stopformula

\startformula
  \iint_{D}f(x,y)\text{d}x\text{d}y=\mu(D),\quad\text{here $\mu$ is a measure}
\stopformula

\stoptext
/example
If I comment line with '\etupmathematics' then I could compile the
example without error. The shown example however gives error when
compiled by context (mkiv):
error
! Missing } inserted.
inserted text
}
to be read again
   $
\stopdisplaymath -\stopinnermath $
   $\par \afterdisplayspace \par \egroup
\dostopformula ...eter \c!alternative \v!formula }
  \dostoptagged \dostoptagge...
l.21 \stopformula

?
/error
Does this mean that 1) something wrong with font setup? 2) mathematics setup?

P.S. I took fonts (symlink) from TL2010 installed in parallel.

---
WBR, Vladimir Lomov
___
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 get \iint?

2010-11-24 Thread Vladimir Lomov
Hi.

2010/11/24 Aditya Mahajan adit...@umich.edu:
 On Wed, 24 Nov 2010, Vladimir Lomov wrote:

 Hi.

 The command \iint is defined in context (mkiv) but it doesn't produce
 the desired sign. What I should do to make it appear? (in log file I see
 that LMMath font desn't contain such symbol but I don't know much about
 font mechanism of context, btw in latex I could easily get that symbol
 so I think it should be in 'standard' math font).

 No, the symbol is not in the 'standard' math fonts, and this is trouble.
 Like LaTeX, we also fake the glyph in MkII. In MkIV, we check if the font
 contains that glyph; if not we fake it. Currently, that test is failing.

 A temporary workaround (for LM) is to redefine:

 \def\repeatintegral#1#2#3%
  {\let\dointlimits\donothing
   \let\dodointlimits\intlimits
   %\iffontchar\textfont\zerocount#1\relax
   % %\edef\dodorepeatintegral{\utfchar{#1}}%
   %  \let\dodorepeatintegral#2%
   %\else
      \fakerepeatintegral{#3}%
   %\fi
   \futurelet\next\dorepeatintegral}

 and then \iint \iiint etc will work.
Thank you for advice (I had to regenerate format to see the result,
because I changed the definition in 'math-int.mkiv') but the result is
terrible for inline math and normal for displaystyle.

Moreover I found that this solution would give unexpected result if one use
\setupmathematics[integral=displaylimits], consider the following example:
example name=ex7_1.tex
\setupmathematics[integral=displaylimits]
\starttext

Ordinary integral: $\int_{a}^{b}f(x)\text{d}x=F(b)-F(a)$.

Ordinary integral: $\int\limits_{a}^{b}f(x)\text{d}x=F(b)-F(a)$.

\startformula
  \int_{a}^{b}f(x)\text{d}x=F(b)-F(a).
\stopformula

Double integral:
$\iint_{D} f(x,y) dx dy$

Double integral sign (faked symbol) could cause incorrect result:
\startformula
  \iint_{D} f(x,y) \text{d}x \text{d} y
\stopformula

\stoptext
/example
(I didn't remember where exactly I found command \setupmathematics.)

 Hans, do you know what the \textfont check is not working for LM?

 The ideal solution is to add esint glyphs to the LM math  virtual font. I
 did not work on this because I was assuming that opentype LM math will be
 out soon. But it seems that right now, the only decent opentype math font is
 Cambria. Both Stix and Asansa give really horrible spacing at times.
IMHO, Cambria looks very odd. I prefer to use CM fonts, the design for
different font families (serif, sans, monospace) is more balanced than
any other font families have.


---
WBR, Vladimir Lomov
___
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] intertext error in mkiv

2010-11-23 Thread Vladimir Lomov
Hi.

The example with start/stopintertext from 'mathalign.pdf' (My Way, Using 
\startalign and friends,
Aditya Mahajan) gives error with current context (beta):
example file=ex2.tex
%%% Seems that there is a problem with \start/stopintertext . This command is 
described in mathalign.pdf
%%% (MyWay).

\starttext

Here the start/stopintertext should give text between formulas
\startformula
  \startalign
\NC \exp^{\imath t}=\cos t+\imath\sin t\NR
  \startintertext
This is famous Euler formula, below one is known as Moivre formula
  \stopintertext
\NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
  \stopalign
\stopformula

That's it.

\stoptext
/example

error_message
! Misplaced \noalign.
\startintertext #1\stopintertext -\noalign 
{\dointertext {#1}}
l.12   \stopintertext
?
/error_message

$ context --version

MTXrun | main context file: 
/usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.11.20 12:51

Is this a bug or I do something wrong?

---
WBR, Vladimir Lomov.

-- 
What you don't know won't help you much either.
-- D. Bennett
___
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 get \iint?

2010-11-23 Thread Vladimir Lomov
Hi.

The command \iint is defined in context (mkiv) but it doesn't produce
the desired sign. What I should do to make it appear? (in log file I see
that LMMath font desn't contain such symbol but I don't know much about
font mechanism of context, btw in latex I could easily get that symbol
so I think it should be in 'standard' math font).
Minimal example:
example file=ex1.tex
%%% By default context minimal doesn't give easy access to \iint — double 
integral sign
\starttext

This is ordinary integral (sign):
\startformula
  \int_{a}^{b}f(x) \text{d}x = F(x)+C
\stopformula

Though the command \type{\iint} is defined it doesn't give proper sign (in 
MkIV). Example:
\startformula
  \iint_{D}f(x,y)\text{d}x\text{d}y
\stopformula

\stoptext
/example

---
WBR, Vladimir Lomov

-- 
We are using Linux daily to UP our productivity - so UP yours!
-- Adapted from Pat Paulsen by Joe Sloan
___
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] analog of \hdotsfor command

2010-11-23 Thread Vladimir Lomov
Hi.

Is there analog of \hdotsfor command in context (mkiv)?

The description of \hdotsfor command is in amsldoc.pdf[1] on page 11.

[1] http://mirror.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf


---
WBR, Vladimir Lomov

-- 
  If I could drop dead right now, I'd be the happiest man alive!
  -Samuel Goldwyn
___
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] intertext error in mkiv

2010-11-23 Thread Vladimir Lomov
** Aditya Mahajan [2010-11-23 11:17:55 -0500]:

 On Wed, 24 Nov 2010, Vladimir Lomov wrote:
 
Hi.

The example with start/stopintertext from 'mathalign.pdf' (My Way, Using 
\startalign and friends,
Aditya Mahajan) gives error with current context (beta):
example file=ex2.tex
%%% Seems that there is a problem with \start/stopintertext . This command is 
described in mathalign.pdf
%%% (MyWay).

\starttext

Here the start/stopintertext should give text between formulas
\startformula
 \startalign
   \NC \exp^{\imath t}=\cos t+\imath\sin t\NR
 \startintertext
   This is famous Euler formula, below one is known as Moivre formula
 \stopintertext
   \NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
 \stopalign
\stopformula

That's it.

\stoptext
/example

error_message
! Misplaced \noalign.
\startintertext #1\stopintertext -\noalign
   {\dointertext {#1}}
l.12   \stopintertext
?
/error_message

$ context --version

MTXrun | main context file: 
/usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.11.20 12:51

Is this a bug or I do something wrong?
 
 Bug, and it seems a rather old one. It also fails with 2010.05.24.
 
 I cannot debug this right now. A quick workaround is to use
 \intertext{...} instead.
Ok, thanks.

P.S. I thought that all start/stopXXX commands has cousin commands
\XXX. Seems that I was wrong.

-- 
On the subject of C program indentation:
In My Egotistical Opinion, most people's C programs should be
indented six feet downward and covered with dirt.
-- Blair P. Houghton
___
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] problem with beta for linux-64

2010-11-14 Thread Vladimir Lomov
Hi.
** Aditya Mahajan [2010-11-13 21:11:31 -0500]:

 On Sat, 13 Nov 2010, Erik Margraf wrote:
 
I get the following error message while running first-setup.sh:

! I can't find file `catc-ini.mkiv'.
to be read again
  \relax
l.42 \loadmarkfile{catc-ini}
---

Strange enough, I find it as
 /tex/texmf-context/tex/context/base/catc-ini.mkiv

Anything I can do about that?
 
 I had the same error. I am on linux-64 and the luatex binary in
 linux-64/bin did not have the execute permission set. So the wrong
 luatex was being used.
 
 But I use mtx-update directly, so do not know if this is the same
 reason for the error in the minimals.
I could confirm that there is the problem with context minimal
installation on linux-64. The cause of the problem is missing permission
for executable.

Currently I could build the formats only if I split the actions: update
and make.

P.S. To ensure that the same problem would not arise in future the
'update' and 'make' procedures should be splitted and between them 'chmod
+x bin/texlua tex/texmf-linux-64/bin/luatex' (texmf-$platform) is 
inserted.

---
WBR, Vladimir.

-- 
Perfect day for scrubbing the floor and other exciting things.
___
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] Purpose of backend (export=yes)

2010-11-10 Thread Vladimir Lomov
Hi Mojca.

** Mojca Miklavec [2010-11-09 08:59:45 +0100]:

 P.S. Then I saw the announce about 'backend'  'export=yes' I thought
 that context would be good tool for notes. I imagine that I could wrote
 a text file and make from it either pdf (for printing/screening) or html
 (for screening) or may be convert xml (using existing tools and
 methods) to other formats (rtf/odt/xhtml) that would contain math,
 images, tables. But seems that I was wrong or this will be in future
 of the backend?
 
 Keep in mind that this mechanism is very very very recent. So it
 probably needs to be debugged extensively ...
Ok, but I'm glad that there is such possibility. I'll see news on the
topic.

---
WBR, Vladimir Lomov

-- 
Keep your eyes wide open before marriage, half shut afterwards.
-- Benjamin Franklin
___
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] Purpose of backend (export=yes)

2010-11-10 Thread Vladimir Lomov
Hi Hans.

** Hans Hagen [2010-11-09 17:40:44 +0100]:

 On 8-11-2010 3:52, Vladimir Lomov wrote:
 
I compiled them with context (mkIV, context minimal) and got
ex{1,2,3}.export. I thought that I get not only the document content but
also its logical structure (for example some markup for font switching).
 
 Bold in itself is not structure so best tag it as (e.g.) important:
 
 \setupbackend[export=yes]
 
 \definestartstop[important][style=bold]
 
 \starttext
 
 This is second example.
 This time we try to use font switching mechanism:
 This is normal, but this \important{one is bold}. Normal again.
 
 \stoptext
So, if I want to get structured xml file I need to either redefine all
usual command to be tagged (start/stop) and, that is more logical define
my own tag commands. IMHO the use of 'important' as in example above is
logical, the actual presentation of 'importtant' words could be define
separately and in different ways (I like idea of xml+styles).

Is it true that 'backend' only output document content not its logic
strcuture? Does it work with math? The third example gives for math only
not letters.
 
 Math becomes:
 
  This is inline formula
   math
 mrow
   mi퐸/mi
   mo=/mo
   mi푚/mi
   msup
 mi푐/mi
 mn2/mn
   /msup
 /mrow
   /math
 .
   break/
  This is display formula
   formula
 formulacontent
   math
 mrow
   mi 퐸/mi
   mo=/mo
   mi푚/mi
   msup
 mi푐/mi
 mn2/mn
   /msup
 /mrow
   /math
 /formulacontent
   /formula
E-er, yes. I don't see characters (my terminal use UTF8 and good font)
even now. But I saw them in web intterface to ML (contextgarden because
another shows something different). Also I saw tthem in Emacs. AFAIU,
this is in private region of Unicode, these are _italic_ E, m and c. I
thought that there should be letter from ASCII (codes  127).

I attached the resulted export files.

P.S. Then I saw the announce about 'backend'  'export=yes' I thought
that context would be good tool for notes. I imagine that I could wrote
a text file and make from it either pdf (for printing/screening) or html
(for screening) or may be convert xml (using existing tools and
methods) to other formats (rtf/odt/xhtml) that would contain math,
images, tables. But seems that I was wrong or this will be in future
of the backend?
 
 indeed it should be possible to use context that way and afaik the
 export is already quite okay (you might need a recent luatex as
 there have been issues with attributes in math mode that were sorted
 out a while ago)
Well, this were simple tests. I'll make more complex one in next weeks.
Texts, with font switching, maths, images, tables. I want to have tool
using which I could convert from one source to several formats (pdf,
xhtml, rtf/odt).

---
WBR, Vladimir Lomov

-- 
Have a nice day!
___
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] Purpose of backend (export=yes)

2010-11-08 Thread Vladimir Lomov
Hi.

(I'm reading this ML but rarely ask questions.)

I try to understand the purpose of 'setupbackend'.

Consider the following three examples:

--

example name=ex1.tex
\setupbackend[export=yes]

\starttext

This is simple example. No font switching, no math.

\stoptext
/example

--

example name=ex2.tex
\setupbackend[export=yes]

\starttext

This is second example.
This time we try to use font switching mechanism:
This is normal, but this \bold{one is bold}. Normal again.

\stoptext
/example

--

example name=ex3.tex
\setupbackend[export=yes]

\starttext

This is third example with 'backend' 'export=yes'. Now we try simple math:

This is inline formula $E=mc^{2}$.

This is display formula
\startformula
  E=mc^{2}
\stopformula

\stoptext
/example

--

I compiled them with context (mkIV, context minimal) and got
ex{1,2,3}.export. I thought that I get not only the document content but
also its logical structure (for example some markup for font switching).

Is it true that 'backend' only output document content not its logic
strcuture? Does it work with math? The third example gives for math only
not letters.

I attached the resulted export files.

P.S. Then I saw the announce about 'backend'  'export=yes' I thought
that context would be good tool for notes. I imagine that I could wrote
a text file and make from it either pdf (for printing/screening) or html
(for screening) or may be convert xml (using existing tools and
methods) to other formats (rtf/odt/xhtml) that would contain math,
images, tables. But seems that I was wrong or this will be in future
of the backend?

---
WBR, Vladimir Lomov


-- 
If you make people think they're thinking, they'll love you; but if you
really make them think they'll hate you.
?xml version='1.0' standalone='yes' ?

!-- input filename   : ex1   --
!-- processing date  : Mon Nov  8 22:44:56 2010 --
!-- context version  : 2010.11.03 19:42  --
!-- exporter version : 0.10  --

document language='en' file='ex1' date='Mon Nov  8 22:44:56 2010' 
context='2010.11.03 19:42' version='0.10'
This is simple example. No font switching, no math.
/document
?xml version='1.0' standalone='yes' ?

!-- input filename   : ex2   --
!-- processing date  : Mon Nov  8 22:45:03 2010 --
!-- context version  : 2010.11.03 19:42  --
!-- exporter version : 0.10  --

document language='en' file='ex2' date='Mon Nov  8 22:45:03 2010' 
context='2010.11.03 19:42' version='0.10'
This is second example. This time we try to use font switching mechanism: This 
is normal, but this one is bold. Normal again.
/document
?xml version='1.0' standalone='yes' ?

!-- input filename   : ex3   --
!-- processing date  : Mon Nov  8 22:45:09 2010 --
!-- context version  : 2010.11.03 19:42  --
!-- exporter version : 0.10  --

document language='en' file='ex3' date='Mon Nov  8 22:45:09 2010' 
context='2010.11.03 19:42' version='0.10'
This is third example with 'backend' 'export=yes'. Now we try simple math:
  break/
 This is inline formula 
  math
mrow
  mi퐸/mi
  mo=/mo
  mi푚/mi
  msup
mi푐/mi
mn2/mn
  /msup
/mrow
  /math___
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] margintext in mkii and mkiv

2010-11-06 Thread Vladimir Lomov
** Hans Hagen [2010-11-05 13:54:06 +0100]:

 On 5-11-2010 5:51, Vladimir Lomov wrote:
Hi.

Consider the attached example. When compiled with mkii (texexec) I get
text in margin while if I compile the file with mkiv (context) I get
only text with nothing in margin.

I'm using context minimal:
$ context --version | grep version
MTXrun | current version: 2010.11.03 19:42

Did I miss something?
 
 put this in cont-new.mkiv
 
 \def\doflushmargincontents
   {\ifconditional\margintextcollected
  \expandafter\flushmargincontentsindeed
\fi}
Thanks Hans. (If I add them into cont-new.mkiv the file would be
overwritten next time when I run update procedure, is it right?)

 (when cleaning up status variables something got lost)
That's Ok.

I hope that these lines will in proper place in next beta, it's not
hurry.

-- 
If I am elected, the concrete barriers around the WHITE HOUSE will be
replaced by tasteful foam replicas of ANN MARGARET!
___
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] margintext in mkii and mkiv

2010-11-04 Thread Vladimir Lomov
Hi.

Consider the attached example. When compiled with mkii (texexec) I get
text in margin while if I compile the file with mkiv (context) I get
only text with nothing in margin.

I'm using context minimal:
$ context --version | grep version
MTXrun | current version: 2010.11.03 19:42

Did I miss something?

---
WBR, Vladimir Lomov


ex1.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to put mark in right margin even for equation [SOLVED]

2010-11-03 Thread Vladimir Lomov
Hello Aditya.

2010/11/3 Aditya Mahajan adit...@umich.edu:
 On Wed, 3 Nov 2010, Vladimir Lomov wrote:

 Now the only question is how to put text on right margin within
 \start/stopformula. But this is matter of taste.

 Did you test Hans suggestions here:
 http://archive.contextgarden.net/message/20060711.094332.2092ebf5.en.html

 (I am not sure if it will work with MkIV, but it should still work with
 MkII)
I didn't look deeper in ML than my archive. Thanks for link, also I
like idea of layer. I'll give it a try.


---
WBR, Vladimir Lomov
___
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] Q about hangaround commands

2010-11-03 Thread Vladimir Lomov
Hello Wolfgang.

2010/11/3 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 03.11.2010 um 05:47 schrieb Vladimir Lomov:

 Hi.

 Some answers I found myself :)

 P.S. I have feeling that feature like 'hangaround' doesn't fit well
 with tex (page layout ...?) model.

 \unprotect

 \def\stophangaround
  {\endgraf
   \egroup}

 \def\starthangaround
  {\dosingleempty\dostarthangaround}

 \def\dostarthangaround[#1]%
  {\doifelse{#1}{\v!right}
     {\dostartrighthangaround}
     {\dostartlefthangaround }}

 \def\dostartlefthangaround
  {\noindent\bgroup
   \dowithnextbox
     {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
      \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}%
      \getboxheight\scratchdimen\of\box\nextbox
      \getnoflines\scratchdimen
      \nextboxht\strutht
      \nextboxdp\strutdp
      \hangindent\nextboxwd
      \hangafter-\noflines
      \llap{\flushnextbox}\ignorespaces}
   \hbox}

 \def\dostartrighthangaround
  {\noindent\bgroup
   \dowithnextbox
     {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
      \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}%
      \getboxheight\scratchdimen\of\box\nextbox
      \getnoflines\scratchdimen
      \nextboxht\strutht
      \nextboxdp\strutdp
      \hangindent-\nextboxwd
      \hangafter-\noflines
      \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces}
   \hbox}

 \protect

 \starttext

 \starthangaround{\externalfigure[cow][scale=500]}
 \input tufte
 \stophangaround

 \blank

 \starthangaround[right]{\externalfigure[cow][scale=500]}
 \input tufte
 \stophangaround

 \stoptext
Thank you Wolfgang, nice example, ... of code and output, of course.

 Hangaround is a very robust command and works in more cases than
 \placefigure[left] but you have a conflict with the \item command
 which place the itemize symbol before the following text which
 is indented in your case.
And even if I use
code
\startitemize[n,inmargin]
/code
I got 2 not in margin. Something similar I know about wrapfig package
for LaTeX. It could 'wrap' text around figure or table while it
couldn't work within list environment (start/stop).

Ok, that only means that I don't understand how lists and this
'environment' work.

---
WBR, Vladimir Lomov
___
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] Q about hangaround commands

2010-11-02 Thread Vladimir Lomov
Hi.

Some answers I found myself :)

2010/10/26 Vladimir Lomov lomov...@gmail.com:
 Hi.

 I'm trying to figure out the limitation of \start/stophangaround commands.

 1. Is it correct that currently the figure could be placed only on
 left? If so is it easy to extend the command to allow placing figure
 at right side?
 2. Is there way to increase/decrease the space between the text and image?
 3. Is it correct that hangaround command is tricky hack that change normal 
 flow?
2. - \setuphanging[desitance=0.7em], for example.
3. - To make '2.' appear on left side it is enough to put empty line
between \item and
\starthangaround. IMHO, this is workaround, not solution.

P.S. I have feeling that feature like 'hangaround' doesn't fit well
with tex (page layout ...?) model.

---
WBR, Vladimir Lomov.
___
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 put mark in right margin even for equation [SOLVED]

2010-11-02 Thread Vladimir Lomov
Hi.

2010/10/29 Vladimir Lomov lomov...@gmail.com:
 Hi.

 Please consider the attached example.

 I want to put a mark (how many points will give the answer on a
 question) on right margin. I define command '\pointsMark' to do that
 but it fails if I put it inside
 \start/stopformula. Could someone give advice how to put such mark on
 right margin even for equation?

I tried to find a bit more information about margins but context
manual don't provide details (I'll try later with sources). I also
tried to see how to use 'plain' TeX commands for marginal material (I
looked to TeX by Topic) but didn't find appropriate section.

Meanwhile I clarify for myself what I need from margins: I want to put
a text on right margin (like in previous example) but want the text to
be aligned to right (all text in right margin should have the same
right edge).

EDT: I found solution for this:
code
\setupimnargin[right][align=left] %%% Ok, I thought that align=left it
to align to the left edge.
/code

 I tried to find a bit more information about margins but context manual don't 
 provide details
Look the source, Luke :D

Now the only question is how to put text on right margin within
\start/stopformula. But this is matter of taste.

P.S. The solution for the problem is much simpler than I use in LaTeX
(tricks with lengths).

---
WBR, Vladimir Lomov
___
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 put mark in right margin even for equation

2010-10-29 Thread Vladimir Lomov
Hi.

Please consider the attached example.

I want to put a mark (how many points will give the answer on a
question) on right margin. I define command '\pointsMark' to do that
but it fails if I put it inside
\start/stopformula. Could someone give advice how to put such mark on
right margin even for equation?

P.S. Neither equation would have number.
P.P.S. I just began to work with context so my approach may be not
'context-ish', I'm glad to see any 'context-ish' solutions for the
task.

---
WBR, Vladimir Lomov


ex3.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Q about hangaround commands

2010-10-26 Thread Vladimir Lomov
Hi.

I'm trying to figure out the limitation of \start/stophangaround commands.

1. Is it correct that currently the figure could be placed only on
left? If so is it easy to extend the command to allow placing figure
at right side?
2. Is there way to increase/decrease the space between the text and image?
3. Is it correct that hangaround command is tricky hack that change normal flow?

I prepare simple example (it is attached). 1) is obvious from the
example (default behavior I assume). 3): I got the '2.' not on left
side as 1) and 3) but on left side of text block right after image.
Another example if 3): if I put empty line between \starthangaround
and \input (see the file) then there would be mess.

P.S. I tried the example with MkIV only.
---
WBR, Vladimir Lomov


ex1.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Computer Modern Unicode fonts

2010-09-30 Thread Vladimir Lomov
Hi.

I want to use Computer Modern Unicode fonts in my document. I made a
link from $TEXLIVE2010/texmf-dist/fonts/opentype/public/cm-unicode to
$CONTEXT_MINIMAL/tex/texmf-fonts/opentype/public but couldn't get CM-U
font in the document. What should I do to use them?

I'm using MkIV.

---
WBR, Vladimir Lomov


ex_ru.tex
Description: TeX document


ru_li2.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Computer Modern Unicode fonts

2010-09-30 Thread Vladimir Lomov
Hi.

2010/9/30 Khaled Hosny khaledho...@eglug.org:
 On Thu, Sep 30, 2010 at 10:34:36AM +0200, Hans Hagen wrote:
 On 30-9-2010 10:05, Vladimir Lomov wrote:
 Hi.
 
 I want to use Computer Modern Unicode fonts in my document. I made a
 link from $TEXLIVE2010/texmf-dist/fonts/opentype/public/cm-unicode to
 $CONTEXT_MINIMAL/tex/texmf-fonts/opentype/public but couldn't get CM-U
 font in the document. What should I do to use them?

 you have to make typescript for them as they are not supported out
 of the box; we use lm fonts (which are unicode)

 LM have no Cyrillic, but CM-U have, and I think that is why he wants to
 use them, and IMHO it deserves including a typescript for it and may be
 including the fonts in minimals too since there seem not to be any
 Cyrillic CM fonts there.
Yes, exactly. CM-U has Cyrillic while LM not.
And I fount 'type-cmu.mkiv' but couldn't get it to work.

@Willi:
VL Not sure about how 'context --generate'' works but I didn't that. May
VL be it doesn't like links?

I meant that I ran (several times) 'context --generate' after I made a
link to cm-unicode.

---
WBR, Vladimir Lomov
___
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] Computer Modern Unicode fonts

2010-09-30 Thread Vladimir Lomov
Hi.
2010/9/30 Hans Hagen pra...@wxs.nl:

 If these are the huge traced cm supers I'd rather not have them in the
 minimals but as extra as they consume a log of space.
No, it's otf fonts. For reference you could see this branch:
http://www.ctan.org/tex-archive/fonts/cm-unicode/fonts/otf/

 If it's just cyrillic .. maybe it's more interesting to use fallbacks, given
 that we have a cyrillic only variant available for that (there are type ones
 as we have support for the t2* encodings in mkii).
It's not the only way to get Cyrillic as any other language in ConTeXt.

 Btw, one of the reasons why lm/gyre have no cyrillic (or had cyrilic
 removed) is that in spit of all efforts to locate people, no one is willing
 to check them and do some quality control. It has been discussed before: if
 there is a group of volunteers the glyphs might show up again in the fonts.
If I not mistake part of work in cm-super was done by Vladimir
Volovich (or whole work?).

So, I should ask Wolfgang Schuster (author of type-cmu.mkiv) what
could be wrong with the document? May be I do completely wrong with
that typescript?

Khaled Hosny == KH:

KHYou actually need `mtxrun -script fonts --reload` to update font database.
I tried. Without success.

---
WBR, Vladimir Lomov
___
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   >