Re: [NTG-context] source code repos

2011-01-14 Thread Marius
On 11 January 2011 01:06, Jonas Stein n...@jonasstein.de wrote:
 on the wiki main page are many links to the source code

 =
    *  Source code

    The original source code Current Version and Beta Version
    Browse git and it's mirror
    Browse why outdated?

    * Documentation of the source code
 =

 it appears only
 http://gitorious.org/context
 is under active development, right?

The git repo is updated from The original source code Current Version
and Beta Version.
___
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] options for luatex

2010-11-03 Thread Marius
Hello,

how do I pass an option for luatex?

I need something like this:

context --nonstopmode --file-line-error --halt-on-error
--output-directory=tmp file.tex

Thanks,
Marius
___
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] options for luatex

2010-11-03 Thread Marius
Here is a patch. I can now pass whatever I want for luatex. But looks
like luatex ignores: --file-line-error, --halt-on-error and
--output-directory=tmp options. Is this by intention or just a missing
functionality?

On 3 November 2010 16:16, Marius mariau...@gmail.com wrote:
 Hello,

 how do I pass an option for luatex?

 I need something like this:

 context --nonstopmode --file-line-error --halt-on-error
 --output-directory=tmp file.tex

 Thanks,
 Marius

805a806,808
 if environment.argument(luatex) then
 flags[#flags+1] = environment.argument(luatex)
 end
1471a1475
 --luatex=list pass options for luatex
___
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] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Marius
Here is the fixed script.

On 27 October 2010 23:08, Michael Murphy michael.mur...@uni-ulm.de wrote:
 On 27/10/2010 19:18, Marius wrote:

 Hello,
 I had the same problem, so I desided to define colors by hand.

 \definecolor [lightgray] [h=D3D3D3]

 \usemodule[tikz]

 \unprotect
 \pgfu...@definecolor{black}{gray}{0}
 \pgfu...@definecolor{gray}{gray}{0.5}
 \pgfu...@definecolor{lightgray}{gray}{0.9}
 \pgfu...@definecolor{white}{gray}{1}
 \protect

 Yes, this is what I've resorted to. But it would be nice to define things
 properly.

 If you want to fix script, you need to change line:

 local cv = colors.value(attributes)

 into

 local cv = attributes.colors.values

 Just guess, untested.

 Nope, doesn't work. Using

 local colors = colors or { }

 gets me a little further, but then complains that 'value' is a nil value. I
 don't know enough Lua to fix this either. Strangely, it seems to work on
 some older MkIV versions of ConTeXt...

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



colorfix.tex
Description: TeX document
___
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] bug in itemize

2010-10-10 Thread Marius
Hello,

a stopper option resets item to default value. I expect a) and b)
instead of big dot in the first itemize.

mkiv current version: 2010.10.06 10:20

\starttext
\startitemize[a,stopper=)]
\item one.
\item two.
\stopitemize
\startitemize[a]
\item one.
\item two.
\stopitemize
\stoptext

Regards,
Marius


test4.pdf
Description: Adobe PDF document
___
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] setuparranging eats the last page

2010-09-12 Thread Marius
Hello,

Then I added \setuparranging [2SIDE] in the given example bellow, the
last page of the document disappeared. Looks like a bug.

MKIV version: 2010.09.09 23:45

===
\setuppapersize[A5][A4,landscape]
\setuparranging [2SIDE]

\appendtoks
\page
Last page.
\to\everystoptext

\starttext
First page.
\page
Next page.
\stoptext
==

Marius
___
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] Indent after \placefigure

2010-09-10 Thread Marius
Hello,

see here http://tracker.luatex.org/view.php?id=403

On 10 September 2010 16:15, Andreas Harder andreas.har...@rz-online.de wrote:
 Hello,

 if one uses the right-option in \placefigure the paragraph indent is omitted. 
 Example:

 \setupindenting[small,yes,next]
 \setupfloats[indentnext=yes] % no effect
 \starttext
 \input tufte \par
 \placefigure
  [right]{caption}
  {\framed[width=5cm,height=3cm]{some figure}}
 \input tufte \par \input tufte
 \stoptext

 Best regards

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

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

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

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


Re: [NTG-context] git repo is not updated?

2010-06-07 Thread Marius
On Mon, Jun 7, 2010 at 9:26 AM, Patrick Gundlach patr...@gundla.ch wrote:
 Hi,


 I see that context minimals is at 2010-06-05 version, hovewer git repo
 [1] is last updated on 2010-05-29.


 So, experimental means no more updates :) It's now passed more then 24
 ours from my first email and still the git repository is not updated.

 OK, I'l have a look into it and I will report back. I am interested what you 
 use the git repo for.

To follow the changes and learn the code. Other repos are more
convenient to follow, because each commit is a small step, while in
your repo changes are presented in bulk, but it's better then nothing
at all.
___
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] git repo is not updated?

2010-06-06 Thread Marius
Midnight passed, but repository still is not updated?

On Sun, Jun 6, 2010 at 9:29 AM, Patrick Gundlach patr...@gundla.ch wrote:

 Am 05.06.2010 um 18:25 schrieb Mojca Miklavec:

 On Sat, Jun 5, 2010 at 11:04, Hans Hagen pra...@wxs.nl wrote:
 On 5-6-2010 10:07, Marius wrote:

 Hello,

 I see that context minimals is at 2010-06-05 version, hovewer git repo
 [1] is last updated on 2010-05-29.


 http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/

 the repos updates at midnight (so, once per day)

 But I'm not sure when Patrick's repository updates.

 at midnight ;-)

 But I am surprised that there is actually a user out there. Beware, the 
 repository is still experimental.

 Patrick

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

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

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

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


