Re: [NTG-context] Multiple pleas for help (long)

2010-06-20 Thread Wolfgang Schuster

Am 07.06.10 02:03, schrieb Scott Steele:


  In Latex, \fancybreak was part of a package called, I believe,
  fancyheader or fancypage. It produced a break frequently seen in
  published prose (I'm currently reading {\em Bluebeard} where Kurt
  Vonnegut uses it liberally) with significant vertical space between
  two paragraphs and, centered both in that vertical space as well as
  horizontally, a number of well-spaced marks. There are usually 3
  marks, and they are frequently asterisks or traditional
  dingbats/fleurons. This sort of break is generally used when the
  author wishes to indicate a break more significant than a change in
  paragraph but short of an outright new chapter.


\unprotect
[...]
\protect

\starttext
\input knuth
\fancybreak{$* * *$}
\input ward
\stoptext

Wolfgang


Thanks a lot for all of that! I'm having trouble getting it to run,
though. I tried copy/pasting it into the Context Live site but get


I wrote now a module for this, you can download it from here: 
http://bitbucket.org/wolfs/fancybreak


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] Multiple pleas for help (long)

2010-06-07 Thread Wolfgang Schuster

Am 07.06.10 02:03, schrieb Scott Steele:


Thanks a lot for all of that! I'm having trouble getting it to run,
though. I tried copy/pasting it into the Context Live site but get  [...]


The mail client messed up my code, here is a slightly modified version:

\unprotect

\def\v!fancybreak{fancybreak}

\def\fb{fb}

\getparameters
  [\fb]
  [\c!spacebefore=,
\c!spaceafter=,
 \c!align=\v!middle,
\c!indentnext=\v!yes]

\def\fancybreakparameter 
#1{\csname\dofancybreakparameter{\fb\currentfancybreak}#1\endcsname}
\def\dofancybreakparameter 
#1#2{\ifcsname#1#2\endcsname#1#2\else\expandafter\dodofancybreakparameter\csname#1\s!parent\endcsname#2\fi}

\def\dodofancybreakparameter#1#2{\ifx#1\relax\s!empty\else\dofancybreakparameter#1#2\fi}

\unexpanded\def\setupfancybreak
  {\dodoubleempty\dosetupfancybreak}

