Re: [NTG-context] Page number woes

2019-09-05 Thread Mari Voipio
Well, this was total waste of space from my part. When I found a
working file in a different project and copied the code over I
realized that my problem code should never have worked: I had
\setuppagenumber[stop] when I should have had
\setuppagenumber[state=stop]. Adding "state=" to my non-working code
solved all the problems and page numbering works the way I want to
have it.

And, as Wolfgang explained, I really don't need
\setuppagenumber[state=start] in the beginning of bodymatter, so now I
can even clean up my code a bit. Thank you, Wolfgang, I think I
understand blocks better now.

Mari


On Tue, Sep 3, 2019 at 7:03 PM Wolfgang Schuster
 wrote:
>
> Mari Voipio schrieb am 02.09.2019 um 13:07:
> > Hello!
> >
> > I have a document where I want the page numbers to start from the
> > first page of chapter one. There's bunch of stuff before that,
> > including a table of contents. This has worked fine:
> >
> > \startproduct prd-pr23
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \component pr23-cover_front_web
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex
> > \stopbodymatter
> >
> > \stopproduct
> >
> >
> > However, now I need to switch to using a full-page pdf as cover page
> > and changing that one line messes up with my page numbering, now TOC
> > appears as page 1 and chapter one starts from page 2 in my test file.
> >
> >
> > \startproduct prd-pr23
> >
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \startpagefigure[cover_vaisala_front_stripped]\stoppagefigure
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex % third chapter (DTR)
> > \stopbodymatter
> >
> > \stopproduct
> >
> > What is it that I don't see? I tried moving the cover page before the
> > \startfrontmatter, but that didn't change anything, TOC still starts
> > on page 2 when it shouldn't have a page number at all. Why does
> > switching the cover page from .tex to \pagefigure have such an effect
> > and how can I counteract it?
> >
> > Mari
> The \setuppagenumber command takes an assignment as argument but in your
> example you pass keywords to it.
>
> When you change the setting in the frontmatter to
> \setuppagenumber[state=stop] the numbers disappear. Since settings in a
> sectionblock are local there is no need to enable the counter in the
> bodypart because the previous setting is forgotten.
>
> When I look in your attached files I see that some file contain the
> setting \setuppagenumber[state=stop] which disabled the page counter.
>
> Wolfgang
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Adjusting interlinespace in a table

2019-02-05 Thread Mari Voipio
Hello all!

This may be a really stupid question, but wiki wasn't helpful: Is
there a way of adjusting interlinespace in a table? A \setupTABLE
command would work as I want to change the line height throughout the
table to make it smaller (have the rows closer to each other than in
my running text). I don't need to set the cell height or anything like
that, I just want to adjust the text inside the cells. I'm fairly
certain there's some simple way of doing it...

Thanks,
Mari
___
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] Font Awesome (again)

2018-11-04 Thread Mari Voipio
Hello!

That was it, I forgot rule one: update your ConTeXt before asking
questions. I updated to newest current and everything started working.

Thank you,
Mari
On Thu, Nov 1, 2018 at 2:59 PM Wolfgang Schuster
 wrote:
>
> Hi Mari,
>
> you have to update your installation because fontawesome 5 uses a new
> machanism
> to load the symbols from the font files. The first version of the
> mechanism from August
> did only work when you enabled the symbol set for the whole document and
> extended
> support was added in September.
>
> Wolfgang
>
>
> Mari Voipio schrieb am 01.11.18 um 13:51:
> > Hi Wolfgang et al,
> >
> > I did some more research into this.
> >
> > If I put \symbol after \showsymbolset, the font gets loaded and the
> > symbols show up as expected. If I put \symbol before \showsymbolset,
> > the font seems to get loaded, but instead of the symbol I get its name
> > printed. If I remove the \showsymbolset commands altogether, the
> > correct font doesn't get loaded at all (as far as I understand from
> > the log) and understandably I get no symbols then. I didn't touch the
> > stuff above \starttext, just moved the \symbol commands around.
> > As far as I can tell, the font is properly installed and ConTeXt finds
> > it (otherwise \showsymbolset wouldn't work, I think). But I've got a
> > nagging feeling I'm missing something somewhere else. Unfortunately
> > I'm on thin ice here, fonts really aren't my forte.
> >
> > Mari
> > On Thu, Nov 1, 2018 at 1:45 PM Wolfgang Schuster
> >  wrote:
> >> Mari Voipio schrieb am 01.11.18 um 12:04:
> >>> Hi,
> >>>
> >>> I'm trying to get Font Awesome 5 to work for me, but it only almost does.
> >>>
> >>> Wolfgang's code works and I get a nice list of symbols for all three
> >>> variations, so ConTeXt obviously finds the font. But when I try to use
> >>> a single symbol, ConTeXt prints the symbol name instead of the symbol.
> >>> There must be something I'm overlooking, but I don't know what. Wiki
> >>> wasn't very helpful, although we do have an entry on symbols (Font
> >>> Awesome, on the other hand, isn't mentioned anywhere on the wiki).
> >>>
> >>> I tried with \symbol[fontawesome-regular][credit-card] (at the end of
> >>> my file) and a few variants thereof, but couldn't get the symbol. What
> >>> am I doing wrong? What have I missed?
> >> Since you didn’t provide a example it’s difficult to tell what’s wrong
> >> for you
> >> but the following example works for me.
> >>
> >> Don’t forget to put the files for fontawesome 5 in a folder where
> >> ConTeXt can find them.
> >>
> >>
> >> \usesymbols[fontawesome]
> >>
> >> \starttext
> >>
> >> \symbol[fontawesome-regular][credit-card]
> >>
> >> \symbol[fontawesome-solid][credit-card]
> >>
> >> \stoptext
> >>
> >>
> >> Wolfgang
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Font Awesome (again)

2018-11-01 Thread Mari Voipio
Hi,

I'm trying to get Font Awesome 5 to work for me, but it only almost does.

Wolfgang's code works and I get a nice list of symbols for all three
variations, so ConTeXt obviously finds the font. But when I try to use
a single symbol, ConTeXt prints the symbol name instead of the symbol.
There must be something I'm overlooking, but I don't know what. Wiki
wasn't very helpful, although we do have an entry on symbols (Font
Awesome, on the other hand, isn't mentioned anywhere on the wiki).

I tried with \symbol[fontawesome-regular][credit-card] (at the end of
my file) and a few variants thereof, but couldn't get the symbol. What
am I doing wrong? What have I missed?

TIA,
Mari
On Sun, Oct 7, 2018 at 4:45 PM Wolfgang Schuster
 wrote:
>
>
>
> Aditya Mahajan schrieb am 07.10.18 um 15:26:
> > Hi,
> >
> > There is a FontAwesome.otf file that is distributed with ConTeXt
> > minimals. Does anyone know what version (4 or 5) of the font it is? I
> > am asking because the names of the symbols used in the font do not
> > match those on the font-awesome website. For example, using
> >
> > \showsymbolset[fontawesome]
>
> The distribution includes version 4.7.
>
> > I get that the symbol for "utensils"
> > (https://fontawesome.com/icons/utensils?style=solid) is actually
> > mapped to "food" in ConTeXt. Since the names of the symbols are now
> > taken from the font, my guess is that the distribution has an old
> > version of the font (also because it is a single font rather than three).
> >
> > Would it make sense to update the fonts in the distribution? If not,
> > then simply remove the old version of the fonts?
> >
> > Also, don't we need to update the symb-imp-fontawesome.mkiv file to
> > work with the new symbols. Font awesome has split the fonts into three
> > (https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started):
> >
> > Solid, Regular, and Brands. (There are also pro version of the fonts).
> > The simplest way to use them will be to have three symbolsets
> > (fontawesome, fontawesome-solid, and fontawesome-brands), where the
> > names are taken from the fonts.
> >
> > In the meanwhile, Hraban has painstakenly written out the mappings by
> > hand, but the automatic mapping might be simpler (and more future proof).
> > https://github.com/fiee/ConTeXt/blob/master/symbols/symb-awesome5.mkiv
>
> While I have no problem replacing the old symbols you can support both
> when you use new set names for the new version (even for the regular style).
>
>
> \definefontsynonym [FontAwesomeBrands]
> [file:fontawesome5brandsregular400.otf]
> \definefontsynonym [FontAwesomeRegular]
> [file:fontawesome5freeregular400.otf]
> \definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf]
>
> \startsymbolset [fontawesome-brands] [font=FontAwesomeBrands]
>% Font Awesome Brands
> \stopsymbolset
>
> \startsymbolset [fontawesome-regular] [font=FontAwesomeRegular]
>% Font Awesome Regular
> \stopsymbolset
>
> \startsymbolset [fontawesome-solid] [font=FontAwesomeSolid]
>% Font Awesome Solid
> \stopsymbolset
>
> \starttext
>
> \startnamedsection [title] [title={Font Awesome Brands}]
>\showsymbolset [fontawesome-brands]
> \stopnamedsection
>
> \startnamedsection [title] [title={Font Awesome Regular}]
>\showsymbolset [fontawesome-regular]
> \stopnamedsection
>
> \startnamedsection [title] [title={Font Awesome Solid}]
>\showsymbolset [fontawesome-solid]
> \stopnamedsection
>
> \stoptext
>
>
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


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

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

Re: [NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread Mari Voipio
Hello Pablo,

thank you for digging up all of that. What I found out today is that
while a graphic outputted from an old Corel (output e.g. pdf 1.3) has
all that extra whitespace, a graphic outputted from my newish Corel
2017 (pdf 1.7) seems to have  a working cropbox as does the old
graphic recropped with Acrobat as Hraban's Save As trick). I've
included an old graphic (fm.pdf), the same outputted today
(fm_corel_2017) and the old one after recropping it (I reset old
cropbox and cropped again) (fm_cropped), if somebody feels like
investigating further.

While the cropbox problem meant that I had to spend a few hours today
fixing problematic graphics in my big old file, the fact that output
from my current Corel works means that any future graphics will be
fine and I don't have to change my workflows. This reduces the problem
into the level of minor annoyance, assuming it can't be fixed.

Thank you everybody for your help,

Mari
On Wed, Sep 5, 2018 at 5:40 PM Pablo Rodriguez  wrote:
>
> On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote:
> > [...]
> > Hans investigated and could trace my problem to an Acrobat bug (or at
> > least it doesn't adhere to the PDF specs): I had my logo exported from
> > Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if
> > you don't "save as", Acrobat creates a XForm inside a page, but doesn't
> > set the boxes correctly for the page (CropBox missing, Artbox was what I
> > needed).
>
> Hi Hraban,
>
> the document sent by Mari (ex.pdf) contains the following information:
>
> 4 0 obj
>
> <<
>
>   /CropBox [ 265.961 392.102 329.315 445.535 ]
>
>   /Parent 2 0 R
>
>   /Contents 5 0 R
>
>   /BleedBox [ 265.961 392.102 329.315 445.535 ]
>
>   /MediaBox [ -9 -9 604.276 850.89 ]
>
>   /TrimBox [ 265.961 392.102 329.315 445.535 ]
>
>   /Resources <<
>
> /ProcSet [ /PDF ]
>
> /ExtGState <<
>
>   /GS6 6 0 R
>
> >>
>
>   >>
>
>   /Type /Page
>
> >>
>
> endobj
>
>
> I would say, that in the following sample:
>
> \starttext
>
> \externalfigure[ex.pdf][size=crop]
>
> \stoptext
>
>
> the option "size" doesn’t seem to work.
>
> Or is the original ex.pdf document flawed?
>
> Pablo
> --
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


fm.pdf
Description: Adobe PDF document


fm_corel_2017.pdf
Description: Adobe PDF document


fm_cropped.pdf
Description: Adobe PDF document


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

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

[NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-03 Thread Mari Voipio
Hello!

After updating ConTeXt I found out that it has suddenly started to
ignore the crop in some of my pdf graphics. These graphics look ok
(=cropped) in Acrobat and SumatraPDF, but when the graphic is placed,
the cropbox (?) is ignored and there's all this blank space around the
graphic, space that shouldn't be there. This is new behaviour, all of
the graphics worked as expected in my previous ConTeXt (from September
2017). Minimal sample is attached to this email, hopefully it is small
enough to make it to the mailing list.

After a quick look it seems that all the problematic graphics are pdf
output from CorelDraw, from different versions of that. Oddly the
problem doesn't affect all cropped graphics that originate from
CorelDraw, just some of them. There are even graphics that have been
outputted from one and same file where one works and the other
doesn't.

If this only concerns files from Corel (and not those I cropped in
Acrobat), I can fix it in Corel if necessary. However, it would be
preferable if ConTeXt can be forced to take the cropping into account.
I tried looking for a solution on the wiki, but it wasn't very helpful
(or I don't know what I'm looking for). I thought adding something to
\externalfigure might do the trick, but there doesn't seem to be a
suitable key.


Thanks,
Mari


cropping_problem.pdf
Description: Adobe PDF document


cropping_problem.tex
Description: Binary data


ex.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Problem with simplefonts

2018-09-03 Thread Mari Voipio
On Thu, Aug 30, 2018 at 2:40 PM Hans Hagen  wrote:
> don't use t-simplefonts, use \selectfont instead (its replacement)

I can't find \selectfont on the wiki, can I get an example on the
usage? My attempts haven't been successful, there's probably something
I don't understand.


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

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

[NTG-context] Problem with simplefonts

2018-08-30 Thread Mari Voipio
Hello!

Partly due to the upcoming ConTeXt meeting I updated my ConTeXt,
although with the --current option for latest stable.

Most of my files compile fine and there don't seem to be any problems.
However, the big beast fails right after loading env-fonts-23
(attached) and it seems to be a problem connected to the Simplefonts
module.

This is what the log says:

-
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name '../../env-fonts-23.tex'
modules > 'simplefonts' is loaded
open source > level 4, order 5, name
'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv'
loading > ConTeXt User Module / Simplefonts
resolvers   > lua > loading file
'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua'
succeeded

tex error   > tex error on line 802 in file
C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv:
! Undefined control sequence


\simplefonts@fontfeature ...\normalexpanded {\@NX
  \definefontfeature [#1#2\s...
\syst_helpers_comma_list_step ...\v!mainfont }{#1}
  \ctxlua {thirddata.simplef...
\17>>2 #1,->\syst_helpers_comma_list_step {#1}
  \syst_helpers_do_process_comma...
 \relax regular,
   italic,slanted,bold,bolditalic,boldslanted,caps, italiccaps,slan
\syst_helpers_do_process_comma_list ...m_gobble #1
  ,]\relax \global \advance ...
\simplefonts@definetextfont ...rocesscommacommand
  \ifx \currenttypeface \v!s...
...
l.802 \setsansfont
[Latin Modern Sans]

792\c!smallcapsfeatures=\v!smallcaps,
793\c!mode=\v!node,
794\c!force=\v!yes,
795\c!check=\v!no,
796\c!expansion=\v!no,
797\c!protrusion=\v!no]
798
799 %D Default fonts
800
801 \setmainfont[Latin Modern Roman]
802 >>  \setsansfont[Latin Modern Sans]
803 \setmonofont[Latin Modern Mono][\s!features=\s!none]
804 \setmathfont[Latin Modern Math]
805 \sethandwritingfont [Latin Modern Roman] % neither handwritten
nor calligraphic are available
806 \setcalligraphicfont[Latin Modern Roman] % for Latin Modern
but I need a default font for them
807
808 \!!donesimplefontstrue
809
810 \stopmodule
811
812 \protect \endinput


?
-

My understanding of the font mechanics is flaky (to put it mildly), so
I don't know if the problem is in my font definitions or if I've
actually found a bug (unlikely, but you never know). What is weird is
that the almost similar env-fonts-pr33.tex works without complaints.

I'm running standalone ConTeXt on a 64-bit Windows10 machine, if that
makes any difference. The ConTeXt version is 2018.08.28 17:21 MKIV
beta.

I don't need the non-working file right now. But it has to compile by
the end of next week or I'll be in trouble...

Thanks,
Mari


env-fonts-23.tex
Description: Binary data


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

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

Re: [NTG-context] Troubleshooting pdf bookmarks

2017-09-28 Thread Mari Voipio
On Tue, Sep 26, 2017 at 1:19 PM, Henning Hraban Ramm  wrote:
>
> did you check you have
>
> \setupinteraction[state=start]
> \setupinteractionscreen[option=bookmark] % should not be necessary
> \placebookmarks[chapter,section,subsection][chapter,section]
>
> No trailing commas missing?

Not possible - both files use the same environment file where the
above has been specified. If the problem was there, neither would
work.

However, the mystery deepens: I opened the not-working file in Acrobat
Reader and it actually does have working bookmarks - of some reason
SumatraPDF doesn't show them, but they are there. As most of my
customers are likely to use Acrobat Reader, I'm not really worried
about the bookmarks not showing up in other readers. Why SumatraPDF
shows bookmarks in test environment, but not in the proper one is an
enigma, but I'm no longer worried about it. Problem solved, at least
close enough.


Mari
___
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] Troubleshooting pdf bookmarks

2017-09-26 Thread Mari Voipio
Hello all,

I've got a problem with pdf bookmarks and I don't know how to
troubleshoot it. I first made a test file in a test folder with all
the correct components and it ("bookmark_test") works perfectly with
all the enviroment files and component files. However, when I copied
the working product file to the product folder ("prd-serv"), fixed the
links and ran ConTeXt, I didn't get bookmarks. Reference links show up
in TOC and text, so there's some kind of interactivity, but no
bookmarks.

I've tried to figure out from logs (attached) what eats my bookmarks
in the product folder, but without much success. I've also tried
excluding components and environment files in different combinations,
but that doesn't seem to help, so I haven't been able to isolate the
cause of the problem. Are there some commands that can be used to
troubleshoot interactivity/pdf bookmarks? \tracesomething, maybe?

Best Regards,

Mari


bookmark_test.log
Description: Binary data


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

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

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
Thanks, Wolfgang!

\symbol[square] doesn't work for me, because the inside of the box has
to be white also when on gray background, i.e. I need a box filled
with white. I decided to do what I should've done in the first place
and brushed up enough of my MetaPost that I could create a box with
black outline and white fill (OK, I pinched most of it from the
MetaFun manual...). This seems to work:

\startuseMPgraphic{box3mm_filled}
pickup pencircle scaled .02cm ;
path p ; p := unitsquare scaled 3mm ;
fill p withcolor white ;
draw p withcolor black ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm_filled}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


Thank you for your speedy replies!

Mari

On Thu, May 19, 2016 at 2:08 PM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
> Mari Voipio
> 19. Mai 2016 um 12:45
> On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
>
> This kind of works. The box and the number are now on the same line,
> but one of them - the number, I think - is offset and that looks
> funny. Is there a trick that'd fix that?
>
> 1. Lower your graphic because it has margins around the lines which
> positions it too high.
>
> \definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \stoptext
>
>
>
> 2. Use a box symbol which sits lower on the baseline.
>
> \starttext
>
> \dontleavehmode\symbol[square] 1
>
> \stoptext
>
>
> 3. Use metapost to create your own box.
>
> \startuseMPgraphic{box3mm}
> draw unitsquare scaled 3mm ;
> \stopuseMPgraphic
>
> \definesymbol[box3mm][{\useMPgraphic{box3mm}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \stoptext
>
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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
___

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
 wrote:
>
> \dontleavehmode\externalfigure[box3mm]

This kind of works. The box and the number are now on the same line,
but one of them - the number, I think - is offset and that looks
funny. Is there a trick that'd fix that?


Thanks,

Mari


MWE:

\starttext
\bTABLE
\setupTABLE[style=\ss\tfx]
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][each][bottomframe=off,topframe=off,rightframe=off]
\setupTABLE[c][1][leftframe=off,width=2cm]
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 1 \eTD
\bTD Pharma refractometer PR-43-PC calibrated with raw
 measurement data, refractive index (nD) and
temperature (T) \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 2 \eTD
\bTD Multichannel user interface (MI) that calculates
and displays
 the process liquid concentration based on the
refractive index and temperature,
 installed in a stainless steel enclosure \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 3\crlf
\externalfigure[box3mm] 3a \eTD
\bTD PR-7610 Table top standfor Multichannel user interface,
 contains a set of four screws. \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 4 \eTD
\bTD Wall mounting screws kit for mounting the
 Multichannel user interface on the wall \eTD
\eTR
%
\eTABLE


box3mm.pdf
Description: Adobe PDF document


mi_table_mwe.pdf
Description: Adobe PDF document
___
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] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
Hi,

I have a little problem with a table. It works fine otherwise, but in
the first column the box and the number should be on the same line.
This goes right with 3a, but all the other ones place the box on the
first line and the number on the second. Widening column 1 doesn't
help. How do I force the number to stay on the same line with the box?


\starttext

\bTABLE
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][each][bottomframe=off,topframe=off,rightframe=off]
\setupTABLE[c][1][leftframe=off,width=2cm]
\bTR
\bTD \externalfigure[box3mm] 1 \eTD
\bTD Pharma refractometer PR-43-PC \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 2 \eTD
\bTD \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 3\crlf
\externalfigure[box3mm] 3a \eTD
\bTD \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 4 \eTD
\bTD  \eTD
\eTR
\eTABLE


\stoptext


Mari

PS. I don't think it is relevant here, but my ConTeXt is relatively
new, 2016.04.17.


box3mm.pdf
Description: Adobe PDF document


mi_table.pdf
Description: Adobe PDF document
___
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] Problem with Cambria (in Windows)

2016-04-21 Thread Mari Voipio
On Tue, Apr 19, 2016 at 3:43 PM, Wolfgang Schuster
 wrote:
> 1. You can try to reload the font database with "mtxrun --script fonts
> --reload --force"
>and try it again.

This did the trick! Now I get

cambriaregular   cambria c:/windows/fonts/cambria.ttcindex:1

and that fixed the problem. It's nice to know that truetype
collections (.ttc) are not a problem for ConTeXt.


Thank you very much for your help, Wolfgang!



Mari
___
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] Problem with Cambria (in Windows)

