Re: [NTG-context] Configure AUCTeX to run context not texec

2013-11-11 Thread Jean Magnan de Bornier
Le 10 novembre à 22:38:33 Peter Münster pmli...@free.fr écrit notamment:

| On Sat, Nov 09 2013, Jean Magnan de Bornier wrote:

|  emacs 24.3.1 ubuntu
|  context minimal many versions (I update about once a week)
|  auctex 11.87.2 (installed via elpa and frequently updated)

| Strange. I use also the latest versions, but I observe the same
| behaviour as the OP...

Here is my complete customization regarding ConTeXt:

 '(ConTeXt-engine luatex)
 '(TeX-PDF-mode t)
 '(TeX-command-list (quote ((ConTeXt 
PATH=~/context/tex/texmf-linux/bin:$PATH 
context %s TeX-run-command nil t :help Run context (MarkIV)) (TeX 
%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t TeX-run-TeX nil (plain-tex-mode 
texinfo-mode ams-tex-mode) :help Run plain TeX) (LaTeX %`%l%(mode)%' %t 
TeX-run-TeX nil (latex-mode doctex-mode) :help Run LaTeX) (Makeinfo 
makeinfo %t TeX-run-compile nil (texinfo-mode) :help Run Makeinfo with Info 
output) (Makeinfo HTML makeinfo --html %t TeX-run-compile nil 
(texinfo-mode) :help Run Makeinfo with HTML output) (AmSTeX %(PDF)amstex 
%`%S%(PDFout)%(mode)%' %t TeX-run-TeX nil (ams-tex-mode) :help Run AMSTeX) 
(BibTeX bibtex %s TeX-run-BibTeX nil t :help Run BibTeX) (View %V 
TeX-run-discard-or-function t t :help Run Viewer) (Print %p 
TeX-run-command t t :help Print the file) (Queue %q TeX-run-background 
nil t :help View the printer queue :visible TeX-queue-command) (File 
%(o?)dvips %d -o %f  TeX-run-command t t :help Generate PostScript file) 
(Index makeindex %s TeX-run-command nil t :help Create index file) 
(Check lacheck %s TeX-run-compile nil (latex-mode) :help Check LaTeX file 
for correctness) (Spell (TeX-ispell-document \\) TeX-run-function nil t 
:help Spell-check the document) (Clean TeX-clean TeX-run-function nil t 
:help Delete generated intermediate files) (Clean All (TeX-clean t) 
TeX-run-function nil t :help Delete generated intermediate and output files) 
(Other  TeX-run-command t t :help Run an arbitrary command

.

As you can see I deleted all standard context commands in auctex, but I doubt 
that
explains anything. 
-- 
Jean
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] New line in cell in Markdown processing? (module t-filter)

2013-11-11 Thread Xan
Hi,

Is there any way to have a multiline cell in markdown while I run ConTeXt with 
t-filter module?

This:

| Activitat | Conceptes | idioma | notes |
|:--|:--|:---|:--|
| [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions 
hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
| [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | 
funció exponencial | anglès | complicat de calcular (per tempteig). no me surt 
la resposta teòria de 29 |
| [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | 
funció exponencial | | |


produces me a very wide table.

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] New line in cell in Markdown processing? (module t-filter)

2013-11-11 Thread Aditya Mahajan

On Mon, 11 Nov 2013, Xan wrote:


Hi,

Is there any way to have a multiline cell in markdown while I run ConTeXt with 
t-filter module?


Can you please send a complete minimal example?


This:

| Activitat | Conceptes | idioma | notes |
|:--|:--|:---|:--|
| [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions 
hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
| [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | 
funció exponencial | anglès | complicat de calcular (per tempteig). no me surt 
la resposta teòria de 29 |
| [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | 
funció exponencial | | |


produces me a very wide table.


Pandoc uses the old table mechanism for tables. I think that the best way 
forward is to convert a markdown table to a natural table (\bTABLE etc.). 
That will make it much easier to control the layout of the table. But this 
should be raised as a feature request on the pandoc mailing list.


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] New line in cell in Markdown processing? (module t-filter)

2013-11-11 Thread Xan
I know that now:

http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html

On Mon, 11 Nov 2013 15:36:51 +0100
Xan dxpubl...@telefonica.net ha escrit:

 Hi,
 
 Is there any way to have a multiline cell in markdown while I run ConTeXt 
 with t-filter module?
 
 This:
 
 | Activitat | Conceptes | idioma | notes |
 |:--|:--|:---|:--|
 | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions 
 hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
 | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | 
 funció exponencial | anglès | complicat de calcular (per tempteig). no me 
 surt la resposta teòria de 29 |
 | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | 
 funció exponencial | | |
 
 
 produces me a very wide table.
 
 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
___


[NTG-context] textreference in a protocol (minutes)

2013-11-11 Thread Joshua Krämer
Dear list members,

I use ConTeXt MkIV to typeset the protocol (minutes) of a meeting.  In my 
macros, I use \textreference and \about to reuse the text from the agenda 
list in the actual sections.  It's like the regular table of contents, 
but reversed (see the below MWE).  I do it like that because sometimes 
entries in the agenda list are skipped in the meeting, and that means 
they have to appear in the agenda list, but there is no corresponding 
section.  Now my problem is that the \textreference content is cut off if 
it is too long, as seen in the below MWE.  How can I disable the 
cropping?  Additionally, if somebody can think of a better solution than 
my \textreference approach, please let me know.

Thank you,
Joshua Krämer

Minimal Working Example:

\def\Agendaentry#1#2{\sym{#1}\textreference[Agendaentry#1]{#2}#2}
\setupreferencing[left={},right={}]
\newcount\Agendaentrynr
\def\Agendasection#1%
{%
\Agendaentrynr=#1%
\advance\Agendaentrynr -1\relax
\setupheadnumber[section][\the\Agendaentrynr]%
\section{\about[Agendaentry#1]}%
}

\starttext

Agenda
\startitemize
\Agendaentry{4}{Berichte des Vorsitzers, des Schatzmeisters und des 
Schriftleiters}
\stopitemize

\Agendasection{4} 
\input zapf

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

Re: [NTG-context] Index - custom sorting

2013-11-11 Thread honyk
On 2013-11-07 Wolfgang Schuster wrote: 
 Am 07.11.2013 um 23:11 schrieb honyk j.tosov...@email.cz:
 
  czech sorting has a quite complex logic. How can a default index
  entries sorting be overridden?
 
  Using a macro or somewhere under the hood via a lua code? 
 
 When you have \mainlanguage[cz] in your document context should use 
 the czech sorting mechanism, when you english as main language you 
 can use them in the register
 with \placeregister[index][language=cz].
 
 You can also influence the sorting with the method key for
 \placeregister: http://www.ntg.nl/pipermail/ntg-
 context/2010/052950.html

That main language is set correctly. While the current implementation
supports a single character order, in czech at least two are required - the
primary one for the first pass and the secondary for the second pass. It
ensures the correct order of accented characters.

Anyway, I dive into the code and found an entry point in the sort-ini.lua
file.
In the comparers.basic(a,b) function I call a customized code instead of
basicsort().

Thanks to my code I can produce desired outputs now ;-)

But all my lua code is directly in that file, which is not ideal as it is
overwritten with every ConTeXt update. Is there any general recommendation
how to make these customization more flexible?

Thanks, Jan

___
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 and inherited style

2013-11-11 Thread Joshua Krämer
Dear list members,

I need a second font in my text for the purpose of mark-up.  This font is 
defined with \definesimplefonttypeface.  If I switch to a font variant 
like bold and afterwards to the second font, the second font doesn't 
inherit this style.  It only works the other way around (switching to the 
second font first, then to another style).  In the following example, the 
whole section title should be typeset in bold, but the part using the 
second font is typeset in the regular style.  How can I make it inherit 
the bold style?

Thank you,
Joshua Krämer

\usemodule[simplefonts]
\setmainfont[dejavuserif]
\definesimplefonttypeface[Secondfont][dejavusans]
\setuphead[section][style={\tf\bf}]

\starttext
\section{One {\Secondfont Two} Three}
\input zapf
\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] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
Hello, I have the following MWE:
\starttext

\setuptab[headstyle=ssbfb]

\tab{foo} \input knuth \par

\stoptext


Here, the headstyle specifies a sans font with boldface style, at 1.44
times the current bodyfont size.


However, I want to be able to specify an absolute point size, instead of
a relative size.

I tried variations like

  \setuptab[headstyle=18pt]

but that has no effect: the size remains 12pt, or whatever the default is.

If I use
  \setuptab[headstyle={\switchtobodyfont[18pt]}]

then the size takes effect (for the key only, which is what I want).
I can combine that with sans:
  \setuptab[headstyle={\switchtobodyfont[ss, 18pt]}]

and that works.


But how to mix in boldface?
  \setuptab[headstyle={\switchtobodyfont[ssbf, 18pt]}]

doesn't give sans boldface, but reverts to a serif, non-bold style (at
18pt size).

  \setuptab[headstyle={\switchtobodyfont[ss, bf, 18pt]}]

gives the same results.


I finally tried

  \setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]

and that works! But it seems clunky: it looks like it requires two font
switches, which I'm told makes things slower.

And I can't help wondering if I'm missing some simpler way.
Is there a more efficient or elegant way to do this?


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


Re: [NTG-context] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Wolfgang Schuster


   	   
   	Lars Huttar  
  11. November 2013
 18:00
  Hello,
 I have the following MWE:\starttext\setuptab[headstyle=ssbfb]



\setuptab[headstyle=\ssbfb]


  
\tab{foo} \input knuth \par\stoptextHere, 
the headstyle specifies a sans font with boldface style, at 1.44times
 the current bodyfont size.However, I want to be able to 
specify an absolute point size, instead ofa relative size.I 
tried variations like  \setuptab[headstyle=18pt]but that
 has no effect: the size remains 12pt, or whatever the default is.If
 I use  \setuptab[headstyle={\switchtobodyfont[18pt]}]then 
the size takes effect (for the key only, which is what I want).I can
 combine that with sans:  \setuptab[headstyle={\switchtobodyfont[ss,
 18pt]}]and that works.But how to mix in boldface?
  \setuptab[headstyle={\switchtobodyfont[ssbf, 18pt]}]doesn't 
give sans boldface, but reverts to a serif, non-bold style (at18pt 
size).  \setuptab[headstyle={\switchtobodyfont[ss, bf, 18pt]}]gives
 the same results.I finally tried  
\setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]and that 
works! But it seems clunky: it looks like it requires two fontswitches,
 which I'm told makes things slower.And I can't help wondering 
if I'm missing some simpler way.Is there a more efficient or elegant
 way to do this?

  

\definefont[BigBoldSans][SansBold at 18pt]

\setuptab[headstyle=BigBoldSans]

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] Simplefonts and inherited style

2013-11-11 Thread Wolfgang Schuster


   	   
   	Joshua Krämer  
  11. November 2013
 17:52
  Dear 
list members,I need a second font in my text for the purpose of 
mark-up.  This font is defined with \definesimplefonttypeface.  If I
 switch to a font variant like bold and afterwards to the second 
font, the second font doesn't inherit this style.  It only works the
 other way around (switching to the second font first, then to 
another style).  In the following example, the whole section title 
should be typeset in bold, but the part using the second font is 
typeset in the regular style.  How can I make it inherit the bold 
style?Thank you,Joshua Krämer\usemodule[simplefonts]\setmainfont[dejavuserif]\definesimplefonttypeface[Secondfont][dejavusans]\setuphead[section][style={\tf\bf}]\starttext\section{One
 {\Secondfont Two} Three}\input zapf\stoptext


Old version of the simplefonts module:

\usemodule[simplefonts]

\setmainfont[DejaVu Serif]
\setsansfont[DejaVu Sans]

\setuphead[section][style={\tf\bf}]

\starttext
\section{One {\ss Two} Three}
\input zapf
\stoptext


New version of the simplefonts module:

\setupfontfamily [serif] [DejaVu Serif]
\setupfontfamily [sans]  [DejaVu Sans]

\setuphead[section][style={\tf\bf}]

\starttext
\section{One {\ss Two} Three}
\input zapf
\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] Using *fleurons*