\def\dosetupfancybreak[#1][#2]%
  {\ifsecondargument
 \getparameters[\fb#1][#2]%
   \else
 \getparameters[\fb][#1]%
   \fi}

\unexpanded\def\definefancybreak
  {\dodoubleempty\dodefinefancybreak}

\def\dodefinefancybreak[#1][#2]%
  {\getparameters[\fb#1][\s!parent=\fb,#2]%
   \setvalue{#1}{\dofancybreak{#1}}}

\unexpanded\def\dofancybreak#1%
  {\begingroup
   \edef\currentfancybreak{#1}%
   \everyvbox{\setupalign[\fancybreakparameter\c!align]}%
   \dowithnextbox
 {\blank[\fancybreakparameter\c!spacebefore]%
  \flushnextbox
  \blank[\fancybreakparameter\c!spaceafter]%
  \checknextindentation[\fancybreakparameter\c!indentnext]
  \dorechecknextindentation
  \endgroup}
 \normalvbox}

\definefancybreak[\v!fancybreak]

\protect

\starttext

\input knuth
\fancybreak{$* * *$}
\input ward

\page

\setupindenting[yes,medium]

\input knuth
\fancybreak{$* * *$}
\input ward

\stoptext

Wolfgang



fancybreak.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Multiple pleas for help (long)

2010-06-06 Thread Scott Steele

 Am 01.06.10 00:29, schrieb Scott Steele:

 If anyone has any insight on how to keep the footnotes from having

 their numbers in the margin and from having line-breaks after each

 one, that is the only issue from the original email that is still

 unsolved, I think.



 ———



 In Latex, \fancybreak was part of a package called, I believe,

 fancyheader or fancypage. It produced a break frequently seen in

 published prose (I'm currently reading {\em Bluebeard} where Kurt

 Vonnegut uses it liberally) with significant vertical space between

 two paragraphs and, centered both in that vertical space as well as

 horizontally, a number of well-spaced marks. There are usually 3

 marks, and they are frequently asterisks or traditional

 dingbats/fleurons. This sort of break is generally used when the

 author wishes to indicate a break more significant than a change in

 paragraph but short of an outright new chapter.



 \def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank}

 \starttext

 \input tufte

 \FancyBreak

 \input tufte

 \stoptext



 I don't understand why I need the two consecutive \hfill's at the end

 for the marks to be centered, but the definition works well for me.


 \unprotect


 \def\fb{fb}


 \getparameters

[\fb]

[\c!spacebefore=,

\c!spaceafter=]


 \def\fancybreakparameter#1%



 {\csname\fb\ifcsname\fb\currentfancybreak#1\endcsname\currentfancybreak\fi#1\endcsname}


 \def\setupfancybreak

{\dodoubleempty\dosetupfancybreak}


 \def\dosetupfancybreak[#1][#2]%

{\ifsecondargument

\getparameters[\fb#1][#2]%

\else

\getparameters[\fb][#1]%

\fi}


 \def\definefancybreak

{\dodoubleempty\dodefinefancybreak}


 \def\dodefinefancybreak[#1][#2]%

{\ifsecondargument

\getparameters[\fb#1][#2]%

\fi

\setvalue{#1}{\dofancybreak{#1}}}


 \def\dofancybreak#1%

{\begingroup

\edef\currentfancybreak{#1}%

\everyvbox{\raggedcenter}%

\dowithnextbox

{\blank[\fancybreakparameter\c!spacebefore]%

\flushnextbox

\blank[\fancybreakparameter\c!spaceafter]%

\endgroup}

\normalvbox}


 \definefancybreak[fancybreak]


 \protect


 \starttext

\input knuth

\fancybreak{$* * *$}

\input ward

\stoptext


 Wolfgang



 ___




Thanks a lot for all of that! I'm having trouble getting it to run, though.
I tried copy/pasting it into the Context Live site but get

! Argument of \fancybreakparameter has an extra }.
inserted text
\par
to be read again
   }
\edefconvertedargument #1#2-\edef #1{#2}
 \edef #1{\detokenize \...@ea {#1}}
\docomplexdoblank ...convertedargument \ascii {#1}
  \ifcsname \??bo \??bo \asc...

\dodowithnextbox ...reakparameter \c!spacebefore ]
  \flushnextbox \blank [\fan...
l.52 \fancybreak{$* * *$}

?
! Emergency stop.
inserted text
\par
to be read again
   }
\edefconvertedargument #1#2-\edef #1{#2}
 \edef #1{\detokenize \...@ea {#1}}
\docomplexdoblank ...convertedargument \ascii {#1}
  \ifcsname \??bo \??bo \asc...

\dodowithnextbox ...reakparameter \c!spacebefore ]
  \flushnextbox \blank [\fan...
l.52 \fancybreak{$* * *$}



Thanks,

Scott
-
This is a work of fiction.  Names, characters, places, and incidents either
are the product of the writer's imagination or are used fictitiously, and any
resemblance to actual persons, living or dead, businesses, companies,
events, or locales is entirely coïncidental.
___
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] Multiple pleas for help (long)

2010-06-02 Thread Wolfgang Schuster

Am 01.06.10 00:29, schrieb Scott Steele:
If anyone has any insight on how to keep the footnotes from having 
their numbers in the margin and from having line-breaks after each 
one, that is the only issue from the original email that is still 
unsolved, I think.


———

In Latex, \fancybreak was part of a package called, I believe, 
fancyheader or fancypage. It produced a break frequently seen in 
published prose (I'm currently reading {\em Bluebeard} where Kurt 
Vonnegut uses it liberally) with significant vertical space between 
two paragraphs and, centered both in that vertical space as well as 
horizontally, a number of well-spaced marks. There are usually 3 
marks, and they are frequently asterisks or traditional 
dingbats/fleurons. This sort of break is generally used when the 
author wishes to indicate a break more significant than a change in 
paragraph but short of an outright new chapter.


\def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank}
\starttext
\input tufte
\FancyBreak
\input tufte
\stoptext

I don't understand why I need the two consecutive \hfill's at the end 
for the marks to be centered, but the definition works well for me.


\unprotect

\def\fb{fb}

\getparameters
  [\fb]
  [\c!spacebefore=,
\c!spaceafter=]

\def\fancybreakparameter#1%
  
{\csname\fb\ifcsname\fb\currentfancybreak#1\endcsname\currentfancybreak\fi#1\endcsname}


\def\setupfancybreak
  {\dodoubleempty\dosetupfancybreak}

\def\dosetupfancybreak[#1][#2]%
  {\ifsecondargument
 \getparameters[\fb#1][#2]%
   \else
 \getparameters[\fb][#1]%
   \fi}

\def\definefancybreak
  {\dodoubleempty\dodefinefancybreak}

\def\dodefinefancybreak[#1][#2]%
  {\ifsecondargument
 \getparameters[\fb#1][#2]%
   \fi
   \setvalue{#1}{\dofancybreak{#1}}}

\def\dofancybreak#1%
  {\begingroup
   \edef\currentfancybreak{#1}%
   \everyvbox{\raggedcenter}%
   \dowithnextbox
 {\blank[\fancybreakparameter\c!spacebefore]%
  \flushnextbox
  \blank[\fancybreakparameter\c!spaceafter]%
  \endgroup}
 \normalvbox}

\definefancybreak[fancybreak]

\protect

\starttext
\input knuth
\fancybreak{$* * *$}
\input ward
\stoptext

Wolfgang

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

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


Re: [NTG-context] Multiple pleas for help (long)

2010-06-01 Thread Wolfgang Schuster

Am 01.06.10 00:29, schrieb Scott Steele:
If anyone has any insight on how to keep the footnotes from having 
their numbers in the margin and from having line-breaks after each 
one, that is the only issue from the original email that is still 
unsolved, I think.


———

In Latex, \fancybreak was part of a package called, I believe, 
fancyheader or fancypage. It produced a break frequently seen in 
published prose (I'm currently reading {\em Bluebeard} where Kurt 
Vonnegut uses it liberally) with significant vertical space between 
two paragraphs and, centered both in that vertical space as well as 
horizontally, a number of well-spaced marks. There are usually 3 
marks, and they are frequently asterisks or traditional 
dingbats/fleurons. This sort of break is generally used when the 
author wishes to indicate a break more significant than a change in 
paragraph but short of an outright new chapter.


\def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank}


\define\FancyBreak
  {\blank
   \midaligned{* * *}
   \blank}

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] Multiple pleas for help (long)

2010-05-31 Thread Scott Steele
If anyone has any insight on how to keep the footnotes from having their
numbers in the margin and from having line-breaks after each one, that is
the only issue from the original email that is still unsolved, I think.

———

In Latex, \fancybreak was part of a package called, I believe, fancyheader
or fancypage. It produced a break frequently seen in published prose (I'm
currently reading {\em Bluebeard} where Kurt Vonnegut uses it liberally)
with significant vertical space between two paragraphs and, centered both in
that vertical space as well as horizontally, a number of well-spaced marks.
There are usually 3 marks, and they are frequently asterisks or traditional
dingbats/fleurons. This sort of break is generally used when the author
wishes to indicate a break more significant than a change in paragraph but
short of an outright new chapter.

\def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank}
\starttext
\input tufte
\FancyBreak
\input tufte
\stoptext

I don't understand why I need the two consecutive \hfill's at the end for
the marks to be centered, but the definition works well for me.

———

Thanks, Wolfgang, for your help with the emoticons—they work now.
\useexternalfigure[frowny][Frowny][factor=8,type=pdf]
\def\Frowny{\dontleavehmode\smash[h]{\externalfigure[frowny]}}

Also, thanks for the \simplealignedbox, which works very well in my table of
contents (although I have to put a \par at the end of it or it stays on one
line and goes off the page). I don't understand why, but Tex didn't like
having a \par inside the type of definition you used, but it allowed the
following:
\def\SectionListEntry#1#2#3%
{
\noindent
\simplealignedbox{left}{2cm}{#2}%
\simplealignedbox{middle}{5mm}{·}%
\simplealignedbox{right}{3cm}{#3}%
\par
}

(I have a few issues with my table of contents, but these are now less
specific to \placelist, so I'm including them in a different posting.)



Thanks again for all the help,

Scott

-
This is a work of fiction.  Names, characters, places, and incidents either
are the product of the writer's imagination or are used fictitiously, and any
resemblance to actual persons, living or dead, businesses, companies,
events, or locales is entirely coïncidental.
___
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] Multiple pleas for help (long)

2010-05-13 Thread Wolfgang Schuster

Am 10.05.10 02:28, schrieb Scott Steele:
Thanks so much for the help! Pleas 1, 2, 5, and 6 are completely 
solved. (In particular, Mojca, the fix for accents is fantastic!) I 
wasn't able to get \Frowny to work any better with the advice 
provided, but I found that when I scaled it down, it stopped knocking 
the text off the grid, and I have a hard time telling the difference 
in size between the old and new.


% New (works) :
\useexternalfigure[frowny][Frowny][factor=7,type=pdf]
\def\Frowny{\hbox{\externalfigure[frowny]}}
\useexternalfigure[smiley][Smiley][factor=7,type=pdf]
\def\Smiley{\hbox{\externalfigure[smiley]}}
\useexternalfigure[slashy][Slashy][factor=7,type=pdf]
\def\Slashy{\hbox{\externalfigure[slashy]}}


\def\Slashy{\dontleavehmode\smash[h]{\externalfigure[slashy]}}

the height of the picture is now ignored

I'm currently working on the Table of Contents formatting. I'm trying 
to format it as follows:


\define[3]\SectionListEntry
  {\noindent
   \simplealignedbox{left}  {2cm}{#2}%
   \simplealignedbox{middle}{5mm}{·}%
\simplealignedbox{right} {3cm}{#3}}

\setuplist
  [section]
  [alternative=command,
   command=\SectionListEntry]

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] Multiple pleas for help (long)

2010-05-09 Thread Scott Steele
Thanks so much for the help! Pleas 1, 2, 5, and 6 are completely solved. (In
particular, Mojca, the fix for accents is fantastic!) I wasn't able to get
\Frowny to work any better with the advice provided, but I found that when I
scaled it down, it stopped knocking the text off the grid, and I have a hard
time telling the difference in size between the old and new.

% New (works) :
\useexternalfigure[frowny][Frowny][factor=7,type=pdf]
\def\Frowny{\hbox{\externalfigure[frowny]}}
\useexternalfigure[smiley][Smiley][factor=7,type=pdf]
\def\Smiley{\hbox{\externalfigure[smiley]}}
\useexternalfigure[slashy][Slashy][factor=7,type=pdf]
\def\Slashy{\hbox{\externalfigure[slashy]}}



I'm currently working on the Table of Contents formatting. I'm trying to
format it as follows:

\starttable[|r|c|l|]
subjectName · pageNumber\MR
subjectName · pageNumber\MR
...etc...
\stoptable % Of course, where I don't actually input it subject by subject
like this.

Ideally, I'd like to be able to position the table on the page by deciding
where the center line of single dots is (eg a setup where the dots are in
the very center of the page layout or another setup where they are
two-thirds of the textblock/pagelayout size (I'm not sure what the correct
term is here) to the right).

I've tried a number of different ways to set this up. This is the only thing
close to what I want that I can get to work, but of course, it doesn't have
the dots aligned:

\def\ListCommand#1#2#3%
{
\starttabulate[|r|c|l|]
\NC #2\NC ·\NC #3
 \stoptabulate
}

\def\TableOfContents
{
\placelist[section]
 [criterium={chapter,subject}, alternative=command,
command=\ListCommand]
}

Here's an example of what I tried to do but which doesn't work:

\def\ListCommandOne#1#2#3%
{#2\NC}
\def\ListCommandTwo#1#2#3%
{·\NC}
\def\ListCommandThree#1#2#3%
{#3\NC}

\def\TableOfContents
{
\starttabulate[|l|l|l|]
\NC
 \placelist[section]
[criterium={chapter,subject}, alternative=command,
command=\ListCommandOne]
 \NC
\placelist[section]
[criterium={chapter,subject}, alternative=command,
 command=\ListCommandTwo]
\NC
\placelist[section]
 [criterium={chapter,subject}, alternative=command,
command=\ListCommandThree]
 \stoptabulate
}

Obviously that attempt—aside from not working—is incredibly un-elegant and
could quickly screw things up with misaligned names and page numbers. Here
is another attempt:

\def\ListCommand#1#2#3{#2 · #3\MR}

\def\TableOfContents
{
\starttable[|r|c|l|]
\placelist[section]
[criterium={chapter,subject}, alternative=command,
 command=\ListCommand]
\stoptable
}

I think part of my problem is that I really don't understand what placelist
{\em is} or what it is doing. Is this something that would be clearer only
if I knew more about plain Tex?

Note: I'm putting \TableOfContents in the frontmatter.



Scott

-
This is a work of fiction.  Names, characters, places, and incidents either
are the product of the writer's imagination or are used fictitiously, and any
resemblance to actual persons, living or dead, businesses, companies,
events, or locales is entirely coïncidental.
___
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] Multiple pleas for help (long)

2010-04-27 Thread Wolfgang Schuster

Am 27.04.10 00:44, schrieb Scott Steele:
Hullo, all. I've been trying for 3 months now to get my last 2 years' 
worth of journal entries satisfactorily typeset for printing on 
lulu.com http://lulu.com. This is my first major project using 
Context (with the Xetex engine—the current procedures required by 
Pdftex to set up and manage fonts are too intimidating for me (I {\em 
did} try it.)) as I'm no longer in school and had typeset the 
preceding year's worth of entries in Latex. I started to use (xe)Latex 
again this time but gave up in frustration with all of the predefined 
formatting, which I've moved away from as I've read more of Robert 
Bringhurst.


Anyway, I have a number of problems.

I apologize for putting them all into one message and for failing to 
find solutions elsewhere on the site. I've looked around a great deal, 
but am hampered in doing so by my limiting of my internet time with an 
{\sc ems} PowerCop (otherwise, I'd be on Wikipedia until they decided 
to lock me away). (I do my writing, editing, and typesetting on a 
little internet-crippled netbook with CrunchBang and Vim.)


I'll include my current preämble information at the end of this 
message in case it is useful in addressing any of my issues. If 
they're addressed elsewhere, I'd be thrilled with links. If they're 
not, I'd greatly appreciate any help.


I've found solutions to a number of previous problems, but here are 
all that I believe are in the way of my finishing this project:


1
How do I make bulleted lists not have lines between items in the list?

\startitemize[packed]


2
Is it possible to push the bullets for bulleted lists into the margin 
(and then have the text of each item start at the same level of 
indentation as normal text)? Also, given my target printing medium, 
this would require alteration of the space between the bullet mark and 
its text—how do I alter this and the glyph used as the bullet mark?

\startitemize[margin]

3
Is it possible to alter the way footnotes are displayed? I might want 
to have new footnotes follow previous ones with a 3-em space rather 
than starting a new line in the footer. And if I go that route, I'd 
need a way to pull the footer number in from the margin.


4
How can I adjust the formatting settings for the frontmatter (title 
page, table of contents) and backmatter (colophon, appendices, index). 
In general, I need to be able to set whether page numbers are used and 
what kind and positioning of the text on the page. In particular, how 
do I change the formatting for items in the table of contents (and 
what glyph/spacing go between the item's title and corresponding page 
number as well as how all of those elements are positioned)?

Look for \setuplist[...] in the wiki and manuals.

5
How can I have either unnumbered sections, or subjects that appear in 
the table of contents?

\setuphead[subject][incrementnumber=list]

6
Does Xetex or Context have a facility for positioning accents over 
letters when those particular combinations are not in the font? (Or 
should I just go ahead and do this manually in Fontforge?)


7
Is there a built-in equivalent of the \fancybreak function from Latex? 
I think I know now how to put something like it together manually but 
don't want go the amateur route if there's something more polished 
available.

What is \fanybreak supposed to do?

8
Since this is just a journal, I have used simple emoticons (don't 
laugh!). I tweaked a vector smiley from Wikimedia to get a frowny and 
slashy, and they work well except for when they end up on the first 
(printed) text line of a page. I have one page that has a subject 
title on the grid but that is followed by a (logical) line with a 
smiley that ends up on its first printed line. This printed line and 
all of the rest of the text on the page (including another subject 
title) sit several points (approx) lower than where they should (so 
that the grid lines bisect the bowls of all the lower-case a's). There 
is another page that does not start with a subject title but directly 
with a printed line containing an emoticon, and it has exactly the 
same problem as the first page, with the text sitting just low enough 
that the grid lines bisect the bowls of the lower-case a's. Pages with 
emoticons on them do not exhibit this problem when the emoticon is not 
on the first printed line, and all lines remain correctly positioned 
on the grid. You can see below how I'm putting in the emoticons.
You can write '\dontleavehmode\Frowny' or you include \dontleavehmode in 
the defintion itself


\def\Frowny{\dontleavehmode\externalfigure[frowny]}

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  : 

Re: [NTG-context] Multiple pleas for help (long)

2010-04-27 Thread R. Bastian
On Mon, 26 Apr 2010 18:44:04 -0400
Scott Steele scottlste...@gmail.com scribit:
[...]
 1
 How do I make bulleted lists not have lines between items in the list?

Try \startitemize[packed]

[...

-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org
http://www.soundsurvey.org.uk/


___
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] Multiple pleas for help (long)

2010-04-27 Thread Mojca Miklavec
On Tue, Apr 27, 2010 at 00:44, Scott Steele wrote:

 6
 Does Xetex or Context have a facility for positioning accents over letters
 when those particular combinations are not in the font? (Or should I just go
 ahead and do this manually in Fontforge?)

In LuaTeX (ConTeXt MKIV) you can simply say compose=yes when defining
font features (assuming that this still works). If you'll want to use
LuaTeX and need the exact definition, I'll look it up.

Else here's the solution that should work in XeTeX:

\starttext
% this one will be taken from the font
Č
% but you can also define the character to be active
\catcode`Č=\active
% and then use the ConTeXt way of composing accents
\defČ{\buildtextaccent\textcaron C}
% and every letter will be composed from that moment on
Č
\stoptext

With pdfTeX you would typically redefine \ccaron instead. (The letter
itself is already active and \defČ might not work there.)

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

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


[NTG-context] Multiple pleas for help (long)

2010-04-26 Thread Scott Steele
Hullo, all. I've been trying for 3 months now to get my last 2 years' worth
of journal entries satisfactorily typeset for printing on lulu.com. This is
my first major project using Context (with the Xetex engine—the current
procedures required by Pdftex to set up and manage fonts are too
intimidating for me (I {\em did} try it.)) as I'm no longer in school and
had typeset the preceding year's worth of entries in Latex. I started to use
(xe)Latex again this time but gave up in frustration with all of the
predefined formatting, which I've moved away from as I've read more of
Robert Bringhurst.

Anyway, I have a number of problems.

I apologize for putting them all into one message and for failing to find
solutions elsewhere on the site. I've looked around a great deal, but am
hampered in doing so by my limiting of my internet time with an {\sc ems}
PowerCop (otherwise, I'd be on Wikipedia until they decided to lock me
away). (I do my writing, editing, and typesetting on a little
internet-crippled netbook with CrunchBang and Vim.)

I'll include my current preämble information at the end of this message in
case it is useful in addressing any of my issues. If they're addressed
elsewhere, I'd be thrilled with links. If they're not, I'd greatly
appreciate any help.

I've found solutions to a number of previous problems, but here are all that
I believe are in the way of my finishing this project:

1
How do I make bulleted lists not have lines between items in the list?

2
Is it possible to push the bullets for bulleted lists into the margin (and
then have the text of each item start at the same level of indentation as
normal text)? Also, given my target printing medium, this would require
alteration of the space between the bullet mark and its text—how do I alter
this and the glyph used as the bullet mark?

3
Is it possible to alter the way footnotes are displayed? I might want to
have new footnotes follow previous ones with a 3-em space rather than
starting a new line in the footer. And if I go that route, I'd need a way to
pull the footer number in from the margin.

4
How can I adjust the formatting settings for the frontmatter (title page,
table of contents) and backmatter (colophon, appendices, index). In general,
I need to be able to set whether page numbers are used and what kind and
positioning of the text on the page. In particular, how do I change the
formatting for items in the table of contents (and what glyph/spacing go
between the item's title and corresponding page number as well as how all of
those elements are positioned)?

5
How can I have either unnumbered sections, or subjects that appear in the
table of contents?

6
Does Xetex or Context have a facility for positioning accents over letters
when those particular combinations are not in the font? (Or should I just go
ahead and do this manually in Fontforge?)

7
Is there a built-in equivalent of the \fancybreak function from Latex? I
think I know now how to put something like it together manually but don't
want go the amateur route if there's something more polished available.

8
Since this is just a journal, I have used simple emoticons (don't laugh!). I
tweaked a vector smiley from Wikimedia to get a frowny and slashy, and they
work well except for when they end up on the first (printed) text line of a
page. I have one page that has a subject title on the grid but that is
followed by a (logical) line with a smiley that ends up on its first printed
line. This printed line and all of the rest of the text on the page
(including another subject title) sit several points (approx) lower than
where they should (so that the grid lines bisect the bowls of all the
lower-case a's). There is another page that does not start with a subject
title but directly with a printed line containing an emoticon, and it has
exactly the same problem as the first page, with the text sitting just low
enough that the grid lines bisect the bowls of the lower-case a's. Pages
with emoticons on them do not exhibit this problem when the emoticon is not
on the first printed line, and all lines remain correctly positioned on the
grid. You can see below how I'm putting in the emoticons.


Many apologies for those answers that I failed to find, and thanks reading
the whole message,

Scott


See my current preämble below:

\version[final]

\definepapersize[pocket][width=4.25in,
height=6.875in]

\setuppapersize[pocket][pocket]

\setuplayout[location=middle,
width=0.815\paperwidth,
rightmargindistance=0in,
 leftmargindistance=0in,
height=middle,
margin=0.08\paperwidth,
 backspace=0.115\paperwidth,
marking=off,
grid=yes,
 topspace=0.018889\paperheight,
header=0.04\paperheight,
footer=0.04\paperheight,
 bottomspace=0.038889\paperheight]

\setuppagenumbering[alternative=doublesided,
location={footer}]

\setupinterlinespace[top=0.0] % `top=0.0' gets rid of unoccupied vertical
white space at the top of the first line

\setupwhitespace[big] % Turns on blank line between ¶’s