ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Question to covers
Date: Fri, 20 Jul 2018 20:49:42 +0200	[thread overview]
Message-ID: <B8E11373-58E0-429A-A517-8F20484195E1@fiee.net> (raw)
In-Reply-To: <20180720151651.GB3412@akela.mendelu.cz>

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

Am 2018-07-20 um 17:16 schrieb Tomas Hala <tomas.hala@mendelu.cz>:

> I would like to ask whether we have got some module or macros
> for comfortable proposing of covers for different kinds of binding,
> containing automatic computation of the corresponding measurments
> and displaying the parts for bookbinders (eg cutting lines, 
> protection zones, bends, pasting parts etc.)

Hi Tomáš,

I don’t know of anything existing.
Find attached what I use for a magazine – I include title and back pages in the main PDF (to get a complete issue for corrections and online distribution) and use that as externalfigure, just creating the spine anew.
HTH

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



[-- Attachment #2: cover.tex --]
[-- Type: application/octet-stream, Size: 1564 bytes --]


\newdimen\Spinewidth
\newdimen\SpineOffset
\Spinewidth=6mm
\useexternalfigure[MAG][_pdf/magazine.pdf]
\def\ISSUE{34}
\def\TOPIC{Topic}
\def\LastPage{112} % don’t know how to compute that

\SpineOffset=\dimexpr(\Spinewidth - 9pt)/5\relax

\definepapersize[Cover]
  [width=\dimexpr 420mm + \Spinewidth\relax,
  height=297mm]
\setuppapersize[Cover]
\usetypescriptfile[myfont]
\setupbodyfont[myfont,9pt]
\setuplayout[
  marking=on,
]
\setuppagenumbering[state=stop]

\definelayer[whole]
  [width=\paperwidth,
  height=\paperheight]
\setupbackgrounds[page][background={whole},state=start]

\definecolor[cmykblack][c=0,m=0,y=0,k=1]
\setupcolors[
  pagecolormodel=auto,
  rgb=no,cmyk=yes,spot=no,
  state=start,
  overprint=yes,
  intent={Uncoated FOGRA29 (ISO 12647-2:2004)},
  textcolor=cmykblack
]
\starttext
\strut

\setlayer[whole]
  [hoffset=0mm,
  voffset=0mm]{%
  \externalfigure[MAG][page=\LastPage]}

\setlayer[whole]
  [hoffset=\dimexpr 210mm + \Spinewidth\relax,
  voffset=0mm]{%
  \externalfigure[MAG][page=1]}

\setlayerframed[whole]
    [x=210mm,
    y=20mm,
    frame=off,
    offset=overlay,
    width=\Spinewidth,
    align=center]{\ISSUE}

\setlayerframed[whole]
  [x=210mm,y=92mm,
  frame=off,
  offset=overlay,
  align=right,
  width=\Spinewidth,
  height=190mm,
  %height=\dimexpr\paperheight -15mm\relax,
  ]{%
  \rotate[rotation=90,
  align={right,middle},
  frame=off,
  height=\Spinewidth,
  width=190mm,
  ]{\vskip\SpineOffset\vbox{MAGAZINE\hfill\TOPIC}}}

\stoptext

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-07-20 18:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 15:16 Tomas Hala
2018-07-20 18:49 ` Henning Hraban Ramm [this message]
2018-07-21 15:39   ` Wolfgang Schuster
2018-07-21 17:12     ` Henning Hraban Ramm
2018-07-21 20:06       ` Hans Hagen
     [not found] <20180728081230.GA31599@akela.mendelu.cz>
2018-07-28  9:15 ` Henning Hraban Ramm
2018-07-28 10:01   ` Henning Hraban Ramm
2018-07-28 10:30     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B8E11373-58E0-429A-A517-8F20484195E1@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).