2016-04-19 Thread Mari Voipio
Hi Wolfgang,

here's what I get:


c:\context>mtxrun -script font --list --all cambria*

cambria  cambriabolditalic   c:/windows/fonts/cambriaz.ttf
cambriabold  cambriabold c:/windows/fonts/cambriab.ttf
cambriabolditaliccambriabolditalic   c:/windows/fonts/cambriaz.ttf
cambriaitaliccambriaitalic   c:/windows/fonts/cambriai.ttf
cambriamath  cambriamath c:/windows/fonts/cambria.ttcindex:
 2
cambriamathnormalcambriamath c:/windows/fonts/cambria.ttcindex:
 2
cambriamathregular   cambriamath c:/windows/fonts/cambria.ttcindex:
 2
cambrianormalcambriaitalic   c:/windows/fonts/cambriai.ttf



Doesn't look good, does it. Windows Fonts shows Cambria Regular (and I
can use it in e.g. Word) and then bold, italic and bold italic, but it
seems like the regular is gone from the list above. I may have a
problem...


Thank you for your help,

Mari

On Mon, Apr 18, 2016 at 2:58 PM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
> Mari Voipio
> 18. April 2016 um 13:46
> Hi,
>
> after I updated my ConTeXt from a pretty old version (+1 year), my
> font system went bad. This used to work:
>
>
> \usemodule simplefonts % Do I need this?
>
> The simplefonts is frozen and the mechanism (although with different
> commands)
> is now part of the core.
>
> \starttypescript[Manuals]
> \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
> \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
> \definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
> \stoptypescript
>
> \usetypescript[Manuals]
> \setupbodyfont[Manuals,10pt]
>
>
>
> \starttext
>
> \input tufte
>
> \stoptext
>
>
>
> However, now Cambria turns up as italic, not regular. As far as I
> know, my laptop hasn't changed during this period (still running
> Windows 7), so I suspect the problem arrived with my recent ConTeXt
> update (last updated this morning). Is there an easy solution or a
> workaround for this problem?
>
> What output do you get when you write this on the commandline:
>
> mtxrun --script font --list --all cambria*
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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
___

Re: [NTG-context] Layer placement problem

2016-04-18 Thread Mari Voipio
On Mon, Apr 18, 2016 at 12:52 PM, Wolfgang Schuster
 wrote:
>
> \setupmakeup[page][top=,bottom=]

Ahh, yes, this elegantly sorted out the problem. Thank you, Wolfgang!


Mari
___
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] Problem with Cambria (in Windows)

2016-04-18 Thread Mari Voipio
Hi,

after I updated my ConTeXt from a pretty old version (+1 year), my
font system went bad. This used to work:


\usemodule simplefonts % Do I need this?


\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
 \definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt]



\starttext

\input tufte

\stoptext



However, now Cambria turns up as italic, not regular. As far as I
know, my laptop hasn't changed during this period (still running
Windows 7), so I suspect the problem arrived with my recent ConTeXt
update (last updated this morning). Is there an easy solution or a
workaround for this problem?


Thank you,

Mari


manual_font.log
Description: Binary data


manual_font.pdf
Description: Adobe PDF document


manual_font.tex
Description: TeX document
___
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] Layer placement problem

2016-04-18 Thread Mari Voipio
Hi,

after I updated my ConTeXt a few weeks ago, my cover page suddenly
started looking funny. As far as I understand it, the page consists of
stuff piled on a layer and then the layer is placed on a page. Except
that now the top edge of the layer seems to be placed at the midpoint
of the page or something like that. The text that should be in the
middle of the page now ends up on the bottom edge of the page. How can
I align the top of the layer to the top of the page so that everything
on the page shows up again?


Thank you,

Mari


pr23-cover_front_minimal.pdf
Description: Adobe PDF document


pr23-cover_front_minimal.tex
Description: TeX document
___
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] framedtext

2016-04-11 Thread Mari Voipio
On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der  wrote:

> \startframedtext[middle][frame=on,offset=0pt,width=broad]
> \hfil centered\hfil
> \stopframedtext
> \startframedtext[middle][frame=on,offset=0pt,width=broad]
> \hfill centered\hfill
> \stopframedtext

One has \hfil with one l and the other has \hfill with two l:s. \hfil
with one l seems to produce centering, while \hfill with two l:s makes
the text end up on the right.

Don't know if this is a feature or a bug, but this is the reason to
why those lines differ.



Mari
___
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/change in fillinrules

2016-03-31 Thread Mari Voipio
Darn, a bug. Thank you, Wolfgang. I figured out a workaround that's ok
for now, but of course I hope that in the long run this gets fixed.


Mari

On Tue, Mar 29, 2016 at 7:09 PM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
> Mari Voipio
> 29. März 2016 um 14:13
> Hello,
>
> after I updated to about newest ConTeXt, I found out that \fillinrules
> doesn't work any more as expected, i.e. instead of filling the rest of
> the first line, the rule now starts on the second line, below the text
> that precedes \fillinrules. This doesn't match the behaviour indicated
> in http://wiki.contextgarden.net/Command/fillinrules . Is this a bug
> or should I change something in my code? Now I have
>
>
> \setupfillinrules
> [n=1, %one rule per command \fillinrules
> width=broad] %leaves some space between the text and the line
>
> \starttext
>
> \fillinrules{Refractometer serial no:}
> \fillinrules{Customer:}
> \fillinrules{Address:}
> \fillinrules{Fax:}
> \fillinrules{Email:}
> \fillinrules{Sample description:}
> \fillinrules{Solvent (water/other):}
> \fillinrules{Laboratory method:}
> \fillinrules{Date:}
> \fillinrules{Data collected by:}
>
> \stoptext
>
> It’s a \thinrules bug which inserts a line break when you have only a single
> line.
>
> \starttext
>
> Left \thinrules[n=1] Right
>
> \blank
>
> Left \thinrules[n=2] Right
>
> \blank
>
> Left \thinrules[n=3] Right
>
> \stoptext
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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] Bug/change in fillinrules

2016-03-29 Thread Mari Voipio
Hello,

