Re: [NTG-context] markdown module vs pandoc

2019-02-16 Thread Gour
On Fri, 15 Feb 2019 12:34:33 -0500 (EST)
Aditya Mahajan  wrote:

> For simple documents, I use something like this (untested):

It does not work - maybe I have to install stand-alone version of ConTeXt, but
I got an idea.

> For more complicated documents (where I need both TeX and HTML
> output), I pre-process the input: 
> https://adityam.github.io/context-blog/post/markdown-with-gpp/

Thank you for the reference...some nice articles there. ;)

It looks as there is some learning ahead of me...btw, for illustrating
ConText documents and/or slide-presentation, do you recommend learning
MetaPost/MetaFun over .eg. TikZ if one wants to focus on single
(probably my learning plate is already quite full to go into something
else considering the need to learn ConTeXt itself) package?


Sincerely,
Gour

-- 
When your intelligence has passed out of the dense forest
of delusion, you shall become indifferent to all that has
been heard and all that is to be heard.


___
If your question is of interest to others as well, please add an 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] How to configure context command in Emacs

2019-02-16 Thread Gour
On Fri, 15 Feb 2019 10:05:07 +0800
fv leung  wrote:

> I 've been using emacs + auctex for years and they work fine with
> ConTeXt: I modified the \etc\environment file as:

Thank you!

Do you possibly use RefTeX as well?


Sincerely,
Gour

-- 
As a strong wind sweeps away a boat on the water,
even one of the roaming senses on which the mind
focuses can carry away a man's intelligence.


___
If your question is of interest to others as well, please add an 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] mix two-column and single-column footnotes

2019-02-16 Thread Mohammad Hossein Bateni
Hi,

Is it possible to mix two-column and single-column footnotes?

Here's my use case.  I have two types of footnotes:
1) short one- or two-word terms
2) long descriptions and notes

On some pages there are a lot of "short" footnotes which take up a lot of
space at the bottom of the page.  I'd like to typeset them in 2 or 3
columns.  But then the "long" footnotes had better stay in one column.

See below for desired input and output.

Thanks,
~MHB

Sample input:

\definenote[shortfootnote][...,n=3]
\definenote[longfootnote][...,n=1]
\definenotation[shortfootnote][...]
\definenotation[longfootnote][...]
\starttext
\shortfootnote{short}\shortfootnote{short}\shortfootnote{short}
\longfootnote{This is a long footnote which spans the entire width of the
page.}
\shortfootnote{short}\shortfootnote{short}
\longfootnote{Another "long" footnote.}
\longfootnote{Note that footnotes 5, 6 used only two out of three available
columns.}
\stoptext


Desired output:

__
1 short  2 short   3 short
4 This is a long footnote which spans
the entire width of the page.
5 short  6 short
7 Another "long" footnote.
8 Note that footnotes 5, 6 used only
two out of three available columns.
___
If your question is of interest to others as well, please add an 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] \symbol (ConTeXt vs. LateX)

2019-02-16 Thread Tomas Hala
Thank you, Wolgang, that's it.

Tomáš

Sat, Feb 16, 2019 ve 03:31:47PM +0100 Wolfgang Schuster napsal(a):
# 
# 
# Tomas Hala schrieb am 16.02.19 um 15:25:
# >Hi all,
# >
# >how can I print the corresponding character if I know its ordinal value?
# 
# You can use the \tochar{...} command.
# 
# font-ini.mkiv:
# 
# %D The \type {\tochar} commmand takes a specification:
# %D
# %D \starttabulate[|l|l|l|]
# %D \NC e \NC entity   \NC e:eacute \NC \NR
# %D \NC x \NC hexadecimal unicode  \NC x:013D   \NC \NR
# %D \NC d \NC decimal unicode  \NC d:123\NC \NR
# %D \NC s \NC hexadecimal index (slot) \NC s:210D   \NC \NR
# %D \NC i \NC decimal index\NC i:456\NC \NR
# %D \NC n \NC name \NC n:eight  \NC \NR
# %D \NC c \NC name \NC c:x  \NC \NR
# %D \NC u \NC unicode descriptions \NC u:dog\NC \NR
# %D \NC a \NC all (also descriptions)  \NC a:rewind \NC \NR
# %D \stoptabulate
# 
# Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \symbol (ConTeXt vs. LateX)

