Re: [NTG-context] Problem with an enumeration

2018-07-31 Thread Fabrice Couvreur
Hi Pablo,
That's not what I'm looking for but rather this:

*1.a.* blablablabla
blablablabla
*b.* blablablabla
blablablabla
*c.* blablablabla
blablablabla

Which explains the use of the key intext
Fabrice

2018-07-31 13:31 GMT+02:00 Pablo Rodriguez :

> On 07/31/2018 12:18 PM, Fabrice Couvreur wrote:
> > Hello,
> > Wolfgang helped me to get this:
> >
> > 1.a.
> > b.
> > c.
> > 2.a
> > b.
> > c.
> >
> > I have unfortunately lost the code he had proposed to me. I get this:
> >
> > 1.a.
> > 1b
> > 1 C
> > 2.a
> > 2.b
> > 2.c
>
> Hi Fabrice,
>
> I don’t get your output. I had to remove the "intext" option and I guess
> I got what you intend:
>
> \setupitemgroup
>[itemize][1]
>[color=darkred,
> distance=\spaceamount,
> option={packed,fit,n}]
>
> \setupitemgroup
>[itemize][2]
>[color=darkred,
> distance=\spaceamount,
> option={packed,fit,a}]
>
> \starttext
> \startitemize
> \item \startitemize
> \item \input zapf
>
> \item \input knuth
>
> \item \input montgomery
> \stopitemize
> \item \startitemize
> \item \input zapf
>
> \item \input knuth
>
> \item \input montgomery
> \stopitemize
> \stopitemize
> \stoptext
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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
> 
> ___
___
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 of compiling a file with Emacs

2018-07-31 Thread Lizardo M. Reyna Bowen
I tested the file and conTeXt works well from emacs. The problem seems
to be related with your conTeXt standalone installation. when the file
is compiled, emacs create a log buffer  *... output*.  You could post
that information to look the possible error.

Have you tried reinstalling conTeXt?

attached test.pdf