after I updated to about newest ConTeXt, I found out that \fillinrules
doesn't work any more as expected, i.e. instead of filling the rest of
the first line, the rule now starts on the second line, below the text
that precedes \fillinrules. This doesn't match the behaviour indicated
in http://wiki.contextgarden.net/Command/fillinrules . Is this a bug
or should I change something in my code? Now I have


\setupfillinrules
[n=1, %one rule per command \fillinrules
width=broad] %leaves some space between the text and the line

\starttext

\fillinrules{Refractometer serial no:}
\fillinrules{Customer:}
\fillinrules{Address:}
\fillinrules{Fax:}
\fillinrules{Email:}
\fillinrules{Sample description:}
\fillinrules{Solvent (water/other):}
\fillinrules{Laboratory method:}
\fillinrules{Date:}
\fillinrules{Data collected by:}

\stoptext


The resulting pdf is attached.


Thank you for your help,

Mari


fillinrules.pdf
Description: Adobe PDF document
___
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] Controlling table split in natural tables

2016-03-21 Thread Mari Voipio
Neat!

I had to update my ConTeXt to get it to work, but now it works perfectly.

I'll wikify it.

Thank you very much!


Mari

On Mon, Mar 21, 2016 at 12:42 PM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
> Mari Voipio
> 21. März 2016 um 11:04
> Hello all!
>
> I have a natural table that is too large to fit into one page, so it
> is split. Unfortunately it now splits between rows 28 and 29 that I'd
> like to keep together. I want the table to split between rows 27 and
> 28. Is this possible? I couldn't find anything on the wiki nor the
> mailing list archives...
>
> \starttext
>
> \bTABLE[split=yes]
> \dorecurse{10}{\bTR \bTD xxx \eTD \eTR}
> \bTR[after=\page] \bTD yyy \eTD \eTR
> \dorecurse{10}{\bTR \bTD xxx \eTD \eTR}
> \eTABLE
>
> \stoptext
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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] Controlling table split in natural tables

2016-03-21 Thread Mari Voipio
Hello all!

I have a natural table that is too large to fit into one page, so it
is split. Unfortunately it now splits between rows 28 and 29 that I'd
like to keep together. I want the table to split between rows 27 and
28. Is this possible? I couldn't find anything on the wiki nor the
mailing list archives...

Thanks,

Mari
___
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] Overlong chapter titles in headings

2015-11-17 Thread Mari Voipio
Hello all!

I have a document where chapter heading is also printed in the header.
Usually this works very nicely, but now I have a document with really
long chapter headings (not my choice...) that don't fit in the space
available in the header area. Is there a way of printing the whole
text in the chapter heading, but a shorter version in the header area?

Mari
___
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] Overlong chapter titles in headings

2015-11-17 Thread Mari Voipio
On Tue, Nov 17, 2015 at 1:00 PM, Thomas A. Schmitz
 wrote:
>
> \startchapter [title={...}, marking={…}]

Ah, that works like a charm, thank you very much!


Mari
___
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] Forced page break in a TOC

2015-09-08 Thread Mari Voipio
Hello all!


I've got a TOC where the page break really should be one line higher
than it is automatically. I found a solution in the wiki at
,
but it doesn't seem to work (any more). Any ideas on how to fix the
problem?


Mari


test_toc.pdf
Description: Adobe PDF document


test_toc.tex
Description: TeX document
___
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] Formula numbering

2015-09-08 Thread Mari Voipio
Hello!

I recently had to reformat a document that contains mathematical
notation and I was surprised how easy it was once I got the hang of
it. There's only one tiny problem:

I have one equation inserted with \placeformula. Currently this
formula gets numbered as equation 2.1 as it is in chapter two. I would
prefer it to be called just (1) instead of (2.1).

The display math page at 
says to use \setupnumber[formula][way=bysection] to get formulas
numbered by section, but there are no hints on numbering the formulas
with a running number independent of the section numbering.

What am I missing?


Mari
___
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] Table setups interfering with another table?

2015-09-03 Thread Mari Voipio
On Tue, Sep 1, 2015 at 2:43 PM, Procházka Lukáš Ing. - Pontex s. r. o.
 wrote:
>
> 2. Perform all setups right after \bTABLE (table_test2.mkiv). This is not
> applicable in all cases (e.g. \bTABLE[width=\textwidth] must be done here,
> not later) but in you case - you just setup specific columns and row, which
> can be done after \bTABLE safely. I deduce that each \bTABLE  \eTABLE
> creates a group, so all initializations done within remain local.

This solved the problem. Once I'd moved all \bTABLE commands up above
the setups, all tables behaved as intended.

Thank you very much!

Mari
___
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] Table setups interfering with another table?

2015-09-01 Thread Mari Voipio
Hello!

I have a bit of a table mystery. It seems that the setups of an
earlier table interfere with the table coming after it (in the real
thing there's text between the tables, but the behaviour is the same).
Each table looks fine by itself, but if I compile a file with both,
the second one looks weird. What is it that I don't see or understand?

And yes, the tables really need to look like that. I'm recreating from
a pdf a document that is probably made with Word and this is how
they've done their tables in the original.

I admit that my ConTeXt version isn't exactly the newest available, it
is dated 2015.02.03. If the combination of tables works in newer
versions, I'll update, otherwise I'm not keen to fiddle with a working
combo.


As always, I'll be grateful for any help I can get,


Mari


table_test_both.pdf
Description: Adobe PDF document


table_test_first.pdf
Description: Adobe PDF document


table_test_second.pdf
Description: Adobe PDF document


table_test.tex
Description: TeX document
___
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] Controlling linespacing in a TOC

2015-05-19 Thread Mari Voipio
On Mon, May 18, 2015 at 6:38 PM, Hans Hagen pra...@wxs.nl wrote:
 On 5/18/2015 3:08 PM, Mari Voipio wrote:

 just wrap the list:

 \start
 ... all kind of settings ...
 \placelist[...]
 \stop


Wow, that was easy. A bit of experimenting with \setuplinespace and my
TOC looks exactly like I want it. Thank you!

Mari
___
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] Controlling linespacing in a TOC

2015-05-18 Thread Mari Voipio
Hello all!

This is probably a stupid question, but how do I control the
linespacing in a table of contents? I found that space can be added
with e.g.

\setuplist[chapter][before={\blank[4*big]}]

but how do I make the linespacing smaller than default?


I've got
\setupwhitespace[medium]
does that affect the linespacing in a table of contents?


Are there any other settings besides \setuplist and \setupwhitespace
that affect the TOC spacing? I've got a fairly complicated file (or,
rather, a group of files), so I'm wondering if there's something
somewhere else that makes my TOC so airily laid out. (It looks nice,
but I'd rather squish it into fewer pages...)


Thanks,

Mari
___
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] Adjusting vertical location of a margin figure

2015-03-30 Thread Mari Voipio
On Tue, Mar 24, 2015 at 1:41 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:

 You can use the \tbox command for the alignment of the graphic.

 \setuplayout[backspace=4cm,width=14cm]

 \starttext

 \inmargin{\tbox{\externalfigure[warning][width=\leftmarginwidth]}}
 \input tufte

 \stoptext

This is much better, and quite a bit cleaner, too. Thank you Wolfgang!


Mari
___
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] Adjusting vertical location of a margin figure

2015-03-24 Thread Mari Voipio
Dear all,

in the user manuals I'm working with we'd like to put a graphic in the
margin when the text includes a warning or other important
information. I have found multiple ways of putting a graphic in the
margin (see below), but none of them works perfectly. In some the
graphic is placed to the baseline of the first row of the paragraph,
in others it is placed lower down and in short paragraphs ends up by
the next paragraph. What I want is a symbol in the margin aligned to
the top of the paragraph. Is this possible?
The graphic is always in the beginning of the paragraph, it doesn't
appear in the middle.

This is what I have this far:


\setupwhitespace[medium]


\starttext

\inmargin{\externalfigure[warning]}
\input tufte

\inmargin{\externalfigure[warning]}
Really short paragraph.


\inleft{
\placefigure[none][]{}
{\externalfigure[warning]}
}
\input tufte


\placefigure[leftmargin,none]{}{\externalfigure[warning]}
\input tufte

\placefigure
[inleft,none]
{}
{\externalfigure[warning]}
\input tufte

\placefigure
[inleft,none]
{}
{\externalfigure[warning]}
Really short paragraph.

\stoptext

Of course I have the option of making the symbols textheight, in which
case \inmargin (aligning to baseline) would work. However, I'd rather
keep them bigger if that is possible.


Thanks,

Mari


warning.pdf
Description: Adobe PDF document
___
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] \seeindex bug?

2015-02-23 Thread Mari Voipio
On Thu, Feb 19, 2015 at 12:04 AM, Alan Bowen bowenala...@gmail.com wrote:

 Is there a way to cross-reference an indexed term X that has only
 see X
 and not
 X see X?

I'd like to know this, too, now my index is full of ugly X see X references:

coating
  prism coating see prism coating
compatibility
  Indicating transmitter see Indicat-
 ing transmitter
  sensor see sensor
configuration
  display see display
  input switch see input switch
  relay see relay
cooling
  air cooling see air cooling

Like Alan, I'd prefer the see X model instead of X see X, so I'd get e.g.

configuration
   see display
   see input switch
   see relay

Is there a way to tweak indexing to achieve this?


Mari
___
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] Float placement problem (layers)

2015-02-22 Thread Mari Voipio
On Fri, Feb 20, 2015 at 2:57 PM, Alan BRASLAU alan.bras...@cea.fr wrote:

 Why do you use a float at all?
 You can place your graphic in the layer without using \placefigure.

Ah, this was the important thing. I've been placing graphics in floats
for so long that I've forgotten there's another way. I switched my
\placefigures to a plain \externalfigure and everything started
working. Obviously it's been sheer luck that the thing used to work,
now it is hopefully done as it should've been from the beginning.


Thank you,

Mari


test2_pr23-cover_front.tex
Description: TeX document
___
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 \placefigure[right]?

2014-01-13 Thread Mari Voipio
Hello!

For a while I've been baffled by a weird bug where sometimes I get
overset text when using \placefigure[right]. The problem appeared
sometime this autumn in places where everything has worked before.

This far I've (reluctantly) worked my way around the bug by using hard
line breaks where needed, but the current project has so many of those
spots that a more flexible solution would be nice.

On the other hand, just because I have so many of them and some
appeared today, I realized that the problem can be related to {\tfx }
in the beginning of the line. Here's a minimal example:




\starttext

\placefigure
[right][cow]
{A cow}
{\externalfigure[cow]}


{\tfx SET TIME/DATE} allows you to (re)set the instrument date and
time. Time is set by inputting a certain amount of digits. Possible
inputs are 4, 6, 8 and 12 digits. To set hours and minutes, input 4
digits. To set day of month and time input 6 digits. To set month, day
and time input 8 digits. To set year, month, day and time input 12
digits. In all cases seconds can be set by separating them with a dot.
The format can be seen below.

\input tufte



\stoptext

===



I know it is not beautiful, but I'm doing something very specific
where this is needed. In a real pinch I can probably rewrite every
problem sentence to put the \tfx in the middle instead of the
beginning, but this still doesn't make the original problem go away.
(Although I may be the only one bothered by it...)


Mari

PS. Hmm... Same thing if I use {\sc blabla} so while I reallly should
switch to small caps, that is not the solution.

PS2. I just tried with \placefigure[left] and I get overset text with it, too.


right_bugi.pdf
Description: Adobe PDF document
___
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 \placefigure[right]?

2014-01-13 Thread Mari Voipio
On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:

 It’s a known problem when you have a font switch at the begin of a paragraph
 and you can avoid it only when you force horizontal mode before you change
 the font with

   \dontleavehmode{\tfx …} …

Ah, I just haven't known what to look for, then. The magic formula
works and it is *much* better than hardcoding the line breaks. :-)


Thank you for your quick reply, Wolfgang!


Mari
___
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] Sectioning from 0?

2013-10-04 Thread Mari Voipio
On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster pmli...@free.fr wrote:
 \startsection[ownnumber=123, title=A]
 bla
 \stopsubsection

?

(They should be a pair, shouldn't they? Just in case somebody tries to
cut-and-paste the code...)

Mari
___
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-10-01 Thread Mari Voipio
On Mon, Sep 30, 2013 at 10:35 AM, Keith J. Schultz keithjschu...@web.de wrote:
 3) I could write up a tutorial for installing and TeXlive and Standalone
if you care for one.

Maybe that should go on page
http://wiki.contextgarden.net/Mac_Installation . While I'm used to the
command line, I still picked TextMate because it was an easy way out.
I've got MacTeX (=TeXlive) on my computer for occasional dabble with
LaTeX and I rather like the editor (and it's free), but I didn't know
that it can be configured to use ConTeXt Suite (=standalone) instead
of having to make do with whatever version is in the package.

So if you have time to edit that wiki page, I'm sure that would be appreciated!


Mari
___
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-10-01 Thread Mari Voipio
Hi,

I've now updated the file, trying to take all comments into account.
The new file is in the old place,
http://www.lucet.fi/pdfs/ctxbasics.pdf.

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

2013-09-29 Thread Mari Voipio
Hello!

Inspired by some informal discussions at the recent ConTeXt meeting I
started to write a *really* basic ConTeXt tutorial. However, before I
get further than the first six chapters, I'd like to get feedback on
it, especially on the content, but also on the layout. The file is (at
least temporarily) available at
http://www.lucet.fi/pdfs/ctxbasics.pdf.

I know already that there are a few things missing in the existing
chapters, but I'd like to know if the document is any good and if the
style is suitable for such a document. I've planned and written it out
of my own experiences with ConTeXt, so maybe this document could
become a My Way doc when it is finished (something public domain
anyway).


Thank you,

Mari
___
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-29 Thread Mari Voipio
On Sun, Sep 29, 2013 at 8:05 PM, Marco Patzer li...@homerow.info wrote:
 Then there is a medium sized manual aimed at beginners, “ConTeXt, an
 excursion” (which is rather outdated, I agree)

I was actually aiming at one step lower and in doing things in the
order a word processor user would approach ConTeXt. My copy of
excursion is fairly thumbed at this stage, but I still sometimes need
to use find to actually get at the things I need. So I wrote this new
one my way.


 As I said, I didn't take part in the mentioned discussion, so I
 might be missing out relevant information.

It wasn't anything major, just some off-hand sentences. I've just
written something similar for MetaPost, so this approach felt natural
and kept me amused during the travel home (including 4 hrs spent
sitting at the airport).


 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

 it should be sufficient to run

 1) download the installer: 
 http://minimals.contextgarden.net/setup/context-setup-mswin.zip
 2) install: first-setup.bat
 3) add ConTeXt to path: 
 http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe#Step_3:_Add_ConTeXt_to_Windows_search_path