[NTG-context] git repo is not updated?

2010-06-05 Thread Marius
Hello,

I see that context minimals is at 2010-06-05 version, hovewer git repo
[1] is last updated on 2010-05-29.

http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/

Marius
___
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] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Marius
Hello, I can't get it to work too. When we could expect it to be
fixed? Or maybe somebody knows a work around to place two floats side
by side?

On Tue, Jun 1, 2010 at 11:46 AM, Thomas Floeren
thomas.floe...@boschung.com wrote:

 Hello,

 I can't get floatcombinations to work in mkiv:

 \starttext
 \placefigure [none]{}
 {\startfloatcombination [2*1]
 \placefigure {.}%
 {\externalfigure [.]}
 \placefigure {.}%
 {\externalfigure [.]}
 \stopfloatcombination}
 \stoptext

 (some definitions are missing: forcelocalfloats, resetlocalfloats, 
 noflocalfloats)

 Best wishes
 Thomas



 This is LuaTeX, Version beta-0.60.1-2010052906 (Web2C 2010/pretest) (rev 3685)
 ConTeXt  ver: 2010.06.01 00:18 MKIV  fmt: 2010.6.1  int: english/english

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

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

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

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


Re: [NTG-context] status-of-update.lus

2010-06-04 Thread Marius
On Fri, Jun 4, 2010 at 9:58 AM,  je...@jhnet.nl wrote:
 Today first-setup.sh ended with
 status-of-update.lus
 instead of expected
 status-of-update.lua
 Is it correct ?

 I don't know, but I get the status-of-update.lus file too (Linux 64 bit)


Confirm that this is the case on windows too.
___
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] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Marius
Thank you, Taco, your code works, but I have one more question.

My figures are placed side by side and its captions overlap, because I set

\setupcaptions  [width=0.8\textwidth]

How to set width parameter just for the captions of floatcombination?



On Fri, Jun 4, 2010 at 4:39 PM, Taco Hoekwater t...@elvenkind.com wrote:
 Rogutės Sparnuotos wrote:

 Marius (2010-06-04 11:30):

 Hello, I can't get it to work too. When we could expect it to be
 fixed? Or maybe somebody knows a work around to place two floats side
 by side?

 Looks like the bit of page-str.mkii that dealt with local floats
 is not included in page-str.mkiv (which makes sense, as it looks
 like it does not belong there).

 Copying those macros verbatim into the test file works, so it
 is probably just an oversight that they do not appear elsewhere
 in mkiv. (see attachment)

 Best wishes,
 Taco
___
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] context mkiv eats a table

2010-05-27 Thread Marius
Sometimes I get the error given below, maybe this is related to this
problem. As soon as I will have more free time, I will try once again
to make a minimal example.

!pages  : flushing realpage 14, userpage 14
floatblocks : 6 moved
floatblocks : 11 moved
floatblocks : 7 moved
floatblocks : 12 moved
! LuaTeX error ...text/tex/texmf-context/tex/context/base/page-flt.lua:89:
attempt to index local 'b' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/page-flt.lua:89: in function 
'save'
main ctx instance:1: in main chunk.
\dofloatssave #1-\ctxlua {floats.save(#1)}
 \the \everyfloatscheck
\dosavefloat -\dofloatssave {text}
   \nonoindentation
argument ...hod ,bottom,top] \else \dosavefloat
  \fi
\thirdofthreearguments #1#2#3-#3

\dogetfloatbox ...\floatmethod }[\floatmethod ,#1]
  \fi
\docompletefloat ...er }{\thecurrentfloatcaption }
  \global \insidefloatfalse
...
l.503 ...alfigure[2_1012_9][width=0.49\textwidth]}

?

On Wed, May 26, 2010 at 10:07 PM, Peter Münster pmli...@free.fr wrote:
 On Wed, May 26 2010, Marius wrote:

 does somebody experience a situation then a table disappear in the
 document? This is an ugly bug, but I can't narrow it to a simple case.

 When you need a lot of text, pages, floats and whatever to trigger this
 problem, then you can use commands like \dorecurse{100}{\input tufte} and
 so on. But in most cases you can end up with a minimal example of just 1-3
 pages.

 Of course, it can take some time to reduce a complex document to a minimal
 example, but it's the best you can do, if you want a solution.

 Cheers, Peter

 --
 Contact information: http://pmrb.free.fr/contact/

___
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] context mkiv eats a table

2010-05-27 Thread Marius
Here is the example.
ConTeXt  ver: 2010.05.24 13:05 MKIV


testbug.tex
Description: TeX document


testbug.pdf
Description: Adobe PDF document
___
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] context mkiv eats a table

2010-05-26 Thread Marius
Hello,

does somebody experience a situation then a table disappear in the
document? This is an ugly bug, but I can't narrow it to a simple case.

Best Regards,
Marius
___
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] font bug in latest beta (was: table bug)

2010-05-23 Thread Marius
In the latest beta (2010.05.23 15:03) the bug disappeared.

On Sun, May 23, 2010 at 1:35 PM, Taco Hoekwater t...@elvenkind.com wrote:
 Marius wrote:

 And something is wrong with fonts too, I get too small size of fonts
 with these commands. The ConTeXt version from yesterday works as
 expected.

 \definetypeface [winfonts] [rm] [specserif] [Times New Roman] [default]
 \definetypeface [winfonts] [ss] [specsans]  [Arial]           [default]
 \definetypeface [winfonts] [tt] [specmono]  [Courier New]     [default]
 \definetypeface [winfonts] [mm] [math]      [times]           [default]

 \setupbodyfont[winfonts,12pt]

 Sorry, I don't know where to start looking for this bug.

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

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

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

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


