Re: [NTG-context] XML roundtripping

2019-05-15 Thread Mica Semrick
If your web requirement is single XML files per article, you should be able to 
feed ConTeXt multiple XML files and typeset them as one PDF.

On May 15, 2019 7:35:47 AM PDT, Denis Maier  wrote:
>Our workflow is not settled yet; we're still discussing options. All
>depends upon what is possible ...
>
>That being said, for the purpose of displaying the articles online
>we'll
>need every article in a separate XML file. The question is if and how
>we
>will produce a PDF version containing a whole volume (we'll probably
>need
>one PDF for the whole volume and also PDFs for each article).
>
>One option would be:
>- merge the articles into a single XML,
>- typeset from there
>- split the PDF
>(Hence my question here,
>https://mailman.ntg.nl/pipermail/ntg-context/2019/095011.html).
>
>Another option could be:
>- Typeset each article individually.
>- Get the last page number => in the next article, set the first page
>number to this + 1
>(So, we do not necessarily need to write the page numbers back to the
>XML,
>but we'll somehow need to pass the page number to the next article in
>the
>chain.)
>
>
>Am Mi., 15. Mai 2019 um 14:46 Uhr schrieb Hans Hagen
>:
>
>> On 5/15/2019 12:57 PM, Denis Maier wrote:
>> > Hmm, getting the page number back from the tuc file sound feasible.
>I'll
>> > have to look into this.
>> >
>> > But how would I write the information back to the XML? Is this
>explained
>> > somewhere?
>> all depends on the workflow ... why does it need to be written back?
>>
>>
>> -
>>Hans Hagen | PRAGMA ADE
>>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] PDF/X-1a(2001) ourput.

2017-08-25 Thread Mica Semrick
Hi John,

Have a look at http://wiki.contextgarden.net/PDFX

-m

On August 25, 2017 2:47:47 PM PDT, John Culleton  wrote:
>I need to have context generate the above format. Any hints?
>  
>  
> John Culleton
>  
>  
___
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] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-05-06 Thread Mica Semrick
It’s a plain text format for writing structured documents, based on formatting 
conventions from email and usenet. 

http://commonmark.org

-m

On May 6, 2017 8:42:46 AM PDT, John Culleton  wrote:
> 
>  
>  
>  
>
>
> From: "Hans Hagen" 
>Sent: Saturday, May 6, 2017 4:30 AM
>To: ntg-context@ntg.nl
>Subject: Re: [NTG-context] Module for Markdown: any volunteer to make a
>
>ConTeXt interface?   
>On 5/5/2017 9:54 PM, Aditya Mahajan wrote: > On Thu, 4 May 2017, Mojca 
>Miklavec wrote: > >> Hi, >> >> There's a really nice module for
>processing 
>markdown: >> https://github.com/Witiko/markdown >> that has been
>presented 
>during the TUG meeting and is included in
>  
>  
> Pardon my ignorance but what is markdown?
> 
>  
> John  Culleton
___
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] pdfinfo

2017-03-07 Thread Mica Semrick
Perhaps not the best answer, but exiftool can add that metadata after the fact.

-m

On March 7, 2017 8:55:17 AM PST, Csikos Bela  wrote:
>Dear context users:
>
>In latex I could use \pdfinfo command to add information metadata to
>pdf file:
>Title, Author, Creator, Producer, CreationDate, ModDate, Subject,
>Keywords.
>I found that I can set title, author, subtitle (=subject) and keyword
>with
>\setupinteractions command.
>
>How can I set the remaining ones (CreationDate, ModDate, Creator,
>Producer)?
>
>Thank you in advance,
>
>bcsikos
>
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Suddenly, my font is not used any longer

2017-02-20 Thread Mica Semrick
If you think it is a system problem and not a context one, then:

fc-cache -fv

-m

On February 20, 2017 8:24:07 AM PST, Nicola  wrote:
>Hello everyone,
>I am re-typesetting a mkiv document that uses system fonts for text and
>math (through \definefontfamily). Suddenly, it renders Latin Roman for
>the text. May it be a cache corruption problem? I recall that there's
>a command to clear the font cache, but I cannot remember which.
>
>
>Nicola
>
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
Hi Fabrice,

I believe it is just picking up the context executable from your path. You 
should be able to add the standalone to your path before the texlive version. 
It has been several years since I've run texlive though.

-m

On October 28, 2016 2:57:16 PM PDT, Fabrice Couvreur 
<fabrice1.couvr...@gmail.com> wrote:
>Hi Mica,
>I added this  (custom-set-variables  ' (ConTeXt-Mark-version "IV"))  in
>my
>.emacs and it seems to work, thank you.
>Another question : when I do a C-c C-c is texlive context of 2016 is
>called. How
>to be it standalone context ?
>Fabrice
>
>2016-10-28 19:07 GMT+02:00 Mica Semrick <m...@silentumbrella.com>:
>
>> I haven't checked in a while, since this is already set in my init.el
>> file, but auxtex was using mkii/texexec a few years ago. Have you
>checked
>> you're using mkiv/context?
>>
>> On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur <
>> fabrice1.couvr...@gmail.com> wrote:
>>
>>> Hello,
>>> I just upgraded to emacs24 and am having problems compiling my files
>who
>>> compiled perfectly with emacs23.
>>> I installed AUCTeX with M-x-install package and that's it !
>>> I deleted my old init.el file and start over !
>>> The ~/.emacs.d only contains this :
>>>
>>> fab @ debian: ~ $ cd .emacs.d /
>>> fab @ debian: ~ / .emacs.d $ ls -l
>>> total 8
>>> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list
>>> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA
>>> fab @ debian: ~ / $ .emacs.d
>>>
>>> Consider the following file:
>>> If I make a C-c C-c, all I get is the text in italics, the macro is
>not
>>> compiled.
>>> Thanks,
>>> Fabrice
>>>
>>> % macros=mkvi
>>>
>>> \setupcolors[state=start]
>>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
>>> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]
>>>
>>>
>>> \defineframedtext
>>>   [MyDefinition]
>>>   [before={\blank[line,halfline]},
>>>after={\blank},
>>>frame=off,
>>>background=MyFrame,
>>>width=\textwidth,
>>>height=fit,
>>>location=left,
>>>style=italic]
>>>
>>> \defineoverlay
>>>   [MyFrame]
>>>   [\useMPgraphic{MyFrame}]
>>>
>>> \definelabel
>>>   [Définition]
>>>   [headstyle=\bf\smallcaps]
>>>
>>> \startuseMPgraphic{MyFrame}
>>> path b ;
>>> picture p ;
>>> p := textext.rt("\white\Définition") ;
>>> p := p shifted (2BodyFontSize,OverlayHeight-ypart center
>>> p+.25ExHeight) ;
>>> b := boundingbox p leftenlarged .5EmWidth rightenlarged
>.5EmWidth ;
>>> fill OverlayBox withcolor \MPcolor{MyColorA} ;
>>> fill b withcolor \MPcolor{MyColorB} ;
>>> draw leftboundary OverlayBox ;
>>> draw p ;
>>> setbounds currentpicture to OverlayBox ;
>>>   \stopuseMPgraphic
>>>
>>> \starttext
>>> \startMyDefinition
>>> \input knuth
>>> \stopMyDefinition
>>>
>>> \stoptext
>>>
>>> %%% Local Variables:
>>> %%% mode: context
>>> %%% End:
>>>
>>> --
>>>
>>> If your question is of interest to others as well, please add an
>entry to the Wiki!
>>>
>>> maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> --
>>>
>>>
>> 
>> ___
>> If your question is of interest to others as well, please add an
>entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
>> listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>
>
>
>
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
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] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
I haven't checked in a while, since this is already set in my init.el file, but 
auxtex was using mkii/texexec a few years ago. Have you checked you're using 
mkiv/context?

On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur 
 wrote:
>Hello,
>I just upgraded to emacs24 and am having problems compiling my files
>who
>compiled perfectly with emacs23.
>I installed AUCTeX with M-x-install package and that's it !
>I deleted my old init.el file and start over !
>The ~/.emacs.d only contains this :
>
>fab @ debian: ~ $ cd .emacs.d /
>fab @ debian: ~ / .emacs.d $ ls -l
>total 8
>drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list
>drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA
>fab @ debian: ~ / $ .emacs.d
>
>Consider the following file:
>If I make a C-c C-c, all I get is the text in italics, the macro is not
>compiled.
>Thanks,
>Fabrice
>
>% macros=mkvi
>
>\setupcolors[state=start]
>\definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
>\definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]
>
>
>\defineframedtext
>  [MyDefinition]
>  [before={\blank[line,halfline]},
>   after={\blank},
>   frame=off,
>   background=MyFrame,
>   width=\textwidth,
>   height=fit,
>   location=left,
>   style=italic]
>
>\defineoverlay
>  [MyFrame]
>  [\useMPgraphic{MyFrame}]
>
>\definelabel
>  [Définition]
>  [headstyle=\bf\smallcaps]
>
>\startuseMPgraphic{MyFrame}
>path b ;
>picture p ;
>p := textext.rt("\white\Définition") ;
>p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight)
>;
>b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
>fill OverlayBox withcolor \MPcolor{MyColorA} ;
>fill b withcolor \MPcolor{MyColorB} ;
>draw leftboundary OverlayBox ;
>draw p ;
>setbounds currentpicture to OverlayBox ;
>  \stopuseMPgraphic
>
>\starttext
>\startMyDefinition
>\input knuth
>\stopMyDefinition
>
>\stoptext
>
>%%% Local Variables:
>%%% mode: context
>%%% End:
>
>
>
>
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] texexec in ConTeXt Standalone does not work

2016-10-27 Thread Mica Semrick
Any reason you want to use MKII instead of MKIV?

It looks lime you need to set the environment variable OSFONTDIR, which should 
point to the directory where your fonts are stored.

-m

On October 27, 2016 2:02:10 PM PDT, Asim ConTeXt  
wrote:
>Dear list members,
>I am new to ConTeXt world. I have installed ConTeXt Standalone
>according to
>the instructions given in ConTeXt Standalone with TexWorks
>
>and
>instructions given in Windows Installation
>. I added the
>address of context.exe into the Processing Tools of TeXworks, according
>to
>instruction # 6 in ConTeXt Standalone with TexWorks
>
>and
>compiled a simple ConTeXt document, it works fine. But I want to use
>texexec (MkII), I had installed Ruby according to the instruction 1. I
>added address of texexec.exe to the Processing Tools of TeXworks; but
>when
>I try to compile the simple document, it does not work and gives the
>following warning and stops without giving any output pdf file:
>
>> warning:
>c:/Users/bsee1206/Desktop/ConTeXt/tex/texmf/web2c/texmf.cnf:49:
>> (kpathsea) No cnf value on line: OSFONTDIR =.
>>
>Any suggestions?
>
>
>
>
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Text editors

2016-10-25 Thread Mica Semrick
Hello,

I'm also using emacs with auctex, currently using reftex, but will have a look 
at ebib.

-m

On October 24, 2016 5:14:02 AM PDT, Michael Eidenbenz  
wrote:
>Hi,
>
>I use emacs with the spacemacs distribution.
>To manage my bibliographies (and also images) I use ebib
>(http://joostkremers.github.io/ebib/
>) instead of reftex.
>
>Regards, Michael
>
>> On 24 Oct 2016, at 13:41, Henning Hraban Ramm  wrote:
>> 
>> Hi all,
>> 
>> I just edited http://wiki.contextgarden.net/Text_Editors,
>> reordered, updated, killed some discontinued programs etc.
>> 
>> I didn’t delete wiki pages of outdated apps, though.
>> 
>> There’s still a lot of room for enhancement, e.g. the feature columns
>make no sense this way.
>> 
>> I’d like to know:
>> - What editor(s) do you use for ConTeXt?
>> - Are there any other editors with ConTeXt (not only LaTeX) support?
>> 
>> How about including the vim support files in the distribution (like
>the SciTE support files)?
>> 
>> I recently discovered Textadept, a relative of SciTe’s, also
>available for OSX - did anyone try to adapt SciTE ConTeXt support for
>that?
>> 
>> 
>> Greetlings, Hraban
>> ---
>> http://www.fiee.net
>> http://wiki.contextgarden.net
>> https://www.cacert.org (I'm an assurer)
>> GPG Key ID 1C9B22FD
>> 
>>
>___
>> If your question is of interest to others as well, please add an
>entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>>
>___
>
>
>
>
>
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-15 Thread Mica Semrick
Sorry! I often transpose numbers. Thanks for the correction.

-m

On October 13, 2016 2:20:13 PM PDT, Pablo Rodriguez <oi...@gmx.es> wrote:
>On 10/13/2016 10:57 PM, Mica Semrick wrote:
>> From the pandoc github issues page, looks like they're working on
>> asciidoc. See issue 1465 in the pandoc repo.
>
>Sorry, I didn’t know that AsciiDoc wasn’t supported by pandoc as input
>format.
>
>But it isn’t relevant where the HTML cocde comes from to be handled by
>ConTeXt (as long it is valid XML).
>
>BTW, the right number issue is
>https://github.com/jgm/pandoc/issues/1456.
>
>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://context.aanhet.net
>archive  : http://foundry.supelec.fr/projects/contextrev/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-13 Thread Mica Semrick
>From the pandoc github issues page, looks like they're working on asciidoc. 
>See issue 1465 in the pandoc repo.

