ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* minimal example of some problems
@ 2010-04-04  2:48 Michael Saunders
  2010-04-04  3:37 ` Aditya Mahajan
  2010-04-04  5:49 ` Michael Saunders
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Saunders @ 2010-04-04  2:48 UTC (permalink / raw)
  To: ntg-context

Aditya:

>>>> 1. columns and marginal notes conflict:
>>>
>>> For some of the issues, it would be perhaps a good idea to make proper
>>> bug-reports (with minimal example of course).
>>
>> In some other venue?
>
>In a separate thread, with a minimal example, that one can copy-paste and
>see the error. Trying to guess what is wrong is difficult.

I tried that several times and got no response.  Since you insist on
seeing lots of lorem ipsum, the following example:


\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][default][onum=yes,onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]
\definefontfeature[su][body][sups=yes,ordn=yes]

 \usetypescriptfile[type-garamond]

\starttypescript [MTbook]
    \definetypeface[MTbook][rm][serif][garamondMD][optical]
\stoptypescript

\usetypescript[MTbook]

\setupalign[hanging,hz]
\setupbodyfont[MTbook,12pt]%
\mainlanguage[en-us]

\definepapersize[MTS][width=823pt,height=462pt]
\definepapersize[MTA][width=823pt,height=462pt]
\setuppapersize[MTA][MTS]
\setuplayout[width=604.46pt,height=462pt,%
topspace=3pt,bottomspace=0pt,lines=30,header=21.4pt,footer=21.4pt,%
headerdistance=7.2pt,footerdistance=7.2pt,%
leftedgedistance=0pt,rightedgedistance=0pt,%
leftmargin=95pt,rightmargin=95pt,%
leftmargindistance=10pt,rightmargindistance=10pt,%
leftedge=11.5pt,rightedge=11.5pt,%
cutspace=0pt,backspace=109.5pt,%
grid=verytolerant]

\showgrid


\setupcolumns[n=2,rule=off,distance=20pt]
\setupinmargin[style=\ss,align=outer]


\setupfootnotedefinition[location=serried,distance=0.5em]
\newcommand{\fnstyle}{\switchtobodyfont[12pt]\addff{su}}
\setupnote[footnote][location=columns,numbercommand=\fnstyle,textcommand=\fnstyle\tfa,align={normal,hanging},interaction=yes]


\setupinteraction[state=start,color=darkgreen,contrastcolor=darkred]
\setupinteractionscreen[option=fit,view=fit]
\setupcombinedlist[content][interaction=all,textcolor=black]
\showlayoutcomponents

\starttext
\startcolumns
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis aliquam
sapien nec ligula aliquam eu tempor quam elementum. Etiam tellus
justo, pellentesque non luctus a, adipiscing ac mi. Nulla nec lorem
quis ante blandit laoreet vitae sed purus. Donec quis quam nec massa
ullamcorper condimentum at sit amet ante. Quisque ac nisl nibh.
Aliquam pulvinar pharetra purus suscipit dictum. Cras adipiscing sem
id tortor commodo nec mattis felis ultricies. Sed eget neque eget arcu
dictum feugiat. Nulla at congue ligula. Aliquam a magna et erat
interdum auctor. Ut consectetur sem ac massa congue ut consequat sem
elementum. Quisque ac justo enim. Donec et enim eu risus fermentum
lacinia at a odio. Sed egestas ligula ullamcorper risus accumsan
hendrerit. Integer placerat lectus sed eros porta accumsan.
Pellentesque elementum, urna eu tincidunt mollis, elit dolor
scelerisque diam, sed commodo nisl odio sagittis erat. Ut consequat
dolor enim, eget euismod arcu. In hac habitasse platea dictumst. Cras
adipiscing erat eu enim hendrerit quis euismod orci vehicula.

