[NTG-context] Re: Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
On Fri, Nov 03, 2023 at 01:16:15PM +0100, Wolfgang Schuster wrote:
> > \starttext
> > Hello world!
> > \startformula
> >   X(f) = \startcases[align={right,left},distance=3pt]
> > \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
> > \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
> >   \stopcases
> > \stopformula
> > \stoptext
> 
> There has been changes in the math alignment mechanism a while ago and the
> cases
> environment use math mode for a column entry when you use the \NC tag at the
> begin
> of a cell, to make your example working again remove the $ in the column.
> 
> \starttext
> 
> \startformula
>   X(f) =
>     \startcases
>     \NC T, \NC |f| < \frac{1}{2T} \NR
>     \NC 0, \NC |f| \geq \frac{1}{2T} \NR
>     \stopcases
> \stopformula
> 
> \stoptext
> 
> To typeset the content of a column as text replace \NC with \TC at the begin
> of the cell.
> 

Thank you for pointing this out. For now, I shall refrain from
upgrading, since this is a backwards incompatible change that affects
many files. Eventually, I'll make the required changes.

Kumar
-- 
Kumar Appaiah
___
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] Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
Dear Friends,

I am a regular user of ConTeXt. A recent upgrade of ConTeXt in Debian
broke things for me. The bug report is here:

https://bugs.debian.org/1055233

but I have reproduced the gist here:

Upon upgrading to ConTeXt 2023.05.05.20230730+dfsg-2, several math
features seem to break for me. Here is an example:

\starttext
Hello world!
\startformula
 X(f) = \startcases[align={right,left},distance=3pt]
   \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
   \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
 \stopcases
\stopformula
\stoptext

The above works very well in 2021.03.05.20230120+dfsg-1+deb12u1 but
gives me this error in 2023.05.05.20230730+dfsg-2:


resolvers   | formats | executing runner 'run luametatex format': 
/usr/bin/luametatex --jobname="./test.tex" --socket --shell-escape 
--fmt=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.fmt
 
--lua=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" 
--c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/usr/bin"
job > passes > version mismatch: 1.32 <> 1.33
system  > 
system  > ConTeXt  ver: 2023.05.05 18:36 LMTX  fmt: 2023.11.2  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './test', input './test.tex', result './test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts   > preloading latin modern fonts (second stage)
mathematics > tweak > 'LatinModernMath-Regular', size 6, math size 3, 
version 'Version 1.959' found, version 'Version 1.958' expected
fonts   > 'fallback modern rm 12pt' is loaded
tex error   > tex error on line 5 in file ./test.tex: Missing $ inserted

 

$
 

\mathatom 
 \math_atom_by_parameter_indeed 
#1->\mathatom 
\s!class \mathcodechecked {#1}
 \math_frac 
#1#*[#2]->\beginmathgroup \setlocalmathfractioncurrent {#1}\ifparameter 
#2\or \setupcurrentmathfraction [#2]\fi \edef \p_math_fraction_fences 
{\mathfractionparameter \c!fences }\math_atom_by_parameter 
\mathfractionparameter 
\bgroup \ifempty \p_math_f
 

{
 
   \NC T, \NC{} $|f| < \frac{
1}{2T}$ \NR

 1 \starttext
 2 Hello world!
 3 \startformula
 4  X(f) = \startcases[align={right,left},distance=3pt]
 5 >> \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
 6\NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
 7  \stopcases
 8 \stopformula
 9 \stoptext
10 
I've inserted a begin-math/end-math symbol since I think you left one out.
Proceed, with fingers crossed.
mtx-context | fatal error: return code: 1

Just another note: some examples seem broken here as well:

https://wiki.contextgarden.net/Multiline_equations

Please let me know how I can help debug this.

Thanks.

Kumar
-- 
Kumar Appaiah
___
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] Presentation effects

2020-07-25 Thread Kumar Appaiah
Dear ConTeXt users,

I have been trying to get the presentation effects listed here to
work:

https://wiki.contextgarden.net/Presentation_effects

But I am unable to build the example. I am using the Debian ConTeXt
(version 2020.03.10.20200331-1). Please let me know if I am missing
something.

Thanks.

Kumar

-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Unable to switch math fonts

2017-07-21 Thread Kumar Appaiah
On Thu, Jul 20, 2017 at 08:23:01PM +0200, Pablo Rodriguez wrote:
> Hi Kumar,
> 
> this seems to work with latest beta:
> 
> \definefontfamily [myfamily] [rm] [TeX Gyre Pagella]
> \definefontfamily [myfamily] [mm] [Neo Euler]
> \setupbodyfont[myfamily]
> 
> \starttext
> This is plain text.
> \startformula
> x + y = z
> \stopformula
> \stoptext
> 
> I hope it helps,

This worked for me. Thanks.

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

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

[NTG-context] Unable to switch math fonts

2017-07-20 Thread Kumar Appaiah
Hi.

I'm using the Debian packaged ConTeXt, version 2017.05.15.20170613-2.
I have the Neo Euler OTF font and mtxrun --script fonts finds it.

I am unable to get the following to work:

\definefontfamily [myfamily] [math] [Neo Euler]
\setupbodyfont[myfamily]

\starttext
This is plain text.
\startformula
x + y = z
\stopformula
\stoptext

The above code doesn't build for me with errors in the formula
portion. However, removing the Neo Euler line makes it work. Moreover,
this works:

\definefontfamily [myfamily] [serif] [Neo Euler]
\setupbodyfont[myfamily]
\starttext
This is plain text.
\startformula
x + y = z
\stopformula
\stoptext

But this makes everything, including math, Euler. Could you please help me out?

Thanks.

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

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

[NTG-context] Evaluating a lua expression at the end (again)

2017-02-09 Thread Kumar Appaiah
Dear ConTeXt users,

Last time, this is what I wanted, and Hans provided me an example:

https://www.mail-archive.com/ntg-context@ntg.nl/msg78079.html

However, the example given in that e-mail does not work with my Debian
context 2016.05.17.20160523-1. Could you please help me out again? I
get:

/usr/share/texmf/tex/context/base/mkiv/core-uti.lua:165: attempt to
index upvalue 'tobesavedmacros' (a nil value)

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] \Umathquad\displaystyle not set

2017-02-09 Thread Kumar Appaiah
On Thu, Feb 9, 2017 at 2:31 AM, Aditya Mahajan <adit...@umich.edu> wrote:
> On Wed, 8 Feb 2017, Kumar Appaiah wrote:
>
>> Dear ConTeXt users,
>>
>> I have a custom slide template that I borrowed from another source
>> years ago. It works well on my Debian machine, but when I try to build
>> the PDF on a docker vm on Gitlab, I run into the
>> \Umathquad\displaystyle not set error. Surprisingly, that error
>
>
> This usually means a missing math font.
>
> Note that your log file says
>
> fonts   > typescripts > unknown library 'neoeuler'
>
> Have you installed the font in your docker image?

Thanks Aditya. Indeed, euler.otf was missing.

BTW, did I steal this slide style from you, by any chance? I couldn't
find out from a cursory search.

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

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

[NTG-context] \Umathquad\displaystyle not set

2017-02-08 Thread Kumar Appaiah
Dear ConTeXt users,

I have a custom slide template that I borrowed from another source
years ago. It works well on my Debian machine, but when I try to build
the PDF on a docker vm on Gitlab, I run into the
\Umathquad\displaystyle not set error. Surprisingly, that error
doesn't crop up on my machine.

Here is the complete (working) repository:

https://gitlab.com/kumanna/context-slides/tree/master

Here is the commit that causes the error online. Notice that I am adding the
{\bf \nabla} character:

https://gitlab.com/kumanna/context-slides/commit/b723c15dff6d7312605947f8bf46549cf1b22088