2013-11-11 Thread Bill Meahan

On 11/10/2013 10:12 AM, Francisco Gracia wrote:
*Fleurons* are small decorative pieces that were often used in the 
past for filling big blank spaces in books. They are seldom used 
nowdays. As besides they will not appear more than a few times in any 
book (mainly at the end of chapters), the easiest thing to do if one 
insists in using them (for instance for simulating an old edition of 
some past work) is to arrange its presence manually in the source 
document in the way one would do for any other figure or piece of text.


The following has worked quite well for me. I hate using a centered * * 
* for a thematic break so I use a fleuron. I write fiction, not 
math-filled academic-journal articles or textbooks so this may not be 
applicable in your case.


First, I use one of many available dingbat fonts to provide the 
fleuron. I am partial to the curly-ques in Nymphette (a 
readily-available free font) but there are many others.


In my preamble I define:

\definefont[FleuronFont] [nymphette sa 1.5]

Then where I want to place a fleuron I can do something like this.

\midaligned{{\MedBlue \FleuronFont g}}

In this case, the text letter 'g' corresponds to the particular little 
symbol I want.


YMMV

--
Bill Meahan, Westland, Michigan

 
  “Writing is like getting married. One should never

   commit oneself until one is amazed at one's luck.”

   —Iris Murdoch

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.

___
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 and inherited style

2013-11-11 Thread Joshua Krämer
Dear Wolfgang,

thank you, this does the trick.  I didn't try \setsansfont, because in 
reality I don't use serif and sans fonts but blackletter and roman.  Does 
a more general solution exist?  If not, I will misuse \setsansfont.

By the way, is this new simplefonts version only available in the context 
beta?  I've made an update but still the new commands don't work.

Kind regards,
Joshua Krämer

___
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 and inherited style

2013-11-11 Thread Wolfgang Schuster


   	   
   	Joshua Krämer  
  11. November 2013
 20:46
  Dear 
Wolfgang,thank you, this does the trick.  I didn't try 
\setsansfont, because in reality I don't use serif and sans fonts 
but blackletter and roman.  Does a more general solution exist?  If 
not, I will misuse \setsansfont.

Even though \rm is normally used for a serif font and \ss for a sans 
serif
font there is no rule which prevents you from using a blackletter etc. 
font
with these styles.

  
By the way, is this new simplefonts version only available in 
the context beta?  I've made an update but still the new commands 
don't work.
  

The new simplefonts module is part of the core (no external files are
required) and you need a recent beta to have it available.

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] Using *fleurons*

2013-11-11 Thread Wolfgang Schuster


   	   
   	Bill Meahan  
  11. November 2013
 18:51
  
