Re: [NTG-context] character spacing for guillemets in English

2013-06-03 Thread Alan BRASLAU
On Sun, 2 Jun 2013 16:16:04 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 02.06.2013 um 14:32 schrieb Alan Bowen bowenala...@gmail.com:
 
  Is there a global way to insert a very thin (ca 1pt) unbreakable space 
  before a right guillemet and after a left guillemet when the main language 
  and character spacing are English, so that “«” and “»”  in my source file 
  are processed properly? 
  
  The font that I am using puts them too close to the enclosed characters 
  (typically, Greek). Basically, I need to borrow the French spacing for 
  these two characters but have not been able to figure out how to do this 
  from the ConTeXt source files.
 
 \definecharacterspacing [alan]
 
 \setupcharacterspacing [alan] [00AB] [right=.1,alternative=1]
 \setupcharacterspacing [alan] [00BB] [left=.1,alternative=1]
 
 \starttext
 
 text «text» text
 
 \setcharacterspacing[alan]
 
 text «text» text
 
 \stoptext
 
 Wolfgang

Or {\fr\quotation{text}}...

___
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] Including a large SVG image

2013-06-03 Thread Sander Maijers

Hi,

I have a few SVG graphics of multiple megabytes. They contain a lot of 
objects (text/shapes). All graphics except for one gets properly 
included in my ConTeXt document. In place of the failed one there the 
gray placeholder box with 'status unknown'.


I noticed that ConTeXt uses Inkscape to convert these SVGs to PDF. Is 
there a way in which I can increase the timeout for this conversion 
process? That is just a guess, maybe the problem is due to something else.


Best,
Sander
___
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] Including a large SVG image

2013-06-03 Thread Marco Patzer
On 2013–06–03 Sander Maijers wrote:

 I have a few SVG graphics of multiple megabytes. They contain a lot
 of objects (text/shapes). All graphics except for one gets properly
 included in my ConTeXt document. In place of the failed one there
 the gray placeholder box with 'status unknown'.

Maybe inkscape failed to convert the file. Is a corresponding
m_k_i_v_filename.svg.pdf file generated?

Marco


signature.asc
Description: Digital 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
___

[NTG-context] Indenting in \setuplines

2013-06-03 Thread Marcin Borkowski
Hi,

I'd like to have my \startlines ... \stoplines indented in the
following way: the first two lines unindented, the next two indented,
and so on.  Basically, this means that I'd like the pattern to be based
on (mod 4) arithmetic and not (mod 2).  Is it possible?  If yes, how?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] Including a large SVG image

2013-06-03 Thread Sietse Brouwer
Hoi Sander,

Sander Maijers wrote:
 I have a few SVG graphics of multiple megabytes. They contain a lot
 of objects (text/shapes). All graphics except for one gets properly
 included in my ConTeXt document.

Marco Patzer wrote:
 Maybe inkscape failed to convert the file. Is a corresponding
 m_k_i_v_filename.svg.pdf file generated?

It might be informative to try running the Inkscape conversion
manually. This is the command line ConTeXT uses:

inkscape %oldname% --export-dpi=600 -A %newname%

(The quotation marks are literal: they are there in case the filename
has spaces, e.g.)

Good luck!

Sietse

On 3 June 2013 13:25, Marco Patzer home...@lavabit.com wrote:
 On 2013–06–03 Sander Maijers wrote:

 I have a few SVG graphics of multiple megabytes. They contain a lot
 of objects (text/shapes). All graphics except for one gets properly
 included in my ConTeXt document. In place of the failed one there
 the gray placeholder box with 'status unknown'.

 Maybe inkscape failed to convert the file. Is a corresponding
 m_k_i_v_filename.svg.pdf file generated?

 Marco

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

[NTG-context] Indentation in floats

2013-06-03 Thread Marco Patzer
Hi,

how to disable indentation inside floats without using \noindenting
each time?

\setupindenting [yes, medium]
\starttext
\input ward

