Completecontent has problems with chapter in table
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
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
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
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
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
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
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 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
participants (4)
-
Huseyin Özoguz
-
Procházka Lukáš Ing.
-
Verlag Eslamica
-
Wolfgang Schuster