-m

On October 13, 2016 3:35:14 AM PDT, "Saša Janiška"  wrote:
>Hello,
>
>I plan to adopt AsciiDoc(tor) as general markup for my writing (web
>content, blog posts, study notes etc.) and I’d prefer to use ConTeXt
>for
>my & wife’s presentations over something like reveal.js, so wonder if
>anyone has some experienec with the AsciiDoc --> ConTeXt (converted by
>Pandoc) toolchaincan?
>
>I use Emacs as my editor (currently on Debian Linux, but soon probably
>on FreeBSD/TrueOS)…
>
>
>Sincerely,
>Gour
>
>-- 
>In the material world, one who is unaffected by whatever good
>or evil he may obtain, neither praising it nor despising it,
>is firmly fixed in perfect knowledge.
>
>___
>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  : http://foundry.supelec.fr/projects/contextrev/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-12 Thread Mica Semrick
I often find adding 'TeX' to my search query to be helpful. Something like 
'ConTeXt TeX margin error'

-m

On October 12, 2016 8:29:45 AM PDT, Yi Qingliang  
wrote:
>can we change name other than context? it is too difficult to search
>it on google :(
>
>On Wed, Oct 12, 2016 at 7:30 PM, Jonas Baggett 
>wrote:
>> Le 10. 10. 16 à 09:24, Hans Hagen a écrit :
>>
>> This will only work when someone takes the lead. If you do that you
>then
>> others will help you. If you need something special on the wiki, just
>> discuss it with Taco and Mojca who deal with the technicalities.
>>
>>
>> Yes that would be great to have a page on the wiki. Then I could
>describe
>> there the goals of the project and elaborate and put there the
>> specifications of the project. Then waiting for some feed-back in
>order to
>> improve the ideas behind the project. When the specifications are
>mature
>> enough, the technological choices could be made and finally I will be
>able
>> to put there a roadmap. At which point it would be easier to know
>what needs
>> to be done and how much time investment will be needed, and what are
>the
>> tasks I can reasonably do for the project and what are those where
>help is
>> welcome. Hopefully there would be other people at that point who
>could share
>> the vision and are willing to help. How do you think about that ?
>>
>> Have a nice afternoon,
>> Jonas
>>
>>
>___
>> 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  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>>
>___
>___
>If your question is of interest to others as well, please add an entry
>to the Wiki!
>
>maillist : ntg-context@ntg.nl /
>http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : http://foundry.supelec.fr/projects/contextrev/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] TEI to context XML mappings?

2016-08-13 Thread Mica Semrick

After doing some research, I stumbled upon saxon-lint 
(https://github.com/sputnick-dev/saxon-lint), a perl program
capable of using xpath3 expressions.

In the crudest form possible:

!# /bin/bash
for ELM in `saxon-lint.pl --xpath "distinct-values(//*/name())" file.xml`
do
echo -e "\\startxmlsetups xml:$ELM \n\t \\xmlflush{#1} \n 
\\stopxmlsetups"
done

I still need to write $ELM into an array to make it do the following:

\startxmlsetups xml:blank:map % xml:[filename] would be also fine
\xmlsetsetup{\xmldocument}
{xml:elements:from:the:variable:elm} % list the results from  saxon-lint
{xml:*}
\stopxmlsetups

That would give me the "blank" mapping file I want, saving me the
trouble of typing out the whole thing every time.

Best,
Mica

Pablo Rodriguez <oi...@gmx.es> @ 2016-02-24 01:10 PST:

> On 02/24/2016 09:20 AM, Hans Hagen wrote:
>> On 2/23/2016 10:26 PM, Mica Semrick wrote:
>>> Reading the docbook thread earlier today reminded me to ask this:
>>>
>>> Is there any feature or script that anyone can share that will read in
>>> an XML document and spit out a blank mapping file?
>>
>> what is a blank mapping file
>
> Just guessing (or that would be useful for me too), a file with the
> following scheme:
>
> \startxmlsetups xml:blank:map % xml:[filename] would be also fine
> \xmlsetsetup{\xmldocument}
> {xml:elements} % all elements used in document listed here
> {xml:*}
>
> \xmlsetsetup{\xmldocument}
> {h2[contains(@class,'author')]} % list also all elements
> {xml:title:author}  % with attributes
> \stopxmlsetups
>
> \xmlregistersetup{xml:pandoc}
>
> \startxmlsetups xml:elements % basic configuration for elements
> \xmlflush{#1}
> \stopxmlsetups
>
> \startxmlsetups xml:title:author % basic configuration for attributes
> \xmlflush{#1}
> \stopxmlsetups
>
> I guess that the usefulness of this is not the actual configuration, but
> to know what you have to configure.
>
> I hope it helps,
>
> Pablo
___
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] book

2016-07-03 Thread Mica Semrick
Congratulations! I published my first book using context back in March :)

On July 3, 2016 5:27:24 AM PDT, Andrea Valle  wrote:
>I’d like to thank Hans and all the community for allowing me to do
>this:
>
>http://www.logos-verlag.de/cgi-bin/engbuchmid?isbn=4017=eng
>
>
>It’s been a pleasure.
>
>Thanks
>
>-a-
>
>--
>Andrea Valle
>--
>CIRMA - StudiUm
>Università degli Studi di Torino
>--> http://www.cirma.unito.it/andrea/
>--> http://www.fonurgia.unito.it/andrea/
>--> http://www.flickr.com/photos/vanderaalle/sets/
>--> http://vimeo.com/vanderaalle
>--> andrea.va...@unito.it
>--
>
>"This is a very complicated case, Maude. You know, a lotta ins, a lotta
>outs, a lotta what-have-yous." 
>(Jeffrey 'The Dude' Lebowski)
>
>
>
>
>
>___
>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
>___
___
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] TEI to context XML mappings?

2016-06-21 Thread Mica Semrick
After doing some research, I stumbled upon saxon-lint 
(https://github.com/sputnick-dev/saxon-lint), a perl program

capable of using xpath3 expressions.

In the crudest form possible:

!# /bin/bash
for ELM in `saxon-lint.pl --xpath "distinct-values(//*/name())" file.xml`
do
echo -e "\\startxmlsetups xml:$ELM \n\t \\xmlflush{#1} \n \\stopxmlsetups"
done

I still need to write $ELM into an array to make it do the following:

\startxmlsetups xml:blank:map % xml:[filename] would be also fine
\xmlsetsetup{\xmldocument}
{xml:elements:from:the:variable:elm} % list the results from 
saxon-lint

{xml:*}
\stopxmlsetups

That would give me the "blank" mapping file I want, saving me the
trouble of typing out the whole thing every time.

Best,
Mica

On 02/24/2016 01:10 AM, Pablo Rodriguez wrote:

On 02/24/2016 09:20 AM, Hans Hagen wrote:

On 2/23/2016 10:26 PM, Mica Semrick wrote:

Reading the docbook thread earlier today reminded me to ask this:

Is there any feature or script that anyone can share that will read in
an XML document and spit out a blank mapping file?


what is a blank mapping file


Just guessing (or that would be useful for me too), a file with the
following scheme:

\startxmlsetups xml:blank:map % xml:[filename] would be also fine
\xmlsetsetup{\xmldocument}
{xml:elements} % all elements used in document listed here
{xml:*}

\xmlsetsetup{\xmldocument}
{h2[contains(@class,'author')]} % list also all elements
{xml:title:author}  % with attributes
\stopxmlsetups

\xmlregistersetup{xml:pandoc}

\startxmlsetups xml:elements % basic configuration for elements
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:title:author % basic configuration for attributes
\xmlflush{#1}
\stopxmlsetups

I guess that the usefulness of this is not the actual configuration, but
to know what you have to configure.

I hope it helps,

Pablo


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

2016-04-21 Thread Mica Semrick
Thank you, this is much appreciated!

Best,
Mica

On April 21, 2016 12:41:26 AM PDT, "Meer, Hans van der" <h.vanderm...@uva.nl> 
wrote:
>A week ago I posted here by accident part of a private conversation (in
>Dutch) with Hans Hagen. I already apologized for this.
>
>On 15 Apr 2016, at 00:47, Mica Semrick
><m...@silentumbrella.com<mailto:m...@silentumbrella.com>> wrote:
>
>I'm interested in this thread too... But I'm american, so English only.
>I appreciate your understanding!
>
>
>From reactions I understood that other people are interested in this
>subject of \xmlinclude too, but at that moment I could not produce a
>coherent story.
>After having produced some minimal (1) working, (2)  not working and
>(3) crashing examples, I dare hope that my contribution of these will
>be of some use. And perhaps they will spawn better suggestions and
>better understanding of what happens, because I must confess I am
>somewhat unsure with functional language behaviour, being raised with
>Assembler, Algol, Pascal, Fortran, and so on ;-)
>
>Find below my examples. One can call each of them by commenting out the
>\starthiding.
>The last one can be executed by removing the 's at the front of the
>offending statement.
>Again, I hope this post will be of some use.
>
>Hans van der Meer
>
>contents of file minimal-example.xml:
>
>
>
>Body of first note
>
>
>Body of second note
>
>
>
>Three exampel programs:
>
>\enabletrackers[lxml.loading,lxml.setups]
>\startbuffer[notes-xml]
>
>
>
>
>\stopbuffer
>
>\starthiding
>% Test #1
>\startxmlsetups notes:setups
>\xmlsetsetup{#1}{*}{-}
>\xmlsetsetup{#1}{notes}{notes:*}
>\stopxmlsetups
>\xmlregisterdocumentsetup{notes}{notes:setups}
>\startxmlsetups notes:notes
>\xmlinclude{#1}{include}{file}
>\xmlshow{#1}
>===> number of  = \xmlcount{#1}{note}
>\stopxmlsetups
>\starttext
>Ok with \type{\xmlprocessbuffer{notes}{notes-xml}{notes:notes}}\crlf
>\xmlprocessbuffer{notes}{notes-xml}{notes:notes}
>\blank
>Not ok with \type{\xmlprocessbuffer{notes}{notes-xml}{}}\crlf
>\xmlprocessbuffer{notes}{notes-xml}{}
>\textrule{end of test \#1}
>\stoptext
>\stophiding
>
>\starthiding
>% Test #2
>\startxmlsetups notes:setups
>\xmlsetsetup{#1}{*}{-}
>\xmlsetsetup{#1}{takenotes}{notes:*}
>\stopxmlsetups
>\xmlregisterdocumentsetup{notes}{notes:setups}
>\startxmlsetups notes:takenotes
>\xmlinclude{#1}{include}{file}
>\xmlshow{#1}
>===> number of  = \xmlcount{#1}{note}
>\stopxmlsetups
>\startxmlsetups notes:setups
>\xmlflush{#1}
>\stopxmlsetups
>\starttext
>Nothing with \type{\xmlprocessbuffer{takenotes}{notes-xml}{}}\crlf
>\xmlprocessbuffer{takenotes}{notes-xml}{}
>\blank
>Not ok with \type{\xmlprocessbuffer{notes}{notes-xml}{}}\crlf
>\xmlprocessbuffer{notes}{notes-xml}{}
>\blank
>Not ok with
>\type{\xmlprocessbuffer{notes}{notes-xml}{notes:takenotes}}\crlf
>\xmlprocessbuffer{notes}{notes-xml}{}
>\textrule{end of test \#2}
>\stoptext
>\stophiding
>
>%\starthiding
>% Test #3
>\startxmlsetups notes:setups
>\xmlsetsetup{#1}{*}{-}
>\xmlsetsetup{#1}{notes}{notes:*}
>\stopxmlsetups
>\xmlregisterdocumentsetup{notes}{notes:setups}
>\startxmlsetups notes:notes
>\xmlfilter{#1}{takenotes/include/command(notes:include)}
>\xmlshow{#1}
>===> number of  = \xmlcount{#1}{note}
>\stopxmlsetups
>\startxmlsetups notes:include
>\writestatus{DEBUG}{enter notes: include file
>\xmlattribute{#1}{../include}{file}}
>\xmlinclude{#1}{../include}{file}
>\stopxmlsetups
>\starttext
>\type{\xmlprocessbuffer{notes}{notes-xml}{notes:notes}} will crash
>\xmlprocessbuffer{notes}{notes-xml}{notes:notes}
>\crlf prints in the log:
>\crlf \type{DEBUG > enter notes: include file minimal-example.xml}
>\crlf \type{lxml  > tex > including file 'minimal-example.xml'}
>\crlf \type{lua error ... attempt to index field 'settings' (a nil
>value) ...tail calls}
>\textrule{end of test \#3}
>\stoptext
>\stophiding
>
>
>
>
>
>
>___
>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
>___
___
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 input

2016-04-14 Thread Mica Semrick
I'm interested in this thread too... But I'm american, so English only. I 
appreciate your understanding!

-m

On April 14, 2016 1:56:18 PM PDT, Pablo Rodriguez  wrote:
>Hans,
>
>excuse my top-posting.
>
>I was really interested in this thread. But Dutch isn’t something in
>between English and German (two languages I used to know).
>
>My apologies for the comment, if the message was intended as private.
>
>I’m eager to learn XML in ConTeXt, since the possibilities are less
>than
>with standard (or the other) ConTeXt.
>
>
>Pablo
>
>
>On 04/14/2016 10:30 PM, Meer, Hans van der wrote:
>>> On 14 Apr 2016, at 10:45, Hans Hagen wrote:
>>> [...]
>>> a clue: \xmlinclude
>>>
>> By the way: hoe laad ik de inhoud van een /buffer/ net als van een
>file,
>> is er een buffer equivalent van \xmlinclude?
>> 
>> Hans, het spijt me zeer, maar ik begrijp er geen hout meer van want
>er
>> volgt een crash met een lua-error.
>> Ik lees voor \xmlinclude dat \xmlinclude{NODE}{LPATH}{ATTRIBUTE} de
>file
>> in het attribuut laadt.
>> 
>> Ik heb wat in de code rondgeneusd. 
>> Uit  lxml> tex > including file 'notes-example.xml' 
>> in de log blijkt dat in function
>lxml.include(id,pattern,attribute,options)
>> moet zijn uitgevoerd
>> 
>> if trace_loading then
>> report_lxml("including file %a",filename)
>> end
>> noffiles, nofconverted = noffiles + 1, nofconverted + 1
>> return resolvers.loadtexfile(filename) or ""
>> 
>> Met resolvers tracking komt hier nog tussen:
>> lxml> tex > including file 'notes-example.xml'
>> resolvers   > methods > resolving, method 'finders', how 'uri',
>> handler 'file', argument 'notes-example.xml'
>> resolvers   > resolving > remembering file 'notes-example.xml'
>using
>> hash 'xml::notes-example.xml'
>> resolvers   > files > file finder: 'notes-example.xml' found
>> resolvers   > methods > resolving, method 'loaders', how 'uri',
>> handler 'file', argument 'notes-example.xml'
>> resolvers   > files > file loader: 'notes-example.xml' loaded
>> het lijkt erop dat de gezochte file wel geladen is en dat pas daarna
>> ConTeXt het opgeeft met de error.
>> 
>> De log geeft me hier:
>> 
>> HVDM-NOTE-DEBUG > enter notes:include
>> HVDM-NOTE-DEBUG > ..looking for file notes-example.xml
>> lxml> tex > including file 'notes-example.xml'
>> 
>> lua error   > lua error on line 14 in file
>> /Users/hansm/Documents/TeX/texmf/publications/takenotes/take
>notes.tex:
>> 
>> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428:
>attempt
>> to index field 'settings' (a nil value)
>> stack traceback:
>> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in
>> function 'include'
>> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in
>> function
><...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567>
>> (...tail calls...)
>> 
>> 
>> De navolgende code is toch niet fout?
>> 
>> De main input is
>> 
>> 
>>   
>> 
>> 
>> 
>> De file notes-example.xml bevat slechts
>>  subnodes  etc
>> omsluiten met ... doet niets anders.
>> 
>> Ik doe het volgende (met loading tracker enabled
>> \startxmlsetups notes:takenotes
>>   % Include files and buffers.
>>   \xmlfilter{#1}{/include/command(notes:include)}
>> \stopxmlsetups
>> 
>> \startxmlsetups notes:include
>>   % Include from file.
>>  \doifnot{\xmlatt{#1}{file}}{\empty}
>> {\writestatus{HVDM-NOTE-DEBUG}{..looking for file
>\xmlatt{#1}{file}}
>>  \xmlinclude{#1}{}{file}}
>> \stopxmlsetups
>> 
>> Zelfde crash in de volgende gevallen
>> \xmlinclude{#1}{}{file}
>> \xmlinclude{#1}{.}{file}
>> \xmlinclude{#1}{../include}{file}
>> 
>> met vriendelijke groet
>> Hans van der Meer
>> met vriendelijke groet
>> Hans van der Meer
>
>
>-- 
>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
>___
___
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] Are nested sections possible?

2016-03-11 Thread Mica Semrick
Yes that looks like what I want. Thank you!

On March 11, 2016 1:43:27 AM PST, Hans Hagen  wrote:
>On 3/11/2016 9:08 AM, m...@silentumbrella.com wrote:
>> Greetings,
>>
>> Is it possible to have
>>
>> \starttext
>>
>> \startchapter
>> Hey a chapter!
>> \startsection
>> something.one
>> \startsection
>> someting.one.one
>> \startsection
>> something.one.one.one
>> \stopsection
>> \stopsection
>> \stopsection
>>
>>
>> \stopchapter
>>
>> \stoptext
>>
>> render as:
>>
>> 1. Hey a chapter!
>> 1.1 something.one
>> 1.1.1 something.one.one
>> 1.1.1.1 something.one.one.one
>
>do you mean something like
>
>sections/levels-001.tex
>sections/levels-002.tex
>
>in the test suite?
>
>\starttext
>
>\startstructurelevel [title=first top level]
>
> \startstructurelevel [title=first lower level]
> \startstructurelevel [title=second lower level]
> \startstructurelevel [title=third lower level]
> test
> \stopstructurelevel
> \stopstructurelevel
> \stopstructurelevel
>
> \startstructurelevel [title=first lower level]
> \startstructurelevel [title=second lower level]
> \startstructurelevel [title=third lower level]
> test
> \stopstructurelevel
> \stopstructurelevel
> \stopstructurelevel
>
>\stopstructurelevel
>
>\stoptext
>
>and
>\starttext
>
>\startstructurelevel [title=first top level]
>
> \startstructurelevel [title=first lower level]
> \startstructurelevel [title=second lower level]
> \startstructurelevel [title=third lower level]
> test
> \stopstructurelevel
> \stopstructurelevel
> \stopstructurelevel
>
> \startstructurelevel [title=first lower level]
> \startstructurelevel [title=second lower level]
> \startstructurelevel [title=third lower level]
> test
> \stopstructurelevel
> \stopstructurelevel
> \stopstructurelevel
>
>\stopstructurelevel
>
>\stoptext
>
>
>-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | 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
>___
___
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] Are nested sections possible?

2016-03-11 Thread Mica Semrick
Hi Pablo,

Sorry for the brevity of my original message, it is quite late.

I'm working on styling an XML dialect, where nesting can go, and often does 
quite deep, and several different section level elements can be allowed to nest 
within each other. If nested sections were possible, I wouldn't have to write 
code to try and figure out how deep a nested is; ConTeXt would know and would 
number the sections accordingly.

-m 

On March 11, 2016 12:36:01 AM PST, Pablo Rodriguez  wrote:
>On 03/11/2016 09:08 AM, m...@silentumbrella.com wrote:
>> Greetings,
>> 
>> Is it possible to have
>> [...] 
>> render as:
>> 
>> 1. Hey a chapter!
>> 1.1 something.one
>> 1.1.1 something.one.one
>> 1.1.1.1 something.one.one.one
>
>Sorry, Mica, but which is the gain in nesting sections (whether
>possible
>or not) over using subsections and subsubsections?
>
>I can hardly imagine the sense in the point you’re making. (Sorry, it
>must be my fault.)
>
>Let me know what I am missing. Best wishes,
>
>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
>___
___
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] new user needs help with ConTeXt installation and configuration

2016-03-09 Thread Mica Semrick
wiki.contextgarden.net/ConTeXt_Standalone is the install page.

On March 9, 2016 1:20:04 PM PST, "L.S.-Soc" <axteff...@gmail.com> wrote:
>i think it could be of interest to others since it would help to make
>an 
>up-to-date installation instruction. many google results seem outdated 
>and even on contextgarden there are multiple installation instructions 
>that in the end don't help me with my problems...
>
>ok, so i searched around on contextgarden but i don't know where to add
>
>an entry... what do you mean exactly? the ConTeXt group 
>http://group.contextgarden.net/ or rather something different?
>
>Am 09.03.2016 um 22:08 schrieb Mica Semrick:
>> The wiki at contextgarden.net <http://contextgarden.net> should be of
>
>> help.
>>
>> On March 9, 2016 1:04:53 PM PST, "L.S.-Soc" <axteff...@gmail.com>
>
>> wrote:
>>
>> hey guys, this is my first mail here so please bear with me.
>>
>> i read on TeX exchange that it's best to subscribe to this
>mailing list
>> in order to get help with ConTeXt. but since i only see advanced
>stuff
>> related posts i would like to ask politely if this is the right
>place to
>> ask noob questions or should i go to another place?
>>
>> thanks in advance,
>>
>> sebastian
>>
>
>>
>> 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
>>
>
>>
>>
>___
>> 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
>>
>___
>
>
>
>
>___
>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
>___
___
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] new user needs help with ConTeXt installation and configuration

2016-03-09 Thread Mica Semrick
The wiki at contextgarden.net should be of help.

On March 9, 2016 1:04:53 PM PST, "L.S.-Soc"  wrote:
>hey guys, this is my first mail here so please bear with me.
>
>i read on TeX exchange that it's best to subscribe to this mailing list
>
>in order to get help with ConTeXt. but since i only see advanced stuff 
>related posts i would like to ask politely if this is the right place
>to 
>ask noob questions or should i go to another place?
>
>thanks in advance,
>
>sebastian
>___
>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
>___
___
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] TEI to context XML mappings?

2016-02-26 Thread Mica Semrick
> You want to autogenerate that? That could become quite huge (And 
> probably most would be discarded later anyway of you want all 
> permutations of elements and attributes)

Just elements would work for me.

Best,
M

On February 26, 2016 1:00:03 AM PST, Hans Hagen  wrote:
>On 2/26/2016 8:52 AM, Pablo Rodriguez wrote:
>> On 02/25/2016 10:48 AM, Hans Hagen wrote:
>>> [...]
>>> i'm still puzzled what you want
>>
>> Hans,
>>
>> I’m only guessing (after testing the XML analyzing ability that you
>> discovered us with a single XML file).
>>
>> The analysis is important, but after that I have to write the actual
>> environment.
>>
>> I think that the basic structure that I sent in
>> https://mailman.ntg.nl/pipermail/ntg-context/2016/084582.html is
>useful
>> to avoid writing myself the environment.
>
>You want to autogenerate that? That could become quite huge (And 
>probably most would be discarded later anyway of you want all 
>permutations of elements and attributes)
>
>> I mean, of course I have to add the relevant commands to handle in
>> ConTeXt each element. But with the basic scheme, I know which
>elements
>> (in the broadest sense) I have to setup.
>>
>> I want to avoid writing the whole element list in the environment by
>> hand. But I may be doing wrong (this is totally new to me).
>>
>> Or do you write (type) each environment from scratch after using the
>> report generated by ConTeXt?
>
>We just start with the trivial things and then look at the specific 
>structures. We get either relative simple html like xml or we get quite
>
>complex educational markup, with quite demanding rendering and multiple
>
>products. The good news is that the number of elements is always
>limited 
>(analyzing would not really work well because it can be that thousands 
>of files need to be loaded and merged which itself is not a problem,
>but 
>one then always need to interpret what needs to get loaded).
>
>Hans
>
>-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | 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
>___
___
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] TEI to context XML mappings?

2016-02-24 Thread Mica Semrick
> I don't know if the "blank mapping file" as conjectured by Pablo is a useful 
> idea

I find extremely useful. When I go to style some XML file, I don't have to type 
all of that stuff or study the XML file to find out what elements are 
contained. This feature will make it extremely easy to get something functional 
very quickly.

-m

On February 24, 2016 4:05:52 AM PST, "Thomas A. Schmitz" 
 wrote:
>On 02/24/2016 11:26 AM, Hans Hagen wrote:
>>
>> i added the files to the beta
>
>Great, it works now and is a fantastic tool! I was thinking of writing 
>something similar myself, but of course, you had already anticipated 
>this wish... I'll try to see if I can make sense of s-xml-analyzers.lua
>
>and come up with different visualizations (what I had in mind was a 
>table listing the elements, all elements contained in them and all 
>attributes used). I don't know if the "blank mapping file" as 
>conjectured by Pablo is a useful idea, but I guess it would be trivial 
>to implement that as well.
>
>Thanks and all best
>
>Thomas
>___
>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
>___
___
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] TEI to context XML mappings?

2016-02-24 Thread Mica Semrick
Thank you! And sorry for my poor description.

Best, 
Mica

On February 24, 2016 2:26:55 AM PST, Hans Hagen  wrote:
>On 2/24/2016 11:11 AM, Thomas A. Schmitz wrote:
>> On 02/24/2016 10:52 AM, Hans Hagen wrote:
>>>
>>> context --extra=xml --analyze yourfile.xml
>>
>> Hmm, that sounds great, however, with the latest 'n greatest:
>>
>> resolvers   > modules > 'xml-analyzers' is not found
>
>i added the files to the beta
>
>-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | 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
>___
___
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] TEI to context XML mappings?

2016-02-23 Thread Mica Semrick
Reading the docbook thread earlier today reminded me to ask this: 

Is there any feature or script that anyone can share that will read in an XML 
document and spit out a blank mapping file?

Thanks!

-m
___
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] Awesome Fonts in item lists

2015-11-04 Thread Mica Semrick
Sure, you can grab the otf version of font awesome and load it like any other 
font.

-m

On November 4, 2015 10:06:48 AM PST, Romain Diss  wrote:
>> I'm not a font expert with ConteXt so maybe my question is trivial
>but
>> is there a simple way to use Font Awesome Icons in ConTeXt, for
>example
>> as symbols in an item list.
>I forgot to give a link for those who doesn't know Font Awesome:
>https://fortawesome.github.io/Font-Awesome/cheatsheet/
>
>-- 
>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
>___

___
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] simplefonts not working with Debian 8.1

2015-06-22 Thread Mica Semrick
And after troubleshooting my shell further, something was inserting $OSFONTDIR. 
Everything is working now, sorry for the noise.

Best,
Mica

On June 22, 2015 12:23:35 AM PDT, Mica Semrick m...@silentumbrella.com wrote:
Hello list,

I'm having trouble getting system fonts to load with simplefont on
Debian 8.1. I'm not exactly sure how to troubleshoot this issue. This
worked when Debian Jessie was still 'testing' but now fails on a
machine it was working on and on a fresh install. All my fonts are in
~/.fonts and Libre Office Writer can see all the fonts and fc-list
shows them as well.

In my document, I'm loading fonts like this:

\definefontfamily [mainface] [rm] [EB Garamond]
\definefontfamily[mainface][sans][Gill Sans]

\setupbodyfont[mainface,11pt]
\setupbodyfontenvironment[default][em=italic]

The log file says:

fontspreloading modern-designsize (math)
fontstypescripts  unknown library 'modern-designsize'
fonts'fallback modern-designsize mm 11pt' is loaded
fontspreloading modern-designsize (mono)
fonts'fallback modern-designsize tt 11pt' is loaded
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-rm-tf-0--0'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mr--3'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mr--2'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mr--1'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mb--3'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mb--2'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mb--1'

Any direction I can take to troubleshoot this would be of great help!

Thank you for your time.

Best,
Mica
___
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
___

___
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] simplefonts not working with Debian 8.1

2015-06-22 Thread Mica Semrick

Hello list,

I'm having trouble getting system fonts to load with simplefont on Debian 8.1. 
I'm not exactly sure how to troubleshoot this issue. This worked when Debian 
Jessie was still 'testing' but now fails on a machine it was working on and on 
a fresh install. All my fonts are in ~/.fonts and Libre Office Writer can see 
all the fonts and fc-list shows them as well.

In my document, I'm loading fonts like this:

\definefontfamily [mainface] [rm] [EB Garamond]
\definefontfamily[mainface][sans][Gill Sans]

\setupbodyfont[mainface,11pt]
\setupbodyfontenvironment[default][em=italic]

The log file says:

fontspreloading modern-designsize (math)
fontstypescripts  unknown library 'modern-designsize'
fonts'fallback modern-designsize mm 11pt' is loaded
fontspreloading modern-designsize (mono)
fonts'fallback modern-designsize tt 11pt' is loaded
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-rm-tf-0--0'
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-mm-mr--3'
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-mm-mr--2'
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-mm-mr--1'
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-mm-mb--3'
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-mm-mb--2'
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as 
'mainface-11pt-mm-mb--1'

Any direction I can take to troubleshoot this would be of great help!

Thank you for your time.

Best,
Mica
___
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] System fonts not loading

2015-04-27 Thread Mica Semrick

Hi Hans,

That did not seems to solve the problem. I'll assume there is a problem elsewhere with my 
system, unless there is anything else I can try. It is strange, as this worked before 
when Debian Jessie was still testing.

Thanks,
Mica

On 04/27, Hans Hagen wrote:

On 4/26/2015 11:57 PM, Mica Semrick wrote:

Hello,

I seem to be having some trouble getting the system fonts to load from
my Debian Jessie system.

I'm using:

mica@box:~/Working$ context -version

mtx-context | ConTeXt Process Management 0.61
mtx-context |
mtx-context | main context file:
/home/mica/.context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2015.04.18 14:41

and OSFONTDIR is set and all the fonts I want to use are in ~/.fonts:

mica@box:~/Working$ echo $OSFONTDIR
/home/mica/.fonts/

Usually when I run into font problems or add a new font, I run:

fc-cache -fv
mtxrun --generate
context --make

This has worked for some time, however now it will not. Consider the
following:

\definefontfamily [junction] [rm] [Junction Regular]
\definefontfamily [junction] [mm] [Latin Modern Math]

\setupbodyfont[junction]

\starttext

\input ward \bf \input ward
\tf \input ward \bf \input ward
\stoptext

which results in a pdf with Latin Modern.

mtxrun --script fonts --list --all doesn't seem to be seeing the OS
fonts, but sees all of ConTeXt's fonts. However, fc-list : family (which
will list all the system fonts known by fc-cache) shows all the fonts as
available.


mtxrun --script --reload -force

normally this is run automatically (in a fast mode) but there can be 
cases where it needs a full scan esp when fonts are moved.


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
___

___
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] System fonts not loading

2015-04-26 Thread Mica Semrick

Hello,

I seem to be having some trouble getting the system fonts to load from my 
Debian Jessie system.

I'm using:

mica@box:~/Working$ context -version

mtx-context | ConTeXt Process Management 0.61
mtx-context |
mtx-context | main context file: 
/home/mica/.context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2015.04.18 14:41

and OSFONTDIR is set and all the fonts I want to use are in ~/.fonts:

mica@box:~/Working$ echo $OSFONTDIR
/home/mica/.fonts/

Usually when I run into font problems or add a new font, I run:

fc-cache -fv
mtxrun --generate
context --make

This has worked for some time, however now it will not. Consider the following:

\definefontfamily [junction] [rm] [Junction Regular]
\definefontfamily [junction] [mm] [Latin Modern Math]

\setupbodyfont[junction]

\starttext

\input ward \bf \input ward
\tf \input ward \bf \input ward
\stoptext

which results in a pdf with Latin Modern.

mtxrun --script fonts --list --all doesn't seem to be seeing the OS fonts, but 
sees all of ConTeXt's fonts. However, fc-list : family (which will list all the 
system fonts known by fc-cache) shows all the fonts as available.

Thank you for any help.

Best,
Mica
___
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] the new simplefonts stuff

2014-09-04 Thread Mica Semrick
On Debian, you can try: 
fc-list : family
to list the family name. I was playing with this last night on my Debian Jessie 
system. 

The colon is a wildcard operator that will match all fonts on the system. I 
usually just grep the results for what I need.

You may want to refresh the font cache, with
fc-cache -fv

Best,
Mica

On September 4, 2014 12:15:39 AM PDT, Sandra Snan 
sandra.s...@idiomdrottning.org wrote:
Thank you so much for your help, guys!

On Thu, 4 Sep 2014 00:21:22 +0200, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:
 Am 03.09.2014 um 21:40 schrieb Joshua Krämer
joshua.krae...@gmail.com:
[...]
  The only name which works in ConTeXt is the family name (which can
be
  seen in FontForge): Swis721 BT, note the single s.  However,
this
  name is *not* shown in the mtxrun output.

Something I realized as I was messing around waiting for fontforge to
install is that, at least for fonts that come with *.afm metric files
and *.pfb files,, you can look at them for some info. Looking at
ubkl8a.afm I see:

ellen% grep Name
/usr/share/fonts/type1/texlive-fonts-recommended/ubkl8a.afm
FontName URWBookmanL-Ligh
FullName URW Bookman L Light
FamilyName URW Bookman L

The same info is similarly ascii-encoded in the pfb file. But when
fontforge had installed (I needed it to look at the otf and ttf fonts
in
my example) I double checked and found the same info.

 
 The family name is shown when you use the info option, e.g.
 
 mtxrun --script font --list --info --all texgyrepagella*

This was one of the first things I tried.

ellen% mtxrun --script fonts  --info --list --all
--pattern='bookmanlligh$'|grep name
mtx-fonts   | fontname: urwbookmanlligh
mtx-fonts   | fullname: urwbookmanlligh
mtx-fonts   | filename: ubkl8a.afm

Not really any of the same names even though it finds the same file.

I don't have Macintosh but in Inkscape the name shows up as URW Bookman
L and the font works there. I have Debian.

ellen% context --version|grep version
mtx-context | current version: 2014.05.21 22:04

I guess I'm missing something that will in hindsight look obvious...

Sandra

Example follows.

% Uncomment one of the \definefontfamily lines.

%% Just as a test for \definefontfamily, which works, text shows up in
%% DejaVu Serif which is a ttf font.
% \definefontfamily [five] [serif] [DejaVu Serif]

%% This is what fontforge reports as the family name for
%% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx,
which
%% is an otf font.
% \definefontfamily [five] [serif] [Baskervaldx]

%% Fontforge called this the ``name for humans'', it didn't fly, text
didn't show up:
% \definefontfamily [five] [serif] [Baskervaldx Regular]

%% This is straight out of the manual, works, text shows up bookman.
%% Wanted this look, but with \definefontfamily.
% \definetypeface [five] [rm] [serif] [bookman]

%% None of these worked. Text doesn't show up at all.
% \definefontfamily [five] [rm] [URW Bookman L Light]
% \definefontfamily [five] [rm] [urwbookmanlligh]
% \definefontfamily [five] [rm] [URWBookmanL-Ligh]
% \definefontfamily [five] [rm] [URW Bookman L]

\setupbodyfont [five]
\starttext
Hello, snow! Won't you go, and return in december?
\stoptext
___
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
___

___
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] Remove left and right offset from nested frames?

2014-09-02 Thread Mica Semrick
Thanks Wolfgang, that worked well.

Are there more reasons to use start  stop over start{}?

On August 31, 2014 9:32:31 PM PDT, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:

Am 01.09.2014 um 00:18 schrieb Mica Semrick m...@silentumbrella.com:

 Hello!
 
 Given: 
 \starttext
 

\framed[frame=on,width=local,offset=0in,loffset=0in,roffset=0in,frameoffset=0in]{

Add a % after the {.

 \framed
  [frame=on,
   location=middle,
   align={flushleft,nothyphenated,verytolerant}] % maybe also stretch
  {%
 {\tfd My Name Here}
 }
 \hfill
 \framed
  [frame=on,
   location=middle,
   align={flushright,nothyphenated,verytolerant}] % maybe also stretch
  {%
 1234 Tree Ave. \#407, Beach City, CA 99876 \\
 (123) 456-7890 \ \bullet \
\goto{m...@email.com}[url(mailto:m...@email.com)]
 }

Add a % after the }.

 }\stoptext
 The two nested \framed commands are aligned as I'd like them, but I'd
like to remove the small gaps so the text in the first nexted frame
sits flush to the left of the text area and the second framed sits
flush right to the text area. In other words, I'd like to remove the
small gaps from the left and right of the frames. 
 Is that possible?

You forgot a few comment signs in your code which can be avoided when
you \startframed … \stopframed instead of \framed{…}.

\starttext

\startframed[frame=on,width=local,offset=0pt]
   
 \startframed[frame=on,location=middle,align={flushleft,nothyphenated,verytolerant},foregroundstyle=\tfd]
   My Name Here
   \stopframed
   \hfill
   
 \startframed[frame=on,location=middle,align={flushright,nothyphenated,verytolerant}]
   1234 Tree Ave. \#407, Beach City, CA 99876\\
   (123) 456-7890 \hspace[medium] \symbol[bullet] \hspace[medium]
\goto{m...@email.com}[url(mailto:m...@email.com)]
   \stopframed
\stopframed

\stoptext

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
___

___
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] Remove left and right offset from nested frames?

2014-08-31 Thread Mica Semrick

Hello!

Given: 


\starttext

\framed[frame=on,width=local,offset=0in,loffset=0in,roffset=0in,frameoffset=0in]{
\framed
  [frame=on,
   location=middle,
   align={flushleft,nothyphenated,verytolerant}] % maybe also stretch
  {%
{\tfd My Name Here}
}
\hfill
\framed
  [frame=on,
   location=middle,
   align={flushright,nothyphenated,verytolerant}] % maybe also stretch
  {%
1234 Tree Ave. \#407, Beach City, CA 99876 \\
(123) 456-7890 \ \bullet \ \goto{m...@email.com}[url(mailto:m...@email.com)]
}
}\stoptext
The two nested \framed commands are aligned as I'd like them, but I'd like to remove the small gaps so the text in the first nexted frame sits flush to the left of the text area and the second framed sits flush right to the text area. In other words, I'd like to remove the small gaps from the left and right of the frames. 


Is that possible?

Best,
Mica
___
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 as source (was: E-books and XML)

2014-08-28 Thread Mica Semrick
The best commercial XML editor is oxygenxml IMHO. If you need free, look at 
xmlmind.

-m

On August 27, 2014 7:03:06 AM PDT, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:
Hello Thomas,

I'm just curious:

- Which editor(s) (including commercial one(s)) do you usually use to
create XML source for Ctx? (Under Windows?)

- XML input vs. .tex (.cld) source:

IMHO, when one needs to program parts of Ctx source, it's better to use
TeX source/language combined with Lua or CLD.

Or - is it possible to program anyhow in XML source (Lua)?

I have no practical experience with (manual) creation of XML input
files for Ctx (yes, of course, there are some .xml sources generated by
other programs).

So, I can imagine one prepares source for Ctx as XML when he creates
something belletristic-like;
when one needs to process many products of other programs, plus to add
comments, reports or so, something programmable is necessary;
so, IMHO, XML might be useful for the latter case providing a)
programming capabilities and b) good XML editor.

Best regards,

Lukas


On Tue, 26 Aug 2014 20:12:25 +0200, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:


 On 26 Aug 2014, at 20:04, Hans Hagen pra...@wxs.nl wrote:

 To chime in: xml input facilitates the separation of content and
display. There are many tools which will validate xml as you type. Your
context skills will not be lost - if you have invested years in
learning to code, you will still be able to do this in your environment
files. John's argument does not make sense to me.  If someone new to
context asked me, I think I would advise her or him to use xml input
which is more versatile and easier to proofread for a beginner. And if
one day in 20 years she decides she wants to use another tool for her
files, it’s much easier to convert xml.


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

___
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] Hans will be offline for a few weeks

2014-08-11 Thread Mica Semrick
Best of luck 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
___


[NTG-context] Title in margin example from the wiki not working?

2014-08-07 Thread Mica Semrick

Hello,

I'm trying to get the subject heading in the margin. I found this code on the 
wiki, but it is not compiling with the latest version of ConTeXt.

\setuppapersize[A5]
\setuphead
  [subject]
  [alternative=text,distance=0pt,command=\MyHead,style=\sc]

\def\MyHead#1#2{\inmargin{#1 #2}}

\starttext

\subject{First Subject}
\input weisman

\subject{Second Subject}
\input ward

\stoptext

from http://wiki.contextgarden.net/Titles#Titles_in_margin

The error being thrown is  ! Argument of \MyHead has an extra }

Please help!

Best,
Mica
___
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] Title in margin example from the wiki not working?

2014-08-07 Thread Mica Semrick
Thanks Wolfgang. I will test this later tonight and update the wiki when it is 
working.

Best,
Mica
___
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] State of documentation of ConTeXt?

2014-07-17 Thread Mica Semrick
I am also a technical editor and have been using context for about five years. 
Maybe my typesetting needs are simple, but the wiki and manuals have served me  
well. When they don't, this list is quick to respond. Thanks to everyone for 
the effort.

If you want a fund for tech doc, have you considered something like 
bountysource.com?

Best,
Mica
___
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] multiple xmlsetups in multiple files?

2014-07-02 Thread Mica Semrick

Hello list,

I've started making a stylesheet for a fairly large XML vocabulary. The XML vocabulary is already divided into semantic chunks, so I'd like the strucure of my ConTeXt file to match that structure. 


When typesetting an XML document with the command context 
--environment=stylesheet.tex myfile.xml, is it possible to:

(1) use the include or input command to include child tex files?

(2) in each child tex file have its own startxmlsetup command?

Thanks!

Best,
Mica
___
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] placement of graphics across coluums.

2014-05-29 Thread Mica Semrick
Hi John,

Sorry to hear that didn't work. 

Could you not have a box that spans two columns, the put the graphic in the box 
and position the graphic as you wish?

I'm just getting started myself with columns; sorry if the suggestion doesn't 
make sense. 

Best,
Mica
___
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] placement of graphics across coluums.

2014-05-28 Thread Mica Semrick

John,

Perhaps you may find the columnsets command to your liking. See more here: 
http://pragrama-ade.com/general/manuals/columns.pdf

Best,
Mica

On 05/26, john Culleton wrote:

In Scribus, (which has many shortcomings compared
to Context for book length documents,) there is
one trick that is pretty easy. In a double column
document one can place a graphic in another
layer that is part in one column and part in
another, but not spanning either column
completely.  Then the texts in each column can
be made to flow around the graphic. I have looked
in It's in the details and the Columns
document but I cannot find this specific example.
I thought I saw one years ago.

Is such a trick possible in Context without
heroic special coding?

--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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
___

___
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] Experience with DITA XML or XSL/FO

2014-05-26 Thread Mica Semrick

Hi Jan,

Thanks for the pointer towards dbcontext. I had previoiusly used dblatex for 
some tech docs a while back, but never realized there was a ConTeXt version.

Best,
Mica
___
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] Experience with DITA XML or XSL/FO

2014-05-25 Thread Mica Semrick

Hi Jan,


What is your real use case? A typical XML based workflow involves XSL-FO -
PDF route using FO processor (Antenna House, XEP, FOP etc).


I'm looking to use DITA to publish a literary journal. The journal will contain contributions from multiple authors. I also want to publish works by single authors. I won't make enough (or any) money to justify the very expensive license for Antenna House or XEP, thus they are not really an option. I find FOP to be really sub par. 


My basic work flow would have to be DITA XML  DITA OpenToolkit (build process)  ??? 
 ConTeXt  PDF, where ??? could be some Toolkit XML output, XHTML, HTML5, FO.


Anyway, there are several ways. If you are not locked to DITA yet, I would
strongly recommend switching to DocBook instead :-) 


The DocBook vocabulary does not fit my needs. TEI is much closer to what I want, but I'm already familiar with DITA. 


This XSLT way is most natural for XML processing, but I understand that
writing XSLT transformation is discouraging for many people.


Yes, I'm generally OK with working with XSLT. DITA has a build system, called 
the DITA OpenToolkit that is build with Ant, a bit of java, and XSLT. You can 
see the toolkit here: http://dita-ot.github.io/

The Toolkit already supports PDF output via FOP, but as I said, FOP leaves quite a bit to be desired. 


Best,
Mica
___
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] Experience with DITA XML or XSL/FO

2014-05-22 Thread Mica Semrick
Hi list,

I've been contemplating making a ConTeXt output or parser for DITA XML and was 
wondering if anyone has worked with DITA and ConTeXt before? If you have and 
could offer any advice and/code, that would be most helpful!

Best,
Mica
___
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] Experience with DITA XML or XSL/FO

2014-05-22 Thread Mica Semrick
Hi Hans,

Thanks for your reply. I found my way to foxet, but never got it working. I've 
written several mapping files for XML with good results, but DITA is a bit of a 
different beast. 

DITA is geared towards technical writing, and its main features are defined 
content types, a mechanism for controlled reuse below the file level, a modular 
structure, and built in extensibility of its XML vocabulary. It comes with its 
own toolkit that filters out and pulls in content and it uses FOP to produce 
PDF (hence my mention of FO). Since the toolkit must process the XML to resolve 
linked content and remove content, it is not recommended to directly typeset 
the XML like you could do with DocBook. I see a few ways to achieve what I 
want, which is a PDF produced my ConTeXt: target a merged XML file that the 
dita toolkit has produced, produce a concatenated HTML file and typeset that, 
or typeset the fo file before FOP gets to it. Of those approaches, the first 
seems like the best idea, but I wanted to query the list before proceeding.

Thanks for your time.

Best,
Mica
___
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 with Emacs

2014-01-10 Thread Mica Semrick
my .emacs looks like this:

;; Open in ConTeXt mode
(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode) ;; AucTeX turn on PDF mode by
default
(add-hook 'LaTeX-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX
when AucTeX loads
(add-hook 'ConTeXt-mode-hook 'yas/minor-mode-on) ;; Turn on YaSnippet minor
mode in ConTeXt-en-mode
(add-hook 'ConTeXt-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX
when AucTeX loads
(setq TeX-default-mode 'context-mode) ;; Make context-mode the default
tex-mode
(setq reftex-plug-into-AUCTeX t) ;; Turn on RefTeX when AucTeX loads
(add-hook 'TeX-mode-hook '(lambda () (TeX-fold-mode 1)))

;; Add option for MKIV and make it the default for C-c C-c

(add-hook 'ConTeXt-mode-hook (lambda()
(add-to-list 'TeX-command-list '(ConTeXt MKIV context %t TeX-run-TeX
nil (context-mode) ))
(setq TeX-command-default ConTeXt MKIV)
(setq TeX-save-query  nil )
))




On Fri, Jan 10, 2014 at 1:37 PM, Peter Münster pmli...@free.fr wrote:

 On Fri, Jan 10 2014, Fabrice Couvreur wrote:

  %%% Local Variables:
  %%% Mode: LaTeX
  %%% LaTeX-command LuaLaTeX-shell-escape
  %%% End:

 %%% Local Variables:
 %%% Mode: context
 %%% End:

 For using context instead of texexec, put this in your init-file:

 (eval-after-load 'tex
   '(add-to-list
   'TeX-command-list
   '(ConTeXt context --nonstopmode %t
 TeX-run-TeX nil (context-mode) :help Run ConTeXt)))

 If you prefer to use context-mode by default for every file with .tex as
 suffix, then you can add this to your init-file:

 (add-to-list 'auto-mode-alist '(\\.tex\\' . context-mode))

 Then you won't need the Local Variables section at the end of each
 ConTeXt-file.

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

 ___

___
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] Dissertation/diploma style

2013-12-12 Thread Mica Semrick
Unless you can find a module (at http://modules.contextgarden.net/) then
you'll have to design it yourself.


On Thu, Dec 12, 2013 at 4:08 AM, Vyatcheslav Y. yatskov...@gmail.comwrote:

 Hi,

 Is there any dissertation/high-school diploma style for Context? I'm sure
 if there any, I can adapt it to Ukrainian standards (dstu 3008-95).

 Best Regards,
 Vyatcheslav Yatskovsky


 ___
 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

 ___

___
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] EPUB woes

2013-11-19 Thread Mica Semrick
Keith,

Maybe you should explore an XML format that can be transformed directly to
epub. You'd also be able to write a style sheet with ConTeXt that would out
put a PDF as well. I think TEI-Lite is a good starting point.

Since you can make your own commands in ConTeXt, it will never be able to
intelligently map all commands on to simple HTML.


On Mon, Nov 18, 2013 at 10:12 AM, Keith J. Schultz schul...@uni-trier.dewrote:


 Am 18.11.2013 um 16:33 schrieb Hans Hagen pra...@wxs.nl:

 On 11/18/2013 4:11 PM, Keith J. Schultz wrote:

 Hi Hans,


 Am 18.11.2013 um 13:21 schrieb Hans Hagen pra...@wxs.nl:

 On 11/18/2013 10:00 AM, Keith J. Schultz wrote:

 2) Now, what a EPub-READER must implement to handle is very
  little. There are HARDLY ANY provisions that a certified EPuB-READER
 has
  to implement any particular engine or features therein to
 display/render
  the information contain in the EPub-file/wrapper.


 right, and I'm not going to waste time on it till i have a decent ebook
 reader that behaves well

 The point you are missing is that the ereaders are behaving well. They are
 following the epub
  standard, and that to the letter of the standard. The problem is
 that the standard does not
 enforce any particular implementation. If you look at the slow progress of
 the standard that
 actually requires a full implementation of the HTML5 standard. That  wait
 will very long.


 sure, and every time i see an epub novel i realize that for something like
 that one really can stick to rather dumb html ... the point is that one
 cannot expect context to output simple everywhere accepted html from
 complex rendered input ...

 I agree fully. But, Since there are those that wish to produce epubs aka
 ebooks, they should not be doing complex
 layout. One can always go from simple to complicated in needed, if there
 were commands dedicated to epub/ebooks/html.
 As I had pointed out in my last post below.


 Furthermore, ereaders are made by companies more interested in profits
 than spending a few Euros
 more to put decent HTML engines into their readers. Why they do not do
 that is beyond me!


 3. Modify the way in which ConTeXt generates the XML files. Ideally, I
 should be able to write something like

 Would be nice if there where commands in ConTeXt or a module for defining
 what should go into the CSS and a
 mode epub where the ConTeXt commands are converted to suitible HTML5
 structures that are suitiable for
 most ereaders.
  Features:
1) margins in percentages
2) font sizes based on em
3) a new file for every chapter optional for sections user
 defined
 Just a few. Lots more can be found in any decent documentation on writing
 ebooks.


 context outputs xml and as a bonus provides a css too ... one can always
 convert that xml to his/her ebooks liking .. maybe at some point the
 mtx-epub script will do that


 I always to like to look at programming as modular and would think that a
 epub/ebook module would be nice that maps
 there are commands for layingout ebooks. these commands can then be mapped
 back to standard context commands.


 in that case code in xml and either processit by context or transform it
 into something ebooks can render

 For some interested in producing a epub then can use the conventions for
 producing ebooks and ConTeXt can provide the
 math conversions to regular page dimensions used in PDFs for proofing or
 creating a printed version. It would also make the
 creation of EPubs from ConTeXt a simple parsing exercise.


 so far i had no projects where epub was needes so it has a low priority
 and i still read paper books (or when i would have ebooks i wouldn't need
 to render them) ... pdfs views quite well on e.g. nexus 7 devices and i
 assume the upcoming sony high res ebook will also do pdf well

 Well I did start the discussion. Just offer my 2 Euro cents worth.
 Especially, since it comes up every now and then.
 Furthermore, I there was a simple way to create epubs/books with ConTeXt
 more would use this feature.
  I have used up enough of or time.

 regards
 Keith.




 ___
 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

 ___

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

