Metafun, difficulty with graphical element in the margin
Good evening! I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation. I am currently using the before last version of LMTX-ConTeXT (January 21st 2022). Could someone try to compile? Thanks, kind regards Willi
On Saturday, March 19, 2022 12:59 AM Willi Egger via ntg-context wrote:
Could someone try to compile?
I have compiled your test file with both the below versions : • mtx-context | current version: 2022.01.21 20:13 • mtx-context | current version: 2022.03.12 17:56 In both cases, no errors were emitted by MetaFun; the output also seems to be as expected (thumb pictures progressively moving downward with every chapter). Sreeram
On 3/18/2022 8:29 PM, Willi Egger via ntg-context wrote:
Good evening!
I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation.
I am currently using the before last version of LMTX-ConTeXT (January 21st 2022).
Could someone try to compile? works here (with the latest)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hi Willi, Your test file works fine if I place \setups{Thumb-pictures} before \starttext (using version 2022.03.12 17:56 LMTX). However in the file you sent the choice of the command \setups{Thumb-pictures} is between chapter A and B, which seems starnge to me... Best regards: Otared K.
On 18 Mar 2022, at 20:29, Willi Egger via ntg-context
wrote: Good evening!
I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation.
I am currently using the before last version of LMTX-ConTeXT (January 21st 2022).
Could someone try to compile?
Thanks, kind regards
Willi
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hello Otared, thanks so much for your testing and comments. — Tthe problem is, that this thumb-picture should only be placed in the \startboydmatter..\stopbodymatter sections. In the case of this book however there are the title pages and quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke the setups at the beginning of the bodymatter. Thanks! Kind regards Willi
On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context
wrote: Hi Willi,
Your test file works fine if I place \setups{Thumb-pictures} before \starttext (using version 2022.03.12 17:56 LMTX). However in the file you sent the choice of the command \setups{Thumb-pictures} is between chapter A and B, which seems starnge to me...
Best regards: Otared K.
On 18 Mar 2022, at 20:29, Willi Egger via ntg-context
wrote: Good evening!
I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation.
I am currently using the before last version of LMTX-ConTeXT (January 21st 2022).
Could someone try to compile?
Thanks, kind regards
Willi
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Willi, How about invoking the command \setups{Thumb-pictures} between a \start \stop pair as in the following: \showframe \starttext \startfrontmatter \startchapter[title=Test A] \samplefile{knuth} \stopchapter \stopfrontmatter %\page[yes] \start \setups{Thumb-pictures} \startbodymatter \startchapter[title=Test B] \samplefile{ward} \stopchapter \startchapter[title=Test C] \samplefile{ward} \stopchapter \startchapter[title=Test D] \samplefile{ward} \stopchapter \stopbodymatter \stop \startbackmatter \dorecurse{5}{\startchapter[title=Test #1] \samplefile{thuan} \stopchapter} \stopbackmatter \stoptext
On 19 Mar 2022, at 21:42, Willi Egger via ntg-context
wrote: Hello Otared,
thanks so much for your testing and comments. — Tthe problem is, that this thumb-picture should only be placed in the \startboydmatter..\stopbodymatter sections. In the case of this book however there are the title pages and quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke the setups at the beginning of the bodymatter.
Thanks! Kind regards
Willi
On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context
wrote: Hi Willi,
Your test file works fine if I place \setups{Thumb-pictures} before \starttext (using version 2022.03.12 17:56 LMTX). However in the file you sent the choice of the command \setups{Thumb-pictures} is between chapter A and B, which seems starnge to me...
Best regards: Otared K.
On 18 Mar 2022, at 20:29, Willi Egger via ntg-context
wrote: Good evening!
I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation.
I am currently using the before last version of LMTX-ConTeXT (January 21st 2022).
Could someone try to compile?
Thanks, kind regards
Willi
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Otared, thank you for your help. — I tried your approach aswel on my Mac as also on Linux. Unfortunately neither installation did give me a positive result. The error remains. Kind regards Willi
On 19 Mar 2022, at 23:39, Otared Kavian via ntg-context
wrote: Hi Willi,
How about invoking the command \setups{Thumb-pictures} between a \start \stop pair as in the following:
\showframe
\starttext
\startfrontmatter \startchapter[title=Test A] \samplefile{knuth} \stopchapter
\stopfrontmatter
%\page[yes]
\start \setups{Thumb-pictures}
\startbodymatter \startchapter[title=Test B] \samplefile{ward} \stopchapter
\startchapter[title=Test C] \samplefile{ward} \stopchapter
\startchapter[title=Test D] \samplefile{ward} \stopchapter
\stopbodymatter \stop
\startbackmatter \dorecurse{5}{\startchapter[title=Test #1] \samplefile{thuan} \stopchapter}
\stopbackmatter
\stoptext
On 19 Mar 2022, at 21:42, Willi Egger via ntg-context
wrote: Hello Otared,
thanks so much for your testing and comments. — Tthe problem is, that this thumb-picture should only be placed in the \startboydmatter..\stopbodymatter sections. In the case of this book however there are the title pages and quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke the setups at the beginning of the bodymatter.
Thanks! Kind regards
Willi
On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context
wrote: Hi Willi,
Your test file works fine if I place \setups{Thumb-pictures} before \starttext (using version 2022.03.12 17:56 LMTX). However in the file you sent the choice of the command \setups{Thumb-pictures} is between chapter A and B, which seems starnge to me...
Best regards: Otared K.
On 18 Mar 2022, at 20:29, Willi Egger via ntg-context
wrote: Good evening!
I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation.
I am currently using the before last version of LMTX-ConTeXT (January 21st 2022).
Could someone try to compile?
Thanks, kind regards
Willi
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Willi Egger via ntg-context schrieb am 19.03.2022 um 21:42:
Hello Otared,
thanks so much for your testing and comments. — Tthe problem is, that this thumb-picture should only be placed in the \startboydmatter..\stopbodymatter sections. In the case of this book however there are the title pages and quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke the setups at the beginning of the bodymatter.
Use sectionblockenvironment to set value which are only applied in the frontmatter, bodymatter etc. %%%% begin example % Global settings for all chapters \setuphead[chapter][style=\ssc] % Local settings for chapter in the bodymatter block \startsectionblockenvironment[bodypart] \setuphead[chapter][color=blue] \stopsectionblockenvironment \starttext \startfrontmatter \title{Table of content} \placecontent \stopfrontmatter \startbodymatter \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \stopbodymatter \stoptext %%%% end example Wolfgang
Hoi Wolfgang! thank you for your suggestion. Your example indeed works. However if I apply this to my situation, which is \startsectionblockenvironment[bodymatter] \setups{Thumb-pictures} \stopsectionblockenvironment nothing happens. I.e. I get no error, but also no picture, indicating, that the \setups command is not executed.. Kind regards Willi
On 20 Mar 2022, at 11:28, Wolfgang Schuster via ntg-context
wrote: Willi Egger via ntg-context schrieb am 19.03.2022 um 21:42:
Hello Otared, thanks so much for your testing and comments. — Tthe problem is, that this thumb-picture should only be placed in the \startboydmatter..\stopbodymatter sections. In the case of this book however there are the title pages and quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke the setups at the beginning of the bodymatter.
Use sectionblockenvironment to set value which are only applied in the frontmatter, bodymatter etc.
%%%% begin example % Global settings for all chapters \setuphead[chapter][style=\ssc]
% Local settings for chapter in the bodymatter block \startsectionblockenvironment[bodypart] \setuphead[chapter][color=blue] \stopsectionblockenvironment
\starttext
\startfrontmatter
\title{Table of content}
\placecontent
\stopfrontmatter
\startbodymatter
\chapter{Knuth}
\input knuth
\chapter{Zapf}
\input zapf
\stopbodymatter
\stoptext %%%% end example
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 ___________________________________________________________________________________
Willi Egger via ntg-context schrieb am 20.03.2022 um 16:53:
Hoi Wolfgang!
thank you for your suggestion. Your example indeed works. However if I apply this to my situation, which is
\startsectionblockenvironment[bodymatter]
You use the wrong name for the argument: \startsectionblockenvironment[bodypart] Wolfgang
Hoi Wolfgang, I tested both variants (bodymatter and bodypart. The compilation runs through, however without the thumb-picture in the margin and the metafun error is in the log. Gruß! Willi
On 20 Mar 2022, at 17:00, Wolfgang Schuster via ntg-context
wrote: Willi Egger via ntg-context schrieb am 20.03.2022 um 16:53:
Hoi Wolfgang!
thank you for your suggestion. Your example indeed works. However if I apply this to my situation, which is
\startsectionblockenvironment[bodymatter]
You use the wrong name for the argument:
\startsectionblockenvironment[bodypart]
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 ___________________________________________________________________________________
Willi Egger via ntg-context schrieb am 20.03.2022 um 17:05:
Hoi Wolfgang,
I tested both variants (bodymatter and bodypart. The compilation runs through, however without the thumb-picture in the margin and the metafun error is in the log.
1. Do you use \startfrontmatter and \startbodymatter in your document to create blocks? 2. Is you installation up-to-date? Attached is a slightly modified version of your example, the only thing which has to be local to the bodypart is the background setting to enable the thumb pictures. Wolfgang
Hello Wolfgang, thank you so much for your time and investigation. — Indeed your solution works fine! I use the latest version from March 2022. I use \startbodymatter cum suis. Lieber Gruß Willi
On 20 Mar 2022, at 17:21, Wolfgang Schuster via ntg-context
wrote: Willi Egger via ntg-context schrieb am 20.03.2022 um 17:05:
Hoi Wolfgang,
I tested both variants (bodymatter and bodypart. The compilation runs through, however without the thumb-picture in the margin and the metafun error is in the log.
1. Do you use \startfrontmatter and \startbodymatter in your document to create blocks?
2. Is you installation up-to-date?
Attached is a slightly modified version of your example, the only thing which has to be local to the bodypart is the background setting to enable the thumb pictures.
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 ___________________________________________________________________________________
participants (5)
-
Hans Hagen
-
Otared Kavian
-
Willi Egger
-
Wolfgang Schuster
-
śrīrāma