Re: [NTG-context] Using *fleurons*

2013-11-11 Thread Wolfgang Schuster


   	   
   	Francisco Gracia  
  11. November 2013
 22:40
  Thanks
 for your contributions.You are right in your remark about
 the path to images, Wolfgang. I was not using any\setupexternalfigure[location=default]
 
instruction. With your formulations the figure is recovered 
without problem.Unfortunately the results of your rewrite 
of the macro are not so satisfactory. Surely it is more *ConTeXt*ual 
than mine but it fails to fulfill the main purpose of the exercice: it 
happily prints fleurons in blank pages, as running your tests with 6 
lines demonstrates. In such a circumstance it should produce just two 
pages with six lines each, whereas it outputs 4 pages, the two 
additional ones containing only ornaments.

I haven’t spent much time to check my code but its main point
wa to show you a way how to write your own code in a more compact
and efficient way.

Wolfgang

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

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

[NTG-context] Using *fleurons*

2013-11-11 Thread Francisco Gracia
Thanks for your contributions.

You are right in your remark about the path to images, Wolfgang. I was not
using any

\setupexternalfigure[location=default]

instruction. With your formulations the figure is recovered without problem.

Unfortunately the results of your rewrite of the macro are not so
satisfactory. Surely it is more *ConTeXt*ual than mine but it fails to
fulfill the main purpose of the exercice: it happily prints fleurons in
blank pages, as running your tests with 6 lines demonstrates. In such a
circumstance it should produce just two pages with six lines each, whereas
it outputs 4 pages, the two additional ones containing only ornaments.

Your suggestion, Bill, of using special decorative fonts will be a good
source of artistic material for the construction of alphabetically based
motives by artistically inclined future users of the code, as the
elaboration of the motives rests completely in their hands. The ones
provided are mere demonstration samples.

Regards

Fancisco
___
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] Using *fleurons*

2013-11-11 Thread Wolfgang Schuster


   	   
   	Bill Meahan  
  11. November 2013
 18:51
  
The following has worked quite well for me. I hate using a centered 
"* * 
*" for a thematic break so I use a fleuron. I write fiction, not 
math-filled academic-journal articles or textbooks so this may not be 
applicable in your case.

First, I use one of many available "dingbat" fonts to provide the 
fleuron. I am partial to the curly-ques in Nymphette (a 
readily-available free font) but there are many others.

In my preamble I define:

\definefont[FleuronFont] [nymphette sa 1.5]

Then where I want to place a fleuron I can do something like this.

\midaligned{{\MedBlue \FleuronFont g}}

In this case, the text letter 'g' corresponds to the particular 
little 
symbol I want.

YMMV

Take a look at the fancybreak module: 
http://modules.contextgarden.net/dl/t-fancybreak/doc/context/third/fancybreak/fancybreak-doc.pdf

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] Using *fleurons*

2013-11-11 Thread Bill Meahan

On 11/10/2013 10:12 AM, Francisco Gracia wrote:
*Fleurons* are small decorative pieces that were often used in the 
past for filling big blank spaces in books. They are seldom used 
nowdays. As besides they will not appear more than a few times in any 
book (mainly at the end of chapters), the easiest thing to do if one 
insists in using them (for instance for simulating an old edition of 
some past work) is to arrange its presence manually in the source 
document in the way one would do for any other figure or piece of text.


The following has worked quite well for me. I hate using a centered "* * 
*" for a thematic break so I use a fleuron. I write fiction, not 
math-filled academic-journal articles or textbooks so this may not be 
applicable in your case.


First, I use one of many available "dingbat" fonts to provide the 
fleuron. I am partial to the curly-ques in Nymphette (a 
readily-available free font) but there are many others.


In my preamble I define:

\definefont[FleuronFont] [nymphette sa 1.5]

Then where I want to place a fleuron I can do something like this.

\midaligned{{\MedBlue \FleuronFont g}}

In this case, the text letter 'g' corresponds to the particular little 
symbol I want.


YMMV

--
Bill Meahan, Westland, Michigan

 
  “Writing is like getting married. One should never

   commit oneself until one is amazed at one's luck.”

   —Iris Murdoch

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.

___
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] Using *fleurons*

2013-11-10 Thread Wolfgang Schuster



   	   
   	Francisco Gracia  
  10. November 2013
 16:12
  *Fleurons* are small decorative pieces that were often used in
 the past for filling big blank spaces in books. They are seldom used 