Here is the failed build log:

https://gitlab.com/kumanna/context-slides/builds/9972477

Is there something I am missing?

Thanks.

Kumar
___
If your question is of interest to others as well, please add an 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] Evaluating a Lua expression at the end (repeat)

2016-08-25 Thread Kumar Appaiah
On Thu, Aug 25, 2016 at 5:49 PM, Henri Menke  wrote:
> Hi Kumar,
>
> the function job.variables.save seems to save the key in 
> job.variables.collected.macros instead of job.variables.collected.  The 
> problem is that macros is not created unconditionally, which is why you might 
> run into a »attempt to index a nil value« error without some manual error 
> checking.  Therefore I recommend assigning the temp value to 
> job.variables.tobesaved["document:temp:"..name].  Perhaps Hans joins this 
> discussion and schools me about why this could be a bad idea, but so far it 
> works.
>
> Also, I'd recommend making all your user level macros protected and check for 
> the optional argument in \startwhatever (otherwise you'll get errors like 
> »Macro doesn't match its definition«).  Because I'm really cautious I also 
> use \luaescapestring{#1} (Try for example »foo"bar« as a value without).




Indeed, this worked! I'll try to understand the internals myself to
know what is going on exactly. Thanks for the solution.

Kumar
___
If your question is of interest to others as well, please add an 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] Evaluating a Lua expression at the end (repeat)

2016-08-25 Thread Kumar Appaiah
Dear List,

Last year, Hans helped me with this example:


\starttext

\startluacode
 local name = nil
  local temp = 0

 function document.startwhatever(s)
   name = s
   temp = 0
end
 function document.addwhatever(n)
  temp = temp + n
   context(n)
end
 function
  document.stopwhatever()
   job.variables.save("document:temp:"..name,temp)
end
 function document.getwhatever(s)
  context(job.variables.collected["document:temp:"..s])
   end
   \stopluacode

\def\startwhatever[#1]{\ctxlua{document.startwhatever("#1")}}
\def\stopwhatever {\ctxlua{document.stopwhatever()}}
\def\addwhatever#1{\ctxlua{document.addwhatever(#1)}}
\def\getwhatever#1{\ctxlua{document.getwhatever("#1")}}

total: \getwhatever{foo}

\startwhatever[foo]

test 1: \addwhatever{10}\par
test 2: \addwhatever{20}\par
test 3: \addwhatever{30}\par

\stopwhatever

\stoptext

However, on my current ConTeXt on Debian (2016.05.17.20160523-1), I am
unable to get it working. It says:

lua error   > lua error on line 37 in file /tmp/test.tex:

/usr/share/texmf/tex/context/base/mkiv/core-uti.lua:165: attempt to
index upvalue 'tobesavedmacros' (a nil value)
stack traceback:
/usr/share/texmf/tex/context/base/mkiv/core-uti.lua:165: in
function 'save'
[ctxlua]:14: in function 'stopwhatever'
[ctxlua]:1: in main chunk

27 \def\getwhatever#1{\ctxlua{document.getwhatever("#1")}}
28
29 total: \getwhatever{foo}
30
31 \startwhatever[foo]
32
33 test 1: \addwhatever{10}\par
34 test 2: \addwhatever{20}\par
35 test 3: \addwhatever{30}\par
36
37 >>  \stopwhatever
38
39 \stoptext
40
41

Could you please suggest a workaround?

Thanks.

Kumar
___
If your question is of interest to others as well, please add an 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] Evaluating a Lua expression at the end

2015-04-13 Thread Kumar Appaiah
Hi.

I am trying to set up a system where I can use Lua to find a total
that I can display at the end. For example, if I set a question paper,
after each question, I do a \directlua{total = total + 4}, assuming
this question has 4 points. At the top of my document, I now want to
say Total points: and display the value of total.

Now, naturally, using \directlua gives me 0, since total is 0 at the
beginning. But \latelua didn't seem to be what I am looking for. Could
someone please guide me in the right direction?

Thanks.

Kumar
___
If your question is of interest to others as well, please add an 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] Evaluating a Lua expression at the end

2015-04-13 Thread Kumar Appaiah
On Mon, Apr 13, 2015 at 03:32:04PM +0200, Hans Hagen wrote:
 On 4/13/2015 1:53 PM, Kumar Appaiah wrote:
 Hi.
 
 I am trying to set up a system where I can use Lua to find a total
 that I can display at the end. For example, if I set a question paper,
 after each question, I do a \directlua{total = total + 4}, assuming
 this question has 4 points. At the top of my document, I now want to
 say Total points: and display the value of total.
 
 Now, naturally, using \directlua gives me 0, since total is 0 at the
 beginning. But \latelua didn't seem to be what I am looking for. Could
 someone please guide me in the right direction?
 
 forget about latelua ... by the time that kicks in typesetting is done
 already .. you need to go multipass:
 
 \starttext
 
 \startluacode
 local name = nil
 local temp = 0
 
 function document.startwhatever(s)
 name = s
 temp = 0
 end
 function document.addwhatever(n)
 temp = temp + n
 context(n)
 end
 function document.stopwhatever()
 job.variables.save(document:temp:..name,temp)
 end
 function document.getwhatever(s)
 context(job.variables.collected[document:temp:..s])
 end
 \stopluacode
 
 \def\startwhatever[#1]{\ctxlua{document.startwhatever(#1)}}
 \def\stopwhatever {\ctxlua{document.stopwhatever()}}
 \def\addwhatever#1{\ctxlua{document.addwhatever(#1)}}
 \def\getwhatever#1{\ctxlua{document.getwhatever(#1)}}
 
 total: \getwhatever{foo}
 
 \startwhatever[foo]
 
 test 1: \addwhatever{10}\par
 test 2: \addwhatever{20}\par
 test 3: \addwhatever{30}\par
 
 \stopwhatever
 
 \stoptext

Thanks Hans. This is what I needed!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Evaluating a Lua expression at the end

2015-04-13 Thread Kumar Appaiah
Dear Lukáš,

On Mon, Apr 13, 2015 at 02:26:38PM +0200, Procházka Lukáš Ing. - Pontex s. r. 
o. wrote:
 Hello Kumar,
 
 could you provide a (non-working) minimal example?
 
 I tried this:
 
 
 local C = context
 
 local n = 0
 
 C.starttext()
 
   C(A)
   n = n + 1
   C(B)
   n = n + 1
   C(C)
   n = n + 1
 
 print(***, n)
 
 C.stoptext()
 
 print(, n)
 
 
 and I got 3 (twice) - what I expected:

Thanks for the response. I am looking at something like this:

==
\starttext
\directlua{total = 0}
\title{Homework 1}

Total score: \directlua{tex.print(total);}

Question 1 (3 points)
\directlua{total = total + 3}

Question 2 (4 points)
\directlua{total = total + 4}

Question 3 (5 points)
\directlua{total = total + 5}

\stoptext
==

I expect the “Total score” to be followed by “12”, but I don't know
how to get that (or whether that is even possible).

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Using Euler with simplefonts

2015-01-05 Thread Kumar Appaiah
On Thu, Jan 01, 2015 at 03:52:53PM +0100, Wolfgang Schuster wrote:
You don’t have the opentype version [1] of the euler math font on your
system which is needed when you either the \definefontfamily command
or the pagellaovereuler typescript.
When you install the font on your system you can use it as shown
in the following example.
\definefontfamily [myfamily] [serif] [Linux Libertine O]
\definefontfamily [myfamily] [math]  [Neo Euler]
\setupbodyfont [myfamily]
\starttext
\m{c^2 = a^2 + b^2}
\stoptext
[1] [2]https://github.com/khaledhosny/euler-otf

Indeed, getting the OTF fixed all the issues. Thanks Wolfgang and John!

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

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

[NTG-context] Using Euler with simplefonts

2015-01-01 Thread Kumar Appaiah
Hi.

I am trying to use the simplefonts approach to get Euler for math,
along with TeX Gyre fonts for text. I've looked at some of the past
list archives and I haven't yet been able to figure this out.

I use TeXLive, and my context is 2014.05.21.20140528-1 (Debian
version). Here is the font blurb:

\definefontfamily [myfamily] [serif] [Linux Libertine O]
\definefontfamily [myfamily] [math] [Tex Gyre Schola Math]

Now, I have tried changing the TeX Gyre Schola Math to Neo Euler,
Euler and some other variants, but it doesn't work.

I do have the Euler VM fonts installed on my system. I have also tried
the example program given in http://www.ntg.nl/maps/32/06.pdf

\definetypeface[eulermath][mm][math][euler][euler][rscale=1]
\setupbodyfont [eulermath]
\starttext
\showmathcharacters
\stoptext

This works with texexec, but with context, it chokes.

Could you please provide me some pointers?

Thanks.

Kumar
___
If your question is of interest to others as well, please add an 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] Using Euler with simplefonts

