From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95778 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Pierre Delange Newsgroups: gmane.comp.tex.context Subject: Re: Interlining in a TwoColumns set Date: Fri, 12 Aug 2016 15:50:02 +0200 Message-ID: References: <57acd518.944f190a.fafd8.1ee1@mx.google.com> <57ADA020.7070905@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7376652602196410547==" X-Trace: blaine.gmane.org 1471009851 24539 195.159.176.226 (12 Aug 2016 13:50:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2016 13:50:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 12 15:50:45 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYCrF-00068t-JF for gctc-ntg-context-518@m.gmane.org; Fri, 12 Aug 2016 15:50:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0EE0C14CF4; Fri, 12 Aug 2016 15:50:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zupE_nwLuH7Y; Fri, 12 Aug 2016 15:50:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6709C14D1A; Fri, 12 Aug 2016 15:50:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EF84A14CF4 for ; Fri, 12 Aug 2016 15:50:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w8RK41wQZbpJ for ; Fri, 12 Aug 2016 15:50:13 +0200 (CEST) Original-Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 16CDD10D1A for ; Fri, 12 Aug 2016 15:50:03 +0200 (CEST) Original-Received: from [192.168.0.11] (unknown [78.208.237.21]) by smtp2-g21.free.fr (Postfix) with ESMTP id 4D500200332 for ; Fri, 12 Aug 2016 13:45:11 +0200 (CEST) In-Reply-To: <57ADA020.7070905@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95778 Archived-At: This is a multi-part message in MIME format. --===============7376652602196410547== Content-Type: multipart/alternative; boundary="------------8ED3677D5AF5479B2FB4226B" This is a multi-part message in MIME format. --------------8ED3677D5AF5479B2FB4226B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------8ED3677D5AF5479B2FB4226B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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 <adeimantos@free.fr>,

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

--------------8ED3677D5AF5479B2FB4226B-- --===============7376652602196410547== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============7376652602196410547==--