Re: [NTG-context] Footnotes being broken over two pages

2019-02-27 Thread Lars

Hi there,

Am 26/02/2019 um 16:06 schrieb Alan Braslau:

On Tue, 26 Feb 2019 01:04:25 +0100
Lars  wrote:


Hi there,

I've stumbled upon some behaviour that looks like a bug to me. Sometimes
longer footnotes are being broken over two pages. Please see the
attached picture:

As you can see the last footnote on p. 6 is being continued on p. 7. I
don't think it's a problem of too many footnote lines on one page as on
p. 17 there are more lines and the breaking is in order.

The code for all links that I create like this is:

\define\NytAsimov{
\goto{
\hyphenatedurl{
https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html}}
[url(https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html)]
(Abrufdatum 12.12.2018)}

The line breaking I only did for readability. In my source all those
definitions are in single lines. Does anyone have an idea why this is
happening? If you need anything just let me know please.

Thanks in advance, Lars.


Maybe try

\setupnote [footnote] [split=verystrict,scope=page]

Alan


The text shortened slightly due to correction. After that, the problem 
seems gone. But I will take your solution commented into my doc and will 
try it and report should it occur again.


Thank you!

Lars

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

2019-02-20 Thread Lars

It's the same as with text, but instead of text you put

\externalfigure[path/to-figure.pdf][setup=value]

inside the parenthesis { }:

\setuppapersize[A5]

\starttext

{\framed
   [width=10cm,
   background=color,backgroundcolor=darkblue,
   foreground=color,foregroundcolor=white,
   align={flushleft}]
{The Earth, as a habitat for animal life, is
in old age and has a fatal illness. Several,
in fact.\par
\setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.}

\blank

{\framed
   [width=10cm,
   background=color,backgroundcolor=darkblue,
   foreground=color,foregroundcolor=white,
   align=middle]
{\externalfigure[path/to-figure.pdf][width=.8\textwidth]}

\stoptext


You don't need the \setupcolors[state=start] command in ConTeXt mkiv by 
the way.



Am 20/02/2019 um 12:31 schrieb Ursula Hermann:

Hi Marco!

I have another question to Frame. How is the process, if i have to take Figures 
in a Frame? Sorry, here I have no example, because I dont know, how to write it.

Many thanks

Uschi



-Ursprüngliche Nachricht-
Von: Ursula Hermann
Gesendet: Mittwoch, 20. Februar 2019 11:10
An: 'mailing list for ConTeXt users' 
Betreff: AW: [NTG-context] Frame


Hi, Marco!

With colour:

\setuppapersize[A5]
\setupcolors[state=start]
{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a fatal 
illness. Several, in fact.\par \setupindenting[yes, small] It would be 
happening whether humans had ever evolved or not.}

Many Regards

Uschi
-Ursprüngliche Nachricht-
Von: Ursula Hermann
Gesendet: Mittwoch, 20. Februar 2019 10:44
An: 'mailing list for ConTeXt users' 
Betreff: AW: [NTG-context] Frame

Hello Marco!

It works, like I wanted:

\setuppapersize[A5]
{\framed
[width=10cm,
 align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a fatal 
illness. Several, in fact.\par \setupindenting[yes, small] It would be 
happening whether humans had ever evolved or not.}

Thank you for helping
Uschi

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Ursula Hermann
Gesendet: Dienstag, 19. Februar 2019 14:17
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] Frame

Hi Marco!

Thanks a lot.

Best regards

Uschi

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Marco Patzer
Gesendet: Dienstag, 19. Februar 2019 14:11
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame

On Tue, 19 Feb 2019 13:01:35 +
Ursula Hermann  wrote:


I have:
\framed
   [height=3em,
width=.5\textwidth,
foregroundcolor=red,
framecolor=blue,
rulethickness=2pt,
background=color,
backgroundcolor=green]
\starttext
{Ich bin da.\par Du auch}
\stoptext

Move the \starttext to the beginning:

\starttext
\framed
   [height=3em,
width=.5\textwidth,
foregroundcolor=red,
framecolor=blue,
rulethickness=2pt,
background=color,
backgroundcolor=green]
{Ich bin da.\par Du auch}
\stoptext

Marco
___
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
___
___
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.ne

Re: [NTG-context] New logo proposal

2019-01-30 Thread Lars
Although I don't think that it's a good idea to paint a car which 
doesn't work as it should in uncountable situations, I'd like to make a 
suggestion:


When you're over the decision which tone the blues and reds should have, 
please put an .ico file or similar of the logo into the CTX 
distributions. My wish has to do with the way how Windows handles 
modifications to its user interface (UI). Having a fixed location and 
naming structure for a file icon would be a big improvement.


If the CTX distribution always downloaded the logo.ico to some place 
which I just didn't find yet, ignore this mail.


Thanks sincerly, Lars.

___
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] Command \hyphenatedurl{} doesn't work

2019-01-24 Thread Lars

Hi there,

the \hyphenatedurl{} command doesn't seem to work. Only the first line 
of the link is clickable and only the first line is being pasted into 
the browser, resulting in a 404. I tested Sumatra and Adobe. MWE:


%---
\setupinteraction[state=start]


\starttext
  hyphenatedurl on its own is only clickable in the first line and 
pastes wrong URL to browser:

  \blank
\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}
  \blank
  Same in the 
footnote:\footnote{\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}}


  \emptylines[5]

  useurl...url behaves the very same:
  \blank
\useURL[urlVar][https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/]\url[urlVar]
  \blank
  Same in the footnote:\footnote{\url[urlVar]}
\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] Footnotes in float combinations missing in output

2019-01-09 Thread Lars

Hi there, hi Hans,

I just want to let you know that footnotes insterted in 
float-combinations don't get rendered properly, i. e. only the last 
footnote is placed in the output. MWE:


\starttext
  \startplacefigure[title={OuterCap\footnote{Outer footnote}}]

    \startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote3\footnote{world}}{\externalfigure[cow][width={.2\textwidth}]}
    \stopfloatcombination

  \stopplacefigure
\stoptext

gives the following:

Can you confirm and tell me that it's not my fault?

Greetings, Lars.

___
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] (no subject)

2019-01-03 Thread Lars

Hi there,

somehow floats that I place with keywords location=left or 
location=rightcreate a blank page first. Am I missing anything? I am 
sure that this wasn't the case before 19.12.2018. Right now I have the 
recent 03.01.2019 version.


My MWE and an image of the output:

\starttext

  \startplacefigure[
    title={Caption},
    location=left]
    \externalfigure[logo--context][width=]
  \stopplacefigure

  \input tufte

\stoptext


Greetings, Lars.


___
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] Attempt to call a nil value

2018-09-08 Thread Lars
Thank you very much Wolfgang. You were a big help, as usual. It never 
came to my mind, that the Textadept lexer file /context.lua/ in my 
working directory could interfere with /mtxmrun/, which is located 
elsewhere. I should also have tried to process files from another 
directory instead of trying it from another PC. But since on my tablet 
PC I only have one single TeX directory, it didn't come to my mind to 
try another one. So again, thank you.


Cheers, Lars.

P. S.: From what I read so far you're a real TeX genius. It's always a 
pleasure to write with you.


P. P. S.: Some people really should learn from you, not only when it 
comes to TeX.



Am 08/09/2018 um 18:42 schrieb Wolfgang Schuster:
mtxrun loads the wrong lua file, while it should load mtx-context.lua 
it actually uses context.lua.


Since there is no context.lua in the distribution I guess context.lua 
is one of your files you put in the text directory, remove this file 
(or put it in a different folder) and ConTeXt should work again.


Wolfgang


Lars schrieb am 08.09.18 um 18:00:


Hello list,

since one of the last beta updates (now I have 2018.09.01) I can't 
use ConTeXt on my Win 10 32bit tablet anymore. I can't make PDFs 
because I get an error message. In fact, with CTX in my system path 
of course, even when I type the following into my command prompt, I 
get the same error:


mtxrun --script context

./context.lua:11: attempt to call a nil value (method 'add_rule')

This could have to do with the last adaption to Textadept 10. On my 
Win 10 x64 PC there is no problem. Any clues?


Cheers and thanks, Lars.



___
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] Attempt to call a nil value

2018-09-08 Thread Lars

Hello list,

since one of the last beta updates (now I have 2018.09.01) I can't use 
ConTeXt on my Win 10 32bit tablet anymore. I can't make PDFs because I 
get an error message. In fact, with CTX in my system path of course, 
even when I type the following into my command prompt, I get the same error:


mtxrun --script context

./context.lua:11: attempt to call a nil value (method 'add_rule')

This could have to do with the last adaption to Textadept 10. On my Win 
10 x64 PC there is no problem. Any clues?


Cheers and thanks, Lars.

___
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 cite online websites (reloaded)

2018-09-02 Thread Lars

Hi Alan,

I don't understand. What is it that makes my code mkii?

\usebtxdataset[default][My_file.bib]
\usebtxdefinitions[aps]
\setupbtxlist[aps][
  %alternative=,
  width=fit,
  distance=.5em,
  %distance=0pt,
  margin=0em,
]

\starttext
  Hallo Welt! \cite[lnkHWelt]

  \startappendices
    \startsection[title={Pubs},marking={}]
  \placelistofpublications[method=dataset]
    \stopsection
  \stopappendices
\stoptext

And that's in My_file.bib:

@Misc{lnkHWelt,
  Note = "zuletzt abgerufen am 5. Aug. 2018",
  Url = "http://wiki.contextgarden.net";
}

What would be the mkiv way?

Thanks in advance, Lars.


Am 02/09/2018 um 23:56 schrieb Alan Braslau:

You are using the old mkii BibTeX module, not the bibliography database system 
that is part of the mkiv core.

Alan


___
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] Fwd: How to cite online websites (reloaded)

2018-09-02 Thread Lars

I am playing with this right now, but it's contra-automative :-P:

\define[1]\LINK{\[\in[#1]\]}

\setupinteraction[state=start]

\starttext

  \startbodymatter

    \startchapter[title={Chapter Ej},marking={}]
  \startsubject[title={Warnunk},marking={}]
    Zitat hier: \LINK{libA}
    \\
    Weiteres Zitat (\LINK{libA} S. 201 ff.).
  \stopsubject
  \startsection[title={Esgalation},marking={}]
    Verweis hier: \LINK{libB}
  \stopsection
    \stopchapter

  \stopbodymatter
  % -
  \startappendices
    \startchapter[title={Quellenverzeichnis},marking={}]
\startitemize[n][stopper={},left={\[},right={\]},distance=1em]

    \startitem[libA]
  A. Bloch, {\it Pleasuredome}, AH-A Ltd., 2018
    \stopitem

    \startitem[libB]
  {\blue\em 
http://wiki.contextgarden.net/verylonglink/will-it-ever-break/try_it}, 
(zuletzt abgerufen am 31.12.2009)

    \stopitem

  \stopitemize
    \stopchapter
  \stopappendices

\stoptext

But I'd really like the BibTeX way... Or at least a hint how I can 
create my own style in CTX from @MISC or even a new entry format.


How can I at least turn off the (unpublished) tag?!? Please...

Lars



 Weitergeleitete Nachricht 
Betreff:[NTG-context] How to cite online websites (reloaded)
Datum:  Sun, 2 Sep 2018 19:02:42 +0200
Von:Lars 
An: ntg-context@ntg.nl



Hello guys,

I've checked some articles on the wiki as well as the publications 
manual, but the results I get aren't what I expect. I hope that you can 
help me.


I'd love to do short BibTeX entries like

@Misc{lnkGGL,
  note = "zuletzt abgerufen am \date[d=05, m=06, y=2018]",
  url = "http://www.google.com";
}

because sometimes this is all info I can get. Now I want an entry in the 
\placelistofpublications area with only the link and the note when I 
opened the website the last time.


That's what I get from ConTeXt so far when I use

\cite[lnkGGL]:

[1], _http://www.google.com_ (unveröffentlicht). (zuletzt abgerufen am 
5. Juni 2018)


How would one get this output instead:

[1] _http://www.google.com_ (zuletzt abgerufen am 5. Juni 2018)

In the mail archive I found these commands:

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=sample]
\setuppublications[numbering=yesalternative=myapa-de]

\starttext

\startpublication[k=pragma,
  t=article, % I sometimes use "webpage"
  a=Hans]
\url{http://www.pragma-ade.com} % or u= inside the square brackets
\lastchecked{some date}
\stoppublication

Hallo\cite[url][pragma]

\placelistofpublications

\stoptext

This of course doesn't work for me (error: "attempt to concatenate a 
table value" or a blank page). Also i-context.pdf gives another syntax 
for \cite. I really just want the link and the date in parentheses. How 
would a pro user do this?


Thanks in advance, Lars-

___
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] How to cite online websites (reloaded)

2018-09-02 Thread Lars

Hello guys,

I've checked some articles on the wiki as well as the publications 
manual, but the results I get aren't what I expect. I hope that you can 
help me.


I'd love to do short BibTeX entries like

@Misc{lnkGGL,
  note = "zuletzt abgerufen am \date[d=05, m=06, y=2018]",
  url = "http://www.google.com";
}

because sometimes this is all info I can get. Now I want an entry in the 
\placelistofpublications area with only the link and the note when I 
opened the website the last time.


That's what I get from ConTeXt so far when I use

\cite[lnkGGL]:

[1], _http://www.google.com_ (unveröffentlicht). (zuletzt abgerufen am 
5. Juni 2018)


How would one get this output instead:

[1] _http://www.google.com_ (zuletzt abgerufen am 5. Juni 2018)

In the mail archive I found these commands:

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=sample]
\setuppublications[numbering=yesalternative=myapa-de]

\starttext

\startpublication[k=pragma,
  t=article, % I sometimes use "webpage"
  a=Hans]
\url{http://www.pragma-ade.com} % or u= inside the square brackets
\lastchecked{some date}
\stoppublication

Hallo\cite[url][pragma]

\placelistofpublications

\stoptext

This of course doesn't work for me (error: "attempt to concatenate a 
table value" or a blank page). Also i-context.pdf gives another syntax 
for \cite. I really just want the link and the date in parentheses. How 
would a pro user do this?


Thanks in advance, Lars-

___
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] Textadept with ConTeXt

2018-08-20 Thread Lars
Hi there, thanks for your interest in Textadept. It's a great editor and 
I am sure that you won't regret testing it and using it in the future. 
Just have some patience.


I suggest you take a look at my User talk at the wiki, there I explain a 
lot about TA and how to use it with ConTeXt. It's more detailed than the 
Textadept site on the wiki.


http://wiki.contextgarden.net/User_talk:Koenich

I have to say though that I wrote it with Windows in mind. But TA's 
config files are all written in Lua so the OS should not be a problem.



Am 21/08/2018 um 00:55 schrieb Fabrice Couvreur:

Hello,
In order to use another editor than Emacs and after testing Scite, I 
installed Textadept and modified the init.lua file as follows :


textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script 
context --autopdf --purge --synctex = -1 "% f"'


First, only edit the init.lua in your USER folder, on Win it's 
C:\Users\NAME\.textadept\init.lua. Don't edit the init.lua within TA's 
main folder. In fact, there is no reason to enter TA's main folder after 
extraction unless you want to read other config files like the ConTeXt 
lexer (see below).


Second, I am using Win10x64 with SumatraPDF as viewer, it's fast and you 
don't need to close documents to recompile. The biggest disadvantage is, 
that you can't use scripts with SumatraPDF (for forms etc.).

Furthermore the following line I wrote into my init.lua:

textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script 
context --autopdf --purge "%f"'


When I compile the PDF like this, Sumatra opens up as expected. On 
recompile it reloads the PDF. Maybe the spaces within your command are 
the reason:

synctex = -1          -> synctex=-1

Third, is your ConTeXt folder within Search Path (I better ask)?

*Fourth, did you bind extensions to the context.lua lexer?* In the 
init.lua it should look like this:


textadept.file_types.extensions.tex = 'context'
% If you're using LaTeX too, you should choose another extension.
textadept.file_types.extensions.mkii = 'context'
textadept.file_types.extensions.mkiv = 'context'

*Fifth, is your context lexer loaded when you compile the file?* Check 
the status bar in the lower right corner. If it doesn't say "context" 
but "latex" or "text" or anything like that, then choose the context 
lexer via "Buffer" -> "Select lexer...".


Sixth, make sure that you really have compilable content. Try with code 
which is as minimal as possible. A simple


\starttext Hello World \stoptext

should do.



The compilation works but no automatic output in pdf at the end of the 
process (as with Scite !)


What to do with files in /home /aragorn/context/tex 
/texmf-context/context/data /textadept/ context/ ?




You put them to your user folder, where your personal init.lua is 
stored. On Win it's