Re: [NTG-context] table bug

2010-05-22 Thread Marius
And something is wrong with fonts too, I get too small size of fonts
with these commands. The ConTeXt version from yesterday works as
expected.

\definetypeface [winfonts] [rm] [specserif] [Times New Roman] [default]
\definetypeface [winfonts] [ss] [specsans]  [Arial]   [default]
\definetypeface [winfonts] [tt] [specmono]  [Courier New] [default]
\definetypeface [winfonts] [mm] [math]  [times]   [default]

\setupbodyfont[winfonts,12pt]

On Sat, May 22, 2010 at 2:13 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Hi,

 in the last current the table environment is broken.


 \starttext
 \starttable[|l|]
 \NC text \NC\NR
 \stoptable
 \stoptext


 ! Misplaced \noalign.
 \TABLEnoalign -\noalign
                         \bgroup \let \noalign \relax \let \next =
 \insertTABLEtail -\TABLEnoalign
                                 {\global \settrue \preventTABLEbreak
 \globa...
 \stoptable -\chuckTABLEautorow \insertTABLEtail
                                                 \TABLEnoalign
 {\globalletem...
 l.4 \stoptable


 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
 ___

___
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] Problem with identation

2010-05-21 Thread Marius
Please, Hans, write a little more, I can't understand what you mean.

From what I red and understood ConTeXt seems very promising in
comparison with LaTeX. After playing around for two months, I recently
started to use ConTeXt for the real work: my dissertacion summary. I
made style for it and now while filling the contents I spoted this
identation problem and I am stuck because of it. As this problem is
beyond my capabilities and time is short, I have now three options:
return to LaTeX, use [here] option (and manual formating) or please
help me :)

Thank you,
Marius

On Thu, May 20, 2010 at 7:11 PM, Hans Hagen pra...@wxs.nl wrote:
 On 20-5-2010 5:48, Aditya Mahajan wrote:

 On Thu, 20 May 2010, Hans Hagen wrote:

 On 20-5-2010 10:51, Marius wrote:

 \setupindenting[yes,7mm]

 \setupfloats[indentnext=yes]

 \starttext
 \input tufte
 \input knuth

 \placefigure
 [bottom,top][]
 {Title}
 {\externalfigure[cow][width=0.6\textwidth]}

 \input tufte
 \input knuth


 by the time you place the figure at the top, the first paragraph has
 already been typeset

 I think that the question is about the *fourth* paragraph (coming from
 the 2nd tufte quote). Search the pdf for thrive.

 I also find this behaviour to be broken. Why should the next paragraph
 after \placefloat in the source lose its indentation? IMO, only
 \placefigure[left] should affect the indentation, everything else should
 simply leave indentation alone. Or atleast, there should be a way to
 configure the indentation behaviour depending on what type of float we
 are dealing with.

 \definefloat ..

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

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

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

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


Re: [NTG-context] Problem with identation

2010-05-21 Thread Marius
On Fri, May 21, 2010 at 1:47 PM, Peter Münster pmli...@free.fr wrote:
 On Fri, May 21 2010, Marius wrote:

 identation problem and I am stuck because of it. As this problem is
 beyond my capabilities and time is short, I have now three options:
 return to LaTeX, use [here] option (and manual formating) or please
 help me :)

 Fourth option: use a workaround.

  \placefigure
  [bottom,top][]
  {Title}
  {\externalfigure[cow][width=0.6\textwidth]}
 

 \indentation \input tufte

I remember that there is a command to indent (tried \indent,
\indenting), but could not recall and find it in documentation.
Thank you for the hint.
___
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] Problem with identation

2010-05-20 Thread Marius
Here is more clear example in the attachments.

Indenting looks broken if you are using floats in your document and it
is broken in current and previous versions of ConTeXt too.

There is a tread in this mailing list about indenting [1], but the
given example used the option [here] and my reported issue does not
appear. As soon as float starts to float, the paragraph there it was
placed in the source document is not indented and I can't find a way
to indent it.

If it is designed this way, then how to indent a line after a float?

Is it a bug? If it is, then I will fill an issue here [2].


[1] http://www.ntg.nl/pipermail/ntg-context/2010/046799.html
[2] http://tracker.luatex.org/my_view_page.php

On Wed, May 19, 2010 at 6:30 PM, Marius mariau...@gmail.com wrote:
 Hello,

 \setupfloats[indentnext=yes] has no effect in the example below? I
 expect the line 6 above figure to be indented.


 ==
 \setupindenting[yes,7mm]
 \setupfloats[indentnext=yes]

 \starttext
 \input tufte
 \input knuth

 \placefigure
  [bottom,top][]
  {Title}
  {\externalfigure[cow][width=0.6\textwidth]}

 \input tufte
 \input knuth

 \stoptext
 ==



test2.tex
Description: TeX document


test2.pdf
Description: Adobe PDF document
___
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] Problem with identation

2010-05-19 Thread Marius
Hello,

\setupfloats[indentnext=yes] has no effect in the example below? I
expect the line 6 above figure to be indented.


==
\setupindenting[yes,7mm]
\setupfloats[indentnext=yes]

\starttext
\input tufte
\input knuth

\placefigure
  [bottom,top][]
  {Title}
  {\externalfigure[cow][width=0.6\textwidth]}

\input tufte
\input knuth

