[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
Csikos Bela schrieb am 20.10.2023 um 14:53: > Hello: > > Protrusioin doesn't 
work in framed environment. > > This is a short code: > > 
\definefontfeature[default][default][expansion=quality,protrusion=quality] > > 
\setupalign[hz,hanging] > > \showframe > > \starttext > > \input tufte > > 
\blank > > \framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte 
}  \framed[...,align={normal,hz,hanging},...]{...}  Wolfgang  Thank you for the 
super fast answer!Another question related to my sample code:Why the right edge 
of the text hangs into the margin when I use this 
code:\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte 
}Thanks,bcsikos___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
I forgot to attach the pdf. Eredeti levél Hello:Protrusioin 
doesn't work in framed environment.This is a short 
code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input
 tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input 
tufte 
}\blank\setlocalhsize\framed[frame=off,location=top,align=normal,offset=0pt,width=local]{\input
 tufte }\stoptextThe compiled pdf is attached as protrusion-in-framed.pdf.Is is 
possible to make protrusion work in framed?I need to use framed in itemize to 
prevent splittinf of items between pages.Thanks,bcsikos

protrusion-in-framed.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] protrusion in framed

2023-10-20 Thread Csikos Bela
Hello:Protrusioin doesn't work in framed environment.This is a short 
code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input
 tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input 
tufte 
}\blank\setlocalhsize\framed[frame=off,location=top,align=normal,offset=0pt,width=local]{\input
 tufte }\stoptextThe compiled pdf is attached as protrusion-in-framed.pdf.Is is 
possible to make protrusion work in framed?I need to use framed in itemize to 
prevent splittinf of items between pages.Thanks,bcsikos___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
 Eredeti levél Feladó: Aditya Mahajan Dátum: 
2023 október 15 22:32:37Tárgy: Re: [NTG-context] Re: numbered itemize list item 
label alignmentCímzett: mailing list for ConTeXt users On 
Sun, 15 Oct 2023, Wolfgang Schuster wrote:  > Csikos Bela schrieb am 15.10.2023 
um 15:51: > > Hello: > > > > I would like to make a long numbered itemize list, 
where the numbers > > increase up to three digits. > > I would like the 
numbered labels aligned to the right and the widest > > label's left side 
located at the left margin. > > I tried the below code but the 3 digit labels' 
left sides go into the left > > margin. How can I fix it? > > > > Code: > > > > 
\showframe > > \starttext > > \startitemize[n,broad][itemalign=flushright] > > 
\dorecurse{250}{\item } > > \stopitemize > > \stoptext > > You can use the 
width-key to set a value for the number, below is a example > for method > to 
calculate the width based on the number of items but I would use fixed > value 
> (e.g. width=2em) to let all items (independent of the entries) start on the > 
same position.  I normally use the `fit` key with an appropriate value of 
`distance`. For example:  \showframe[text][text]  \starttext  
\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] 
\dorecurse{1}{\startitem xxx\stopitem} \stopitemize  \page  
\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] 
\dorecurse{11}{\startitem xxx\stopitem} \stopitemize  \page  
\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] 
\dorecurse{111}{\startitem xxx\stopitem} \stopitemize  \stoptext  Thank you, 
the fit option worked well.bcsikos___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] numbered itemize list item label alignment

2023-10-15 Thread Csikos Bela
Hello:I would like to make a long numbered itemize list, where the numbers 
increase up to three digits.I would like the numbered labels aligned to the 
right and the widest label's left side located at the left margin.I tried the 
below code but the 3 digit labels' left sides go into the left margin. How can 
I fix 
it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item
 }\stopitemize\stoptextThe resulted pdf is attached as 
context-itemize-label-alignment.pdf.Thank you in advance,bcsikos

context-itemize-label-alignment.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] disabling specific ligatures

2017-03-21 Thread Csikos Bela
Dear context users:

Is it possible to disable a specific ligature in a whole document in mkiv?
I would like to disable fi ligature.
Does it make a difference if I use a true type font installed on my
system?

Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] pdfinfo

2017-03-07 Thread Csikos Bela
Dear context users:

In latex I could use \pdfinfo command to add information metadata to pdf file:
Title, Author, Creator, Producer, CreationDate, ModDate, Subject, Keywords.
I found that I can set title, author, subtitle (=subject) and keyword with
\setupinteractions command.

How can I set the remaining ones (CreationDate, ModDate, Creator, Producer)?

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] xtables different frame thickness for one side only

2017-02-24 Thread Csikos Bela
Dear context users:

Is it possible to change the rulethickness of one side of a row in xtables?
I the example below I'd like the bottom of the first row to be thicker than 
other sides.

\starttext
\startxtable[frame=on]
\startxrow % bottom frame of this row should be thicker
\startxcell AAA \stopxcell
\startxcell BBB \stopxcell
\stopxrow
\startxrow
\startxcell CCC \stopxcell
\startxcell DDD \stopxcell
\stopxrow
\stopxtable
\stoptext

If I understand correctly xtables uses framed mechanism. For framed I could not
find an option to change the frame thickness of individual sides. There's only
rulethickness option which applies to all sides. According to this what I want 
to do
in xtabels is not feasible. Please correct if I misunderstand something.

Thanks you in advance,

bcsikos


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] controlling title head distances when grid is enabled

2017-02-23 Thread Csikos Bela
Dear context users:

I would like to typeset my documents to gridlines. If grid is enabled,
the distances between titles (section, subsection,subsubsection heads)
and text are too big. Here's an example:

\setuplayout[grid=yes]
\showgrid
\starttext
\section{Section One}
\input tufte
\subsection{Subsection One}
\input ward
\subsubsection{Subsubsection One}
\input tufte
\section{Section Two}
\subsection{Subsection Two}
\input davis
\subsection{Subsection Three}
\input dawkins
\stoptext

In the output there are 3 empty lines before and 2 after Subsection One.
It would be enough 2 and 1 lines, respectively. On page 2, between
Section Two and Subsection Two heads 4 empty lines are inserted,
which is to much (ugly). How can I control the empty space before
and after heads when grid is enabled? 

I tried this:
\setuphead[section][before=\vskip-2.8ex,after=\vskip-2.8ex]
but it removes all spaces not only 1 line.

I also tried 
\setuphead[section][before={\blank[2*line]},after={\blank[line]}]
but it doesn't have any effect.

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] description questions

2017-02-21 Thread Csikos Bela
Aditya Mahajan írta:
>> I am experimenting with descriptions and I couldn't find in the documentation
>> the following:
>>
>> 1. What is the default value of width option? It seems that default width 
>> uses the
>> longest head + some distance for every head in a descriptions list. 

Sorry, I wasn't right. context uses a default width for head. Accidentally the 
longest
term I used in my document was almost the same as the default head width, 
therefore
I thought that the head was calculated according to my term's width.

>>Neither  width=fit nor width=broad,distance=dimension results in the same.
>
>Some information is given here: http://www.ntg.nl/maps/36/09.pdf
>Enumerations and descriptions share a lot of settings.

Thank you. I read it. I have a question: is it possible to add some text or 
command
between the head and text in description? For example a dash or symbol which 
separates the head from the text. In enumerations it seems to be different, 
because
there the variable head (title) goes after a static head. I would need the 
opposite:
variable head part - static head part. I tried to use headcommand option but it 
puts
stuff before head.

>There is no way to reset options in ConTeXt. The canonical way to do this 
>is:
>
>\definedescription[defa]
>\definedescription[defb][defa][width=broad, distance=1cm]
>
>\startdefa ... \stopdefa
>
>\startdefb ... \stopdefb
>
>(Untested): This should also work:
>
>\startdefa[width=broad, distance=1cm] ... \stopdefa

I see. 

Thank you again,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] description questions

2017-02-20 Thread Csikos Bela
Dear context users:

I am experimenting with descriptions and I couldn't find in the documentation
the following:

1. What is the default value of width option? It seems that default width uses 
the
longest head + some distance for every head in a descriptions list. Neither
width=fit nor width=broad,distance=dimension results in the same.

2. In the same document how can I reset to the default options of a defined
description list? For example:

\definedescription[defa]

\defa{head}  % deafult options are used

\setupdescription[defa][width=broad,distance=1cm] 
\defa{head}  % above options are used

Now I would like to use again the default options, how can I?

I tried:
\setupdescription[defa][] 
\defa{head}  

But still the previously set options are used, they haven't been reset.

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] header hanging into margin + rule

2017-02-19 Thread Csikos Bela
Csikos Bela írta:

>I would like to setup page headers to be wider than the main text, that is 
>hanging
>into the margin area on both sides by 1.5-1.5 cms. How can I?
>
>Here is my code:
>
>\setuppapersize[A4]
>\setuplayout[backspace=3.5cm,
>width=14cm]
>\setupheadertexts[]
>\setupheadertexts[\setups{text a}][]
>\startsetups[text a]
>  \rlap{Left header text}
>  \hfill
>  {Middle header text}
>  \hfill
>  \llap{\pagenumber}
>\stopsetups
>\starttext
>\input tufte
>\stoptext

OK, I experimented with this and found how I can make the header hang:

\setuppapersize[A4]
\setuplayout[backspace=3.5cm,width=14cm]
\setuppagenumbering[alternative=doublesided,location=]
\setupheader[text][after=\hrule]
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][\setups{text b}][]
\startsetups[text a]
  \hskip-1.5cm
  \framed[frame=off,width=17cm,offset=none]{
  \rlap{Inner text}
  \hfill
  {Center text}
  \hfill
  \llap{\pagenumber}}
\stopsetups
\startsetups[text b]
  \hskip-1.5cm
  \framed[frame=off,width=17cm,offset=none]{
  \rlap{Outer text}
  \hfill
  {Center text}
  \hfill
  \llap{\pagenumber}}
\stopsetups
\starttext
\dorecurse{4}{\input tufte \page}
\stoptext

I also added a bottom rule to the header using after=\hrule option, but this 
rule
is not wide enough. How can I change the length of this rule to the same as
the header frame? I attach a pdf (made by pdflatex) showing what I'd like to 
get.

Thanks,

bcsikos



header-with-rule-example.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] header hanging into margin

2017-02-18 Thread Csikos Bela
Dear context users:

I would like to setup page headers to be wider than the main text, that is 
hanging
into the margin area on both sides by 1.5-1.5 cms. How can I?

Here is my code:

\setuppapersize[A4]
\setuplayout[backspace=3.5cm,
width=14cm]
\setupheadertexts[]
\setupheadertexts[\setups{text a}][]
\startsetups[text a]
  \rlap{Left header text}
  \hfill
  {Middle header text}
  \hfill
  \llap{\pagenumber}
\stopsetups
\starttext
\input tufte
\stoptext

Thank you ind advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] two framed item lists side by side

2017-02-09 Thread Csikos Bela
Dear context user:

I would like to put two itemized lists side by side (1cm between them), top 
aligned.
I inserted each lists in framedtext and tried to use combinations but the 
distance
between the two frames is too big, and the list are not top aligned.
What would be a correct solution? I don't need the frame to be drawn.
Why distance=1cm and width=12cm have no effect in my code?

Thanks,

bcsikos

code:

\setupitemize[each][packed,joinedup,n][stopper=.~,itemalign=flushright]
\setupframedtext[width=5.5cm,frame=off,offset=0pt]
\setupcombinations[width=12cm,distance=1cm]
\starttext
\startcombination[2]
{\startframedtext
\startitemize
\item In The Flesh? 3:19
\item The Thin Ice  2:29
\item Another Brick In The Wall (Part 1)3:09
\item The Happiest Days Of Our Lives1:50
\stopitemize
\stopframedtext
}{}{
\startframedtext
\startitemize
\item Hey You   4:41
\item Is There Anybody Out There?   2:40
\stopitemize
\stopframedtext
}{}
\stopcombination
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use \setupitemgroup?

2017-02-04 Thread Csikos Bela
"Thomas A. Schmitz" írta:
>On 02/04/2017 10:41 PM, Csikos Bela wrote:
>> Dear context users:
>>
>> I have troubles using \setupitemgroup. I tried to use it based on the
>> contextgarden wiki page 
>> (http://wiki.contextgarden.net/Command/setupitemgroup),
>>  description, but either my understanding how to use it is not correct or the
>> command doesn't behave as described on the wiki page.
>>
>> In the following example I want the items to be in a numbered, packed list, 
>> where the
>> item numbers are followed by ), like 1) 2) etc. If I don't add stopper=) 
>> option, I get
>> a numbered list, but it's not packed. If I add stopper=), the list becomes 
>> an unnumbered
>> list, but packed. I use context standalone ConTeXt  ver: 2016.09.24 12:40 
>> MKIV beta.
>> I attach the resulted pdfs.
>>
>> What do I do wrong?
>>
>> Thanks,
>>
>> bcsikos
>>
>>
>> example code:

Dear Thomas:

Thank you very  much for your fast response.

>Most importantly: do not mix keywords and assignments. There are dozens 
>of messages on the list with your exact problem; maybe we need some sort 
>of very explicit, scary warning on the wiki. So
>
>\setupitemgroup[itemize][each][packed,joinedup][n,stopper=)]
>
>should be
>
>\setupitemgroup[itemize][each][packed,joinedup,n][stopper=)]

