* Completecontent has problems with chapter in table
@ 2018-11-22 13:37 Huseyin Özoguz
2018-11-22 21:31 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Huseyin Özoguz @ 2018-11-22 13:37 UTC (permalink / raw)
To: ntg-context
Hello together,
I have this min-example:
\starttext
\completecontent[criterium=all]
\chapter{craigs}
{\bTABLE
\bTR\bTD
\chapter{whatever}
\eTD \eTR
\eTABLE}
\chapter{gooff}
\completecontent[criterium=previous]
\stoptext
As you see, the \completecontent[criterium=previous] works fine, it
lists all chapters. But the \completecontent[criterium=all] does not,
only lists the first chapter. How to fix this?
Thank you!
Huseyin
--
Huseyin Özoguz
E-Mail: h.oezoguz@mmnetz.de
___________________________________________________________________________________
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] 10+ messages in thread
* Re: Completecontent has problems with chapter in table
2018-11-22 13:37 Completecontent has problems with chapter in table Huseyin Özoguz
@ 2018-11-22 21:31 ` Wolfgang Schuster
2018-11-23 8:13 ` Huseyin Özoguz
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2018-11-22 21:31 UTC (permalink / raw)
To: mailing list for ConTeXt users, Huseyin Özoguz
Hi Huseyin,
I can’t reproduce your problem with the table of contents with the
current beta.
BTW: What if your goal with the \chapter in the table because this
creates a wrong value for the chapter counter. If your goal is to put a
frame around the chapter you can use the framedtext environment which
doesn’t lead to a wrong chapter number.
Wolfgang
Huseyin Özoguz schrieb am 22.11.18 um 14:37:
> Hello together,
>
> I have this min-example:
>
> \starttext
>
> \completecontent[criterium=all]
>
> \chapter{craigs}
>
> {\bTABLE
> \bTR\bTD
> \chapter{whatever}
> \eTD \eTR
> \eTABLE}
>
> \chapter{gooff}
>
> \completecontent[criterium=previous]
>
> \stoptext
>
> As you see, the \completecontent[criterium=previous] works fine, it
> lists all chapters. But the \completecontent[criterium=all] does not,
> only lists the first chapter. How to fix this?
>
> Thank you!
> Huseyin
___________________________________________________________________________________
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] 10+ messages in thread
* Re: Completecontent has problems with chapter in table
2018-11-22 21:31 ` Wolfgang Schuster
@ 2018-11-23 8:13 ` Huseyin Özoguz
2018-11-23 9:50 ` Procházka Lukáš Ing.
2018-11-24 11:37 ` Wolfgang Schuster
0 siblings, 2 replies; 10+ messages in thread
From: Huseyin Özoguz @ 2018-11-23 8:13 UTC (permalink / raw)
To: Wolfgang Schuster, mailing list for ConTeXt users
Hi Wolfgang,
thank you. I work currently with version 2015.04.15 01:44
Can I safely update without any major changes, so all my projects
(hundrets of books, working in a publishing house) can be compiled as
usual? Maybe my issue of the chapter in table and the toc is solved in
the newest update as you say.
> BTW: What if your goal with the \chapter in the table because this
> creates a wrong value for the chapter counter. If your goal is to put
> a frame around the chapter you can use the framedtext environment
> which doesn’t lead to a wrong chapter number.
No, its not the frame, but the design. That was only a min-example to
reproduce my problem. The original table in my current project looks
like this:
\setupTABLE[c][each][align={high},frame=off]
\bTABLE
\bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD
\vskip-4\lineheight
\chapter{chapter title}
\eTD \eTR
\eTABLE
So I have a chapter with a image on the left. I dont need chapter
numbers in this particular project, but anyhow: Is there a better way to
achieve my result without using tables?
Thanks.
Huseyin
Huseyin Özoguz
E-Mail: h.oezoguz@mmnetz.de
Am 22.11.2018 um 22:31 schrieb Wolfgang Schuster:
> Hi Huseyin,
>
> I can’t reproduce your problem with the table of contents with the
> current beta.
>
> BTW: What if your goal with the \chapter in the table because this
> creates a wrong value for the chapter counter. If your goal is to put
> a frame around the chapter you can use the framedtext environment
> which doesn’t lead to a wrong chapter number.
>
> Wolfgang
>
>
> Huseyin Özoguz schrieb am 22.11.18 um 14:37:
>> Hello together,
>>
>> I have this min-example:
>>
>> \starttext
>>
>> \completecontent[criterium=all]
>>
>> \chapter{craigs}
>>
>> {\bTABLE
>> \bTR\bTD
>> \chapter{whatever}
>> \eTD \eTR
>> \eTABLE}
>>
>> \chapter{gooff}
>>
>> \completecontent[criterium=previous]
>>
>> \stoptext
>>
>> As you see, the \completecontent[criterium=previous] works fine, it
>> lists all chapters. But the \completecontent[criterium=all] does not,
>> only lists the first chapter. How to fix this?
>>
>> Thank you!
>> Huseyin
___________________________________________________________________________________
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] 10+ messages in thread
* Re: Completecontent has problems with chapter in table
2018-11-23 8:13 ` Huseyin Özoguz
@ 2018-11-23 9:50 ` Procházka Lukáš Ing.
2018-11-23 10:12 ` Verlag Eslamica
2018-11-23 10:12 ` Huseyin Özoguz
2018-11-24 11:37 ` Wolfgang Schuster
1 sibling, 2 replies; 10+ messages in thread
From: Procházka Lukáš Ing. @ 2018-11-23 9:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 3428 bytes --]
Hello,
something like this?
----
\setupexternalfigures[location=default]
\define[1]\MyNumCmd{%
\externalfigure[hacker][height=2cm]
}
\setuphead[chapter][numbercommand=\MyNumCmd]
\starttext
\chapter{Ch}
\input knuth
\stoptext
----
Best regards,
Lukas
On Fri, 23 Nov 2018 09:13:39 +0100, Huseyin Özoguz <h.oezoguz@mmnetz.de> wrote:
> Hi Wolfgang,
>
> thank you. I work currently with version 2015.04.15 01:44
>
> Can I safely update without any major changes, so all my projects
> (hundrets of books, working in a publishing house) can be compiled as
> usual? Maybe my issue of the chapter in table and the toc is solved in
> the newest update as you say.
>
>> BTW: What if your goal with the \chapter in the table because this
>> creates a wrong value for the chapter counter. If your goal is to put
>> a frame around the chapter you can use the framedtext environment
>> which doesn’t lead to a wrong chapter number.
>
> No, its not the frame, but the design. That was only a min-example to
> reproduce my problem. The original table in my current project looks
> like this:
>
> \setupTABLE[c][each][align={high},frame=off]
> \bTABLE
> \bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD
> \vskip-4\lineheight
> \chapter{chapter title}
> \eTD \eTR
> \eTABLE
>
> So I have a chapter with a image on the left. I dont need chapter
> numbers in this particular project, but anyhow: Is there a better way to
> achieve my result without using tables?
>
> Thanks.
>
> Huseyin
>
> Huseyin Özoguz
>
> E-Mail: h.oezoguz@mmnetz.de
>
> Am 22.11.2018 um 22:31 schrieb Wolfgang Schuster:
>> Hi Huseyin,
>>
>> I can’t reproduce your problem with the table of contents with the
>> current beta.
>>
>> BTW: What if your goal with the \chapter in the table because this
>> creates a wrong value for the chapter counter. If your goal is to put
>> a frame around the chapter you can use the framedtext environment
>> which doesn’t lead to a wrong chapter number.
>>
>> Wolfgang
>>
>>
>> Huseyin Özoguz schrieb am 22.11.18 um 14:37:
>>> Hello together,
>>>
>>> I have this min-example:
>>>
>>> \starttext
>>>
>>> \completecontent[criterium=all]
>>>
>>> \chapter{craigs}
>>>
>>> {\bTABLE
>>> \bTR\bTD
>>> \chapter{whatever}
>>> \eTD \eTR
>>> \eTABLE}
>>>
>>> \chapter{gooff}
>>>
>>> \completecontent[criterium=previous]
>>>
>>> \stoptext
>>>
>>> As you see, the \completecontent[criterium=previous] works fine, it
>>> lists all chapters. But the \completecontent[criterium=all] does not,
>>> only lists the first chapter. How to fix this?
>>>
>>> Thank you!
>>> Huseyin
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS: nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
[-- Attachment #2: ChapWithImg.mkiv --]
[-- Type: application/octet-stream, Size: 408 bytes --]
%\setupTABLE[c][each][align={high},frame=off]
%\bTABLE
%\bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD \vskip-4\lineheight
%\chapter{chapter title}
%\eTD \eTR
%\eTABLE
\setupexternalfigures[location=default]
\define[1]\MyNumCmd{%
\externalfigure[hacker][height=2cm]
}
\setuphead[chapter][numbercommand=\MyNumCmd]
\starttext
\chapter{Ch}
\input knuth
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Completecontent has problems with chapter in table
2018-11-23 9:50 ` Procházka Lukáš Ing.
@ 2018-11-23 10:12 ` Verlag Eslamica
2018-11-23 10:12 ` Huseyin Özoguz
1 sibling, 0 replies; 10+ messages in thread
From: Verlag Eslamica @ 2018-11-23 10:12 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 973 bytes --]
> Hello,
>
> something like this?
>
> ----
> \setupexternalfigures[location=default]
>
> \define[1]\MyNumCmd{%
> \externalfigure[hacker][height=2cm]
> }
>
> \setuphead[chapter][numbercommand=\MyNumCmd]
>
> \starttext
> \chapter{Ch}
>
> \input knuth
> \stoptext
> ----
>
> Best regards,
>
> Lukas
Thank you, yes that would work.
But btw (@Wolfgang), I updated to the newst beta, and still this
min-example does not compile correctly:
\starttext
\completecontent[criterium=all]
\chapter{crags}
{\bTABLE
\bTR\bTD
\chapter{whateversssss}
\eTD \eTR
\eTABLE}
\chapter{goaxasoff}
\completecontent[criterium=previous]
\stoptext
The first Toc (\completecontent[criterium=all]) only has one entry, and
the second (\completecontent[criterium=previous]) has all three.
Tanks.
Huseyin
--
Huseyin Özoguz
Verlag Eslamica
m-haditec GmbH
Zum Huchtinger Bahnhof 31
28259 Bremen
Webseite: https://www.eslamica.de
E-Mail: info@eslamica.de
Tel: (+49) (0)421 / 1611 2763
[-- Attachment #1.2: Type: text/html, Size: 1927 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] 10+ messages in thread
* Re: Completecontent has problems with chapter in table
2018-11-23 9:50 ` Procházka Lukáš Ing.
2018-11-23 10:12 ` Verlag Eslamica
@ 2018-11-23 10:12 ` Huseyin Özoguz
1 sibling, 0 replies; 10+ messages in thread
From: Huseyin Özoguz @ 2018-11-23 10:12 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 791 bytes --]
> Hello,
>
> something like this?
>
> ----
> \setupexternalfigures[location=default]
>
> \define[1]\MyNumCmd{%
> \externalfigure[hacker][height=2cm]
> }
>
> \setuphead[chapter][numbercommand=\MyNumCmd]
>
> \starttext
> \chapter{Ch}
>
> \input knuth
> \stoptext
> ----
>
> Best regards,
>
> Lukas
Thank you, yes that would work.
But btw (@Wolfgang), I updated to the newst beta, and still this
min-example does not compile correctly:
\starttext
\completecontent[criterium=all]
\chapter{crags}
{\bTABLE
\bTR\bTD
\chapter{whateversssss}
\eTD \eTR
\eTABLE}
\chapter{goaxasoff}
\completecontent[criterium=previous]
\stoptext
The first Toc (\completecontent[criterium=all]) only has one entry, and
the second (\completecontent[criterium=previous]) has all three.
Tanks.
Huseyin
[-- Attachment #1.2: Type: text/html, Size: 1520 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] 10+ messages in thread
* Re: Completecontent has problems with chapter in table
2018-11-23 8:13 ` Huseyin Özoguz
2018-11-23 9:50 ` Procházka Lukáš Ing.
@ 2018-11-24 11:37 ` Wolfgang Schuster
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2018-11-24 11:37 UTC (permalink / raw)
To: Huseyin Özoguz; +Cc: mailing list for ConTeXt users
Huseyin Özoguz schrieb am 23.11.18 um 09:13:
> Hi Wolfgang,
>
> thank you. I work currently with version 2015.04.15 01:44
>
> Can I safely update without any major changes, so all my projects
> (hundrets of books, working in a publishing house) can be compiled as
> usual? Maybe my issue of the chapter in table and the toc is solved in
> the newest update as you say.
You should keep a copy of your current installation for your existing books.
When you use the installation from the ConTeXt garden you can have
multiple installations without problems.
>> BTW: What if your goal with the \chapter in the table because this
>> creates a wrong value for the chapter counter. If your goal is to put
>> a frame around the chapter you can use the framedtext environment
>> which doesn’t lead to a wrong chapter number.
>
> No, its not the frame, but the design. That was only a min-example to
> reproduce my problem. The original table in my current project looks
> like this:
>
> \setupTABLE[c][each][align={high},frame=off]
> \bTABLE
> \bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD
> \vskip-4\lineheight
> \chapter{chapter title}
> \eTD \eTR
> \eTABLE
>
> So I have a chapter with a image on the left. I dont need chapter
> numbers in this particular project, but anyhow: Is there a better way
> to achieve my result without using tables?
Where exactly should the image appear in the output?
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] 10+ messages in thread
* Re: Completecontent has problems with chapter, in table
2018-12-03 9:13 Huseyin Özoguz
@ 2018-12-03 10:58 ` Wolfgang Schuster
0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2018-12-03 10:58 UTC (permalink / raw)
To: Huseyin Özoguz; +Cc: mailing list for ConTeXt users
Huseyin Özoguz schrieb am 03.12.18 um 10:13:
>> You should keep a copy of your current installation for your existing
>> books.
>>
>> When you use the installation from the ConTeXt garden you can have
>> multiple installations without problems.
>
> Thank you, so thats the way to go for us. (Sorry for my late reply.)
>
>
>> Where exactly should the image appear in the output?
>
> Originally it should on the left from the chapter-title. But meanwhile
> the design changed and it appears now in the center above the title, so
> the question dissolved (but still I dont know, how to make it safely).
The best solution is to create your own layout for the chapter etc.
title and pass the name of the graphic with the second argument
of the \startchapter command.
With this method you keep your document clean and all the magic
happens in the style file.
\startsetups [chapter:image]
\vbox {
\doifsomething{\structureuservariable{image}}{\midaligned{\externalfigure[\structureuservariable{image}]}\endgraf}
\headsetupspacing
\setbox\scratchbox\hbox{\headnumbercontent}
\hangindent\dimexpr\wd\scratchbox+\headnumberdistance\relax
\noindent
\box\scratchbox\hskip\headnumberdistance
\headtextcontent
}
\stopsetups
\defineheadalternative
[chapterimage]
[alternative=vertical,
renderingsetup=chapter:image]
\setuphead
[chapter]
[distance=2ex,
alternative=chapterimage]
\setupexternalfigure [location={local,global,default}]
\starttext
\startchapter [title={Knuth}]
\samplefile{Knuth}
\stopchapter
\startchapter [title={Zapf}] [image=cow]
\samplefile{zapf}
\stopchapter
\stoptext
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] 10+ messages in thread
* Re: Completecontent has problems with chapter, in table
@ 2018-12-03 9:13 Huseyin Özoguz
2018-12-03 10:58 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Huseyin Özoguz @ 2018-12-03 9:13 UTC (permalink / raw)
To: wolfgang.schuster.lists; +Cc: mailing list for ConTeXt users
> You should keep a copy of your current installation for your existing books.
>
> When you use the installation from the ConTeXt garden you can have
> multiple installations without problems.
Thank you, so thats the way to go for us. (Sorry for my late reply.)
> Where exactly should the image appear in the output?
Originally it should on the left from the chapter-title. But meanwhile
the design changed and it appears now in the center above the title, so
the question dissolved (but still I dont know, how to make it safely).
--
Huseyin Özoguz
E-Mail: h.oezoguz@mmnetz.de
___________________________________________________________________________________
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] 10+ messages in thread
* Re: Completecontent has problems with chapter, in table
@ 2018-11-23 10:32 Huseyin Özoguz
0 siblings, 0 replies; 10+ messages in thread
From: Huseyin Özoguz @ 2018-11-23 10:32 UTC (permalink / raw)
To: LPr, ntg-context
How can I adjust the vertical position of the actual title relative to
the image?
I have this:
\define[2]\uber{%
\setuphead[chapter][before={},alternative=middle,
numbercommand={\externalfigure[historische_spuren/wappen/#1.jpg][height=2cm]}]
\chapter{#2}
}
But the title is now below the image, not same vertical position.
Huseyin
> Hello,
>
> something like this?
>
> ----
> \setupexternalfigures[location=default]
>
> \define[1]\MyNumCmd{%
> \externalfigure[hacker][height=2cm]
> }
>
> \setuphead[chapter][numbercommand=\MyNumCmd]
>
> \starttext
> \chapter{Ch}
>
> \input knuth
> \stoptext
--
Huseyin Özoguz
E-Mail: h.oezoguz@mmnetz.de
___________________________________________________________________________________
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] 10+ messages in thread
end of thread, other threads:[~2018-12-03 10:58 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-22 13:37 Completecontent has problems with chapter in table Huseyin Özoguz
2018-11-22 21:31 ` Wolfgang Schuster
2018-11-23 8:13 ` Huseyin Özoguz
2018-11-23 9:50 ` Procházka Lukáš Ing.
2018-11-23 10:12 ` Verlag Eslamica
2018-11-23 10:12 ` Huseyin Özoguz
2018-11-24 11:37 ` Wolfgang Schuster
2018-11-23 10:32 Completecontent has problems with chapter, " Huseyin Özoguz
2018-12-03 9:13 Huseyin Özoguz
2018-12-03 10:58 ` 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).