[NTG-context] How to get line numbering to match block quote position?

2022-10-10 Thread Joel via ntg-context
I have some text that is a block quote, but also has line numbering:

    \setuplinenumbering[step=3]    \starttext
    \startblockquote
            \startlinenumbering
                \input knuth
            \stoplinenumbering
        \stopblockquote \stoptext
The line numbering is appearing in the left margin as if the text were not a 
block quote. How can I tell it to move the numbering closer to the text, since 
the text is not up against the margin, being block quote text?
--Joel___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Pull quote between two column - trial

2022-05-29 Thread Garulfo via ntg-context
to use pull quotes, I need to use the dimensions of the different 
elements to be typeset, before typesetting, in order to adapt the shapes 
of the flow accordingly.


So here is just a basic code to
1/ get the dimensions of an item A that will be typeset, before it is 
actually typeset
2/ use these dimensions to define a item B that should be typeset before 
item 1

3/ typeset of item B and finally item A


It is a quick and dirty solution.

Please, could you help me to have a more elegant solution

1/ to replace

 "width=\measure{FTitleW},"

by something more direct like

 "width=\GetDim{myframes}{FTitle}


2/ to replace

   context("\\definemeasure[#2W][" .. (n.width /65536)  .. "pt]")

   by a more "luametatexish" formulation



Le 28/05/2022 à 20:25, Garulfo a écrit :

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo

mesure_framed.pdf
Description: Adobe PDF document

\defineblock[myframes]

\unexpanded\def\GetDim#1#2{
\setbox\scratchbox\hbox\bgroup\useblocks[#1][#2]\egroup%
\directlua{%
local n = tex.getbox('scratchbox')
context("\\definemeasure[#2W][" .. (n.width /65536)  .. "pt]")
context("\\definemeasure[#2H][" .. (n.height /65536)  .. "pt]")
}}


%--

\starttext

\beginmyframes[FTitle]
\framed
  [align=normal]
  {initial framed for a title zone\\
   early in the source code but not yet typeset\\
   with a long sentence to take place horizontaly and for demonstration}
\endmyframes

\GetDim{myframes}{FTitle}

\framed
  [align=normal,
   width=\measure{FTitleW},
   height=\measure{FTitleH}]
  {a second framed, with dimensions equal to the original frame, typeset before the original}

\useblocks[myframes][FTitle]

\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] Pull quote between two column - trial

2022-05-28 Thread jbf via ntg-context
That is progress, Garulfo, and real progress! I'm sorry I have not been 
any help to you in achieving this... a bit beyond my skill set. But I 
have long regarded this particular 'feature' to be a quite important 
'missing' feature of ConTeXt, since I occasionally get requests from 
authors as to the possibility of including such pull quotes in 
multi-column presentations, and I have to tell them that to do so I need 
to use another program where that is more easily achieved.


So, I just wanted you to know that someone out there appreciates your 
efforts with this, one of many I am sure.


Julian

On 29/5/22 04:25, Garulfo via ntg-context wrote:

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo

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

___
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] Pull quote between two column - trial

2022-05-28 Thread Garulfo via ntg-context

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo


getshapetext_for_pullquote.pdf
Description: Adobe PDF document
\setuplayout [grid=yes]

\showgrid

\definecolor [transparentred]  [r=1,t=.5,a=1]

\def\numA{18}
\def\numB{4}
\def\numC{8}
\def\numD{14}
\def\mygap{0.001pt}

%===

\startMPinclusions
path pleft ; path pright ;

numeric LA ; LA := (\numA-1)*LineHeight + StrutHeight + StrutDepth + \mygap ;
numeric LB ; LB :=  \numB   *LineHeight - StrutHeight - StrutDepth + \mygap ;
numeric LC ; LC :=  \numC   *LineHeight - StrutHeight - StrutDepth - \mygap ;
numeric LD ; LD :=  \numD   *LineHeight ;
numeric LE ; LE := 2cm ;

pleft := (0cm , 0cm) --
 (LD  , 0cm) --
 (LD  , LA - LC) --
 (LD - LE , LA - LC) --
 (LD - LE , LA - LB) --
 (LD  , LA - LB) --
 (LD  , LA ) --
 (0cm , LA ) --
 cycle  ;

pright := pleft reflectedabout ((LD/2,0cm) , (LD/2,1cm));

\stopMPinclusions

\startuseMPgraphic{mytest1}  % column on the left of the pull quote
lmt_parshape [path = pleft ] ;
fill pleft withcolor \MPcolor{transparentred} ;
\stopuseMPgraphic

\startuseMPgraphic{mytest2}  % column on the right of the pull quote
lmt_parshape [path = pright] ;
fill pright withcolor \MPcolor{transparentred} ;
\stopuseMPgraphic

\defineoverlay[myOL1][\useMPgraphic{mytest1}]
\defineoverlay[myOL2][\useMPgraphic{mytest2}]

%===

\defineframed
  [MyBigFrame]
  [offset=-0.26pt,
   frameoffset=0pt,
   frame=off,
   strut=yes,
   before=,
   location=top,
   height=\dimexpr(\numA\lineheight),
   width=\textwidth,
   align=normal,]

\defineframed
  [MyFrame]
  [MyBigFrame]
  [location=high,
   width=\dimexpr(\numD\lineheight),
   after=\dontleavehmode,]

%===

\starttext

{\bf Before}   %

\startshapetext[mytest1,mytest2]
\strut\samplefile{douglas}
\stopshapetext

\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}

{\bf Between}  %

\startshapetext[mytest1,mytest2]
\strut\samplefile{knuth}\par\samplefile{knuth}
\stopshapetext

\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}

{\bf After}%

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


[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context

Hi all,

hope you are all doing well.

I am still trying to display pull quote between two columns.

lmt_parshape is really helpfull.


I need to add a 1pt gap to make the left column behave correctly,
but the right column remains shifted one line below the intended one.

Question1: any clue ?

Question2: is there a way to use the columnset system to produce a 
similar output ?


Thanks again for your feedbacks,
Garulfo
\setuplayout
  [grid=yes,
   headerdistance=5mm,
   margindistance=5mm,
   backspace=17.5mm,
   margin=10mm,
   topspace=40mm,
   height=23cm,
   header=10mm,
   footer=10mm,
   width=17.5cm]

%\showframe
%\showgrid
\usemodule [visual]

\setupbodyfont [palatino,11pt]

\definecolor [transparentred]  [r=1,t=.5,a=1]
\definecolor [transparentgreen][g=1,t=.5,a=1]

%

\def\posA{10}
\def\posB{20}
\def\mygap{1pt}
\def\mypen{1pt}
\def\PQhalfwith{20mm}

%

\startuseMPgraphic{mytest0}   % for basic straight column
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\startuseMPgraphic{mytest1}  % column on the left of the pull quote
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight+\mygap-\posB*LineHeight) --
 (0.3*TextWidth-\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) --
 (0.3*TextWidth-\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) --
 (0.3*TextWidth,TextHeight-\mygap-\posA*LineHeight) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\startuseMPgraphic{mytest2}   % column on the right of the pull quote
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --
 (0.0*TextWidth,TextHeight-\mygap-\posA*LineHeight) --
 (0.0*TextWidth+\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) --
 (0.0*TextWidth+\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) --
 (0.0*TextWidth,TextHeight+\mygap-\posB*LineHeight) --
 cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\defineoverlay[myOL1][\useMPgraphic{mytest1}]
\defineoverlay[myOL2][\useMPgraphic{mytest2}]

%

\defineframed
  [FramePage]
  [align=width,
   frame=off,
   location=high,
   strut=yes,
   offset=0pt,
   width=\textwidth,
   height=\textheight,
   before=]

\defineframed
  [FrameColumn]
  [FramePage]
  [background=color,
   backgroundcolor=transparentred,
   width=0.3\textwidth,
   after=\dontleavehmode]

%

\definelayer % used to display the pull quote on the page
  [test]
  [x=0mm,
   y=0mm,
   width=\paperwidth,
   height=\paperheight]

%===

\starttext

\startshapetext[mytest1,mytest2,mytest0,mytest0]%
\strut%
\dorecurse{3}{\samplefile{douglas}
\blank[1*line]}%
\stopshapetext

%
% First page

\FramePage{%
\FrameColumn[background={color,myOL1}]{\getshapetext}\hfill
\FrameColumn[background={color,myOL2}]{\getshapetext}\hfill
\FrameColumn{empty}}


% and the pull quote

\setlayer
  [test]
  [hoffset=\backspace+0.3\textwidth-\PQhalfwith+0.2pt,
   voffset=\dimexpr(\topspace+\headerheight+\headerdistance+\posA\baselineskip-0.4pt)]
 {\framed[
background=color,
backgroundcolor=transparentgreen,
frame=off,
strut=yes,
offset=0pt,
width=\dimexpr(0.05\textwidth)+\PQhalfwith+\PQhalfwith,
height=\dimexpr(\posB\baselineskip-\posA\baselineskip)]{\bfd PULL QUOTE\\TRIAL}}

\setupbackgrounds[page][background={foreground,test}]

%
% Second page just to demonstrate that \getshapetext continue to work

\page

\FramePage{%
\FrameColumn{\getshapetext}\hfill
\FrameColumn{\getshapetext}\hfill
\FrameColumn{empty}}


\stoptext



pullquote_between_column_v01.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] registers, how to ignore quote marks

2022-01-30 Thread jbf via ntg-context
No, I had already tried that. It places the subentry at the top of the 
list of subentries, not in its correct alphabetical order. Using the 
example below, I assume you meant (I am including text before and after):


The \index[Plenary+periti]{Plenary Council+{\it periti} (experts)} group 
comprises 10 members.


There are nine subentries altogether, and quite a number under 'p', like 
\index{Plenary Council+preparations for}. The italicised /periti /should 
come just before the latter (preparations for) but, using the double key 
above it comes first in the list. The same happens with the subentry 
surrounded by single quotes. It too comes first in the list if I use a 
double key. So clearly it is the fact that there is formatting ({\it 
something}) or quotes ({‘word’}) in a subentry that causes the problem, 
and I am wondering how to overcome this.


Julian

On 30/1/22 20:59, Hans Hagen wrote:
2. \index{Plenary Council+{\it periti} (experts)}: in this case it is 
the italicised /periti/ that appears out of place, after the letter 
'i' rather than after 'p'. Again I tried putting various keys but 
this did not help.


I guess my confusion is this: I assumed that the [key] establishes 
the literal string which determines sort order. That seems to be the 
case for a main entry. How do I get it to work for a subentry?

just provide an extra key: ___
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] registers, how to ignore quote marks

2022-01-30 Thread Hans Hagen via ntg-context

On 1/30/2022 1:30 AM, jbf wrote:
The several responses to my floundering with the register have been very 
helpful, though I would have to confess that I have ended up 'messing 
with' things (suggested by Hans re the [key]) and getting a satisfactory 
result in almost every case without always understanding why. But I can 
say that I have the 'sorting' issue resolved if it is a main entry, 
including if that entry is surrounded by quote marks or has one part of 
that entry formatted differently (e.g. italics).


But I don't seem able to apply this to subentries! I cannot solve the 
sorting of subentries that have special features (e.g. I might have 
needed italics for part of a subentry, or the subentry is surrounded by 
quote marks).


Here are my two situations (and in each case they appear out of 
alphabetical order in the subentry list):


