Re: [NTG-context] Strange Behaviour / Strange Memory effect when creating pdf charts with the chart module in context

2010-01-21 Thread luigi scarso
On Thu, Jan 21, 2010 at 8:40 AM, moritz braun moritz.br...@gmail.com wrote:
 Hi there

 this is not really my experience

 Even when deleting all the many files that context creates, There is a
 strange memory effect!!!
Do you have an example ?
I can check it under Ubuntu.
What are you using ?
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] How to add line number to verbatim typefile?

2010-01-21 Thread Joshua Lee
Hi all,
Here's a little sample named test.tex, 

 \starttext
 \setuptyping[file][numbering=line]
 
 \typefile[start=1,step=1]{test.tex}
 
 \stoptext

But, it does not shows the line number, any questions about the code snippet, 
thanks. 

BR/JL
___
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
___


Re: [NTG-context] Bibliography -- complete inline citations in footnotes

2010-01-21 Thread Andreas Schneider
Piotr Lesnicki wrote:

 Hi,
 I'm new to ConTeXt and I'm greatly appreciating the rejuvenation it
 brings me in typesetting after several years using LaTeX.
 
 I'm confronted to a few little problems though, the main one being
 that I'd need to have references both in the footnotes and at the end
 of a document. Under LaTeX I found that the inlibib package is doing
 exactly that, inserting some ibid and op.cit. when required for
 repeting references. After reading the bibmod-doc, I thought I would
 temporarly solve the problem by simply using
 \setuppublications[refcommand=data] which I thought would put the
 reference in the same format as in the bibliography, but it doesn't
 compile.
 
 Does any one have a solution?
 
 
 Piotr

Hi Piotr,

I did assemble such a solution (with much help from Hans and Wolfgang). It's 
not enough to put it into a complete module yet (although I will probably do 
that sometime soon) and it currently only works with a recent beta of MkIV. 
(It can also be changed easily to work with MkII, but it won't correctly 
recognize repeating citations over page breaks ... long story ;-))

Just put the attached file into the same dir (or near) your document where 
you want to use it and include it with \module[mycite].

To use it simply replace \cite[key] with something like \mycite[key]
[page=123, chapter=1.5, suffix={Some manual inserted text.}]
These three parameters are each optional.
Since I wrote this for a German document, you may also want to modify the 
strings in the head of t-mycite.tex. (Ebenda = Ibidem, S. = Page, 
vgl. = compare/reference, Kap. = chapter)

Best Regards,
Andreas.\def\mycite{\dodoubleempty\domycite}
\def\defaultciterepeat{Ebenda}
\def\defaultciteprefix{Vgl. }
\def\defaultcitepage{S. }
\def\defaultcitechapter{Kap. }

