Re: [NTG-context] Removing Introduction section number

2010-06-07 Thread Rogutės Sparnuotos
Vyatcheslav Yatskovsky (2010-06-07 01:23):
 
 +1 for  \section [number=no] {Introduction}
 
 This was my first guess to try, and it is so convinient!
 
 :)

This is similar to what I was (intuitively) trying out first, when
tackling this same problem last week...

Couldn't \section[]{} keep accepting the reference label in the square
brackets, and support more comma separated options (for case by case
option adjustment, as Alan mentioned)?

-- 
--  Rogutės Sparnuotos
___
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] Cyrillic in Mark IV

2010-06-06 Thread Rogutės Sparnuotos
Yury G. Kudryashov (2010-06-06 11:55):
 Hi!
 
 How can I typeset Russian in Mark IV? None of the examples from wiki work. I 
 found TeXGyre and (no) Cyrillic thread, but there are no instructions, 
 just Cyrillic doesn't work with TeXGyre anymore.

Just install some fonts with Cyrillic glyphs to your system and use them.
For example, this is how I (minimally) used CMU Serif [1]:

\definetypeface[cyr][rm][Xserif][CMU Serif]
\definetypeface[cyr][ss][Xsans][CMU Sans Serif]
\definetypeface[cyr][tt][Xmono][CMU Typewriter Text Variable Width]
\setupbodyfont[cyr, 12pt]
\starttext
Калейдоскоп
\stoptext


[1] http://cm-unicode.sourceforge.net/

-- 
--  Rogutės Sparnuotos
___
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] Cyrillic in Mark IV

2010-06-06 Thread Rogutės Sparnuotos
Wolfgang Schuster (2010-06-06 10:44):
 Am 06.06.10 10:39, schrieb Rogutės Sparnuotos:
 Yury G. Kudryashov (2010-06-06 11:55):
 Hi!
 
 How can I typeset Russian in Mark IV? None of the examples from wiki work. I
 found TeXGyre and (no) Cyrillic thread, but there are no instructions,
 just Cyrillic doesn't work with TeXGyre anymore.
 
 Just install some fonts with Cyrillic glyphs to your system and use them.
 For example, this is how I (minimally) used CMU Serif [1]:
 
 \definetypeface[cyr][rm][Xserif][CMU Serif]
 \definetypeface[cyr][ss][Xsans][CMU Sans Serif]
 \definetypeface[cyr][tt][Xmono][CMU Typewriter Text Variable Width]
 
 For MkIV you need:
 
 \definetypeface[cyr][rm][specserif][CMU Serif]
 \definetypeface[cyr][ss][specsans] [CMU Sans Serif]
 \definetypeface[cyr][tt][specmono] [CMU Typewriter Text Variable Width]

I just copied the code from a MkII-XeTeX doc, hoping it will
work...should've tested before sending...could've just worked.

I had no idea what the 'Xserif' option does, and now one more riddle -
'specserif'. But even with this change, MkIV doesn't print anything:

!define font: font with name cmuserif-normal-normal is not found
!define font: unknown font cmuserif-normal-normal, loading aborted
!define font: unable to define cmuserif-normal-normal as \*cyr12ptrmtf*

-- 
--  Rogutės Sparnuotos
___
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] Keeping margin note on the same line

2010-06-05 Thread Rogutės Sparnuotos
Vyatcheslav Yatskovsky (2010-06-05 14:25):
 Hello,
 
 Please, advise me.
 
 Is there a way to keep margin text and body text on the same line in
 the following situation?
 
 \define[0]\chorus{\startnarrower{\itx CHORUS}\stopnarrower}
 
 \starttext
 \chorus
 
 \chorus
 
 \inmargin{B}\chorus
 \stoptext
 
 Now B is above CHORUS, I want it to be exactly on the same line.

I somehow feel that this is not what you want:

\def\chorus#1{\startnarrower{\itx 
CHORUS}\doiftext{#1}{\inmargin{#1}}\stopnarrower}
\starttext
\chorus{}

\chorus{B}
\stoptext

-- 
--  Rogutės Sparnuotos
___
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] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Rogutės Sparnuotos
Marius (2010-06-04 11:30):
 Hello, I can't get it to work too. When we could expect it to be
 fixed? Or maybe somebody knows a work around to place two floats side
 by side?

