Do you know cellspacing for HTML-Tables?
How to do something simmilar for TABLE in ConTeXt?
\starttext
\bTABLE
\bTR
\bTD{Text 1}\eTD
\bTD{Text 2}\eTD
\eTR
\eTABLE
\stoptext
--
I am searching since several days now tomorow y need a
solution :-(
I want to rotate two lines with:
\starttext
\bTABLE
\bTR
\bTD{\rotate[rotation=90]{first line\crlf second
line}}\eTD
\eTR
\eTABLE
I am searching since several days now tomorow y need a solution :-(
I want to rotate two lines with:
\starttext
\bTABLE
\bTR
\bTD{\rotate[rotation=90]{first line\crlf second line}}\eTD
\eTR
\eTABLE
\stoptext
but instead of: (rotated 90°)
I want to have a rectangle (box) with a word in it (i.g.
Headline). And all should be rotated 90°.
Below I found a solution I am quite happy with. How can I
get a little bit more padding around the text in the box?
You can copy the example to http://live.contextgarden.net/
- it is running:
Ten years ago I made a book with ConText and some Metapost.
I made a circle and wrote the number into it:
\startuseMPgraphic{Pagenumber}
defaultfont := pxb;
defaultscale := 1.5;
fill fullcircle scaled 36pt withcolor .75white;
numeric i;
string pagex;
i := PageNumber;
pagenum = decimal i;
label(
Hello,
is someone else using the editors kate and kwrite?
Code-highlighting is working.
What I need ist code-folding for ConTeXt. Is this possible?
I have huge makros with lots of \doif ... \else ... \fi
and it is hard to surf through the code.
What else would be nice: auto-indentation ...
I want to create a macro for headlines.
- before the headline there should be a big space
- after it a small space
- when the headline is at the beginning of the page there
shouls be no space before the headline.
A workaround could be this - although it's not very comfortable:
\starttext
It's working. I have put the example into the wiki.
What can be done to say: 26pt before the heading and 13pt
after the heading instead of using \blank ?
\setuphead
[subject]
[before={\blank[2*big]},
after={\blank[big]},
style=bold]
\starttext
\subject{Headline 1}
\stoptext
What’s wrong with the \blank command?
\setuphead
[subject]
[before={\blank[2*big]},
after={\blank[big]},
before={\blank[26pt]},
after={\blank[13pt]}
Nothing wrong - everithing in best order. I didn't know that
it's possible to use sizes with \blank.
I put the information
Ok, I now put the \ctxlua into an other chapter:
http://wiki.contextgarden.net/Calculating_with_dimension_units
Can you say something to the missing points there? Wich
meethod?, \the and Expanding
If you don't know how to edit the context-wiki, please write
your information here in the
Hello,
thanks for the helpfull tipps. Only one wasn't working:
\defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA
+ \ColumnB]==])}}
ColumnABii: \ColumnABii
The result is: ColumnABii: 30mm+ 40mm
And it should be ColumnABii: 70mm
And in the other cases I get back:
Thank you all!!
My book from last year (15.000 lines text + context-code and
1.500 lines macro-code now was compiled without no further
problems!
I only had to change all
\define\variable ...
to
\defineexpandable\variable ...
I think, now I understand a little bit more about ConTeXt
In a book I produced with ConTeXt last year, I did a lot of
calculation to be able to change the layout dynamicaly.
With the actual version of ConTeXt I can't compile the book.
I have tried a lot of things today ... without success.
I hope my minimal-example helps you to understand, what I
Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?
Have a nice weekend ... in Germany sun is shining :-)
Regards
Janis
___
If your question is of interest to others
Does anyone here uses Kile for ConTeXt? On
contextgarden-wiki I read has native ConTeXt support as
well. I installed Kile and as the only thing concerning
ConTeXt II found
Build - Compile - ConTeXt
But no highlighting or autocompletion. Google gave no answer.
Do I have to install an
Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?
define webspace
I have webspace hosted at the german provider (1und1) where
my homepage is running.
It contains php, perl, python, mysqld.
I have access via
- ssh
- ftp
It's NOT a
An example which was working with ConText (version beginning
2012) - and now I get an error:
\define\imagepath {/home/janis/images}
\starttext
\externalfigure[\imagepath/test.jpg]
\stoptext
LuaTeX error [string \directlua ]:1: invalid escape
sequence near '\i'
Without my parameter
The following two commands seem to do the same:
\defineexpandable\...
\def\...
And this two also do the same:
\define\...
\unexpanded\def\...
\def is a low-level-command and shouldn't be used. Right?
Regards
Janis
In last year Context this worked:
\define\imagepath {/home/janis/images}
\externalfigure[\imagepath/test.jpg]
Now this change is necesarry:
\defineexpandble\imagepath {/home/janis/images}
Where do the change come from: Context, Tex or Luatex? Is
there a genereal change which we have to
Hello,
I did my last Context-Project 15 months ago - a small book.
Now I want to write the next book. Do you suggest to update
my Context-installation?
I have installed ConTeXt Standalone (Minimal?)
My versions are:
Contextversion: 2011.11.04 14:15
Contextversion -Number: 20004 14:15
I have installed ConTeXt Standalone (Minimal?)
My versions are:
Contextversion: 2011.11.04 14:15
Contextversion -Number: 20004 14:15 MKIV
Textengine LuaTeX
Textengine-Number: 0.70.1
old
The release notes here seem to be old:
http://wiki.contextgarden.net/Release_Notes
What nice
Hello,
someone, who understood what I want to achieve?
http://www.imagebanana.com/view/shoayek5/onlinebook.jpg
Or more questions?
Regards
Janis
- Copy -
Re: [NTG-context] doublesided PDF - first and last page
singlesided
Jan Heinen
Mon, 16 Apr 2012 04:29:20 -0700
Hello,
some
Hello,
some were guessing, what I want to achieve.
I made a screenshot for you:
http://www.imagebanana.com/view/shoayek5/onlinebook.jpg
It ist the online-version of a printed book. For printing it
was ok to have one bookpage on one sheet of paper.
For the online-version I want to have two
Hello, someone here on a sunday?
I want to have a PDF-screen-version of my booklet:
The book has 8 pages including the coverpages.
The result should look like this: (first and last page NOT
doublesided)
1 first page of the pdf (coverpage)
2 3 second
4 5 third
6 7
I was lucky to get a fast answer - but with your code I
don't get the right result:
-- start your code
\startmode[booklet]
\setuppapersize[A5][A4,landscape]
\setuparranging[2SIDE]
\stopmode
\starttext
First page
\startmode[booklet]
\null \page
\stopmode
etc.
\stoptext
Thomas
-- stop
With
Hello Mari,
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
Hello,
in the wiki I have built links for every command to the
archiv of the ConTeXt-Mailinglist: e.G.
http://wiki.contextgarden.net/Command/pagereference
See at the bottom.
It's not perfekt jet - but it helps to get more information
to each command and to integrate the wiki and the
Jan Heinen did some heaving wiki editing in order to
achieve better
categorization of different topics on the wiki.
One particular part where your help would be welcome is a
big number
of different commands listed here:
http://wiki.contextgarden.net/Category:Commands
It would
Good morning :-)
I am still not able to rotate the buttons without loosing
the hyperlinks; see code at the bottom.
And I have an extra question:
How can I make a linebreak after each button. I have tried
\crlf and \par before every \button
... it's not working :-(
Best wishes, Janis
--
Hello Wolfgang,
I like your solution and will take it.
For everyone who engages with this issue here is my own less
elegant solution:
\definelayer [Kontaktdaten]
[state=start]%
\setupbackgrounds [page]
[ background=Kontaktdaten,
state=start]%
\setupinteraction[state=start]
Hello
how to change the tooltipps from english First page to
german Erste Seite?
\setupinteraction[state=start]
\starttext
\button {\scale[height=2em] {\symbol[navigation
1][nextpage]}} [NextPage]
\page
\button {\scale[height=2em] {\symbol[navigation
1][previouspage]}} [PreviousPage]
Nearly half of the work is done now.
I 've grouped lots of the ConTeXt-commands into categories
(subcategories):
http://wiki.contextgarden.net/Category:Commands
There you also find commands which are not grouped in
subcategories yet.
Do you have ideas for more subcategories?
If you don't
Hello,
I built an interactive PDF with some buttons. Without
rotation everithing works.
But with rotation the hyperlinks are gone:
\definelayer [Kontaktdaten]
[state=start]%
\setupbackgrounds [page]
[ background=Kontaktdaten,
state=start]%
\setupinteraction[state=start]
Hello,
with the help of ConTeXt and the ConTeXt-Mailinglist I
successfully have generated a book which will be printed
next week :-)
Thankl you - everyone!
And now I would like to give something back to ConTeXt :-)
There is a lot of information around ConTeXt: Material of
Hans Hagen, this
At step 5 (see below) please delete
[[category:Commands]]
But only when you write a new category.
And I just got the proof for my book ... it looks great!
Regards
Jannis
- Copy -
Hello,
with the help of ConTeXt and the ConTeXt-Mailinglist I
successfully have generated a book
I have tried every combination of Luigis solution and get
Black text do not overprint (german: schwarzer Text wird
nicht überdruckt) for every page of the example for the
following code in the Preflight of Acrobat:
Here is an online version of the Preflight:
, sind innerhalb
Ihrer erzeugten Datei zwar alle überdruckend eingestellt,
visuell allerdings aussparend.
My translation:
The text on box 2 is formated as overprinted but visualy
spared out.
What the hell is going on?
Regards
Jannis
On Wed, Feb 22, 2012 at 11:59 PM, Jan Heinen
jahei
My book is ready and I want to print it next week.
1. The printer told me to set up my PDF with the following
values:
PDF/X-1a:2003,
ISO Coated v2 (ECI)
2. And I did:
\setupbackend
[format=PDF/X-1a:2003,
intent={ISO Coated v2 (ECI)}]
3. Then I send a test-PDF to my printer and got the
I again must come to this point. At the end of this week I
want to give my book (pdf) to the printer to print.
But he says: Your texts are not overprinted over colored areas.
What do I have to do?
The company who prints my books says that my text
is not overprinted over the framed boxes.
Hi,
no answer to my question?
To easy or to difficult? Please see above.
Isn't it possible to define individual layouts when using
the default layouts like odd and even?
Regards
Jannis
= Copy
I first want to use layouts for odd and even pages
and then I want to use a newLayout
but it
I first want to use layouts for odd and even pages
and then I want to use a newLayout
but it does not work:
\setuppapersize[A5][A4]
\setuppagenumbering[alternative=doublesided, location=inleft]
\setuplayout [marking=on, location=middle]
\showframe
\definelayout
Hello I have put an A5-page on A4-paper.
And then I put a cow on to the page ... but it should be on
the top/left-corner of the A5-page instead of the A4-page:
I know, one posibility would be to use x=... and y=... in
\definelayer.
Isn't there an easier way to refer to the A5 instead to the
Hello,
I read 300 messages in the mailinglist but didn't find the
solution:
How to stop hyphenation and have normal linebreaks?
\language[de]
\starttext
Donaudampfschifffahrtsgesellschaft
Donaudampfschifffahrtsgesellschaft
Donaudampfschifffahrtsgesellschaft
I was reading another 200 emails and found the solution myself:
= \setupalign[nothyphenated,right,broad]
This example is working:
\language[de]
\starttext
Donaudampfschifffahrtsgesellschaft
Donaudampfschifffahrtsgesellschaft
Donaudampfschifffahrtsgesellschaft
Hello,
I want to get bold text - without simplefonts it is
working - with simplefonts it does not work.
What is wrong and what do I have to do?
My example:
\usemodule[simplefonts]
\setmainfont[Allerlight]
\starttext
This is not bold! {\bf Is this bold?} This is not bold!
\stoptext
Regards
Here the results of my question:
I asked my print-service, if the pdf I generated with the
code (look at the end of this email), is ok.
The text in the second frame should be overprinted.
The answer of the printer:
in the preflight he can see the overprinting,
in the print-preview he can't.
Hello,
when I turn off the compression [extend=0.8] - [extend=1]
the problems are gone :-) ... the compression unfourtunately
also :-(
What do I have to configure to get the compression without
spaces? :-)
Regards
Jannis
= copy
Hello,
if I compress a font, there are suddenly hidden
The company who prints my books says that my text
is not overprinted over the framed boxes.
They do a preflight with Adobe.
I think, I made no mistake - what do you think?
I hope it is not a missing \par?
\setupcolors[state=start,rgb=no,cmyk=yes]
\definecolor[myc] [c=.40, m=.10, y=.50, k=0]
I am working with Linux and it seems to be a littlebit
difficult to test if a resulting PDF from Context is cmyk (I
don't have Adobe).
With the frontend display from Imagemagick I get the
following information about the pdf:
Type=PaplatteMatte
Colorspace=RGB
Debth=16/8-bit
Hasn't the PDF to
Hello,
if I compress a font, there are suddenly hidden spaces
between words.
You can't see the spaces in the PDF, but when you copy the
text from the PDF to an editor you can see the spaces.
And when you search for a word (with hidden spaces) in the
PDF, the word can't be found.
This is the
Though I searched a lot for the question in the bottom,
- I could not find a parameter for \at which solves my problem
- I could not find any other command which helps me
Is this a limitation of ConText? I can't imagin that I am
the only one and first who wants to reference to more than
one
Happy New Year!
I want to reference to more than one page. In the exampe
above only page 2 is referenced - how to get 2,4 ?
\starttext
You can find red vehicles on \at{page:}[red]
Here I want to see: You can find red vehicles on page 2,4
(only page 2 is wrong)
\page
Hello
I want to center (horizontal and vertical) an image in a frame.
1. What Do I have to add?
\setlayerframed [Kontaktdaten]
[
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
]
[strut=no,offset=overlay,frame=on]
Dear luigi,
You have missed a '}'...
I didn't forget the brace. In the eMail I sent to the
mailinglist there was a
leftbrace tilde rightbrace rightbrace
tilde rightbrace were eaten by the internet :-(
Thanxs for the solution with hss and vss
Jannis
___
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 /
I found another way to compress PDFs: The ConText-command
\pdfcompresslevel=9
qpdf and ghostwriter also helped.
Thanx
Jannis
___
If your question is of interest to others as well, please add an entry to the
Wiki!
Hello,
lots of my images are huge 200x250mm. I reduce their size with:
\externalfigure[cow][width=20mm, heigth=25mm]
After generating the PDF, the pdf is very huge.
1. Can't Context put the reduced image into the PDF?
2. How can I generate one PDF version for printing (300dpi)
and one for the
/ pdf - pdftops -ps -ghostscript -pdf
// seems to be more robust and gives better results
// --
// luigi
/
I will give it a try:
Can you tell me the commands with all the parameters I need ?
I have tried the following:
#!/bin/sh
suffix=_opt.pdf
pdftops -paper match -level3 $1.pdf
pdf - pdftops -ps -ghostscript -pdf
seems to be more robust and gives better results
--
luigi
I will give it a try:
Can you tell me the commands with all the parameters I need ?
Regards
Jannis
___
If your
Hello two questions for \startitemize
(1) Start ... Stop for interlinespacing
How can I declare some spacing only for an itemization:
\setupinterlinespace [0.4em]{ ... } does not work:
\starttext
\setupinterlinespace [0.4em]{
\startitemize
\item aaa aaa
Hello,
I am struggling with interlinespace and layers. With the
help of this mailinglist I managed to use layers and to
format the text in the layers. There is only one error I
can't get rid of:
before and after the first line of my text in a layer there
ist a bigger space. In all the other
I solved the problem myself:
First I used \showstruts to se struts - and only before and
after the first line there were struts.
Then I added the following argument into the \setlayerframed:
strut=no
\setlayerframed [Kontaktdaten]
[
width=80mm,
height=180mm,
As a newby I am already able to do lot's of nice things with
ConTeXt -
but I am struggling with some basics: fonts and linespacing.
Ok ... I have to learn more than I thought :-)
1. Where can I find the typescript for aller? Or do I have
to write my own typescripts?
2. As a second font I am
Excuse me Wolfgang ...
your typescript type-aller.mkii and type-aller.mkiv was
already on my computer.
I ran:
first-setup.sh --modules=t-typescripts
And then I compiled your code with: context test.tex
\starttext
\start
\setupalign[right,broad]\definedfont[file:allerlt*default at
Where do you got the font files from, I checked the version from fontsquirrel
[1]
and dalton maag [2] and saw that both use different file names and in my
ypescripts I used the names from fontsquirrel.
You are right - my aller und my libertine were from other
website with diferences in
Regenerate the font database with “mtxrun --script font
--reload” and try it again.
That was not successful.
However, I changed your code a bit and now it seems ok:
When I use:
\definedfont[name:allerlight*default at 36pt]
instead of:
\definedfont[file:allerlt*default at 36pt]
When “file:allerlt” doesn’t work your fonts have a
different filename than mine.
What output on the command line do you get?
keima:TeX wolf$ mtxrun --script font --list --all aller*
aller aller /Users/wolf/Library/Fonts/Aller_Rg.ttf
allerbold allerbold
I can't find what I am doing wrong in my tex-file.
1.
I have little problems with the linespacing when I use big
fontsizes.
The text looks uneasy.
Here you can see the problem ... (1) and (2) on the image
http://www.imagebanana.com/view/bipcpje7/Linespacing.png
And why does (3) runs to the
Wolfgang, thanx for your fast response.
The typescript does not find my allerlight. I have tried
name:allerlight ... without success.
But I am happy with
\definefont[name:...]
and
\setupinterlinespace
Now I still need a possibility to have a bigger linespacing
after a paragraph
Hello,
problem solved!
1. I made a new installation of Scite
2. put the lexer from scintillua into the
scite-rootdirectory (including the directoryname /lexer/)
3. and then the lexer from my context-installation
And now highlighting works :-)
Regards
Jannis
Hello,
I am just programming a catalog which should be printed.
I have a lot of data, text and pictures in a MySQL-database
and want to generate a nice catalog with ConTeXt.
To get the data from MySQL to ConTeXt I use PHP as an Interface:
MySQL - PHP - ConTeXt
And lot's of ConTeXt-macros
At first: I am ConTeXt-newby and know PHP very well.
@Peter Münster/Aditya Mahajan : I think \startasci and
\stopasci is not the solution, when you generate
ConTeXt-code with php full of ConTeXt-macro-calls:
because sometimes the special-characters are
ConTeXt-special-characters and
Hello,
I've installed Scite on a Linux-Computer.
I can build the pdf with F5; when I start to write a
context-command the completion is suggested, e.g. \pa - \page
There is no syntax-highlighting. How to switch it on?
Regards
Jannis
Hello it was a ConText-night,
and as a newby I learned a lot about ConText :-)
Here is what I wanted to get:
http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png
And here are my results:
http://www.imagebanana.com/view/8vq30irn/ContextLayers.png
There are only little things which
Hello,
I hope the answer is easier than the question :-)
I am a ConText-Newby and am struggeling with the huge amount
of ConText-commands.
I want to make a little book with infos and fotos of our
friends - and I am afraid, the nice layout I have in mind is
to complicated or impossible with
Step by Step I'm going forward.
This shuld be the result, when I am ready:
http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png
At the moment I try to get the foto into a layer.
Though the layer is definded as 30x40mm and the foto as well
- the foto does not fit into the layer: the
With the change to [strut=no,offset=overlay] the result
looks a litlebit better. Though there is still whitespace to
the left and to the right.
\definelayer[Kontaktdaten][x=50mm,y=150mm,width=30mm,height=40mm,state=start]
% size is ignored!
77 matches
Mail list logo