2015-01-01 Thread Kumar Appaiah
On Thu, Jan 01, 2015 at 03:52:53PM +0100, Wolfgang Schuster wrote:
You don’t have the opentype version [1] of the euler math font on your
system which is needed when you either the \definefontfamily command
or the pagellaovereuler typescript.
When you install the font on your system you can use it as shown
in the following example.
\definefontfamily [myfamily] [serif] [Linux Libertine O]
\definefontfamily [myfamily] [math]  [Neo Euler]
\setupbodyfont [myfamily]
\starttext
\m{c^2 = a^2 + b^2}
\stoptext
[1] [2]https://github.com/khaledhosny/euler-otf

Indeed, getting the OTF fixed all the issues. Thanks Wolfgang and John!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Using Euler with simplefonts

2015-01-01 Thread Kumar Appaiah
On Thu, Jan 01, 2015 at 08:58:11AM -0500, John Kitzmiller wrote:
 On Jan 1, 2015, at 6:00 AM, Kumar Appaiah wrote:
 
  I am trying to use the simplefonts approach to get Euler for math,
  along with TeX Gyre fonts for text. 
 
 
 Here is setup magic from Hans and Aditya from August 2013:
 
 
 \usetypescriptfile[euler]
 \starttypescript[myfamily]
 \definetypeface[myfamily][rm][serif][pagella][default]
 \definetypeface[myfamily][ss][sans] [dejavu][default]
 \definetypeface[myfamily][tt][mono] [inconsolata][default]
 \definetypeface[myfamily][mm][math] [pagellaovereuler][default]
 \stoptypescript
 
 \usetypescript[myfamily]
 \setupbodyfont[myfamily]
 \appendtoks \rm \to \everymathematics
 \setupmathematics
  [lcgreek=normal, ucgreek=normal]
 
 
 One can change the families, e.g. schola for pagella, etc., but I think the  
 last [pagellaovereuler] and the rest has to stay.

Sadly, I get this:

INPUT FILE
==
\starttypescript[myfamily]
\definetypeface[myfamily][rm][serif][pagella][default]
\definetypeface[myfamily][ss][sans] [dejavu][default]
\definetypeface[myfamily][tt][mono] [inconsolata][default]
\definetypeface[myfamily][mm][math] [pagellaovereuler][default]
\stoptypescript

\usetypescript[myfamily]
\setupbodyfont[myfamily]
\appendtoks \rm \to \everymathematics
\setupmathematics
 [lcgreek=normal, ucgreek=normal]

\starttext
\startformula
x = y + z
\stopformula
\stoptext

ERROR OUTPUT

tex errorerror on line 18 in file /tmp/test.tex: ! Math
error: parameter \Umathquad\displaystyle is not set


\stopdisplaymath ...math \Ucheckedstopdisplaymath
  \par \ifvmode
  \ifcase \c_s...
\strc_formulas_stop_formula ...native \v!formula }
  \dostoptagged
  \dostoptagge...
l.18 \stopformula


 8
 9 \usetypescript[myfamily]
10 \setupbodyfont[myfamily]
11 \appendtoks \rm \to \everymathematics
12 \setupmathematics
13  [lcgreek=normal, ucgreek=normal]
14
15 \starttext
16 \startformula
17 x = y + z
18   \stopformula
19 \stoptext
20

What am I missing here?

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Using lua with the command line for macros

2013-10-14 Thread Kumar Appaiah
On Mon, Oct 14, 2013 at 09:47:49AM +0200, Hans Hagen wrote:
 Well, upon reading the document you suggested, I just realised that I
 could work around my issue by creating A.tex and B.tex as follows:
 
 A.tex:
 \startluacode
   -- define A's variables
 \stopluacode
 \input generic
 
 And a similar b.tex. This is more flexible in terms of my
 implementation constraints as well.
 
 if you make a file whatever.cld like:
 
 local name = ward.tex
 
 context.starttext()
 context.title(name)
 context.blank()
 context.input(name)
 context.stoptext()
 
 you can directly runt it with the context command.

Thanks Hans. This is a cleaner solution; I'll adopt it in the next
document I am writing today.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Using lua with the command line for macros

2013-10-13 Thread Kumar Appaiah
On Mon, Oct 14, 2013 at 03:17:28AM +0200, luigi scarso wrote:
On Mon, Oct 14, 2013 at 3:01 AM, Kumar Appaiah
[1]a.ku...@alumni.iitm.ac.in wrote:
 
  Hi.
 
  At the outset, I understand that this is a slight abuse of LuaTeX and
  this can be done with plain TeX. Nevertheless, I'd like to see if a
  solution exists for this approach.
[snip]
 
Have you seen
[2]http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf

No, I haven't seen it. I'll have a close look at it. Thanks for the
pointer.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Using lua with the command line for macros

2013-10-13 Thread Kumar Appaiah
On Sun, Oct 13, 2013 at 09:31:11PM -0400, Kumar Appaiah wrote:
 On Mon, Oct 14, 2013 at 03:17:28AM +0200, luigi scarso wrote:
 Have you seen
 [2]http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf
 
 No, I haven't seen it. I'll have a close look at it. Thanks for the
 pointer.

Well, upon reading the document you suggested, I just realised that I
could work around my issue by creating A.tex and B.tex as follows:

A.tex:
\startluacode
 -- define A's variables
\stopluacode
\input generic

And a similar b.tex. This is more flexible in terms of my
implementation constraints as well.

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Quick slide templates

