Re: [NTG-context] Lua and module gnuplot: Manipulate Gnuplot script with Lua

2011-12-13 Thread Hans Hagen

On 12-12-2011 23:35, Paul Menzel wrote:


 \def\E#1{$10^{#1}$}


\unexpanded\def\E


 \startGNUPLOTscript[name]
 set logscale y
 set format y \\E{%T}
 plot sin(x) t '$\sin(x) [\E{3}]$' # usually something else with
logscale, but just to show the point
 \stopGNUPLOTscript

and if ConTeXt starts parsing this it becomes a pure nightmare.


well, this is how a macro language works ...


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

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


Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Hans Hagen

On 13-12-2011 04:45, Kip Warner wrote:

On Fri, 2011-12-09 at 20:26 +0100, Hans Hagen wrote:

I only see

cont-en.fmt  : format file, sits in the cache and stays there
cont-en.lui  : lua startup stub, idem

handbook.tex : your file, is kept where it is

Hans


Then I am not sure what file it is missing then since all of those files
exist.

$ ls
-s 
/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.fmt
 
/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 Source/Handbook.tex
7868 
/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.fmt

32 
/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
   32 Source/Handbook.tex

Here is the full console output:

$ luatex --file-line-error --interaction=batchmode
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.fmt 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui 
--backend=pdf Source/Handbook.tex
This is LuaTeX, Version beta-0.71.0-202616 (rev 4358)
  \write18 enabled.
This went wrong: cannot open : No such file or directory
system  Handbook.top loaded

fonts  latin modern fonts are not preloaded
languages  language en is active
fonts  preloading latin modern fonts (second stage)
fonts  preloading latin modern fonts (third stage)

Clearly the message is ambiguous since I am not sure which file it is
referring to.


it seems to run anyway

maybe the file-line-error is doing something

Hans


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

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


Re: [NTG-context] pdfselect and context command?

2011-12-13 Thread Verhaag, G.C.H.M.

On 12/12/2011 11:57 AM, Hans Hagen wrote:

On 12-12-2011 11:10, Verhaag, G.C.H.M. wrote:

Hi ConTeXTt User's,

I was looking for the --pdfselect option in the context-command, but it
doesn't seem to be available.

This option is available in texexec to select certain pages from a pdf
file.

Can it also be done in some way using the context-command?


context --extra=select --help





Hi,

I tried to extract the first page of a recently (using ConTeXt ver: 
2011.11.29 23:11 MKIV fmt: 2011.12.5 int: english/english) generated pdf 
file with the following command:


context --select=extras --selection=1:1 myfile.pdf

which gave the following result/error:

! String contains an invalid utf-8 sequence.

system  tex  error on line 9 in file website.pdf: String contains an 
invalid utf-8 sequence ...


