* DIN lang folder with crop marks
@ 2019-04-10 18:33 Benjamin Koppe
2019-04-10 18:53 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Koppe @ 2019-04-10 18:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 655 bytes --]
Hallo,
I'm new to ConTeXt and am crazy enough to start with something
nonstandard.
Of course I got stuck pretty fast. I started out with this:
https://wiki.contextgarden.net/DIN_lang_folder
and then found some info on crop marks here:
https://wiki.contextgarden.net/PaperSetup#Crop_marks
I tried different options (marked=on, market=colour, marked=color...,
something with \setuplayout[location={middle,middle}]...)
Some times the crop marks don't show at all, sometimes they are set off
a bit so they don't fit with the actual document.
I added the whole file as I really do not knwo (yet) how to reduce
things...
Thanks for any help
De Benny
[-- Attachment #2: example.tex --]
[-- Type: text/x-tex, Size: 3776 bytes --]
%% This is a template for a Din lang Folder.
%% The folded page of such a flyer is shorter (97mm) than the other pages (100mm)
%% This measure shows how much shorter the folded page is.
\definemeasure
[shortfold]
[3mm]
%% The bleed measure is necessary if you have colored page backgrounds
%% or images in the bleed.
%% Different print shops need different bleeds.
\definemeasure
[bleed]
[3mm]
%% This is the pagesize of the final PDF.
%% The bleed size is added two times to width and height.
\definepapersize
[A4-flyer]
[width=\dimexpr297mm+2\measured{bleed}\relax,
height=\dimexpr210mm+2\measured{bleed}\relax]
%% The size of a normal page.
\definepapersize
[flyer-page]
[width=100mm,
height=210mm]
%% The size of the folded page.
\definepapersize
[flyer-page-small]
[width=\dimexpr100mm-\measure{shortfold}\relax,
height=210mm]
%% Imposition: With the following two commands we arrange the six pages
%% on the final PDF print sheet.
%% The flyerpages are imposed on the printed sheet.
\setuppapersize
[flyer-page]
[A4-flyer]
%% The pages are arranged as a tryptichon.
\setuparranging
[TRYPTICHON]
%% Because of the shorter folded page and the bleed the pages has
%% to be shifted horizontally on the printed sheet.
%% The values are calculated here.
\definepageshift
[flyer]
[horizontal]
[\dimexpr\measure{bleed}-\measured{shortfold}\relax,
\measure{bleed},
\measure{bleed},
\dimexpr2\measured{shortfold}+\measured{bleed}\relax,
\measure{bleed},
\dimexpr\measure{bleed}-\measured{shortfold}\relax
]
%% The vertical pageshift is simple.
\definepageshift
[flyer]
[vertical]
[\measure{bleed}]
\setuppageshift
[paper]
[flyer]
%% We define some measures to construct the page layout.
\definemeasure
[small]
[3mm]
\definemeasure
[big]
[\measure{small}*2]
%% Each page has a slightly different page layout.
%% The named layouts (1. bracket) inherit values from other layouts
%% which are assigned in the second bracket.
\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=2\measured{big},
backspace=2\measured{big},
width=\dimexpr\paperwidth-3\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]
%% We assign the layouts to the pages.
\definelayout [1] [first]
\definelayout [2] [second]
\definelayout [3] [thirdandfourth]
\definelayout [4] [thirdandfourth]
\definelayout [5] [fifthandsixth]
\definelayout [6] [fifthandsixth]
%% Some setups
\setupmakeup [doublesided=no]
\setupbodyfont [mainface,10pt]
\setuptolerance [verytolerant]
\setuplayout[marking=color]
%% We want to see page and layout borders.
%% COMMENT THIS OUT BEFORE YOU PRINT!
\showframe
\starttext
\starttitle[title={First page},marking{ }]
\input lorem
\stoptitle
\starttitle[title={Second page},marking{ }]
\input lorem
\stoptitle
\starttitle[title={Third page},marking{ }]
\input lorem
\stoptitle
\starttitle[title={Fourth page},marking{ }]
\setuppapersize [flyer-page-small] [A4-flyer]
\input lorem
\stoptitle
\starttitle[title={Fifth page},marking{ }]
\input lorem
\stoptitle
\starttitle[title={Sixth page},marking{ }]
\setuppapersize [flyer-page] [A4-flyer]
\input lorem
\stoptitle
\stoptext
[-- Attachment #3: Type: text/plain, Size: 493 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DIN lang folder with crop marks
2019-04-10 18:33 DIN lang folder with crop marks Benjamin Koppe
@ 2019-04-10 18:53 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2019-04-10 18:53 UTC (permalink / raw)
To: mailing list for ConTeXt users, Benjamin Koppe
Benjamin Koppe schrieb am 10.04.2019 um 20:33:
> Hallo,
>
> I'm new to ConTeXt and am crazy enough to start with something
> nonstandard.
>
> Of course I got stuck pretty fast. I started out with this:
>
> https://wiki.contextgarden.net/DIN_lang_folder
>
> and then found some info on crop marks here:
>
> https://wiki.contextgarden.net/PaperSetup#Crop_marks
>
>
> I tried different options (marked=on, market=colour, marked=color...,
> something with \setuplayout[location={middle,middle}]...)
>
> Some times the crop marks don't show at all, sometimes they are set off
> a bit so they don't fit with the actual document.
>
> I added the whole file as I really do not knwo (yet) how to reduce
> things...
When you increase the size of the printed paper
\definepapersize
[A4-flyer]
[width=\dimexpr297mm+10\measured{bleed}\relax,
height=\dimexpr210mm+10\measured{bleed}\relax]
and center the arranged pages
\setuplayout
[marking=on,
location=middle]
you can see the shifting moves everything away from the marks.
BTW: You forgot the = for the marking settings in \startttitle.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-10 18:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10 18:33 DIN lang folder with crop marks Benjamin Koppe
2019-04-10 18:53 ` Wolfgang Schuster
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).