ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Question to sectioning
@ 2018-04-11 17:36 Tomas Hala
  2018-04-18 15:53 ` Tomas Hala
  2018-04-18 16:00 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Tomas Hala @ 2018-04-11 17:36 UTC (permalink / raw)
  To: Mailing list ConTeXt

Hello,

I have got a document with e.g. six chapters, numbers are from 1 to 6.
At special places I would like put a special page containing a special title.
The special page should be without a header and without any number, 
the title should be put into the contents by the same way as other chapters..

I came across two problems: 

First, in the minimal example below I get chapter numbers 1, 2, 4, 5, 7, 8
and if I use incrementnumber=no, the "specialpage" is not stored in the contents.  

Secondly, I do know how to switch off the header only at this special page.

I also tried \definehead[specialpage][title] but in this case the "specialpage" is not stored in the
contents, too. 

What I am doing wrong?

Thanks for the help in advance,

Tomáš


% TL2017

\definehead[specialpage][chapter]
\definehead[levelA][chapter]

\setuphead[specialpage][number=no] %,incrementnumber=no]

\starttext

\definecombinedlist[mycontent][levelA,specialpage][level=chapter]
\completemycontent

\levelA{A1}
\levelA{A2}
\specialpage{Special page 1}
\levelA{A3}
\levelA{A4}
\specialpage{Special page 2}
\levelA{A5}
\levelA{A6}

\stoptext


___________________________________________________________________________________
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] 5+ messages in thread

* Re: Question to sectioning
  2018-04-11 17:36 Question to sectioning Tomas Hala
@ 2018-04-18 15:53 ` Tomas Hala
  2018-04-18 16:00 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Tomas Hala @ 2018-04-18 15:53 UTC (permalink / raw)
  To: Mailing list ConTeXt

Hello,
 
# I have got a document with e.g. six chapters, numbers are from 1 to 6.
# At special places I would like put a special page containing a special title.
# The special page should be without a header and without any number, 
# the title should be put into the contents by the same way as other chapters..
# 
# ... in the minimal example below I get chapter numbers 1, 2, 4, 5, 7, 8
# and if I use incrementnumber=no, the "specialpage" is not stored in the contents.  

after some hard work I hoodwinked it changing the basic definition:

\definehead[specialpage][chapter] --> \definehead[specialpage][subsubsection]
joined with redefinition of the design of this special subsubsection
but I cannot believe that this is the proper solution. 
Have anybody idea how to do it better? 

Thanks in advance.

The best,

Tomáš 

# % TL2017
# 
# \definehead[specialpage][chapter]
# \definehead[levelA][chapter]
# 
# \setuphead[specialpage][number=no] %,incrementnumber=no]
# 
# \starttext
# 
# \definecombinedlist[mycontent][levelA,specialpage][level=chapter]
# \completemycontent
# 
# \levelA{A1}
# \levelA{A2}
# \specialpage{Special page 1}
# \levelA{A3}
# \levelA{A4}
# \specialpage{Special page 2}
# \levelA{A5}
# \levelA{A6}
# 
# \stoptext
# 
# 


                                         Tomáš Hála
--------------------------------------------------------------------
Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
--------------------------------------------------------------------
http://akela.mendelu.cz/~thala
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Question to sectioning
  2018-04-11 17:36 Question to sectioning Tomas Hala
  2018-04-18 15:53 ` Tomas Hala
@ 2018-04-18 16:00 ` Wolfgang Schuster
  2018-04-23 22:59   ` Tomas Hala
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2018-04-18 16:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1153 bytes --]



> Tomas Hala <mailto:tomas.hala@mendelu.cz>
> 11. April 2018 um 19:36
> Hello,
>
> I have got a document with e.g. six chapters, numbers are from 1 to 6.
> At special places I would like put a special page containing a special 
> title.
> The special page should be without a header and without any number,
> the title should be put into the contents by the same way as other 
> chapters..
>
> I came across two problems:
>
> First, in the minimal example below I get chapter numbers 1, 2, 4, 5, 7, 8
> and if I use incrementnumber=no, the "specialpage" is not stored in 
> the contents.
>
> Secondly, I do know how to switch off the header only at this special 
> page.
>
> I also tried \definehead[specialpage][title] but in this case the 
> "specialpage" is not stored in the
> contents, too.

Like this?

\definehead [specialpage] [chapter]
\definehead [levelA]      [chapter]

\setuphead
   [specialpage]
   [incrementnumber=list,
    header=empty]

\starttext

\placelist[levelA,specialpage]

\levelA{A1}
\levelA{A2}
\specialpage{Special page 1}
\levelA{A3}
\levelA{A4}
\specialpage{Special page 2}
\levelA{A5}
\levelA{A6}

\stoptext


Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2274 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Question to sectioning
  2018-04-18 16:00 ` Wolfgang Schuster
