[NTG-context] sections without numbering

2014-07-13 Thread Philipp Gesang
Hello Werner!

···date: 2014-07-12, Saturday···from: Werner Hintze···

 I can’t figure out how to change the chapter heading. More important: 
 I have no idea where to find the needed information. What I want to see 
 is for example:
 
 Kapitel: Blablabla

Several unnumbered structures are predefined.

\setuphead [subject] [before=Kapitel~]
\starttext
  \startsubject [title=foo] \input knuth \stopsubject
\stoptext

If you wish for the styles of the label and the title to match,
you’ll have to assign them manually:

\definealternativestyle [subjectstyle] [\italic \tfd]

\setuphead [subject] [
  style=subjectstyle,
  before=\bgroup \subjectstyle Kapitel~\egroup,
]
\starttext
  \startsubject [title=foo] \input knuth \stopsubject
\stoptext

The reason as to why this isn’t as easy as

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [number=no]

is that the section label is treated as part of the number.
Consequently, Context exposes no option to typeset the label
independently. However, it can be made work by passing an
appropriate command that omits the number:

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [deepnumbercommand=\gobbleoneargument]

\starttext
  \startchapter [title=foo] \input knuth \stopchapter
\stoptext

 Where can I find these informations?

In the manual [0]. The \title and \subject structurals even made the
second place on the “top ten” ladder of important commands
(cf. section 1.10). The numberless versions also feature
promintently on the wiki [1].

PS  Next time you ask a new question, please open a new thread
with an adequate subject to keep the list tidy.

Best regards,
Philipp

[0] http://wiki.contextgarden.net/ConTeXt_reference_manual
[1] http://wiki.contextgarden.net/Titles#Default



pgpAV8cO5Yz87.pgp
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] sections without numbering

2014-07-13 Thread Werner Hintze

Hi Philipp,

I don’t know what happened: I believe I started a new thread with a 
new subject. My mail program makes sometimes strange things…


Anayway. Thanks for your response. In the meantime I found another 
solution:



\starttext

\define[2]\MyChapter {#1.\,Kapitel: #2}
\setuphead [chapter] [command=\MyChapter, page=no]

\startchapter
[title=Die ersten Menschen]
\input knuth
\stopchapter

\startchapter
[title=Mehr von den ersten Menschen]
\input knuth
\stopchapter

\stoptext

But you helped me to unterstand better what happens here.

Thank you and best regards

Werner


***
☞ Werner Hintze  ●  Auerstraße 1  ●  D-10249 Berlin ☜
Fon: +49 (30) 42 73 485 ● Mob: +49 (160) 94 68 76 60
***
On 13 Jul 2014, at 9:03, Philipp Gesang wrote:

Hello Werner!

·

I can’t figure out how to change the chapter heading. More important:
I have no idea where to find the needed information. What I want to see
is for example:

Kapitel: Blablabla

Several unnumbered structures are predefined.

\setuphead [subject] [before=Kapitel~]
\starttext
\startsubject [title=foo] \input knuth \stopsubject
\stoptext

If you wish for the styles of the label and the title to match,
you’ll have to assign them manually:

\definealternativestyle [subjectstyle] [\italic \tfd]

\setuphead [subject] [
style=subjectstyle,
before=\bgroup \subjectstyle Kapitel~\egroup,
]
\starttext
\startsubject [title=foo] \input knuth \stopsubject
\stoptext

The reason as to why this isn’t as easy as

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [number=no]

is that the section label is treated as part of the number.
Consequently, Context exposes no option to typeset the label
independently. However, it can be made work by passing an
appropriate command that omits the number:

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [deepnumbercommand=\gobbleoneargument]

\starttext
\startchapter [title=foo] \input knuth \stopchapter
\stoptext

Where can I find these informations?

In the manual [0]. The \title and \subject structurals even made the
second place on the “top ten” ladder of important commands
(cf. section 1.10). The numberless versions also feature
promintently on the wiki [1].

PS Next time you ask a new question, please open a new thread
with an adequate subject to keep the list tidy.

Best regards,
Philipp

[0] http://wiki.contextgarden.net/ConTeXt_reference_manual
[1] http://wiki.contextgarden.net/Titles#Default

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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] sections without numbering

2014-07-13 Thread Philipp Gesang
···date: 2014-07-13, Sunday···from: Werner Hintze···

 Anayway. Thanks for your response. In the meantime I found another 
 solution:
 
 
   \starttext
 
   \define[2]\MyChapter {#1.\,Kapitel: #2}
   \setuphead [chapter] [command=\MyChapter, page=no]

Yes, that a valid solution as well.

Good luck!
Philipp



pgpne94u5pdEP.pgp
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Which Image quality should I use ?

2014-07-13 Thread Pol Stra
Le samedi 12 juillet 2014, 16:14:25 Peter Münster a écrit :
 On Sat, Jul 12 2014, Pol Stra wrote:
  I think I should do something like:
  `convert -density 300 input.png -resize AAAxBBB output.png`
  
  but I don't know if it’s the good way to do it
 
 Hi,
 
 I can be done automatically for example by using this module:
 http://modules.contextgarden.net/grph-downsample
 

Thank you, it looks interesting. Is there a documentation somewhere or could 
you provide an example about how to use it ?

Also, it changes the resolution only at inclusion into the pdf or it does it 
on original files ? My concern is to give the sources in attachment of the 
document, so if I don't change those files, the document will still be huge. 

There is a way to include the source without duplicates images ?

  or which resolution is appropriate.
 
 It depends on the printer. 300dpi is often enough.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] sections without numbering