(Maybe adding the exact command or a screenshot for step 3 would
be helpful.)

The problem is here: Windows users in general aren't used to command
line and even fewer have ever touched a path (or even know such a
thing exists). The only almost one-click approach is TeXLive - and
unfortunately I can't currently test that on my Windows as it might
mess up with my vital ConTeXt installation. Thus there is no real
Windows way of installing ConTeXt and this may hold some potential
users back.


   5 Formatting text

 Since you explicitly mention “The basic idea is to separate layout
 from content” in sections 2.1 and 3.1 I think it's not very
 educational to tell beginners to use font switches in the code:

   This is a {\ss test}. % sans serif
   This is a {\tt test}. % typewriter

 Rather teach logical markup from the very beginning.

True. Not that I follow this advice myself, but probably should (some
of my earlier ConTeXt files are - umm - not beautiful because I have
some Word baggage).



   \definehighlight
 [important]
 [style=bold]

   \important{This} is logical markup.

I'd say this approach is too complicated for somebody who just wants
to do documents on ConTeXt (more typing, too, and we people are lazy).
However, I was thinking about trashing both \bf and \it and just
talking about \em for marking emphasis. I think the big manual
includes information on how to adjust \em to one's preferences (I'm
sure I saw it *somewhere* while digging stuff up for this).


 This is arguable, but I personally would drop the (not deprecated
 and still supported) MkII syntax for floats

Interestingly, this was the only syntax I know of and the only one I
can find in the manuals and on the wiki.



   \placefigure
 [here,force] % really try to put the float just here
 {This is a cow} % Caption
 {\externalfigure[cow][width=2cm]}

 and replace it with the more intuitive MkIV syntax:

   \startplacefigure [title=A cow, reference=fig:acow]
 \externalfigure [cow]
   \stopplacefigure

Nice. I'll try to get around to wikifying this asap.


 And refrain from using the [here, force] setting, otherwise
 beginners will never grasp the concept of floats.

True. And otherwise I'm not happy about what I said about floats - I
just barely understand them myself and gaining that knowledge was hard
work - so I'll rewrite that section and will come up with something
else to put there. (Although floats with here,force still float,
just less so. Been there, done that; now I know it is a feature, not a
bug. Useful for a thesis, not so in my work.)


   6.4 Combinations

 Also arguable, but you might consider using the newer

   \startcombination [nx=3, ny=1]
   …

 syntax. It's more contextish and easier to understand, in my
 opinion. Furthermore, it's not covered in any of the manuals, as far
 as I know.

Nor the wiki, I'd never seen it before, although I've understood that
more and more ConTeXt commands move towards the start ... stop syntax.
Again, I'll try to get around to wikify this soonish (first I want to
try it out, though).


I've found before that I learn best by teaching others, for I will not
teach anything I don't properly understand my way. Now I've already
learned three new things, not bad. :-)


Thanks for the comments!


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

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Mari Voipio
Hi!

On Sun, Sep 29, 2013 at 8:50 PM, Thangalin thanga...@gmail.com wrote:
 - The introduction paragraph can be shortened. For example, tell the
 reader to try the subsequent examples using ConTeXt Live web page
 (as opposed to 'almost all of the examples in the series can be run
 online'). On any example that does not work, indicate such at the
 time.

Darn, I forgot to change this one - I found that the sample graphics
are found by ConTeXt Live, so *all* examples this far work online. I
aim at keeping things that way. I'm not that happy with the intro
anyway, your sentence is a lot more beautiful than mine. :-)


 - Avoid using abbreviations and jargon.

I thought I had, but obviously not enough. Will have to do a jargon
check all over - I write one chapter at a time so minor discrepancies
can be expected at this stage.


 As Marco noted, why not apply such wonderful effort to the wiki?

Because my idea is to make a document that allows one to start from
the beginning and doing the examples in the order given. I used the
wiki a lot to check on stuff, but it is not quite the same thing - and
wiki's second document is already a real jump start to ConTeXt, I
want to introduce things slower.

I will try to improve the wiki when I stumble on problems. E.g. within
last three days I've looked up half a dozen commands that are not on
the command reference index (the longer one) even though they have a
page of their own, e.g. \externalfigure (not on
http://wiki.contextgarden.net/Category:Commands but has a page at
http://wiki.contextgarden.net/Command/externalfigure). If the index is
generated manually (as it seems), I can edit it and add missing
commands on the go when I find them.

I must admit that I find it a bit scary to edit the wiki; I'm always
worried about messing up with somebody else's work - with this
tutorial project I can only mess up with my own text and mostly I can
live with that. Editing the wiki I think that everybody else must know
better than I do, for my command of ConTeXt is fairly basic, so I
can't see my solutions being better than those already existing. Thus
I rarely log in to edit, except with failing links and other small
issues.


How should I phrase this? The wiki is like an encyclopedia, I look up
stuff (more often than not with find) that I need for each case. My
aim is to make something like a novel or a book used for learning the
basics of a foreign language, introducing new things gradually.



Thank you for your time and comments!


Mari
___
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] Module simpleslides error

2013-09-13 Thread Mari Voipio
On Fri, Sep 13, 2013 at 1:01 PM, Xan dxpubl...@telefonica.net wrote:
 If I choose BottomSquares in presentation, I receive an error:

 l.68 \definevisualcounter

I recently went through all of the Simpleslides designs and found out
that also Boxed and Shaded failed at this same point. Looks like
something with the page counter. (Swoosh fails, too, but on something
else...)

These modules worked for me and about as expected (color options don't
seem to work, but defaults do): BigNumber, Ellipse, Embossed, Framed,
FramedTitle, HorizontalStripes, NarrowStripes, RainbowStripe, Rounded,
SideSquares, Sunrise, ThickStripes.


Mari
(who ended up picking a design that works although that wasn't my
first choice - I just forgot to report the problems, so it is good
somebody did!)
___
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] texlive vs. Context minimal on Windows

2013-08-31 Thread Mari Voipio
On Sat, Aug 31, 2013 at 3:43 PM, john Culleton j...@wexfordpress.com wrote:
 when a user downloads Context Minimals on a Windows partition what must
 they do to run the programs such as context and mtxrun? Go to a text
 console?

In Windows it is called Command Prompt, but yes. Unless you also
install a ConTeXt compatible editor like SciTe.

Don't know if TeXLive for Windows contains an editor that works with
the distribution's ConTeXt - in that case it might be a smarter choice
despite being slightly outdated.
I must admit that I haven't tried TeXLive on my Windows machine, I
follow my own advice
(http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe)
and run ConTeXt Suite with SciTe.

BTW, why minimals and not the full ConTeXt Suite (the one called
earlier standalone)? I mean that if you are prepared to install
TeXLive, this shouldn't be a space issue. Just curious...


Regards,

Mari
___
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] texlive vs. Context minimal on Windows

2013-08-31 Thread Mari Voipio
Hello!

On Sat, Aug 31, 2013 at 6:40 PM, john Culleton j...@wexfordpress.com wrote:
 Just fyi TeXlive when installed on Windows also loads a program
 submenu, and one of the entries there is texworks. So I can pretty much
 insulate my users from dreaded (by some) command line. That was the
 reason for my original question.

If your users are what I call an average Windows user, I'd go for
TeXLive, assuming the ConteXt there doesn't have some known *major*
flaw in the basic functions. I must admit for my part that I update my
work ConTeXt - i.e. the one in Windows - only every 3-6 months; I just
can't be bothered without a good reason... A complete beginner won't
need any of the newest features, a slightly outdated version ConTeXt
will do fine for teaching the basics.

I've thought that one of the main ideas with TeXLive is to make life
easier for those who don't like spending time tweaking their computer
or just don't have the knowledge required. As the easier option
exists, why not take it. :-)

TeXworks may not be the world's most advanced editor, but good enough
with highlighting and it allows doing everything by clicking as
opposed to using the unfamiliar command line interface. And frankly,
TeXWorks looks more like Windows than SciTe, so it is probably a
better choice anyway. On my Mac I prefer TeXShop to TeXWorks, but the
latter is good enough. Besides, I've been using ConTeXt for a long
time, so I know what I like - beginners will take whatever you give
them and make do. The main thing is to make a choice and stick to it,
to avoid additional confusion.

BTW, I'm working on (or this far, thinking hard about) some material
for a *complete* beginner (coming from the world of WYSIWYG) and also
on some on teaching ConTeXt to non-techies, which will be subject of
my talk at this year's ConTeXt meeting. I'll be happy to share all my
material, if it helps!


Regards,

Mari
(who may have to update to get access to the newest SciTe features -
I'm still trying to make up my mind about whether I want them badly
enough to take the risk...)
___
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] Making font smaller in \starttyping environment?

2013-08-31 Thread Mari Voipio
Hello,

I know I should be able to do it (and think I've done it once upon a
time), but how do I change the font size just for \tt and for
\starttyping \stoptyping environment?

I have no problems with the font used, I just want my typed text to be
a tad smaller (like \tfx for that font).

Once again I feel very bewildered in the font land...


Thanks,

Mari
___
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] Making font smaller in \starttyping environment?

2013-08-31 Thread Mari Voipio
On Sat, Aug 31, 2013 at 7:44 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:
 When you want a smaller size for the monospaced font you can use the rscale
 key from \definetypeface.

*That* was the command that I was grappling to find and that I've used before.


   \setuptyping[style=small]

If I do this, the font gets smaller, but it also switches to [rm]
which isn't exactly useful... However, I found that

\setuptyping[style=\tfx\tt]

will do the job.


Thanks again, Wolfgang, for your speedy reply!


Mari
___
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] Trouble with editors on Mac

2013-08-19 Thread Mari Voipio
On Fri, Aug 16, 2013 at 2:10 PM, Jannik Voges researchj...@icloud.com wrote:
 I think, you should remove the last 'context' in your PATH. So it should be 
 '/Applications/ConTeXt/tex/texmf-osx-64/bin/'.

That was a cut-and-paste error, the path was ok. Sharp eyes you have,
spotting that, I didn't notice at all!

Mari
___
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] Trouble with editors on Mac

2013-08-19 Thread Mari Voipio
On Wed, Aug 14, 2013 at 10:34 PM, Mari Voipio mari.voi...@iki.fi wrote:
 Hi!

 I updated my ConTeXt installation today and now it refuses to work
 with TextMate and TeXworks. When I use the typesetting command on
 either editor, I get the error message

 mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'


 The weird thing is that my ConTeXt standalone installation works on
 command line (with context myfile.tex).

I finally realized that I hadn't tried using ConTeXt from an editor
since I installed MacTeX Basic on this computer (the full package
refuses to download, even with Safari). So the problem wasn't in the
ConTeXt update but in what I did before that.
It took a bit of digging, but in a moment of inspiration I checked
/usr/ and found a symbolic link
texbin - /Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin

I *think* that was what wreaked havoc in my editors, because when I
_removed_ the texbin path from TextMate, ConTeXt started working again
in that editor.

So now I have TextMate for ConTeXt and TeXShop for LaTeX, and I'm
quite content with this arrangement; I don't mind having dedicated
software as long as it works and I've achieved that aim now.


Thank you all for your help in deducing that I indeed had a path
problem, that led me to find a (the?) solution.


Regards,

Mari
___
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] Trouble with editors on Mac

2013-08-14 Thread Mari Voipio
Hi!

I updated my ConTeXt installation today and now it refuses to work
with TextMate and TeXworks. When I use the typesetting command on
either editor, I get the error message

mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'


The weird thing is that my ConTeXt standalone installation works on
command line (with context myfile.tex).
I've used TextMate for a year and did not change anything there. Both
editors also have my ConTeXt directory
/Applications/ConTeXt/tex/texmf-osx-64/bin/context as PATH variable (I
got a different error message on TeXworks before I edited the path
variable to include ConTeXt). So in theory everything should be
fine...


I first installed the newest ConTeXt and when it gave the above error
message, I switched to latest stable version (installation with
--context=current), but that didn't make any difference. My previous
installation was at least 3 months old, possibly quite a bit older.


This problem is not critical as I can use TextMate/TeXworks as editor
and compile on command line in Terminal,  but it is a bit of a
nuisance not to be able to use the typesetting command in the editor.
So any help is highly appreciated.


Thanks,

Mari
___
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] [***SPAM***] Simple Context Application to Cards

2013-08-04 Thread Mari Voipio
On Sun, Aug 4, 2013 at 1:36 PM, d.henman dhen...@gmail.com wrote:
 I plan on designed some business cards, but am new to Context.
d.) some other Context mechanism.

I would use layers. Unfortunately, there isn't a really good beginners
manual for layers, but take a look at
http://wiki.contextgarden.net/Layers and
http://wiki.contextgarden.net/BusinessCard (and maybe even
http://www.pragma-ade.com/general/manuals/details.pdf ). I remember
struggling because those examples are a bit complicated to start with,
but better than nothing.

The nice thing with layers is that once you get it, you can adjust
everything by millimeter until it sits just right (and just right for
your printer, variations in paper feed may make 1-2 mm differences
between printers). And as long as you put each block on a layer of its
own, you can move it independently, e.g. move the logo 3mm to the
right but keep the text blocks where they are.


Regards,

Mari
___
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] Vertical alignment in combinations?

2013-02-15 Thread Mari Voipio
Today I feel like a total ConTeXt dummy...

