Re: [NTG-context] counter reseting at every heading

2012-10-01 Thread Peter Schorsch
Thanks Wolfgang, the solution with \startchapter and insidesection works fine. I wasn't aware of that \startchapter-stucture at all. Regarding to The \startchapter command is recommended over \bookmark as the latter might become obsolete from

[NTG-context] wikiadmin

2012-10-01 Thread Peter Schorsch
Hi, whom to contact for user issue with the contextgarden-wiki? Thanks P. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] counter reseting at every heading

2012-09-30 Thread Peter Schorsch
Hi, few months ago (18th may) I asked about how to setup a counter that resets after each heading (chapter, section, subsection, subsubsection and so on. I got three possibilities then but none of them was implemented (and still is not): 1)

[NTG-context] counter reseting at every heading

2012-05-18 Thread Peter Schorsch
Hi, I realized yesterday that my counter for the module does not reset itself as before. What I need is a counter that resets after each heading (chapter, section, subsection, subsubsection and so on). This is what I know about counter reseting at the moment:

[NTG-context] multi language (with module)

2012-05-16 Thread Peter Schorsch
Hi, to finish my first module I like to make it also available for non-german users (remove the hardcoded german text). But I could not figure out how in a way that works. So I wrote down a minimal example in pseudo-tex to point out my goal. Can you give me an idea/solution how to implement it in

Re: [NTG-context] multi language (with module)

2012-05-16 Thread Peter Schorsch
Thanks Wolfgang, your post helped me a lot! I am wondering if only a subset of languages is able to be defined as I got following result: Should be Welcome: Welcome Should be Guten Tag: Guten Tag Should be Bonvenon: Guten Tag The Esperanto text is not displayed. It does not matter wether I put

[NTG-context] atpage || number comparing

2012-05-15 Thread Peter Schorsch
Hi, it tried to do a \atpage command that results a) some page = nothing b) different page = pagenumber with some text (e.g. auf Seite XY) \def\atPage[#1]% {\doifnot{\at[#1]}{\currentpage}% {\at[#1]}% } My problem with this is, that the \doifnot always results as not

[NTG-context] color as module parameter (mkiv)

2012-05-14 Thread Peter Schorsch
Hi, I am trying to pass a tex color as a paramter to a module. I used the example from the wiki as a base. But as soon I hand over a color directly it does not work. Any help is welcome as I am looking forward to hand in my first module. Are there any rules how and where to hand in a module for

Re: [NTG-context] bug? margens with duplex

2012-05-11 Thread Peter Schorsch
Hi Hans, I uploaded a beta that might do a better job but as well could introduce other problems, so testing is needed. Thanks a lot! Started testing it and all margins look fine now :-) - also in larger docs. Will continue testing... P.

[NTG-context] Did usage of \expanded changed?

2012-05-11 Thread Peter Schorsch
Hi, I reactivated some code that was working a year ago. But now it seems that \expanded has no effect in my case (see below). I also tried it with \normalexpanded and \expandedafter but both had also no effect. My problem seems to be this line of the full example below:

Re: [NTG-context] Did usage of \expanded changed?

2012-05-11 Thread Peter Schorsch
See this thread: http://archive.contextgarden.net/message/20120402.144627.e46a9f9f.en.html and try to construct a minimal example next time. I converted my number to counter and shrinked my example - but the problem still occurs: Instead of the counter value when I set the reference I get

[NTG-context] bug? margens with duplex

2012-05-10 Thread Peter Schorsch
Hi, I am using \ininner and \inouter to set text into the margins. As soon I also use duplex the margins are messed up at every second page. Unluckily the [stack=continue] option does not help. I put an example incl. pictures of the results on my user talk page on the wiki:

[NTG-context] General suggestion: Unit tests for ConText

2011-07-18 Thread Peter Schorsch
Hi, during my work with context I wrote a bunch of fewliners mainly to test how to do things. When there change from mkii to mkiv occured many of my mini-tests failed and later with the growing of mkiv restartet to work - some just without adaption.. some with some adjustment to a new syntax. I

[NTG-context] Heading with linebreaks in pdf bookmarks: linebreak sign stays