Sed pharetra porta lacinia. Nullam at lacus et sem venenatis consequat
ut nec eros. Donec diam elit, malesuada nec aliquam in, elementum vel
mi. Etiam quis euismod dui. Nunc sit amet eros vel erat vehicula
accumsan. Cras vulputate magna vitae urna fermentum nec eleifend
tortor dignissim. Suspendisse at velit id turpis gravida commodo sed
quis nulla. Cras id urna vel dui facilisis convallis. Cum sociis
natoque penatibus et magnis dis parturient montes, nascetur ridiculus
mus. Pellentesque habitant morbi tristique senectus et netus et
malesuada fames ac turpis egestas. Phasellus pulvinar auctor metus,
non rutrum risus ornare a. Proin purus nisl, fringilla at congue ac,
imperdiet non velit. Sed magna libero, pellentesque ut vestibulum sit
amet, euismod ac nulla. Proin egestas, mi at convallis accumsan,
lectus erat tincidunt magna, quis ullamcorper arcu dolor et dui.
Maecenas iaculis erat aliquam augue pellentesque aliquam. Donec in
odio sapien, ac iaculis risus. In tempus nulla tristique ante dapibus
nec accumsan velit convallis. Sed imperdiet tincidunt turpis aliquam
porta.

Pellentesque\footnote{Integer libero velit, accumsan at porttitor et,
gravida et ligula. Maecenas vestibulum convallis metus, vitae
ullamcorper diam aliquet eget. Sed id lorem nec nibh dignissim
bibendum. Cum sociis natoque penatibus et magnis dis parturient
montes, nascetur ridiculus mus. Praesent in arcu a nunc rutrum
faucibus. Ut ornare, est vitae viverra luctus, sapien eros malesuada
felis, id facilisis ipsum ligula sit amet purus. Sed libero dui,
consectetur rhoncus laoreet non, faucibus quis est. Aenean non lacus
felis, sit amet tempor felis. Fusce gravida sem arcu, id hendrerit
est. Ut nec ligula nunc, sed pulvinar risus. Cras ac purus sem, eget
posuere enim. Quisque sem velit, accumsan sit amet interdum vitae,
laoreet ac tellus. Curabitur tempus, erat sed dapibus volutpat, dolor
lacus faucibus ante, ut iaculis nunc nisl in eros. Sed varius arcu id
lectus blandit a consequat massa euismod. Maecenas magna diam,
elementum et viverra sit amet, dignissim in diam. Etiam volutpat
sollicitudin orci, nec consequat dui commodo vel. Fusce vel dignissim
mauris. Aenean consectetur lorem eu dui auctor ut elementum nibh
porta. Cum sociis natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Aenean dignissim aliquam sodales.

Nam sagittis dui eget quam scelerisque condimentum. Donec varius nunc
purus. Cras nulla dui, sodales et lobortis ac, ornare vitae justo.
Donec dapibus pharetra tellus pulvinar ornare. Phasellus consequat
luctus urna vitae dignissim. Vivamus euismod est nulla. Phasellus
pharetra justo eu lectus luctus in dapibus dolor egestas. Nunc varius
porttitor mi a vehicula. Integer rutrum, urna non auctor fringilla,
elit dolor cursus tortor, quis iaculis tellus magna id odio. Duis
porta ultrices euismod. Phasellus in vestibulum orci. Cras eget porta
dui.

Donec tincidunt adipiscing dolor, eu ultricies neque cursus at. Proin
id ligula nec felis aliquet mollis. Proin dolor mi, iaculis at rutrum
eget, pulvinar et dolor. Donec vitae tortor sit amet justo fermentum
ornare ut ac turpis. Nullam et ligula sed dui luctus venenatis. Nam at
egestas libero. Pellentesque luctus elit at justo lobortis porta. Sed
in nulla neque. Proin tortor eros, molestie semper facilisis id,
egestas id dolor. Etiam metus neque, imperdiet vel venenatis sit amet,
facilisis eu lectus. Nullam varius tristique justo, sed scelerisque
diam viverra congue. In turpis eros, laoreet sit amet suscipit vitae,
tincidunt quis est. Pellentesque tellus justo, egestas sit amet
iaculis at, consectetur eget arcu. Sed ut placerat augue. } id sapien
et erat congue rhoncus ac in massa. Cum sociis natoque penatibus et
magnis dis parturient montes, nascetur ridiculus mus. Etiam risus
lorem, dignissim sollicitudin posuere vel, fringilla nec risus. Nam
molestie feugiat pharetra. Donec ac odio justo. Nam semper tellus at
enim hendrerit dapibus. Phasellus eu justo non libero vulputate
tincidunt non at erat. Phasellus non nisl lectus, sit amet imperdiet
sapien. Curabitur vitae enim quis metus pellentesque commodo sed a
lectus. Phasellus non sapien enim. Etiam ac est nec justo lacinia
faucibus at hendrerit tellus. Suspendisse ultricies leo id est ornare
pharetra. Aenean varius eros id lectus pulvinar consectetur at eu
purus. Pellentesque libero leo, scelerisque ultrices suscipit sed,
sagittis in velit. Mauris sed diam sit amet mi cursus luctus. Aliquam
sollicitudin risus sit amet lacus lacinia aliquet. Nullam metus enim,
fermentum ac molestie a, bibendum sit amet leo. Nam eget sapien justo.
Phasellus porttitor lacus nec eros volutpat ut scelerisque mi
placerat. Suspendisse potenti.