Re: [NTG-context] [***SPAM***] Textile

2013-11-19 Thread Mica Semrick
Bill,

With more recent version of pandoc, you can write filters for it in python.
http://johnmacfarlane.net/pandoc/scripting.html


On Sat, Nov 16, 2013 at 8:09 AM, Bill Meahan subscribed_li...@meahan.netwrote:

 To save possibly reinventing the wheel, has anyone written a filter for
 processing Textile markup analogous to the filters for Markdown and
 reStructuredText?

 I tried using Pandoc to provide multiple formats of output (ConTeXt, EPUB,
 MS Word) from a common source but Pandoc is excessively tied to Markdown
 which does not understand the difference between emphasized text and italic
 text and only outputs {\em word}, emword/em, \emph{word} and so forth
 which means I have to go through every instance of the tag and change tags
 where I want explicit italics as I use other typographical techniques
 (small-caps or sans-serif or ...) for emphasis but some things (book
 titles, ship names, foreign words/phrases et. al) are always set in italics
 by convention. Pandoc continues its map everything to em ways even if
 the input is textile or (X)HTML. There are some other neat advantages to
 Textile as well such as local styling (CSS or \begin{environment}... or
 \startenvironment ...)

 I know a lot of computer languages now and I really don't want to learn
 Lua or Haskell -- I'm retired! :)

 --
 Bill Meahan, Westland, Michigan