1. \index{animals+‘special kinds’}: in this case ‘special kinds’ appears 
in the subentry list at the bottom of the list, after one that starts 
with 'v'. I 'messed with' this by adding keys, e.g., \index[Animals] 
etc. but  the item disappeared from the index altogether.


2. \index{Plenary Council+{\it periti} (experts)}: in this case it is 
the italicised /periti/ that appears out of place, after the letter 'i' 
rather than after 'p'. Again I tried putting various keys but this did 
not help.


I guess my confusion is this: I assumed that the [key] establishes the 
literal string which determines sort order. That seems to be the case 
for a main entry. How do I get it to work for a subentry?

just provide an extra key:

key+subkey

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
The several responses to my floundering with the register have been very 
helpful, though I would have to confess that I have ended up 'messing 
with' things (suggested by Hans re the [key]) and getting a satisfactory 
result in almost every case without always understanding why. But I can 
say that I have the 'sorting' issue resolved if it is a main entry, 
including if that entry is surrounded by quote marks or has one part of 
that entry formatted differently (e.g. italics).


But I don't seem able to apply this to subentries! I cannot solve the 
sorting of subentries that have special features (e.g. I might have 
needed italics for part of a subentry, or the subentry is surrounded by 
quote marks).


Here are my two situations (and in each case they appear out of 
alphabetical order in the subentry list):


1. \index{animals+‘special kinds’}: in this case ‘special kinds’ appears 
in the subentry list at the bottom of the list, after one that starts 
with 'v'. I 'messed with' this by adding keys, e.g., \index[Animals] 
etc. but  the item disappeared from the index altogether.


2. \index{Plenary Council+{\it periti} (experts)}: in this case it is 
the italicised /periti/ that appears out of place, after the letter 'i' 
rather than after 'p'. Again I tried putting various keys but this did 
not help.


I guess my confusion is this: I assumed that the [key] establishes the 
literal string which determines sort order. That seems to be the case 
for a main entry. How do I get it to work for a subentry?


Julian

On 29/1/22 21:39, Hans Hagen wrote:

On 1/29/2022 11:02 AM, jbf via ntg-context wrote:
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I 
have to understand how, as you say, to 'set the sort entry to the 
unformatted version' which is not clear to me at the moment. I'll 
tackle it on the morrow when I'm thinking more clearly!

there is key and entry with key between []

when sorting, the key wins but because there can be duplicates the 
entry itself is also part of the final sort key


the accumulates sort key is sanitized and after that sorting happens 
in several stages (these can be defined / adapted) according to 
language, taking numbers into account and finally using the unicode 
ordering ...


you can fool the system by messing with the [key]

it's not the easiest subsystem (but it has a long history ... as with 
many subsystems the principles are not much different than mkii and 
the code seldom changes but of course evolved)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread Hans Hagen via ntg-context

On 1/29/2022 11:02 AM, jbf via ntg-context wrote:
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I have 
to understand how, as you say, to 'set the sort entry to the unformatted 
version' which is not clear to me at the moment. I'll tackle it on the 
morrow when I'm thinking more clearly!

there is key and entry with key between []

when sorting, the key wins but because there can be duplicates the entry 
itself is also part of the final sort key


the accumulates sort key is sanitized and after that sorting happens in 
several stages (these can be defined / adapted) according to language, 
taking numbers into account and finally using the unicode ordering ...


you can fool the system by messing with the [key]

it's not the easiest subsystem (but it has a long history ... as with 
many subsystems the principles are not much different than mkii and the 
code seldom changes but of course evolved)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I have 
to understand how, as you say, to 'set the sort entry to the unformatted 
version' which is not clear to me at the moment. I'll tackle it on the 
morrow when I'm thinking more clearly!


Julian


On 29/1/22 20:43, Henning Hraban Ramm via ntg-context wrote:


Am 29.01.22 um 06:23 schrieb jbf via ntg-context:
Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part 
normal? That might be a bit more difficult I think.


If you want to format the page number or the whole entry, you can use 
processors. But if you want to format only parts of the entry, I don’t 
see an other solution than to use formatting in the entry and set the 
sort entry to the unformatted version like:


\index[myindexentry]{{\it my} index entry}

otherwise the name of the used commands/macros is used for the index 
ordering.


Hraban

___ 

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
___ 


___
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] registers, how to ignore quote marks

2022-01-29 Thread Henning Hraban Ramm via ntg-context


Am 29.01.22 um 06:23 schrieb jbf via ntg-context:
Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part 
normal? That might be a bit more difficult I think.


If you want to format the page number or the whole entry, you can use 
processors. But if you want to format only parts of the entry, I don’t 
see an other solution than to use formatting in the entry and set the 
sort entry to the unformatted version like:


\index[myindexentry]{{\it my} index entry}

otherwise the name of the used commands/macros is used for the index 
ordering.


Hraban

___
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] registers, how to ignore quote marks

2022-01-28 Thread jbf via ntg-context
Well done Adam - or should I say well read in the Wiki! For all my 
reading of it I still hadn't cottoned on to that. There are several of 
these cases, but I have been able to fix them all now. Thank you.


Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part normal? 
That might be a bit more difficult I think.


Julian
___
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] registers, how to ignore quote marks

2022-01-28 Thread Adam Reviczky via ntg-context
Hi Julian,

Have you tried \index[Innovative]{‘Innovative’}?

See wiki entry: https://wiki.contextgarden.net/Registers
- To sort a word (such as "ConTeXt" under "C"), use: \index
<https://wiki.contextgarden.net/Command/index>[CONTEXT]{\ConTeXt}

You would have to change each index call though.

Adam

On Sat, Jan 29, 2022 at 2:42 AM jbf via ntg-context 
wrote:

> I have an issue that has been raised at least twice in this list but as
> far as I can see it has not received an answer. Perhaps someone can help
> with the following?
>
> I have an index entry that has unicode quote marks either side:
> ‘Innovative Beings’.  I need to retain those quote marks. If I put
> \index{‘Innovative’} then ‘Innovative’ is sorted under ‘ instead of under
> the letter I. How do I get my indexing to ignore the quote marks, at the
> very least the initial one?
>
> My index setup at the moment is as follows:
>
> \defineregister[index][compress=yes]
>
> \setupregister[index][n=1]
>
> \defineprocessor[special][style=italic]
>
> The only hint I could gain from the wiki was that it might depend on using
> a method key in \setupregister, but I could not see which to use. Tried a
> few and got weird results.
>
> Julian
>
>
> ___
> 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
>
> ___
>
___
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] registers, how to ignore quote marks

2022-01-28 Thread jbf via ntg-context
I have an issue that has been raised at least twice in this list but as 
far as I can see it has not received an answer. Perhaps someone can help 
with the following?


I have an index entry that has unicode quote marks either side: 
‘Innovative Beings’.  I need to retain those quote marks. If I put 
\index{‘Innovative’} then ‘Innovative’ is sorted under ‘ instead of 
under the letter I. How do I get my indexing to ignore the quote marks, 
at the very least the initial one?


My index setup at the moment is as follows:

\defineregister[index][compress=yes]

\setupregister[index][n=1]

\defineprocessor[special][style=italic]

The only hint I could gain from the wiki was that it might depend on 
using a method key in \setupregister, but I could not see which to use. 
Tried a few and got weird results.


Julian
___
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] Quote mark missing from first paragraph in quotation when location=text

2020-12-06 Thread Michael Murphy
Hi,

I have some long dialogue that I'm trying to typeset and I want to use the
convention of repeating the open quotation mark on each paragraph of
continued dialogue. I know I can set this up by doing something like

\setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote]

This works well, except in cases where the dialog starts in the middle of a
paragraph. By default \startquotation starts a new paragraph. I think the
way to suppress that is to set location=text, but when I try that I get the
odd effect that the first paragraph doesn't get quotes but the following
ones do. Minimal example below.

\setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote,
location=text]
\starttext
Some text that's not part of the quotation.
\startquotation
\input knuth
\stopquotation
\stoptext

I’m on LMTX 2.08.04, Context version 2020.12.04 20:22

Any ideas?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Hi Pablo,

thanks for the suggestion, but I was looking for an automated method for
writing a module, therefore manual reference is not feasible here.

Sylvain

On Sat, 7 Nov 2020 at 16:46, Pablo Rodriguez  wrote:

> On 11/7/20 4:32 PM, Sylvain Hubert wrote:
> > Dear List,
> >
> > say I have three sections in the document:
> >
> > \section{foo} ... \section{bar} ... \section{baz} ...
> >
> > Now I would like to auto generate a heavily customized table of contents
> > like the following text, which cannot be done by the stock \placecontent
> > in general, and put it into the preface:
> >
> >This book has 3 sections: foo, bar, and baz.
>
> How about the following?
>
> \starttext
> as in \about[section-one], \about[section-two],
> \about[section-three]...
>
> \section[section-one]{Section One}
> \section[section-two]{Section Two}
> \section[section-three]{Section Three}
> \stoptext
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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
>
> ___
>
___
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 quote the section names in advance like the table of contents?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:32 PM, Sylvain Hubert wrote:
> Dear List,
>
> say I have three sections in the document:
>
>     \section{foo} ... \section{bar} ... \section{baz} ...
>
> Now I would like to auto generate a heavily customized table of contents
> like the following text, which cannot be done by the stock \placecontent
> in general, and put it into the preface:
>
>    This book has 3 sections: foo, bar, and baz.

How about the following?

\starttext
as in \about[section-one], \about[section-two],
\about[section-three]...

\section[section-one]{Section One}
\section[section-two]{Section Two}
\section[section-three]{Section Three}
\stoptext

Pablo
--
http://www.ousia.tk
___
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 quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Dear List,

say I have three sections in the document:

\section{foo} ... \section{bar} ... \section{baz} ...

Now I would like to auto generate a heavily customized table of contents
like the following text, which cannot be done by the stock \placecontent in
general, and put it into the preface:

   This book has 3 sections: foo, bar, and baz.

The text generation should be trivial with lua, but I don't know how such
forward reference of section names works. Could anyone help me with it?

Thanks in advance.

Best,
Sylvain
___
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] Quote is broken

2017-07-12 Thread Hans Hagen

On 7/12/2017 7:43 AM, Henri Menke wrote:

Dear list,

the example below throws an error.


\def\typo_delimited_repeat_indeed (n missing)



Cheers, Henri

---

\setupdelimitedtext[quote][repeat=yes]
\starttext
\startquote
\stopquote
\stoptext

---

tex error   > tex error on line 4 in file /home/henri/test.mkvi: ! 
Undefined control sequence

 ...\flushpostponednodedata \typo_delimited_repeat
   \insertparagraphintro \typ...
\strut ->\relax \dontleavehmode
 \copy \strutbox
\typo_delimited_handle_left ...ion}\fi \fi \strut
   \ifhmode \penalty \plusten...
\typo_delimited_start_txt ..._handle_left \c!left
   \typo_delimited_start_cont...

\stopquote
l.4 \stopquote
___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Quote is broken

2017-07-11 Thread Henri Menke
Dear list,

the example below throws an error.

Cheers, Henri

---

\setupdelimitedtext[quote][repeat=yes]
\starttext
\startquote
\stopquote
\stoptext

---

tex error   > tex error on line 4 in file /home/henri/test.mkvi: ! 
Undefined control sequence

 ...\flushpostponednodedata \typo_delimited_repeat 
  \insertparagraphintro \typ...
