Re: [NTG-context] ntg-context Digest, Vol 227, Issue 15

2023-05-09 Thread Sebastian Ørsted via ntg-context
Could I get removed from this mailing list please? Thank you in advance

On Tue, 9 May 2023 at 18:05,  wrote:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Re: This is rmally done by loading special math fonts into
>   the math family slots. (Mikael Sundqvist)
>2. Re: This is rmally done by loading special math fonts into
>   the math family slots. (Carlos)
>3. Re: This is rmally done by loading special math fonts into
>   the math family slots. (Carlos)
>
>
> --
>
> Message: 1
> Date: Tue, 9 May 2023 16:46:42 +0200
> From: Mikael Sundqvist 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] This is rmally done by loading special math
> fonts into the math family slots.
> Message-ID:
> <
> cahy-ll9-tprwsutrnjh2qx5_pxdhgmgfvz+ckrfqv9eh88a...@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On Tue, May 9, 2023 at 4:20?PM Carlos via ntg-context
>  wrote:
> >
> >
> >
> > Hello list
> >
> > the whole error message I get is
> >
> > tex error   > tex error on line 90 in file
> ./atestinminion-context.mkiv: Math error: parameter 'operatorsize' with id
> 8 in style 0 is not set
> >
> >  \m_operator_text
> > \endgroup \Ustopmathmode
> >  \m_operator_text
> > \stopforceddisplaymath
> > \egroup \ifcase \c_strc_formulas_frame_mode \else
> \strc_math_number_check_offsets \fi \ifcase \c_strc_formulas_frame_mode
> \strc_math_number_check \or \strc_math_number_check_outside \else
> \strc_math_number_check_inside \fi \str
> >  \m_operator_text
> > \endgroup \strc_formulas_endstrut \stopinnermath
> > \afterdisplayspace \egroup
> >  \m_operator_text
> > \strc_formulas_place_number \strc_formulas_flush_number
> \dostarttagged \t!formulacontent \empty \dotagregisterformula
> \c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative
> \v!formula \endcsname
> > \dostoptagged \dostoptagged \nonoindentati
> > 
> > \stopformula
> >
> > \startformula
> > \int_{\infty}
> > >>  \stopformula
> >
> > Sorry, but I can't typeset math unless various parameters have been set.
> This is
> > normally done by loading special math fonts into the math family slots.
> Your font
> > set is lacking at least the parameter mentioned earlier.
> >
> > What parameter is this referring to here?
>
> Looks like you might not have the Minion math font. Did you buy it?
>
> /Mikael
>
>
> --
>
> Message: 2
> Date: Tue, 9 May 2023 10:49:43 -0400
> From: Carlos 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] This is rmally done by loading special math
> fonts into the math family slots.
> Message-ID:
> 
> Content-Type: text/plain; charset=us-ascii
>
>
> >
> > tex error   > tex error on line 90 in file
> ./atestinminion-context.mkiv: Math error: parameter 'operatorsize' with id
> 8 in style 0 is not set
> >
> >  \m_operator_text
> > \endgroup \Ustopmathmode
> >  \m_operator_text
> > \stopforceddisplaymath
> > \egroup \ifcase \c_strc_formulas_frame_mode \else
> \strc_math_number_check_offsets \fi \ifcase \c_strc_formulas_frame_mode
> \strc_math_number_check \or \strc_math_number_check_outside \else
> \strc_math_number_check_inside \fi \str
> >  \m_operator_text
> > \endgroup \strc_formulas_endstrut \stopinnermath
> > \afterdisplayspace \egroup
> >  \m_operator_text
> > \strc_formulas_place_number \strc_formulas_flush_number
> \dostarttagged \t!formulacontent \empty \dotagregisterformula
> \c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative
> \v!formula \endcsname
> > \dostoptagged \dostoptagged \nonoindentati
> > 
> > \stopformula
> >
> > \startformula
>
> >   \int_{\infty}
>
> > >>  \stopformula
>
> >
> > Sorry, but I can't typeset math unless various parameters have been set.
> This is
> > normally done by loading special math fonts into the math family slots.
> Your font
> > set is lacking at least the parameter mentioned earlier.
> >
> > What parameter is this referring to here?
> >
> > If I were to load sans it finishes off without errors on the math side,
> > but then again, doesn't load sans at all
> >
> > mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
> minionpro-regular.otf
> >
> > And as you can guess,  the above is not I was looking forward to
>
> in other words, this is wanted
>
> mkiv lua stats  > loaded fonts: 4 files: minionpro-bold.otf,
> 

Re: [NTG-context] ntg-context Digest, Vol 205, Issue 1 // log: use \thinspace instead of \,

2021-07-21 Thread Rudd, Kevin
Argh; mea culpa. Thanks for the very quick reply, Hans. It does work "as 
expected" (albeit deprecated)---Tracking down errors, I was misled by an error 
immediately following the deprecation warning and associated it with the 
warning, not the subsequent text.

Thanks,
 ---K

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

443-654-7878
ke...@lps.umd.edu

Visiting Research Professor
United States Naval Academy

r...@usna.edu


On Jul 21, 2021, at 05:48, Hans Hagen 
mailto:j.ha...@xs4all.nl>> wrote:

On 7/21/2021 11:04 AM, Rudd, Kevin wrote:
Revisiting this one---as noted in the thread \, used to work in text mode;
according to the logs it was deprecated and now produces an error
preventing most of my documents from compiling.
Is there solution that restores \, (and friends) for abbreviated spacing in 
text mode
that doesn't require bulk changes to all of my documents
(and making the source documents hard to type/read)?
I appreciate using the more verbose \thinspace in macros
but the abbreviations have real value in bulk text,
especially when heavily used.
I have many uses throughout my documents where I need a thin space
(such as working with SI units) where it would be very awkward
to use \thinspace everywhere in the source text.
for example, consider a simple example that used to work but no longer does
with the alternatives that I'm aware of:
32\,MiB--64\,MiB
32$\,$MiB--64$\,$MiB
32\thinspace MiB--64\thinspace MiB
The difference in both writeability and readability for these cases is 
significant
afaikt

\starttext
   test\,test
\stoptext

just works (\unit {32 mebibyte}--\unit {64 mebibyte} also works)

Hans


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.nl | 
www.pragma-pod.nl
-

___
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] ntg-context Digest, Vol 205, Issue 1 // log: use \thinspace instead of \,

2021-07-21 Thread Hans Hagen

On 7/21/2021 11:04 AM, Rudd, Kevin wrote:

Revisiting this one---as noted in the thread \, used to work in text mode;
according to the logs it was deprecated and now produces an error
preventing most of my documents from compiling.

Is there solution that restores \, (and friends) for abbreviated spacing 
in text mode

that doesn't require bulk changes to all of my documents
(and making the source documents hard to type/read)?
I appreciate using the more verbose \thinspace in macros
but the abbreviations have real value in bulk text,
especially when heavily used.

I have many uses throughout my documents where I need a thin space
(such as working with SI units) where it would be very awkward
to use \thinspace everywhere in the source text.

for example, consider a simple example that used to work but no longer does
with the alternatives that I'm aware of:

     32\,MiB--64\,MiB

     32$\,$MiB--64$\,$MiB
     32\thinspace MiB--64\thinspace MiB

The difference in both writeability and readability for these cases is 
significant

afaikt

\starttext
test\,test
\stoptext

just works (\unit {32 mebibyte}--\unit {64 mebibyte} also works)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 205, Issue 1 // log: use \thinspace instead of \,

2021-07-21 Thread Rudd, Kevin
Revisiting this one---as noted in the thread \, used to work in text mode;
according to the logs it was deprecated and now produces an error
preventing most of my documents from compiling.

Is there solution that restores \, (and friends) for abbreviated spacing in 
text mode
that doesn't require bulk changes to all of my documents
(and making the source documents hard to type/read)?
I appreciate using the more verbose \thinspace in macros
but the abbreviations have real value in bulk text,
especially when heavily used.

I have many uses throughout my documents where I need a thin space
(such as working with SI units) where it would be very awkward
to use \thinspace everywhere in the source text.

for example, consider a simple example that used to work but no longer does
with the alternatives that I'm aware of:

32\,MiB--64\,MiB

32$\,$MiB--64$\,$MiB
32\thinspace MiB--64\thinspace MiB

The difference in both writeability and readability for these cases is 
significant,
especially when there are many uses close together in either text or table.

Thanks,
 ---K

Re: log: use \thinspace instead of \,

On 6/30/2021 10:57 PM, Wolfgang Schuster wrote:
Alan Braslau schrieb am 29.06.2021 um 17:40:
On Tue, 29 Jun 2021 14:06:02 +0200
Henning Hraban Ramm mailto:te...@fiee.net>> wrote:

Maybe, but in running text I use \, all the time e.\,g. in
abbreviations or for numbers (10\,000). At least in German typography
these “spatiums” are necessary.
In French typography as well.

Indeed,
American: 10,000.00
French:   10\,000,00
(and other languages).

This is quite readable, and much preferred to the use of any kind of
macro that might format numbers according to language.

I find that students often need such helpers when deciphering many
digits.

Let's not forget all of these spaces commands are used in math mode.
Sure, and thet adaot to math mode. They will nto dissppear, it's just
that in macros I like more verbose names.

Hans

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

443-654-7878
ke...@lps.umd.edu

Visiting Research Professor
United States Naval Academy

r...@usna.edu
--

___
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] ntg-context Digest, Vol 204, Issue 76

2021-06-26 Thread Kirkham, Robin (Mineral Resources, Clayton)


> On 25 Jun 2021, at 21:15, ntg-context-requ...@ntg.nl wrote:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
> 
>   1. Re: Align in setup header/footer (Jan U. Hasecke)
>   2. First line of larger font paragraph on grid (denis.ma...@unibe.ch)
>   3. Re: Align in setup header/footer (denis.ma...@unibe.ch)
>   4. Re: Align in setup header/footer (denis.ma...@unibe.ch)
>   5. Re: Align in setup header/footer (Jan U. Hasecke)
> 
> From: "Jan U. Hasecke" 
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:23:24 AEST
> To: 
> 
> 
> 
> Hi Denis,
> 
> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>> Or, for more complex footers/headers you can use:
>> \setupfootertexts
>> [left on odd page] % out
>> [right on odd page] % in
>> [right on even page] % in
>> [left on even page] % out
> 
> In fact it is something like this
> 
> \setupfootertexts
>  [margin]
>  []
>  [\pagenumber]
>  [\pagenumber]
>  []
> 
> I want to align the number inside of this area to the right or the left 
> respectively.
> 
> I only found setuplayouttext to style the area, except that there is no key 
> "align".
> 
> juh
> 
> 
> 
> 
> From: 
> Subject: [NTG-context] First line of larger font paragraph on grid
> Date: 25 June 2021 at 20:30:29 AEST
> To: 
> 
> 
> Hi, 
>  
> I have some text in a larger font where the first line should be on the grid. 
> Therefore, I’ve tried to adapt the solution from the wiki: 
> https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid
>  
> The interesting thing is that the section command indeed places the first 
> line on the grid, but using \framed directly does not give the desired 
> results.
>  
> I must be missing something obvious. Does anyone know a solution ?
>  
> Thanks for your help,
> Denis
>  
> ===
> \setuplayout[grid=yes]
> \showgrid
>  
> \definefont  [BigFont]  [Bold at 20pt] [24pt]
>  
> \unprotect
> \unexpanded\def\section_command#1#2{%
>   \framed [
>width=\textwidth,
>frame=off,
>rulethickness=0pt,
>offset=0pt,
>loffset=-0pt,
>before=,
>location=top,
>align=flushleft,]{#2}%
> }
>  
>  
> \setuphead [section] [
> style={\BigFont},
> after=,
>before={\blank[1*line]},
>   command=\section_command,
> ]
> \protect
>  
> \defineframed[myframed][
>width=\textwidth,
>frame=off,
>rulethickness=0pt,
>offset=0pt,
>loffset=-0pt,
>before=,
>location=top,
>align=flushleft,]]
>
> \starttext
>  
> \blank[force,3*line,depth]
>  
> \begingroup
> \BigFont
> \myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem ipsum 
> dolor sit amet consectetur adipisicing elit}
> \endgroup
>
> asdfasdf
>  
> \page
> \blank[force,3*line,depth]
>  
> \startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing elit 
> Lorem ipsum dolor sit amet consectetur adipisicing elit]
>   asdf
> \stopsection
>  
> \stoptext
> =
>  
>  
>  
> 
> 
> 
> From: 
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:31:00 AEST
> To: 
> 
> 
> You can use \hfill
> 
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Jan U. Hasecke
>> Gesendet: Freitag, 25. Juni 2021 12:23
>> An: ntg-context@ntg.nl
>> Betreff: Re: [NTG-context] Align in setup header/footer
>> 
>> 
>> Hi Denis,
>> 
>> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>>> Or, for more complex footers/headers you can use:
>>> \setupfootertexts
>>> [left on odd page] % out
>>> [right on odd page] % in
>>> [right on even page] % in
>>> [left on even page] % out
>> 
>> In fact it is something like this
>> 
>> \setupfootertexts
>>   [margin]
>>   []
>>   [\pagenumber]
>>   [\pagenumber]
>>   []
>> 
>> I want to align the number inside of this area to the right or the left
>> respectively.
>> 
>> I only found setuplayouttext to style the area, except that there is no key
>> "align".
>> 
>> juh
>> 
>> ___
>> 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  : 

Re: [NTG-context] ntg-context Digest, Vol 198, Issue 8

2020-12-02 Thread Wolfgang Schuster

Andres Conrado Montoya schrieb am 02.12.2020 um 20:05:
You are naming your font "english". If you call "ebgaramond" it will 
always take the default ebgaramond features. Just call your font with 
the name you gave it.


\definefontfamily[english] [rm] [ebgaramond] [features={dlig=no}]


Pass only named features sets (create with \definefontfeature) as 
argument to the features key.


Even though "dlig=no" works at the moment this is not officially 
supported and can disappear in the future.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 198, Issue 8

2020-12-02 Thread Andres Conrado Montoya
You are naming your font "english". If you call "ebgaramond" it will always
take the default ebgaramond features. Just call your font with the name you
gave it.

\definefontfamily[english] [rm] [ebgaramond] [features={dlig=no}]
\setupbodyfont[english,10pt]
\starttext
ct st
\stoptext



-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] ntg-context Digest, Vol 193, Issue 65

2020-07-30 Thread Taco Hoekwater
Help request will be handled off-list.

Best wishes,
Taco

> On 30 Jul 2020, at 22:01, Jan Hansen  wrote:
> 
> Help
___
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] ntg-context Digest, Vol 193, Issue 65

2020-07-30 Thread Jan Hansen
Help

> On 31 Jul 2020, at 5:26 am, ntg-context-requ...@ntg.nl wrote:
> 
> Send ntg-context mailing list submissions to
>ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Installing VSCode extension? (Henning Hraban Ramm)
>   2. Re: Installing VSCode extension? (Henning Hraban Ramm)
>   3. Unknown script 'fonts.lua' or 'mtx-fonts.lua'
>  (Marcus Vinicius Mesquita)
>   4. Re: Unknown script 'fonts.lua' or 'mtx-fonts.lua' (Hans Hagen)
>   5. Re: Unknown script 'fonts.lua' or 'mtx-fonts.lua'
>  (Marcus Vinicius Mesquita)
>   6. Re: Unknown script 'fonts.lua' or 'mtx-fonts.lua' (Aditya Mahajan)
>   7. Re: About testing rest of space on a page (Wolfgang Schuster)
> 
> 
> --
> 
> Message: 1
> Date: Thu, 30 Jul 2020 12:25:34 +0200
> From: Henning Hraban Ramm 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Installing VSCode extension?
> Message-ID: <4ece59fd-6c48-4b38-bea3-68ee3d044...@fiee.net>
> Content-Type: text/plain;charset=utf-8
> 
> 
>> Am 30.07.2020 um 07:52 schrieb Jeong Dal :
>> 
>> Dear Alasdair McAndrew,
>> 
>> I am using vscode in iMac, so my setting may not work for you.
>> 
>> 
>> 
>> 1. First, find files for vscode in your TeX folder.
>> 
>> In my case, 
>> 
>> /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*
>> 
>> 2. In a homefolder, there is a hidden folder “.vacode”.
>> 
>> Copy context/*.* to  ./vscode/extensions/context/*.*
>> 
>> 3. Open vscode and enable context-extension.
>> 
>> Since it was long time ago, my memory may not be correct.
>> However, I hope that it may give you an idea.
> 
> It might make sense to not copy the files but symlink the folder (then it 
> automatically receives updates).
> i.e.
> ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context 
> ~/.vscode/extensions/
> 
> Don’t know how symlinking in Windows works, though.
> 
> HR
> 
> --
> 
> Message: 2
> Date: Thu, 30 Jul 2020 12:33:29 +0200
> From: Henning Hraban Ramm 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Installing VSCode extension?
> Message-ID: 
> Content-Type: text/plain;charset=utf-8
> 
> 
> 
>> Am 30.07.2020 um 03:57 schrieb Alasdair McAndrew :
>> 
>> Thanks again, I've fiddled with SciTE, but when I attempted to compile a 
>> context file, I was told that "texexec" wasn't in my path, so somehow, 
>> somewhere, I must have picked up an old version of the compile command.  
>> Also, there doesn't seem to be an easy way of getting SciTE to use a 
>> monospaced font. 
> 
> Did you read 
> $TEXROOT/texmf-context/context/data/scite/context/documents/scite-context-readme.pdf
>  ?
> 
> I don’t know if that answers your questions and if it’s still current.
> 
> HR
> 
> --
> 
> Message: 3
> Date: Thu, 30 Jul 2020 12:03:48 -0300
> From: Marcus Vinicius Mesquita 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Unknown script 'fonts.lua' or 'mtx-fonts.lua'
> Message-ID:
>
> Content-Type: text/plain; charset="utf-8"
> 
> Dear List,
> 
> After updating ConTeXt to the last version, the command:
> 
> mtxrun --script fonts
> 
> replies:
> mtxrun  | unknown script 'fonts.lua' or 'mtx-fonts.lua'
> 
> mtxrun --version gives:
> 
> mtxrun  | ConTeXt TDS Runner Tool 1.32
> 
> Greetings
> 
> Marcus Vinicius
> -- 
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
> nem seus membros, por ser descanso da alma, primavera do coração, distração
> do aflito, entretenimento do solitário, e viático do viajante.
> 
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
> -- next part --
> An HTML attachment was scrubbed...
> URL: 
> 
> 
> --
> 
> Message: 4
> Date: Thu, 30 Jul 2020 17:12:44 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users , Marcus
>Vinicius Mesquita 
> Subject: Re: [NTG-context] Unknown script 'fonts.lua' or
>'mtx-fonts.lua'
> Message-ID: <6e0b8b6c-20ee-4275-4668-924e84dee...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
>> On 7/30/2020 5:03 PM, Marcus Vinicius Mesquita wrote:
>> Dear List,
>> 
>> After updating ConTeXt to the last version, the command:
>> 
>> mtxrun --script fonts
>> 
>> replies:
>> mtxrun  | unknown script 'fonts.lua' or 'mtx-fonts.lua'
>> 
>> mtxrun --version gives:
>> 
>> mtxrun  | ConTeXt TDS Runner 

Re: [NTG-context] ntg-context Digest, Vol 191, Issue 66

2020-05-20 Thread jk...@inradius.net

> Message: 5
> Date: Wed, 20 May 2020 15:38:23 -0400 (EDT)
> From: Aditya Mahajan mailto:adit...@umich.edu>>
> Subject: Re: [NTG-context] metapost boxes error
> 
> On Wed, 20 May 2020, jk...@inradius.net  wrote:
> 
>> Is there a different approach to use boxes.mp?
>> 
>> MNWE:
>> 
>> \startMPpage
>> input boxes.mp;
>> boxit.bl("left");
>> boxit.br ("right");
>> br.sw - bl.ne = (20,0);
>> drawboxed(bl,br);
>> \stopMPpage
> 
> Move `input boxes` outside the `\startMPpage`.
> 
> 
> \startMPdefinitions
>   input boxes.mp;
> \stopMPdefinitions
> 
> \starttext
> \startMPpage
>   boxit.bl("left");
>   boxit.br ("right");
>   br.sw - bl.ne = (20,0);
>   drawboxed(bl,br);
> \stopMPpage
> \stoptext
> 
> 
> Aditya
> 

Of all things. Thanks Aditya!

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Wolfgang Schuster

Yves Cloutier schrieb am 15.03.2020 um 16:09:
Hello Wolfgang, after a few attempts that didn't work I copy-pasted the 
example from the wiki:


\definetyping[C][option=commands] \startC #include  int main(){ 
return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC



This did not work.

However following the example you provided this works perfectly! Many 
thanks.


When your goal is to format C or C++ code you can load the scite module 
which provides support for additional languages.


The \setuptyping line is necessary because the module selects the wrong 
formatter for C++ but this should be fixed in the next ConTeXt release 
and you can remove it when you make a update to the newest version.


\usemodule[scite]

\setuptyping[CPP][option=cpp]

\starttext

\startCPP
#include 

int main() {
printf("Hello ConTeXt!");
return 0;
}
\stopCPP

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Yves Cloutier
Hello Wolfgang, after a few attempts that didn't work I copy-pasted the
example from the wiki:

\definetyping[C][option=commands]\startC
#include 
int main(){
return 0;
/BTEX{\em unreachedCode;}/ETEX}\stopC


This did not work.

However following the example you provided this works perfectly! Many thanks.


On Sun, Mar 15, 2020 at 6:26 AM  wrote:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Source Code with Bolded Keywords (Yves Cloutier)
>2. Re: Source Code with Bolded Keywords (Wolfgang Schuster)
>3. Quizz (Fabrice Couvreur)
>4. Re: Quizz (Henning Hraban Ramm)
>5. METAPOST vardef returning multiple and non-numeric types as a
>   single answer? (Gerben Wierda)
>
>
> --
>
> Message: 1
> Date: Sat, 14 Mar 2020 11:54:31 -0400
> From: Yves Cloutier 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Source Code with Bolded Keywords
> Message-ID:
>  j5f28-8qv3ykrp+ev+ukrf0q+sp3mabskapxbkvn956...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I am trying to typeset source code for a custom programming language and
> would like to have the keywords in bold text.
>
> I tried following the example found here regarding verbatim displays:
>
> https://www.contextgarden.net/Verbatim_text#Displayed_text
>
> Specifically the C example, however this does not seem to work. No
> formatting is applied to my keywords.
>
> Just wondering if the way to do it has changed or if there are other
> examples I could look at to compare with what I'm doing.
>
> Regards,
>
> yc
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200314/d14dd25f/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Sat, 14 Mar 2020 20:03:34 +0100
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , Yves Cloutier
> 
> Subject: Re: [NTG-context] Source Code with Bolded Keywords
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Yves Cloutier schrieb am 14.03.2020 um 16:54:
> > Hello,
> >
> > I am trying to typeset source code for a custom programming language and
> > would like to have the keywords in bold text.
> >
> > I tried following the example found here regarding verbatim displays:
> >
> > https://www.contextgarden.net/Verbatim_text#Displayed_text
> >
> > Specifically the C example, however this does not seem to work. No
> > formatting is applied to my keywords.
>
> Can you provide a minimal example what you have tried.
>
> > Just wondering if the way to do it has changed or if there are other
> > examples I could look at to compare with what I'm doing.
>
> \starttext
>
> \starttyping[escape=yes]
> This is /BTEX\bf formatted/ETEX text.
> \stoptyping
>
> \starttyping[escape={<<,>>}]
> This is <<\bf formatted>> text.
> \stoptyping
>
> \starttyping[escape={}]
> This is  text.
> \stoptyping
>
> \stoptext
>
> Wolfgang
>
>
> --
>
> Message: 3
> Date: Sun, 15 Mar 2020 10:34:43 +0100
> From: Fabrice Couvreur 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Quizz
> Message-ID:
>  smfmjke3lc_-ptxwhw09g+ultk1...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> With the Coronavirus pandemic, my school will close like all the others. We
> chose to work with Microsoft Teams. I know how to file Math exercises
> written with ConteXt and export to pdf format. Is it possible with ConteXt
> to create interactive Quizz?
> Thank you
> Fabrice
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/17fa9887/attachment-0001.htm
> >
>
> --
>
> Message: 4
> Date: Sun, 15 Mar 2020 10:46:17 +0100
> From: Henning Hraban Ramm 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Quizz
> Message-ID: <3afc49c6-f279-49a7-2ef4-f13dacf29...@fiee.net>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 15.03.20 um 10:34 schrieb Fabrice Couvreur:
> > Hi,
> > With the Coronavirus pandemic, my school will close like all the others.
> > We chose to work with Microsoft Teams. I know how to file Math exercises
> > written with ConteXt and export to pdf format. Is it possible with
> > ConteXt to create interactive Quizz?
>
> You can create forms that work in Adobe Reader, but 

Re: [NTG-context] ntg-context Digest, Vol 186, Issue 61

2019-12-27 Thread Hans Hagen

On 12/26/2019 1:44 PM, Jeong Dal wrote:

Dear Hans,

I read the “luametafun.pdf” and run the codes one by one.
It is a really nice to have those figures easily.

During the reading, I found that there is a difference between the 
figure in the manual and the output of my run.

I run the following code at page 24-25 in “luametafun.pdf”.

\startMPcode{doublefun} draw lmt_contour [
xmin = 0, xmax = 4*pi, xstep = .05,
ymin = -6, ymax = 6, ystep = .05,
levels =7,
height = 5cm,
preamble = "local sin, cos = math.sin, math.cos",
function = "cos(x) + cos(y)"
background = "bitmap",
foreground = "edge",
linewidth = 1/2,
cache = true,
];
\stopMPcode


In the output, the background of text is gray while the background of 
text in the manual is white.

Here are versions of LuaMetaTeX and ConTeXt which I use.

%%%
This is LuaMetaTeX, Version 2.03.4
open source     > level 1, order 1, name 'cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2019.12.16 18:54 MKIV beta  fmt: 
2019.12.17  int: english/english

system          >
%

Is there anything that I miss?
Would you please to check it?

fixed in next beta


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 186, Issue 61

2019-12-26 Thread Jeong Dal
Dear Hans,

I read the “luametafun.pdf” and run the codes one by one.
It is a really nice to have those figures easily.

During the reading, I found that there is a difference between the figure in 
the manual and the output of my run.
I run the following code at page 24-25 in “luametafun.pdf”.

\startMPcode{doublefun} draw lmt_contour [
xmin = 0, xmax = 4*pi, xstep = .05,
ymin = -6, ymax = 6, ystep = .05,
levels =7,
height = 5cm,
preamble = "local sin, cos = math.sin, math.cos",
function = "cos(x) + cos(y)"
background = "bitmap",
foreground = "edge", 
linewidth = 1/2, 
cache = true,
]; 
\stopMPcode


In the output, the background of text is gray while the background of text in 
the manual is white.
Here are versions of LuaMetaTeX and ConTeXt which I use.

%%%
This is LuaMetaTeX, Version 2.03.4 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.12.16 18:54 MKIV beta  fmt: 2019.12.17  
int: english/english
system  > 
%

Is there anything that I miss?
Would you please to check it?

Thank you.

Best regards,

Dalyoung___
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] [NTG-CONTEXT] LTMX crashes on OpenBSD 6.5 amd64

2019-10-21 Thread Hans Hagen

On 10/21/2019 2:51 PM, Damien Thiriet wrote:


I tried a system-wide install of luametatex,
but having my binaries in a disk mounted with w^xallowed
did not change anything.

32 bit or 64 bit

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] [NTG-CONTEXT] LTMX crashes on OpenBSD 6.5 amd64

2019-10-21 Thread Damien Thiriet
Hello,


I tried a system-wide install of luametatex,
but having my binaries in a disk mounted with w^xallowed
did not change anything.

I tried to compile different files, but cannot guess yet
where do the crash come from. 
If it can help, I uploaded the luametatex.core file and files
that were compiled during the crash at this adress:

http://www.normalesup.org/~dthiriet/luametatex/

When I compiled this file, I had the first crash at page 12.
Retrying to compile made it crash at page 3.
I did not wipe the cache between compilations, nor made
mtxrun --generate and context --make.

Thanks,

Damien Thiriet
___
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] ntg-context Digest, Vol 183, Issue 4

2019-09-02 Thread Hans Hagen

On 9/2/2019 8:48 PM, Jeong Dal wrote:

Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",


in that case, just entering the path to the binary is also an option

> "~/ConTeXtLMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
context --autopdf '${file}'",



"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

Thank you.
Best regards,

Dalyoung




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 183, Issue 4

2019-09-02 Thread Jeong Dal
Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",
"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

Thank you.
Best regards,

Dalyoung

___
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] ntg-context Digest, Vol 180, Issue 23

2019-06-23 Thread Andres Conrado
Thanks, Pablo. I am assuming I need to have Utopia installed in my usual
font folder. I tried with Erewhon (I have otf files for that) and it works.
Thank you.

In a related note, is there any reasonable way to use the latex math font *Math
Times Pro 2* (https://www.pctex.com/mtpro2.html)? I know a latex user who
bought that font and I wonder if I can convince him to get on the ConTeXt
boat.

Andrés Conrado Montoya
http://chiquitico.org


El dom., 23 jun. 2019 a las 5:00,  escribió:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Re: is it useful to use the option "--fonts=all" when running
>   first-setup-sh? (Pablo Rodriguez)
>2. Re: crosswords puzzles (Wolfgang Schuster)
>3. mkii to mkiv - section numbering with minimal example
>   (Duncan Hothersall)
>4. Re: mkii to mkiv - section numbering with minimal example
>   (Hans Hagen)
>
>
> --
>
> Message: 1
> Date: Sat, 22 Jun 2019 12:03:38 +0200
> From: Pablo Rodriguez 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] is it useful to use the option
> "--fonts=all" when running first-setup-sh?
> Message-ID: <9a3757f9-04d5-ae8b-655f-160c9bc91...@gmx.es>
> Content-Type: text/plain; charset=utf-8
>
> On 6/20/19 10:39 PM, Andres Conrado Montoya wrote:
> > As the subject says. I've been experimenting with having a by-project
> > context folder, so I can have a "frozen" version for each project. I see
> > there's an option to install more fonts (including utopia, useful for a
> > project I'm working on). However, I have no idea how to use these fonts.
> > Are they available in mkiv? only for mkii? Do we have typescripts for
> > those fonts? If so, how are they called? Are those fonts actually usable
> > or are they just remains from a past era?
>
> Hi Andrés,
>
> this sample works fine with both MkIV and LMTX (no --fonts=all required):
>
> \definefontfamily[mainface][rm][Utopia]
> \setupbodyfont[mainface]
> \starttext
> \input zapf
> \stoptext
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
>
> --
>
> Message: 2
> Date: Sat, 22 Jun 2019 12:05:13 +0200
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , DesdeChaves
> 
> Subject: Re: [NTG-context] crosswords puzzles
> Message-ID: 
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> DesdeChaves schrieb am 22.06.2019 um 11:42:
> > Dear sirs,
> >
> > Is there a way to make crosswords  or word puzzles in context?
> > In my hippocampus I have a vague idea that this has already been
> > tried, but I can't find this code anymore.
> AFAIK there are only packages for LaTeX to create crossword but you can
> use natural or extreme tables to create them. For the input Lua can be a
> better choice because you can put your words (or numbers) in a Lua table
> and use a loop to create a table for TeX.
>
> Wolfgang
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190622/ff819017/attachment-0001.html
> >
>
> --
>
> Message: 3
> Date: Sun, 23 Jun 2019 09:26:04 +0100
> From: Duncan Hothersall 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] mkii to mkiv - section numbering with minimal
> example
> Message-ID:
>  t...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Further to my previous query about updating from mkii to mkiv, I have
> solved some of the issues by trial and error but am beginning to identify
> the ones I can't resolve. My first minimal example is below.
>
> I want the sections and subsections not to prefix the part and chapter
> numbering, giving me this output:
>
> Part 1
> Chapter 1.1
> Section 1
> Subsection 1.1
>
> The line that used to achieve this result was
>
> \setupsection[section-3][previousnumber=no]
>
> and there was also
>
> \setuphead[section][partnumber=no,chapternumber=no]
>
> but neither of these seems to work in mkiv
>
>
> Minimal example:
>
> \setupsection[section-3][previousnumber=no]
> \setuphead[section][partnumber=no,chapternumber=no]
>
> \starttext
> \part{Part}
> Part
> \chapter{Chapter}
> Chapter
> \section{Section}
> Section
> \subsection{Subsection}
> Subsection
> \stoptext
>
> Many thanks for any pointers.
>
> Duncan
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> 

Re: [NTG-context] ntg-context Digest, Vol 172, Issue 2

2018-10-01 Thread Jeong Dal
Dear Aditya,

Thank you for the reply.

> 
> As I said, I fixed the post.

I see why I have no problem.
Thank you for sharing your nice samples.

Best regards,

Dalyoung___
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] ntg-context Digest, Vol 164, Issue 29

2018-02-11 Thread Jeong Dal
Dear Wolfgang,

“\setupmathematics[integral=nolimits]” did what I want.
If I knew this two weeks ago, I saved my time to edit formulas.
I should ask for this feature two weeks ago.

There are so many things  in ConTeXt that I don’t know.

Thank you.

Best regards,

Dalyoung




> \starttext
> 
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
> 
> \setupmathematics[integral=nolimits]
> 
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
> 
> \setupmathematics[integral=limits]
> 
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
> 
> \stoptext
> 
> 
> Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, ASCII input - non ASCII output, Vol 161, Issue 13

2017-11-08 Thread Sava Maksimović
Thanks for answers,

I'm afraid, I didn't completely understand all of you about
transliterating commands name. I don't want to do this.
I don't want to translate or transliterate command names.

I just want to transliterate *text* part of input.

I can't split *commands and math* input from *text* input, because there is
inline math and commands are all around .
It is serious amount of switching. (ALT+ SHIFT keys), and when i'm thinking
about what i should type(about subject) i forget to switch, and that's
happening all the time.

Mojca, for 'ž'  i again have to switch keyboard.

Also, Mojca probably the best understand what i want and that Serbian
language can  be  written equally in  latin and cyrillic script.
Some people privately write in one script and some other people in another.
So there is a lot of scripts in Serbia written in latin script.
But official is CYR.

ОТ2 doesn't transliterate commands--- just text --- and i'm able to type
'zh' and 'ж' in the same file and he knows  what i want,
both input characters he treats the same. Even more Babel understand that
too, and hyphenate words according the rules define in cyr.

>
>
___
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] ntg-context Digest, Vol 160, Issue 40

2017-10-24 Thread Christoph Reller
On Tue, 24 Oct 2017 18:31:24 +0200 Pablo Rodriguez  wrote:

>
> On 10/24/2017 07:05 AM, Christoph Reller wrote:
> > [...]
> > Thank you Pablo for confirming this!
> >
> > Does anybody know whether this is a bug or whether it is the wrong way
> > to enable font-based kerning for quotations?
>
> Hi Christoph,
>
> from the devel mailing list
> (https://mailman.ntg.nl/pipermail/dev-context/2017/003422.html): this is
> a bug and it there is a fix for it.
>
> It will be applied in one of the next betas (but you can patch your
> ConTeXt distribution yourself).
>

Thank you Pablo for pointing me to the developer's mailing list. I have not
thought about searching through that. So, this is good news for me and I
will wait for the fix.

Cheers, Christoph

>
___
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] ntg-context Digest, Vol 160, Issue 26

2017-10-19 Thread Floris van Manen

> On 19 Oct 2017, at 11:33, Christoph Reller  wrote:
> 
> \setupquotation[method=font]

what is the intension of the method=font ?

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] ntg-context Digest, Vol 160, Issue 26

2017-10-19 Thread Christoph Reller
On Tue, 17 Oct 2017 13:38:37 + Christoph Reller <
christoph.rel...@gmail.com> wrote:

>
> In previous versions of ConTeXt the following MWE worked:
>
> \setupquotation[method=font]
> \starttext
> \quotation{A}
> \stoptext
>
> In more recent versions, the above produces an error:
>
> ! Extra }, or forgotten \endgroup
> l.3 \quotation{A}
>
> Is this a bug?
>

Please, could anybody confirm or disapprove this behavior.

Regards,
Christoph
___
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] ntg-context Digest, Vol 151, Issue 18

2017-01-18 Thread Hans Hagen

On 1/18/2017 1:58 PM, Christoph Reller wrote:

On Tue, 17 Jan 2017 20:31:20 +0100, Hans Hagen  wrote:


On 1/17/2017 8:13 PM, Henri Menke wrote:

Bump

On 01/09/2017 01:49 PM, Henri Menke wrote:

Dear list,

I cannot seem to find the documentation for the parameters which you can set in 
the first line of the document.  From an example I found that you can select 
the engine this way.

% engine=luajittex
\starttext
Hello World!
\stoptext

What other parameters can I set this way and what is the syntax to set multiple 
parameters?

Cheers,
Henri


engine
synctex
jiton
jithash
directives
trackers
experiments
epub
ctx|ctxfile
interface

plus for scite

language



From what I know there is also:

macros

E.g.

% macros=mkvi


indeed but that one is handled internally (in context)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 151, Issue 18

2017-01-18 Thread Christoph Reller
On Tue, 17 Jan 2017 20:31:20 +0100, Hans Hagen  wrote:
>
> On 1/17/2017 8:13 PM, Henri Menke wrote:
>> Bump
>>
>> On 01/09/2017 01:49 PM, Henri Menke wrote:
>>> Dear list,
>>>
>>> I cannot seem to find the documentation for the parameters which you can 
>>> set in the first line of the document.  From an example I found that you 
>>> can select the engine this way.
>>>
>>> % engine=luajittex
>>> \starttext
>>> Hello World!
>>> \stoptext
>>>
>>> What other parameters can I set this way and what is the syntax to set 
>>> multiple parameters?
>>>
>>> Cheers,
>>> Henri
>
> engine
> synctex
> jiton
> jithash
> directives
> trackers
> experiments
> epub
> ctx|ctxfile
> interface
>
> plus for scite
>
> language
>

From what I know there is also:

macros

E.g.

% macros=mkvi

Cheers,

Christoph
___
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] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Alan Braslau
No, this is a feature, not a bug!

According to the original graph macros, the data files are kept open, and thus 
subsequent reads will pick up successive data sets in a single file. This is 
explicitly stated in the documentation.

A consequence for us in ConTeXt mkiv, where the metapost code is called in 
multiple passes, is that one must explicitly close the data file if one does 
not want this feature. This, too, I documented. So don't break John Hobby's 
code by removing the saved.

Alan



> On Sep 1, 2016, at 04:28, Hans Hagen  wrote:
> 
> On 9/1/2016 11:43 AM, Taco Hoekwater wrote:
>> Hi,
>> 
>> I am on El Capitan as well (10.11.6).
>> 
>> ConTeXt  ver: 2016.08.29 22:53 MKIV beta
>> 
>> Attached is an altered input file that works for me. No idea how much of the 
>> problem
>> is actually related to El Capitan, but:
>> 
>> * \usemodule[graph] defines a special MP instance called ‘graph’. You need to
>>  use that because otherwise the metapost graph macros will not load (that is 
>> why
>>  I added the “graph::” prefix twice)
>> 
>> * Something is wrong with the file closing, so I added an extra definition 
>> for
>>  'graph_close_file' (no idea why it does not work out of the box. Sorry to 
>> you and Hans).
> 
> there are save's in mp-grap ... i'll remove them

___
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] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Hans Hagen

On 9/1/2016 11:43 AM, Taco Hoekwater wrote:

Hi,

I am on El Capitan as well (10.11.6).

ConTeXt  ver: 2016.08.29 22:53 MKIV beta

Attached is an altered input file that works for me. No idea how much of the 
problem
is actually related to El Capitan, but:

* \usemodule[graph] defines a special MP instance called ‘graph’. You need to
  use that because otherwise the metapost graph macros will not load (that is 
why
  I added the “graph::” prefix twice)

* Something is wrong with the file closing, so I added an extra definition for
  'graph_close_file' (no idea why it does not work out of the box. Sorry to you 
and Hans).


there are save's in mp-grap ... i'll remove them


Best wishes,
Taco







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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Louis-solal Giboin
Dear Taco,
I thank you very much for your time.
It works perfectly and I will emulate these modifications in my other
figures. I have no ideas about the problem, I just figured out that it came
from El Capitan because I updated the OS yesterday, however I also had to
reinstall MacTex, so it may also come from a different version of ConText?

Dear Hans,
I would like to thank you for all your work on Metafun, as it is the tool I
use now exclusively for all my scientific figures.

Best regards,
Louis-Solal

2016-09-01 11:43 GMT+02:00 Taco Hoekwater :

> Hi,
>
> I am on El Capitan as well (10.11.6).
>
> ConTeXt  ver: 2016.08.29 22:53 MKIV beta
>
> Attached is an altered input file that works for me. No idea how much of
> the problem
> is actually related to El Capitan, but:
>
> * \usemodule[graph] defines a special MP instance called ‘graph’. You need
> to
>   use that because otherwise the metapost graph macros will not load (that
> is why
>   I added the “graph::” prefix twice)
>
> * Something is wrong with the file closing, so I added an extra definition
> for
>   'graph_close_file' (no idea why it does not work out of the box. Sorry
> to you and Hans).
>
> Best wishes,
> Taco
>
>
>
>
> 
> ___
> 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] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Taco Hoekwater
Hi,

I am on El Capitan as well (10.11.6).

ConTeXt  ver: 2016.08.29 22:53 MKIV beta

Attached is an altered input file that works for me. No idea how much of the 
problem
is actually related to El Capitan, but:

* \usemodule[graph] defines a special MP instance called ‘graph’. You need to 
  use that because otherwise the metapost graph macros will not load (that is 
why
  I added the “graph::” prefix twice)

* Something is wrong with the file closing, so I added an extra definition for 
  'graph_close_file' (no idea why it does not work out of the box. Sorry to you 
and Hans).

Best wishes,
Taco


MEPresults.tex
Description: Binary data


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Hans Hagen

On 9/1/2016 10:11 AM, Louis-solal Giboin wrote:

Dear all,
I have updated my OS to El Capitan, and all my scripts including MPgraph
functions such as gdata do not work anymore (script without such
functions are working without any trouble).
Would someone know how to get rid of this issue?
I thank you very much.

a short code sample:

x:=u*1cm;

a1:=6;

a2:=5;

hauteury:=a1*y;

echelleMEP:=1/10*hauteury/a2;


gdata("explexpl.d",s,

y1:= scantokens(s1);

y2:= scantokens(s2);

draw (7.5*x, y1*echelleMEP)--(8.5*x, y2*echelleMEP) withcolor 0.6 white;

);


incomplete ... how is this called ... what is explexl.d



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Louis-solal Giboin
Dear all,
I have updated my OS to El Capitan, and all my scripts including MPgraph
functions such as gdata do not work anymore (script without such functions
are working without any trouble).
Would someone know how to get rid of this issue?
I thank you very much.

a short code sample:

x:=u*1cm;

a1:=6;

a2:=5;

hauteury:=a1*y;

echelleMEP:=1/10*hauteury/a2;


gdata("explexpl.d",s,

y1:= scantokens(s1);

y2:= scantokens(s2);

draw (7.5*x, y1*echelleMEP)--(8.5*x, y2*echelleMEP) withcolor 0.6 white;

);



Cheers!

Louis-Solal
___
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] ntg-context Digest, Vol 145, Issue 61

2016-07-21 Thread Hans Hagen

On 7/21/2016 8:01 PM, Robert Blackstone wrote:


On 21 Jul 2016, at 19:21 , : Hans Hagen  wrote>


On 7/21/2016 3:53 PM, Robert Blackstone wrote:

One my project files, that In previous versions of the standalone mkiv compiled 
without any problems, doesn't compile in the standalone I installed recently 
(version 2016.07.18 16;26).
It gives me an error warning hat I don’t understand:
+
tex error   > tex error on line 191 in file TD-Ch0-R1-index-UTF8-4CUP.tex: 
! Missing number, treated as zero

..
l.191 \stopintro
+

The processed file starts with:
++
\definehead [intro] [chapter]
\setuphead  [intro] [number=no,alternative=middle,style=\tfa \bf]

\startcomponent TD_Ch0-Intro.tex
\intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}]


shouldn't that be \startintro then?


Yes.
Problem solved. Thank you.
(It has been nice that the previous versions have been very forgiving for a 
fool like me.)


being a bit more strict was a wish ... also has to do with slightly more 
robust nesting features


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 145, Issue 61

2016-07-21 Thread Robert Blackstone

On 21 Jul 2016, at 19:21 , : Hans Hagen  wrote>
> 
> On 7/21/2016 3:53 PM, Robert Blackstone wrote:
>> One my project files, that In previous versions of the standalone mkiv 
>> compiled without any problems, doesn't compile in the standalone I installed 
>> recently (version 2016.07.18 16;26).
>> It gives me an error warning hat I don’t understand:
>> +
>> tex error   > tex error on line 191 in file 
>> TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero
>> 
>> ..
>> l.191 \stopintro
>> +
>> 
>> The processed file starts with:
>> ++
>> \definehead [intro] [chapter]
>> \setuphead  [intro] [number=no,alternative=middle,style=\tfa \bf]
>> 
>> \startcomponent TD_Ch0-Intro.tex
>> \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}]
> 
> shouldn't that be \startintro then?

Yes. 
Problem solved. Thank you.
(It has been nice that the previous versions have been very forgiving for a 
fool like me.)

Best regards,
Robert

___
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] ntg-context Digest, Vol 144, Issue 56

2016-07-01 Thread Robert Blackstone

On 30 Jun 2016, at 22:58 ,  Aditya Mahajan  wrote: 

> On Thu, 30 Jun 2016, Robert Blackstone wrote:
> 
>> Dear all,
>> 
>> Inserting LilyPond scores or snippets into a ConTeXt file gives very nice 
>> results, better than inserting LilyPond pdf's as floats.
>> So far however, using floats has the advantage that they can be given a 
>> caption, that ConTeXt gives them a number, that one gets a list of floats in 
>> the ToC, that they can be indexed etc. etc., things that, as far as I can 
>> see, are missing when entering LilyPond code directly into the TeX-file and 
>> use the filter.
>> 
>> Does any of you know how this handicap can be overcome? Or else, would it be 
>> possible either to add these facilities to the filter or create some other 
>> means for providing the LilyPond examples with a caption and a number?
> 
> Filters should work inside floats.
> 
> Can you post a minimal example showing what you are doing?
> 
> Aditya

Thanks Aditya, for this information.
 
I will try to find a working solution with a float. If I cannot solve my 
problem I will post a minimal example, although I think that to show what I 
would like to do but cannot do I will need a fairly large example. 
Do I understand correctly that you also have LilyPond.app installed?

Best regards,
Robert

 

___
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] [NTG-ConTeXt] Wrong order of sections and subsections

2016-06-18 Thread Marcus Vinicius Mesquita
Dear List

In the wiki, http://wiki.contextgarden.net/Titles, there is a MWE of how to
flush section head data without typesetting it in the text. But then
\placelist gives a wrong order of sections and subsections:

1   First section
1.1   First subsection
2   Second section
1.2   Second subsection
2.1   First subsection

If \setuptexttexts is omitted and the argument placehead=yes instead of
placehead=hidden, then the order is correct:

1   First section
1.1   First subsection
1.2   Second subsection
2   Second section
2.1   First subsection


Am I missing something?


Marcus Vinicius

__-

MWE from the wiki

\setuphead
   [section]
   [placehead=hidden,
page=yes]

\setuphead
   [subsection]
   [placehead=yes,
page=yes,
continue=yes,
style=\it]

\setuptexttexts[{\placerawheaddata[section]}]

\starttext

\placelist[section,subsection] \page

\startsection[title=First section]

   \startsubsection[title=First subsection]
  Lorem ipsum \dots
   \stopsubsection

   \startsubsection[title=second subsection]
  Lorem ipsum \dots
   \stopsubsection

\stopsection

\startsection[title=Second section]

   \startsubsection[title=First subsection]
  Lorem ipsum \dots
   \stopsubsection

\stopsection

\stoptext


Marcus Vinicius



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] ntg-context Digest, Vol 144, Issue 16

2016-06-16 Thread Christoph Reller
On Thu, 9 Jun 2016 10:43:50, Christoph Reller
 wrote:
> ...
>
> Hence, the check mark cannot be copy pasted from the PDF.
>
> I fear this may be a bug. Or am I missing something? Any feedback is
> welcome.

Thank you very much for having fixed this issue, Hans!

Cheers, Christoph
___
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] ntg-context Digest, Vol 142, Issue 52

2016-04-19 Thread Brian Ballsun-Stanton
I'm dealing with a 500 page book (if you give me your github username, I'll
happily add you to the repo) and many of these problems emerge only at
scale. (when I render individual chapters, there are no issues, but when
rendering the whole book, the tables just have all sorts of formatting
issues.)

Here's a working example

% engine=luajittex
\startenvironment env_trap
\enableregime[utf-8]
\setupcolors[state=start]
\setupreferencing[autofile=yes]
\setupinteraction[state=start, color=blue, contrastcolor=blue, style={\tf}]
\usemodule[simplefonts]

\usemodule[database]
% Enable hyperlinks

\setuppapersize [A4][A4]
\definepapersize[standing][A4][A4]
\definepapersize[lying][A4,landscape][A4]
\setuplayout[width=middle,  backspace=.75in, cutspace=.75in,
 height=middle, topspace=.5in, bottomspace=.5in]

\setupbodyfont[11pt]

\setupwhitespace[none]

\setupcaption[table][location=top]
\setupcaptions[style={\tfx}, width=.9\textwidth,align=middle]

   \unprotect
   \appendtoks
 \setupbackgrounds[\v!page][\c!background=\makeupparameter\c!background]
   \to \t_page_makeup_every_setup
   \protect


\defineseparatedlist[CSV]
  [separator={,},
   quotechar={"},
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE]


\setupTABLE[c][each][align=flushleft,style={\tfx},width=fit]
\setupTABLE[r][1][background=color,backgroundcolor=gray,style={\tf}]
\setupTABLE[align=middle]
\setuppagenumbering[alternative=doublesided]

\stopenvironment

\starttext

\placetable[here][tab01]{Kazanlak site numbers, aggregate area and average
area
through through time}{
\setupTABLE[c][each][align=middle,style={\tfx},alignmentcharacter={.},aligncharacter=yes]
\chardef\characteralignmentmode=2
\startCSV
Period,NL,Chl,EBA,LBA,EIA,LIA,RM,LA,BYZ,MA,OTT
Aggregate Area (ha),1.5,2.9,5.0,6.7,21.5,43.3,54.9,31.2,24.4,30.7,94.9
Site Count,3,6,10,7,23,38,23,19,15,21,15
Avg Area (ha),0.5,0.5,0.5,1.0,0.9,1.1,2.4,1.6,1.6,1.5,6.3
\stopCSV
}

\stoptext

And I wasn't able to cause it to fail via a trivial 'making it a component'
and calling it from a project.



> --
>
> Message: 5
> Date: Mon, 18 Apr 2016 22:11:28 +0200
> From: Hans Hagen 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Table index is nil
> Message-ID: <57153f70.6050...@wxs.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 4/18/2016 3:59 AM, Brian Ballsun-Stanton wrote:
> > I'm getting (suddenly) an error:
> > ...ext/tex/texmf-context/tex/context/base/mkiv/font-hsh.lua:124: table
> > index is nil
> >
> >
> > And I have a bunch of tables:
> >
> >
> > \placetable[here][tab01]{Kazanlak site numbers, aggregate area and
> > average area
> > through through time}{
> >
> \setupTABLE[c][each][align=middle,style={\tfx},alignmentcharacter={.},aligncharacter=yes]
> > \chardef\characteralignmentmode=2
> > \startCSV
> > Period,NL,Chl,EBA,LBA,EIA,LIA,RM,LA,BYZ,MA,OTT
> > Aggregate Area (ha),1.5,2.9,5.0,6.7,21.5,43.3,54.9,31.2,24.4,30.7,94.9
> > Site Count,3,6,10,7,23,38,23,19,15,21,15
> > Avg Area (ha),0.5,0.5,0.5,1.0,0.9,1.1,2.4,1.6,1.6,1.5,6.3
> > \stopCSV
> > }
> >
> > The odd thing is that no other chapters of the book (all of which use
> > the same environment, and many use the same table)
> >
> > When I comment out the series of tables, the errors go away.
> > I've just rerun first-setup.sh just out of paranoia. mtx-context |
> > current version: 2016.04.17 11:56
>
> i really need a small *working* example for this
>
>
>
___
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] ntg-context Digest, Vol 140, Issue 59

2016-02-24 Thread Aidan Nichol
Thanks for the reply. \thispage is producing no output in all the places it is 
being invoked

Aidan 

> On 24 Feb 2016, at 15:35, ntg-context-requ...@ntg.nl wrote:
> 
> startsetups[referenceformat:thispage]
> \doifelse{\filterreference{page}}{\rawcountervalue[userpage]}
> {{\tttf !?}}
> {\filterreference{page}}
> \stopsetups
> 
> \definereferenceformat[thispage][setups=referenceformat:thispage]
> 
> \starttext
> 
> \chapter[one]{First chapter}
> 
> First: \thispage[one]
> 
> Second: \thispage[two]
> 
> \chapter[two]{Second chapter}
> 
> First: \thispage[one]
> 
> Second: \thispage[two]

___
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] ntg-context Digest, Vol 139, Issue 61

2016-01-24 Thread Jeong Dal
Dear Fabrice,

I run the same file again and I think that main things in my log file is not 
different from yours.

Do you use Adobe Reader to view the pdf files?
The pdf viewer of TeXShop and that of TeXworks can not show the animation.

If you have the trouble even if you use the adobe reader, I don’t know the 
solution.

I hope that animation feature works in your computer.

Best regards,

Dalyoung

> 2016. 1. 24., 오후 8:40, ntg-context-requ...@ntg.nl 작성:
> 
> Date: Sun, 24 Jan 2016 12:39:56 +0100
> From: Fabrice Couvreur  >
> To: mailing list for ConTeXt users  >
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID:
>    >
> Content-Type: text/plain; charset="utf-8"
> 
> Hello everyone,
> I tested the code and it does not work: I get one page with buttons for
> animation is not working.
> thank you,
> Fabrice

___
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] ntg-context Digest, Vol 136, Issue 30

2015-10-19 Thread massifr
Here's the (complete) code:

\startbuffer[test]

  Dear list,
  this paragraph should not be indented, because it 
follows the “incipit”
  of the letter.
  This one and the following ones should be indented.
  You may question whether “Dear list,” should be a paragraph of his own,
  but my text is already formatted like that and I can’t do anything 
  about it.

\stopbuffer

\startxmlsetups xml:somesetups
  \xmlsetsetup{#1}{text}{xml:text}
  \xmlsetsetup{#1}{p}{xml:p}
  \xmlsetsetup{#1}{p[@class='incipit']}{xml:p:noindent}
  % the following lpath expression does not work
  % \xmlsetsetup{#1}{p[reverse-sibling::p[1]/attribute('class') == 
'incipit']}{xml:p:noindent}
\stopxmlsetups

\xmlregistersetup{xml:somesetups}

\startxmlsetups xml:text
  \indenting[{yes,first,12pt}]
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
  \doif{\xmlattribute{#1}{reverse-sibling::p[1]}{class}}{incipit}{\noindent}
  \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:p:noindent
  \noindent\xmlflush{#1}\par
\stopxmlsetups

\starttext
  \xmlprocessbuffer{main}{test}{}
\stoptext

It's the example of the original message of this thread, with the 
modifications posted in the second message.

In the \startxmlsetups section I tried to put that condition in a
\xmlsetsetup, but I commented it out because it did not work.

Here's where I found an example with reverse-sibling:
https://www.mail-archive.com/ntg-context%40ntg.nl/msg77364.html
I was searching for "sibling" in the mailing list archive to see whether
"sibling expressions" had been implemented.

Greetings,
Massi

> On 10/17/2015 11:19 AM, mf wrote:
> > "reverse-sibling" is ConTeXt specific and very useful: it's a "reversed
> > preceding-sibling", so that you find the nearest sibling at index [1].
> > I've used it successfully in a \doif statement, but I failed in
> > translating it in a \xmlsetsetup statement, to tell ConTeXt: "this
> > setup is for an element p whose nearest preceding sibling p has class
> > 'incipit'".
> 
> In that case, why don't you show the code where you've used it 
> successfully and maybe we can take it from there.
> 
> Thomas
> 
___
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] ntg-context Digest, Vol 124, Issue 35

2014-10-17 Thread Stuart Hungerford
On Thu, Oct 16, 2014 at 10:35 PM,  ntg-context-requ...@ntg.nl wrote:

 \framed
[offset=overlay,width=4cm,height=4cm]
{\externalfigure[t:/sources/cow.pdf][factor=max]}

 \framed
[offset=overlay,width=4cm,height=6cm]
{\externalfigure[t:/sources/cow.pdf][factor=max]}

 \framed
[offset=overlay,width=6cm,height=4cm]
{\externalfigure[t:/sources/cow.pdf][factor=max]}

 \stoptext


 This works well, but what I'd like to do is choose a fixed size frame
 for each PDF and have ConTeXt fill the frame in the same way as these
 CSS commands:

 object-fit  : cover;
 object-position : top left;
 overflow: hidden;

[Forgot to add: this is with the ConTeXt bundled in Tex Live 2014]

Many thanks -- although I don't see the effect I'm trying to get. In
the code below the cow picture should fill the three frames at three
different scales with no white bars between the frame and the
externalfigure frame:

\setupexternalfigures[location={default}]

\starttext

\framed
   [offset=overlay,width=10cm,height=2cm]
   {\externalfigure[cow][frame=on,factor=max]}

\framed
   [offset=overlay,width=4cm,height=8cm]
   {\externalfigure[cow][frame=on,factor=max]}

\framed
   [offset=overlay,width=6cm,height=6cm]
   {\externalfigure[cow][frame=on,factor=max]}

\stoptext

Stu
___
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] ntg-context Digest, Vol 115, Issue 19

2014-01-10 Thread Jean-Guillaume
 Date: Thu, 9 Jan 2014 14:24:35 +0100
 From: Wolfgang Schuster schuster.wolfg...@gmail.com
 Subject: Re: [NTG-context] setuphead for in-paragraph head ?
 Message-ID: 76850319-0120-41e9-8a4e-46fe9a9cb...@gmail.com


 But this:

 \definehead
  [Exercise] [subsection]
  [after=]
 \starttext
  \startExercise [title=This is the exercise's title]
The exercise's content.
  \stopExercise
 \stoptext

 I would like it to be:

 1 This is the exercise's title The exercise's content.

 (When I can typeset that, I will see about formatting the number and so on.)

 \definehead
   [Exercise]
   [subsection]
   [alternative=text,
distance=0.5em,
insidesection=\ignorespaces]

This is just what I was looking for. Thanks you all for your replies.
I will also check the other ones, with the questions/hints/answers
system.
Jean-Guillaume
___
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] ntg-context Digest, Vol 113, Issue 2

2013-11-02 Thread Hans Hagen

On 11/1/2013 4:01 PM, Jeong Dal wrote:

Dear Hans,




After updating to the current version (mtx-context | current version: 
2013.11.01 12:20), I run ConTeXt again.
But I still don't have the color output.


make sure you have input in triplets (no precomposed characters)



What do you mean input in triplets (no precomposed characters)?


indeed


We type the first consonant, second vowel, and third consonant in order, then 
computer show one character for these input.


right, and the font has the logic to to show it as composed (so, the 
editor must not replace the three by one)



- make sure you have the right fonts
- check if there is an hanbatanglvt.lfg file (loaded)



Yes, there is an hanbatanglvt.lfg file.
ConTeXt/tex/texmf-context/tex/context/fonts/hanbatanglvt.lfg
But the installed font's name is HANBatang-LVT.ttf.
So I changed the font name in your file from hanbatanglvt to HANBatang-LVT, also I 
copied the above lfg file as HANBatang-LVT.lfg in the same folder.


context normalizes font names ... so you can leave the name as it is 
(works here)


get other users results when they test this?


Is it OK to use another Korean font?


best discuss that with Chof cum suis as fonts need to have the right logic

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 113, Issue 2

2013-11-02 Thread Hans Hagen

On 11/1/2013 4:16 PM, Wolfgang Schuster wrote:


Am 01.11.2013 um 16:01 schrieb Jeong Dal hak...@mac.com:


Yes, there is an hanbatanglvt.lfg file.
ConTeXt/tex/texmf-context/tex/context/fonts/hanbatanglvt.lfg
But the installed font's name is HANBatang-LVT.ttf.
So I changed the font name in your file from hanbatanglvt to HANBatang-LVT, also I 
copied the above lfg file as HANBatang-LVT.lfg in the same folder.


This change isn’t necessary, context refers from the normalized font name 
(lowercase and without hyphens etc.) to the real font with a table entry in the 
font database.


Is it OK to use another Korean font?


This shouldn’t be a problem, Hans needed for his example only a font which is 
available for all system.


as long as the font has the right features ...

ljmo=yes
tjmo=yes
vjmo=yes

these are official features but not supported by all renderers (or can't 
be set), the ms programs handle calt by default for the korean script, 
so that's why


calt=yes

also is provided


Attached is also Hans original example, this should allow you to test the 
feature.

Wolfgang



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 113, Issue 2

2013-11-01 Thread Jeong Dal
Dear Hans,

 
 After updating to the current version (mtx-context | current version: 
 2013.11.01 12:20), I run ConTeXt again.
 But I still don't have the color output.
 
 make sure you have input in triplets (no precomposed characters)
 

What do you mean input in triplets (no precomposed characters)?
We type the first consonant, second vowel, and third consonant in order, then 
computer show one character for these input. 

 - make sure you have the right fonts
 - check if there is an hanbatanglvt.lfg file (loaded)
 

Yes, there is an hanbatanglvt.lfg file.
ConTeXt/tex/texmf-context/tex/context/fonts/hanbatanglvt.lfg
But the installed font's name is HANBatang-LVT.ttf. 
So I changed the font name in your file from hanbatanglvt to HANBatang-LVT, 
also I copied the above lfg file as HANBatang-LVT.lfg in the same folder. 
Is it OK to use another Korean font?

Thank you.

Best regards,

Dalyoung

___
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] ntg-context Digest, Vol 113, Issue 2

2013-11-01 Thread Wolfgang Schuster

Am 01.11.2013 um 16:01 schrieb Jeong Dal hak...@mac.com:

 Yes, there is an hanbatanglvt.lfg file.
   ConTeXt/tex/texmf-context/tex/context/fonts/hanbatanglvt.lfg
 But the installed font's name is HANBatang-LVT.ttf. 
 So I changed the font name in your file from hanbatanglvt to 
 HANBatang-LVT, also I copied the above lfg file as HANBatang-LVT.lfg in 
 the same folder. 

This change isn’t necessary, context refers from the normalized font name 
(lowercase and without hyphens etc.) to the real font with a table entry in the 
font database.

 Is it OK to use another Korean font?

This shouldn’t be a problem, Hans needed for his example only a font which is 
available for all system.

Attached is also Hans original example, this should allow you to test the 
feature.

Wolfgang


koreandemo.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] NTG-context] How to hack the lua files

2013-06-18 Thread Lance Larsen
I haven't been using the project structure. From your question, I am
inferring that this might help. At present I have treated the files as two
separate documents. I didn't take too much time looking at how to set up the
project structure because it wasn't clear that I needed it. But I can see
how this might impact cross references between documents.

-Lance


On 6/17/2013 3:25 PM, Lance Larsen wrote:
 Hans,

 Thankyou for your suggestion of using the \usereferences tag to reference
 formulas in another document. This is a good solution. However the example
 below doesn't give usable results because the references to the external
 formula output by test2.tex does not include the chapter number:
Do you use the project structure? components and such?

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-

___
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] NTG-context] How to hack the lua files

2013-06-17 Thread Lance Larsen
Hans,

Thankyou for your suggestion of using the \usereferences tag to reference
formulas in another document. This is a good solution. However the example
below doesn't give usable results because the references to the external
formula output by test2.tex does not include the chapter number:

test1.tex:
-
\starttext
\chapter{Chapter 1}
\placeformula[one] \startformula x = y \stopformula
\placeformula[two] \startformula y = z \stopformula
\chapter{Chapter 2}
\placeformula[three] \startformula z = x \stopformula
\stoptext


test2.tex:
--
\usereferences[test1.tex]
\starttext
\in{formula}[test1.tex::one]
\in{formula}[test1.tex::two]
\in{formula}[test1.tex::three]
\stoptext

In the output of test1.tex, the formulas are labeled (1.1), (1.2), and
(2.1). In the output of test2.tex the references are labeled 'formula 1',
'formula 2', and 'formula 1' (i.e. the section number is not included).

Using the \usereferences tag works if I label formulas 'bytext' rather than
by 'bysection' and turn off chapter prefixes in test1.tex using the
following at the start of the document:

\setupformulae[way=bytext,prefixsegments=None]

I would really prefer to maintain numbering by section, but to do this, I
need test2.tex to show external references in the same way as test1.tex (by
including the section number in front of the equation number). Is there a
way to do this at present? If not, labeling formulas 'bytext' will work for
now even if it isn't ideal.

-Lance Larsen


On 6/7/2013 4:01 PM, Lance Larsen wrote:
 luigi,

 When I started exploring how to map equation references (eq:name) to
 equation numbers (4.2), I noticed that the 'tuc' file included the
equation
 reference (eq:name), but I was not able to identify anywhere where it
 indicates the actual equation label specified in the document. Below is an
 example of the tuc output. 'eq:DVOL_RVI_17' is equation (4.28) in the
 document:

 {
[metadata]=142,
[numberdata]=237,
[prefixdata]=11,
[references]={
 [block]=bodypart,
 [internal]=122,
 [realpage]=47,
 [reference]=eq:DVOL_RVI_17,
 [section]=79,
},
   }

 There is nowhere in the tuc file that contains 4 and 28 near each other. I
 checked this for other equations as well and concluded that the tuc file
 does not contain the actual equation numbers that are used.

because there are indirect references to for instance 'numberdata' where 
this info sits

 If I am missing something or you have any other suggestions that might
help
 me to extract this info, I would sure appreciate the help.

see previous mail

btw, if you just want to use references in another tex doc, this will do 
the trick:

\usereferences[somedoc]

\starttext

 \in{formula}[somedoc::a]

 \in{formula}[somedoc::b]

\stoptext



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-


___
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] NTG-context] How to hack the lua files

2013-06-17 Thread Hans Hagen

On 6/17/2013 3:25 PM, Lance Larsen wrote:

Hans,

Thankyou for your suggestion of using the \usereferences tag to reference
formulas in another document. This is a good solution. However the example
below doesn't give usable results because the references to the external
formula output by test2.tex does not include the chapter number:

Do you use the project structure? components and such?

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 108, Issue 22

2013-06-07 Thread Lance Larsen
Hans,

Referencing equations from another context document is what I am trying to
do. It think the \usereferences tag that you noted in the ideal solution for
my case. Thanks again for the help.

-Lance

-
On 6/7/2013 4:01 PM, Lance Larsen wrote:
 luigi,

 When I started exploring how to map equation references (eq:name) to
 equation numbers (4.2), I noticed that the 'tuc' file included the
equation
 reference (eq:name), but I was not able to identify anywhere where it
 indicates the actual equation label specified in the document. Below is an
 example of the tuc output. 'eq:DVOL_RVI_17' is equation (4.28) in the
 document:

 {
[metadata]=142,
[numberdata]=237,
[prefixdata]=11,
[references]={
 [block]=bodypart,
 [internal]=122,
 [realpage]=47,
 [reference]=eq:DVOL_RVI_17,
 [section]=79,
},
   }

 There is nowhere in the tuc file that contains 4 and 28 near each other. I
 checked this for other equations as well and concluded that the tuc file
 does not contain the actual equation numbers that are used.

because there are indirect references to for instance 'numberdata' where 
this info sits

 If I am missing something or you have any other suggestions that might
help
 me to extract this info, I would sure appreciate the help.

see previous mail

btw, if you just want to use references in another tex doc, this will do 
the trick:

\usereferences[somedoc]

\starttext
 \in{formula}[somedoc::a]
 \in{formula}[somedoc::b]
\stoptext

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-

___
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] ntg-context Digest, Vol 103, Issue 95

2013-01-31 Thread H. Özoguz

Hi Wolfgang, thank you.

Am 31.01.2013 17:48, schrieb ntg-context-requ...@ntg.nl:

\setupbackgrounds[page][frame=on,frameoffset=10mm]

\setuppapersize[A4][A3]

\setuplayout[location=middle]

\starttext
\input knuth
\stoptext
This does not work in my setting. I integrated you code in my setting, 
as follows, but this does not work, what did I forget?


\definepapersize[sheet][width=162mm,height=225mm]

\setuppapersize[sheet]

\setupbackgrounds[page][frame=on,frameoffset=10mm]

\setuplayout[location=middle,

topspace=17.4mm,

header=1.1cm,

footer=1.4cm,

bottomspace=26mm,

width=middle,

cutspace=20mm,

backspace=22.2mm,

height=fit,

grid=yes,

% setups= mypenalties

]

\starttext

\input knuth

\stoptext


Did you read my answer for your question in the other thread?


Of course I did, but I unterstood, that your code adds only 1.5cm, maybe 
it was easy to change and I oversaw that?

For record: It was

\setuppapersize[MyBook][oversized]

I need variable oversizing (and mostly 3mm for printing and cutting)

Best regards,
Huseyin
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 95

2013-01-31 Thread Wolfgang Schuster

Am 31.01.2013 um 19:40 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi Wolfgang, thank you.
 
 Am 31.01.2013 17:48, schrieb ntg-context-requ...@ntg.nl:
 \setupbackgrounds[page][frame=on,frameoffset=10mm]
 
 \setuppapersize[A4][A3]
 
 \setuplayout[location=middle]
 
 \starttext
 \input knuth
 \stoptext
 This does not work in my setting. I integrated you code in my setting, as 
 follows, but this does not work, what did I forget?

In your example the paper has the same size as the page but you try draw a 
frame which is larger than the page. The question is where you expect the frame 
to appear.

 Did you read my answer for your question in the other thread?
 
 Of course I did, but I unterstood, that your code adds only 1.5cm, maybe it 
 was easy to change and I oversaw that?
 For record: It was
 
 \setuppapersize[MyBook][oversized]
 
 I need variable oversizing (and mostly 3mm for printing and cutting)


\definepapersize[sheet]   [width=162mm,height=225mm]
\definepapersize[bigsheet][width=\dimexpr\paperwidth+6mm\relax,height=\dimexpr\paperheight+6mm\relax]

\setuppapersize[sheet][bigsheet]

\setupbackgrounds[page][frame=on,frameoffset=0mm]

\setuplayout
  [location=middle,
   topspace=17.4mm,
   header=1.1cm,
   footer=1.4cm,
   bottomspace=26mm,
   width=middle,
   cutspace=20mm,
   backspace=22.2mm,
   height=fit,
   grid=yes,
  %setups=mypenalties,
   ]

\starttext
\input knuth
\stoptext

BTW: Can you do something about the bad formatting of the examples from your 
mail client which adds a lot of empty lines.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 49

2013-01-17 Thread H. Özoguz

Am 17.01.2013 13:13, schrieb ntg-context-requ...@ntg.nl:

There is no error message when I run this example.

Sorry, that was  my mistake, I meant this one:

++
\usemodule[annotation]


\define[2]\AnnotationCommand

{\startblockquote

\noindent #2%

\stopblockquote}


\defineannotation[bigquote]


\setupannotation[bigquote]

[alternative=command,

command=\AnnotationCommand]


\starttext


He said:

\startbigquote

This is interesting!

\stopbigquote


\stoptext

+++
With no line between He said and \startbigquote, that was the issue I 
meant with the second code. If I add one lineskip in the code, then the 
error disappears. But I want no skip in the compiled file.



The error is:


! LuaTeX error [string \directlua ]:1: invalid escape sequence near '\p'.


system  tex  error on line 20 in file minexample.tex: LuaTeX error ...


10 \setupannotation[bigquote]

11 [alternative=command,

12 command=\AnnotationCommand]

13

14 \starttext

15

16 He said:

17 \startbigquote

18 This is interesting!

19 \stopbigquote

20 

21 \stoptext

22



\ctxcommand #1-\directlua {commands.#1}

to be read again

\par

l.20

?

++


@Marco: To remove the empty line with

\define[2]\AnnotationCommand{%%
  \startblockquote

does not resolve this.

And again: No change from me in this code, first error yesterday. Maybe I 
changed another thing, what could that be?
Thanks for help.


Huseyin





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 49

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 15:16 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 17.01.2013 13:13, schrieb ntg-context-requ...@ntg.nl:
 There is no error message when I run this example.
 Sorry, that was  my mistake, I meant this one:
 
 ++
 \usemodule[annotation]
 
 \define[2]\AnnotationCommand
 {\startblockquote
 \noindent #2%
 \stopblockquote}
 
 \defineannotation[bigquote]
 
 \setupannotation[bigquote]
 [alternative=command,
 command=\AnnotationCommand]

Change this setup to:

\setupannotation
  [bigquote]
  [alternative=command,
   display=yes,
   command=\AnnotationCommand]

I’ll take a look where the error comes from.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 43

2013-01-15 Thread H. Özoguz

Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:

\setuphed[section][after={\blank[NUMBER*line]}]

or

\setuphead[section][after={\blank[nowhite]}]

Wolfgang

Hi Wolfgang,

that does not work here.

My minexample is:

\setuplayout[grid=yes]

\showgrid

\setuphead[section][after={\blank[1*line]}]

\starttext

Bli bla blu. Trallalalala.

\section{First section}

\subsection{First subsection}

Blublablubtrallalala.

\stoptext


Between First section and First subsection you see 4 lines. But it 
should be only one line according to your suggestion. Is that a bug, a 
version issue, or did I something wrong?



Regards
Huseyin


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 43

2013-01-15 Thread Wolfgang Schuster

Am 15.01.2013 um 15:54 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:
 \setuphed[section][after={\blank[NUMBER*line]}]
 
 or
 
 \setuphead[section][after={\blank[nowhite]}]
 
 Wolfgang
 Hi Wolfgang,
 
 that does not work here.
 
 My minexample is:
 
 \setuplayout[grid=yes]
 
 \showgrid
 
 \setuphead[section][after={\blank[1*line]}]
 
 \starttext
 
 Bli bla blu. Trallalalala.
 
 \section{First section}
 
 \subsection{First subsection}
 
 Blublablubtrallalala.
 
 \stoptext
 
 Between First section and First subsection you see 4 lines. But it should 
 be only one line according to your suggestion. Is that a bug, a version 
 issue, or did I something wrong?


Dunno, looks like a unwanted side effect of grid mode.

\setuplayout[grid=yes]

\showgrid

\setuphead[section,subsection][grid=no,before=,after=]

\starttext

Before

\section{Section}

\subsection{Subsection}

After

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 43

2013-01-15 Thread Bill Meahan

On 01/15/2013 11:07 AM, Wolfgang Schuster wrote:

Am 15.01.2013 um 15:54 schrieb H. Özoguz h.oezo...@mmnetz.de:


Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:

\setuphed[section][after={\blank[NUMBER*line]}]

or

\setuphead[section][after={\blank[nowhite]}]

Wolfgang

Hi Wolfgang,

that does not work here.

My minexample is:

\setuplayout[grid=yes]

\showgrid

\setuphead[section][after={\blank[1*line]}]

\starttext

Bli bla blu. Trallalalala.

\section{First section}

\subsection{First subsection}

Blublablubtrallalala.

\stoptext

Between First section and First subsection you see 4 lines. But it should 
be only one line according to your suggestion. Is that a bug, a version issue, or did I something 
wrong?


Dunno, looks like a unwanted side effect of grid mode.




FYI:

I have had similar problems with the grid. I set a portion of my book in 
a different typeface to simulate a hand-written letter. With the grid 
on, the lines in the alternate typeface are spaced quite widely (double 
space?). It seems to be related to the size or x-height of the 
alternate font. If different than the size of the body font, things go 
awry. If I use something like italics instead of a different typeface, 
though, no problems are seen.


--
Bill Meahan
Westland, Michigan USA

___
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] ntg-context Digest, Vol 103, Issue 37

2013-01-14 Thread Malte Stien
Thank you, Sietse,

That works a treat. And thank you for your idea of looking at the source code. 
I should do that more often to ease myself into understanding TeX a bit better. 
At the moment I still look at myself as a user.

Regards,
Malte.


On 14/01/2013, at 7:00 PM, ntg-context-requ...@ntg.nl wrote:

 Date: Sun, 13 Jan 2013 22:44:59 +0100
 From: Sietse Brouwer sbbrou...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Controlling Appearance of \inoutermargin
 Message-ID:
   CAF=dkzyWB-aVxCKb_+Fo+_Jn+Hhdw9HBRvj7XOhGghwg=t4...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8
 
 Hi Malte,
 
 This mail contains (1) an answer to your question; (2) a minimal
 working example; (3) an explanation of how I found this out (I had
 never heard of inoutermargin before).
 
 (1) An answer to your question.
 
 I grepped the ConTeXt source code for `inoutermargin`, and found out
 it is an instance of the `margindata` class. This is its setup
 command:
 
\setupmargindata[inoutermargin][style=bold,color=red]
 
 (2) A minimal working example. It is nice to include an MWE when you
 ask a question -- it makes things easier for people who want to try to
 answer the question, because they don't have to think up their own
 example. Anyway, I'm including this one for the benefit of people who
 stumble across this e-mail from the future, and want to play with
 \inoutermargin. :-)
 
 \setuppapersize[A8,landscape] % w x h is about 7.5x5
 \setuplayout[
backspace=1cm,
width=3cm,
%
leftmargin=0.5cm,
leftmargindistance=2mm,
%
rightmargin=2cm,
rightmargindistance=2mm]
 
 
 \setuppagenumbering[alternative=doublesided]
 \showframe
 
 \startbuffer
asdf asdf asdf
\inoutermargin{bsdf}
\page[yes]
 \stopbuffer
 
 \setupmargindata
[inoutermargin]
[style=bold,color=red]
 
 \starttext
\getbuffer
\getbuffer
\getbuffer
 \stoptext
 
 (3) How I found the answer
 
 Whenever I want to learn about a command I don't know yet, I grep for
 it in the source code. (I ignore bits like 'setup' or 'start'.) I've
 even got a shell command for it, to make searching the source as easy
 as possible:
 
 function grepcon {
cd /opt/context/tex/texmf-context/tex/context/base/
grep -R $* *
 }
 
 `grepcon inoutermargin` gave me two hits in mkii files, and one in
 typo-mar.mkiv:
 \definemargindata[inoutermargin][\v!outer][...various style
 setups...]. That set me on the right track. If you frequently need to
 work out how commands work, I cannot recommend enough that you make
 your own source-searching function and use it enough. For me, at
 least, it's enormously helpful.
 
 Cheers,
 Sietse

___
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] ntg-context Digest, Vol 101, Issue 51

2012-11-18 Thread H. Özoguz

Am 18.11.2012 14:45, schrieb ntg-context-requ...@ntg.nl:

You process your document with MkIV (texexec filename or context --pdftex 
filename) but your document requires MkIV (context filename) because you use the 
command \definehightlight which is only available with MkIV.

Wolfgang

Thanks.

The wiki says to write in the parameters of texworks

texexec
 --lua
 $fullname


So this is for MkIV. How to change it? Just changing into

context
$fullname

and the peogramm texexec.exe into context.exe results in the following error:


This is LuaTeX, Version beta-0.70.2-201214 (TeX Live 2012/W32TeX)

\write18 enabled.

(C:/Users/Hussein/context/tex/texmf-context/scripts/context/stubs/unix/context


ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2012.11.18 int: english/english


system  cont-new.mkiv loaded

(C:/Users/Hussein/context/tex/texmf-context/tex/context/base/cont-new.mkiv

system  beware: some patches loaded from cont-new.mkiv

)

system  context.top loaded

(context.top)

fonts  latin modern fonts are not preloaded

languages  language en is active

! You can't use `macro parameter character #' in vertical mode.


system  tex  error on line 1 in file 
C:/Users/Hussein/context/tex/texmf-context/scripts/context/stubs/unix/context: 
You can't use ` ...



1  #!/bin/sh

2 mtxrun --script context $@

3


l.1 #

!/bin/sh

?

Der Prozess wurde vom Benutzer abgebrochen


Danke dir!


Huseyin


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 101, Issue 42

2012-11-16 Thread H. Özoguz

Am 15.11.2012 20:32, schrieb ntg-context-requ...@ntg.nl:

2012-11-15 H. ?zoguz:


\setuptolerance[stretch]

Are you sure, you want to use stretch? It will probably product
ugly results.


\tolerance 70

Why 70? I don't understand the use of stretch with such a strict
tolerance. What about using

   \setuptolerance [tolerant] %% or verytolerant

instead of using stretch?


Is it suitable to use tolerance and stretch in this way together?

It will probably work (though I never used it myself), but using the
ConTeXt interface \setuptolerance is the better approach.


Of course I want a nice type area - but for me that means that I definitely
don't want a word written in the margin!

Use a higher tolerance, not a lower one.


(That happens with the default \tolerance 250 (without using stretch).

What version are you using? A current ConTeXt has the \tolerance set to 200.

\starttext\the\tolerance\stoptext



Correct, my version has tolerance=200 as default, too. But in the manuel 
I read 250, so it was my mistake.


My question is: I want to be absolutely sure, that no word is written in 
the margin with my settings. And if I use only


\setuptolerance [tolerant]

it might still happen. The reason for the smal tolerance was, that I want very 
small tolerance (= nice result ?) in most cases, but if a word is written in 
the margin, then it should stretch (word in the margin = worst case for me)


___
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] [NTG-Context] MetaPost capacity exceeded.

2012-11-15 Thread Alan BRASLAU

! MetaPost capacity exceeded, sorry [expansion depth=1].

I have come across this error previously
with run-away \dorecurse loops

I now have this message with a document that makes VERY heavy
use of MetaPost; I just have too many figures.

Is there some way to flush the running instance of MetaPost,
that is to force MPlib to respawn or something like that?
(Of course, I would then have to be careful not to rely on the
reuse of any previous MP instances...)

Alan 
___
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] [NTG-Context] MetaPost capacity exceeded.

2012-11-15 Thread Hans Hagen

On 11/15/2012 12:27 PM, Alan BRASLAU wrote:


! MetaPost capacity exceeded, sorry [expansion depth=1].


this normally points to an error in mp code, not to instances


I have come across this error previously
with run-away \dorecurse loops

I now have this message with a document that makes VERY heavy
use of MetaPost; I just have too many figures.

Is there some way to flush the running instance of MetaPost,
that is to force MPlib to respawn or something like that?
(Of course, I would then have to be careful not to rely on the
reuse of any previous MP instances...)


yes:

\starttext

\defineMPinstance
  [myfun-a]
  [format=metafun]

\defineMPinstance
  [myfun-b]
  [format=metafun]

\startMPdefinitions{myfun-a}
color MyColor ; MyColor := (1,0,0) ;
\stopMPdefinitions

\startMPdefinitions{myfun-b}
color MyColor ; MyColor := (0,1,0) ;
\stopMPdefinitions

\startuseMPgraphic{myfun-a::test-1}
fill fullcircle scaled 1cm withcolor MyColor  ;
\stopuseMPgraphic

\startuseMPgraphic{myfun-a::test-2}
fill fullcircle scaled 1cm withcolor MyColor ;
\stopuseMPgraphic

\startuseMPgraphic{myfun-b::test-1}
fill fullcircle scaled 1cm withcolor MyColor  ;
\stopuseMPgraphic

\startuseMPgraphic{myfun-b::test-2}
fill fullcircle scaled 1cm withcolor MyColor ;
\stopuseMPgraphic

\useMPgraphic{myfun-a::test-1}
\useMPgraphic{myfun-b::test-1}
\useMPgraphic{myfun-a::test-2}
\useMPgraphic{myfun-b::test-2}

\stoptext

however, during some cleanup stage something got lost ... so you need to 
fix this:


\unprotect

\def\meta_use_graphic#1#2%
  {\meta_begin_graphic_group{#1}%
   \doifsomething{#2}{\setupMPvariables[\currentMPgraphicname][#2]}%
   \getvalue{\??mpgraphic#1}%
   \meta_end_graphic_group}

\protect

there are few more places where

   \getvalue{\??mpgraphic ...

needs a #1 (I'll fix it).

So indeed you can have multiple independent instances. For instance we 
could have one for the chemical stuff which then cannot be messed up by 
other instances.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 101, Issue 31

2012-11-15 Thread Wolfgang Schuster

Am 13.11.2012 um 07:50 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 13.11.2012 07:46, schrieb ntg-context-requ...@ntg.nl:
 \definehighlight
   [emph]
   [style=bolditalic]
 
 Quote: \quotation{He said: \quote{Hello \emph{World!}}}
 
 
 Marco
 
 I want the complete quotation emphasized- without extra writing \emph.

Take a look at the attachment for a example which use the latest version of the 
annotation module (a module to create customized commands/environments).

Wolfgang



annotation-30.pdf
Description: Adobe PDF document


annotation-30.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31

2012-11-13 Thread Marco Patzer
2012-11-13 H. Özoguz:

Advice for your next posts: Try to provide a meaningful subject line
like “Enclosing quotations in guillemets” or “Emphasising
quotations”. And configure your mail reader to include a
“In-Reply-To” header to not break the thread with each post.

 I want the complete quotation emphasized- without extra writing \emph.

  \setuplanguage
[leftquotation=»,
 rightquotation=«]

  \define[1]\quotation
{\italic{\symbol[leftquotation]#1\symbol[rightquotation]}}

  \starttext
\quotation{Whatever}
  \stoptext


Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31

2012-11-13 Thread Aditya Mahajan
On Nov 13, 2012, at 5:29 AM, Marco Patzer home...@lavabit.com wrote:

 2012-11-13 H. Özoguz:
 
 Advice for your next posts: Try to provide a meaningful subject line
 like “Enclosing quotations in guillemets” or “Emphasising
 quotations”. And configure your mail reader to include a
 “In-Reply-To” header to not break the thread with each post.
 
 I want the complete quotation emphasized- without extra writing \emph.
 
  \setuplanguage
[leftquotation=»,
 rightquotation=«]
 
  \define[1]\quotation
{\italic{\symbol[leftquotation]#1\symbol[rightquotation]}}
 
  \starttext
\quotation{Whatever}
  \stoptext

Hans, how about adding color and style keys to quotation?

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31

2012-11-13 Thread Wolfgang Schuster

Am 13.11.2012 um 14:47 schrieb Aditya Mahajan adit...@cim.mcgill.ca:

 On Nov 13, 2012, at 5:29 AM, Marco Patzer home...@lavabit.com wrote:
 
 2012-11-13 H. Özoguz:
 
 Advice for your next posts: Try to provide a meaningful subject line
 like “Enclosing quotations in guillemets” or “Emphasising
 quotations”. And configure your mail reader to include a
 “In-Reply-To” header to not break the thread with each post.
 
 I want the complete quotation emphasized- without extra writing \emph.
 
 \setuplanguage
   [leftquotation=»,
rightquotation=«]
 
 \define[1]\quotation
   {\italic{\symbol[leftquotation]#1\symbol[rightquotation]}}
 
 \starttext
   \quotation{Whatever}
 \stoptext
 
 Hans, how about adding color and style keys to quotation?


The command uses style and color settings but not in combination with the 
left/right symbols.

\setupdelimitedtext
  [quotation]
  [left=«,
   right=»,
   style=italic,
   color=red]

\starttext

\setupdelimitedtext[quotation][method=font]

\tracingmacros1
before \quotation{between} after
\tracingmacros0

\setupdelimitedtext[quotation][method=,location=margin] % default settings

before \quotation{between} after

\setupdelimitedtext[quotation][method=,location=paragraph]

before \quotation{between} after

\setupdelimitedtext[quotation][method=,location=text]

before \quotation{between} after

\setupdelimitedtext[quotation][style=normal] % same as above with the exception 
“style=normal”

before \quotation{between} after

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 101, Issue 30

2012-11-12 Thread H. Özoguz

Am 12.11.2012 15:58, schrieb ntg-context-requ...@ntg.nl:

2012-11-12 H. ?zoguz:


but it returns the ending quotation mark in the wrong order. Why?

You forgot the braces:

Quote: \wr[{He said: \wrr[Hello!]}]


And  how to correct that?

\setuplanguage
   [leftquotation=?,
rightquotation=?,
leftquote=?,
rightquote=?]

\starttext
   Quote: \quotation{He said: \quote{Hello!}}
\stoptext


Marco


Thanks! And if I want to have in

 \quotation and \quote

additionaly \emphasis, how to make that?

To be clear (sorry for my english):
\quotation{\emph{Quote}}


Huseyin



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 101, Issue 30

2012-11-12 Thread Marco Patzer
2012-11-12 H. Özoguz:

 And if I want to have in
 
   \quotation and \quote
 
 additionaly \emphasis, how to make that?
 
 To be clear (sorry for my english):
 \quotation{\emph{Quote}}

\definehighlight
  [emph]
  [style=bolditalic]

Quote: \quotation{He said: \quote{Hello \emph{World!}}}


Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31

2012-11-12 Thread H. Özoguz

Am 13.11.2012 07:46, schrieb ntg-context-requ...@ntg.nl:

\definehighlight
   [emph]
   [style=bolditalic]

Quote: \quotation{He said: \quote{Hello \emph{World!}}}


Marco


I want the complete quotation emphasized- without extra writing \emph.

Huseyin
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 101, Issue 27

2012-11-11 Thread H. Özoguz

Danke dir Wolfgang!

Gruß
Huseyin

Hi there,

is there some equivalent to clubpenalty and windowpenalty? (Respecting grid=yes)

\startsetups [grid] [mypenalties]

 \setdefaultpenalties

 \setpenalties\widowpenalties{3}{1} % 3 == number of lines, 1 == 
penalty between these 3 lines
 \setpenalties\clubpenalties {3}{1}

\stopsetups

\setuplayout
   [grid=yes,
setups= mypenalties]

\starttext
?
\stoptext

Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63

2012-10-23 Thread Shane Peelar
Hi Wolfgang,

Thanks for the quick and helpful reply.  Is there also a way to change just
the number colour and style in the example you provided?

-Shane Peelar

On Tue, Oct 23, 2012 at 12:21 PM, ntg-context-requ...@ntg.nl wrote:

 Send ntg-context mailing list submissions to
 ntg-context@ntg.nl

 To subscribe or unsubscribe via the World Wide Web, visit
 http://www.ntg.nl/mailman/listinfo/ntg-context
 or, via email, send a message with subject or body 'help' to
 ntg-context-requ...@ntg.nl

 You can reach the person managing the list at
 ntg-context-ow...@ntg.nl

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of ntg-context digest...


 Today's Topics:

1. Re: Lua in Ctx: require() fails? (Hans Hagen)
2. Re: using two columns on a poster (\setlayerframed) (Hans Hagen)
3. Re: Lua in Ctx: require() fails?
   (Proch?zka Luk?? Ing. - Pontex s. r. o.)
4. Re: TABLE: header with a thick bottom line (Rogers, Michael K)
5. Re: Lua in Ctx: require() fails? (Hans Hagen)
6. Some odd behaviour I noticed in MkIV with respect to
   enumerations (Shane Peelar)
7. Re: Some odd behaviour I noticed in MkIV with respect to
   enumerations (Wolfgang Schuster)


 --

 Message: 1
 Date: Tue, 23 Oct 2012 16:53:01 +0200
 From: Hans Hagen pra...@wxs.nl
 To: Proch?zka Luk?? Ing. - Pontex s. r. o. l...@pontex.cz
 Cc: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Lua in Ctx: require() fails?
 Message-ID: 5086af4d.4000...@wxs.nl
 Content-Type: text/plain; charset=ISO-8859-2; format=flowed

 On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:

  resolverslibraries  ! checking for Test.lua using lua path
  d:/Lukas/Lua/?.lua
  
 
  in the output log but d:\Lukas\Lua\Test.lua is not found here (?!).
 
  So - ?

 no clue ... maybe an error in test.lua

 
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -


 --

 Message: 2
 Date: Tue, 23 Oct 2012 16:54:13 +0200
 From: Hans Hagen pra...@wxs.nl
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Cc: Mojca Miklavec mojca.miklavec.li...@gmail.com
 Subject: Re: [NTG-context] using two columns on a poster
 (\setlayerframed)
 Message-ID: 5086af95.2080...@wxs.nl
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 On 23-10-2012 16:21, Mojca Miklavec wrote:
  On Tue, Oct 23, 2012 at 4:05 PM, Aditya Mahajan wrote:
  Perhaps, \startsimplecolumns
 
  Ouch. It seems like I'm asking the same question over and over again,
  and always get the same answer - to simplify things ;) This works in
  MKIV, but I have some problems with math in MKIV. In MKII this fails
  with
 
  ! Incomplete \iffalse; all text was ignored after line 49.
  inserted text
   \fi
  * poster.tex
 
  ?

 so how does your code look

 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -


 --

 Message: 3
 Date: Tue, 23 Oct 2012 16:58:57 +0200
 From: Proch?zka Luk?? Ing. - Pontex s. r. o.  l...@pontex.cz
 To: Hans Hagen pra...@wxs.nl, ConTeXt ntg-context@ntg.nl
 Subject: Re: [NTG-context] Lua in Ctx: require() fails?
 Message-ID: op.wmmzwjd6tpjj8f@lpr
 Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes

 On Tue, 23 Oct 2012 16:53:01 +0200, Hans Hagen pra...@wxs.nl wrote:

  On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
 
  resolverslibraries  ! checking for Test.lua using lua path
  d:/Lukas/Lua/?.lua
  
 
  in the output log but d:\Lukas\Lua\Test.lua is not found here (?!).
 
  So - ?
 
  no clue ... maybe an error in test.lua

 ... Have you seen the content of Test.lua? It just prints some text...

 When I downgraded Ctx to the previous installed version, it works...

 Lukas


 --
 Ing. Luk?? Proch?zka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezov? 1658
 147 14 Praha 4

 Tel: +420 244 062 238
 Fax: +420 244 461 038



 --

 Message: 4
 Date: Tue, 23 Oct 2012 15:13:10 +
 From: Rogers, Michael K mrog...@emory.edu
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: 

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 65

2012-10-23 Thread Shane Peelar
 Date: Tue, 23 Oct 2012 20:31:01 +0200
 From: Wolfgang Schuster wolfgang.schus...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Some odd behaviour I noticed in MkIV with
 respect to enumerations
 Message-ID: 8f139542-5a13-4fdd-b916-c4ed1065b...@gmail.com
 Content-Type: text/plain; charset=windows-1252


 Am 23.10.2012 um 19:36 schrieb Shane Peelar lookatyouhac...@gmail.com:

  Hi Wolfgang,
 
  Thanks for the quick and helpful reply.  Is there also a way to change
 just the number colour and style in the example you provided?

 \defineseparatorset [testseparator] [][?]

 \defineprocessor[teststyle][style=bolditalic]
 \defineconversionset[testconversion][][teststyle-number]

 %\defineprocessor[one][style=italic,color=red]
 %\defineprocessor[two][style=normal,color=blue]

 %\defineconversionset[testconversion][one-number,two-number][teststyle-number]

 \defineenumeration
   [test]
   [text=Test,
headstyle=bold,
numberconversionset=testconversion,
numberseparatorset=testseparator]

 \starttext

 \placelist[test]

 \starttest[title={Knuth}]
 \input knuth
 \stoptest

 \startsubtest[title={Zapf}]
 \input zapf
 \stopsubtest

 \stoptext

 Wolfgang


Thanks!  This worked out perfectly.
___
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] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread pol stra

Troy Henderson said:

I tested this on a black-on-transparent EPS that was created via MetaPost, and 
it seems to work fine.  If you are not using Linux (or Unix or Mac OS X), let 
me know and I can probably put together a quick HTML page to do this on my 
server.
Thanks for the invitation. Fortunatly I’m using GNU/Linux.


 cat foo.eps | sed -e s/0 0 0 setrgbcolor/1 1 1 setrgbcolor/g  bar.eps

It simply translates the (0,0,0) triplet (which is black) to the (1,1,1) 
triplet (which is white).  This is very simplistic and may not do all that you 
want.

Unfortunatly there is no such a sequence in my file:

grep setrgbcolor a1.EPS 
/setcmykcolor{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 
roll}repeat setrgbcolor pop}wd
/sw/setlinewidth ld/scap/setlinecap ld/sj/setlinejoin ld/sm/setmiterlimit 
ld/sd/setdash ld/rgb/setrgbcolor ld/crgb/currentrgbcolor ld/cmyk/setcmykcolor 
ld/gs/gsave ld/gr/grestore ld

But thank you for gave a try.
  ___
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] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread Troy Henderson

 Unfortunatly there is no such a sequence in my file:

 grep setrgbcolor a1.EPS
 /setcmykcolor{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1
 roll}repeat setrgbcolor pop}wd
 /sw/setlinewidth ld/scap/setlinecap ld/sj/setlinejoin ld/sm/setmiterlimit
 ld/sd/setdash ld/rgb/setrgbcolor ld/crgb/currentrgbcolor
 ld/cmyk/setcmykcolor ld/gs/gsave ld/gr/grestore ld

 But thank you for gave a try.


I doubted that it would work, but thought that I would try just the same.
It may still be able to be done by converting it to SVG, editing
(automagically), and then converting back.  If you are able, upload the EPS
to

http://www.tlhiv.org/upload/

and I will place around with it.

Troy
___
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] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread Troy Henderson
I put together this little utility for converting a color EPS/PDF/SVG to
grayscale.

http://www.tlhiv.org/grayscale/

Selecting invert swaps colors from white to black and black to white.
So, using a black/white graphic on a transparent background should
transform it to a white/black graphic on a transparent background.

Testing is certainly necessary.

Troy
___
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] ntg-context Digest, Vol 93, Issue 55

2012-03-16 Thread Malte Stien
Wolfgang,

 Use ?align={flushleft,nothyphenated}?.


You mean as in 

  \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align={flushleft, 
nothyphenated}]

I tried that and it has no effect. I also found this article here:

  
http://tex.stackexchange.com/questions/35686/avoid-hyphenation-in-chapter-title

...which suggests using

  \setuphead[chapter][align={flushleft, nothyphenated, verytolerant}]

...but that makes no difference either. My chapter titles continue to run off 
the page to the right. I am happy to post an example somewhere if that helps.

Thank you,
Malte.


On 17/03/2012, at 3:01, ntg-context-requ...@ntg.nl wrote:

 Send ntg-context mailing list submissions to
   ntg-context@ntg.nl
 
 To subscribe or unsubscribe via the World Wide Web, visit
   http://www.ntg.nl/mailman/listinfo/ntg-context
 or, via email, send a message with subject or body 'help' to
   ntg-context-requ...@ntg.nl
 
 You can reach the person managing the list at
   ntg-context-ow...@ntg.nl
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of ntg-context digest...
 
 
 Today's Topics:
 
   1. Line Wrapping/Hyphenation in Chapter/Section Headings
  (Malte Stien)
   2. Re: Line Wrapping/Hyphenation in Chapter/Section Headings
  (Wolfgang Schuster)
   3. Integration of all the information around ConTeXt (Jan Heinen)
   4.  more indenting (Alan Braslau)
   5. Footnotes in combinations don't work?
  (Proch?zka Luk?? Ing. - Pontex s. r. o.)
   6. Re: more indenting (luigi scarso)
 
 
 --
 
 Message: 1
 Date: Fri, 16 Mar 2012 22:09:54 +1100
 From: Malte Stien ma...@stien.de
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section
   Headings
 Message-ID: 7ba77c0a-9c03-4fa2-8680-c996621cc...@stien.de
 Content-Type: text/plain; charset=us-ascii
 
 Hi all,
 
 I seem to have a problem with line wrapping/hyphenation in chapter/section 
 headings. I have a chapter heading Technical Definitions, Acronyms and 
 Abbreviations. When I setup my chapter headings as follows
 
 \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin]
 
 the heading is hyphenated like so:
 
 Technical Definitions, Acronyms and Abbrevi-
 ations
 
 However, I don't want my headings hyphenated. How can I change that? I found 
 this:
 
 \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, 
 align=nothyphenated]
 
 That prevents the hyphenation, but it also seems to prevent the wrapping of 
 the line altogether with the result that now my headings run right across the 
 right margin and over the right edge of the paper. How can I turn off 
 hyphenation but retain wrapping of the line, like so
 
 Technical Definitions, Acronyms and
 Abbreviations
 
 Thank you,
 Malte.
 
 --
 
 Message: 2
 Date: Fri, 16 Mar 2012 12:31:52 +0100
 From: Wolfgang Schuster schuster.wolfg...@googlemail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Line Wrapping/Hyphenation in
   Chapter/Section Headings
 Message-ID: 0efcb96a-2ed4-4cd8-9960-3754f2d10...@googlemail.com
 Content-Type: text/plain; charset=windows-1252
 
 
 Am 16.03.2012 um 12:09 schrieb Malte Stien:
 
 Hi all,
 
 I seem to have a problem with line wrapping/hyphenation in chapter/section 
 headings. I have a chapter heading Technical Definitions, Acronyms and 
 Abbreviations. When I setup my chapter headings as follows
 
 \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin]
 
 the heading is hyphenated like so:
 
 Technical Definitions, Acronyms and Abbrevi-
 ations
 
 However, I don't want my headings hyphenated. How can I change that? I found 
 this:
 
 \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, 
 align=nothyphenated]
 
 That prevents the hyphenation, but it also seems to prevent the wrapping of 
 the line altogether with the result that now my headings run right across 
 the right margin and over the right edge of the paper. How can I turn off 
 hyphenation but retain wrapping of the line, like so
 
 Use ?align={flushleft,nothyphenated}?.
 
 Wolfgang
 
 --
 
 Message: 3
 Date: Fri, 16 Mar 2012 13:24:23 +0100
 From: Jan Heinen jahei...@gmx.de
 To: ntg-context@ntg.nl
 Subject: [NTG-context] Integration of all the information around
   ConTeXt
 Message-ID: 4f6330f7.3030...@gmx.de
 Content-Type: text/plain; charset=UTF-8; format=flowed
 
 Hello,
 
 with the help of ConTeXt and the ConTeXt-Mailinglist I 
 successfully have generated a book which will be printed 
 next week :-)
 Thankl you - everyone!
 
 And now I would like to give something back to ConTeXt :-)
 
 There is a lot of information around ConTeXt: Material of 
 Hans Hagen, this very dynamic Mailinglist/Forum, the 
 command-reference-list of Wolfgang Schuster  and the 
 Contextgarden-Wiki.
 
 I think the best what I 

Re: [NTG-context] ntg-context Digest, Vol 93, Issue 36

2012-03-10 Thread S Barmeier
 I use a Korean unfont as main fonts and an English fonts as fallback font 
 using the following type script file which is made by the help of Hans and 
 D.H. Kim.
 You may set fonts similarly.
 
 Korean fonts contained Chinese glyph(not all of them) and Japanese glyph, we 
 don't have any problem to use them.
 
 I hope that it may help you to find a solution of your problem.
 
 Best regards,
 
 Dalyoung

Thank you. I tried to adapt this (see below), but I'm not sure how to
invoke this typescript. There are \usetypescript \setupbodyfont and
\setmainfont from the simplefonts module, none of which seem to do what
I want... Could you enlighten me?

Many thanks,
Severin

\definefontfeature[jpdefault][mode=node,script=hang,lang=jap]
\def\mydefaultfeatures{kern=yes;liga=yes;tlig=yes;trep=yes}
\def\mysmallcapsfeatures{\mydefaultfeatures;smcp=yes}
% Font fallbacks for Latin alphabet
\definefontfallback[serifwhatever][gentium:\mydefaultfeatures][0x-0x0400][force=yes]
\definefontfallback[serifboldwhatever][gentiumbasicbold:\mydefaultfeatures][0x-0x0400][force=yes]
\definefontfallback[serifitalicwhatever][gentiumitalic:\mydefaultfeatures][0x-0x0400][force=yes]
\definefontfallback[serifbolditalicwhatever][gentiumbasicbolditalic:\mydefaultfeatures][0x-0x0400][force=yes]
\definefontfallback[serifboldslantedwhatever][gentiumbasicbold:\myslantfeatures][0x-0x0400][force=yes]
\definefontfallback[serifcapswhatever][gentium:\mysmallcapsfeatures][0x-0x0400][force=yes]
\definefontfallback[sanswhatever][andikabasic:\mydefaultfeatures][0x-0x0400][force=yes]
% IPA Fonts
\starttypescript[serif][IPAexMincho]
\definefontsynonym[ipaexmincho][ipaexm.ttf][features=jpdefault,fallbacks=serifwhatever]
\stoptypescript
\starttypescript[serif][IPAexMincho][name]
\definefontsynonym[Serif][ipaexmincho]
\stoptypescript
\starttypescript[sans][IPAexGothic]
\definefontsynonym[ipaexgothic][ipaexg.ttf][features=jpdefault,fallbacks=sanswhatever]
\stoptypescript
\starttypescript[sans][IPAexGothic][name]
\definefontsynonym[Sans][ipaexgothic]
\stoptypescript
\starttypescript[mono][KanjiStrokeOrders]
\definefontsynonym[kanjistrokeorders][KanjiStrokeOrders_v2.015.ttf][features=jpdefault,fallbacks=monowhatever]
\stoptypescript
\starttypescript[mono][KanjiStrokeOrders][name]
\definefontsynonym[Mono][kanjistrokeorders]
\stoptypescript
\starttypescript[MyIPAex]
\definetypeface[Myface][rm][serif][IPAexMincho]
\definetypeface[Myface][ss][sans] [IPAexGothic]
\definetypeface[Myface][tt][mono] [KanjiStrokeOrders]
\stoptypescript
___
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] ntg-context Digest, Vol 91, Issue 66

2012-01-16 Thread Felix Ingram
 By default the counter is reset with each new chapter, since you have chapters
 in your first example the counter is incremented but in your second example
 \startchapter sets the counter back to zero.

 To have a counter which isn?t reset you need ?way=bytext and to remove
 the chapter number from the \getnumber result you have to add ?prefix=no?.

 The full \definenumber declaration is then 
 \definenumber[examplecounter][way=bytext,prefix=no]

Thanks Wolfgang. I've updated the wiki page with this explanation.

Felix
___
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] ntg-context Digest, Vol 90, Issue 67

2011-12-22 Thread Philip Brown
Thank you, Luigi. I see that Context runs from the command line. The problem is 
that it does not run from emacs context-mode. How can I fix this?


On Wed, Dec 14, 2011 at 7:09 PM, Philip Brown bro...@tamug.edu wrote:
 I downloaded texlive on Windows from the the July 2011 Tex Collection dvd.



 Latex works fine, but I get the following error message when I try to run
 Context:



 ConTeXt: problems after [0] pages



 Is there some sort of postcompilation I need to do to get Context running?



 Regards,



 Philip Brown
Save this line
\starttext\input knuth\stoptext
into test.tex

and then check mkiv with
$ context test.tex

and mkii with
$ mtxrun texexec test.tex



--
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 90, Issue 67

2011-12-22 Thread luigi scarso
On Thu, Dec 22, 2011 at 3:09 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Thu, Dec 22, 2011 at 2:57 PM, Philip Brown bro...@tamug.edu wrote:
 Thank you, Luigi. I see that Context runs from the command line. The problem 
 is that it does not run from emacs context-mode. How can I fix this?
 Uh, is there a context-mode for emacs ?
Ah ok, auctex.
You are under windows, right ?
Maybe open a cmd.exe, set the env. vars.
with setuptex.bat
and then run emacs, always fro the same shell.
Anyway, I think that context support in auctex  is a bit outdated.


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [ntg-context] beta

2011-12-03 Thread Robin.Kirkham
On 3 December 2011 Hans Hagen wrote:

 - concerning unicode celsuis and fahrenheit symbols: lm has only one of
 them hence the inconsistent rendering. I now check for both being
 present and fallback in case one of them is missing.

I thought it might be a font thing

 - dB (A) : I've added that feature () sounds ok to me.

Great!

 - Are succesive per's always to be collapsed? 10 a/b/c or 10 a/bc?

Well, I was thinking about that last night. Technically, yes: one is only 
supposed
to have one per or / in a unit, and any subsequent ones have no effect.

But actually I now think that if an author wants that, there may be reasons, so 
let's leave it as it is. Then you can actually write

\starttext
It is correct that 
\unit{1 metre per second per second} is
\unit{1 metre per second second} and is also
\unit{1 metre per square second}.
\stoptext

 - I'll see what I can do with multiple units.

Thanks. Not an urgent one for me.

I'm thinking about the numeric formatting capability now ... I will write 
something
and send to the list for comment. 

Robin
___
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] [ntg-context] beta

2011-12-03 Thread Hans Hagen

On 3-12-2011 11:13, robin.kirk...@csiro.au wrote:


- I'll see what I can do with multiple units.


Thanks. Not an urgent one for me.


That should work in the copy I sent you (at least minutes and seconds do).

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] [ntg-context] beta

2011-12-02 Thread Robin.Kirkham
On Friday, 2 December 2011, Ian Lawrence wrote:

 New units are a great improvement. Thanks.
 Ian
 On 29 Nov 2011, at 17:57, Hans Hagen wrote:
 
 Hi,

 I uploaded a new beta. The usual fixes (as reported to/suggested on this 
 list) and an updated unit mechanism. I'll also upload the new (but yet 
 incomplete) units manual.

 http://www.pragma-ade.com/general/manuals/units-mkiv.pdf

 Hans

Thanks from me too. Yes, I think we are pretty close with this. A few problems 
(and possible enhancements) are detailed in the attached (source and pdf). 
(Hans: this supersedes the one I sent you privately).

Robin


units5.tex
Description: units5.tex


units5.pdf
Description: units5.pdf
___
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] [ntg-context] beta

2011-12-02 Thread Hans Hagen

On 2-12-2011 10:51, robin.kirk...@csiro.au wrote:

On Friday, 2 December 2011, Ian Lawrence wrote:


New units are a great improvement. Thanks.
Ian
On 29 Nov 2011, at 17:57, Hans Hagen wrote:


Hi,

I uploaded a new beta. The usual fixes (as reported to/suggested on this list) 
and an updated unit mechanism. I'll also upload the new (but yet incomplete) 
units manual.

http://www.pragma-ade.com/general/manuals/units-mkiv.pdf

Hans


Thanks from me too. Yes, I think we are pretty close with this. A few problems 
(and possible enhancements) are detailed in the attached (source and pdf). 
(Hans: this supersedes the one I sent you privately).


- concerning unicode celsuis and fahrenheit symbols: lm has only one of 
them hence the inconsistent rendering. I now check for both being 
present and fallback in case one of them is missing.


- dB (A) : I've added that feature () sounds ok to me.

- Are succesive per's always to be collapsed? 10 a/b/c or 10 a/bc?

- I'll see what I can do with multiple units.

Hans




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] ntg-context Digest, Vol 87, Issue 51

2011-09-23 Thread Felix Ingram
  I'm defining a new float that I'd like to caption with its own label.
  Something like:

  \definefloat[picture][pictures]
 
  I'd then like the caption to read:
 
  Picture 1 - my caption text
  Picture 2 - etc
 
  At the moment I've used \setupcaption[picture][way=bytext] to sort out
  the numbering but I cannot figure out how to do the label.

 \setupcaption[picture][way=bytext,label=Picture] does the trick

This doesn't work for me. Setupcaption doesn't appear to support a
label option (MKIV and assuming I'm looking at the correct source
file...)

Felix
___
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] ntg-context Digest, Vol 87, Issue 51

2011-09-23 Thread Wolfgang Schuster

Am 23.09.2011 um 12:45 schrieb Felix Ingram:

 I'm defining a new float that I'd like to caption with its own label.
 Something like:
 
 \definefloat[picture][pictures]
 
 I'd then like the caption to read:
 
 Picture 1 - my caption text
 Picture 2 - etc
 
 At the moment I've used \setupcaption[picture][way=bytext] to sort out
 the numbering but I cannot figure out how to do the label.
 
 \setupcaption[picture][way=bytext,label=Picture] does the trick
 
 This doesn't work for me. Setupcaption doesn't appear to support a
 label option (MKIV and assuming I'm looking at the correct source
 file…)

Use “\setuplabeltext[picture=Picture ]”.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 85, Issue 4

2011-07-01 Thread Bernd Kosubek
Am Fri, 01 Jul 2011 16:20:19 +0200
schrieb ntg-context-requ...@ntg.nl:


 Message: 7
 Date: Fri, 1 Jul 2011 16:20:13 +0200
 From: Henning Hraban Ramm hra...@fiee.net
 To: kosu...@sksatz.com, mailing list for ConTeXt users
   ntg-context@ntg.nl
 Subject: Re: [NTG-context] changing numbers of columns
 Message-ID: e2a85f0f-717b-4eac-87e3-5b35b7dc5...@fiee.net
 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
   delsp=yes
 
 Am 2011-07-01 um 15:31 schrieb Bernd Kosubek:
 
  Hi,
 
  is it possible to change the number of columns on the same page?
 
  small example:
 
  a) text text text text
 
  \startcolumnset[n=2]
 
 Please read http://wiki.contextgarden.net/Columns

Thanks for your quickly answer.

I have read it, but there is no answer of my question.
I know, that I can use columns instead of columnset.
It is not in my interest to find other solutions for this Problem,
rather I wish to know: is it possible to use different numbers of
columns on the same page if I use columnset!

 It?s either \startcolumns[n=2] or \startcolumnset[your_name_of_setup]
 
   bla bla bla
  \column
 
 \column works only within columnsets
 
   bla bla bla
  \stopcolumn
 
 \startcolumns ... \stopcolumns
 XOR
 \startcolumnset ... \stopcolumnset
 
 
  b) text text text text
 
  The mixing of a) and columnset is o.k.
 
  The mixing of columnset and b) wil produce a new page with b) on the
  second page, where b) can be normal text or another columnset.
 
 
 That doesn?t answer your question, though... I don?t know it from  
 heart and have just no time to test it myself.
 
 
 Greetlings from Lake Constance!
 Hraban


signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, Vol 84, Issue 5

2011-06-01 Thread Jeong Dalyoung
Dear Hans and Wolfgang,

Thank you for the comments and samples.

 What exactly do you plan to do with the language check, for simple texts your 
 method is overkill and labeltexts are better suited, even a command which 
 prints a text can be written in TeX without problems:
 

Yes, you are right. Those methods are  beyonds of my normal use. 
For me, either \doifelse or context.setvalue is enough to set some labels 
depending on  two languages, Korean and English. However, it is a good 
oppertunity to know various methods and lua codes.
 
I didn't know that \labeltext can do the same thing. Your sample gives me a new 
ideas to handle them.

Thank you so much.

Best regards,

Dalyoung
___
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] ntg-context Digest, Vol 83, Issue 56

2011-05-15 Thread Jeong Dalyoung
Dear Hans,

 
 There is something wrong with the fieldstack mechanism.
 
 fixed in next beta (mismatch between field.value in javascript and 
 rendering key)
 

I updated to the latest beta(5/15) and tested both the Wolfgang's sample and 
mine.
They are working well.

Thank you for quick fixing of fieldstack and also for enhancing the sorting of 
Korean words.

Best regards,

Dalyoung



___
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] ntg-context Digest, Vol 80, Issue 49

2011-02-12 Thread Jeong Dalyoung
Dear Hans,

Thank you for your concern about Korean.

Korean labels are working well, but the index tagging need a little more.

I checked index in my file and found that some words which should be in the 
same group are scattered.
Also, the order of list doesn't follow the order of korean letter.

the order should be

ㄱ, ㄴ, ㄷ, ㄹ, ㅁ, ㅂ, ㅅ, ㅇ, ㅈ, ㅊ, ㅋ, ㅌ, ㅍ, ㅎ

In english index, Capital letter and small letter are mixed.

I'll send pdf file to you.

Thanks again.

best regards,

Dalyoung
 
 
 Message: 5
 Date: Fri, 11 Feb 2011 18:27:55 +0100
 From: Hans Hagen pra...@wxs.nl
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: [NTG-context] references
 Message-ID: 4d55719b.4040...@wxs.nl
 Content-Type: text/plain; charset=UTF-8; format=flowed
 
 Hi,
 
 I uploaded a beta. New:
 
 - Improved \textxt behaviour (for Mojca's code).
 - Korean labels and index tagging (with help from Jeong Dalyoung).
 - Cleaned of referencing (formats).

___
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] ntg-context Digest, Vol 76, Issue 95

2010-10-20 Thread S Barmeier
On 10/20/2010 02:12 PM, ntg-context-requ...@ntg.nl wrote:
  Sorry to keep going on about this, but trying to load the
  project/environment with either of
  
  \project myproject
  \environment myenvironment
  
  in the component (directly after \startcomponent) gives me an error. It
  compiles fine without these commands, but then the \ruby command does
  not work. What am I doing wrong?
 Could you please provide a small example?
   
\startcomponent 02japlang
\product myproduct
\project myproject % -- if included produces error
\environment myenvir % -- if included produces error
\starttext
\chapter{chapter2}
\ruby{早}{はや}い % -- if included produces error
\stoptext
\stopcomponent

is what my component looks like.
The myenvir.tex contains the line \usemodule[ruby] (and other
fontfallbacks) which works fine in a simple file, but fails to be loaded
in the component, yet I don't seem to be able to load it by pointing to
either the project or the environment... The product and project files
are, with the exception of name changes, copied almost straight from the
documentation; all files compile fine if the three lines above are
commented out.

Thank you for your time  help =)
___
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] ntg-context Digest, Vol 76, Issue 95

2010-10-20 Thread Wolfgang Schuster

Am 20.10.2010 um 14:48 schrieb S Barmeier:

 Could you please provide a small example?
 
 \startcomponent 02japlang
 \product myproduct
 \project myproject % -- if included produces error
 \environment myenvir % -- if included produces error
 \starttext
 \chapter{chapter2}
 \ruby{早}{はや}い % -- if included produces error
 \stoptext
 \stopcomponent
 
 is what my component looks like.
 The myenvir.tex contains the line \usemodule[ruby] (and other
 fontfallbacks) which works fine in a simple file, but fails to be loaded
 in the component, yet I don't seem to be able to load it by pointing to
 either the project or the environment... The product and project files
 are, with the exception of name changes, copied almost straight from the
 documentation; all files compile fine if the three lines above are
 commented out.

Can you send the files (project, product etc.) offline because it’s not
possible to say whats wrong with this example.

The \starttext/\stoptext aren’t necessary because \startcomponent/\stopcomponent
itself acts like them and \starttext itself is just ingored.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [NTG-Context] How to compute correct page number for handout

2010-10-03 Thread Pierre-François Bonnefoi
Dear Peter,

I run into some problem with font handling in MKIV so I'm stuck in MKII for 
some time.

I've tried the following :
\starttext
\def\ChapterPrefix#1{%
\the\numexpr\number#1/4\relax
}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]
\setuplist[section][]
\completecontent
\dorecurse{3}{\chapter{test} \dorecurse{4}{test \page}}
\stoptext

In MKII, I get a Missing number error.
I've isolated the problem : the value given to the \chapterprefix by the 
pagecommand option seems to be a text value and not a numeral value.

I've tried to find a function to translate text to number but I've not find it.

I hope to get some help.

kind regards,
Pierre-François.

Le 30 sept. 2010 à 14:12, Peter Münster a écrit :

 On Thu, Sep 30 2010, Pierre-François Bonnefoi wrote:
 
 I've tried it and I'm sorry to report that this only works in MK IV, that I
 don't use (I've tried but some of my documents don't translate correctly).
 
 Hello,
 
 Your \ChapterPrefix works out of the box with mkiv. Eventually it's easier to
 solve the problems you have with mkiv, than dividing the page number by 4 in
 mkii?  I don't know...
 
 Cheers, Peter
 
 -- 
 Contact information: http://pmrb.free.fr/contact/
 
 
 ___
 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] [NTG-Context] How to compute correct page number for handout

2010-10-03 Thread Hans Hagen

On 3-10-2010 4:16, Pierre-François Bonnefoi wrote:

Dear Peter,

I run into some problem with font handling in MKIV so I'm stuck in MKII for 
some time.

I've tried the following :
\starttext
\def\ChapterPrefix#1{%
\the\numexpr\number#1/4\relax
}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]


manipulating the number that way is just a lucky guess: pagecommand (and 
numbercommand) get some text passes and it might not even be a number, 
as it all depends on conversion and special rendering


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] [NTG-Context] How to compute correct page number for handout

2010-10-03 Thread Pierre-François Bonnefoi
So, I've to forget it...
I'm a little bit disappointed that it's not possible.

But the waiting time for my students to get the lecture notes is over : I'll 
give them the handout with no page numbers.

Thank you for your support.

I hope that I could use MKIV in near future,
kind regards,
Pierre-François.

Le 3 oct. 2010 à 17:12, Hans Hagen a écrit :

 On 3-10-2010 4:16, Pierre-François Bonnefoi wrote:
 Dear Peter,
 
 I run into some problem with font handling in MKIV so I'm stuck in MKII for 
 some time.
 
 I've tried the following :
 \starttext
 \def\ChapterPrefix#1{%
 \the\numexpr\number#1/4\relax
 }
 \setupcombinedlist[content][level=1]
 \setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]
 
 manipulating the number that way is just a lucky guess: pagecommand (and 
 numbercommand) get some text passes and it might not even be a number, as it 
 all depends on conversion and special rendering
 

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
83, rue d'Isle  |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE  | The Avengers.

___
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] [NTG-Context] How to compute correct page number for handout

2010-10-03 Thread Hans Hagen

On 3-10-2010 5:25, Pierre-François Bonnefoi wrote:

So, I've to forget it...
I'm a little bit disappointed that it's not possible.

But the waiting time for my students to get the lecture notes is over : I'll 
give them the handout with no page numbers.


you can try to use \structurelistrealpagenumber which is set for each entry

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] [NTG-Context] How to compute correct page number for handout

2010-10-03 Thread Pierre-François Bonnefoi
But this function \structurelistrealpagenumber is not defined in MKII.

ok, ok I've to go to MKIV some day ;-)

Le 3 oct. 2010 à 17:34, Hans Hagen a écrit :

 On 3-10-2010 5:25, Pierre-François Bonnefoi wrote:
 So, I've to forget it...
 I'm a little bit disappointed that it's not possible.
 
 But the waiting time for my students to get the lecture notes is over : I'll 
 give them the handout with no page numbers.
 
 you can try to use \structurelistrealpagenumber which is set for each entry
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -

___
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] [NTG-Context] How to compute correct page number for handout

2010-10-03 Thread Wolfgang Schuster

Am 29.09.2010 um 13:13 schrieb Pierre-François Bonnefoi:

 Hello,
 
 I'use extensively context to write my lecture notes and for all of my 
 printing needs.
 
 For my students, I've made some lecture presentations in color, and I print 
 them in blackwhite, with four pages on one page for the handout.
 
 I would like to compute a correct Table of contents according to the handout 
 : so to divide the current page number by four to get a correct page number 
 for the handout.
 
 \def\ChapterPrefix#1{\the\numexpr#1/4 \relax}
 \setupcombinedlist[content][level=1]
 \setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]
 
 That doesn't work, and I've some difficulties to figure how computation is 
 performed in e-TeX...
 
 Could you help me to resolve this issue ?

A very dirty hack:

\setuppapersize[A6][A6]

\let\normaltranslatednumber\translatednumber

\def\translatednumber[#1]%
  {\number\numexpr(\normaltranslatednumber[#1]+1)/4\relax}
  
\starttext

\completecontent

\dorecurse{12}
  {\chapter{Chapter #1}
   \dorecurse{#1}{\input knuth\par}}

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   3   >