Dear List,
In order to help somebody who wants to improve a kind presentation of
his own, I have set the sample below.
I am confronting to 2 issues :
1. In the second column it would be fine if one could play with the
interlining. But where to put this command :
\setupinterlinespace[line=2.8ex]}] which allow to define interlines
inside the 2nd column ?
2. The Logo.svg picture (in /Images/Logo.svg within context repertory)
doesn't print : 'state: unknown'; is it an issue caused by a layer
definition ?
Thanks for your advices.
JP
% Select language
\mainlanguage[fr]
\language[fr]
% Setup PDF metadata
\setupinteraction
[state=start,
color=colour_link,
click=yes,
contrastcolor=colour_link,
focus=standard, % Clicking an inter-document hyperlink by default
switches to "fit page" mode. Override.
openaction={FitWidth,ToggleViewer},
title={Anciens et Modernes},
style=normal,
subtitle={Anciens et Modernes},
author=Adeimantos ,
keyword={philosophy, history, political philosophy}]
% Turn off page numbering
\setuppagenumbering[location=]
% Normal A4 size paper
\setuppapersize[A4][A4]
% Setup margins
\setuplayout[
backspace=10mm,
width=190mm,
topspace=5mm,
header=0mm,
footer=5mm,
footerdistance=0mm,
bottomdistance=10mm,
height=280mm]
%\showframe
% For coloured output
\setupcolors[state=start]
% Font setup
% Font to use
\definefontfamily [main_font] [rm] [titillium] [features={default,quality}]
\definefontfamily [main_font] [mm] [TeX Gyre Pagella]
\setupbodyfont[main_font]
% URL macros and setups
% Usage: \href{http://www.someurl.com}{Text}
\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\def\ahref#1{\href{#1}{<#1>}}
\def\fullahref#1{\href{#1}{#1}}
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}
% Style
\setupurl
[color=none,
style=normal]
% Setup two columns
\defineparagraphs[TwoColumns][n=2, align={hz,hanging}]
\setupparagraphs[TwoColumns][1][width=200pt]
% Setup stretching tolerance...
\setuptolerance[verytolerant,stretch]
\setupcolors[state=start]
% The elements of the letterhead are defined as layers. This first layer
% contains the logo; you'll have to supply an image file yourself.
\definelayer[logo_layer]
\setlayer[logo_layer][preset=lefttop,y=.01\paperheight,x=.82\paperwidth]
{\externalfigure[Images/Logo.svg][][height=0.2\textwidth]}
% Activate all layers for this page...
\setupbackgrounds[page][background={logo_layer}]
% Start document body...
\starttext
% Header...
{\switchtobodyfont[40pt] Anciens et Modernes \crlf}
\blackrule[height=0.6mm,width=0.83\textwidth]
% Dateline...
{\bf Présentation}\crlf
\currentdate[dd,{~},m,{~},year]
% Headline...
\blank
\framed[align=middle,width=200mm,height=13mm,frame=off]
{
\bf \switchtobodyfont[15pt]
{\bf Philosophie politique.}
}
\startTwoColumns
\startlines
{\bf Contact Information}
Adeimantos
Le Manoir
F - 18190 Chavannes
adeimantos@free.fr
{\bf Édition}
Livres, articles
{\bf Dévelopement}
Prototype
{\bf Année de création}
2012
{\bf Financements privés}
\$0
\stoplines
\TwoColumns
\input tufte
\stopTwoColumns
\stoptext