\strut ->\relax \dontleavehmode 
\copy \strutbox 
\typo_delimited_handle_left ...ion}\fi \fi \strut 
  \ifhmode \penalty \plusten...
\typo_delimited_start_txt ..._handle_left \c!left 
  \typo_delimited_start_cont...
 
\stopquote 
l.4 \stopquote
___
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] \quote inside \emph

2016-01-18 Thread Hans Hagen

On 1/18/2016 3:19 AM, Aditya Mahajan wrote:

On Mon, 18 Jan 2016, Wolfgang Schuster wrote:


Hans Hagen 
18. Januar 2016 um 00:56


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide

Remove the default setting and for completeness sake add style/color
settings to the paragraph alternative.

\unexpanded\def\typo_delimited_par
 {\groupedcommand

{\dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext %
block?
 \typo_delimited_handle_left\c!left
+ \usedelimitedtextstyleandcolor\c!style\c!color
 \dostarttagged\t!delimitedcontent\empty}
{\dostoptagged
 \typo_delimited_handle_right\c!right
 \removelastskip
 \dostoptagged
 \typo_delimited_pop}}


I agree. Removing the default setting (style=normal) will be the
simplest solution.


ok (btw, in the past 'normal' was used as signal)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] \quote inside \emph

2016-01-17 Thread Hans Hagen

On 1/16/2016 6:55 PM, Aditya Mahajan wrote:

On Sat, 16 Jan 2016, Alan Bowen wrote:


When used in inside \emph, \quote puts the words cited into roman face.
Thus,

\starttext

\emph{The \quote{Problemata} in Medieval Times}

\emph{The \quote{\emph{Problemata}} in Medieval Times}

\stoptext

This seems odd. Should \quote not leave the style of the text as it is?
That is, should the output of line 1 not look like that of line 2?


The same question was asked recently on TeX.SE
http://tex.stackexchange.com/questions/286743/context-quote-command-resets-font-shape-is-this-a-bug


I think that this is just a bad default. You can use:

\setupdelimitedtext[quote][style=]


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] \quote inside \emph

2016-01-17 Thread Wolfgang Schuster

Hans Hagen 
18. Januar 2016 um 00:56


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide
Remove the default setting and for completeness sake add style/color 
settings to the paragraph alternative.


\unexpanded\def\typo_delimited_par
  {\groupedcommand
 
{\dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext 
% block?

  \typo_delimited_handle_left\c!left
+ \usedelimitedtextstyleandcolor\c!style\c!color
  \dostarttagged\t!delimitedcontent\empty}
 {\dostoptagged
  \typo_delimited_handle_right\c!right
  \removelastskip
  \dostoptagged
  \typo_delimited_pop}}

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] \quote inside \emph

2016-01-17 Thread Aditya Mahajan

On Mon, 18 Jan 2016, Wolfgang Schuster wrote:


Hans Hagen 
18. Januar 2016 um 00:56


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide
Remove the default setting and for completeness sake add style/color settings 
to the paragraph alternative.


\unexpanded\def\typo_delimited_par
 {\groupedcommand
{\dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext 
% block?

 \typo_delimited_handle_left\c!left
+ \usedelimitedtextstyleandcolor\c!style\c!color
 \dostarttagged\t!delimitedcontent\empty}
{\dostoptagged
 \typo_delimited_handle_right\c!right
 \removelastskip
 \dostoptagged
 \typo_delimited_pop}}


I agree. Removing the default setting (style=normal) will be the simplest 
solution.


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

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

[NTG-context] \quote inside \emph

2016-01-16 Thread Alan Bowen
When used in inside \emph, \quote puts the words cited into roman face.
Thus,

\starttext

\emph{The \quote{Problemata} in Medieval Times}

\emph{The \quote{\emph{Problemata}} in Medieval Times}

\stoptext

This seems odd. Should \quote not leave the style of the text as it is?
That is, should the output of line 1 not look like that of line 2?

Alan
___
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] \quote inside \emph

2016-01-16 Thread Wolfgang Schuster

Alan Bowen <mailto:bowenala...@gmail.com>
16. Januar 2016 um 15:26
When used in inside \emph, \quote puts the words cited into roman 
face. Thus,


\starttext

\emph{The \quote{Problemata} in Medieval Times}

\emph{The \quote{\emph{Problemata}} in Medieval Times}

\stoptext

This seems odd. Should \quote not leave the style of the text as it 
is? That is, should the output of line 1 not look like that of line 2?
Delimited texts (where \quote belongs to) set the upright font as 
default value for the style, see also 
http://tex.stackexchange.com/questions/286743/context-quote-command-resets-font-shape-is-this-a-bug


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] \quote inside \emph

2016-01-16 Thread Alan Bowen
I am inclined to agree, Aditya. At least it *is* odd in English typography.
Still thanks for the fix.

Alan

On Sat, Jan 16, 2016 at 12:55 PM, Aditya Mahajan <adit...@umich.edu> wrote:

> On Sat, 16 Jan 2016, Alan Bowen wrote:
>
> When used in inside \emph, \quote puts the words cited into roman face.
>> Thus,
>>
>> \starttext
>>
>> \emph{The \quote{Problemata} in Medieval Times}
>>
>> \emph{The \quote{\emph{Problemata}} in Medieval Times}
>>
>> \stoptext
>>
>> This seems odd. Should \quote not leave the style of the text as it is?
>> That is, should the output of line 1 not look like that of line 2?
>>
>
> The same question was asked recently on TeX.SE
> http://tex.stackexchange.com/questions/286743/context-quote-command-resets-font-shape-is-this-a-bug
>
> I think that this is just a bad default. You can use:
>
> \setupdelimitedtext[quote][style=]
>
> Aditya
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
___
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] \quote inside \emph

2016-01-16 Thread Aditya Mahajan

On Sat, 16 Jan 2016, Alan Bowen wrote:


When used in inside \emph, \quote puts the words cited into roman face.
Thus,

\starttext

\emph{The \quote{Problemata} in Medieval Times}

\emph{The \quote{\emph{Problemata}} in Medieval Times}

\stoptext

This seems odd. Should \quote not leave the style of the text as it is?
That is, should the output of line 1 not look like that of line 2?


The same question was asked recently on TeX.SE 
http://tex.stackexchange.com/questions/286743/context-quote-command-resets-font-shape-is-this-a-bug


I think that this is just a bad default. You can use:

\setupdelimitedtext[quote][style=]

Aditya


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

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

Re: [NTG-context] \quote inside \emph

2016-01-16 Thread Alan Bowen
Thanks, Wolfgang!

Alan


On Sat, Jan 16, 2016 at 11:31 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Alan Bowen <bowenala...@gmail.com>
> 16. Januar 2016 um 15:26
> When used in inside \emph, \quote puts the words cited into roman face.
> Thus,
>
> \starttext
>
> \emph{The \quote{Problemata} in Medieval Times}
>
> \emph{The \quote{\emph{Problemata}} in Medieval Times}
>
> \stoptext
>
> This seems odd. Should \quote not leave the style of the text as it is?
> That is, should the output of line 1 not look like that of line 2?
>
> Delimited texts (where \quote belongs to) set the upright font as default
> value for the style, see also
> http://tex.stackexchange.com/questions/286743/context-quote-command-resets-font-shape-is-this-a-bug
>
> Wolfgang
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-11-02 Thread Rik Kabel

On 2015-11-02 04:05, Hans Hagen wrote:

On 11/2/2015 9:53 AM, Hans Hagen wrote:


\definefontfeature [default][protrusion=quality]


btw that is bad, should be:

\definefontfeature [default][default][protrusion=quality]

as adding protrusion out of some quality argument doesn't go well with 
removing kerns and ligatures


Hans

Yes, definitely. Thank you for pointing that out. And thank you, in 
advance, for the fix.


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

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

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-11-02 Thread Hans Hagen

On 10/23/2015 8:40 PM, Rik Kabel wrote:

At Wolfgang’s request, a new thread for this subject. I have cleaned up
the example from the July 5 posting, but the problems are the same as
shown there. In July Alan suggested that there might a bug here, but
nothing has been done to address it since then. Wolfgang suggested
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that
method=font is required for proper protrusion handling for quotations.

 1. When \setupdelimitedtext[quotation][method=font] is present /and
//there is //no citation//in a footnote within a startquotation
block and a bibliography is produced/, compilation proceeds normally.
 2. When \setupdelimitedtext[quotation][method=font] is present /and
//there is a citation//in a footnote within a startquotation block
and a bibliography is produced,/ the compilation complains of a
missing right curly. When allowed to continue to completion the
protrusion for the opening quotation marks does not match the
protrusion for similar marks not produced through \startquotation.
Citations in footnotes outside quotation blocks are not a problem.
Without a bibliography (\placelistofpublications)
 3. When \setupdelimitedtext[quotation][method=font] is present, the
[right] option of \startblockquotation is treated as text within the
quotation. This can be resolved by adding “leftmargin=” to the
\setupdelimitedtext[quotation] command (but that complicates matters
when you want other alignments). Similarly, the [left] and [middle]
options are ignored as options and appear as text.
 4. When “method=font” is not present, protrusion for block quotations
(\startblockquotation … \stopblockquotation) is greater than and not
aligned with other protrusion.
 5. When “method=font” is not present, protrusion for non-block
quotations (\quotation{…}) is not done at all.
 6. With the older bibliography system, footnotes in citations in
quotation blocks do not cause a halt in compilation.
 7. With the older bibliography system, item 3 is still a problem, that
is, method=font appears to be inimical to the left, right, and
middle options for \startblockquotation without regard to the
bibliography system in use.


\showframe

\definefontfeature [default][protrusion=quality]
\setupalign[hz,hanging]

% The next line should allow \startquotation to protrude quotes properly
\setupdelimitedtext[quotation][method=font]

%==
% For testing with old regime, enable next and disable following
%\setupbibtex[database=sample.bib] % requires sample.bib in current
directory
%--
% For testing with new regime, disable above and enable following
\definebtxdataset  [sample] % finds and uses distribution sample.bib
\usebtxdataset [sample.bib]
%==

\starttext
\startparagraph
   There is a citation in the footnote to this standard
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}
\stopparagraph

\startparagraph
\startquotation[right]
   There is a citation in the footnote to this block
quotation\footnote{This footnote has a citation \cite[hh2010a].}
\stopquotation
\stopparagraph

\startparagraph
\startquotation[right]
   There is no citation in the footnote to this block
quotation\footnote{This footnote has no citation.}
\stopquotation
\stopparagraph

\startparagraph
   \quotation{There is a citation in the footnote to this non-block
quotation paragraph\footnote{This footnote has a citation
\cite[Eijkhout1991].}}
\stopparagraph

\startparagraph
   \quotation{There is no citation in the footnote to this non-block
quotation paragraph\footnote{This footnote has no citation.}}
\stopparagraph

\startparagraph
   “There is a citation in the footnote to this standard
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}”
\stopparagraph

\startparagraph
   “There is no citation in the footnote to this standard
paragraph\footnote{This footnote has no citation.}”
\stopparagraph

\blank[big]

%==
% For testing with old regime, enable next and disable following
%\placepublications
%--
% For testing with new regime, disable above and enable following
\placelistofpublications
%==

\stoptext


first hang in par fixed in the luatex engine so you have to wait till we 
release


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 / 

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-11-02 Thread Hans Hagen

On 11/2/2015 9:53 AM, Hans Hagen wrote:


\definefontfeature [default][protrusion=quality]


btw that is bad, should be:

\definefontfeature [default][default][protrusion=quality]

as adding protrusion out of some quality argument doesn't go well with 
removing kerns and ligatures


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] New btx code problem with quote protrusion, redux

2015-10-26 Thread Wolfgang Schuster

Rik Kabel 
23. Oktober 2015 um 20:40
At Wolfgang’s request, a new thread for this subject. I have cleaned 
up the example from the July 5 posting, but the problems are the same 
as shown there. In July Alan suggested that there might a bug here, 
but nothing has been done to address it since then. Wolfgang suggested 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that 
method=font is required for proper protrusion handling for quotations.


1. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is //no citation//in a footnote within a startquotation
   block and a bibliography is produced/, compilation proceeds normally.
2. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is a citation//in a footnote within a startquotation block
   and a bibliography is produced,/ the compilation complains of a
   missing right curly. When allowed to continue to completion the
   protrusion for the opening quotation marks does not match the
   protrusion for similar marks not produced through \startquotation.
   Citations in footnotes outside quotation blocks are not a problem.
   Without a bibliography (\placelistofpublications)

You have to change the following definition in publ-imp-default.mkvi:

\definebtx
  [\s!default:\s!list:title:article]
  [\s!default:\s!list:title]
- [\c!style=, % journal is set in italics
-  \c!command={\quotation\Word}]
+ [\c!style={\setcharactercasing[\v!Word]},
+  \c!command=\quotation]

3. When \setupdelimitedtext[quotation][method=font] is present, the
   [right] option of \startblockquotation is treated as text within the
   quotation. This can be resolved by adding “leftmargin=” to the
   \setupdelimitedtext[quotation] command (but that complicates matters
   when you want other alignments). Similarly, the [left] and [middle]
   options are ignored as options and appear as text.

When you use method=font context using a different rendering mechanism
for the quotation block without the optional argument.

4. When “method=font” is not present, protrusion for block quotations
   (\startblockquotation … \stopblockquotation) is greater than and not
   aligned with other protrusion.
5. When “method=font” is not present, protrusion for non-block
   quotations (\quotation{…}) is not done at all.

When you use the default method context puts the quotation marks
in a box which is only moved into the margin independant of protrusion.

6. With the older bibliography system, footnotes in citations in
   quotation blocks do not cause a halt in compilation.

See 2.

7. With the older bibliography system, item 3 is still a problem, that
   is, method=font appears to be inimical to the left, right, and
   middle options for \startblockquotation without regard to the
   bibliography system in use.

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

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

Re: [NTG-context] New btx code problem with quote protrusion

2015-10-23 Thread Wolfgang Schuster

Rik Kabel 
22. Oktober 2015 um 23:31
On 2015-07-05 19:21, Alan BRASLAU wrote:
> On Sun, 5 Jul 2015 18:52:40 -0400 > Rik Kabel 
 wrote: > >> Is this a bug, or simply 
something not yet ready with the new regime, >> or am I doing 
something wrong? > > This looks like a bug/interference in a situation 
that was not tested... > > Alan > 
___ 
> 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 > 
___ 
> This is still a problem. Is it a bug that will be addressed, or is 
the fix coming with a new release of the new bibliography system, or 
is it something that has to be worked around?


I also note that the method=font option for \setupdelimited text 
appears to be incompatible with the left option for \startquotation. 
The document compiles, but [left] appears as part of the text and is 
not acted on (and similarly for right and middle).

Create a new thread for this and post a minimal example.

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

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

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-10-23 Thread Rik Kabel

On 2015-10-23 14:40, Rik Kabel wrote:
At Wolfgang’s request, a new thread for this subject. I have cleaned 
up the example from the July 5 posting, but the problems are the same 
as shown there. In July Alan suggested that there might a bug here, 
but nothing has been done to address it since then. Wolfgang suggested 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that 
method=font is required for proper protrusion handling for quotations.


 1. When \setupdelimitedtext[quotation][method=font] is present /and
//there is //no citation//in a footnote within a startquotation
block and a bibliography is produced/, compilation proceeds normally.
 2. When \setupdelimitedtext[quotation][method=font] is present /and
//there is a citation//in a footnote within a startquotation block
and a bibliography is produced,/ the compilation complains of a
missing right curly. When allowed to continue to completion the
protrusion for the opening quotation marks does not match the
protrusion for similar marks not produced through \startquotation.
Citations in footnotes outside quotation blocks are not a problem.
Without a bibliography (\placelistofpublications)
 3. When \setupdelimitedtext[quotation][method=font] is present, the
[right] option of \startblockquotation is treated as text within
the quotation. This can be resolved by adding “leftmargin=” to the
\setupdelimitedtext[quotation] command (but that complicates
matters when you want other alignments). Similarly, the [left] and
[middle] options are ignored as options and appear as text.
 4. When “method=font” is not present, protrusion for block quotations
(\startblockquotation … \stopblockquotation) is greater than and
not aligned with other protrusion.
 5. When “method=font” is not present, protrusion for non-block
quotations (\quotation{…}) is not done at all.
 6. With the older bibliography system, footnotes in citations in
quotation blocks do not cause a halt in compilation.
 7. With the older bibliography system, item 3 is still a problem,
that is, method=font appears to be inimical to the left, right,
and middle options for \startblockquotation without regard to the
bibliography system in use.

Further testing shows that the failure to compile issue (#1 and #2 
above) is tied to processing @ARTICLE bib entries. The failure occurs in 
and out of footnotes and startquotation blocks. I really was too deep 
into a wrong view of the problem to see that before. That is pretty 
clearly a bug.


The issue with method=font and left, right, middle (#3, #4, #5 above) is 
still problematic. This is not tied to the bibliography system.


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

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

[NTG-context] New btx code problem with quote protrusion, redux

2015-10-23 Thread Rik Kabel
At Wolfgang’s request, a new thread for this subject. I have cleaned up 
the example from the July 5 posting, but the problems are the same as 
shown there. In July Alan suggested that there might a bug here, but 
nothing has been done to address it since then. Wolfgang suggested 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that 
method=font is required for proper protrusion handling for quotations.


1. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is //no citation//in a footnote within a startquotation
   block and a bibliography is produced/, compilation proceeds normally.
2. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is a citation//in a footnote within a startquotation block
   and a bibliography is produced,/ the compilation complains of a
   missing right curly. When allowed to continue to completion the
   protrusion for the opening quotation marks does not match the
   protrusion for similar marks not produced through \startquotation.
   Citations in footnotes outside quotation blocks are not a problem.
   Without a bibliography (\placelistofpublications)
3. When \setupdelimitedtext[quotation][method=font] is present, the
   [right] option of \startblockquotation is treated as text within the
   quotation. This can be resolved by adding “leftmargin=” to the
   \setupdelimitedtext[quotation] command (but that complicates matters
   when you want other alignments). Similarly, the [left] and [middle]
   options are ignored as options and appear as text.
4. When “method=font” is not present, protrusion for block quotations
   (\startblockquotation … \stopblockquotation) is greater than and not
   aligned with other protrusion.
5. When “method=font” is not present, protrusion for non-block
   quotations (\quotation{…}) is not done at all.
6. With the older bibliography system, footnotes in citations in
   quotation blocks do not cause a halt in compilation.
7. With the older bibliography system, item 3 is still a problem, that
   is, method=font appears to be inimical to the left, right, and
   middle options for \startblockquotation without regard to the
   bibliography system in use.


\showframe

\definefontfeature [default][protrusion=quality]
\setupalign[hz,hanging]

% The next line should allow \startquotation to protrude quotes properly
\setupdelimitedtext[quotation][method=font]

%==
% For testing with old regime, enable next and disable following
%\setupbibtex[database=sample.bib] % requires sample.bib in current 
directory

%--
% For testing with new regime, disable above and enable following
\definebtxdataset  [sample] % finds and uses distribution sample.bib
\usebtxdataset [sample.bib]
%==

\starttext
\startparagraph
  There is a citation in the footnote to this standard 
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}

\stopparagraph

\startparagraph
\startquotation[right]
  There is a citation in the footnote to this block 
quotation\footnote{This footnote has a citation \cite[hh2010a].}

\stopquotation
\stopparagraph

\startparagraph
\startquotation[right]
  There is no citation in the footnote to this block 
quotation\footnote{This footnote has no citation.}

\stopquotation
\stopparagraph

\startparagraph
  \quotation{There is a citation in the footnote to this non-block 
quotation paragraph\footnote{This footnote has a citation 
\cite[Eijkhout1991].}}

\stopparagraph

\startparagraph
  \quotation{There is no citation in the footnote to this non-block 
quotation paragraph\footnote{This footnote has no citation.}}

\stopparagraph

\startparagraph
  “There is a citation in the footnote to this standard 
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}”

\stopparagraph

\startparagraph
  “There is no citation in the footnote to this standard 
paragraph\footnote{This footnote has no citation.}”

\stopparagraph

\blank[big]

%==
% For testing with old regime, enable next and disable following
%\placepublications
%--
% For testing with new regime, disable above and enable following
\placelistofpublications
%==

\stoptext

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

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

Re: [NTG-context] New btx code problem with quote protrusion

2015-10-22 Thread Rik Kabel

On 2015-07-05 19:21, Alan BRASLAU wrote:
On Sun, 5 Jul 2015 18:52:40 -0400  > Rik Kabel  wrote: > >> Is this a bug, 
or simply something not yet ready with the new regime, >> or am I doing 
something wrong? > > This looks like a bug/interference in a situation 
that was not tested... > > Alan > 
___ 
> 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 > 
___ 
> This is still a problem. Is it a bug that will be addressed, or is 
the fix coming with a new release of the new bibliography system, or is 
it something that has to be worked around?


I also note that the method=font option for \setupdelimited text appears 
to be incompatible with the left option for \startquotation. The 
document compiles, but [left] appears as part of the text and is not 
acted on (and similarly for right and middle).


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

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

[NTG-context] New btx code problem with quote protrusion

2015-07-05 Thread Rik Kabel

List folk:

In the MWE below, everything builds cleanly if the \setupdelimitedtext 
line is removed. With it removed, however, quote marks protrusion looks 
poor when nearby quote marks in non-quotation text is allowed to 
protrude. The happens when there is a citation in a footnote in the 
quoted text.


Is this a bug, or simply something not yet ready with the new regime, or 
am I doing something wrong?


   % The next line should allow \startquotation to protrude quotes
   \setupdelimitedtext[quotation][method=font]
   % However, it causes the new bib code to fail when there is a
   %   footnote containing a citation in the quote. See
   % http://www.mail-archive.com/ntg-context@ntg.nl/msg35580.html
   \definefontfeature [default][protrusion=quality]
   \setupalign[hz,hanging]
   \usebtxdataset [xx.bib]
   \starttext
   \startparagraph\noindent
  There is a citation in the footnote to this standard
   paragraph\footnote{This footnote has a citation \cite[One].}
   \stopparagraph
   \startquotation[right]
  There is a citation in the footnote to this block
   quotation\footnote{This footnote has a citation \cite[Two].}
   \stopquotation
   \startparagraph\noindent
   “There is a citation in the footnote to this standard
   paragraph\footnote{This footnote has a citation \cite[One].}”
   \stopparagraph
   \placelistofpublications
   \stoptext