Thanks, I see. Unfortunately the wiki page doesn't mention n among the
keywords, and there is one n on the list of the assignments (without
mentioning its function). This might have caused me mixing it up.

>Then a couple of smaller things: bonus points for providing an example, 
>but please remove stuff that has nothing to do with your question. For 
>your private names, use uppercase or mixed-case so you don't clash with 
>system macros, so please do not define an itemgroup "itemize," but 
>"Itemize," or better still give it a more expressive name.

I haven't intended to define my own itemize command. I wanted to change
the default settings of \startitemize.  Is this not the proper way to redefine
\startitemize default options? (I wanted to use \setupitemize but
the wiki site directs to \setupitemgroup page.)  The wiki page says that
"\setupitemgroup[.1.][.2.][.3.][.4.]
1: name of the itemgroup to change (e.g. itemize for \startitemize)".
And if I wanted to setup my own itemize command, should not I define it
first using \defineitemgroup?

> And lastly: I 
>couldn't test with the old standalone you use.
>
>Hope that helps.

Yes, practically you solved my problem.

Thanks again,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] How to use \setupitemgroup?

2017-02-04 Thread Csikos Bela
Dear context users:

I have troubles using \setupitemgroup. I tried to use it based on the
contextgarden wiki page (http://wiki.contextgarden.net/Command/setupitemgroup),
 description, but either my understanding how to use it is not correct or the
command doesn't behave as described on the wiki page.

In the following example I want the items to be in a numbered, packed list, 
where the
item numbers are followed by ), like 1) 2) etc. If I don't add stopper=) 
option, I get
a numbered list, but it's not packed. If I add stopper=), the list becomes an 
unnumbered
list, but packed. I use context standalone ConTeXt  ver: 2016.09.24 12:40 MKIV 
beta.
I attach the resulted pdfs.

What do I do wrong?

Thanks,

bcsikos


example code:

\definefontfamily[docu][rm][Tex Gyre Heros] % I want to use ss fonts only
\setupbodyfont[docu,12pt]
\setuppagenumbering[state=stop]
\setupitemgroup[itemize][each][packed,joinedup][n] % or use this:
%\setupitemgroup[itemize][each][packed,joinedup][n,stopper=)]
\starttext

\startalignment[middle]
{\tfa PINK FLOYD}

{\tfa The Wall}
\stopalignment
\blank

{\bf Compact Disc 1}

\startitemize
\item In The Flesh? 3:19
\item The Thin Ice  2:29
\item Another Brick In The Wall (Part 1)3:09
\item The Happiest Days Of Our Lives1:50
\item Another Brick In The Wall (Part 2)3:59
\item Mother5:33
\item Goodbye Blue Sky  2:47
\item Empty Spaces  2:08
\item Young Lust3:31
\item One Of My Turns   3:36
\item Don't Leave Me Now4:16
\item Another Brick In The Wall (Part 3)1:14
\item Goodbye Cruel World   1:15
\stopitemize
\blank

{\bf Compact Disc 2}

\startitemize
\item Hey You   4:41
\item Is There Anybody Out There?   2:40
\item Nobody Home   3:24
\item Vera  1:33
\item Bring The Boys Back Home  1:27
\item Comfortably Numb  6:21
\item The Show Must Go On   1:36
\item In The Flesh  4:16
\item Run Like Hell 4:23
\item Waiting For The Worms 3:58
\item Stop  0:30
\item The Trial 5:19
\item Outside The Wall  1:43
\stopitemize

\stoptext


itemize-example1a.pdf
Description: Adobe PDF document


itemize-example1b.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] xtables feature request, (professional looking tables)

2016-12-30 Thread Csikos Bela
Dear Hans:

I almost can do what I want with xtables except that I cannot
add different foot to the very last page of the table. Could it be
added to xtables an option for last page foot (on the analogy
of head and next options), so that a different foot could be
defined for the last page of the table? It would be a nice feature.

Unfortunately I have no idea how difficult it is to add such an option,
but if it is not too complex, I am asking you to include it in a future
context version/update.

Thank you in advance.

Best regards,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] professional looking tables

2016-12-23 Thread Csikos Bela
Thank you for your help so far.
Now I am close to what I'd like to achieve.
I want to insert a foot on every pages except on the
last page (at the end of the table). Is it possible?

I have this simple code:

\starttext

\setupxtable[split=repeat,header=repeat,footer=repeat]

\startxtable[frame=off,topframe=on,bottomframe=on,toffset=2pt,boffset=4pt]
\startxtablehead
\startxrow[bottomframe=off,rulethickness=2pt]
\startxcell Head \stopxcell
\stopxrow
\stopxtablehead
\startxtablenext
\startxrow[topframe=off]
\startxcell Continued from previous page \stopxcell
\stopxrow
\startxrow
\startxcell Next \stopxcell
\stopxrow
\stopxtablenext
\startxtablefoot[bottomframe=off]
\startxrow
\startxcell Continued on next page \stopxcell
\stopxrow
\stopxtablefoot
\startxtablebody
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\startxrow
\startxcell \input tufte \stopxcell
\stopxrow
\stopxtablebody
\stopxtable

\stoptext


Thank you,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] professional looking tables

2016-12-22 Thread Csikos Bela
Hans Hagen írta:
>On 12/22/2016 4:02 PM, Csikos Bela wrote:
>> Pablo Rodriguez írta:
>>> On 12/18/2016 07:19 PM, Csikos Bela wrote:
>>>> Dear context users:
>>>> [...]
>>>> I see that context offers several table environments. Which one of them
>>>> is suitable for making  professional (publication quality) tables?
>>>> [...]
>>>> Is this feasible in current context?
>>>
>>> Dear Csikos,
>>>
>>> http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf is your
>>> friend here.
>>
>> Thank you. I started to learn xtables but I have problems. When I use
>> toffset and boffset the table is not rendered correctly. The width of the
>> columns are not correct, the defined widths are not applied to the columns.
>> See my example code below and the corresponding pdf result, xtables example 
>> 1.
>> I use context beta standalone: ConTeXt  ver: 2016.10.12 17:26 MKIV beta  
>> fmt: 2016.10.13  int: english/english.
>>
>> Code:
>>
>> \starttext
>>
>> xtables example 1
>>
>> \startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
>> \startxrow
>> \startxcell[width=4cm] First Column \stopxcell
>> \startxcell[width=5cm] Second Column \stopxcell
>> \startxcell[width=2cm] Third Column \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
>> Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. 
>> \stopxcell
>> \startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
>> \stopxcell
>> \startxcell Lorem ipsum \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Pellentesque habitant morbi tristique senectus et netus 
>> \stopxcell
>> \startxcell Pellentesque habitant morbi tristique senectus et netus 
>> \stopxcell
>> \startxcell Pellentesque \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Donec nunc lorem, sollicitudin vel sodales eget 
>> \stopxcell
>> \startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec 
>> nunc lorem, sollicitudin vel sodales eget \stopxcell
>> \startxcell Donec \stopxcell
>> \stopxrow
>> \stopxtable
>>
>> \stoptext
>>
>> How can I fix this?
>
>\setupxtable[one]  [width=4cm]
>\setupxtable[two]  [width=5cm]
>\setupxtable[three][width=2cm]
>
>\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
> \startxrow
> \startxcell[one]   First Column \stopxcell
> \startxcell[two]   Second Column \stopxcell
> \startxcell[three] Third Column \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one]   Lorem ipsum dolor sit amet, consectetur 
>adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, 
>viverra nec risus. \stopxcell
> \startxcell[two]   Lorem ipsum dolor sit amet, consectetur 
>adipiscing elit. \stopxcell
> \startxcell[three] Lorem ipsum \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one]   Pellentesque habitant morbi tristique 
>senectus et netus \stopxcell
> \startxcell[two]   Pellentesque habitant morbi tristique 
>senectus et netus \stopxcell
> \startxcell[three] Pellentesque \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one]   Donec nunc lorem, sollicitudin vel sodales 
>eget \stopxcell
> \startxcell[two]   Donec nunc lorem, sollicitudin vel sodales 
>eget Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
> \startxcell[three] Donec \stopxcell
> \stopxrow
>\stopxtable
>

OK, this works.
Thank you for the very fast answer!

bcsikos
_
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] professional looking tables

2016-12-22 Thread Csikos Bela
Pablo Rodriguez írta:
>On 12/18/2016 07:19 PM, Csikos Bela wrote:
>> Dear context users:
>> [...]
>> I see that context offers several table environments. Which one of them
>> is suitable for making  professional (publication quality) tables?
>> [...]
>> Is this feasible in current context?
>
>Dear Csikos,
>
>http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf is your
>friend here.

Thank you. I started to learn xtables but I have problems. When I use
toffset and boffset the table is not rendered correctly. The width of the
columns are not correct, the defined widths are not applied to the columns.
See my example code below and the corresponding pdf result, xtables example 1.
I use context beta standalone: ConTeXt  ver: 2016.10.12 17:26 MKIV beta  fmt: 
2016.10.13  int: english/english.

Code:

\starttext

xtables example 1

\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
\startxrow
\startxcell[width=4cm] First Column \stopxcell
\startxcell[width=5cm] Second Column \stopxcell
\startxcell[width=2cm] Third Column \stopxcell
\stopxrow
\startxrow
\startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. \stopxcell
\startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
\stopxcell
\startxcell Lorem ipsum \stopxcell
\stopxrow
\startxrow
\startxcell Pellentesque habitant morbi tristique senectus et netus 
\stopxcell
\startxcell Pellentesque habitant morbi tristique senectus et netus 
\stopxcell
\startxcell Pellentesque \stopxcell
\stopxrow
\startxrow
\startxcell Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
\startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec nunc 
lorem, sollicitudin vel sodales eget \stopxcell
\startxcell Donec \stopxcell
\stopxrow
\stopxtable

\stoptext

How can I fix this?

Thank you in advance,

bcsikos

xtables-example-01.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] professional looking tables

2016-12-18 Thread Csikos Bela
Dear context users:

In latex I could make professional looking tables using booktabs module.
Using longtable package I could make nice looking multipage tables.

I see that context offers several table environments. Which one of them
is suitable for making  professional (publication quality) tables?

The requirements for such tables are the follows:

- Only horizontal rules are needed
- Ability to set the rule's thickness for top rule, bottom rule, middle rule
- Ability to set the distance between rules and table content
- Ability to set rule length shorter than cell or row width on both left and 
right sides
- Ability to set rules for spanning only some of the columns

In addition, for multipage tables:

- head row at the start of table
- head rows at top on every page (possibly including first page)
- foot row ate the end of table
- foot rows at the end of every page (possibly including last page)

Is this feasible in current context?

Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] grid snapping problem

2016-12-07 Thread Csikos Bela
Henri Menke írta:
>The following should do the trick.

Thank you very much. Your code indeed fixes the snap to grid problem but it also
pushes the second subsection after the float and leaves a big empty space in the
lower part of the first page, which is not desirable. The text should fill the 
whole first
page. Is it possible?

>However, you have to keep \setnostrut and \setstrut around the figure because 
>the
>before and after keys for captions are not (yet) implemented.

It's fine, not a problem.

I guess I can use simply \subsection command instead of \startsubsection and
\stopsubsection comands, because I find the command pairs counterproductive
in case of long text parts (part, section, subsection etc.).

Thank you again,

bcsikos



>\setuplayout[grid=yes]
>\showgrid
>
>\starttexdefinition caption:text #1
>  \setuplocalinterlinespace[line=2.2ex] #1
>\stoptexdefinition
>
>\setupcaptions
>  [
>width=fit,
>align=last,
>headstyle={\ss\bfx},
>style={\ss\tfx},
>before={\setnostrut},
>textcommand=\getvalue{caption:text},
>  ]
>
>\starttext
>
>\startsubsection[title={Subsection title}]
>  \input dawkins
>  \input dawkins
>
>  \setnostrut
>  \startplacefigure
>[title={\input zapf }]
>\framed[width=0.6\textwidth,height=10ex]{figure}
>  \stopplacefigure
>  \setstrut
>
>\stopsubsection
>
>\startsubsection[title={Subsection title}]
>  \input dawkins
>\stopsubsection
>
>\startsubsection[title={Subsection title}]
>  \input dawkins
>  \input dawkins
>\stopsubsection
>
>\stoptext
>
>On 12/06/2016 07:06 PM, Csikos Bela wrote:
>>> I would like to use grid snapping in my document: main text lines
>>> should be aligned to grid lines but figure caption text should not.
>>>
>>> I have this code:
>>>
>>> \setuplayout[grid=yes]
>>> \showgrid
>>>
>>> \setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}]
>>>
>>> \starttext
>>> \subsection{Subsection title}
>>> \input dawkins
>>> \input dawkins
>>>
>>> %startlinecorrection
>>> \startbaselinecorrection  \setuplocalinterlinespace[line=2.2ex]
>>> \placefigure[][]{\input zapf 
>>> }{\framed[width=0.6\textwidth,height=10ex]{figure}}
>>> \stopbaselinecorrection
>>> %stoplinecorrection
>>>
>>> \subsection{Subsection title}
>>> \input dawkins
>>> \subsection{Subsection title}
>>> \input dawkins
>>> \input dawkins
>>> \stoptext
>>>
>>> You can see that the caption is typeset as I wanted: smaller line height
>>> and it is not aligned to grid lines. But the main text after the figure is 
>>> not
>>> aligned to the grid on the same page. How can I correct this?
>>> On the next page the main text is snapped to the grid again.
>> 
>> Since I haven't got any answer to my question I think the code above contains
>> some obvious error, but I don't know what. What do I do wrong? Or is it just
>> not possible to achieve what I want? 
>> 
>> Thank you,
>> 
>> bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] grid snapping problem