1 %PDF-1.6
2 %���
3 19 0 obj
4 
5 /Length 4260
6 /Filter /FlateDecode
7 
8 stream
9  x^�[Ɏ%I^^Q��W�#^^\*;#W 
�D�L!0'^^P\h!N�n�KD���f�U�z���ዹӧ�~'�4�c���/�cM�0N�?�C�}��^^_���4
10 ��㥒 
g�|�_|��v�/�}~��GZ���)=��S^^V�KI�2��,kZ˰���^^_�qM�%1�q\��$?�n׾���e�'p5��U�I��=��wq�~�(�^^O��^^W��g^^[^^U��i|.��/�~���7^^H�W��a���X�,˒!��^^Y^^_��^^G~���m~��yا1���~�U$�2X�}^^]S�}62�ddٱ��^^N۾l.�%�c�*^^[�r�^^Q^^Q̨� 
^^H�`ٸ^���,�d`��M�b�A�k^^^_�kΛ,u�^^^K���6��'Y3^^EOr8~0��^^]�U��^^^��,Ǐߋ��Ǩ��,�E^^L�^^_��Ju05�l)��^^C�ˮ�*�3rg��0�i��d�'v�J�.��Z]���\�?��1�]�{c^^_�fި%��e^^Q�^^T�H�0�b�f}��^^]���}^^S^^_:^^X^^\^^W���c[PPY4�^^[���ERA�^^A9��é�l�(��`^^KX��Y7|�C�ia%X��w��z=
11 
yOU��%��a4�?u^^Y!�̻QC3dϭ~cG�#�^^^�7���o'y��R^^YJY�z�2�!%y���R^^Z�yNE�P�Q�8l���^^WyiNUQ���Z�N�8ựI��V�N��^^X7^^T��[z�þ�E^^\�y��P4��?��v*W}��:^^U^^D�h�$^^TT

12
13 
ri��Y�xQ{#��u�/ڣ��^^R�^^S���^^X^^[�^^[7��-���U^^T/^^Yъ/.���^^V��^^Q�3L^^Ww��2�k8WS^^U�\�M�T���r�2t��r

14 9�X^^QD�N��h�^^V6��0^^G6
15 �a^^^9?�UO�?�#�c6���m�W^^G��2^^O^^[�0^^V�50KqI��^^Y
16 \��ll�=�^^^�� �3\^^V�z�^^[�L��[Y^^^�[ݴb�/rj8a 
^^W��K^^F^^Y^^D�F��y,R﫤]�^^T^^AŻ^^V��ӣf\
17 g�^^D\�m 
�1$�f�g���B���4�^^K}^^Rc�7^^Vх�,�^^WP�#*1^^G^^]U��y�qeq�~r�^^Rc

18 �ƪ!^^Q^^[^^_�
19 
7�^^\2��SO$x^^U[�*}�`^^Y�(���^^O{D5Ý�2��:���^^W]�^^_.F��,8B��^^P�^^^���W�K?�F�^^^M�i^^G^^Lo�o���ᇺݺ^^R(,��'^^Q%^^V�Z=L^^A 
\��8�aٚ���ۘ^^^ +�-�1^^Rt^^Fb��6


l.9 x^
�[Ɏ%I^^Q��W�#^^\*;#W �D�L!0'^^P\h!N�n�KD���f�U�z���ዹӧ�~'�4...

But the file myfile.pdf displays correctly in Acrobat Reader! Any idea 
what I did wrong?


Regards,
Gerard Verhaag
___
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] xml attribute conditional

2011-12-13 Thread Hans Hagen

On 13-12-2011 00:48, Jon Crump wrote:

All,

I have a conditional expression that checks to see if the current node
has any ancestor whose xml:id attribute matches a string

\xmldoifelse{#1}{ancestor::div[@xml:id='apr_engl']}

What I need is a test to see if the current node has any ancestor
whose xml:id attribute _contains_ a substring. Something like this:

\xmldoifelse{#1}{ancestor::div[ @xml:id contains('_engl')]}

trying this:
\xmldoifelse{#1}{ancestor::div[ contains(@xml:id, '_engl')]}

got me this error:
! LuaTeX error local expr = xml.expressions...:3: bad argument
#1 to 'contains' (string expected, got nil)

any suggestions?


is there always an id? if not:

@xml:id and contains(@xml:id,'_engl')

small test file needed

(you can run with \enabletrackers[xml.parse,xml.path] to see how it ends 
up)


Hans


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

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


Re: [NTG-context] headers: numberconversion=something or \definestructureconversionset

2011-12-13 Thread Philipp A.
2011/12/12 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Am 08.12.2011 um 11:21 schrieb Philipp A.

 hi list,

 i want to make an exercise sheet style. exercises are already correctly
 rendered as “*Exercise 1: Text*”, but sub-exercises should simply be
 like “*a)*”.

 what i tried:

 \definestructureconversionset[ex][numbers,characters][numbers]
 \setupheads[numberconversion=ex]


 sectionconversionset=…

 and

 \setuphead[subsection][numberconversion=characters, …]


 sectionconversion=…

 but i have no idea what i’m doing in the first case and even less idea of
 what i’m doing wrong in the second.

 documentation would help in both cases, but contextgarden just has some
 (for me) incomprehensible examples.


 For a list with the correct names of the keys look here (the “conversion”
 in the pdf for \setuphead is wrong but i fixed it in my local version):
 https://bitbucket.org/wolfs/commands/downloads

 Wolfgang


very nice, thanks. i willput it on contextgarden as soon as i figured out
what exactly it does (i.e. how it works together with numbercommand)
___
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] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto

Hello!

I can't understand what I'm doing wrong here:

%

\setuplist[mylist]
  [alternative=c,
width=0mm,
style=\tfx,
criterium=all]

\starttext

\placelist[mylist]

\page[yes]

\input knuth

\writetolist[mylist]{}{Item}

\stoptext
% 

The document compiles fine with version 2011.05.18 22:2, but it fails
miserably with the latest (2011.11.29 23:11)
! Missing number, treated as zero.

system   tex  error on line 11 in file prova.tex: Missing number, 
treated as zero ...

 1 \setuplist[mylist]
 2   [alternative=c,
 3 width=0mm,
 4 style=\tfx,
 5 criterium=all]
 6 
 7 
 8 \starttext
 9 
10 \placelist[mylist]
11   
12 \page[yes]
13 
14 \input knuth
15 
16 \writetolist[mylist]{}{Item}
17 
18 \stoptext

to be read again 
   ,
\doplacestructurelist ...um = #2, number = #3,
   extras = #4, order = #...
\doplacerawlist ...ras }{\listparameter \c!order }
  \stoplistreferences \endgr...
\doplacelist ...ginoflist \doplacerawlist [#1][#2]
  \doendoflist 
\dodoubleemptyonespaced #1#2-#1[{#2}][]
 
to be read again 
   \par 
l.11 
 
? H
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

Thanks in advance.

-- 
Marco

___
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] \placelist and \writetolist

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 11:41 schrieb Marco Pessotto:

 
 Hello!
 
 I can't understand what I'm doing wrong here:
 
 %
 
 \setuplist[mylist]
  [alternative=c,
width=0mm,
style=\tfx,
criterium=all]
 
 \starttext
 
 \placelist[mylist]
 
 \page[yes]
 
 \input knuth
 
 \writetolist[mylist]{}{Item}
 
 \stoptext
 % 
 
 The document compiles fine with version 2011.05.18 22:2, but it fails
 miserably with the latest (2011.11.29 23:11)

Replace \setuplist with \definelist, before you use a list you should create it.

Wolfgang

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

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


[NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks,


having heard nice things about the KOMA script type area I wanted to use
it too and tried out the example in the Wiki [1].

% Set binding correction value (mode=BCOR turns it on).
\doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}}

% Set visible page width.
\newdimen\PageWidth
\PageWidth=\dimexpr(\paperwidth-\bindingcorr)

% Determine the paper aspect ratio.
\edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}}

% Set the textarea width to 2.6 alphabets.
\setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}}
\newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox)

% Set the textarea height proportional to the width.
\newdimen\Height \Height=\dimexpr(\Ratio\Width)

% Set the margin/gutter widths to be equal on a full spread.
\newdimen\Back
\doifmodeelse{oneside}
{\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)}
{\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)}

% Set the top and bottom margins in a 1:2 ratio, ignoring headers.
\edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)}

% Redefine \Height to include header and footer space.
\Height=\dimexpr(\Height + 8\lineheight)

% Set up the page layout using the calculated parameters.
\setuplayout[
 backspace=\the\Back,
 height=\the\Height,
 width=\the\Width,
 header=2\lineheight,
 headerdistance=\lineheight,
 footer=2\lineheight,
 footerdistance=3\lineheight,
 topspace=\Top]

\starttext
\framed[width=\textwidth,height=\textheight]{}
\stoptext

I only want to add a page number to the footer [3] and I do not want to
use any header [2, and ConTeXt manual]. Therefore I set

\setupheader[][state=none]
\setuppagenumbering[alternative=doublesided, location={footer}]
\enablemode[BCOR]

According to the KOMA-Script manual [4] having just a page number in the
footer it should be counted as belonging to the margin. The only way I
found out to achieve that was setting `\footdistance=0`.

Is that the “correct” way to comply with the KOMA-Script type area
recommendation?

Please find the adapted example attached.


Thanks,

Paul


[1] http://wiki.contextgarden.net/KOMA-scrartcl_Type_Area
[2] http://wiki.contextgarden.net/Layout
[3] http://wiki.contextgarden.net/Reference/en/setuppagenumbering
[4] ftp://ftp.dante.de/pub/tex/macros/latex/.../koma-script/scrguide.pdf


koma.pdf
Description: Adobe PDF document
% Set binding correction value (mode=BCOR turns it on).
\doifmodeelse{BCOR}{\def\bindingcorr{5mm}}{\def\bindingcorr{0pt}}

% Set visible page width.
\newdimen\PageWidth
\PageWidth=\dimexpr(\paperwidth-\bindingcorr)

% Determine the paper aspect ratio.
\edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}}

% Set the textarea width to 2.6 alphabets.
\setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}}
\newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox)

% Set the textarea height proportional to the width.
\newdimen\Height \Height=\dimexpr(\Ratio\Width)

% Set the margin/gutter widths to be equal on a full spread.
\newdimen\Back
\doifmodeelse{oneside}
{\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)}
{\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)}

% Set the top and bottom margins in a 1:2 ratio, ignoring headers.
\edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)}

% Redefine \Height to include header and footer space.
\Height=\dimexpr(\Height + 8\lineheight)

