Re: [NTG-context] Remove header after ToC

2017-10-17 Thread N. Raghavendra
Any help is appreciated!  Do let me know if some more information is
needed.

Thanks and regards,
Raghu.

--

At 2017-10-16T08:33:13+05:30, N. Raghavendra wrote:

> I am a ConTeXt beginner.  I am having trouble getting rid of the header
> after the ToC in a document that I am preparing.  The following is a
> simplified version of the document.  I get a header with "2" on the left
> edge, and "Chapter ."  on the right edge, on page 2, which is an empty
> page after the ToC.  How do I remove the header on this page?
>
> Thanks,
> Raghu.
>
> --
> \starttext
>
> \setuppagenumbering
>   [alternative=doublesided]
>
> \setupheadertexts
>   []
>
> \setupfootertexts
>   []
>
> \setupheadertexts
>   [{\getmarking[section]}]
>   [\pagenumber]
>   [\pagenumber]
>   [{Chapter \getmarking[chapternumber].\ \getmarking[chapter]}]
>
> \setuphead
>   [chapter]
>   [page={yes,header,footer,right},
>header=empty]
>
> \startfrontmatter
>   \completecontent
> \stopfrontmatter
>
> \startbodymatter
>   \startchapter
> [title=A chapter]
>
> \startsection
>   [title=A section]
>   Some text
> \stopsection
>
> \page
>
> \startsection
>   [title=Another section]
>   Some text
> \stopsection
>
>   \stopchapter
> \stopbodymatter
>
> \stoptext
> ------
>
> --
> N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
> Harish-Chandra Research Institute, http://www.hri.res.in/

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Remove header after ToC

2017-10-17 Thread N. Raghavendra
At 2017-10-17T12:34:06+02:00, Tomas Hala wrote:

> I did two changes in your code:
>
> 1. Disabling of header=empty.
> 2. Adding of \page[empty].
>
> Probably, there is better and system solution,
> but this might help you, I guess.

Dear Tomas,

Thank you for your kind help.

The change you made works when the ToC ends on an odd page, as in this
case when it ends on page 1.  However, if the ToC ends on an even page,
say on page 2, the modification you have suggested produces an empty
page with no headers on page 3, and then an empty page with
headers "4 ... Chapter." on page 4; the first chapter starts on page 5.
Enclosed below is an example of such a file.

I don't want the empty pages 3 (without headers) and 4 (with headers),
and I want the first chapter to start on page 3, which is the first
right hand, i.e., odd numbered, page after the end of the ToC.

I think what is required is a command \foo which implements the
following pseudocode:

if the current page is even numbered ; then
  \page [empty]
else
  do nothing
endif

Then, I can use

\startfrontmatter
  \completecontent
  \foo
\stopfrontmatter

Regards,
Raghu.

--
\starttext

\setuppagenumbering
  [alternative=doublesided]

\setupheadertexts
  []

\setupfootertexts
  []

\setupheadertexts
  [{\getmarking[section]}]
  [\pagenumber]
  [\pagenumber]
  [{Chapter \getmarking[chapternumber].\ \getmarking[chapter]}]

\setuphead
  [chapter]
  [page={yes,header,footer,right}]

\startfrontmatter
  \completecontent
  \page [empty]
\stopfrontmatter

\startbodymatter
  \dorecurse
{20}
{
  \startchapter
[title=A chapter]

\startsection
  [title=A section]
  Some text
\stopsection

\page

\startsection
  [title=Another section]
  Some text
\stopsection

  \stopchapter
}
\stopbodymatter

\stoptext
------

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Remove header after ToC

2017-10-17 Thread N. Raghavendra
At 2017-10-17T19:17:34+05:30, N. Raghavendra wrote:

 
> if the current page is even numbered ; then
>   \page [empty]
> else
>   do nothing
> endif

Read "odd" instead of "even" in the place marked .

Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Remove header after ToC

2017-10-17 Thread N. Raghavendra
At 2017-10-17T16:58:22+02:00, Tomas Hala wrote:

> Add the following \if command:
>
> \startfrontmatter
>   \completecontent
>   \ifodd\pageno\page[empty]\else\setupheadertexts[chapter][pagenumber]\fi
> \stopfrontmatter