“Writing is like getting married. One should never
commit oneself until one is amazed at one's luck.”

—Iris Murdoch

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

___
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] Testpage vs. indentation

2013-10-29 Thread Mica Semrick
 Or more general: No indentation of paragraphs, wich are the
top-paragraphs of the page. Is that possible?

How would your reader tell if the paragraph at the top of the page is a
continuation of the one on the last page, or a new paragraph? Sounds
problematic!


On Tue, Oct 29, 2013 at 6:46 AM, H. Özoguz h.oezo...@mmnetz.de wrote:

 Hello together,

 normally I want intendation for new paragraphs, but not, if the paragraph
 is set on the next page by \testpage.
 See this minexample:

 \setupindenting[yes, 9pt,first]
 \starttext
 \input knuth
 \testpage[35] \input knuth
 \stoptext

 Or more general: No indentation of paragraphs, wich are the top-paragraphs
 of the page. Is that possible?

 Thanks,
 Huseyin
 __**__**
 ___
 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-30 Thread Mica Semrick
Any chance of getting that tutorial in some sort of version control?
Github/SVN/bitbucket or whatever?!


On Mon, Sep 30, 2013 at 7:06 AM, Lars Huttar lars_hut...@sil.org wrote:

 On 9/29/2013 1:05 PM, Marco Patzer wrote:
  Some thoughts:
 