And the corresponding xx.bib file:

   @BOOK{One,
  author   = {A. N. Author},
  title= {A Book Title},
  year = {2017},
  publisher= {Self},
  address  = {sine loco},
   }

   @ARTICLE{Two,
  author   = {N. O. Author},
  title= {A Pipe},
  journal  = {The Journal},
  year = {2018},
  volume   = {32},
  number   = {3},
  pages= {42--69},
   }

--
Rik Kabel


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

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

Re: [NTG-context] New btx code problem with quote protrusion

2015-07-05 Thread Alan BRASLAU
On Sun, 5 Jul 2015 18:52:40 -0400
Rik Kabel cont...@rik.users.panix.com wrote:

 Is this a bug, or simply something not yet ready with the new regime,
 or am I doing something wrong?

This looks like a bug/interference in a situation that was not tested...

Alan
___
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] XeTeX, ConTeXt and font/filename quote char

2012-12-29 Thread Khaled Hosny
On Sun, Dec 23, 2012 at 02:50:06PM +0100, Hans Hagen wrote:
 On 12/23/2012 7:29 AM, Khaled Hosny wrote:
 Hi all,
 
 Some people have been complaining that it is not possible to use XeTeX
 with filenames containing parenthesis because XeTeX treats it as
 filename quote char and this it gets stripped. Anyway, after some
 searching it turned out this was added in 2004 for ConTeXt to workaround
 some MetaPost quotation issue[1].
 
 Now I'm not sure if this is still needed/used by ConTeXt and was
 wondering if it can be dropped now?
 
 I don't know .. tests must show this. I never use(d) XeTeX myself
 apart from generating a format to if that works. I have no problem
 with changing something given that it doesn't break something.

I’m going to drop it until somebody complains, it is such an obscure
feature, not documented anywhere and no other engine supports such
quoting.

Regards,
Khaled
___
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] XeTeX, ConTeXt and font/filename quote char

2012-12-23 Thread Hans Hagen

On 12/23/2012 7:29 AM, Khaled Hosny wrote:

Hi all,

Some people have been complaining that it is not possible to use XeTeX
with filenames containing parenthesis because XeTeX treats it as
filename quote char and this it gets stripped. Anyway, after some
searching it turned out this was added in 2004 for ConTeXt to workaround
some MetaPost quotation issue[1].

Now I'm not sure if this is still needed/used by ConTeXt and was
wondering if it can be dropped now?


I don't know .. tests must show this. I never use(d) XeTeX myself apart 
from generating a format to if that works. I have no problem with 
changing something given that it doesn't break something.


Hans

(who's never seen filenames with ( ) except for some titles in music 
repository)


-
  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] XeTeX, ConTeXt and font/filename quote char

2012-12-22 Thread Khaled Hosny
Hi all,

Some people have been complaining that it is not possible to use XeTeX
with filenames containing parenthesis because XeTeX treats it as
filename quote char and this it gets stripped. Anyway, after some
searching it turned out this was added in 2004 for ConTeXt to workaround
some MetaPost quotation issue[1].

Now I'm not sure if this is still needed/used by ConTeXt and was
wondering if it can be dropped now?

Regards,
Khaled

[1] http://tug.org/pipermail/xetex/2004-October/001215.html
___
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] drop-cap quote character

2011-02-18 Thread Philipp Gesang
On 2011-02-17 01:30:28, Daniel Lyons wrote:
 Ideally, \DropCap would notice a piece of leading punctuation and drop it as 
 well. Instead, it seems to look at the punctuation and give up.
 
 Example:
 
 
 \def\Drop {\DroppedCaps
   {} {Serif} {4\baselineskip} {2pt} {2\baselineskip} {3}}
 
 \starttext
 
 {\Drop A} \input knuth
 
 \page
 
 {\Drop “A} \input knuth
 \page
 
 \stoptext
 
 Advice?

Hi Daniel,

have you tried Taco’s Lettrine module?[1] It should do the job
and allows special handling of quotation marks as well:

···8

\usemodule[lettrine]
\starttext

\lettrine{“A}{} \input knuth

\blank[line]

\lettrine[Ante={“}]{A}{} \input knuth

\stoptext \endinput

···8

[1] http://modules.contextgarden.net/t-lettrine

Regards, Philipp



 
 Thanks again,
 
 — 
 Daniel Lyons
 
 ___
 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
 ___


pgpBYEm9bWF5p.pgp
Description: PGP signature
___
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] drop-cap quote character

2011-02-18 Thread Daniel Lyons
On Fri, Feb 18, 2011 at 01:45:34PM +0100, Philipp Gesang wrote:
 have you tried Taco’s Lettrine module?[1] It should do the job
 and allows special handling of quotation marks as well:

Works great! Thanks!

-- 
Daniel
___
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] drop-cap quote character

2011-02-17 Thread Daniel Lyons
Ideally, \DropCap would notice a piece of leading punctuation and drop it as 
well. Instead, it seems to look at the punctuation and give up.

Example:


\def\Drop {\DroppedCaps
  {} {Serif} {4\baselineskip} {2pt} {2\baselineskip} {3}}

\starttext

{\Drop A} \input knuth

\page

{\Drop “A} \input knuth
\page

\stoptext

Advice?

Thanks again,

— 
Daniel Lyons

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

2010-11-04 Thread Herbert Voss
the documation says, that \quote gives a single quote.
Why do I get a double one for french?

\starttext
\language[nl]\quote{Nederlandse},
\language[en]\quote{English},
\language[de]\quote{Deutsch} oder
\language[fr]\quote{Fran\cc ais}.
\stoptext

mkiv/TeXLive2010

Herbert
___
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] \quote

2010-11-04 Thread Alan BRASLAU
On Thursday 04 November 2010 12:47:44 Herbert Voss wrote:
 the documation says, that \quote gives a single quote.
 Why do I get a double one for french?
 
 \starttext
 \language[nl]\quote{Nederlandse},
 \language[en]\quote{English},
 \language[de]\quote{Deutsch} oder
 \language[fr]\quote{Fran\cc ais}.
 \stoptext
 
 mkiv/TeXLive2010
 
 Herbert

I do not know what is the correct usage in French,
but single guillemets do exist in unicode:

$ unicode guillemet

U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
UTF-8: c2 ab  UTF-16BE: 00ab  Decimal: #171;
«
Category: Pi (Punctuation, Initial quote)
Bidi: ON (Other Neutrals)
Character is mirrored

U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
UTF-8: c2 bb  UTF-16BE: 00bb  Decimal: #187;
»
Category: Pf (Punctuation, Final quote)
Bidi: ON (Other Neutrals)
Character is mirrored

U+2039 SINGLE LEFT-POINTING ANGLE QUOTATION MARK
UTF-8: e2 80 b9  UTF-16BE: 2039  Decimal: #8249;
‹
Category: Pi (Punctuation, Initial quote)
Bidi: ON (Other Neutrals)
Character is mirrored

U+203A SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
UTF-8: e2 80 ba  UTF-16BE: 203a  Decimal: #8250;
›
Category: Pf (Punctuation, Final quote)
Bidi: ON (Other Neutrals)
Character is mirrored

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

2010-11-04 Thread Thomas A. Schmitz

On Nov 4, 2010, at 12:59 PM, Alan BRASLAU wrote:

 On Thursday 04 November 2010 12:47:44 Herbert Voss wrote:
 the documation says, that \quote gives a single quote.
 Why do I get a double one for french?
 
 \starttext
 \language[nl]\quote{Nederlandse},
 \language[en]\quote{English},
 \language[de]\quote{Deutsch} oder
 \language[fr]\quote{Fran\cc ais}.
 \stoptext
 
 mkiv/TeXLive2010
 
 Herbert
 
 I do not know what is the correct usage in French,
 but single guillemets do exist in unicode:

I'm too lazy to look it up now, but most French books I read have double 
guillemets «» at the outer level and double quotes “” at the inner level. The 
definitions are in lang-ita.tex, and they do indeed define double guillemet for 
both quotation and quote:

\installlanguage
  [\s!fr]
  [\c!leftquote=\leftguillemot,
   \c!rightquote=\rightguillemot,
   \c!leftquotation=\leftguillemot,
   \c!rightquotation=\rightguillemot]

This looks wrong to me, but it's something French users must discuss. As for 
the OP: you can set up any symbol you like, e.g.

\setuplanguage[fr]
[leftquote=\upperleftdoublesixquote,
 rightquote=\upperrightdoubleninequote,
 leftquotation=\leftguillemot,
 rightquotation=\rightguillemot]

which is explained in chapter 7.3 of the manual. Btw, don't use something like 
\cc in mkiv, prefer proper Unicode characters.

Thomas
___
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] \quote

2010-11-04 Thread Khaled Hosny
On Thu, Nov 04, 2010 at 01:20:48PM +0100, Thomas A. Schmitz wrote:
 which is explained in chapter 7.3 of the manual. Btw, don't use something 
 like \cc in mkiv, prefer proper Unicode characters.

IINM, \cc and similar control sequences in MkIV will just insert the
proper Unicode character.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] \setupquotation affecting \quote

2009-10-09 Thread Matthijs Kooijman
Hi,

I've been trying to use \setupquotation, but it seems it doesn't just affect
\quotation, but also \quote. In particular, setting style to tfb enlarges the
font used by \quote and somehow removes the quotes from around it.

Seeing that there is also a \setupquote, and from looking at the code, I think
this is not supposed to happen. This happens with MkII as well as MkIV, it
seems.

The following example shows the problem:

  \starttext
  \quote{Foo}
  \setupquotation[style=tfb]
  \quote{Bar}
  \stoptext


Gr.

Matthijs


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Problem with nested \quotation and \quote

2007-11-02 Thread Wolfgang Schuster
2007/11/1, Thomas A. Schmitz [EMAIL PROTECTED]:

 Hi all,

 the attached test file shows a problem with nested \quotation and
 \quote commands: ConTeXt breaks the line after the first closing
 quote. There shouldn't be a line break there.

 Thanks!

 Thomas

 \definepapersize[test][width=7cm,height=3cm]

 \setuppapersize[test][test]

 \mainlanguage[en]



\unprotect

\unexpanded\def\dodelimitedtextpar
  {\dohandleleftdelimitedtext\c!left\relax
   \groupedcommand
 \donothing
 %{\dohandlerightdelimitedtext\c!right\removelastskip
 {\prewordbreak\dohandlerightdelimitedtext\c!right\removelastskip
  \popdelimitedtext}}

\protect

\starttext

 \quotation{He said, \quote{this demonstrates the problem with nested
 quotes.}}

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


[NTG-context] Problem with nested \quotation and \quote

2007-11-01 Thread Thomas A. Schmitz
Hi all,

the attached test file shows a problem with nested \quotation and  
\quote commands: ConTeXt breaks the line after the first closing  
quote. There shouldn't be a line break there.

Thanks!

Thomas

\definepapersize[test][width=7cm,height=3cm]

\setuppapersize[test][test]

\mainlanguage[en]

\starttext

\quotation{He said, \quote{this demonstrates the problem with nested  
quotes.}}

\stoptext

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

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


Re: [NTG-context] quote characters in luatex

2007-10-03 Thread Thomas A. Schmitz

On Oct 2, 2007, at 6:51 PM, Hans Hagen wrote:

 well, we can make a converter, much simpler than the greek  
 debabelizer -)

 Hans

What, even simpler! :-)

Of course, it could also be done via Arthur's code for a fea file.  
I'm just wondering if this behavior should be made the default.

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

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