C:\Users\NAME\.textadept\
Copy everything from context/ folder to there. Those files come with a 
init.lua so save yours if you made changes there.
Also, and this is important: the TA config files that come with ConTeXt 
are for TA v9 only (at least until one week ago). They won't work with 
TA v10 until you update them. And even with TA v9 they change TA's 
behaviour significantly as they are for SciTE originally. I wrote 
something about them in my talk as well. I suggest you check it out.


I hope that I could help you a little there.

Cheers, L.



Thank you.
Fabrice



___
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] Fwd: Correct usage of \placebookmarks

2018-01-26 Thread Lars

Am 26/01/2018 um 06:10 schrieb Henri:

Am I being ignored personally here?

Why so impatient?  I was once bumping a thread for half a year with until Hans
fixed it.


Well, that's what I call patience. I don't want to be offensive, yet 
there are several reasons which lead to my assumption, which I'd rather 
not discuss at this point.




It there any reason not to use a head?


Yes there is. It's a multi-page letter in which I simply don't use 
heads. A second scenario is the merging of several PDF documents into 
one, again without using heads. So far I've been using third-party 
software to create bookmarks. Yet I'd like to keep my working 
environment as minimaistic as possible (editor, CTX). I'd love to 
believe that CTX is powerful enough to achieve that goal.




\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[Marks][Marks][force=yes]

\definehead
   [Marks]
   [subject]
   [placehead=empty,
    before={},
    after={}]

\starttext

   \Marks[title={Bookmark one}]
   \input tufte
   
   \page
   
   \Marks[title={Bookmark two}]

   \input knuth

\stoptext


That's all I wanted, just some advice. Even a "it's not possible at this 
time" would have been satisfing. I will test your code as soon as I'm 
home and report on it.


Thank you very much Henri. Cheers.


On Fri, 2018-01-26 at 04:37 +0100, Lars wrote:

Am I being ignored personally here?


---

Hello there,
I've stumbled upon a behaviour in CTX that I don't fully understand. My goal
is to create a multipage document without heads (title, chapter, etc) but only
text. Yet I would like to create bookmarks. So my MWE looks the following:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

   \bookmark[Marks]{Bookmark one}
   \input tufte
   
   \page
   
   \bookmark[Marks]{Bookmark two}

   \input knuth
   
\stoptext

Yet CTX doesn't create bookmarks in that case. I first have to add a blank
predefined header like chapter or section anywhere in the text:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

   \bookmark[Marks]{Bookmark one}
   \input tufte
   
   \page
   
   \bookmark[Marks]{Bookmark two}

   \input knuth
   
   \startchapter[title={},marking={}]

   \stopchapter
   
\stoptext

Although I haven't added chapter key to \placebookmarks, so that it also
doesn't show up in the bookmarks window, only then CTX seems to create
bookmarks for the list which I created called Marks.
Is there a way to circumvent this? I'd like boomarks only where I place them
manually, without using headers.
Thanks in advance, Lars.
__
_
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
___


___
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] Fwd: Correct usage of \placebookmarks

2018-01-25 Thread Lars

Am I being ignored personally here?


---

Hello there,

I've stumbled upon a behaviour in CTX that I don't fully understand. My 
goal is to create a multipage document *without* heads (title, chapter, 
etc) but only text. Yet I would like to create bookmarks. So my MWE 
looks the following:


\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

  \bookmark[Marks]{Bookmark one}
  \input tufte

  \page

  \bookmark[Marks]{Bookmark two}
  \input knuth

\stoptext

Yet CTX doesn't create bookmarks in that case. I first have to add a 
blank predefined header like chapter or section anywhere in the text:


\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

  \bookmark[Marks]{Bookmark one}
  \input tufte

  \page

  \bookmark[Marks]{Bookmark two}
  \input knuth

\startchapter[title={},marking={}]
  \stopchapter

\stoptext

Although I haven't added chapter key to \placebookmarks, so that it also 
doesn't show up in the bookmarks window, only then CTX seems to create 
bookmarks for the list which I created called Marks.


Is there a way to circumvent this? I'd like boomarks only where I place 
them manually, without using headers.


Thanks in advance, Lars.

___
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] Fwd: Correct usage of \placebookmarks

2018-01-23 Thread Lars

Bumb



 Weitergeleitete Nachricht 
Betreff:Correct usage of \placebookmarks
Datum:  Thu, 18 Jan 2018 21:03:41 +0100
Von:Lars 
An: ntg-context@ntg.nl



Hello there,

I've stumbled upon a behaviour in CTX that I don't fully understand. My 
goal is to create a multipage document *without* heads (title, chapter, 
etc) but only text. Yet I would like to create bookmarks. So my MWE 
looks the following:


\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

  \bookmark[Marks]{Bookmark one}
  \input tufte

  \page

  \bookmark[Marks]{Bookmark two}
  \input knuth

\stoptext

Yet CTX doesn't create bookmarks in that case. I first have to add a 
blank predefined header like chapter or section anywhere in the text:


\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

  \bookmark[Marks]{Bookmark one}
  \input tufte

  \page

  \bookmark[Marks]{Bookmark two}
  \input knuth

  \startchapter[title={},marking={}]
  \stopchapter

\stoptext

Although I haven't added chapter key to \placebookmarks, so that it also 
doesn't show up in the bookmarks window, only then CTX seems to create 
bookmarks for the list which I created called Marks.


Is there a way to circumvent this? I'd like boomarks only where I place 
them manually, without using headers.


Thanks in advance, Lars.

___
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] Correct usage of \placebookmarks

2018-01-18 Thread Lars

Hello there,

I've stumbled upon a behaviour in CTX that I don't fully understand. My 
goal is to create a multipage document *without* heads (title, chapter, 
etc) but only text. Yet I would like to create bookmarks. So my MWE 
looks the following:


\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

  \bookmark[Marks]{Bookmark one}
  \input tufte

  \page

  \bookmark[Marks]{Bookmark two}
  \input knuth

\stoptext

Yet CTX doesn't create bookmarks in that case. I first have to add a 
blank predefined header like chapter or section anywhere in the text:


\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definelist[Marks]
\placebookmarks[Marks][Marks][force=yes]

\starttext

  \bookmark[Marks]{Bookmark one}
  \input tufte

  \page

  \bookmark[Marks]{Bookmark two}
  \input knuth

  \startchapter[title={},marking={}]
  \stopchapter

\stoptext

Although I haven't added chapter key to \placebookmarks, so that it also 
doesn't show up in the bookmarks window, only then CTX seems to create 
bookmarks for the list which I created called Marks.


Is there a way to circumvent this? I'd like boomarks only where I place 
them manually, without using headers.


Thanks in advance, Lars.

___
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] TOC and appendices

2018-01-07 Thread Lars
In relation to this matter it's good to know the structure from the 
picture attached to this mail, it's taken from Hoekwater's and Hagen's 
ConTeXt reference manual 2013.


Cheers.


Am 07/01/2018 um 21:40 schrieb Lars:

Hi there,

it's because you're trying to place subtitles only.

Try it with main tile chapter before your section, then you'll see 
yourself:


\starttext
  \placecontent

  \startbodymatter
\section{Sec1}
  In sec 1
  \stopbodymatter
\startappendices
%\definestructureconversionset[T][][A]
%\setupheads[sectionconversionset=T]
  \chapter{ChapB}
  In chap B
  \section{SecA}
  In sec A
  \stopappendices

\stoptext

Cheers.




___
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] TOC and appendices

2018-01-07 Thread Lars

Hi there,

it's because you're trying to place subtitles only.

Try it with main tile chapter before your section, then you'll see yourself:

\starttext
  \placecontent

  \startbodymatter
\section{Sec1}
  In sec 1
  \stopbodymatter
  
  \startappendices

%\definestructureconversionset[T][][A]
%\setupheads[sectionconversionset=T]
  
\chapter{ChapB}

  In chap B
  \section{SecA}
  In sec A
  \stopappendices

\stoptext

Cheers.



Am 06/01/2018 um 14:32 schrieb Procházka Lukáš Ing.:

\starttext
  \placecontent

  \startbodymatter
\section{Sec1}
  In sec 1
  \stopbodymatter

  \startappendices
\definestructureconversionset[T][][A]
\setupheads[sectionconversionset=T]

\section{SecA}
  In sec A
  \stopappendices
\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] Fwd: Re: Multicolumn enumeration in a column

2017-12-30 Thread Lars
I also just saw that columnized itemization doesn't work with "columns" 
key. Use "horizontal" instead:



\definemixedcolumns
  [Mycolumns]
  [
n=2,
separator=rule,
rulecolor=,
balance=,
grid=strut,
  ]

\setupalign[verytolerant,stretch,hanging]

\setuppapersize[A4,landscape]
\setupinteractionscreen[option=landscape]

\starttext
  \startMycolumns

\startitemize[packed, columns, three]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize
\blank[medium]
\startitemize[packed, horizontal, three]
  \startitem
three
  \stopitem
  \startitem
four
  \stopitem
\stopitemize

  \stopMycolumns
\stoptext


Cheers



 Weitergeleitete Nachricht 
Betreff:Re: [NTG-context] Multicolumn enumeration in a column
Datum:  Sat, 30 Dec 2017 20:49:06 +0100
Von:Lars 
An: ntg-context@ntg.nl



Hey there,

the code that you're using won't work with \item command.
Use the \startitem ... \stopitem command pair instead.

Another way to get itemizations in columns is to simply place one 
itemizeation per column:


\starttext

  two columns:

  \startcolumns[n=2]

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

\column

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

  \stopcolumns

  \blank[big]

  three columns:

  \startcolumns[n=3]

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

\column

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

\column

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

  \stopcolumns

\stoptext


Cheers



Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur:

Hello,
How to modify the code for an enumeration on three columns in a column ?
Thank you
Fabrice


\definemixedcolumns
  [Mycolumns]
  [
n=2,
separator=rule,
rulecolor=,
balance=,
grid=strut,
  ]

\setupalign[verytolerant,stretch,hanging]

\setuppapersize[A4,landscape]
\setupinteractionscreen[option=landscape]

\starttext
\startMycolumns
\startitemize[n]
  \item
  \item
\blank
\startitemize[a,columns,three,joinedup]
\item
\item
\item
\stopitemize
\stopitemize
\stopMycolumns
\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
___


___
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] Multicolumn enumeration in a column

2017-12-30 Thread Lars

Hey there,

the code that you're using won't work with \item command.
Use the \startitem ... \stopitem command pair instead.

Another way to get itemizations in columns is to simply place one 
itemizeation per column:


\starttext

  two columns:

  \startcolumns[n=2]

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

\column

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

  \stopcolumns

  \blank[big]

  three columns:

  \startcolumns[n=3]

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

\column

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

\column

\startitemize[packed]
  \startitem
one
  \stopitem
  \startitem
two
  \stopitem
\stopitemize

  \stopcolumns

\stoptext


Cheers



Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur:

Hello,
How to modify the code for an enumeration on three columns in a column ?
Thank you
Fabrice


\definemixedcolumns
  [Mycolumns]
  [
n=2,
separator=rule,
rulecolor=,
balance=,
grid=strut,
  ]

\setupalign[verytolerant,stretch,hanging]

\setuppapersize[A4,landscape]
\setupinteractionscreen[option=landscape]

\starttext
\startMycolumns
\startitemize[n]
  \item
  \item
\blank
\startitemize[a,columns,three,joinedup]
\item
\item
\item
\stopitemize
\stopitemize
\stopMycolumns
\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
___


___
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] setting row height?

2017-12-29 Thread Lars

Hey there,

I suggest you use the *extreme tables* mechanism instead. AFAIK it is 
the most consistent way to-date. A simple table would look like (also 
see attached output jpg at the bottom of the mail):



\starttext

  \startxtable[height=3cm] % Use it globally...

\startxrow
  \startxcell
first top
  \stopxcell
  \startxcell
second top
  \stopxcell
\stopxrow

\startxrow[height=1cm] % ... or locally.
  \startxcell
first bot
  \stopxcell
  \startxcell
second bot
  \stopxcell
\stopxrow

  \stopxtable

\stoptext



Cheers.



Am 28/12/2017 um 20:44 schrieb Floris van Manen:

What is the (preferred) way to set the height of table rows?
e.g. the online documentation tells me how to set the width, not the height.
or how to set the height of the table?

\starttable[*{4}{|w(7mm)}|][textwidth=max]\HL[5]
\VL[5]{1} \VL[1]{0} \VL[5]{2} \VL[1]{8} \VL[5]\AR\HL[1]
\VL[5]{8} \VL[1]{~} \VL[5]{~} \VL[1]{1} \VL[5]\AR\HL[5]
\VL[5]{0} \VL[1]{~} \VL[5]{~} \VL[1]{2} \VL[5]\AR\HL[1]
\VL[5]{2} \VL[1]{8} \VL[5]{1} \VL[1]{0} \VL[5]\AR\HL[5]
\stoptable



Thanks
.F



___
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] Fwd: Spacing issue of xtable with itemize

2017-12-20 Thread Lars

Hello together,

example was from v11-28 by the way. Now in v12-20 it's working as expected.

Thank you very much for the fix.

Cheers


 Weitergeleitete Nachricht 
Betreff:Spacing issue of xtable with itemize
Datum:  Wed, 13 Dec 2017 15:56:29 +0100
Von:    Lars 
An: ntg-context@ntg.nl



Hi guys,

I found a pretty annoying behaviour of xtable spacing (in my case when 
using an itemization inside the table). I hope you guys can help me out. 
MWE is:


\starttext

  \startxtable[frame=on]

\startxrow
  \startxcell[width=3cm]

\startitemize[packed]
  \startitem

here a short line

  \stopitem
\stopitemize

  \stopxcell
\stopxrow

\startxrow
  \startxcell

\startitemize[packed]
  \startitem

here filled with some words to force a rather long line

  \stopitem
\stopitemize

  \stopxcell
\stopxrow

  \stopxtable

\stoptext

To this mail I also attached a picture of my PDF output, that I edited 
slightly to make my point clear. Have a look at the spacing between 
content and bottomframe in the second row of each table please...

Is there any way to change this?

Cheers and thanks in advance, Lars


___
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] Spacing issue of xtable with itemize

2017-12-13 Thread Lars

Hi guys,

I found a pretty annoying behaviour of xtable spacing (in my case when 
using an itemization inside the table). I hope you guys can help me out. 
MWE is:


\starttext

  \startxtable[frame=on]

\startxrow
  \startxcell[width=3cm]

\startitemize[packed]
  \startitem

here a short line

  \stopitem
\stopitemize

  \stopxcell
\stopxrow

\startxrow
  \startxcell

\startitemize[packed]
  \startitem

here filled with some words to force a rather long line

  \stopitem
\stopitemize

  \stopxcell
\stopxrow

  \stopxtable

\stoptext

To this mail I also attached a picture of my PDF output, that I edited 
slightly to make my point clear. Have a look at the spacing between 
content and bottomframe in the second row of each table please...

Is there any way to change this?

Cheers and thanks in advance, Lars
___
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] suppressing console output

2014-03-19 Thread Lars Huttar
On 3/19/2014 11:45 AM, Hans Hagen wrote:
> On 3/19/2014 4:37 PM, Lars Huttar wrote:
>
>> In our case these amount to pages and pages of output, because our
>> document consists of many many files that reference each other
>> (including images). So I would vote a big +1 for that change.
>
> doesn't --batchmode help then?

My mistake... --batchmode does seem to get rid of the file open/close
messages. (Until I learned that --noconsole takes an argument, there was
still so much output that it was hard to see a difference in output due
to --batchmode.)

Unfortunately, --batchmode also seems to suppresses printing fatal error
messages and stopping on them (as its --help documentation suggests). So
when the tex code has an error, the compilation continues to the end
(wasting significant time) and then exits with a failure status code,
but no indication of where the error occurred.

So --batchmode doesn't really seem to be an option for us.
Unless we use batchmode most of the time and then rerun without
batchmode after an error occurs.

I tried having the build script discard stdout from the context process
(with --noconsole=tmp.log but without --batchmode). But apparently, the
error output of context goes to stdout instead of stderr: Context stops
on a fatal error but the error message and prompt are lost, and the
process hangs, waiting for the user to respond to a message they can't see.

Lars

___
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] suppressing console output

2014-03-19 Thread Lars Huttar
On 3/19/2014 11:36 AM, Hans Hagen wrote:
> On 3/19/2014 4:29 PM, Lars Huttar wrote:
>>
>>
>> Is there any documentation about what kinds of complaints this
>> suppresses? I couldn't find any in the usual places. Apparently it is a
>> ConTeXt command rather than a primitive TeX one.
>
> \show\dontcomplain
>

system > tex > error on line 2 in file
C:/Users/Huttar/Documents/work/tex/test-dontcomplain.tex: ? ...


1 \starttext

2 >> \show\dontcomplain