2016-12-06 Thread Csikos Bela
>I would like to use grid snapping in my document: main text lines
>should be aligned to grid lines but figure caption text should not.
>
>I have this code:
>
>\setuplayout[grid=yes]
>\showgrid
>
>\setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}]
>
>\starttext
>\subsection{Subsection title}
>\input dawkins
>\input dawkins
>
>%startlinecorrection
>\startbaselinecorrection  \setuplocalinterlinespace[line=2.2ex]
>\placefigure[][]{\input zapf 
>}{\framed[width=0.6\textwidth,height=10ex]{figure}}
>\stopbaselinecorrection
>%stoplinecorrection
>
>\subsection{Subsection title}
>\input dawkins
>\subsection{Subsection title}
>\input dawkins
>\input dawkins
>\stoptext
>
>You can see that the caption is typeset as I wanted: smaller line height
>and it is not aligned to grid lines. But the main text after the figure is not
>aligned to the grid on the same page. How can I correct this?
>On the next page the main text is snapped to the grid again.

Since I haven't got any answer to my question I think the code above contains
some obvious error, but I don't know what. What do I do wrong? Or is it just
not possible to achieve what I want? 

Thank you,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] grid snapping problem

2016-12-02 Thread Csikos Bela
Dear context users:

I would like to use grid snapping in my document: main text lines
should be aligned to grid lines but figure caption text should not.

I have this code:

\setuplayout[grid=yes]
\showgrid

\setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}]

\starttext
\subsection{Subsection title}
\input dawkins
\input dawkins

%startlinecorrection
\startbaselinecorrection  \setuplocalinterlinespace[line=2.2ex]
\placefigure[][]{\input zapf }{\framed[width=0.6\textwidth,height=10ex]{figure}}
\stopbaselinecorrection
%stoplinecorrection

\subsection{Subsection title}
\input dawkins
\subsection{Subsection title}
\input dawkins
\input dawkins
\stoptext

You can see that the caption is typeset as I wanted: smaller line height
and it is not aligned to grid lines. But the main text after the figure is not
aligned to the grid on the same page. How can I correct this?
On the next page the main text is snapped to the grid again.

Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] gridline question

2016-11-24 Thread Csikos Bela
Dear list members:

I use \setuplayout[grid=yes] option in my document to snap lines to gridlines.
But I don't want figure text to be snapped to grids. Figure text is typeset in
smaller fonts and the lineskip becomes too big. How can I turn snap 
to grid off for a block of text or for figures or figure legends?

Here is an example:

\setuplayout[grid=yes]
%\showgrid
\setupcaptions[location=bottom,width=fit,align=last,headstyle={\tfxx},style={\tfxx}]
\starttext
\input ward
\input tufte
\placefigure{An example figure. \input ward }{\framed[width=0.5\textwidth]{A 
figure}}
\input zapf
\stoptext

Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] table and \setuptables questions

2016-11-17 Thread Csikos Bela
Hans Hagen írta:
>On 11/11/2016 4:26 PM, Csikos Bela wrote:
>> Dear list members:
>>
>> I have this simple table:
>>
>> \starttext
>> \placetable[here]{title}{
>> \setuptables[bodyfont=8pt,rulethickness=0.04em]
>> \start
>> \setuplocalinterlinespace[2.2ex]
>> \starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
>> \HL[2]
>> \NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
>> \HL
>> \NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
>> turpis,
>> semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
>> consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
>> \HL
>> \NC Pellentesque habitant morbi tristique senectus et netus
>> \NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
>> \NC \SR
>> \HL
>> \NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
>> sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales 
>> eget \NC Donec \NC \SR
>> \HL[2]
>> \stoptable
>> \stop}
>> \stoptext
>>
>> I have some questions related to the above table.
>>
>> 1. How can I set the distance between the text (in rows) and the rule above 
>> and  below the text, separately?
>> I find that the rules are too close to the text. I tried \setuptables' 
>> height and depth options but those are
>> not what I need, I guess. What are height and depth options are for exactly?

Thank you for your answer.

>it's not configurable

Is it configurable in other table types, e.g. in TABLE or xtables?

>i'll an openup key
>
>
>\unprotect
>
>\def\tabl_table_normal_full_rule
>   {\starttablenoalign
>\!ttGetHalfRuleThickness
>\scratchdistance\directtablesparameter\c!openup
>\ifzeropt\scratchdistance\else\kern\scratchdistance\fi
>\hrule\s!height\scratchdimen\s!depth\scratchdimen
>\ifzeropt\scratchdistance\else\kern\scratchdistance\fi
>\stoptablenoalign}
>
>\setuptables
>   [\c!openup=\zeropoint]
>
>\protect
>
>...
>
>% \setuplocalinterlinespace[2.2ex]
>\setuptables
>   [openup=-.2ex]

Thank you. This forks for the distance between the rule and the top of the 
following text,
but not for the distance between the bottom of the text and the following rule.
How would it be that?

Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] table and \setuptables questions

2016-11-17 Thread Csikos Bela
Please disregard my last  message.
I haven't noticed that an answer arrived a little bit earlier I posted it.

But I don't understand why it didn't go in a new thread.

Best regards,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] table and \setuptables questions

2016-11-17 Thread Csikos Bela
Dear list members:

Last time I sent this message to the wrong thread accidentally. Now I send it 
again, hopefully to a new thread.

I have this simple table:

\starttext
\placetable[here]{title}{
\setuptables[bodyfont=8pt,rulethickness=0.04em]
\start
\setuplocalinterlinespace[2.2ex]
\starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
\HL[2]
\NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
\HL
\NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
\HL
\NC Pellentesque habitant morbi tristique senectus et netus
\NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
\NC \SR
\HL
\NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget 
\NC Donec \NC \SR
\HL[2]
\stoptable
\stop}
\stoptext

I have some questions related to the above table.

1. How can I set the distance between the text (in rows) and the rule above and 
below the text, separately?
I find that the rules are too close to the text. I tried \setuptables' height 
and depth options but those are not what I need.  (For example the depth option 
adds extra space in rows where it is unnecessary.) What are height and depth 
options are for exactly?

2. Can \setuptables[bodyfont=...] option use font sizes as \tfa, \tfb, \tfc, 
\tfx, \tfxx, or point size has to be
set explicitly? 

3. What is the distance option in \setuptables?

Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] table and \setuptables questions

2016-11-11 Thread Csikos Bela
Dear list members:

I have this simple table:

\starttext
\placetable[here]{title}{
\setuptables[bodyfont=8pt,rulethickness=0.04em]
\start
\setuplocalinterlinespace[2.2ex]
\starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
\HL[2]
\NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
\HL
\NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
\HL
\NC Pellentesque habitant morbi tristique senectus et netus
\NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
\NC \SR
\HL
\NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget 
\NC Donec \NC \SR
\HL[2]
\stoptable
\stop}
\stoptext

I have some questions related to the above table.

1. How can I set the distance between the text (in rows) and the rule above and 
 below the text, separately?
I find that the rules are too close to the text. I tried \setuptables' height 
and depth options but those are
not what I need, I guess. What are height and depth options are for exactly?

2.  Can \setuptables[bodyfont=...] option use font sizes as \tfa, \tfb, \tfc, 
\tfx, \tfxx, or point size has to be
set explicitly? 

3. What is the distance option in \setuptables?

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definefallbackfamily for math fonts, again

2016-11-02 Thread Csikos Bela
Wolfgang Schuster írta:
>\definefontfamily [doc] [rm] [TeX Gyre Bonum]
>\definefontfamily [doc] [ss] [Tex Gyre Adventor]
>
>\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
>[range=lowercasenormal,offset=lowercasesansserifnormal]
>\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
>[range=lowercasenormal,offset=lowercasesansserifnormal,tf=style:italic]
>
>\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
>[range=uppercasenormal,offset=uppercasesansserifnormal]
>\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
>[range=uppercasenormal,offset=uppercasesansserifnormal,tf=style:italic]
>
>\definefontfamily [doc] [mm] [TeX Gyre Pagella Math]
>
>\setupbodyfont[doc,10pt]
>
>\starttext
>Text font: , {\ss } 
>\par
>Math font: \m{}, \m{\rm 
>}, \m{\ss }
>\stoptext

Thank you again, Wolfgang.

Unfortunately I don't understand the syntax of \definefallbackfamily command
and therefore I only copy/paste examples I found in the list and context wiki.

I found the first mention of built-in simplefonts in this thread but it doesn't 
discuss
\definefallbackfamily in detail:
https://mailman.ntg.nl/pipermail/ntg-context/2013/075481.html

I also looked at context wiki pages for Command/definefontfamily
and Command/definefontfallback.

All in all I am very confused how to use the command.
It is not clear for me how to know if an option in \definefallbackfamily applies
to the font to be replaced or to  the replacement font.

--For example I guess range= option applies to the font to be replaced: if the
font/character lies within this range then it should be replaced by the font
defined in \definfallbackfamily. Is this correct?

--The preset= option is a predefined range; it is equal to some range= option.
Is this correct?

--What is offset=? Is this a range that should be used in the replacement?
Does [range=lowercasenormal,offset=lowercasesansserifnormal] mean that
lower case normal font should be replaced by lower case sans serif normal font?

--Does the above imply that offset= option is only valid for math fonts and it
can't be used for rm, ss and tt fonts?
(E.g. \definefallbackfamily [doc] [rm] [TeX Gyre Bonum] explicitly defines a 
serif font,
it would be nonsense to add offset=lowercasesansserifnormal option to the 
command.)

--tf=style:italic: what does this exactly mean? If the replacement font drawing
command is \tf then draw italic font? If yes, how it is different from
offset=lowercasesansserifitalic? Is this command used in the same manner
in \definefontfamily and \definefallbackfamily commands?

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathsf / mathversions in context

2016-10-27 Thread Csikos Bela
Wolfgang Schuster írta:

[...]

>\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
>[preset=math:lowercaseitalic]
>\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
>
>then Tex Gyre Adventor font is used for math (\definefallbackfamily has 
>effect).
>
>If I have this code:
>
>\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
>\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
>[preset=math:lowercaseitalic]
>
>then Tex Gyre Pagella is used for math (\definefallbackfamily has no effect).
>
>According to your answer the opposite should happen, shouldn't?
>I am confused.
>
>
>
>The \definefontfamily command creates a typeface which is used to load a
> font but after this point you can’t make changes to it.

I see, I didn't know this.

>The \definefallbackfamily command let you assign additional
>characters for a font but this has to happen before the font is loaded, 
>therefore \definefallbackfamily needs before \definefontfamily in the document.

It is clear now. Thank you a lot.

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] \definefallbackfamily for math fonts, again

2016-10-26 Thread Csikos Bela
Dear list members:

I have the following context code:

\definefontfamily [doc] [rm] [TeX Gyre Bonum]
\definefontfamily [doc] [ss] [Tex Gyre Adventor]
\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
[range=0x0-0x2FA1F,force=yes]
\definefontfamily [doc] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[doc,10pt]
\starttext
Text font: , {\ss } \\
Math font: \m{}, \m{\rm }, \m{\ss 
}
\stoptext

1. In the pdf result \rm math font is Tex Gyre Adventor and \ss math is Tex 
Gyre Pagella.
How can I have context to print math \rm with Tex Gyre Pagella serif, and math 
\ss
with Tex Gyre Adventor font? Why a roman/serif font is replaced with a sans 
serif font?

2. What range would be the most correct to include all characters for 
replacement?

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-20 Thread Csikos Bela
Pablo Rodriguez írta:
>Dear list,
>
>from the previous message from Csikos, I have generated the following
>sample:
>
>\setupbodyfontenvironment[default][a=5, x=8, xx=6]
>\starttext
>Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\
>Default \tfa Larger \tfx Smaller2 \tfxx Smaller2
>\stoptext
>
>I can set a different value for a, but not for x or xx. The values for x
>and xx seem to be hardcoded.

Just for clarity, my problem was not that I couldn't change the value of x and 
xx.
My problem was that \tfx and \tfxx behave differently than \tfa \tfb etc.
I expected that \tfx and \tfxx change the font size to x and xx size compared to
the default/normal size and not compared to the currently used/environment
font size. According to the reference manual that would be the expected 
behavior. 
The reference manual [pages 106-107 (108-109 pdf pages)] writes:

"Besides these two-letter commands, there is a series of font selector commands 
with a
size suffix attached. Some examples of that are:
\tfx \bfx \slx \itx
\tfa \tfb \tfc \tfd \tfxx
The a suffix selects a somewhat larger font size than the default. Each of the 
ordered
alphabetic suffixes a, b, … select a somewhat larger actual font than the 
previous suffix. The x and xx suffixes select smaller and yet smaller versions. 
Note that these commands select font sizes relative to the default, not 
relative to whatever font size is currently in effect."

I don't see how the fixed values for x and xx is related to this.

Best regards,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] font size switching

