Re: [NTG-context] random bookmarks not linked (with example)

2012-02-16 Thread Steffen Wolfrum
Am 15.02.2012 um 23:51 schrieb Hans Hagen: On 15-2-2012 20:59, Steffen Wolfrum wrote: Dear developers, friends please have a look at the bug described below! It is not an academic detail ... It's a real book that's already have finished, containing hundreds of sections. And

Re: [NTG-context] random bookmarks not linked (with example)

2012-02-16 Thread Hans Hagen
On 15-2-2012 12:28, Steffen Wolfrum wrote: Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please run chap_1.tex and click on the bookmark 1.1.2 SIX

Re: [NTG-context] random bookmarks not linked (with example)

2012-02-16 Thread Steffen Wolfrum
Am 16.02.2012 um 09:20 schrieb Hans Hagen: On 15-2-2012 12:28, Steffen Wolfrum wrote: Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please

[NTG-context] beta

2012-02-16 Thread Hans Hagen
Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to predict side effects, but the biggest impact

Re: [NTG-context] Getting changing/random graphics?

2012-02-16 Thread Hans Hagen
On 16-2-2012 07:43, Mari Voipio wrote: Hello all, I'm trying to do something that should be possible and I think variables is the answer, I just can't figure out how. I have a pile of photos (jpg) in a directory and the assumption is that they are all the same size and there's a spot for the

Re: [NTG-context] Getting changing/random graphics?

2012-02-16 Thread Hans Hagen
On 16-2-2012 07:43, Mari Voipio wrote: I'm trying to do something that should be possible and I think variables is the answer, I just can't figure out how. attached .. (will be in test suite) Hans -

Re: [NTG-context] Getting changing/random graphics?

2012-02-16 Thread Marco
On 2012-02-16 Mari Voipio mari.voi...@iki.fi wrote: So, if I have photo1.jpg photo2.jpg photo3.jpg photo4.jpg and \dorecurse{10}{insert random photo here}, how do I do it? \dorecurse{4}{\externalfigure[photo\recurselevel]} Beware, \recurselevel counts go like this 1 2 3 4 5 …. If

[NTG-context] epub