The problem: I have 3*1 combination where the end graphics are the
same size, but the middle graphic is much shorter. With a standard
\startcombination\stopcombination I can easily get all three
side-by-side, but they are bottom-aligned while I'd need them
middle-aligned. I thought I once had a solution to this, but can't
find it - and, for once, the garden doesn't seem to be able to help.

Is there a setting I can use to fix the vertical alignment? Or should
I give up with combinations and go for a natural table instead? Or do
something totally else?


Thanks,

Mari
___
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] Trademark symbols

2013-02-07 Thread Mari Voipio
On Thu, Feb 7, 2013 at 12:40 PM, Devendra Ghate
devendra.gh...@gmail.com wrote:

 How do I get Trademark (TM) and Registered Trademark (encircled R) in
 ConTeXt?
 I will be using it with \high to get something like Simulink®

TM is high already, but with (R) you'll need that. This is what I
ended up with years ago, before I went UTF-8 (that simplifies things
quite a bit):


(R), up high:
\high{\registered}

TM, default placement:
{\trademark}

TM, extra high up:
\high{\trademark}


I can't recall where I managed to find these in the end, but I
remember that I really badly needed (R) for this:
Teflon\high{\registered}

:-)


Hope this helps,

Mari
___
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] External figures from other folders

2013-02-04 Thread Mari Voipio
On Mon, Feb 4, 2013 at 2:03 PM, Marco Patzer home...@lavabit.com wrote:

 \setupexternalfigures
   [directory=images]

The images can also be elsewhere than in a subdirectory:

\setupexternalfigures[directory=../graphics]

You can also tell ConTeXt to look into multiple directories:

\setupexternalfigures[directory={images,drawings}]


The above can of course be combined as needed, one of my recent
ConTeXt files has

\setupexternalfigures[directory={../Classic,../Celtic}]



One more trick: ConTeXt will first look for a pic in current
directory, then proceed to check out the others defined by
\setupexternalfigures.
When I worked with a master file and its translations where some
figures had translated text and others didn't, I dumped the translated
pics in the same directory with my translated tex file, while all the
untouched graphics could be found at the root. So when I compiled e.g.
the Swedish tex file, it would first look for graphics in its own
directory 'swedish', and only if a graphic could not be found, it
followed the paths set by \setupexternalfigures. That is, ConTeXt
doesn't get confused by having several graphics with the same name in
the same tree because it stops looking after the first hit.
I figured this out almost by accident and it turned out to be one of
the smartest workflow choices I've made during my 10 years of
ConTeXting. I could swear I've seen the info on a wiki page, but can't
find that now... Anyway, this is always useful to check out, it
contains a few more nifty trick:
http://wiki.contextgarden.net/Command/setupexternalfigures



Mari
___
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] External figures from other folders

2013-02-04 Thread Mari Voipio
On Mon, Feb 4, 2013 at 5:30 PM, Alain Delmotte espera...@swing.be wrote:
 When I worked with a master file and its translations where some
 figures had translated text and others didn't, I dumped the translated
 pics in the same directory with my translated tex file, while all the
 untouched graphics could be found at the root. So when I compiled e.g.
 the Swedish tex file, it would first look for graphics in its own
 directory 'swedish', and only if a graphic could not be found, it
 followed the paths set by \setupexternalfigures.


 You were compiling the Swedish tex file from the Swedish directory or from
 the master directory (where the master file was)?
 In other words: the compilation of the Swedish text was called from?? the
 master file? or the Swedish tex file itself?

Background: at that point of time I couldn't figure out about project
structures. And I drew my flow charts in CorelDraw, hadn't taught
myself that, either. :-)

NB. This is a bit simplified example of how things went, the real
thing contains more directories and subdirectories, but those are not
important to explain my idea.


What I had is a directory structure like this

PR-23
 PR-23/swedish
 PR-23/portuguese
 PR-23/spanish
 PR-23/german

It all started with a single-language project, language subdirectories
got added over time when translations turned out to be of essence.
[PR-23 is the name of the product for which the document is written.]

To illustrate the system with graphics, let's say that the main
directory PR-23 contained a flowchart called flow_troubles.pdf and a
wiring picture wrg-366.pdf.
Wiring drawings are never translated, so every manual version uses the
same graphic.
On the other hand, the flow chart needs to be translated for every
language version. I did that by copying the English original (Corel
Draw graphic) into the language folder, then translating, saving and
exporting as pdf in that (sub)directory. The result is that both e.g.
the subdirectory swedish and the main directory PR-23 would contain a
graphic called flow_troubles.pdf, but the one in the subfolder would
be in Swedish.

Then, if I needed a Swedish manual, I needed to go into subfolder
Swedish and compile the main .tex file there. At the beginning of that
file I had the command \setupexternalfigures[directory=../]. When the
compilation came to wrg-366.pdf, the graphic could not be found in the
same directory, so ConTeXt went one step up as instructed and picked
up the wiring drawing there. Later when compilation would get as far
to flow_troubles.pdf, ConTeXt would look in the working directory
'swedish', find it there and pick up that one and *stop looking for
that graphic*. Ergo, because the Swedish one could be found first, the
existence of the English version in the search path is not a problem.


This way I didn't need to change the names of my graphics nor my code.
It was also handy when translations arrived in batches; I translated
the graphics one by one and could always compile a proper looking
document, first with all graphics in English, then some in the target
language, finally fully translated - and still, if a new version of
the wiring drawing turned up, I only had to update the master
directory and then remember to compile the translations to get the
changes in.



One more thing to remember is that I really do product manuals and
they are always in fluctuation - there's no final version of the
manual until the production of that particular model has ceased. Thus
years have taught me to avoid duplicate information to utmost, because
the more places to update because of a minor change, the more likely
it is to forget at least one of them. Been there, done that...
[When I switched to ConTeXt, each manual version was a separate MS
Word document. To update a wiring drawing, I had to open each version,
import the drawing to replace the old one, then save and close. And
hope for the best, switching figures in Word wasn't always that
straight forward, ConTeXt is definitely more predictable.]


Mari
___
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] Finding documentation for ConTeXt

2013-01-28 Thread Mari Voipio
I think that one of the problems is that ConTeXt can do almost
anything, if you know how to ask it to do that. What I do is different
what most people use it for, but it works
(http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf
and http://www.lucet.fi/2013/01/metaposting/ and
http://www.lucet.fi/2012/12/twpatterns/).

There used to be a project to create a test suite with various types
of files, but the links on the wiki refer to something from 2009 and
that is, as you say, probably a be obsolete. I remember somebody
talking about the test suite at one of the more recent ConTeXt
meetings (2011/2012) - anyone with more info on that project? I think
it'd help Keith (and many others, me included) to see what can be
done.


If you do not want to splurge in the books, the revised chapters on
typography, fonts and pagedesign are recommended reading and pretty
well up-to-date. They are linked to the main page of the garden, but
these take you directly to the pdfs:

http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf
http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf


Other than that, it'd be helpful to know what you are looking for: are
interested in typography, doing layouts for you and others? Is
automated workflow what you are looking for? Dealing with maths? XML?
What about dealing with colour? Interactivity?


I guess I've resigned to the fact that ConTeXt is so huge that I'll
never know more than a fraction of it - so I operate on a need-to-know
basis. I learn something either because I'm certain it can be done or
because I've seen it at a ConTeXt meeting or heard about it (a remark
by Hans is to be blamed for my recent MetaPosting excursions).


A slightly off-topic thought: there are hundreds of manuals on
Microsoft Word. However, once you start going deeper into the program,
it is not *that* easy to find a single good manual on the subject.
With ConTeXt it is the other way round, finding 'for Dummies'
information is hard, but once you want to dive deep, the developers
are on this list to answer questions.



Just my five cents on the subject,

Mari
(who still remembers what things were like before the wiki. this is
much better.)
___
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] arranging vs. \page[last]

2013-01-28 Thread Mari Voipio
On Mon, Jan 28, 2013 at 10:17 PM, Henning Hraban Ramm hra...@fiee.net wrote:

 What would you suggest to put something onto the last (i.e. back) page?

The wiki has a trick, but I think it stopped working at some stage -
maybe somebody can fix it (if it is broken):
http://wiki.contextgarden.net/Imposition#Getting_the_last_page_of_a_Booklet

(Obviously we aren't the only ones with this problem...)


Mari
___
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] Creating a folded meander book - imposition problem

2013-01-26 Thread Mari Voipio
I would love to create a folded meander book, but as far as I can see,
that means creating a new imposition scheme and that's beyond my
skill. What I want is a cross between 2*16 and x=4, y=4 (I think).

Here's an explanation and a nice graphic of a 16-page (4x4) meander
book: http://stamphenge.wordpress.com/minibooks/meander-accordion-folded-book/

A 9-page version (3x3) would also be nice to have, to make slightly
bigger pages when printed on A4.




Thank you,

Mari
(Slowly brewing: an article on using ConTeXt and MetaPost in papercrafts.)
___
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] Creating a folded meander book - imposition problem

2013-01-26 Thread Mari Voipio
On Sat, Jan 26, 2013 at 8:18 PM, Wolfgang Schuster
wolfgang.schus...@gmail.com wrote:

 \setuparranging[MEANDER]

It works (of course it does!). Now I can create a funny booklet with
my MetaPost twiddlings. :-)



 A 9-page version (3x3) would also be nice to have, to make slightly
 bigger pages when printed on A4.

 How do you plan to fold this?

I had to try it out on paper, but it turns out I had understood the
text correctly: the same idea, but only two cuts.

Top row, left to right: 1,2,3
Middle row, left to right: 6, 5, 4, all upside down
Bottom row, left to right: 7, 8, 9

Cuts 1-2/6-5 and 5-4/8-9. The cut paper is like letter S (or a snake
or meander, whatever you wish to call it). When folded, the back page
remains blank because it is from the underside of the paper due to the
odd number of pages - not necessarily a bad thing. I can always slap a
copyright sticker or signature on that back cover...

For trial I took an A4 and cut off the bottom to make it square that
makes quite nice 7x7 cm pages. Not handy for continuous text, but for
short poems/thoughts or graphics/art it work out. I need to play
around a bit, but then I can post the results in my blog. :-)


Thank you,

Mari
___
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] [IN TOPIC] new interview

2012-12-13 Thread Mari Voipio
On Thu, Dec 13, 2012 at 11:03 AM, luigi scarso luigi.sca...@gmail.com wrote:
 http://www.tug.org/interviews/voipio.html

 http://www.lucet.fi/craftex

And here's another one done with MetaPost and ConTeXt that I twiddled
with when on a boring 6-hour flight recently:
http://www.lucet.fi/2012/12/twpatterns/ (pattern D is the one I used
as demo at EuroTeX)

I still need to add the how I did it page under CrafTeX, explaining
about the MetaPost code, but there were people who wanted to use the
patterns, so I did that first.

And then there's a simulation system for rigid heddle weaving
(band/ribbon weaving, plain weaving) that I coded last weekend. I just
need to get around to doing the threading charts for that, too, and
then the MP code explained, too.


I've also realized that a lot of the traditionally used patterning is
binary - background-foreground, white-black, base-groove, base-relief,
over-under ... on-off - and can thus be described with a simple
monochrome chart on rectangular grid. The range of techniques is wide
from weaving to knitting to fingerloop braiding to embroidery to
mosaics, but the basic idea is always the same. When I read those
charts, my brain does the on-off thing, background colour is 'off',
pattern colour/foreground color is 'on'. E.g. in brocaded
tabletweaving 'under' (usually 'under 1' is default, so I just
remember the sequence of 'overs' and think '3-1-3' when I'm really
doing 'over 3, under 1, over 1, under 1, over 3'.
[Seems like I have seed to another article here, just don't know where
it'll end up...]



I'm glad you've enjoyed reading the interview. It's been long time
coming, but I didn't get around to finishing it until last week. If my
memory serves me right, Hans was the person who started the whole
process by suggesting that I'd be interviewed. Don't remember any more
what the main reason for this was, it's really been quite a while
since then.


Greetings from (very) snowy Finland,

Mari
___
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] [IN TOPIC] new interview

2012-12-13 Thread Mari Voipio
On Thu, Dec 13, 2012 at 2:11 PM, Sietse Brouwer sbbrou...@gmail.com wrote:
 I liked the bit where Dave asked about the process
 Mari's company uses, and that Mari also went into the issue of so
 *we* use it, but how do we deal with others who don't use it?

Could you tell that I've had that discussion more than once? Sometimes
I really wonder how difficult it is to understand the sentence The
original format is *not* a Word (or indeed word processor) document.

Remind me again why we use this strange and difficult system is
another all-time favourite that pops up regularly. [The answers are
given in the interview, in case you are reading just this message
without checking out the links.]

Yes, short-term it may appear difficult in an average office
environment. Long-term, I still think ConTeXt was and is the best
alternative out of the available options because of its versatility.
The requirements have changed over the years and will change again - I
foresee tablet-sized interactivity in the near future - but  I have
not needed new tools, just to learn new ways of using what I have. And
the first ConTeXt files I wrote still mostly work; they may need a
little bit of fiddling before compiling on MkIV, but a lot less than
what a structured Word2000 file needs on Word2010 (e.g. TOCs have a
tendency to go bad between versions, figure placement can also be
tricky).


A lot of patience, some fighting spirit (and maybe a bit of luck) is
required if one plans to go the same way, but it can be done and
should be considered as one option among other possibilities.


Regards,

Mari
___
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] Two columns in a frame

2012-11-02 Thread Mari Voipio
Hi All,

I'm doing something where the example at
http://wiki.contextgarden.net/Columns#.28Simple.29Columns_in_a_narrow_frame
would be quiet useful. Except that if I copy-paste the example in my
ConTeXt, I get two columns typeset almost on top of each other, with
non-existent column distance (a lot less than on the graphic in the
wiki). Attached is what I get out of my ConTeXt, version 2012.05.30
11:26 MKIV


BTW, the columns page doesn't seem to contain information on how to
force a column break, at least not under that name I'm attaching a
short version of the file where I'd need it.


Being clueless again, thankful for any help,

Mari


simplecolumns.pdf
Description: Adobe PDF document


