[NTG-context] Figures alignment on grid

2012-03-28 Thread Honza Hejzl
Hello ConTeXists,

My questions are still without any response. I am not sure why, maybe
they are not clearly explained.

I have found two problems about figures:

1) It is impossible to achieve proper text wrapping around figure when the
GRID is ON. I have tried more suggestions (see my source).

2) The second thing is there is no way how to change alignment in captions.


\enableregime[utf]
\mainlanguage[en]
\setuppapersize[A5][A5]
\definefloat[figure][figures]
\setuplayout[grid=yes]
\setupcaption[figure][%
align=left,
%align=right,
style=\ss, distance=2pt,before={\noindent}]
\showgrid

\starttext
\input tufte

%\movesidefloat[x=10pt,y=-40pt]
%\movesidefloat[3*line]
%\hangsidefloat[3]

\placefigure[left]{sdf}{\externalfigure[none][height=3cm]}
\input tufte
 \stoptext

Any help appreciated.

Honza Hejzl
___
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] Floating figures – text wrapping and captions alignment

2012-03-23 Thread Honza Hejzl
Hello ConTeXists,

I wrote my questions maybe in a confusing way.

It seems two things with floating figures (especially with placing
pictures) are maybe broken.

1) It is impossible to achieve proper text wrapping around figure when the
GRID is ON. I have tried more suggestions.
2) The second thing is there is no way how to change alignment in captions.


\enableregime[utf]
\mainlanguage[en]
\setuppapersize[A5][A5]
\definefloat[figure][figures]
\setuplayout[grid=yes]
\setupcaption[figure][%
align=left,
%align=right,
style=\ss, distance=2pt,before={\noindent}]
\showgrid

\starttext
\input tufte

%\movesidefloat[x=10pt,y=-40pt]
%\movesidefloat[3*line]
%\hangsidefloat[3]

\placefigure[left]{sdf}{\externalfigure[none][height=3cm]}
\input tufte
 \stoptext

Any help appreciated.

Honza Hejzl
___
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] overprinting of black text – solved

2012-03-20 Thread Honza Hejzl
Hello,

I have solved my old question connected with preflight and overprinting of
pure text. Now I am able to have clean output, the last warning (just info)
is about the fact context files have fonts embedded like CID Type 1 fonts.

I am using this colors setup:

\definecolor[cmykblack][c=0,m=0,y=0,k=1]
\setupcolors[rgb=no,cmyk=yes,spot=yes,textcolor=cmykblack,intent=overprint]

This works well for the body. For footnotes I need to use this:

\def\numfoo#1{\startcolorintent[overprint] #1 \stopcolorintent}
\setupnotation[footnote][numbercommand=\numfoo,before={\startcolorintent[overprint]},after={\stopcolorintent}]

Just want to share that.

Honza
___
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] placefigure vs grid problem

2012-03-20 Thread Honza Hejzl
Hello,

I have found that placing figures in grid mode does problems with
[left,right...] parameters. The figure brokes the text flow. (It suffice to
turn grid=yes.)

Any solution, please?

Thanks, Honza

\enableregime[utf]
\mainlanguage[cz]

\setuppapersize[A5][A5]
\setuplayout[
*grid=yes*
]
\setupindenting[1em]
\indenting[yes]

\setupexternalfigures[]
\setupfloats[spaceafter=none]
\setupcaptions[location={bottom,left}]
\setuptolerance[tolerant]

\starttext


\chapter{{Předmluva}}

Za výstup projektu je také možno považovat i fakt, že ze studií vznikly a
byly úspěšně obhájeny dvě diplomové práce a před dokončením jsou i dvě
práce doktorské.\footnote{Jedná se o~diplomové práce K. Kukanové a M.
Wagnera (na katedře právních dějin) a doktorské dizertace J. Pleskota a T.
Jablonického (na katedeře právních dějin a na Ústavu právních dějin
Právnické fakulty UK).}

\placefigure[left]{}{\externalfigure[none][width=3.5cm]}

Problematika různých forem majetkových perzekucí a zásadních změn
v majetkových vztazích v historické retrospektivě je nejen čistě historicko
právní otázkou, ale má i řadu přesahů do platného práva, do dalších oborů a
do současných celospolečenských diskuzí. Vlastnické právo a jeho ochrana
patří k základním atributům demokratického právního státu budovaného u~nás
po roce 1989 a ochrana soukromoprávních vztahů v oblasti věcných práv je
spojena i se šířeji pojatou svobodou jednotlivce a jejím zajištění proti
zásahům státní (veřejné) moci.
 \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] figures' captions

2012-03-20 Thread Honza Hejzl
Hi,

this is continuing of my last question.

Please, what is wrong with this?

\enableregime[utf]
\mainlanguage[en]
\setuppapersize[A5][A5]
\definefloat[figure][figures]
\setupcaption[figure][align=left]

\starttext
\input tufte
\placefigure[left]{sdf}{\externalfigure[none][width=5cm]}
\input tufte
 \stoptext

It seems align parameter is always ignored. I have the caption centered all
the time (nothing helps, align right, flushleft...)

Thanks, Honza
___
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] new footnotes

2012-03-19 Thread Honza Hejzl
Hello,

I have tested those „new“ commands for footnotes and it seems some of
them don't work properly. I like footnotes' numbers aligned to the
left side of the main text. On wiki is:

\setupnotation[footnote][location=left,width=1cm]
\setupnote[footnote][location=page,numbercommand=]

This simply does not work. I have combined location, alternative and
page parameter in both commands, \setupnotation as well as \setupnote,
nothing works now for me. The second bad thing is it ignores my
numbercommands. It was easy to use it before when I needed numbers as
not-indexed or in case I have whole notes and numbers as sans.

In source for mkiv I see:

\setupnotes
  [\c!location=\v!page,

... but simple \setupnotes[location=page] does nothing.

Is the work still in progress or am I missing something?

Thanks, Honza
___
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] new footnotes

2012-03-19 Thread Honza Hejzl
Wow, it is pretty confusing. The last week before I updated mkiv I
used to use it for numbers aligned with the left margin of the text.
It means the same like serried version but with the textblock of
footnotes aligned indented:

TEXT

169 sdfsf
sdfsdfdf
170 sdfsdf

Now it just does not work and I don't know what to use instead :oO

Thanks, Honza
___
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] new footnotes

2012-03-19 Thread Honza Hejzl
Aha, I've got it:

\setupnotation[footnote][width=2em,alternative=]

This works now. It does the same as location=page before my update.

Thanks, Honza
___
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] setupinterlinespace (exact setting, smaller than 1.0)

2012-03-17 Thread Honza Hejzl
Hello,

I am struggling with this for a very long time. I wish to know if there is
any sure way how to work with setupinterlinespace when I am setting ON
GRID. When bodyfont is, for my example, 9pt and I set up the interlinespace
to 10.8 (i.e. 1.0 – small), there are strange line breaks in pages
everywhere (as soon as the command \setupinterlinespace is used, doesn't
matter how big the number of line is, the text is broken in that way
(expecially when I am trying to use smaller distances). I need working on
grid with the possibility to reach exact interlinespace (typically to be
able to make linespacing tighter) – my editor has often very strict demands
for the page range. The once  result is the grid is tighter but the lines
are not.

According to my tests I think there is no possibility to set smaller
interlinespace than 1.0, is it?

Any ideas, please?

Here is the result:
http://dl.dropbox.com/u/4393365/interlinespace.png

bodyfont 9pt
interlinespace 10.8 (for test)

Thanks, Honza
___
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] footnotes setup

2012-03-17 Thread Honza Hejzl
Hi,

I have installed the last standalone version from contextgarden and oops,
my (few days) old file does not work properly. My old setup of footnotes
was like:

\setupfootnotedefinition[loaction=page...]
\setupfootnotes[bodyfontsize=8pt, style=\ss...]

Now the context does not understand to that. So I am trying to set up
footnotes with \setupnote[footnote] but it seems nothing works. I am not
able to use location=serried, location=page, style and so on... Is it
connected with some general update? :o(

Thanks, Honza
___
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] Overprint of footnotes

2012-02-29 Thread Honza Hejzl
Hi

I am trying to shape my pdf for preflight. There is a problem with
overprint (normal in case of a black text on a white page – 1/1 printing).

If I use:

\definecolor[cmykblack][c=0,m=0,y=0,k=1]
\setupcolors[
rgb=no,
cmyk=yes,
intent=overprint,
textcolor=cmykblack
]

… everything seems to be ok but footnotes. With some tweaking with commands
like

\def\over#1{\startcolorintent[overprint]#1\stopcolorintent}

it is possible to (at least) make those tiny numbers of footnotes
overprinted. But I am not able to do it with text (using of \textcommand
does not work). Is there any simple solution for that?

[ Answers like What do you need that for? or Ask them if they are capable
to print it as it stands. are forbidden! :o) ]

Thanks,

Honza Hejzl
___
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] Font embedding

2012-02-29 Thread Honza Hejzl
I am not at linux machine now but can provide those pdfs. (Thanks for your
recommendation of pdffonts.)

http://dl.dropbox.com/u/4393365/obalka_skand_fi_x1.pdf (Scribus embedded)

http://dl.dropbox.com/u/4393365/navrh_auditorium.pdf (ConTeXt subset)

Thanks, Honza
___
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] Font embedding

2012-02-28 Thread Honza Hejzl
Hi,

does anybody know how to really embed fonts into a pdffile? I have checked
and read many conversations on that topic here but without the real
solution (just a tons of arguments about how problematic/unethic it could
be… and so on).

I know well MKIV subsets all fonts. Yes, it is really good but it does not
satisfy 99 % of modern printing offices. Embedding of all fonts is very
typical demand of them. I really need it, sometimes it is not good or
possible to discuss with a printing office why to use my file instead of
the one you are demanding.

I will appreciate any info.

Thanks,
Honza Hejzl
___
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] Font embedding

2012-02-28 Thread Honza Hejzl
 Check the yellow pages for a printing house that does not demand that. :-)

 Best
   Martin


I am sorry, but that is absolutely typical demand, I have never seen at
least one printing house which does not demand that... (And this is not a
solution! :o))

In nowadays it is the client who choose the specific printing office, my
situation is the same.

That printing house demands expecially this:

PDF file must be version *1.3*

Embed the typeface in the document along with the image data. Avoid using
OPI commentaries! The typefaces used may be of the following standards: *
Type1*, *TrueType*, *and Opentype*. As a matter of principle, the data is
provided as a composite (not separated). Formats other than PDF are
accepted only after prior agreement.

The PDF provided file should especially not contain any kind of
meta-information, hypertext link, etc.

Everyone in printing industry *knows* what does it mean to embed fonts,
it is similar like when somebody wants pdf x-1a file (in printing industry
the standard).

I am not a programmer, I don't know what does it mean in a code point of
view. Trust me, embedding of fonts is the standard (if you are not able to
provide us the file as we need, your client should find another typesetter
- who typesets in InDesign). InDesign subsets typically just fonts used for
texts where is not used 100 % of alphabet (pdf export settings).

Honza

P. S. Some inspiration could maybe provide the Scribus, it has nice pdf
export possibilities, better than InDesign itself!
P. P. S. I have sent this to Hans and after that found your answers here,
so I am sending similar info.
___
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] Font embedding

2012-02-28 Thread Honza Hejzl
Just a little P. S.

Here is the typical view of fully embedded fonts (Scribus made):
http://dl.dropbox.com/u/4393365/embedded.png

And here the typical view of subset fonts (ConTeXt made):
http://dl.dropbox.com/u/4393365/subset.png

I will try to discuss that with somebody from the industry...

Honza
___
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] Captions command (special alignment)

2011-09-17 Thread Honza Hejzl
Hello,
why that simple thing doesn't work? Does anybody know?

\def\mycap#1#2{\hbox{\hbox{#1}\vtop{#2\par}}}

\setupcaptions[command=\mycap]


Simply I need this:


Fig. 1 The fig is great...

...like any other fig.


I have tried to set this up via table but still can't proceed.


Thanks, Honza Hejzl
___
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] ToC, other choices instead of dots [alternative=c]

2011-09-14 Thread Honza Hejzl
Hello,
is there any way how to choose something different than dots/spaces like a
title-pagenumber separator (without harakiri hacking)?

I need to have dashes there, like:

1. Chapter --- 5
2. Chapter --- 8

Thank you, Honza Hejzl
___
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] Titles - dimensions and grid after

2011-09-14 Thread Honza Hejzl
Hello,
I simply need to have chapter title exactly placed, not on grid (25mm from
left, top of all letters on the edge of the whole grid). I have tried:

\setupbodyfont[termes,11pt]

\setupinterlinespace[line=14pt]

\definefont[nadpisy][SansBold at 22pt]

\setuphead[chapter][%

before={\dontleavehmode\blank[-0.26cm]\hskip 25mm},

number=yes,

style=\nadpisy

after={\blank[11*line]},

]


This works fine but the text after is NOT on grid (don't know how to).

The second thing is it is NOT skipped 25mm but so cca 30mm.


%\def\mychapterstyle#1#2{\framed[frame=on,location=top,

offset=0pt,width=\textwidth,height=57mm,align=top]{{\hskip 25mm#1 #2}}}

\setuphead[chapter][%

number=yes,

style=\nadpisy

command=\mychapterstyle,

after={\blank[11*line]},

]


This works fine but the problem is that in case of some

charons or other diacritics the whole title is due to it slightly moved
down.


What could solve my problem? (How to get the text after on grid and have
exactly 25mm \hskip OR How to have a framed titles where the diacritical
marks are above the top of the frame?)


Thanks, Honza Hejzl
___
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] Setup of the title of Contents

2011-09-13 Thread Honza Hejzl
Hello,
I wish I were able to set tup my custom title (for example, for table of
contents). I have chapter titles split over two lines and with different
sizes so I need something different as a title of Contents. I know about
many possibilities of \setuplist options but can't find anything about
changing the title style. It seems the basic style is simply derived from
the chapter title style.

Any advice?

Thanks, Honza Hejzl
___
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] Basic layout settings

2011-09-12 Thread Honza Hejzl
Hello,
I am trying to learn how to set up the layout according to my exact wish and
can't achieve one thing.

How to remove those annoying tight spaces on both sides? I simply need 1.5cm
on the side of binding and 0.5cm on the outer one.

Here is the source:

\enableregime[utf]

\mainlanguage[cz]

\setuppapersize[A5][A4]

\setuplayout[%

location=middle,

width=fit,

height=505.4pt,

topspace=51.13pt,

header=0pt,

headerdistance=0pt,

leftmargindistance=0pt,

rightmargindistance=0pt,

rightmargin=0pt,

leftmargin=15mm,

rightmargin=5mm,

leftedgeditstance=0pt,

rightedgedistance=0pt,

footerdistance=13.3pt,

footer=13.3pt,

grid=yes,

marking=on

]

\setuppagenumbering[location=right]

\showgrid

\showframe

 \starttext

\input{tufte}

\stoptext


Thank, Honza Hejzl
___
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] Project structure – how to process product file

2011-09-10 Thread Honza Hejzl
Hello,
I am trying to split a book in separated chapter files. Every of them
includes:

\startcomponent kap01

\environment environ %this I use because it is great to fine-tune shorter
parts of book, it saves a lot of time

\product kniha

\starttext

...

\stoptext


Processing of single chapter files is ok.


In my productfile I have:


\startproduct kniha

\component kap01

\component kap02

\stopproduct


Of course, I have both chapters saved like kap01.tex...


I have that directory structure:


\Pes\environ.tex

\Pes\kap01\kap01.tex

\Pes\kap02\kap02.tex

\Pes\kniha\kniha.tex – this is the product file.


But when I try to process the product file, it saves kniha.log, kniha.tuc
but no pdf file. Interesting is, the console says exactly:


mkiv lua stats  result saved in file - kniha.pdf


But no, it really doesn't save anything...


Thanks, Honza Hejzl
___
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] (no subject)

2011-09-10 Thread Honza Hejzl
Great, thanks, we are close to success.

I can see the pdf file but it is broken and the console seems like it wants
some next interaction:

/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
pagesflushing realpage 2, userpage 2
pagesflushing realpage 3, userpage 3
pagesflushing realpage 4, userpage 4
pagesflushing realpage 5, userpage 5
))
*

Any suggestions?

Thanks. Honza
___
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] Project structure - how to process product file (Honza Hejzl)

2011-09-10 Thread Honza Hejzl
Great, thanks, we are close to success.

I can see the pdf file but it is broken and the console seems like it wants
some next interaction:

/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
pagesflushing realpage 2, userpage 2
pagesflushing realpage 3, userpage 3
pagesflushing realpage 4, userpage 4
pagesflushing realpage 5, userpage 5
))
*

Any suggestions?

Thanks. Honza
___
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] Project structure - how to process product file (Honza Hejzl) [SOLVED]

2011-09-10 Thread Honza Hejzl
Thank you, the solution was the line \environment which is needed to use in
both files chapter file and product file, too.

Honza Hejzl
___
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] Captions' alignment

2011-09-06 Thread Honza Hejzl
Hello,
I am re-posting my question because the last one was not clear and properly
written.

I am trying to set captions like paragraphs where the label is indented
negatively, like in case of itemize lists. I was successful with the shape
(\hbox{\vtop ...}}) but don't think my solution is useful. I am not able to
set this via \setupcaptions and styles.

I need something like:

Fig. 1 This figures how to...
 ... solve the problem.

This shape is very common in books and is common in cases of long paragraphs
in captions.

My test source:

\mainlanguage[cz]
\setuplayout[grid=yes]
\showgrid[yes]
\setuppagenumbering[location=footer]
\setupexternalfigures[]

\def\myblank{\blank[5pt]}

\definefont[headcap][SerifBold at 7pt]
\definefont[bodycap][SerifItalic at 7pt]
\definefloat[pic][pics]
\setupfloat[pic][location=right]
\setupfloats[spacebefore=none,frame=on,spaceafter=none,rightmargindistance=0pt,margin=5pt]
\setupcaptions[location=bottom,style={\bodycap\setupinterlinespace[small]}%
I don't want smaller captions' text on grid.
,headstyle={\headcap\setupinterlinespace[small]},distance=3pt,inbetween=\myblank]
\setuplabeltext[cz][figure=Obr.: ]

\starttext

\placefigure[right]{To je právě to, co člověka bude zas a znovu
mrzet.}{\externalfigure[jahve][width=6cm]} A jde, jak nejlépe umí; náhle
slyší za sebou kroky. Člověk s~vyhrnutým límcem jde za ním. Zdá se, že běží.
A Prokop se v~nesnesitelné hrůze dal na útěk.Ale zrovna na krok před chodcem
se mu udělá v~hlavě tma a celý svět se s~ním pojednou zatočí; náhle vidí
zblízka, zblizoučka pár pronikavých očí, jak se do něho vpíchly, naráží na
něčí rameno, vypraví ze sebe cosi jako promiňte a vzdaluje se s~křečovitou
důstojností. Po několika krocích se zastaví a ohlédne; ten člověk stojí a
dívá se upřeně za ním. Prokop se sebere a odchází trochu rychleji; ale nedá
mu to, musí se znovu ohlédnout; a vida, ten člověk ještě pořád stojí a dívá
se za ním, dokonce samou pozorností vysunul z~límce hlavu jako želva. Ať
kouká, myslí si Prokop znepokojen, teď už se ani neohlédnu. A jde, jak
nejlépe umí; náhle slyší za sebou kroky. Člověk s~vyhrnutým límcem jde za
ním. Zdá se, že běží.

\stoptext

Thanks, Honza Hejzl
___
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] Embedding of ICC profiles and preflight

2011-09-06 Thread Honza Hejzl
It seems, after several preflights, that option=always in \setupbackends
still does not work. Is anyone able to try to produce such a file an offer
it for preflight? I have tried it on both win and unix standalone
installations, have icc profiles placed correctly but Acrobat still says the
same…

Thanks, Honza Hejzl
___
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] Captions, negative indenting and \par

2011-09-05 Thread Honza Hejzl
Hello,
I am trying to set captions like paragraphs where the label is indented
negatively, like in case of itemize lists. I was successful but now I cant
set the text like a paragraph, it means I need hyphenation. In some cases
(different font) the picture is moved too much and is over the lines (hope
this I can solve with light experimenting with the pic's width).

here is the best result:
http://dl.dropbox.com/u/4393365/obrazky_pok.pdf

here the code:
http://dl.dropbox.com/u/4393365/obrazky_pok.tex

and here the other example with the pic under the lines:
http://dl.dropbox.com/u/4393365/obrazky2.pdf

Help appreciated.

Jan Hejzl
___
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] Embedding of ICC profiles and preflight

2011-09-02 Thread Honza Hejzl
So, it is interesting and more complicated. The exact part:

\setupbackend
   [format=PDF/X-1a:2001,
intent=Coated FOGRA39 (ISO 12647-2:2004),
option=always,% for a much bigger document :-)
   ]

… seems to work on my Debian standalone ConTeXt installation (ok, I will
test it again but it objected nothing (about ICC not embedded) in yesteday
in Acrobat's preflight) but on my Win XP standalone one it doesn't work. I
have the profiles in the same directories, of course. On Win it can't eat
the comma, on Debian it can.

Although the advice:

\definecolor[cmykblack][k=1]
\setupcolors[rgb=no,cmyk=yes,intent=overprint,textcolor=cmykblack]

… seems very logical, it doesn't work, preflight still sees the text like a
greyscale.

Thanks, Honza
___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Honza Hejzl
Hello,
I am trying to embed a profile but it doesn't work. I am using:

\setupbackend
[format=PDF/X-1a:2001,
intent=Coated FOGRA39 (ISO 12647-2:2004),
file=CoatedFOGRA39.icc,
option=always
]

Acrobat Preflight says it has not profile embedded. Am I doing something
wrong?

The next thing is I am using text smaller than 12pt and nothing helps me to
prevent ConTeXt to:

1) overprint the GRAY text (\setupcolors allows just to set cmyk-gray/rgb);
2) knockout text smaller than 12pt, what is not allowed in a good pdf file.

Any solutions highly appreciated, Jan Hejzl
___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Honza Hejzl
Thanks,

Just a notice – the style \startoverprint… should be probably in future
versions too, or how to overprint two elements and how to knockout the next
one? Is it possible? (In one file could be a lot of such cases needed.)

In case of \setupcolors[intent=overprint] is the problem in the fact that
preflight says that all text is gray object overprinted and that is
against the standards. I have simply one test page with one article of black
text. Everything goes fine except the fact of non-embedded profile and the
fact that text is considered like a gray scale object.

In case you could try to generate one pdf with such settings I could test
them in Acrobat.

Honza Hejzl
___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Honza Hejzl
Heureka, don't know why but now, with your example, Acrobat sees just a one
simple error – it sees like a gray object the pagenumber!

Honza Hejzl
___
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] End of page orphan/widow control

2010-11-29 Thread Honza Hejzl
Hello,
could anyone give me an advice how to manage text flow (in terms of
orphan/widow control with controlling of flushbottom raggedbottom effects?).
I am desperate in fact ConTeXt is a great tool but I can't reach effective
way how to control these things. (And be sure I have spent many hours above
manual and wiki… but maybe I am not so technically capable.)

In case I have longer text with many quotations, one-line paragraphs and
direct speech (typically any novel), I am able to reach a stage without
orphans and widows but context do what it want with an end of every
problematic page – it simply shrinks it –1 line. I need to be able to create
simply nice results in a basic-typography point of view of good novel
typesetting (without orphans, widows, on grid and every page the same
height).

Sure I know about \setuptolerance setting but it has (imho) very poor effect
for my purposes. (Sure, maybe I am not using it properly.)

Here is my result:
http://dl.dropbox.com/u/4393365/kresadlo.pdf

and source file:
http://dl.dropbox.com/u/4393365/kresadlo.tex

…see pages 3 and 4, please. This is what I mean and what I wish to manage in
a simple way.

Thank you

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