MkII?

-- 
--  Rogutės Sparnuotos
___
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] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Rogutės Sparnuotos
Marius (2010-06-04 21:25):
 On Fri, Jun 4, 2010 at 4:39 PM, Taco Hoekwater t...@elvenkind.com wrote:
  Rogutės Sparnuotos wrote:
 
  Marius (2010-06-04 11:30):
 
  Hello, I can't get it to work too. When we could expect it to be
  fixed? Or maybe somebody knows a work around to place two floats side
  by side?
 
  Looks like the bit of page-str.mkii that dealt with local floats
  is not included in page-str.mkiv (which makes sense, as it looks
  like it does not belong there).
 
  Copying those macros verbatim into the test file works, so it
  is probably just an oversight that they do not appear elsewhere
  in mkiv. (see attachment)

 Thank you, Taco, your code works, but I have one more question.
 
 My figures are placed side by side and its captions overlap, because I set
 
 \setupcaptions  [width=0.8\textwidth]
 
 How to set width parameter just for the captions of floatcombination? 

Most settings between

  \start
  \stop

are local, so you can simply do

\placefigure[none]{}{
  \startfloatcombination[2*1]
\setupcaptions[width=fit]
\placefigure[here]{}{\externalfigure[01]}
\placefigure[here]{}{\externalfigure[02]}
  \stopfloatcombination
}

-- 
--  Rogutės Sparnuotos
___
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] \section{\inmargin{}} doesn't work in MkIV

2010-06-02 Thread Rogutės Sparnuotos
I've quickly run a (MkII) document under MkIV after updating to
2010.05.27, but it didn't compile (perhaps this is related to the other
interaction bugs in MkIV):

\setupinteraction[state=start]
\starttext
\section{\inmargin{}}
\stoptext

-- 
--  Rogutės Sparnuotos
___
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] \hyphenatedurl and the '%' character

2010-06-02 Thread Rogutės Sparnuotos
Hello,

I defined

  \def\url[#1]{\hyphenatedurl{#1}}

for URLs, because I find 

  \useURL[][]
  \from[]

inconvenient (there are ~30 URLs in my document and all of them unique).
But \hyphenatedurl doesn't work with '%' (and '\%' gets printed
literally). I'll just use \useURL as a workaround, but shouldn't
\hyphenatedurl work as well?

-- 
--  Rogutės Sparnuotos
___
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] list of figures (bug?)

2010-06-02 Thread Rogutės Sparnuotos
Hello,

What is the correct way to set 'alternative=c' for the
\completelistoffigures?

This works:

  \starttext
\completelistoffigures[alternative=c]
\placefigure[here]{x}{}
\placefigure[here]{y}{}
  \stoptext

But this doesn't:

  \setupcombinedlist[listoffigures][alternative=c]
  \starttext
\completelistoffigures
\placefigure[here]{x}{}
\placefigure[here]{y}{}
  \stoptext

Why? If I add \definecombinedlist[listoffigures][figure], it starts
working, but the list is printed without the title... This seems
inconsistent, so either I have something wrong or there is a bug, no?

-- 
--  Rogutės Sparnuotos
___
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] is this valid usage of \def?

2010-05-29 Thread Rogutės Sparnuotos
Hello,

Could someone please confirm that it is ok to use \def like this:

  \def\ru{\switchtobodyfont[cyr]\language[ru]}
  \starttext
  \item {\ru Эйхенбаум, Борис. {\it Теория «формального метода»}.} 
Some other text in the main language.
  \stoptext

This is MkII with XeTeX, cyr is defined as

  \definetypeface[cyr][rm][Xserif][CMU Serif]
  \definetypeface[cyr][ss][Xsans][CMU Sans Serif]
  \definetypeface[cyr][tt][Xmono][CMU Typewriter Text]

because 'Latin Modern' lacks cyrillic glyphs and 'Computer Modern Unicode'
lacks some Lithuanian glyphs (and looks slightly different).

-- 
--  Rogutės Sparnuotos
___
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] bugs (and sectionstopper in MkII)