3 \stoptext

4


l.2 \show\dontcomplain


?


> if console output is slowing down a run make sure you have an
> efficient console (i use conemu on windows and on unixes i always make
> sure that i use a proper font); sometimes you can set delays (standard
> cmd on windows is char-by-char but there are variants); when one runs
> from an editor normally the drawbacks are neglectable (at leats in scite)
>

Thanks, the slowdown is one of our concerns. I will look into
alternative terminals.

Lars

___
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] suppressing console output

2014-03-19 Thread Lars Huttar
On 3/19/2014 11:33 AM, Hans Hagen wrote:
> On 3/19/2014 4:15 PM, Aditya Mahajan wrote:
>> On Wed, 19 Mar 2014, Hans Hagen wrote:
>>
>>> On 3/19/2014 4:03 PM, Aditya Mahajan wrote:
>>>> On Wed, 19 Mar 2014, Lars Huttar wrote:
>>>>
>>>>> Can anyone tell me how to suppress non-critical messages from
>>>>> context as
>>>>> it runs?
>>>>
>>>> There are two types of messages that ConTeXt generates: Messages that
>>>> come from TeX engine and messages that come from ConTeXt macro
>>>> code. If
>>>> you use
>>>>
>>>> context --noconsole filename
>>>>
>>>> the messages from ConTeXt are suppressed. I don't know of a way to
>>>> suppress messages that originate from TeX engine.
>>>
>>> \dontcomplain
>>
>> And what about these messages:
>>
>> context --noconsole test
>>
>> mtx-context | warning: no (local) file './test', proceeding
>> mtx-context | run 1: luatex
>> --fmt="/home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
>>
>> --jobname="test"
>> --lua="/home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
>>
>> --no-parse-first-line --c:currentrun=1 --c:directives="logs.target=file"
>> --c:fulljobname="./test" --c:input="./test" --c:kindofrun=1
>> --c:maxnofruns=8 --c:noconsole "cont-yes.mkiv"
>> This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627)
>>   \write18 enabled.
>> (/home/adityam/media/opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv
>>
>>
>>
>> ConTeXt  ver: 2013.12.24 17:52 MKIV beta  fmt: 2013.12.24  int:
>> english/english
>>
>> (/home/adityam/media/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv)
>>
>> (/tmp/test.tex{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map}{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map}{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map}
>>
>> (/home/adityam/media/opt/context-minimals/texmf-context/tex/context/sample/knuth.tex)
>>
>> )
>> )
>>
>
> currently there is no callback for open/close file message but at some
> point we can also intercept these (low priority, to be done when the
> luatex io is cleaned up)
>
> Hans
>

Thanks.
In our case these amount to pages and pages of output, because our
document consists of many many files that reference each other
(including images). So I would vote a big +1 for that change.

Lars

___
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] suppressing console output

2014-03-19 Thread Lars Huttar
On 3/19/2014 11:09 AM, Hans Hagen wrote:
> On 3/19/2014 4:03 PM, Aditya Mahajan wrote:
>> On Wed, 19 Mar 2014, Lars Huttar wrote:
>>
>>> Can anyone tell me how to suppress non-critical messages from
>>> context as
>>> it runs?
>>
>> There are two types of messages that ConTeXt generates: Messages that
>> come from TeX engine and messages that come from ConTeXt macro code. If
>> you use
>>
>> context --noconsole filename
>>
>> the messages from ConTeXt are suppressed.

Thanks, Aditya. I will try adding a filename argument.
This does seem to get rid of a lot of non-critical output, though not
all, as you noted in your followup email.

>> I don't know of a way to
>> suppress messages that originate from TeX engine.
>
> \dontcomplain

Is there any documentation about what kinds of complaints this
suppresses? I couldn't find any in the usual places. Apparently it is a
ConTeXt command rather than a primitive TeX one.

Lars

___
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] suppressing console output

2014-03-19 Thread Lars Huttar
Hello,

I'm running context mkiv, version: 2013.05.28 00:36 (from the 2013 TeX
Live CD).
We're getting floods of output from context, including lots of Underfull
hboxes, and the names of .tex files that are being opened and closed.
This is all within a build script that does several other things besides
running context.
I'd like to suppress non-critical output from context so that other
important output from the script doesn't get so easily lost.
I'm already logging that output to a file, but I'd like to be able to
take advantage of the console as well.

I've tried the following command-line options to context, as suggested
by context --help:
--batchmode
--silent
--silent=typesetting
--noconsole

but none of these seem to have any effect on the output!
I could just have the script discard stdout from context; I'm not sure
how much of the output that would get rid of, but it may be good enough.
However it's not ideal.
(When an error occurs, as sometimes happens, I don't want the error
message and its context to be hidden while the console waits for the
user to respond blindly. I assume that would be on stderr anyway though...)

Can anyone tell me how to suppress non-critical messages from context as
it runs?

Thanks,
Lars

___
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] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 11:06 AM, Wolfgang Schuster wrote:
>
> Am 12.03.2014 um 15:51 schrieb Lars Huttar  <mailto:lars_hut...@sil.org>>:
>
>> This gets rid of the error, but it seems to prevent any expansion of the
>> content of \CurrentUser, because the page head now literally looks like
>> this:
>
> You can try to print the string in verbatim mode:
>
>  
> \def\CurrentUser{\cldcommand{sprint(tex.vrbcatcodes,os.resultof"whoami")}}
>
>   \def\Markname{Compiled \date by \CurrentUser\ \LUATEX +\ConTeXt\
> \contextversion.}
>

That did it. Thank you!
Lars

___
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] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:21 AM, Wolfgang Schuster wrote:
>
> Am 12.03.2014 um 15:12 schrieb Lars Huttar  <mailto:lars_hut...@sil.org>>:
>
>> On 3/12/2014 10:05 AM, Wolfgang Schuster wrote:
>>> Am 12.03.2014 um 15:00 schrieb Lars Huttar >> <mailto:lars_hut...@sil.org>>:
>>>
>>>> Hello,
>>>> I've got a running page head like this in my document:
>>>>
>>>> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
>>>>
>>>> \def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
>>>> \contextversion }
>>>>
>>>> and later:
>>>>
>>>> \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}
>>>>
>>>> But when I run this, I get a UCS error that seems to indicate that the
>>>> *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
>>>> command sequence.
>>> When you want to pass a backslash to Lua you have to use
>>> \letterbackslash.
>>>
>>
>> Thanks... can you give me an example of what that would look like?
>> I don't think I want to pass a backslash to Lua, so I'm not sure how to
>> apply what you're saying. Or are you using "Lua" here in the sense of
>> LuaTeX?
>>
>> A backslash appears in the output of os.resultof"whoami"; do I need to
>> perform some processing on that output in order to escape backslashes?
>
> Try this:
>
> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
>
> \def\Markname{Compiled \date by \detokenize\expandafter{\CurrentUser}
> \LUATEX +\ConTeXt\ \contextversion.}
>
> \setuplayout[location=middle,marking=on]
>
> \definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]
>
> \setupbackgrounds[page][background=cropmark]
>
> \setlayer[cropmark][preset=lefttop,x=3cm,y=1.5\lineheight]{\Markname}
>
> \starttext
>
> Foo
>
> \stoptext
>
>

Thanks again...
This gets rid of the error, but it seems to prevent any expansion of the
content of \CurrentUser, because the page head now literally looks like
this:

 Compiled March 12, 2014 by \cldcontext {os.resultof"whoami"}. 
LuaTEX+ConTEXt...

Lars

___
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] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:05 AM, Wolfgang Schuster wrote:
> Am 12.03.2014 um 15:00 schrieb Lars Huttar :
>
>> Hello,
>> I've got a running page head like this in my document:
>>
>> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
>>
>> \def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
>> \contextversion }
>>
>> and later:
>>
>> \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}
>>
>> But when I run this, I get a UCS error that seems to indicate that the
>> *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
>> command sequence.
> When you want to pass a backslash to Lua you have to use \letterbackslash.
>

Thanks... can you give me an example of what that would look like?
I don't think I want to pass a backslash to Lua, so I'm not sure how to
apply what you're saying. Or are you using "Lua" here in the sense of
LuaTeX?

A backslash appears in the output of os.resultof"whoami"; do I need to
perform some processing on that output in order to escape backslashes?

Lars

___
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] confusion about expansion

2014-03-12 Thread Lars Huttar
Hello,
I've got a running page head like this in my document:

\def\CurrentUser{\cldcontext{os.resultof"whoami"}}

\def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
\contextversion }

and later:

\setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}

But when I run this, I get a UCS error that seems to indicate that the
*result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
command sequence.

Here's the error:

! Undefined control sequence.

 1 >>  % see ConTeXt wiki http://wiki.contextgarden.net/Imposition#Cut_marks
 2
 3 %% TODO: make sure this doesn't reevaluate every time
 4 %% the command sequence is used!
 5 \define\CurrentUser{\cldcontext{os.resultof"whoami"}}
 6
 7 \def\Markname { Compiled \date by \CurrentUser  \LUATEX
+\ConTeXt\ \conte
xtversion. SVN  }
...

l.1 waxhaw\huttar

\cldcontext #1x-\directlua {context(#1)}

\Markname #- Compiled \date by \CurrentUser
\LUATEX +\ConTeXt \
\contextvers...
l.24 ...t=lefttop,x=3cm,y=-1.5\lineheight]{\Markname
  }

How can I change the definition of \CurrentUser, or \Markname, to output
the result of \CurrentUser as-is, instead of parsing the result?
I tried (somewhat blindly) changing \def to \define, but it didn't make
any difference.

At the same time, I want to make sure that the processor won't be making
an OS system call to "whoami" every time \CurrentUser is evaluated: I
want it to happen only once, when \CurrentUser is defined.

Here is my complete working example:

\def\CurrentUser{\cldcontext{os.resultof"whoami"}}

\def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\
\contextversion. }

\setuplayout[location=middle,marking=on]

\definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=cropmark]

\setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}


\starttext

Foo

\stoptext


Thanks for any help.
Lars


___
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] getting text outside cropmarks to work

2014-02-11 Thread Lars Huttar
On 2/7/2014 10:21 AM, Wolfgang Schuster wrote:
> Am 07.02.2014 um 16:17 schrieb Lars Huttar :
>
>> This works for one page, but when I increase the length of the text to
>> take multiple pages, the top and bottom text only appears on the first
>> page. (Again, using ConTeXt version 2013.05.28 00:36 from the TeX Live CD.)
>> How do you make layers, or backgrounds, appear on every page?
>
> Add “state=repeat” to \definelayer:
>
>   \definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]
>

It works for me. Thanks again!

Lars

___
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] getting text outside cropmarks to work

2014-02-07 Thread Lars Huttar
On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:
>
> Am 05.02.2014 um 17:30 schrieb Lars Huttar  <mailto:lars_hut...@sil.org>>:
>
>> ...
>> If we need to implement this using layers, does anyone have a recent
>> example of using a layer to place a running footer outside the crop
>> marks?
>
> \setuppapersize[A4][A3]
>
> \setuplayout[location=middle,marking=on]
>
> \setupbodyfont[modern]
>
> \definelayer[cropmark][width=\paperwidth,height=\paperheight]
>
> \setupbackgrounds[page][background=cropmark]
>
> \setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
> \setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}
>
> \starttext
> \input knuth
> \stoptext
>
>

This works for one page, but when I increase the length of the text to
take multiple pages, the top and bottom text only appears on the first
page. (Again, using ConTeXt version 2013.05.28 00:36 from the TeX Live CD.)
How do you make layers, or backgrounds, appear on every page?

Thanks,
Lars

___
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] getting text outside cropmarks to work

2014-02-06 Thread Lars Huttar
On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:
>
> Am 05.02.2014 um 17:30 schrieb Lars Huttar  <mailto:lars_hut...@sil.org>>:
>
>> ... If we need to implement this using layers, does anyone have a recent
>> example of using a layer to place a running footer outside the crop
>> marks?
>
> \setuppapersize[A4][A3]
>
> \setuplayout[location=middle,marking=on]
>
> \setupbodyfont[modern]
>
> \definelayer[cropmark][width=\paperwidth,height=\paperheight]
>
> \setupbackgrounds[page][background=cropmark]
>
> \setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
> \setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}
>
> \starttext
> \input knuth
> \stoptext
>
> Wolfgang
>

Thanks, this looks very helpful. I'll give it a try.
Lars


___
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] getting text outside cropmarks to work

2014-02-05 Thread Lars Huttar
On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
> Am 05.02.2014 um 16:45 schrieb Lars Huttar :
>
>> Hello,
>>
>> Under mkii we used to have a running footer that appeared below the crop
>> marks. Under mkiv I can't get that to work.
>>
>> The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):
>>
>> \def\TopText { Top Text }
>>
>> \def\BottomText { Bottom Text }
>>
>> \def\pagecutmarksymbol {\the\realpageno}
>>
>> \def\pagecutmarklength {.5cm}
>>
>> \let\pagecutmarktoptext \TopText
>>
>> \let\pagecutmarkbottomtext \BottomText
>>
>> \setuplayout[marking=text]
>>
>> %\setuplayout[marking=on]
>>
>> \starttext
>>
>> \input knuth
>>
>> \stoptext
>>
>> Code like this used to work for us in mkii.
> Redefining internal commands isn’t a good solution, what you can do is to use 
> a layer to place your texts.
>

Thanks for your reply.

When you say "redefining internal commands", is that referring to
statements like

  \let\pagecutmarktoptext \TopText

?

AFAICT this is the recommended solution, both on the current wiki 
(http://wiki.contextgarden.net/Imposition#Cut_marks) and by Hans 
(http://context.markmail.org/thread/kpayudrtabsti76i) albeit several years ago; 
the current ref man (section 3.4 Page design / page composition) also lists 
marking=TEXT as an option for \setuplayout. If this is correct, how is one 
supposed to specify the text to display?

Am I misunderstanding the documentation, or is it just obsolete?

If we need to implement this using layers, does anyone have a recent
example of using a layer to place a running footer outside the crop marks?

Thanks,
Lars

___
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] getting text outside cropmarks to work

2014-02-05 Thread Lars Huttar
Hello,

Under mkii we used to have a running footer that appeared below the crop
marks. Under mkiv I can't get that to work.

The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):

\def\TopText { Top Text }

\def\BottomText { Bottom Text }

\def\pagecutmarksymbol {\the\realpageno}

\def\pagecutmarklength {.5cm}

\let\pagecutmarktoptext \TopText

\let\pagecutmarkbottomtext \BottomText

\setuplayout[marking=text]

%\setuplayout[marking=on]

\starttext

\input knuth

\stoptext


Code like this used to work for us in mkii.


I tried it with both marking=text and marking=on, but in either case, I
get neither crop marks nor the text.
(In our real document, I was able to get crop marks with [marking=on].
But not text. And haven't figured out how to get crop marks in a MWE.)


Relevant guidance I've been trying to follow:
http://wiki.contextgarden.net/Imposition#Cut_marks
http://context.markmail.org/thread/kpayudrtabsti76i

Thanks for any help on how to get text (pagecutmarkbottomtext) to appear
outside the crop marks.

Lars

___
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] footer page number on first page of section: doesn't appear

2013-12-05 Thread Lars Huttar
On 12/4/2013 4:00 PM, Aditya Mahajan wrote:
> On Wed, 4 Dec 2013, Lars Huttar wrote:
>
>> On Dec 4, 2013 12:16:12 pm Wolfgang Schuster wrote:
>>> ...
>>> This works only when your heading forces a page break with the
>>> “page=yes”
>>> setting in \setuphead.
>>
>> Thanks for this response.
>> Actually, we were able to get it to work as follows.
>>
>> First, we used
>> \definehead[section][chapter]
>> to get section to inherit some settings from chapter.
>> This included the "page=yes" setting you mentioned (which we don't want,
>> because we handle page breaks with some separate special logic); but it
>> also apparently includes some unknown magic that enables page numbers in
>> footers.
>>
>> Then we add "page=no" to the \setuphead[section] command, to override
>> the inherited "page=yes".
>> Apparently, it works:
>>
>> \definetext[footerpagenumber][footer][pagenumber]
>>
>> \definehead[section][chapter]
>>
>> \setuphead[section][page=no,header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf]
>>
>>
>> \starttext
>>
>> \section{My Own Section}
>>
>> \dorecurse{15}{ \input knuth \par }
>>
>> \stoptext
>>
>>
>> I would love to know what the default properties of the \chapter head
>> are, so we could know what we're inheriting, or how to set up section to
>> do what we want without inheriting unknown properties from chapter.
>
> (Untested): Looking at the code, it looks that any value other than
> page=, (i.e, page=empty) should work. Did you try the above example
> without the \definehead[section][chapter] line?
>
> Aditya