\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] Two questions about a mysterious behavior of ConTeXt

2010-05-14 Thread Marius
Hello,

I encountered two mysterious behaviours of ConTeXt mkvi and can't
resolve them by my self. So.

The first one is: why does ConTeXt behaves differently then I use
environment ant then I don't.
There are two versions of the same code in the attached files. The
test.tex uses environment test-env and test2.tex does not. Then why
test.tex compiles while test2.tex does not?

The second question is: why in the test-env.tex file ver2 of code
compiles while ver1 does not?

Thank you,
Marius


test.tex
Description: TeX document


test-env.tex
Description: TeX document


test2.tex
Description: TeX document
___
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] a space after title

2010-05-14 Thread Marius
Hello,

There is too big spacing after subsubject in the test3.pdf file. How
to get rid of it?

Thanks,
Marius


test3.tex
Description: TeX document


test3.pdf
Description: Adobe PDF document
___
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] a space after title

2010-05-14 Thread Marius
Thank you, Peter, but there those options come from? I can't find
distance option here:
http://www.pragma-ade.com/general/qrcs/setup-en.pdf and here
http://wiki.contextgarden.net/Reference/en/setuphead too.

Maybe, there is some logic behind some options, they just apply
globaly or something similar?

On Fri, May 14, 2010 at 10:36 PM, Peter Münster pmli...@free.fr wrote:
 On Fri, May 14 2010, Marius wrote:

 There is too big spacing after subsubject in the test3.pdf file. How
 to get rid of it?

 \setuphead [subsection] [alternative=text]

 \setuphead [subsection] [alternative=text, distance=0pt]

 Cheers, Peter

 --
 Contact information: http://pmrb.free.fr/contact/


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

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

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

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


[NTG-context] strange error

2010-05-09 Thread Marius
Hello,

I am confronted with difficulties to understand why do I get this
strage error then compile the attached document? And how to fix it?

! String contains an invalid utf-8 sequence.
l.1 \setuppublicationlist[samplesize={
  ─A},totalnumber=1]

Thank you,
Marius


b.bib
Description: Binary data


test3.tex
Description: TeX document
___
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] simple bibliography and dots after section numbering

2010-05-07 Thread Marius
I think what are you looking for is possible with bib module. Look at
the 3.1 section Default and explicit citations

http://dl.contextgarden.net/modules/bibmod-doc-2009.11.04.zip
http://wiki.contextgarden.net/Bibliography

On Fri, May 7, 2010 at 1:52 AM,  rogu...@googlemail.com wrote:
 rogu...@googlemail.com (2010-05-05 05:12):
 2. I would like to use something like this for bibliography:
    http://wiki.contextgarden.net/Simple_Bibliography#Another_Approach
    but adapting it seems too hard for me. Perhaps someone could help? A
    very crude example:

    ---
    People are writing about this \cite[ref1], (\cite[ref2] - page 25).

    \startbibliography
      \bibitem[ref1] This is the first reference.
      \bibitem[Daniel, 2004][ref2] This is the second reference.
    \stopbibliography
    ---

    should be rendered as:

    ---
    People are writing about this [1], (Daniel, 2004 - page 25)

    1. This is the first reference.
    2. This is the second reference.
    ---

    That is, I want an environment and 2 commands:
      \startbibliography
      \cite [key]
      \bibitem [label_replacing_\cite[key]_but_not_the_item_number] [key]

 A bump to my initial question to add that I am using MKIV and a question:
 would this be hard to implement for a total ConTeXt newcommer?  What
 should he use? TeX / Lua? Would ConTeXt commands be enough?

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

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

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

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


Re: [NTG-context] Captials in section head

2010-05-06 Thread Marius
Try \uppercased instead of  \uppercase (Just guess, untested)

On Wed, May 5, 2010 at 4:22 PM, Carsten Fechtmann
carsten.fechtm...@zarm.uni-bremen.de wrote:

 Is there also a way how to achieve this in MkII ? (other than by hand)

 Cheers
 Carsten

 Am 04.06.2009 um 16:34 schrieb richard.steph...@converteam.com:


 Am 04.06.2009 um 14:56 schrieb richard.steph...@converteam.com:


 I need all section heads to be in full-size capitals, so I tried:

 \setuphead[section][textcommand=\uppercase]

 \starttext
 \section{New section}
 \input knuth
 \stoptext

 But I still get lowercase.
 Using 'textcommand=\cap' gives me small capitals, but I want full-size
 capitals.
 Is there a way to get what I want?

 In MkIV you can say \setuphead[section][style=WORD] or
 \setuphead[section][style=\WORD]

 Wolfgang

 That's fantastic, thanks Wolfgang.

 Richard



 Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
 Registration Number: 2416188
 Registered in England and Wales.
 Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

 CONFIDENTIALITY : This e-mail and any attachments are confidential and may 
 be privileged. If you are not a named recipient, please notify the sender 
 immediately and do not disclose the contents to another person, use it for 
 any purpose or store or copy the information in any medium.

 Please consider the environment before printing this e-mail
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___

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

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

___
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] tooltips and glossary

2010-05-05 Thread Marius
On Wed, May 5, 2010 at 7:36 AM, Michael Saunders odrad...@gmail.com wrote:
 II. Marius's modified index solution is the only one to successfully
 link the entry back to a point in the text, but the resulting
 glossary  really just looks like an index.


You can modify the look of an index with \setupregister
http://wiki.contextgarden.net/Reference/en/setupregister


test2.pdf
Description: Adobe PDF document


test2.tex
Description: TeX document
___
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] simple bibliography and dots after section numbering

