Re: [NTG-context] newbie questions

2014-05-16 Thread Joan Gary
Interested in computer typesetting a Bible.

Sent from my iPad
___
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] newbie questions

2014-05-16 Thread Hans Hagen

On 5/15/2014 3:40 PM, Joan  Gary wrote:

Interested in computer typesetting a Bible.


You mean: can that be done? Sure.

Hans


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


[NTG-context] interword spacing

2014-05-16 Thread Trond Thorbjørnsen
Hi,

Is there a way to represent spaces explicitly with context, as described
here:

http://tex.stackexchange.com/questions/21053/xelatex-and-missing-spaces-in-pdf-text

Certain fonts, for example Minion Pro, have small little interword spacing.
This is a problem for highlighting on Goodreader on ipad.

-Trond
___
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] interword spacing

2014-05-16 Thread Hans Hagen

On 5/16/2014 10:31 AM, Trond Thorbjørnsen wrote:

Hi,

Is there a way to represent spaces explicitly with context, as described
here:

http://tex.stackexchange.com/questions/21053/xelatex-and-missing-spaces-in-pdf-text

Certain fonts, for example Minion Pro, have small little interword spacing.
This is a problem for highlighting on Goodreader on ipad.


There is but only as part of the export. I've added an option for 
regular pdf's:


\setupbackend[space=yes]

So you can use that in the next beta.

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


Re: [NTG-context] interword spacing

2014-05-16 Thread Trond Thorbjørnsen
Hans Hagen skrev 16.05.2014:
 On 5/16/2014 10:31 AM, Trond Thorbjørnsen wrote: 
  Hi, 
  
  Is there a way to represent spaces explicitly with context, as described 
  here: 
  
  https://heim.ifi.uio.no/trondth/.t/PK7ks9TsPC.php 
  (..)tex.stackexchange.com(..) 
  
  Certain fonts, for example Minion Pro, have small little interword spacing. 
  This is a problem for highlighting on Goodreader on ipad. 
 
 There is but only as part of the export. I've added an option for 
 regular pdf's: 
 
 \setupbackend[space=yes] 
 
 So you can use that in the next beta. 

Thank you for the quick reply. I will try this in the next beta.

-Trond

___
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] basic question on imposition

2014-05-16 Thread Pablo Rodriguez
On 05/14/2014 09:37 PM, Willi Egger wrote:
 Pablo,
 
 there is no imposing scheme in ConTeXt which can do this. The only
 way is to cut the A4 in two A5, Use 2Side imposing scheme and print
 the the A5 paper…

Many thanks for your reply, Willy.

Is there no way to add a new \setuparranging? I think it may be useful
to others.

Cutting paper is not an option for me, since I don’t have a printer. I
have to print in copyshops. And A4 is the only option.


Pablo


 On 14 mei 2014, at 17:55, Pablo Rodriguez wrote:
 
 Dear list,

 I’m trying to build a booklet from an existing PDF document, my code is
 the following (copied from the wiki long time ago):

\setuppapersize [A5][A4,landscape]
\setuparranging [2UP,doublesided]
\setuplayout [backspace=0pt,
topspace=0pt,
   width=middle,
  height=middle,
location=middle,
  header=0pt,
  footer=0pt,
  grid=no, marking=off]
\starttext
\insertpages[document.pdf][width=0pt]
\stoptext

 It works perfectly, but I would like to achieve the same effect, only
 imposing 4 pages on each side of the paper (8 pages per sheet).

 Replacing the first two lines with:

\setuppapersize [A6][A4]
\setuparranging [2*4]

 rearranges all pages, but not the way I want. With the previous option,
 I have to cut the paper in four.

 I would like to avoid this. I would like to cut the A4 in two landscape
 A5 to be folded (not cut) in two A6 pages.

 Which is the way to get this imposition?

 Many thanks for your help,


 Pablo


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

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


Re: [NTG-context] basic question on imposition

2014-05-16 Thread Hans Hagen

On 5/16/2014 7:06 PM, Pablo Rodriguez wrote:

On 05/14/2014 09:37 PM, Willi Egger wrote:

Pablo,

there is no imposing scheme in ConTeXt which can do this. The only
way is to cut the A4 in two A5, Use 2Side imposing scheme and print
the the A5 paper…


Many thanks for your reply, Willy.

Is there no way to add a new \setuparranging? I think it may be useful
to others.


see page-imp.* (still wondering if we should have these definitions 
loaded on demand)



Cutting paper is not an option for me, since I don’t have a printer. I
have to print in copyshops. And A4 is the only option.



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