Integer odio lorem, congue suscipit placerat id, luctus id libero. In
hac habitasse platea dictumst. Suspendisse nibh lorem, iaculis eu
egestas et, mollis ut elit. Integer convallis vestibulum neque, et
tristique magna mattis et. Quisque eu nisi lacus, nec dictum lorem.
Phasellus mollis elementum euismod. Sed at arcu odio, sed volutpat
ante. Integer cursus nisl vel tortor commodo quis ornare mauris
consectetur. In sit amet orci mauris. Aenean tellus sem, facilisis
vitae vehicula at, venenatis ullamcorper magna. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut
diam elit, fermentum mattis consequat ac, ultricies nec enim.
Phasellus interdum, velit vel lacinia egestas, sapien dolor tincidunt
enim, vitae adipiscing dolor diam et dolor. Nullam adipiscing neque a
erat aliquet imperdiet. Phasellus at dui a risus elementum placerat ut
sit amet nisl. Phasellus vulputate feugiat sem, varius suscipit metus
porta et. In hac habitasse platea dictumst.

Sed lacinia aliquam \inmargin{pharetra fringilla nunc quis} erat,
vitae viverra nibh dignissim id. Class aptent taciti sociosqu ad
litora torquent per conubia nostra, per inceptos himenaeos. Cras
luctus tempus neque vel pretium. Cras non leo ipsum, sed adipiscing
nulla. Etiam condimentum posuere velit sit amet sollicitudin. Duis
magna risus, pellentesque et adipiscing in, accumsan sed sapien.
Vestibulum sodales viverra nisl, nec facilisis quam varius vel. Ut
malesuada consequat velit, ut posuere lectus scelerisque eu. Class
aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos. Etiam lectus diam, lobortis quis consectetur quis,
vulputate id justo. Nulla pharetra fringilla nunc quis lacinia. Morbi
id molestie orci. Praesent lorem erat, rutrum ut facilisis vitae,
egestas nec dolor. Donec ullamcorper sollicitudin sapien vel placerat.
Etiam interdum arcu in nibh placerat iaculis. Nullam eget nisl tortor,
sed lacinia tellus. Donec placerat diam a erat molestie vitae
convallis metus tempor. Morbi libero nulla, viverra vitae vestibulum
placerat, ultrices nec dui.

Proin velit risus, hendrerit eu congue et, mollis sed orci. Nunc nec
tincidunt felis. Pellentesque rhoncus sem id libero rhoncus facilisis.
Donec in sapien arcu. Sed vitae ante quis nunc rutrum pretium. Mauris
convallis feugiat massa at pharetra. Vivamus molestie velit sit amet
augue tristique ac dictum ligula condimentum. Proin placerat iaculis
interdum. Fusce vel nisi arcu. Nunc ut lorem sed sapien commodo
euismod sit amet non dui. Suspendisse eget lectus massa. Nam id leo
velit. Aliquam lobortis, tortor sit amet faucibus molestie, lacus
lacus imperdiet metus, in posuere nisi nisl quis lacus.

Integer vitae leo faucibus libero congue porttitor ut sagittis quam.
Praesent imperdiet urna quis justo mattis iaculis. Proin pulvinar diam
non dolor malesuada laoreet. Nulla id lacus urna, et consequat quam.
Curabitur eleifend, sapien in vulputate lobortis, nisl tortor faucibus
metus, eu scelerisque lectus nisl at lectus. Vivamus ut ultricies
nibh. Duis interdum, massa at vehicula ullamcorper, orci ante aliquam
augue, at posuere nisl diam ac orci. Ut mollis dapibus nulla, in
dignissim massa semper vitae. Praesent ultrices sodales velit nec
dignissim. Maecenas condimentum, arcu sed molestie rhoncus, leo ipsum
congue mauris, quis volutpat est elit eget justo. Aenean tincidunt
elit id leo semper dictum. Phasellus et rhoncus nulla. Donec
tincidunt, lacus eget convallis ultricies, augue sem tempus turpis, id
pulvinar ligula dui sed neque. Nulla tristique scelerisque tempor.
\stoptext

