Re: [NTG-context] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Jean Magnan de Bornier
Le 14 décembre à 21:32:46 pmli...@free.fr (Peter Münster) écrit notamment:

| On Wed, Dec 14 2011, Hagmann Jörg wrote:
>
| > Another possibility is to use org-mode in Emacs, export to Latex and from
| > there to ConTeXt. In my case, the last step is accomplished by a home-brewed
| > ruby script which covers the most common layout commands
>
| Have you already considered writing `org-context.el'?

Yet another possibility is to use muse in emacs, for which exporting to
ConTeXt is *already* there (among many other formats).

http://wiki.contextgarden.net/ConTeXt_and_emacs-muse
-- 
Jean
___
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] xml attribute conditional

2011-12-14 Thread Jon Crump
Hans,

Thanks for this. It's almost what I need. I truly appreciate the
effort, and it does give me some ideas about things to try.

However, if I change your example buffer slightly (for clarity) to this:


   
   arab  foo 
   arab  bar 
   
   
   english  eggs 
   english  ham 
   
   
note text ONE
note text TWO
   


your code runs and gives me this:

[div a]
arab [footnote1] arab [footnote2]
[div a]
[div b]
english [note1 eggs ] english [note2 ham ]
[div b]

1 foo
2 bar

but what I'm trying for is this:

[div a]
arab [ foo1 ] arab [ bar2 ]
[div a]
[div b]
english [ eggs1 ] english [ ham2 ]
[div b]

1 note text ONE
2 note text TWO
___
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] Bibliography: `\setupheadtext[de][pubs=Quellen]` does not update the table of contents.

2011-12-14 Thread Hans Hagen

On 13-12-2011 14:18, Paul Menzel wrote:

Dear ConTeXt folks,


the following minimal example changes the default text for the title for
the publication list [1]. In the table of content there is still the
default name though.

 \mainlanguage[de]
 \setupbibtex[database=sample, sort=author]
 \setuppublications[alternative=apa, criterium=all] % Show reference 
numbers in the generated list.
 \setupheadtext[de][pus=Quellen]

 \starttext

 \completecontent
 \section{Example}
 As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric 
program.

 \blank[4*big]
 \CONTEXT\ \contextmark\ \contextversion

 \completepublications
 \stoptext

A solution for this problem would be much appreciated.


just use \starttitle [title=] ...


-
  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] Bibliography: `\setupheadtext[de][pubs=Quellen]` does not update the table of contents.

2011-12-14 Thread Hans Hagen

On 13-12-2011 14:18, Paul Menzel wrote:

Dear ConTeXt folks,


the following minimal example changes the default text for the title for
the publication list [1]. In the table of content there is still the
default name though.

 \mainlanguage[de]
 \setupbibtex[database=sample, sort=author]
 \setuppublications[alternative=apa, criterium=all] % Show reference 
numbers in the generated list.
 \setupheadtext[de][pus=Quellen]

 \starttext

 \completecontent
 \section{Example}
 As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric 
program.

 \blank[4*big]
 \CONTEXT\ \contextmark\ \contextversion

 \completepublications
 \stoptext

A solution for this problem would be much appreciated.


Thanks,

Paul


[1] 
http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf



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


Re: [NTG-context] \placelist summary alternative solution

2011-12-14 Thread Hans Hagen

On 14-12-2011 17:50, Felix Ingram wrote:

I've ended up delving into the dark art that is Lua for this solution:

\define[0]\SummaryTable{%
\placetable[force, none]{}{%
\setupTABLE[frame=off]
\bTABLE
\bTABLEhead
\bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR
\eTABLEhead
\bTABLEbody
\startluacode
 for k, v in ipairs(structures.lists.collected) do
 if v.metadata.kind == "section" and v.metadata.name == "section" then
 context.bTR()
 context.bTD()
 context("REFREF")
 context.eTD()
 context.bTD()
 context(v.titledata.title)
 context.eTD()
 context.bTD()
 context(v.references.realpage)
 context.eTD()
 context.eTR()
 end
 end
\stopluacode%
\eTABLEbody
\eTABLE
}%
}%
\starttext
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\SummaryTable
\stoptext

This works to some degree though I have the following questions about it:

1. Is there a way to access a document global variable from Lua? I
will use this to replace the REFREF text.


\startluacode

document.myvariables = { }

document.myvariables.whatever = "SOME TEXT"

\stopluacode

...

context(document.myvariables.whatever)


2. v.references.realpage isn't the actual page of the title. How can I
access the page number that would have appeared in the ToC? (I've
restarted the page numbering in my master doc, the above example works
fine)


as you're looking into the code ... search for helpers like

lists.prefixedpage

keep in mind that this is not yet an official api (although it will 
probably stay this way)





3. Is there a way to store some metadata along with my title? I'd like
something similar to this:
\myheader[author=me, date=2011-12-14]{This is my header with meta-data}
and then be able to access it from Lua again.


it's called userdata (third argument to \startchapter etc) .. it travels 
with the rest


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] xml attribute conditional

2011-12-14 Thread Hans Hagen

On 14-12-2011 19:33, Jon Crump wrote:

@xml:id==string.sub('#N020-18', 2) ->
 (ll.at and ll.at['xml:id'])==string.sub('#N020-18', 2) ! Missing
number, treated as zero.



lua error with sub .. not sure what you want t o test here

indeed an error will prevent the multipass file to be saved (feature)


Hans


Thanks Hans, It's good to know the --result problem is not a bug, but
a feature. My problem then arises from my use of \note as opposed to
\footnote. In processing a  tag in the xml, I need to test if the
current ref node has an ancestor  with attribute:
@xml:id='apr_engl'. If it does, I need to create a \footnote whose
text comes from a  element with attribute xml:id='N020-18', if
it does not, I need to create a \note whose reference number
corresponds to the one created by \footnote and thus points to the
same footnote contents:


 <...>
 referenced text
 <...>


 <...>
 referenced text
 <...>


footnote contents

To result in:

arabic text (1)
english text (1)
(1) footnote content

Currently I'm getting:

arabic text ??
english text (1)
(1) footnote content

Document order problem maybe?


probably a too complex solution ... this is an alternative:


\startbuffer[test]


a  a 
a  a 


b  b 
b  b 


ONE
TWO


\stopbuffer

\startxmlsetups xml:somesetups
\xmlsetsetup{#1}{text|div|ref|note}{xml:*}
\xmlsetsetup{#1}{div[@type='a']}{xml:div:a}
\xmlsetsetup{#1}{div[@type='b']}{xml:div:b}
\xmlsetsetup{#1}{div[@type='c']}{xml:div:c}
\stopxmlsetups

\xmlregistersetup{xml:somesetups}

\startluacode
function document.preprocess()
local notes = { }
for e in lxml.collected("main","note") do
notes[e.at["xml:id"]] = 0
end
for e in lxml.collected("main","ref") do
local target = e.at["target"]
if target then
local id = string.gsub(target,"^#","")
local n = notes[id]
if n then
n = n + 1
e.at.footnote = n
notes[id] = n
e.at["xml:id"] = id
end
end
end
end
\stopluacode

\startxmlsetups xml:text
\ctxlua{document.preprocess()}
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:div:a
\par[div a]\par
\xmlflush{#1}
\par[div a]\par
\stopxmlsetups

\startxmlsetups xml:div:b
\par[div b]\par
\xmlflush{#1}
\par[div b]\par
\stopxmlsetups

% \startxmlsetups xml:div:c
% \par[div c]\par
% \xmlflush{#1}
% \par[div c]\par
% \stopxmlsetups
%
% \startxmlsetups xml:note
%   [note \footnote[\letterhash\xmlatt{#1}{xml:id}]{\xmlflush{#1}}]
% \stopxmlsetups
%
% \startxmlsetups xml:ref
%   [ref : \note[\xmlatt{#1}{target}] ]
% \stopxmlsetups

\startxmlsetups xml:div:c
\stopxmlsetups

\startxmlsetups xml:note
\stopxmlsetups

\startxmlsetups xml:ref
\doifsomething{\xmlatt{#1}{footnote}} {
\doifelse{\xmlatt{#1}{footnote}} {1} {
[footnote \footnote[\xmlatt{#1}{xml:id}]{\xmlflush{#1}}]
} {
[note \note[\xmlatt{#1}{xml:id}]{\xmlflush{#1}}]
}
}
\stopxmlsetups

\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext


(if it works ... wikify it)


-
  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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Peter Münster
On Wed, Dec 14 2011, Hagmann Jörg wrote:

> Another possibility is to use org-mode in Emacs, export to Latex and from
> there to ConTeXt. In my case, the last step is accomplished by a home-brewed
> ruby script which covers the most common layout commands

Have you already considered writing `org-context.el'?