Uggh... I just tried it without the \definehead[section][chapter] line,
and it works! (I.e. there is a page number in the footer, only on the
first page of the section.) It wasn't working yesterday ... which makes
me wonder what else I changed since then.

Thanks,
Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-12-05 Thread Lars Huttar (SIL gmail)
On 12/3/2013 4:40 PM, Hans Hagen wrote:
> On 12/3/2013 3:10 PM, Lars Huttar wrote:
>> ...
>> Thanks again for your work on this.
>> We're continually reevaluating whether we can use the beta or need to
>> stick with the stable version. At the moment, it looks like we'll be
>> sticking with the stable version. But we'd like to use the beta, if the
>> problems can be ironed out.
>
> fyi: i'll not patch the stable version
>
> new beta
>

Thanks for the fixes.
When I said "the stable version", I wasn't very specific, but I was
referring to the one on the TeX Live 2013 CD.

But after you said the above I realized you were talking about this
(http://wiki.contextgarden.net/ConTeXt_Standalone#Single_user_installation):

> By default, the suite installs ConTeXt beta. If you want the stable
> version of ConTeXt, you can use
>
> sh ./first-setup.sh --context=current

I'm making a note of it here in hope that it will help me remember next
time what the "stable" version refers to.

Regards,
Lars

___
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] footer page number on first page of section: doesn't appear

2013-12-04 Thread Lars Huttar
On Dec 4, 2013 12:16:12 pm Wolfgang Schuster wrote:
>
> On 12/4/2013 12:37 PM, Lars Huttar wrote:
>> Hi,
>> Based on our reading of
>> http://wiki.contextgarden.net/FO_Page_Layout#First_Page
>> we have the following MWE, which we want to put a page number in the
>> footer on the first page only:
>>
>> \definetext[footerpagenumber][footer][pagenumber]
>>
>> \setuphead[section][header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf]
>>
>> \starttext
>>
>> \section{My Own Section}
>>
>> \dorecurse{15}{ \input knuth \par }
>>
>> \stoptext
>>
>>
>> Unfortunately, no page number shows up.
>>
>> If we add
>>   \setuppagenumbering[location=footer]
>> before the \starttext, we get the page numbering we want, but it's on
>> every page, not just the first.
>>
>>
>> Is there something wrong with our setuphead?
>>
>
> This works only when your heading forces a page break with the “page=yes”
> setting in \setuphead.

Thanks for this response.
Actually, we were able to get it to work as follows.

First, we used
\definehead[section][chapter]
to get section to inherit some settings from chapter.
This included the "page=yes" setting you mentioned (which we don't want,
because we handle page breaks with some separate special logic); but it
also apparently includes some unknown magic that enables page numbers in
footers.

Then we add "page=no" to the \setuphead[section] command, to override
the inherited "page=yes".
Apparently, it works:

\definetext[footerpagenumber][footer][pagenumber]

\definehead[section][chapter]

\setuphead[section][page=no,header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf]

\starttext

\section{My Own Section}

\dorecurse{15}{ \input knuth \par }

\stoptext


I would love to know what the default properties of the \chapter head
are, so we could know what we're inheriting, or how to set up section to
do what we want without inheriting unknown properties from chapter.

Thanks again,
Lars

___
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] footer page number on first page of section: doesn't appear

2013-12-04 Thread Lars Huttar
Hi,
Based on our reading of
http://wiki.contextgarden.net/FO_Page_Layout#First_Page
we have the following MWE, which we want to put a page number in the
footer on the first page only:

\definetext[footerpagenumber][footer][pagenumber]

\setuphead[section][header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf]

\starttext

\section{My Own Section}

\dorecurse{15}{ \input knuth \par }

\stoptext


Unfortunately, no page number shows up.

If we add
  \setuppagenumbering[location=footer]
before the \starttext, we get the page numbering we want, but it's on
every page, not just the first.


Is there something wrong with our setuphead?


Thanks,
Lars


___
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] a way to implement \testcolumn in mixedcolumns

2013-12-03 Thread Lars Huttar
On 11/28/2013 1:34 PM, Hans Hagen wrote:
>
> That macro was never meant for mixed columns. I made a variant that
> works ok in mixed columns which will be in the next beta.
>
> \setuptolerance[verytolerant]
>
> \starttext
>
> \startmixedcolumns
>
> \dorecurse{4}{\input ward \par}
>
> \testcolumn[10][-1pt] % 10 lines - 1pt slack
>
> \dorecurse{2}{\input ward \par}
>
> \stopmixedcolumns
>
> \stoptext

Ok. It looks like the second parameter to \testcolumn is now required
(it didn't used to be).
What does this slack value do? Does it mean that the minimum amount of
space left in the column is 10 lines minus 1pt?

Also, in the Dec. 2 beta (current version: 2013.12.02 15:22),  the
\column command now causes an error when we come to the \stopmixedcolumns.
I don't know if it's connected with the above change, or something else.

MWE: change the \testcolumn command above to \column.
I get the following error output:

! LuaTeX error
C:/context/tex/texmf-context/tex/context/base/page-mix.lua:474
: attempt to compare number with nil
stack traceback:
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:474: in function 'process_penalty'
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:572: in function 'setsplit'
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:687: in function 'setsplit'
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:819: in function 'mixsetsplit'
[string "\directlua "]:1: in main chunk.

system  > tex > error on line 14 in file
C:/Users/Huttar/Documents/work/tex/test-beta-testcolumn.tex:
LuaTeX error  ...

 4
 5 \startmixedcolumns
 6
 7 \dorecurse{4}{\input ward \par}
 8
 9 %\testcolumn[10][-1pt] % 10 lines - 1pt slack
10 \column
11
12 \dorecurse{2}{\input ward \par}
13
14 >>  \stopmixedcolumns
15
16 \stoptext
17


\ctxcommand #1 -\directlua {commands.#1}
   
\page_mix_routine_construct ...\else false\fi , }}
  \deadcycles
\zerocount
\page_mix_routine_continue ...ine_construct \v!no
 
\page_mix_routine_package ...
\page_otr_command_routine ...mix_routine_continue
  \or
\page_mix_routine_bala...
\page_otr_triggered_output_routine ...and_routine
  \fi
 ...eforeoutput \page_otr_triggered_output_routine
  \relax \the
\everyafterout...
...
l.14 \stopmixedcolumns
   
? X


Thanks again for your work on this.
We're continually reevaluating whether we can use the beta or need to
stick with the stable version. At the moment, it looks like we'll be
sticking with the stable version. But we'd like to use the beta, if the
problems can be ironed out.

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Lars Huttar (SIL gmail)
On 11/28/2013 1:34 PM, Hans Hagen wrote:
>
> That macro was never meant for mixed columns. I made a variant that
> works ok in mixed columns which will be in the next beta.
>

Excellent. I will give it a try.
I see a context-setup-win64 dated 2013-11-28 19:45. Is that beta? I may
wait for the next one anyway just to be sure... today is a holiday for us.

Lars

___
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] bug in beta: \tab results in text overlap

2013-11-27 Thread Lars Huttar
On 11/27/2013 11:08 AM, Lars Huttar wrote:
>
> I tried the beta of 2013.11.26, and as mentioned in a previous
> email, it fixes the \getmarking problem pretty well. However the same
> beta has a fatal problem for us: lists using \tab are now broken.
>
> MWE:
> \starttext
> \tab{AC}Autonomous Community\par
> \tab{\it alt.}alternate name for\par
> \stoptext
>
> In the TeX Live 2013 version of mkiv, this gives us a nice table with
> the headword separated from the definition.
> In the beta, the headword and the definition start at the same
> horizontal position, and overlap each other.
>
> We use these lists in the context of mixedcolumns, but the overlap
> behavior occurs regardless of mixedcolumns.
>
> Any help would be appreciated. If we can't fix or work around this
> problem, we may have to abandon the beta and go back to TeX Live 2013,
> which means our page header guide words would be incorrect.
>

Well, it's probably not quite that fatal for our project, because it
looks like the \definedescription mechanism can be used to replace \tab,
and does not suffer from the same problem in the beta.

Nevertheless I thought someone would like to know that \tab has stopped
working, so it can be fixed (or documented as obsolete, in favor of
\definedescription).

Lars

___
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] bug in beta: \tab results in text overlap

2013-11-27 Thread Lars Huttar
On 11/22/2013 4:34 PM, Hans Hagen wrote:
>
> The problem, is/was that mixed columns had not yet mark
> synchronization enabled. I uploaded a new beta. In the process I also
> made marks a bit more restrictive but it might have (yet unknown) side
> effects.

Hans, I tried the beta of 2013.11.26, and as mentioned in a previous
email, it fixes the \getmarking problem pretty well. However the same
beta has a fatal problem for us: lists using \tab are now broken.

MWE:
\starttext
\tab{AC}Autonomous Community\par
\tab{\it alt.}alternate name for\par
\stoptext

In the TeX Live 2013 version of mkiv, this gives us a nice table with
the headword separated from the definition.
In the beta, the headword and the definition start at the same
horizontal position, and overlap each other.

We use these lists in the context of mixedcolumns, but the overlap
behavior occurs regardless of mixedcolumns.

Any help would be appreciated. If we can't fix or work around this
problem, we may have to abandon the beta and go back to TeX Live 2013,
which means our page header guide words would be incorrect.

Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-26 Thread Lars Huttar
On 11/22/2013 4:34 PM, Hans Hagen wrote:
> On 11/21/2013 7:01 PM, Lars Huttar wrote:
>
>> I now have a MWE that shows the problem.
>> Where top and bottom work fine outside of columns, in mixedcolumns, any
>> keyword I use with \getmarking always seem to return the *last* item on
>> the page. Here's the MWE:
>
> I changed the example a bit
>
> \setupbodyfont[dejavu]
>
> \definemarking[country]
>
> \startsetups myheader
>
> (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom])
>
> \hfill
>
> (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom])
>
> \stopsetups
>
> \setupheadertexts
>   [\setups{myheader}][]
>   [][\setups{myheader}]
>
> \def\anothersection#1%
>   {\par
>\dontleavehmode
>\marking[country]{#1}%
>\start\bf #1 \endgraf\stop
>\quad
>test
>\par}
>
> \starttext
> \startmixedcolumns[distance=5mm, balance=yes]
> \anothersection{Brazil}
>%\anothersection{Suriname}
>%\anothersection{Uruguay}
>%\anothersection{Bolivia}
>%\anothersection{Venezuela}
> \anothersection{Peru}
> \stopmixedcolumns
> \stoptext
>
> The problem, is/was that mixed columns had not yet mark
> synchronization enabled. I uploaded a new beta.

When I use the new beta (using 2013.11.26), marking works better, with
the following caveats:

1) The column number argument is required; using
\getmarking[country][top] instead of \getmarking[country][1][top] still
returns the wrong value. This is not a problem for us, but it's
important to know, because if you leave out the column number argument,
there is no error given, and AFAIR the documentation doesn't tell you
it's required.

2) Sometimes \getmark[country][n][bottom] returns the country at the top
of column n+1 (or column 1 on the next page). In your example above,
\getmarking[country][1][bottom] shows Peru, which is in column 2,
instead of Brazil. This can be a significant problem for us, unless we
can find a way to fix it.
Did you get a different result?

> In the process I also made marks a bit more restrictive but it might
> have (yet unknown) side effects.
>
> \enabledirectives[marks.boxestoo]
>
> can be used to see the effect of this.
>

I tried this with your example above, but didn't see anything change.
Are we supposed to see some colored boxes around the marks?

Thanks again,
Lars


___
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] a way to implement \testcolumn in mixedcolumns

2013-11-26 Thread Lars Huttar
On 11/23/2013 6:49 AM, Hans Hagen wrote:
> On 11/22/2013 11:37 PM, Lars Huttar wrote:
>> On 11/22/2013 4:59 PM, Hans Hagen wrote:
>>> On 11/20/2013 11:12 PM, Lars Huttar wrote:
>>>> On 11/20/2013 4:47 PM, Lars Huttar wrote:
>>>>> However one thing we do miss from columnsets is the control over
>>>>> widows
>>>>> & orphans in two ways: \testcolumn, and \setupcolumnsetlines.
>>>>> \testcolumn[n] allowed us to do a conditional column break, so
>>>>> when we
>>>>> were about to start a new subsection heading, we could prevent it
>>>>> being
>>>>> an orphan at the bottom of the column; and when starting a paragraph
>>>>> with a hangaround graphic framed flushright and bottom, we could
>>>>> similarly use \testcolumn to prevent the graphic from hanging down
>>>>> into
>>>>> the footer (which is what sometimes happened otherwise).
>>>>>
>>>>> So I'm wondering, is there some way to achieve the equivalent of
>>>>> \testcolumn in mixedcolumns?
>>>
>>> for the moment add \penalty1
>>>
>>
>> OK... where? In the same place we used to use \testcolumn?
>
> just after the (sub)section title
>
> i need time to figure out this kind of things in the balancer

Hans, here is what I tried (MWE):

\setuppapersize[A4]

\starttext

\section{Introduction}

\startmixedcolumns[distance=5mm, balance=yes]

\dorecurse {25} {

\subsection{Subsection Heading}

\penalty1

If I had not participated fully in all these activities, literally
hundreds of improvements would never have been made, because I would
never have thought of them or perceived their importance. \endgraf

}

\stopmixedcolumns

\stoptext


As you see, I tried \penalty1 after the subsection heading.
But in the resulting PDF, on page 3, in the left column, we see a
subsection heading at the bottom of the column with nothing below it. So
something didn't work.

Am I not doing it the way you meant?


Thanks for your help,
Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-22 Thread Lars Huttar
On 11/22/2013 4:59 PM, Hans Hagen wrote:
> On 11/20/2013 11:12 PM, Lars Huttar wrote:
>> On 11/20/2013 4:47 PM, Lars Huttar wrote:
>>> However one thing we do miss from columnsets is the control over widows
>>> & orphans in two ways: \testcolumn, and \setupcolumnsetlines.
>>> \testcolumn[n] allowed us to do a conditional column break, so when we
>>> were about to start a new subsection heading, we could prevent it being
>>> an orphan at the bottom of the column; and when starting a paragraph
>>> with a hangaround graphic framed flushright and bottom, we could
>>> similarly use \testcolumn to prevent the graphic from hanging down into
>>> the footer (which is what sometimes happened otherwise).
>>>
>>> So I'm wondering, is there some way to achieve the equivalent of
>>> \testcolumn in mixedcolumns?
>
> for the moment add \penalty1
>

OK... where? In the same place we used to use \testcolumn?

According to http://www.tug.org/utilities/plain/cseq.html#penalty-rp,
"If  is 10,000 or larger, TeX will never break a line or a page
there. Also, if  is -10,000 or less, it will always break a line
or a page there [97 and 110]. ... Plain TeX has \break and \nobreak
macros which are defined to be: \penalty-1 and \penalty1."

So it sounds like you're recommending the equivalent of a \nobreak. That
wouldn't make sense in the place where we want to conditionally break
the column. So I guess you're talking about using it e.g. right after
the subsection heading, since we don't want it to break right there?

If so, that sounds like it will be helpful for preventing that
particular case.

I don't think it will work for preventing external figures from hanging
down below the bottom of the column though, will it? Because for that to
work, we'd have to prevent breaks anywhere in the flowing-around
paragraph. And I don't see a way to do that.