is meant to illustrate four problems:

1. Leftward protrusion doesn't work.
2. I don't think hz is working in footnotes.
3. Observe footnote 1 (the only one).  It is breaking between p.1 and
p.2.  I want to forbid that.
4. Notice the overprinting near the top of p.2 c.1.  That is a
marginal note that should go into the right margin.

The font I'm using is Adobe Garamond Premiere Pro.  If you think there
might be a problem with the typescript, I can show you that too.

> >>> What is the proper way to raise or lower a bit of text?  I just spent
> >>> ...
> >
> >> \raisebox{1ex}{?}
> >
> > When I try:
> >
> > \raisebox{1ex}{--}
> >
> > Context stops on the error:
> > >
> > "A <box> was supposed to be here
> >
> > \raisebox{1ex}{
> > 		--}"
>
> Provide a box :-) \raisebox{1ex}{\hbox{--}} (untested)

I tested it.  That fails on exactly the same error.
___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: minimal example of some problems
  2010-04-04  2:48 minimal example of some problems Michael Saunders
@ 2010-04-04  3:37 ` Aditya Mahajan
  2010-04-04  9:55   ` Hans Hagen
  2010-04-04  5:49 ` Michael Saunders
  1 sibling, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2010-04-04  3:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 3 Apr 2010, Michael Saunders wrote:

>>>>> 1. columns and marginal notes conflict:
>>>>
>>>> For some of the issues, it would be perhaps a good idea to make proper
>>>> bug-reports (with minimal example of course).
>>>
>>> In some other venue?
>>
>> In a separate thread, with a minimal example, that one can copy-paste and
>> see the error. Trying to guess what is wrong is difficult.
>
> I tried that several times and got no response.  Since you insist on
> seeing lots of lorem ipsum, the following example:

This example is not minimal. You are mixing four things 
together, and still not giving complete information. Ideally you should 
have one **minimal** example for each problem. See below for an 
example.

> is meant to illustrate four problems:
>
> 1. Leftward protrusion doesn't work.
> 2. I don't think hz is working in footnotes.

> The font I'm using is Adobe Garamond Premiere Pro.  If you think there
> might be a problem with the typescript, I can show you that too.

These two are related to font. Either show that something is wrong with 
default typescripts (lmodern, times, palatino, etc) else it means that 
tosmething is wrong with your typescript. But first you have to narrow 
down the problem

> 3. Observe footnote 1 (the only one).  It is breaking between p.1 and
> p.2.  I want to forbid that.

I don't know how to prevent this. But again, this has nothing to do with 
columns or fonts.

> 4. Notice the overprinting near the top of p.2 c.1.  That is a
> marginal note that should go into the right margin.

Here is a minimal example (no page setup, font setup, or styles needed to 
show the problem)

\starttext
\startcolumns

\input knuth
\input tufte
\column
\input tufte
\inmargin{This is in wrong margin}
\input knuth
\stopcolumns
\stoptext

The marin note in 2nd column is displayed in the 1st column. This is 
artifact of the way in which TeX constructs columns: first creating a long 
and narrow page and then splitting it into two. I don't know at what stage 
of the OTR are margin notes inserted, and if there is a workaround. Maybe 
others can help.

>>>>> What is the proper way to raise or lower a bit of text?  I just spent
>>>>> ...
>>>
>>>> \raisebox{1ex}{?}
>>>
>>> When I try:
>>>
>>> \raisebox{1ex}{--}
>>>
>>> Context stops on the error:
>>>>
>>> "A <box> was supposed to be here
>>>
>>> \raisebox{1ex}{
>>> 		--}"
>>
>> Provide a box :-) \raisebox{1ex}{\hbox{--}} (untested)

\raisebox{1em}\hbox{--}

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: minimal example of some problems
  2010-04-04  2:48 minimal example of some problems Michael Saunders
  2010-04-04  3:37 ` Aditya Mahajan