1.1.1
Unfortunately there’s no really easy way to install ConTEXt on Windows.
 
  I never installed ConTeXt on Windows, but if this is true this
  should definitely be fixed. According to
 
http://wiki.contextgarden.net/ConTeXt_Standalone#Command_line_method
  ...

 For my part ... I recently installed TeXLive 2012 and 2013 on Windows 7,
 and it was easy.

 I told it to install only the ConTeXt scheme, instead of installing
 everything.
 Also I had to configure the TeXWorks editor options to use ConTeXt
 (LuaTeX) by default instead of pdfLaTeX.
 But other than that, unless I'm forgetting something, it worked fine,
 out-of-the-box.

 Lars


 ___
 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

 ___

___
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] git or svn

2013-09-27 Thread Mica Semrick
Maybe we can have the best of both: https://gist.github.com/ticean/1556967 ?


On Fri, Sep 27, 2013 at 7:27 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/27/2013 3:26 PM, Marcin Borkowski wrote:

  Also, if this matters, Git has an excellent Emacs front-end, Magit.  I
 don't know whether SVN has something similar.


 github has a nice windows backend but (as with more open source
 developments) the real nice stuff is closed ... i tried several times but
 never could install easily some git server infrastructure similar to github
 on a (linux) server so at our company we stay with svn (but i keep copies
 of the context-on-github on my machine, but only for viewing)

 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Mica Semrick
