[NTG-context] add bib category

2013-09-06 Thread Meer, H. van der
I am in need of a reference to a bachelor thesis but the file bxml-apa.mkiv 
only provides phdthesis as a possibility. Adding the following code to 
bxml-apa.mkiv doesn't work or is not enough to add the bachelorthesis as an 
extra.
I did search for phdthesis in the ConTeXt base files and was found once: in 
the bxml-apa.mkiv file.

How to?

\startxmlsetups bibtex:apa:bachelorthesis
   \setvariables[bibtex:temp][label=Bachelor thesis]
   \bibxmlsetup{bibtex:apa:common:thesis}
\stopxmlsetups

used in the .bib file as:

@bachelorthesis{rijneveld:13,
Author = {A. Author},
School = {Excellent University},
Title = {{How the Dutch.}},
Year = {2013}}

 Hans van der Meer



___
If your question is of interest to others as well, please add an 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] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread H. Özoguz

Two questions about footnotes:

1. By default the footnote-number (now always speaking of the fn-numbers 
in the text, not at the buttom) appears in the same style, like the 
text. E.g.:


\starttext
{\it This was\footnote{And actually is.} my way of typesetting.} 
Is\footnote{Another fn.} this not beautiful?

\stoptext

You see, the first number is italic, the second normal. How can I force 
ALL fn-numbers to appear in normal style, independent from the textstyle 
of the text, they were set in?


2. I want to add a \narrownobreakspace before every footnote-number 
(because of the closing quotation marks, which often overlap with them, 
especially if they are set italic). One manual way would be this:


Any text.\narrownobreakspace\footnote{fn}

But how can I do it generally in the style-file? Is there something like 
a before key for the fn-numbers?


Best would be, if this \narrownobreakspace would be only set, if an 
quotation mark comes directly before the fn-number. But I guess that is 
not easy, so the general solution would be ok, too.


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


Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread Marco Patzer
On 2013–09–06 H. Özoguz wrote:

 \starttext
 {\it This was\footnote{And actually is.} my way of typesetting.}
 Is\footnote{Another fn.} this not beautiful?
 \stoptext
 
 You see, the first number is italic, the second normal. How can I
 force ALL fn-numbers to appear in normal style, independent from the
 textstyle of the text, they were set in?

  \setupnote
[footnote]
[textstyle=normal]

 2. I want to add a \narrownobreakspace before every footnote-number
 (because of the closing quotation marks, which often overlap with
 them, especially if they are set italic).

  \setupnote
