Re: [NTG-context] Quotation with method=font produces error

2017-10-23 Thread Christoph Reller
Mon, 23 Oct 2017 17:21:25 +0200, Pablo Rodriguez  wrote:
> On 10/23/2017 09:03 AM, Christoph Reller wrote:
>> [...]
>> Could you please confirm (or deny) that the following MWE produces an
>> error with the currently latest version of ConTeXt:
>>
>> \setupquotation[method=font]
>> \starttext
>> \quotation{A}
>> \stoptext
>
> Hi Christoph,
>
> I’m afraid it fails:
> [...]

Thank you Pablo for confirming this!

Does anybody know whether this is a bug or whether it is the wrong way
to enable font-based kerning for quotations?

Cheers,
Christoph
___
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] Default setups

2017-10-23 Thread Wolfgang Schuster




N. Raghavendra 
20. Oktober 2017 um 15:05
Is there a command which prints to the log file the default values of
the keys in the setups that are used in a document?

For example, when I define a new document division with

\definehead [mysection] [section] [style=...]

it helps to know the default value of the `style' key for `section'
headings.

\usemodule[setups-basics]

\loadsetups[context-en.xml]

\starttext

\showrootvalues[head]

\showinstancevalues[head][chapter]

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Default setups

2017-10-23 Thread luigi scarso
On Fri, Oct 20, 2017 at 3:05 PM, N. Raghavendra  wrote:
> Is there a command which prints to the log file the default values of
> the keys in the setups that are used in a document?
>
> For example, when I define a new document division with
>
> \definehead [mysection] [section] [style=...]
>
> it helps to know the default value of the `style' key for `section'
> headings.

not all the default values are there , but still useful is
tex/texmf-context/tex/context/interface/mkiv/i-context.pdf


tex/texmf-context/tex/context/interface/mkiv/i-readme.pdf

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

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

Re: [NTG-context] Default setups

2017-10-23 Thread Pablo Rodriguez
On 10/20/2017 03:05 PM, N. Raghavendra wrote:
> Is there a command which prints to the log file the default values of
> the keys in the setups that are used in a document?
> 
> For example, when I define a new document division with
> 
> \definehead [mysection] [section] [style=...]
> 
> it helps to know the default value of the `style' key for `section'
> headings.

Hi Raghu,

after replying to your longer questioning about ConTeXt, I’m replying to
your query.

I refrained myself to reply before, because my reply would be negative.

I don’t know whether there is a command that gives defaults style
settings for headings.

Defaults for sections are defined in strc-def.mkiv (included in
/path-to-context-suite/tex/texmf-context/tex/context/base/mkiv/) and is
\tfa.

Just in case 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Difficulties with learning about ConTeXt

2017-10-23 Thread Pablo Rodriguez
On 10/23/2017 12:40 PM, N. Raghavendra wrote:
> I am a mathematician, and have been using LaTeX on a daily basis since
> 1992, when I was a graduate student.  I have recently started using
> ConTeXt, and am very happy with the facilities it provides, and with its
> self-contained system which does not require one to load external
> packages with subtle interactions.

Hi Raghu,

my experience with LaTeX was brief when compared with yours: about seven
years. I think I may be using ConTeXt for almost a decade.

My background is in humanities. I cannot code, although I may read and
understand very basic scripts. I simply don’t do math (it’s all Greek to
me).

The most useful ConTeXt feature for me is the handling of XML files as
source files for text.

> One problem that I am facing is that the documentation of ConTeXt is
> often not enough for me to figure out what to do when a problem arises.
> I understand that documentation is perhaps not a priority for the
> project.  As Hans Hagen wrote in `? Context',
> 
>   "... writing can get a lower priority in a time when quick and dirty
>answers can be found on the internet, mailing list or wiki.  ... For
>what it's worth: whenever I have to solve a problem with a program
>(or language implementation) I run into cases where I have to look
>long to find (non conflicting) information. It just comes with the
>problems one wants to solve and TeX (ConTeXt) is not different."

When I started learning ConTeXt, I thought it wasn’t well documented. I
changed my mind since that.

I understand that writing documentation may not be a priority for Hans,
becase:

- He is the main developer of ConTeXt and LuaTeX.

- He fixes the bugs users or developers report.

- He kindly implements reasonable requests for new features.

- He checks the mailing list and replies to some of the questions.

- He still writes documentation for many of the ConTeXt features (not
  only literate programming).

In my personal case, many bugs and new requests were fixed or
implemented in less than a week. (I wish it would be the same at work,
where we have paid support.)

I’m not the only user that has experienced that. Hans may be not writing
documentation, because he focuses on other (more important) aspects of
ConTeXt development.

I would like to write a manual for ConTeXt. But it will be in Spanish, I
may need years, and it will be limited to my own experience.

The wiki is an informal invitation to the users to document the issues
the were able to solve.

Hans explained his take on the documentation some years ago:
https://mailman.ntg.nl/pipermail/ntg-context/2010/047500.html.

> However, there is not a great deal of information on the Internet about
> solving ConTeXt problems.  Whenever I ran into a LaTeX problem in the
> last several years, I used to find a solution, or a substantial step
> towards one, that was already documented on the TeX-LaTeX Stack
> Exchange.  Unfortunately, it does not contain a similar amount of
> information about ConTeXt.  In any case, I have started posting ConTeXt
> questions there, see https://tex.stackexchange.com/q/397463/146025 and
> https://tex.stackexchange.com/q/397607/146025

There is no secret that ConTeXt is way less popular than LaTeX. It is
even trickier to search for it (since context is also a rather common word).

I don’t know how many ConTeXt users are in the world. Probably the
number of LaTeX users is a hundred times the number of ConTeXt users.
This explains a lot of things in terms of written explanations.

Let me mention a single case. TUGs are TeX Users Groups, but most of its
participants are LaTeX users. The TeX Spanish mailing list has almost
400 participants. There may be other ConTeXt users on that list. But
LaTeX is by far the most common topic in the vast majority of messages.
My impression when I explain there basic ConTeXt features (such as
modes) is that I’m describing Martian life to the generation of my
grandparents (they have no clue of what I’m speaking about).

StackExchange and similar platforms are great, sure. But being
responsive to questions for users in the mailing list and in SE may be
too much for most of the users. At least, my day has only 24 hours ;-).

> As for the mailing list, I posted three requests for help here in the
> last one week.  When I bumped my first message after more than a day
> without any response, Tomas Hala kindly came to my rescue.  The other
> two messages, posted four and two days ago, have not elicited any
> response yet.  This contrasts with Aditya Mahajan's experience, which he
> describes in his interview at
> http://tex-talk.net/2012/08/textalk-an-interview-with-aditya/:
> 
>   "Most questions on the context mailing lists are answered within
>minutes ... look in the main manual and the wiki to see how to
>achieve the particular effects that you wanted, and if you cannot
>figure it out, ask on the context mailing list."

When the interview took place, the 

Re: [NTG-context] External graphics directory

2017-10-23 Thread N. Raghavendra
At 2017-10-23T17:45:05+02:00, Peter Münster wrote:

> Yes.
> Command: "context --arguments=imagedir=../../foo file"
> File: "\setupexternalfigures[directory=\env{imagedir}]"

Thank you, this works perfectly.  It led me also to the
\getvariable{environment}{...}, \getdocumentargument, and
\do*documentargument commands, which may be useful later on.

Regards,
Raghu.

--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
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] \hyphenation problem

2017-10-23 Thread Pablo Rodriguez
On 10/22/2017 10:16 PM, Rik Kabel wrote:
> Thank you, Pablo, for the workaround.
> 
> As to your question, it originally came about because of the order in 
> which environment files were included in a document (one general to many 
> documents, one specific to a new document). Between the times I created 
> them, I switched from \hyphenation to \startexceptions.
> 
> In general, however, it seems that \startexceptions provides 
> fine-grained control by language, whilst \hyphenation appears to be 
> broad-stroke across all languages, and so it might make sense to use 
> both (or not) depending on how you want to hyphenate, for example, trade 
> names or other proper nouns in a multi-language work.

Hi Rik,

see this sample:

{\es \hyphenation{Schwarz-en-egger}}
{\en \hyphenation{epi-graphs Mount-weazels Mount-weazel}}
\hyphenation{Schwarz-en-egger}
\starttext
\startTEXpage[offset=1em]
\hyphenatedword{Schwarzenegger} \\
{\es\hyphenatedword{Schwarzenegger}} \\
\hyphenatedword{Mountweazel} \\
\hyphenatedword{Mountweazels} \\
\hyphenatedword{epigraph} \\
\hyphenatedword{epigraphs}
\stopTEXpage
\stoptext

I have just realized that it isn’t a question of \startexceptions, it is
just \hyphenation itself.

BTW, either I totally missing the issue or \hyphenation doesn’t work for
all languages, it only works for US English (the default language).

That being said, I wonder whether it makes sense to define two instances
of hyphenation exceptions.

> But this does have me wondering if I am cancelling hyphenation overrides 
> made in the ConTeXt base code by way of \hyphenation when I use 
> \startexceptions. Are there any such overrides standard? (I could not 
> see any in a quick search of the source, but they may not be obvious to 
> me if they exist.)

I used \registerhyphenationexceptions and I didn’t get the impression it
was so tricky. But this was years ago and I don’t remember which file it
was.

Sorry for not giving more 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] External graphics directory

2017-10-23 Thread Peter Münster
On Thu, Oct 19 2017, N. Raghavendra wrote:

> Is it possible to specify an external graphics directory either as an
> environment variable, or as a command line option to `context', instead
> of writing `\setupexternalfigures [directory=../../foo]'?

Yes.
Command: "context --arguments=imagedir=../../foo file"
File: "\setupexternalfigures[directory=\env{imagedir}]"

-- 
   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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Page printed upside down

2017-10-23 Thread Pablo Rodriguez
On 10/23/2017 12:34 PM, Fabrice Couvreur wrote:
> Hi Pablo,
> Thank you for the links and for your help. I'm going to look at Metafun
> for the vertical line.

Hi Fabrice,

I know that curiosity killed the cat, but why do you need the vertical line?

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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Quotation with method=font produces error

2017-10-23 Thread Pablo Rodriguez
On 10/23/2017 09:03 AM, Christoph Reller wrote:
> [...]
> Could you please confirm (or deny) that the following MWE produces an
> error with the currently latest version of ConTeXt:
> 
> \setupquotation[method=font]
> \starttext
> \quotation{A}
> \stoptext

Hi Christoph,

I’m afraid it fails:

tex error   > tex error on line 3 in file a.tex: ! Extra }, or
forgotten \endgroup
l.3 \quotation{A}
 1 \setupquotation[method=font]
 2 \starttext
 3 >>  \quotation{A}
 4 \stoptext

Just in case 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Difficulties with learning about ConTeXt

2017-10-23 Thread N. Raghavendra
At 2017-10-23T12:59:35+02:00, luigi scarso wrote:

> 1) test suite cont-tst.7z
> http://www.pragma-ade.nl/download-1.htm

Thank you, the test suite is likely to be a useful resource.

Regards,
Raghu.

-- 
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
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] Difficulties with learning about ConTeXt

2017-10-23 Thread luigi scarso
On Mon, Oct 23, 2017 at 12:40 PM, N. Raghavendra  wrote:
> I am a mathematician, and have been using LaTeX on a daily basis since
> 1992, when I was a graduate student.  I have recently started using
> ConTeXt, and am very happy with the facilities it provides, and with its
> self-contained system which does not require one to load external
> packages with subtle interactions.
>
> One problem that I am facing is that the documentation of ConTeXt is
> often not enough for me to figure out what to do when a problem arises.
> I understand that documentation is perhaps not a priority for the
> project.  As Hans Hagen wrote in `? Context',
>
>   "... writing can get a lower priority in a time when quick and dirty
>answers can be found on the internet, mailing list or wiki.  ... For
>what it's worth: whenever I have to solve a problem with a program
>(or language implementation) I run into cases where I have to look
>long to find (non conflicting) information. It just comes with the
>problems one wants to solve and TeX (ConTeXt) is not different."
>
> However, there is not a great deal of information on the Internet about
> solving ConTeXt problems.  Whenever I ran into a LaTeX problem in the
> last several years, I used to find a solution, or a substantial step
> towards one, that was already documented on the TeX-LaTeX Stack
> Exchange.  Unfortunately, it does not contain a similar amount of
> information about ConTeXt.  In any case, I have started posting ConTeXt
> questions there, see https://tex.stackexchange.com/q/397463/146025 and
> https://tex.stackexchange.com/q/397607/146025
>