2011-07-17 Thread Peter Schorsch
Hi, as soon I have a linebreak inside a heading via \\ I get this \\ also in the text of that heading in the pdf-bookmarks: \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section] \starttext \completecontent[criterium=all] \chapter{A very,\\very long long

[NTG-context] right and left alignment in header w/ linebreak sign

2011-07-17 Thread Peter Schorsch
Hi, I am trying to have the header text aligned at the outer border of margin. At the moment I have \setupheadertexts[margin][][\rightaligned{\CurrentChapter}][\leftaligned{\CurrentChapter}][] and in the text \chapter{A very, very long long heading} and it works like I

Re: [NTG-context] inner/outer margin: wrong width at double sided

2011-07-17 Thread Peter Schorsch
Hi, sorry that I repeat my question but I have really no idea how to solve this. When I use \ininner and \inouter directly, always the correct width is used. \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte But as soon I put it into a function the

[NTG-context] math-align / subformulas not working

2011-07-17 Thread Peter Schorsch
Hi, I just tried an example from math-ali.mkiv: \starttext \placeformula \startformula \startalign \NC a \NC \eq b \NR[+] \NC c \NC \neq d \NR \NC \NC \neq f \NR[+] \NC \NC \geq g \NR[+][a] \NC \NC \leq

[NTG-context] inner/outer margin: confused width

2011-07-14 Thread Peter Schorsch
Hi, the width of my inner and outer margin are different and the pagelayout is double sided. When I use \ininner and \inouter directly, always the correct width is used. But as soon I put it into a function the wrong margin width is often used. I attached two files: - simple example tex

[NTG-context] fullstructureheadnumber does not work

2011-07-12 Thread Peter Schorsch
Hi, did something happend to the \fullstructureheadnumber in the last six months? I still can find it in the source (strc-sec.mkiv) but is always halts with Undefined control sequence. Is there a new command for this? Thanks P.

[NTG-context] for each script a different font

2010-12-06 Thread Peter Schorsch
Hi all, is it possible to mix severel fonts (for each script one font)? Regarding to some fragments of the wiki I tried: \setupdirections[bidi=global] \definefontfeature[cyrl][script=cyrl] \definefontfeature[brai][script=brai] \definefontfeature[arab][script=arab] \starttypescript [serif]

[NTG-context] bug report/mkiv: verbatim text bug with tab parameter

2010-12-03 Thread Peter Schorsch
Hi, today I recognized that the tab parameter is not working in setuptyping anymore (actual beta). As soon the tab paramter is set and a tabulator is used in the text, ConTeXt breaks with following error message: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/util-

[NTG-context] margin-bug in mkiv?

2010-11-19 Thread Peter Schorsch
Hi, since mkiv (last updated 19.11.) \placeformua causes a bug regarding the placing of inner- and outermargins. If you remove the \placeformula in the following example the placing of inner- and outermargins is right. But as soon there is a \placeformula from that point on inner- and

Re: [NTG-context] formula: listing and subnumbering

2010-09-14 Thread Peter Schorsch
Hans Hagen wrote: - can you post your examples (so that they can be added to the test suite) - can you also test this with the current beta done.. you can find the test file for formulas with mkiv attached to this email. I ran it with the latest beta. A couple of things are working.. but

[NTG-context] formula: placeformula messes with margins

2010-09-14 Thread Peter Schorsch
Hi, I also ran into a problem with placeformula and margins. The attached example runs fine with the margins. But as soon the placeformula is uncommented the left and right margins are messed up. And if not all paragraphs have at both side a marginnote is get worse. Is there a way to solve

Re: [NTG-context] formula: listing and subnumbering

2010-09-10 Thread Peter Schorsch
Hans Hagen wrote: i'll have a look at it Did you found anything? I tried to figure out which command in the examples of the wiki work/dont work (I used mkiv stable). So far: \formulanumber - works in mkii and mkiv \subformulanumber - works only in mkii \placenamedsubformula - works only in

Re: [NTG-context] Fonts

2010-09-10 Thread Peter Schorsch
You can list all local availble fonts with: mtxrun --script fonts --list --all More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX Cecil Westerhof wrote: Is there a list of the standard fonts to use? I found: serif regular roman sans support sansserif

Re: [NTG-context] Fonts

2010-09-10 Thread Peter Schorsch
I have to agree to Andreas... i just updated to the actual beta (for the math examples). Now mtxrun answers with following statement: ...text/tex/texmf-context/tex/context/base/font-otp.lua:512: attempt to call field 'register' (a nil value)

Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Peter Schorsch
I summarized this small discussion in the wiki as I also made a systemwide installation (http://wiki.contextgarden.net/ConTeXt_Minimals#Cache) Nicola wrote: In article aanlktim8p_nsu=qf8r9ojvbd=bpzitwd_baov+exh...@mail.gmail.com, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

[NTG-context] formla: listing and subnumbering

2010-08-27 Thread Peter Schorsch
Hi, in my work I have a lot of formulas inkl. subformulas. Doing the examples at the wiki two questions came up: a) how to generate a table of formulas? b) what is the right/better way for subnumbering? a) I tried the example for generating a table of formulas from the wiki

Re: [NTG-context] Porting from MkII to MkIV