simplecolumns.tex
Description: TeX document
___
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] Two columns in a frame

2012-11-02 Thread Mari Voipio
I'm really being a clueless idiot again this morning, hit send instead
of attach (and they are not even next to each other). Here's my
own file that tries to implement the example from the wiki, with
limited success.

If you don't have Lucida OT, it may look a bit funny, but the pdf
should explaien the problem pretty well.

 BTW, the columns page doesn't seem to contain information on how to
 force a column break, at least not under that name I'm attaching a
 short version of the file where I'd need it.


 Being clueless again, thankful for any help,

 Mari


A6_laput_valmistusaineet_20121102.tex
Description: TeX document


A6_laput_valmistusaineet_20121102.pdf
Description: Adobe PDF document
___
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] Creating a background texture with text/graphic

2012-10-29 Thread Mari Voipio
Hello all!

While staring at the pile of ConTeXt instruction book(let)s on my
desk, I realized that I should be able to use a logo or a text to
create a background texture to use in scrapbooking and cardcraft. The
problem is that my skills don't quite stretch that far and I can't
remember where I once saw the code for this...

The logo I'm thinking of is originally an Inkscape svg file that I've
this far used in ConTeXt in pdf format. Other available and compatible
vector formats are at least plain svg, ps eps and pdf.


Possible solution 1:
to insert the logo in MetaPost and use loops, rotate, shft and
randomize to create a texture. Loop+shift would make a nice
alternating background, randomized with loop and 90degree rotation
steps would make a denser texture.

The problem: I don't know how to input the logo graphic into Metapost
code. This did not work, even though the pdf is in the same directory:

externalfigure vaaka-logo.pdf scaled 1cm;

Don't know if I'm missing something here, this snippet comes from the
MetaFun manual p. 199. Unfortunately I don't have pstoedit on my Mac,
so the conversion trick on page 198 doesn't work for me.

For text there're more ideas and I think I can handle that based on
MetaFun manual p. 92 + randomize, but with the external figure I'm at
loss on how to do it.



Possible solution 2:

ConTeXt. Insert here some code I don't have a clue about. Might be
ConTeXt only or ConTeXt and Metapost/Metafun together.  Inserting the
graphic is no big deal in this case, \externalfigure will do that.


(I got almost what I wanted by tweaking an older label/imposition
file, but I have some weird margin issues there and the positioning
system is not very exact and there are a bit too many things that
affect the layout. I'd rather put stuff on a grid than just tweak it
with the location and margin settings. That's the Word way, in the
long run not the smartest way of doing things. I'm planning to use
this feature a lot, so I'd rather code something that stands for
longer.)



Feel free to point me towards the correct wiki pages, my problem may
just be that I cannot come up with the correct search term,
background is not a very good one. And of some reason the garden is
not very good at scrapbooking terms (yet). ;-)

Note. On the moment I have no need to put text on top of those
textures, and I'm not worried about that bit anyway, layers usually
work nicely there. Now I'm interested into creating a personilized
background texture onto which I can e.g. glue a chipboard shape or
paper flower or a bit of glitter. It feels stupid to pay for so called
digital stamps/textures/backgrounds when I have the tools to create
some myself. Running text is easy, but using and reusing one logo
would be more fun. :-)


Thanks,

Mari
___
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] Using MPgraphics as externalfigures?

2012-08-03 Thread Mari Voipio
Hi Marco  al,

On Thu, Aug 2, 2012 at 11:34 AM, Marco Patzer home...@lavabit.com wrote:
 Read http://wiki.contextgarden.net/Metapost

I was on http://wiki.contextgarden.net/Mpgraphic which I actually
found for informative, but not quite enough for my very dummy level.


 and 3.3 Integrated Graphics in the MetaFun Manual.

*This* was my missing link (and I was being pretty stupid). I dug the
book out of my pile of ConTeXt papers and found exactly what I needed,
at the end of chapter 3.3, pages 115-117 in my paper copy.


To  answer to myself (in case somebody else ever looks for this);

At least in theory the key to the problem is to create a file
somefile.mp, then write the MP code in the file

beginfig{01}
   .
   .
   .
endfig ;
end .


The whole file is used by

\startMPrun
   input somefile ;
\stopMPrun

and the individual figure is available in the virtual file mprun.01.
Thus it can be included with
\externalfigure[mprun.01][width=0.5\textwidth] %etcetera


Page 117 even has an example of exactly the type of combination I'm
trying to achieve, so now it's just down to creating the graphic(s)
file(s). As my braiding graphics come in groups (steps and variations,
to be exact), this solution looks like a winner for now.


 \defineframed
   [graphicframe]
   [frame=on,offset=none]

 \define[1]\MPframed
   {\graphicframe{\useMPgraphic{#1}}}

 \startuseMPgraphic{first}
   fill fullcircle scaled 2cm withcolor red;
 \stopuseMPgraphic

 \startreusableMPgraphic{second}
   fill fullsquare rotated 45 scaled 2cm withcolor blue;
 \stopreusableMPgraphic

 \startbuffer [third]
   fill fullsquare scaled 1cm withcolor green;
 \stopbuffer

 \starttext
   \useMPgraphic{first}
   \reuseMPgraphic{second}
   \processMPbuffer [third]
   \MPframed{second}
 \stoptext


Thank you! I'll have to delve into this bit once the current
almost-past-deadline project is done, looks like this'll take a bit of
processing before it starts to make sense to me (my computer has no
such problems...).


Now, time for some recoding, thanks once more!

Mari
___
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] Using MPgraphics as externalfigures?

2012-08-01 Thread Mari Voipio
Hi All,

I'm being a bit clueless about the MPgraphics again...

I've got a pile of instructional graphics that will be used and reused
in a project. My first try is/was an unwieldy buffer construction, but
I'm sure there's a better way than

\placefigure[here]
[fig: 5 loop departed setup]
{The start position for a 5-loop braid with departed loops}
{\framed{\getbuffer[setup 5-loop basic]}}


Come to think of it, is there another way of framing the incoming
graphic? I don't want to include the frames in the MPcode as I may not
always want them, but that \framed{\getbuffer} construction is
downright ugly.


I think the solution to my problem can be found somewhere in the
\startreuseagleMPgraphic and \reuseMPgraphic, but I don't seem to be
able to figure out the last bits...


On the moment my MPgraphics have

\startbuffer[g1]
\startMPcode
...
\stopMPcode
\stopbuffer

but that's probably an overkill... And I'd really prefer to have the
graphic as just a pic so I can easily use them as external figures.


Of course one option would be to pdf the MPgraphics and then to insert
the pdf, but I'd prefer to skip that step.


Any ideas of how to do this in a smart way? Preferably without having
to go into the bowels of ConTeXt to get it done...


Thank you,

Mari
___
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] Variables how-to needed

2012-07-24 Thread Mari Voipio
Hello All,

I'm looking for some for dummies information about using variables.
I tried looking for it in the wiki, but only found this Internals
page that's a bit too advantaged to me:
http://wiki.contextgarden.net/Inside_ConTeXt#Using_variables
I'm obviously missing something important, so I'd love to see a few
more examples of variables and variable input files...


What I want is price tags with the item name in Finnish and
English/Swedish and then the price. These are placed on a small page
and those small pages are then fit onto one A4 by imposition.

Like this:

Pieni nyörihaarukka, koivua   %variable 1,v-descr-fi
{\em Small lucet, beech}   %variable 2, v-descr-en

6 eur  %variable 3, v-price1

Made in xxx %variable 4, v-origin


I can do the imposition, that is not a problem - and it works a lot
better than a table, so no tables this way...
.
My data is in a list that can be converted to csv (although it'll then
have a bunch of quotes to be removed), the list format is just like
above:
Item in Finnish, Item in English, price, country of origin.

So the main problem is database/mailmerge/variablerelated: How do I
(or should I) use variables to fetch this information from a separate
spreadsheet type file, i.e. my price list?

(IF this was MS Word or OpenOffice, it would be called Mail Merge, but
in OO it sucks a bit; and I think the operation itself should be easy
if  I just figure out how to do it...


Thank you,

Mari
___
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] FLOWcharts - connector line length?

2012-05-08 Thread Mari Voipio
On Thu, Apr 26, 2012 at 11:08 PM, Willi Egger cont...@boede.nl wrote:
 It is not possible to make cells spanning more than one column. This is 
 related to the fact that the cells are on a grid. It is also not possible to 
 have cells on e.g. half way down/left/right.

Oh well, I can live with that. Besides, the result is probably better,
when the flowchart is governed by fairly strict rules.


 The advantage of this module is that you can number the cell relatively. Only 
 the first cell has an explicit position. So if you have to insert new cells 
 you have to look only for cells which could be outside of the grid, but that 
 is easier than to walk through the whole chart and renumber the cells.

Thank you! I already got stuck on this one, so this is a very useful
tip (to be exact, got stuck on both: first had a cell outside of the
original grid, then had to move almost half of the chart one spot to
the right...). On the moment I'm dealing with processes that have
existed for a long time but never been documented, so the flowcharts
are bit of a work in progress and even with a first sketch on paper
changes are unavoidable.


Now, to implementing all this new knowledge in Chart 2.



Gratefully yours,

Mari
___
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] FLOWcharts - connector line length?

2012-05-08 Thread Mari Voipio
On Thu, Apr 26, 2012 at 1:27 PM, Marco net...@lavabit.com wrote:

 You can adjust the distance indirectly with changing the distance
 between the cells:

 \setupFLOWcharts [dx=8ex, dy=4em]

Ah, that naming does make sense, now that I think of it. It seems that
I'm still (re)learning to think of things as coordinates, it's been a
while since school when I last needed that stuff...


 (apparently in the expand your ConTeXt skills mode this week)

 Procrastination? Sounds like if you have important stuff to do ;)

Nope. Two deadlines within the same week, for two totally different
projects; one for my real work and one for my craft hobby/business.
So my ConTeXt learning curve, based on need to know, suddenly went
upwards in a pretty steep angle, that'll probably level out soonish
while I assimilate everything gained recently.



And if I haven't remembered to say this before, I'm very thankful for
all the tips and offers for help that I've gotten, they are very much
appreciated!



Mari
(...back in the FLOWchart land...)
___
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] Metapost/Metafun Q: using variables and building blocks?

2012-05-07 Thread Mari Voipio
On Sun, May 6, 2012 at 4:52 PM, Hans Hagen pra...@wxs.nl wrote:
 You have seen this one, haven't you? Posted by Don Knuth:

 http://www.youtube.com/watch?v=YVuggGxeBVk

 So that's your next challenge.

Yes, I've seen it, had to watch the whole thing, it is so fascinating.

If I ever decide to invest in such a machine, it'll be an expensive
one that allows me to digitize my own graphics (not just ready-made
sets), preferably as vectors. In which case doing *that* isn't so much
of a challenge any more.

I've coveted one of those for a while, but currently cannot justifty
getting one, neither for fun nor for my tiny craft business as that
one is concentrated on the pre-steam era. However, I'm planning to use
MetaPost to create blackwork charts, I've got the feeling that it'll
give me neater results than any existing software. And I won't be
stuck with one OS, either. :-)


Mari
___
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] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Mari Voipio
On Mon, Apr 23, 2012 at 9:04 PM, Hans Hagen pra...@wxs.nl wrote:
 beware, metapost is addictive once you get better in it,

It is. :-)

This one is to both you and Peter, because your snippets together
helped me adjust from WYSIWYG vector graphics to MetaPost - not that
I'm that far yet, but I understand a lot more than I did.

http://www.lucet.fi/textiles/


The fingerloop braiding patterns are still under construction, but I
think I now know a lot better what I need to do there. And my
fingerloop braiding suite idea was well received, so it looks like
ConTeXt will be present at Braids 2012 in August
(http://www.braidsociety.com/confer.htm); not as a talk, but as
finished materials, in poster form and, obviously, on my computer.


 (btw, a talk about this will fit nicely in the upcoming eurotex theme)

I think I already happened to promise that to Taco... I guess the
title of my talk is now TeXtile craft or TeXtiles or something
like that. You still time to make a wish or two. :-)


Definitely hooked on MetaPost,

Mari
___
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] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Mari Voipio
PS. I got this link from a friend who'd struggled with an event
registration system, but it SO applies to my MetaPost project:

http://www.howtogeek.com/102420/geeks-versus-non-geeks-when-doing-repetitive-tasks-funny-chart/


(Scary, I seem to count as geeknow...)
___
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] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Mari Voipio
On Sun, May 6, 2012 at 3:47 PM, Hans Hagen pra...@wxs.nl wrote:
 http://www.lucet.fi/textiles/


 Best change that in:

 ConTeXt, developed by the Dutch company Pragma Advanced Document
 Engineering, is open source software and avaliable as stand alone
 distribution (www.contextgarden.net) and is also part of regular tex
 distributions (like texlive).


OK, done. And I added some more stuff that I forgot originally.

Don't know if I should split the page into smaller units - but somehow
I feel that those who'll be interested in it, are capable of reading
more than one screenful. We'll see what this turns into.
Today I used my new skills with frames and the Lucida OT Handwriting
to create insides for a Mother's Day card as I needed something that
is exactly the right size. :-D



Thank you,

Mari
___
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] Metapost/Metafun Q: using variables and building blocks?

2012-04-30 Thread Mari Voipio
On Mon, Apr 23, 2012 at 20:34, Mari Voipio mari.voi...@iki.fi wrote:
 a) I need to be able to stack four of these on top of each other and
 then four mirrored ones next to them

OK, I really was being stupid - I had already managed to do a shift
inside a single 'block', somehow I just didn't see that I could do the
same to the blocks:



\startMPpage


picture ll ; % left-hand loop
ll :=
image (
path p, q, r ;

p := fullcircle scaled 4mm ;
q := p shifted (0mm,10mm) ;
r := center p .. (5mm,5mm) .. center q ;

pair pr, qr ;

pr := p intersectionpoint r ;
qr := q intersectionpoint r ;

r := r cutbefore pr cutafter qr ;
r := r cutends 0.2mm ;

draw r withpen pencircle scaled 0.2mm withcolor black ; % the 
connecting curve
draw p withpen pencircle scaled 0.2mm withcolor black ; fill p
withcolor black ; % upper shank
draw q withpen pencircle scaled 0.2mm withcolor black ; fill q
withcolor black ; % lower shank
);