[footnote]
[textstyle=small,
 textcommand=\FootNoteCmd]

  \define[1]\FootNoteCmd
{\narrownobreakspace\high{#1}}


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread H. Özoguz

   \setupnote
 [footnote]
 [textstyle=small,
  textcommand=\FootNoteCmd]

   \define[1]\FootNoteCmd
 {\narrownobreakspace\high{#1}}


Marco


Perfect, thanks Marco!
___
If your question is of interest to others as well, please add an 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] Automatic space before question mark

2013-09-06 Thread H. Özoguz
I want to set before all question marks of a large document one 
\narrownobreakspace.


How to do this, if not in the source? Is there a possibility to exchange 
all ? by the effect of \narrownobreakspace ? with one small command? 
(Without changing the source, that is not to search-exchange all ? 
with \narrownobreakspace ?.


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

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


[NTG-context] Strange page break before \title

2013-09-06 Thread Xan
Hi,

I have this setuptitle:

\setuphead[title][before={\page[no]},
after={\startalignment[center]
{\dorecurse{30}~}\thinrule{\dorecurse{30}~}%


and this document:

\starttext

\startalignment[center]
Nom: \hl[24] Curs: \hl[4]
\stopalignment


\title{Nom del tema}

...

\stoptext

Before title, context breaks a page. Why? If I do that manually no page break.

Thanks in advance,
Xan.

PS: Please CCme
___
If your question is of interest to others as well, please add an 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] Automatic space before question mark

2013-09-06 Thread Marco Patzer
On 2013–09–06 H. Özoguz wrote:

 I want to set before all question marks of a large document one
 \narrownobreakspace.

Set up the character spacing for the question mark. No changes to
the markup required.

\definecharacterspacing
  [MySpacing]

\setupcharacterspacing
  [MySpacing]
  [\number`?]
  [left=.2]

\setcharacterspacing
  [MySpacing]

\starttext
  What? And why?
\stoptext

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Wolfgang Schuster

Am 06.09.2013 um 12:55 schrieb H. Özoguz h.oezo...@mmnetz.de:

 I want to set before all question marks of a large document one 
 \narrownobreakspace.
 
 How to do this, if not in the source? Is there a possibility to exchange all 
 ? by the effect of \narrownobreakspace ? with one small command? (Without 
 changing the source, that is not to search-exchange all ? with 
 \narrownobreakspace ?.


\definecharacterspacing [test]

\setupcharacterspacing [test] [003F] [left=.1,alternative=1]

\starttext

Question mark?

\setcharacterspacing[test]

Question mark?

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


Re: [NTG-context] Strange page break before \title

2013-09-06 Thread Wolfgang Schuster

Am 06.09.2013 um 13:09 schrieb Xan dxpubl...@telefonica.net:

 Hi,
 
 I have this setuptitle:
 
 \setuphead[title][before={\page[no]},
after={\startalignment[center]
 {\dorecurse{30}~}\thinrule{\dorecurse{30}~}%

\setuphead
  [title]
  [page=no,
   after=\midaligned{\blackrule[width=7cm,height=\linewidth]}]

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

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


Re: [NTG-context] 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-06 Thread Hans Hagen

On 9/6/2013 12:00 AM, Thangalin wrote:


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.


html is not rich enough .. one ends up with abusing tags which in turn 
is confusing for accesibility ... i once saw an epub where h1 was used 
for the chapter number and h2 for the chapter title



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.. :-)


in that case a few page transformation could do, isn't it?


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


probably ok for novels but who there is no way to limit the user ... so 
in the end we still have a complex mix to deal with ... i'd rather have


ConTeXT TeX reading xml - export - optional transform - EPUB + CSS*

you want 'direct epub html from context' (no xslt) but on the other hand 
use xslt to map onto context while context can do xml directly ... 
chicken egg


Hans

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

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


Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread H. Özoguz
Thanks Marco and Wolfgang! Always impressed about the possibilities of 
ConTeXt and this mailing list.


By testing this, naturally another related questions come up. E.g. this 
one: How to define before ? and ! a 0.1 leftspace, but before the 
combination ?! only ONE 0.1 leftdistance - and not such a distance 
before the ! for this case? So I want:


Only ?!, instead of Only ? ! (here in this mailer shown with normal 
spaces)


Is that possible, too? Or if not, it would be enough to set simply no 
space infront of the combination. I guess, one has to programm something 
for this question?


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


Re: [NTG-context] \underbar problem

2013-09-06 Thread Hans Hagen

On 9/5/2013 5:43 PM, Alan Bowen wrote:

In a lengthy document, \underbar occasionally has no effect. From the
wiki, I have learned that this can be rectified using
\inframed[frame=off]{\underbar{….}}. The problem is that this only works
for short text: lengthy text, say a paragraph, gets printed as a single
line.

Is there a way (a key?) that will allow \underbar to work with \inframed
or perhaps another way of getting \underbar to work 100% of the time?


no example ?

Hans

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

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


Re: [NTG-context] installing two ConTeXt trees

2013-09-06 Thread Hans Hagen

On 9/6/2013 7:04 PM, Otared Kavian wrote:

Hi Hans,

Thanks for this new feature for passing optional flags to the mkiv engine: I 
tested it on TeXShop and from a Terminal command line, and evrything works as 
expected.
I wikified your instructions,
http://wiki.contextgarden.net/purge_aux_files


thanks


but I wonder whether I chose the right title for that page (purge aux files).


sietse keeps an eye on such matters so unless he complains it's ok

Hans

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

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


Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Thangalin
Hi,

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


We'll just have everybody in the world who has a Kindle, Kobo, or other
reader exchange their existing hardware, and then purchase an iPad plus
iBook. Problem solved? ;-)

ConTeXT TeX reading xml - export - optional transform - EPUB + CSS*
 you want 'direct epub html from context' (no xslt) but on the other hand
 use xslt to map onto context while context can do xml directly ... chicken
 egg


Well, given that ConTeXt doesn't actually produce validating EPUB
documents, I suspect not many people will actually use that feature. It's
great in theory, but if it produces books that don't actually work on the
Kindle or Kobo, then it's unusable in practice -- never mind not being able
to add the books to online marketplaces (such as Amazon) because, again,
the output does not validate.

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
___

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Marco Patzer
On 2013–09–06 H. Özoguz wrote:

 Thanks Marco and Wolfgang!

You should thank Hans for implementing all these features.

 How to define before ? and ! a 0.1 leftspace, but before the
 combination ?! only ONE 0.1 leftdistance - and not such a distance
 before the ! for this case?

The simplest solution would be to use “⁈” instead of “?!”.

\setupbodyfont
  [dejavu]

\definecharacterspacing
  [MySpacing]

\setupcharacterspacing
  [MySpacing]
  [\number`!]
  [left=.2]

\setupcharacterspacing
  [MySpacing]
  [\number`?]
  [left=.2]

\setcharacterspacing
  [MySpacing]

\starttext
  What? And why? Really⁈
\stoptext

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Hans Hagen

On 9/6/2013 6:20 PM, Marco Patzer wrote:

On 2013–09–06 H. Özoguz wrote:


Thanks Marco and Wolfgang!


You should thank Hans for implementing all these features.


How to define before ? and ! a 0.1 leftspace, but before the
combination ?! only ONE 0.1 leftdistance - and not such a distance
before the ! for this case?


The simplest solution would be to use “⁈” instead of “?!”.


i wonder how these things ended up in unicode



\setupbodyfont
   [dejavu]

\definecharacterspacing
   [MySpacing]

\setupcharacterspacing
   [MySpacing]
   [\number`!]
   [left=.2]

\setupcharacterspacing
   [MySpacing]
   [\number`?]
   [left=.2]

\setcharacterspacing
   [MySpacing]

\starttext
   What? And why? Really⁈
\stoptext

Marco



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

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




--

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

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

Re: [NTG-context] \underbar problem

2013-09-06 Thread Hans Hagen

On 9/6/2013 10:51 PM, Alan Bowen wrote:

Sorry, Hans—I had thought that it would be very complicated to produce
one, but actually it was easy:

\usemodule[simplefonts]

\setmainfont[Antykwa-Poltawskiego][protrusion=pure,
expansion=quality,
mode=node,
script=latn,
smallcaps]

\setupalign[hanging,hz]

\starttext

\underbar{\dorecurse{5}{\input knuth}}

\stoptext

Note from the wiki (http://wiki.contextgarden.net/Command/overstrike):

If you are using microtypography with |\setupalign[hz,hanging]|,
then with some fonts the rule may end up off-target, above the
characters instead of through them. (The problem was experienced
with Linux Libertine and mkiv, and not with Latin Modern.) The
workarounds are:

  o Put the overstriked text in a |\inframed[frame=off]{}|.


As with \overstrike, with \underbar “off target” can mean “nowhere”.

\underbar and Latin Modern witrh microtypography works but not \underbar
and Antykwa-Poltawskiego—unless one turns off microtypography.


So, if I must use \inframed—can I get it to allow for proper
linebreaking/paragraphing?


hm, it relates to hz, which is weird as that is only messign with 
characters ... (i must admit that i never use that)


Hans


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

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


Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Aditya Mahajan

On Fri, 6 Sep 2013, Thangalin wrote:


Hi,

never mind not being able to add the books to online marketplaces (such as

Amazon) because, again, the output does not validate.



I think the simplest thing to do would be to update the wiki and have a
note that informs readers that while ConTeXt can be used to generate an
EPUB, it is likely that that EPUB will be unusable for devices without
further transformation of the XML content. At least that way the knowledge
is out there and people are forewarned that not all EPUB documents are
equivalent.


It will also be nice to add a table that lists the EPUB readers (hardware 
and software) and tells whether ConTeXt produced EPUB documents work on 
them.


Aditya
___
If your question is of interest to others as well, please add an 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] \underbar problem

2013-09-06 Thread Alan Bowen
Sorry, Hans—I had thought that it would be very complicated to produce one,
but actually it was easy:

\usemodule[simplefonts]

\setmainfont[Antykwa-Poltawskiego][protrusion=pure,
expansion=quality,
mode=node,
  script=latn,
smallcaps]

\setupalign[hanging,hz]

\starttext

\underbar{\dorecurse{5}{\input knuth}}

\stoptext

Note from the wiki (http://wiki.contextgarden.net/Command/overstrike):

If you are using microtypography with \setupalign[hz,hanging], then with
some fonts the rule may end up off-target, above the characters instead of
through them. (The problem was experienced with Linux Libertine and mkiv,
and not with Latin Modern.) The workarounds are:


   - Put the overstriked text in a \inframed[frame=off]{}.


As with \overstrike, with \underbar “off target” can mean “nowhere”.

\underbar and Latin Modern witrh microtypography works but not \underbar
and Antykwa-Poltawskiego—unless one turns off microtypography.


So, if I must use \inframed—can I get it to allow for proper
linebreaking/paragraphing?

Alan


On Fri, Sep 6, 2013 at 12:52 PM, Hans Hagen pra...@wxs.nl wrote:

 On 9/5/2013 5:43 PM, Alan Bowen wrote:

 In a lengthy document, \underbar occasionally has no effect. From the
 wiki, I have learned that this can be rectified using
 \inframed[frame=off]{\**underbar{….}}. The problem is that this only
 works
 for short text: lengthy text, say a paragraph, gets printed as a single
 line.

 Is there a way (a key?) that will allow \underbar to work with \inframed
 or perhaps another way of getting \underbar to work 100% of the time?


 no example ?

 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] installing two ConTeXt trees

2013-09-06 Thread Otared Kavian
Hi Hans,

Thanks for this new feature for passing optional flags to the mkiv engine: I 
tested it on TeXShop and from a Terminal command line, and evrything works as 
expected.
I wikified your instructions,
http://wiki.contextgarden.net/purge_aux_files
but I wonder whether I chose the right title for that page (purge aux files).

Best regards: OK

On 4 sept. 2013, at 10:36, Hans Hagen pra...@wxs.nl wrote:

 […]
 as an experiment i now also check the preamble for a ctxfile specification
 
 make a file preferences.ctx, put it someplace in the tree and run mtxrun 
 --generate:
 
 ?xml version='1.0' standalone='yes'?
 
 ctx:job
ctx:messagedefault flags/ctx:message
ctx:flags
ctx:flagpurge/ctx:flag
ctx:flagsynctex=zipped/ctx:flag
/ctx:flags
 /ctx:job
 
 then you can say:
 
 % ctxfile=preferences
 
 \starttext
  whatever
 \stoptext
 
 -
  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
___


Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Thangalin
Hi,

never mind not being able to add the books to online marketplaces (such as
 Amazon) because, again, the output does not validate.


I think the simplest thing to do would be to update the wiki and have a
note that informs readers that while ConTeXt can be used to generate an
EPUB, it is likely that that EPUB will be unusable for devices without
further transformation of the XML content. At least that way the knowledge
is out there and people are forewarned that not all EPUB documents are
equivalent.

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
___

[NTG-context] Bibliography, replacing repeated authorname by a dash

2013-09-06 Thread Robert Blackstone
Dear List,
I'm typesetting a PhD thesis. The university has strict and not quite standard 
specifications for the Bibliography and one of these is that if an author's 
name is only given with its first entry and  must be replaced by a dash in the 
following entries.

Is there anybody on this list who can give me a method worthy of ConTeXt? (I've 
no experience with Lua myself.)

I did find a hack, i.e. replacing in the .bbl-file the author's last name by 
\hl[4] (and omitting his initial) the second time, as shown in the minimal 
example. But that requires modifying the .bbl-file manually, a task which I'd 
rather avoid, but will do if necessary.

Thanks in advance for any advice.

Best regards,
Robert Blackstone

 
%---ME--
\setuppublications[alternative=apa,sorttype=bbl]
\setuphead[chapter][number=no]

\starttext 
\chapter{References}

\setuppublicationlist[samplesize=,totalnumber=2]

\startpublication[k=Agazzari:1607ek,t=book,
a={{Agazzari}},y=1607,
n=347,s=Aga07]
\author[]{Agostino}[A.]{}{Agazzari}
\pubyear{1607}
\title{Del suonare sopra il basso con tutti stromenti \ uso loro nel conserto}
\city{Siena}
\pubname{Domenico Falcini}
\stoppublication

\startpublication[k=Agazzari:1608fk,t=book,
a={{Agazzari}},y=1608,
n=118,s=Aga08]
\author[]{Agostino}[]{}{\hl[4]}
\pubyear{1608}
\title{Bassus ad Organum \ Musica instrumenta}
\city{Venice}
\pubname{Amadinus}
\stoppublication

\nocite[Agazzari:1607ek]
\nocite[Agazzari:1608fk]

\placepublications[criterium=cite]

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


[NTG-context] [***SPAM***] YATM (Yet Another Table Method)

2013-09-06 Thread hwitloc

I just noticed the YATM, yet another table method, built in ConTEXt, called 
extreme tables, which is said to be a variant of the natural table mechanism.

Is extreme-tables a superset of natural-tables functionality?

Is the future in extreme-tables and will natural-tables eventually take a back 
seat and then fade away, being surpassed in development, features and usage?

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

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


Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread J. R. Schmid
Thank you Marco, this solved my problem (footnote numbers inside of Arabic
text) as well!


On 6 September 2013 10:07, Marco Patzer li...@homerow.info wrote:

 On 2013–09–06 H. Özoguz wrote:

  \starttext
  {\it This was\footnote{And actually is.} my way of typesetting.}
  Is\footnote{Another fn.} this not beautiful?
  \stoptext
 
  You see, the first number is italic, the second normal. How can I
  force ALL fn-numbers to appear in normal style, independent from the
  textstyle of the text, they were set in?

   \setupnote
 [footnote]
 [textstyle=normal]

  2. I want to add a \narrownobreakspace before every footnote-number
  (because of the closing quotation marks, which often overlap with
  them, especially if they are set italic).

   \setupnote
 [footnote]
 [textstyle=small,
  textcommand=\FootNoteCmd]

   \define[1]\FootNoteCmd
 {\narrownobreakspace\high{#1}}


 Marco


 ___
 If your question is of interest to others as well, please add an 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
___