2010-05-05 Thread Marius
On Wed, May 5, 2010 at 5:12 AM,  rogu...@googlemail.com wrote:
 G'Day,

 I'm trying out ConTeXt and have come up with 2 questions.

 1. How does one add a dot after the numerals in headings, so that
     \section{First}
   becomes
     1. First
   instead of
     1 First
   ?

\setupheads[sectionstopper=.]
___
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] tooltips and glossary

2010-05-04 Thread Marius
On Tue, May 4, 2010 at 4:40 AM, Michael Saunders odrad...@gmail.com wrote:
 Wolfgang Schuster:
 http://pragma-ade.com/general/manuals/cont-enp.pdf - page 159

 That rambling entry is like the webpage but worse.  It still doesn't
 say what arguments 2--4 do, why \infull is necesarry, or anything else
 with any clarity.  It's just another bundle of bad writing concealing
 what may be (but probably isn't) something useful.  I was thinking of
 something like GlossTeX:
 ftp://ftp.dante.de/tex-archive/support/glosstex/glosstex.pdf

Try this one: http://www.tex.ac.uk/tex-archive/info/context-top-ten/cmds.pdf
- page 14

 I accept that Context has nothing built-in that's useful for making
 glossaries.  That's okay, I can come up with something on my own.  How
 about tooltips, though?  Does anyone do those with Context?
___
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] tooltips and glossary

2010-05-04 Thread Marius
On Tue, May 4, 2010 at 12:44 PM, Michael Saunders odrad...@gmail.com wrote:
 What I would really, really, like is to add short definitions to each
 glossary record that could pop up as tooltips when the reader hovers
 over an unfamiliar word.  Since there is no mechanism for glossaries
 in Context, there is no mechanism to build this into, but I'm still
 interested in doing it.  The idea is, I could write something like:

 \gloss{strange word}{short definition}

 The text would read strange word.  When you hover over it with the
 cursor, a tooltip would appear saying short definition.  It would be
 great if this were linked to a glossary mechanism so I wouldn't have
 to keep writing the short definition---I could say something like:

 \gloss{strange word}

 and its short definition would be looked up automatically for the
 tooltip.  The automatic reference to the word might look like this, in
 the text:

 \gref{strange word}

 which would cause the page number at that point to be printed at the
 end of the glossary entry for strange word.

I don't know how to make tooltips, but everything else is in the file attached.


test2.pdf
Description: Adobe PDF document


test2.tex
Description: TeX document
___
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] table of contents

2010-04-30 Thread Marius
I redone your example, see attached files.

Is it ok to redefine combined list like I did?

And how to I do that everything that precedes the table of contents
does not appear in the table of contents?

Thanks,
Marius

On Fri, Apr 30, 2010 at 9:55 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Am 29.04.10 22:17, schrieb Marius:

 One more question regarding the table of contents. I have looked in
 the wiki and manuals and can't figure out how to enable entries for
 \title, \subject, \subsubject ... in the table of contents?


 This works in MkII and MkIV:

 \setuphead[subject][incrementnumber=list]

 \starttext

 \title{Contents}

 \placelist[chapter,section,subject]

 \chapter{Chapter}

 \section{Section}

 \subject{Subject}

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



test2.tex
Description: TeX document


test2.pdf
Description: Adobe PDF document
___
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] table of contents

2010-04-29 Thread Marius
Hello,

There must be two tables of contents in my document, one in a native
language and the other in english. In LaTeX I made new commands
\enchapter, \ensection, etc., which I use just after the \chapter or
\section command.

How do I make such commands in ConTeXt, so that these commands just
insert a line into the english table of contents, but do not insert
chapter or section in the current page?

Thanks,
Marius
___
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] table of contents

2010-04-29 Thread Marius
Thank you, Wolfgang for the example. I can't believe this is so simple
in ConTeXt. I added this example to wiki.
http://wiki.contextgarden.net/Table_of_Contents

On Thu, Apr 29, 2010 at 1:19 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Am 29.04.10 12:12, schrieb Marius:

 Hello,

 There must be two tables of contents in my document, one in a native
 language and the other in english. In LaTeX I made new commands
 \enchapter, \ensection, etc., which I use just after the \chapter or
 \section command.

 How do I make such commands in ConTeXt, so that these commands just
 insert a line into the english table of contents, but do not insert
 chapter or section in the current page?


 \mainlanguage[de]

 \starttext

 \completecontent

 %\start\language[en]
 \start\mainlanguage[en]
 \completecontent
 \stop

 \chapter{\translate[en=Chapter One,de=Kapitel Eins]}

 \chapter{\translate[en=Chapter Two,de=Kapitel Zwei]}

 \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] table of contents

2010-04-29 Thread Marius
One more question regarding the table of contents. I have looked in
the wiki and manuals and can't figure out how to enable entries for
\title, \subject, \subsubject ... in the table of contents?

Thanks,
Marius
___
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] Overfull

2010-04-25 Thread Marius
Hello,

why there is an overfull in the attached example?

Overfull \hbox (25.73416pt too wide) in paragraph at lines 15--16
 \**ArialFontXVI** NOTX THIS THAT WORD PHRASES

Thanks,
Marius


test2.pdf
Description: Adobe PDF document


test2.tex
Description: TeX document
___
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] setuppagenumbering command

2010-04-23 Thread Marius
I am using the given command below to change numbering format, but I
get numbers instead of roman numerals. Looks like conversion option
has no effect.

\setuppagenumbering
 [location=right,
  alternative=doublesided,
  conversion=Romannumerals,
  style=bold]