2010-05-27 Thread Rogutės Sparnuotos
Dear list,

I thought I would try switching to MkII (+XeTeX), because MkIV looks bad
tempered [1], but...

* How does one do the equivalent of \setupheads[sectionstopper=.] ?

* Why are the spaces of prefix and suffix of \in{}{}[] trimmed with MkII?
  \starttext
  \section[one]{One}
  \in{( sec. }{ sec. )}[one]
  \stoptext


[1] MkIV problems so far:

* \in[] bug after \definereferenceformat[][]:
  http://archive.contextgarden.net/message/20100525.013929.6c0016f2.en.html

* Interaction is not working (works fine with MkII):
  http://archive.contextgarden.net/message/20100525.002043.bb202b94.en.html

* Footnotes get put in the wrong page (didn't manage to create a minimal
  example in the first try).

P.S. Perhaps I should be using the bug tracker for the above, instead of
 this mailing list?

-- 
--  Rogutės Sparnuotos
___
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] texexec/context error messages [MkIV]

2010-05-24 Thread Rogutės Sparnuotos
Aditya Mahajan (2010-05-23 13:24):
 On Sun, 23 May 2010, Rogutės Sparnuotos wrote:
 
 And, the initial reason for these questions: has anyone figured out an
 appropriate 'errorformat' for the 'vim' editor, for use with MkIV? The one
 at http://www.vim.org/scripts/script.php?script_id=1925 seems to be
 working with MkII only...
 
 Hans, does LuaTeX support -file-line-error flag like pdftex? If so,
 how do I pass that (context --passon=-file-line-error) does not seem
 to work.
 
 Rogutes, if you want to match
 
system  : module * not found
 
 Add
 
   \%+Asystem\ %#:\ module\ %m\ not\ found,
 
 to the error format (it will not jump to the line containing
 \usemodule[...] because that information is not available in the log
 file).

Thanks, Aditya. I hope a 'file-line-error'-like option will turn up
eventually :)

One more question regarding error reporting: why are invalid parameters to
commands _silently_ ignored? 'texexec --verbose' outputs the same, be it
run with \setupheads[align=abc123,heads=lotsoff]
or with  \setupheads[align=center]

Since there is no documentation describing the numerous parameters of
most of the commands, I think it would be really useful to support the
trial and error method by showing as much parsing errors as possible...

-- 
--  Rogutės Sparnuotos
___
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] interaction [MkIV]

2010-05-24 Thread Rogutės Sparnuotos
G'day,

The defaults of interaction seem to be a bit strange (are they meant for
slides?)... Could someone please help me with these points?

A) Clicking on a reference to a footnote should take me to the footnote at
   the bottom of the page.
B) Once at the bottom of the page, clicking on the footnote number should
   take me back to where it was referenced.

A) doesn't work, hence the first question: is there a parameter that I can
   give to \setupinteraction[], to make links work when the destination of
   the reference is on the same page as the reference itself?

B) changes the zoom level, even with 'focus=standard', and takes me to the
   previous page. An example:
 \setupinteraction[state=start,focus=standard]
 \starttext
 \footnote{Note 1}\pagebreak
 \footnote{Note 2}\pagebreak
 \footnote{Note 3}
 \stoptext
   Compile, open pdf, go to the bottom of the document, click on the green
   '3'.

By the way, why isn't the 'focus=standard' parameter mentioned in either
Reference/en, or in setup-en.pdf? Found about it here:
http://wiki.contextgarden.net/Interaction

P.S. I am using the 'evince' document viewer; PDFs generated with XeLaTeX
work very well.

-- 
--  Rogutės Sparnuotos
___
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] \definereferenceformat [MkIV]

2010-05-24 Thread Rogutės Sparnuotos
A bug in MkIV?
The left=[ and right=] settings of \definereferenceformat[] bleed through
to \in and \at:

\definereferenceformat[cite][left={[},right={]}]
\starttext
\section[sec:test]{Test}
\cite[].
Section \in[sec:test].
\stoptext

By the way, is \setupreferencing meant for \about only (if so, why the
generic name)?