-- 
   Peter
___
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] xml attribute conditional

2011-12-14 Thread Jon Crump
>> @xml:id==string.sub('#N020-18', 2) ->
>>     (ll.at and ll.at['xml:id'])==string.sub('#N020-18', 2) ! Missing
>> number, treated as zero.
>
>
> lua error with sub .. not sure what you want t o test here
>
> indeed an error will prevent the multipass file to be saved (feature)
>
>
> Hans

Thanks Hans, It's good to know the --result problem is not a bug, but
a feature. My problem then arises from my use of \note as opposed to
\footnote. In processing a  tag in the xml, I need to test if the
current ref node has an ancestor  with attribute:
@xml:id='apr_engl'. If it does, I need to create a \footnote whose
text comes from a  element with attribute xml:id='N020-18', if
it does not, I need to create a \note whose reference number
corresponds to the one created by \footnote and thus points to the
same footnote contents:


<...>
referenced text
<...>


<...>
referenced text
<...>

...
footnote contents

To result in:

arabic text (1)
english text (1)
(1) footnote content

Currently I'm getting:

arabic text ??
english text (1)
(1) footnote content

Document order problem maybe?

thanks,
Jon
___
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] MnSymbol (math) support in ConTeXt

2011-12-14 Thread Peter Park Nelson
Minion Math does appear to be ideal for this application.