2014-07-13 Thread Werner Hintze
Aha. I see. Two possibilities more. But I forgot another problem. All 
these solutions give me


»1.2. Kapitel« - »1.2. Kapitel« etc. if it’s the first part. I 
don’t unterstand the mechanism and so I don’t know where to look for 
the solution.


On 13 Jul 2014, at 11:38, Wolfgang Schuster wrote:

Am 13.07.2014 um 09:23 schrieb Werner Hintze w.hin...@posteo.eu:

Hi Philipp,

I don’t know what happened: I believe I started a new thread with a 
new subject. My mail program makes sometimes strange things…


Anayway. Thanks for your response. In the meantime I found another 
solution:


\starttext

\define[2]\MyChapter {#1.\,Kapitel: #2}
\setuphead [chapter] [command=\MyChapter, page=no]

\setuphead [chapter] [numbercommand=\groupedcommand{}{ 
Kapitel:},page=no,sectionstopper=.]


or

\setuplabeltext[en][chapter={, Kapitel:}]
\setuphead [chapter] [page=no,sectionstopper=.]

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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Which Image quality should I use ?

2014-07-13 Thread Henning Hraban Ramm
Am 2014-07-12 um 18:58 schrieb Pol Stra r...@hotmail.fr:

 I wonder, what can I do to reduce the size of 
 those files while keeping a printable quality document?

For color or greyscale pictures that are (like) photos, 150 dpi in final size 
is mostly enough, even for quality offset printing.

„In final size“ = not scaled up

If you have fine lines, like diagrams or scanned text, you might need 300 dpi. 
For black  white lineart, you should use the resolution of your printer, but 
even for offset printing 800 dpi is enough (more than 1200 dpi are always 
nonsense).

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Which Image quality should I use ?

2014-07-13 Thread Joshua Krämer
On 2014-07-12, 14:58, Pol Stra wrote:

 I wonder, what can I do to reduce the size of those files while
 keeping a printable quality document?

Besides reducing the resolution, you can reduce the number of colours
used in a PNG picture, which is called colour quantization.  For
example, we can differentiate between ca. 12 levels of gray (between
black and white) with our eyes.  So it is useless to differentiate
between hundreds of different colours in a gray picture.  I quantize
all my gray pictures to use 12 colours only, and the difference is
usually not visible, but it leads to a much smaller file size.  For
coloured pictures, you need of course more different colours, you have
to try different values with each picture to find the best number.  I
use the tool pngnq for quantization.

After quantization, one can further losslessy compress an image by
removing unnecessary meta informations from the file, which can be
done automatically with the tool Trimage.

I've got both pngnq and Trimage from the repositories of my Linux
distribution.

Kind regards,
Joshua


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \textreference

2014-07-13 Thread Herbert Voss
I thought that \textreference will print its text (Foo) in
difference to \reference. With current minimal I can see no
difference between both.

\starttext
\textreference[foo]{Foo}
\reference[bar]{Bar}

\about[foo] and \about[bar] \atpage[bar]
\stoptext

Herbert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

How do we activate/control whitespace (and indenting) within framed texts?  
The following seems to fail:


==
\setupframedtexts
[frame=off,
location=middle,
before={\blank[medium]\setupwhitespace[medium]},
after={\blank[medium]}]

\setupwhitespace[medium]
\setupindenting[yes,medium,first]

\starttext
\input knuth

\startframedtext
\input knuth
\stopframedtext

\input knuth
\stoptext
==

See attached. Thanks in advance and

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 13 Jul 2014 16:35:32 -0600, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:



See attached.


Attached

--

Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

framedtexts.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Aditya Mahajan

 On Jul 13, 2014, at 6:35 PM, Idris Samawi Hamid ادريس   سماوي حامد 
 isha...@colostate.edu wrote:
 
 Dear gang,
 
 How do we activate/control whitespace (and indenting) within framed texts? 
 The following seems to fail:
 
 ==
 \setupframedtexts
 [frame=off,
 location=middle,
 before={\blank[medium]\setupwhitespace[medium]},
 after={\blank[medium]}]
 
 \setupwhitespace[medium]
 \setupindenting[yes,medium,first]
 
 \starttext
 \input knuth
 
 \startframedtext
 \input knuth
 \stopframedtext
 
 \input knuth
 \stoptext
 ==
 
 See attached. Thanks in advance 

Untested: try indenting=yes for indentation. For white space, enclose the 
settings in a startsetups...stopsetups, and then use the setups=... key for 
framedtext.

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 13 Jul 2014 16:46:00 -0600, Aditya Mahajan adit...@umich.edu  
wrote:




On Jul 13, 2014, at 6:35 PM, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:


Dear gang,

How do we activate/control whitespace (and indenting) within framed  
texts? The following seems to fail:


==
\setupframedtexts
[frame=off,
location=middle,
before={\blank[medium]\setupwhitespace[medium]},
after={\blank[medium]}]

\setupwhitespace[medium]
\setupindenting[yes,medium,first]

\starttext
\input knuth

\startframedtext
\input knuth
\stopframedtext

\input knuth
\stoptext
==

See attached. Thanks in advance


Untested: try indenting=yes for indentation. For white space, enclose  
the settings in a startsetups...stopsetups, and then use the setups=...  
key for framedtext.


Thanks Aditya. indenting=yes was a bust but the following works:

\startsetups[framedwhitespace]
\setupwhitespace[medium]
\setupindenting[yes,medium,first]
\stopsetups

Thanks again and best wishes
Idris
--

Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___