draw ll ;
draw ll shifted (0mm,20mm) ;
draw ll shifted (0mm,40mm) ;
draw ll shifted (0mm,60mm) ;


\stopMPpage


 Keeping in mind that I
 will have to be able to draw a path/arrow on top, so I need to know
 where they are.

My little brain got an overflow from all this abstract thinking, but
then it dawned on me that I could use the millimeter grid recipe in
the MetaFun manual (p. 214) to draw a grid behind my pattern drawing.
Now placing the arrows should be a walk in the park...



 b) The circles p and q can be filled with the same colour or two
 different colours, and each of the blocks in a pattern can have
 different fill colour

 I assume the answer is use variables, but how?

Gaah, I still cannot figure it out!
A real example: one of my own patterns has white up and down on first
loop, black up white down on second, white up and down on third and
blue up and down on fourth. So I'd need

draw ll ; % and fill both circles with white
draw ll shifted (0mm,20mm) ; % and fill lower circle with white,
shifted/upper circle with black
draw ll shifted (0mm,40mm) ; % fill both circles with white
draw ll shifted (0mm,60mm) ; % fill both circles with blue


What is the shortest way of doing this? I don't mind writing
definitions earlier in the file, but I'd rather keep this part as
short as possible to be able to see the pattern at one glance. The
main problem comes from the bicoloured loops as I can't just apply the
same fill on both. And on the whole I'd prefer to make sure I apply
the fill only locally per each half-loop and not all over the place...



Getting closer,

Mari


PS. I don't have any photos of the above braid, but here's a typical
fingerloop braid that I did and need to document:
http://www.lucet.fi/2012/04/sydamellista-hearty/
___
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] FLOWcharts - connector line length?

2012-04-26 Thread Mari Voipio
Hi,

I've just fallen in love with the chart module, my first flowchart is
almost done. I'll never draw these by hand again... Besides, it
seems that the chart module forces me to do flowcharts right, that
should help with consistency and legibility. Now I just have to read a
bit on how to do charts properly!

I've figured out about text font and box sizes and making connections
and all that, but there's one important question that I just can't
seem to find the answer for: how do I adjust the connector line
length? My labels just don't fit between the boxes and I'd have a
whole A4 for a ny=5 flowchart, so I'd have space...


(Oh, the other question is: is there a way to span a cell across
several slots on the grid? If not, I can deal with *that*, the line is
a lot more of a problem.)



Thank you in advance,

Mari
(apparently in the expand your ConTeXt skills mode this week)
___
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] FLOWcharts - connector line length?

2012-04-26 Thread Mari Voipio
On Thu, Apr 26, 2012 at 10:30, Mari Voipio mari.voi...@iki.fi wrote:
 I've figured out about text font and box sizes and making connections
 and all that, but there's one important question that I just can't
 seem to find the answer for: how do I adjust the connector line
 length?


Answering to myself - DOH.


If I put my flowcells e.g. on rows 1, 3, 5 and 7, the lines are
automatically extended to reach past the unused rows - longer
distances between the flowcells.


The fact that there is a grid does not mean one has to fill the whole
thing, wider spacing is sometimes quite ok.

Now I really do feel stupid. :-D

On the other hand, the flowchart looks good, so no complaints about
the module, once again the bug was definitely between the chair and
the screen...



Mari
___
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] lucida ot

2012-04-25 Thread Mari Voipio
On Tue, Apr 24, 2012 at 20:53, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 \definetypeface[mainface][rm][specserif]  [Lucida Blackletter 
 OT][default][features=default]
 \definetypeface[mainface][cg][calligraphy][lucidaot]             
 [default][features=default]

 \setupbodyfont[mainface]

 \definebodyfontenvironment[default][em=cg]

 \starttext

 \input knuth

 roman {\cg calligraphic} roman {\em emphasized} roman

 \stoptext

Works fine in a single file, but as soon as I try using it in a
project environment, it hangs..

A minimal environment test file:
\startenvironment env_ms_blackletter

\definetypeface[mainface][rm][specserif]  [Lucida Blackletter
OT][default][features=default]

\setupbodyfont[mainface]

\stopenvironment



And this is what it hangs onto:

   \3mainface-12pt-mm-mr--3
\font_helpers_preset_math_family_indeed ...csname
  \scriptfont #1\csname \??f...
\font_helpers_set_math_family ...amily_indeed #1#2
  \else \font_helpers_set_ma...
\font_helpers_bidirectional_mathstrategy_nop ...r
  \textfont \c_font_fam_mr_r...
inserted text ...bidirectional_mathstrategy_nop
  \fi \font_helpers_apply_co...
\font_helpers_synchronize_math ...math_strategies
  \fi
...



(Not going to give in yet - but maybe, just maybe, I'll migrate couple
of centuries for now...)



Thank you again for your patience,

Mari
___
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] Reducing inter-character spacing?

2012-04-24 Thread Mari Voipio
Hello,

here comes yet another I could do this in Word but can't figure it
out how ConTeXt does it font-related question:

How can I reduces inter-character spacing in a font?
I've found out that the spacing can be temporarily expanded by
\stretched{}, but what's the opposite and how to control it? And I
want to do it all over one product in my project, but on the other
hand I don't need to reset it for any individual words or anything.

(I assume that if the overall inter-character spacing is reduced,
inter-word spacing will follow, but if not, I need to be able to
reduce that, too.)


I guess it isn't easily available because I'm not really supposed to
be cramping the nicely designed fonts, especially not my nice new
shiny Lucida OT - but I'm trying to create something in the style of
past centuries when the style and requirements were different from
today's.
I've decided to use ConTeXt just because it should allow me to produce
both the period-looking-but-illegible and
nicely-typeset-modern-but-actually-usable versions of the same
project. :-)


TIA,

Mari
___
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] Reducing inter-character spacing?

2012-04-24 Thread Mari Voipio
On Tue, Apr 24, 2012 at 18:20, Marco net...@lavabit.com wrote:
 \definecharacterkerning [narrow] [factor=-.1]

 \starttext

 \setcharacterkerning [narrow]
 \input knuth

 \stoptext

This did the trick - and -.1 was just enough to dense the text up but
not into total mess (-.2 was definitely Far Too Much).


 Watch out, this mechanism breaks ligatures.

Doesn't matter in this case, I'm not that good at them when doing this
by hand (involves ink, steel nib and too many splotches). My kerning
still sucks big time in hand calligraphy, ConTeXt does it better.  :-D
Besides, if I ever want to do this really properly, I'll have to
define my own ligatures anyway, they had all kinds of weird
abbreviations which depend on whether you write English, Latin or
Swedish... Won't happen this round, the contents won't be in fully
period style either, just in the inspired by range. Maybe for
September.



Thank you, this admirably solved that little problem!


Mari
___
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] lucida ot

2012-04-24 Thread Mari Voipio
On Sat, Apr 21, 2012 at 12:36, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 You need \starttypescript[serif][blackletter] but there is a shorter method:

 \definetypeface[lucidablackletter][rm][specserif][Lucida Blackletter OT]

 \setupbodyfont[lucidaot]

 \starttext
 Lucida Bright {\lucidablackletter Lucida Blackletter} Lucida Bright
 \stoptext


OK, so I went and got stuck again...

I want to use blackletter as my bodyfont (text and headings, no
footers or headers or captions or anything else), BUT I'd prefer to
use Lucida Calligraphy OT (\cg) as the font in emphasis both for the
sake of legibility and because that is at least close to correct for
the period I'm doing.


If I do

{\lucidablackletter
  component 5-loops-broad
}

that is a) not neat and b) overrides any definition in my environment file like

\definebodyfontenvironment[lucidablackletter][em=cg]

or


\definebodyfontenvironment[default][em=cg]



I can get either or, but not both - I think I'm being a clueless
again, operating outside of the standard five font switches definitely
is uncharted waters for me... So what's the neatest way of ensuring
that when I compile this particular version of my product (with the
appropriate environment file), bodyfont is blackletter and emphasis is
calligraphy?
All the other versions will use ConTeXt defaults (or at least close),
it's just this one that needs a bit of expert help...



Thank you for your patience,

Mari
___
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] Metapost/Metafun Q: using variables and building blocks?

2012-04-23 Thread Mari Voipio
Hello all,

any graphic experts around who can bump me past a stupid hinder on my
way to understanding MPgraphics?


I'm trying to create a system of describing certain type of braiding
patterns (fingerloop braiding), based on what has been used in the
field before me - but they did it all manually either by pen or
computer, and I just do not fancy doing 40+ patterns by hand in
Inkscape, especially as my pattern recipe book keeps expanding and I'm
planning on that, too.

I think Metapost could be the solution, because I need simple shapes
and sometimes complicated but well-regulated paths/arrows to go
between them; I'm just being a clueless newbie, too much in the
WYSIWYG vector graphics mode to really know what to do.


Mostly with the examples in the Metafun manual I've managed to get as
far as to my basic building block, two circles joined by a curve:


\startMPpage
path p, q, r ;

p := fullcircle scaled 8mm ;
q := p shifted (0cm,24mm) ;
r := center p .. (12mm,12mm) .. center q ;

pair pr, qr ;

pr := p intersectionpoint r ;
qr := q intersectionpoint r ;

r := r cutbefore pr cutafter qr ;
r := r cutends 0.2mm ;

draw r withpen pencircle scaled 0.2mm withcolor black ;
draw p withpen pencircle scaled 0.2mm withcolor black ; fill p withcolor white;
draw q withpen pencircle scaled 0.2mm withcolor black ; fill q withcolor black;
\stopMPpage



However, I don't seem to be able to find the answers to the next questions:

a) I need to be able to stack four of these on top of each other and
then four mirrored ones next to them (all-in-all a 2 x 4 grid/block),
and probably a 1-block space between the two columns. I realize I can
do that with shift, but should I make my single 'building block' a
group, a buffer or overlay or something else? Keeping in mind that I
will have to be able to draw a path/arrow on top, so I need to know
where they are.
(At some point I need to expand to more columns, but the number of
rows is still 4 as we have humans have just four aligned fingers per
hand - thumbs aren't counted - but one can add hands i.e. people to
work wider braids.)


b) The circles p and q can be filled with the same colour or two
different colours, and each of the blocks in a pattern can have
different fill colour (e.g. two totally black, two totally white, two
half-and-half with either black or white on top). The pen/outline
colour should stay as black, which means that I can't implement the
symbol example in the Metafun manual (the smiley that is totally
switched from black to red).
I don't mind having different blocks for monocoloured and bicoloured
versions, but it would be nice to be able to say something like
\usesloop[lh,blue] for 'take a single-coloured left-hand loop in blue'
instead of having to dig deeper into the MP code every time.

I assume the answer is use variables, but how?



I used millimeters here because it just feels more natural to me,
that's what textile crafts does (when not based on inches like
quilting and scrapbooking...). The measurements won't be shown
anywhere - these are graphs or pictograms, not real pictures - so I
can still switch to using something else. Besides, if the building
block approach works, there isn't that much to be changed, get the
first block right and the rest can be calculated from there.



Any ideas on how I can achieve the ease that surely exists somewhere there?
I'll take plain Metapost or a combination of Metapost and Metafun +
ConTeXt as I'll use ConTeXt anyway to achieve multi-format output with
a minimum of fuss.



Help thankfully received, as always,

Mari



PS. Today's craft related metaphor: I feel just like I was staring at
a messed up skein of yarn: I know  that I'm now holding one of the
ends, I thus can start to untangle the knot - and the more I pry
loose, the less there's left to sort out. However, in the beginning
the process tends to be very slow and awkward...
___
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] lucida ot

2012-04-21 Thread Mari Voipio
On Sat, Apr 21, 2012 at 12:36, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 \definetypeface[lucidablackletter][rm][specserif][Lucida Blackletter OT]

 \setupbodyfont[lucidaot]

 \starttext
 Lucida Bright {\lucidablackletter Lucida Blackletter} Lucida Bright
 \stoptext


...and of course it works... :-)


Thanks a million,

Mari
___
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] lucida ot

2012-04-20 Thread Mari Voipio
On Wed, Apr 18, 2012 at 14:37, Mari Voipio mari.voi...@iki.fi wrote:
 Now I can at least get started, and figure out about the Blackletter a
 bit later

 It turns out that I need it rather sooner than later

ARGH, I give up!

ConTeXt finds the Lucida Blackletter OT font on my system (Mac OS X), because:

mtxrun --script fonts --list --all --pattern=Lucida*

says (among others)

lucidablackletterot lucidablackletterot
 /Users/Mari/Library/Fonts/LucidaBlackletterOT.otf
lucidablackletterotnormal   lucidablackletterot
 /Users/Mari/Library/Fonts/LucidaBlackletterOT.otf
lucidablackletterotregular  lucidablackletterot
 /Users/Mari/Library/Fonts/LucidaBlackletterOT.otf



But whatever versions of font synonyms and typescripts and all other
commands I try, I always get something like
 typescripts  unknown: library 'blackletter

I'm sure I'm missing something really elementary here, but what?

This is one of my more recent attempts at calling for the font:

\starttypescript [rm] [blackletter]
  \definefontsynonym [Serif]  [file:LucidaBlackletterOT.otf]
\stoptypescript

\definetypeface [blackletter]   [rm][serif] [blackletter]

\setupbodyfont[blackletter]



Any ideas of what I'm doing wrong?


TIA,

Mari
___
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] lucida ot

2012-04-18 Thread Mari Voipio
Hello,

more font dummy questions about using Lucida OT...


On Fri, Apr 13, 2012 at 21:06, Mari Voipio mari.voi...@iki.fi wrote:
 Now I can at least get started, and figure out about the Blackletter a
 bit later

It turns out that I need it rather sooner than later as it is used in
my source of inspiration. But I just can't figure out how to use it!
(Otherwise this is good news because gothic hand is my least bad
calligraphy font, so the handwritten copy of the book might be
somewhat representable, although I trust ConTeXt to make the nicely
typeset versions.)