2016-10-20 Thread Csikos Bela
"Thomas A. Schmitz" írta:
>On 10/17/2016 07:31 PM, Csikos Bela wrote:
>> Do you mean it's better to use e.g. {\bf some text} then \bf{some text}?
>
>The latter is not valid syntax. You want to read the wiki section on 
>font switching: http://wiki.contextgarden.net/Font_Switching

Thanks. I mixed it up with the mnemonic font switching commands.
I guess I thought that these (\bf \it etc) can be used similarly to \bold etc.

[]

>> then I have Smaller1 in (x) size and Smaller2 in default size. Why?
>> I would expect Smaller2 to be in (x) size too (as the manual implies).
>>
>I'm not sure where you found the sentence you copied in your first mail. 
>My copy of contextref.pdf says p. 107:

The sentence I cited is on the same page (107/109), the top line.

> "The various commands will adapt 
>themselves to the actual setup of font and size." Which is exactly what 
>you see.

In my understanding this only means that if the current font is bold then an
\it changes the font to bold italic and not normal italic, and if the size is
for example (c) it will keep it and won't change back to normal size. It doesn't
mean that if you have size (b) and use a \tfa the size becomes a magnified
(b) (that is, (c).) According to my understanding using a \tfb should result
a (b) size font independently the currently used size according to the manual.
My question was why \tfx works differently than \tfa. I guess they answered this
in the meantime.

Thanks,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathsf / mathversions in context

2016-10-20 Thread Csikos Bela
Wolfgang Schuster  írta:

Thank you again. Now I am even more confused.

>> 3. I found that if I write \definefontfamily [docuf] [mm] [TeX Gyre 
>> Pagella Math]
>> before \definefallbackfamily lines, the latter have no effect. Is this 
>> normal?
>> Shouldn't the order of definition lines be indifferent?
>The fallbackfamily settings are applied to a typeface and the 
>\definefontfamily commands creates the typeface, without \definefontfamily the
>fallbacks are never used because there is no font which can use the settings.

Sorry, but I don't understand the answer. If I have the code:

\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]
\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]

then Tex Gyre Adventor font is used for math (\definefallbackfamily has effect).

If I have this code:

\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]

then Tex Gyre Pagella is used for math (\definefallbackfamily has no effect).

According to your answer the opposite should happen, shouldn't?
I am confused.

>The x and xx perform not the same scaling as a, b etc. but you can 
>define your own sizes which behave the same way as a etc.
>
>\definefontsize[m]
>\definefontsize[n]
>
>\definebodyfontenvironment[default][m=0.8,n=0.9]

OK. How can I use this setting together with \definefontfamily and
\definefallbackfamily?

I have this code:

\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:uppercaseitalic]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasenormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasenormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:digitsnormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:digitsitalic]
\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[documentfont,10pt]

\definefontsize[m]
\definefontsize[n]

\definebodyfontenvironment[default][m=0.8,n=0.6]

\starttext

This paragraph contains text and $\tf math$.

{\tfa This paragraph contains text and $\tf math$.}

{\tfb This paragraph contains text and $\tf math$.}

\stoptext

The result in this case is italic math font. How can I have it upright?
(If I comment out \definefontsize and \definebodyfontenvironment lines,
the math font are upright.)

Thank you in advance,

bcsikos




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] font size switching

2016-10-17 Thread Csikos Bela
Pablo Rodriguez írta:
>On 10/17/2016 06:15 PM, Csikos Bela wrote:
>> Dear context users:
>> 
>> It seems to me that some of the the font size switching commands do not work
>> as described in the context reference manual (contextref.pdf, 27/09/2013), 
>> e.g.
>>  \tfx. The manual writes on page 109 that "Note that these commands select
>> font sizes relative to the default, not relative to whatever font size is 
>> currently in
>> effect." But in my case \tfx switches to smaller compared to the size in 
>> effect, and
>> not smaller compared to default size.
>> 
>> In additions I couldn't find command for returning to default size after a 
>> font switching
>> command. How to switch (back) to normal size? 
>
>Hi Csikos,
>
>there is a workaround for that:
>
>\definefontsize[n]
>\setupbodyfontenvironment[default][n=1]
>
>And then use \tfn.

OK, I see. Thanks.

>
>BTW, font (and language) commands are switches, so they don’t require
>text enclosed in parentheses (such as \emph{} in LaTeX). I would
>discourage the use of \tfn, but you’re on your own.

Do you mean it's better to use e.g. {\bf some text} then \bf{some text}?

>x and xx are different font sizes, not x repeated (it could have been
>named y or w instead). Here you have the difference:
>
>\starttext
>default, {\tfx smaller (x) {\tfx not smaller (x again)}}
>
>default, {\tfx smaller (x) {\tfxx smaller (xx now)}}
>\stoptext

I know this. What I don't understand is that if I have the code:

\starttext
Default {\tfa Larger} {\tfx Smaller1} \\
Default \tfa Larger \tfx Smaller2
\stoptext

then I have Smaller1 in (x) size and Smaller2 in default size. Why?
I would expect Smaller2 to be in (x) size too (as the manual implies).

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] font size switching

2016-10-17 Thread Csikos Bela
Dear context users:

It seems to me that some of the the font size switching commands do not work
as described in the context reference manual (contextref.pdf, 27/09/2013), e.g.
 \tfx. The manual writes on page 109 that "Note that these commands select
font sizes relative to the default, not relative to whatever font size is 
currently in
effect." But in my case \tfx switches to smaller compared to the size in effect, 
and
not smaller compared to default size.

In additions I couldn't find command for returning to default size after a font 
switching
command. How to switch (back) to normal size? 

Here is an MWE:

\starttext

default, {\tfa larger (a)}, {\tfb larger (b)}, {\tfc larger (c)}, {\tfd larger 
(d)}

default, {\tfx smaller (x)}, {\tfxx smaller (xx)}

This is normal text, (default 10pt).
{\tfa This is larger (a).}
Normal again.
{\tfx This is smaller, (x).}

This is normal size.
\bfa This is larger bold (a).
\tf This is normal larger (a), \backslash tf doesn't change size.

How to switch back to normal size, if there is no suffix for normal size?

\tfx And why isn't this smaller (x) if the suffix changes size relative to 
default size
as the manual states?

\stoptext


Thank you in advance,

bcsikos
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathsf / mathversions in context

2016-10-14 Thread Csikos Bela
Wolfgang Schuster írta:

>>I would like to set up Tex Gyre Adventor sans serif
>>font as my math font (even if it doesn't havemath symbols). I have 
>>two questions related to this problem.
>>
>>1. In latex I can specify 
>>math font versions, define a specific font as math serif / normal, 
>>another as mathsans serif etc. 
>>(http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml).
> >Is this possiblein context, and if yes, how?
>
>ConTeXt doesn’t use the same style switches as LaTeX.

Thanks. Is there a way to change font family locally in math mode?
For example how can I use serif if sans serif is the default math font?

>3. You can use the font fallback mechanism to replace certain character 
>in the math font with characters from a text font.
>
>\definefontfamily [mathfont] [rm] [Tex Gyre Bonum]
>\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] 
>[preset=math:lowercaseitalic]
>\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] 
>[tf=style:italic,range=0x068,offset=0x0210E]% Planck constant
>\definefontfamily [mathfont] [mm] [Tex Gyre Pagella Math]
>
>\setupbodyfont[mathfont,10pt]
>

I played a lot with these setups and have questions.
I use this font setting:

\definefontfamily [docuf] [rm] [TeX Gyre Bonum] 
\definefontfamily [docuf] [ss] [TeX Gyre Adventor]
\definefontfamily [docuf] [tt] [Latin Modern Mono] [features=none]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasenormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasebold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercaseitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasebolditalic]%,scale=.6]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasenormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasebold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasebolditalic]%,scale=.6]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsnormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsbold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsbolditalic]%,scale=.6]

\definefontfamily [docuf] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[docuf,24pt]

1. If I want to use a scale factor is it possible the give the scale factor by 
using
the preset a,b,c,d,x,xx values? Or I must specify the scale factors as numbers?

2. Scaling occurs compared to which font in the definition list?

3. I found that if I write \definefontfamily [docuf] [mm] [TeX Gyre Pagella 
Math]
before \definefallbackfamily lines, the latter have no effect. Is this normal?
Shouldn't the order of definition lines be indifferent?

4. If I write a paragraph with different font size, how can I scale the 
embedded math
too automatically? For example if I write

\placefigure[here]{Figure title}{\ss\tfxx
A B C D \math{E~F~G~}}

A B C D is typeset with small fonts but E F G not; it will be huge compared to
A B C D. I can't manually scale the math part because it is inserted here
by chemfig module and I can't redefine how it typesets fonts.

Thanks in advance,

bcsikos
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] mathsf / mathversions in context

2016-10-11 Thread Csikos Bela
Dear list members:

I would like to set up Tex Gyre Adventor sans serif font as my math font (even 
if it doesn't have
math symbols). I have two questions related to this problem.

1. In latex I can specify math font versions, define a specific font as math 
serif / normal, another as math
sans serif etc. 
(http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). Is 
this possible
in context, and if yes, how?

2. If I specify Tex Gyre Adventor as default math font in context, I get 
compile error.
Here is a MWE, file name is mathfont.tex:


\definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
\definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
\setupbodyfont[mathfont,10pt]

\starttext

Normal text.

\math{Inline math expression.}

Normal text.

\stoptext


Running context mathfont.tex gives:

This is LuaTeX, Version 0.98.3 (TeX Live 2017/dev)
 system commands enabled.

tex error   > tex error on line 9 in file /mathfont.tex: ! Math error: 
parameter \Umathquad\textstyle is not set


\m_syst_action_nop ...artimath #1\normalstopimath
  \fi
l.9 \math{Inline math expression.}


 1 \definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
 2 \definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
 3 \setupbodyfont[mathfont,10pt]
 4
 5 \starttext
 6
 7 Normal text.
 8
 9 >>  \math{Inline math expression.}
10
11 Normal text.
12
13 \stoptext


?   

I would appreciate any help or explanations on the topic, or naming a document 
that explains it.

Thanks in advance,

bcsikos

___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] floating figure hanging into the margin

2016-10-06 Thread Csikos Bela
"Mikael P. Sundqvist" írta:
>Hi!
>I think it is explained well in the details manual how to do that, see page 34 
>at
>http://www.pragma-ade.com/general/manuals/details.pdf
>/Mikael

Thank you Mikael. This is what I need.

bcsikos
___
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] floating figure hanging into the margin

2016-10-05 Thread Csikos Bela
Dear list members:

How can I make floating figures hang into the side margin area in context?
That is, part of the figure in the text area and other part of the figure in 
the margin?
Is it possible?

I attach a pdf showing an example.

I don't need compete solution, only a hint where to start.

Thanks in advance,

bcsikos

figure-hanging-into-margin-example.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] box width to fit longest line of text

2016-09-29 Thread Csikos Bela
Wolfgang Schuster írta:

>>  Dear context users:I'd
>> like to handle a block of text with 2 or more lines where the block 
>>width should be equalto the longest line in the block. I'd like the 
>>lines be center aligned in the block.Something like this:   
>> line1second longerlineanother lineIn latex I 
>>can do it using parbox like this:\parbox{\widthof{second 
>>longerline}}{\centering{}line1\\second longerline\\another line}How
>> can achieve the same or similar in context?
>
>
>\starttext
>
>\startframed[align=middle]
>line\\
>second longer line\\
>another line
>\stopframed
>
>\stoptext

Thank you Wolfgang. It works.

bcsikos
___
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] box width to fit longest line of text

2016-09-28 Thread Csikos Bela
Dear context users:

I'd like to handle a block of text with 2 or more lines where the block width 
should be equal
to the longest line in the block. I'd like the lines be center aligned in the 
block.
Something like this:

line1
second longerline
another line

In latex I can do it using parbox like this:

\parbox{\widthof{second longerline}}{\centering{}line1\\second 
longerline\\another line}

How can achieve the same or similar in context?

Thanks in advance,

bcsikos

___
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] update/install error

2016-09-24 Thread Csikos Bela
Hans Hagen  írta:
>On 9/24/2016 12:51 PM, Jean-Pierre Delange wrote:
>> Hello list !
>> There is no problem updating CTX under Linux Ubuntu
>> 5.4.0-6ubuntu1~16.04.2, kernel 4.4.0-38-generic;
>>
>> I've updated yesterday evening, without error :
>> mtx-context | ConTeXt Process Management 0.63
>> mtx-context |
>> mtx-context | main context file:
>> /home/adeimantos/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>
>i fixed it (it was a dependency on the engine)

Thanks Hans for the quick fix.
It works now.

bcsikos
___
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] installation error

2016-09-24 Thread Csikos Bela
Dear context users:

I'd like to install context standalone on openSUSE 13.2 i586.
I followed the instructions on page 
http://wiki.contextgarden.net/ConTeXt_Standalone,namely:

mkdir -p context/beta
cd context/beta
wget http://minimals.contextgarden.net/setup/first-setup.sh
sh ./first-setup.sh --modules=all

The installer runs for a while then stop with error:

---
loading : ConTeXt Core Macros / Bars

lua error   > lua error on line 74 in file 
/usr/local/context/beta/tex/texmf-context/tex/context/base/mkiv/node-rul.mkiv:

...eta/tex/texmf-context/tex/context/base/mkiv/node-rul.lua:369: table index is 
nil
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-rul.lua:369: in 
function 'code'
...eta/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:84: in 
function 'loadedluacode'
...eta/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:104: in 
function 'luafilechunk'
...eta/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:45: in 
function 'registercode'
[ctxlua]:1: in main chunk

64 %D to deal with local settings at the \TEX\ end and remembering 
parameters
65 %D at the \LUA\ end. We might do things differently now, but as settings 
normally
66 %D don't change that often, we're not in a hurry to do that now. The 
problem at
67 %D the \LUA\ end is that we don't know when to clean up.
68
69 \unprotect
70
71 %definesystemattribute[ruled]
72 %definesystemattribute[shifted]
73
74 >>  \registerctxluafile{node-rul}{1.001}
75
76 \installcorenamespace{bar}
77 \installcorenamespace{barindex}
78 \installcorenamespace{barattribute}
79 \installcorenamespace{barstack}
80
81 \installcommandhandler \??bar {bar} \??bar
82
83 \newtoks\t_node_rules_checklist
84


?  
-

How should I solve this? 

I installed standalone context several times previously and never had problem.

Thanks in advance,

bcsikos

___
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] guiding line in tabulate

2016-06-06 Thread Csikos Bela
Dear context users:

I would like to make a document with a table where guiding lines are located 
between table items, like this:

text in cell . . . . . . . . . . . .  text in next cell
text . . . . . . . . . . . . . . . . . next cell

Here is a MWE:

\starttext
\starttabulate[|lw(8cm)|cg{.}w(2cm)|]
\NC sample text in row \NC 4.25 \NC \NR
\NC another sample \NC 1200 \NC \NR
\NC last   \NC 46.345 \NC \NR
\stoptabulate
\stoptext

Is it possible to add the guiding dots between cell items?

Thanks is advance,

bcsikos
___
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] grid and heading distance

2016-05-11 Thread Csikos Bela
Hello context users:

I would like to use grid layout in my document. It works well but the distance 
between headings (section, subsection etc) and the following normal text 
becomes too big. How can I decrease this distance to normal, similar to 
non-grid layout? Here is an example:

\usemodule[ipsum]
\defineipsum[he][file=lipsum.txt,alternative=lines,n=1]
\defineipsum[pa][file=lipsum.txt,alternative=paragraph,n=3]
\defineipsum[pb][file=lipsum.txt,alternative=paragraph,n=4]

\setuplayout[grid=yes]
\setupinterlinespace[4.2ex]

\starttext

\chapter{\ipsum[he]}

\ipsum[pa]

\section{\ipsum[he]}

\ipsum[pb]

\subsection{\ipsum[he]}

\ipsum[pb]

\section{\ipsum[he]}

\ipsum[pb]

\section{\ipsum[he]}

\ipsum[pb]

\section{\ipsum[he]}

\ipsum[pb]

\stoptext

I attach lipsum.txt file. If I compile the document without grid layout the 
distance between heading and text is correct, but with grid layout it is too 
much, it could be one or two "line-heights" less.

I use ConTeXt  ver: 2016.05.10 23:43 MKIV beta  fmt: 2016.5.11  int: 
english/english.

Thanks in advance,

bcsikos

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris faucibus felis 
magna. Phasellus pharetra lorem neque, a viverra mauris volutpat vel. Quisque 
vitae velit eu ipsum euismod faucibus. Quisque lorem massa, consectetur nec 
odio non, tempor fringilla nibh. Donec tempus enim non diam suscipit, ac tempus 
ligula vulputate. Cras aliquam maximus lorem, ullamcorper consequat odio 
vestibulum nec. Fusce varius velit diam, nec suscipit risus rutrum sit amet. 
Integer eu erat in ligula consequat efficitur ac non est. In eget urna massa. 
Nam dignissim augue justo, vel interdum elit varius a.

Duis venenatis aliquam lorem, quis pellentesque neque ultricies vel. Aenean 
rutrum sem a augue faucibus, sed lobortis sem tincidunt. Nunc non metus 
ultricies, semper turpis eu, volutpat arcu. Duis dignissim odio sed lacus 
vulputate, eget pulvinar arcu consectetur. Nunc molestie neque felis, consequat 
porta libero venenatis vel. Duis pharetra leo at lorem ornare, vitae vehicula 
ipsum vestibulum. Mauris aliquam tristique velit. Nunc vitae porttitor urna. 
Nunc facilisis ultricies neque, quis rutrum justo efficitur a. Sed et libero at 
tortor congue volutpat vel quis purus.

Pellentesque commodo tincidunt dolor ac viverra. Etiam non augue in lectus 
mollis volutpat. Nullam ut nisl velit. Duis non sem ac lorem vehicula 
imperdiet. Donec eu dolor quis lectus commodo venenatis eu nec nulla. Quisque 
euismod euismod lacus nec faucibus. Vivamus vel ante condimentum, malesuada 
massa a, placerat tellus. Curabitur dictum vitae urna non dictum. Donec tempus 
ante ut lacinia mattis. Integer mattis turpis ut aliquam eleifend. Vivamus 
pulvinar sed enim eu rutrum. Proin a libero lacus. Vivamus tempus risus 
imperdiet, rhoncus urna non, sollicitudin elit. Nullam tempus nisl nec enim 
vulputate pulvinar.

Donec elementum, neque quis maximus porta, sem urna luctus risus, nec 
consectetur sapien enim non arcu. Duis quis varius lorem. Pellentesque id 
egestas nunc, at egestas neque. Pellentesque habitant morbi tristique senectus 
et netus et malesuada fames ac turpis egestas. Curabitur sit amet tellus vel 
urna efficitur maximus. Donec aliquam efficitur mauris, ac efficitur massa 
lacinia nec. Vestibulum blandit massa eget sapien cursus, tincidunt tristique 
diam aliquet. Aliquam ac nisi lorem. Fusce elementum, mi nec congue pulvinar, 
risus arcu vestibulum ligula, id pharetra sem ex mattis erat. In tincidunt, 
tellus vel interdum tincidunt, diam lectus commodo ante, sit amet tristique 
nulla mi ut tortor.

Proin mauris neque, dapibus id pretium quis, malesuada sit amet arcu. Morbi 
sagittis purus dui, quis auctor urna ornare viverra. Curabitur blandit nisl 
quis rhoncus pharetra. In maximus dignissim venenatis. Maecenas mollis libero 
sit amet quam viverra, viverra cursus erat egestas. Proin convallis interdum 
ipsum in vehicula. Aliquam tempus velit nec ullamcorper laoreet. Nunc vitae 
urna at diam iaculis malesuada id vitae elit. Nulla faucibus lacus vel libero 
venenatis vulputate.

Morbi in enim nec ante hendrerit commodo eget id lectus. Donec id felis eget 
tellus varius pellentesque. Nunc at viverra purus. Quisque magna libero, 
aliquet sit amet faucibus eget, pulvinar in nibh. Quisque fringilla tincidunt 
efficitur. Nulla tincidunt purus sit amet volutpat varius. Class aptent taciti 
sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. 
Praesent a efficitur eros, ac consequat erat. Morbi suscipit dolor id sem 
elementum cursus. Vivamus tellus sapien, pharetra vel malesuada quis, tempor at 
lorem. Nunc maximus interdum arcu, id placerat leo imperdiet sit amet. 
Vestibulum scelerisque diam tincidunt ante pulvinar, ut interdum risus egestas.

Etiam neque lectus, pulvinar quis elit rutrum, blandit sollicitudin dolor. 
Nullam vitae mollis odio. Cras pharetra facilisis dolor, et lacinia velit 
ornare vel. Integer nec sem tristique, blandit 

Re: [NTG-context] Wiki maintenance

2015-09-11 Thread Csikos Bela
Taco Hoekwater írta:
>Hi all,
>
>Today I copied the ConTeXt wiki to a new server, in preparation for 
>the decommissioning the current old server, which should happen within
>a week or so.

Not exactly related but I wanted to ask it for a while:
Is it possible (or supported) to make local copies of the wiki pages for 
offline use?

Thanks,

bcsikos

___
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] running MkI in context standalone

2015-05-18 Thread Csikos Bela
Hans Hagen írta:
On 5/15/2015 11:22 AM, Csikos Bela wrote:
 Hello list members:

 I have context standalone installed on linux. Currently I use context like:

 open a terminal window
 source context-installation-path/tex/setuptex
 context filename.tex

 This runs contect MkIV according to log file.
 I would like to try MkII, but I didn't find information on how
 I can switch to it. (I searched for it in ConTeXt reference manual,
 ConTeXt / An excursion, contextgarden wiki pages.)

 What is the way to run MkII in standalone context? A link to the
 documentation regarding it also would be appreciated.

texexec foo.tex

(you need to install ruby for the runner)

Thank you.

bcsikos
___
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] running MkI in context standalone

2015-05-15 Thread Csikos Bela
Hello list members:

I have context standalone installed on linux. Currently I use context like:

open a terminal window
source context-installation-path/tex/setuptex
context filename.tex

This runs contect MkIV according to log file.
I would like to try MkII, but I didn't find information on how
I can switch to it. (I searched for it in ConTeXt reference manual,
ConTeXt / An excursion, contextgarden wiki pages.)

What is the way to run MkII in standalone context? A link to the
documentation regarding it also would be appreciated.

Thanks,

bcsikos
___
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] \placeongrid command

2015-05-14 Thread Csikos Bela
Hello list members:

Based on co-pagedesign.pdf document I'm experimenting with grids.

I followed the examples mentioned on page 9-10 (Section 1.5) and used the code 
below:

%begin code
\setuplayout[grid=yes]
\showgrid

\starttext

This is a line.

This is another line in another paragraph.

Third line, new paragraph again.

\placeongrid{\framed{This is a framed line placed on grid, default setup.}}

Some text.

\placeongrid[bottom]{\framed{This is a framed line placed on grid bottom.}}

Some text.

\placeongrid[top]{\framed{This is a framed line placed on grid top.}}

Some text.

\placeongrid[both]{\framed{This is a framed line placed on grid both.}}

Some text.

\stoptext
%end code

All \placeongrid commands with different options give the same output.
See the attached pdf file.
What do I do wrong?

I have context ConTeXt
ver: 2014.01.03 00:40 MKIV current fmt: 2015.4.1 int: english/english

I have another question related to grids. When grids are shown in the pdf
file (as a result of \showgrid), Adobe Reader 9.5 (linux version) always gives
the following error message when opening the file:

An error exists on this page. Acrobat may not display the page correctly. 
Please
contact the person who created the PDF document to correct the problem.

Despite of the message the file is shown correctly.

Why is this message shown?

Thanks,

bcsikos

placeongrid.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] external figure sizing

2015-05-11 Thread Csikos Bela
Peter Münster írta:
On Sat, May 09 2015, Csikos Bela wrote:

 \placefigure, \externalfigure and combinations. The images should be scaled 
 to the
 same size, eg to .25\textwith and .3\textheight so that the  aspect ratios 
 of the images
 are kept and the appropriate value is used for width or height.

What is the appropriate value?

The calculated value which pairs with  or = to the other calculated value.
For example if  the height calculated for .25\textwidth is less than 
.3\textheight
then .25\textwidth else .3\textheight should be used for calculating the size of
the image.


 That is the smaller value from .25\textwith and .3\textheight is used
 for the image size.

The smaller value from .25\textwith and .3\textheight does only depend
on the layout, but not on the image.

Of course, but the layout determines how the images has to be scaled.

This is perhaps, what you need:  maxwidth=..., maxheight=...

Exactly, this is what I need. 

Thanks,

bcsikos
___
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] external figure sizing

2015-05-09 Thread Csikos Bela
Hello list members:

I would like to make a photo montage (4x3 images on one page) using
\placefigure, \externalfigure and combinations. The images should be scaled to 
the
same size, eg to .25\textwith and .3\textheight so that the  aspect ratios of 
the images
are kept and the appropriate value is used for width or height. That is the 
smaller value
from .25\textwith and .3\textheight is used for the image size.

Using only \useexternalfigure[Fig1][1.jpg][width=.25\textwidth] may not give 
the correct
result if the image requires size adjustment by height and vice versa. Defining 
both
width and height results in exact resizing and the aspect ratio is not 
maintained.

How can this be solved?

Thanks,

bcsikos

___
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: printing just Single Author et al.

2015-05-07 Thread Csikos Bela
Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,

It's not clear what you want exactly. That is, how many rules do you want 
regarding
number of authors?

I don't know how ConTeXt handes author numbers. But in normal bibtex this is 
generally
implemented as max authors and min authors (naturally it depends on the bst 
file you use).
If the total number of authors is less than or equal to max authors, all author 
names are listed.
If total number of authors is more than max authors, min authors are listed 
followed by et al.
By adjusting the bst file you can change every single details.

An example: if you set max number to 7 and min number to 3, then in case of 7 
or less
authors all are listed, in case of 8 or more the first 3 are listed followed by 
et al.

Would these two rules fit your requirements? Or do you want a third rule (in 
additon to the
above rules) for very high number of authors, when only the very first author 
is listed?

In this case you have to edit the bst file as well. What makes it harder 
ConTeXt has special bst files and you have to edit those bst files.

If you have only a few article like this, the easiest solution might be to edit 
the bib file, and change the author field to what you want in the output.