However, given current budget constraints, it is unlikely that my
department can purchase Minion Math for this project (an open-access
academic journal). We already own Minion Pro. Thus my interest in MnSymbol.

If adding MnSymbol support were only a matter of tedious manual labor, I
would be willing to give it a try, but without an understanding of font
internals I don't know where to start. Perhaps someone can suggest
resources for learning?

Also, I see that there are MnSymbol files in
http://minimals.contextgarden.net/current/fonts/extra/mnsymbol/ but these
don't appear to be included in my ConTeXt Standalone installation. Does
anyone know about them?

PPN

On Wed, Dec 14, 2011 at 11:44 AM, Wolfgang Schuster <
schuster.wolfg...@googlemail.com> wrote:

>
> Am 14.12.2011 um 18:38 schrieb Khaled Hosny:
>
> > On Wed, Dec 14, 2011 at 06:16:29PM +0100, Mojca Miklavec wrote:
> >> the same author as MnSymbol:
> >
> > Is he?
>
> No, MnSymbol is from Achim Blumensath and Minion Math from Johannes Küster.
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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 from Texlive

2011-12-14 Thread Philip Brown
I downloaded texlive on Windows from the the July 2011 Tex Collection dvd.



Latex works fine, but I get the following error message when I try to run 
Context:



ConTeXt: problems after [0] pages



Is there some sort of postcompilation I need to do to get Context running?



Regards,



Philip Brown

___
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] MnSymbol (math) support in ConTeXt

2011-12-14 Thread Mojca Miklavec
On Wed, Dec 14, 2011 at 18:44, Wolfgang Schuster wrote:
> Am 14.12.2011 um 18:38 schrieb Khaled Hosny:
>
>> On Wed, Dec 14, 2011 at 06:16:29PM +0100, Mojca Miklavec wrote:
>>> the same author as MnSymbol:
>>
>> Is he?
>
> No, MnSymbol is from Achim Blumensath and Minion Math from Johannes Küster.

