Good Friday there,
working on a book with many too long sentences, I got the following
idea/question:
Is it possible to recognize the length of a sentence, and to let context
show in the pdf, if there is a too long sentence.
For example I am thinking of an command like
Which text editor can do that, find too long sentences?
Huseyin
Am 15.02.2013 13:55, schrieb ntg-context-requ...@ntg.nl:
This sounds more like a job for the text editor. Many text editors
already know what a sentence is. That means it's as easy as looping
over all sentences and counting the
Thanks Aditja, now I have the output:
adobegaramondpro agaramondprobold
-Bold.otf
adobegaramondprobold agaramondprobold
-Bold.otf
adobegaramondproitalicagaramondprobolditalic
-BoldItalic.otf
adobegaramondpronormalagaramondproitalic
-Italic.otf
adobegaramondproregular
Ok, not everything works fine, now everything is bold. So ConTeXt cant
recognize the different versions (normal, bold, italic) from adobe
garamond pro correctly. But I use them without simplefonts, then it
works. Why it is so hard for hard to recognize them correctly, I saw
that for other
Hi there,
did I formulate it unclear, can I describe my problem in a better way? I
would be thankful for hints, because I would like it very much to use
Adobe Garamond with ConTeXt, like it is very easy to use it in WinWord,
or Corel Draw, or many other programs I use. Obviously a minimal
The list is:
ebgaramondebgaramond08regular
mond08-Regular.otf
ebgaramond08regular ebgaramond08regular
mond08-Regular.otf
ebgaramond08regularsmallcaps ebgaramond08sc
mond08-SC.otf
ebgaramond08scebgaramond08sc
mond08-SC.otf
With
mtxrun --script font --list --all adobegaramond*
the List is empty! No line is prompt. But the name is really Adobe
Garamond Pro in the Fonts-Order in Windows, I checked it again.
Huseyin
___
If your
Hi there,
after each chapter I begin with a section. So in the table of content
every chapter has the same page-number as the section, which comes
directly after the chapter-title (so no text is between them).
In the TOC it is not necessary to have
Chapter 1 ... 7
Section 1
Hi there,
I wanted to use Adobe Garamond Pro by:
\usemodule [simplefonts][size=10.5pt]
\setmainfont[name:Adobe Garamond Pro][expansion=quality,protrusion=quality]
\setupalign [hanging]
But it fails by the following error:
+
fonts bodyfont 10.5pt is defined (can better be
Hi there,
for images I use:
\startplacefigure [title=desciption, reference=fig:demo, number=no]
\externalfigure[example][width=13cm]
\stopplacefigure
But how to reference to the image, if it is in another folger. Say my
context mainfile is in ...\projekt and the images are in
Using
\startplacefigure [title=blub, reference=fig:demo, number=no]
\externalfigure[example][width=11.2cm]
\stopplacefigure
how can I set the Title of the image over the image, instead of under
the image (that is default) ?
Thanks
Huseyin
Works, Thanks Marco!
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage :
Hi there,
how to deactivate numbering for the following (empty) picture?
\placefigure[here][fig:demo]{My description under the picture.}{}
Thanks,
Huseyin
P.S.: I know that for multi-line code my email-client seems to format
the code with many spaces, how to control that, I am using Mozilla
Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl:
\startplacefigure [title=My description, reference=fig:demo, number=no]
?
\stopplacefigure
Thanks Marco, and how to align the title at the center under the
picture? (Now it is flushright)
Thanks
Huseyin
Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl:
\startplacefigure [title=My description, reference=fig:demo, number=no]
?
\stopplacefigure
Thanks Marco, and how to align the title at the center under the
picture? (Now it is flushright)
Thanks
Huseyin
Hi there,
to precize my question about the page-edges a few days ago, I know now
what the perfect solution for me would be:
1. Is it possible, that context prints on every page an frame/box, which
has excactly X mm distance to each of the four borders, no matter how I
change the papersize?
Hi Wolfgang, thank you.
Am 31.01.2013 17:48, schrieb ntg-context-requ...@ntg.nl:
\setupbackgrounds[page][frame=on,frameoffset=10mm]
\setuppapersize[A4][A3]
\setuplayout[location=middle]
\starttext
\input knuth
\stoptext
This does not work in my setting. I integrated you code in my setting,
Hi together,
I use \completecontent for the TOC. How to deactivate the printing of
the pagenumbers on TOC-pages? But they should be counted invisibely, so
that the first text-page begins with the real page number.
Best Regards
Huseyin
Hi there,
I am usually using Din A5 with
\definepapersize[MyBook][A5]
\setuppapersize[MyBook][A5]
How to add 3mm cut space (extra space) on all four edges?
Thank you.
Huseyin
___
If your question is of interest
Am 22.01.2013 13:13, schrieb Hans Hagen:
On 1/22/2013 8:40 AM, H. Özoguz wrote:
Thanks. I am not sure, what you mean. Until now everything worked fine,
context has to read only the Unicode (like Lam-Alif is) and to use the
set arabic font.
Until today that worked perfectly, with Lam-Alif, too
I uploaded a new beta to the website. Btw, you can best test this kind
of stuff with:
\usemodule[fnt-20]
\starttext
\setvariables
[otftracker]
[direction=-1,
sample=لا,
title=Test,
% font=file:arabtype,
font=file:scheherazaderegot,
features=arabic]
\stoptext
As it shows
Hi there,
today I have the following issue:
In Arabic there is a character called Lam-Alif, it is a composition of
Lam and Alif, which is displayed usually in another way, than just
writing Lam and Alif after each other in the usual way.
See here:
???
I don't know ... if the old version has it too then nothing changed I
guess.
\usemodule[fnt-20]
\starttext
\setvariables
[otftracker]
[direction=-1,
sample=لا,
title=Test,
font=file:arabtype,
%font=file:husayni,
%font=file:scheherazaderegot,
features=arabic]
Am 17.01.2013 02:36, schrieb ntg-context-requ...@ntg.nl:
You should provide a working minimal example.
The errors message tells me there is a problem with \setupindenting (or the
?indenting? setting) of your bigquote environment.
Wolfgang
And here it is:
% ConTeXt LuaTeX
Hello,
if I have an chapter-title with
\chapter{A chapter with \par a break}
then this break is also in the table of contents. How to prevent this?
Thanks
Huseyin
___
If your question is of interest to others as
Am 17.01.2013 13:13, schrieb ntg-context-requ...@ntg.nl:
There is no error message when I run this example.
Sorry, that was my mistake, I meant this one:
++
\usemodule[annotation]
\define[2]\AnnotationCommand
{\startblockquote
\noindent #2%
Hi there,
one simple question again:
I have
\chapter{Blub}... \section{Blub} \section{...} \section{}
and so the chapter title is in the table of content (TOC) above the next
section-titles.
I want to prevent a page-break in the TOC between the chapter-title and
the next section-titles,
Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:
\setuphead[section,subsection,?][grid=no]
or
\setuphead[grid=no]
Seems that context ignores grid=no, and the global grid=yes in
setuplayout dominates all.
Is there another way to deactivate grid-setting or force an definite
number of
Hi there,
I am working on a book, and today compiling fails with the following error:
++
! Missing number, treated as zero.
system tex error on line 52 in file kap03.tex: Missing number,
treated as zero ...
(paragraph from the book)
to be read again
n
Hi there,
I am setting with grids. Can I control the empty lines between a
section-titel and a subsection-title?
\section{Blabla}
\subsection{Blup}
I want to have exactly x empty lines between them (zero should be
allowed for x, too), how to force that?
Best Regards
Hi there,
I am setting with grids. Now in classical typographie not all
text-elements have to be grid-setted, f.e. titles not.
How to deactivate gridsetting for titles? This is relevant, because
titles and the distances between a title and the before and the after
text ist very important
Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:
\setuphed[section][after={\blank[NUMBER*line]}]
or
\setuphead[section][after={\blank[nowhite]}]
Wolfgang
Hi Wolfgang,
that does not work here.
My minexample is:
\setuplayout[grid=yes]
\showgrid
Hi together and happy new year,
with \crlf one can force a empty line.
But this empty line should not be printed, if it is on the top/start of
a new page, so a new page should not begin with an empty line. Which is
the correct command for that?
Regards,
Huseyin
Am 18.12.2012 11:17, schrieb ntg-context-requ...@ntg.nl:
Usage:
\usemodule[wordsperline]
\starttext
\startlinestats
\dorecurse{42}{%
\input knuth\par
\input ward\par
\input tufte\par
\input zapf\par
}
I am setting with grid-set, and I am wondering, if there is a
possibility to count the number of words in the lines (not for each
single line, but in average over all lines). That would be helpful to
get a perfectly readably book (words per row is one of these
readability-measures). That tool
Is there any possibility to get the plaintext out of my context-file?
F.e. in programms like Indesign or Word that is trivial, so is there any
tool, which deletes all commands and just leave the plain content?
Thanks
Huseyin
Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:
\definepagebreak
[mychapterpagebreak]
% [yes,header,right]
%[yes,header,left]
[yes,header,footer,right]
\setuphead
[chapter]
[page=mychapterpagebreak]
%[page=Mychapterpagebreak,header=empty,footer=empty]
How to define a new title - like section, but aligned in the center and
underlined?
So far I got:
\definehead[mysection][section]
\setuphead[mysection][alternative=middle]
How to get the underlining in that?
Thanks!
Huseyin
Hi,
Im using Wolfgangs annotation module and have defined an annotation:
\defineannotation[bigquote]
with some setups.
Now \bigquote{...} works correctly. But I want for big annotations
\startbigquote \stopbigquote, how to do that? I tried it with
\definestartstop, but failed.
Thanks
Am 30.11.2012 13:52, schrieb ntg-context-requ...@ntg.nl:
First: Create a minimal running example. Then we can just mark the
code in the email, press a button and have the PDF opened. You'll
more likely get responses if you make it as easy as possible to deal
with your problem.
This works here:
Hi,
in the following example I use \setbreakpoints[compound], I understood,
that word-breaking would be made (or preferred) at hyphens.
There could be a perfect line break at the hyphen of -CC, but there is
no break, and instead the complete word AA-BB-CC is printed, then
partially in the
Hi there,
there are some possibilities for getting empty pages in a book, f.e. if
a new chapter begins (and by settings it may only begin on pages with
odd pagenumber).
In these cases I want the page-number and the headers to disappear on
the empty page, it should be totally empty, if no
How to allow line break in headers, to achieve not margined header-texts?
\setupheadertexts
[] [{\getmarking[section]}]
[][]
\starttext
\section{This is a very long section title, and so, clearly, it does not
fit in one line, definitely not, absolutely no change. Without line
Am 27.11.2012 10:36, schrieb ntg-context-requ...@ntg.nl:
A better solution is to provide a shorter text with the ?marking? key from
\startsection.
Thanks Wolfgang and Luigi, I did not know that, that is of course the
easiest and best solution!
Hi there,
today many questions :)
Look at this:
\starttext
\completecontent
\section[
title={A very long title\par with a formatting in it}
]
\stoptext
I have a case, where I want to have a line-break (\par) in the title in
the text (to avoid hyphenation) - but not in the index of
Am 27.11.2012 18:37, schrieb ntg-context-requ...@ntg.nl:
blue: natural width is larger than hsize
green: natural width is smaller than hsize
magenta: natural width is smaller than hsize (raggedright)
cyan: natural width is smaller than hsize (raggedleft)
yellow: natural width is smaller than
Am 27.11.2012 22:39, schrieb ntg-context-requ...@ntg.nl:
(just run your docs with \setupalign[verytolerant,stretch] and you're
okay in most cases)
That is not possible, because I want to have very nice word-distances,
and I want the margin-runs to be there, to correct them myselve
manually. So
Hi there,
because I use gridsetting and mixed arabic and latin words together, I
have to use \placeongrid{} or \startlinecorrection\stoplinecorrection to
achieve gridsetting.
Now this probelm arised: In these environments footnotes disappear, they
are simply not printed, but the
Am 26.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:
Add \automigrateinserts to your document (before \starttext).
Wolfgang
Thanks! Just curious about that: Why not integrate this into these
environments by default?
Huseyin
I use
\definefontfeature[default][default][expansion=quality,protrusion=quality]
\setupalign[hz,hanging]
\usetypescript[times]
\setupbodyfont[times,11pt]
\setuptolerance[verystrict]
Is there a command or a macro to find all occurences in a file (or
projekt), where some word is printed
Am 26.11.2012 18:01, schrieb ntg-context-requ...@ntg.nl:
Is there a command or a macro to find all occurences in a file (or projekt),
where some word is printed into the margin? (Maybe because of bad
hyphenation or something else.) - Would be perfect for manual check-up and
corrections!
I use \completecontent - in German the title is printed as Inhalt, how
to change that? (f.e.: to Inhaltsverzeichnis)
Thanks
Huseyin
___
If your question is of interest to others as well, please add an entry to the
Am 23.11.2012 15:17, schrieb ntg-context-requ...@ntg.nl:
The table*is* the workaround ;P As long as you don?t mind being
limited to columns on one page, the tabulate syntax and the
restrictions on the input order, you?ll definitely be fine.
The additional code was supposed to show how to
Am 21.11.2012 23:41, schrieb ntg-context-requ...@ntg.nl:
What you are looking for is text streams. They are not yet fully
functional in mkiv. But as long as you need the streams to appear
as columns on the same page, as seems to be the case, there is a
cheap workaround using the*tabulate*
Am 21.11.2012 13:01, schrieb Hans Hagen:
On 11/20/2012 3:22 PM, H. Özoguz wrote:
Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:
It?s a problem with \blank which ignore the ?samepage? keyword in grid
mode.
When you process this example in normal mode ?line 40? is moved to the
second
Am 21.11.2012 14:40, schrieb Hans Hagen:
adding before={\testpage[5]\blank} or so
Thanks Hans, thats quite useful for me (for other purposes, too).
___
If your question is of interest to others as well, please add
Hello,
many books I layout have arabic words or complete paragraphs in it -
where the main language is german. For example there is a book, which is
completely in arabic with german translation.
My present method to write in Arabic is, for sure, not the best, f.e. I
have problems with
Sorry, I did not get you. I was asking about Context, not Latex?!
m 19.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:
see
http://projekte.dante.de/DanteFAQ/GrosseDokumente
if you are familiar with german.
Suppose you have a 1500 pages document, but you really
work only on the 7th chapter
Hi there,
how to define commands, which are simply short-cuts for some terms?
My attempt produces typographical mistakes:
%%
\def\testcmd{%
Testcommand%
}
\def\testcmdtwo{%
Testcommandtwo
}
\starttext
This is a \testcmd. Everything ok.
This \testcmd has no space after,
Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:
It?s a problem with \blank which ignore the ?samepage? keyword in grid mode.
When you process this example in normal mode ?line 40? is moved to the second
page but in grid mode it stays on the first page.
Is theat easy to fix or a
Am 20.11.2012 22:41, schrieb ntg-context-requ...@ntg.nl:
I've never used TeXworks, so I would appreciate it if you could check it.
Cheers,
Sietse
Perfect, thank you!
Huseyin
___
If your question is of interest to
Am 20.11.2012 16:02, schrieb ntg-context-requ...@ntg.nl:
There is also, the not to be advertised command:), \autoinsertnextspace.
Aditya
Thansk for this one!
Huseyin
___
If your question is of interest to others
Am 21.11.2012 08:50, schrieb ntg-context-requ...@ntg.nl:
Message: 1
Date: Tue, 20 Nov 2012 14:28:11 -0600
From: Adam Khanloyalc...@gmail.com
To:ntg-context@ntg.nl
Subject: [NTG-context] Indented footnotes in ConTeXt
Message-ID:
Is there an equivalent of the LaTeX \includeonly ? - I'm working on
books (nearly only on books), so such a command would speed up my work.
Huseyin
___
If your question is of interest to others as well, please add
\startproduct mydocument
\component one
\component two
\component three
\component four
\stopproduct
Wolfgang
I always use \input for the chapters of books - what is the difference to
component? I looked into the wiki, but didn't get the difference.
Huseyin
Am 19.11.2012 23:23, schrieb ntg-context-requ...@ntg.nl:
feel free to update ...
(wondering: does mtxrun --script texworks --start works ok?)
Hans
No, it does not.
Huseyin
___
If your question is of interest to
Am 16.11.2012 18:31, schrieb ntg-context-requ...@ntg.nl:
So which paths I have to add to get the standalone version working with
texworks?
Have you tried the procedure
inhttp://wiki.contextgarden.net/Setting_up_TeXworks ?
Michael
Thank you. Yes, now I did. And this is the result:
mtxrun
Am 18.11.2012 12:54, schrieb Hans Hagen:
Thank you. Yes, now I did. And this is the result:
mtxrun | kpse fallback with progname 'context' initialized in
0.078 seconds
This is the only line in the editor after compiling.
And mtxrun --generate did not help. What does that error means?
Am 18.11.2012 12:54, schrieb Hans Hagen:
are you runing the stand alone distribution? if so, just adding
root/tex/texmf-platform/bin to the binary path should work ok
Hans
I do not know what the mistake was. But after several tries, now it works!
Now I have finally installed the ConTeXt standalone version.
To try Wolfgangs module
annotation
I installed it with:
first-setup --modules=annotation
and it seemed to work. But if I try then
\usemodule[annotation]
\defineannotation[inlinequote][alternative=quotation]
\starttext
test
After installing the standalone version (was quite hard for me with
TexWorks), now several problems arises. The simplest document
\starttext
Test
\stoptest
compiles without problems. But my book gives now several errors. F.e.:
+
Am 18.11.2012 14:45, schrieb ntg-context-requ...@ntg.nl:
You process your document with MkIV (texexec filename or context --pdftex
filename) but your document requires MkIV (context filename) because you use the
command \definehightlight which is only available with MkIV.
Wolfgang
Thanks.
(Sorry, wrong email title)
Am 18.11.2012 14:45, schrieb ntg-context-requ...@ntg.nl:
You process your document with MkIV (texexec filename or context
--pdftex filename) but your document requires MkIV (context
filename) because you use the command \definehightlight which is
only available with
Hi there,
Im happy to have found the correct parameters for Texworks and MarkVI
(and Standalone Context) after hours, wtih the kindly help of Hans and
SciTE. They are:
Programm: mtxrun
Parameters: --script context --synctec $fullname
Perhaps it would be useful to add this into the wiki,
Am 15.11.2012 20:32, schrieb ntg-context-requ...@ntg.nl:
Take a look at the attachment for a example which use the latest version of the
annotation module (a module to create customized commands/environments).
Wolfgang
-- next part --
A non-text attachment was
How to permit the section-title to be set alone on the page-buttom?
I do not want to start always a new page with \section, but in the
cases, where the title is set alone on the page, it should start a new
page before \section.
Huseyin
Am 18.11.2012 21:58, schrieb ntg-context-requ...@ntg.nl:
When you uncomment the \setuphead setting in the following example context
won?t move the heading
to the next page with the text after it, the important thing to achieve this is
the ?preference? keyword in
\blank which permits the page
Am 15.11.2012 20:32, schrieb ntg-context-requ...@ntg.nl:
2012-11-15 H. ?zoguz:
\setuptolerance[stretch]
Are you sure, you want to use stretch? It will probably product
ugly results.
\tolerance 70
Why 70? I don't understand the use of stretch with such a strict
tolerance. What about using
Am 15.11.2012 20:32, schrieb ntg-context-requ...@ntg.nl:
Am 13.11.2012 um 07:50 schrieb H. ?zoguzh.oezo...@mmnetz.de:
Am 13.11.2012 07:46, schriebntg-context-requ...@ntg.nl:
\definehighlight
[emph]
[style=bolditalic]
Quote: \quotation{He said: \quote{Hello \emph{World!}}}
Marco
I
Hello,
I was using the build-in ConTeXt of Texlive 2012 - till now. Now I
installed the standalone version of ConTeXt (newst version). How to tell
Texworks to switch to the standalone context? With pathes are relevant?
I tried many paths, but I get always
resolvers | resolving | using
I use \startquotation \stopquotation for longer quotations.
I want to globally change the font in this quotations (f.e. to garamond
or helvetica - my default is times new roman). How to make this?
Thanks
Huseyin
Am 14.11.2012 00:49, schrieb ntg-context-requ...@ntg.nl:
\setuplanguage
[leftquotation=?,
rightquotation=?]
\define[1]\quotation
{\italic{\symbol[leftquotation]#1\symbol[rightquotation]}}
\starttext
\quotation{Whatever}
\stoptext
Thank you! And how about the
Hi there,
I always use
\mainlanguage [de]
But still, many breakings and stretches are ugly, because context does
not know how to hyphenate a word. Of course I can add \- to help, but is
there a way to add a bigger list of german words (like DUDEN has) or
something like that, not not have to
Hi there,
at the moment I use for my book
\definepapersize[MyBook][A5]
\setuppapersize[MyBook][A5]
\usemodule [simplefonts][size=11pt]
\setmainfont[Times New Roman][expansion=quality,protrusion=quality]
\setupalign [hanging]
\setuptolerance[stretch]
\tolerance 70
Is it suitable to use
Hello,
I have this code:
%%%
\def\wr[#1]{»#1«}
\def\wrr[#1]{›#1‹}
\starttext
Quote: \wr[He said: \wrr[Hello!] ]
\stoptext
It should print
Quote: »He said: ›Hello!‹ «
but it returns the ending quotation mark in the wrong order. Why? And
how to correct that?
Am 12.11.2012 15:58, schrieb ntg-context-requ...@ntg.nl:
2012-11-12 H. ?zoguz:
but it returns the ending quotation mark in the wrong order. Why?
You forgot the braces:
Quote: \wr[{He said: \wrr[Hello!]}]
And how to correct that?
\setuplanguage
[leftquotation=?,
rightquotation=?,
Am 13.11.2012 07:46, schrieb ntg-context-requ...@ntg.nl:
\definehighlight
[emph]
[style=bolditalic]
Quote: \quotation{He said: \quote{Hello \emph{World!}}}
Marco
I want the complete quotation emphasized- without extra writing \emph.
Huseyin
Hi there,
is there some equivalent to clubpenalty and windowpenalty? (Respecting
grid=yes)
Huseyin
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist :
Danke dir Wolfgang!
Gruß
Huseyin
Hi there,
is there some equivalent to clubpenalty and windowpenalty? (Respecting grid=yes)
\startsetups [grid] [mypenalties]
\setdefaultpenalties
\setpenalties\widowpenalties{3}{1} % 3 == number of lines, 1 ==
penalty between these 3 lines
Hello there,
sind yesterday the pdf-view with synctex had no problems. But today,
without any change (afaik), it does not work anymore. The arguments for
compiling with context.exe are
--synctex
$fullname
That is default. I deleted the .synctex.gz files manually, but it did
not help. What
Hello there,
I am relatively new to ConTeXt, now typing a small book in it. I have a
problem with the register (index). This is an example:
|\definepapersize[MyBook][A6]
\setuppapersize[MyBook][A6] % Prints on paper the size of MyBook
\starttext
\index{A} blub
\index{B} blub
Am 09.11.2012 11:05, schrieb Wolfgang Schuster:
Am 09.11.2012 um 10:19 schrieb Hans Hagen pra...@wxs.nl:
On 11/9/2012 9:08 AM, H. Özoguz wrote:
Hello there,
I am relatively new to ConTeXt, now typing a small book in it. I have a
problem with the register (index). This is an example
201 - 292 of 292 matches
Mail list logo