This is a real shortcoming of ConTeXt bibliography generating mechanism. To 
customize
it you have to be able to edit bst files and be very familiar with ConTeXt 
bibliography
generating module, and TeX programming might be required too.

(MkIV, experimental reimplementation.)

I dont't know about this, what I wrote above applies to normal MkIV (and I 
guess to MkII
too). I have no idea if this experimental reimplementation uses other 
bibliographics
mechanism.

bcsikos
___
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: printing just Single Author et al.

2015-05-07 Thread Csikos Bela
Mojca Miklavec írta:
On Thu, May 7, 2015 at 2:29 PM, Csikos Bela wrote:
 Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,

 It's not clear what you want exactly. That is, how many rules do you want 
 regarding
 number of authors?

 I don't know how ConTeXt handes author numbers. But in normal bibtex this is 
 generally
 implemented as max authors and min authors (naturally it depends on the bst 
 file you use).
 If the total number of authors is less than or equal to max authors, all 
 author names are listed.
 If total number of authors is more than max authors, min authors are listed 
 followed by et al.
 By adjusting the bst file you can change every single details.

 An example: if you set max number to 7 and min number to 3, then in case of 
 7 or less
 authors all are listed, in case of 8 or more the first 3 are listed followed 
 by et al.

 Would these two rules fit your requirements? Or do you want a third rule (in 
 additon to the
 above rules) for very high number of authors, when only the very first 
 author is listed?

Oh, interesting. I wasn't aware of that rule. I thought that in case
of more than n authors, the first n would be printed.

I was thinking of a rule if I specify something special on this
particular entry, then print one author et al. (without me having to
bother to actually try to include all the hundred names if I know in
advance that none of them would be printed anyway), but a rule like
if more than N, then print just one would most probably work for me.

How does one set that lower number?

See my other answer too.
You set authoretallimit=6 % Up to six authors all author are listed
You might need to set artauthoretallimit=6 too.
You set authoretaldisplay=1 % if there are more tnan 6 authors only one is 
listed
You might need to set artauthoretaldisplay=1.

 In this case you have to edit the bst file as well. What makes it harder 
 ConTeXt has special bst files and you have to edit those bst files.

 If you have only a few article like this, the easiest solution might be to 
 edit the bib file, and change the author field to what you want in the 
 output.

 This is a real shortcoming of ConTeXt bibliography generating mechanism. To 
 customize
 it you have to be able to edit bst files and be very familiar with ConTeXt 
 bibliography
 generating module, and TeX programming might be required too.

No, configuration of bibliographies in ConTeXt does not (and should
not) require knowledge of bst files. I always managed to get around
with some relatively straightforward settings and commands.

If you want to remove dots after the initials or remove the space between 
initials you have to. If you want to modify what is inserted into the bbl file 
you have to.

bcsikos
___
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: printing just Single Author et al.

2015-05-07 Thread Csikos Bela
Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,
?

(MkIV, experimental reimplementation.)

I checked the bibmod-doc manual. According to it the author numbers can be set 
by
authoretallimit, editoretallimit, artauthoretallimit, authoretaldisplay, 
editoretaldisplay,
artauthoretaldisplay. Don't they work for you? It works for me if I change them 
in
the corresponding bibl-style.tex file. In the document alternative=style as:

\setuppublications[alternative=style]

bcsikos


___
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] preventing hyphenation in headings

2015-05-05 Thread Csikos Bela
Hello list members:

I would like to disable hyphenation in headings (chapter, section, etc. titles)
while allow it in body text. Is there a setting for this? Or do I have to adjust
all the headings manually by inserting line breaks?

Thanks,

bcsikos

___
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] preventing hyphenation in headings

2015-05-05 Thread Csikos Bela
Hans Hagen írta:
On 5/5/2015 2:42 PM, Csikos Bela wrote:
 Hello list members:

 I would like to disable hyphenation in headings (chapter, section, etc. 
 titles)
 while allow it in body text. Is there a setting for this? Or do I have to 
 adjust
 all the headings manually by inserting line breaks?

... align={flushleft,nothyphenated},...

Excellent.
Thank you,

bcsikos
___
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] minimum number of dots in lists (TOC, LOF)

2015-05-05 Thread Csikos Bela
Hello list members:

I have set up a document showing the table of contents with dots between
section titles and page numbers. 
(\setupcombinedlist[content][level=3,alternative=c])
Some of the titles are longer and between the title and page number only
one dot is inserted, which is not nice. Can it be controlled what is the minimum
number of inserted dots (e.g. 3)  or what is the minimum width of the distance
where dots can be inserted? If the distance is less, empty space should be
inserted instead. Is this possible?

Thanks,
___
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] alternative numerical \cite command

2015-05-05 Thread Csikos Bela
Alan BRASLAU írta:
On Tue, 5 May 2015 12:52:41 +0200
Csikos Bela wrote:

 Thanks. But there's no any indication in the log file of using mkII,
 unless mkiv uses the same code. All \cite[alternative][key] variants
 work for me except the \cite[textnum][key] variant. See the attached
 example tex file with its pdf output and log file.

\setupbibtex and \setuppublications pull-in the MKII code.


I am puzzled a little bit. I also tried to use 
\setuppublicationlist[pagenumber=yes],
which had no effect on the output. I found related to this the followings:

http://tex.stackexchange.com/questions/94023/context-how-to-set-up-interaction-mode-to-emulate-hyperref

http://www.ntg.nl/pipermail/ntg-context/2011/061528.html

Based on these, in my understanding the bug affects mkiv and mkii should work.
So, if I use mkii code (pulled by \setuppublications), why pagenumber=yes
doesn't work for me? Or it doesn't work in mkii either?

Thanks,

bcsikos

___
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] alternative numerical \cite command

2015-05-05 Thread Csikos Bela
Alan BRASLAU írta:
On Mon, 4 May 2015 17:54:31 +0200
Csikos Bela wrote:

 I could set up superscript citation for numerical citation based on
 contextgarden bibliography page example.

A MKII hack...

 Let me understand, though.
 Do you want to mix\high{1} citations with [1] citations?
 That would be rather strange, stylistically.  
 
 Yes, but in tables I don't want to put superscript citations.

OK, thanks for explaining this use.

 
 There is a predefined second num cite variant \cite[textnum][tag].
 It's use is intended to produce something like ref. 1, to be used
 syntactically in a sentence, in conjunction with standard num
 references. [1] This is just num setup with
 [left={ref.\nbsp},right=].  
 
 I guess this command would fit my needs after some editing.
 Unfortunately my context version doesn't have this command.
 
 Using \cite[textnum][tag] simply outputs [tag].
 
 Either I should update my context to newer (beta?), which I don't
 know how to do, or define the command in the document. I'd prefer the
 latter one, if feasible.

You are using the MKII code. It takes the syntax
\cite[alternative]{key} which is very intolerant of spacing
and the newer module has abandoned this LaTeX style in favor of
\cite[key] and \cite[alternative][key]

I recommend that you stick with the MKII module/code for now as we have
not yet entirely stabilized the new dataset code.

Thanks. But there's no any indication in the log file of using mkII, unless 
mkiv uses the same code. All \cite[alternative][key] variants work for me 
except the \cite[textnum][key]
variant. See the attached example tex file with its pdf output and log file.

My question still is how I could define an alternative \cite command for 
numerical citations,
e.g. \cite[textnum].

Thanks,

bcsikos


cite.tex
Description: TeX document


cite.pdf
Description: Adobe PDF document


cite.log
Description: Binary data
___
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] alternative numerical \cite command

2015-05-04 Thread Csikos Bela
Hello list members:

For inserting citations ConTeXt offers several \cite command alternatives.
If I understand correctly citations can be inserted like:

\cite[key], when the document's default cite type is used, or:

\cite[authoryear][key], \cite[author][key] etc., where the citation style is 
set by the first option.

These citation styles are predefined in context.

What I would like to do is inserting alternative numerical citations:
normal superscript citations, like this^1, and occasionally inline citations in 
brackets,
like this one [2]. How could I define alternative numerical citation style, e.g.
\cite[inum][key] on the analogy of author, authoryear etc. styles?

Thanks,

bcsikos
___
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] alternative numerical \cite command

2015-05-04 Thread Csikos Bela
Alan BRASLAU írta:
On Mon, 4 May 2015 15:10:06 +0200
Csikos Bela wrote:

 These citation styles are predefined in context.
 
 What I would like to do is inserting alternative numerical citations:
 normal superscript citations, like this^1, and occasionally inline
 citations in brackets, like this one [2]. How could I define
 alternative numerical citation style, e.g. \cite[inum][key] on the
 analogy of author, authoryear etc. styles?

mkiv-bibliographies (not the mkii publications module).

The citation styles can be tuned through parameters, i.e.

\setupbtx
  [cite:numbering:num]
  [left=,
   right=,
   command={\high}]

but in the latest beta, this way of switching to superscript citations
is currently broken, I noticed, (and will be fixed).

My context version is:
ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.4.1  int: english/english

I could set up superscript citation for numerical citation based on 
contextgarden
bibliography page example.

Let me understand, though.
Do you want to mix\high{1} citations with [1] citations?
That would be rather strange, stylistically.

Yes, but in tables I don't want to put superscript citations.

There is a predefined second num cite variant \cite[textnum][tag]. It's
use is intended to produce something like ref. 1, to be used
syntactically in a sentence, in conjunction with standard num
references. [1] This is just num setup with [left={ref.\nbsp},right=].

I guess this command would fit my needs after some editing.
Unfortunately my context version doesn't have this command.

Using \cite[textnum][tag] simply outputs [tag].

Either I should update my context to newer (beta?), which I don't know how to 
do,
or define the command in the document. I'd prefer the latter one, if feasible.

Thanks,

bcsikos
___
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] right align (flushright) bibliography list labels

2015-04-29 Thread Csikos Bela
Hello list members:

I would like to align the labels (numbers) of the bibliography list to the 
right to look like this:

...1
...2
..
..11
..
.121.

I tried to use the numbercommand=  like this:

% start code
\def\numcom#1{\startalignment[flushright] #1.\stopalignment}

\setupbibtex[database={bibfile}]

\setuppublications[alternative=apa,refcommand=num,sorttype=cite,numbering=yes,autohang=no,numbercommand=\numcom]

\starttext

\completepublications[criterium=all]

\stoptext
% end code

But this has no effect on label alignment.

I also tried,  based on this post, 
http://www.ntg.nl/pipermail/ntg-context/2015/080696.html, this code:

% start code
\setupbibtex[database={bibfile}]

\setuppublications[alternative=apa,refcommand=num,sorttype=cite,numbering=yes,autohang=no,numbercommand=\numcom]

\setupbtxlist[align={flushright}]

\starttext

\completepublications[criterium=all]

\stoptext
% end code

In this case compilation stopped with error, it choked on \setupbtxlist 
(Undefined control sequence).

How could I solve this?

Thanks,

bcsikos


___
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] setupheads separator and stopper

2015-04-24 Thread Csikos Bela
Wolfgang Schuster  írta:

 Am 23.04.2015 um 16:34 schrieb Csikos Bela:
 
 Hello list members:
 
 contextgarden wiki site http://wiki.contextgarden.net/Command/setupheads says
 that the \setupheads command has been reported non-working for some people.
 
 For me the alternative=inmargin/normal options work, but the separator= and
 stopper= options have no effect. I would like my chapter, section etc 
 numbers to
 have a dot after them, eg 1. 1.1. etc. How could I achieve this? Just in 
 curiousity,
 how can I change the separator?

\setuphead
  [sectionstarter=(,
   sectionstopper=)]

%\setupreferencestructureprefix[default][prefixstarter={\symbol[none]},prefixstopper={\symbol[none]}]

\starttext

\chapter[sec:chapter]{Chapter}

\section[sec:section]{Section}

\subsection[sec:subsection]{Subsection}

Reference to chapter \in[sec:chapter] and section \in[sec:section].

\stoptext

Thank you. This works for me. 

Just two questions:

1. The section part of the words sectionstarter and sectionstopper above is 
just
a general term for any heading type and does not correspond to the heading type.
Is this correct? (That is, there are no chapterstarter=, subsectionstarter= 
etc. options).

2. The command you commented, \setupreferencestructureprefix, what does it 
supposed to do? It did not do anything for me, eg:
\setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]


Based on the above I used this code tho achieve the required look:

%%%
\setuphead[sectionstopper=.]

\starttext

\chapter{Chapter}

\section{Section}

\subsection{Subsection}

\stoptext
%%%

I found that \setupheads[sectionstopper=.] (plural) has the same effect.
I guess \setupheads is the general setup for all types of headings, and
\setupheads[heading-type][options] for the given heading-type.
But if in the latter command I don't specify heading-type it will apply
to all heading-types. Is this correct? 

By experimenting further I also found that:

\setuphead[section][] will apply to section, subsection and subsubsection but
not to chapter. 

\setuphead[chapter][] will apply to chapter only, and not to any ...section.

Thank you,

bcsikos


___
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] setupheads separator and stopper