On Thu, Apr 22, 2010 at 9:20 PM, Marius mariau...@gmail.com wrote:
 Hello all,

 Why does conversion option for \setuppagenumbering has no effect? Is
 it only for me or for others too?

 Marius

___
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] the last page of a document

2010-04-23 Thread Marius
Hello,

I am writing an environment for a document and there should be a page
with some text at the end of the document. In LaTeX I use
\AtEndDocument{} command, but how does one achieve the same effect in
ConTeXt?

Thanks,
Marius
___
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] the last page of a document

2010-04-23 Thread Marius
On Fri, Apr 23, 2010 at 9:34 AM, Taco Hoekwater t...@elvenkind.com wrote:
 Marius wrote:

 Hello,

 I am writing an environment for a document and there should be a page
 with some text at the end of the document. In LaTeX I use
 \AtEndDocument{} command, but how does one achieve the same effect in
 ConTeXt?

 \appendtoks (stuff I want to do) \to\everystoptext

Thank you for the help, but with this command I have a little problem.
The two pages at the end of the attached document should be the same,
but, as given in this example, the \vfill command does not work as
expected, if added to the \appendtoks. The \vfill fills just half of
the page.


test2.pdf
Description: Adobe PDF document


test2.tex
Description: TeX document
___
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 make uppercase characters?

2010-04-23 Thread Marius
Hello,

There is \uppercase command in tex, but it works just with plane characters.

\uppercase{xxx} prints XXX, while

\def\xxx{xxx}
\uppercase{\xxx} prints xxx, but I want XXX.

Maybe there is a ConTeXt command of \uppercase, like in LaTeX \MakeUppercase ?

Thanks,
Marius
___
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] question

2010-04-22 Thread Marius
Hello all,

why does second command \setupdissertation does not work? In the
attached document I get in the title xxx instead of How to do this
in Context.

Thanks


test2.tex
Description: TeX document


test2.pdf
Description: Adobe PDF document
___
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] question

2010-04-22 Thread Marius
On Thu, Apr 22, 2010 at 4:56 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 You can also simplify your defintion of \setupdissertation:

 \def\setupdissertation
  {\dodoubleargument\getparameters[\??DISS]}

Thanks for the hint.

I have one more question, I took and simplified the example which I
sent here earlier from the wiki:
http://wiki.contextgarden.net/Document_Titles In ConTeXt: A more
advanced solution and I am wondering why I am using  \c! macros? Why
not  \!! ? Why some macros I need to define \def\c!authorname
  {authorname}, but the others not? Maybe here is a name clash with a
system defined \c! macros?
___
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] setuppagenumbering command

2010-04-22 Thread Marius
Hello all,

Why does conversion option for \setuppagenumbering has no effect? Is
it only for me or for others too?

Marius
___
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] Wiki page

2010-02-20 Thread Marius
Hello,

what is the answer?

(58 minus 6) times roman 'X'
___
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] Wiki page

2010-02-20 Thread Marius
I don't know what is wrong, but I can't register to the wiki. It
always writes that Login error: Incorrect or missing confirmation
code.

I wrote the answer to the question (75 minus 5) times roman 'X'  as DCC.

http://wiki.contextgarden.net/index.php?title=Special:UserLogintype=signupreturnto=Main_Page

On Sat, Feb 20, 2010 at 12:52 PM, Arthur Reutenauer
arthur.reutena...@normalesup.org wrote:
 (58 minus 6) times roman 'X'

  It's DXX.

  Seriously, it's not a riddle, it's something you're supposed to type in when
 you want to make changes on the wiki without logging in as a registered user.
 It's supposed to save you the time and trouble of applying for an account, but
 obviously, if you need to ask the question on the list first it somehow fails
 its purpose Plus, there is a timeout on those things, I suppose, so you'd
 better hurry and type in the anwer ;-)

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

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

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

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


[NTG-context] defining commands

2010-02-05 Thread Marius
Hello all,

How do I define the \setuptitlepage and \placetitlepage commands in the
environment file? These commands are used as shown in the example below.


\environment docenv

\setuptitlepage[author=weare,
  name=thisismyname,
  draft=yes]

\starttext
\placetitlepage

\chapter{First}

kasj dlkasjdfl asdf
asdfkjaslfd jalsfd

\stoptext


Thank you,
Marius
___
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] defining commands

2010-02-05 Thread Marius
Thank you for the link, the answer to my question was as in the example you
gave, but with a single argument. The solution to my problem given below
works, but I can't find the answer to the following question. What is the
difference between \dosingleempty and \dosingleargument ?

%%%
\unprotect

\definesystemvariable {dt}

\def\setuptitle
  {\dosingleempty\dosetuptitle}