[NTG-context] quote characters in luatex

2007-10-02 Thread Thomas A. Schmitz
In my experiments with luatex, there's one thing that may be  
surprising for many users: we have come to expect that the characters  
` and ' in our input files map to single left and single right  
quotation marks. luatex just typesets them verbatim, so to speak.  
It converts the combination `` and '' to double quotation marks,  
however. So my question: wouldn't it make sense to convert the single  
marks as well? (And please don't tell me Oh but you should use \quote 
{} instead of ` '. I know that, but I guess that many users have  
hundreds of old documents where they use `'. Moreover, ' also creates  
the apostrophe character, which cannot be avoided.)

Best

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

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


Re: [NTG-context] quote characters in luatex

2007-10-02 Thread Hans Hagen
Thomas A. Schmitz wrote:
 In my experiments with luatex, there's one thing that may be  
 surprising for many users: we have come to expect that the characters  
 ` and ' in our input files map to single left and single right  
 quotation marks. luatex just typesets them verbatim, so to speak.  
 It converts the combination `` and '' to double quotation marks,  
 however. So my question: wouldn't it make sense to convert the single  
 marks as well? (And please don't tell me Oh but you should use \quote 
 {} instead of ` '. I know that, but I guess that many users have  
 hundreds of old documents where they use `'. Moreover, ' also creates  
 the apostrophe character, which cannot be avoided.)

there is a feature:

texligatures=yes

for the rest, we can consider mappings but i fear that we end up in a 
quote mess

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] quote characters in luatex

2007-10-02 Thread Thomas A. Schmitz

On Oct 2, 2007, at 5:36 PM, Hans Hagen wrote:


 there is a feature:

 texligatures=yes

 for the rest, we can consider mappings but i fear that we end up in a
 quote mess


is that the same as tlig=yes ? This doesn't effect the single quote.  
I see the problem with the quote mess; in the old pdfTeX, it wasn't  
even possible to get the ' character at all. But it is a minor  
anoyance in terms of backward compatibility, I think.

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

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


Re: [NTG-context] quote characters in luatex

2007-10-02 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Oct 2, 2007, at 5:36 PM, Hans Hagen wrote:
 
 there is a feature:

 texligatures=yes

 for the rest, we can consider mappings but i fear that we end up in a
 quote mess

 
 is that the same as tlig=yes ? This doesn't effect the single quote.  

these quote thingies were actually font hacks, and depended on the 
fontencoding and such, which makes files non portable

 I see the problem with the quote mess; in the old pdfTeX, it wasn't  
 even possible to get the ' character at all. But it is a minor  
 anoyance in terms of backward compatibility, I think.

well, we can make a converter, much simpler than the greek debabelizer -)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] String single quote in \tt

2006-09-12 Thread Hans Hagen
Aditya Mahajan wrote:
 Unless I misunderstood noligature, this does not work.

 \pdfnoligatures\tentt
 \tt a = 'string' ;
 \bye

 Still gives me rightquote.
   
we need to ask taco ... he has to run your snippet in his mind/memory 

Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] String single quote in \tt

2006-09-12 Thread Taco Hoekwater
Hans Hagen wrote:
 Aditya Mahajan wrote:
 
 Unless I misunderstood noligature, this does not work.

 \pdfnoligatures\tentt
 \tt a = 'string' ;
 \bye

 Still gives me rightquote.
   
 we need to ask taco ... he has to run your snippet in his mind/memory

The single straight quote in 'Typewriter Text' encoding is \char 13,
the directional one is in the ' slot (no, i do not know why)

Something rude like

   \catcode`'=\active \def'{\char13 }
   \tt a = 'string' ;

works in this example, but may not be usable in practise.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] String single quote in \tt

2006-09-11 Thread Aditya Mahajan
Hi,

  I just noticed that in the preprocessing manual, the single quotes 
are wrong. Look at the output of

\starttext
\starttyping
   let a = 'string' ;
\stoptyping
\mono{ let a = 'string' ;}

{\tt let a = 'string' ;}
\stoptext

The singlequote character is converted into rightquote. This feature 
is also present in plain tex and Latex.

rightquote string rightquote does not look good in program listings. 
Isn't there some way to turn off these intelligent quotes in \tt?

Aditya

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] String single quote in \tt

2006-09-11 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,

   I just noticed that in the preprocessing manual, the single quotes 
 are wrong. Look at the output of

 \starttext
 \starttyping
let a = 'string' ;
 \stoptyping
 \mono{ let a = 'string' ;}

 {\tt let a = 'string' ;}
 \stoptext

 The singlequote character is converted into rightquote. This feature 
 is also present in plain tex and Latex.
   
maybe \noligatures 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] String single quote in \tt

2006-09-11 Thread Aditya Mahajan
On Mon, 11 Sep 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,

   I just noticed that in the preprocessing manual, the single quotes
 are wrong. Look at the output of

 \starttext
 \starttyping
let a = 'string' ;
 \stoptyping
 \mono{ let a = 'string' ;}

 {\tt let a = 'string' ;}
 \stoptext

 The singlequote character is converted into rightquote. This feature
 is also present in plain tex and Latex.

 maybe \noligatures

Unless I misunderstood noligature, this does not work.

\pdfnoligatures\tentt
\tt a = 'string' ;
\bye

Still gives me rightquote.

Aditya



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] latest ConTeXt and \quote

2006-08-30 Thread Alan Bowen
Thanks, Hans! I got today’s version and all is now well again.

Very best, Alan

On Aug 29, 2006, at 6:43 PM, Hans Hagen wrote:

 Alan Bowen wrote:
 I updated to 2006.08.29 11:11 and find now that \quote{} produces
 double quotes (� �) rather than single quotes (� �).  
 \quotation{}
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?


 a missing \else in:

 \def\dosetupdelimitedtext[#1][#2][#3]% #2 = optional level
   {\ifthirdargument
  \getparameters[\??ci#1:#2][#3]%
\else\ifsecondargument
  \getparameters[\??ci#1][#2]%
\else
  \getparameters[\??ci][#1]%
\fi\fi}

 (introduced when level specific settinsg were added)

 Hans

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] latest ConTeXt and \quote

2006-08-29 Thread Alan Bowen

On Aug 29, 2006, at 4:25 PM, Alan Bowen wrote:

 I updated to 2006.08.29 11:11 and find now that \quote{} produces
 double quotes (“ ”) rather than single quotes (“ ”). \quotation{}
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?

 Cheers, Alan
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

By single quotes, I mean ‘ ’.

A.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] latest ConTeXt and \quote

2006-08-29 Thread Hans Hagen
Alan Bowen wrote:
 I updated to 2006.08.29 11:11 and find now that \quote{} produces  
 double quotes (� �) rather than single quotes (� �). \quotation{}  
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?

   
a missing \else in:

\def\dosetupdelimitedtext[#1][#2][#3]% #2 = optional level
  {\ifthirdargument
 \getparameters[\??ci#1:#2][#3]%
   \else\ifsecondargument
 \getparameters[\??ci#1][#2]%
   \else
 \getparameters[\??ci][#1]%
   \fi\fi}

(introduced when level specific settinsg were added) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] latest ConTeXt and \quote

2006-08-29 Thread Hans Hagen
Alan Bowen wrote:
 On Aug 29, 2006, at 4:25 PM, Alan Bowen wrote:

   
 I updated to 2006.08.29 11:11 and find now that \quote{} produces
 double quotes (� �) rather than single quotes (� �). \quotation{}
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?

 Cheers, Alan
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 

 By single quotes, I mean � �.
   
hm, two questionmarks -) 

anyhow, fixed; i'm uploading a new beta 

there were reports on problems with overlays (i did clean up some code there) 
and figurebases but I need examples of that  


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] quote and quotation

2006-07-21 Thread Hans van der Meer
The \quote and \quotation macros surround text with quotation marks. These are made language dependent.In dutch the old way was an opening mark at the baseline and closing at the top of the letters; ConTeXt has been programmed this way.However, the lower quotation mark is less and less used in Dutch (vide Jan Renkema, Schrijfwijzer, 2002, p.382) and the English variants are now commonly used.This leads to two questions:1. is there a setup-macro that can be used? (switching language around before quote and changing back inside is a bit awkward);	\setupdelimitedtext[..][..]  is not documented in the manual, is this the one to use, and how?	I tried this but could not effect a change and from the code I could not deduce what to change.2. is this a case for changing ConTeXt's default for Dutch?Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] quote and quotation

2006-07-21 Thread Hans Hagen
Hans van der Meer wrote:
 The \quote and \quotation macros surround text with quotation marks. 
 These are made language dependent.
 In dutch the old way was an opening mark at the baseline and closing 
 at the top of the letters; ConTeXt has been programmed this way.
 However, the lower quotation mark is less and less used in Dutch (vide 
 Jan Renkema, Schrijfwijzer, 2002, p.382) and the English variants are 
 now commonly used.

 This leads to two questions:
 1. is there a setup-macro that can be used? (switching language around 
 before quote and changing back inside is a bit awkward);
 \setupdelimitedtext[..][..]� is not documented in the manual, is this 
 the one to use, and how?
 I tried this but could not effect a change and from the code I could 
 not deduce what to change.
you can put this in your cont-sys.tex file:

\setuplanguage
  [nl]
  [\c!leftquote=\upperleftsinglesixquote,
   \c!leftquotation=\upperleftdoublesixquote,
   \c!rightquote=\upperrightsingleninequote,
   \c!rightquotation=\upperrightdoubleninequote]

(of in some mine-def.tex and then do a \readfile{mine-def}{}{})

 2. is this a case for changing ConTeXt's default for Dutch?
no, those defaults are kind of frozen 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] quote and quotation

2006-07-21 Thread Mojca Miklavec
On 7/21/06, Hans van der Meer wrote:

 The \quote and \quotation macros surround text with quotation marks. These
 are made language dependent.
 In dutch the old way was an opening mark at the baseline and closing at the
 top of the letters; ConTeXt has been programmed this way.
 However, the lower quotation mark is less and less used in Dutch (vide Jan
 Renkema, Schrijfwijzer, 2002, p.382) and the English variants are now
 commonly used.

 This leads to two questions:
 1. is there a setup-macro that can be used? (switching language around
 before quote and changing back inside is a bit awkward);
  \setupdelimitedtext[..][..]  is not documented in the manual, is this the
 one to use, and how?
  I tried this but could not effect a change and from the code I could not
 deduce what to change.

\installlanguage
  [nl]
  [leftquote=\upperleftsinglesixquote,
   rightquote=\upperrightsingleninequote,
   leftquotation=\upperleftdoublesixquote,
   rightquotation=\upperrightdoubleninequote,
  ]

We also use two variants of quotation marks. I thought that having a
single option to switch between the two variants would be handy (and
easy to implement), but I don't know how to call it. If I need the
other variant of quotation marks I use the definition above.

 2. is this a case for changing ConTeXt's default for Dutch?

I doubt. There were too many texts written already and I guess that
people would get confused if the quotation marks would be changed at
once.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Follow up: Quote before chapter?

2006-02-17 Thread Hans Hagen
David Wooten wrote:
 Greetings,

 Having come to the same problem, I am curious whether a solution 
 presented itself to Gerben's inquiry.

 /Fri Mar 11 10:30:45 CET 2005/:

 I can make it more difficult even. I would like a chapter to start on�
 an odd (right side) page but when there is a quote that comes with the�
 chapter I want to have that appear on the opposing side.

 G
\def\MyChapter[#1]%
  {\doifsomething{#1}
 {\page[left]
  \setupheader[state=empty]
  \startnarrower[3*left,4*right]
  \getbuffer[#1]%
  \stopnarrower
  \page}
   \chapter}

\setuphead[section][page=right]

\setuppagenumbering[alternative=doublesided]

\starttext

\startbuffer[a]
\input ward
\stopbuffer
\startbuffer[b]
\input zapf
\stopbuffer

\MyChapter[a]{Test A} \input tufte
\MyChapter[] {Test X} \input bryson
\MyChapter[b]{Test B} \input knuth

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Follow up: Quote before chapter?

2006-02-16 Thread David Wooten
Greetings,Having come to the same problem, I am curious whether a solution presented itself to Gerben's inquiry.Fri Mar 11 10:30:45 CET 2005:I can make it more difficult even. I would like a chapter to start on an odd (right side) page but when there is a quote that comes with the chapter I want to have that appear on the opposing side.GMany thanks!David___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra space after \quote, \quotation

2006-02-06 Thread Taco Hoekwater


Alan Bowen wrote:
 \quote and \quotation generate an unwanted space after the closing  
 quote or quotation mark.
 
 To see the problem, try
 \starttext
 (\quote{Hello world!})
 (\quotation{Hello world!})
 \stoptext
 
 Is this old news or an artefact of recent changes?

It is definately recent because it did not happen in 20060202.
There is a missing percent sign in the new core-mis.tex:

--- core-mis.tex.orig   2006-02-06 10:20:00.514036364 +0100
+++ core-mis.tex2006-02-06 10:20:16.690357309 +0100
@@ -595,7 +595,7 @@
 \or
   \prewordbreak %\nobreak
   \hskip\hspaceamount\currentlanguage{#2}%
- \languageparameter#1
+ \languageparameter#1%
 \or
   \languageparameter#1%
 \fi


Cheers,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra space after \quote, \quotation

2006-02-06 Thread Hans Hagen
Taco Hoekwater wrote:
 It is definately recent because it did not happen in 20060202.
 There is a missing percent sign in the new core-mis.tex:

 --- core-mis.tex.orig   2006-02-06 10:20:00.514036364 +0100
 +++ core-mis.tex2006-02-06 10:20:16.690357309 +0100
 @@ -595,7 +595,7 @@
  \or
\prewordbreak %\nobreak
\hskip\hspaceamount\currentlanguage{#2}%
 - \languageparameter#1
 + \languageparameter#1%
  \or
\languageparameter#1%
  \fi
   
ok, fixed, 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra space after \quote, \quotation

2006-02-06 Thread Alan Bowen
Thanks, Taco, Hans.

Alan
On Feb 6, 2006, at 5:26 AM, Hans Hagen wrote:

 Taco Hoekwater wrote:
 It is definately recent because it did not happen in 20060202.
 There is a missing percent sign in the new core-mis.tex:

 --- core-mis.tex.orig   2006-02-06 10:20:00.514036364 +0100
 +++ core-mis.tex2006-02-06 10:20:16.690357309 +0100
 @@ -595,7 +595,7 @@
  \or
\prewordbreak %\nobreak
\hskip\hspaceamount\currentlanguage{#2}%
 - \languageparameter#1
 + \languageparameter#1%
  \or
\languageparameter#1%
  \fi

 ok, fixed,

 Hans

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] extra space after \quote, \quotation

2006-02-05 Thread Alan Bowen
\quote and \quotation generate an unwanted space after the closing  
quote or quotation mark.

To see the problem, try
\starttext
(\quote{Hello world!})
(\quotation{Hello world!})
\stoptext

Is this old news or an artefact of recent changes?

Best, Alan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Thomas A. Schmitz
Oops, that means your TeX installation is really old. Are you using Gerben's distribution? I'd recommend upgrading unless there's an important reason why you wouldn't want to do so. I'm afraid it'll be difficult to help you with your problem on your current installation, I don't have access to a machine with such a system.BestThomasOn Jan 31, 2006, at 2:04 AM, Matthias Weber wrote:Hello Thomas,  updmap-sys: command not found  (Mac OS X) ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Matthias Weber
As afollow-up, I tried moving the font files some place else.

I first hat the font directory in

~/Library/texmf/

and then put them into

~/Library/texmf//texmf/

where they are apparently found, this time the log file says the font  
metrics can't be found.
See below.  Do I have to generate them?

Matthias







TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

fixing engine variable : pdfetex
 executable : pdfetex
 format : cont-en
  inputfile : greektest
 output : pdftex
  interface : en
   current mode : none
TeX run : 1

This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
entering extended mode
(./greektest.tex

ConTeXt  ver: 2006.01.28 10:09  fmt: 2006.1.31  int: english  mes:  
english

language: language en is active
protectionstate 0
system  : cont-new loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:2 uk-ec:ec-2-2:2 de- 
 texnansi:tex
nansi-3-2:2 de-ec:ec-4-2:2 fr-texnansi:texnansi-5-2:2 fr- 
 ec:ec-6-2:2
es-ec:ec-7-2:2 pt-texnansi:texnansi-8-2:2 pt-ec:ec-9-2:2 it- 
 texnansi
:texnansi-10-2:2 it-ec:ec-11-2:2 nl-texnansi:texnansi-12-2:2  
nl-ec:ec-
 13-2:2 cz-il2:il2-14-2:2 cz-ec:ec-15-2:2 sk-il2:il2-16- 
 2:2 sk-ec:ec
-17-2:2 pl-pl0:pl0-18-2:2 pl-ec:ec-19-2:2 pl-qx:qx-20-2:2  
loaded
specials: tex,postscript,rokicki loaded
system  : greektest.top loaded
(./greektest.top
specials: loading definition file tpd
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : begin file greektest at line 1
system  : module t-greek loaded
(/Users/matthias/Library/texmf/tex/context/t-greek.tex
unicode : loading vector 31
(/usr/local/teTeX/share/texmf.local/tex/context/base/unic-031.tex)
encoding: coding agr is loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/enco-agr.tex)) 
kpathsea: Running mktextfm genagr-l-GentiumAlt
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input genagr-l-GentiumAlt
This is METAFONT, Version 2.71828 (Web2C 7.5.5)
kpathsea: Running mktexmf genagr-l-GentiumAlt

! I can't find file `genagr-l-GentiumAlt'.
* ...:=1; nonstopmode; input genagr-l-GentiumAlt