Re: [NTG-context] basic question on imposition

2014-05-16 Thread Pablo Rodriguez
On 05/16/2014 07:47 PM, Hans Hagen wrote:
 On 5/16/2014 7:06 PM, Pablo Rodriguez wrote:
 On 05/14/2014 09:37 PM, Willi Egger wrote:

 there is no imposing scheme in ConTeXt which can do this. The only
 way is to cut the A4 in two A5, Use 2Side imposing scheme and print
 the the A5 paper…

 Many thanks for your reply, Willy.

 Is there no way to add a new \setuparranging? I think it may be useful
 to others.
 
 see page-imp.* (still wondering if we should have these definitions 
 loaded on demand)

Many thanks for the tip, Hans.

After reading page-imp.mkiv, I have realized that 2*4*2 does the job,
but only with 16 pages.

Wouldn’t it be possible to extend the definition of the 2*4*2, so that
it works with any given number of pages?

Sorry, but I must admit that the contents of page-imp.mkiv are almost
Greek to me.

Many thanks for your help,


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

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


[NTG-context] Interactive U3D in .pdf via ConTeXt?

2014-05-16 Thread Lukáš Procházka

Hello,

is there way to include U3D (or X3D after conversion) into a .pdf via ConTeXt?

- An example of such an embed object and its capabilities at 
http://www.behaviometrix.com/public_html/brain.pdf

LaTeX offers this via movie15 package; is it possible to produce such document 
with ConTeXt?

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
___

Re: [NTG-context] Interactive U3D in .pdf via ConTeXt?

2014-05-16 Thread luigi scarso
On Fri, May 16, 2014 at 9:55 PM, Lukáš Procházka l...@pontex.cz wrote:

 Hello,

 is there way to include U3D (or X3D after conversion) into a .pdf via
 ConTeXt?

 - An example of such an embed object and its capabilities at
 http://www.behaviometrix.com/public_html/brain.pdf

 LaTeX offers this via movie15 package; is it possible to produce such
 document with ConTeXt?

 Best regards,

 Lukas

 get the latest beta,
get Laurana.u3d from
http://www.tug.org/texshowcase/Laurana_tex.zip
use an appropriate default.png

\starttext
\startluaparameterset [u3d:myset:display:1]
toolbar=false,
preview=default.png,
view = {
name = 'default',
bg = {1,1,1},
mag = 25,
coo = {2,2,2},
c2c = {0,0,1},
rot = {40,0,60},
roo = 2,
lights = 'CAD'
}
\stopluaparameterset
\useexternalfigure  [Laurana]  [Laurana.u3d]  [width=\textwidth,
height=0.5\textwidth, display=u3d:myset:display:1]
\placefigure[here]{Laurana}{\externalfigure[Laurana]}
\stoptext

I've to play a bit with width , height and the 3D controls of the adobe
reader to have a nice view,
initially the picture show only the 3D axis -- the model is below the Y
axis.
-- 
luigi
___
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-plain File Database Problem

2014-05-16 Thread Aíre Funvake
On Thu May 15 23:23:07 2014, Aíre Funvake wrote:
 On Thu May 15 23:07:40 2014, Aditya Mahajan wrote:
 On Thu, 15 May 2014, Aíre Funvake wrote:

 Hi all,

 Never felt so incompetent in my life -- just cannot get LuaTeX to
 find fonts or `*.tex` files for use with `\input filename`, or
 `font\xxx = font-or-filename`. Even though, these commands were
 executed (all I could find):

   mktexlsr
   mtxrun --script base --generate
   luatools --generate
   context --generate
   mtxrun --script fonts --update --force
   mtxrun --script fonts --udpate --simple

 Tried putting files in (in the roots and subdirectories):

   ~/texmf
   ~/ctx/tex/texmf-project
   ~/ctx/tex/texmf-local
   ~/ctx/tex/texmf-fonts

 Checked if the file could be found:

   luatools --find-file .tex   --- finds it
   luatools --find-file xxx.otf--- finds it
   mtxrun --locate .tex--- finds it
   mtxrun --locate xxx.otf --- finds it
   kpsewhich/where --- finds only if in `~/texmf`

 In .tex file (even when files are in `~/texmf` dir):

   \input   or .tex--- no luck
   \font\myfont = name:--- no luck
   \font\myfont = file:.otf--- no luck

 Sorry, but reading and searching for hours did not bring any solu-
 tion. Not sure if there is a configuration file like `texmf.cnf` or
 the `context.cnf` that must be modified, or and environment var-
 iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's
 OK, if only it would only work).

 Sorry to spam this list with questions which may seem very
 fundamental to you. Hope to be able to reciprocate sometime.
 What am I missing?

 Read about TDS (TeX Directory Structure).

 You need to put files in $TEXMF/tex/plain/ subdirectory for Plain
 format to find it, or in $TEXMF/tex/generic/ subdirectory for all
 macro packages (plain, latex, context) to find it.

 Aditya

 Thank you, will re-read it forthwith, must have missed something.
 It just feels wrong to put re-usable project files inside the
 distribution tree. Still feel like an idiot, if not more so.

 Can anyone enlighten me then as to the purpose of `$HOME/texmf`,
 `$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc.,
 considering they are all, for example, configured in the file:
 `$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly
 it seems, the name resolvers would use.