Thanks, that should work.  However, searching through setup-en.pdf, I
found the conditional `\doifelseoddpage {CMD} {CMD}', which is precisely
what I needed.  Enclosed below is an example which is formatted as I
wanted.

1. I use `header=empty' in \setuphead [chapter], for otherwise I get a
   header on the pages where a chapter begins.

2. I use \setupheadertexts twice, first before the beginning of the
   front matter, and then before the beginning of the body matter, with
   settings appropriate for the respective block.

3. I use `\marking [chapter] {Contents}' before \completecontent, for
   otherwise I get no chapter name in the header for the ToC.

4. I use `\doifelseoddpage {\page [empty]} {}' after \completecontent,
   to do what you had suggested.

Thanks again for the help.

Regards,
Raghu.

--
\starttext

\setuphead
  [chapter]
  [page={yes,header,footer,right},
   header=empty]

\setupheadertexts
  []

\setupfootertexts
  []

\setupheadertexts
  [{\getmarking [chapter]}]
  [\pagenumber]
  [\pagenumber]
  [{\getmarking [chapter]}]

\startfrontmatter
  \marking [chapter] {Contents}
  \completecontent
  \doifelseoddpage {\page [empty]} {}
\stopfrontmatter

\setupheadertexts
  [{\getmarking [sectionnumber].\ \getmarking [section]}]
  [\pagenumber]
  [\pagenumber]
  [{Chapter \getmarking [chapternumber].\ \getmarking [chapter]}]

\startbodymatter
  \dorecurse
{20}
{
  \startchapter
[title=A chapter]

\startsection
  [title=A section]
  Some text
\stopsection

\page

\startsection
  [title=A section]
  Some text
\stopsection

\page

\startsection
  [title=A section]
  Some text
\stopsection

  \stopchapter
}
  \stopbodymatter

\stoptext

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] External graphics directory

2017-10-19 Thread N. Raghavendra
Is it possible to specify an external graphics directory either as an
environment variable, or as a command line option to `context', instead
of writing `\setupexternalfigures [directory=../../foo]'?  I tried the
environment variable setting

TEXINPUTS=../../foo::

as in http://www.tex.ac.uk/FAQ-graphicspath.html, and the command line
option

--path=../../foo

for `context', but neither works in my Linux environment.  I would like
to avoid cluttering ConTeXt files with system paths.

Thanks and regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Default setups

2017-10-20 Thread N. Raghavendra
Is there a command which prints to the log file the default values of
the keys in the setups that are used in a document?

For example, when I define a new document division with

\definehead [mysection] [section] [style=...]

it helps to know the default value of the `style' key for `section'
headings.

Thanks and regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Difficulties with learning about ConTeXt

2017-10-23 Thread N. Raghavendra
I am a mathematician, and have been using LaTeX on a daily basis since
1992, when I was a graduate student.  I have recently started using
ConTeXt, and am very happy with the facilities it provides, and with its
self-contained system which does not require one to load external
packages with subtle interactions.