Please type another input file name
! Emergency stop.
* ...:=1; nonstopmode; input genagr-l-GentiumAlt

Transcript written on mfput.log.
grep: genagr-l-GentiumAlt.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;  
input genagr-l-GentiumAlt' failed to make genagr-l-GentiumAlt.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font \**GreekFont**=genagr-l-GentiumAlt at 14.39996pt not loadable:  
Metric (T
FM) file not found.
to be read again
\relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
   \let  
\localrelativefontsiz...

\directsetup ...:#1}{\csname \??su :#1\endcsname }
   \empty
\startgreek ...\getvalue {\??be greek\c!commands }
   \dostartattributes  
{\??be ...
l.7  \startgreek

?
Process aborted


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Hans Hagen
Matthias Weber wrote:
 As afollow-up, I tried moving the font files some place else.

 I first hat the font directory in

 ~/Library/texmf/

 and then put them into

 ~/Library/texmf//texmf/

   
Library/texmf/fonts afm|tfm|type1|truetype|otf|vf|map|end 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Taco Hoekwater


Matthias Weber wrote:
 i) \eqalign breaks (as noted before on this list, I have to see whether 
 there is a fix... :(

working on that...



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Matthias Weber
Yes, there I had them in the first place, getting

fonts   : resetting map file list
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-public-lm
fonts   : using map file: tasgreek
(/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) [1.1 
{/usr/loc
al/teTeX/share/texmf.local/fonts/map/pdftex/context/original- 
empty.map}{/usr/lo
cal/teTeX/share/texmf.local/fonts/map/pdftex/context/original- 
base.map}{/usr/lo
cal/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-public-lm.map} 
{/usr/loc
al/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base.map}{/usr/ 
local/teT
eX/share/texmf.local/fonts/map/pdftex/context/8r-base.map}{/usr/local/ 
teTeX/sha
re/texmf.local/fonts/map/pdftex/context/t5-base.map}{/usr/local/teTeX/ 
share/tex
mf.local/fonts/map/pdftex/context/original-ams-base.map}{/usr/local/ 
teTeX/share
/texmf.local/fonts/map/pdftex/context/original-public-lm.map}{/Users/ 
matthias/L
ibrary/texmf/fonts/map/tasgreek.map}
checksum mismatch in local font genagr-raw-GentiumAlt in virtual font  
genagr-l-
GentiumAlt.vf ignored.]
systems : end file greektest at line 12
)
(see the transcript file for additional information){/Users/matthias/ 
Library/te
xmf/fonts/enc/dvips/base/greek/genagr.enc}
Error: pdfetex (file GentiumAlt.ttf): cannot open TrueType font file  
for readin
g
== Fatal error occurred, the output PDF file is not finished!

return code : 65280




On Jan 31, 2006, at 10:33 AM, Hans Hagen wrote:

 Matthias Weber wrote:
 As afollow-up, I tried moving the font files some place else.

 I first hat the font directory in

 ~/Library/texmf/

 and then put them into

 ~/Library/texmf//texmf/


 Library/texmf/fonts afm|tfm|type1|truetype|otf|vf|map|end

 Hans

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Taco Hoekwater


Matthias Weber wrote:
 checksum mismatch in local font genagr-raw-GentiumAlt in virtual font  
 genagr-l-
 GentiumAlt.vf ignored.]
 systems : end file greektest at line 12

Warnings like this used to mean that you had a mismatch where you
have a virtual font (name.vf) file, but that the matching metric
file (name.tfm) is not supposed to be a virtual font. This may be
the thing that is confusing pdftex? Too many (.vf) files instead of
missing files?

Cheers,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Hans Hagen
Taco Hoekwater wrote:
 Matthias Weber wrote:
   
 i) \eqalign breaks (as noted before on this list, I have to see whether 
 there is a fix... :(
 

 working on that...
   
i'm syncing ... will take some time so you can pick up a new version in a while 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Hans Hagen
Matthias Weber wrote:
 Yes, there I had them in the first place, getting
   

 checksum mismatch in local font genagr-raw-GentiumAlt in virtual font  
 genagr-l-
 GentiumAlt.vf ignored.]
   
sounds like the vf file os corrupt
 systems : end file greektest at line 12
 )
   

 Error: pdfetex (file GentiumAlt.ttf): cannot open TrueType font file  
 for readin
 g
 == Fatal error occurred, the output PDF file is not finished!
   
make sure that the map file points to a ttf file that exists or a pfb file

Hans  

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Thomas A. Schmitz

On Jan 31, 2006, at 3:42 PM, Matthias Weber wrote:

 (see the transcript file for additional information){/Users/ 
 matthias/Library/te
 xmf/fonts/enc/dvips/base/greek/genagr.enc}
 Error: pdfetex (file GentiumAlt.ttf): cannot open TrueType font  
 file for readin
 g
 == Fatal error occurred, the output PDF file is not finished!


Have a look at the documentation: the font is not included, you need  
to download it first...  I f you want a font that works right away, try