The following has worked quite well for me. I hate using a centered 
"* * 
*" for a thematic break so I use a fleuron. I write fiction, not 
math-filled academic-journal articles or textbooks so this may not be 
applicable in your case.

First, I use one of many available "dingbat" fonts to provide the 
fleuron. I am partial to the curly-ques in Nymphette (a 
readily-available free font) but there are many others.

In my preamble I define:

\definefont[FleuronFont] [nymphette sa 1.5]

Then where I want to place a fleuron I can do something like this.

\midaligned{{\MedBlue \FleuronFont g}}

In this case, the text letter 'g' corresponds to the particular 
little 
symbol I want.

YMMV

Take a look at the fancybreak module: 
http://modules.contextgarden.net/dl/t-fancybreak/doc/context/third/fancybreak/fancybreak-doc.pdf

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
___

[NTG-context] Using *fleurons*

2013-11-11 Thread Francisco Gracia
Thanks for your contributions.

You are right in your remark about the path to images, Wolfgang. I was not
using any

\setupexternalfigure[location=default]

instruction. With your formulations the figure is recovered without problem.

Unfortunately the results of your rewrite of the macro are not so
satisfactory. Surely it is more *ConTeXt*ual than mine but it fails to
fulfill the main purpose of the exercice: it happily prints fleurons in
blank pages, as running your tests with 6 lines demonstrates. In such a
circumstance it should produce just two pages with six lines each, whereas
it outputs 4 pages, the two additional ones containing only ornaments.