One problem that I am facing is that the documentation of ConTeXt is
often not enough for me to figure out what to do when a problem arises.
I understand that documentation is perhaps not a priority for the
project.  As Hans Hagen wrote in `? Context',

  "... writing can get a lower priority in a time when quick and dirty
   answers can be found on the internet, mailing list or wiki.  ... For
   what it's worth: whenever I have to solve a problem with a program
   (or language implementation) I run into cases where I have to look
   long to find (non conflicting) information. It just comes with the
   problems one wants to solve and TeX (ConTeXt) is not different."

However, there is not a great deal of information on the Internet about
solving ConTeXt problems.  Whenever I ran into a LaTeX problem in the
last several years, I used to find a solution, or a substantial step
towards one, that was already documented on the TeX-LaTeX Stack
Exchange.  Unfortunately, it does not contain a similar amount of
information about ConTeXt.  In any case, I have started posting ConTeXt
questions there, see https://tex.stackexchange.com/q/397463/146025 and
https://tex.stackexchange.com/q/397607/146025

As for the mailing list, I posted three requests for help here in the
last one week.  When I bumped my first message after more than a day
without any response, Tomas Hala kindly came to my rescue.  The other
two messages, posted four and two days ago, have not elicited any
response yet.  This contrasts with Aditya Mahajan's experience, which he
describes in his interview at
http://tex-talk.net/2012/08/textalk-an-interview-with-aditya/:

  "Most questions on the context mailing lists are answered within
   minutes ... look in the main manual and the wiki to see how to
   achieve the particular effects that you wanted, and if you cannot
   figure it out, ask on the context mailing list."

I understand that we are all busy, and it is not easy to find time to
answer novice queries on the list.

Lastly, I found the Wiki useful sometimes for quick and dirty solutions
to problems, and sometimes as a source of documentation.  Yet there have
been several cases where I could not find what I wanted in it.

For example, I could not find the answers to my last two queries on this
list and to my two questions on SE, in the manual, on the archives of
this list, or on the Wiki.

These problems mean that I have to spend much more time experimenting
and searching before I find a reasonable way to get the things I want
with ConTeXt.  Given the beauty of the results that ConTeXt returns, I
don't mind that.  However, I wonder if there are others who have similar
problems learning about ConTeXt, and if they have some words of advice
for me.  I am also interested in ways to help people with similar
difficulties.

Regards,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Difficulties with learning about ConTeXt

2017-10-23 Thread N. Raghavendra
At 2017-10-23T12:59:35+02:00, luigi scarso wrote:

> 1) test suite cont-tst.7z
> http://www.pragma-ade.nl/download-1.htm

Thank you, the test suite is likely to be a useful resource.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output

2017-11-11 Thread N. Raghavendra
At 2017-11-11T21:06:22+01:00, Pablo Rodriguez wrote:

> I checked it with sha256sum ;-).

And, why not!

> I always use contextjit instead of context, because it’s faster.
>
> Other than speed, I think there is no other difference.

That's good to know.  I'll try it out.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output

2017-11-11 Thread N. Raghavendra
At 2017-11-11T14:37:33+01:00, Pablo Rodriguez wrote:

> "contextjit  --nodates" is your friend here.
>
> No \pdf* commands are required.
>
> I hope it helps,

Dear Pablo,

Thanks for the answer.  It works.

--
$ cat example.tex

\starttext

Hello, world!

\stoptext

$ ( context --nodates example.tex && cp example.pdf a && sleep 1 && \
context --nodates example.tex && cp example.pdf b ) > /dev/null && \
md5sum a b

74497066154ebb4df7978719127f1a93  a
74497066154ebb4df7978719127f1a93  b
--

Incidentally, is it common to use the contextjit command instead of
context?  The only hint I found at the Wiki is at
http://wiki.contextgarden.net/Running_Mark_IV#Experimental_speedup which
says that the jit flag leads to quicker processing of the source.

Regards,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output

2017-11-10 Thread N. Raghavendra
I would like to have reproducible PDF output from ConTeXt documents.  I
tried the suggestions at https://tex.stackexchange.com/a/313605/146025
but they did not work.  The PDF output has information like
"ConTeXt.Time", "CreateDate", etc., which depend on the time the source
was processed at.  How do I suppress such temporal information, that is
not supplied by the author, from the PDF output?

Here are my two attempts:

--
$ cat example.tex

\pdfinfoomitdate=1
\pdftrailerid{}

\starttext

Hello, world!

\stoptext

$ ( context example.tex && cp example.pdf a && sleep 1 && \
context example.tex && cp example.pdf b ) > /dev/null && \
md5sum a b

6a4ac7122bb502062e7ea87be52df166  a
cac1ab3160003526e49da135d77e4eda  b
--

--
$ cat example.tex

\pdfvariable suppressoptionalinfo \numexpr
0
+   1   % PTEX.FullBanner
+   2   % PTEX.FileName
+   4   % PTEX.PageNumber
+   8   % PTEX.InfoDict
+  16   % Creator
+  32   % CreationDate
+  64   % ModDate
+ 128   % Producer
+ 256   % Trapped
+ 512   % ID
\relax

\starttext

Hello, world!

\stoptext

$ ( context example.tex && cp example.pdf a && sleep 1 && \
context example.tex && cp example.pdf b ) > /dev/null && \
md5sum a b

2116aeec2b5bed2bfd02d16332700758  a
3204a1a127f139da8d960037a8ba0690  b
--

Here is the reason I want reproducible builds.  I keep the source of my
ConTeXt documents under version control.  I also keep their PDF output
under version control because I often find, several years after a
document was written, that I don't have the supporting files needed to
process it; in such a case, until I get the missing supporting files, I
can at least view the PDF output.  Now, even when the source has not
changed, if I run context on it, the PDF output changes, and the version
control system reports the PDF file as modified.  In such a situation, I
have to register the change in the version control system, or revert the
PDF file to its version.  I would like to avoid this extra work.

Thanks and regards,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Problem with Wiki skin

2017-10-25 Thread N. Raghavendra
At 2017-10-24T19:29:43+05:30, N. Raghavendra wrote:

> I request one of the Wiki administrators to reset my preferences to the
> default ones.  The user name is "raghu".

I have created a new account at the Wiki, with user name "nyraghu", and
have started adding some content to the Wiki through this account, so it
is no longer necessary to rescue the user "raghu".

> More generally, it may be a problem with Erudite that needs to be looked
> into.

It is perhaps prudent to check if there is a general problem with this
skin at the Wiki, so that other users don't get bitten by it as I was.
Fortunately, mine was a new account, so it didn't matter to me much if
the account became unusable.  However, if someone has spent some time
and effort on the Wiki, it would be difficult if a purely cosmetic
change of preference makes that person's account unusable.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Problem with Wiki skin

2017-10-25 Thread N. Raghavendra
At 2017-10-25T15:48:45+02:00, Taco Hoekwater wrote:

> Thank you for the warning. Sorry, I saw this message too late to fix
> your initial problem. However, I did now remove the Erudite skin (it has
> a php problem that causes server-side errors) so it will not happen for
> other users.

Dear Taco,

No problem.  I am glad you removed the offending skin.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Wiki pages on Unicode blocks

2017-10-25 Thread N. Raghavendra
Based on what I have learnt from the replies to my queries in the last
few days, I have added the following Wiki pages on Unicode blocks in
ConTeXt:

http://wiki.contextgarden.net/Unicode_blocks_in_ConTeXt

http://wiki.contextgarden.net/List_of_Unicode_blocks

I will be adding a section of references to each of these two pages in a
couple of days.

I am not an expert on anything, and would be glad to learn if there are
any errors in these pages.

Thanks and regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Problem with Wiki skin

2017-10-25 Thread N. Raghavendra
At 2017-10-25T15:48:45+02:00, Taco Hoekwater wrote:

> However, I did now remove the Erudite skin (it has a php problem that
> causes server-side errors) so it will not happen for other users.

Removing that skin has automatically changed the skin for user "raghu"
to the default skin, so I am now able to use that account again.

Thanks,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Request for GitHub template on Wiki

2017-10-25 Thread N. Raghavendra
The template {{src|FILE}} on the Wiki now produces a link to FILE in the
`context' repository at repo.or.cz.  It would be nice to be able to link
to files in the `context-mirror' repository on GitHub from the Wiki,
because it is perhaps more current than the one at repo.or.cz, and
because some users may prefer the GitHub interface to the GitWeb
interface at repo.or.cz.

A MediaWiki template for GitHub links is described at
https://www.mediawiki.org/wiki/Template:Github

I request the Wiki administrators to consider adding this template to
the Wiki.

Thanks and regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Default setups

2017-10-24 Thread N. Raghavendra
At 2017-10-23T21:59:29+02:00, Pablo Rodriguez wrote:

> Defaults for sections are defined in strc-def.mkiv (included in
> /path-to-context-suite/tex/texmf-context/tex/context/base/mkiv/) and is
> \tfa.

Thank you, I will look at that file.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Problem with Wiki skin

2017-10-24 Thread N. Raghavendra
I have created an account in the Wiki, and accidentally chose the
`Erudite' skin in the Appearance section of the Preferences page.  Since
then, every page has been displayed as an empty page.  I am working in
Linux, with Firefox.  I disabled the style (View -> page style -> no
style), but I still got an empty page.  The source of every page
(Ctrl-u) was empty.  I tried with text based browsers (w3m and Emacs
EWW) but with the same effect: empty page, no source.