On 07/31/2018 04:43 AM, Fabrice Couvreur wrote:
> With (setenv "PATH"
> "/home/aragorn/texlive/2018/bin/x86_64-linux/context:$PATH" t)  It
> works properly with C-c C-c
>
>
> With (setenv "PATH"
> "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) It does not
> work with C-c C-c
>
> The compilation is however correct by using a terminal without Emacs
> from the standalone version
> Fabrice
>
> 2018-07-31 10:18 GMT+02:00 Fabrice Couvreur
> mailto:fabrice1.couvr...@gmail.com>>:
>
> Hello,
> I did the same thing as you, but nothing changes. Have you tested
> the file? The expected result is to have the title of the chapter
> with the chapter number in large and light gray color. All
> compiles except the macro that allows to have the chapter number;
> I get a small rectangle instead.
> Fabrice
>
> 2018-07-30 16:02 GMT+02:00 Lizardo Reyna  >:
>
>
> I had a similar issue in emacs few months ago. I use an Ubuntu
> based
> GNU/Linux distribution.
>
>  My solution was start a new terminal to execute the commands
> in .bashrc
> file. When it works, a message will appear in the top of the
> terminal.
> "Setting "/home/farliz/context/tex" as ConTeXt root."
>
> Then execute emacs from that terminal typing  $ emacs &. This
> was the
> only way I got run conTeXt from emacs.
>
> I'm not advanced GNU/Linux  user, but there are three
> configuration
> files when login; .bashrc, .bash_profile, and .profile. I
> don't know why
> this files were not execute automatically when I login, so the
> path to
> conTeXt bin is not added and setuptex file is not execute. For
> this
> reason it was necessary to start a new terminal.
>
> I have my system upgraded and now I don't have problem with that.
>
> Regards
>
>
> On 30/07/18 05:45, Fabrice Couvreur wrote:
> > Hi,
> > I made the changes that you recommend, but it does not work
> >
> > ./emacs
> >
> >
> > (custom-set-variables
> >  ;; custom-set-variables was added by Custom.
> >  ;; If you edit it by hand, you could mess it up, so be careful.
> >  ;; Your init file should contain only one such instance.
> >  ;; If there is more than one, they won't work right.
> >  '(ConTeXt-Mark-version "IV")
> >  '(ConTeXt-engine "luatex")
> >  '(custom-enabled-themes (quote (leuven)))
> >  '(package-selected-packages (quote (nova-theme auctex
> > (custom-set-faces
> >  ;; custom-set-faces was added by Custom.
> >  ;; If you edit it by hand, you could mess it up, so be careful.
> >  ;; Your init file should contain only one such instance.
> >  ;; If there is more than one, they won't work right.
> >  )
> >
> > ;; SERVER Download (MELPA):
> > (when (>= emacs-major-version 24)
> >   (require 'package)
> >   (add-to-list
> >    'package-archives
> >    '("melpa" . "http://melpa.org/packages/;)
> >    t)
> >   (package-initialize))
> >
> > ;;(setenv "PATH"
> "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)
> >
> >
> > (setq ConTeXt-mode-hook
> >   (lambda () (setq TeX-command-extra-options "--purgeall")))
> >
> > (setq-default cursor-type 'bar)
> >
> > (set-cursor-color "#ff")
> >
> >
> > (setq TeX-view-program-list '(("Evince" "evince %o"))
> >   TeX-view-program-selection '((output-pdf "Evince")))
> >
> > (setq make-backup-files nil) ; stop creating backup~ files
> > (setq auto-save-default nil) ; stop creating #autosave# files
> >
> > ;; auto close bracket insertion. New in emacs 24
> > (electric-pair-mode 1)
> >
> > ;; turn on highlight matching brackets when cursor is on one
> > (show-paren-mode 1)
> >
> >
> > (setq inhibit-startup-screen t)
> >
> >
> > ./bashrc
> >
> > export PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin
> > source ~/context/tex/setuptex
> > export TEXROOT=/home/aragorn/context/tex
> > export PATH=$PATH:/home/aragorn/texlive/2018/bin/x86_64-linux
> >
> >
> >
> >
> > 2018-07-30 4:16 GMT+02:00 Lizardo M. Reyna Bowen
> 

Re: [NTG-context] column-spanning floats

2018-07-31 Thread Taco Hoekwater


> On 31 Jul 2018, at 13:57, Taco Hoekwater  wrote:
> 
> Hi all,
> 
> It used to be that in an example like the one attached where you were using
> \startcolumns and used an \externalfigure that was wider than the column 
> width, 
> the figure would automatically be moved to the top of _both_ columns on the 
> next page. 
> 
> That was a bit tricky sometimes, but worked fine. However, when I run with 
> the current mkiv beta, the figure is simply overlapping the next column, and 
> it does not auto-migrate. 
> 
> Also \startpostponing does not work here because it will indeed move to the
> next page, but still only occupies the left column, thus overlapping any
> text in the second column.
> 
> Is that functionality gone, or do I need to do something special?
> 
> Best wishes,
> Taco
> 
> PS On top of that, the column balancing creates bad inter-paragraph spacing 
> in 
> the left column. No idea where that comes from! :(


Also, I just tried \definecolumnset, but a) the balance=yes key does not 
work, and b) I still get awful inter-par spacing on the left column, except
with \setuplayout[grid=yes] (but that should not be needed to just get
a reasonable placing, I think).

Taco





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

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

[NTG-context] column-spanning floats

2018-07-31 Thread Taco Hoekwater
Hi all,

It used to be that in an example like the one attached where you were using
\startcolumns and used an \externalfigure that was wider than the column width, 
the figure would automatically be moved to the top of _both_ columns on the 
next page. 

That was a bit tricky sometimes, but worked fine. However, when I run with 
the current mkiv beta, the figure is simply overlapping the next column, and 
it does not auto-migrate. 

Also \startpostponing does not work here because it will indeed move to the
next page, but still only occupies the left column, thus overlapping any
text in the second column.

Is that functionality gone, or do I need to do something special?

Best wishes,
Taco

PS On top of that, the column balancing creates bad inter-paragraph spacing in 
the left column. No idea where that comes from! :(



tryme.pdf
Description: Adobe PDF document


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

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

Re: [NTG-context] Problem with an enumeration

2018-07-31 Thread Pablo Rodriguez
On 07/31/2018 12:18 PM, Fabrice Couvreur wrote:
> Hello,
> Wolfgang helped me to get this:
> 
> 1.a.
> b.
> c.
> 2.a
> b.
> c.
> 
> I have unfortunately lost the code he had proposed to me. I get this:
> 
> 1.a.
> 1b
> 1 C
> 2.a
> 2.b
> 2.c

Hi Fabrice,

I don’t get your output. I had to remove the "intext" option and I guess
I got what you intend:

\setupitemgroup
   [itemize][1]
   [color=darkred,
distance=\spaceamount,
option={packed,fit,n}]

\setupitemgroup
   [itemize][2]
   [color=darkred,
distance=\spaceamount,
option={packed,fit,a}]

\starttext
\startitemize
\item \startitemize
\item \input zapf

\item \input knuth

\item \input montgomery
\stopitemize
\item \startitemize
\item \input zapf

\item \input knuth

\item \input montgomery
\stopitemize
\stopitemize
\stoptext

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
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 an enumeration

2018-07-31 Thread Fabrice Couvreur
Hello,
Wolfgang helped me to get this:

1.a.
b.
c.
2.a
b.
c.

I have unfortunately lost the code he had proposed to me. I get this:

1.a.
1b
1 C
2.a
2.b
2.c

Thanks
Fabrice


\setupitemgroup
   [itemize][1]
   [color=darkred,
distance=\spaceamount,
option={packed,fit,intext,n}]

\setupitemgroup
   [itemize][2]
   [color=darkred,
distance=\spaceamount,
option={packed,fit,intext,a}]
___
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
___