2015-04-24 Thread Csikos Bela
Wolfgang Schuste írta:

 Am 24.04.2015 um 14:07 schrieb Csikos Bela:
 
 Wolfgang Schuster írta:
 
 1. The section part of the words sectionstarter and sectionstopper above 
 is just
 a general term for any heading type and does not correspond to the heading 
 type.
 Is this correct? (That is, there are no chapterstarter=, 
 subsectionstarter= etc. options).
 
 No, it’s part of the key name and you have to use „sectionstopper” also for 
 \part, \chapter etc.
 
 I see.
 
 2. The command you commented, \setupreferencestructureprefix, what does it 
 supposed to do? It did not do anything for me, eg:
 \setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]
 
 It comes the starter and stopper from the reference number in the text, 
 compare the result from
 \in with and without the \setupreferencestructureprefix setting.
 
 I compared the output of \in with commented and non-commented
 \setupreferencestructureprefix line. It does not make any difference, the two
 outputs are the same.

Without the the \setupreferencestructureprefix line you get

Reference to chapter (1) and section (1.1).

Yes.

and with the line

Reference to chapter 1 and section 1.1.

No. I get the very same output as without the  \setupreferencestructureprefix 
line.

I attach the pdf outputs. My context version is:

ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.4.1  int: english/english

 I also tried to change the separator to dash but I couldn't.
 I tried with \setuphead[separator=-] and with \setuphead[sectionseparator=-]
 but they didn't work. How can I change that?


You have to create a list of the separators with \defineseparatorset which can
then be applied with the sectionseparatorset key.

\defineseparatorset[mysectionseparator][x,y,z][?]

\setuphead[sectionseparatorset=mysectionseparator]

\setuphead[part]   [placehead=yes,page=no]
\setuphead[chapter][page=no]

\starttext

\part{Part}

\chapter{Chapter}

\section{Section}

\subsection{Subsection}

\subsubsection{Subsubsection}

\subsubsubsection{Subsubsubsection}

\stoptext

This works nicely. Thanks,

bcsikos

commented.pdf
Description: Adobe PDF document


non-commented.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] setupheads separator and stopper

2015-04-24 Thread Csikos Bela
Wolfgang Schuster írta:

 1. The section part of the words sectionstarter and sectionstopper above 
 is just
 a general term for any heading type and does not correspond to the heading 
 type.
 Is this correct? (That is, there are no chapterstarter=, subsectionstarter= 
 etc. options).

No, it’s part of the key name and you have to use „sectionstopper” also for 
\part, \chapter etc.

I see.

 2. The command you commented, \setupreferencestructureprefix, what does it 
 supposed to do? It did not do anything for me, eg:
 \setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]

It comes the starter and stopper from the reference number in the text, 
compare the result from
\in with and without the \setupreferencestructureprefix setting.

I compared the output of \in with commented and non-commented
\setupreferencestructureprefix line. It does not make any difference, the two
outputs are the same.

\setupheads is only a synonym for \setuphead.

OK. I also tried to change the separator to dash but I couldn't.
I tried with \setuphead[separator=-] and with \setuphead[sectionseparator=-]
but they didn't work. How can I change that?

Thank you again,

bcsikos

___
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] setupheads separator and stopper

2015-04-23 Thread Csikos Bela
Hello list members:

contextgarden wiki site http://wiki.contextgarden.net/Command/setupheads says
that the \setupheads command has been reported non-working for some people.

For me the alternative=inmargin/normal options work, but the separator= and
stopper= options have no effect. I would like my chapter, section etc numbers to
have a dot after them, eg 1. 1.1. etc. How could I achieve this? Just in 
curiousity,
how can I change the separator?

Thanks in advance,

bcsikos

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

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

Re: [NTG-context] how to insert symbols into document?

2015-04-23 Thread Csikos Bela
Wolfgang Schuster írta:

 Am 18.04.2015 um 13:21 schrieb Csikos Bela:
 
 When you need characters like the mentioned losenge you should better look 
 for a font
 which contains it and create a new typeface for it or set a fallback font 
 which add the
 characters to the main font of your document.
 
 Before answering I wanted to find out how to make this fallback: Using a 
 given font
 and fall back to only one (or a few) specific characters in another font. 
 For example
 using Tex Gyre Pagella and fall back to Dejavu's black diamond, but not to 
 any other
 characters.
 
 To learn how to do this, in the last few days I read most of (if not all) 
 the related pages on
 the wiki site, and browsed the indicated pdf documents too. Unfortunately I 
 find the wiki
 pages confusing, and I couldn't find out how to solve the problem yet, but I 
 did not want
 to wait longer with the answer. I will study further the docs.

\definefallbackfamily [documentfont] [rm] [DejaVu Serif] [range=0x25C6]
\definefontfamily [documentfont] [rm] [TeX Gyre Pagella]
\definefontfamily [documentfont] [tt] [Latin Modern Mono] [features=none]
\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[documentfont]

% \setupsymbolset[text]
%
% Using the predefined symbol for blackdiamond doesn’t work
% because context tests if the symbol exists in the text font
% before it displays it but we take it from the fallback font
% and therefore nothing is shown. To avoid this you can define
% your own symbol or just put the character in your document
% without the \symbol command.

\definesymbol[blackdiamond][◆]

\starttext

direct input: ◆

\type{\symbol[blacktriangle]}: \symbol[blackdiamond]

\stoptext

Thank you very much. Both approaches work on my system.

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

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

Re: [NTG-context] how to insert symbols into document?

2015-04-18 Thread Csikos Bela
Wolfgang Schuster írta:

 Am 13.04.2015 um 01:29 schrieb Csikos Bela:

LONG CUT - See previous messages

Otared, Wolfgang:

Thank you for your suggestions.

The symbols in the file symb-imp-mis.mkiv are loaded by default because 
context uses
them for the itemise environment but a few of them have to be enabled before 
you can
use them and even then you need a font which contains them, e.g. DejaVu.

 begin example
\setupbodyfont[dejavu]

\setupsymbolset[text]

\starttext

\starttabulate[|l|c|]
\NC \bf Name  \NC \bf Symbol  \NC\NR
\TB
\NC bullet\NC \symbol [bullet]\NC\NR
\NC dash  \NC \symbol [dash]  \NC\NR
\NC star  \NC \symbol [star]  \NC\NR
\NC triangle  \NC \symbol [triangle]  \NC\NR
\NC circle\NC \symbol [circle]\NC\NR
\NC square\NC \symbol [square]\NC\NR
\NC diamond   \NC \symbol [diamond]   \NC\NR
\TB
\NC blacktriangle \NC \symbol [blacktriangle] \NC\NR
\NC blacksquare   \NC \symbol [blacksquare]   \NC\NR
\NC blackdiamond  \NC \symbol [blackdiamond]  \NC\NR
\TB
\NC 1 \NC \symbol [1] \NC\NR
\NC 2 \NC \symbol [2] \NC\NR
\NC 3 \NC \symbol [3] \NC\NR
\NC 4 \NC \symbol [4] \NC\NR
\NC 5 \NC \symbol [5] \NC\NR
\NC 6 \NC \symbol [6] \NC\NR
\NC 7 \NC \symbol [7] \NC\NR
\NC 8 \NC \symbol [8] \NC\NR
\stoptabulate

\stoptext
 end example

OK, I see that neither the default font nor Tex Gyre Pagella has black diamod 
symbol, therefore it can't be shown. 

When you need characters like the mentioned losenge you should better look for 
a font
which contains it and create a new typeface for it or set a fallback font 
which add the
characters to the main font of your document.

Before answering I wanted to find out how to make this fallback: Using a given 
font
and fall back to only one (or a few) specific characters in another font. For 
example
using Tex Gyre Pagella and fall back to Dejavu's black diamond, but not to any 
other
characters.

To learn how to do this, in the last few days I read most of (if not all) the 
related pages on
the wiki site, and browsed the indicated pdf documents too. Unfortunately I 
find the wiki
pages confusing, and I couldn't find out how to solve the problem yet, but I 
did not want
to wait longer with the answer. I will study further the docs.

Thanks once more for your help,

bcsikos

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

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

Re: [NTG-context] how to insert symbols into document?

2015-04-13 Thread Csikos Bela
Otared Kavian  írta:

 On 13 Apr 2015, at 01:29, Csikos Bela  wrote:
 
 Hello context users:
 
 I would like to insert symbols into my document, especially black-diamond 
 and losenge
 symbols. I read symbols page at contextgarden but still don't know how to do 
 it.
 
 I also tried \showsymbolset[was] etc but the symbols but I did not find 
 these (and many
 other symbols either) in the output pages.
 
 I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I 
 don't know how to
 make it show. Do I have to load specific symbol fonts? If yes how can I find 
 out which font has the given symbols? 
 
 What I tried so far included:
 
 % begin code
 \usesymbols[imp-mis]
 \starttext
 
 ◆
 
 \blackdiamond
 
 \symbol [blackdiamond]
 % end code
 
 None of these show anything.

Hi,

You can use the mathmode to access those characters, as in the following 
example:

\starttext
This is \type{$\blacklozenge$} $\blacklozenge$

This is \type{$\lozenge$} $\lozenge$
\stoptext

Hi,

The above example works.
But if I try it with \blackdiamond, I get error and context stops:

This is the tex file:

% begin code
\starttext
This is \type{$\blackdiamond$} $\blackdiamond$

This is \type{$\diamond$} $\diamond$
\stoptext
% end code

And the compilation:

 context symbols.tex

mtx-context | run 1: luatex 
--fmt=/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=symbols 
--lua=/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --c:currentrun=1 --c:fulljobname=./symbols.tex 
--c:input=./symbols.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195)
 \write18 enabled.
(/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.3.31  int: 
english/english

system   'cont-new.mkiv' loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'symbols', input './symbols', result 'symbols'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/symbols.tex{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts'fallback modern rm 12pt' is loaded
fontstreatment  fixing some wrong widths
! Undefined control sequence

system   tex  error on line 4 in file .../symbols.tex: Undefined 
control sequence ...

1
2
3 \starttext
4   This is \type{$\blackdiamond$} $\blackdiamond$
5
6 This is \type{$\diamond$} $\diamond$
7 \stoptext
8
9


?
backend  xmp  using file 
'/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
))/usr/local/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf

mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path: readable: 
'/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
 | readable+writable: 
'/tmp/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
mkiv lua stats   resource resolver: loadtime 0.019 seconds, 1 scans with 
scantime 0.002 seconds, 5 shared scans, 14 found files, scanned paths: 
/texmf
mkiv lua stats   stored bytecode data: 338 modules (0.450 sec), 69 tables 
(0.010 sec), 407 chunks (0.460 sec)
mkiv lua stats   cleaned up reserved nodes: 42 nodes, 9 lists of 442
mkiv lua stats   node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks: 6 unique task lists, 6 instances 
(re)created, 45 calls
mkiv lua stats   used backend: pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns: en::2, load time: 0.000
mkiv lua stats   jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats   callbacks: 145 direct, 174 indirect, 319 total
mkiv lua stats   result saved in file: symbols.pdf, compresslevel 3, 
objectcompreslevel 3
mkiv lua stats   loaded fonts: 3 files: latinmodern-math.otf, 
lmmono12-regular.otf, lmroman12-regular.otf
mkiv lua stats   fonts load time: 0.653 seconds for 5 fonts, 2 shared in 
backend, 2 common vectors, 0 common hashes
mkiv lua stats   used platform: linux-64, type: unix, binary subtree: 
texmf-linux-64
mkiv lua stats   luatex banner: this is luatex, version beta-0.80.0 (tex live 
2015/dev) (rev 5195)
mkiv lua stats   control sequences: 38352 of 65536

[NTG-context] how to insert symbols into document?

2015-04-12 Thread Csikos Bela
Hello context users:

I would like to insert symbols into my document, especially black-diamond and 
losenge
symbols. I read symbols page at contextgarden but still don't know how to do it.

I also tried \showsymbolset[was] etc but the symbols but I did not find these 
(and many
other symbols either) in the output pages.

I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I don't 
know how to
make it show. Do I have to load specific symbol fonts? If yes how can I find 
out which font has the given symbols? 

What I tried so far included:

% begin code
\usesymbols[imp-mis]
\starttext

◆

\blackdiamond

\symbol [blackdiamond]
% end code

None of these show anything.

Thanks in advance,

bcsikos
___
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] caption setup