\setupgreek[font=Ibycus,scale=1.2]

Good luck

Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-31 Thread Matthias Weber
Great, this works now!

That was definitely the easiest fix of the day.

Thanks a lot.

Matthias

On Jan 31, 2006, at 12:54 PM, Thomas A. Schmitz wrote:


 On Jan 31, 2006, at 3:42 PM, Matthias Weber wrote:

 (see the transcript file for additional information){/Users/
 matthias/Library/te
 xmf/fonts/enc/dvips/base/greek/genagr.enc}
 Error: pdfetex (file GentiumAlt.ttf): cannot open TrueType font
 file for readin
 g
 == Fatal error occurred, the output PDF file is not finished!


 Have a look at the documentation: the font is not included, you need
 to download it first...  I f you want a font that works right away,  
 try

 \setupgreek[font=Ibycus,scale=1.2]

 Good luck

 Thomas
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Short greek quote in otherwise english text

2006-01-29 Thread Matthias Weber
Hello,

I'd like to include a short quote in classical greek with all  
diacritics in a ConTeXt  document
which is otherwise plain english. What is a good way of doing this?  
Do I need to change the encoding?

Thanks,
Matthias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-29 Thread Alan Bowen
Matthias—

I would recommend using Thomas Schmitz’ Greek module (http:// 
modules.contextgarden.net/t-greek). It works very well for me.

Alan

On Jan 29, 2006, at 1:19 PM, Matthias Weber wrote:

 Hello,

 I'd like to include a short quote in classical greek with all
 diacritics in a ConTeXt  document
 which is otherwise plain english. What is a good way of doing this?
 Do I need to change the encoding?

 Thanks,
 Matthias
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-29 Thread Matthias Weber
Thanks, Alan,


this package looks nice, but I can't figure out where to put things,  
despite instructions...

I unzip texms.zip and get two directories, which I am supposed to put  
into the texmf tree. I tried it with
the directory (on my Mac)

/usr/local/teTeX/share/texmf/

and put all files form the downloaded texmf.zip into the  
corresponding subdirectories
(is there an easy way -- on a Mac, I had to authenticate each copy).
Then I ran sudo texhash and sudo updmap --enable Map tasgreek.map.

The first time I got

!!! ERROR! The map file `tasgreek.map' has not been found at all.

and subsequent times  Map files not recreated., which sounds  
suspicious.

Then, running a simple test file shows that the greek module is being  
loaded, I get n error message, but also
no greek text in the output :(

Any hints? I probably have messed up my texmf tree now...

Thanks in advance,

Matthias

On Jan 29, 2006, at 1:36 PM, Alan Bowen wrote:

 Matthias—

 I would recommend using Thomas Schmitz’ Greek module (http://
 modules.contextgarden.net/t-greek). It works very well for me.

 Alan

 On Jan 29, 2006, at 1:19 PM, Matthias Weber wrote:

 Hello,

 I'd like to include a short quote in classical greek with all
 diacritics in a ConTeXt  document
 which is otherwise plain english. What is a good way of doing this?
 Do I need to change the encoding?

 Thanks,
 Matthias
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Short greek quote in otherwise english text

2006-01-29 Thread Thomas A. Schmitz
That's due to a change in the TeX Directory Structure. Try running

sudo updmap-sys --enable Map tasgreek.map

and see if that solves your problem.

Good luck

Thomas

On Jan 30, 2006, at 1:01 AM, Matthias Weber wrote:

 I unzip texms.zip and get two directories, which I am supposed to put
 into the texmf tree. I tried it with
 the directory (on my Mac)

 /usr/local/teTeX/share/texmf/

 and put all files form the downloaded texmf.zip into the
 corresponding subdirectories
 (is there an easy way -- on a Mac, I had to authenticate each copy).
 Then I ran sudo texhash and sudo updmap --enable Map tasgreek.map.

 The first time I got

 !!! ERROR! The map file `tasgreek.map' has not been found at all.

 and subsequent times  Map files not recreated., which sounds
 suspicious.


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] straight single quote

2005-05-17 Thread Stuart Jansen
While I appreciate TeX's support for attractive curly quotes, when
representing console text it is important to use straight single and
double quotes. I've been googling, exploring the list archives, reading
the source, and beating my head against a nice blue pillar over by the
window. None of these approaches has resulting in a straight single
quote.

What is the best way to get a straight single quote that matches the
straight double quote of the current font?

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Two problems with my chapter quote setup

2005-03-21 Thread h h extern
Gerben Wierda wrote:
On 20 Mar 2005, at 18:05, Patrick Gundlach wrote:
[...]
http://mail.rna.nl/~gerben/problem-test.tar.gz

I get only a blank page.

If you open problem-test/products/prd_book.pdf from the archive you will 
see that on the page numbered 7 (the 9th page in the PDF file) there is 
text. At that stage the frontmatter ends and the first chapter should 
start. It should start with the quote on page 8 (without a page number) 
and the start of the chapter on page 9. But what actually happens is 
that 8 and 9 are empty pages with a page number and the quote is on page 
10 and the chapter starts on 11.

I suspect that \stopfrontmatter forces a page. Hans?
indeed
  \setupsectionblock [frontpart] [page=] % yes by default
the reason is that marks needs to be synchronized; if you add your own \page 
command, make sure that you do it at the right moment

page changes are always a bit tricky esp since one wants header etc to be nicely 
in sync as well; also,

\page some node \page
can introduce empty pages (tex related, not so much context)
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Repost: Two problems with my chapter quote setup (Modified by Gerben Wierda)

2005-03-21 Thread h h extern
Gerben Wierda wrote:
I forgot one part at the end. Here it is again.
I've got this in my environment file:
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
   ^^ no
\startalignment[left]%
\startnarrower[4*left] \noindent{\hyphenpenalty 1\em #1}%
    see below
\stopnarrower\stopalignment\stoptext\blank}
   no
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
  ^^ space at top is discarded, use [force,2*big]
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]
I've got two problems with this setup:
a bit more readable (less code in key/val)
\setuphead
  [chapter]
  [page=,
   before=\setups{chapter:before},
   after=\setups{chapter:after}]
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \setups[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\noheaderandfooterlines
\blank[force,2*big]
\stopsetups
\startsetups [chapter:after]
\blank[3*big]
\stopsetups
\setupheadertexts[header]
\setupfootertexts[footer]
\starttext
\startsetups [chapter:quote]
For what can a man accomplish that has not been done
a million times before? What can he say that he will not
find in Lao-Tse or the Bhagavadgita or the Prophet Isaiah?
\stopsetups
\chapter{TEST}
\stoptext
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Two problems with my chapter quote setup

2005-03-20 Thread Patrick Gundlach

[...]

 http://mail.rna.nl/~gerben/problem-test.tar.gz

I get only a blank page.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Two problems with my chapter quote setup

2005-03-20 Thread Gerben Wierda
On 20 Mar 2005, at 18:05, Patrick Gundlach wrote:
[...]
http://mail.rna.nl/~gerben/problem-test.tar.gz
I get only a blank page.
If you open problem-test/products/prd_book.pdf from the archive you 
will see that on the page numbered 7 (the 9th page in the PDF file) 
there is text. At that stage the frontmatter ends and the first chapter 
should start. It should start with the quote on page 8 (without a page 
number) and the start of the chapter on page 9. But what actually 
happens is that 8 and 9 are empty pages with a page number and the 
quote is on page 10 and the chapter starts on 11.

I suspect that \stopfrontmatter forces a page. Hans?
G
Patrick
--
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Two problems with my chapter quote setup

2005-03-20 Thread Peter Münster
On Sun, 20 Mar 2005, Gerben Wierda wrote:

 On 20 Mar 2005, at 18:05, Patrick Gundlach wrote:
 
  http://mail.rna.nl/~gerben/problem-test.tar.gz
 
  I get only a blank page.
 
 If you open problem-test/products/prd_book.pdf from the archive you 
 will see that on the page numbered 7 (the 9th page in the PDF file) 
 there is text. At that stage the frontmatter ends and the first chapter 
 should start. It should start with the quote on page 8 (without a page 
 number) and the start of the chapter on page 9. But what actually 
 happens is that 8 and 9 are empty pages with a page number and the 
 quote is on page 10 and the chapter starts on 11.
 
 I suspect that \stopfrontmatter forces a page. Hans?

I didn't download your archive, but perhaps your problem is related to
http://contextgarden.net/Empty_page_at_the_end
Greetings, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Two problems with my chapter quote setup

2005-03-20 Thread Gerben Wierda
On 20 Mar 2005, at 23:34, Peter Münster wrote:
On Sun, 20 Mar 2005, Gerben Wierda wrote:
On 20 Mar 2005, at 18:05, Patrick Gundlach wrote:
http://mail.rna.nl/~gerben/problem-test.tar.gz
I get only a blank page.
If you open problem-test/products/prd_book.pdf from the archive you
will see that on the page numbered 7 (the 9th page in the PDF file)
there is text. At that stage the frontmatter ends and the first 
chapter
should start. It should start with the quote on page 8 (without a page
number) and the start of the chapter on page 9. But what actually
happens is that 8 and 9 are empty pages with a page number and the
quote is on page 10 and the chapter starts on 11.

I suspect that \stopfrontmatter forces a page. Hans?
I didn't download your archive, but perhaps your problem is related to
http://contextgarden.net/Empty_page_at_the_end
Yes, that is it! Thanks.
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Repost: Two problems with my chapter quote setup (Modified by Gerben Wierda)

2005-03-19 Thread Gerben Wierda
I forgot one part at the end. Here it is again.
I've got this in my environment file:
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
\startalignment[left]%
\startnarrower[4*left] \noindent{\hyphenpenalty 1\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]
I've got two problems with this setup:
First, even with the \hyphenpenalty I get this line breaking:
For what can a man accomplish that has not been done
a million times before? What can he say that he will not
find in Lao-Tse or the Bhagavad-gita or the Prophet Isa-
iah?
John Steinbeck  Sweet Thursday
(Interestingly, when I copy/paste this from Apple's Preview.app I get
For what can a man accomplish that has not been done a million times  
before? What can he say that he will not find in Lao-Tse or the  
Bhagavad-gita or the Prophet Isaiah? John Steinbeck  Sweet Thursday)

no -, no line break, etc. Anyway: this line breaking is really ugly. I  
can fix this by hand, but I'd rather have this working automatically.

My second problem is that I get two empty numbered pages between  
chapters. As in
page 13: last text of chapter 1
page 14: empty page with page number
page 15: empty page with page number
page 16: page with quote and no page number
page 17: first page of chapter 2 no page number

I'd like to get rid of pages 14 and 15. I think I need to only do a  
page=left when I am on a right page at that time (page=even has the  
same result)

I even tried:
\setuphead[chapter]
[page=disable,
 
before={\page[even]\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Two problems with my chapter quote setup

2005-03-19 Thread Patrick Gundlach
Gerben,

do you have a minimal source file to let us try out?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Two problems with my chapter quote setup

2005-03-19 Thread Gerben Wierda
I will try to create one. How do I again put in a series of tufte?
G
On 19 Mar 2005, at 21:09, Patrick Gundlach wrote:
Gerben,
do you have a minimal source file to let us try out?
Patrick
--
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Two problems with my chapter quote setup

2005-03-19 Thread Patrick Gundlach
Hi,


 I will try to create one. How do I again put in a series of tufte?

\dorecurse{20}{\input tufte \par}


Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >