[NTG-context] Duplexing a single-sided layout?

2013-11-30 Thread Adam Khan
I have a document in which left and right cannot be equated with inner and 
outer respectively (outside the header texts). So I use 
\setuppagenumbering[alternative={singlesided,doublesided}]. But I still need a 
gutter along (what would be) the inner margin. So, how would I go about 
duplexing a single-sided layout?

For example:

\definepapersize[custom][width=335mm,height=500mm]
\setuppapersize[custom][B3]
\setuplayout[%
  width=middle,%
  height=middle,%
  backspace=90mm,%
  topspace=25mm,%
  leftmargin=30mm,%
  rightmargin=15mm,%
  leftmargindistance=5mm,%
  rightmargindistance=20mm,%
  location={doublesided,duplex},%
  bottomspace=25mm,%
  cutspace=90mm]
\setuppagenumbering[alternative={singlesided,doublesided}]

Sincerely yours,
Adam Khan

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

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


[NTG-context] Line numbers and tabulate cells in Mark IV

2013-11-28 Thread Adam Khan
The lines of a tabulate cell may be numbered with code like the following under 
Mark II, but not under Mark IV.

\starttabulate[|p|p|]
\NC
\input knuth
\NC
\startlinenumbering
\input knuth
\stoplinenumbering
\NC\NR
\stoptabulate

How may the lines of a tabulate cell be numbered under Mark IV?

Sincerely yours,
Adam Khan

___
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] Update value of \headerheight based on header content

2013-05-07 Thread Adam Khan
The code for my headers is of the form:

\setupheadertexts[{\inframed[frame=off,width=\textwidth,location=depth,align={right,broad,nothyphenated},tolerance=verytolerant]{Author\\Title\\\tab{\getmarking[chapternumber]}
\getmarking[chapter] \wordright{\pagenumber}}}]

As you might imagine, the name of every chapter is not the same length.  I
would like to update the value of \headerheight for each component (each
component of my project contains exactly one chapter.) based on the header
contents that are produced for it.  In LaTeX, for example, I do something
similar with the following code:

\settototalheight{\headheight}{\parbox{\textwidth}{Author\\Title\\\nameref{chaptername}}

Any ideas?

Sincerely yours,
Adam Khan
___
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] Indented footnotes in ConTeXt

2012-11-21 Thread Adam Khan
Thank you for your solutions, Huseyin, Wolfgang, but this still does not
fix my problem with passing \setupnotation.  Why does Mark IV keep throwing
the error “undefined control sequence”?  I have reinstalled ConTeXt and run
both luatools --generate and mtxrun --generate.

Sincerely yours,
Adam Khan
___
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] Indented footnotes in ConTeXt

2012-11-20 Thread Adam Khan
Greetings!

I am writing a German critical edition in which I am using endnotes, and I
am encountering severe difficulties with formatting them as I should wish.

The idea is to indent the entire footnote—marker and text—0.5in.

In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this
set-up:

\definenote[critical][conversion=characters,
  way=bychapter,
  location=text,
  bodyfont=12pt,
  margindistance=-.5in,
  align=flushleft]

Then I move the text by adding the unsightly but functional hack
\hskip.5into the beginning of the argument of
\critical or \criticaltext.  Unfortunately, the endnotes do not flow from
page to page in Mark II, and, from the comments on the source code, it
appears that this cannot be helped.  Given the length and number of
endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem
viable.

In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow
from page to page, but the formatting does not appear to respond to the
margindistance key.  From various related posts, the answer appears to lie
in \setupnotation, but, whenever I attempt to pass this command, I get an
“undefined control sequence” error.

In short, my question is, How do I code indenting each endnote .5in with
the highest degree of automation and fewest hacks possible?

Sincerely yours,
Adam Khan

P.S. In case something less obvious in my environment file is causing my
difficulties, I attach it below:

\startenvironment Formattierung

\setuppapersize[letter][letter]
\setuplayout[backspace=1.5in,
 topspace=1in,
 bottomspace=1in,
 cutspace=1in]
\setupinterlinespace[line=5.6ex]
\setupindenting[.5in]
\indenting[always]
\setupnarrower[left=0.5in,
   right=0in]
\setupspacing[packed]
\setupalign[right,broad,nothyphenated]
\setuplinenumbering[step=1]
\setuppagenumbering[way=bytext]
\definenote[genetic]
\setupnote[genetic][numberconversion=romannumerals,
way=bychapter,
location=text,
bodyfont=12pt,
align=flushleft]
\definenote[source]
\setupnote[source][numberconversion=set2,
   way=bychapter,
   location=text,
   bodyfont=12pt,
   align=flushleft]
\definenote[critical]
\setupnote[critical][numberconversion=characters,
 way=bychapter,
 location=text,
 bodyfont=12pt,
 margindistance=-.5in,
 align=flushleft]
\definenote[annotation]
\setupnote[annotation][numberconversion=numbers,
   way=bychapter,
   location=text,
   bodyfont=12pt,
   align=flushleft]
\definenote[sociological]
\setupnote[sociological][numberconversion=Romannumerals,
 way=bychapter,
 location=text,
 bodyfont=12pt,
 align=flushleft]
\setupbodyfont[ss,12pt]
\setuphead[chapter][ownnumber=yes]

\def\broadcast{\rm}
\def\callout#1{#1}
\def\noteindent{\hskip.5in}
\def\notepar{\\\hskip.5in}
\def\original{\ss}
\def\paratext{\tt}
\def\quotationheader#1#2{{\noindenting\paratext#1]\wordright{[#2}}}
\def\siglum#1{{\bf#1}}
\def\someoneelse#1{{\it#1}}

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