2013-02-20 Thread Kumar Appaiah
On Wed, Feb 20, 2013 at 11:58:24AM +0100, Jaroslav Hajtmar wrote:
 Hello Kumar.
 I make my PDF animations so that I first create a single multi-page
 PDF file whose separate pages are separate animation frames.
 Then this auxiliary PDF file I put into another PDF file using \ fieldstack.
 Here's how I prepare a separate animation file.
 
 
 \def\setmyparameter#1#2{%
 \global\def\myparameter{#2}#1%
 }%
 
 \def\processmyparameters[#1]#2%
   {\processcommalist[#1]{\setmyparameter{#2}}}
 
 \startbuffer [greenbar]
   \blackrule[width=\myparameter, height=5mm, color=green]
 \stopbuffer
 
 
 \starttext
 
 \processmyparameters[1cm,2cm,3.5cm,4.5cm,8cm,11cm]{
   \getbuffer[greenbar]\page}
 
 \stoptext

Thank you for this solution. I just tried this, and this works well
for me as well!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Quick slide templates

2013-02-20 Thread Kumar Appaiah
On Wed, Feb 20, 2013 at 10:16:30AM +0100, Marco Patzer wrote:
  I am making a presentation that involves some simple animations. The
  way I make those animations is by:
  
  1. Stopping page numbering.
  2. Flipping through the same slide repeated, but with img0, img1, img2 etc.
  3. Start page numbering.
  
  The problem with my naïve approach of repeating slides is that fixing
  a spelling error or making changes implies that I have to do it several
  times for an “animated” slide, and is error-prone.
 
 You could use buffers:
 
 \newdimen\cnt
 \starttext
 
 \startbuffer [greenbar]
   \blackrule[width=4cm, height=5mm, color=green]
 \stopbuffer
 
 \dorecurse{10}{%%
   \blackrule[width=\textwidth]
   \advance\cnt1cm \hskip\cnt
   \getbuffer[greenbar]\page}
 
 \stoptext

This is a lovely solution, and I'll put off learning LuaTeX for
now. Thanks! :-)

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Quick slide templates

2013-02-19 Thread Kumar Appaiah
Dear ConTeXt list,

This could be more of a style and TeX question than a ConTeXt
question. Nevertheles:

I am making a presentation that involves some simple animations. The
way I make those animations is by:

1. Stopping page numbering.
2. Flipping through the same slide repeated, but with img0, img1, img2 etc.
3. Start page numbering.

The problem with my naïve approach of repeating slides is that fixing
a spelling error or making changes implies that I have to do it several
times for an “animated” slide, and is error-prone. Could you point me
to a way by which I can make a slide something like a “function” whose
argument is the image, and calling it creates that slide with an
image?

FWIW, I use texexec --xtx, but I am guessing a LuaTeX solution would
be simpler. The XeTeX solution is what I am not able to find now.

Thanks!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Footnote rule colour

2013-02-15 Thread Kumar Appaiah
Dear ConTeXt list,

I am trying to use footnotes in a presentation, and the text colour I
am using is white. Now, I've managed to set up the frame I want, and
the footnote appears in white, but the line rule above the footnotes
still appears black. Could you please let me know how I can make that
line white as well?

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Footnote rule colour

2013-02-15 Thread Kumar Appaiah
On Fri, Feb 15, 2013 at 04:31:37PM -0600, Kumar Appaiah wrote:
 Dear ConTeXt list,
 
 I am trying to use footnotes in a presentation, and the text colour I
 am using is white. Now, I've managed to set up the frame I want, and
 the footnote appears in white, but the line rule above the footnotes
 still appears black. Could you please let me know how I can make that
 line white as well?

On the flip side, I can't get the footnote colour right either. How do
I get white footnotes with white rule lines?

Thanks!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Footnote rule colour

2013-02-15 Thread Kumar Appaiah
On Fri, Feb 15, 2013 at 04:43:21PM -0600, Kumar Appaiah wrote:
 On Fri, Feb 15, 2013 at 04:31:37PM -0600, Kumar Appaiah wrote:
  Dear ConTeXt list,
  
  I am trying to use footnotes in a presentation, and the text colour I
  am using is white. Now, I've managed to set up the frame I want, and
  the footnote appears in white, but the line rule above the footnotes
  still appears black. Could you please let me know how I can make that
  line white as well?
 
 On the flip side, I can't get the footnote colour right either. How do
 I get white footnotes with white rule lines?

I got it. rulecolor is the option to setupfootnotes that did the
trick!

I'll try looking and the source code more often to figure out what
options are used for various commands, since the documentation doesn't
seem to cover all options.

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Bold math trouble

2012-08-12 Thread Kumar Appaiah
Hi.

I use ConTeXt in Debian. If this helps, please keep it in mind:

dpkg -l context gives:
ii  context   2012.05.30.20120611-1

Now, if you consider the following:

code
\usetypescript[palatino][texnansi]
\definetypeface[mainface][mm][math][modern][modern][encoding=texnansi]
\definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi]
\switchtobodyfont[palatino,14pt]

\starttext
Hi
\startformula
x = \boldsymbol{\Sigma}\Sigma
\stopformula
\stoptext
/code

The issue I have is that this doesn't work, and throws me:

! Math formula deleted: Insufficient symbol fonts.
\mathboldsymbol ...t]$\mathsurround \zeropoint #1$
  }} {\hbox {\switchtoformul...
l.9 x = \boldsymbol{\Sigma}
   \Sigma

However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is
there something I am doing wrong?

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Bold math trouble

2012-08-12 Thread Kumar Appaiah
Dear Hans,

On Mon, Aug 13, 2012 at 12:41:09AM +0200, Hans Hagen wrote:
 you can try ad here:
 
 \definebodyfontenvironment[14pt]

Thanks.

 \usetypescript[palatino][texnansi]
 \definetypeface[mainface][mm][math][modern][modern][encoding=texnansi]
 \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] 
 [encoding=texnansi]
 \switchtobodyfont[palatino,14pt]
 
 \starttext
 Hi
 \startformula
 x = \boldsymbol{\Sigma}\Sigma
 \stopformula
 \stoptext
 /code
 
 The issue I have is that this doesn't work, and throws me:
 
 ! Math formula deleted: Insufficient symbol fonts.
 \mathboldsymbol ...t]$\mathsurround \zeropoint #1$
}} {\hbox 
  {\switchtoformul...
 l.9 x = \boldsymbol{\Sigma}
 \Sigma
 
 However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is
 there something I am doing wrong?
 
 maybe there is no bold math available

I see. In other words, you are saying that I don't have the fonts to
generate bold math at those sizes?

I'll settle with a workaround without bold math for now, then.

Thanks!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] LinearShade trouble

2011-03-30 Thread Kumar Appaiah
Dear ConTeXt list,

I have been having troubles with LinearShade with ConTeXt for quite a
while, even with the latest version.

Steps to reproduce:
There is a test.tex at the bottom of this e-mail:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580447#5

Copy paste it into the ConTeXt Live interface at the ConTeXt
Garden. Result is blank.

But what I expect (produced with an ancient version of ConTeXt, Debian
version 2008.05.21-1):

http://people.debian.org/~akumar/dump/test_expected.pdf

Could you please let me know where things are going wrong? The mail
has the log files attached.

Thanks.

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] LinearShade trouble

2011-03-30 Thread Kumar Appaiah
Dear Hans,

On Wed, Mar 30, 2011 at 08:48:15AM +0200, Hans Hagen wrote:
 I have been having troubles with LinearShade with ConTeXt for quite a
 while, even with the latest version.
 
 Steps to reproduce:
 There is a test.tex at the bottom of this e-mail:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580447#5
 
 Copy paste it into the ConTeXt Live interface at the ConTeXt
 Garden. Result is blank.
 
 best post the minimal example here and tell us what version you run;
 the benchmark is context mkiv as of today (not much has changed in
 mkii anyway)

Thanks. Here's the code:

file
\setuppapersize[S6][S6]
\setuppagenumbering[state=stop]
\switchtobodyfont[modern,20pt]
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=darkblue]
\startcolor[white]
\setuptolerance[verytolerant,stretch] 
\definecolor[a][r=0,g=0,b=1]
\definecolor[b][r=0,g=0,b=0.05]

\startuniqueMPgraphic{LinearShade}
path p ;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
linear_shade(p,6,\MPcolor{a},\MPcolor{b}) ;
\stopuniqueMPgraphic

\defineoverlay[shaded][\useMPgraphic{LinearShade}]

\setupbackgrounds[page][background={shaded}]
\starttext

Here's my first presentation in \CONTEXT!

Isn't it amazing?

\stoptext
/file

This is from an old ConTeXt example I copied from your documentation
(I don't recall exactly).

Thanks!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] LinearShade trouble