nowdays. As besides they will not appear more than a few times in any 
book (mainly at the end of chapters), the easiest thing to do if one 
insists in using them (for instance for simulating an old edition of 
some past work) is to arrange its presence manually in the source 
document in the way one would do for any other figure or piece of text.
I subscribe to this, which is without doubt the way to proceed if 
the original document will allways be typesett in the same way. But if 
it were an extensive work and one foresees different layouts for its 
appearence as different *products*, then one would have one more source 
of worries after every run of the work through *Context*, as you can bet
 that sooner than later one page will have been included somewhere whose
 only content will be the damned *fleuron*, something that obviously 
should not happen.
This is the problem that I tackled, because I did not find any 
previous reference or solution to it. My reasoning, my explanations and 
the working code are all contained in the rest of this message.It
 is conceived as being composed of two parts, but it can also be saved 
and dealt as one piece. If one saves it as two independent files (as 
should be done if one intends to use it for any other thing that running
 the tests samples) the content of the first file will be the one 
delimited as *Fleuron.tex* and that of the second (*Fleuron_test.tex*) 
would be the rest of the message. The line of this second file
    % \input {Fleuron}should be uncommented if one intends 
to run it as such. The one file version runs as it is.The script
 creates the new command *\Fleuron{\}*, which is the 
one to include at the place intended in the source document for the 
*fleuron* to appear (of course after having incorporated the contents of
 *Fleuron.tex* in its preamble with *\input{Fleuron}*). The argument 
** allows the selection of a specific motive among 
the several of them that could be available; the user can create and 
organize all this according to his wishes. For instance 
*\Fleuron{\MotiveFive}* would use the example labelled *\MotiveFive* in 
the group of examples provided. The comments in *Fleuron.tex* explain 
how to handle all this.
Enjoy and critiziceFrancisco%
 Fleuron.tex% Script that explains and implements in *ConTeXt* Mk-IV
 the kind of small ornaments% traditionally used by printers for 
filling big blank spaces in books and printed works.
%*Fleuron*: subst. masc. 2b) Élément décoratif de fantaisie ornant 
le titre ou les blancs des principales divisions d'un ouvrage [livre] 
(Trésor de la langue française informatisé).
% Creation of the ornament as an entity (in the form of a box)%
 Typesetting true *fleurons* requires the use of *TeX*'s special *box 
registers* as arguments;% here box register number *0* has been 
arbitrarily selected for the proceedings.
% The essential steps in the construction are:%    - (typo)graphical
 composition of the motive (as for instance *\midaligned{Finis}* in the 
first example)%        or designation of the source file of an 
image,
%    - enclosure of it in a vertical box (*\vbox{\midaligned{Finis}}*) 
and%     - finally association of the boxed motive with boxregister 
*0* (*\setbox0= ...*), all of which happens%  in reverse 
order, from right to left, in the code.
% Here are several examples of this:%\setbox0=\vbox{\midaligned{Finis}}%\setbox0=\vbox{\midaligned{Finis\\coronat\\opus}}%\setbox0=\vbox{\midaligned{*}
 \Inter \midaligned{***} \Inter \midaligned{*}}
% In order to get in *TeX* something remotely similar to a normal 
variable,% called *Motivo*, the following machinery has to be 
implemented  \def\Motivo{\copy0}        % get a copy of register's 
*0* content
% the graphic parts of several (typographical) test motives follow:\def\MotOne{{\midaligned{\em
 Finis}}}\def\MotTwo{{\midaligned{\em Finis\\\em coronat\\\em 
opus}}}\def\MotThree{{\midaligned{*} \Inter \midaligned{***} 
\Inter \midaligned{*}}}
\def\MotFour{{\midaligned{___}}}\def\MotFive{{\bf 
\midaligned{\hl[1]} \Inter \midaligned{\hl[5]} \Inter 
\midaligned{\hl[1]}}}%%% THINGS 
THAT DO NOT WORK%%\setbox0=\vbox{\midaligned{\switchtobodyfont[20pt]*}}   
 % executing these corrupt the whole script
%\setbox0=\vbox{\switchtobodyfont[20pt] \midaligned{*\\***\\*}}%\def\Grande{\midaligned{\switchtobodyfont[50pt]*}}   
     % in any form it is tried%\setbox0=\vbox{\Grande}%%
%%% USING FIGURES AS MOTIVES%%
 Most *fleurons* will be based on figures (usually images of schematic 
line drawings)% rather than on elements of the alphabetical 
character set.
% So it is important to insure that also this alternative 

[NTG-context] Using *fleurons*