Thanks,
Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-22 Thread Lars Huttar
On 11/22/2013 4:34 PM, Hans Hagen wrote:
> On 11/21/2013 7:01 PM, Lars Huttar wrote:
>
>> I now have a MWE that shows the problem.
>> Where top and bottom work fine outside of columns, in mixedcolumns, any
>> keyword I use with \getmarking always seem to return the *last* item on
>> the page. Here's the MWE:
>
> I changed the example a bit
>
> \setupbodyfont[dejavu]
>
> \definemarking[country]
>
> \startsetups myheader
>
> (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom])
>
> \hfill
>
> (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom])
>
> \stopsetups
>
> \setupheadertexts
>   [\setups{myheader}][]
>   [][\setups{myheader}]
>
> \def\anothersection#1%
>   {\par
>\dontleavehmode
>\marking[country]{#1}%
>\start\bf #1 \endgraf\stop
>\quad
>test
>\par}
>
> \starttext
> \startmixedcolumns[distance=5mm, balance=yes]
> \anothersection{Brazil}
>%\anothersection{Suriname}
>%\anothersection{Uruguay}
>%\anothersection{Bolivia}
>%\anothersection{Venezuela}
> \anothersection{Peru}
> \stopmixedcolumns
> \stoptext
>
> The problem, is/was that mixed columns had not yet mark
> synchronization enabled. I uploaded a new beta. In the process I also
> made marks a bit more restrictive but it might have (yet unknown) side
> effects.
>
> \enabledirectives[marks.boxestoo]
>
> can be used to see the effect of this.
>

Thanks. We will try this out.

Lars

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

2013-11-21 Thread Lars Huttar
In a thread from July
(http://context.markmail.org/thread/6tgzusw45whaqghi), Marco Patzer
raised some questions that we have too. They were somewhat answered, but
I'm still not clear on what the meanings of the keywords are.

On Jul 8, 2013 4:08:33 pm Hans wrote:
> On 7/9/2013 12:30 AM, Marco Patzer wrote:
> >/ On 2013–07–08 Hans Hagen wrote:
> />/
> />>>/ I expect the markings on the left and right to be the same and show
> />>>/ A–C on the first page and D–E on the second one. Looks like a bug to
> />>>/ me.
> />>/
> />>/ use top and bottom
> />/
> />/ This works. Thanks.
> />/
> />>/ -- previous : last before sync
> />>/ -- next : first after sync
> />>/
> />>/ -- top  : first in sync
> />>/ -- bottom   : last in sync
> />>/
> />>/ -- first: first not top in sync
> />>/ -- last : last not bottom in sync
> />/
> />/ That is exactly what's in the wiki (Command/getmarking). To my
> />/ defence: The manual (chapter 12.4) is outdated, it lists:
> />/
> />/previous - the last of the previous page
> />/first- the first of the actual page
> />/last - the last of the actual page
> />/both - first — last
> />/all  - previous — first — last
> />/
> />/ I have no idea what “first not top in sync” means, in contrast to
> />/ “first of the actual page”, which is quite clear but wrong on a
> />/ current MkIV.
> /
> old tex terminology ... in mkiv i don't use the build-in-tex marks at 
> all (too much juggling needed to get things right)

So I'm wondering ... Hans, since the descriptions you posted are old tex
terminology, what do previous/next/top/bottom/first/last/etc. mean in
current terminology?
I agree with Marco that the descriptions in the ref manual are much
easier to understand, but appear to be wrong; and do not include top/bottom.
I'll be happy to update the ref manual and the wiki if I can get clear
and accurate information.

We have run many examples here, including the ones on the getmarking
wiki page, trying to understand what these keywords mean.
top/bottom do appear to do what we need in an MWE, but are not working
for us in the real document, and knowing the meaning of these keywords
would be very helpful in troubleshooting the problem.

Thanks,
Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-21 Thread Lars Huttar
On 11/21/2013 1:01 PM, Lars Huttar wrote:
> I now have a MWE that shows the problem. Where top and bottom work
> fine outside of columns, in mixedcolumns, any keyword I use with
> \getmarking always seem to return the *last* item on the page. 

I sometimes forget to include our version info.
MKIV, the Context version from TeX Live 2013.

Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-21 Thread Lars Huttar
On 11/21/2013 11:40 AM, Lars Huttar wrote:
> In a thread from July
> (http://context.markmail.org/thread/6tgzusw45whaqghi), Marco Patzer
> raised some questions that we have too. They were somewhat answered, but
> I'm still not clear on what the meanings of the keywords are.
>
> On Jul 8, 2013 4:08:33 pm Hans wrote:
>> On 7/9/2013 12:30 AM, Marco Patzer wrote:
>>> / On 2013–07–08 Hans Hagen wrote:
>> />/
>> />>>/ I expect the markings on the left and right to be the same and show
>> />>>/ A–C on the first page and D–E on the second one. Looks like a bug to
>> />>>/ me.
>> />>/
>> />>/ use top and bottom
>> />/
>> />/ This works. Thanks.
>> />/
>> />>/ -- previous : last before sync
>> />>/ -- next : first after sync
>> />>/
>> />>/ -- top  : first in sync
>> />>/ -- bottom   : last in sync
>> />>/
>> />>/ -- first: first not top in sync
>> />>/ -- last : last not bottom in sync
>> />/
>> />/ That is exactly what's in the wiki (Command/getmarking). To my
>> />/ defence: The manual (chapter 12.4) is outdated, it lists:
>> />/
>> />/previous - the last of the previous page
>> />/first- the first of the actual page
>> />/last - the last of the actual page
>> />/both - first — last
>> />/all  - previous — first — last
>> />/
>> />/ I have no idea what “first not top in sync” means, in contrast to
>> />/ “first of the actual page”, which is quite clear but wrong on a
>> />/ current MkIV.
>> /
>> old tex terminology ... in mkiv i don't use the build-in-tex marks at 
>> all (too much juggling needed to get things right)
> So I'm wondering ... Hans, since the descriptions you posted are old tex
> terminology, what do previous/next/top/bottom/first/last/etc. mean in
> current terminology?
> I agree with Marco that the descriptions in the ref manual are much
> easier to understand, but appear to be wrong; and do not include top/bottom.
> I'll be happy to update the ref manual and the wiki if I can get clear
> and accurate information.
>
> We have run many examples here, including the ones on the getmarking
> wiki page, trying to understand what these keywords mean.
> top/bottom do appear to do what we need in an MWE, but are not working
> for us in the real document, and knowing the meaning of these keywords
> would be very helpful in troubleshooting the problem.
>
> Thanks,
> Lars
>
 
I now have a MWE that shows the problem.
Where top and bottom work fine outside of columns, in mixedcolumns, any
keyword I use with \getmarking always seem to return the *last* item on
the page. Here's the MWE:
\definemarking[country]


%\startsetups myheader

%F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last]

%\hfill

%T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom]

%\stopsetups


\startsetups myheader

F: \getmarking[country][first] - L: \getmarking[country][last]

\hfill

T: \getmarking[country][top] - B: \getmarking[country][bottom]

\stopsetups


\setupheadertexts[\setups{myheader}][][][\setups{myheader}]


\def\anothersection#1{

\marking[country]{#1}

{\bfb #1 \endgraf}

\dorecurse{1}{\input knuth \endgraf}

\marking[country]{#1}

}


\starttext

\startmixedcolumns[distance=5mm, balance=yes]

\anothersection{Brazil}

\anothersection{Suriname}

\anothersection{Uruguay}

\anothersection{Bolivia}

\anothersection{Venezuela}

\anothersection{Peru}

\stopmixedcolumns

\stoptext



When you run the MWE, you see that all the fields in the page header
show the same value: whatever country appears last on the page. (Or
even, depending on how you tweak the length of the country text, if the
next page starts with a new country, you'll get that new country for the
old page.)

I also tried using column numbers, in imitation of the columnsets
example on the wiki at http://wiki.contextgarden.net/Command/getmarking

\startsetups myheader

F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last]

\hfill

T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom]

\stopsetups


But this didn't appear to make any difference. Maybe it works for
columnsets but not for mixedcolumns. Does anyone know how to get correct
results for \getmarking in mixedcolumns?


Thanks,
Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-20 Thread Lars Huttar
On 11/20/2013 4:47 PM, Lars Huttar wrote:
> However one thing we do miss from columnsets is the control over widows
> & orphans in two ways: \testcolumn, and \setupcolumnsetlines.
> \testcolumn[n] allowed us to do a conditional column break, so when we
> were about to start a new subsection heading, we could prevent it being
> an orphan at the bottom of the column; and when starting a paragraph
> with a hangaround graphic framed flushright and bottom, we could
> similarly use \testcolumn to prevent the graphic from hanging down into
> the footer (which is what sometimes happened otherwise).
>
> So I'm wondering, is there some way to achieve the equivalent of
> \testcolumn in mixedcolumns?

Here is a MWE:

\starttext


\startmixedcolumns[distance=5mm, balance=yes]

\dorecurse {20} {

\testcolumn[8]

\subsection{Subsection Heading} \input knuth \endgraf

}

\stopmixedcolumns


\stoptext


You can see that the heading for subsection 6 is an orphan at the bottom
of a column (at least, with the paper size settings I have; otherwise,
I'm sure it happens somewhere else). If \testcolumn worked, the
\testcolumn[8] would have shoved the subsection heading to the next
column, because there was not space for 8 lines left in the column at
that point.

Any thoughts on how to fix this kind of occurrence?

Thanks,
Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-20 Thread Lars Huttar
Hello,

On this list I've been advised that mixedcolumns is the latest and
greatest implementation of columns; the one to use. We have switched
over from columnsets to mixedcolumns, and have been very pleased with
the column balancing (for some reason we couldn't get column balancing
to work in columnsets).

However one thing we do miss from columnsets is the control over widows
& orphans in two ways: \testcolumn, and \setupcolumnsetlines.
\testcolumn[n] allowed us to do a conditional column break, so when we
were about to start a new subsection heading, we could prevent it being
an orphan at the bottom of the column; and when starting a paragraph
with a hangaround graphic framed flushright and bottom, we could
similarly use \testcolumn to prevent the graphic from hanging down into
the footer (which is what sometimes happened otherwise).

So I'm wondering, is there some way to achieve the equivalent of
\testcolumn in mixedcolumns?

Is it theoretically impossible to implement this in mixedcolumns because
the required information (how many lines are left in the current column)
is not yet known?
Or could that information be gleaned from somewhere?

I see in page-brk.mkiv the following definition for \testcolumn:

\def\testcolumn
  {\dodoubleempty\page_tests_columns_test}

\def\page_tests_columns_test[#1][#2]%
  {\endgraf
   \ifdim\pagegoal<\maxdimen
 \ifdim\pagetotal<\pagegoal
   \d_page_tests_test\dimexpr
 \pagegoal
-\pagetotal
 \ifdim\lastskip<\parskip+\parskip\fi
 \ifsecondargument+#2\fi
   \relax
   \getrawnoflines\d_page_tests_test % (raw)
   \ifnum#1>\noflines
 \column
   \fi
 \else
   \penalty-\plustenthousand % (untested)
 \fi
   \fi}


I'm not a low-level TeX programmer, and I don't understand a lot of
this, but it looks like
  \getrawnoflines\d_page_tests_test
puts the number of remaining lines into \noflines

Any suggestions are appreciated.
(And I should have a MWE soon.)

Lars

___
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] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
On 11/15/2013 5:29 PM, Lars Huttar wrote:
> \setuplayout[grid=tolerant] did the trick.
> There are no blank lines, and the lines on the grid

I meant to say, the lines in the left and right columns align with each
other perfectly.

___
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] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
On 11/15/2013 3:54 PM, Hans Hagen wrote:
>
> you can try to choose a more strict grid snapping method (see
> spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap
> always ..)
>
> Hans

\setuplayout[grid=tolerant] did the trick.
There are no blank lines, and the lines on the grid
Awesome!

Lars

___
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] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
On 11/15/2013 3:54 PM, Hans Hagen wrote:
>
> you can try to choose a more strict grid snapping method (see
> spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap
> always ..)

Thanks, I will try that.
In the meantime, here is a MWE:

\usemodule[simplefonts][size=8.1pt]

\setmainfont[Gentium Book Basic]

\setuplayout[grid=yes]


\starttext

\section{Small interlinespace}

\setupinterlinespace[reset,small]

\input knuth {\bf \color[red]{Éwé}} \input knuth


\section{9.3pt interlinespace}

\setupinterlinespace[reset,9.3pt]

% Notice the blank line that appears above Éwé:

\input knuth {\bf \color[red]{Éwé}} \input knuth

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
As you know, in plain TeX, \lineskiplimit tunes the vertical glue
algorithm by specifying the minimum amount of space between the bottom
edge of one line and the top edge of the following line.

But in ConTeXt, it appears that \lineskiplimit is set to zero, at least
in grid mode.
We're using grid mode, and we have some occasional high ascenders, e.g.
capital letters with diacritics on top.
We have bodyfont size 8.1pt, and interlinespace = 9.3pt. We realize this
is less than the recommended ratio of 1.2.

Understandably, when those tall characters occur, we sometimes get a
blank line above them. It looks like the \lineskiplimit would be
violated if the 9.3pt interlinespace were enforced, so ConTeXt adds some
space (analogous to \lineskip in TeX?). But since we're on a grid, more
space has to be added in order to conform to the grid.

All that makes sense, but we would like to be able typeset the lines
closer together, and judge for ourselves whether it looks too bad. (When
we used to typeset the same text at 8.1pt/9.3pt using mkii, blank lines
did not occur.) Is there something similar to \lineskiplimit that we can
tweak? I've been reading section 5.5 Line Spacing in the context ref
manual, but I don't see anything there about changing a threshold
analogous to \lineskiplimit.

I tried setting \lineskiplimit=-2pt, but that caused a worse problem: a
blank line across both columns, instead of just one.

Thanks,
Lars
Version: mkiv luatex in Tex Live 2013.

___
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] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Lars Huttar
On 11/15/2013 11:50 AM, Aditya Mahajan wrote:
> Just a minor improvement:
>
> On Fri, 15 Nov 2013, Lars Huttar wrote:
>
>> % Temporarily change the main font, while keeping the main font
>> fallback:
>> { \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
>> ɠlyph }
>
> Make that {\setmainfont[...] ... \endgraf}
>
> Otherwise, the interline space will not be calculated correctly.

Thanks. It actually didn't seem to make any difference, but I put it in.

Lars

___
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] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Lars Huttar
On 11/14/2013 5:06 PM, Wolfgang Schuster wrote:
> Am 14.11.2013 um 22:52 schrieb Lars Huttar :
>
>> ... But then I have another font for the title:
>> \definesimplefont[titleface][Gentium Basic][size=40pt]
>>
>>
>> How do I set a fallback for it?
>> ...
> There is no support for this with the old version of the module.
>

For posterity, here is how I worked around it:

\usemodule[simplefonts]

% The main font for text:
\setmainfont[Gentium Book Basic]

\setmainfontfallback[Gentium Plus][range={ipaextensions}, force=yes,
rscale=auto]

% The font for the title:
\def\titlefont{Gentium Basic}

\starttext

% Temporarily change the main font, while keeping the main font fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }


% Back to our previously defined main font:

Body text ...

\stoptext


Lars

___
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] simplefonts: defining a fallback for a non-main font

2013-11-14 Thread Lars Huttar
On 11/14/2013 5:06 PM, Wolfgang Schuster wrote:
> There is no support for this with the old version of the module.
>

OK, good to know. Thanks.
Lars

___
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] simplefonts: defining a fallback for a non-main font

2013-11-14 Thread Lars Huttar
Hi again,

I'm using simplefonts (TeX Live 2013 version) and I have a main font:

\setmainfont[Gentium Book Basic]

and I can set a fallback for it,

\setmainfontfallback[Gentium Plus][range={ipaextensions}, force=yes,
rscale=auto]

and that works.


But then I have another font for the title:
\definesimplefont[titleface][Gentium Basic][size=40pt]


How do I set a fallback for it?

After looking at the source code for simplefonts, I tried:

% undefined cs: \definesimplefontfallback[titleface][Gentium
Plus][range={ipaextensions}, force=yes, rscale=auto]

% undefined cs: \fontfallback[titleface][Gentium
Plus][range={ipaextensions}, force=yes, rscale=auto]

% undefined cs: \definefallbackfont[titleface][Gentium
Plus][range={ipaextensions}, force=yes, rscale=auto]


But they all gave "undefined control sequence" errors.


I can work around the problem by setting the main font before the title,
using the main font for the title, and then changing the main font after
the title is done. But that seems kludgy.

Thanks,
Lars

___
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] syntax for \definesimplefont in TeX Live version of simplefonts

2013-11-14 Thread Lars Huttar
On 11/14/2013 11:31 AM, Wolfgang Schuster wrote:
> Am 14.11.2013 um 16:42 schrieb Lars Huttar :
>
>> Hello,
>> We are using simplefonts, the version included with TeX Live 2013. As
>> mentioned in another email, we don't have the freedom to experiment with
>> potentially unstable versions.
>>
>> I've been reading
>> http://wiki.contextgarden.net/simplefonts
>> and have it working well so far with the mainfont, sansfont, and
>> mainfontfallback.
>>
>> The part I need help with is for using another font.
>> http://wiki.contextgarden.net/simplefonts#Defining_other_typefaces_and_fonts
>> says we can use
>>
>>  * |\definesimplefont|, defines a font for the use in headers or other
>>style elements.
>>  * |\simplefont|, defines a font for inline use.
>>
>> Can anyone tell me the syntax for these commands - and for using them?
>> I tried
>> \definesimplefont[titleface][Gentium Basic]
>> ...
>> \setupbodyfont[titleface]
>>
>> There are no complaints and the \definesimplefont line, but I don't know
>> if it's the right syntax. And the \setupbodyfont line is giving the warning
>>  fonts > typescripts > unknown library 'titleface'
>>
>>
>>
>> So I'm guessing that the \definesimplefont line is correct, but I just
>> don't know how to use the defined font.
> The \definesimplefont command can be used when you want a certain font
> for the chapter, section etc. heading, e.g.
>
>   \definesimplefont[ChapterFont][Gentium Basic][size=24pt]
>
>   \setuphead[chapter][style=ChapterFont]
>
> but I don’t recommend this command anymore (and removed it from the new 
> version)
> because you can get the same result with a custom typeface, e.g.
>
>   \definesimplefonttypeface[chapterfont][Gentium Basic]
>
>   \definefont[ChapterFont][\classfont{chapterfont}{Serif} at 24pt]
>
>   \setuphead[chapter][style=ChapterFont]
>
>
> When you want to change only the global font for your document you
> need the \definesimplefonttypeface command, e.g.
>
>   \definesimplefonttypeface[documentfont][Gentium Basic]
>
>   \setupbodyfont[documentfont]
>
>
> Wolfgang