\startplacefigure
  foo\par bar
\stopplacefigure

\startplacefigure
  alpha\par beta
\stopplacefigure

\startplacefigure
  \noindenting
  a manual\par\tex{noindenting}\par works
\stopplacefigure

\input ward
\stoptext

Marco


signature.asc
Description: Digital 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
___

[NTG-context] \getfiguredimensionsonly (mkiv)

2013-06-03 Thread Peter Rolf
Hi,

the macro \MPfigure in meta-fig.mkiv uses \getfig... , which seems to be
undefined for mkiv.

Best wishes,  Peter
___
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] Indentation in floats

2013-06-03 Thread Wolfgang Schuster

Am 03.06.2013 um 16:59 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 how to disable indentation inside floats without using \noindenting
 each time?
 
 \setupindenting [yes, medium]
 \starttext
 \input ward
 
 \startplacefigure
  foo\par bar
 \stopplacefigure
 
 \startplacefigure
  alpha\par beta
 \stopplacefigure
 
 \startplacefigure
  \noindenting
  a manual\par\tex{noindenting}\par works
 \stopplacefigure
 
 \input ward
 \stoptext

There is no key for \setupfloat the disable the indentation because floats are 
only
a container for other objects, e.g. figures or tables. For text objects like 
verbatim
text indentation has to be part of the object and in your case you should use a
environment which has a option for this.

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
___


Re: [NTG-context] Including a large SVG image

2013-06-03 Thread honyk
 Sander Maijers wrote:
  I have a few SVG graphics of multiple megabytes. They contain a lot
  of objects (text/shapes). All graphics except for one gets properly
  included in my ConTeXt document.
 
 Marco Patzer wrote:
  Maybe inkscape failed to convert the file. Is a corresponding
  m_k_i_v_filename.svg.pdf file generated?
 
 It might be informative to try running the Inkscape conversion
 manually. This is the command line ConTeXT uses:
 
 inkscape %oldname% --export-dpi=600 -A %newname%
 
 (The quotation marks are literal: they are there in case the filename
 has spaces, e.g.)

If processing in Inkscape fails, you can try another tool: 
http://xmlgraphics.apache.org/batik/tools/rasterizer.html

It can (despite its name) transcode SVG to vector PDF:

java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg

In that case you have to transcode your files first and reference PDF variants 
in your input.

Jan

___
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] Centered title with numeration on the same line

2013-06-03 Thread honyk
Dear All,

in MkIV when any title is centered, its numeration is placed on a separate
line above the title itself.

I'd expect inline formatting which could be overridden as described here
http://wiki.contextgarden.net/Titles

My code:

\setuplabeltext[en][chapter=Chapter~]

% while for chapter title this line break is handy (in my use case)
\setuphead[chapter][
alternative=middle,
style=\bfc,
conversion=Romannumerals,
numbercommand=\groupedcommand{\cap}{\blank[0.5cm]},
after={\blank[1cm]},
]

% for section it is inappropriate
\setuphead[section][
alternative=middle,
style=\bfa,
sectionsegments=section, % ignore component label
]

\starttext
\chapter{Foo}
\section{The First Section}
Text.
\stoptext

How can I keep numeration and title together?

Thanks,
Jan

___
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] Indentation in floats

2013-06-03 Thread Marco Patzer
On 2013–06–03 Wolfgang Schuster wrote:

  how to disable indentation inside floats without using \noindenting
  each time?
  […]

 There is no key for \setupfloat the disable the indentation because floats 
 are only
 a container for other objects, e.g. figures or tables. For text objects like 
 verbatim
 text indentation has to be part of the object and in your case you should use 
 a
 environment which has a option for this.

I use the algorithmic environment. Using

  \setupalgorithmic [before=\noindenting]

works. Maybe you can consider adding this as default, since I don't
think it ever makes sense to use indentation within this
environment.

Marco


signature.asc
Description: Digital 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
___