2015-04-09 Thread Csikos Bela
Wolfgang Schuster írta:

 Am 09.04.2015 um 00:13 schrieb Csikos Bela:
 
 Hello:
 
 I have to setup caption formatting for Hungarian.
 In Hungarian I have to write #. figure. instead of Figure #:
 The exact word for figure is ábra, so what I want exactly is:
 # ábra., eg 1. ábra.
 How can I do it? (If I set the document language to Hungarian, the
 word ábra is shown correctly but the order is not correct; I get ,. 
 ábra:#.)

Until the labels for hungarian are fixed you can use the \setuplabeltext 
command
to set the right labels.

 Another question: for caption text I want it to be justified and the last 
 line of the caption
 centered. How can I do that?

\useMPlibrary[dum]

\mainlanguage[hu]

\setupcaption[figure][align=last,numberstopper=.]

\setuplabeltext[hu][figure={, ábra}]

\starttext

\startplacefigure[title=\input{ward}]
   \externalfigure[dummy]
\stopplacefigure

\stoptext

Wolfgang

Wolfgang, Otared:

Thank you both for your suggestions. Unfortunately the caption modification 
works only partially. I could not make both the caption labels and the 
references look correct.

When I use Wolfgang's example, I get the following: attachment file 
caption-example-2.pdf.

I also tried different settings for caption label, here is the code:



\starttext

\setupcaption[figure][numberstopper={. ábra.}]
\setuplabeltext[figure={}]

Code:

\verbatim{\setupcaption[figure][numberstopper={. ábra.}]} \par
\verbatim{\setuplabeltext[figure={}]}

Result:

Reference to figure 1 (\in{figure}[figure-1])

\placefigure[][figure-1]{This is the caption}{\framed{Some figure}}

\hairline

\setupcaption[figure][suffix={. ábra},numberstopper={.}]
\setuplabeltext[figure={}]

Code:

\verbatim{\setupcaption[figure][suffix={. ábra},numberstopper={.}]} \par
\verbatim{\setuplabeltext[figure={}]}

Result:

Reference to figure 2 (\in{figure}[figure-2])

\placefigure[][figure-2]{This is the caption}{\framed{Another figure}}

\hairline

The caption should be: ``1. ábra. This is the caption''

The reference should be: ``(1. ábra)'' -- NO period after ``ábra'', without the 
word ``figure''.

\stoptext



I attach the generated pdf output: caption-example.pdf

Unfortunately none of the above code variants gives the correct result.
Despite of the bad wording I don't understand why numberstopper (.)
doesn't appear after suffix (. ábra) in figure 2.

Any way to fix these?

The alignment=last option works. (This option is not mentioned among the 
options at the contextgarden wiki site, 
http://wiki.contextgarden.net/Command/setupcaptions.)

Thanks,

bcsikos


caption-example-2.pdf
Description: Adobe PDF document


caption-example.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] line spacing (\setupinterlinespace) with grid

2015-04-08 Thread Csikos Bela
Pablo Rodriguez írta:
On 04/08/2015 07:12 PM, Csikos Bela wrote:
 [...]
 I think there is setting to change the default line spacing to which the 
 grids are adjusted.
 The question is how?

Add the following line before \setuplayout:

   \setupinterlinespace[line=3em]

This is the standard way to set the default interline space in the document

Yes, it seems this is what I need.
Thanks,

bcsikos
___
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] caption setup

2015-04-08 Thread Csikos Bela
Hello:

I have to setup caption formatting for Hungarian.
In Hungarian I have to write #. figure. instead of Figure #:
The exact word for figure is ábra, so what I want exactly is:
# ábra., eg 1. ábra.
How can I do it? (If I set the document language to Hungarian, the
word ábra is shown correctly but the order is not correct; I get ,. ábra:#.)

Another question: for caption text I want it to be justified and the last line 
of the caption
centered. How can I do that?

Thanks,

bcsikos



___
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] line spacing (\setupinterlinespace) with grid

2015-04-08 Thread Csikos Bela
Hello:

When I set grid layout on (\setuplayout[grid=yes]) \setupinterlinespace has no 
effect.

Here is an example:

\setuplayout[grid=yes] % or grid=no
\starttext
\input tufte \par
\setupinterlinespace[small]
\input tufte \par
\setupinterlinespace[medium]
\input tufte \par
\setupinterlinespace[big]
\input tufte \par
\setupinterlinespace[1]
\input tufte \par
\setupinterlinespace[1.3]
\input tufte \par
\setupinterlinespace[1.5]
\input tufte \par
\setupinterlinespace[2]
\input tufte \par
\setupinterlinespace[3]
\input tufte
\stoptext

I attach the correpsonding pdf outputs (with grid on and off).
My context version according to the log files:

tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.4.1  int: english/english

system   'cont-new.mkiv' loaded

How can I change/set line spacing when grid layout is turned on?

Thanks,

bcsikos

linespacing-with-grid-on.pdf
Description: Adobe PDF document


linespacing-with-grid-off.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] line spacing (\setupinterlinespace) with grid

2015-04-08 Thread Csikos Bela
Pablo Rodriguez írta:
On 04/08/2015 05:54 PM, Csikos Bela wrote:
 Hello:
 
 When I set grid layout on (\setuplayout[grid=yes]) \setupinterlinespace has 
 no effect.

Hi Csikos,

I guess this is intended. \setuplayout[grid=yes] may impose that all
lines have to be exactly over the grid lines.

It is only an educated guess, but type at the top of your document:

\showgrid

The difference (even if you add a \title or a \chapter) may be revealng.

Just in case I’m not wrong :-),

I see what you mean. But in my opinion it should apply only if I want to change
line spacing within the text. But I would like to change the default line 
spacing in my
document. I think the default grid should be set based on the default line 
spacing.
The question here is, I guess, how the grid is set.

I think there is setting to change the default line spacing to which the grids 
are adjusted.
The question is how?

Thanks,

bcsikos
___
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] formal multipage table

2015-04-07 Thread Csikos Bela
Hello:

I would like to place a landscape formal multi-page table in a document.
I try to attach a pdf showing what I would like to achieve.
The example file was made in latex using array, booktabs, lscape, and  
longtable packages.

I read the contextgarden wiki pages on different table packages but according 
to that information none of the available table modules can be used to make 
such table. Is the information up-to-date and accurate? Furthermore, how can I 
insert the table in landscape mode on a portrait page (page numbers should be 
portrait). I need different headers for the first and the following pages, 
different footers for the last and the previous pages, rules width different 
depths for start/end and middle rules.

I experimented with both Tables and TABLE modules but before I go into it more 
I would like to know if it is feasible at all what I want.

This is one of the trials I made:

\defineipsum[tf][alternative=lines,n=2]

\starttext

\setupTABLE[r][first][style=\tf]

\bTABLE[split=repeat,option=stretch,frame=off,bottomframe=on]
\bTABLEhead
\bTR
  \bTH[nc=2]  This is the first page header \eTH
\eTR
\bTR
  \bTH  Column 1 \eTH  
  \bTH  Column 2 \eTH
\eTR
\eTABLEhead

\bTABLEnext
\bTR
  \bTH[nc=2]  This is the page header (not on first page) \eTH
\eTR
\bTR
  \bTH  Column 1 \eTH  
  \bTH  Column 2 \eTH
\eTR
\eTABLEnext

\bTABLEbody
\dorecurse{25}{
\bTR
  \bTC  \ipsum[tf] \eTC
  \bTC   \eTC
\eTR}
\eTABLEbody

\bTABLEfoot[bottomframe=off]
\bTR
  \bTC[nc=2] This is the footer \eTC
\eTR
\eTABLEfoot
\eTABLE

\stoptext

There is no separate footer, I could not get rid of the rule below the footer, 
and I don't understand why the firs header is not in normal typeface instead of 
bold.


Thanks in advance,

bcsikos

formal-multipage-table.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] small space before some characters (: ; ! ?)

2015-04-02 Thread Csikos Bela
Wolfgang Schuster  írta:

 Am 01.04.2015 um 18:46 schrieb Csikos Bela:
 
 Hello:
 
 Hungarian typography requires inserting small spaces before :, ;, ! and ? 
 characters.
 The width of this small space should be equal to that of the period (.). In 
 latex magyarlatex (magyar.ldf) module (part of biblatex) contains 
 definitions to achieve this. How could I set this in context?


You can use the french settings which also requires a small space before these 
characters.

\starttext

Take a look at this; this: this! or this?

\setcharacterspacing[frenchpunctuation]

Take a look at this; this: this! or this?

\stoptext

Thanks!
It is something I'd like to have but the space inserted is too big, it looks 
like a normal interword space. It should be 1/3 or 1/4 interword space or the 
width of the dot (the visible part), but definitely less than a normal space. 
Is it possible to redefine the inserted space width? 

Thanks,

bcsikos
___
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] small space before some characters (: ; ! ?)

2015-04-02 Thread Csikos Bela
Wolfgang Schuster  írta:

 Am 02.04.2015 um 12:05 schrieb Csikos Bela :
 
 Wolfgang Schuster  írta:
 
 Am 01.04.2015 um 18:46 schrieb Csikos Bela:
 
 Hello:
 
 Hungarian typography requires inserting small spaces before :, ;, ! and ? 
 characters.
 The width of this small space should be equal to that of the period (.). 
 In latex magyarlatex (magyar.ldf) module (part of biblatex) contains 
 definitions to achieve this. How could I set this in context?
 
 
 You can use the french settings which also requires a small space before 
 these characters.
 
 \starttext
 
 Take a look at this; this: this! or this?
 
 \setcharacterspacing[frenchpunctuation]
 
 Take a look at this; this: this! or this?
 
 \stoptext
 
 Thanks!
 It is something I'd like to have but the space inserted is too big, it looks 
 like a normal interword space. It should be 1/3 or 1/4 interword space or 
 the width of the dot (the visible part), but definitely less than a normal 
 space. Is it possible to redefine the inserted space width? 

\definecharacterspacing [hungarian]

\setupcharacterspacing [hungarian] [003A] [left=.1,alternative=1] % :
\setupcharacterspacing [hungarian] [003B] [left=.1,alternative=1] % ;
\setupcharacterspacing [hungarian] [003F] [left=.1,alternative=1] % ?
\setupcharacterspacing [hungarian] [0021] [left=.1,alternative=1] % !

\starttext

Take a look at this; this: this! or this?

Take a look at this.; this.: this.! or this.?

\setcharacterspacing[frenchpunctuation]

Take a look at this; this: this! or this?

\setcharacterspacing[hungarian]

Take a look at this; this: this! or this?

\stoptext


Yes, this looks OK.
Thank you a lot!

bcsikos
___
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] slightly offtopic: disabling autoresizing of adobe reader window when opening pdf document

2015-04-02 Thread Csikos Bela
Hello:

This is kind of offtopic, still I post it here since it only occurs when  I 
open some context manuals.

I use Adobe Reader (acroread) 9.5.5 linux version. Frequently, when I open a 
context
related document, eg  NaturalTables.pdf downloaded from contextgarden
(http://dl.contextgarden.net/myway/NaturalTables.pdf), the document triggers 
resizing
of adobe reader main window. This is very annoying, especially if I have 
several other
documents open in separate tabs; all these tabs are resized as well and I have 
to adjust
back the window size manually. I tried different settings in preferences but 
couldn't find a
way to disable this behavior. How could I block autoresizing?

I also googled but could not find any answer to this (though others have the 
same
problem as well, eg https://forums.adobe.com/thread/793230).

I write here since for me only context documents triggers this, so I guess 
context users
know about this more.

Thanks,

bcsikos

___
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 on bibliography generation in context stable

2015-04-01 Thread Csikos Bela
Hello:

I installed a standalone context system on my linux OS by running the install 
script:

sh ./first-setup.sh --modules=all --context=current --engine=luatex

For getting the install script I followed the link given at contextgarden 
install wiki page:
http://wiki.contextgarden.net/ConTeXt_Standalone  % the wiki page
http://minimals.contextgarden.net/setup/first-setup.sh % link to the install 
script

The version of this installed context is:

 context --version

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file: 
/usr/local/context/stable/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2014.01.03 00:40

My questions are related to bibliography production. For setting up 
bibliography I used the manual mentioned and linked at the contextgarden 
Bibliography MkIV wiki page:
http://wiki.contextgarden.net/Bibliography_mkiv % the wiki page
http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf % link to 
the manual dated 2009 March 02

I want a numbered bibliography list for which I use the following setup in the 
document preamble:

\setuppublications[alternative=num,refcommand=num,sorttype=cite,numbering=yes,autohang=yes]

Questions:

1. The above setting results in a numbered bibliography list where the numbers 
are aligned left and don't have period, like (use monotype font to see the 
correct alignment):

1Authors
25  Authors
134 Authors

I would like to make the list item numbers right aligned and having a period, 
like:
  1. Authors
 25. Authors
134. Authors

I also would like to know how I can change the distance between the numbers and 
text (authors).


2. I am confused how to use the autohang, totalnumber and samplesize options.
For exmample I have the following setup:

\setuppublications[alternative=num,refcommand=num,sorttype=cite,numbering=yes,autohang=yes]
\setuppublicationlist[samplesize={MM}]
or
\setuppublicationlist[totalnumber=220]
or
\setuppublicationlist[totalnumber=220,samplesize={MM}]

Whatever setting I use for totalnumber and samplesize, they don't have any 
effect on the output.
The bbl file always has the same in the first line:
\setuppublicationlist[samplesize={PGABMN{\etalchar{+}}02},totalnumber=220]

The only option that makes a difference is autohang on/off.
With autohang=on the 3-digit numbers hang onto the list entry texts (authors) 
and partially overlap them.
With autohang=no they don't overlap but are still too close to the list item 
text.
It seems it behaves the opposite to what is expected.

What is the correct use of these options? It's not explained in the manual.

3. There are 4 bst files in context from which context chooses one for 
generating the list.
How context decides which bst file is used? Is it possible to use a bst file 
with another name?
(Just to make it clear: I don't want to use completely different bst file, only 
to modify one, eg cont-no.bst, save it with a different name and use that file.)

Thanks in advance,

bcsikos

___
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] [***SPAM***] small space before some characters (: ; ! ?)

2015-04-01 Thread Csikos Bela
Hello:

Hungarian typography requires inserting small spaces before :, ;, ! and ? 
characters.
The width of this small space should be equal to that of the period (.). In 
latex magyarlatex (magyar.ldf) module (part of biblatex) contains definitions 
to achieve this. How could I set this in context?

Thanks in advance,

bcsikos

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