I know that I've managed to use a Gothic or Fraktur font once upon a
time (long, long ago in texexec), but don't have a clue how. The font
chapter of the manual mentions macros \goth and \frak, can they be
used somehow? I'd call the Lucida Blackletter Gothic, but I'm not
picky...

The file is called LucidaBlackletterOT.otf and the font name (I
assume) is Lucida Blackletter OT - and there's only a Regular
available (which is correct as the Gothic lettering should always
stand straight, without any slant). All the other fonts in the family
work, I just need to find out how to load the Blackletter for one
product in my project.



Thanks in advance,

Mari
___
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] Project structure, (simple)font woes

2012-04-17 Thread Mari Voipio
On Mon, Apr 16, 2012 at 14:19, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 You load the simplefonts module but you don’t use it, instead you try to 
 define a typescript the old.

See, I *was* being stupid. Now it works perfectly. And I found all the
additional info I'll need now in the new Font manual/chapter, book
page 34-35. Just hadn't thought to look for it...


Thank you!


Mari
___
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] Project structure, (simple)font woes

2012-04-16 Thread Mari Voipio
Hello all,

I'm trying to teach myself to use the project structure. After a few
rounds of trial and error (...and stupid naming schemes...) I'm almost
there, but got stuck at my font setups.


If I do this as a single file, it works fine (Win7 and newest ConTeXt,
updated it this morning):

% FONT related setups
\usemodule[simplefonts] % to get access to Calibri  Cambria, win ttf fonts

\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]

% end of font setups


\starttext
\input knuth
\stoptext




However, if I make a really simple project structure and try to put
the above in an environment file, compiling fails. What am I missing
here?


proj-test.tex:

\startproject proj-test
\environment env-fonts-simplefonts
\product prd-test1
\stopproject


prd-test1.tex:

\startproduct prd-test1
\project proj-test
\input knuth
\stopproduct



env-fonts-simplefonts:


\startenvironment env-fonts-simplefonts
% FONT related setups
\usemodule[simplefonts] % to get access to Calibri  Cambria, win ttf fonts

\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]

% end of font setups


\stopenvironment



If I look at proj-test.log (the whole thing attached), I think the
problem is here:

loading  ConTeXt User Module / Simplefonts
+ 
C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
fontsdefining  font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fontsdefining  unknown font LMMathRoman-Regular, loading aborted
fontsdefining  unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--3]
fontsdefining  font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fontsdefining  unknown font LMMathRoman-Regular, loading aborted
fontsdefining  unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--2]
fontsdefining  font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fontsdefining  unknown font LMMathRoman-Regular, loading aborted
fontsdefining  unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--1]


But why? What is it I should do differently? ...I wouldn't even need
any math fonts...


Regards,

Mari


prd-test1.log
Description: Binary data


proj-test.log
Description: Binary data


prd-test1.tex
Description: TeX document


proj-test.tex
Description: TeX document


env-fonts-simplefonts.tex
Description: TeX document


test_simplefonts_Manuals.tex
Description: TeX document


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] ConTeXt User Meeting / EuroTeX 2012?

2012-04-13 Thread Mari Voipio
Hello!

I know I shouldn't be asking until after BachoTeX, but unfortunately
my calendar for autumn is starting to fill up and there are things
that should be settled pretty soon. (And I can't go to BachoTeX to
sort things out there.)

The page http://meeting.contextgarden.net/2012/ says that 6CM will be
held in The Netherlands in connection with EuroTeX on October 8-12.
The page also says that the arrangers can be contacted at
euro...@ntg.nl, but that address bounces so I had to resort to the
list.

Are the dates and the place correct and so settled that I can rely on
them while planning the autumn program (both work and otherwise)? And
whom should I contact about the conference program and such things?
I've got a few suggestions for them...


nitpicking
The page title for  http://meeting.contextgarden.net/2012/ is
ConTeXt User Meeting 2009. This is mildly annoying as that is the
text that Firefox shows as tab name and I always go oops, wrong page
even though it isn't. Could somebody change that year to 2012, please?
/nitpicking


Thanks,
Mari
___
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] lucida ot

2012-04-13 Thread Mari Voipio
On Sat, Apr 7, 2012 at 00:25, Hans Hagen pra...@wxs.nl wrote:

 Just copy the *.otf files to for instance a directory
  yourtexroot/tex/texmf-fonts/fonts/opentype/data/lucidaot

 and then run
  mtxrun --generate

 after that
  \setupbodyfont[lucidaot]
 should work.

It does! I had a prolonged fight with my Mac about using an up-to-date
version of ConTeXt, but once I got that far, the rest wasn't that bad.

So the next for dummies question is:

If I do \ss or 'sans' in setupbodyfont, I get Lucida Sans - but how do
I access Blackletter, Calligraphy and Handwriting?

A quick excursion into \cg and \hw didn't work out, I think I'm
missing something here...


I'd have a real use for all of the three like about right now,
recreating something from 15th and 17th century with 21st century
technology, with output in both period style and in various more
modern forms - ConTeXt should be the perfect tool for the job, if I
can learn enough to make it work :-)



Thank you,

Mari
___
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] lucida ot

2012-04-13 Thread Mari Voipio
On Fri, Apr 13, 2012 at 20:40, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 I attached a modified version of the typescript file where I added 
 calligraphic and handwriting,

That was quick! And working, of course. :-)

Not sure I like the word spacing of the handwriting font and the
kerning on the calligraphy version, but that's why we have ConTeXt,
for a bit of tweaking.
Now I can at least get started, and figure out about the Blackletter a
bit later - especially as it probably isn't appropriate style for this
project anyway, wrong time and place (and probably least legible of
these, too).


Thank you!

Mari
___
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] lucida ot

2012-04-06 Thread Mari Voipio
Hello!

On Fri, Mar 16, 2012 at 22:50, Hans Hagen pra...@wxs.nl wrote:
 It's now possible to order the new lucida open type (+math) fonts.

If I ask nicely, could somebody who understands these things update
the following wiki page accordingly?

http://wiki.contextgarden.net/Lucida


(I think my problem is that I can't figure out how to update the
TeXShop combo on my Mac. But it is also possible I'm being a clueless
idiot, so I'd really appreciate some extra hints.)


Giving up for tonight,

Mari
___
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] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-04-04 Thread Mari Voipio
On Wed, Mar 28, 2012 at 15:33, Jan Heinen jahei...@gmx.de wrote:
 It's not perfekt jet - but it helps to get more information to each command
 and to integrate the wiki and the mailinglist.
 What do you think about this and could it be improved?

I really like it!

However, having just used it to trawl through everything looking for
a solution (...didn't find it yet...), I do have a little wish
concerning the mailing list part - could it be possible to easily sort
the results by date or even filter them?

Because of the fast pace ConTeXt develops in and because the mailing
list existed when MkIV wasn't there yet, I've learned to skim through
the newest messages first and then going backwards if it seems
needful. Being able to sort the search results newest first or show
only the last three years would make my life easier.


But in general this is already a great improvement, thank you!


Mari
___
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 changing/random graphics?

2012-02-22 Thread Mari Voipio
On Thu, Feb 16, 2012 at 11:50, Hans Hagen pra...@wxs.nl wrote:
 On 16-2-2012 07:43, Mari Voipio wrote:

 I'm trying to do something that should be possible and I think
 variables is the answer, I just can't figure out how.


 attached .. (will be in test suite)

It works. :-)
However, this one apparently uses each pic only once and after that I
just get dummies. Nesting this \dorecurse didn't work (not that I
expected it to, but had to try anyway) - how to tell this code either
when you've used up all the photos, start over or add any random
graphic in this directory?

It looks like I'm going to have 50-100 pages, so if there are 10-15
graphics and they are added completely at random, the likelihood of
each one to appear at least once is pretty high (at least according to
what I remember of my probability math). Thus I won't need any
complicated checkups, any old randomizer in the take a card out of a
bag and put it bag sense should do the trick; I'm just not used to
doing this type of stuff, so I cannot even fathom where to start!


Hmm... I'd like to include besides png and jpg also vector graphics in
pdf format, but obviously I need to exclude any pdf documents in the
same directory. Of course one solution is to put the graphics into a
separate directory, but if I only want to included .png, .jpg and .pdf
with a certain name (like 33s-sensor.jpg, 33s-cutthrough.pdf, etc.),
how should the lua code then look like? The name can be written into
the code, as long as I put decent comments in, I should be able to
adjust it as needed.

(File size shouldn't be a concern, the graphics are going to be 2-2.5
cm tall and once I've collected the appropriate graphics, I'll make
sure the bitmaps are fit for this use. Besides, I'll be using a print
shop and they get a lot worse than anything I can produce with
ConTeXt...)



In a need-to-know mode,

Mari
___
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] Dynamic content on layers - wiki example not working

2012-02-21 Thread Mari Voipio
Hello!

I'm trying to place dynamic content on a layer and now it turns out
that while getting a different pic every time is easy, getting the
layers redrawn wasn't that simple. The wiki has this code:

\definelayer
  [pagenumber]
  [width=\paperwidth,
   height=\paperheight,
   preset=middle,
   state=repeat]

\setlayer[pagenumber]{Page \pagenumber}

\setupbackgrounds[page][background=pagenumber]

\starttext
\dorecurse{4}{\page[empty]}
\stoptext



AFAIK, that should be a complete  minimal sample. Unfortunately it
doesn't seem to work, at least my ConTeXt MkIV of February 8 only
gives Page 1 on every one of those 4 pages...


How to fix this? Preferably on the Dummies level, I'd prefer not to
see the bowels of my ConTeXt, if I can avoid it.



Thanks,

Mari
___
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] Dynamic content on layers - wiki example not working

2012-02-21 Thread Mari Voipio
On Tue, Feb 21, 2012 at 13:06, Marco net...@lavabit.com wrote:
 This is an example of how it's *not* going to work:

Doh! Either I can't read or I can't copy Sorry for the waste of bandwidth!
The correct example works fine - however, I tried something similar in
my file and it didn't work; but there are so many things that can have
gone wrong as my understanding of layers in ConTeXt is still pretty
shaky. (I understand layers as concept as I've done my share of vector
drawing, I just can't translate that knowledge into ConTeXt, at least
not yet.)
Which is why I needed to backtrack a bit and start from something
simple that works.


I added comments to the examples on the wiki so the next person doing
a careless copy-paste won't fall into the same pit. :-D


Slightly red-eared,

Mari
___
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] Dynamic content on layers - wiki example not working

2012-02-21 Thread Mari Voipio
On Tue, Feb 21, 2012 at 13:53, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Here is a slightly different version which is better when you need more 
 dynamic layers.

Hey, I can get it to work. Will take more than a bit of effort to
understanding it, but at least I got it wikified (hopefully correctly)
so I can find it later...
(http://wiki.contextgarden.net/Layers#Use_dynamic_content)


Thank you,

Mari
___
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 changing/random graphics?

2012-02-21 Thread Mari Voipio
On Thu, Feb 16, 2012 at 11:53, Marco net...@lavabit.com wrote:
 On 2012-02-16 Mari Voipio mari.voi...@iki.fi wrote:

 So, if I have

 photo1.jpg
 photo2.jpg
 photo3.jpg
 photo4.jpg

 and \dorecurse{10}{insert random photo here}, how do I do it?

 \dorecurse{4}{\externalfigure[photo\recurselevel]}

 Beware, \recurselevel  counts go  like this  1 2 3 4 5 ….  If your
 photos are not numbered according to this scheme, the 10th picture
 will bite you.

Beautiful, it works - and I even understand it. :-) And I managed to
figure out by myself that I can do a nested \dorecurse to multiply
this:

\dorecurse{3}{\dorecurse{6}{\externalfigure[pikkukuva\recurselevel][height=25mm,frame=on]}}


My not be the most elegant (or fastest compiling!) solution, but this
one I can definitely get to work and it'll suit my purpose well
enough.


Thank you,

Mari
___
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 changing/random graphics?

2012-02-15 Thread Mari Voipio
Hello all,

I'm trying to do something that should be possible and I think
variables is the answer, I just can't figure out how.

I have a pile of photos (jpg) in a directory and the assumption is
that they are all the same size and there's a spot for the photo on a
layer at the top of the page. I already found out how I can get
ConTeXt to draw the layer separately for each page (at
http://wiki.contextgarden.net/layers#Use_dynamic_content), but I think
I need a variables for dummies page...

This time I'm not too picky, the images can be used randomly or in the
order they are in the directory and then cycled, I'd just like to use
more than one (and I'm so not doing every page by hand).


So, if I have

photo1.jpg
photo2.jpg
photo3.jpg
photo4.jpg


and \dorecurse{10}{insert random photo here}, how do I do it?


Thank you,

Mari
___
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’s your favorite command?

2012-01-31 Thread Mari Voipio
I'm with Mikael in that natural tables is one of the things that has
made a real difference to my ConTeXting, and I no longer hesitate with
adding tables to the my documents.

My current favourite is probably \usemodule, especially
\usemodule[simplefonts]. Being a Windows dummy and working mostly in a
standard (M$) Office environment, the Simplefonts module has taken a
lot of sweat out of coding.

In my non-working life as a half-professional craftster and budding
publisher I'm learning to enjoy playing around with \setuplayout; the
learning curve is sometimes pretty steep, but it still beats fiddling
with Word because once you get something right, it stays right. :-)


Mari
___
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] new beta

2012-01-17 Thread Mari Voipio
On Mon, Jan 16, 2012 at 19:47, Hans Hagen pra...@wxs.nl wrote:
 I uploaded a new beta. This time a couple of fixes + some reorganization of
 font related code. More to follow.

There's something fishy somewhere in the fonts or the simplefonts
module, because a file that worked last week now gets

.
c:/windows/fonts/arial.ttfc:/windows/fonts/ariali.ttfC:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf
!LuaTeX error (file
C:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf):
Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!




It's a complicated history with layers and stuff and I couldn't
straight out isolate the cause of the problem, but I've never seen
this CFF DICT complaint before. :-)



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