\def\domycite[#1][#2]{%
  \ifsecondargument%
\getparameters[MCP][prefix=\defaultciteprefix,page=,chapter=,suffix=,#2]%
\doinsertmycite[#1]{\MCPprefix}{%
  \expandoneargafter\doifnotempty{\MCPpage}{\ \defaultcitepage\MCPpage.}%
  \expandoneargafter\doifnotempty{\MCPchapter}{\ \defaultcitechapter\MCPchapter.}%
  \expandoneargafter\doifnotempty{\MCPsuffix}{\ \MCPsuffix}%
}%
  \else%
\doinsertmycite[#1]{\defaultciteprefix}{}%
  \fi%
}

\def\doinsertmycite[#1]#2#3{%
  \footnote{%
#2%prefix
\doifelse{\getvalue{mycitelast}}{#1}%
  {\doifemptyelse{#2}%
{\defaultciterepeat}%
{\expandoneargafter\lowercase{\defaultciterepeat}}%If there's a prefix, lower-case the cite-repeat string
.%
  }%
  {\doifelse{\getvalue{mycitepast #1}}{used}%
{\bgroup%
 \getcitedata[title][#1] to \bibtitle%
 \getcitedata[arttitle][#1] to \bibarttitle%
 \cite[alternative=authoryear][#1]. {\it\bibtitle\bibarttitle}.%
 \egroup}%
{\cite[alternative=data][#1]}%
  }%
#3%suffix
  }%
  \setvalue{mycitelast}{#1}%
  \setvalue{mycitepast #1}{used}%
}

%Reset last citation on page break (which we check when placing footnotes)
\appendtoks
  \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}}
\to\everyinsidenoteinsert
___
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] \wordright and line break

2010-01-21 Thread Andreas Harder
Hello Hans,

is there a reason (I’m sure there is) that \finalhyphendemerits\zerocount in 
the \wordright-definition is commented out? Without this line I get wrong line 
breaks with hyphenated words followed by \wordright{…}.

\starttext
\setupframedtexts[width=.65\textwidth,offset=none]
\startTEXpage[offset=1ex] \hsize=.65\textwidth
\startframedtext
  test text test text test text test text test text test  testtext
  \wordright{(S.\,3, Z.\,78–97)}
\stopframedtext

\startframedtext
  test text test text test text test text test text test test- text
  \wordright{(S.\,4, Z.\,117–121)}
\stopframedtext
\stopTEXpage
\stoptext

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


Re: [NTG-context] simpleslides - no macros found errors

2010-01-21 Thread Aditya Mahajan

On Thu, 21 Jan 2010, Himanshu B. Dave wrote:


I am a new user of simpleslides.
Linux 2.6.21 kernel, Slackware 12.0, teTeX

  ^^

Which version of context does tetex use? You can check with

ctxtools --contextversion



installed latest version of t-simpleslides via t-simpleslides.zip in
/usr/share/texmf tree
Executed:   mktexlsr
confirmed:  appearance of t-simpleslides.tex in /usr/share/texmf/ls-R
confirmed:  path via kpsewhich t-simpleslides.tex
copied:  speaker_introduction-2min.tex  to my HOME directory, and
tried to compile it. Got the following errors:

system  : no macros found in module style=Boxed
system  : macros of module font=Bookman already loaded


At first glance it seems that you are using too old a version of context, 
one that does not understand passing of options to \usemodule.


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

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


Re: [NTG-context] Strange Behaviour / Strange Memory effect when creating pdf charts with the chart module in context

2010-01-21 Thread Aditya Mahajan

On Thu, 21 Jan 2010, moritz braun wrote:


Hi there

this is not really my experience

Even when deleting all the many files that context creates,


Did you also delete all the temporary metapost files? Try with

   ctxtools --purge --all

You can also try to forcably remove all the temp files at the end of the 
run by


  texexec --purge filename


There is a strange memory effect!!!


Does forcing a final run help

   texexec --final filename

Aditya

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

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


[NTG-context] coloring rules

2010-01-21 Thread Hans van der Meer
ConTeXt  ver: 2010.01.19 23:29 MKIV  fmt: 2010.1.20  int: english/ 
english


Coloring hrule's and vrule's with \color[aColor]{\vrule  
heightdepthwidth} works only if aColor is one of the standardcolors  
like red, blue, gray, etc.
But defining other colors don't color the rule \definecolor[mygray][r=. 
6,g=.7,b=.7]\color[mygray]{\vrule heightdepthwidth} typesets the rule  
in black, not in mygray.
The strange is that the lines around \framed[framecolor=mygray] do get  
colored correctly.


How can I accomplish the general coloring of vrule's and hrule's?

Hans van der Meer




___
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] coloring rules

2010-01-21 Thread Aditya Mahajan

On Thu, 21 Jan 2010, Hans van der Meer wrote:


ConTeXt  ver: 2010.01.19 23:29 MKIV  fmt: 2010.1.20  int: english/english

Coloring hrule's and vrule's with \color[aColor]{\vrule heightdepthwidth} 
works only if aColor is one of the standardcolors like red, blue, gray, etc.
But defining other colors don't color the rule 
\definecolor[mygray][r=.6,g=.7,b=.7]\color[mygray]{\vrule heightdepthwidth} 
typesets the rule in black, not in mygray.
The strange is that the lines around \framed[framecolor=mygray] do get 
colored correctly.


How can I accomplish the general coloring of vrule's and hrule's?


\blackrules.

%D \macros
%D   {blackrules}
%D
%D One can call for a sequence of black rules, if needed
%D equally spaced over the given width.
%D
%D \showsetup{blackrules}
%D
%D The two alternative calls are therefore:
%D
%D \startbuffer
%D Tell me, is this according to the \blackrules[n=6]?
%D These \blackrules[alternativevariant=b,n=10,distance=.2em,width=4cm] 
are quite clear.

%D \stopbuffer


Despite its name, \blackrules can be of any color. The default options are

\setupblackrules
  [\c!n=3,
   \c!width=1em,
   \c!height=1ex,
   \c!depth=\!!zeropoint,
   \c!alternative=\c!a,
   \c!distance=.25ex,
   \c!color=]

Aditya

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

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


Re: [NTG-context] Strange Behaviour / Strange Memory effect when creating pdf charts with the chart module in context

2010-01-21 Thread moritz braun
Dear Aditya

thanks for you suggestions

I will try them to see whether they solve my problem
regards

Moritz

On Thu, Jan 21, 2010 at 6:34 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Thu, 21 Jan 2010, moritz braun wrote:

 Hi there

 this is not really my experience

 Even when deleting all the many files that context creates,

 Did you also delete all the temporary metapost files? Try with

   ctxtools --purge --all

 You can also try to forcably remove all the temp files at the end of the run
 by

  texexec --purge filename

 There is a strange memory effect!!!

 Does forcing a final run help

   texexec --final filename

 Aditya

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

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




-- 
Prof M Braun Tel.:27-12-4298006/8027
Physics Department  Fax.: 27-12-4293643
University of South Africa (UNISA)  
moritz.br...@gmail.com
P.O. Box 392
0003
UNISA
 South Africa
___
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
___