@Peter github makes collaboration quite painless. Users can manage their
own accounts.

+1 for github from me too!


On Thu, Sep 26, 2013 at 1:42 PM, Peter Münster pmli...@free.fr wrote:

 On Thu, Sep 26 2013, Aditya Mahajan wrote:

  Wouldn't it be better to move the manuals to github rather than keeping
 them
  on an svn server?

 Why?

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

 ___

___
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] git or svn (was: ConTeXt Manual Errata)

2013-09-26 Thread Mica Semrick
 Where is the pain?
 What would be the benefit when moving to github?

On the thread someone wanted to add something to the manual, but didn't
have SVN access. The admin wasn't getting email, and thus couldn't grant
the new account. The material was not added the to manual.

If the manual was on github, it could have been forked, branched, content
added, pull request made. End of story. So we do want the features of
github.


On Thu, Sep 26, 2013 at 2:50 PM, Peter Münster pmli...@free.fr wrote:

 On Thu, Sep 26 2013, Mica Semrick wrote:

  @Peter github makes collaboration quite painless. Users can manage their
 own
  accounts.

 I like git because of its features. And when I don't need those
 features, I prefer svn because of its simplicity. Where is the pain?
 What would be the benefit when moving to github?

 -1 (not worth the trouble for me)

 (On the other hand, if you sent me some bitcoins, I would be glad to
 copy contextman to github. ;)

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

 ___

___
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] error when installing ConTeXt Standalone

2013-09-25 Thread Mica Semrick
$ source tex/setuptex

Do you do that as root? You probably need to add it to something like
/etc/bashrc or the like... it sounds like you don't have permission/your
shell isn't getting the right path...


On Wed, Sep 25, 2013 at 1:50 PM, Pablo Rodríguez oi...@web.de wrote:

 On 09/25/2013 10:21 PM, John Kitzmiller wrote:
  Maybe you need to specify the installation directory or issue
  tex/setuptex from inside the install folder?
 
  font-opt.lua should be in install
  folder/tex/texmf-context/tex/context/base

 Well, that’s exactly what the following command does (at least, it works
 for me in a local installation, but not system-wide):

 $ source tex/setuptex
 Setting /opt/ctxbeta/tex as ConTeXt root.

 It worked with Fedora 16, but after installing Fedora 19 it doesn’t work.


 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

 ___

___
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] error when installing ConTeXt Standalone

2013-09-24 Thread Mica Semrick
Have you added the bin directory to your PATH?


On Tue, Sep 24, 2013 at 1:55 PM, Pablo Rodríguez oi...@web.de wrote:

 Dear list,

 I have installed a system-wide ConTeXt Standalone in Fedora 19,
 following the instructions from the wiki.

 But when I try to rebuild the font cache, I get the following error
 (with option verbose):

 resolvers   | resolving | remembering file 'font-otp.lua'cannot open
 : No such file or directory

 I don’t know what I’m doing wrong, but I get the error as root also.

 Could anyone tell me what it’s wrong here?

 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

 ___

___
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***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-19 Thread Mica Semrick
Are there any ConTeXt meetups or conferences on the US? I'd like to go, but
$$ to fly to Europe = :-\

Best,
Mica


On Thu, Sep 19, 2013 at 1:50 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/19/2013 2:11 AM, Pavneet Arora wrote:

  All the best to those who are attending.  I am envious!


 Thanks. A pitty that you will not be there, but there will be more
 conferences, so maybe a next time.

 Concerning the conference: there are tutorials and qa sessions, so if
 anyone attending has specific questions of wishes, let them know and they
 might serve as templates. Of course it has to be reasonable, not 'i want a
 three dimensional table mechanism' and such.

 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Mica Semrick
Hi,

Not sure if this is helpful, but I get a very similar error when trying to
build the nokogiri gem with RVM  ruby 2.0 on my Mac OS X 10.6.8 machine.
I'm not at that machine currently, but I can post the error if you think
that will help.

Best,
Mica