Thanks, very helpful.
I will update the wiki page with this.

Lars

___
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] syntax for \definesimplefont in TeX Live version of simplefonts

2013-11-14 Thread Lars Huttar
On 11/14/2013 11:35 AM, Aditya Mahajan wrote:
> On Thu, 14 Nov 2013, Lars Huttar wrote:
>
>> I tried
>> \definesimplefont[titleface][Gentium Basic]
>> ...
>> \setupbodyfont[titleface]
>
>> So I'm guessing that the \definesimplefont line is correct, but I just
>> don't know how to use the defined font.
>
> \titleface

So simple! 

Thanks...

Lars

___
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] syntax for \definesimplefont in TeX Live version of simplefonts

2013-11-14 Thread Lars Huttar
Hello,
We are using simplefonts, the version included with TeX Live 2013. As
mentioned in another email, we don't have the freedom to experiment with
potentially unstable versions.

I've been reading
http://wiki.contextgarden.net/simplefonts
and have it working well so far with the mainfont, sansfont, and
mainfontfallback.

The part I need help with is for using another font.
http://wiki.contextgarden.net/simplefonts#Defining_other_typefaces_and_fonts
says we can use

  * |\definesimplefont|, defines a font for the use in headers or other
style elements.
  * |\simplefont|, defines a font for inline use.

Can anyone tell me the syntax for these commands - and for using them?
I tried
 \definesimplefont[titleface][Gentium Basic]
 ...
 \setupbodyfont[titleface]

There are no complaints and the \definesimplefont line, but I don't know
if it's the right syntax. And the \setupbodyfont line is giving the warning
  fonts > typescripts > unknown library 'titleface'



So I'm guessing that the \definesimplefont line is correct, but I just
don't know how to use the defined font.


Help please?


Thanks,
Lars

___
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] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
On 11/11/2013 12:27 PM, Wolfgang Schuster wrote:
>> Lars Huttar <mailto:lars_hut...@sil.org>
>> 11. November 2013 18:00
>> I finally tried
>>
>> \setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]
>>
>> and that works! But it seems clunky: it looks like it requires two font
>> switches, which I'm told makes things slower.
>>
>> And I can't help wondering if I'm missing some simpler way.
>> Is there a more efficient or elegant way to do this?
>>
> \definefont[BigBoldSans][SansBold at 18pt]
>
> \setuptab[headstyle=BigBoldSans]

OK, but in order to use this systematically, I would have to have a
\definefont for every potential combination of font style (serif/sans),
alternative (bold/italic/etc.), and size that will get used in the
document. In a large, complex book, that extra layer of indirection
seems unattractive. But maybe there's no better way to do it.

Lars


___
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] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
Hello, I have the following MWE:
\starttext

\setuptab[headstyle=ssbfb]

\tab{foo} \input knuth \par

\stoptext


Here, the headstyle specifies a sans font with boldface style, at 1.44
times the current bodyfont size.


However, I want to be able to specify an absolute point size, instead of
a relative size.

I tried variations like

  \setuptab[headstyle=18pt]

but that has no effect: the size remains 12pt, or whatever the default is.

If I use
  \setuptab[headstyle={\switchtobodyfont[18pt]}]

then the size takes effect (for the key only, which is what I want).
I can combine that with sans:
  \setuptab[headstyle={\switchtobodyfont[ss, 18pt]}]

and that works.


But how to mix in boldface?
  \setuptab[headstyle={\switchtobodyfont[ssbf, 18pt]}]

doesn't give sans boldface, but reverts to a serif, non-bold style (at
18pt size).

  \setuptab[headstyle={\switchtobodyfont[ss, bf, 18pt]}]

gives the same results.


I finally tried

  \setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]

and that works! But it seems clunky: it looks like it requires two font
switches, which I'm told makes things slower.

And I can't help wondering if I'm missing some simpler way.
Is there a more efficient or elegant way to do this?


Thanks,
Lars

___
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] setting size for mainfont or sansfont in stable simplefonts

2013-11-06 Thread Lars Huttar
On 11/6/2013 5:35 PM, Wolfgang Schuster wrote:
> Am 06.11.2013 um 23:27 schrieb Lars Huttar :
>
>> \setsansfont[Tex Gyre Heros][size=8pt]
>>
>> but it didn't seem to have any effect.
> \setsansfont[…][scale=0.95]
>
> Wolfgang
>

Thanks for the quick response!

Lars

___
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] setting size for mainfont or sansfont in stable simplefonts

2013-11-06 Thread Lars Huttar
Hello,

I'm using the simplefonts module from TeX Live 2013. (I can't use the
new simplefonts for this production project, due to stability requirements.)

I have the following, which works well for the most part:

\setupbodyfontenvironment[default][em=italic]

\usemodule[simplefonts][size=9.2pt]

\setmainfont[Gentium Book Basic]
\setsansfont[Tex Gyre Heros]


\starttext

Serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em bold
italic} styles.


\ss Sans--serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em
bold italic} styles.

\stoptext



Because the Tex Gyre Heros font is larger than Gentium Book Basic at a
given point size, when I compile this document, there is a size mismatch
between the serif and the sans typefaces. So I looked for a way to give
the sans font a smaller default size. I couldn't find an example of such
at http://wiki.contextgarden.net/simplefonts. I tried this:

\setsansfont[Tex Gyre Heros][size=8pt]

but it didn't seem to have any effect.

Is there a way to do what I'm trying to do? I could use
\switchtobodyfont[8pt] every time I go to sans, but I don't think that's
the intention of simplefonts.

Thanks,
Lars

___
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] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
On 11/4/2013 4:56 PM, Mojca Miklavec wrote:
> On Mon, Nov 4, 2013 at 10:46 PM, Lars Huttar wrote:
>> On 11/4/2013 3:34 PM, Mojca Miklavec wrote:
>>> - you can find Gentium at http://www.ctan.org/pkg/gentium-tug (also in
>>> TeX Live and in the ConTeXt distribution)
>> Thank you ... that was key information I didn't have.
>> I was instead downloading the TTF files from sil.org.
> That TTF should work as well. The only difference is that you might
> need slightly different commands to set it up (there were recent
> changes/improvements in that, other users should tell you how exactly
> that can be done).

I will look for that, because it turns out that I still need to use a
TTF font. Gentium Plus does not include bold and bold-italic weights,
and Gentium Basic doesn't include all the characters ranges I need. We
have a customized version of Gentium Basic with bold weight, with an
extra character added, and it's a TTF. We had it working with mkii but
not yet with mkiv.

>> When you say "out of the box", I think you're referring to the
>> gentium-tug package box, not the ConTeXt box... in other words, I should
>> not expect Gentium to work just because I installed ConTeXt; I have to
>> also install gentium-tug, right?
> The font is installed by default when installing the ConTeXt
> distribution. I thought it was also installed by default with the
> ConTeXt scheme in TeX Live, but apparently I was wrong. I can fix
> this. The scheme already contains a bunch of nice fonts and Gentium
> could/probably should be among them.
>

Just to confirm the above: After installing TeX Live context scheme on
Linux, Gentium was not in my names.tma. And when I tried to use
\setmainfont[Gentium], I got errors, 'simplefonts > font ''gentium'' not
found'. After installing the gentium-tug package (sudo
/usr/local/bin/tlmgr install gentium-tug), and compiling a .tex file
using \setmainfont[Gentium], the errors went away, and my names.tma now
includes several variants of Gentium. At no point did I run mtxrun
(knowingly).

On the other hand, on Windows, I had installed TeX Live context scheme
as well, and have not installed gentium-tug. But I did install Gentium
as an OS font (using TTF files). I then ran mtxrun --generate (as
suggested by Hans), and after that, gentium* showed up in names.tma, and
I was then able to successfully compile a .tex file using
\setmainfont[Gentium] with mkiv context. (But that didn't work before I
ran mtxrun --generate.)

Just a couple of data points in case they're relevant.

Lars

___
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] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
On 11/5/2013 12:05 PM, Mojca Miklavec wrote:
> On Tue, Nov 5, 2013 at 5:08 PM, Lars Huttar  wrote:
>> On 11/4/2013 5:32 PM, Wolfgang Schuster wrote:
>>>
>>> Make your choice:
>>>
>>> \definefontfamily [gentium-basic] [serif] [Gentium Basic]
>>> \definefontfamily [gentium-book]  [serif] [Gentium Book Basic]
>>> \definefontfamily [gentium-plus]  [serif] [Gentium Plus]
>>>
>>> \starttext
>>>
>>> {\switchtobodyfont[gentium-basic]Upright \it Italic \bf Bold \bi BoldItalic}
>>>
>>> {\switchtobodyfont[gentium-book]Upright \it Italic \bf Bold \bi BoldItalic}
>>>
>>> {\switchtobodyfont[gentium-plus]Upright \it Italic \bf Bold \bi BoldItalic}
>>>
>>> \stoptext
>> Thanks for the suggestion.
>> I don't know if I'm doing something wrong, but when I try to compile the
>> above with mkiv, I get "Undefined control sequence" on line 1:
>>
>> l.1 \definefontfamily
> As I told you: "there were recent changes/improvements in that".
>
> http://www.ntg.nl/pipermail/ntg-context/2013/075428.html
>
> You would need the ConTeXt distribution for that, TeX Live 2013 is too
> old. (You can probably still load the simplefonts module explicitly or
> write the typescripts yourself - again different syntax.)
>
> Mojca
>

Thanks again for your responses.

I did try loading the simplefonts module explicitly, but
definefontfamily is still undefined.

I'm working on a large, production project, and the deadline is too
close to risk using unstable releases. Is there a context release since
Wolfgang's new version of simplefonts, that has been declared stable?
Given that his new version came out less than a month ago, it seems
unlikely.

Maybe I can get TTFs working using mtxrun, as Hans suggested. It seems
to be working on Windows; I need to try the same on Linux with our
custom font.

Lars

___
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] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
On 11/4/2013 5:32 PM, Wolfgang Schuster wrote:
> Am 04.11.2013 um 22:56 schrieb Mojca Miklavec 
> :
>
>> That TTF should work as well. The only difference is that you might
>> need slightly different commands to set it up (there were recent
>> changes/improvements in that, other users should tell you how exactly
>> that can be done). 
>
> Make your choice:
>
> \definefontfamily [gentium-basic] [serif] [Gentium Basic]
> \definefontfamily [gentium-book]  [serif] [Gentium Book Basic]
> \definefontfamily [gentium-plus]  [serif] [Gentium Plus]
>
> \starttext
>
> {\switchtobodyfont[gentium-basic]Upright \it Italic \bf Bold \bi BoldItalic}
>
> {\switchtobodyfont[gentium-book]Upright \it Italic \bf Bold \bi BoldItalic}
>
> {\switchtobodyfont[gentium-plus]Upright \it Italic \bf Bold \bi BoldItalic}
>
> \stoptext
>
>

Thanks for the suggestion.
I don't know if I'm doing something wrong, but when I try to compile the
above with mkiv, I get "Undefined control sequence" on line 1:

l.1 \definefontfamily

[gentium-basic] [serif] [Gentium Basic]


ConTeXt ver: 2013.05.28 00:36 MKIV current fmt: 2013.10.11 int:
english/english


Nor can I find \definefontfamily in the ref man or on the wiki.


Regards,

Lars

___
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] installing a true-type font: can't find ttf2afm

2013-11-04 Thread Lars Huttar
On 11/4/2013 3:34 PM, Mojca Miklavec wrote:
> - you can find Gentium at http://www.ctan.org/pkg/gentium-tug (also in
> TeX Live and in the ConTeXt distribution)

Thank you ... that was key information I didn't have.
I was instead downloading the TTF files from sil.org.

> - Gentium works out-of-the-box in ConTeXt (see the documentation of
> gentium-tug) 

When you say "out of the box", I think you're referring to the
gentium-tug package box, not the ConTeXt box... in other words, I should
not expect Gentium to work just because I installed ConTeXt; I have to
also install gentium-tug, right?
If not, I must be doing something wrong because I can't find Gentium in
the luatex-cache font database.

>> This is under TeX Live 2013, the context scheme, and I've been using
>> ConTeXt mkiv.
> So why bother about pdfTeX?

Only because the latest instructions I could find said to use texfont,
which uses ttf2afm, which was missing and I thought it might come from
pdfTeX. I'm glad to know I don't have to, and I'll update that wiki page
accordingly.

Thanks again,
Lars

___
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] installing a true-type font: can't find ttf2afm

2013-11-04 Thread Lars Huttar
Hi all,
I'm following the instructions at
http://wiki.contextgarden.net/Installing_a_TrueType_font,_step_by_step
because I want to install a TTF (Gentium in fact) for ConTeXt to use.
There is a warning that these instructions may be out of date, but I
haven't found anything newer.

This is under TeX Live 2013, the context scheme, and I've been using
ConTeXt mkiv.

I found texfont.pl, though it wasn't in the path, and managed to run it
in the directory where I have my .ttf files:
$ sudo PATH=$PATH
/usr/local/texlive/2013/texmf-dist/scripts/context/perl/texfont.pl
--ve=sil --co=gentium --makepath --install

But then I get errors about ttf2afm:

TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004

mktexlsr: Updating /usr/local/texlive/2013/../texmf-local/ls-R...
mktexlsr: Done.
   encoding vector : texnansi
   vendor name : sil
   source path : .
   font collection : gentium
   texmf font root : /usr/local/texlive/2013/../texmf-local
 map file name : texnansi-sil-gentium.map
   source path : .
  processing files : all on afm path