It seems to be related to the particular skin.  If I add the
"?useskin=default" suffix to every URL, I can see it properly, e.g.,
http://wiki.contextgarden.net/Special:Preferences?useskin=default shows
the preferences page properly.   But if I follow any link from it, I
again hit a blank page.

I request one of the Wiki administrators to reset my preferences to the
default ones.  The user name is "raghu".

More generally, it may be a problem with Erudite that needs to be looked
into.

Thanks and regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Default setups

2017-10-24 Thread N. Raghavendra
At 2017-10-23T23:10:52+02:00, Wolfgang Schuster wrote:

> \usemodule[setups-basics]
>
> \loadsetups[context-en.xml]
>
> \starttext
>
> \showrootvalues[head]
>
> \showinstancevalues[head][chapter]
>
> \stoptext

Many thanks.  That works perfectly.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Difficulties with learning about ConTeXt

2017-10-24 Thread N. Raghavendra
At 2017-10-23T21:49:26+02:00, Pablo Rodriguez wrote:

> It is fine that you ask what the wiki can do for you. But when you find
> the solution to your problem, consider what you can do for the wiki.
>
> Expanding the wiki is the reverse action from replying questions. The
> wiki requieres time too.

Dear Pablo,

Thank you for your thoughtful response.  It was useful to read it.  As
you say, one can contribute to the Wiki, and I will try to do so.