2013-11-10 Thread Francisco Gracia
*Fleurons* are small decorative pieces that were often used in the past for
filling big blank spaces in books. They are seldom used nowdays. As besides
they will not appear more than a few times in any book (mainly at the end
of chapters), the easiest thing to do if one insists in using them (for
instance for simulating an old edition of some past work) is to arrange its
presence manually in the source document in the way one would do for any
other figure or piece of text.

I subscribe to this, which is without doubt the way to proceed if the
original document will allways be typesett in the same way. But if it were
an extensive work and one foresees different layouts for its appearence as
different *products*, then one would have one more source of worries after
every run of the work through *Context*, as you can bet that sooner than
later one page will have been included somewhere whose only content will be
the damned *fleuron*, something that obviously should not happen.

This is the problem that I tackled, because I did not find any previous
reference or solution to it. My reasoning, my explanations and the working
code are all contained in the rest of this message.

It is conceived as being composed of two parts, but it can also be saved
and dealt as one piece. If one saves it as two independent files (as should
be done if one intends to use it for any other thing that running the tests
samples) the content of the first file will be the one delimited as
*Fleuron.tex* and that of the second (*Fleuron_test.tex*) would be the rest
of the message. The line of this second file

% \input {Fleuron}

should be uncommented if one intends to run it as such. The one file
version runs as it is.

The script creates the new command *\Fleuron{\}*, which is the
one to include at the place intended in the source document for the
*fleuron* to appear (of course after having incorporated the contents of
*Fleuron.tex* in its preamble with *\input{Fleuron}*). The argument
** allows the selection of a specific motive among the several
of them that could be available; the user can create and organize all this
according to his wishes. For instance *\Fleuron{\MotiveFive}* would use the
example labelled *\MotiveFive* in the group of examples provided. The
comments in *Fleuron.tex* explain how to handle all this.

Enjoy and critizice

Francisco

%%%
%
% Fleuron.tex
% Script that explains and implements in *ConTeXt* Mk-IV the kind of small
ornaments
% traditionally used by printers for filling big blank spaces in books and
printed works.

%*Fleuron*: subst. masc. 2b) Élément décoratif de fantaisie ornant le titre
ou les blancs des principales divisions d'un ouvrage [livre] (Trésor de la
langue française informatisé).
%
%%%

% Creation of the ornament as an entity (in the form of a box)

% Typesetting true *fleurons* requires the use of *TeX*'s special *box
registers* as arguments;
% here box register number *0* has been arbitrarily selected for the
proceedings.
% The essential steps in the construction are:
%- (typo)graphical composition of the motive (as for instance
*\midaligned{Finis}* in the first example)
%or designation of the source file of an image,
%- enclosure of it in a vertical box (*\vbox{\midaligned{Finis}}*) and
% - finally association of the boxed motive with boxregister *0*
(*\setbox0= ...*), all of which happens
%  in reverse order, from right to left, in the code.
% Here are several examples of this:
%\setbox0=\vbox{\midaligned{Finis}}
%\setbox0=\vbox{\midaligned{Finis\\coronat\\opus}}
%\setbox0=\vbox{\midaligned{*} \Inter \midaligned{***} \Inter
\midaligned{*}}

% In order to get in *TeX* something remotely similar to a normal variable,
% called *Motivo*, the following machinery has to be implemented
\def\Motivo{\copy0}% get a copy of register's *0* content

% the graphic parts of several (typographical) test motives follow:
\def\MotOne{{\midaligned{\em Finis}}}
\def\MotTwo{{\midaligned{\em Finis\\\em coronat\\\em opus}}}
\def\MotThree{{\midaligned{*} \Inter \midaligned{***} \Inter
\midaligned{*}}}
\def\MotFour{{\midaligned{___}}}
\def\MotFive{{\bf \midaligned{\hl[1]} \Inter \midaligned{\hl[5]} \Inter
\midaligned{\hl[1]}}}

%
%
% THINGS THAT DO NOT WORK
%
%\setbox0=\vbox{\midaligned{\switchtobodyfont[20pt]*}}% executing these
corrupt the whole script
%\setbox0=\vbox{\switchtobodyfont[20pt] \midaligned{*\\***\\*}}
%\def\Grande{\midaligned{\switchtobodyfont[50pt]*}}% in any form it
is tried
%\setbox0=\vbox{\Grande}
%
%

%
%
% USING FIGURES AS MOTIVES
%
% Most *fleurons* will be based on figures (usually images of schematic
line drawings)
% rather than on elements of the alphabetical character set.
% So it is important to insure that also this alternative works as it
should.
% *Contextref* says that just giving the name of the f