2011-03-30 Thread Kumar Appaiah
On Wed, Mar 30, 2011 at 09:04:41AM +0200, Marco wrote:
  There is a test.tex at the bottom of this e-mail:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580447#5
  
  Copy paste it into the ConTeXt Live interface at the ConTeXt
  Garden. Result is blank.
  
  But what I expect (produced with an ancient version of ConTeXt, Debian
  version 2008.05.21-1):
  
  http://people.debian.org/~akumar/dump/test_expected.pdf
  
  Could you please let me know where things are going
  wrong? The mail has the log files attached.
 
 You have a problem with metapost not being run. Search the
 contextgarden for write18 for the solution.
 
 BTW: You cannot use the contextgarden to check if you code
 is working. The same restrictions as on your system apply.
 Consider using mkiv as Hans suggested.

Indeed, this was the solution. I added metafun to
shell_escape_commands, and that did the trick!

Thanks!

Kumar
-- 
Kumar Appaiah
___
If your question is of interest to others as well, please add an 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] Margins around figures

2007-09-08 Thread Kumar Appaiah
Dear Mojka,

On Sat, Sep 08, 2007 at 11:14:30AM +0200, Mojca Miklavec wrote:
 Since plain metapost doesn't know about ConTeXt (metafun) extentions,
 you need to:
 - either add a line input metafun ; at the top of your metapost files

This works just as I expect! Many thanks!

 - or run mptopdf seminar.mp which will run metapost+create PDF
 instead of running mpost/mp seminar.mp first and convert to PDF
 later

This gives me some font issues, but I am not really bothered, since
the excitement of seeing the first solution work has stopped me from
probing further here.

 When including a picture in ConTeXt, one options could also be to use:
 \framed[frame=off,offset=1cm,strut=no,background=color,backgroundcolor=white]%
 {\externalfigure[...]}
 But that's slightly long and tedious, unless you write your own macro
 wrapper around it.

I understand, but it will be useful elsewhere.

Again, many thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] Margins around figures

2007-09-07 Thread Kumar Appaiah
On Fri, Sep 07, 2007 at 11:16:50PM +0530, Kumar Appaiah wrote:
 But, is there still an elegant way to have more margin in MetaPost
 images?

OK, a cheap and dirty workaround: define a blank label at a location
outside the bounds of your actual picture, and MetaPost does the
needful. Inelegant, but works for now.

My next free-time-assignment is to learn MetaFun, since I've read
enough to know that by not knowing it, I'm missing something
significant.

Thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] Margins around figures

2007-09-07 Thread Kumar Appaiah
On Fri, Sep 07, 2007 at 09:18:30AM +0200, Oliver Buerschaper wrote:
 Perhaps
 
 setbounds currentpicture to boundingbox currentpicture enlarged 5mm;
 
 at the end of your MetaPost drawing might do what you want?

That's probably in the right direction, but the MetaPost newbie I am,
I am unable to figure out the error:

mpost seminar.mp
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
(/usr/share/texmf-texlive/metapost/base/boxes.mp)
 boundingbox.currentpicture.enlarged1cm
! Improper `clip'.
to be read again 
   ;
l.26 ...o boundingbox currentpicture enlarged 1cm;
  
?

What error could this be? The line I added is:
 setbounds currentpicture to boundingbox currentpicture enlarged 1cm;

Thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] Margins around figures

2007-09-07 Thread Kumar Appaiah
On Fri, Sep 07, 2007 at 12:31:26PM +0200, Wolfgang Schuster wrote:
 He can set the offset in ConTeXt and not in MetaPost, e.g.
 
 \offset[leftoffset=...]{\externalfigure[fugurename]}
 
 The \offset command is described in the details manual, he can also
 look at the definition in core-box.

Well, that seems to be a nice option, but it fills the offset region
in the background colour instead of white. I'll try to figure out if
there's some workaround for that. Also, I'll try Oliver's solution,
though it seems to generate full pages and not individual images.

But, is there still an elegant way to have more margin in MetaPost
images?

Thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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] Margins around figures

2007-09-06 Thread Kumar Appaiah
Deat ConTeXt users,

I am making a presentation with ConTeXt, with numerous MetaPost
figures. Now, the only problem is that my white MetaPost figures don't
blend well with the dark background of the screen. This isn't too good
since the text labels in my figure's edges appear too close to the
edge. What I'd like to know is, whether there's a way to specify some
extra margin space around the figure, which would provide some more
white area around the MetaPost figure. Alternately, is there an
elegant MetaPost way of specifying figure margins?

Oh, and my MetaPost files are in separate .mp files; I include them
after converting.

Thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] texgyre

2007-09-05 Thread Kumar Appaiah
On Wed, Sep 05, 2007 at 01:48:55PM +0200, Andrea Valle wrote:
 (Doesn't work here the url)

http://www.gust.org.pl/projects/e-foundry/tex-gyre works.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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] Background colour of included PDF images

2007-09-01 Thread Kumar Appaiah
Dear ConTeXt users,

I am making a presentation using ConTeXt, and wish to use some plain
images. I am running into some trouble, especially with the background
colour of the image, which I wish to force. Here is some information:

1. I make the image using Dia, and export it.
2. I include the EPS directly, and Acrobat doesn't like it.
3. I epstopdf the images, they come otu well, except that they are
   transparent and the images with black text and lines looks bad on
   my dark background presentation.

I partially worked around the problem by using background=screen in my
\useexternalfigure calls. However, I have a combination image, where
the second image comes without the white filled background.

Could you please tell me a way to force the background colour of my
images to white? I really don't want to convert it to PNG or
something, since PNG doesn't look nice after scaling, does it? :-)

Thanks in advance.

And FYI:

Version: Debian package:
CtxTools | context version: 2007.04.17 12:51 
(/usr/share/texmf/tex/context/base/context.tex)
CtxTools | context version: 2007.04.17 12:51 
(/usr/share/texmf/tex/context/base/cont-new.tex)

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
If your question is of interest to others as well, please add an 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
___


Re: [NTG-context] Background colour of included PDF images

2007-09-01 Thread Kumar Appaiah
Wolfgang Schuster writes:
 you are not restricted to a gray background in your figures, you can
 also use colors.
 
 \externalfigure[...][background=color,backgroundcolor=white]

I seriously don't know why I didn't try it... it works wonderfully!

Thanks a lot! :-)

Kumar


___
If your question is of interest to others as well, please add an 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] Chapters without page breaks

2007-03-05 Thread Kumar Appaiah
Dear ConTeXt users,

I was wondering whether there was a simply way to avoid a page break
after \chapter. It'd be nice, since I am writing a small report.

I did try \setupsectionblock, but didn't quite get it. Could you
please suggest the right way?

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Chapters without page breaks

2007-03-05 Thread Kumar Appaiah
On Mon, Mar 05, 2007 at 02:03:40PM +0100, Wolfgang Schuster wrote:
 Hi Kumar,
 
 if you mean the page break before a chapter you can use
 \setuphead[chapter][page=no].

Many thanks! That's exactly what I wanted.

Kumar

-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Forcing pictures to stay in sections

2007-02-21 Thread Kumar Appaiah
On Wed, Feb 21, 2007 at 10:28:20AM +0100, Hans Hagen wrote:
 \placefloats will flush pending floats 

Thanks. Works the way I expect it to!

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


[NTG-context] Forcing pictures to stay in sections

2007-02-20 Thread Kumar Appaiah
Dear ConTeXt users,

I would like to do something like this:

I have a couple of sections in my page, and some graphics (fairly big,
each 1/4th of the page size, say) to be laid out in the sections. Now,
there are some sections in which one of the pictures is laid out on
one page with some text, but there isn't place to get the image on the
same page. So, the image is put on the next page. However, if I start
a new section, the image appears under the new section (that is, after
the new section heading), which I don't want. How do I enforce the
picture to be laid out before the next section heading?

One simple way to do it would be to force a new page before a section,
but I want to save that space! :-)

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] new user seeks help

2007-02-10 Thread Kumar Appaiah
On Sat, Feb 10, 2007 at 05:51:10AM -0500, David C. Walden wrote:
 Hi,
 
 I tried ConTeXt for the first time a couple of days ago and
 successfully created a 4 page letter.  Yesterday I converted
 a 60 page booklet from LaTeX to ConTeXt where is now successfully
 compiles (but without lots of formatting that I will need to figure
 out how to apply).  My problem has to do with using a font
 other than the default (CM I guess).  Commands such as the following
 have no apparent effect:
 \setupbodyfont[palatino]
 \setupbodyfont[lbr]
 Do I need to select some interface to the fonts like I
 do in LaTeX when I say
 \usepackage{lucidabr}
 or do I need to do some something with TeXfont even though
 these fonts are already available to MiKTeX for my use with
 LaTeX?

http://home.salamander.com/~wmcclain/context-help.html#texlive-fonts

This helps. Also, the links at
http://wiki.contextgarden.net/Fonts are helpful.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-07 Thread Kumar Appaiah
On Wed, Feb 07, 2007 at 09:24:09AM +0100, Taco Hoekwater wrote:
 Good thinking! But unfortunately, this won't work if you do it
 like this.
 
 You have to give the same commandline as context's texexec does.
 Dvips does not support mapfile \specials, so unless you feed it
 the needed files on the commandline, it will read the wrong map
 file.
 
 The used commandline is included as a comment at the top of the
 generated postscript file, so the best approach is to do a run of
 texexec --dvi and then extract the commandline from the output
 (and insert the -d 127 , of course)

Done that. Now, it does seem that the map files are being looked
at. However, doing this results in a new PS file, where the fonts for
math look awful. The specimen is here:

http://www.ee.iitm.ac.in/~ee03b091/test.ps

And the dvips command extracted from the PS file is:

dvips -d 127 -u +texnansi-public-lm -u +original-base -u \
+ec-public-lm -u +ec-base -u +lm-ec -u +lm-math -u +8r-base -u \
+t5-base -u +original-ams-base -u +original-ams-euler -u \
original-public-lm test

And the dvips output is at the same place:
http://www.ee.iitm.ac.in/~ee03b091/dvips_output.bz2

Hope I'm getting somewhere. Thanks for the support!

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-07 Thread Kumar Appaiah
On Wed, Feb 07, 2007 at 02:22:39PM +0100, Taco Hoekwater wrote:
 After looking at the files, I think I now know what is going wrong.
 
 The map file line is
 
cmr12 CMR12 lm-rep-cmrm.enc  lmr12.pfb
 
 dvips takes this to mean: you should include both files, and
 then try to reencode the font CMR12 into the encoding specified
 in the enc file. When it starts writing the output document, it
 discovers there is no 'CMR12' font (the pfb defines the font
 LMRoman12-Regular), so it does not reencode anything, after all.
 
 It should work out ok if you change the map file line to either:
 
cmr12  LMRoman12-Regular   lm-rep-cmrm.enc  lmr12.pfb
 
 or
 
cmr12 CMR12cmr12.pfb

Well, here's another piece of information; the output of updmap:

(Whole output included).

output
updmap: This is updmap, version 1122009795-debian
updmap: using transcript file `/home/kumar/.texmf-var/web2c/updmap.log'