@ 2018-04-23 22:59   ` Tomas Hala
  2018-04-25 17:51     ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Hala @ 2018-04-23 22:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang,

some deep error appeared, unfortunately. I tested it on TL2014--17. Did you
use TL2018? It seems similarly as any other error related with the change of
dimensions maintanance betweeen TL2017 and 2018.

Tomáš



tex error       > tex error on line 8 in file x.tex: ! Missing number, treated as zero

<to be read again> 
s
<argument> s
 amepage--1
\addaskedblankskip ..._vspacing_temp #1\dimexpr #2
                                                  \relax 
l.8 }
   
\spac_vspacing_yes_indeed ...ar \clf_vspacing {#1}
                                                  \fi 
\strc_sectioning_handle_page_yes ...entheadlevel ]
                                                  \fi \headparameter
\c!befo...
...
l.15    \levelA{A1}
                 

 1     
 2        \definehead [specialpage] [chapter]
 3        \definehead [levelA]      [chapter]
 4     
 5        \setuphead
 6          [specialpage]
 7          [incrementnumber=list,
 8 >>       header=empty
 9     ]
10     


Wed, Apr 18, 2018 ve 06:00:27PM +0200 Wolfgang Schuster napsal(a):
#                                                                 [1]Tomas Hala
#      11. April 2018 um 19:36
#      Hello,
# 
#      I have got a document with e.g. six chapters, numbers are from 1 to 6.
#      At special places I would like put a special page containing a special
#      title.
#      The special page should be without a header and without any number,
#      the title should be put into the contents by the same way as other
#      chapters..
# 
#      I came across two problems:
# 
#      First, in the minimal example below I get chapter numbers 1, 2, 4, 5, 7,
#      8
#      and if I use incrementnumber=no, the "specialpage" is not stored in the
#      contents.
# 
#      Secondly, I do know how to switch off the header only at this special
#      page.
# 
#      I also tried \definehead[specialpage][title] but in this case the
#      "specialpage" is not stored in the
#      contents, too.
# 
#    Like this?
# 
#    \definehead [specialpage] [chapter]
#    \definehead [levelA]      [chapter]
# 
#    \setuphead
#      [specialpage]
#      [incrementnumber=list,
#       header=empty]
# 
#    \starttext
# 
#    \placelist[levelA,specialpage]
# 
#    \levelA{A1}
#    \levelA{A2}
#    \specialpage{Special page 1}
#    \levelA{A3}
#    \levelA{A4}
#    \specialpage{Special page 2}
#    \levelA{A5}
#    \levelA{A6}
# 
#    \stoptext
# 
#    Wolfgang
# 
# References
# 
#    Visible links
#    1. mailto:tomas.hala@mendelu.cz
# /usr/bin/xdg-open: řádek 402: htmlview: příkaz nenalezen
# /usr/bin/xdg-open: řádek 402: firefox: příkaz nenalezen
# /usr/bin/xdg-open: řádek 402: mozilla: příkaz nenalezen
# /usr/bin/xdg-open: řádek 402: netscape: příkaz nenalezen

# ___________________________________________________________________________________
# 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
# ___________________________________________________________________________________


                                         Tomáš Hála
--------------------------------------------------------------------
Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
--------------------------------------------------------------------
http://akela.mendelu.cz/~thala
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Question to sectioning
  2018-04-23 22:59   ` Tomas Hala
@ 2018-04-25 17:51     ` Pablo Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2018-04-25 17:51 UTC (permalink / raw)
  To: ntg-context

On 04/24/2018 12:59 AM, Tomas Hala wrote:
> Hi Wolfgang,
> 
> some deep error appeared, unfortunately. I tested it on TL2014--17. Did you
> use TL2018? It seems similarly as any other error related with the change of
> dimensions maintanance betweeen TL2017 and 2018.

Hi Tomáš,

both issues (the one from this thread and the question with hanging
punctuation) are fixed in latest beta.

You may install the latest beta from the ConTeXt Suite (aka ConTeXt
Standalone [http://wiki.contextgarden.net/ConTeXt_Standalone]) besides
your TeX Live installation.

The ConTeXt Suite is portable, so it won’t interfere with TeX Live. In
fact, I keep previous versions and I have fifteen different betas on my
computer (I only use the latest one, but it is wise to keep old versions
just in case some relevant functionality is compromised in latest version).

In the past, I was also reluctant to use beta versions. But after a
reply to one question of mine in this list, I realized that I may use
the latest beta version, besides TeX Live or the latest stable from the
ConTeXt Suite.

Instead of invoking:

  contextjit document.tex

I had to invoke:

  source path-to-context-beta/tex/setuptex && contextjit document.tex

The minor difference (I guess you don’t type the command) allows you to
use the latest version of ConTeXt.

After all, I guess this is much easier that trying to fix ConTeXt from
TeX Live 2017.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2018-04-25 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 17:36 Question to sectioning Tomas Hala
2018-04-18 15:53 ` Tomas Hala
2018-04-18 16:00 ` Wolfgang Schuster
2018-04-23 22:59   ` Tomas Hala
2018-04-25 17:51     ` Pablo Rodriguez

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).