On Wed, Sep 18, 2013 at 10:55 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/18/2013 4:53 PM, Gerben Wierda wrote:

 On 18 Sep 2013, at 11:18, Hans Hagen pra...@wxs.nl wrote:

  On 9/18/2013 10:47 AM, Gerben Wierda wrote:

 As my computer died I had to set up a clean one. I installed MacTeX 2013
 and tried to compile a ConTeXt project, but this failed:

 texexec --pdf --mode=editor --once .../products/prd_book.tex

 resolvers   | caches | path
 '/Users/gerben/Library/**texlive/2013/texmf-var'
 created/System/Library/**Frameworks/Ruby.framework/**
 Versions/2.0/usr/lib/ruby/2.0.**0/rubygems/core_ext/kernel_**
 require.rb:45:in
 `require':
 /usr/local/texlive/2013/texmf-**dist/scripts/context/ruby/**
 base/switch.rb:501:
 invalid multibyte escape: /\xFF/ (SyntaxError)
 from
 /System/Library/Frameworks/**Ruby.framework/Versions/2.0/**
 usr/lib/ruby/2.0.0/rubygems/**core_ext/kernel_require.rb:45:**in
 `require'
 from
 /usr/local/texlive/2013/texmf-**dist/scripts/context/ruby/**
 texexec.rb:11:in
 `main'

 It seems a problem in a ruby file in MacTeX 2013. Can someone help me
 get this working?


 Maybe something utf in the latest ruby ... can you try to replace the
 \xFF with \xFFFC and see what happens?


 Same thing happens. Now it says \xFFFC is an invalid multibyte escape


 it runs ok with \xFF here in 1.9

 in 2.0 i need to patch in that file:

 series.each_char do |key| # was .each but there is no alias to each_char
 any longer

 does the top of switch.rb mention:

 #encoding: ASCII-8BIT

 (i do have a prototype of texexec in lua but no time to finish that now
 but i fear at some moment i have to do it as i cannot foresee ruby 2.0
 compatibility issues)


 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] Difference between base and third

2013-09-17 Thread Mica Semrick
I think base are the basic TeX fonts, probably Computer Modern and Latin
Modern. Third is third-party.

Best,
Mica


On Tue, Sep 17, 2013 at 12:14 PM, john Culleton j...@wexfordpress.comwrote:

 I note that in texlive 2013 the typescripts are found in two
 subdirectories, base and third.  Is there a reason for this
 subdivision or is it just an accident of history?

 --
 John Culleton
 Wexford Press
 Free list of books for self-publishers:
 http://wexfordpress.net/shortlist.html
 PDF e-book: Create Book Covers with Scribus
 available at http://www.booklocker.com/books/4055.html

 ___
 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

 ___

___
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] EPUB XHTML Format

2013-09-06 Thread Mica Semrick
Another small note, since I just walked down the ePUB path: you'll be very
sad to find out that a lot of rendering engines for popular readers are not
consistent, won't render standard XHTML markup correctly (nest an ordered
list within an unordered list and then look at it in adobe digital editions
and several other readers). But it is just XHML + CSS! you'll cry, How
can they not render it correctly? I don't know, but it was an extremely
frustrating process. I even contacted adobe to try and report this nested
list bug to them... their suggestion was that I could *pay* them to work
with content experts who would help me correct my source so that it
would render correctly.

The best reader imho is iBooks on the iPad, nothing else, from what I've
seen, comes close. But that is one expensive eReader. :(


On Thu, Sep 5, 2013 at 3:00 PM, Thangalin thanga...@gmail.com wrote:

 Hi,

 handle XML+CSS well. However, most (all?) EPUB readers don't. So, the
 question is asking if instead ConTeXt could generate a XHTML


 Precisely.


  If you need both EPUB and PDF, start with a semantically rich XML
 vocabulary, e.g. DocBook. In this case you can relatively easy transfrom


 My database doesn't generate DocBook. It generates a custom XML document
 from which I generate a web page, and a LaTeX document (though soon to be
 ConTeXt!). There is no reason, technically, why I cannot convert the source
 XML to either DocBook or directly to EPUB. There are, however, problems
 doing that, which Aditya correctly surmises:


 - Automatic section numbering taking care of different conversions.
 - Automatic index generation and sorting
 - Inserting hyphenation points at the appropriate place in the generated
 output (so that the browser can effectively rely on TeX's hyphenation
 algorithm to do line-breaking).

 - Convert TeX math to MathML.

 The current ConTeXT XML source can translate a well formed ConTeXt
 document into a XML document with the above features.


 Those are exactly the issues that I would love to resolve using ConTeXt
 for generating an EPUB. (The MathML isn't as important to me, but I can see
 other people wanting such a feature.)

 What about accessibility? I expect that visually impaired people would
 depend on document structure rather than its visualisation.


 That is a good point. The current XML structure produced by ConTeXt (Hans
 correct me here if I'm mistaken) is not accessible, as it doesn't adhere to
 strict XHTML. I suspect that div tags would not be accessible -- the only
 way to provide true accessibility in EPUB format would be by using the
 strict XHTML tags.

 for instance, we have more levels than H1..H6, so how to do H7? if someone
 has to deal with that, he/she can as well transform all into H1 with some
 class which is a local solution then


 I realize there is not going to be a one-to-one map of all possible
 ConTeXt macros to XHTML. For someone who has 7 levels of nested sections
 they would either have to rewrite some Lua or perform some post-processing
 (e.g., with XSLT). I would posit that a document with 7 levels of nested
 sections is not going to be a common occurrence.

 When I talk about strict XHTML, I'm proposing that a _simple_ ConTeXt
 document (up to 6 header levels, numbered and unnumbered lists, images,
 text emphasis, etc.) should generate a simple, validating XHTML document.
 Trying to attain 100% coverage of ConTeXt transmogrification to XHTML is
 ridiculous when, I suspect, 80% coverage would meet most needs. :-)

 It is definitely possible to translate the ConTeXt EPUB output to XHTML.
 However, there are practical realities that hinder such an approach.
 Architecturally, if anyone is going to translate an XML document to EPUB
 format, it certainly won't be this way:

 *XML + XSLT - ConTeXT File - ConTeXt EPUB XML + XSLT - EPUB + CSS*

 It'll be this way, which is less time-consuming, less complex, and less
 susceptible to err:

 *XML + XSLT (or API) - EPUB + CSS*

 However, it does not, as we all know, produce as feature rich output as
 leveraging the ConTeXt abilities that Aditya mentioned, which was the point:

 *XML + XSLT - ConTeXT TeX - EPUB + CSS*

 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

 ___

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

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Mica Semrick
I'd say use an xml source (docbook, TEI, or DITA) and then write a ConTeXt
stylesheet to typeset your XML. See http://wiki.contextgarden.net/TEI_xml

I think that TEI-lite is a nice, very general XML vocabulary...

Best,
Mica


On Thu, Sep 5, 2013 at 11:24 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/5/2013 8:20 PM, Aditya Mahajan wrote:

  The typical ConTeXt document has a lot of structure, and the XML export
 generates a well structured XML output. That can be directly used in
 most modern browsers that handle XML+CSS well. However, most (all?) EPUB
 readers don't. So, the question is asking if instead ConTeXt could
 generate a XHTML


 but how hard would it be to make an xslt tranformation from context.export
 to epub variants (ok, at some point i can look into it but only if there is
 a robust standard and i have devices to test it on)

 and indeed the quality of the source is important


 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] Documentation for EPUB conversion

2013-08-28 Thread Mica Semrick
You will probably need CSS styling.

Maybe you can use one of the popular CSS reset or normalize stylesheets
available. I haven't tested, but http://necolas.github.io/normalize.css/ is
pretty popular.

Beware, a lot of EPUB rendering engines are crap, and there is not a lot of
conformity throughout various products. This seems sad... since it is just
XHTML.

-Mica


On Wed, Aug 28, 2013 at 9:29 AM, Thangalin thanga...@gmail.com wrote:

 Hi,

 I ran the following simple document through ConTeXt:

 \setupbackend[export=yes,xhtml=yes]

 \enableregime[utf-8]
 \mainlanguage[en]
 \language[en]

 \setupexport[
   title={A nice book},
   author={John Doe},
   firstpage={cover.jpg},
 ]

 \starttext
   \startitemize
 \item First
 \item Second
 \item Third
   \stopitemize

 \stoptext

 I then ran mtxrun:

 mtxrun --script epub --make t.specification

 This produced a document with the cover page correctly; however, the items
 were listed on a single line in the EPUB, instead of on lines by themselves.

 I have a couple of questions:

- *Styling.* Is custom styling required to format bullet or numbered
lists in the resulting EPUB XHTML document?
- *Knowledge.* Would anyone be willing to share their experiences (and
tips) for transforming ConTeXt documents to EPUB?
- *Examples.* Where can I find examples of simple and complex ConTeXt
documents being converted to EPUB documents having a similar layout?

 Many thanks and kind 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

 ___

___
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] Problem with context in windows

2013-08-19 Thread Mica Semrick
Did you use the setuptex command previous to running the other commands?


On Mon, Aug 19, 2013 at 7:42 AM, Oualkacha, Karim
oualkacha.ka...@uqam.cawrote:

 Hi Mica, 

 ** **

 Thank you for your responds. I tried the command lines you suggested
 without success. This is what I got :

 ** **

 *C:\Users\oualkacha_kmktexlsr*

 Creating fndb for user root directory
 (C:\Users\oualkacha_k\AppData\Roaming\MiKTeX\2.9)...

 Creating fndb for user root directory
 (C:\Users\oualkacha_k\AppData\Local\MiKTeX\2.9)...

 Skipping common root directory (C:\ProgramData\MiKTeX\2.9)...

 Skipping common root directory (C:\Program Files\MiKTeX 2.9)...

 ** **

 *C:\Users\oualkacha_ktexexec --make --all*

 ** **

 mtxrun  | kpse fallback with progname 'context' initialized in
 0.05 seconds

 ** **

 *C:\Users\oualkacha_kmktexlsr*

 Creating fndb for user root directory
 (C:\Users\oualkacha_k\AppData\Roaming\MiKTeX\2.9)...

 Creating fndb for user root directory
 (C:\Users\oualkacha_k\AppData\Local\MiKTeX\2.9)...

 Skipping common root directory (C:\ProgramData\MiKTeX\2.9)...

 Skipping common root directory (C:\Program Files\MiKTeX 2.9)...

 ** **

 *C:\Users\oualkacha_ktexexec --make --xtx --all*

 ** **

 mtxrun  | kpse fallback with progname 'context' initialized in
 0.03 seconds

 ** **

 Any help please.

 ** **

 Karim

 ** **

 ** **

 ** **

 *De :* ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] *De
 la part de* Mica Semrick
 *Envoyé :* 18 août 2013 15:55
 *À :* mailing list for ConTeXt users
 *Objet :* Re: [NTG-context] Problem with context in windows

 ** **

 Try running:

 mktexlsr
 texexec --make --all
 mktexlsr
 texexec --make --xtx --all
 mtxrun --selfupdate
 mtxrun --generate
 luatools --generate
 context --make

  

 You may not need to run all of them... but it is easier this way.

 Best,
 Mica

 ** **

 On Fri, Aug 16, 2013 at 12:29 PM, Oualkacha, Karim 
 oualkacha.ka...@uqam.ca wrote:

 Hi,

  

 I installed conTeXt in windows following  the steps in the website 


 http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe#Install_SciTe
 

  

 I have a PC with windows 7, ruby is already installed, and I have MikeTex
 2.9 already installed and as text editor WinEdt. To test if everything
 work, I created a file Test.tex  

  

 \starttext

  

 Test

  

 \stoptext

  

  

 When I executed it in WinEdt I didn’t have any error message, however,
 there is no PDF file created for the Test.tex file [ConTeXt Compilation
 Report (Pages: 0), Errors : 0]. 

  

 In a command-line window (cmd) I tried the command context to see what is
 the problem: I got the following message: 

 warnings no lua configuration files found

 no texmf paths are defined using TEXMF 

  

 I tried also texexec command and I got the following message:

 mtxrun  ! kpse fallback with programme `context` initialized in 0.062
 seconds  

  

 Any Help Please!

  

 Karim

  

  



 ___
 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

 ___
 

 ** **


 ___
 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

 ___

___
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] Problem with context in windows

2013-08-18 Thread Mica Semrick
Try running:

mktexlsr
texexec --make --all
mktexlsr
texexec --make --xtx --all
mtxrun --selfupdate
mtxrun --generate
luatools --generate
context --make

You may not need to run all of them... but it is easier this way.

Best,
Mica


On Fri, Aug 16, 2013 at 12:29 PM, Oualkacha, Karim
oualkacha.ka...@uqam.cawrote:

 Hi,

 ** **

 I installed conTeXt in windows following  the steps in the website 


 http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe#Install_SciTe
 

 ** **

 I have a PC with windows 7, ruby is already installed, and I have MikeTex
 2.9 already installed and as text editor WinEdt. To test if everything
 work, I created a file Test.tex  

 ** **

 \starttext

 ** **

 Test

 ** **

 \stoptext

 ** **

 ** **

 When I executed it in WinEdt I didn’t have any error message, however,
 there is no PDF file created for the Test.tex file [ConTeXt Compilation
 Report (Pages: 0), Errors : 0]. 

 ** **

 In a command-line window (cmd) I tried the command context to see what is
 the problem: I got the following message: 

 warnings no lua configuration files found

 no texmf paths are defined using TEXMF 

 ** **

 I tried also texexec command and I got the following message:

 mtxrun  ! kpse fallback with programme `context` initialized in 0.062
 seconds  

 ** **

 Any Help Please!

 ** **

 Karim

 ** **

 ** **


 ___
 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

 ___

___
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] TexLive 2013

2013-08-16 Thread Mica Semrick
Hi Wim,

TL is a huge beast. ConTeXt is still a moving target in terms of
development and thus the frozen nature of TL will leave their version of
context quite stale.

You can install ConTeXt as a stand-alone on your system, then just run a
bat or bash script to update it. This is much easier than dealing with TL I
find.

See http://wiki.contextgarden.net/ConTeXt_Standalone

Best,
Mica


On Fri, Aug 16, 2013 at 5:17 AM, Wim W. Wilhelm ww.wilh...@kpnmail.nlwrote:


 Dear Hans,

 I don't understand your answer.
 What can I do. Back to TL 2012?

 Wim



  On 8/16/2013 1:10 PM, Wim W. Wilhelm wrote:

 Dear all,
 I switched from context: TexLive 2012 to context:TextLive 2013.
 All figures in my text, placed like the following example:
 \placefigure[none,left]{}{\**externalfigure[c:/context/**
 tekeningen/hemelbol.pdf][**height=6cm]}
 are placed in the middle of the page, and the text is not wrapped around
 the figure.
 I tried also the 2*line  option, without succes.
 Does there exist a list of differences between context:TexLive 2012 and
 TexLive 2013 ?


 the benchmark is the garden distribution ... if that works as expected,
 then there's a bug in the tl 2013 (or 2012)

 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___



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

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/**
 listinfo/ntg-context 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] Trouble with editors on Mac

2013-08-15 Thread Mica Semrick
You editor probably isn't picking up ConTeXt because it's probably not on
the system path. I add the setuptex command at the end of .bashrc or
.bash_profile. This makes it accessible from the terminal, but not all
programs read in .bashrc or .bash_profile. You should add ConTeXt to your
editor's path, if possible.


On Thu, Aug 15, 2013 at 4:11 AM, Robert Blackstone 
blackstone.rob...@gmail.com wrote:


 On 15 aug. 2013, at 11:40, ntg-context-requ...@ntg.nl Mari Voipio 
 mari.voi...@iki.fi *w*rote:


 I updated my ConTeXt installation today and now it refuses to work
 with TextMate and TeXworks.



 This problem is not critical as I can use TextMate/TeXworks as editor
 and compile on command line in Terminal,  but it is a bit of a
 nuisance not to be able to use the typesetting command in the editor.
 So any help is highly appreciated.


 Hi Mari,
 I cannot help you with your particular problem other than suggesting to
 give TeXShop a try.
 I have used it for many years and it has never given me any problem
 whatsoever.

 Just to make sure, I updated the standalone today (beta with all goodies)
 and again no problem.

 Best regards,
 Robert Blackstone


 ___
 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

 ___

___
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] OSFONTDIR kills gui fonts.

2013-07-26 Thread Mica Semrick
Do you perhaps needs to rebuild your font cache?

From the terminal: sudo fc-cache -fv

Best,
Mica


On Fri, Jul 26, 2013 at 1:15 PM, Pablo Rodríguez oi...@web.de wrote:

 On 26/07/13 21:08, john Culleton wrote:
  I am trying to follow the wiki on Fonts in Luatex. It suggests the
  following statement for Linux systems:
 
  export OSFONTDIR=/usr/local/share/fonts;$HOME/.fonts
 
  But I store my fonts in /usr/share/fonts so I used:
 
  export OSFONTDIR=/usr/share/fonts

 Hi John,

 sorry to read that.

 Using the ConTeXt Suite the command I use is:

   export OSFONTDIR=/usr/share/fonts//

 But I append it at the end of tex/setuptex.

 I’m afraid I cannot help you with the system fonts, because I don’t use
 ConTeXt from TeXLive 2013.

 All I guess is removing all OSFONTDIR from your configuration. (Running
 grep -irl OSFONTDIR . on your home directory should do the searching
 job.)

 Sorry for not being more helpful.

 I hope it helps,


 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

 ___

___
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] Overriding pdfview

2013-06-27 Thread Mica Semrick
 On Linux, there separate programmes for KDE, new gnome and old gnome,
and desktop-agnostic:
kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
|| xdg-open myfile.pdf

On my linux mint/debian boxes, xdg-open works fine across MATE, XFCE, and
KDE.


On Thu, Jun 27, 2013 at 8:15 AM, Sietse Brouwer sbbrou...@gmail.com wrote:

 Instead of choosing our own default PDF viewer, we should probably
 invoke the user's default PDF viewer. Every OS has a command-line
 program to open a file with the system default program:

 On OS X:
 open myfile.pdf

 On Windows:
 start myfile.pdf

 On Linux, there separate programmes for KDE, new gnome and old gnome,
 and desktop-agnostic:
 kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
 || xdg-open myfile.pdf

 Cheers,
 Sietse

 ___
 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

 ___

___
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] Multiple footnote-numbers referring only to one footnote

2013-06-05 Thread Mica Semrick
Have you had a look at
http://wiki.contextgarden.net/Footnotes#Footnote_Numbering ?

Can you post some code of what you've already tried?


On Wed, Jun 5, 2013 at 8:47 AM, H. Özoguz h.oezo...@mmnetz.de wrote:

 No way? I am sure, there is some :)

 Another solution, which would work equally would be to have two
 footnote-numbers with the same number, which refer to the same footnote.
 This way:

 Text [Footnote number 1] text [Footnote number 1]

 Footer: 1 Some Footnote.

 Is that possible?
 Thanks

 Huseyin
 __**__**
 ___
 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] New font (rival to Taco's cowfont?)

2013-05-17 Thread Mica Semrick
Alan,

This is clearly the greatest font ever, thank you!

-Mica


On Fri, May 17, 2013 at 6:44 AM, Arthur Reutenauer 
arthur.reutena...@normalesup.org wrote:

  http://nekofont.upat.jp/

   At some point, people will have to stop the madness about cute cats ;-)

 Arthur

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

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

 ___

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

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

Re: [NTG-context] authoring for web and print - suggestions

2013-05-13 Thread Mica Semrick
I've always thought that TEI-Lite was a nice, general purpose xml markup.
There is already an example of an XML stylesheet on the wiki.


On Sat, May 11, 2013 at 7:29 AM, Martin Schröder mar...@oneiros.de wrote:

 2013/5/11 Norbert Preining prein...@logic.at:
  Does anyone have experience with authoring for web and print. I.e.,
  we want to maintain only one format and generate both web pages and
  printed documentation from it. Is there intrinsic or through addons
  support in ConteXt for this?

 Consider pandoc.
 But you probably need math. :-)

 Best
Martin

 ___
 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

 ___

___
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] Running heads, American style.

2013-04-08 Thread Mica Semrick
Hi John,

My logic in thinking about this says odd=right=page 1 = list it first in
the command. Anyway. I've been using ConTeXt for a couple of years and have
found that the manuals usually lag behind the wiki. I gather most of my
needed context info from this mailing list and the wiki. I will check out a
manual and print pages that I think I'll need (or bookmark them or
what-have-you), but rarely is the PDF manual the first place I look
anymore.

You can certainly navigate all the known commands in the wiki using the
taxonomy, but I find it much more useful just to put the command without
the \ in front of it. So when looking for \setupheadertexts, I enter
setupheadertexts in the search box and it returned the page I linked to.
ConTeXt generally employs easy-to-remember names for commands, so a keyword
search is helpful also.

Also without fail, this mailing list has some very bright people on it, who
are quick and friendly with answers, no matter your level of use with
ConTeXt.

At any rate, ConTeXt is very able, I hope you enjoy it! I also hope to be
able to offer services like your wexford press sometime in the near future.
The publishing landscape is changing rapidly!

Regards,
Mica


On Mon, Apr 8, 2013 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:

 On 4/8/2013 8:46 PM, john Culleton wrote:

  With respect to the first parameter, location, I could not make the
 command work properly unless the first parameter was [text] followed by
 the other four.  Perhaps this was a peculiarity with my particular file.
 Now for some reason it works without [text]. Perhaps Hans waved a
 magic wand?


 that code is rather old and stable (also, it would get noticed immediately
 if something was messed up with those areas)

 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___

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

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

Re: [NTG-context] Running heads, American style.

2013-04-05 Thread Mica Semrick
Hi John,

Perhaps http://wiki.contextgarden.net/Command/setupheadertexts will be of
some help? Though, the wiki page does not list the [text] argument in your
second command. I'm not sure that ConTeXt sees recto and verso, as the wiki
page talks of even and odd pages.

HTH,
Mica


On Fri, Apr 5, 2013 at 3:16 PM, john Culleton j...@wexfordpress.com wrote:

 Since I spent the better part of two days puzzling over this
 simple task I thought I would share. The American style for
 running heads for non-fiction books is to have the current chapter on the
 left (verso) page and the current section on the right (recto)
 page. The text for each is near the spine and the page number near the
 outside edge. The layout must be set doublesided in context. Two
 commands are pertinent:

 \setupheader[leftstyle=bold,rightstyle=bold]
 \setupheadertexts[text][section][pagenumber][pagenumber][chapter]

 On the actual page spread the chapter title wll be on the laft of
 the spread and the section title on the right. But the
 \setupheadertexts command has them reversed. The recto gets
 described first and then the verso. The manual describes them
 otherwise. left then right, but it is really right, then left.
 Also the location parameter (first bracket pair) is mandatory for this
 kind of header setup. And just putting [] won't work. You have to
 specify a location.

 Now old hands will have memorized all these peculiarities long
 ago. I write this for beginners at the context game, like me.

 --
 John Culleton
 Wexford Press
 Free list of books for self-publishers:
 http://wexfordpress.net/shortlist.html
 PDF e-book: Create Book Covers with Scribus
 available at http://www.booklocker.com/books/4055.html

 ___
 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

 ___

___
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] Subjects on this list - general request

2013-03-20 Thread Mica Semrick
I would agree with the (no subject) or SPAM titles, but if your search tool
can't tell the difference between \column, Bug in -  - \column, Bug in
\column and Bug in \column then you probably need to find a new search
tool. I subscribe  to the list in non-digest format, e.g. I get every
email. I used to get it in digest, but I found that made my searching
tougher. I use gmail and have all the list messages skip my inbox and go
directly to a tag. This has helped a ton!

-Mica

On Wed, Mar 20, 2013 at 8:12 AM, Robert Blackstone 
blackstone.rob...@gmail.com wrote:

 Dear all,

 Considering all complaints about the difficulties to find, in the Garden,
 or in the NTG mail archive,  answers to specific problems, wouldn't it be
 a good idea to ask everybody to clearly state the subject of their message,
 preferably starting with the most important keyword, and in particular to
 avoid (no subject) or [***SPAM***], and similar things as subjects.

 Also, if you forgive me,  subjects like upto current or Bug in \column
 are not really helpful when on tries to search in the archive for a
 solution to a specific problem. In the last-mentioned example, wouldn't 
 \column,
 Bug in -  or even \column, Bug in \column be better?

 More specific subject titles in the mails might save some of us hours of
 unfruitful searching and lots of teeth grinding.

 This is probably not the first request on this topic but, if so, I thought
 it would do no harm to repeat it.

 Thanks in advance.


 Best regards,


 Robert Blackstone



 ___
 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

 ___

___
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] \usemodule not working in latest beta

2013-03-10 Thread Mica Semrick
Wolfgang and Marco,

Thank you. Changing p-title.tex has solved the problem.

Best,
Mica

On Fri, Mar 8, 2013 at 9:49 AM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


 Am 07.03.2013 um 23:59 schrieb Marco Patzer home...@lavabit.com:

  On 2013–03–07 Mica Semrick wrote:
 
  Upon updating to the latest beta last night, the document wouldn't
 compile.
  It looked like it wasn't reading up the \usemodule[title] at all,
 because
  it was giving me an undefined control sequence error on the first macro
  defined in t-title.tex (\doctitle{my title}).
 
  Help please!
 
  A title module was recently added to the context distribution. It
  might be that it's interfering with your personal one. You can run
  your document with
 
   \enabletrackers [resolvers.details]
 
  and check if your title module is actually loaded. If you're sure
  that \usemodule is broken please post a minimal example.

 It can be a problem with the file extension because in MkIV files
 with a mkvi or mkiv extension are preferred to files with a tex
 extension. For local/private modules one can use the p-prefix
 instead of the t-prefix because files with a p-prefix are used first.

 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

 ___

___
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] \usemodule not working in latest beta

2013-03-07 Thread Mica Semrick
Forgive me if this has been answered else where, I couldn't seem to spot it.

I have my own little version of t-title.tex that worked with the beta
before luatex 0.75.

Upon updating to the latest beta last night, the document wouldn't compile.
It looked like it wasn't reading up the \usemodule[title] at all, because
it was giving me an undefined control sequence error on the first macro
defined in t-title.tex (\doctitle{my title}).

Help please!

Regards,
Mica
___
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] python embedded in ConTeXt

2013-02-25 Thread Mica Semrick
Xan,

not sure if you're aware, but you can execute Lua code within a ConTeXt
document.

Best,
Mica

On Mon, Feb 25, 2013 at 10:04 AM, Xan dxpubl...@telefonica.net wrote:

  Thank you very much, Henning and Aditya. It clear the actual programming
 in ConTeXt. Now I use mako templates for emulate this purpose, but it's an
 annoying thing having to do this outside ConTeXt documents

 Thanks, both.

 Xan.

 On Sat, 23 Feb 2013, Henning Hraban Ramm wrote:

 * Am 2013-02-23 um 13:47 schrieb Xan:***
 * I just want to know if there is a equal thing like python.sty [1], ** 
 sympytex [2] or sagetex [3] for embed python, sympy and sage into ** 
 ConTeXt documents as there exist for latex. Yeah, I know I could write ** 
 a script and run python externally to ConTeXt but this were easier to ** 
 use.***
 * Have a look at Aditya's filter module, that can call arbitrary external 
 commands.*

 Attached is a proof of concept implementation for sympy. All the three
 python packages that you mentioned include a corresponding python script
 that does a lot of book-keeping. So, getting the full functionality of all
 these packages will require adapting those python script to generate
 results in ConTeXt syntax rather than in LaTeX syntax.

 Aditya

 -- next part --
 A non-text attachment was scrubbed...
 Name: sympy.tex
 Type: application/x-tex
 Size: 916 bytes
 Desc:
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20130223/f57ddc6c/attachment.tex

 --



 ___
 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

 ___

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

2012-09-28 Thread Mica Semrick
I may be dumb... but I can't figure out how to change the mirror.
minimals.contextgarden.net seems to be hard-coded in a number of places.
Help please?

Best,
Mica

On Thu, Sep 27, 2012 at 1:05 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Wed, Sep 26, 2012 at 11:39 PM, Hans Hagen wrote:
  Hi,
 
  Is minimals.contextgarden.net offline?

 Until we figure out what exactly is wrong one can use the mirror:

 rsync://metatex.org/minimals/
 http://minimals.metatex.org/

 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

 ___

___
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] EPUB workflow from ConTeXt source?

2011-02-17 Thread Mica Semrick
Have you considered authoring in something besides context? Say TEI XML or
Docbook, or even markdown (if possible)? If markdown is suitable, then you
can end up with both epub and context at the end. Or if using TEI or
docbook, you can write a map file (something I have been trying to do) and
typeset the xml file directly with context. I'm always happier knowing that
I can get as many different output types from a single source as possible.

BR,
Mica


 Message: 8
 Date: Thu, 17 Feb 2011 01:10:42 -0700
 From: Daniel Lyons fus...@storytotell.org
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] EPUB workflow from ConTeXt source?
 Message-ID: d7225cf0-f6cf-485f-be01-c8a254efc...@storytotell.org
 Content-Type: text/plain; charset=windows-1252


 On Feb 17, 2011, at 12:59 AM, Hans Hagen wrote:

  On 17-2-2011 8:14, Gerben Wierda wrote:
  On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote:
 
 
  Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl:
 
  I'd like to keep working in one format so I was wondering if there is
 a
  ConTeXt based workflow/setup that can produce EPUB (next to normal
 PDF)?
 
  With MkIV you can get a xml version of document with
 \setupbackend[export=yes].
 
  But that XML is not ePUB's XML, I assume.
 
  no, but one can of course convert one kind of xml into another
 
  for epub one has to provice css etc anyway (and epub is not much more
 than packaged html + css)

 This would also be useful to me. In my experience, the unpleasant part of
 generating ePub is making correctly formatted manifests and putting them in
 the right places inside the right kinds of zip files. If ConTeXt could do
 this for me, it would certainly make life easier. On the other hand, it may
 not be appropriate to bother because there are other tools that will convert
 HTML to ePub for you and make the manifests (Calibre, for example).

 I consider CSS intractable so that's not something I would worry about
 ConTeXt generating for me, if it were on the table.

  going the other way around, processing an epub file also demands some
 handywork as the source code is not by definition well structured


 ePub is definitely structured. I would say too structured, since it makes
 you provide both a ToC manifest and a navigation manifest that necessarily
 must include almost identical information ;) Of course, depending on a
 simplified browser for your document viewing and having lots of secret
 failover modes to handle poorly formatted documents makes the structure less
 meaningful than it ought to be.

 You are free to break your document into as many HTML chunks as you wish,
 but you are limited to fairly prosaic HTML and CSS. I'm of the impression
 the HTML documents generally map onto chapters so as not to distress the
 hardware's memory constraints too much.

 Overall, ePub and Kindle's format strike me as too much and too little
 respectively. I should be able to change the font and the formatting, but I
 definitely consider HTML + CSS is too much complexity.

 ?
 Daniel Lyons



 --


___
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] care to share an environment file for TEI Lite?

2010-09-30 Thread Mica Semrick
Hi List!

I'm using TEI for a personal project, and I'd like to set it using
ConTeXt. I'm having a bit of trouble getting started, and I was
wondering if anyone has an environment file for TEI Lite that they'd
like to share. It would be much appreciated!

Thanks in advance,
Mica
___
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] xml/fo typesetting with ConTeXt/foXet?

2010-09-15 Thread Mica Semrick
Hi list!

I am hoping that someone can point me towards some more information on
typesetting FO (Formatting Objects) with foXet and ConTeXt. I've read
the threads on the foxet mailing list (and I assume that's dead, last
post in 2005), and the wiki provides pretty sparse information. There
are some files listed in the manual, but it doesn't say how to load
them (or I missed that part, very possible).

I can parse my .FO file, but the content is just flowed into PDF,
there are no line breaks, or headings, or anything-- it just strips
out the xml tags.

Thanks for any help/directions!

Best,
Mica
___
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
___