[NTG-context] SyncTeX (TeXworks) - \enabledirectives[system.synctex]

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

Hello,

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

1. The following code:


\enabledirectives[system.synctex]

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


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

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

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


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

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

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

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

Best regards,

Lukas


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

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

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

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

[NTG-context] Temporary spacing between letters

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

Hello,

is it possible to affect the space between letters temporarily?

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


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

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


Best regards,

Lukas


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

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

LetSpac.mkiv
Description: Binary data


LetSpac.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Math - how to mix fonts?

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

Hello,

simpler than I thought, thank you!

Best regards,

Lukas


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


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

%\setupbodyfont[xits]

\setupmathematics[lcgreek=none,ucgreek=none]

\starttext

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

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

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

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

\stoptext

Wolfgang




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

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

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

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

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

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

Hello,

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

1. The following code:


\enabledirectives[system.synctex]

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


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

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

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


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

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

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

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

Best regards,

Lukas


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

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

SyncTeX.mkiv
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Temporary spacing between letters

2015-07-18 Thread Hans Hagen

On 7/18/2015 9:45 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

is it possible to affect the space between letters temporarily?

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


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

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



\kerncharacters[.5]

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

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