-- 
--  Rogutės Sparnuotos
___
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] texexec/context error messages [MkIV] [vim]

2010-05-23 Thread Rogutės Sparnuotos
G'day,

Shouldn't ConTeXt be stopping on
  system  : module simplefonts not found

instead of stopping on problems appearing only later, e.g.
  ! Undefined control sequence.
  recently read \setmainfont

Shouldn't error messages like the first one be more noticeable?

Why doesn't ConTeXt set an exit code when running in --batchmode or
--nonstopmode?


And, the initial reason for these questions: has anyone figured out an
appropriate 'errorformat' for the 'vim' editor, for use with MkIV? The one
at http://www.vim.org/scripts/script.php?script_id=1925 seems to be
working with MkII only...

-- 
--  Rogutės Sparnuotos
___
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] hyphenation patterns

2010-05-23 Thread Rogutės Sparnuotos
Is there anyone here who understands hyphenation patterns?

Such a document:

\setuplayout[textwidth=0.2cm]
\starttext
\language[la] Manovich.
\stoptext

hyphenates 'Manovich' into Ma-no-vi-ch, while it should be Ma-no-vich. The
same applies for Italian and Lithuanian languages (in LaTeX as well).

Could there be such an omission in the hyphenation patterns? Or am I
missing something?

Thanks,
--  Rogutės Sparnuotos
___
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] simple bibliography and dots after section numbering

2010-05-09 Thread Rogutės Sparnuotos
Taco Hoekwater (2010-05-09 08:15):
 Rogutės Sparnuotos wrote:
 
  But would it let me place such a list of publications:
 
   Books
   1. Author (year). Title.
   2. Author (year). Title.
  
   Internet resources
   3. URL
 
   Movies
   4. Author (year). Title.
 
 It seems that I could easily use \setuppublicationlayout to define a
 'movies' type, but is listing references by type implemented
   
 Not in mkii.

But I am running MKIV, look one line below. So, is printing a list of
publications grouped by publication type possible or easily done with
MKIV?

 (or easily done with MKIV)? Intuitively, I would use
 
   \placepublications[criterium=[type, book]]
 
 for each list...

-- 
--  Rogutės Sparnuotos
___
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] simple bibliography and dots after section numbering

2010-05-08 Thread Rogutės Sparnuotos
Marius (2010-05-07 09:32):
 I think what are you looking for is possible with bib module. Look at
 the 3.1 section Default and explicit citations
 
 http://dl.contextgarden.net/modules/bibmod-doc-2009.11.04.zip
 http://wiki.contextgarden.net/Bibliography

Yes, it looks very interesting and not as complicated as in LaTeX - thank
you.

But would it let me place such a list of publications:

  Books
  
  1. Author (year). Title.
  2. Author (year). Title.
  
  Internet resources

  3. URL

  Movies

  4. Author (year). Title.

It seems that I could easily use \setuppublicationlayout to define a
'movies' type, but is listing references by type implemented (or easily
done with MKIV)? Intuitively, I would use

  \placepublications[criterium=[type, book]]

for each list...

-- 
--  Rogutės Sparnuotos
___
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] simple bibliography and dots after section numbering

2010-05-06 Thread Rogutės Sparnuotos
Otared Kavian otared at gmail.com writes:
 On 5 mai 2010, at 09:25, Marius wrote:
  On Wed, May 5, 2010 at 5:12 AM,  rogutes at googlemail.com wrote:
  
  1. How does one add a dot after the numerals in headings, so that
  \section{First}
becomes
  1. First
instead of
  1 First
?
  
  \setupheads[sectionstopper=.]
 
 Actually this works only in mkiv, and implies also a dot after the
 chapter numbers and so on. 
 If you want only a dot after the section number you may say
 \setuphead[section][sectionstopper={.}]
 
 The same thing is possible in mkii, but I don't remember how to do it
 right now…

Thank you both very much. I have a humble question now: how did you find
out about this setting?

I thought about adding sectionstopper to the Reference in the wiki
(sectionstarter should go with it, no?), but was not sure how to go
about a MKIV-only parameter. Moreover, I was not successful in finding
any documentation about it. There's no more to the new manual than the
chapters on typography, fonts, is there?


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