From: "Lukáš Procházka" <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: new beta - \pushbackground broken
Date: Sun, 12 Jul 2015 00:22:04 +0200 [thread overview]
Message-ID: <op.x1mq221ff14xzu@lkzd-2013> (raw)
In-Reply-To: <559E7982.4080405@wxs.nl>
[-- Attachment #1: Type: text/plain, Size: 1933 bytes --]
Hello,
\pushbackground seems to be broken in the last beta - this doesn't compile (but it did till now):
----
\defineheadalternative
[PartAlt]
[renderingsetup=set:PartPage]
\startsetups[set:PartPage]
\startmakeup[mu:PartPage]
\white
\headnumbercontent
\blank[2*big]
\headtextcontent
\stopmakeup
\stopsetups
\definemakeup
[mu:PartPage]
[align=middle,
top=\vfill\vfill,
bottom=\vfill\vfill\vfill,
]
\definefont[PartText][SerifBold sa 5]
% Method 1: change the values of the predefined "default" conversion set,
% you can use name of the sectionblock as prefix (separated by a :) to set
% the values only for a certain part (e.g. the appendix) of your document
\defineconversionset[appendix:default][A,R][n]
% Method 2: Create your own conversion set and apply it to all sections
%
% \defineconversionset[bodypart:myconversion][n,n][n]
% \defineconversionset[appendix:myconversion][A,R][n]
% \setuphead[part,chapter,section][sectionconversionset=myconversion]
\setuphead
[part]
[placehead=yes,
alternative=PartAlt,
page=right,
header=none,
before={\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=black]},
after={\page\popbackground},
bodypartlabel=MyPart:body,
appendixlabel=MyPart:appx,
align=middle,
numberstyle=\bfc,
textstyle=PartText,
]
\setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]
\starttext
\startbodymatter
\part{My First Part}
\input knuth
\stopbodymatter
\startappendices
\part{My First Appendix}
\input tufte
\stopappendices
\stoptext
----
Lukas
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
[-- Attachment #2: Ull-Gra.test2.pdf --]
[-- Type: application/pdf, Size: 14588 bytes --]
[-- Attachment #3: Ull-Gra.test22.log --]
[-- Type: application/octet-stream, Size: 11909 bytes --]
open source > 1 > 1 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2015.7.11 int: english/english
system > 'cont-new.mkiv' loaded
open source > 2 > 2 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
close source > 2 > 2 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
system > files > jobname 'Ull-Gra.test22', input 'D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv', result 'Ull-Gra'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > 2 > 3 > D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
structures > begin of sectionblock 'bodypart'
tex error > error on line 55 in file D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv: ! Undefined control sequence
\118>part:before ->\pushbackground
[page] \setupbackgrounds [page][backgroun...
\strc_sectioning_handle_page_yes ...ter \c!before
\relax \fi \global \c_strc...
\strc_sectioning_check_before ...ering_continue #1
\fi
\strc_sectioning_before_yes ...ng_handle_page_yes
\headparameter \c!inbetwee...
\strc_sectioning_handle ..._sectioning_before_yes
\strc_sectioning_register ...
l.55 \part{My First Part}
45 appendixlabel=MyPart:appx,
46 align=middle,
47 numberstyle=\bfc,
48 textstyle=PartText,
49 ]
50
51 \setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]
52
53 \starttext
54 \startbodymatter
55 >> \part{My First Part}
56 \input knuth
57 \stopbodymatter
58 \startappendices
59 \part{My First Appendix}
60 \input tufte
61 \stopappendices
62 \stoptext
63
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
structure > sectioning > part @ level 1 : 1 -> My First Part
backend > xmp > using file 'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
tex error > error on line 55 in file D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv: ! Undefined control sequence
<recently read> \popbackground
\strc_sectioning_after_yes ...dparameter \c!after
\fi
\strc_sectioning_handle ...c_sectioning_after_yes
\else \ifconditional \c_st...
l.55 \part{My First Part}
45 appendixlabel=MyPart:appx,
46 align=middle,
47 numberstyle=\bfc,
48 textstyle=PartText,
49 ]
50
51 \setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]
52
53 \starttext
54 \startbodymatter
55 >> \part{My First Part}
56 \input knuth
57 \stopbodymatter
58 \startappendices
59 \part{My First Appendix}
60 \input tufte
61 \stopappendices
62 \stoptext
63
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
open source > 3 > 4 > c:/Ctx-Beta/tex/texmf-context/tex/context/sample/knuth.tex
close source > 3 > 4 > c:/Ctx-Beta/tex/texmf-context/tex/context/sample/knuth.tex
structures > end of sectionblock 'bodypart'
pages > flushing realpage 2, userpage 2
structures > begin of sectionblock 'appendix'
tex error > error on line 59 in file D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv: ! Undefined control sequence
\118>part:before ->\pushbackground
[page] \setupbackgrounds [page][backgroun...
\strc_sectioning_handle_page_yes ...ter \c!before
\relax \fi \global \c_strc...
\strc_sectioning_check_before ...ering_continue #1
\fi
\strc_sectioning_before_yes ...ng_handle_page_yes
\headparameter \c!inbetwee...
\strc_sectioning_handle ..._sectioning_before_yes
\strc_sectioning_register ...
l.59 \part{My First Appendix}
49 ]
50
51 \setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]
52
53 \starttext
54 \startbodymatter
55 \part{My First Part}
56 \input knuth
57 \stopbodymatter
58 \startappendices
59 >> \part{My First Appendix}
60 \input tufte
61 \stopappendices
62 \stoptext
63
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
structure > sectioning > part @ level 1 : 1 -> My First Appendix
pages > flushing realpage 3, userpage 3
tex error > error on line 59 in file D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv: ! Undefined control sequence
<recently read> \popbackground
\strc_sectioning_after_yes ...dparameter \c!after
\fi
\strc_sectioning_handle ...c_sectioning_after_yes
\else \ifconditional \c_st...
l.59 \part{My First Appendix}
49 ]
50
51 \setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]
52
53 \starttext
54 \startbodymatter
55 \part{My First Part}
56 \input knuth
57 \stopbodymatter
58 \startappendices
59 >> \part{My First Appendix}
60 \input tufte
61 \stopappendices
62 \stoptext
63
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
open source > 3 > 5 > c:/Ctx-Beta/tex/texmf-context/tex/context/sample/tufte.tex
close source > 3 > 5 > c:/Ctx-Beta/tex/texmf-context/tex/context/sample/tufte.tex
structures > end of sectionblock 'appendix'
pages > flushing realpage 4, userpage 4
close source > 2 > 5 > D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv
close source > 1 > 5 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv
system > structure > start used structure
used structure > text: Ull-Gra.test22
system > structure > stop used structure
system > files > start used files
used file > 1: filename=cont-yes.mkiv filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file > 2: filename=cont-new.mkiv filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file > 3: filename=lang-us.lua filetype=scripts foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file > 4: filename=D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv foundname=D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv usedmethod=direct
used file > 5: filename=lm.lfg filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file > 6: filename=lmroman12-regular filetype=otf format=otf foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file > 7: filename=latinmodern-math.otf filetype=opentypefonts foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 8: filename=lmroman10-regular filetype=otf format=otf foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
used file > 9: filename=lmroman10-bold filetype=otf format=otf foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman10-bold.otf usedmethod=database
used file > 10: filename=lpdf-pdx.xml filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database
used file > 11: filename=knuth filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/sample/knuth.tex usedmethod=database
used file > 12: filename=tufte filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/sample/tufte.tex usedmethod=database
system > files > stop used files
system > options > start commandline options
used option > currentrun="1"
used option > fulljobname="D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv"
used option > halt-on-error="true"
used option > input="D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"
used option > nonstopmode="true"
used option > path="D:\\Lukas\\ConTeXt\\Styles"
system > options > stop commandline options
system > options > start commandline files
used file > 1: D:/Lukas/Docs/Ull-Gra/Test/Ull-Gra.test22.mkiv
system > options > stop commandline files
mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats > resource resolver: loadtime 0.012 seconds, 1 scans with scantime 0.031 seconds, 0 shared scans, 12 found files, scanned paths: c:/windows/fonts
mkiv lua stats > stored bytecode data: 353 modules (0.159 sec), 69 tables (0.004 sec), 422 chunks (0.163 sec)
mkiv lua stats > running in nuts mode: yes
mkiv lua stats > cleaned up reserved nodes: 45 nodes, 442 lists of 441
mkiv lua stats > node memory usage: 3 glue, 3 penalty, 16 attribute, 52 glue_spec, 4 attribute_list, 2 temp
mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 211 calls
mkiv lua stats > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns: en::2, load time: 0.000
mkiv lua stats > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats > callbacks: 539 direct, 272 indirect, 811 total
mkiv lua stats > result saved in file: Ull-Gra.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats > fonts load time: 0.254 seconds for 7 fonts, 1 shared in backend, 0 common vectors, 1 common hashes
mkiv lua stats > used platform: mswin, type: windows, binary subtree: texmf-mswin
mkiv lua stats > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/w32tex) (rev 5041)
mkiv lua stats > control sequences: 39074 of 65536 + 100000
mkiv lua stats > lua properties: engine: lua, used memory: 36 MB (ctx: 35 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats > runtime: 0.931 seconds, 4 processed pages, 4 shipped pages, 4.296 pages/second
[-- Attachment #4: Ull-Gra.test22.mkiv --]
[-- Type: application/octet-stream, Size: 1570 bytes --]
\defineheadalternative
[PartAlt]
[renderingsetup=set:PartPage]
\startsetups[set:PartPage]
\startmakeup[mu:PartPage]
\white
\headnumbercontent
\blank[2*big]
\headtextcontent
\stopmakeup
\stopsetups
\definemakeup
[mu:PartPage]
[align=middle,
top=\vfill\vfill,
bottom=\vfill\vfill\vfill,
]
\definefont[PartText][SerifBold sa 5]
% Method 1: change the values of the predefined "default" conversion set,
% you can use name of the sectionblock as prefix (separated by a :) to set
% the values only for a certain part (e.g. the appendix) of your document
\defineconversionset[appendix:default][A,R][n]
% Method 2: Create your own conversion set and apply it to all sections
%
% \defineconversionset[bodypart:myconversion][n,n][n]
% \defineconversionset[appendix:myconversion][A,R][n]
% \setuphead[part,chapter,section][sectionconversionset=myconversion]
\setuphead
[part]
[placehead=yes,
alternative=PartAlt,
page=right,
header=none,
before={\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=black]},
after={\page\popbackground},
bodypartlabel=MyPart:body,
appendixlabel=MyPart:appx,
align=middle,
numberstyle=\bfc,
textstyle=PartText,
]
\setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]
\starttext
\startbodymatter
\part{My First Part}
\input knuth
\stopbodymatter
\startappendices
\part{My First Appendix}
\input tufte
\stopappendices
\stoptext
[-- Attachment #5: Ull-Gra.test22.pdf --]
[-- Type: application/pdf, Size: 14701 bytes --]
[-- Attachment #6: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-07-11 22:22 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 13:39 new beta Hans Hagen
2015-07-10 15:05 ` Thomas A. Schmitz
2015-07-10 17:13 ` Pablo Rodriguez
2015-07-10 23:29 ` Hans Hagen
2015-07-10 23:33 ` Hans Hagen
2015-07-11 5:17 ` Pablo Rodriguez
2015-07-11 8:53 ` Hans Hagen
2015-07-11 11:15 ` Pablo Rodriguez
2015-07-11 21:26 ` Hans Hagen
2015-07-11 10:57 ` Wolfgang Schuster
2015-07-11 11:19 ` Pablo Rodriguez
2015-07-11 11:26 ` Wolfgang Schuster
2015-07-11 12:02 ` Pablo Rodriguez
2015-07-11 12:32 ` Thomas A. Schmitz
2015-07-11 12:32 ` Wolfgang Schuster
2015-07-11 14:27 ` Pablo Rodriguez
2015-07-11 15:23 ` Wolfgang Schuster
2015-07-11 16:11 ` Pablo Rodriguez
2015-07-11 21:28 ` Hans Hagen
2015-07-10 19:53 ` Dominik Gerstorfer
2015-07-11 22:22 ` Lukáš Procházka [this message]
2015-07-12 10:04 ` new beta - \pushbackground broken Hans Hagen
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=op.x1mq221ff14xzu@lkzd-2013 \
--to=lpr@pontex.cz \
--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).