[NTG-context] ToC - right-alignment of roman numerals

2013-06-03 Thread honyk
Dear All,

in fresh MkIV I use the following commands for building ToC, but I have no
idea how to align the label (roman numeral) to the right. In addition, the
specified width and distance seem to be somehow ignored so that label
interferes with the title.

\setuphead[chapter][conversion=Romannumerals]
\setupheadnumber[chapter][48]

\setupcombinedlist[content][
alternative=c,
distance=1em,
width=3cm,
]

\starttext
\completecontent
\chapter{Foo}
\chapter{Bar}
\stoptext

Here is the link with several screenshots of desired formatting:
http://tex.stackexchange.com/questions/69559/align-the-roman-numbers-of-the-
parts-in-toc

Any hint is appreciated.

Thanks,
Jan

___
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] Centered title with numeration on the same line

2013-06-03 Thread luigi scarso
On Mon, Jun 3, 2013 at 7:08 PM, honyk j.tosov...@email.cz wrote:

 Dear All,

 in MkIV when any title is centered, its numeration is placed on a separate
 line above the title itself.

 I'd expect inline formatting which could be overridden as described here
 http://wiki.contextgarden.net/Titles

 My code:

 \setuplabeltext[en][chapter=Chapter~]

 % while for chapter title this line break is handy (in my use case)
 \setuphead[chapter][
 alternative=middle,
 style=\bfc,
 conversion=Romannumerals,
 numbercommand=\groupedcommand{\cap}{\blank[0.5cm]},
 after={\blank[1cm]},
 ]

 % for section it is inappropriate
 \setuphead[section][
 alternative=middle,
 style=\bfa,
 sectionsegments=section, % ignore component label
 ]

 \starttext
 \chapter{Foo}
 \section{The First Section}
 Text.
 \stoptext

 How can I keep numeration and title together?

 Thanks,
 Jan


\setuplabeltext[en][chapter=Chapter~]

% while for chapter title this line break is handy (in my use case)
\setuphead[chapter][
align=middle,
style=\bfc,
conversion=Romannumerals,
deepnumbercommand=\cap,% \groupedcommand{\cap}{\blank[0.5cm]},
after={\blank[1cm]},
]

% for section it is inappropriate
\setuphead[section][
alternative=middle,
style=\bfa,
sectionsegments=section, % ignore component label
]

\starttext
\chapter{Foo}
\section{The First Section}
Text.
\stoptext

Maybe do you want deepnumbercommand ?
(see the links for the difference numbercommand vs deepnumbercommand)

--
luigi
___
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] Centered title with numeration on the same line

2013-06-03 Thread Marco Patzer
On 2013–06–03 honyk wrote:

 How can I keep numeration and title together?

You can create a custom head alternative. The following code is
copied from the source, I only replace the \par with
\kern\headnumberdistance. Have a look at strc-ren.mkiv for other
layouts.

\setuphead
  [section]
  [alternative=middle_nolinebreak]

\defineheadalternative
  [middle_nolinebreak]
  [alternative=vertical,
   renderingsetup=headrenderings:middle_nolinebreak]

\startsetups[headrenderings:middle_nolinebreak]
  \vbox {
\headsetupspacing
\veryraggedcenter
\let\\\endgraf
\let\crlf\endgraf
\ifconditional\headshownumber
  \strut
  \headnumbercontent
\kern\headnumberdistance
\fi
\begstrut
\headtextcontent
\endstrut
  }
\stopsetups

\starttext
  \section{The First Section}
\stoptext

Marco


signature.asc
Description: Digital 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
___

[NTG-context] Fraction with a fraction in the denominator

2013-06-03 Thread Sander Maijers

Hi,

How can I make the subfraction in the denominator of a fraction appear 
smaller even though the nominator is very small? This gives basically 
three equally long division lines:


\startfomula
\frac{\mu_{Z}}{\frac{\sqrt{\VAR{Z}}{\sqrt{N_{\text{segments}
\stopformula
___
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] Fraction with a fraction in the denominator

2013-06-03 Thread Sander Maijers

Sorry, I meant to write numerator. (In Dutch it is teller/noemer ;))


On 03-06-13 19:40, Sander Maijers wrote:

Hi,

How can I make the subfraction in the denominator of a fraction appear
smaller even though the nominator is very small? This gives basically
three equally long division lines:

\startfomula
 \frac{\mu_{Z}}{\frac{\sqrt{\VAR{Z}}{\sqrt{N_{\text{segments}
\stopformula
___

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] Centered title with numeration on the same line

2013-06-03 Thread honyk
Marco,

thanks a lot, it gives me exactly what I wanted!

But to be honest, I expected a single option for this :-)

Jan

 On 2013–06–03 honyk wrote:
 
  How can I keep numeration and title together?
 
 You can create a custom head alternative. The following code is
 copied from the source, I only replace the \par with
 \kern\headnumberdistance. Have a look at strc-ren.mkiv for other
 layouts.
 
 \setuphead
   [section]
   [alternative=middle_nolinebreak]
 
 \defineheadalternative
   [middle_nolinebreak]
   [alternative=vertical,
renderingsetup=headrenderings:middle_nolinebreak]
 
 \startsetups[headrenderings:middle_nolinebreak]
   \vbox {
 \headsetupspacing
 \veryraggedcenter
 \let\\\endgraf
 \let\crlf\endgraf
 \ifconditional\headshownumber
   \strut
   \headnumbercontent
 \kern\headnumberdistance
 \fi
 \begstrut
 \headtextcontent
 \endstrut
   }
 \stopsetups
 
 \starttext
   \section{The First Section}
 \stoptext
 
 Marco

___
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] ToC - right-alignment of roman numerals

2013-06-03 Thread Marco Patzer
On 2013–06–03 honyk wrote:

 in fresh MkIV I use the following commands for building ToC, but I have no
 idea how to align the label (roman numeral) to the right.

\setuphead[chapter][conversion=Romannumerals]
\setupheadnumber[chapter][48]

\setupcombinedlist
  [content]
  [alternative=c]

\setupcombinedlist
  [chapter]
  [distance=1em,
   width=1cm,
   numbercommand={\simplealignedbox{\listparameter{width}}{flushright}}]

\starttext
\completecontent
\chapter{Foo}
\chapter{Bar}
\stoptext

 In addition, the specified width and distance seem to be somehow
 ignored so that label interferes with the title.

The width setting needs to be applied to the chapter list, not the
content list, see example above.

Marco


signature.asc
Description: Digital 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] ToC - right-alignment of roman numerals

2013-06-03 Thread honyk
This is great! 

Thanks

 On 2013–06–03 honyk wrote:
 
  in fresh MkIV I use the following commands for building ToC, but I
 have no
  idea how to align the label (roman numeral) to the right.
 
 \setuphead[chapter][conversion=Romannumerals]
 \setupheadnumber[chapter][48]
 
 \setupcombinedlist
   [content]
   [alternative=c]
 
 \setupcombinedlist
   [chapter]
   [distance=1em,
width=1cm,
 
 numbercommand={\simplealignedbox{\listparameter{width}}{flushright}}]
 
 \starttext
 \completecontent
 \chapter{Foo}
 \chapter{Bar}
 \stoptext
 
  In addition, the specified width and distance seem to be somehow
  ignored so that label interferes with the title.
 
 The width setting needs to be applied to the chapter list, not the
 content list, see example above.
 
 Marco

___
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] Centered title with numeration on the same line

2013-06-03 Thread luigi scarso
On Mon, Jun 3, 2013 at 8:07 PM, honyk j.tosov...@email.cz wrote:

 Marco,

 thanks a lot, it gives me exactly what I wanted!

 But to be honest, I expected a single option for this :-)


\setuplabeltext[en][chapter=Chapter~]

% while for chapter title this line break is handy (in my use case)
\setuphead[chapter][
alternative=middle,
style=\bfc,
conversion=Romannumerals,
numbercommand=\groupedcommand{\cap}{\blank[0.5cm]},
after={\blank[1cm]},
]

% for section it is inappropriate
\setuphead[section][
align=middle,
style=\bfa,
sectionsegments=section, % ignore component label
]

\starttext
\chapter{Foo}
\section{The First Section}
Text.
\stoptext

But again, are you sure about the \cap command ?
It also sets the CHAPTER as small caps .

-- 
luigi
___
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] Problems with columns and grid

2013-06-03 Thread Joshua Krämer
Hello list,

in the following minimal working example (using Mark IV), the \column 
command is ignored. It works if the grid is disabled or balance=no is 
set. I need the grid, and regarding the balance: without balance, the 
columns use the whole type area height, but I want additional text to 
appear underneath the columns. The height parameter doesn't seem to 
control the columns' height. So my question is: How can I make \column to 
work or how can I at least set the column height as a workaround?

\setuplayout[grid=yes]
\starttext
\startcolumns%[balance=no]
left
\column
right 1\\right 2
\stopcolumns
\stoptext

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
___


Re: [NTG-context] Centered title with numeration on the same line

2013-06-03 Thread honyk
Dear Luigi,

  On Mon, Jun 3, 2013 at 7:08 PM, honyk j.tosov...@email.cz wrote:
  Dear All,
  
  in MkIV when any title is centered, its numeration is placed on a separate
  line above the title itself.
  
  I'd expect inline formatting which could be overridden as described here
  http://wiki.contextgarden.net/Titles
  
  My code:
  
  \setuplabeltext[en][chapter=Chapter~]
  
  % while for chapter title this line break is handy (in my use case)
  \setuphead[chapter][
  alternative=middle,
  style=\bfc,
  conversion=Romannumerals,
  numbercommand=\groupedcommand{\cap}{\blank[0.5cm]},
  after={\blank[1cm]},
  ]
  
  % for section it is inappropriate
  \setuphead[section][
  alternative=middle,
  style=\bfa,
  sectionsegments=section, % ignore component label
  ]
  
  \starttext
  \chapter{Foo}
  \section{The First Section}
  Text.
  \stoptext
  
  How can I keep numeration and title together?
  
  Thanks,
  Jan

 \setuplabeltext[en][chapter=Chapter~]
 
 % while for chapter title this line break is handy (in my use case)
 \setuphead[chapter][
 align=middle,
 style=\bfc,
 conversion=Romannumerals,
 deepnumbercommand=\cap,% \groupedcommand{\cap}{\blank[0.5cm]},
 after={\blank[1cm]},
 ]
 
 % for section it is inappropriate
 \setuphead[section][
 alternative=middle,
 style=\bfa,
 sectionsegments=section, % ignore component label
 ]
 
 \starttext
 \chapter{Foo}
 \section{The First Section}
 Text.
 \stoptext
 
 Maybe do you want deepnumbercommand ?
 (see the links for the difference numbercommand vs deepnumbercommand)

The problematic part is that section title. The chapter title formatting is Ok 
(but thanks for showing the way how to deal with these cases for future uses). 
Applying deepnumbercommand to section didn't help to me...

Regards, Jan

___
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] Centered title with numeration on the same line