Shame on me. I remember Johannes fiddling with Minion shapes and
metafont to type1 conversions since I first met him about 7 year ago,
as well as work on the motionmountain.net book being done in Minion,
using the most complex combinations of LaTeX packages.

But I was obviously wrong. I'm sorry for that.

Mojca
___
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] MnSymbol (math) support in ConTeXt

2011-12-14 Thread Wolfgang Schuster

Am 14.12.2011 um 18:38 schrieb Khaled Hosny:

> On Wed, Dec 14, 2011 at 06:16:29PM +0100, Mojca Miklavec wrote:
>> the same author as MnSymbol:
> 
> Is he?

No, MnSymbol is from Achim Blumensath and Minion Math from Johannes Küster.

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

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


Re: [NTG-context] MnSymbol (math) support in ConTeXt

2011-12-14 Thread Khaled Hosny
On Wed, Dec 14, 2011 at 06:16:29PM +0100, Mojca Miklavec wrote:
> the same author as MnSymbol:

Is he?

Regards,
 Khaled
___
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] MnSymbol (math) support in ConTeXt

2011-12-14 Thread Mojca Miklavec
On Sun, Dec 11, 2011 at 23:32, Peter Park Nelson wrote:
> Hello,
>
> Also, any recommendations of other math fonts suitable for use with Minion
> Pro would be welcome.

Minion Math by the same author as MnSymbol:
http://www.typoma.com/en/fonts.html

Mojca
___
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] \placelist summary alternative solution

2011-12-14 Thread Felix Ingram
I've ended up delving into the dark art that is Lua for this solution:

\define[0]\SummaryTable{%
\placetable[force, none]{}{%
\setupTABLE[frame=off]
\bTABLE
\bTABLEhead
\bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR
\eTABLEhead
\bTABLEbody
\startluacode
for k, v in ipairs(structures.lists.collected) do
if v.metadata.kind == "section" and v.metadata.name == "section" then
context.bTR()
context.bTD()
context("REFREF")
context.eTD()
context.bTD()
context(v.titledata.title)
context.eTD()
context.bTD()
context(v.references.realpage)
context.eTD()
context.eTR()
end
end
\stopluacode%
\eTABLEbody
\eTABLE
}%
}%
\starttext
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\SummaryTable
\stoptext

This works to some degree though I have the following questions about it:

1. Is there a way to access a document global variable from Lua? I
will use this to replace the REFREF text.

2. v.references.realpage isn't the actual page of the title. How can I
access the page number that would have appeared in the ToC? (I've
restarted the page numbering in my master doc, the above example works
fine)

3. Is there a way to store some metadata along with my title? I'd like
something similar to this:
\myheader[author=me, date=2011-12-14]{This is my header with meta-data}
and then be able to access it from Lua again.

Thanks for any help you can give with this.

Felix
___
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] beta

2011-12-14 Thread Hans Hagen

On 14-12-2011 10:16, Romain Diss wrote:

Hi Hans,

Reading the new code (just to see what the clean-up looks like), I saw that a
lot of "intermediate" macros are now named whith a new scheme : underscore
separated words, and something like a namespace in the macro name.
So the question (just for curiosity)... Are there any documents which describe
this new "API" and the recommended way to code in context.


Not yet. Among the reasons for the _ was that we wanted module users to 
use better namespace handling, so best also do it in the core code. 
another was that _ is no longer something special outside math in context.


You need to keep in mind that much code originates was written in the 
time that (1) hash space was limited, (2) memory was lower, (3) 
processors were less powerful. So, the rewrite is a new compromise of 
such constraints. In any case we can now write more readable code which 
also happens to be faster while in the past there were constraints 
preventing this.


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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Hagmann Jörg

On Dec 14, 2011, at 4:38 PM, Chris Lott wrote:

> On Wed, Dec 14, 2011 at 5:31 AM, Hagmann Jörg  wrote:
>> 
>> Another possibility is to use org-mode in Emacs, export to Latex and
>> from there to ConTeXt. In my case, the last step is accomplished by a
>> home-brewed ruby script which covers the most common layout commands
>> (and I'm mentioning that here in the hope that somebody who is more
>> competent will eventually write something useful; or maybe pandoc does
>> that, too?).
>> 
>> This setup allows me to have everything belonging to a project in one
>> textfile, e.g.:
> 
> [***]
> 
> That's quite interesting. Are you willing to share your Ruby script?

Not publicly (too embarrassed), but I'll send it to you tomorrow

Cheers, Jörg
___
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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Chris Lott
On Wed, Dec 14, 2011 at 5:31 AM, Hagmann Jörg  wrote:
>
> Another possibility is to use org-mode in Emacs, export to Latex and
>from there to ConTeXt. In my case, the last step is accomplished by a
>home-brewed ruby script which covers the most common layout commands
>(and I'm mentioning that here in the hope that somebody who is more
>competent will eventually write something useful; or maybe pandoc does
>that, too?).
>
> This setup allows me to have everything belonging to a project in one
>textfile, e.g.:

[***]

That's quite interesting. Are you willing to share your Ruby script? I
have used org-mode a fair amount...

c
--
Chris Lott 
___
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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Chris Lott
On Wed, Dec 14, 2011 at 2:22 AM, Roger Mason  wrote:
>
>> 4) How about X/HTML? this is my lowest level need but, again, it would be 
>> nice.
>
> One option would be to use markdown with pandoc.
>
[...]
>  I mostly write in
> ConTeXt, but if I know I must share with users of word processors then
> markdown + pandoc is a good option.

This is, in fact, what I do now, with the occasional export to--and
massage in--LaTeX. And even when trying ConTeXt lately, I often start
with that route because I much prefer composing raw text in Markdown
where I can.

That said, the RTF export by Pandoc, while not perfect, is a useful
step. I hear Mojca's point about the difficulty of re-integrating RTF
or Word/etc revisions; I share that philosophy. But many of my
colleagues don't. I try to use PDF as the interchange format but many
don't like dealing with them.

None of that is insurmountable, or any knock on ConTeXt, it is just a
consideration to--well--consider. I still have many uses for something
TeX based!

Thanks for the info...

c
--
Chris Lott 
___
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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Hagmann Jörg

On Dec 14, 2011, at 1:31 PM, Mojca Miklavec wrote:

> On Wed, Dec 14, 2011 at 07:14, Chris Lott wrote:
>> 
>> 3) PDF is my primary medium of exchange, though I would like to
>> efficiently exchange docs with colleagues, which might mean getting
>> them into something they can open with their beloved Microsoft Word...
>> is there an RTF output for ConTeXt? this isn't super-high on my list,
>> but it would be nice.
> 
> ConTeXt only support XHTML to some extent. Now that xhtml backend is
> done, creating support for rtf should be a lot easier to do than
> before xhtml export was there, but unless some substantial funding is
> found, it is unlikely to ever be implemented. Honestly I see no reason
> why anyone would want to have RTF. Even if your colleagues get a
> document in RTF and fix a few things, it won't at all be easy to
> integrate that back. tex4ht most probably offers export to RTF, but
> since author's death it is nearly impossible to request any
> substantial feature. I bet that ConTeXt doesn't work with tex4ht any
> more.
> 
> Roger suggested markdown/pandoc. It is limited to some extent, but if
> you are happy with its set of features, you could probably use it for
> export into both RTF and XHMTL. Of course then you can forget about
> lua sugars in ConTeXt ...

Another possibility is to use org-mode in Emacs, export to Latex and from there 
to ConTeXt. In my case, the last step is accomplished by a home-brewed ruby 
script which covers the most common layout commands (and I'm mentioning that 
here in the hope that somebody who is more competent will eventually write 
something useful; or maybe pandoc does that, too?).

This setup allows me to have everything belonging to a project in one textfile, 
e.g.:

* Heading

Notes, Ideas

Lists:
- item 1
- item 2

