Re: [NTG-context] About font combination in ConTeXt MKIV

2020-09-09 Thread Charles Vejnar

Dear Manuel,

To combine multiple fonts, I do something like this:

\definefallbackfamily [mainface] [serif] [DejaVu 
Serif][range=boxdrawing,force=yes]

\definefontfamily [mainface] [serif] [Tinos]
\setupbodyfont[mainface, 11pt]

You might be able to use a Unicode block (ie range) for ancient Greek 
characters (my range being boxdrawing).


Hope this helps.

Charles

On 9/9/20 11:31 AM, MANUEL GONZALEZ SUAREZ wrote:

Dear friends:
Until now (TeXLive 2018), to write Spanish and ancient Greek in the same 
document, I used the "simplefonts" module, which is said in the wiki 
(ConTeXt Garden) that it is obsolete. What is the method to do this with 
TeXLive 2020? I try to combine one font for Spanish text (eg libertine) 
and another for ancient Greek (eg New Athena Unicode), but I don't know 
how to do it without the "simplefonts" module, and if I try to compile 
the document with the "simplefonts module", I have an error

Thank you.
Manuel González.

___
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
___


[NTG-context] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar

Hi,

When I place a figure within a columnset and that figure takes a full 
page then the page number in the header is incorrect. Page number is the 
same as the previous page but on the next page it's correct. Please see 
example below and attached showing page 2 twice with pages numbered 1, 
2, 2, 4, 5. If I reduce the height of the figure (from 15 to 12cm for 
example), then some main text gets added on the page and page number (3) 
becomes correct. Is that a bug or am I doing something wrong?


Thanks for your help.

Charles


\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward 
}{\externalfigure[dummy][width=\makeupwidth,height=15cm]}


\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\stoptext



page.pdf
Description: Adobe PDF document
\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward }{\externalfigure[dummy][width=\makeupwidth,height=15cm]}

\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\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
___


[NTG-context] Wrong section space after placefigure with newcolumnsets

2018-04-05 Thread Charles Vejnar

Hi,

I am placing figures in a columnset. The next header (section, 
subsection...) following the figure has always missing vertical space.


See the normal space after "One subsection" and "Four subsection" but 
reduced space after "Two subsection" and "Three subsection" in the 
example below.


Tested with ConTeXt  ver: 2018.04.04 and LuaTeX, Version 1.07.0.

This seems to be the opposite problem as the one described recently in 
the thread "Bug in wrapped placefigure".


Any solution or fix?

Thank you very much for your help.

Charles



\setuppapersize[letter][letter]

\usemodule[newcolumnsets]
\setuplayout[grid=yes]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\subsection{One subsection}

\dorecurse{16}{\input ward \par}

\section{Two section}

\subsection{Two subsection}

\placefigure[bots]{Legend.}{\hbox{\externalfigure[dummy][width=\makeupwidth,height=12cm]}}

\dorecurse{5}{\input knuth \par}

\subsection{Three subsection}

\placefigure[bots]{Legend.}{\hbox{\externalfigure[dummy][width=\makeupwidth,height=12cm]}}

\dorecurse{2}{\input knuth \par}

\subsection{Four subsection}

\dorecurse{7}{\input knuth \par}

\stopcolumnset
\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
___

Re: [NTG-context] Overwritten text with newcolumnsets

2018-02-08 Thread Charles Vejnar

Here it is:

\usemodule[newcolumnsets]
\setuplayout[grid=yes]
\setupbodyfont[10pt]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{7}{\input knuth \par}
\placefigure[center]{Legend.}{\hbox{\externalfigure[dummy][height=8cm]}}
\dorecurse{8}{\input knuth \par}
\stopcolumnset
\stoptext

On 02/08/2018 04:38 AM, Henning Hraban Ramm wrote:

Am 2018-02-08 um 05:22 schrieb Charles Vejnar <charles.vej...@yale.edu>:


I am trying to add a figure now using \placefigure. But the placement in 
brackets is always ignored. AFAIK it's normal to get a figure at the top of a 
new page when it's larger than a column but it's also always on the left. I 
would like to get it horizontally centered (on the top of the next page as it 
is already). Any way to achieve that?


Please show us your code, otherwise nobody can spot the problem.


Greetlings, Hraban
---

___
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] Overwritten text with newcolumnsets

2018-02-07 Thread Charles Vejnar

Thanks Hans. It did fix it.

I am trying to add a figure now using \placefigure. But the placement in 
brackets is always ignored. AFAIK it's normal to get a figure at the top 
of a new page when it's larger than a column but it's also always on the 
left. I would like to get it horizontally centered (on the top of the 
next page as it is already). Any way to achieve that?


Thanks again for your help.

Charles

On 02/06/2018 06:03 PM, Hans Hagen wrote:

On 2/6/2018 9:51 PM, Charles Vejnar wrote:

Hi,

I am trying to get a two-column document with figures. After failing 
with \startcolumns, I tried with newcolumnsets. But the most basic 
example (see below) is not working properly. The text at the bottom of 
the first page gets overwritten by the first two line of the column.


I think this problem was also reported on Sept 22, 2016 by Jose Luis 
Arellano on this mailing-list.


Do you confirm the problem? Any way/plan to fix it?

Thanks so much for your help.

Best,
Charles


% start of example
\usemodule[newcolumnsets]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{12}{\input knuth \par}
\stopcolumnset
\stoptext
% end of example

i'm not surew what goes wrong there but you can best run with

\setuplayout[grid=yes]

___
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] Overwritten text with newcolumnsets

2018-02-06 Thread Charles Vejnar

Hi,

I am trying to get a two-column document with figures. After failing 
with \startcolumns, I tried with newcolumnsets. But the most basic 
example (see below) is not working properly. The text at the bottom of 
the first page gets overwritten by the first two line of the column.


I think this problem was also reported on Sept 22, 2016 by Jose Luis 
Arellano on this mailing-list.


Do you confirm the problem? Any way/plan to fix it?

Thanks so much for your help.

Best,
Charles


% start of example
\usemodule[newcolumnsets]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{12}{\input knuth \par}
\stopcolumnset
\stoptext
% end of example
___
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
___