2013-06-03 Thread Wolfgang Schuster

Am 03.06.2013 um 20:28 schrieb luigi scarso luigi.sca...@gmail.com:

 numbercommand=\groupedcommand{\cap}{\blank[0.5cm]},
 
 But again, are you sure about the \cap command ?
 It also sets the CHAPTER as small caps .

Formatting numbers as smallcaps/fake caps doesn’t make much sense :)

What I find questionable is the \blank command at the end of the numbercommand.

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
___


Re: [NTG-context] Problems with columns and grid

2013-06-03 Thread Wolfgang Schuster

Am 03.06.2013 um 20:30 schrieb Joshua Krämer joshua.krae...@gmail.com:

 Hello list,
 
 in the following minimal working example (using Mark IV), the \column 
 command is ignored. It works if the grid is disabled or balance=no is 
 set. I need the grid, and regarding the balance: without balance, the 
 columns use the whole type area height, but I want additional text to 
 appear underneath the columns. The height parameter doesn't seem to 
 control the columns' height. So my question is: How can I make \column to 
 work or how can I at least set the column height as a workaround?
 
 \setuplayout[grid=yes]
 \starttext
 \startcolumns%[balance=no]
 left
 \column
 right 1\\right 2
 \stopcolumns
 \stoptext

Use mixed columns:

\setuplayout[grid=yes]
\starttext
\startmixedcolumns
left
\column
right 1\\right 2
\stopmixedcolumns
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Centered title with numeration on the same line

2013-06-03 Thread luigi scarso
On Mon, Jun 3, 2013 at 8:51 PM, honyk j.tosov...@email.cz wrote:

 Dear Luigi,

 The problematic part is that section title. The chapter title formatting
 is Ok (but thanks for showing the way how to deal with these cases for
 future uses). Applying deepnumbercommand to section didn't help to me...

I've used align=middle
instead of
alternative=middle
in \setuphead[section]
(in the first example I've used it  for chapter)

-- 
luigi
___
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] PDF X-3 format.

2013-06-03 Thread john Culleton
Is there a way to convince Context to output a file in PDF X-3 format?
Some of the newer presses and prepress software will accept this format
and convert to CMYK automatically, and correctly for that particular
press.  

Scribus will handle PDF X-3 output but seems to choke when long pdf
files are imported. 

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
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] PDF X-3 format.

2013-06-03 Thread luigi scarso
On Mon, Jun 3, 2013 at 9:12 PM, john Culleton j...@wexfordpress.com wrote:

 Is there a way to convince Context to output a file in PDF X-3 format?
 Some of the newer presses and prepress software will accept this format
 and convert to CMYK automatically, and correctly for that particular
 press.

 Have you seen
http://wiki.contextgarden.net/PDFX
?

-- 
luigi
___
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] Centered title with numeration on the same line

2013-06-03 Thread honyk
Luigi,

 The problematic part is that section title. The chapter title formatting is 
 Ok (but thanks 
 for showing the way how to deal with these cases for future uses). 
 Applying deepnumbercommand to section didn't help to me...

 I've used align=middle instead of alternative=middle
 in \setuphead[section] (in the first example I've used it  for chapter)

sorry for that, I overlooked this change completely. Your solution works as 
well and it is even much simpler.

Thanks, Jan


___
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] Problems with columns and grid

2013-06-03 Thread Joshua Krämer
On Mon, 03 Jun 2013 21:00:49 +0200, Wolfgang Schuster has written:
 Use mixed columns:
 
 \setuplayout[grid=yes]
 \starttext \startmixedcolumns left \column right 1\\right 2
 \stopmixedcolumns \stoptext

Thank you very much, this works!  Now I wonder what the difference 
between regular and mixed columns is.  I have not found any information 
about it; mixed columns aren't even mentioned in the manual.  Can you 
tell me where to find a description?

I have an additional problem with columns:  If I set distance=
\baselineskip, it is bigger then \baselineskip.  Even with distance=0pt, 
there is still a gap, maybe because of some minimum distance value.  How 
can I get a smaller distance?

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
___


Re: [NTG-context] Problems with columns and grid

2013-06-03 Thread Wolfgang Schuster