@ 2010-04-04  5:49 ` Michael Saunders
  2010-04-04  6:46   ` Aditya Mahajan
  2010-04-04  7:29   ` raisebox (was: Re: minimal example of some problems) Peter Münster
  1 sibling, 2 replies; 6+ messages in thread
From: Michael Saunders @ 2010-04-04  5:49 UTC (permalink / raw)
  To: ntg-context

> > 1. Leftward protrusion doesn't work.
> > 2. I don't think hz is working in footnotes.
>
> > The font I'm using is Adobe Garamond Premiere Pro.  If you think there
> > might be a problem with the typescript, I can show you that too.
>
> These two are related to font. Either show that something is wrong with
> default typescripts (lmodern, times, palatino, etc) else it means that
> tosmething is wrong with your typescript. But first you have to narrow
> down the problem

I take your word for it that it works for the default typescripts;
therefore, the problem must be somewhere in my typescript, but I have
no idea where.  It is as follows:



\starttypescript [serif] [optical] [size]

  \definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt,10pt] [rm]
    [tf=SerifCaption-Regular     sa 1,
     it=SerifCaption-Italic      sa 1]

  \definebodyfont [11pt,12pt,13pt,14pt,14.4pt] [rm]
    [tf=SerifRegular-Regular     sa 1,
     it=SerifRegular-Italic      sa 1]

  \definebodyfont [15pt,16pt,17pt,17.3pt,18pt,19pt,20pt,21pt,22pt] [rm]
    [tf=SerifSubhead-Regular     sa 1,
     it=SerifSubhead-Italic      sa 1]

  \definebodyfont [23pt,24pt,30pt,36pt,48pt,51pt,60pt] [rm]
    [tf=SerifDisplay-Regular     sa 1,
     it=SerifDisplay-Italic      sa 1]

\stoptypescript

%I don't know what this block is for, but I think it is needed only once.
\starttypescript [serif] [garamond]

  \definefontsynonym [Serif]           [SerifRegular-Regular]
  \definefontsynonym [SerifItalic]     [SerifRegular-Italic]

\stoptypescript

%Garamond (Book)						garamond

\starttypescript [serif] [garamond]

  \definefontsynonym [SerifCaption-Regular]
[file:GaramondPremrPro-Capt]       [features=body]
  \definefontsynonym [SerifCaption-Italic]
[file:GaramondPremrPro-ItCapt]     [features=body]

  \definefontsynonym [SerifRegular-Regular]    [file:GaramondPremrPro]
   [features=body]
  \definefontsynonym [SerifRegular-Italic]
[file:GaramondPremrPro-It]         [features=body]

  \definefontsynonym [SerifSubhead-Regular]
[file:GaramondPremrPro-Subh]       [features=body]
  \definefontsynonym [SerifSubhead-Italic]
[file:GaramondPremrPro-ItSubh]     [features=body]

  \definefontsynonym [SerifDisplay-Regular]
[file:GaramondPremrPro-Disp]       [features=body]
  \definefontsynonym [SerifDisplay-Italic]
[file:GaramondPremrPro-ItDisp]     [features=body]

\stoptypescript


\starttypescript [garamond]
  \definetypeface [garamond] [rm] [serif] [garamond] [optical]
\stoptypescript




%Garamond Medium					garamondMD

\starttypescript [serif] [garamondMD]

  \definefontsynonym [SerifCaption-Regular]
[file:GaramondPremrPro-MedCapt]       [features=body]
  \definefontsynonym [SerifCaption-Italic]
[file:GaramondPremrPro-MedItCapt]     [features=body]

  \definefontsynonym [SerifRegular-Regular]
[file:GaramondPremrPro-Med]    [features=body]
  \definefontsynonym [SerifRegular-Italic]
[file:GaramondPremrPro-MedIt]         [features=body]

  \definefontsynonym [SerifSubhead-Regular]
[file:GaramondPremrPro-MedSubh]       [features=body]
  \definefontsynonym [SerifSubhead-Italic]
[file:GaramondPremrPro-MedItSubh]     [features=body]

  \definefontsynonym [SerifDisplay-Regular]
[file:GaramondPremrPro-MedDisp]       [features=body]
  \definefontsynonym [SerifDisplay-Italic]
[file:GaramondPremrPro-MedItDisp]     [features=body]

\stoptypescript


\starttypescript [garamondMD]
  \definetypeface [garamondMD] [rm] [serif] [garamondMD] [optical]
\stoptypescript




%Garamond Semi-Bold					garamondSB

\starttypescript [serif] [garamondSB]

  \definefontsynonym [SerifCaption-Regular]
[file:GaramondPremrPro-SmbdCapt]       [features=body]
  \definefontsynonym [SerifCaption-Italic]
[file:GaramondPremrPro-SmbdItCapt]     [features=body]

  \definefontsynonym [SerifRegular-Regular]
[file:GaramondPremrPro-Smbd]    [features=body]
  \definefontsynonym [SerifRegular-Italic]
[file:GaramondPremrPro-SmbdIt]         [features=body]

  \definefontsynonym [SerifSubhead-Regular]
[file:GaramondPremrPro-SmbdSubh]       [features=body]
  \definefontsynonym [SerifSubhead-Italic]
[file:GaramondPremrPro-SmbdItSubh]     [features=body]

  \definefontsynonym [SerifDisplay-Regular]
[file:GaramondPremrPro-SmbdDisp]       [features=body]
  \definefontsynonym [SerifDisplay-Italic]
[file:GaramondPremrPro-SmbdItDisp]     [features=body]

\stoptypescript


\starttypescript [garamondSB]
  \definetypeface [garamondSB] [rm] [serif] [garamondSB] [optical]
\stoptypescript




%Garamond Bold						garamondBD

\starttypescript [serif] [garamondBD]

  \definefontsynonym [SerifCaption-Regular]
[file:GaramondPremrPro-BdCapt]       [features=body]
  \definefontsynonym [SerifCaption-Italic]
[file:GaramondPremrPro-BdItCapt]     [features=body]

  \definefontsynonym [SerifRegular-Regular]
[file:GaramondPremrPro-Bd]    [features=body]
  \definefontsynonym [SerifRegular-Italic]
[file:GaramondPremrPro-BdIt]         [features=body]

  \definefontsynonym [SerifSubhead-Regular]
[file:GaramondPremrPro-BdSubh]       [features=body]
  \definefontsynonym [SerifSubhead-Italic]
[file:GaramondPremrPro-BdItSubh]     [features=body]

  \definefontsynonym [SerifDisplay-Regular]
[file:GaramondPremrPro-BdDisp]       [features=body]
  \definefontsynonym [SerifDisplay-Italic]
[file:GaramondPremrPro-BdItDisp]     [features=body]

\stoptypescript


\starttypescript [garamondBD]
  \definetypeface [garamondBD] [rm] [serif] [garamondBD] [optical]
\stoptypescript



%Garamond Light Display						garamondLT

\starttypescript [serif] [garamondLT]

  \definefontsynonym [SerifCaption-Regular]
[file:GaramondPremrPro-LtDisp]       [features=body]
  \definefontsynonym [SerifCaption-Italic]
[file:GaramondPremrPro-LtItDisp]     [features=body]

  \definefontsynonym [SerifRegular-Regular]
[file:GaramondPremrPro-LtDisp]    [features=body]
  \definefontsynonym [SerifRegular-Italic]
[file:GaramondPremrPro-LtItDisp]         [features=body]

  \definefontsynonym [SerifSubhead-Regular]
[file:GaramondPremrPro-LtDisp]       [features=body]
  \definefontsynonym [SerifSubhead-Italic]
[file:GaramondPremrPro-LtItDisp]     [features=body]

  \definefontsynonym [SerifDisplay-Regular]
[file:GaramondPremrPro-LtDisp]       [features=body]
  \definefontsynonym [SerifDisplay-Italic]
[file:GaramondPremrPro-LtItDisp]     [features=body]

\stoptypescript


\starttypescript [garamondLT]
  \definetypeface [garamondLT] [rm] [serif] [garamondLT] [optical]
\stoptypescript




> > 3. Observe footnote 1 (the only one).  It is breaking between p.1 and
> > p.2.  I want to forbid that.
>
> I don't know how to prevent this. But again, this has nothing to do with
> columns or fonts.

I want that to work in those columns with that font.  If you don't
know how to make it work in any font with or without columns, that
makes no difference.  It looks like it's just one more thing that
Context can't do or can't do correctly.

> The marin note in 2nd column is displayed in the 1st column. This is
> artifact of the way in which TeX constructs columns: first creating a long
> and narrow page and then splitting it into two. I don't know at what stage
> of the OTR are margin notes inserted, and if there is a workaround. Maybe
> others can help.

An open problem, then.

> \raisebox{1em}\hbox{--}

Hooray!  Something works!

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

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: minimal example of some problems
  2010-04-04  5:49 ` Michael Saunders