Your suggestion, Bill, of using special decorative fonts will be a good
source of artistic material for the construction of alphabetically based
motives by artistically inclined future users of the code, as the
elaboration of the motives rests completely in their hands. The ones
provided are mere demonstration samples.

Regards

Fancisco
___
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] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
On 11/11/2013 12:27 PM, Wolfgang Schuster wrote:
 Lars Huttar mailto:lars_hut...@sil.org
 11. November 2013 18:00
 I finally tried

 \setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]

 and that works! But it seems clunky: it looks like it requires two font
 switches, which I'm told makes things slower.

 And I can't help wondering if I'm missing some simpler way.
 Is there a more efficient or elegant way to do this?

 \definefont[BigBoldSans][SansBold at 18pt]

 \setuptab[headstyle=BigBoldSans]

OK, but in order to use this systematically, I would have to have a
\definefont for every potential combination of font style (serif/sans),
alternative (bold/italic/etc.), and size that will get used in the
document. In a large, complex book, that extra layer of indirection
seems unattractive. But maybe there's no better way to do it.

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
___


Re: [NTG-context] Using *fleurons*

2013-11-11 Thread Wolfgang Schuster


   	   
   	Francisco Gracia  
  11. November 2013
 22:40
  Thanks
 for your contributions.You are right in your remark about
 the path to images, Wolfgang. I was not using any\setupexternalfigure[location=default]
 
instruction. With your formulations the figure is recovered 
without problem.Unfortunately the results of your rewrite 
of the macro are not so satisfactory. Surely it is more *ConTeXt*ual 
than mine but it fails to fulfill the main purpose of the exercice: it 
happily prints fleurons in blank pages, as running your tests with 6 
lines demonstrates. In such a circumstance it should produce just two 
pages with six lines each, whereas it outputs 4 pages, the two 
additional ones containing only ornaments.

I havent spent much time to check my code but its main point
wa to show you a way how to write your own code in a more compact
and efficient way.

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] Configure AUCTeX to run context not texec

2013-11-11 Thread Peter Münster
On Mon, Nov 11 2013, Jean Magnan de Bornier wrote:

 Here is my complete customization regarding ConTeXt:
 [...]
 context %s TeX-run-command nil t :help Run context (MarkIV)) (TeX

You use TeX-run-command instead of TeX-run-TeX. Thus you're not able
to handle errors the usual way.

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


[NTG-context] Numberconversion problem in caption prefixes

2013-11-11 Thread Géry Ogam
Hello,

There is a numberconversion problem in caption prefixes. For instance, if
chapter numbers are set to Romannumerals, the conversion of the caption
prefixes depends on the presence of a section

Minimal example:

\setuphead[chapter][conversion=Romannumerals]
\setupcaption[way=bychapter, prefixsegments=chapter]


\starttext

\chapter{Cool}
\placefigure{A cow}{\externalfigure[cow]}

\chapter{Cat}
\section{Mouse}
\section{Dog}
\placefigure{A cow}{\externalfigure[cow]}

\stoptext


The previous code displays an inconsistent caption prefix (first time a
Romannumeral, second time a number):

I Cool
[figure] Figure I.1 A cow

II Cat
2.1 Mouse
2.2 Dog
[figure] Figure 2.1 A cow
___
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] Configure AUCTeX to run context not texec

2013-11-11 Thread Jean Magnan de Bornier
Le 11 novembre à 23:36:08 Peter Münster pmli...@free.fr écrit notamment:

| On Mon, Nov 11 2013, Jean Magnan de Bornier wrote:

|  Here is my complete customization regarding ConTeXt:
|  [...]
|  context %s TeX-run-command nil t :help Run context (MarkIV)) (TeX

| You use TeX-run-command instead of TeX-run-TeX. Thus you're not able
| to handle errors the usual way.

I must admit I was not aware of there being a difference there...
-- 
Jean
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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