Am 03.06.2013 um 21:45 schrieb Joshua Krämer joshua.krae...@gmail.com:

 On Mon, 03 Jun 2013 21:00:49 +0200, Wolfgang Schuster has written:
 Use mixed columns:
 
 \setuplayout[grid=yes]
 \starttext \startmixedcolumns left \column right 1\\right 2
 \stopmixedcolumns \stoptext
 
 Thank you very much, this works!  Now I wonder what the difference 
 between regular and mixed columns is.  I have not found any information 
 about it; mixed columns aren't even mentioned in the manual.  Can you 
 tell me where to find a description?

Mixed columns are a rewrite of the old columns mechanism.

It would ha been possible to use the new code for \startcolumns
but Hans restrained himself from doing this because the new code
produces a different output and ou have to force the new mechanism
with \startmixedcolumns to use it.

A advantage of the new environment is that you can use
it in \startframedtext (with a few restrictions) where the old mechanism
has failed.

 I have an additional problem with columns:  If I set distance=
 \baselineskip, it is bigger then \baselineskip.  Even with distance=0pt, 
 there is still a gap, maybe because of some minimum distance value.  How 
 can I get a smaller distance?


Do you have a example because there isn’t an space between the columns
when you use “distance=0pt”.

\starttext
\startmixedcolumns[distance=0pt,separator=rule]
\dorecurse{1000}{i }
\stopmixedcolumns
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \processcommalist and load values into macros.

2013-06-03 Thread Jaroslav Hajtmar

Hello ConTeXist.
Obviously I have a problem with expansion. My question is:
How can I place the elements of the list into macros for later use?
Basically, my point is that I want assign individual values into macros 
within the cycle of ​​and those subsequently used in a buffer to 
creating my own report.

Perhaps is can be understood what I want from my minimal example.

Thanx
Jaroslav Hajtmar

Minimal example:


\let\filename\null
\let\firstname\null
\let\surname\null
\let\city\null
\let\street\null
\let\postcode\null


\def\dosomething#1{#1\par}

\def\loadlistdatatomacros#1,#2,#3,#4,#5 {
\global\def\firstname{#1}
\global\def\surname{#2}
\global\def\town{#3}
\global\def\street{#4}
\global\def\postcode{#5}
}




\startbuffer[mypostbuffer]
\dosomething

% \loadlistdatatomacros
FIRSTNAME: \firstname\par
SURNAME: \surname\par
CITY \city\par
STREET \street\par
POSTCODE \postcode\par
\page
\stopbuffer


\starttext


\processcommalist[
{John, Smith, Prague, Václavské náměstí 20, 11500 },
{Peter, Paul, Brno, Nad struhou 232/12, 234 20 },
{Annie, Walter, Ostrava, Pod lipami 7, 321 54 },
]{\getbuffer[mypostbuffer]}


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

Re: [NTG-context] Problems with columns and grid

2013-06-03 Thread Joshua Krämer
One other problem has appeared:  \startmixedcolumns[align=right] doesn't 
work (align=... works with \startcolumns).  How can I change the 
alignment?

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
___


Re: [NTG-context] Problems with columns and grid

2013-06-03 Thread Wolfgang Schuster

Am 04.06.2013 um 00:35 schrieb Joshua Krämer joshua.krae...@gmail.com:

 One other problem has appeared:  \startmixedcolumns[align=right] doesn't 
 work (align=... works with \startcolumns).  How can I change the 
 alignment?

The mixedcolumns doesn’t have a option for this yet but (tolerance and blank
options are missing as well) but they can be added.

In the meantime you can add \setupalign[flushleft] at the begin of the 
environment.

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
___


[NTG-context] Picture before chapter-title, but on same page

2013-06-03 Thread H. Özoguz

Hello there,

I want to place a picture at the top on a page, and directly after that 
a chapter-title (without a page break). I tried it with the key 
continue, but that does not work.

Here my try:

\setuphead
  [chapter]
  [continue=yes]
\starttext
\startplacefigure [title={Some picture.}, reference=fig:demo, number=no]
 \externalfigure[picture][width=5cm]
\stopplacefigure
\chapter{Chapter-title}
\stoptext

How to correct it?

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