@ 2010-04-04  6:46   ` Aditya Mahajan
  2010-04-04  7:29   ` raisebox (was: Re: minimal example of some problems) Peter Münster
  1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2010-04-04  6:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 4 Apr 2010, Michael Saunders wrote:

>>> 1. Leftward protrusion doesn't work.
>>> 2. I don't think hz is working in footnotes.
>>
>>> The font I'm using is Adobe Garamond Premiere Pro.  If you think there
>>> might be a problem with the typescript, I can show you that too.
>>
>> These two are related to font. Either show that something is wrong with
>> default typescripts (lmodern, times, palatino, etc) else it means that
>> tosmething is wrong with your typescript. But first you have to narrow
>> down the problem
>
> I take your word for it that it works for the default typescripts;
> therefore, the problem must be somewhere in my typescript, but I have
> no idea where.  It is as follows:

I don't have the font, so I cannot test it.
>
>
>>> 3. Observe footnote 1 (the only one).  It is breaking between p.1 and
>>> p.2.  I want to forbid that.
>>
>> I don't know how to prevent this. But again, this has nothing to do with
>> columns or fonts.
>
> I want that to work in those columns with that font.  If you don't
> know how to make it work in any font with or without columns, that
> makes no difference.  It looks like it's just one more thing that
> Context can't do or can't do correctly.

