From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102019 Path: news.gmane.org!.POSTED!not-for-mail From: "Jan U. Hasecke" Newsgroups: gmane.comp.tex.context Subject: Re: Creating flyers with ConTeXt Date: Mon, 24 Sep 2018 22:25:52 +0200 Message-ID: <60e9e183-75af-fc14-b30f-9237cc9b9b34@mailbox.org> References: <9f89ccdc-3b28-2914-4e86-f175e2f6d769@mailbox.org> <20180921165658.567e1938@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7107ECDA66B0020FB0F18E41" X-Trace: blaine.gmane.org 1537820659 29915 195.159.176.226 (24 Sep 2018 20:24:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 20:24:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 24 22:24:15 2018 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 1g4XOw-0007fW-VC for gctc-ntg-context-518@m.gmane.org; Mon, 24 Sep 2018 22:24:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C47B76E8A6; Mon, 24 Sep 2018 22:26:07 +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 1hJcHofJm2AR; Mon, 24 Sep 2018 22:26:06 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9B66F6E8E5; Mon, 24 Sep 2018 22:26:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4F3F86E8E3 for ; Mon, 24 Sep 2018 22:26:05 +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 jqxXcUsiepwO for ; Mon, 24 Sep 2018 22:26:04 +0200 (CEST) Original-Received: from mx1.mailbox.org (mx1.mailbox.org [80.241.60.212]) (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 C092B6E8E6 for ; Mon, 24 Sep 2018 22:25:54 +0200 (CEST) Original-Received: from smtp2.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 5AF4D4949A for ; Mon, 24 Sep 2018 22:25:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-language:content-type:content-type:in-reply-to :mime-version:date:date:message-id:from:from:references:subject :subject:received; s=mail20150812; t=1537820753; bh=BtCVEaOkYqqa M7W/60UrC6KVpUQkSEsxF613oQqYjcc=; b=WY69a++yRAHVD1qb1bOmqpfUKtwy 0w+aU6Ya93GEfKpjWvH/oC8kRN/13EUDeYUlXm3sDIe2RjOgLQxaSaJtsYShYrHc t1j8qIQXQiICvLG9lmrSvtn9e6eTaE3dKmpAibMvMSyt2nUPsffAFp7MbEAjkDFu XCeDwIHmUpTUnouS+ALCEfQPQm7v4n0QbCB5loV6Dw6FtZIE6ptQzHYwDqEidQ9l uH5qeMKlqDblDJjQU7Rq9DswndyfOvlHJAgr0ZD0bGCjULaejj+Ruao4K7htOZu9 M+7MKzrtqld4fZuthsmmgkJjItQ0UlfeFZSSDOwM1ogMyXSP/rLYBgHduA== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id AFkmjKWxefTM for ; Mon, 24 Sep 2018 22:25:53 +0200 (CEST) In-Reply-To: <20180921165658.567e1938@homerow> Content-Language: de-DE X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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:102019 Archived-At: This is a multi-part message in MIME format. --------------7107ECDA66B0020FB0F18E41 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Marco, On 21.09.18 16:56, Marco Patzer wrote: > A while ago I made a corporate flyer with context using the > TRYPTICHON method. Printing required 3mm bleed. Thanks a lot for this template. This is exactly what I need. I try to understand it in order to adapt it to the requirements of my print shop which only needs a bleed of 1mm. I hope that I understand it right: Page 1,2,3 and 6 are 100mm Page 4 and 5 are 97mm as these are the pages that are folded to the inside. The measure "shortfold" (3mm) reduces the 100mm page to 97mm. Right? The pageshift thing is beyond my horizon so I won't comment on this. You adjust the backspace of the pages with multiples of the measure "big". Right? As you can see in my example I use layers on page 2-4 to have bleeding images on the top of the page. This works more or less. But as you can see there are blank white spaces between the images of page 2-4. Maybe I can adjust this by using absolut measures like 100mm or 97mm in the layers. I have to adjust the layout of pages 2-4 so that the text starts below the images. An now here is my question. Is there a value I can simply change to have a pdf with only 1mm bleed? Only adjusting the papersize A4-flyer to 299mm/212mm does not work of course. TIA juh --------------7107ECDA66B0020FB0F18E41 Content-Type: text/x-tex; name="flyeralarm.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="flyeralarm.tex" %% The page shift of page #6 needs to be adjusted if the value is changed, no %% clue why. %% A4-flyer pagesize needs to be adjusted as well \definemeasure [shortfold] [3mm] \definepapersize [A4-flyer] [width=303mm, height=216mm] \definepapersize [flyer-page] [width=100mm, height=210mm] \definepapersize [flyer-page-small] [width=\dimexpr100mm-\measure{shortfold}\relax, height=210mm] \setuppapersize [flyer-page] [A4-flyer] \setuparranging [TRYPTICHON] %% The page shift of page #6 needs to be adjusted if shortfold is adjusted, no %% clue why. \definepageshift [flyer] [horizontal] [\zeropoint, \measure{shortfold}, \measure{shortfold}, 3\measured{shortfold}, \measure{shortfold}, \zeropoint] \definepageshift [flyer] [vertical] [\measure{shortfold}] \setuppageshift [paper] [flyer] \definemeasure [small] [3mm] \definemeasure [big] [\measure{small}*2] \definelayout [first] [page] [page=flyer-page, topspace=2\measured{big}, backspace=2\measured{small}, width=\dimexpr\paperwidth-4\measured{small}\relax, height=\dimexpr\paperheight-4\measured{big}\relax] \definelayout [second] [first] [topspace=4\measured{big}, backspace=2\measured{big}, width=\dimexpr\paperwidth-3\measured{big}\relax, height=\dimexpr\paperheight-4\measured{big}-2\measured{big}\relax] \definelayout [thirdandfourth] [second] [backspace=\measure{big}, width=\dimexpr\paperwidth-2\measured{big}\relax] \definelayout [fifthandsixth] [first] [backspace=\measure{big}, width=\dimexpr\paperwidth-2\measured{big}\relax] \definelayout [1] [first] \definelayout [2] [second] \definelayout [3] [thirdandfourth] \definelayout [4] [thirdandfourth] \definelayout [5] [fifthandsixth] \definelayout [6] [fifthandsixth] \setuphead[title][header=none,footer=none] \definecolor [hs-logoblau] [c=1.0,m=0.46,y=0.0,k=0.42] \definecolor [hs-dunkelblau] [c=0.65,m=0.36,y=0.0,k=0.26] \definecolor [hs-mittelblau] [c=0.72,m=0.33,y=0.0,k=0.28] \definecolor [hs-hellblau] [c=0.30,m=0.14,y=0.0,k=0.14] \definecolor [hs-orange] [c=0.0,m=0.67,y=1.0,k=0.13] \definefontfamily [mainface] [rm] [Tex Gyre Heros] \setupmakeup [doublesided=no] \setupinterlinespace[line=3ex] \setuphead [title] [textcolor=hs-dunkelblau,textstyle=\bfc, align=right] \setupbodyfont [mainface,10pt] \setuptolerance [verytolerant] \mainlanguage [de] \setbreakpoints[compound] \definelayer[Hintergrund] [x=0, y=0, width=\paperwidth, height=\paperwidth] \setlayer[Hintergrund] [x=1.2cm, y=1cm] {\externalfigure[../bilder/logo.pdf][width=7cm]} \definelayer[topic1] [x=-3mm, y=-3mm, width=\paperwidth, height=\paperheight] \setlayer[topic1] [x=-3mm, y=-3mm] {\externalfigure[../bilder/topic1.png][width=102mm]} \definelayer[topic2] [x=0, y=-3mm, width=\paperwidth, height=\paperheight] \setlayer[topic2] [x=0cm, y=-3mm] {\externalfigure[../bilder/topic2.png][width=99mm,height=58mm]} \definelayer[topic3] [x=0, y=0, width=\paperwidth, height=\paperwidth] \setlayer[topic3] [x=0cm, y=-3mm] {\externalfigure[../bilder/topic3.png][width=102mm]} \definelayer[blau] [x=0, y=-3mm, width=\paperwidth, height=\paperheight] \setlayer[blau] [x=0mm,y=-3mm] {\framed[frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}} \showframe \starttext \setupbackgrounds[page][background=blau] \startstandardmakeup \externalfigure [../bilder/example.png] [width=\textwidth] \blank[5*big] \externalfigure [../bilder/logo.svg] [width=\textwidth] \stopstandardmakeup \starttitle[title={PAGE 2},marking{}] \setupbackgrounds[page][background=topic1] \input lorem \stoptitle \starttitle[title={PAGE 3},marking{ }] \setupbackgrounds[page][background=topic2] \input lorem \stoptitle \starttitle[title={PAGE 4},marking{}] \setuppapersize [flyer-page-small] [A4-flyer] \setupbackgrounds[page][background=topic3] \input lorem \framed[framecolor=hs-orange, background=color, backgroundcolor=hs-orange, foregroundcolor=white, offset=3ex, framecorner=round, backgroundcorner=round, location=hanging]{\tfb Call to action!} \stoptitle \starttitle[title={PAGE 5},marking{ }] \input lorem \stoptitle \page \setuppapersize [flyer-page] [A4-flyer] \setlayer[blau] [x=0mm,y=-3mm] {\framed[frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}} \starttextcolor[white] \setupbackgrounds[page][background=blau] \externalfigure [../bilder/example.jpg] [width=\textwidth] \input lorem \blank[4*big] lorem\\ ipsum\\ dolor\\ Mail: info@example.com \stoptitle \stoptextcolor \stoptext --------------7107ECDA66B0020FB0F18E41 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --------------7107ECDA66B0020FB0F18E41--