\def\dosetuptitle[#1]%
  {\def\dodosetuptitle##1%
 {\getparameters[\??dt][#1]}%
  \processcommalist[#1]\dodosetuptitle}

\def\placetitle
  {\startalignment[\v!middle]
   \blank[\v!force,2*\v!big]
   \@@dttitle
   \blank[3*\v!medium]
   \@@dtauthor
   \blank[2*\v!medium]
   \@@dtdate
   \blank[3*\v!medium]
   \stopalignment}

\setuptitle
  [\c!title=,
   \c!author=,
   \c!date=\currentdate]

\protect


On Fri, Feb 5, 2010 at 11:29 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 Am 05.02.10 09:03, schrieb Marius:

  Hello all,

 How do I define the \setuptitlepage and \placetitlepage commands in the
 environment file? These commands are used as shown in the example below.


 Since you do not explain what do you expect from both commands it's not
 possible to give you an answer but you can find on the wiki [1] a example
 for a \setuptitle and \placetitle command which can be copied and used in
 your document.

 [1]
 http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution

 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] new language and hyphenation

2010-01-23 Thread Marius
On Fri, Jan 22, 2010 at 5:45 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

  Am 22.01.10 15:09, schrieb Marius:

 \setuplabeltext [\s!lt] [\v!table={xxx}{lentelė }]

  and output is:

  xxxlentelė 1.1  Name of table

 \setuplabeltext[\s!lt][\v!table={xxx , lentelė }]


 Thank you, works as expected.

In a table of contents and in section names there must be period after
 number:


 This can be fixed in mkiv; a bit harder in mkii.

  \setupheads[sectionstopper=.]


  This command does not work if placed in the lang-bal.tex file.

 Don't do this because it will affect in this way each document in ConTeXt.

 I don't what Hans current meaning about language specific settings is but
 in MkII you could have done this with:

 \startlanguagespecifics[\s!lt]
 \setuphads[\c!sectionstopper=.]
 \stoplanguagespecifics

 You get now a dot at the end of the section number when write
 \mainlanguage[lithuanian] in the preamble of your document.


Yes, this would be a good solution.
___
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] times new roman, arial and courier fonts

2010-01-23 Thread Marius
Hello all,

how to set times new roman as \rm, arial as \ss and courier as \tt?

\usetypescriptfile[type-win]
\usetypescript[times]
\usetypescript[arial]
\usetypescript[courier]

\setupbodyfont[times,10pt]

This code sets just \rm, but \ss and \tt are left as default latin modern
font.

Thank you,
Marius
___
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] times new roman, arial and courier fonts

2010-01-23 Thread Marius
On Sat, Jan 23, 2010 at 4:57 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 Am 23.01.10 15:46, schrieb Marius:

  Hello all,

 how to set times new roman as \rm, arial as \ss and courier as \tt?


 When you need only the Times/Arial/Courier look you can use:

 \usetypescript[postscript]
 \setupbodyfont[postscript]


Thank you for the hint.
The solution to my question is:

\usetypescriptfile[type-win]
\starttypescript [winfonts]
 \definetypeface [winfonts] [rm] [serif] [times]   [default]
 \definetypeface [winfonts] [ss] [sans]  [arial]   [default]
 \definetypeface [winfonts] [tt] [mono]  [courier] [default]
 \definetypeface [winfonts] [mm] [math]  [times]   [default]
\stoptypescript
\usetypescript[winfonts]
\setupbodyfont[winfonts,10pt]
___
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 language and hyphenation

2010-01-22 Thread Marius
Hello,

How do I test translation?
I do it this way, is it correct?

Translated lang-bal.tex (not finished yet)
luatools --generate
context --make

But I get an error, then I run context --make

) (C:/doc/context/tex/texmf-context/tex/context/base/lang-art.tex
loading : ConTeXt Language Macros / Artificial Languages
) (C:/doc/context/tex/texmf-context/tex/context/base/lang-bal.tex
loading : ConTeXt Language Macros / Baltic Languages
! Undefined control sequence.
argument \??la \s!lt
   \c!state
\doifdefinedelse #1-\ifcsname #1
 \endcsname \...@ea \firstoftwoarguments \else
...
argument \doiflanguageelse {\s!lt }
  {\getparameters [\??la \s!lt
][\c!spac...
\firstoftwoarguments #1#2-#1

l.38\s!righthyphenmin=2]

?


%
%  Lettish/Latvian, Lietuvių/Lithuanian

\unprotect

\installlanguage
  [\s!lt]
  [\c!spacing=\v!packed,
   \c!leftsentence=---,
   \c!rightsentence=---,
   \c!leftsubsentence=---,
   \c!rightsubsentence=---,
   \c!leftquote=\lowerleftdoubleninequote,
   \c!rightquote=\upperrightdoublesixquote,
   \c!leftquotation=\lowerleftdoubleninequote,
   \c!rightquotation=\upperrightdoublesixquote,
   \c!date={\v!year~m.\ \v!month\ \v!day~d.},
   \s!patterns=\s!lt,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

\protect \endinput

%
___
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 language and hyphenation

2010-01-22 Thread Marius
On Thu, Jan 21, 2010 at 7:33 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 Am 20.01.10 23:53, schrieb Mojca Miklavec:

  For example:
 Figure 1: Caption of the figure
 1 pav. Caption of the figure
 Table 1: Caption of the table
 1 lentelė. Caption of the table


 Nice. I guess that you gave a nice homework to Hans :)
 I didn't check, but I have not seen any setting to change the order of
 number  label yet.

 not what you want but this works

 \setuplabeltext[...][...={left of number}{right of number}]


\setuplabeltext [\s!lt] [\v!table={xxx}{lentelė }]

and output is:

xxxlentelė 1.1  Name of table



  In a table of contents and in section names there must be period after
 number:


 This can be fixed in mkiv; a bit harder in mkii.

 \setupheads[sectionstopper=.]


This command does not work if placed in the lang-bal.tex file.
___
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 language and hyphenation

2010-01-21 Thread Marius
On Thu, Jan 21, 2010 at 12:53 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

  2 spacing = packed broad
  lefthyphenmin = NUMBER
 should be 2
  righthyphenmin = NUMBER
 should be 2 - the minimum number of characters that are allowed to the
 left and right of hyphen character.


I think in lithuanian must be:
lefthyphenmin = 1
righthyphenmin = 1

*a-ša-ra*
*Ro-me-o*
http://www.vlkk.lt/lit/nutarimai/rasyba/zodziu-kelimas.html
http://www.vlkk.lt/lit/nutarimai/rasyba/zodziu-kelimas.html

 leftquote = COMMAND
  rightquote = COMMAND

 Quote is for single quotation mark (when nesting):
A said: \quotation{B said: \quote{some sentence}}


  compoundhyphen = COMMAND
  leftcompoundhyphen = COMMAND
  rightcompoundhyphen = COMMAND
  default = IDENTIFIER
  What is the difference between quote and quotation? I always use double
  quote, like this: „example“

 Usually there must exist another set of quotation marks for nesting
 quotations. Rarely used, but ...


There is no nested punctuation symbols in lithuanian language.

All symbols are listed here:
http://www.vlkk.lt/lit/nutarimai/dokumentas.156.html

They are:
2. Lietuvių kalboje vartojami skyrybos ženklai: taškas ( . ), kablelis ( ,
), kabliataškis ( ; ), dvitaškis ( : ), brūkšnys ( – ), klaustukas ( ? ),
šauktukas ( ! ), daugtaškis ( ... ), skliaustai: atidaromasis ( ( ),
uždaromasis ( ) ); kabutės: atidaromosios ( „ ), uždaromosios ( “ ).

As said here: http://www.vlkk.lt/lit/7696
I can use nested quotations like this (droped one quote at the begining of
quotation):

Pabrango „Utenos“ Utenos“ alus.

A said:  „B said: „some sentence“. (droped one quote at the end)

Or if it is not clear I can quote in italic or bold or etc.

A said: „B said: *some sentence“.*
**
___
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 language and hyphenation

2010-01-20 Thread Marius
Hello all,

The hyphenation patterns for lithuanian language are missing. So, how
does one add a new language and hyphenation patterns for ConTeXt?
___
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] Questions regarding simplefonts

2010-01-20 Thread Marius
On Wed, Jan 20, 2010 at 2:59 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

  Am 20.01.10 08:58, schrieb Marius:

 Hello all,

 I add my questions regarding simplefonts to this thread too.
 How to enable em dash and en dash? It looks like I need to set tlig to
 yes, but with heading pasted below, the --- is not interpreted as em
 dash.


 
 \usemodule[simplefonts]
 \setmainfont[Times New Roman][script=latin, texligatures=yes]

  \setmainfont[Times New Roman][mode=node]

 It's a problem with the font as you can see in this example:

  \definefontfeature[default][default][mode=node] % mode=base works

 \definefont[times][name:timesnewroman*default]


  \starttext

 \times text---text

 \stoptext


I realy do not understand what these \definexxx commands mean, but  then I
set \setmainfont[Times New Roman][mode=base], I get em dash as expected,
thank you.

  \setsansfont[Arial Unicode MS]
 \setmonofont[Courier New]

 \setupbodyfont[10pt]

  Can you use the module options to change the font size.

 \usemodule[simplefonts][size=10pt]

 or

 \setupsimplefonts[size=10pt]


Why? It works as expected with \setupbodyfont[10pt] too.
___
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 language and hyphenation

2010-01-20 Thread Marius
On Wed, Jan 20, 2010 at 6:10 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


 Apart from that you need to submit translation for your language (see
 lang-ger.tex and lang-bal.tex), or at least that would be very nice.
 Some settings there are necessary if you want to enable the extra
 patterns. There are some more things to be done, but you may start by
 translating the strings and filling other holes in lang-bal.tex.


To do it I need to understand what all these parameters mean.

\installlanguage [..1.] [..,.=2.,..]
1 IDENTIFIER
2 spacing = packed broad
lefthyphenmin = NUMBER
righthyphenmin = NUMBER
state = start stop
leftsentence = COMMAND
rightsentence = COMMAND
leftsubsentence = COMMAND
rightsubsentence = COMMAND
leftquote = COMMAND
rightquote = COMMAND
leftquotation = COMMAND
rightquotation = COMMAND
leftspeech = COMMAND
middlespeech = COMMAND
rightspeech = COMMAND
limittext = TEXT
date = TEXT
compoundhyphen = COMMAND
leftcompoundhyphen = COMMAND
rightcompoundhyphen = COMMAND
default = IDENTIFIER

What is the difference between quote and quotation? I always use double
quote, like this: „example“

Next, I need to know there all strings, which I translate, will be used.
Maybe, there is an example document with all english strings used.

For example:
Figure 1: Caption of the figure
1 pav. Caption of the figure

Table 1: Caption of the table
1 lentelė. Caption of the table

In a table of contents and in section names there must be period after
number:

1. Name
1.1. Name2
1.1.2. Name3

exept:

Chapter 1
1 skyrius


 The main question is: do you need them only for MKIV/XeTeX or do you
 also want them for MKII? In the latter case you'll have quite some
 problems with encoding (that is: missing support for it in fonts).

 In MKIV  XeTeX it should be no problem.


I use utf8 and MKIV.


 Mojca


___
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] Questions regarding simplefonts

2010-01-19 Thread Marius
Hello all,

I add my questions regarding simplefonts to this thread too.
How to enable em dash and en dash? It looks like I need to set tlig to
yes, but with heading pasted below, the --- is not interpreted as em
dash.



\usemodule[simplefonts]
\setmainfont[Times New Roman][script=latin, texligatures=yes]
\setsansfont[Arial Unicode MS]
\setmonofont[Courier New]

\setupbodyfont[10pt]

\setuppapersize[C5][C5]
\setupindenting[yes, medium, next]

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