locating afm files : using pattern ./*.afm
locating afm files : using ttf files
   generating afm file : ./GentiumPlus-I.afm
sh: ttf2afm: command not found
   generating afm file : ./GentiumPlus-R.afm
sh: ttf2afm: command not found
 copying files : afm
 copying files : pfb
 copying files : ttf
   copying : GentiumPlus-I.ttf
   copying : GentiumPlus-R.ttf
processing aborted : no afm files found

--help : show some more info


I can't find ttf2afm anywhere. Is it part of pdfTex? Do I have to have
the pdftex scheme installed in order to install True-type fonts?

Thanks,
Lars



___
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] ConTeXt standalone - in what situations is it better?

2013-10-24 Thread Lars Huttar
Hello,
I was looking into simplefonts
(http://wiki.contextgarden.net/simplefonts) and noticed the clause

> if you’re running ConTeXt Standalone
> <http://wiki.contextgarden.net/ConTeXt_Standalone> (which is a better
> option)

Well I'm using TeXLive, but am happy to take good advice, so I looked at
http://wiki.contextgarden.net/ConTeXt_Standalone to see why it would be
a better option.
The basic reason I can see is that Standalone is updated more frequently.

So if you're using bleeding-edge features of ConTeXt (including recent
fixes to simplefonts?), I can see wanting to use Standalone and have
access to the latest features and fixes.

On the other hand, if you're working on a large production project that
has to be careful of stability, is there any advantage to Standalone
over TeXLive? Sure, you can keep a standalone version frozen in place,
but then that seems equivalent to staying with an existing version of
TeXLive.

The other issue for me with Standalone is that the only version listed
for Windows is "W32TeX". When I go to the web page for that platform, I
don't see any information about what W32TeX is; just how to install it.
It sounds like it's specific to 32-bit systems, and mine is 64-bit. But
I suppose in that regard it's no different from TeXLive -- the
executables are 32-bit but they run fine on 64-bit systems.

Does anybody have advice for me on other reasons for switching from
TeXLive to ConTeXt Standalone, or reasons not to?

Thanks,
Lars

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

2013-10-14 Thread Lars Huttar
Hi Wolfgang,

I'm doing an overhaul of font handling in our large project, and
wondering whether I should switch to simplefonts at this point.

Can you tell me, how mature is simplefonts? Is it ready for heavy-duty,
complex production use?

Also, is it superceding the standard ConTeXt font handling? That is,
should I expect to find better help available from this list for issues
with simplefonts? Will new development be focused more on simplefonts?

Thanks,
Lars


On 10/10/2013 2:02 PM, Wolfgang Schuster wrote:
> Hi all,
>
> I’m happy to announce a new version of the simplefonts code. Thew new version 
> of the code
> is a complete rewrite and brings many changes.
>
___
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] question about linespace adjustment

2013-09-30 Thread Lars Huttar
On 9/26/2013 3:47 PM, Wolfgang Schuster wrote:
> You can use \switchtobodyfont to change the size for certain parts of a text
> but it’s best to keep this to a minimum because \tfa etc. are a  lot faster.
>
> The reason why you don’t need \setupinterlinespace when you use
> \switchtobodyfont is that \setupinterlinespace is already called by
> \switchtobodyfont.
>
> Another thing which shouldn’t be forgotten is that \switchtobodyfont
> controls and changes the sizes for \tfa etc.
>
> Wolfgang

To summarize this, and what I've learned from others on this list over
the last week or two, I've updated the wiki page
http://wiki.contextgarden.net/Font_Switching
It's a pretty substantial change, so I hope someone knowledgeable will
look at it and make sure it's right.

I'm trying to find ways to express the fact that, as I understand it,
there are two distinct concepts of "current font" in effect at any given
time:
1) the bodyfont, which is set by \setupbodyfont or \switchtobodyfont
2) the "effective" font (is there a more standard term for this?) which
is changed by \tfa, \ss, etc.

\tfa etc. change the effective font based on what the bodyfont is.
Anything that changes the bodyfont, such as \switchtobodyfont, also
affects the linespacing.
Just changing the effective font does not affect the linespacing.
Changing the bodyfont changes the effective font.

Does that give an accurate picture?

Thanks,
Lars




___
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] What do \start and \stop mean?

2013-09-30 Thread Lars Huttar
On 9/30/2013 11:44 AM, Aditya Mahajan wrote:
> On Mon, 30 Sep 2013, Lars Huttar wrote:
>
>> I found \start and \stop referenced in the context reference manual
>> (e.g. section 5.5).
>> While \startXYZ - \stopXYZ pairs are discussed earlier, I can't find any
>> place that \start and \stop (with no suffix) are described.
>> They seem to be used like \bgroup and \egroup. Is that right?
>> They are defined in core-sys.mkiv, but I can't figure out from there
>> what they actually do.
>
> (Untested, based on what I remember):
>
> \start = \bgroup
> \stop  = \egroup
>
> but \start scans the next argument, so there are situations when
> \start may fail but \bgroup works.
>
> \start[whatever] ... \stop = \startwhatever ... \stopwhatever
>

Ouch, that sounds like two very different behaviors, depending on
whether an argument is present.


I think I'll document \start at
http://wiki.contextgarden.net/Command/start
but take the usage of it out of the ref man's examples, replacing it
with { and }, as long as the examples still work. It's not important to
any of the examples.

Thanks, Aditya and Luigi, for the quick assist.

Lars


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

___
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] What do \start and \stop mean?

2013-09-30 Thread Lars Huttar
I found \start and \stop referenced in the context reference manual
(e.g. section 5.5).
While \startXYZ - \stopXYZ pairs are discussed earlier, I can't find any
place that \start and \stop (with no suffix) are described.
They seem to be used like \bgroup and \egroup. Is that right?
They are defined in core-sys.mkiv, but I can't figure out from there
what they actually do.

I'll contribute documentation for them if someone can tell me what they
mean.

Thanks,
Lars


___
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] Feedback wanted on a ConTeXt tutorial

2013-09-30 Thread Lars Huttar
On 9/29/2013 1:05 PM, Marco Patzer wrote:
> Some thoughts:
>
>   1.1.1
>   Unfortunately there’s no really easy way to install ConTEXt on Windows.
>
> I never installed ConTeXt on Windows, but if this is true this
> should definitely be fixed. According to
>
>   http://wiki.contextgarden.net/ConTeXt_Standalone#Command_line_method
> ...

For my part ... I recently installed TeXLive 2012 and 2013 on Windows 7,
and it was easy.

I told it to install only the ConTeXt scheme, instead of installing
everything.
Also I had to configure the TeXWorks editor options to use ConTeXt
(LuaTeX) by default instead of pdfLaTeX.
But other than that, unless I'm forgetting something, it worked fine,
out-of-the-box.

Lars

___
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] question about linespace adjustment

2013-09-27 Thread Lars Huttar
On 9/26/2013 3:47 PM, Wolfgang Schuster wrote:
> Am 25.09.2013 um 23:45 schrieb Lars Huttar :
>
>> Wolfgang, thanks for your response.
>>
>> On 9/25/2013 5:02 PM, Wolfgang Schuster wrote:
>>> You can’t expect from \tfa etc. to change the interlinespace because these
>>> commands can be used in your paragraphs to change the size of certain
>>> words only and in this case you don’t want a forced change of the 
>>> interlinespace.
>> Well... \switchtobodyfont[20pt] can also be used in paragraphs to change
>> the size of just a few words.
>> But the above suggests that \switchtobodyfont shouldn't be used for that
>> purpose, and commands like \tfc should?
> You can use \switchtobodyfont to change the size for certain parts of a text
> but it’s best to keep this to a minimum because \tfa etc. are a  lot faster.
>
> The reason why you don’t need \setupinterlinespace when you use
> \switchtobodyfont is that \setupinterlinespace is already called by
> \switchtobodyfont.

OK, good to know.

> Another thing which shouldn’t be forgotten is that \switchtobodyfont
> controls and changes the sizes for \tfa etc.

Can you elaborate on that?
A few days ago, Luigi wrote,

> \tfc augment the fontsize of a factor of 1.728
> It's relative to the default font size not to the current fontsize

So when he says "relative to the default font size", does that mean the
same thing as "relative to the current body font size"? I think so. The
following example shows that the function of \tfc is relative to the
size set by \switchtobodyfont:

{\tfc tfc \tfc tfc}


{\switchtobodyfont[20pt] 20pt \tfc tfc}


{\switchtobodyfont[6pt] 6pt \tfc tfc}


Here the text after \tfc appears in three different sizes, proportional
to (and larger than) the \switchtobodyfont setting in effect. However,
the first line shows us that \tfc is *not* affected by previous effects
of \tfc. So as Luigi said, there is a distinction between the current
font size (which is affected by \tfc), and the "default font size" -- or
maybe it should be described as "the current body font size" -- which is
not affected by \tfc.
Is that correct?

So does \tfc mean "set the current font size to be three steps up from
the current body font size"?

Thanks. I'm contributing clarifications into the manual as I come to
understand how things are designed to work.

Lars

___
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] git or svn

2013-09-27 Thread Lars Huttar
On 9/26/2013 9:10 PM, Aditya Mahajan wrote:
> Github seems to be the most popular DVCS hosting site at the moment.
> For manuals, I think that Github is particularly useful because you
> can click on edit and make the change. Github automatically creates a
> fork, a new branch, and pull request for you. So the technical barrier
> to participation is low.

I would question the perception that the technical barrier to
participation on Github is low. Not long ago I tried to submit a patch
to a project on Github, improving documentation and adding features. It
took several hours (distributed over a couple of weeks) to learn how to
do all that was required. It was *not* automatic. It strongly
discouraged me from making more contributions to that project.

Maybe some major things have changed on Github since then. In any case,
I have no doubt that once you know the system, and have the
infrastructure set up, it's easy to participate. And I'm not saying that
SVN makes it easy for non-SVN users to participate. All I'm saying is
that for non-Git users, the technical barrier to participation was
substantial, last time I tried it.

Again, I'm not arguing against a move to Git. I would just like to
contribute my recent experience toward a well-informed decision process.

Lars

___
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] git or svn

2013-09-27 Thread Lars Huttar
On 9/27/2013 3:38 AM, Taco Hoekwater wrote:
> On Sep 27, 2013, at 9:01 AM, Peter Münster  wrote:
>
>> On Fri, Sep 27 2013, Aditya Mahajan wrote:
>>
>>> The last time I tried, merging multiple version in svn is a huge pain. One 
>>> of
>>> the advantages of DVCS is that branching and merging are easy.
>> I understand. Please go ahead if you need git. My preference for svn is
>> just my personal opinion, coming from my personal experience: people
>> wanted to change a well running system, using the latest and greatest
>> tools. In the end, after quite some efforts, there was no benefit, it
>> was just a bit more complicated.
> +1 from me: I have exactly the same experience personally.
>

I'm with Taco and Peter on this one. SVN is part of my everyday
workflow; Git requires a lot more reading and fumbling. However I know
the need to be fluent with Git is becoming more and more prevalent, and
for many people it's already the easiest thing. So I wouldn't argue
against moving to Git. I'm just reporting my preference.

BTW I committed several changes to the manual yesterday, and plan to do
a fair bit more in the coming week or two. I would appreciate if someone
knowledgeable could check and make sure that I haven't said things that
are misleading or incorrect.

Lars

___
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] question about linespace adjustment

2013-09-25 Thread Lars Huttar
Wolfgang, thanks for your response.

On 9/25/2013 5:02 PM, Wolfgang Schuster wrote:
> You can’t expect from \tfa etc. to change the interlinespace because these
> commands can be used in your paragraphs to change the size of certain
> words only and in this case you don’t want a forced change of the 
> interlinespace.

Well... \switchtobodyfont[20pt] can also be used in paragraphs to change
the size of just a few words.
But the above suggests that \switchtobodyfont shouldn't be used for that
purpose, and commands like \tfc should?

> To adapt the interlinespace when you now use \tfa etc. you have to add
> \setupinterlinespace to your code (arguments aren’t needed) to tell context
> to recalculate it.
>

Thank you. What I'm trying to learn now is *why* that's true. Or more
precisely, where is the boundary between the font-changing commands that
automatically adjust interlinespace, and those commands that don't? and
what is the conceptual model that motivates the boundary, and helps
users remember and predict where the boundary lies?

What I think I'm hearing is that \switchtobodyfont is intended for
changes of longer duration, say, at least a paragraph. Whereas \tfa and
so on are intended for brief changes, to set off a phrase, for example.

As an example of "where's the boundary", experimentation shows that
\setsmallbodyfont is in the same category as \switchtobodyfont: it
automatically affects the interlinespace. Nevertheless I can't find
anywhere in the manual or on the wiki that tells me that
\setsmallbodyfont differs from \tx in this way (let alone *why* it
differs). Maybe I should expect that any command that has "bodyfont" in
its name is intended for long-term changes, and other commands aren't?

Sorry if I'm being slow on the uptake.
Documentation like
http://wiki.contextgarden.net/Command/switchtobodyfont just doesn't seem
to explain this difference in intention.

Thanks again. I do hope to use this experience to contribute
clarifications to the manual. I've already done that some on the wiki
(hoping that if I get it wrong, someone will correct my mistakes!)

Lars

___
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] question about linespace adjustment

2013-09-25 Thread Lars Huttar
On 9/24/2013 5:25 PM, Aditya Mahajan wrote:
> On Tue, 24 Sep 2013, Lars Huttar wrote:
>
>> environment), and the second category only affects the "font" (and I'm
>> still not clear on how the "body font" differs from the current font).
>
> (Sorry for the terse replies...)
>
> {\switchtobodyfont[14pt] Text $math$ \sans{Sans} \endgraf}
>
> {\tfc Text $math$ \sans{Sans} \endgraf}
>
> Aditya

I don't know how this answers the above question. Can anybody explain?

Clearly you're drawing a comparison between \switchtobodyfont[14pt] and
\tfc.
I've run the sample, and I see that, as in other samples earlier in this
thread, \switchtobodyfont causes the interlinespace to be adjusted
accordingly, and \tfc doesn't.

Is that intended to be an answer to 'how the "body font" differs from
the current font'? And is the answer that the bodyfont is a conglomerate
of more properties than just the font, including interlinespace?

Thanks,
Lars

___
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] question about linespace adjustment

2013-09-24 Thread Lars Huttar
Luigi,
Thanks for your reply.

On 9/24/2013 2:18 PM, luigi scarso wrote:
>
> On Tue, Sep 24, 2013 at 7:45 PM, Lars Huttar  <mailto:lars_hut...@sil.org>> wrote:
>
>
> Is it that \switchdobodyfont changes the *body* font, which
> engages the
> associated bodyfont environment...
> whereas \tfc changes the *font*, not the *body* font?
>
> Lars
>
> You can look into
>  font-pre.mkiv

OK. I'm looking at it,
http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/font-pre.mkiv
Is there anything in particular you had in mind that I can learn from it?
I found some aliases, e.g. \smaller, which are handy to know. But I
don't know how much I can rely on the undocumented ones to continue to
do what they do now.

> \tfc augment the fontsize of a factor of 1.728
> It's relative to the default fount size not to the current fontsize:
> {\tfc foo {\tfc foo}} both foo have the same size

Thank you, this is an important nugget that I didn't understand when
reading the documentation. \setsmallbodyfont and \setbigbodyfont, in
contrast, change the font size relative to the current size.

>
> But interlinespace is not modified, so we need to reset
> \starttext
> OK: \input knuth\blank{\tfx WRONG: \input knuth\blank \tfc WRONG:
> \input knuth\relax} \page
> OK: \input knuth\blank{\tfx\setupinterlinespace OK: \input knuth\blank
> \tfc WRONG: \input knuth\blank} \page
> OK: \input knuth\blank{\tfx\setupinterlinespace OK: \input knuth\blank
> \tfc\setupinterlinespace OK: \input knuth\blank}
> \stoptext

Ok. This confirms what Aditya said, and what the manual says: that you
have to use \setupinterlinespace after \tfx or \tfc if you want the
interlinespace to be adjusted.

But I would really like to understand the categories involved here.
So we have one category of font size selector commands, which includes
\setsmallbodyfont and \setbigbodyfont, that cause interlinespace to be
adjusted automatically.
Then we have another category, including \tfc, \tfx, \ita, and others,
that do not cause interlinespace to be adjusted.

What is the rhyme or reason behind these categories? And that would help
me know, which other commands belong to which category? E.g. would
\serif cause interlinespace to be adjusted? An experiment would reveal
the answer, at least in the circumstances that I think of testing, but
I'd like to understand the conceptual model.
Maybe the concept is that the first category affects the "body font"
(and therefore interacts with the properties of the body font
environment), and the second category only affects the "font" (and I'm
still not clear on how the "body font" differs from the current font).

Thanks for your help,
Lars

___
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] question about linespace adjustment

2013-09-24 Thread Lars Huttar
On 9/24/2013 12:01 PM, Lars Huttar wrote:
>
> Can you explain how/why the two ways of increasing the font size should
> have such different effects? (I have read section 5.8 and 5.9 about
> selecting bodyfonts and interlinespace but still don't get it.)
> \tfc is described as a "font selector" command (5.3.2). It seems to me
> that both \tfc and \switchtobodyfont[20pt] simply attempt to switch to a
> different size of whatever bodyfont is currently in effect. But there
> must be something I'm missing. (Or else it's just an arbitrary
> distinction, but that seems unlikely.)
>
>

Is it that \switchdobodyfont changes the *body* font, which engages the
associated bodyfont environment...
whereas \tfc changes the *font*, not the *body* font?

Lars

___
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] question about linespace adjustment

2013-09-24 Thread Lars Huttar
Aditya wrote,
> Contrast
>
> {\switchtobodyfont[14pt] \input ward \endgraf}
>
> with
>
> {\tfc \input ward \endgraf}
>

Thanks for your help. You've left me to draw my own conclusions from
this example, so I'll say what I think this implies, and please correct
me if I'm wrong.

(Note to other non-TeXnichians: \endgraf is a TeX synonym for \par: end
of paragraph.)

I think the principle that you're trying to demonstrate is that the
answer to my last paragraph is yes: there is an important distinction
between "making a font switch," e.g. \tfc, and "using a new body font",
of which \switchtobodyfont is apparently an example.
Namely, that the latter causes the interlinespace to be automatically
adjusted, whereas the former doesn't unless you explicitly use
\setupinterlinespace.

Can you explain how/why the two ways of increasing the font size should
have such different effects? (I have read section 5.8 and 5.9 about
selecting bodyfonts and interlinespace but still don't get it.)
\tfc is described as a "font selector" command (5.3.2). It seems to me
that both \tfc and \switchtobodyfont[20pt] simply attempt to switch to a
different size of whatever bodyfont is currently in effect. But there
must be something I'm missing. (Or else it's just an arbitrary
distinction, but that seems unlikely.)

Lars

___
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] question about linespace adjustment

2013-09-24 Thread Lars Huttar
Hello,
I'm working through the reference manual trying to understand how things
work in regard to fonts. I'll be submitting clarifications and
elaborations to the manual in an attempt to help other non-experts to
grasp the design of ConTeXt.

There's a point that's confusing to me in section 5.5, Line spacing. On
page 108 of the manual it says
"Linespacing alters when a new bodyfont is used or when linespacing is
defined explicitly by \setupinterlinespace (which is explained later)"

But on the next page it says,
"When you make a font switch the linespacing is adapted when you give
the command \setupinterlinespace without any setup parameters and also
when you add the key reset, for example..."

So here's why I'm confused. When you change fonts, (a) does linespacing
get changed automatically, or (b) do you have to say
\setupinterlinespace? If (a), then why does the second quote above seem
to say you need \setupinterlinespace to make it happen? If (b), then
isn't the first quote above inaccurate?

Is there a distinction being drawn here between "when a new bodyfont is
used" and "when you make a font switch", or are those just variant
phrasings for what is intended to mean the same thing?

Thanks for your help,
Lars

___
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] bug? gap appears in columnset

2013-09-19 Thread Lars Huttar
Hans wrote,
> Columnsets are rather special and mostly meant for magazine like 
> documents, where content can span columns, images are explicitly placed 
> on the grid, etc. For that reason columnset soperate on a rather strict 
> grid that gets setup based in the lineheight and although content can be 
> larger, the grid dictates what happens. Balancing is semi automatic and 
> nearly always demands some tweaks.

In our use of columnsets, we do have content that can span columns (but
we keep it outside of columnsets). We also have images within columns
that are placed in the flow of text via hangarounds. We manually tweak
our column lengths on each page (e.g.
\setupcolumnsetlines[columnset10][1][1][42]), in order to avoid the
worst of the widows and orphans. As you say, balancing requires manual
tweaks too, but it's not that big a burden, since we're already doing
\setupcolumnsetlines for many pages.

> Using columnsets for a large document that has to flow automatically is 
> therefore debatable. Regular multi columns or in mkiv mixed-columns are 
> a better choice then.

We have tried to port our code to mkiv, but have so far found been
unsuccessful. (But are trying again now, having found new success with
TL2013 mkii.)
Also, we've been unable to find any statement that mkiv is out of beta
status. Moreover, much of the documentation still seems to be oriented
toward mkii. So it's hard to justify much of a time investment in
porting production work to mkiv yet. Can you comment on the official
status of mkiv?

Regarding mixed-columns: I understand it's a rewrite of the old
"columns" model. My impression is that "columns" didn't support manual
tweaking of column lengths (like \setupcolumnsetlines). Does
mixed-columns support such a thing? That would be a critical question
for us, as it wouldn't be an option for us to spend time porting to mkiv
and using mixed-columns, if it doesn't allow us to tweak the height of
each column on each page.

Thanks again for your help and advice.
Lars

___
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] bug? gap appears in columnset

2013-09-18 Thread Lars Huttar
Regarding "sane" interlinespace,
Hans wrote,
> ok, but then, an interlinespace is normally around 1.2 times the 
> bodyfontsize

OK. That's helpful.

But notice that in the following example, the interline space that
causes the problem is in the *first* section (where htdp is 12pt and
baselineskip is also 12pt!), while the gap shows up in the *second*
section, whose interlinespace is 2.8ex:

\def\printHtdp{\setbox0\hbox{()} \the\htdp0,\the\baselineskip}


\definecolumnset[columnset1][n=2]

\setupcolumnset[columnset1][distance=5mm,balance=yes]


\starttext


\section{Introduction}


\setupinterlinespace[line=12pt]

\startcolumnset[columnset1]

\printHtdp

\dorecurse {7} { \input knuth }

\stopcolumnset


\section{Bibliography}


\tfxx

\setupinterlinespace[line=2.8ex] %or use 11pt

\startcolumnset[columnset1]

\printHtdp

\dorecurse {10} { \input knuth }

\stopcolumnset


\stoptext


Since the problem can appear a ways after the cause, that makes it an
especially hard problem to track down, especially for someone who is
unaware of the nature of the problem. But even now that we're aware of
what the problem (hopefully) is, we've not been able to fix it in our
real-life document.


We sprinkled in many places the code to show htdp and baselineskip
(\printHtdp). E.g. in the early sections that would putatively cause the
problem, our htdp/baselineskip in 8.60252pt,10.5pt. That's a ratio of
more than 1.2. We have eliminated all the places we could find where the
htdp/baselineskip ratio was less than 1.2, even where there was no text.
But the gap persists.

We have a large and complex document, so there might conceivably be
places where a larger htdp than expected is hiding. Are there any tools
for automatically going through a document and reporting places where
not-sane interlinespace occurs?

Thanks,
Lars

___
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] bug? gap appears in columnset

2013-09-17 Thread Lars Huttar
Hans wrote,
> Just wondering ... do you think that the first pages look ok?

Thanks for your response.
By "look ok", are you referring to the closeness of the lines of text?
It does seem kind of close, but within acceptable limits, depending on
other constraints; however I'm not really the one to make aesthetic
decisions about the document. I'm just trying to implement what the
customer wants.

Also, the minimal example is stripped down to minimally exercise the
unexplained behavior, so it doesn't reflect the fact that in our actual
document, we reduce the font size in places where we reduce the
interlinespace. In that sense, maybe a less minimal example would serve
the purpose better. I'll work on that, now that I know the font size may
be an integral part of the problem.

> You mess 
> with the interlinespace in a way that will make the outcome never look 
> okay.

I'd like to know more what that means, but I think it's elaborated on
below when you talk about baselineskip.

> Also, columnsets assume that the interlinespace is sane.

Can you point me to documentation on the constraints that define what
kind of interlinespace is sane?

Also, given the goal that "For using ConTeXt, no TeX programming skills
and no technical background are needed. Some basic knowledge of
typography and document design will enable you to use the full power of
ConTeXt" (http://wiki.contextgarden.net/What_is_ConTeXt), does/could
ConTeXt issue an error when its assumptions are violated?

> \setbox0\hbox{Tg}\the\htdp0,\the\baselineskip
>
> gives
>
> 10.59601pt,9.3pt
>
> so, any line that has a character with ascender and descender will 
> enforce a larger than 9.3pt distance + lineskip and mess up any 
> prediction cq. heuristics

I can't find any reference defining \htdp0, but I'm guessing it means
the height+depth (where depth means how far descenders extend below the
baseline) of the "Tg" box.
I'm also confused as to why you're adding 9.3pt + lineskip, when in my
limited understanding of TeX, I understood lineskip to be *part* of the
distance between baselines, rather than an additional distance. But
maybe that's not important to the main issue.

I'm trying to formulate a rule for knowing whether "interlinespace is sane".
Is it that interlinespace needs to be more than or equal to the maximum
of (height + depth + lineskip) of any line in the text?

Thanks again for your help.

Lars

___
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] bug? gap appears in columnset

2013-09-17 Thread Lars Huttar
Aditya wrote:
> Any particular reason you are using columnsets rather than \startcolumns 
> or \startmixedcolumns. Columnsets are for specialized layout requirements, 
> and in my experience, mixing columnsets with text that is not in 
> columnsets is a bit tricky.
>

Thanks for suggesting a potential workaround.

We do have pretty specialized layout requirements, including figures
(some of which are hangarounds within columns, and some are outside of
columnsets but on the same page) and page-width-centered section
headings that are outside of columnsets.
I suspect that we tried \startcolumns and couldn't get it to work, but I
will definitely try again

I can't find \startmixedcolumns on the contextgarden wiki nor in the
ConTeXt manual. There are references to it on this mailing list, as a
"rewrite of the old columns mechanism". I'm reluctant to entrust a big
production project to undocumented features, but at this point, if it
works, we'll probably go with it. I wonder if it's available in mkii as
well as in mkiv?

> \startsetups normal
> \setupinterlinespace[line=12pt]
> \stopsetups
>
> \startsetups tight
> \setupinterlinespace[line=9.3pt]
> \stopsetups
> \setupmixedcolumns[distance=5mm, balance=yes]
>
> \starttext
> \section{Introduction}
> \startmixedcolumns[setups=normal]
> \dorecurse {7} { \input knuth }
> \stopmixedcolumns
>
> \section{Bibliography}
>
> \startmixedcolumns[setups=tight]
> \dorecurse {10} { \input knuth }
> \stopmixedcolumns
>
>
> Aditya (not sure why the interlinespacing is not working)

At
http://tex.stackexchange.com/questions/133586/bug-unwanted-gap-in-2nd-columnset#comment301754_133586,
phg wrote "If you want lines to adhere to a tighter line spacing you
will have to set a smaller font size, (the default one is 12pt I think)
e.g. |\setupbodyfont [7pt]| gets you the desired baseline skip and
decent leading. Doesn’t make the gap disappear, though."
I had left font settings out of the minimal example, since they aren't
necessary to exercise the bug.

Thanks again,
Lars


___
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] bug? gap appears in columnset

2013-09-16 Thread Lars Huttar
I was advised to report the bug back to this list, with an even more
minimized example.
Here it is below.
This bug occurs in both mkiv and mkii, in the latest versions (current
beta).

|\setupinterlinespace[line=12pt]

\definecolumnset[columnset1][n=2]
\setupcolumnset[columnset1][distance=5mm,balance=yes]

\starttext

\section{Introduction}
\startcolumnset[columnset1]
\dorecurse {7} { \input knuth } 
\stopcolumnset

\section{Bibliography}
\setupinterlinespace[line=9.3pt]
\startcolumnset[columnset1]
\dorecurse {10} { \input knuth }
\stopcolumnset

\stoptext


Note the gap across both columns on p. 3, about 3/4 of the way down.
Any suggestions for a workaround would be appreciated.

Lars

|

On 9/16/2013 2:29 PM, Lars Huttar wrote:
> FYI, I have posted this question on
> http://tex.stackexchange.com/questions/133586/bug-unwanted-gap-in-2nd-columnset
> Marco and phg were able to reproduce the problem, including in the
> latest versions.
> I don't plan to keep posting in both places, but wanted to leave a
> pointer from this thread to the other one.
>
> Regards,
> Lars
>
>

___
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] bug? gap appears in columnset

2013-09-16 Thread Lars Huttar
FYI, I have posted this question on
http://tex.stackexchange.com/questions/133586/bug-unwanted-gap-in-2nd-columnset
Marco and phg were able to reproduce the problem, including in the
latest versions.
I don't plan to keep posting in both places, but wanted to leave a
pointer from this thread to the other one.

Regards,
Lars

On 9/13/2013 4:07 PM, Lars Huttar wrote:
>> Hello,
>> We have a document where a gap occurs in a columnset under certain
>> conditions.
>>

___
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] bug? gap appears in columnset

2013-09-13 Thread Lars Huttar
It should also be mentioned that we need the second section to have a
tighter line spacing than the first, but despite the

\setupinterlinespace[line=9.3pt]

command, and despite the red grid lines being tighter, the text itself
seems to have the same interline spacing as in the first section. How do
we actually change the interline spacing?

Thanks again.

Lars

On 9/13/2013 4:07 PM, Lars Huttar wrote:
> Hello,
> We have a document where a gap occurs in a columnset under certain
> conditions.
> It seems to be a confluence of:
>
> - 2 sections, each with 2-column columnsets
> - \page[empty] between them
> - the 2nd section has a tighter interline space
>
> The problem is that on the first page of the second section, a two-line
> gap appears where gridlines 50 and 51 are.
>
> It may be a coincidence, but 50 is also the number of lines per page in
> the first section. We've found that "coincidence" to be true even with
> different page and font sizes.
>
> Can anyone tell us a way to get rid of the gap? We've tried things like
>   \setupcolumnsetlines[columnsetbibliography][1][1][-1]
>   \setupcolumnsetlines[columnsetbibliography][1][2][-1]
> with various values for the last parameter, but nothing helps.
>
> Below is a small, self-contained sample.
>
> Thanks for any help you can give.
> Lars
>
> Version information:
> This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012)
> (format=cont-en 2012.11.14)  13 SEP 2013 11:38
> ConTeXt  ver: 2012.05.30 11:26 MKII  fmt: 2012.11.14  int: english/english
>
>
> \showgrid
> \setupinterlinespace[line=12pt]
> \setuplayout[grid=yes]
>
> \definecolumnset[columnsetIntroduction0][n=2]
> \setupcolumnset[columnsetIntroduction0][distance=5mm,balance=yes]
>
> \definecolumnset[columnsetbibliography][n=2]
> \setupcolumnset[columnsetbibliography][distance=5mm,balance=yes]
>
> \starttext
>
> \section{Introduction}
>
> \startcolumnset[columnsetIntroduction0]
> % The important thing here is how many columns of text we have.
> \dorecurse {7} { \input knuth }
> \stopcolumnset
>
> \page[yes] % Always finish the current page
> % If we haven't ended up on an odd page, generate an empty one.
> \ifodd \pageno \else \page[empty] \fi
>
> \section{Bibliography}
> \setupinterlinespace[line=9.3pt]
>
> \startcolumnset[columnsetbibliography]
> \dorecurse {140} { \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bug? gap appears in columnset

2013-09-13 Thread Lars Huttar
Hello,
We have a document where a gap occurs in a columnset under certain
conditions.
It seems to be a confluence of:

- 2 sections, each with 2-column columnsets
- \page[empty] between them
- the 2nd section has a tighter interline space

The problem is that on the first page of the second section, a two-line
gap appears where gridlines 50 and 51 are.

It may be a coincidence, but 50 is also the number of lines per page in
the first section. We've found that "coincidence" to be true even with
different page and font sizes.

Can anyone tell us a way to get rid of the gap? We've tried things like
  \setupcolumnsetlines[columnsetbibliography][1][1][-1]
  \setupcolumnsetlines[columnsetbibliography][1][2][-1]
with various values for the last parameter, but nothing helps.

Below is a small, self-contained sample.

Thanks for any help you can give.
Lars

Version information:
This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012)
(format=cont-en 2012.11.14)  13 SEP 2013 11:38
ConTeXt  ver: 2012.05.30 11:26 MKII  fmt: 2012.11.14  int: english/english


\showgrid
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes]

\definecolumnset[columnsetIntroduction0][n=2]
\setupcolumnset[columnsetIntroduction0][distance=5mm,balance=yes]

\definecolumnset[columnsetbibliography][n=2]
\setupcolumnset[columnsetbibliography][distance=5mm,balance=yes]

\starttext

\section{Introduction}

\startcolumnset[columnsetIntroduction0]
% The important thing here is how many columns of text we have.
\dorecurse {7} { \input knuth }
\stopcolumnset

\page[yes] % Always finish the current page
% If we haven't ended up on an odd page, generate an empty one.
\ifodd \pageno \else \page[empty] \fi

\section{Bibliography}
\setupinterlinespace[line=9.3pt]

\startcolumnset[columnsetbibliography]
\dorecurse {140} { \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] flow text around graphic: lower right

2013-08-26 Thread Lars Huttar
Hi all,
We have the small self-contained example below, in which text flows
around a graphic.
The graphic is aligned with the upper-left corner of the text paragraph
(despite \setuphanging[location=right]). We would very much like to have
the graphic align with the lower right corner of the paragraph.
Is there any way to do that?

\definecolumnset[TwoColumns][n=2]

\setupexternalfigures[location={local,default}]

\setuphanging[location=right]


\starttext

\startcolumnset[TwoColumns]


\dorecurse{3}{

\starthangaround{\externalfigure[cow][width=2cm]}

I want this cow to be in the lower right corner of the paragraph.

\input knuth

\stophangaround

}


\stopcolumnset

\stoptext



Versions: We're using mkii. But we get the same results for mkii and
mkiv on the example above.


Thanks,
Lars

___
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] section headings on a grid: less space above?

2013-08-24 Thread Lars Huttar
Marco wrote,
> On 2013–08–23 Lars Huttar wrote:
>
> >/ \setuphead[subsection][number=no,style=it,grid=top]
> /
> Add
>
>   before={\blank[line]}
>
> Marco

Thank you very much, that worked!
Can you explain how it works?
Does "before=" override the setting of "grid="? Is "before=" at a lower
level?
Yet "before=" must be at a high enough level that the grid-setting code
is able to adjust for it and still preserve the grid alignment...

Regards,
Lars

___
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] section headings on a grid: less space above?

2013-08-23 Thread Lars Huttar
On 8/23/2013 11:26 AM, Lars Huttar wrote:
> Hello,
>
> I'm using mkii to typeset a document with grid layout. I'm trying to
> configure the formatting of the subsection headings.
>

Here is a small, self-contained example showing what I'm talking about:

\definecolumnset [twocol] [n=2,balancing=yes]


\setuphead[subsection][number=no,style=it,grid=top]


\starttext


\startcolumnset[twocol]

\dorecurse {5}{

\subsection{Subsection Heading}

\input knuth

}

\stopcolumnset


\stoptext


When I run this in mkiv, each subsection heading takes up 4 grid lines
of space.
How can I make it take up 3 lines?


(I would also like to lower the placement of the heading text within
that space; grid=3pt or grid={line,3pt} did that in mkii, but doesn't
seem to work in mkiv.)


Thanks,
Lars

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


  1   2   >