2019-02-16 Thread Wolfgang Schuster



Tomas Hala schrieb am 16.02.19 um 15:25:

Hi all,

how can I print the corresponding character if I know its ordinal value?


You can use the \tochar{...} command.

font-ini.mkiv:

%D The \type {\tochar} commmand takes a specification:
%D
%D \starttabulate[|l|l|l|]
%D \NC e \NC entity   \NC e:eacute \NC \NR
%D \NC x \NC hexadecimal unicode  \NC x:013D   \NC \NR
%D \NC d \NC decimal unicode  \NC d:123\NC \NR
%D \NC s \NC hexadecimal index (slot) \NC s:210D   \NC \NR
%D \NC i \NC decimal index\NC i:456\NC \NR
%D \NC n \NC name \NC n:eight  \NC \NR
%D \NC c \NC name \NC c:x  \NC \NR
%D \NC u \NC unicode descriptions \NC u:dog\NC \NR
%D \NC a \NC all (also descriptions)  \NC a:rewind \NC \NR
%D \stoptabulate

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

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


[NTG-context] \symbol (ConTeXt vs. LateX)

2019-02-16 Thread Tomas Hala
Hi all,

how can I print the corresponding character if I know its ordinal value?

(In LaTeX, there is a command \symbol{number} but in ConTeXt this command
has different meaning.)

Thanks in advance,

Best wishes,

Tomáš Hála

___
If your question is of interest to others as well, please add an 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] baseline of outlined font

2019-02-16 Thread Jeong Dal
Dear Wolfgang,

Thank you for the solution.

BTW, what is the difference between “deeptextcommand” and “textcommand”?

Best regards,

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

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


Re: [NTG-context] baseline of outlined font

2019-02-16 Thread Wolfgang Schuster

Jeong Dal schrieb am 16.02.19 um 12:07:

Dear all,

Recently, I used outlined font described in MetaFun for titles.
But the baselines of the number and the title of chapter are different.
What is wrong in the following code?

Thank you for reading.

Best regards,

Dalyoung


\definefont[BigFontOne][NotoSansCJKkr-Bold sa 4]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]

\startuseMPgraphic{outlineT}
   draw outlinetext.b (\MPvar{tt})
   (withcolor .75white)
   (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick});
\stopuseMPgraphic

\define[1]\titleOutline{\useMPgraphic{outlineT}{tt="#1"}}

\setuphead[chapter,title]
  [deeptextcommand=\titleOutline,
   color=BigColorOne,
   style=\BigFontOne,
   numbercommand=\titleOutline,


Use textcommand (not deeptextcommand) to apply to outline to the title.

Wolfgang

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

maillist : ntg-context@ntg.nl / 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] baseline of outlined font

2019-02-16 Thread Jeong Dal
Dear all,

Recently, I used outlined font described in MetaFun for titles.
But the baselines of the number and the title of chapter are different.
What is wrong in the following code?

Thank you for reading.

Best regards,

Dalyoung


\definefont[BigFontOne][NotoSansCJKkr-Bold sa 4]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]

\startuseMPgraphic{outlineT}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .75white)
  (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick});
\stopuseMPgraphic

\define[1]\titleOutline{\useMPgraphic{outlineT}{tt="#1"}}

\setuphead[chapter,title]
 [deeptextcommand=\titleOutline,
  color=BigColorOne,
  style=\BigFontOne,
  numbercommand=\titleOutline,
  number=yes]

\setupbodyfont[rm, 11pt]

\starttext

\chapter{First}
\samplefile{knuth}

\startchapter[title={Chapter Title}]
   \samplefile{knuth}
\stopchapter

\stoptext

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

maillist : ntg-context@ntg.nl / 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
___