> In my experience, what you learnt from LaTeX won’t be helpful to use
> with ConTeXt.

This is absolutely true, and I don't have any problem about starting
from scratch with a new typesetting system.  However, the returns seem
worth the effort, given the control that ConTeXt provides to the user,
the integral feel, and its high level facilities.  So, thanks again.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Default setups

2017-10-24 Thread N. Raghavendra
At 2017-10-23T22:25:39+02:00, luigi scarso wrote:

> not all the default values are there , but still useful is
> tex/texmf-context/tex/context/interface/mkiv/i-context.pdf
>
>
> tex/texmf-context/tex/context/interface/mkiv/i-readme.pdf

Thank you, I will look at those files.

Regards,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
At 2018-04-27T02:16:12+05:30, N. Raghavendra wrote:

> Is it possible to use the continue option for second level itemizations?
> I am unable to make it work.

I notice that the same question was asked five years ago, with no
solution posted.

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

Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
At 2018-04-27T02:16:12+05:30, N. Raghavendra wrote:

> Is it possible to use the continue option for second level itemizations?
> I am unable to make it work.

I thought

http://wiki.contextgarden.net/Command/head#Example

looked like a solution, but it too doesn't work.



\starttext

\startitemize[packed][headstyle=bold]
\head Birds

What is water? This is a difficult question to answer,
because water is impossible to define. One could ask
the same question about birds. What {\em are} birds?
We just don't know.
\startitemize[a]
\item Toucan
\item Quetzal
\item Cassowary
\stopitemize

\head Mammals \par
\startitemize[continue]
\item Anteater
\item Sloth
\item Capybara
\stopitemize
\stopitemize

\stoptext


produces

• Birds
What is water? This is a difficult question to answer, because water is
impossible to define. One could ask the same question about birds. What
are birds? We just don’t know.
a. Toucan
b. Quetzal
c. Cassowary
• Mammals
a. Anteater
b. Sloth
c. Capybara

which is not the output shown in that Wiki page.

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
At 2018-04-26T19:53:11-04:00, Aditya Mahajan wrote:

> If you are willing to define a new itemgroup for the second level,
> then the following works:

Thanks, that indeed works perfectly!

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] External graphics directory

2017-10-23 Thread N. Raghavendra
At 2017-10-23T17:45:05+02:00, Peter Münster wrote:

> Yes.
> Command: "context --arguments=imagedir=../../foo file"
> File: "\setupexternalfigures[directory=\env{imagedir}]"

