[NTG-context] Re: [ using horizontal table lines ]

2024-04-15 Thread Wolfgang Schuster

vm via ntg-context schrieb am 15.04.2024 um 13:15:

I'm probably using the \starttable incorrectly:

with this code I only get only *one* horizontal line in the header

[...]

with this code I get two horizontal lines, but the second is too short.

[...]

with this code I get two horizontal lines, with correct length, but 
above the wrong columns


[...]


diff:
\NC\DC\DC\DC\DL[4]\DL[4]\AR
\NC\DC\DC\DC\DL[4]\DL[3]\AR
\NC\DC\DC\DL[4]\DL[4]\AR

There is (probably) a correct way to solve this.


My suggestion is to switch to either natural table or extreme tables but 
it seems to me there is a problem with the division lines which always 
leave an empty column afterwards.


The following example should add horizontal lines above the first and 
third column but this setting results in an error. When I omit the last 
\DC the error disappears but as can be seen in the output the second 
line appears above the fourth column.


\starttext

\starttable[||]
%\DL  \DC  \DL  \DC  \DC \DR
\DL[red] \DC  \DL[red] \DC  \DR
\VL   01 \VL   02 \VL   03 \VL   04 \VL   05 \VL\SR
\stoptable

\stoptext

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-22 Thread madiazm . eoicc
Thanks again Bruce. I will play with the code a bit. 

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread Bruce Horrocks


> On 21 Feb 2024, at 08:17, madiazm.eo...@gmail.com wrote:
> 
> Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit 
> lua in summer.
> I just got an error on \qquad and found searching in internet that it was 
> because escape character conflicts between tex and lua. For the time i 
> removed it and since I will create itemizes I hope I dont get that error if I 
> use \item instead of \qquad.
> Thanks again, I spent hours of trial and error, error, error... on this 
> matter.

Yes, the \'s need to be escaped in Lua. And it's made me realise that the 
process of identifying the four lines of the question is separate from the 
typesetting of the question later. The amended version below uses your 
\tareaABC macro to format the question so you can more easily change the layout 
without having to understand ConTeXT Lua Documents in detail.

\startluacode
  userdata = userdata or {}
  
  function userdata.formatTestQuestions()
local the_buffer = buffers.getlines("TestQuestions")
local tracker = 0
local the_question = {}

-- Go through the buffer of questions one line at a time
for i = 1,#the_buffer do

  -- Skip blank lines but 'collect' non-blank lines until we have four
  -- (which is assumed to be a whole question)
  if  string.strip(the_buffer[i]) == "" then
tracker = 0
the_question = {}
  else
tracker = tracker + 1
the_question[tracker] = the_buffer[i]
  end
  
  -- If tracker has got to 4 then we've read four lines
  if tracker == 4 then
context.tareaAbc(
  the_question[1],
  the_question[2], 
  the_question[3],
  the_question[4])
  
-- Reset for the next question (in case no blank line)
tracker = 0
the_question = {}
  end
  
end
  end
\stopluacode

\def\startTestQuestions
  {\dostartbuffer[TestQuestions][startTestQuestions][stopTestQuestions]}
\def\stopTestQuestions
  {\ctxlua{userdata.formatTestQuestions()}}

\define[4]\tareaAbc{\item #1
   \startitemgroup[itemize][a]
   \item #2
   \item #3
   \item #4
   \stopitemgroup}
   
\starttext
Here are some questions:

\startTestQuestions
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.

In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
\stopTestQuestions

\stoptext

—
Bruce Horrocks
Hampshire, UK


tt2.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread madiazm . eoicc
Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit 
lua in summer.
I just got an error on \qquad and found searching in internet that it was 
because escape character conflicts between tex and lua. For the time i removed 
it and since I will create itemizes I hope I dont get that error if I use \item 
instead of \qquad.
Thanks again, I spent hours of trial and error, error, error... on this matter.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Bruce Horrocks


> On 20 Feb 2024, at 12:59, madiazm.eo...@gmail.com wrote:
> 
> no, I just want to split at the end of each sentence to get the four 
> arguments: now I pass this four lines to my macro \tareaAbc (with the dirty 
> trick of ñ)
> 
> In den Büchereien gibt es auch …ñ 
> … Kuchen.ñ   
> … Theater.ñ   
> … Workshops.ñ 
> 
> and I wish your context.foo(lines[i]) iteration would become a single 
> context.tareaAbc(the four arguments somehow separated so that I can manage 
> each line with the corresponding context formatting)
> 
> As you see my definition is: \def\tareaAbc #1ñ#2ñ#3ñ#4ñ{...context formating 
> for each #)}; Its the clue to pass each sentence as an independent argument 
> that I don't get to work.
> thanks again
> 

A variation on Hans original suggestion is to use a buffer instead of a 
separate text file, combined with Lua.

\startluacode
  userdata = userdata or {}
  
  function userdata.formatTestQuestions()
local the_buffer = buffers.getlines("TestQuestions")
local tracker = 0
local the_question = {}
local letters = {"-", "a", "b", "c"}

-- Go through the buffer of questions one line at a time
for i = 1,#the_buffer do

  -- Skip blank lines but 'collect' non-blank lines until we have four
  -- (which is assumed to be a whole question)
  if  string.strip(the_buffer[i]) == "" then
tracker = 0
the_question = {}
  else
tracker = tracker + 1
the_question[tracker] = the_buffer[i]
  end
  
  -- If tracker has got to 4 then we've read four lines
  if tracker == 4 then
context.startlines()
context("{\\bf Beispiel:} %s", the_question[1])
context(true)
for answer = 2,4 do
  context("\\qquad %s) %s", letters[answer], the_question[answer])
  context(true)
end
context.stoplines()
  
-- Reset for the next question (in case no blank line)
tracker = 0
the_question = {}
  end
  
end
  end
\stopluacode

\def\startTestQuestions
  {\dostartbuffer[TestQuestions][startTestQuestions][stopTestQuestions]}
\def\stopTestQuestions
  {\ctxlua{userdata.formatTestQuestions()}}

\starttext
Here are some questions:

\startTestQuestions
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.

In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
\stopTestQuestions

How do you think you did on that test? Here's another one.

\startTestQuestions
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
\stopTestQuestions

\stoptext

—
Bruce Horrocks
Hampshire, UK


tt.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread madiazm . eoicc
no, I just want to split at the end of each sentence to get the four arguments: 
now I pass this four lines to my macro \tareaAbc (with the dirty trick of ñ)

In den Büchereien gibt es auch …ñ 
… Kuchen.ñ   
… Theater.ñ   
… Workshops.ñ 

and I wish your context.foo(lines[i]) iteration would become a single 
context.tareaAbc(the four arguments somehow separated so that I can manage each 
line with the corresponding context formatting)

As you see my definition is: \def\tareaAbc #1ñ#2ñ#3ñ#4ñ{...context formating 
for each #)}; Its the clue to pass each sentence as an independent argument 
that I don't get to work.
thanks again
Miguel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Hans Hagen

On 2/20/2024 12:26 PM, madiazm.eo...@gmail.com wrote:

Thanks Hans,
I supposed that lua would be more suitable, but unfortunately I still did not 
learn it (I hope in summer I have time to read the manual)

The problem arises from the fact that for each line i will perform a different 
action and for \def\foo I need four arguments so that I can correctly format 
the lines. How can i get the result of string.splitlines (s) separated into 
four arguments to pass to the macro? then \foo would be 
\def\foo#1SEPARATOR#2SEPARATOR#3SEPARATOR#4

I now use:


\starttext
%now I use the dirty trick of writing an ñ at the end of line so that the macro 
detects each argument; but for each question I have to manually add it, which 
is tedious; therefore I look for a solution to detect lines automatically

%the definition
\def\tareaAbc #1ñ#2ñ#3ñ#4ñ{\item #1
 \startitemgroup[lista1a]
 \item #2
 \item #3
 \item #4
 \stopitemgroup}

%in the document
/startitemgropu[lista1a]   %I manually open the first level of the list 
so the first argument -the question- gets numbered

\tareaAbc In den Büchereien gibt es auch …ñ   %the question; an item of 
first level
… Kuchen.ñ   %option a gets a new list of second level opened and argument 
2 is the first item
… Theater.ñ   %option b another item
… Workshops.ñ  %option c last item and closes the second level list

%some more macros with more questions and options

/stopitemgroup %I manually close the first level list
You have to provide more details about these lines. For instance, do you 
want to split on spaces?


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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread madiazm . eoicc
Thanks Hans,
I supposed that lua would be more suitable, but unfortunately I still did not 
learn it (I hope in summer I have time to read the manual)

The problem arises from the fact that for each line i will perform a different 
action and for \def\foo I need four arguments so that I can correctly format 
the lines. How can i get the result of string.splitlines (s) separated into 
four arguments to pass to the macro? then \foo would be 
\def\foo#1SEPARATOR#2SEPARATOR#3SEPARATOR#4

I now use:


\starttext
%now I use the dirty trick of writing an ñ at the end of line so that the macro 
detects each argument; but for each question I have to manually add it, which 
is tedious; therefore I look for a solution to detect lines automatically

%the definition
\def\tareaAbc #1ñ#2ñ#3ñ#4ñ{\item #1
\startitemgroup[lista1a]
\item #2
\item #3
\item #4
\stopitemgroup}

%in the document
/startitemgropu[lista1a]   %I manually open the first level of the list 
so the first argument -the question- gets numbered

\tareaAbc In den Büchereien gibt es auch …ñ   %the question; an item of 
first level
… Kuchen.ñ   %option a gets a new list of second level opened and argument 
2 is the first item
… Theater.ñ   %option b another item
… Workshops.ñ  %option c last item and closes the second level list

%some more macros with more questions and options

/stopitemgroup %I manually close the first level list

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: using an end of line as parameter

2024-02-19 Thread Hans Hagen

On 2/19/2024 1:49 PM, Miguel Diaz wrote:

Dear list,
I want to format some language tests that different people are 
preparing. Each one uses different software and there are always 
problems in format that i want to solve.


for a a/b/c questions I receive text that I will format to a list 
(comments are mine)


In den Büchereien gibt es auch … %the question
… Kuchen. %option a
… Theater. %option b
… Workshops. %option c

I need to detect \par or whatever sign marks the newline character as an 
argument delimiter so that I dont have to paste hundreds of times braces 
for each argument.

For the example, I use this macro definition (which does no work!)

\long\def\prueba 
#1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]%

{{\bf Beispiel}: #1\\
\qquad  a) #2\\
\qquad  b) {\bf #3}\\
\qquad  c) #4
}

I get: tex error on line 493 in file ./prueba.tex: The file ended when 
scanning an argument.


the macro seems to  read to the end of file not detecting \par; I know 
its the \par that causes the problem; I used ^^M also which I read is a 
sinonym for return but it also does not work.


Help would be appreciated (my computer keyboard would appreciate it too...)

better start thinking something:

\starttext

\def\foo#1{<<<#1\par}

\startluacode
local s = [[
line 1
line 2
line 3
line 4
]]

-- local s - io.loaddata("yourfile.txt")

local lines = string.splitlines(s)

for i=1,#lines do
if lines[i] ~= "" then
context.foo(lines[i])
end
end

\stopluacode

\stoptext


-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Hamid,Idris
Hi Shiv,

-- Original Message --
From "Shiv Shankar Dayal" 
mailto:shivshankar.da...@gmail.com>>
To "mailing list for ConTeXt users" 
mailto:ntg-context@ntg.nl>>
Date 1/24/2024 9:44:09 AM
Subject [NTG-context] Re: Using plain TeX commands in ConTeXt


** Caution: EXTERNAL Sender **

Yes.

On Wed, Jan 24, 2024 at 10:08 PM luigi scarso 
mailto:luigi.sca...@gmail.com>> wrote:


On Wed, 24 Jan 2024 at 16:55, Shiv Shankar Dayal 
mailto:shivshankar.da...@gmail.com>> wrote:
Thanks for correcting me, Wolfgang. I meant only TeX commands not plan TeX 
macros.


TeX primitives ?

Apologies if you are already aware:

There are 21 ConTeXt manuals entitled "low-level TeX" here:

https://wiki.contextgarden.net/Documentation

These might be a good place to begin exploration of interactions between TeX 
primitives and ConTeXt.

Best wishes
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Shiv Shankar Dayal
Yes.

On Wed, Jan 24, 2024 at 10:08 PM luigi scarso 
wrote:

>
>
> On Wed, 24 Jan 2024 at 16:55, Shiv Shankar Dayal <
> shivshankar.da...@gmail.com> wrote:
>
>> Thanks for correcting me, Wolfgang. I meant only TeX commands not plan
>> TeX macros.
>>
>>
> TeX primitives ?
>
> --
> luigi
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread luigi scarso
On Wed, 24 Jan 2024 at 16:55, Shiv Shankar Dayal <
shivshankar.da...@gmail.com> wrote:

> Thanks for correcting me, Wolfgang. I meant only TeX commands not plan TeX
> macros.
>
>
TeX primitives ?

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Wolfgang Schuster

Shiv Shankar Dayal schrieb am 24.01.2024 um 16:52:
Thanks for correcting me, Wolfgang. I meant only TeX commands not plan 
TeX macros.


As I already wrote you can use \parindent etc. in your document but 
unless you

know what you're doing you should keep it to a minimum to avoid conflicts
with other mechanism which rely on certain settings, e.g. changing the 
\parindent

value can result in unwanted result with paragraph indentation set with
\setupindenting[...].

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Shiv Shankar Dayal
Thanks for correcting me, Wolfgang. I meant only TeX commands not plan TeX
macros.

On Wed, Jan 24, 2024 at 9:20 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Shiv Shankar Dayal schrieb am 24.01.2024 um 16:37:
> > For example: \kern, \parindent and so on. Rephrasing the question, can
> > LuaMetaTeX/ConTeXt compile
> > plain TeX files. If yes, how can I do that?
>
> You mix up two different things here.
>
> 1. Plain TeX is a collection of TeX macros like ConTeXt or LaTeX.
>
> 2. LuaMetaTeX is a program like pdfTeX or LuaTeX which provides commands
> which are used by above mentioned collections to create macros.
>
> Even though ConTeXt provides some commands which available in plain TeX
> not all of the are supported which means you can't process plain TeX
> documents.
>
> On the other hand commands which are provided by the engine like
> \parindent can be used in a ConTeXt document but higher level mechanism
> like \setupindenting are the better choice.
>
> Wolfgang
>
>

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Wolfgang Schuster

Shiv Shankar Dayal schrieb am 24.01.2024 um 16:37:
For example: \kern, \parindent and so on. Rephrasing the question, can 
LuaMetaTeX/ConTeXt compile

plain TeX files. If yes, how can I do that?


You mix up two different things here.

1. Plain TeX is a collection of TeX macros like ConTeXt or LaTeX.

2. LuaMetaTeX is a program like pdfTeX or LuaTeX which provides commands 
which are used by above mentioned collections to create macros.


Even though ConTeXt provides some commands which available in plain TeX 
not all of the are supported which means you can't process plain TeX 
documents.


On the other hand commands which are provided by the engine like 
\parindent can be used in a ConTeXt document but higher level mechanism 
like \setupindenting are the better choice.


Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Shiv Shankar Dayal
For example: \kern, \parindent and so on. Rephrasing the question, can
LuaMetaTeX/ConTeXt compile
plain TeX files. If yes, how can I do that?

On Wed, Jan 24, 2024 at 9:02 PM Hans Hagen  wrote:

> On 1/24/2024 2:55 PM, Shiv Shankar Dayal wrote:
> > Dear List,
> >
> > Can we use plain TeX commands which are available in LuaMetaTeX in an
> > arbitrary manner or are there any restrictions?
> what do you mean with arbitrary plain tex commands
>
> -
>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 /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Hans Hagen

On 1/24/2024 2:55 PM, Shiv Shankar Dayal wrote:

Dear List,

Can we use plain TeX commands which are available in LuaMetaTeX in an 
arbitrary manner or are there any restrictions?

what do you mean with arbitrary plain tex commands

-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200
Marco Patzer  wrote:

> What about:
> 
> \unit{10 um}
> \unit{10 µm}
> 
> Can I assign µ to mean micro (prefix)?

Found it:

\registerunit [prefix] [µ=micro]

\starttext
  \unit{10 micro meter} \crlf
  \unit{10 µm}
\stoptext

Should this be the default (µ assigned to micro)?

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

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

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 15:42:57 +0200
Wolfgang Schuster  wrote:

> Marco Patzer schrieb am 03.10.2023 um 12:31:
> > Hi!
> >
> > I struggle using the unit Farad (unit of capacitance):  
> 
> The unit "farad" exists.

You're right \unit{10 Farad} works.

> The unit for feet is "foot" and "ft" is a combination of a prefix 
> (femto) and a unit (tonne).

Makes sense if you think about it. Never crossed my mind that ft not
meaning feet in this instance and also never contemplated the
existence of a “femto tonne”.

> You can list the individual parts in the log file with the 
> "physics.units" tracker.

That gives some insight, indeed. Thanks.

What about:

\unit{10 um}
\unit{10 µm}

Can I assign µ to mean micro (prefix)?

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

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

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Wolfgang Schuster

Marco Patzer schrieb am 03.10.2023 um 12:31:

Hi!

I struggle using the unit Farad (unit of capacitance):


The unit "farad" exists.


\starttext

%% prints 10 10 ft
\unit{10 F}
\unit{20 ft}

\registerunit  [F=Farad]
\setupunittext [Farad=F]

%% prints 10 F 20 F⋅t
\unit{10 F}
\unit{20 ft}

\stoptext

When registering Farad as new unit it messes up feet. This looks
like a bug to me, since “20 ft” does not contain a capital “F” and
units are case-sensitive. How to use Farad correctly without messing
up other units?


The unit for feet is "foot" and "ft" is a combination of a prefix 
(femto) and a unit (tonne).


You can list the individual parts in the log file with the 
"physics.units" tracker.


To get a short unit you have to use the following method (it works 
because farad exists):


    \registerunitshortcut [F=farad]

Wolfgang

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-14 Thread Wolfgang Schuster

denis.ma...@unibe.ch schrieb am 12.09.2023 um 23:32:


You need a box to get the author on a separate line.

% \define[2]\ChapterCommand
%   {\vbox
%  {\structureuservariable{author}
%  \blank
%  #1\space#2}}

\starttexdefinition protected ChapterCommand #1#2
   \vbox\bgroup
     \structureuservariable{author}
     \blank
     #1\space#2
   \egroup
\stoptexdefinition

Thank you so much, Wolfgang!

Why do you need protected here? I’ve realized that \protected\def also 
helps a bit, but, of course, paragraph breaks are ignored there as well…


You probably haven't noticed it yet but unlike the other predefined 
layouts for sections you don't have to write "alternative=command" to 
use the layout which is passed to the command key.


To make this work ConTeXt has to check whether the argument of the 
command key is empty or not but this is problematic when you pass 
commands with arguments.


When you try to example below you can see that the first definition of 
\Mycommand fails because \edef\CheckMycommand tries to expand its 
argument which causes problems because \Mycommand tries to read the 
following argument. To solve this problem you can use the \protected 
modifier when you create \Mycommand.


\starttext

\def\Mycommand#1{#1}% fails
%\protected\def\Mycommand#1{#1}% works

\edef\CheckMycommand{\Mycommand}
\ifempty\CheckMycommand
   \tex{Mycommand} is empty
\else
   \tex{Mycommand} has content
\fi

\stoptext



If just found the following in the lowlevel-macros manual:

«Traditional TEX has three prefixes that can be used with macros: 
\global, \outer and \long. The last two are no-op's in LuaMetaTEX and if 
you want to know what they do (did) you can look it up in the TEXbook.»


So, \long is gone, but why is that? Is there a new mechanism that serves 
the same purpose? Other than using a vbox, I mean…


The purpose of the \long modifier is to specify whether the argument of 
a command can or cannot contain multiple paragraph (either by an empty 
line or with \par). This was needed by TeX in the early days where 
memory was limited but not on the current machines.


For a very long time ConTeXt made each command definition long by 
default (i.e. \def\...{...} behaved the same way as \long\def\...{...}) 
and as a result \long was dropped.


\def\CommandA#1{#1}

\long\def\CommandB#1{#1}

\starttext

\CommandA{xxx}% works

\CommandA{xxx

yyy}% fails because you have a empty line in the argument

\CommandA{xxx\par yyy}%fails because you have \par in the argument

\CommandB{xxx\par yyy}% works because \CommandB is \long

\stoptext

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

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


[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Andres Conrado Montoya
You can find some examples in the wiki to do something similar:
https://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content

Also you can use setups instead of macro definitions, and create spaces
with \space, \par, etc: https://wiki.contextgarden.net/Setups

-- 
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Von: Wolfgang Schuster 
Gesendet: Dienstag, 12. September 2023 23:16
An: Maier, Denis Christian (UB) 
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the heading

denis.ma...@unibe.ch schrieb am 12.09.2023 um 
21:38:

Von: Wolfgang Schuster 

Gesendet: Dienstag, 12. September 2023 21:30
An: Maier, Denis Christian (UB) 

Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the heading

denis.ma...@unibe.ch schrieb am 12.09.2023 um 
21:24:



Von: Wolfgang Schuster 

Gesendet: Dienstag, 12. September 2023 20:41
An: mailing list for ConTeXt users 
; Maier, Denis Christian (UB) 

Betreff: Re: [NTG-context] Using structureuservariables before the heading

denis.ma...@unibe.ch schrieb am 12.09.2023 um 
17:47:



Hi,

is it possible to access a structureuservariable before the heading's title ?
Using the  key does not seem to work.

There are ways but not in a general way because you try to access the values
before they are known to ConTeXt. To provide a proper solution you have
to tell what you're trying to achieve.

I'm just trying to output the author's name above a chapter heading. Do you 
need more information?

You can create a custom header for the chapter page and show the value of the 
author key
which works without problems because the header is added after to the finished 
page
after the value is available.

Another option when the name should appear in the same space as the chapter 
title
is a custom layout for the title.
Yes, I've tried that in the original MWE:

...

Here, I'm getting  just before <3 Third>. So I guess this goes in 
the right direction, but \define doesn't allow for blanks etc. 
\starttexdefinition and \def on the other hand gave me erros.

You need a box to get the author on a separate line.

% \define[2]\ChapterCommand
%   {\vbox
%  {\structureuservariable{author}
%  \blank
%  #1\space#2}}

\starttexdefinition protected ChapterCommand #1#2
  \vbox\bgroup
\structureuservariable{author}
\blank
#1\space#2
  \egroup
\stoptexdefinition


Thank you so much, Wolfgang!

Why do you need protected here? I've realized that \protected\def also helps a 
bit, but, of course, paragraph breaks are ignored there as well...
If just found the following in the lowlevel-macros manual:

So, \long is gone, but why is that? Is there a new mechanism that serves the 
same purpose? Other than using a vbox, I mean...

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster

denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:38:


*Von:*Wolfgang Schuster 
*Gesendet:* Dienstag, 12. September 2023 21:30
*An:* Maier, Denis Christian (UB) 
*Cc:* ntg-context@ntg.nl
*Betreff:* Re: [NTG-context] Using structureuservariables before the 
heading


denis.ma...@unibe.ch  schrieb am 
12.09.2023 um 21:24:


*Von:*Wolfgang Schuster 

*Gesendet:* Dienstag, 12. September 2023 20:41
*An:* mailing list for ConTeXt users 
; Maier, Denis Christian (UB)
 
*Betreff:* Re: [NTG-context] Using structureuservariables before
the heading

denis.ma...@unibe.ch  schrieb am
12.09.2023 um 17:47:


Hi,

is it possible to access a structureuservariable before the
heading’s title ?

Using the «before» key does not seem to work.


There are ways but not in a general way because you try to access
the values
before they are known to ConTeXt. To provide a proper solution you
have
to tell what you're trying to achieve.

I’m just trying to output the author’s name above a chapter
heading. Do you need more information?


You can create a custom header for the chapter page and show the value 
of the author key
which works without problems because the header is added after to the 
finished page

after the value is available.

Another option when the name should appear in the same space as the 
chapter title

is a custom layout for the title.

Yes, I’ve tried that in the original MWE:

%%

\setuphead[chapter][

    before={Before: \structureuservariable{author}\blank},

    beforesection={Beforesection: \structureuservariable{author}\blank},

    insidesection={Insidesection: \structureuservariable{author}\blank},

    after={After: \structureuservariable{author}\blank},

    ]

\def\myChapterCommand#1#2{\structureuservariable{author}\space\blank}

\define[2]\myChapterCommand{\structureuservariable{author}\blank 
#1\space#2}


%\def\myChapterCommand#1#2{\structureuservariable{author}\blank 
#1\space#2} % does not work


% \starttexdefinition myChapterCommand #1 #2 % doesn't work either, 
but at least blanks should work


%   \structureuservariable{author}

%   Test

%   \blank

%   #1\space#2

% \stoptexdefinition

\starttext

\myChapterCommand{1}{asdf}

\startchapter[title=First][author=First Author]

\input knuth

\stopchapter

\startchapter[title=Second][author=Second Author]

\input knuth

\stopchapter

\setuphead[chapter]

    [

    before=,after=,beforesection=,insidesection=,

    command=\myChapterCommand,

]

\startchapter[title=Third][author={Third Author}]

\input knuth

\stopchapter

\stoptext

%%

Here, I’m getting «Third author» just before «3 Third». So I guess 
this goes in the right direction, but \define doesn’t allow for blanks 
etc. \starttexdefinition and \def on the other hand gave me erros.




You need a box to get the author on a separate line.

% \define[2]\ChapterCommand
%   {\vbox
%  {\structureuservariable{author}
%  \blank
%  #1\space#2}}

\starttexdefinition protected ChapterCommand #1#2
  \vbox\bgroup
    \structureuservariable{author}
    \blank
    #1\space#2
  \egroup
\stoptexdefinition

\setuphead
  [chapter]
  [command=\ChapterCommand]

\starttext

\startchapter[title=First][author=First Author]
\input knuth
\stopchapter

\startchapter[title=Second][author=Second Author]
\input knuth
\stopchapter

\startchapter[title=Third][author={Third Author}]
\input knuth
\stopchapter

\stoptext

Wolfgang

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Von: Wolfgang Schuster 
Gesendet: Dienstag, 12. September 2023 21:30
An: Maier, Denis Christian (UB) 
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the heading

denis.ma...@unibe.ch schrieb am 12.09.2023 um 
21:24:


Von: Wolfgang Schuster 

Gesendet: Dienstag, 12. September 2023 20:41
An: mailing list for ConTeXt users 
; Maier, Denis Christian (UB) 

Betreff: Re: [NTG-context] Using structureuservariables before the heading

denis.ma...@unibe.ch schrieb am 12.09.2023 um 
17:47:


Hi,

is it possible to access a structureuservariable before the heading's title ?
Using the  key does not seem to work.

There are ways but not in a general way because you try to access the values
before they are known to ConTeXt. To provide a proper solution you have
to tell what you're trying to achieve.

I'm just trying to output the author's name above a chapter heading. Do you 
need more information?

You can create a custom header for the chapter page and show the value of the 
author key
which works without problems because the header is added after to the finished 
page
after the value is available.

Another option when the name should appear in the same space as the chapter 
title
is a custom layout for the title.
Yes, I've tried that in the original MWE:

%%
\setuphead[chapter][
before={Before: \structureuservariable{author}\blank},
beforesection={Beforesection: \structureuservariable{author}\blank},
insidesection={Insidesection: \structureuservariable{author}\blank},
after={After: \structureuservariable{author}\blank},
]

\def\myChapterCommand#1#2{\structureuservariable{author}\space\blank}
\define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2}
%\def\myChapterCommand#1#2{\structureuservariable{author}\blank #1\space#2} % 
does not work

% \starttexdefinition myChapterCommand #1 #2 % doesn't work either, but at 
least blanks should work
%   \structureuservariable{author}
%   Test
%   \blank
%   #1\space#2
% \stoptexdefinition

\starttext

\myChapterCommand{1}{asdf}

\startchapter[title=First][author=First Author]
\input knuth
\stopchapter

\startchapter[title=Second][author=Second Author]
\input knuth
\stopchapter

\setuphead[chapter]
[
before=,after=,beforesection=,insidesection=,
command=\myChapterCommand,
]

\startchapter[title=Third][author={Third Author}]
\input knuth
\stopchapter

\stoptext
%%

Here, I'm getting  just before <3 Third>. So I guess this goes in 
the right direction, but \define doesn't allow for blanks etc. 
\starttexdefinition and \def on the other hand gave me erros.

Denis

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster

denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:24:


*Von:*Wolfgang Schuster 
*Gesendet:* Dienstag, 12. September 2023 20:41
*An:* mailing list for ConTeXt users ; Maier, 
Denis Christian (UB) 
*Betreff:* Re: [NTG-context] Using structureuservariables before the 
heading


denis.ma...@unibe.ch  schrieb am 
12.09.2023 um 17:47:


Hi,

is it possible to access a structureuservariable before the
heading’s title ?

Using the «before» key does not seem to work.


There are ways but not in a general way because you try to access the 
values

before they are known to ConTeXt. To provide a proper solution you have
to tell what you're trying to achieve.

I’m just trying to output the author’s name above a chapter heading. 
Do you need more information?




You can create a custom header for the chapter page and show the value 
of the author key
which works without problems because the header is added after to the 
finished page

after the value is available.

Another option when the name should appear in the same space as the 
chapter title

is a custom layout for the title.

Wolfgang

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier

Von: Wolfgang Schuster 
Gesendet: Dienstag, 12. September 2023 20:41
An: mailing list for ConTeXt users ; Maier, Denis Christian 
(UB) 
Betreff: Re: [NTG-context] Using structureuservariables before the heading

denis.ma...@unibe.ch schrieb am 12.09.2023 um 
17:47:

Hi,

is it possible to access a structureuservariable before the heading's title ?
Using the  key does not seem to work.

There are ways but not in a general way because you try to access the values
before they are known to ConTeXt. To provide a proper solution you have
to tell what you're trying to achieve.

I'm just trying to output the author's name above a chapter heading. Do you 
need more information?

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster

denis.ma...@unibe.ch schrieb am 12.09.2023 um 17:47:


Hi,

is it possible to access a structureuservariable before the heading’s 
title ?


Using the «before» key does not seem to work.



There are ways but not in a general way because you try to access the values
before they are known to ConTeXt. To provide a proper solution you have
to tell what you're trying to achieve.

Wolfgang

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

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

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Ok, \starttexdefinition allows blanks, apparently just like setups.
But, it still fails exactly like the version with \def


\setuphead[chapter][
before={Before: \structureuservariable{author}\blank},
beforesection={Beforesection: \structureuservariable{author}\blank},
insidesection={Insidesection: \structureuservariable{author}\blank},
after={After: \structureuservariable{author}\blank},
]

\def\myChapterCommand#1#2{\structureuservariable{author}\space\blank}
\define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2}
%\def\myChapterCommand#1#2{\structureuservariable{author}\blank #1\space#2} % 
does not work

% \starttexdefinition myChapterCommand #1 #2 % doesn't work either, but at 
least blanks should work
%   \structureuservariable{author}
%   Test
%   \blank
%   #1\space#2
% \stoptexdefinition


\starttext

\myChapterCommand{1}{asdf}

\startchapter[title=First][author=First Author]
\input knuth
\stopchapter

\startchapter[title=Second][author=Second Author]
\input knuth
\stopchapter

\setuphead[chapter]
[
before=,after=,beforesection=,insidesection=,
command=\myChapterCommand,
]

\startchapter[title=Third][author={Third Author}]
\input knuth
\stopchapter


\stoptext

Von: denis.ma...@unibe.ch 
Gesendet: Dienstag, 12. September 2023 17:48
An: ntg-context@ntg.nl
Betreff: [NTG-context] Using structureuservariables before the heading

Hi,

is it possible to access a structureuservariable before the heading's title ?
Using the  key does not seem to work.

As an aside, I've tried to use the < command > key to provide my own command, 
but while \define works here (but ignores \blank), \def gives me an error.
Why is that?
How would you add blanks to a user-defined command?

Best,
Denis



\setuphead[chapter][
before={Before: \structureuservariable{author}\blank},
beforesection={Beforesection: \structureuservariable{author}\blank},
insidesection={Insidesection: \structureuservariable{author}\blank},
after={After: \structureuservariable{author}\blank},
]

\def\myChapterCommand#1#2{\structureuservariable{author}\space\blank}
\define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2}
%\def\myChapterCommand#1#2{\structureuservariable{author}\blank #1\space#2} % 
does not work

\starttext
\macro{1}{2}

\startchapter[title=First][author=First Author]
\input knuth
\stopchapter

\startchapter[title=Second][author=Second Author]
\input knuth
\stopchapter

\setuphead[chapter]
[
before=,after=,beforesection=,insidesection=,
command=\myChapterCommand,
]

\startchapter[title=Third][author=Third Author]
\input knuth
\stopchapter


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

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

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray

Thanks Hans!

Le 4/08/23 à 23:21, Hans Hagen a écrit :

On 8/4/2023 7:42 PM, Alex Leray wrote:

Hello,

I'm trying to figure out why this is not working (whereas 
\startlines\stoplines works):


```
\definehead[poem][section]
\setuphead[poem][beforesection={\starttyping}, 
aftersection={\stoptyping}]


\starttext

\startpoem[title={Glijden}][]
Lorem ipsum dolor sit amet consectetur.
\stoppoem

\stoptext
```

I get the following traceback:

```
tex error   > tex error on line 6 in file 
/home/ali/work/being_human/test.tex: ! Undefined control sequence



\strc_sectioning_initialize_increment ->\edef \currentheadincrement

verbatim is tricky because it changes the catcodes

here is a trick:

\definehead
   [poem]
   [section]

\setuphead
   [poem]
   [after=\startlines\tt,    % after the head is placed
    aftersection=\stoplines] % when we end this section

\startpoem[title={Glijden}]
Lorem ipsum dolor sit amet consectetur.
Lorem ipsum dolor sit amet consectetur.
\stoppoem

it is not pretty coding but it seems to work ok

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 / 
https://www.ntg.nl/mailman/listinfo/ntg-context

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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen

On 8/4/2023 7:42 PM, Alex Leray wrote:

Hello,

I'm trying to figure out why this is not working (whereas 
\startlines\stoplines works):


```
\definehead[poem][section]
\setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}]

\starttext

\startpoem[title={Glijden}][]
Lorem ipsum dolor sit amet consectetur.
\stoppoem

\stoptext
```

I get the following traceback:

```
tex error   > tex error on line 6 in file 
/home/ali/work/being_human/test.tex: ! Undefined control sequence



\strc_sectioning_initialize_increment ->\edef \currentheadincrement

verbatim is tricky because it changes the catcodes

here is a trick:

\definehead
  [poem]
  [section]

\setuphead
  [poem]
  [after=\startlines\tt,% after the head is placed
   aftersection=\stoplines] % when we end this section

\startpoem[title={Glijden}]
Lorem ipsum dolor sit amet consectetur.
Lorem ipsum dolor sit amet consectetur.
\stoppoem

it is not pretty coding but it seems to work ok

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re : Using a tikz package

2009-06-15 Thread Flavien Lambert
If you convince him to do so, I would also be grateful since
electrical circuits are the only missing piece for me to convert all
the exercises for my students from LaTeX to ConTeXt!
Regards,

2009/6/15, Mojca Miklavec mojca.miklavec.li...@gmail.com:
 On Mon, Jun 15, 2009 at 20:35, Maurí­cio wrote:
 I would like to use this package for
 drawing circuits:

 http://home.dei.polimi.it/mredaelli/circuitikz/index.html

 The examples are in Latex, but I imagine it
 could be used in ConTeXt since it's written
 using Tikz.

 How can I do that? The recomended instalation
 procedure at the website is to just uncompress
 everything in texmf-local directory, but that
 creates a 'latex' directory that I imagine
 ConTeXt won't use.

 Hello Maurí­cio,

 You'll need to convince the author to make a generic package.

 I'm not sure if he's familiar with ConTeXt or not. The changes that
 are needed might be doable in reasonable amount of time (from my first
 impression there are not too many LaTeX-specific commands present),
 but the package won't work out of the box as it stands at the moment.

 Mojca
 ___
 If your question is of interest to others as well, please add an 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



-- 
Flavien.

Quantum objects are completely crazy but, at least, they are all
crazy in the same way. R.P. Feynman.
___
If your question is of interest to others as well, please add an 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] re-using ConTeXt typescripts ?

2005-07-11 Thread Steffen Wolfrum

Hi Adam,

the simplicity of XeTeX's font handling is amazing -- when starting 
from scratch.
But I am wondering how can I continue to use the typescripts (and 
virtual files) that I used to use with ConTeXt?!


texexec --xtx --example.file

ends in an error log containing:

This is METAFONT, Version 2.71828 (Web2C 7.5.4)
kpathsea: Running mktexmf AGaramond-Regular

! I can't find file `AGaramond-Regular'.



As I do not have *any* idea where to start searching for my mistake 
(resp. the place where changes have to be made) I dare to send you a 
complete minimal example (that worked with pure texexec --pdf 
--example.file)


Any feedback might probably help me...

Thank you,

Steffen




I have an example-file, a typescript-file and a map-file.


The example-file goes like this:

\def\typescriptfiles{type-GMTHKopie.tex}
\usetypescript[AGaramondOldStyle]

\setupbodyfont[normaltype,rm,10.2pt]%klein:10 - mittel:10.2 - gross:10.5pt

\starttext
Test WQ916
\stoptext



The type-GMTHKopie.tex:
\loadmapfile[padKopie.map]
\starttypescript [serif] [agaramond] [ec]
  \definefontsynonym [AGaramond-Regular][padr9e] 
[encoding=uc] % was encoding=ec before xetex

  \definefontsynonym [AGaramond-Italic] [padri9e] [encoding=uc] % =ec
  \definefontsynonym [AGaramond-Bold]   [padb9e]  [encoding=uc] % =ec
  \definefontsynonym [AGaramond-BoldItalic] [padbi9e] [encoding=uc] % =ec
  \definefontsynonym [AGaramond-Semibold]   [pads9e]  [encoding=uc] % =ec
  \definefontsynonym [AGaramond-SemiboldItalic] [padsi9e] [encoding=uc] % =ec
\stoptypescript
\starttypescript [serif] [agaramond] [name]
  \definefontsynonym [Serif] [AGaramond-Regular]
  \definefontsynonym [SerifBold] 
[AGaramond-Semibold]%[AGaramond-Bold-OSF]

  \definefontsynonym [SemiBold]  [AGaramond-Semibold]
  \definefontsynonym [SerifItalic]   [AGaramond-Italic]
  \definefontsynonym [SerifBoldItalic] 
[AGaramond-SemiboldItalic]%[AGaramond-BoldItalic-OSF]

  \definefontsynonym [SemiBoldItalic][AGaramond-SemiboldItalic]
\stoptypescript
\starttypescript  [serif][allbold][all]
   \definefontsynonym [Serif]  [SerifBold]
   \definefontsynonym [SerifItalic][SerifBoldItalic]
\stoptypescript

\starttypescript [AGaramondOldStyle]
  \definetypeface [normaltype] [rm] [serif]  [agaramond] 
[default] [encoding=uc] % =ec
  \definetypeface [boldtype]   [rm] [serif]  [agaramond,allbold] 
[default] [encoding=uc] % =ec

\stoptypescript



The padKopie.map:
% Adobe Garamond
padr8r  AGaramond-RegularTeXBase1Encoding ReEncodeFont 
8r.enc padr8a.pfb
padri8r AGaramond-Italic TeXBase1Encoding ReEncodeFont 
8r.enc padri8a.pfb
pads8r  AGaramond-Semibold   TeXBase1Encoding ReEncodeFont 
8r.enc pads8a.pfb
padsi8r AGaramond-SemiboldItalic TeXBase1Encoding ReEncodeFont 
8r.enc padsi8a.pfb
padb8r  AGaramond-Bold   TeXBase1Encoding ReEncodeFont 
8r.enc padb8a.pfb
padbi8r AGaramond-BoldItalic TeXBase1Encoding ReEncodeFont 
8r.enc padbi8a.pfb

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Using fonts of an existing TeX-Installation

2005-05-05 Thread Patrick Gundlach
Hello Thomas,


[...]

  following the TeXFont manual for ConTeXt, do I have to reinstall 
 them from scratch for ConTeXt starting with the pfb- and afm-files from 
 texmf-local/fonts/source, or can I use the already distributed pfb- and 
 afm-files? 

Yes, as I already answered on the german tex-d-l mailing list. Did you
try my suggestion to add a typescript and just use the fonts?

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Using fonts of an existing TeX-Installation

2005-05-05 Thread Patrick Gundlach

 Hello Thomas,

Tobias, sorry. It is too late for me...

Patrick
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Using LateX packages

2005-01-25 Thread Patrick Gundlach
Hello Holger,

 I want to use a LaTeX Package (clrscode), or at least I want to port
 it to Context.

 http://www.cs.dartmouth.edu/~thc/clrscode/

 Is there some way to use LaTex Packages (I guess not).

No. The low level commands are different in LaTeX and ConTeXt. The
named package does not use a lot of unique LaTeX features, so a port
shouldn't be too difficult. But as I guess from your question, you are
unable to do that, so the question is: who else does the job? And I
guess, nobody rises his hand now.


 Is there documentation about writing ConTeXt modules? (I didn't find any).

There is an API documentation project Taco has written a paper on
some commands, but there is much more to do.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Using LateX packages = for algorithms

2005-01-25 Thread Maurice Diamantini
Bonjour à tous !
Le 25 janv. 05, à 22:16, Patrick Gundlach a écrit :
Hello Holger,
I want to use a LaTeX Package (clrscode), or at least I want to port
it to Context.
http://www.cs.dartmouth.edu/~thc/clrscode/
Is there some way to use LaTex Packages (I guess not).
No. The low level commands are different in LaTeX and ConTeXt. The
named package does not use a lot of unique LaTeX features, so a port
shouldn't be too difficult. But as I guess from your question, you are
unable to do that, so the question is: who else does the job? And I
guess, nobody rises his hand now.
See HH answer about a similar request.
I think this solution could be the start of your package.
Hans had extended the startlines environment with an option
which keep spaces, so that it's easier to write
algorithms without having some \it begining every lines !
http://www.ntg.nl/pipermail/ntg-context/2004/008169.html
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts

2004-12-07 Thread Adam Lindsay
Patrick Gundlach said this at Tue, 7 Dec 2004 10:09:54 +0100:

 Good question. I'll throw it open to the list:
 Metrics for the urw clone 35 used to be commonly found everywhere. Where
 have they gone?

Do you have psnfss for LaTeX installed?

I guess I don't. gwTeX doesn't seem to throw it in there. (I reinstalled
prompted by your earlier Q.)

So where (e.g., on CTAN) would you point this person to?

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: using fonts

2004-12-07 Thread Patrick Gundlach

[...]

Do you have psnfss for LaTeX installed?

 I guess I don't. gwTeX doesn't seem to throw it in there. (I reinstalled
 prompted by your earlier Q.)

 So where (e.g., on CTAN) would you point this person to?

Good question, I just looked at CTAN. The sources are in
fonts/psfonts/psnfss-source, but have to be generated by a makefile,
wich needs some modification on my linux box.

Would it make sense to create the metrics and put the online?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts

2004-12-07 Thread Wolfgang Zillig
I got some info from the miktex forum:
the font: uplr8t is a replacement for the adobe font. The Adobe font is called 
pplr8t.tfm

So I still not for sure where the error comes from
- false font names
- missing font names
What do you think?
Wolfgang
Patrick Gundlach wrote:
[...]

Do you have psnfss for LaTeX installed?
I guess I don't. gwTeX doesn't seem to throw it in there. (I reinstalled
prompted by your earlier Q.)
So where (e.g., on CTAN) would you point this person to?

Good question, I just looked at CTAN. The sources are in
fonts/psfonts/psnfss-source, but have to be generated by a makefile,
wich needs some modification on my linux box.
Would it make sense to create the metrics and put the online?
Patrick
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: using fonts

2004-12-07 Thread Patrick Gundlach
Hi Adam,

[...]

 Sorry (especially to Patrick!) for being misleading earlier. My head was
 still in TeXLive mode.

Well, my head *is* in TeXLive mode. But TL 2003 (home). On garden I
use current tetex (garden). Both work fine with the adobekb
typescript. 


Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts

2004-12-07 Thread Adam Lindsay
Patrick Gundlach said this at Tue, 7 Dec 2004 18:09:25 +0100:

 Sorry (especially to Patrick!) for being misleading earlier. My head was
 still in TeXLive mode.

Well, my head *is* in TeXLive mode. But TL 2003 (home). On garden I
use current tetex (garden). Both work fine with the adobekb
typescript. 

Yeah, it was TL2003, I think, where I had all the urw tfms, which was
nice. I had my focus on the berry typescripts back then, not your
excellent adobekb work.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: using fonts

2004-12-06 Thread Patrick Gundlach
Hello Wolfgang,

 I think I´mgetting confused with all of the font selection within context.

You are not the first one...

 First: I have a miktex environment on on W2K.

That should be OK for all needs.

 1. to change single fonts:

see http://contextgarden.net/Psnfss

 \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec]
 \switchtotypeface[palatino][12pt,rm]

I have never used \switchtotypeface.

 2.
 I thought that the default encoding should be texnansi

This depends on your setup. See cont-sys.tex as a place where
defaultencoding is sometimes set.

 3.
 should be there some font-switching macros on the system called
 font-xxx.tex (example font-lbr.tex)? These are missing on my system.
 I think these are needed forthings like:
 \setupbodyfont[lbr, sans, 12pt]

Well the font-xxx.tex files have nothing (not completely true) to do
with the font switching commands.

 4.
 within miktex there are lucida font files from yandy (lbr.tfm
 ). Is that a free version of lucida-font?

No. There is no really free version of lucida. They once came with
staroffice and there was a script that was able to pull them out and
make them accessable for TeX. But I think that the quality is lower
than the original ones (once read a statement from Walter Schmit about
them, don't remember when and where) and math is not included.

 (is that for math? [there is anotherfile called math-lbt.tex in
 \context\base])

No math fonts like lucida for free.


 do I need to get the missing fonts/files and why are they not
 provided with miktex. Perhaps a change of the distribution is to
 prefer? (which one)

No, go ahead with MikTeX. Try out the stuff that is on the wiki and
please report on your success/failure.

 Is there a manual which explains how to change fonts (in a way that a
 normal user who is new to context can understand it)?

yes and no. See the wiki for links.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: using fonts

2004-12-06 Thread Patrick Gundlach
Hello Adam,

[...]

 Well, I'm wondering where all the tfms have gone on my distribution, as
 well (gwTeX on the Mac doesn't seem to include 8r or ec/8t metrics,
 either). 

Do you have psnfss (LaTeX) installed?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts -- installation

2004-12-06 Thread Rob Ermers
Dear friends,
Let's join the font discussion!
Two years ago I installed under latex an adapted cyrillic font family, 
along with a new encoding (which I named l2t.enc -- a variant of t2a), 
for  koi8 texts, which makes it possible to call special diacritics 
(like \cyrkdot) by means of regular input codes, such as \= and \d. (In 
this way the text can still be processed without the special font and 
its code, but looks less nice.) As anybody can imagine, it was the 
toughest latex thing I ever did, I guess, but it worked and still does.

I am telling you this because after this complicated job I have been 
trying several times to install a simple type 1 font under Context, the 
last time being two days ago, but without any success. (I got the same 
simple font working under latex, though.) I carefully read Adam's 'My 
Way' over and over again, but I cannot get it work in my system. I put 
all the files exactly on the indicated places! (Texfont is very handy, 
but it seems to me, that nevertheless mapping files are not found.) 
Could anybody give me, and some others, a hand?

The font is simply not recognised (log file message: bodyfont: unknown 
variant johanna). Of course, I am still miles away of getting my 
cyrillic font working under context...

Let's not take the font Palatino, because it's already there, but a 
simple font: say, johanna, which consists of two files:

johanna.pfb
johanna.afm.
Which concrete steps do we have to take to make johanna work under 
Context with Miktex? And, perhaps more important, where do I put my map 
files and font files, etc. so that they be recognised?
The next step would be the installation of a ttf font. After that a 
whole font family should not be that difficult anymore.

Thank you very much in advance!
Kind regards,
Robert Ermers




___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts -- installation

2004-12-06 Thread Adam Lindsay
Rob Ermers said this at Mon, 6 Dec 2004 22:30:22 +0100:

The font is simply not recognised (log file message: bodyfont: unknown 
variant johanna). Of course, I am still miles away of getting my 
cyrillic font working under context...

Okay, that sounds odd. How do you define/use the font in ConTeXt?

Let's not take the font Palatino, because it's already there, but a 
simple font: say, johanna, which consists of two files:

johanna.pfb
johanna.afm.

Okay, stick those two files in a temp directory together. What happens with:
 texfont --make --install --co=johanna --ve=something --show

?

Which concrete steps do we have to take to make johanna work under 
Context with Miktex? 

as before, I don't know about MikTeX specifically...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts -- installation

2004-12-06 Thread Rob Ermers
Hi Adam,
Thanks for your quick reaction. Before ending this eventful day, I ran 
texexec as you suggested.

The font in question is Hudson (vendor=softmaker = Berry 5), for which I 
 invented the name 5hu (+r for roman). I have the two files 5hur.pdf 
and 5hur.afm.

Texfont generated a number of files and put them in several directories:
- texnansi-softmaker-hudson.map in 
J:\tex\localtexmf\fonts\map\pdftex\context
- texnansi-5hur.tfm in J:\tex\localtexmf\fonts\tfm\softmaker\hudson
- texnansi-5hur.vf in J:\tex\localtexmf\fonts\vf\softmaker\hudson
- 5hur.afm in J:\tex\localtexmf\fonts\afm\softmaker\hudson
- 5hur.pfb in J:\tex\localtexmf\fonts\type1\softmaker\hudson

Texfont also generated the following:
D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.log
D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.tex
D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.tmp
D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.pdf
The pdf file does not show the hudson font - I wonder if it should.
Perhaps I should mention that Texfont was interrupted; atf2tfm gets 
stuck - a conflict with a dll, but if click on OK, nothing serious seems 
to be the matter. The tfm file is generated after all. If I test afm2tfm 
 without texfont, it works normally.

I have a test file, which is called testhuds-con.tex.
Kind regards,
Robert
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts -- installation

2004-12-06 Thread h h extern
Adam Lindsay wrote:
Rob Ermers said this at Mon, 6 Dec 2004 22:30:22 +0100:

The font is simply not recognised (log file message: bodyfont: unknown 
variant johanna). Of course, I am still miles away of getting my 
cyrillic font working under context...
there is support for cyrillic in context but there are many encodings; i'm sure 
that there are users out there who can help

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: using fonts -- installation

2004-12-06 Thread h h extern
Rob Ermers wrote:
The font is simply not recognised (log file message: bodyfont: unknown 
variant johanna). Of course, I am still miles away of getting my 
cyrillic font working under context...
that message is an indication that you didn't define it as bodyfont
for instance:
  \definetypeface[johanna][rm][serif][palatino][default]
will provide
  \setupbodyfont[johanna,10pt,rm]
the combination [serif] [palatino] is the main typescript filter, while [rm] is 
what it gets mapped onto; [default] concerns the size

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context