http://tex.stackexchange.com/questions/177459/learning-plain-tex-via-contexts-luatex-plain-format

Maybe helpful to someone.


___
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-plain File Database Problem

2014-05-16 Thread Hans Hagen

On 5/16/2014 10:56 PM, Aíre Funvake wrote:

On Thu May 15 23:23:07 2014, Aíre Funvake wrote:

On Thu May 15 23:07:40 2014, Aditya Mahajan wrote:

On Thu, 15 May 2014, Aíre Funvake wrote:


Hi all,

Never felt so incompetent in my life -- just cannot get LuaTeX to
find fonts or `*.tex` files for use with `\input filename`, or
`font\xxx = font-or-filename`. Even though, these commands were
executed (all I could find):

   mktexlsr
   mtxrun --script base --generate
   luatools --generate
   context --generate
   mtxrun --script fonts --update --force
   mtxrun --script fonts --udpate --simple

Tried putting files in (in the roots and subdirectories):

   ~/texmf
   ~/ctx/tex/texmf-project
   ~/ctx/tex/texmf-local
   ~/ctx/tex/texmf-fonts

Checked if the file could be found:

   luatools --find-file .tex   --- finds it
   luatools --find-file xxx.otf--- finds it
   mtxrun --locate .tex--- finds it
   mtxrun --locate xxx.otf --- finds it
   kpsewhich/where --- finds only if in `~/texmf`

In .tex file (even when files are in `~/texmf` dir):

   \input   or .tex--- no luck
   \font\myfont = name:--- no luck
   \font\myfont = file:.otf--- no luck

Sorry, but reading and searching for hours did not bring any solu-
tion. Not sure if there is a configuration file like `texmf.cnf` or
the `context.cnf` that must be modified, or and environment var-
iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's
OK, if only it would only work).

Sorry to spam this list with questions which may seem very
fundamental to you. Hope to be able to reciprocate sometime.
What am I missing?


Read about TDS (TeX Directory Structure).

You need to put files in $TEXMF/tex/plain/ subdirectory for Plain
format to find it, or in $TEXMF/tex/generic/ subdirectory for all
macro packages (plain, latex, context) to find it.

Aditya


Thank you, will re-read it forthwith, must have missed something.
It just feels wrong to put re-usable project files inside the
distribution tree. Still feel like an idiot, if not more so.


project specific files go into

texroot/texmf-project/tex/context/user

additional fonts into

texroot/texmf-fonts/fonts/data

these are in the tds tree but never overwritten


Can anyone enlighten me then as to the purpose of `$HOME/texmf`,
`$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc.,
considering they are all, for example, configured in the file:
`$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly
it seems, the name resolvers would use.


http://tex.stackexchange.com/questions/177459/learning-plain-tex-via-contexts-luatex-plain-format


context mkiv doesn't use texmf.cnf at all but texmfcnf.lua instead (and 
also has its own file management subsystem)


already right from the start context had process management with 
'texmfstart + texexec' (mkii) and 'mtxrun + context' (mkiv)


Hans

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

Re: [NTG-context] basic question on imposition

2014-05-16 Thread Hans Hagen

On 5/16/2014 9:13 PM, Pablo Rodriguez wrote:

On 05/16/2014 07:47 PM, Hans Hagen wrote:

On 5/16/2014 7:06 PM, Pablo Rodriguez wrote:

On 05/14/2014 09:37 PM, Willi Egger wrote:


there is no imposing scheme in ConTeXt which can do this. The only
way is to cut the A4 in two A5, Use 2Side imposing scheme and print
the the A5 paper…


Many thanks for your reply, Willy.

Is there no way to add a new \setuparranging? I think it may be useful
to others.


see page-imp.* (still wondering if we should have these definitions
loaded on demand)


Many thanks for the tip, Hans.

After reading page-imp.mkiv, I have realized that 2*4*2 does the job,
but only with 16 pages.

Wouldn’t it be possible to extend the definition of the 2*4*2, so that
it works with any given number of pages?

Sorry, but I must admit that the contents of page-imp.mkiv are almost
Greek to me.


you have to bribe Willi who is the imposition, folding, book 
construction master and can envision those things


Hans

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


Re: [NTG-context] LuaTeX-plain File Database Problem

2014-05-16 Thread Aíre Funvake
On Fri May 16 23:51:08 2014, Hans Hagen wrote:
 On 5/16/2014 10:56 PM, Aíre Funvake wrote:
 On Thu May 15 23:23:07 2014, Aíre Funvake wrote:
 On Thu May 15 23:07:40 2014, Aditya Mahajan wrote:
 On Thu, 15 May 2014, Aíre Funvake wrote:

 Hi all,

 Never felt so incompetent in my life -- just cannot get LuaTeX to
 find fonts or `*.tex` files for use with `\input filename`, or
 `font\xxx = font-or-filename`. Even though, these commands were
 executed (all I could find):

mktexlsr
mtxrun --script base --generate
luatools --generate
context --generate
mtxrun --script fonts --update --force
mtxrun --script fonts --udpate --simple

 Tried putting files in (in the roots and subdirectories):

~/texmf
~/ctx/tex/texmf-project
~/ctx/tex/texmf-local
~/ctx/tex/texmf-fonts

 Checked if the file could be found:

luatools --find-file .tex   --- finds it
luatools --find-file xxx.otf--- finds it
mtxrun --locate .tex--- finds it
mtxrun --locate xxx.otf --- finds it
kpsewhich/where --- finds only if in `~/texmf`

 In .tex file (even when files are in `~/texmf` dir):

\input   or .tex--- no luck
\font\myfont = name:--- no luck
\font\myfont = file:.otf--- no luck

 Sorry, but reading and searching for hours did not bring any solu-
 tion. Not sure if there is a configuration file like `texmf.cnf` or
 the `context.cnf` that must be modified, or and environment var-
 iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's
 OK, if only it would only work).

 Sorry to spam this list with questions which may seem very
 fundamental to you. Hope to be able to reciprocate sometime.
 What am I missing?

 Read about TDS (TeX Directory Structure).

 You need to put files in $TEXMF/tex/plain/ subdirectory for Plain
 format to find it, or in $TEXMF/tex/generic/ subdirectory for all
 macro packages (plain, latex, context) to find it.

 Aditya

 Thank you, will re-read it forthwith, must have missed something.
 It just feels wrong to put re-usable project files inside the
 distribution tree. Still feel like an idiot, if not more so.

 project specific files go into

 texroot/texmf-project/tex/context/user

 additional fonts into

 texroot/texmf-fonts/fonts/data

 these are in the tds tree but never overwritten

 Can anyone enlighten me then as to the purpose of `$HOME/texmf`,
 `$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc.,
 considering they are all, for example, configured in the file:
 `$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly
 it seems, the name resolvers would use.

 http://tex.stackexchange.com/questions/177459/learning-plain-tex-via-contexts-luatex-plain-format


 context mkiv doesn't use texmf.cnf at all but texmfcnf.lua instead
 (and also has its own file management subsystem)

 already right from the start context had process management with
 'texmfstart + texexec' (mkii) and 'mtxrun + context' (mkiv)

 Hans

Thank you very much. Does this apply to LuaTeX-plain as well
(`luatex.exe --fmt luatex-plain`)? LuaTeX works fine if I set
 `$TEXMFHOME` (MacOSX) or `%TEXMFHOME%` (Windows) environment
variables, or put files in default location `$HOME/texmf` (Mac).
But otherwise, I seem to have problems. Will try the to use
the `texmf-project/..` and `texmf-fonts/..` directories though.

___
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-plain File Database Problem

2014-05-16 Thread Hans Hagen

On 5/17/2014 12:01 AM, Aíre Funvake wrote:

On Fri May 16 23:51:08 2014, Hans Hagen wrote:

On 5/16/2014 10:56 PM, Aíre Funvake wrote:

On Thu May 15 23:23:07 2014, Aíre Funvake wrote:

On Thu May 15 23:07:40 2014, Aditya Mahajan wrote:

On Thu, 15 May 2014, Aíre Funvake wrote:


Hi all,

Never felt so incompetent in my life -- just cannot get LuaTeX to
find fonts or `*.tex` files for use with `\input filename`, or
`font\xxx = font-or-filename`. Even though, these commands were
executed (all I could find):

mktexlsr
mtxrun --script base --generate
luatools --generate
context --generate
mtxrun --script fonts --update --force
mtxrun --script fonts --udpate --simple

Tried putting files in (in the roots and subdirectories):

~/texmf
~/ctx/tex/texmf-project
~/ctx/tex/texmf-local
~/ctx/tex/texmf-fonts

Checked if the file could be found:

luatools --find-file .tex   --- finds it
luatools --find-file xxx.otf--- finds it
mtxrun --locate .tex--- finds it
mtxrun --locate xxx.otf --- finds it
kpsewhich/where --- finds only if in `~/texmf`

In .tex file (even when files are in `~/texmf` dir):

\input   or .tex--- no luck
\font\myfont = name:--- no luck
\font\myfont = file:.otf--- no luck

Sorry, but reading and searching for hours did not bring any solu-
tion. Not sure if there is a configuration file like `texmf.cnf` or
the `context.cnf` that must be modified, or and environment var-
iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's
OK, if only it would only work).

Sorry to spam this list with questions which may seem very
fundamental to you. Hope to be able to reciprocate sometime.
What am I missing?


Read about TDS (TeX Directory Structure).

You need to put files in $TEXMF/tex/plain/ subdirectory for Plain
format to find it, or in $TEXMF/tex/generic/ subdirectory for all
macro packages (plain, latex, context) to find it.

Aditya


Thank you, will re-read it forthwith, must have missed something.
It just feels wrong to put re-usable project files inside the
distribution tree. Still feel like an idiot, if not more so.


project specific files go into

texroot/texmf-project/tex/context/user

additional fonts into

texroot/texmf-fonts/fonts/data

these are in the tds tree but never overwritten


Can anyone enlighten me then as to the purpose of `$HOME/texmf`,
`$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc.,
considering they are all, for example, configured in the file:
`$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly
it seems, the name resolvers would use.


http://tex.stackexchange.com/questions/177459/learning-plain-tex-via-contexts-luatex-plain-format



context mkiv doesn't use texmf.cnf at all but texmfcnf.lua instead
(and also has its own file management subsystem)

already right from the start context had process management with
'texmfstart + texexec' (mkii) and 'mtxrun + context' (mkiv)

Hans


Thank you very much. Does this apply to LuaTeX-plain as well
(`luatex.exe --fmt luatex-plain`)? LuaTeX works fine if I set
  `$TEXMFHOME` (MacOSX) or `%TEXMFHOME%` (Windows) environment
variables, or put files in default location `$HOME/texmf` (Mac).
But otherwise, I seem to have problems. Will try the to use
the `texmf-project/..` and `texmf-fonts/..` directories though.


no, the plain variant uses kpse and texmf.cnf

(I never use texmfhome or hometexmf or whatever it has evolved through 
over the years, and, as texmf, texmf-local, texmf-dist have changed 
order and usage over time as well, I also never put stuff in there.)


Hans


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




--

-
  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

[NTG-context] ConTeXt Garden Examples Maintenance

2014-05-16 Thread Thangalin
Hi,

The ConText Garden wiki has numerous short example sprinkled
throughout its pages. I presume that they are hard-coded in the page.
if the example breaks (due to a ConTeXt bug or backwards-incompatible
enhancement), I imagine there is no notification.

What do you think about creating a repository of examples that are
included by embedding a website address instead of direct text? For
example:

1. User visits wiki.
2. User edits a page (e.g., Command/setuphead).
3. User names and uploads a .tex document.
4. System generates unique hyperlink for .tex document.
5. System generates and includes embed code into wiki page, such as:

context href=http://wiki.contextgarden.net/context/examples/file.tex; /
context href=/context/examples/file.tex /

Also, source=yes and mode=mkiv should be the default. Then, if the
person editing the page wants to include the output, the full example
might resemble:

  context href=/context/examples/file.tex
  This produces:
  context output=yes href=/context/examples/file.tex

Having the complete examples separated allows the snippets to be
tested automatically. Broken .tex examples (unless explicitly flagged)
would result in notifications being sent to the page maintainer(s). A
broken example could be flagged as:

  context notify=no href=/context/examples/file.tex

Another advantage is that all the examples could be downloaded and
possibly referenced in other media.

Kindest regards.
___
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
___