Thank you, this works perfectly.  It led me also to the
\getvariable{environment}{...}, \getdocumentargument, and
\do*documentargument commands, which may be useful later on.

Regards,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Including part of a program source file

2018-04-21 Thread N. Raghavendra
I am writing some notes using ConTeXt, which involves displaying parts
of some program source files.  At present, I am manually cutting and
pasting the parts into the ConTeXt file.  Is it possible to make ConTeXt
do that for me?  I am thinking of including each part of the Coq sources
between tags like this:


$ cat src-file

part_to_be_included_1



part_to_be_included_2



I would like to say something like

\IncludePart{src-file}{tag-1}

in my ConTeXt file to get

part_to_be_included_1

at that place in the PDF output after I run `context'.  I would
appreciate any advice on how to go about this.

Thanks,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Including part of a program source file

2018-04-21 Thread N. Raghavendra
At 2018-04-21T17:29:58+02:00, Wolfgang Schuster wrote:

> The verbatim commands have a range key which let you select parts of
> the code, you can use line numbers to include a small block
> (e.g. range={3,10} or range {3,+7}) or you put labels in your code.

Many thanks! It works perfectly, with something like this:

\starttext

\typefile
  [range={beg:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156,
  end:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156}]
  {../coq/univalence/transport/total_path.v}

\typefile
  [range={beg:8edf79a4:6fe4:4a0c:a1a4:5be2ab413b47,
  end:8edf79a4:6fe4:4a0c:a1a4:5be2ab413b47}]
  {../coq/univalence/transport/path_from.v}

\stoptext

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Characters allowed in macro names

2018-04-22 Thread N. Raghavendra
At 2018-04-22T20:08:34+02:00, Wolfgang Schuster wrote:

> You can use the following example as test.
>
>  begin example
> \starttext
>
> \def\hello-1{Hello \letterhash 1}
>
> \def\hello-2{Hello \letterhash 2}
>
> \hello-1
>
> \hello-2
>
> \stoptext
>  end example
>
> Here I create a command named \hello which has to be followed by “-1"
> and "-2".
>
> When you run TeX on this example you get the following error message:
>
>  begin error message
> tex error   > tex error on line 7 in file /Users/wolf/TeX/test/
> test.tex: ! Use of \hello doesn't match its definition
>
> l.7 \hello-1
> %%%% end error message

Yes, I get that error.  Thanks for the explanation.

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Characters allowed in macro names

2018-04-22 Thread N. Raghavendra
At 2018-04-22T18:04:28+02:00, Hans Hagen wrote:

>> 1. In general, what characters are allowed in macro names?  Are Unicode
>> characters admissible?
>
> letters are (and _ is not a letter, unless we're in unprotected mode)
>
>> 2. Apart from the fact that one can use whitespace freely in
>> \starttexdefinition, is there any reason to prefer it over \def?
>
> depends ... sometimes more readble ... spaces are ignores ... you can
> use named parameters

Thanks for the clarification.

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Characters allowed in macro names

2018-04-22 Thread N. Raghavendra
I was wondering if it is alright to use underscores in the names of
macros, e.g, as in the following file.  It looks like \startsetups, and
\def accept names with hyphens, underscores, and numerals, but
\starttexdefinition doesn't tolerate any of them.

1. In general, what characters are allowed in macro names?  Are Unicode
   characters admissible?

2. Apart from the fact that one can use whitespace freely in
   \starttexdefinition, is there any reason to prefer it over \def?

Thanks,
Raghu.


\starttext

\startsetups [hello-world_1]
  Hello, world 1!
\stopsetups

\setups [hello-world_1]

\def\hello-world_2{Hello, world 2!}

\hello-world_2

\starttexdefinition helloWorld
  Hello, world!
\stoptexdefinition

\helloWorld

%% Doesn't work
%% \starttexdefinition fooBar1
%%   Foo, bar 1!
%% \stoptexdefinition
%%
%% \fooBar1

%% Doesn't work
%% \starttexdefinition foo_bar
%%   Foo, bar!
%% \stoptexdefinition
%%
%% \foo_bar

%% Doesn't work
%% \starttexdefinition foo-bar
%%   Foo, bar!
%% \stoptexdefinition
%%
%% \foo-bar

\stoptext

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output not working

2018-04-23 Thread N. Raghavendra
Sometime ago, I asked here about reproducible PDF output, and was told
about the --nodates option of context.  It worked then, but doesn't seem
to be working now, with a recent version of context.

--
$ cat foo.tex

\starttext

Hello, world!

\stoptext

$ ( rm -f a b foo.log foo.pdf foo.tuc && \
context --nodates foo.tex && cp foo.pdf a && \
sleep 1 && \
context --nodates foo.tex && cp foo.pdf b ) > /dev/null && \
md5sum a b

bdd1911005623a519f5ecb3dbcb8bc7b  a
06157e2840c0758ca46d5e7f0be239ef  b

$ context --version
[elided]
mtx-context | current version: 2018.04.19 15:53
--

File `a' has the words "foo.2018-04-24T01:49:47-19:00",
and file `b' has "foo.2018-04-24T01:49:49-19:00" at
the corresponding position.

Please tell me how to ensure that the PDF output depends only on the
source, and not on the time the output is generated.

Thanks,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output not working

2018-04-24 Thread N. Raghavendra
At 2018-04-24T09:44:09+02:00, Hans Hagen wrote:

> fixed in beta but no beta soon ... in lpdf-ini.lua you can try to fix
> this

Thank you for the solution.

Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output not working

2018-04-24 Thread N. Raghavendra
At 2018-04-24T10:03:16+02:00, Arthur Reutenauer wrote:

>> PS: Incidentally, what is the "-19:00" in date in the first identifier?
>> In my time zone, IST, I would have expected 2018-04-24T01:49:47+05:30.
>
> I remember noticing something strange in the date format when files
> were compiled after midnight local time while the UTC time was before
> midnight.  It didn’t seem enough to send a bug report at the time, but
> I can look into it again.

Thank you for the help.

Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Installing a specific version of context

2018-04-24 Thread N. Raghavendra
I would like to install the version of context dated 2017.11.14.  How
can one do this?  I tried

sh first-setup.sh --context=2017.11.14

but it produces errors like

rsync: change_dir "/current/context/2017.11.14" (in minimals) failed: No
such file or directory (2)

I'd appreciate suggestions about this.

Thanks,
Raghu.

-- 
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Reproducible PDF output not working

2018-04-23 Thread N. Raghavendra
At 2018-04-23T23:49:19+02:00, Arthur Reutenauer wrote:

> it seems the identifier uses the time of compilation, when it should
> probably use the time of last modification of the source file.

Yes, with the 2018.04.19 version, the identifier in the output of
`context --nodates' includes the compilation time, as in

  foo.2018-04-24T01:49:47-19:00.

