Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Herbert Voss

Am 15.10.20 um 09:15 schrieb Hans Hagen:

experimental (already there for a while but i need top pickup on it):

\starttext

\setupbodyfont[plex,10pt]
\setupalign[tolerant,stretch]
\useMPlibrary[dum]

\startpagecolumns[n=2]
     \dorecurse {10} {
     \startplacefigure[location={left,none}]
     \externalfigure[dummy][width=3em]


using width=13em gives funny output ...

Herbert




\stopplacefigure

     \dorecurse {4} {
     \samplefile{ward}\par
     }
     }
\stoppagecolumns

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Dangerous bend metafont/post code?

2020-05-27 Thread Herbert Voss



Am 27.05.20 um 21:19 schrieb Gerben Wierda:

To honour Donald Knuth, I’ve use his ‘dangerous bend’ (with attribution of 
course) in one of my publications. But I only had a low res image. Is the code 
of this symbol available somewhere so I can do it proper justice in a next 
edition?

Knuth used

\input manmac
\dbend
\bye

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Fontloader

2019-05-25 Thread Herbert Voss

I had a problem with the fontloader and luatex.
I tried to run my test document with context
(latest minimal) to compare the output, but I failed.

The font LibertinusKeyboard-Regular.otf
https://ctan.org/tex-archive/fonts/libertinus-fonts/
uses ligatures especially for the keys above 0x
However, I cannot get it run with latest mkiv.
It is no problem with xetex. It should print only the
five keys and not the ones for every single letter.

Herbert

\font\keyboard=LibertinusKeyboard-Regular.otf
\starttext
\keyboard
Tab

Entf

Enter

Capslock

Windows

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] luaotfload

2019-04-12 Thread Herbert Voss

Am 12.04.19 um 17:34 schrieb Hans Hagen:



The font files are here:

http://tug.org/~hvoss/Sparks-Bar-Medium.otf
http://tug.org/~hvoss/Sparks-Dotline-Medium.otf


i hacked a faster solution for such fonts (now I need some 25 sec for 
the initial caching so probably less on your machine and < 0.1 sec for 
loading the cached font)




thanks,
will the hack be available?

Herbert



-rw-r--r-- 1 voss voss  34412 Apr 11 18:54 Sparks-Bar-Medium.otf
-rw-r--r-- 1 voss voss 403776 Apr 11 18:54 Sparks-Dotline-Medium.otf


These make a pretty good case for using proper drawing package,


\definefont[sparkBarMedium][file:Sparks-Bar-Medium.otf:mode=node;+calt]
\definefont[sparkDotlineMedium][file:Sparks-Dotline-Medium.otf:mode=node;+calt] 



\starttext
Text 
{\sparkBarMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} 
Text


Text 
{\sparkDotlineMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} 
Text

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] luaotfload

2019-04-12 Thread Herbert Voss

Hello all,

If I run the following document on a 8 GByte RAM Linux machine.
It takes more than 30 minutes until luaotfload has build
the cache for Sparks-Dotline-Medium.otf. If I run another
Program in the background that it never ends (too less memory).
On my Mac the first run with context (upcoming TL2019) needs 9.5 Gbyte
memory and nearly 100% CPU load to scan the Sparks-Dotline font.
This one is, of course, 400 kB big, but why do we need
more than 8 GByte Ram??

The font files are here:

http://tug.org/~hvoss/Sparks-Bar-Medium.otf
http://tug.org/~hvoss/Sparks-Dotline-Medium.otf

-rw-r--r-- 1 voss voss  34412 Apr 11 18:54 Sparks-Bar-Medium.otf
-rw-r--r-- 1 voss voss 403776 Apr 11 18:54 Sparks-Dotline-Medium.otf




\definefont[sparkBarMedium][file:Sparks-Bar-Medium.otf:mode=node;+calt]
\definefont[sparkDotlineMedium][file:Sparks-Dotline-Medium.otf:mode=node;+calt]

\starttext
Text 
{\sparkBarMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} Text


Text 
{\sparkDotlineMedium{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}} 
Text

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Herbert Voss



Am 03.04.19 um 11:41 schrieb Thomas A. Schmitz:




On 3. Apr 2019, at 10:56, Henning Hraban Ramm  wrote:

Thank you – it’s not only a German habit, even if we pronounce it “folgende”, 
“f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was 
usual in mediaeval Latin.
So, this is at least used in English, German, Norwegian and Swedish, as far as 
I could find. In French they seem to use “sq.” and “sqq.” (sequens).


I’m not sure the abbreviation for “folio” has anything to do with our German 
“folgende”; if you have a link for this, I would like to know. And for the 
record: “ff.” for page ranges is now discouraged in most scholarly 
publications; journals and publishers now say f. for x - x+1, or exact page 
numbers.


it has nothing do do with "folgende", but it is often used because it 
means nearly the same.



folium = {
  de = {”f”, ”ff”},
  en = {”f”, ”ff”},
  fr = {”\,sq”,”\,sqq”},
  jp = {”シンボル”,”番号”},
}

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \framed regression

2018-10-29 Thread Herbert Voss

Am 29.10.18 um 16:13 schrieb Henning Hraban Ramm:


But it doesn’t help with my labels.


you have a

\setupinterlinespace[2ex]

so \offinterlinespace has no real meaning here. Try it without and

\setupinterlinespace[0.1pt]


And why did it work without \offinterlineskip before?


No idea ...

Herbert, hope that I understand your problem well
___
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] \framed regression

2018-10-28 Thread Herbert Voss

Am 28.10.18 um 20:37 schrieb Henning Hraban Ramm:

If I just typeset frames, they get 1pt of space inbetween:

\starttext


\offinterlineskip


\dorecurse{20}{%
   %\vskip-1pt% to avoid space
   \framed[width=10cm,height=1cm]{\ConTeXt}%
}
\stoptext


Herbert





I’m not quite sure if that shows the real problem and if that really was tight 
before.

With my tiny labels I had to \vskip-2.365mm to make them fit again.
There the font size was set to 7.5pt and the baselineskip to 2ex.
But these settings didn’t change the 1pt between frames.
The difference it probably due to the labels consisting of nested \frameds with 
images.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-10-28 um 20:01 schrieb Henning Hraban Ramm :


Ahoi,

there were a few strange changes in ConTeXt rendering since about since 
mid-August, probably all related to box handling.

I recognized \framed inserts some additional space when I re-typeset some 
sheets of labels that suddenly didn’t fit the labels any more.

Today my editor in chief asked me where the pagination of our magazine went to 
– I guess its footer box became too small, couldn’t investigate yet. He didn’t 
see that the type on the back is askew, probably also from the additional space 
around a \framed

Such sudden changes are really frustrating and might cost me a lot of money 
(the magazine is already printed and distributed).

I’ll try to come up with a MWE.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

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


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


___
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] Where can I find swiglib?

2018-06-03 Thread Herbert Voss



Am 03.06.2018 um 03:06 schrieb Henri Menke:

On 06/02/2018 11:41 PM, luigi scarso wrote:
  
https://serveur-svn.lri.fr/svn/modhel/swiglib/trunk/


https://serveur-svn.lri.fr/svn/modhel/swiglib/branches/

Doesn't work.

$ svn co --username anonymous --password anonymous
https://serveur-svn.lri.fr/svn/modhel/swiglib/trunk/


use

--username anonsvn --password anonsvn

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] ligature exceptions

2017-09-28 Thread Herbert Voss

Am 28.09.2017 um 08:40 schrieb Pablo Rodriguez:


using latest beta (from 2017.09.25 19:19), the following sample works:

 \starttext
 \blockligatures[fi,ff] \blockligatures[fl]
 \blockligatures[u:fl:age, u:fl:eg]

 \definefontfeature[default:b][default][blockligatures=yes]

 \setupbodyfont[times]\showfontkerns

 \startTEXpage[offset=1em]
 fi ff fl Auflage auflegt

 \definedfont[Serif*default:b]
 fi ff fl Auflage auflegt


How do you catch "Aufl." (the abbreviation of Auflage),
 which is written _with_ a ligature?

Herbert




 \stopTEXpage
 \stoptext

Just in case it helps,

Pablo



___
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] ligature exceptions

2017-09-27 Thread Herbert Voss

Am 27.09.2017 um 22:25 schrieb Henning Hraban Ramm:

Am 2017-09-27 um 15:39 schrieb Thomas A. Schmitz :


On 09/27/2017 02:16 PM, Thomas Widmann wrote:

That's a nice idea.  If something like that existed, it could be used
to change 's' to 'ſ' in relevant places, too.


This exists, see here: 
https://www.mail-archive.com/ntg-context@ntg.nl/msg79381.html


Thank you for the suggestion.
I tried

\replaceword[eka][Auflage][Au{fl}age]
\setreplacements[eka]

and even converted the german wordlist from the selnolig package, but it 
doesn’t help.
If I try
\replaceword[eka][Auflage][Au\noligature{fl}age]
I get a literal "Au noligature fl age" in my text.

Simply Au\noligature{fl}age doesn’t help either.