2010-08-26 Thread Peter Schorsch
I used the context from the ubuntu repository. So I switched to context- minimals current-version and viola it works here too Thanks Wolfgang Schuster wrote: Am 25.08.10 00:23, schrieb Peter Schorsch: Thanks Wolfgang! Your source code looks a lot different than mine... there are some

Re: [NTG-context] current head title and current number

2010-08-23 Thread Peter Schorsch
Thanks Wolfgang, that helped :-) Only one additional question occured with that solution: I am trying to use unnumbered chapters/sections and recognized that \fullstructureheadnumber gives the number of the chapter/section before instead of giving back and empty string: \chapter{abc}

Re: [NTG-context] current head title and current number

2010-08-23 Thread Peter Schorsch
I figured out that \fullstructureheadnumber returns inside a backmatter nil. So it works for my own needs. I do not know if the reported return behavior inside a bodymatter or appendices is correct. But I leave this discussion to the context devs. Anyways @devs: Thanks for your work! Context

[NTG-context] current head title and current number

2010-08-22 Thread Peter Schorsch
Hi, I need to get the current *section/chapter title and number. I figured out that \fullstructureheadnumber gives the current number. But I can not figure out what gives the current head title. In strc-sec.mkiv I found this comment: \def\currentheadtext{obsolete, use marks} Is this a

Re: [NTG-context] Typeface - simple example

2010-08-21 Thread Peter Schorsch
Hi, finally I figured it out :-) I entered the working example into the wiki: http://wiki.contextgarden.net/Simple_Typescript_Example and linked it into the catogory »Fonts« and at the page »Fonts in LuaTeX« under »2.2.3 Very simple example of typescript«. You know the best where to

Re: [NTG-context] Ubuntu and Context MKIV

2010-08-20 Thread Peter Schorsch
Hi, I am also using Context on ubuntu - and it works fine here. There is one small change I like to do: luatools --generate is creating ~/luatex-cache. As this cache is not hidden it appears on the desktop. Is it possible to change that directory into a hidden directory e.g.

[NTG-context] Typeface - simple example

2010-08-19 Thread Peter Schorsch
Hi, I reactivated my interest in Context. A lot changed since then... so I am became a beginner again. E.g. I don't know / understand how to use that Typescript-Framework. I tried to build a simple example, but I do not get it to work. I crosschecked successfully with simplefonts that the

[NTG-context] Pagenumbering in header-margin with outer-align

2008-03-28 Thread Peter Schorsch
Hi, I am trying to put the pagenumber in the margin of the header. But I also want it outer-aligned - not inner-aligned, which seems to be the standart alignment of margin. But the inner-align of the body-margin should still be inner-aligned. So I tried following:

[NTG-context] inline-graphics and unwanted line-break

2007-11-29 Thread Peter Schorsch
Hi, I have a small metapost graphic I like to use inline. But the arragement behaves a little bit unpractically. As soon there is no character in front of the graphic context will break the line after the graphic - but as soon there is a character in front of the graphic, context does not

Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-22 Thread Peter Schorsch
\placefigure [force][fig:xy] {captiontext} {\placelegend {\startcombination[2*1] {\externalfigure[xxx]}{} {\externalfigure[yyy]}{} \stopcombination} {Quelle: XY}} Thanks, both solutions work. Is there something simelar for placelegend in splitfloat?

[NTG-context] combination with an additional line centered in a placefigure?

2007-11-15 Thread Peter Schorsch
Hi, as soon I enter the cbox-line the combination is not longer centered. I tried to embed the combination in a cbox, but that had no effect. Has anyone a hint how to center the combination successfullly? \starttext \placefigure [force][fig:xy] {captiontext}

Re: [NTG-context] currentheadnumber / doif.. problem

2007-10-18 Thread Peter Schorsch
ok, I found the solution. In the documentation (cont-eni.pdf) at page 172 following is written: For example: \currentheadnumber : 8.3 \headnumber[chapter] : 8 \headnumber[section] : 8.3 but that is partly wrong. There should be standing (change example from 8.3 to 8.3.2): For example:

Re: [NTG-context] currentheadnumber / doif.. problem

2007-10-15 Thread Peter Schorsch
Aditya wrote: Can you create a minimum example to play with? I attached the module t-pararef.tex and the example pararef-test.tex. The ref1 is still wrong. When I replace \currentheadnumber in \paragraphMark with the before defined \presentheadnumber  context is saying that a «Missing

[NTG-context] How to realize rubytext in Context?

2007-10-13 Thread Peter Schorsch
Hi, for an multilanguage document I need to write some rubytext. But I have no idea how to realize this in context. Math-mode is not a solution as the line-breaks with longer rubytext - but maybe it is the only way. Hints are very welcome. Here is a good and short explanation what rubytext

