Re: [NTG-context] Completecontent has problems with chapter, in table

2018-12-03 Thread Wolfgang Schuster

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
___

Re: [NTG-context] Completecontent has problems with chapter, in table

2018-12-03 Thread Huseyin Özoguz

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.oezo...@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
___

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-24 Thread Wolfgang Schuster


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
___

Re: [NTG-context] Completecontent has problems with chapter, in table

2018-11-23 Thread Huseyin Özoguz
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.oezo...@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
___

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Huseyin Özoguz

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{whatevers}
\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
___
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
___

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Verlag Eslamica

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{whatevers}
\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: i...@eslamica.de
Tel: (+49) (0)421 / 1611 2763

___
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
___

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Procházka Lukáš Ing .

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  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.oezo...@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:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

ChapWithImg.mkiv
Description: Binary data
___
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
___

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread 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.oezo...@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
___

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-22 Thread 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
___

[NTG-context] Completecontent has problems with chapter in table

2018-11-22 Thread Huseyin Özoguz

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.oezo...@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
___