2012-02-16 Thread Jörg Hagmann
I would like to prepare some student material in epub format and tried the export-example.tex as follows: - context export-example (by the way, gives an error with the latest beta, not with 2011.12.19 22:53, but produces the output; shouldn't matter here). - mtxrun --script epub --make

Re: [NTG-context] epub

2012-02-16 Thread luigi scarso
On Thu, Feb 16, 2012 at 11:51 AM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: I would like to prepare some student material in epub format and tried the export-example.tex as follows: - context export-example (by the way, gives an error with the latest beta, not with 2011.12.19 22:53,  but

Re: [NTG-context] UTF conversion via Lua

2012-02-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question - - does regimes.translate allow to translate between arbitrary encodings or only from the specified to the current one? str = regimes.translate(str, cp1250) -- = Translate from cp1250 to the current encoding (UTF) (or always to UTF?) I'm looking for

Re: [NTG-context] UTF conversion via Lua

2012-02-16 Thread Hans Hagen
On 16-2-2012 12:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, one more question - - does regimes.translate allow to translate between arbitrary encodings or only from the specified to the current one? no, although it's no big deal to provide that (of course there is then the

Re: [NTG-context] error with m-database example

2012-02-16 Thread Hans Hagen
On 16-2-2012 12:03, Martin wrote: Admittedly I feel a bit lost when looking at the various processing modules... My goal is to create template based output. I have created a rough mail-merge example (with LibreOffice) and attached it as PDF for illustration. There is a CSV database with

Re: [NTG-context] epub

2012-02-16 Thread Jörg Hagmann
Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x \*.DS_Store If 7z is the only way, I give up. I already spent about 30 minutes

Re: [NTG-context] UTF conversion via Lua (renaming attachments to .scr_)

2012-02-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 16 Feb 2012 13:08:09 +0100, Hans Hagen pra...@wxs.nl wrote: no, although it's no big deal to provide that (of course there is then the matter of utf being more complete than the target) src_enc = utf8 tgt_enc = cp1250 str = regimes.translate(str, src_enc, tgt_enc) is

Re: [NTG-context] epub

2012-02-16 Thread luigi scarso
On Thu, Feb 16, 2012 at 2:07 PM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x

Re: [NTG-context] epub

2012-02-16 Thread Jörg Hagmann
I see. Could you send me your export-example.epub file? Thanks a lot, Jörg On Feb 16, 2012, at 2:17 PM, luigi scarso wrote: On Thu, Feb 16, 2012 at 2:07 PM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
Hi Hans, Thanks for the new beta: as a matter of fact it seems to be much faster the previous ones, even with many backgrounds! I wanted to submit a small bug with the « \prime » in math mode: the following gives an error %% begin example.tex \starttext The function $\exp$ is the unique

Re: [NTG-context] epub

2012-02-16 Thread Henning Hraban Ramm
Am 16. Februar 2012 14:07 schrieb Jörg Hagmann joerg.hagm...@unibas.ch: Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x

Re: [NTG-context] epub

2012-02-16 Thread Jörg Hagmann
This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Minimal example: %% \defineenumeration[Exo] [location=hanging, width=fit, text={Exercise },

Re: [NTG-context] beta

2012-02-16 Thread Hans Hagen
On 16-2-2012 14:53, Otared Kavian wrote: Hi Hans, Thanks for the new beta: as a matter of fact it seems to be much faster the previous ones, even with many backgrounds! I wanted to submit a small bug with the « \prime » in math mode: the following gives an error %% begin example.tex

Re: [NTG-context] columnsets error in 2.08 beta

2012-02-16 Thread Peter Park Nelson
Columnset error is gone in 2.16 beta -- Thanks, Hans. But there still seems to be a problem in the output routine: if I place a font switch like \bf or \ss at the beginning of a paragraph that falls in the first column of my columnset, that column is suppressed and only the second column is

Re: [NTG-context] [beta] anch-pos.lua

2012-02-16 Thread Philipp Gesang
On 2012-02-16 10:17, Hans Hagen wrote: Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to

Re: [NTG-context] beta

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 17:44 schrieb Otared Kavian: Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Enumerations and descriptions use now the “alternative” key for the position of the

Re: [NTG-context] epub

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 16:19 schrieb Jörg Hagmann: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded

Re: [NTG-context] epub

2012-02-16 Thread Aditya Mahajan
On Thu, 16 Feb 2012, Wolfgang Schuster wrote: Am 16.02.2012 um 16:19 schrieb Jörg Hagmann: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that

Re: [NTG-context] epub

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 20:38 schrieb Aditya Mahajan: On Thu, 16 Feb 2012, Wolfgang Schuster wrote: Am 16.02.2012 um 16:19 schrieb Jörg Hagmann: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
On 16 févr. 2012, at 19:30, Wolfgang Schuster wrote: Am 16.02.2012 um 17:44 schrieb Otared Kavian: Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Enumerations and

Re: [NTG-context] \definestructureconversionset

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 10:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I cannot find any valid info (reference) about use of the command \definestructureconversionset. I just have some examples. Could anyone explain how these commands should work?

[NTG-context] \definedescription problems (beta)

2012-02-16 Thread Peter Park Nelson
Two problems using \definedescription the 2.16 beta: \definedescription[mydescription][location=serried,text={Description}] %% This gives an error (no blank lines around content): \startmydescription This is a description \stopmydescription %% But this works (with blank lines):

Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Otared Kavian
Hi Peter, As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ». I guess it should be the same with the « serried ». Best regards: OK On 16 févr. 2012, at 21:41, Peter Park Nelson wrote: Two

Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 21:41 schrieb Peter Park Nelson: Two problems using \definedescription the 2.16 beta: \definedescription[mydescription][location=serried,text={Description}] %% This gives an error (no blank lines around content): \startmydescription This is a description

Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 21:50 schrieb Otared Kavian: Hi Peter, As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ». I guess it should be the same with the « serried ». Yes, descriptions and

[NTG-context] Layout: odd, even and newLayout

2012-02-16 Thread Jan Heinen
I first want to use layouts for odd and even pages and then I want to use a newLayout but it does not work: \setuppapersize[A5][A4] \setuppagenumbering[alternative=doublesided, location=inleft] \setuplayout [marking=on, location=middle] \showframe \definelayout

Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Peter Park Nelson
I just saw Otared's message. alternative=serried gives an error. Two error examples: 1. spacing around description contents: %%--example-%% \definedescription[Abstract][text={Abstract}] \starttext \startAbstract % THIS ONLY WORKS WITH BLANK LINES: \input

Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Wolfgang Schuster
Am 16.02.2012 um 22:20 schrieb Peter Park Nelson: I just saw Otared's message. alternative=serried gives an error. Two error examples: 1. spacing around description contents: %%--example-%% \definedescription[Abstract][text={Abstract}] \starttext

Re: [NTG-context] [beta] anch-pos.lua

2012-02-16 Thread Hans Hagen
On 16-2-2012 19:01, Philipp Gesang wrote: On 2012-02-16 10:17, Hans Hagen wrote: Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background

Re: [NTG-context] epub

2012-02-16 Thread Hans Hagen
On 16-2-2012 20:38, Aditya Mahajan wrote: I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. It's no big deal to add a remapper although I'd do the renaming on the final xml tree. After all, with a proper css any

Re: [NTG-context] beta

2012-02-16 Thread Hans Hagen
On 16-2-2012 19:30, Wolfgang Schuster wrote: Am 16.02.2012 um 17:44 schrieb Otared Kavian: Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Enumerations and descriptions use now the

Re: [NTG-context] UTF conversion via Lua (renaming attachments to .scr_)

2012-02-16 Thread Hans Hagen
On 16-2-2012 14:14, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Would it be possible to provide this? I'll provide: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. Hans -

[NTG-context] Turning off special chapter headings

2012-02-16 Thread Alasdair McAndrew
I'm using the following: \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] for my chapter headings. But one chapter: Answers to Exercises I want unnumbered, without the Chapter text, and also in the table of

Re: [NTG-context] [beta] anch-pos.lua

2012-02-16 Thread Philipp Gesang
On 2012-02-16 22:44, Hans Hagen wrote: On 16-2-2012 19:01, Philipp Gesang wrote: there seems to be a typo in anch-pos.lua, line 100: · -local r = collected[region] +local r = collected[tag]

Re: [NTG-context] Turning off special chapter headings

2012-02-16 Thread Otared Kavian
Hi, Didn't you see my answer? As suggested below, you can use \chapter[title={Answer to all the questions},number=no]. On 16 févr. 2012, at 08:59, Otared Kavian wrote: Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First

Re: [NTG-context] Turning off special chapter headings

2012-02-16 Thread Alasdair McAndrew
Thanks for your suggestion, but it didn't seem to work. I just discovered the answer myself and that was to create a new chapter command: \def\uchap#1#2{#2} and then follow as per the wiki: \definehead[ans][chapter] \setuphead[ans][command=\uchap,number=no]