Re: [NTG-context] currentheadnumber / doif.. problem

2007-09-25 Thread Peter Schorsch
hm.. it still executes always the else-part of the doifelse-function (Untested) \def\presentheadnumber% {\doifelse{\headnumber[section]}{0}% ^^ {\headnumber[chapter]}% {\headnumber[section]}%

[NTG-context] currentheadnumber / doif.. problem

2007-09-11 Thread Peter Schorsch
Hi, I tried to get the full present heading-number. If I am using currentnumber the result is only the last part of the heading-number. So I tried do implement a function like this: \def\presentheadnumber% {\doifelse{\headnumber[section]}{}% {\headnumber[chapter]}%

[NTG-context] currentheadnumber / doif.. problem

2007-09-10 Thread Peter Schorsch
Hi, I tried to get the full present heading-number. If I am using currentnumber I am getting back only the last part of the heading-number. So I tried do implement a function like this: \def\presentheadnumber% {\doifelse{\headnumber[section]}{}% {\headnumber[chapter]}%

Re: [NTG-context] help needed

2007-09-07 Thread Peter Schorsch
Started reading the doc on your site, created a myfile.tex as yours, but % context myFile zsh: command not found: context use instead: texexec --pdf myFile.tex (use pdftex but Unicode is not working) or texexec --xtx myFile.tex (use Xetex with Unicode but is not working in

[NTG-context] hairline in a matrix

2007-09-04 Thread Peter Schorsch
Hi, I could not figure out how to add a hairline between two rows of a matrix. Following example is compiling but only results in a bigger vertical space. Infos/Hints are welcome... \startformula \startmatrix    \NC {a_1 } \NC {a_2 } \NC {a_3 }  \NC  \ldots      \NC {a_X }  \NR    \NC {b_1 }

[NTG-context] module-parameters Was: Context replacement for bibitem

2007-08-31 Thread Peter Schorsch
Thanks Wolfgang, you were totally right. I made a typewriting error - I discovered it with help of your examples. I also updated the module in the wiki - and I will make it multilingual as soon I will find a good doc about multilingual-commands. I tried to add colors over module-parameter -

Re: [NTG-context] module-parameters Was: Context replacement for bibitem

2007-08-31 Thread Peter Schorsch
Hi Aditya, Aren't you doing exactly what the bib module does? The only difference is that the bib module uses registers, so that you can also sort the publication list. And you can format different types of references differently. But the basic idea is the same. The main issue for me was,

Re: [NTG-context] value-copy - e.g. in \textreference

2007-08-31 Thread Peter Schorsch
Wolfgang Schuster wrote: \def\MyMark[#1]% {\expanded{\textreference[#1]{Para. \currentheadnumber / {\getnumber[number]}}} Thanks, it works with the expanded... ___ If your question is of interest to

Re: [NTG-context] Context replacement for bibitem

2007-08-30 Thread Peter Schorsch
Hi Wolfgang, Replace this line with \expanded{\setupitemgroup[bibliography][1][n, \currentmoduleparameter{itemspace}*broad]} Unluckily that is not working :-( I also tried: \setupitemgroup[bibliography][1][n \expanded{\currentmoduleparameter{itemspace}}*broad] and

[NTG-context] value-copy - e.g. in \textreference

2007-08-30 Thread Peter Schorsch
Hi, during my first tries of context-programming I bounced a couple of times against a problem I am calling myself my value-copy-border. E.g. number is a register/variable that helps numbering some paragraphs. Some of these paragraphs also should be cross-linked. But the pointer gets always the

[NTG-context] how to get a commalist out of {}-brackets

2007-08-30 Thread Peter Schorsch
Hi, I need to forward an embedded commalist to an subfunction. The problem: how can I get rid of the {}-brackets to access the embedded commalist? The functions looks like: \def\function#1[#2] {\getparameters[label][a=,b=,embedded=,#2] subfunction[\labelembedded] ...} \def\subfunction#1[#2]

Re: [NTG-context] Context replacement for bibitem

2007-08-29 Thread Peter Schorsch
Hi, first thanks for your help. I got it working at the basic-level. I put it into a module for the case that other beginner looking for the bibitem-replacement. But two questions are left before I think, that the module could be uploaded to the wiki: - how to make the 12*broad flexible?

[NTG-context] Context replacement for bibitem

2007-08-28 Thread Peter Schorsch
Hi, I have done a little with Context but I am still a beginner. As I can read in the archive of this list, there is no possibility to divide the bibliography into sections by the generated bibliography. If this assumption is true, I would like to enter the bibitems into the normal .tex-file. I