You can prevent notes from splitting across pages by

\setupenumerations[footnote]
                    [before=\vbox\bgroup, after=\egroup]

The footnote may still appear on a different page. If you want to prevent 
that add

\setupfootnotes[split=verystrict]

which can mess up the layout. You can slightly salvage things by adding

\setuptolerance[vertical, verytolerant]

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* raisebox (was: Re: minimal example of some problems)
  2010-04-04  5:49 ` Michael Saunders
  2010-04-04  6:46   ` Aditya Mahajan
@ 2010-04-04  7:29   ` Peter Münster
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Münster @ 2010-04-04  7:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Apr 04 2010, Michael Saunders wrote:

> > \raisebox{1em}\hbox{--}
> 
> Hooray!  Something works!

Often, there even more than one solution:

\offset[y=-1em]{--} or \high{--}

Cheers, Peter

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


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

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: minimal example of some problems
  2010-04-04  3:37 ` Aditya Mahajan
@ 2010-04-04  9:55   ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2010-04-04  9:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4-4-2010 5:37, Aditya Mahajan wrote:

>> 4. Notice the overprinting near the top of p.2 c.1. That is a
>> marginal note that should go into the right margin.
>
> Here is a minimal example (no page setup, font setup, or styles needed
> to show the problem)
>
> \starttext
> \startcolumns
>
> \input knuth
> \input tufte
> \column
> \input tufte
> \inmargin{This is in wrong margin}
> \input knuth
> \stopcolumns
> \stoptext
>
> The marin note in 2nd column is displayed in the 1st column. This is
> artifact of the way in which TeX constructs columns: first creating a
> long and narrow page and then splitting it into two. I don't know at
> what stage of the OTR are margin notes inserted, and if there is a
> workaround. Maybe others can help.

this is the first time someone needs it so indeed there is no mechamism

it's not that complex to deal with it (but i'd only do it in mkiv) gien 
time and motivation ... you can put a feature request in the tracker so 
that i can look at it when i'm reworking marging notes the mkiv way 
(first come floats)

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-04  9:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-04  2:48 minimal example of some problems Michael Saunders
2010-04-04  3:37 ` Aditya Mahajan
2010-04-04  9:55   ` Hans Hagen
2010-04-04  5:49 ` Michael Saunders
2010-04-04  6:46   ` Aditya Mahajan
2010-04-04  7:29   ` raisebox (was: Re: minimal example of some problems) Peter Münster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).