On the other hand, with the 2017.11.14 version, the identifier in the
output of `context --nodates' is just

  foo

Raghu.

PS: Incidentally, what is the "-19:00" in date in the first identifier?
In my time zone, IST, I would have expected 2018-04-24T01:49:47+05:30.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Installing a specific version of context

2018-04-24 Thread N. Raghavendra
At 2018-04-24T08:44:24-04:00, Mohammad Hossein Bateni wrote:

> I don't think it's possible to do off-the-shelf.

The Wiki

http://wiki.contextgarden.net/ConTeXt_Standalone#Reverting_to_an_older_installation

says that it is possible with

sh ./first-setup.sh --context=date

Also, mtx-update.lua, which is called by first-setup.sh, appears to have
the following option

specify version (current, latest, 
beta, .mm.dd)

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
Is it possible to use the continue option for second level itemizations?
I am unable to make it work.  For example, the following file


\starttext

\startitemize [n]
  \startitem One
\startitemize [a]
  \startitem A \stopitem
\stopitemize
  \stopitem
  \startitem Two
\startitemize [continue]
  \startitem B \stopitem
\stopitemize
  \stopitem
\stopitemize

\stoptext


produces

1. One
a. A
2. Two
a. B

Thanks,
Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
If your question is of interest to others as well, please add an 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
___