updmap is creating new map files using the following configuration:

  config file: `/var/lib/texmf/web2c/updmap.cfg'
  dvips output directory: `/home/kumar/.texmf-var/fonts/map/dvips/updmap'
  pdftex output directory: `/home/kumar/.texmf-var/fonts/map/pdftex/updmap'
  dvipdfm output directory: `/home/kumar/.texmf-var/fonts/map/dvipdfm/updmap'

  prefer outlines: `true'
  texhash enabled: `true'
  download standard fonts (dvips): `false'
  download standard fonts (pdftex): `true'
  download standard fonts (dvipdfm): `true'

updmap: Scanning for LW35 support files
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/tetex/dvips35.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/tetex/pdftex35.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/tetex/dvipdfm35.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/tetex/ps2pk35.map'

updmap: Scanning for MixedMap entries:
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/ams/ams-bsr-interpolated.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/ams/ams-bsr.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/ams/ams-cmcsc-bsr-interpolated.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/cm/cmother-bsr.map'
updmap: using map file 
`/usr/share/texmf/fonts/map/dvips/cm-super/cm-super-t1.map'
updmap: using map file 
`/usr/share/texmf/fonts/map/dvips/cm-super/cm-super-t2a.map'
updmap: using map file 
`/usr/share/texmf/fonts/map/dvips/cm-super/cm-super-t2b.map'
updmap: using map file 
`/usr/share/texmf/fonts/map/dvips/cm-super/cm-super-t2c.map'
updmap: using map file 
`/usr/share/texmf/fonts/map/dvips/cm-super/cm-super-ts1.map'
updmap: using map file 
`/usr/share/texmf/fonts/map/dvips/cm-super/cm-super-x2.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/cm/cmtext-bsr-interpolated.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/cm/cmtext-bsr.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/eurosym/eurosym.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/latex/latex-bsr.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/mflogo/mflogo.map'
updmap: using map file `/usr/share/texmf-texlive/fonts/map/dvips/rsfs/rsfs.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/cmex/ttcmex.map'
updmap: using map file `/usr/share/texmf-texlive/fonts/map/dvips/wasy/wasy.map'

updmap: Scanning for Map entries:
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/psnfss/charter.map'
updmap: using map file `/usr/share/texmf/fonts/map/dvips/lm/cork-lm.map'
updmap: using map file 
`/usr/share/texmf-texlive/fonts/map/dvips/psnfss/fpls.map'
updmap: using map file `/usr/share/texmf/fonts/map/dvips/lm/lm-ec.map'
updmap: using map file `/usr/share/texmf/fonts/map/dvips/lm/lm-el.map'

!!! ERROR! The map file `lm.map' has not been found at all.

Either put this file into the right place or remove the
reference from the configuration file. An automatic way
to disable unavailable map files is to call
  updmap --syncwithtrees

For manual editing, call
  updmap --edit
/output

Does this have something to do with the problem?

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-07 Thread Kumar Appaiah
On Wed, Feb 07, 2007 at 02:22:39PM +0100, Taco Hoekwater wrote:
 After looking at the files, I think I now know what is going wrong.
 
 The map file line is
 
cmr12 CMR12 lm-rep-cmrm.enc  lmr12.pfb
 
 dvips takes this to mean: you should include both files, and
 then try to reencode the font CMR12 into the encoding specified
 in the enc file. When it starts writing the output document, it
 discovers there is no 'CMR12' font (the pfb defines the font
 LMRoman12-Regular), so it does not reencode anything, after all.
 
 It should work out ok if you change the map file line to either:
 
cmr12  LMRoman12-Regular   lm-rep-cmrm.enc  lmr12.pfb

This didn't work.

 or
 
cmr12 CMR12cmr12.pfb

This worked. Now, things are quite all right, except that I am still
unhappy with the rendering in Acrobat. But at least the things seem to
be mostly solved with this one.

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-07 Thread Kumar Appaiah
On Wed, Feb 07, 2007 at 08:25:22PM +0530, Kumar Appaiah wrote:
  It should work out ok if you change the map file line to either:
  
 cmr12  LMRoman12-Regular   lm-rep-cmrm.enc  lmr12.pfb
 
 This didn't work.
 
  or
  
 cmr12 CMR12cmr12.pfb
 
 This worked. Now, things are quite all right, except that I am still
 unhappy with the rendering in Acrobat. But at least the things seem to
 be mostly solved with this one.

Thanks for all the help, but one final question before I give up!

IF I use pdflatex, this is the header of a PS file I get upon doing
dvips:

%!PS-Adobe-2.0
%%Creator: dvips(k) 5.95b Copyright 2005 Radical Eye Software
%%Title: myfile.dvi
%%Pages: 1
%%PageOrder: Ascend
%%BoundingBox: 0 0 595 842
%%DocumentFonts: CMR17 CMR12 CMBX12 CMR10 CMMI12 CMEX10 CMSY8 CMMI8 CMR8
%%+ MSBM10 CMR7 CMBX10 

However, for ConTeXt, the output I get is:

%!PS-Adobe-2.0
%%Creator: dvips(k) 5.95b Copyright 2005 Radical Eye Software
%%Title: test.dvi
%%Pages: 1
%%PageOrder: Ascend
%%BoundingBox: 0 0 595 842
%%DocumentFonts: LMRoman12-Regular CMR12 LMMathItalic9-Italic
%%+ LMMathItalic12-Italic LMMathSymbols10-Italic

Now, is there any way to force the fonts to map on to the old CMR
names? That is because I feel it is because of the CMR/lmodern issue
that pdflatex generated PDFs appear properly, while ConTeXt ones
don't. What should the map file look like?

Also, please find the Debian default map file here:

http://www.ee.iitm.ac.in/~ee03b091/original-public-lm.map.gz

Thanks for bearing with me. I want to try my best before giving up,
failing which I will be forced to return to teTeX (with the old
ConTeXt) and miss out on some new ConTeXt niceties, such as
\startalign etc.

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-07 Thread Kumar Appaiah
On Thu, Feb 08, 2007 at 06:53:31AM +0530, Kumar Appaiah wrote:
[snip]

Latest update: my PDF files appear (exactly) the same way as the files
generated by http://live.contextgarden.net. Does that mean my
installation is OK?

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-06 Thread Kumar Appaiah
On Tue, Feb 06, 2007 at 09:05:22AM +0100, Taco Hoekwater wrote:
 I see that file is created by dvips. To help with debugging,
 I am very interested source, dvi, tex log, dvips screen output,
 and ps2pdf screen output of this document.
 
 I am also interested in the pdftex output and log.

I have tarred the whole directory and put it in the same file:

http://www.ee.iitm.ac.in/~ee03b091/compile.tar.bz2

Of course, I couldn't make out much from the logs, but there do seem
to be some odd things, like cont-sys.tex not being found etc., but
that may be normal. Of course, more experienced persons: please throw
some light.

Thanks!

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-06 Thread Kumar Appaiah
On Tue, Feb 06, 2007 at 02:07:02PM +0530, Kumar Appaiah wrote:
 I have tarred the whole directory and put it in the same file:
 
 http://www.ee.iitm.ac.in/~ee03b091/compile.tar.bz2
 
 Of course, I couldn't make out much from the logs, but there do seem
 to be some odd things, like cont-sys.tex not being found etc., but
 that may be normal. Of course, more experienced persons: please throw
 some light.

And one more observation. dvipdfmx converts the math fonts correctly,
and math symbols appear right. However, the font still doesn't look
the same in Acrobat, like that which I get if I use the old ConTeXt.

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-06 Thread Kumar Appaiah
On Tue, Feb 06, 2007 at 10:17:45AM +0100, Hans Hagen wrote:
 how does it look when printed ... rendering is hinting dependent 

Haven't printed it, yet, but I think it would be a fair assumption
that printing would give a result as expected; i.e. it will print as
well as any other document.

So, that means I shouldn't worry about the slightly bad rendering?
That is all right. But I am yet to figure out why dvips/divpdf fail
while dvipdfmx seems to get the math symbols right.

Thanks.

Kumar
-- 
Kumar Appaiah
462, Jamuna Hostel,
Indian Institute of Technology Madras
Chennai - 600036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with fonts

2007-02-06 Thread Kumar Appaiah
On Tue, Feb 06, 2007 at 02:53:41PM +0100, Norbert Preining wrote:
 This is strange. I have these \Omegas occuring without any problem!
 
 I also tried a minimal example:
 \starttext
 This should be Omega subscript s: $\Omega_s$
 
 This should be 2 times pi cdot 11: $2\pi \cdot 11$ 
 \stoptext
 and it showed up correct.

OK, so here's the diagnosis. The file you have quoted above is what I
used.

1. texexec test.tex: Gives a PDF which renders all symbols. However,
   the font display in Acrobat isn't perfect (it's a bit light), but
   should be perfect when printed.

2. texexec --dvi test.tex;dvips test.dvi;ps2pdf test.ps: Same result
   as the previous.

3. texexec --dvi test.tex;dvips -Ppdf test.dvi;ps2pdf test.ps: Oops!
   \cdot is missing

4. texexec --dvi test.tex;dvipdf test.dvi: Oops! \cdot is missing again!

If you still need test.log, I can upload it, but it doesn't have
anything strange. Also, as Taco had suggested regarding the map file,
I checked that original-public-lm.map has the entry for cmr10 etc.

Finally, hoping that I'm being smart, I have bzip2ed the output of
dvips -d 127 -Ppdf test.dvi. Please check the directories searched for
the map file; the directory in which original-public-lm resides is
/usr/share/texmf/fonts/map/pdftex/context and it doesn't appear on
that list, but I'd like you to confirm.

Get it at http://www.ee.iitm.ac.in/~ee03b091/dvips_output.bz2

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-05 Thread Kumar Appaiah
On Mon, Feb 05, 2007 at 06:07:47PM +0100, Norbert Preining wrote:
 Good. Now that I know this I could track down the problem which was
 reported to something else but the lm fonts, namely to a buggy \pm
 command.

Same holds for \Omega. Actually, there is something wrong with the
fonts; CMR fonts don't seem to be used. Here is an example:

See caption for figures 4, 5, 6 etc. These should have a \Omega
wherever there's a blank. Also move to the last page, the font
rendering for math is far from OK. I am, in general, unhappy with the
fonts: http://www.ee.iitm.ac.in/~ee03b091/ee03b091.pdf

A similar document made with the old ConTeXt is:
http://www.ee.iitm.ac.in/~ee03b091/ee03b091_nice.pdf
The fonts render very well in Acrobat as well as have all
symbols. This is what I was mentioning.

Dr. Norbert Preining (Debian TeX maintainer) writes this:

quote
On Mon, 05 Feb 2007, Kumar Appaiah wrote:
 OK, so it's the \pm stuff. But I am still not exactly happy with the
 way the fonts come in Acrobat. The characters look somewhat nicer even

Well, this is the switch to lmodern in all the fonts. Your
(ee03b091_nice.pdf) document has these fonts:
QGWSVP+CMR10 Type 1C  yes yes no  10  0
GLMABO+CMCSC10   Type 1C  yes yes no   8  0
KOSSLE+CMBX10Type 1C  yes yes no  12  0
TBOINI+CMR7  Type 1C  yes yes no  29  0
IGJFUT+CMMI5 Type 1C  yes yes no  27  0
YFUUGZ+CMSY7 Type 1C  yes yes no  25  0
SZFXRB+CMMI7 Type 1C  yes yes no  23  0
MXALVP+CMSY10Type 1C  yes yes no  21  0
KJSMVL+CMMI10Type 1C  yes yes no  19  0
DZLVPI+CMTT8 Type 1C  yes yes no  53  0
KRZXUD+CMTT10Type 1C  yes yes no  65  0

while the new one ships:
KOSSLE+LMRoman10-BoldType 1C  yes yes no  13  0
KHXVKD+LMRoman10-Regular Type 1C  yes yes no  11  0
GLMABO+LMRoman10-CapsRegular Type 1C  yes yes no   9  0
XJFWIW+CMR10 Type 1C  yes yes no  25  0
VUKLKL+LMMathSymbols10-ItalicType 1C  yes yes no  23  0
OPSIHW+LMMathItalic10-Italic Type 1C  yes yes no  21  0
TBOINI+CMR7  Type 1C  yes yes no  33  0
IGJFUT+LMMathItalic5-Italic  Type 1C  yes yes no  31  0
LLFODD+LMMathSymbols7-Italic Type 1C  yes yes no  29  0
SZFXRB+LMMathItalic7-Italic  Type 1C  yes yes no  27  0
DZLVPI+LMTypewriter8-Regular Type 1C  yes yes no  62  0

Complain to ConTeXt about this switch, or ask them to support the cmr
fonts. This is probaly the only way to go.
unquote

So, what is the suggestion?

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems with fonts

2007-02-05 Thread Kumar Appaiah
On Tue, Feb 06, 2007 at 07:09:38AM +0530, Kumar Appaiah wrote:
 Same holds for \Omega. Actually, there is something wrong with the
 fonts; CMR fonts don't seem to be used. Here is an example:
 
 See caption for figures 4, 5, 6 etc. These should have a \Omega
 wherever there's a blank. Also move to the last page, the font
 rendering for math is far from OK. I am, in general, unhappy with the
 fonts: http://www.ee.iitm.ac.in/~ee03b091/ee03b091.pdf
 
 A similar document made with the old ConTeXt is:
 http://www.ee.iitm.ac.in/~ee03b091/ee03b091_nice.pdf
 The fonts render very well in Acrobat as well as have all
 symbols. This is what I was mentioning.

And the TeX source (to the second document actually) with EPS images,
is at http://www.ee.iitm.ac.in/~ee03b091/compile.tar.bz2

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


[NTG-context] Problems with fonts

2007-02-04 Thread Kumar Appaiah
Dear ConTeXt users,

I am a Debian GNU/Linux user. I recently upgraded from an old teTeX to the
latest ConTeXt in Debian. With the upgrade, however, I got a missing
cont-en.fmt error (http://bugs.debian.org/409575) which I solved by doing a
texexec --make --all, and placing the cont-en.fmt from my .texmf-config into
/var/lib/texmf/web2c and ran texhash. Things seem to be OK.

But now, whenever I do texexec filename, I get a PDF with many mathematical
symbols missing. So, I do this:

texexec --dvi ee03b091.tex
dvips ee03b091.dvi
ps2pdf ee03b091.ps

Now, this seems to work, but the fonts are not rendered as well as they used
to in Acrobat.

And this also does not give the fonts, but causes the same math trouble again:

texexec --dvi ee03b091.tex  
dvips -o ee03b091.ps -Ppdf ee03b091.dvi 
ps2pdf ee03b091.ps

What could be wrong? Is my installation broken? Can I salvage it?

Thanks.

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


Re: [NTG-context] Problems with fonts

2007-02-04 Thread Kumar Appaiah
On Sun, Feb 04, 2007 at 09:35:40AM -0800, Mike Bird wrote:
 FWIW, I've had better luck with a slightly earlier version of
 context (before the big pdftex and lm changes):
 
 http://www.tug.org/texlive/Debian/context/context_2007.01.12.2-1_all.deb

I'll do the downgrade and get back to you. Thanks for the suggestion.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

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


Re: [NTG-context] Problems installing Gentium TTF

2006-01-22 Thread Kumar Appaiah
On Sat, Jan 21, 2006 at 07:41:47PM +0100, Henning Hraban Ramm wrote:
 Am 2006-01-21 um 17:56 schrieb Kumar Appaiah:
 
 from texexec. I have installed the fonts with --en=ec, so that is
 ruled out. What could the problem be?
 
 I don't know where your problems come from.
 You could just try using the package from my site:
 http://www.fiee.net/texnique/?menu=0-1-4
 
 Don't forget to texhash!
 

Thanks. I did the same, and I still have a similar problem. I
installed the font in /usr/local/share/texmf, and ran texhash. Now,
that ls-r has the font info. I am getting the following:

(Part of the output):
kpathsea: Running mktexmf ec-genr101
! I can't find file `ec-genr101'.
* ...four; mag:=1; nonstopmode; input ec-genr101

Please type another input file name
! Emergency stop.
* ...four; mag:=1; nonstopmode; input ec-genr101

[snip]

l.6 \setupbodyfont  [sil-gentium, rm, 12pt]

? H
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.

Could you give me any further suggestions?

Thanks.

Kumar

-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems installing Gentium TTF

2006-01-22 Thread Kumar Appaiah
On Sun, Jan 22, 2006 at 02:03:42PM +0100, Henning Hraban Ramm wrote:
 Am 2006-01-22 um 12:25 schrieb Kumar Appaiah:
 
 Did you read the thread font encodings (glyph lossed...?
 As you see, we have some problems with TrueType fonts.
 My font package from this morning is better than the old one, but  
 still lacks at least the 'dcroat' letter.
 
 But your problem is another kind.
 I'd suggest to start over and use the latest Gentium distribution  
 (1.02), but so far:

Now, that is what I am doing.

 What Gentium files do you have in your fonts tree? Which vendor/ 
 collection names did you use? (sil/gentium?)
 - AFMs (not needed)
 - TTFs (texmf/fonts/truetype/sil/gentium/*.ttf)
 - TFMs (texmf/fonts/tfm/sil/gentium/*.tfm)
 - MAPs (texmf/fonts/map/pdftex/context/ec-sil-gentium.map)

I have all the files, and again, I tried to do the wiki's
suggestions. Now, whenever I compile the test file, I get an error in
Acrobat saying Cannot find font in Resources, using Helvetica
instead.


 Did you rename all files to lowercase (and without spaces)? ConTeXt  
 sometimes has problems if file names use uppercase letters.

I have done this, and I believe that this helped.

 There should be ec-genr101.tfm and .ttf in your case, that's what TeX  
 is looking for.

Yes, I have the 102 ones.

 If the TFM is found, you'll run in the next problem: Probably in  
 the .map file there's '.pfb' instead of '.ttf'

No, that seems all right.

 I always need to run texhash with root permissions ('sudo texhash'),  
 otherwise the database cannot be written.

I also run it with root permission.

Thanks for your patient responses. If you think you can suggest
anything further, please do so; though I am on the verge of giving
up...

BTW, it might help if you know that I am using tetex-3.0 on Debian
GNU/Linux.

Thanks again.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems installing Gentium TTF

2006-01-21 Thread Kumar Appaiah
Hello! I am tryingto install the Gentium True type fonts, following
the instructions at
http://wiki.contextgarden.net/Installing_a_TrueType_font%2C_step_by_step

Everything went of well, and I was also able to get the pages of
glyphs from the tests. However, when I try to get the test document
provided at the end of that page to work, I get:

bodyfont: unknown variant MyGentium

from texexec. I have installed the fonts with --en=ec, so that is
ruled out. What could the problem be?

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Reg. fonts and math

2006-01-11 Thread Kumar Appaiah
I have been using ConTeXt for a short time now, after I switched from
LaTeX. I find it quite great, but I have two queries regarding it. I
am using teTeX in Debian (unstable).

1. Are the Lucida Bright fonts used in the documentation part of the
   complete teTeX documentation or are they fonts which need to be
   obtained separately? I have read a thread about this on the archive
   of this list, and tried all possible combinations suggested there
   in vain.
2. The tutorial tells us to refer to other sources (The TeX Book) for
   more on Math typesetting. Is there any online resource which would
   explain TeX (as opposed to LaTeX) math?

Thanks.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context