These are the resources that I have found very useful:

0)interface files
tex/texmf-context/tex/context/interface/mkiv

1) test suite cont-tst.7z
http://www.pragma-ade.nl/download-1.htm

2) sources  of the pdf of the standalone,
tex/texmf-context/doc/context/sources/general

3) sources of modules
tex/texmf-context/tex/context/modules

4) source code of mkiv
tex/texmf-context/tex/context/base/mkiv

5) the archives of emails
https://mailman.ntg.nl/pipermail/ntg-context/


The ml is ok of course, but at some point you will develop your own
style of doing things,
and probably you will encapsulate it into a module.



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

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

[NTG-context] Difficulties with learning about ConTeXt

2017-10-23 Thread N. Raghavendra
I am a mathematician, and have been using LaTeX on a daily basis since
1992, when I was a graduate student.  I have recently started using
ConTeXt, and am very happy with the facilities it provides, and with its
self-contained system which does not require one to load external
packages with subtle interactions.

One problem that I am facing is that the documentation of ConTeXt is
often not enough for me to figure out what to do when a problem arises.
I understand that documentation is perhaps not a priority for the
project.  As Hans Hagen wrote in `? Context',

  "... writing can get a lower priority in a time when quick and dirty
   answers can be found on the internet, mailing list or wiki.  ... For
   what it's worth: whenever I have to solve a problem with a program
   (or language implementation) I run into cases where I have to look
   long to find (non conflicting) information. It just comes with the
   problems one wants to solve and TeX (ConTeXt) is not different."

However, there is not a great deal of information on the Internet about
solving ConTeXt problems.  Whenever I ran into a LaTeX problem in the
last several years, I used to find a solution, or a substantial step
towards one, that was already documented on the TeX-LaTeX Stack
Exchange.  Unfortunately, it does not contain a similar amount of
information about ConTeXt.  In any case, I have started posting ConTeXt
questions there, see https://tex.stackexchange.com/q/397463/146025 and
https://tex.stackexchange.com/q/397607/146025

As for the mailing list, I posted three requests for help here in the
last one week.  When I bumped my first message after more than a day
without any response, Tomas Hala kindly came to my rescue.  The other
two messages, posted four and two days ago, have not elicited any
response yet.  This contrasts with Aditya Mahajan's experience, which he
describes in his interview at
http://tex-talk.net/2012/08/textalk-an-interview-with-aditya/:

  "Most questions on the context mailing lists are answered within
   minutes ... look in the main manual and the wiki to see how to
   achieve the particular effects that you wanted, and if you cannot
   figure it out, ask on the context mailing list."

I understand that we are all busy, and it is not easy to find time to
answer novice queries on the list.

Lastly, I found the Wiki useful sometimes for quick and dirty solutions
to problems, and sometimes as a source of documentation.  Yet there have
been several cases where I could not find what I wanted in it.

For example, I could not find the answers to my last two queries on this
list and to my two questions on SE, in the manual, on the archives of
this list, or on the Wiki.

These problems mean that I have to spend much more time experimenting
and searching before I find a reasonable way to get the things I want
with ConTeXt.  Given the beauty of the results that ConTeXt returns, I
don't mind that.  However, I wonder if there are others who have similar
problems learning about ConTeXt, and if they have some words of advice
for me.  I am also interested in ways to help people with similar
difficulties.

Regards,
Raghu.

--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
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] Page printed upside down

2017-10-23 Thread Fabrice Couvreur
Hi Pablo,
Thank you for the links and for your help. I'm going to look at Metafun for
the vertical line.
Fabrice

2017-10-22 9:48 GMT+02:00 Pablo Rodriguez :

> On 10/21/2017 11:45 PM, Fabrice Couvreur wrote:
> > Hi Pablo,
> > Sorry for the late response. I did some tests before answering to
> > understand your explanations.
>
> Hi Fabrice,
>
> the basic idea is the paper orientation matches the printing option (if
> any).
>
> > - With the command \setupinteractionscreen [option = landscape] and
> > without selecting anything in Acrobat, I get a document in double-sided
> > portrait mode but the back side is upside down
>
> \setupinteractionscreen[option=portrait] would be the right option here.
> It is double-sided (duplex) printing for portrait orientation.
>
> Consider that ConTeXt has \setuppapersize[A4, portrait] as default.
>
> > - With the command \setuppapersize [A4, landscape] and without
> > selecting anything in Acrobat, I get two documents in landscape mode in
> > the same direction
>
> You got two printed sheets instead of one. To get only one, you need to
> specify duplex printing (as explained above). Otherwise, your printer
> would print as its default properties specify.
>
> There is even a \setupinteractionscreen[option=page] option, which
> enables single-sided (or simplex) printing. This is required for
> printers that are configured to print doublesided per default.
>
> > I think it's clear now, thank you.
>
> I hope it may be clearer after my explanation.
>
> > I did a try to get a booklet but the result is not correct because the
> > text or formulas of mathematics are overflowing in the colums
>
> Sorry, but overflowing is normal here, the formula has too many data to
> fit in that column width.
>
> I would discourage the use of columns to create the booklet.
>
> My advice would be to compose the standard text and then impose the pages:
>
> \starttext
>   \dorecurse{4}{\chapter{Chapter \Romannumerals{\recurselevel}}
>   \section{\TeX}\input knuth\par
> \section{Zapf}\input zapf\par
> \section{Math}
> \startformula
> \startmathalignment[n=2,align={left,left}]
> \NC P_1 + P_2 + \dots + P_{12} \NC = 400 + 400\times 1,05 +
> 400\times 1,05^2 + \dots + 400 \times 1,05^{11}\NR
> \NC  \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR
> \NC  \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR
> \stopmathalignment
> \stopformula}
> \stoptext
>
> And then use the following code with the output PDF document from the
> code above:
>
> \setuppapersize [A5][A4,landscape]
> \setupexternalfigures[interaction=all]
> \enabledirectives[references.border]
> \setuparranging [2UP]
> \setuplayout
>   [backspace=0pt,
> topspace=0pt,
>width=middle,
>   height=middle,
> location=middle,
>   header=0pt,
>   footer=0pt]
> \setupinteraction[state=start]
> \setupinteractionscreen[option={landscape, fixed, paper}]
> \starttext
> \insertpages[document.pdf][width=0pt]
> \stoptext
>
> You should get something similar to the attached booklet.
>
> Of course, you may have to increase font size in the original document.
> But to know which increase in size the font needs, you have to check it
> in the printed version of the final booklet.
>
> With an already released booklet,
> https://github.com/ousia/from-pandoc-to-context/blob/master/
> doc/from-pandoc-to-context_A4.pdf
> is the basis to be imposed in the final booklet
> https://github.com/ousia/from-pandoc-to-context/blob/master/
> doc/from-pandoc-to-context_A4-booklet.pdf.
>
> The approach I’m suggesting is simpler and easier to implement.
>
> Just in case 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://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] Quotation with method=font produces error

2017-10-23 Thread Christoph Reller
On Thu, Oct 19, 2017 at 1:59 PM Christoph Reller 
wrote:

> On Thu, 19 Oct 2017 11:53:56 +0200 Floris van Manen  > wrote:
>
>>
>> > On 19 Oct 2017, at 11:33, Christoph Reller 
>> wrote:
>> >
>> > \setupquotation[method=font]
>>
>> what is the intension of the method=font ?
>>
>>
> Thank you for asking. Consider the following MWE:
>
> \setupbodyfont[cambria]
> %\setupquotation[method=font]
> \starttext
> \quotation{A}\crlf
> “A”
> \stoptext
>
> In the output rendering of the above (see attachment), the first line
> lacks kerning between the double quotes and the letter A. This can be
> enabled by saying \setupquotation[method=font]. At least that is what I
> know about this option. Am I wrong? Is there a different option for
> enabling this?
>

Dear Floris (or anybody from the list),

Could you please confirm (or deny) that the following MWE produces an error
with the currently latest version of ConTeXt:

\setupquotation[method=font]
\starttext
\quotation{A}
\stoptext

Thank you,
Christoph
___
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] Caption location in floatcombination

2017-10-23 Thread Christoph Reller
On Tue, Oct 17, 2017 at 11:00 AM Christoph Reller <
christoph.rel...@gmail.com> wrote:

> On Mon, Sep 18, 2017 at 7:19 AM Christoph Reller <
> christoph.rel...@gmail.com> wrote:
>
>> On Sun, Sep 17, 2017 at 6:03 PM Hans Hagen  wrote:
>>
>>> On 9/13/2017 8:30 AM, Christoph Reller wrote:
>>> > It seems to me that the location given to \setupcaptions is not honored
>>> > correctly in floatcombinations anymore. Consider the following MWE:
>>> >
>>> > \setupcaptions[location=top, number=no]
>>> > \starttext
>>> > \placetable[][]{One}{
>>> >\bTABLE \bTR \bTD First \eTD \eTR \eTABLE}
>>> > \placefloat[][]{}{
>>> >\startfloatcombination
>>> >  \placetable[][]{Two}{
>>> >\bTABLE \bTR \bTD Second \eTD \eTR \eTABLE}
>>> >\stopfloatcombination}
>>> > \stoptext
>>> >
>>> > In earlier versions of ConTeXt, both captions "One" and "Two" of both
>>> > tables are rendered above the respective table. In the currently latest
>>> > version, the caption "Two" is rendered below the table. Is this a bug
>>> or
>>> > do I have to setup caption location separately for floatcombinations?
>>> >
>>> > Any feedback is welcome.\setupcaptions[location=top,number=no]
>>>
>>> \starttext
>>>
>>> \placetable{TABLE}{\bTABLE \bTR \bTD First \eTD \eTR \eTABLE}
>>>
>>> \placefloat{FLOAT}{%
>>>\startfloatcombination
>>>  \placetable{Two}{\bTABLE \bTR \bTD Second \eTD \eTR \eTABLE}
>>>  \placetable{Two}{\bTABLE \bTR \bTD Second \eTD \eTR \eTABLE}
>>>\stopfloatcombination}
>>> \stoptext
>>
>>
>> Thank you for your input, Hans!
>>
>> I see that the captions "TABLE" and "FLOAT" are placed on top while the
>> captions "Two" and "Two" are placed on the bottom. Is there a way to setup
>> the locations of the captions of floats within a floatcombination? In this
>> particular example, the goal is, that the captions "Two" and "Two" are
>> placed on top of the respective tables.
>>
>
>  Does anybody know a way to control the caption location in
> floatcombinations? Any hint would be greatly appreciated.
>
>
Dear List,

I have noticed that in normal combinations \setupcaption[location=...] is
not honored either. MWE:

\setupcaptions[location=top, number=no]
\starttext
\placefigure{Two Tables}{
  \startcombination
{\bTABLE\bTR\bTD First\eTD\eTR\eTABLE}{First}
{\bTABLE\bTR\bTD Second\eTD\eTR\eTABLE}{Second}
  \stopcombination}
\stoptext

The caption "Two Tables" is located above the combination. The captions
"First" and "Second" are, however, located below. How can I setup captions
such that "First" and "Second" are located also above? If this is not
supported then I would be glad to know.

By the way, I have noticed that \setupcaptions is missing from
i-context.pdf. Is this omission on purpose?

Kind regards,
Christoph
___
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
___