Tables:
| one | two | three |

Dates:
** TODO <2011-12-14 Wed 15:10>
which I can collect in an agenda

* Manuscript

This section contains a manuscript which I can separately export as:
- textfile
- Latex file
- HTML file
- odt file (for LibreOffice, where it can be saved as a Microsoft doc)

More sophisticated ConTeXt commands that are not provided for can be enclosed in

#+BEGIN_LaTeX
\Context command
#+END_LaTeX

or put behind

#+LATEX: \Context command

They will show up in the final ConTeXt version, but will not, of course, be 
translated into html, odt etc.

** Subsection :noexport:

This section is part of "Manuscript", but will not be exported.

There are many more features, see http://orgmode.org/

Hope this helps, Jörg
___
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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Mojca Miklavec
On Wed, Dec 14, 2011 at 07:14, Chris Lott wrote:
>
> 3) PDF is my primary medium of exchange, though I would like to
> efficiently exchange docs with colleagues, which might mean getting
> them into something they can open with their beloved Microsoft Word...
> is there an RTF output for ConTeXt? this isn't super-high on my list,
> but it would be nice.

ConTeXt only support XHTML to some extent. Now that xhtml backend is
done, creating support for rtf should be a lot easier to do than
before xhtml export was there, but unless some substantial funding is
found, it is unlikely to ever be implemented. Honestly I see no reason
why anyone would want to have RTF. Even if your colleagues get a
document in RTF and fix a few things, it won't at all be easy to
integrate that back. tex4ht most probably offers export to RTF, but
since author's death it is nearly impossible to request any
substantial feature. I bet that ConTeXt doesn't work with tex4ht any
more.

Roger suggested markdown/pandoc. It is limited to some extent, but if
you are happy with its set of features, you could probably use it for
export into both RTF and XHMTL. Of course then you can forget about
lua sugars in ConTeXt ...

> And *what* is
> the deal with xetex? It seems to be the easiest way for accessing all
> my fonts, but it also hasn't been updated for years and, since it is
> tied to an old version of ConTeXt (as far as I can tell) it doesn't
> seem like much of a winner.

In ConTeXt MKIV with LuaTeX it is just as easy to access the fonts as
it is in XeTeX. (It is only in plain LuaTeX that accessing fonts needs
some fiddling.) You get even more flexibility.

With XeTeX there are two major problems:

1.) ConTeXt never took advantages of all of its features. Ever since
LuaTeX came to the scene, support for XeTeX in ConTeXt was pretty much
frozen. XeTeX still works as well as pdfTeX, with the option to load
OTF fonts, but there is no high-level support for some other low-level
language-related features (interchar tokens, ...) or OpenType math
(but that one is broken in XeTeX anyway).

2.) no maintenance of engine (no bugfixing)

Still, XeTeX is able to handle some exotic scripts for which there is
no support in ConTeXt yet, but that shouldn't be an issue for you.

Mojca
___
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] Mailing list archive (archive.contextgarden.net) will be down or at least not updated

2011-12-14 Thread Patrick Gundlach
Hi all,

Mojca has found a way to keep archive.contextgarden.net updated, so you can use 
it again. Her statement about the future of it is still true.

> So: copy of mailing list archive (archive.contextgarden.net) won't be
> updated for at least some time, but there is also a chance that it
> will be completely replaced by a different solution. Not that it would
> be technically impossible to continue updating it, but I think that
> setting up mailing lists has a much higher priority at the moment than
> old archives (which are much better at gmane.org anyway).

Patrick


___
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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Roger Mason
Chris,

Chris Lott  writes:

>
> 3) PDF is my primary medium of exchange, though I would like to
> efficiently exchange docs with colleagues, which might mean getting
> them into something they can open with their beloved Microsoft Word...
> is there an RTF output for ConTeXt? this isn't super-high on my list,
> but it would be nice.

> 4) How about X/HTML? this is my lowest level need but, again, it would be 
> nice.

One option would be to use markdown with pandoc.

http://johnmacfarlane.net/pandoc/

  I mostly write in