My active features are:
\definefontfeature[default]
 [mode=node,liga=yes,kern=yes,tlig=yes,
 ccmp=yes,language=dflt,
 protrusion=quality,
 expansion=quality]



\definefontfeature[default]
[mode=node,liga=yes,kern=yes,tlig=yes,
ccmp=yes,language=dflt,
protrusion=quality,
expansion=quality]

\replaceword[eka][Auflage][Au{fl}age]

\starttext
Auflage
Au\noligature{fl}age
\setreplacements[eka]
Auflage
\stoptext


no problem here, first with ligature the other two without

Herbert





Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD


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



___
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] ligature exceptions

2017-09-27 Thread Herbert Voss

Am 27.09.2017 um 14:09 schrieb Henning Hraban Ramm:



I know I can break ligatures with \/, like Auf\/lage, but is there a general 
dictionary approach, like \hyphenation{} ?


https://ctan.org/tex-archive/macros/luatex/latex/selnolig

is a selnolig.lua which could be used for a solution with context.
A list of all german words where a ligature should be suppressed
is also there.

Herbert





Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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



___
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] automatically splitting big images (calculation problem)

2017-09-10 Thread Herbert Voss

Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm:

My current code actually looks like

% split in #1 page size parts
\def\clipfigure{\dodoubleempty\doClipFigure}
\def\doClipFigure[#1][#2]{
\ifsecondargument
   \dorecurse{#1}{%
   \tooltip{\clip[
 height=\textheight,
 voffset=\dimexpr((\recurselevel - 1)\textheight),]{%


voffset=\numexpr(\recurselevel -1)\textheight]{%

Herbert



 \externalfigure[#2]}}{#2 (\recurselevel/#1)}\par}
\else
   \normalfigure[#1]
\fi
}

___
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] automatically splitting big images (calculation problem)

2017-09-10 Thread Herbert Voss

Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm:


\def\ausschnitt{\dodoubleempty\doAusschnitt}
\def\doAusschnitt#1#2{\clip[height=\textheight,voffset=#1]{\externalfigure[#2][width=\textwidth]}\par}

This also doesn’t work; there I’m trying to set the y coordinate for the start 
like
\ausschnitt[15cm][verylongimage]




BTW example picture:
http://www.balderdashcomic.com/comic/ibonus
i.e. http://www.balderdashcomic.com/comics/1416175460-bonus1.png


\def\ausschnitt{\dodoubleempty\doAusschnitt}
\def\doAusschnitt[#1][#2]{%
\clip[height=\textheight,
  voffset=#1]{\externalfigure[#2][height=\textheight]}\par}

\starttext
\ausschnitt[15cm][/tmp/test.png]

\stoptext


worked

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Font DejaVu with a font for Mathematics

2017-09-06 Thread Herbert Voss

Fabrice Couvreur schrieb:

> I use for the documents of my students the font DejaVu because I find that
> it is very readable on paper. Unfortunately, this is not a font for
> writing
> Mathematics. I would like to use DejaVu font for text and a font to write
> mathematical formulas. What do you recommend ?

DejaVu Math ... ;-)
https://ctan.org/tex-archive/fonts/tex-gyre-math
https://ctan.org/tex-archive/fonts/tex-gyre-math/opentype

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] show bounding boxes

2017-08-24 Thread Herbert Voss

Am 24.08.2017 um 15:46 schrieb Hans Hagen:


you can enable some tracers:

\starttext

\bgroup
 \showglyphs
 \showfontkerns
 \showmakeup[hbox]

 »Tee for Two« shows negative kerning.
 \input sapolsky \par
\egroup

\stoptext


thanks, works fine!

Herbert




(I will add a \showmakeup[line] that will mark lines.)

___
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] show bounding boxes

2017-08-24 Thread Herbert Voss

Am 24.08.2017 um 15:23 schrieb Idris Samawi Hamid ادريس سماوي حامد:


\definefontfeature[default][default][boundingbox=frame]

\starttext
»Tee for Two« shows negative kerning.
\input sapolsky
\stoptext


Curious: What kind of applications are you interested in, particularly 
for the framing-the-whole-line case?


for my students to show how words, lines, paragraphs, and pages
are build with boxes.

Herbert




I suspect want you want is doable but will take some start|stopluacode 
trickery that is far beyond my pay grade.


In any case, these might be useful tracing features to add to the bag of 
tricks, if they are not already there..


Best wishes
Idris


___
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] show bounding boxes

2017-08-23 Thread Herbert Voss

Hello all,
is it possible to get additional frames around words and
the whole line?


\definefontfeature[default][default][boundingbox=frame]

\starttext
»Tee for Two« shows negative kerning.
\input sapolsky
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Spurious vertical space above figure

2017-05-18 Thread Herbert Voss

Am 18.05.2017 um 01:18 schrieb Henri Menke:


Motivated by this question on TeX.SX
https://tex.stackexchange.com/questions/370292
I found out that in a full-page figure there is a spurious vertical
space of .5\baselineskip above the figure.  I was not able to find out
where it comes from.  Is this by design?  MWE is below.



---

\showframe

\starttext

\input knuth

\startplacefigure
   [location={leftpage,none}]


\startplacefigure
[location={lftpage,high,none}]


Herbert




   %% remove spurious vertical space
   %% don't ask me where it comes from
   %\blank[-.5\baselineskip]

   \externalfigure
 [dummy]
 [height=\textheight,width=\textwidth]
\stopplacefigure

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Real number with Lua

2017-04-19 Thread Herbert Voss

Am 19.04.2017 um 15:25 schrieb Fabrice Couvreur:


I do not know Lua but I'll learn later. How to display only 3 digits
after the decimal point ?


The default is 3 digits


\startluacode
function round(a,dec)
  local dec = dec or 3
  local b = math.pow(10,dec)
  return math.floor(a*b)/b
end
\stopluacode

\starttext
\startlinecorrection[blank]
\startmidaligned
\bTABLE[width=2cm,offset=0.8ex,align={lohi,middle}]
\bTR
\bTD \math{P} \eTD
\bTD \math{m} \eTD
\bTD \math{g_M} \eTD
\eTR
\bTR
\bTD \math{1.6} \eTD
\bTD \math{0.4} \eTD
\bTD \startluacode context(round(1.6/0.4,1))\stopluacode \eTD
\eTR
\bTR
\bTD \math{3.1} \eTD
\bTD \math{0.8} \eTD
\bTD \startluacode context(round(3.1/0.8))\stopluacode \eTD
\eTR
\bTR
\bTD \math{4.3} \eTD
\bTD \math{1.2} \eTD
\bTD \startluacode context(round(4.3/1.2,2)) \stopluacode
\eTD
\eTR
\bTR
\bTD \math{5.8} \eTD
\bTD \math{1.6} \eTD
\bTD \startluacode context(5.8/1.6)\stopluacode \eTD
\eTR
\bTR
\bTD \math{7.5} \eTD
\bTD \math{2} \eTD
\bTD \startluacode context(7.5/2)\stopluacode \eTD
\eTR
\eTABLE
\stopmidaligned
\stoplinecorrection
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \itemize unpacked?

2016-12-19 Thread Herbert Voss

Am 19.12.2016 um 13:26 schrieb Procházka Lukáš Ing.:

Hello,

I have code that setups \itemize packed.

Is it possible to force "unpacked" option back (mentioned here:
http://wiki.contextgarden.net/Command/setupitemgroup)?


\starttext

  \startitemize[][]
\item 1a
\item 1b
  \stopitemize

  \setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed'
from here on

  \startitemize[][]
\item 2a
\item 2b
  \stopitemize



you can make it a local setting:

{%
\setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed' from 
here on


\startitemize[][]
\item 2a
\item 2b
\stopitemize
}

Herbert



  \startitemize[unpacked][] % <--- Itemize still packed! - How to
disable it?
\item 3a
\item 3b
  \stopitemize

\stoptext


Best regards,

Lukas




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



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

2016-12-15 Thread Herbert Voss

Shouldn't the last frame not be the same as the one with strut=no??


\starttext

X\framed{ag}X\framed[strut=no]{ag}X\framed{\setnostrut ag}

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] twoside layout

2016-12-13 Thread Herbert Voss

Is it possible to set only the textwidth and the inner margin
for a twosided layout?

As far as I can see, backspace sets only the _left_ margin
of odd _and_ even pages.


\definepapersize[new][height=240mm,width=165mm]
\setuppapersize[new]

\definelayout[odd][
  topspace=14pt, header=14pt, headerdistance=22pt, height=20.2cm,
  backspace=1.9cm, width=12.4cm]
\definelayout[even][
  topspace=14pt, header=14pt, headerdistance=22pt, height=20.2cm,
  backspace=2.2cm, width=12.4cm]
\setuplayout

\starttext
\showframe
\dorecurse{10} {\input knuth \endgraf \input tufte \endgraf}
\showlayout[1,pt,cm]
\dorecurse{10} {\input knuth \endgraf \input tufte \endgraf}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behaviour of itemize inside tabulate

2016-11-20 Thread Herbert Voss

Am 20.11.2016 um 20:25 schrieb Willi Egger:


I have the following minimal example

% \setupitemgroup
%   [itemize]
%   [each]
%   [autointro,packed]
%   [symbol=2]


Use

\setupitemgroup
[itemize]
[each]
[packed]
[symbol=2]


Herbert




\starttext
\starttabulate[|l|p|]
\NC \bf Druk procedé  \NC \bf Opmerking \NC\NR
\NC Offset  \NC \strut weinig problemen als onverpakt\crlf 
\NC\NR
\NC Digitaal\NC beduidend lager i.v.m. warmte fixatie.

\startitemize
\startitem
zo snel 
mogelijk weer verpakken na het printen.
\stopitem
\stopitemize\par
 \NC\NR
\stoptabulate
\stoptext

When not uncommenting the setupitemgroup the tabulate appears as expected. 
However with the setupitemgroup enabled the row containing the itemize is 
shifted up and overlays the first row…

Do I miss something?

Thank you for looking at this. Kind regards

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



___
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] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Herbert Voss

Am 16.08.2016 um 16:52 schrieb Fabrice Couvreur:


\usemodule[pgfplots]

\pgfplotsset{compat=1.13}
\usetikzlibrary[intersections]
\usepgfplotslibrary[fillbetween]

\starttext

\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\switchtobodyfont[8pt]
\startaxis


[...]
\starttext

\starttikzpicture[
  /pgf/declare function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},
  font={\switchtobodyfont[8pt]}
]
%
\startaxis
[...]

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
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Herbert Voss

Am 01.08.2016 um 09:45 schrieb Hans Hagen:

On 8/1/2016 9:22 AM, Jan Willem Flamma wrote:

Hi Pablo,

I wasn’t aware of the \hyphenatedword feature. Thanks for sharing.



mtxrun --script patterns --hyphenate schematic


Can I change the language or do I have to choose a specific
pattern file?

Herbert



hyphenator  |
hyphenator  | . s c h e m a t i c .   . s c h e m a t i c .
hyphenator  |  0s0c0h2 0 0 0 2 0 0 0 0 0 0
hyphenator  |2c0h0 0 2 0 2 0 0 0 0 0 0
hyphenator  |0c0h0e2   0 2 0 2 2 0 0 0 0 0
hyphenator  |  1m0a0   0 2 0 2 2 0 0 0 0 0
hyphenator  |0a0t1i0c0 0 2 0 2 2 0 0 1 0 0
hyphenator  | .0s2c0h2e2m0a0t1i0c0.   . s c h e m a t-i c .
hyphenator  |
mtx-patterns| us 3 3 : schematic : schematic



I used an online hyphenation tool (English US) because it’s too tricky
for me too!
Using English UK the words maintenance and integrated are indeed
correctly hyphenated. So I jumped to conclusions there.

What remains is that ‘schematic' is incorrectly hyphenated as
'sc-hematic’.
Another example is the word ‘cards’, which I see hyphenated as
'ca-rds’ but I’m unable to reproduce it in a MWE for now.

Regards,
Jan Willem




On 31 jul. 2016, at 21:06, Pablo Rodriguez  wrote:

On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:

Dear all,

I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30
00:26 MKIV beta


Hi Jan Willem,

are patterns for Brittish English better?

   \starttext
   \hyphenatedword{schematic, maintenance and integrated
   beginning procedure adequately style}


   \uk\hyphenatedword{schematic, maintenance and integrated
  beginning procedure adequately style}
   \stoptext

Sorry, but English hyphenation is too tricky for me.

Just in case it helps,


Pablo
--
http://www.ousia.tk
___

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
___







___
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] convert old dvi files

2016-04-20 Thread Herbert Voss

Am 19.04.2016 um 23:18 schrieb Aditya Mahajan:

On Tue, 19 Apr 2016, Hans Hagen wrote:


On 4/19/2016 10:32 PM, Meer, Hans van der wrote:

it makes not much sense to add very old dvps stuff to the distribution


Some of these dvips support files are needed to use the pstricks module.


If you want to use PSTricks with ConTeXt minimal you have
to copy a lot of files from the TeX distribution. This
doesn't really make sense. Using context and PSTricks from
TeXLive will work.


See

https://mailman.ntg.nl/pipermail/ntg-context/2013/076165.html


There is no more a \ifx!.. It is already changed in pstricks.tex
to \ifx !...

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
___

Re: [NTG-context] fontname

2016-01-14 Thread Herbert Voss

Am 14.01.2016 um 12:15 schrieb dr. Hans van der Meer:

I want to display the name of the current (body)font.
\fontname{#1} should do the trick but what parameter to use?
\currentfont
\bodyfont
\currentbodyfont
are all wrong.


\starttext
\truefontname{Regular}
\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
___

Re: [NTG-context] PSTricks in Context

2014-12-16 Thread Herbert Voss

Am 16.12.2014 um 11:35 schrieb luigi scarso:



On Tue, Dec 16, 2014 at 11:04 AM, Akira Kakuto kak...@fuk.kindai.ac.jp
mailto:kak...@fuk.kindai.ac.jp wrote:

Hi Luigi,

The example works if one copies colo-rgb.mkii as colo-rgb.tex in
the same
folder of the example ...


It is OK by changing

line 46 in m-pstricks.mkii:
   \loadpstrickscolors{colo-rgb}}
to
   \loadpstrickscolors{colo-rgb.__mkii}}

as Herbert said.

In the recent beta's, the change was already done.


yes right ---  I have downloaded the current into TL,
but one can do the same with the zips of beta and have the correct
  \loadpstrickscolors{colo-rgb.mkii}


I have a script cpCTX2TL which installs the current beta and
then copies all relevant files into the current TL installation.

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
___

Re: [NTG-context] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 09:13 schrieb Mojca Miklavec:


(and maybe then it won't work anyway) and for MkIV it currently fails
to work as well:

(/usr/local/texlive/2014/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.05, 2014/05/12 (hv))  v1.63, 2014/06/24 (tvz,hv))
pstricks: loading colors from colo-rgb
! I can't find file `colo-rgb'.
\loadpstrickscolors ...g colors from #1}\input #1
   \relax \popmacro \dodefine...
l.47 ...s}{using indirect method; enable write18}}

(Press Enter to retry, or Control-D to exit)


for mkiv read:

http://www.ntg.nl/pipermail/ntg-context/2014/079514.html

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
___

Re: [NTG-context] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 09:55 schrieb Mojca Miklavec:


Anyway, the version in TeX Live now runs, but creates wrong results
(it prints out (0,0)(3,3) instead of drawing the line for example).

(And I'm not too eager to add support for PSTricks to the
distribution. It's a can of worms with zillion of other utilities
that we don't ship. And close-to-zero users.)


huh?? The only problem is this line

\loadpstrickscolors{colo-rgb}}

as mentioned in my mail.

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
___

Re: [NTG-context] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 15:27 schrieb Mojca Miklavec:


First of all I had to use Kakuto-san's example, adding something like

\pspicture(0mm,0mm)(30mm,30mm)
...
\endpspicture

in front and at the back (which is extremely ugly to see in ConTeXt).


I see,

\tikzpicture
..
\endtikzpicture

looks nicer ;-)

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
___

Re: [NTG-context] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 14:06 schrieb luigi scarso:



If we have a postscript interpreter, Is it possible to avoid dvi2ps at all,
using only a context mkiv ?


Yes, that could be possible.

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
___

Re: [NTG-context] [fontloader] positioning of diacritics

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 21:43 schrieb Philipp Gesang:


\enabletrackers[otf.bugs]


Thanks for the reply and for the pointer. That tracker is indeed
pretty handy!

I attempted to open a bug report on the Libertine tracker but
Sourceforge refuses to cooperate :/ Maybe next time.


As far as I know there is no more a development of Libertine

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
___

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread Herbert Voss

Am 08.12.2014 um 19:24 schrieb DesdeChaves:

After the update to new ConTeXT minimals -- luatex beta-0.79.2 (rev
5084) -- the code runs perfectly.


hm, after updating (Linux) I have still 79.1:

voss@shania:~/Links/opt/context/tex/texmf-linux-64/bin ./luatex -v
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)

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
___

Re: [NTG-context] Primes again in math

2014-12-02 Thread Herbert Voss
Mikael P. Sundqvist schrieb:

 A possible bug in latest standalone:

 \starttext
 $u''(t)$
 \stoptext

 yields u'(t) (one prime!). Is there a quick fix? I have a lot of '' in
 my file, so it would be nice not to have to change all of them...

use $u{''}(t)$

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
___

Re: [NTG-context] Primes again in math

2014-12-02 Thread Herbert Voss
Am 02.12.2014 um 18:57 schrieb Mikael P. Sundqvist:
 On Tue, Dec 2, 2014 at 6:52 PM, Herbert Voss herbert.v...@fu-berlin.de 
 wrote:
 use $u{''}(t)$

 
 Thanks, that works! Before adapting this in all places I'd like to
 know if this is the way it should be done from now on? If not, I'd
 like to know the suggested way. So I don't have to change again...

No, $u''(t)$ should also work

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
___

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Herbert Voss
Am 06.11.2014 um 13:36 schrieb Pierre-François Bonnefoi:

 thank you for proposing a solution, but it's not suitable to my needs as
 it modifies the content of the typing region : the backlash is displayed
 
 I want to be able to gobble or not the typing region by using a macro
 without modifying it.

\starttext

\iffalse   % or \iftrue
\starttyping
{ printf(%d, data); }
\stoptyping
\fi
This is not ignored !

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

Re: [NTG-context] Equivalent of os.resultof(...) in LaTeX

2014-11-06 Thread Herbert Voss
Am 06.11.2014 um 15:51 schrieb Xan:
 That is not a useful error description ...

 Herbert
 
 More clear than this?
 
  Neither this:
  
   \directlua{
require lualibs-os
tex.sprint(os.resultof(sha256sum \jobname.tex | cut -c  -5))
   }
  
  
  Blank. Nothing displayed.


 \directlua{
   require lualibs-os
   tex.sprint(os.resultof(sha256sum \jobname.tex))
 }
\bye

luatex --shell-escape file
will work.

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
___

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread Herbert Voss
Am 06.11.2014 um 21:16 schrieb luigi scarso:
 
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
[...]
 \setupTABLE[column][1][width=4cm,align={right,lohi},frame=on]%,framecolor=H1prime]



 The problem seems to be 
 %,framecolor=H1prime]


I have no problem with framecolor=H1prime setting.
I am using ConTeXt minimal copied into my up-to-date TL 2014.

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
___

Re: [NTG-context] Equivalent of os.resultof(...) in LaTeX

2014-11-04 Thread Herbert Voss
Am 04.11.2014 um 08:55 schrieb Xan:
 Xan dxpubl...@telefonica.net ha escrit:
 
 It does not work:

That is not a useful error description ...

Herbert



 \documentclass{article}
 \begin{document}
 \directlua{
  local handle = io.popen(sha256sum \jobname.tex | cut -c -5,r)
  if handle then
local result = handle:read(*all) or 
handle:close()
tex.print(result)
  end
 }
 \end{document}

 Neither this:

 \directlua{
  require lualibs-os
  tex.sprint(os.resultof(sha256sum \jobname.tex | cut -c  -5))
 }


 Blank. Nothing displayed.
 ___
 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] Equivalent of os.resultof(...) in LaTeX

2014-11-03 Thread Herbert Voss
Am 03.11.2014 um 12:42 schrieb Xan:

 Just short question: what's the equivalent in latex of 
 \ctxlua{context(os.resultof(sha256sum \jobname.conTeXt | cut -c  -5))}

\documentclass{article}
\begin{document}
\directlua{
 local handle = io.popen(sha256sum \jobname.tex | cut -c -5,r)
 if handle then
   local result = handle:read(*all) or 
   handle:close()
   tex.print(result)
 end
}
\end{document}


or load l-os.lua, then the command os.resultof is available.

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] Using PSTricks

2014-09-28 Thread Herbert Voss
This example from m-pstricks.mkiv doesn't work, there is a missing
file extension in m-pstricks.mkii:

line 46 (macro \doifelse)is:
   \loadpstrickscolors{colo-rgb}}

should be
   \loadpstrickscolors{colo-rgb.mkii}}

otherwise it searches for colo-rgb.mkiv which doesn't exist.

I do not understand why it searches for mkiv because in the
background runs context mkii (started by by m-pstricks.lua).

If I use the extension the follwing example works fine with
current minimal:

\usemodule[pstricks]
\usePSTRICKSmodule[pst-barcode]

\starttext
\startPSTRICKS
\pspicture(-4mm,-1mm)(38mm,26mm)
  \psbarcode[linecolor=red]{9781860742712}{includetext
guardwhitespace}{ean13}%
\endpspicture
\stopPSTRICKS

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


Re: [NTG-context] Linetables

2014-09-23 Thread Herbert Voss
Am 23.09.2014 um 10:59 schrieb Willi Egger:

 I would like to use the line table environment. - In order to get started I 
 copied the code from the wiki. After it did not work with the dorecurse 
 commands I simplified the code to
 
 \starttext
 \setuplinetable[n=6,lines=40]
 
 \setuplinetable[c][1]   [width=2cm,background=color,backgroundcolor=red]
 \setuplinetable[c][4]   [width=3cm,background=color,backgroundcolor=yellow]
 \setuplinetable[c][6]   [width=3cm,background=color,backgroundcolor=magenta]
 \setuplinetable[r][odd] [background=color,backgroundcolor=gray]
 \setuplinetable[r][even][background=color,backgroundcolor=green]

it is a problem with reading the parameter [c]. Use l or r instead and
it will work:



\starttext
\setuplinetable[n=6,lines=40]

\setuplinetable[l][1]   [width=2cm,background=color,backgroundcolor=red]
\setuplinetable[l][4]   [width=3cm,background=color,backgroundcolor=yellow]
\setuplinetable[l][6]   [width=3cm,background=color,backgroundcolor=magenta]
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]
\setuplinetable[r][even][background=color,backgroundcolor=green]
\showframe \showstruts

\setupcolors[state=start]

\startlinetable
\NC aaa\crlf aaa \NC bb \NC c \NC d \NC  \NC ff \NC \NR
\dorecurse{100}{\NC aaa \NC bb \NC c \NC d \NC  \NC ff \NC \NR}
\stoplinetable

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


Re: [NTG-context] Bug with the integration with tikz

2014-08-03 Thread Herbert Voss
Am 03.08.2014 22:22, schrieb Günter Kolousek:
 
 I just updated to 
 
 2014.07.30 10:31 MKIV beta  fmt: 2014.8.3  int: english/english
 
 but I get the same error message as before. It worked in the spring
 this year. Do you have a hint where can I search for?
 
 Maybe I should be a little bit more concrete. Yes, I get the expected
 results but also the cited error messages which I have to confirm.
 Any ideas?

I have the same problem with the current beta ...

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
___

Re: [NTG-context] Date format problems

2014-07-29 Thread Herbert Voss
Am 29.07.2014 10:02, schrieb A.J. Bonnema:

 I started using ConteXt a while ago, on the side line I still use LaTeX
 (old habits die hard). When converting my CV to ConTeXt I have a weird
 date problem. I hope one of you can point me in the right direction. I
 copy the start of the document from vi (line 4 is the relevant line):
 
  \setuppapersize[A4]
   2 \setuplayout[style=\ss]
   3 %\setupfooter[style=]
   4 \setuplanguage[nl][date={dd, -, mm, -, year}]

\mainlanguage[nl]

Herbert


   5
   6 \setupheadertexts[CV Guus Bonnema]
   7 \setupfootertexts[\currentdate][pagenumber]
   8
   9 %\definebodyfont[10pt][ss][tfe=lbr at 105pt]
  10
 
 
 Line 4 is the relevant line here.
 What I expect to see in the footer is a date like either 29-07-2014 or
 29 july 2014, but what I get is July 29, 2014.
 Also the log seems to indicate language en. What can I do to get the
 dutch date format?

___
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] setuphead interlinespace

2014-07-27 Thread Herbert Voss
Am 27.07.2014 04:06, schrieb Yuri Teixeira:
 Hello, From command/setuphead
 http://wiki.contextgarden.net/Command/setuphead I inferred this should
 work to set linespace to 1.5 within the chapter/section but it doesn't.
 Should it? I read on \setupinterlinespace and it's resetting mechanic
 but thought the parameter in setuphead would work. Also, I checked and
 this parameter is not mentioned in the manual, so maybe it does not exist.
 
 \setuphead[chapter][interlinespace=big]

sets the chapter title with a big interline space, not the following text:

\chapter{Some title with some more text to fill more tha a line}

will be of one half spacing

 \startchapter[title={Some title}]
 \setupinterlinespace[big]

this setting will be global not local. The reason why it is valid also
for the next chapter.

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
___


Re: [NTG-context] \startframed spurious whitespace

2014-07-23 Thread Herbert Voss
Am 23.07.2014 03:20, schrieb Rik Kabel:
 There appears to be a bug with \startframed. In the following example,
 the instance with no optional argument sets correctly, while with the
 use of an optional argument (even empty []) a whitespace is introduced
 before the text.
 
 \starttext
 \startframed[]
 Why a space?
 \stopframed

TeX reads \startframed[] Why a space? \stopframed
A linebreak is replaced by a space and spaces at the beginning of
a line are ignored by default. Without the optional []
TeX reads \startframed Why a space? \stopframed
The first space is eaten by TeX while parsing the macro name.

 \startframed[]%   ignore the space
 Why a space?
 \stopframed

It is the same behaviour as for \startframed{} ...


 \startframed
 This is ok.
 \stopframed
 \stoptext

This is also not correct, you should use:

 \startframed
 This is ok.%
 \stopframed
 \stoptext

Otherwise you'll get a space after the dot.


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] \framed versus \inframed

2014-07-22 Thread Herbert Voss
I'd expect a double frame for a nested \inframed, too. And also
fog in the last row always on the baseline fort \inframed.


\starttext
foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo

fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog

\setupframed[strut=no]
fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog
\stoptext


running current minimal

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
___


Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Herbert Voss
Am 22.07.2014 16:12, schrieb Otared Kavian:

 Maybe you want something like this:
 
 \starttext
 \startitemize[n]
 \setlocalhsize
 \item \framed[width=\localhsize,align=right]{Some text.}
 \item \startframed[width=\localhsize,align=right] Some text. \stopframed
 \stopitemize
 \stoptext

or

\item \inframed[width=\localhsize,align=right]{Some text.}


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] \underbar

2014-07-21 Thread Herbert Voss
From the contextref.pdf, p 262 \underbar


A disadvantage of this command is that words can no longer be
hyphenated. This is a nasty
side--effect. But we do support nested underlining.


This commant is wrong, right? Hyphenation is supported.

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] macros names

2014-07-16 Thread Herbert Voss
There are

\fillinline
\fillinrules

but

\setupfillinlines
\setupfillinrules


Is it intended??

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] setups

2014-07-14 Thread Herbert Voss
Do I get the up-to-date setups of commands when running for example:

\starttext
\usemodule[set-11]  \loadsetups
\setup{setupfillinrules}
\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] \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] \definelabel -- location

2014-04-03 Thread Herbert Voss

The documentation has an example for placing a label in the margin,
but it doesn't work, it is still in the text:

\definelabel[video][text=Video,location=inmargin]
\starttext
The label\video\ (Video 1) is not in the margin
\stoptext

or did I misunderstand the meaning of location?

current minimal

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] \showlayout

2014-04-01 Thread Herbert Voss

\starttext
\showlayout
\stoptext

Is it the intended behaviour that I get the layout setting
four times??

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] \definelabel

2014-03-31 Thread Herbert Voss

Hi all,

this worked some time ago:

\definelabel[video][text=Video,location=inmargin]

\starttext
\video foo
\nextvideo bar
\currentvideo[video1] baz
\page
see \at[video1].
\incrementvideo
\video foobar
\resetvideo
\video foobarbaz
\stoptext

now \currentvideo and \incrementvideo are undefined

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
___


Re: [NTG-context] font handling

2014-03-03 Thread Herbert Voss

Can someone at least confirm this behaviour?

Herbert


Am 26.02.2014 14:31, schrieb Herbert Voss:

I used uo-to-date minimal:

\starttext
test
\stoptext

voss@shania:/opt/context pdffonts torus.pdf
name typeencodingemb sub uni object ID
 --- --- --- --- --- -
WGBVOX+LMRoman12-Regular CID Type 0C Identity-H  yes yes yes 18  0




\definefontfamily[Garamond][serif][Garamond Premier Pro]
\setupbodyfont[Garamond]
\starttext
test
\stoptext


voss@shania:/opt/context pdffonts torus.pdf
name   typeencoding   emb sub uni object ID
-- --- -- --- --- --- -
RTODGH+LatinModernMath-Regular CID Type 0C Identity-H yes yes yes 18  0

The Garamond is not found which is no real problem here, but
why do I get a math font here as default?

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
___




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

2014-02-26 Thread Herbert Voss

I used uo-to-date minimal:

\starttext
test
\stoptext

voss@shania:/opt/context pdffonts torus.pdf
name typeencodingemb sub uni object ID
 --- --- --- --- --- -
WGBVOX+LMRoman12-Regular CID Type 0C Identity-H  yes yes yes 18  0




\definefontfamily[Garamond][serif][Garamond Premier Pro]
\setupbodyfont[Garamond]
\starttext
test
\stoptext


voss@shania:/opt/context pdffonts torus.pdf
name   typeencoding   emb sub uni object ID
-- --- -- --- --- --- -
RTODGH+LatinModernMath-Regular CID Type 0C Identity-H yes yes yes 18  0

The Garamond is not found which is no real problem here, but
why do I get a math font here as default?

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
___


Re: [NTG-context] pstrics module again

2013-11-26 Thread Herbert Voss

Am 26.11.2013 00:08, schrieb DesdeChaves:

I d'ont know how to fix the picture size.
No errors at all, but the figure size isn't correct.


did you used ps2pdf -dAutoRotatePages=/None file   ??

Herbert



\usemodule[pstric]

\starttext


Hydrogen spectrum

\startPSTRICKS
\input pst-spectra.tex
\input pstricks-add.tex
\pspicture(0,-2.5)(\textwidth,1.6)
\psspectrum[element=H, emission](0,0)(\textwidth,1.5)
\rput(2,1){Hydrogen spetrum}
\endpspicture
\stopPSTRICKS




\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] pstrics module again

2013-11-25 Thread Herbert Voss

Am 25.11.2013 19:55, schrieb Aditya Mahajan:


This is what I did.

1. Compile the file. You get an error that some pstrick file is missing.
Locate that file in the texlive directory and copy it to the current
directory.

2. Repeat until you get an error that \ifx! is not a valid control
sequence.

3. Run `grep ifx! *.tex` and change all the \ifx!#1 to \ifx !#1.


why does ConTeXt needs the space before the !  ??

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
___


Re: [NTG-context] pstrics module again

2013-11-25 Thread Herbert Voss

Am 25.11.2013 21:25, schrieb Aditya Mahajan:


\unprotect
\input pstricks
\protect

and therefore when ConTeXt sees \ifx!#1 it thinks that \ifx! is a
csname. Adding a space after \ifx avoids that.

As I said in my previous message, this is easy to fix at ConTeXt end
defining an appropriate catcode regime before inputing pstricks.

So, the pstricks package does not need to be changed, but the ConTeXt
code that is calling the package needs to be adapted.


ok, understood.

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


Re: [NTG-context] simplefonts and math

2013-02-16 Thread Herbert Voss

On 16.02.2013 09:23, Wolfgang Schuster wrote:


Am 15.02.2013 um 22:08 schrieb Pablo Rodríguez oi...@web.de:



the following sample seems not to select the right math font:

\usemodule[simplefonts]
\setmainfont[TeX Gyre Pagella]
\setmathfont[TeX Gyre Pagella]


\setmathfont[pagella]


that doesn't use the OpenType TeXGyrePagellaMath-Regular,
it uses the Type 1 version.

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
___


Re: [NTG-context] Standalone current

2012-11-29 Thread Herbert Voss

Am 29.11.2012 19:19, schrieb Hans Hagen:

On 11/29/2012 7:09 PM, Bill Meahan wrote:

What, if anything, is the difference between the version of ConTeXt in
the TeXLive distribution and the version one gets when running

first-setup.sh --context=current --modules=all


the texmfcnf.lua file


and the version ... :-)

ConTeXt Process Management 0.60

for TL:
ConTeXt Process Management 0.52
and so a lot of other things ...


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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-20 Thread Herbert Voss

Am 20.11.2012 09:20, schrieb H. Özoguz:

Sorry, I did not get you. I was asking about Context, not Latex?!


sure, I only explained the difference of \input and \include
respectively \includeonly and explained only the existing behaviour
in LaTeX. The same should be possible in ConTeXt.

Herbert




m 19.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:

see
http://projekte.dante.de/DanteFAQ/GrosseDokumente
if you are familiar with german.

Suppose you have a 1500 pages document,  but you really
work only on the 7th chapter which has 30 pages with lots
of references to other chapters/sectionb/images/

with \includeonly{chap7} you get a 30 pages document but
with correct page numbers and correct references.

With only \input chap7  you have wrong page numbers and
missing references

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
___




___
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] Equivalent of Includeonly?

2012-11-19 Thread Herbert Voss

Am 19.11.2012 10:47, schrieb H. Özoguz:




\startproduct mydocument

\component one
\component two
\component three
\component four

\stopproduct

Wolfgang


I always use \input for the chapters of books - what is the difference
to component? I looked into the wiki, but didn't get the difference.


see
http://projekte.dante.de/DanteFAQ/GrosseDokumente
if you are familiar with german.

Suppose you have a 1500 pages document,  but you really
work only on the 7th chapter which has 30 pages with lots
of references to other chapters/sectionb/images/

with \includeonly{chap7} you get a 30 pages document but
with correct page numbers and correct references.

With only \input chap7  you have wrong page numbers and
missing references

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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Herbert Voss
Wolfgang Schuster schrieb:

 \startproduct mysmalldocument

 \component one
 \component three

 \stopproduct

 This doesn’t the same because with \includeonly the
 chapter/figure/page/etc. counters from the skipped files are honored like
 they do with single component files from Thomas request.

because every file defined with \includeonly gets its own .aux file which
is _aöways_ read by the main tex file. The reason why all page numbers and
refences are correct.

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
___

Re: [NTG-context] \startitemize[columns] once again...

2012-11-14 Thread Herbert Voss

Am 14.11.2012 11:38, schrieb Philipp Gesang:

···date: 2012-11-14, Wednesday···from: Marcin Borkowski···


Dnia 2012-11-10, o godz. 03:23:11
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):


This minimal example behaves in a strange way:

\starttext
   Some text
   \startitemize[columns,two,joinedup]
   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
   \stopitemize
\stoptext

If we remove the percentage signs in the items, an additional vertical
skip appears.  Is it a feature or a bug?


Hi, could anybody look into it?  I tried also \smash-ing the formulae -
with no luck.


Hi Marcin, appears like the vertical spacing is extended when
content of the item exceeds the line height. The behavior is not
restricted to math mode, though I can’t say if there is an
official way to prevent or customize it. If you are desperate to
get around it, maybe put the content in a box of fixed height.


with the old context of current TeXLive it works without
adding additional space.

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
___

Re: [NTG-context] no footnote printed

2012-11-14 Thread Herbert Voss

Am 14.11.2012 12:18, schrieb Bernd Militzer:

Am 13.11.12 13:36, schrieb Hans Hagen:

On 11/13/2012 11:05 AM, Bernd Militzer wrote:

Hello,

using midaligned no footnote is printed.

\starttext
%
\midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}}
\crlf
Text bla bla bla
%
\blank
\midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}}
\crlf
Text bla bla bla

you can try with

\automigrateinserts


Thanks Hans, but it does not work.


it works with current versions of minimal and also TeXLive

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
___


Re: [NTG-context] Lua conditionals fail inside \starttexdefinition

2012-09-04 Thread Herbert Voss

Am 04.09.2012 20:44, schrieb Marco Patzer:

On 2012-09-04 Wolfgang Schuster wolfgang.schus...@gmail.com wrote:


Why does adding semicolon not work?


Do you have a example?



\starttext
\startluacode
   if true then;
 context(true)
   else;
 context(false)
   end
\stopluacode
\stoptext


that is no Lua syntax

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
___


Re: [NTG-context] Lua conditionals fail inside \starttexdefinition

2012-09-04 Thread Herbert Voss

Am 04.09.2012 21:05, schrieb Marco Patzer:


if true then;
   print(true)
else;
   print(false)
end

This snippet fed into a standalone Lua interpreter prints “true” on
the terminal.

I admit, I did not look up the syntax in the manual, but I have in
mind that semicolons can be used to separate statements that are on
one line.


voss@shania:~/ConTeXt lua zzz.lua
lua: zzz.lua:1: unexpected symbol near ';'

voss@shania:~/ConTeXt lua -v
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio

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
___

Re: [NTG-context] Lua conditionals fail inside \starttexdefinition

2012-09-04 Thread Herbert Voss

Am 04.09.2012 21:22, schrieb luigi scarso:


http://www.lua.org/manual/5.1/manual.html#2.4.4

The unit of execution of Lua is called a chunk. A chunk is simply a
sequence of statements, which are executed sequentially. Each statement
can be optionally followed by a semicolon:
:
:
2.4.4 - Control Structures

The control structures if, while, and repeat have the usual meaning and
familiar syntax:

stat ::= while exp do block end
stat ::= repeat block until exp
stat ::= if exp then block {elseif exp then block} [else block] end

(as conseguence
if exp then; block else; block end
is not valid
)


yes, see also: http://www.lua.org/manual/5.1/manual.html#8

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
___


Re: [NTG-context] Lua conditionals fail inside \starttexdefinition

2012-09-04 Thread Herbert Voss

Am 04.09.2012 21:35, schrieb Marco Patzer:

On 2012-09-04 Herbert Voss herbert.v...@fu-berlin.de wrote:


voss@shania:~/ConTeXt lua zzz.lua
lua: zzz.lua:1: unexpected symbol near ';'


marco@homerow:/tmp$ lua t.lua
true


voss@shania:~/ConTeXt lua -v
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio


marco@homerow:/tmp$ lua -v
Lua 5.2.1  Copyright (C) 1994-2012 Lua.org, PUC-Rio


the syntax changes, see http://www.lua.org/manual/5.2/manual.html#9

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
___


Re: [NTG-context] TeXlive 2012 released

2012-07-08 Thread Herbert Voss

Am 08.07.2012 10:59, schrieb luigi scarso:

http://tug.org/texlive/


but it will take some time until it is available
on all mirrors.

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
___


Re: [NTG-context] Small integral signes with Palatino

2012-05-29 Thread Herbert Voss

Steve Peter schrieb:

 On May 27, 2012, at 7:27 PM, Aditya Mahajan wrote:

 BTW, what is the status of Pagella Math?

  Nearly complete from what I hear.

it is available from CTAN:
http://CTAN.ORG/tex-archive/fonts/tex-gyre-math

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
___


Re: [NTG-context] how can I use framewidth in calculations

2012-03-24 Thread Herbert Voss

Am 24.03.2012 08:30, schrieb Thomas A. Schmitz:

On 03/24/12 03:27, Rogers, Michael K wrote:

Try

\framed[width=7cm]{\externalfigure[cow][width=\dimexpr\framedparameter{width}*9/10]}


[I don't understand \dimexpr. For instance 7cm = ~198pt, 0.9 * 7 cm =
~179pt, but \dimexpr0.9\framedparameter{width} yields 27.5992pt. It
doesn't seem to work well with decimals. No wiki page for it, that I
can find.]


Thank you, that is exactly what I needed! I'll see if I can find some
more information about \dimexpr now!


\framed[width=7cm]{\externalfigure[cow][width=0.75\expandafter\dimexpr\framedparameter{width}]}

works for me

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] lang-ini.mkiv

2011-12-31 Thread Herbert Voss

minimal from today.

\complexlanguage is used in lang-ini.mkiv but not defined


\language[en]
\starttext
\quotation{He answered: \fr\quotation{%
  Je ne parle pas fran\cc ais}.}\\
\quotation{He answered: \quotation{\fr%
  Je ne parle pas fran\cc ais}.}\\
\quotation{\fr Il r\'epondait: \quotation{%
  Je ne parle pas fran\cc ais}.}\\
\fr\quotation {Il r\'epondait: \quotation{%
  Je ne parle pas fran\cc ais}.}
\stoptext


Herbert


system   tex  error on line 3 in file 06-01-7.ctxcrop: 
Undefined control sequence ...


 1 \language[en]
 2 \starttext
 3   \quotation{He answered: \fr\quotation{%
 4   Je ne parle pas fran\cc ais}.}\\
 5 \quotation{He answered: \quotation{\fr%
 6   Je ne parle pas fran\cc ais}.}\\
 7 \quotation{\fr Il r\'epondait: \quotation{%
 8   Je ne parle pas fran\cc ais}.}\\
 9 \fr\quotation {Il r\'epondait: \quotation{%
10   Je ne parle pas fran\cc ais}.}
11 \stoptext
12


\fr -\complexlanguage
   [\s!fr ]
l.3 \quotation{He answered: \fr
   \quotation{%
?
___
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] itemize with conversion

2011-12-29 Thread Herbert Voss

This worked some weeks ago:

\defineconversion[ordinal][\enordinaldaynumber]
\starttext
 \startitemize[ordinal]
 \item Test
 \item Test
 \item Test
 \item Test
 \item Test
 \stopitemize
\stoptext

current beta from today

Herbert


! Undefined control sequence.

system   tex  error on line 7 in file 05-02-4.ctxcrop: 
Undefined control sequence ...


 1 \defineconversion[ordinal][\enordinaldaynumber]
 2 \starttext
 3  \startitemize[ordinal]
 4  \item Test
 5  \item Test
 6  \item Test
 7\item Test
 8  \item Test
 9  \stopitemize
10 \stoptext
11


\@@cvordinal -\enordinaldaynumber

\convertnumber ... 2\else 3\fi \fi \endcsname {#1}
  {\number #2}
l.7 }

\doconvertedstructurecounter ...!criterium , } )}
  \endgroup
to be read again
   \fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi

\dohandleitemreference \en...
...
l.4  \item T
est
?
___
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] itemize and \its

2011-12-29 Thread Herbert Voss

this one also worked some weeks ago:

\mainlanguage[de]
\starttext
\startitemize[8,packed]
 [width=8em,distance=2em,items=5]
 \ran {no\hss yes}
 \its I can not do it without \TeX.
 \mar{+} I use \TeX\ with other packages.
 \its I hardly use \TeX.
 \ran{\hss The future\hss}
 \its I will use \TeX\ forever.
 \its I expect no alternative to \TeX\
  in the next few years.
 \its I am looking for another system.
\stopitemize
+ Only {\it no} possible.
\stoptext

Herbert



! Use of \its doesn't match its definition.

system   tex  error on line 6 in file 05-01-7.ctxcrop: Use of  ...

 1 \mainlanguage[de]
 2 \starttext
 3 \startitemize[8,packed]
 4  [width=8em,distance=2em,items=5]
 5  \ran {no\hss yes}
 6\its I can not do it without \TeX.
 7  \mar{+} I use \TeX\ with other packages.
 8  \its I hardly use \TeX.
 9  \ran{\hss The future\hss}
10  \its I will use \TeX\ forever.
11  \its I expect no alternative to \TeX\
12   in the next few years.
13  \its I am looking for another system.
14 \stopitemize
15 + Only {\it no} possible.
16 \stoptext

l.6  \its I
can not do it without \TeX.
___
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] paragraph numbering

2011-12-29 Thread Herbert Voss

current beta:

\starttext
Some text.

\setupparagraphnumbering[state=start]
first numbered paragraph.

This is another numbered paragraph. It's long enough to wrap around onto 
more
than one line, so as to show that these are paragraph numbers and not 
line numbers.\par


A third numbered paragraph.
\setupparagraphnumbering[state=stop]

a paragraph
\stoptext

Herbert


! Undefined control sequence.

system   tex  error on line 5 in file 05-04-1.ctxcrop: 
Undefined control sequence ...


 1 \starttext
 2 Some text.
 3
 4 \setupparagraphnumbering[state=start]
 5   first numbered paragraph.
 6
 7 This is another numbered paragraph. It's long enough to wrap 
around onto more
 8 than one line, so as to show that these are paragraph numbers 
and not line numbers.\par

 9
10 A third numbered paragraph.
11 \setupparagraphnumbering[state=stop]
12
13 a paragraph
14 \stoptext
15

argument \tf \dousestyleparameter \@phstyle
  \dousecolorparameter 
\@phcolor...

\doifelsenothing #1-\edef \!!stringa {#1
 }\ifx \!!stringa \empty 
\expandafte...

\dodomargindata ...a [#1]\fi \doifelsenothing {#3}
  \donefalse \donetrue 
\ifdo...

everypar ...eckindentation \showparagraphnumber

\restoreinterlinepenalty \...
to be read again
   f
l.5 f
 irst numbered paragraph.
___
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 indentation

2011-12-29 Thread Herbert Voss

this worked some weeks ago:

\setupindentations[sample={Sprecher A},separator={:},distance=.5em]
\defineindenting[ra][text=Sprecher A]
\defineindenting[rb][text=Sprecher B]
\defineindenting[rc][text=Sprecher C]
\starttext
\startpacked
\ra Wie geht es dir?\par
\ra Ich fragte, wie es dir geht?\par
\rb Mir geht es gut!\par
\rc Habt ihr sonst keine Sorgen?

\ra Nicht dein Problem!\par
\rb Finde ich auch auch!\par
\rc Ist ja schon gut?!\par
\stoppacked
\stoptext


Herbert

! Undefined control sequence.

system   tex  error on line 1 in file 05-05-1.ctxcrop: 
Undefined control sequence ...


 1   \setupindentations[sample={Sprecher A},separator={:},distance=.5em]
 2 \defineindenting[ra][text=Sprecher A]
 3 \defineindenting[rb][text=Sprecher B]
 4 \defineindenting[rc][text=Sprecher C]
 5 \starttext
 6 \startpacked
 7 \ra Wie geht es dir?\par
 8 \ra Ich fragte, wie es dir geht?\par
 9 \rb Mir geht es gut!\par
10 \rc Habt ihr sonst keine Sorgen?
11

l.1 \setupindentations
  [sample={Sprecher A},separator={:},distance=.5em]
? X
___
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] Again Cambria after updating to latest beta

2011-06-09 Thread Herbert Voss

Am 09.06.2011 10:38, schrieb Willi Egger:


Thanks for testing. It is a bit wired indeed. The difference between your and 
my installation is, that I have the font in the texmf-fonts/data directory. But 
I do not expect that this should make a difference.


with the same location and latest context:

voss@shania:/opt/context pdffonts test-cambria-font.pdf
name type  emb sub uni object ID
 - --- --- --- -
HSFUNO+Cambria   CID TrueType  yes yes yes 18  0
OLOUFX+CambriaMath   CID TrueType  yes yes yes 19  0
TOQRYC+CambriaMath   CID TrueType  yes yes yes 20  0
WHWAPV+TeXGyrePagella-RegularCID Type 0C   yes yes yes 26  0
SNODLW+TeXGyrePagella-Italic Type 1yes yes no  27  0
WHZNSW+TeXGyrePagella-RegularCID Type 0C   yes yes yes 28  0
SYFHWD+TeXGyrePagella-RegularCID Type 0C   yes yes yes 29  0


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
___


Re: [NTG-context] section headings

2011-04-18 Thread Herbert Voss

no one has an idea?

Am 09.04.2011 20:55, schrieb Herbert Voss:

With the following code I get

1. Teil foo
§ 1 1 bar
i baz

but I need

1. Teil foo
§ 1 A. bar
I. baz

I cannot get the needed information from the wiki and the documentation.

\def\PartNo#1{#1.\,Teil}
\def\ChapterNo#1{§ \headnumber[part]
\determineheadnumber[chapter]\currentheadnumber}
\def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber}

\setuphead[part][number=yes,after=\blank,numbercommand=\PartNo,
style={\tfc\ss\bf},placehead=yes]
\setuphead[chapter][before=\blank,after=\blank,conversion=Characters,
numbercommand=\ChapterNo,
continue=yes,style={\tfb\ss\bf}]
\setuphead[section][conversion=Romannumerals,
numbercommand=\SectionNo,style={\tfb\ss\bf}]

\starttext

\part{foo}
\chapter{bar}
\section{baz}
\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
___


___
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] section headings

2011-04-09 Thread Herbert Voss

With the following code I get

1. Teil foo
§ 1 1 bar
i baz

but I need

1. Teil foo
§ 1 A. bar
I. baz

I cannot get the needed information from the wiki and the documentation.

\def\PartNo#1{#1.\,Teil}
\def\ChapterNo#1{§ \headnumber[part]
   \determineheadnumber[chapter]\currentheadnumber}
\def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber}
\setuphead[part][number=yes,after=\blank,numbercommand=\PartNo,
style={\tfc\ss\bf},placehead=yes]
\setuphead[chapter][before=\blank,after=\blank,conversion=Characters,
numbercommand=\ChapterNo,
continue=yes,style={\tfb\ss\bf}]
\setuphead[section][conversion=Romannumerals,
numbercommand=\SectionNo,style={\tfb\ss\bf}]

\starttext

\part{foo}
\chapter{bar}
\section{baz}
\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] \obeyspaces

2011-04-08 Thread Herbert Voss

The spaces in front of the lines are not taken
into account for the two defined macros. What to do that
\obeyspaces is also valid for these ones?

\def\TextWithSpaces{\bgroup\obeyspaces\doTextWithSpaces}
\def\FramedTextWithSpaces{\framed\bgroup\obeyspaces\doTextWithSpaces}
\def\doTextWithSpaces#1{#1\egroup}

starttext
A gap from hereto here!\par
\TextWithSpaces{   A gap fromhere  to here!}

\framed{   A gap from here to  here!}\par
\FramedTextWithSpaces{   A gap fromhere  to here!}
\stoptext

current minimal

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] Error with \section

2011-04-08 Thread Herbert Voss

I have no idea what's going wrong ...

When I uncomment the last line I'll get the following error.
Latest minimal

\setuparranging[doublesided]
\setuppagenumbering [alternative=doublesided]
\setupheads[alternative=margin,align=outer]
\setupnumbering[alternative=doublesided]

\starttext

\chapter{Foo}
\section{A long title} \input knuth \section{A long title} \input knuth
\section{A long title} \input knuth
\chapter{Bar}
\startitemize \item one  \item two \item three \stopitemize
\section{A long title} \input knuth \section{A long title} \input knuth
%\section{A long title} \input knuth \section{A long title} \input knuth

\stoptext


Herbert

[ ... ]
structuresectioning  section @ level 3 : 0.2.4 - A long title
! Extra \else.

system   tex  error on line 14 in file 08-02-9.ctxcrop: Extra  ...

 4 \setupnumbering[alternative=doublesided]
 5
 6 \starttext
 7
 8 \chapter{Foo}
 9 \section{A long title} \input knuth \section{A long title} 
\input knuth

10 \section{A long title} \input knuth
11 \chapter{Bar}
12 \startitemize \item one  \item two \item three \stopitemize
13 \section{A long title} \input knuth \section{A long title} \input 
knuth
14   \section{A long title} \input knuth \section{A long title} \input 
knuth

15
16 \stoptext
17
18
19
20
21 %\definepapersize[card][width=792pt,height=612pt]
22 %\setuppapersize[card][card]
23
24


\dohandlestructurehead ...ureheadnumbertext \else

\placestructureheadtext \f...
l.14 ...title} \input knuth \section{A long title}
   \input knuth
?
___
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] \blank[...]

2011-04-07 Thread Herbert Voss

From the source of the manual:

\starttext
bar\par
\blank[2\bodyfontsize]
bar
\stoptext

with latest minimal I get:

[...]
system   tex  error on line 8 in file zz.tex: Illegal unit of 
measure (pt inserted) ...


1 \starttext
2 bar\par
3 \blank[2\bodyfontsize]
4 bar
5 \stoptext
6

to be read again
   ^^H
argument 2^^H
 odyfontsize
\addaskedblankskip ...nce \blankskip #1\dimexpr #2
  \relax
l.8 }

\dovspacingyes ...#1\else \currentvspacing \fi )}
  \fi
l.3 \blank[2\bodyfontsize]
[...]

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] tabulate

2011-03-23 Thread Herbert Voss

this worked some time ago.
Current minimal mkiv

\def\tabulateuse#1{%
  \dorecurse{\numexpr2*#1-1\relax}
{\span\omit}}
\appendtoks
  \let\use\tabulateuse
  \defineTABLEshorthands
\to \everytabulate
\starttext
\starttabulate[|l|Bc|c|c|c|r|]
\NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
\NC a\NC \use2 b\NC d\NC e\NC f\NC\NR
\NC a\NC \use3 b \NC e\NC f\NC\NR
\NC \use4 a  \NC e\NC f\NC\NR
\stoptabulate
\stoptext


system   tex  error on line 10 in file 09-02-30.ctxcrop: 
Undefined control sequence ...


 1 \def\tabulateuse#1{%
 2   \dorecurse{\numexpr2*#1-1\relax}
 3 {\span\omit}}
 4 \appendtoks
 5   \let\use\tabulateuse
 6   \defineTABLEshorthands
 7 \to \everytabulate
 8 \starttext
 9 \starttabulate[|l|Bc|c|c|c|r|]
10   \NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
11 \NC a\NC \use2 b\NC d\NC e\NC f\NC\NR
12 \NC a\NC \use3 b \NC e\NC f\NC\NR
13 \NC \use4 a  \NC e\NC f\NC\NR
14 \stoptabulate
15 \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] MTXrun

2011-01-23 Thread Herbert Voss
What is the meaning of MTX in the name of the script?

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
___


Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia

2011-01-05 Thread Herbert Voss
Am 05.01.2011 19:57, schrieb luigi scarso:
 http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html
 http://www.paratype.com/public/
 
 What do you think ?

her is a list of the glyphs created by Volker

http://texnik.dante.de/misc/PTSerif.pdf

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
___


Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia

2011-01-05 Thread Herbert Voss
Am 05.01.2011 21:43, schrieb Arthur Reutenauer:
 her is a list of the glyphs created by Volker

 http://texnik.dante.de/misc/PTSerif.pdf
 
   ERROR 403: Forbidden.  Is it somehow intentional, or an oversight?

sigh ...
thanks, should go now

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
___


Re: [NTG-context] space in \longrightarrow in lucida (mkiv)

2010-12-03 Thread Herbert Voss
Am 03.12.2010 12:21, schrieb Mojca Miklavec:
 IIRC, the original definitions are from plain.tex and amstex.tex.
 
 plain.tex says:
 \def\joinrel{\mathrel{\mkern-3mu}}
 
 So I guess that \joinrel indeed needs to be defined on per-font basis
 instead of being hardcoded into definitions.

the macro \loadfontgoodies in font-gds.mkiv should be extended
to something like

\def\loadfontgoodies[#1]%
  {\ctxlua{fonts.goodies.get(#1)}%
   \InputIfExists #1.tex%
  }

which already load a lucida-math.ldf (lua code)
and then an optional lucida-math.tex (tex code)

don't know how ConTeXt can handle the \InputIfExists
The file lucida-math.tex in /context/fonts/
gets all font specific redefinitions, in this case

\def\joinrel{\mkern-4mu}
\def\longrightarrow{\relbar\joinrel\rightarrow}
\def\longleftarrow{\leftarrow\joinrel\relbar}
...

sich files are then possible for all other fonts

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
___


Re: [NTG-context] space in \longrightarrow in lucida (mkiv)

2010-11-30 Thread Herbert Voss
Am 30.11.2010 17:54, schrieb Mojca Miklavec:

 \setupbodyfont[lucida]
 
 \starttext
 $\longrightarrow$
 \stoptext
 
 The arrow has white space in the middle.

in mkii \joinrel is \mkern-4mu in mkiv only \mkern-3mu


\setupbodyfont[lucida]
\def\longrightarrow{\relbar\mkern-4mu\rightarrow}

\starttext
$\longrightarrow$
\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] \HL[...] in mkiv

2010-11-25 Thread Herbert Voss
runs in mkii and mkiv, but the optional argument for
\HL is only valid for mkii. For mkiv it is not taken
into account.

\starttext

\starttable[|c|c|c|c|c|c|c|c|c|c|]\HL
\VL 1 \VL 2 \VL 3 \VL 4 \VL 5 \VL 6 \VL 7 \VL 8 \VL 9 \VL 10 \VL\AR\HL[5]
\stoptable

\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] \starttable ... \stoptable

2010-11-24 Thread Herbert Voss
what is wrong with the \em? With \bf or {\em ...} it is fine

! Misplaced \omit.
recently read \omit

\normalTABLEquote -\unskip \!ttRightGlue \omit
 \tablepos 
l.5 \NC \em Spalte 1 \NC
 \em Spalte 2 \NC \FR \HL   % didn't work
?


\starttext

\starttable[|l|r|]\HL
\NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works
%\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL   % didn't work
\NC $alfa$   \NC $beta$   \NC \MR
\NC Links\NC Rechts   \NC \LR \HL
\stoptable

\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] \starttable ... \stoptable part II

2010-11-24 Thread Herbert Voss
works with mkii, but not with mkiv
example is from the documentation:

\starttext

\starttable[|l|c|c|]
\DC\DL[2]  \DR
\NC\VL Mickey  \VL Goofy   \VL\SR \HL
\VL Donald \VL $\star$ \VL \VL\SR \HL
\VL Pluto \VL  \VL $\star$ \VL\SR \HL
\stoptable

\stoptext


! Undefined control sequence.
\next -\setTABLEerror
   \TABLEspanoverflow \handleTABLEerror
\normalTABLEmultirule #1-\use {#1}
\normalTABLElongrule 
\complexTableDL ...lTABLEmultirule {#1}}\fi \next
  \fi
l.4 \DC\DL[2]
   \DR
?


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
___


Re: [NTG-context] \starttable ... \stoptable

2010-11-24 Thread Herbert Voss
Am 24.11.2010 18:27, schrieb Hans Hagen:
 On 24-11-2010 12:20, Herbert Voss wrote:
 what is wrong with the \em? With \bf or {\em ...} it is fine

 \starttext

 \starttable[|l|r|]\HL
 \NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works
 %\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL   % didn't work
 \NC $alfa$   \NC $beta$   \NC \MR
 \NC Links\NC Rechts   \NC \LR \HL
 \stoptable

 \stoptext
 
 in font-ini.mkiv:
 
 \def\emphasiscorrection
   {\ifhmode\ifnum\currentgrouptype=\@@aligngroup\else
  \expandafter\expandafter\expandafter\emphasislook
\fi\fi}


thanks Hans,
works now.

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] \starttable ... \stoptable III

2010-11-24 Thread Herbert Voss
Next problem with \NL, works with mkii but not mkiv

! Misplaced \noalign.
\TABLEnoalign -\noalign
 \bgroup \let \noalign \relax \let \next =
\complexTableNL [#1]-\TABLEnoalign
{\edef \@@tiNL {#1}\simpleTableNL }
l.5 ...\VL $\star$ \VL \VL\SR \HL\NL[30pt]

?

\starttext

\starttable[|l|c|c|]
\NC\VL Mickey  \VL Goofy   \VL\SR \HL
\VL Donald \VL $\star$ \VL \VL\SR \HL\NL[30pt]
\VL Pluto \VL  \VL $\star$ \VL\SR \HL
\stoptable

\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] nested tabulate

2010-11-22 Thread Herbert Voss
I get funny horizontal lines in this example

\starttext
\starttabulate[|p|p|]  \HL
\NC {\starttabulate[|c|c|] \HL
   \NC c\NC c\NC\NR\HL
   \NC c\NC c\NC\NR
 \stoptabulate} \NC Text \NC\NR\HL
\NC C\NC C\NC\NR   \HL
\stoptabulate
\stoptext

minimal, mkii and mkiv

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] tabulate

2010-11-20 Thread Herbert Voss
this worked some days ago:

\starttext

\starttabulate[|p(3cm)|p|]
\NC foo \NC bar \NC
\stoptabulate

\stoptext

minimal mkiv

Herbert


systems : begin file 09-02-15.ctxcrop at line 1
! Undefined control sequence.
\bskip ...bulatehook \ifconditional \autotabulate
  \hsize \tabulatewidth
\fi ...
template ...l \empty \dotagtabulatealign \bskip
  \ifnum \tabulatetype
=\plu...
to be read again
   f
\tabulatecontent -\NC f
oo \NC bar \NC
\fulltabulatecontent ...dcontent \tabulatecontent
  \tabulatetailcontent
\remo...
\processtabulate ...le \crcr \fulltabulatecontent
  \crcr }\dostoptagged
\dost...
l.5 \stoptabulate
___
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
___


  1   2   >