% Set up the page layout using the calculated parameters.
\setuplayout[
 backspace=\the\Back,
 height=\the\Height,
 width=\the\Width,
 header=2\lineheight,
 headerdistance=\lineheight,
 footer=2\lineheight,
 footerdistance=0\lineheight,
 topspace=\Top,
 ]

\setupheader[][state=none]

\setuppagenumbering[alternative=doublesided, location={footer}]
\enablemode[BCOR]
\starttext
\framed[width=\textwidth,height=\textheight]{}

\input tufte
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Replace \setuplist with \definelist, before you use a list you should create 
 it.

I knew I was missing something obvious...

Thanks a lot, it works.

Best wishes

-- 
Marco

___
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] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm

For a book of fairy tales, I used (working!):

\def\Initial{\DroppedCaps%
{\color[red]} {Serif} {2.5\baselineskip} {3pt} {2\baselineskip} {3}}

\starttext
\Initial Once upon a time... \input tufte
\stoptext


But that gives now:

to be read again
   \unskip
\\-\ifhmode \unskip
 \prewordbreak \crlfplaceholder \ifcase  
\raggedstatus \h...

\somefontsize -2.5\\
 baselineskip
\lowleveldefinefont ...aledfontsize \somefontsize
  \or \scaledfontsize  
\local...

\dododefinefont ...inefont {#2}\rawfontidentifier
  \csname  
\rawfontidentifier...

\dodefinedfont ...nedfont][#1]\fi \thedefinedfont
  \the  
\everydefinedfont

...
l.7 \Initial O
  nce upon a time... \input tufte


It works, if I use absolute values for font size and vertical offset,  
like


\def\Initial{\DroppedCaps%
{\color[red]} {Serif} {36pt} {3pt} {28pt} {3}}


I also tried \setupinitial / \placeinitial like below; I got my  
defined font, but only ever in base font size.


%\definefontsynonym[Initial][WieynkInitialen]
\setupinitial[font=WieynkInitialen,n=3,state=start,command=\Initial] %

I also tried \NiceDroppedCaps and \LineDroppedCaps that I found in the  
sources, but didn’t get further.



So, what’s the preferred way to get dropped capitals / initials?
I’d like to wikify that, since it seems nowhere documented.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 13:08 schrieb Henning Hraban Ramm:

 For a book of fairy tales, I used (working!):
 
 \def\Initial{\DroppedCaps%
 {\color[red]} {Serif} {2.5\baselineskip} {3pt} {2\baselineskip} {3}}
 
 \starttext
 \Initial Once upon a time... \input tufte
 \stoptext

\setupbodyfont[pagella]

\setupinitial
  [color=red]

\starttext
\placeinitial Once upon a time... \input tufte
\stoptext

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

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


[NTG-context] How to create horizontal line for signature?

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks,


sometimes you need to insert a line for signature. I could not find
anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not
work. I ended up abusing `\framed` [3].

\starttext
\startstandardmakeup[align=right]
Alles rechtens. Everything is fine and nobody cheated.
\blank[medium]
London, den 28.\,June 2011
\blank[3*big]
\framed[width=5cm, frame=off, topframe=on]{\small John Doe}
\stopstandardmakeup
\stoptext

The down side is, that its widths is not perfectly aligned with the
location and date.

I guess there is something simpler to do it. I looked at Wolfgang’s
letter module but could not figure out how it is done there.

Something like the examples posted for LaTeX on Stack Exchange [3] for
ConTeXt would be nice.


Thanks,

Paul


[1] 
http://wiki.contextgarden.net/FAQ#How_can_I_get_a_horizontal_space_with_a_defined_width.2C_so_as_ex._.22.5Chspace.7B3em.7D.22_or_.22.5Chspace.2A.7B3em.7D.22_in_LaTeX.3F
[2] http://wiki.contextgarden.net/Framed
[3] 
http://tex.stackexchange.com/questions/35942/how-to-create-a-signature-date-page


signature.pdf
Description: Adobe PDF document
\starttext
\startstandardmakeup[align=right]
Alles rechtens. Everything is fine and nobody cheated.
\blank[medium]
London, den 28.\,June 2011
\blank[3*big]
\framed[width=5cm, frame=off, topframe=on]{\small John Doe}
\stopstandardmakeup
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] Initials / DroppedCaps

2011-12-13 Thread Hans Hagen

On 13-12-2011 13:08, Henning Hraban Ramm wrote:

For a book of fairy tales, I used (working!):

 ...

So, what’s the preferred way to get dropped capitals / initials?
I’d like to wikify that, since it seems nowhere documented.


Initials have been rewritten (they also no longer pick up an argument 
which is more robust). The old macros will probably be removed (or end 
up in a module).


\setupinitial[font=Bold at 48pt,state=start]

\starttext

\placeinitial \input tufte

\placeinitial \input ward

\stoptext


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

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


Re: [NTG-context] How to create horizontal line for signature?

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 13:36 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 sometimes you need to insert a line for signature. I could not find
 anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not
 work. I ended up abusing `\framed` [3].
 
\starttext
\startstandardmakeup[align=right]
Alles rechtens. Everything is fine and nobody cheated.
\blank[medium]
London, den 28.\,June 2011
\blank[3*big]
\framed[width=5cm, frame=off, topframe=on]{\small John Doe}
\stopstandardmakeup
\stoptext
 
 The down side is, that its widths is not perfectly aligned with the
 location and date.
 
 I guess there is something simpler to do it. I looked at Wolfgang’s
 letter module but could not figure out how it is done there.

The module doesn’t draw a rule for the signature.

 Something like the examples posted for LaTeX on Stack Exchange [3] for
 ConTeXt would be nice.

\startTABLE[frame=off,align=middle]
\NC London, den 28.\,June 2011\NC\NR
\NC[height=1cm]   \NC\NR
\NC[topframe=on,style=smallbodyfont] John Doe \NC\NR
\stopTABLE

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

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


Re: [NTG-context] [solved] How to create horizontal line for signature?

2011-12-13 Thread Paul Menzel
Am Dienstag, den 13.12.2011, 13:49 +0100 schrieb Wolfgang Schuster:
 Am 13.12.2011 um 13:36 schrieb Paul Menzel:

  sometimes you need to insert a line for signature. I could not find
  anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not
  work. I ended up abusing `\framed` [3].
  
 \starttext
 \startstandardmakeup[align=right]
 Alles rechtens. Everything is fine and nobody cheated.
 \blank[medium]
 London, den 28.\,June 2011
 \blank[3*big]
 \framed[width=5cm, frame=off, topframe=on]{\small John Doe}
 \stopstandardmakeup
 \stoptext
  
  The down side is, that its widths is not perfectly aligned with the
  location and date.
  
  I guess there is something simpler to do it. I looked at Wolfgang’s
  letter module but could not figure out how it is done there.
 
 The module doesn’t draw a rule for the signature.

I see. I thought I was just missing something.

  Something like the examples posted for LaTeX on Stack Exchange [3] for
  ConTeXt would be nice.
 
 \startTABLE[frame=off,align=middle]
 \NC London, den 28.\,June 2011\NC\NR
 \NC[height=1cm]   \NC\NR
 \NC[topframe=on,style=smallbodyfont] John Doe \NC\NR
 \stopTABLE

As always thank you so much for the fast answer. I am always a bit
reluctant to use tables for this, thinking of it only as displaying data
with a table. This is from back in the HTML days were tables were used
for formatting. But I guess tables are perfect for aligning things.


Thanks,

Paul


signature.pdf
Description: Adobe PDF document
\starttext
\startTABLE[frame=off,align=middle]
\NC London, den 28.\,June 2011\NC\NR
\NC[height=1cm]   \NC\NR
\NC[topframe=on,style=smallbodyfont] John Doe \NC\NR
\stopTABLE

\blank[5*big]
\CONTEXT\ \contextmark\ \contextversion
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm

Am 2011-12-13 um 13:28 schrieb Wolfgang Schuster:


\setupbodyfont[pagella]

\setupinitial
 [color=red]

\starttext
\placeinitial Once upon a time... \input tufte
\stoptext


Grmbl, I would have sworn that didn’t work before! But it does. Thank  
you!



Am 2011-12-13 um 13:38 schrieb Hans Hagen:

Initials have been rewritten (they also no longer pick up an  
argument which is more robust). The old macros will probably be  
removed (or end up in a module).


\setupinitial[font=Bold at 48pt,state=start]


Ok, but how can I set the font size relative to bodyfontsize/ 
baselineskip?


state=start doesn’t seem necessary, it works without.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Bibliography: `\setupheadtext[de][pubs=Quellen]` does not update the table of contents.

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks,


the following minimal example changes the default text for the title for
the publication list [1]. In the table of content there is still the
default name though.

\mainlanguage[de]
\setupbibtex[database=sample, sort=author]
\setuppublications[alternative=apa, criterium=all] % Show reference 
numbers in the generated list.
\setupheadtext[de][pus=Quellen]

\starttext

\completecontent
\section{Example}
As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program.

\blank[4*big]
\CONTEXT\ \contextmark\ \contextversion

\completepublications
\stoptext

A solution for this problem would be much appreciated.


Thanks,

Paul


[1] 
http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf


pub-and-toc.pdf
Description: Adobe PDF document
\mainlanguage[de]
\setupbibtex[database=sample, sort=author]
\setuppublications[alternative=apa, criterium=all] % Show reference numbers in the generated list.
\setupheadtext[de][pus=Quellen]

\starttext

\completecontent
\section{Example}
As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program.

\blank[4*big]
\CONTEXT\ \contextmark\ \contextversion

\completepublications
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 14:17 schrieb Henning Hraban Ramm:

 Am 2011-12-13 um 13:38 schrieb Hans Hagen:
 
 Initials have been rewritten (they also no longer pick up an argument which 
 is more robust). The old macros will probably be removed (or end up in a 
 module).
 
 \setupinitial[font=Bold at 48pt,state=start]
 
 Ok, but how can I set the font size relative to bodyfontsize/baselineskip?

\setupinitial[font=Bold sa 4]

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

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


Re: [NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Aditya Mahajan
Have you seen http://modules.contextgarden.net/typearea

Aditya

On Dec 13, 2011, at 6:33 AM, Paul Menzel paulepan...@users.sourceforge.net 
wrote:

 Dear ConTeXt folks,
 
 
 having heard nice things about the KOMA script type area I wanted to use
 it too and tried out the example in the Wiki [1].
 
% Set binding correction value (mode=BCOR turns it on).
\doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}}
 
% Set visible page width.
\newdimen\PageWidth
\PageWidth=\dimexpr(\paperwidth-\bindingcorr)
 
% Determine the paper aspect ratio.
\edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}}
 
% Set the textarea width to 2.6 alphabets.
\setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}}
\newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox)
 
% Set the textarea height proportional to the width.
\newdimen\Height \Height=\dimexpr(\Ratio\Width)
 
% Set the margin/gutter widths to be equal on a full spread.
\newdimen\Back
\doifmodeelse{oneside}
{\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)}
{\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)}
 
% Set the top and bottom margins in a 1:2 ratio, ignoring headers.
\edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)}
 
% Redefine \Height to include header and footer space.
\Height=\dimexpr(\Height + 8\lineheight)
 
% Set up the page layout using the calculated parameters.
\setuplayout[
 backspace=\the\Back,
 height=\the\Height,
 width=\the\Width,
 header=2\lineheight,
 headerdistance=\lineheight,
 footer=2\lineheight,
 footerdistance=3\lineheight,
 topspace=\Top]
 
\starttext
\framed[width=\textwidth,height=\textheight]{}
\stoptext
 
 I only want to add a page number to the footer [3] and I do not want to
 use any header [2, and ConTeXt manual]. Therefore I set
 
\setupheader[][state=none]
\setuppagenumbering[alternative=doublesided, location={footer}]
\enablemode[BCOR]
 
 According to the KOMA-Script manual [4] having just a page number in the
 footer it should be counted as belonging to the margin. The only way I
 found out to achieve that was setting `\footdistance=0`.
 
 Is that the “correct” way to comply with the KOMA-Script type area
 recommendation?
 
 Please find the adapted example attached.
 
 
 Thanks,
 
 Paul
 
 
 [1] http://wiki.contextgarden.net/KOMA-scrartcl_Type_Area
 [2] http://wiki.contextgarden.net/Layout
 [3] http://wiki.contextgarden.net/Reference/en/setuppagenumbering
 [4] ftp://ftp.dante.de/pub/tex/macros/latex/.../koma-script/scrguide.pdf
 koma.pdf
 koma.tex
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm

Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster:

Ok, but how can I set the font size relative to bodyfontsize/ 
baselineskip?


\setupinitial[font=Bold sa 4]


Thank you, I feel stupid.
Works for me, but not in the wiki (I can’t get colors there, too).
http://wiki.contextgarden.net/Initials

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 14:42 schrieb Henning Hraban Ramm:

 Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster:
 
 Ok, but how can I set the font size relative to bodyfontsize/baselineskip?
 
 \setupinitial[font=Bold sa 4]
 
 Thank you, I feel stupid.
 Works for me, but not in the wiki (I can’t get colors there, too).
 http://wiki.contextgarden.net/Initials

The wiki use MkII and you have to enable colors first.

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

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


Re: [NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Paul Menzel
Am Dienstag, den 13.12.2011, 08:24 -0500 schrieb Aditya Mahajan:
 On Dec 13, 2011, at 6:33 AM, Paul Menzel paulepan...@users.sourceforge.net 
 wrote:

  having heard nice things about the KOMA script type area I wanted to use
  it too and tried out the example in the Wiki [1].
  
 % Set binding correction value (mode=BCOR turns it on).
 \doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}}
  
 % Set visible page width.
 \newdimen\PageWidth
 \PageWidth=\dimexpr(\paperwidth-\bindingcorr)
  
 % Determine the paper aspect ratio.
 
  \edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}}
  
 % Set the textarea width to 2.6 alphabets.
 \setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}}
 \newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox)
  
 % Set the textarea height proportional to the width.
 \newdimen\Height \Height=\dimexpr(\Ratio\Width)
  
 % Set the margin/gutter widths to be equal on a full spread.
 \newdimen\Back
 \doifmodeelse{oneside}
 {\Back=\dimexpr(((\PageWidth - \Width) / 2) + \bindingcorr)}
 {\Back=\dimexpr(((\PageWidth - \Width) / 3) + \bindingcorr)}
  
 % Set the top and bottom margins in a 1:2 ratio, ignoring headers.
 \edef\Top{\the\dimexpr((\paperheight - \Height) / 3 - 3\lineheight)}
  
 % Redefine \Height to include header and footer space.
 \Height=\dimexpr(\Height + 8\lineheight)
  
 % Set up the page layout using the calculated parameters.
 \setuplayout[
  backspace=\the\Back,
  height=\the\Height,
  width=\the\Width,
  header=2\lineheight,
  headerdistance=\lineheight,
  footer=2\lineheight,
  footerdistance=3\lineheight,
  topspace=\Top]
  
 \starttext
 \framed[width=\textwidth,height=\textheight]{}
 \stoptext
  
  I only want to add a page number to the footer [3] and I do not want to
  use any header [2, and ConTeXt manual]. Therefore I set
  
 \setupheader[][state=none]
 \setuppagenumbering[alternative=doublesided, location={footer}]
 \enablemode[BCOR]
  
  According to the KOMA-Script manual [4] having just a page number in the
  footer it should be counted as belonging to the margin. The only way I
  found out to achieve that was setting `\footdistance=0`.
  
  Is that the “correct” way to comply with the KOMA-Script type area
  recommendation?
  
  Please find the adapted example attached.

 Have you seen http://modules.contextgarden.net/typearea

Yes I did. But it does not seem to provide all options like
`headinclude` or `footinclude`.

At least

\usemodule[typearea]
\setupTypeArea[bcor=0mm, headinclude=false, footinclude=false]

did not change anything.


Thanks,

Paul


  [1] http://wiki.contextgarden.net/KOMA-scrartcl_Type_Area
  [2] http://wiki.contextgarden.net/Layout
  [3] http://wiki.contextgarden.net/Reference/en/setuppagenumbering
  [4] ftp://ftp.dante.de/pub/tex/macros/latex/.../koma-script/scrguide.pdf



signature.asc
Description: This is a digitally signed message part
___
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] Initials / DroppedCaps

2011-12-13 Thread Idris Samawi Hamid ادريس سماوي حامد

On Tue, 13 Dec 2011 05:38:09 -0700, Hans Hagen pra...@wxs.nl wrote:



On 13-12-2011 13:08, Henning Hraban Ramm wrote:

For a book of fairy tales, I used (working!):

  ...

So, what’s the preferred way to get dropped capitals / initials?
I’d like to wikify that, since it seems nowhere documented.


Initials have been rewritten (they also no longer pick up an argument  
which is more robust). The old macros will probably be removed (or end  
up in a module).


\setupinitial[font=Bold at 48pt,state=start]

\starttext

 \placeinitial \input tufte

 \placeinitial \input ward

\stoptext


Hmm, I did not realize that dropped caps were still supported in MkIV base  
so I've been using


\usemodule[lettrine]

which also lets you set not only dropped caps but the next couple of words  
or so in another font -- such as small caps.


Hans: Does the \setupinitial also allow to set the words immediately after  
in \sc etc?


Henning: Maybe you can try lettrines as well and compare them, see which  
works best for what you're trying to do ... Here is a sample for you to  
play with


===
\usemodule[lettrine]
\def \LettrineStyle{\definefontsynonym[LettrineFont][Italic]}
\setuplettrine  
[A][Lines=2,Findent=0.2em,Nindent=0.01em,FontHook={\LettrineStyle}]
\setuplettrine  
[T][Lines=2,Findent=0.35em,Nindent=0.01em,FontHook={\LettrineStyle},Hang=.25]
\setuplettrine  
[I][Lines=2,Findent=0.3em,Nindent=0.01em,FontHook={\LettrineStyle},Hang=.25]
\setuplettrine  
[O][Lines=2,Findent=0.2em,Nindent=0.01em,FontHook={\LettrineStyle}]
\setuplettrine  
[C][Lines=2,Findent=0.3em,Nindent=0.01em,FontHook={\LettrineStyle}]
\setuplettrine  
[W][Lines=2,Findent=0.3em,Nindent=0.01em,FontHook={\LettrineStyle},Hang=.34]


\starttext
\lettrine{A}{fter the three} \input ward
\stoptext
===

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Initials / DroppedCaps

2011-12-13 Thread Hans Hagen

On 13-12-2011 15:15, Idris Samawi Hamid ادريس   سماوي حامد wrote:


Hmm, I did not realize that dropped caps were still supported in MkIV
base so I've been using


it is but not as pure macro but a lua hybrid


which also lets you set not only dropped caps but the next couple of
words or so in another font -- such as small caps.

Hans: Does the \setupinitial also allow to set the words immediately
after in \sc etc?


no, but it's doable (need a good reason for it)

Hans

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

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

[NTG-context] \definelayout

2011-12-13 Thread Andreas Harder
Hi all,

would someone please enlighten me. What is the correct usage of \definelayout?

\definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
% \setuplayout[default] % needed?
\definelayout[first]  [default][header=2cm]
\definelayout[unknown][default]%[reset]
% \definelayout[2]  [default]%[reset]
\definelayout[last]   [default][footer=2cm]

\starttext  \showframe % \checkcurrentlayout
  %% Variant A: fails with \default[unknown]
  first\page unknown=(2)\page \page unknown=(3)\page last
  
  %% Variant B: fails with \definelayout[2]
  % first\page unknown=(2)=last
\stoptext

By the way the output differs with the latest beta in comparison with the 
latest experimental.


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

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


Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm

Am 2011-12-13 um 14:50 schrieb Wolfgang Schuster:


Works for me, but not in the wiki (I can’t get colors there, too).
http://wiki.contextgarden.net/Initials

The wiki use MkII and you have to enable colors first.


I did enable colors, but don’t get any. Maybe the color switch is not  
in the MkII version.



Am 2011-12-13 um 15:15 schrieb Idris Samawi Hamid ادريس سماوي  
حامد:


Hmm, I did not realize that dropped caps were still supported in  
MkIV base so I've been using

\usemodule[lettrine]
which also lets you set not only dropped caps but the next couple of  
words or so in another font -- such as small caps.


Henning: Maybe you can try lettrines as well and compare them, see  
which works best for what you're trying to do ... Here is a sample  
for you to play with


Thank you for the hint, but I only need that one dropped cap. Even if  
the first line/sentence in small caps looks very classical, I don’t  
really like it.

I added your example to the wiki page: http://wiki.contextgarden.net/Initials


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

2011-12-13 Thread Hans Hagen

Hi,

I uploaded a new beta. This one is really beta so don't update if you 
have a critical workflow (or make a copy). Among the changes are:


- page-*  : cleaned up, split and made more efficient (maybe typos)

- strc-itm: cleaned up (maybe side effects, but it looks ok)

- style/color : low level clean up (which means that some t-* files need 
to be updated in sync)


Of course there are the usual fixes / improvements / new bugs.

Hans

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

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


Re: [NTG-context] \definelayout

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 16:26 schrieb Andreas Harder:

 Hi all,
 
 would someone please enlighten me. What is the correct usage of \definelayout?
 
 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]  [default]%[reset]
 \definelayout[last]   [default][footer=2cm]
 
 \starttext  \showframe % \checkcurrentlayout
  %% Variant A: fails with \default[unknown]
  first\page unknown=(2)\page \page unknown=(3)\page last
 
  %% Variant B: fails with \definelayout[2]
  % first\page unknown=(2)=last
 \stoptext
 
 By the way the output differs with the latest beta in comparison with the 
 latest experimental.

Hans changed part of the \setuplayout code in the last betas (there are more 
than you can see in the ctx suite).

When context checks the layout (happens with \starttext and when it starts a 
new page) it test for the following defined layouts:

• “pagenumber”
• “-pagenumber”
• “last” (is only used for the last page of the document)
• “first” (is only used for the first page of the document)
• “unknown”
• “current”
• “odd” and “even” (used for left and right pages)

All entries in this list are reserved names but you can also define your own 
layout but in this case
you have to enable it with \setuplayout[name].

One of the new features in MkIV is that layout parameters can be inherited, 
e.g. when
you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and 
another one with
the name two (\definelayout[two][one][..,..=..,..]) this will take the values 
from one of there
are nothing set for a value from one and when there is also nothing set for one 
the global
values are used (\setuplayout[..,..=..,..]).

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

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


[NTG-context] gnuplot module: `option=monochrome` does not work.

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks,


I want to create monochrome plots, but `option=monochrome` is ignored.

\usemodule[gnuplot]

\setupGNUPLOT[terminal=context,option=monochrome]

\startGNUPLOTscript[pi]
plot pi t '$π = \ctxlua{context(math.pi)}$'
\stopGNUPLOTscript

\starttext
\useGNUPLOTgraphic[pi]

\blank
\CONTEXT\ \contextmark\ \contextversion
\stoptext

Is that the correct way to enable monochrome output? Looking at the Wiki
page [1] it should be something like the above. Am I doing something
wrong?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Gnuplot


gnup.pdf
Description: Adobe PDF document
\usemodule[gnuplot]

\setupGNUPLOT[terminal=context,option=monochrome]

\startGNUPLOTscript[pi]
plot pi t '$π = \ctxlua{context(math.pi)}$'
\stopGNUPLOTscript

\starttext
\useGNUPLOTgraphic[pi]

\blank
\CONTEXT\ \contextmark\ \contextversion
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] \definelayout

2011-12-13 Thread Andreas Harder

On 13.12.2011, at 16:44, Wolfgang Schuster wrote:

 
 Am 13.12.2011 um 16:26 schrieb Andreas Harder:
 
 Hi all,
 
 would someone please enlighten me. What is the correct usage of 
 \definelayout?
 
 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]  [default]%[reset]
 \definelayout[last]   [default][footer=2cm]
 
 \starttext  \showframe % \checkcurrentlayout
 %% Variant A: fails with \default[unknown]
 first\page unknown=(2)\page \page unknown=(3)\page last
 
 %% Variant B: fails with \definelayout[2]
 % first\page unknown=(2)=last
 \stoptext
 
 By the way the output differs with the latest beta in comparison with the 
 latest experimental.
 
 Hans changed part of the \setuplayout code in the last betas (there are more 
 than you can see in the ctx suite).
 
 When context checks the layout (happens with \starttext and when it starts a 
 new page) it test for the following defined layouts:
 
 • “pagenumber”
 • “-pagenumber”
 • “last” (is only used for the last page of the document)
 • “first” (is only used for the first page of the document)
 • “unknown”
 • “current”
 • “odd” and “even” (used for left and right pages)
 
 All entries in this list are reserved names but you can also define your own 
 layout but in this case
 you have to enable it with \setuplayout[name].
 
 One of the new features in MkIV is that layout parameters can be inherited, 
 e.g. when
 you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and 
 another one with
 the name two (\definelayout[two][one][..,..=..,..]) this will take the values 
 from one of there
 are nothing set for a value from one and when there is also nothing set for 
 one the global
 values are used (\setuplayout[..,..=..,..]).

Hi Wolfgang,

I modified the example (hopefully in a meaningful manner). I get the desired 
output with the old beta, but it still fails with todays beta.

\setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
\definelayout[first]  [header=2cm]
\definelayout[last]   [footer=2cm]
\definelayout[current]

\starttext  \showframe % \checkcurrentlayout
  % \dorecurse{2}{test\page} % last is wrong
  \dorecurse{5}{test\page} % page 2 and „last“ are wrong
\stoptext


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

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


Re: [NTG-context] gnuplot module: `option=monochrome` does not work.

2011-12-13 Thread Mojca Miklavec
On Tue, Dec 13, 2011 at 18:03, Paul Menzel wrote:
 Dear ConTeXt folks,


 I want to create monochrome plots, but `option=monochrome` is ignored.

(Ashamed.) Yes, you are right.

        \usemodule[gnuplot]

        \setupGNUPLOT[terminal=context,option=monochrome]

This passes the option to terminal if no better way is available. This
would only help you in case of png, pdf or metapost terminal. For
ConTeXt terminal in input mode it wouldn't help you since the option
color/dashed/etc. are completely ignored. This means that gnuplot will
only consider options fontscale=, points=metapost|tex, width= and
height= since that influences the output. Colors and dashed/solid
lines can be turned on and off on the fly, same for line widths (you
can redraw the same graph with dash turned on and off, using the same
gnuplot output).

First of all, I should fix documentation on that (using it that way is
slightly deprecated and should only be used if the option is not). But
second of all .. I just realized that, for example, standalone mode
writes out

\setupGNUPLOTterminal
   [context]
   [linejoin=mitered, % *mitered* | rounded | beveled
linecap=butt, % *butt* | rounded | squared
dashed=yes, % *yes* | no
dashlength=1, % scaling factor for dash lengths
linewidth=1, % scaling factor for line widths (1.0 means 0.5bp)
%fontscale=1, % scaling factor for text labels
points=metapost, % *metapost* | tex (Should points be drawn with
MetaPost or TeX?)
images=inline] % *inline* | external (inline only works in MKIV,
external requires png support in gnuplot)

but I completely forgot about monochrome option!!! Or rather ... I see
that I print out \setupcolors[state=start] if and only if color is
switched on, but that won't really help you in standalone mode. Ouch!
I'm sorry. You don't need to recompile the terminal for that, but I
need to fix t-gnuplot.tex and mp-gnuplot.mp. Does, according to what
you see above, color=yes|no make sense? (I will also have to change
the terminal for standalone mode, but that won't affect your plots.)

However, the main reason why I didn't do it better before is because I
have no idea what to do with monochrome. That is: should I use
different shades of gray? Should I simply make all the colors solid
black? And then the user should use color=no,dashed=yes? I'm
particularly confused about the choice between different shades of
gray and black.

And yes - I'll fix the wiki page.

Here's a quick workaround:

\startMPextensions
gp_color_lt[0] := black;
gp_color_lt[1] := black;
gp_color_lt[2] := black;
gp_color_lt[3] := black;
gp_color_lt[4] := black;
gp_color_lt[5] := black;
gp_color_lt[6] := black;
gp_color_lt[7] := black;
gp_color_lt[8] := black;
\stopMPextensions

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

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

Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Kip Warner
On Tue, 2011-12-13 at 10:15 +0100, Hans Hagen wrote:
 it seems to run anyway
 
 maybe the file-line-error is doing something
 
 Hans

I tried it already without --file-line-error and its the same console
output. =(

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] gnuplot module: `option=monochrome` does not work.

2011-12-13 Thread Mojca Miklavec
Dear Paul,

Just a few more thoughts:

- If your whole document is black-and-white (if you switch colors off
globally), the plot will turn out black-and-white anyway (actually it
will be different shades of gray).

- You can always use something like
plot pi lt 1 lc 0, 2*pi lt 2 lc 0
or
lc rgb black (if I'm not mistaken about the syntax)
or
set style line 1 lt 1 lc 0
set style line 2 lt 2 lc 0
plot sin(x) ls 1, cos(x) ls 2, ...

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

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


Re: [NTG-context] [solved] How to create horizontal line for signature?

2011-12-13 Thread Philipp A.
i always use tikz anyway, so i can as well use it for something like this:

\tikz[baseline=(start)]\draw (0,0) coordinate (start) edge[label=below:Your
Name here] (4cm,0);

untested, tell me if it doesn’t work.

it should do the following: name a coordinate “start” and draw a line
horizontally 3cm with “Your Name here” as label below.
___
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] xml attribute conditional

2011-12-13 Thread Jon Crump
Hans et alia,

Thanks for helping out with the right xpath expression. That was
indeed the problem: div elements in the ancestor axis that had no
xml:id attribute. Unfortunately, this doesn't solve my root problem.

I have a tei/xml marked up text with English and Arabic sections. For
each ref tag in the english section I want to place a \footnote. For
the corresponding ref in the Arabic section I want to place a \note
pointing to the same footnote as the corresponding English ref. The
minimal example appended below accomplishes this, but when I try to
apply this solution to my full text, this solution fails: I get ?? in
place of the references in the arabic, lua stats reports:

mkiv lua stats   cross referencing - 56 identified, 56 unknown

and I get repeated errors of the following sort:

xml  lpath   1 : ex :
@xml:id==string.sub('#N020-18', 2) -
(ll.at and ll.at['xml:id'])==string.sub('#N020-18', 2) ! Missing
number, treated as zero.

which is where, I presume, the ?? references are coming from

minimal example follows (\environment ara-sty not included)

Any insights you may have would be gratefully received.

Jon

(PS I suspect that the multiple errors associated with this problem
are what's causing --result renaming to fail)

xml input:
body
text
div type='arText'
p
lb / ين لنأخده ref target=#N01 للغاية تعيس /ref
lb / ين لنأخده ref target=#N02 شايلون شجوات /ref
/p
/div
div type='enText'
p
lb / some english ref target=#N01referenced 
text/ref
lb / more english ref target=#N02referenced 
text/ref
/p
/div
div type='fnotes'
note xml:id=N01text for note ONE/note
note xml:id=N02text for note TWO/note
/div
/text
/body

context environment:
\startxmlsetups xml:lbsetups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{body|text|div|p|lb|ref|note}{xml:*}
\xmlsetsetup{#1}{div[@type='enText']}{xml:div:entext}
\xmlsetsetup{#1}{div[@type='arText']}{xml:div:artext}
\xmlsetsetup{#1}{div[@type='fnotes']}{xml:div:fnotes}
\xmlsetsetup{#1}{ref}{xml:ref}
\xmlsetsetup{#1}{note}{xml:note}
\stopxmlsetups
\setupfootnotes[location=text]
\xmlregistersetup{xml:lbsetups}
\environment ara-sty
\def\Size{12pt}
\enabletrackers[xml.parse,xml.path]

\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:text
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:div:entext
\setlatin{\switchtobodyfont[palatino,\Size] \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:div:artext
\setarabic{\switchtobodyfont[Arabic] \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:div:fnotes
\placefootnotes
\stopxmlsetups

\startxmlsetups xml:ref
\xmlflush{#1}
\xmldoifelse{#1}{ancestor::div[@type='enText']}
{\footnote[\xmlatt{#1}{target}]
{\xmlfirst{#1}

{root::/body/text/div[@type='fnotes']/note[@xml:id==string.sub('\xmlatt{#1}{target}',2)]}
}
}
{\note[\xmlatt{#1}{target}]{}}  
\stopxmlsetups

\startxmlsetups xml:note
\xmlflush{#1}\endgraf
\stopxmlsetups


the ref tag setup that fails for my larger text looks like this:

\startxmlsetups xml:ref
\xmlflush{#1}
\xmldoifelse{#1}{ancestor::div[@xml:id and contains(@xml:id,
'apr_engl')]} %% this expression works
{\footnote[\xmlatt{#1}{target}]
{\xmlfirst{#1}

{root::/TEI/text/back/div[@xml:id=='notes']/note[@xml:id==string.sub('\xmlatt{#1}{target}',
2)]}
}
}

{
{\note[\xmlatt{#1}{target}]}{} %% argument to \note 
results in ??
instead of corresponding ref. number
}
\stopxmlsetups
___
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] beta

2011-12-13 Thread Otared Kavian
Hi Hans,

Thanks for the new beta.
It seems that with the new beta there is a bug with itemize: no numbers show up 
with \item.

\starttext
\startitemize[n]
\item One
\item Two
\stopitemize
\stoptext

Best regards: OK

On 13 déc. 2011, at 16:38, Hans Hagen wrote:

 Hi,
 
 I uploaded a new beta. This one is really beta so don't update if you have a 
 critical workflow (or make a copy). Among the changes are:
 
 - page-*  : cleaned up, split and made more efficient (maybe typos)
 
 - strc-itm: cleaned up (maybe side effects, but it looks ok)
 
 - style/color : low level clean up (which means that some t-* files need to 
 be updated in sync)
 
 Of course there are the usual fixes / improvements / new bugs.
 
 Hans


___
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] Preserving Output Files

2011-12-13 Thread Hans Hagen

On 13-12-2011 19:25, Kip Warner wrote:

On Tue, 2011-12-13 at 10:15 +0100, Hans Hagen wrote:

it seems to run anyway

maybe the file-line-error is doing something

Hans


I tried it already without --file-line-error and its the same console
output. =(


I can run the direct command here, not that I ever do it as the context 
command does some housekeeping and passes commandline info via the top 
file. There is hardly any gain in running luatex directly.


Hans


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

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


Re: [NTG-context] beta

2011-12-13 Thread Hans Hagen

On 13-12-2011 21:07, Otared Kavian wrote:

Hi Hans,

Thanks for the new beta.
It seems that with the new beta there is a bug with itemize: no numbers show up 
with \item.

\starttext
\startitemize[n]
\item One
\item Two
\stopitemize
\stoptext

Best regards: OK


I'll look into it ... \startitem ... \stopitem should be ok.

Hans



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

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


Re: [NTG-context] beta

2011-12-13 Thread Hans Hagen

On 13-12-2011 21:07, Otared Kavian wrote:

Hi Hans,

Thanks for the new beta.
It seems that with the new beta there is a bug with itemize: no numbers show up 
with \item.

\starttext
\startitemize[n]
\item One
\item Two
\stopitemize
\stoptext


fixed (I had commented a counter definition because I load the module 
runtime for testing)


Hans


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

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


Re: [NTG-context] xml attribute conditional

2011-12-13 Thread Hans Hagen

On 13-12-2011 20:21, Jon Crump wrote:


@xml:id==string.sub('#N020-18', 2) -
 (ll.at and ll.at['xml:id'])==string.sub('#N020-18', 2) ! Missing
number, treated as zero.


lua error with sub .. not sure what you want t o test here

indeed an error will prevent the multipass file to be saved (feature)

Hans


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

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


Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Kip Warner
On Tue, 2011-12-13 at 23:51 +0100, Hans Hagen wrote:
 I can run the direct command here, not that I ever do it as the context 
 command does some housekeeping and passes commandline info via the top 
 file. There is hardly any gain in running luatex directly.

Hey Hans. I understand, but I need to be able to run luatex directly in
the same way ConTeXt is invoking it. The reason being is Mojca and I
want to get a stack trace for an issue that popped up executing on
mipsel64 hardware.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] beta

2011-12-13 Thread Otared Kavian

On 14 déc. 2011, at 00:48, Hans Hagen wrote:

 On 13-12-2011 21:07, Otared Kavian wrote:
 Hi Hans,
 
 Thanks for the new beta.
 It seems that with the new beta there is a bug with itemize: no numbers show 
 up with \item.
 
 \starttext
 \startitemize[n]
 \item One
 \item Two
 \stopitemize
 \stoptext
 
 fixed (I had commented a counter definition because I load the module runtime 
 for testing)
 
 Hans

Hi Hans,

Thanks for the quick fix.
However \startitemize[r] (or any other option) results always with items being 
numbered 1., 2., 3., …
The behavior does not improve when using \startitem…\stopitem.
Reporting this for ConTeXt version 2011.12.14 00:20.

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

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


[NTG-context] ConTeXt-- does it make sense for my needs?

2011-12-13 Thread Chris Lott
Many years ago I used LaTeX quite a bit for academic work, including a
fair amount of Memoir class. Back then ConTeXt was quite new, so I
didn't mess with it much.

Now I'm back and sick of Word/etc for the documents I need to produce
as print/pdf and for interaction with colleagues. What I can't figure
out is if ConTeXt makes the most sense... and if it does, I have a few
questions...

1) My work is primarily in the humanities and end-user technologies,
with small amounts of coding. So mathematics isn't an issue. I do a
fair amount of highly academic writing (aka: many sections, citations
[handling this in a sensible way is really important], footnotes) with
the occasional need for charts, graphs, and photos. In other words,
I'm not doing the kind of layout one might associate with InDesign or
the like. I also write many paper letters (personal), poetry, fiction,
essays, and the like.

2) That said, I (obviously) have a keen interest in typography, and
that includes wanting to use some particular typefaces... I've paid
good money for many of them, so why not?

3) PDF is my primary medium of exchange, though I would like to
efficiently exchange docs with colleagues, which might mean getting
them into something they can open with their beloved Microsoft Word...
is there an RTF output for ConTeXt? this isn't super-high on my list,
but it would be nice.

4) How about X/HTML? this is my lowest level need but, again, it would be nice.

5) I generally use a Mac for everything, but I am pretty comfortable
in the shell. I've done a bit of programming in PHP. I don't mind
monkeying around, and I am interested in creating layouts that suit my
needs, but digging into internals is not for me. I used Emacs
extensively for years, now using mostly Vim (MacVim) and a variety of
GUI editors depending on what I had for breakfast that day.

So, do you think ConTeXt makes more sense than LaTeX? And *what* is
the deal with xetex? It seems to be the easiest way for accessing all
my fonts, but it also hasn't been updated for years and, since it is
tied to an old version of ConTeXt (as far as I can tell) it doesn't
seem like much of a winner.

Finally, if ConTeXt is the way to go, are there any fairly
comprehensive materials in one place for learning to use it? What I
find on the wiki seems to go from basic to advanced without a lot of
in between, and what I find on the web seems a bit fragmented. but at
this point my head is in a whirl, so I might just be missing some
obvious material.

Thanks in advance...

c
--
Chris Lott
___
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
___