ConTeXt, but if I know I must share with users of word processors then
markdown + pandoc is a good option.

Cheers,
Roger
___
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] beta

2011-12-14 Thread Romain Diss
Hi Hans,

Reading the new code (just to see what the clean-up looks like), I saw that a 
lot of "intermediate" macros are now named whith a new scheme : underscore 
separated words, and something like a namespace in the macro name.
So the question (just for curiosity)... Are there any documents which describe 
this new "API" and the recommended way to code in context.

Thanks

-- 
Romain Diss

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

2011-12-14 Thread Andreas Harder

On 14.12.2011, at 00:10, Hans Hagen wrote:

> On 13-12-2011 21:07, Otared Kavian wrote:
>> Hi Hans,
>> 
>> Thanks for the new beta.
>> It seems that with the new beta there is a bug with itemize: no numbers show 
>> up with \item.
>> 
>> \starttext
>> \startitemize[n]
>> \item One
>> \item Two
>> \stopitemize
>> \stoptext
>> 
>> Best regards: OK
> 
> I'll look into it ... \startitem ... \stopitem should be ok.


Hi Hans,

another problem with itemization.

\starttext
  \startitemize[text]
  \item alpha \item beta \item gamma
  \startitem alpha \stopitem
  \startitem beta  \stopitem
  \startitem gamma \stopitem
  \stopitemize
\stoptext


Regards
Andreas
___
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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Pontus Lurcock
Welcome to ConTeXt! I'm a relatively new user so my answers will be
brief and partial, but I'm sure others will be able to expand on them.

On Tue 13 Dec 2011, Chris Lott wrote:

> 1) My work is primarily in the humanities and end-user technologies,
> with small amounts of coding. So mathematics isn't an issue. I do a
> fair amount of highly academic writing (aka: many sections, citations
> [handling this in a sensible way is really important], footnotes) with
> the occasional need for charts, graphs, and photos. In other words,
> I'm not doing the kind of layout one might associate with InDesign or
> the like. I also write many paper letters (personal), poetry, fiction,
> essays, and the like.

This looks to me like a good use case for ConTeXt. I've used it for a
380-page dissertation with the full complement of academic
paraphernalia: footnotes, appendices, table of figures, citations etc.
which all worked well for me. I believe that many others are using
it for similar work.

> 2) That said, I (obviously) have a keen interest in typography, and
> that includes wanting to use some particular typefaces... I've paid
> good money for many of them, so why not?

I've found ConTeXt to be more pleasant than LaTeX for setting up the
layout and typography according to my wishes. (When I used LaTeX I
generally just went with the default layout and accepted that things
would be a little ugly.) ConTeXt is also good about letting you
use your own typefaces -- particularly if they're in OpenType format.

> 3) PDF is my primary medium of exchange, though I would like to
> efficiently exchange docs with colleagues, which might mean getting
> them into something they can open with their beloved Microsoft Word...
> is there an RTF output for ConTeXt? this isn't super-high on my list,
> but it would be nice.
> 
> 4) How about X/HTML? this is my lowest level need but, again, it
> would be nice.

I know that ConTeXt supports direct XHTML output but I'm not sure how
mature it is -- I think someone else will be able to provide a more
complete answer to this.

> So, do you think ConTeXt makes more sense than LaTeX? And *what* is
> the deal with xetex? It seems to be the easiest way for accessing all
> my fonts, but it also hasn't been updated for years and, since it is
> tied to an old version of ConTeXt (as far as I can tell) it doesn't
> seem like much of a winner.

In short, there are two versions of ConTeXt: Mk II (stable, and frozen
for some time now) and Mk IV (actively developed, new betas more than
once a month). Mk II can use pdftex or xetex as the engine; Mk IV uses
luatex, which provides the ‘it just works’ font handling of xetex
alongside a number of other features (chiefly the integration of the
lua scripting language). Despite the worries that may be occasionaed
by the word ‘beta’, Mk IV is pretty stable and definitely the
recommended option these days.

Hope this helps!

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