Hello, In latex, there is the \part command. If my memory is good, this command is available only in the book class (and maybe report). Is there an equivalent command in ConTeXt ? Thank you. Jack
On Tue, 24 Jun 2008, TeXWorld wrote:
Hello,
In latex, there is the \part command. If my memory is good, this command is available only in the book class (and maybe report). Is there an equivalent command in ConTeXt ?
Yes, it is called \part :) Actually, \part does not work out of the box, you need to do \setuphead[part][placehead=yes] \starttext \part {Something important} \input tufte \stoptext Hans, why is \part defined with placehead=no? Aditya
Aditya Mahajan wrote:
On Tue, 24 Jun 2008, TeXWorld wrote:
Hello,
In latex, there is the \part command. If my memory is good, this command is available only in the book class (and maybe report). Is there an equivalent command in ConTeXt ?
Yes, it is called \part :)
Actually, \part does not work out of the box, you need to do
\setuphead[part][placehead=yes]
\starttext
\part {Something important}
\input tufte
\stoptext
Hans, why is \part defined with placehead=no?
because in most cases there is a more fancy sthing needed than just a part title; also, we don't want 0.1 as chapter number when we don't use parts ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello, I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you. Jack
TeXWorld a écrit :
Hello,
I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you.
Jack ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
No answer. Does it mean that it's not possible ?
TeXWorld wrote:
TeXWorld a écrit :
Hello,
I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you.
Jack
No answer. Does it mean that it's not possible ?
Not that I know of, but I was hoping someone else did. Best wishes, Taco
Taco Hoekwater wrote:
TeXWorld wrote:
TeXWorld a écrit :
Hello,
I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you.
Jack
No answer. Does it mean that it's not possible ?
Not that I know of, but I was hoping someone else did.
\usemodule[res-08] \setups[rl:manipulate] \setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/] \starttext \externalfigure[svg/ausmap.svg][frame=on] \stoptext it assumes inkscape being present ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen a écrit :
Taco Hoekwater wrote:
TeXWorld wrote:
TeXWorld a écrit :
Hello,
I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you.
Jack
No answer. Does it mean that it's not possible ?
Not that I know of, but I was hoping someone else did.
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/]
\starttext
\externalfigure[svg/ausmap.svg][frame=on]
\stoptext
it assumes inkscape being present
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Sorry but I've got problems to compile this code. Inkscape is present. Besides, with this solution, will Context format the labels of my SVG picture with the right font ? Jack
TeXWorld wrote:
Hans Hagen a écrit :
Taco Hoekwater wrote:
TeXWorld wrote:
TeXWorld a écrit :
Hello,
I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you.
Jack
No answer. Does it mean that it's not possible ?
Not that I know of, but I was hoping someone else did.
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/]
\starttext
\externalfigure[svg/ausmap.svg][frame=on]
\stoptext
it assumes inkscape being present
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Sorry but I've got problems to compile this code. Inkscape is present. Besides, with this solution, will Context format the labels of my SVG picture with the right font ?
it just uses inkscape to convert the original to pdf (only when the file has changed) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 2008-06-29 um 21:46 schrieb Hans Hagen:
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/]
\starttext
\externalfigure[svg/ausmap.svg][frame=on]
\stoptext
it assumes inkscape being present
Just wikified that and added a lot of links to SVG resources: http://wiki.contextgarden.net/SVG Since Adobe Reader supports SVG graphics natively - perhaps we could just include them in the PDF? Here's a sample script in Perl: http://www.kevlindev.com/utilities/index.htm and Python: http://jan.kollhof.net/projects/svg/svgpdf/ I didn't look at them for I don't know the internals anyway, but I guess one could use this technique in Lua, too? An other way would be Cairo graphics library (also used by Mozilla) to convert SVG: http://cairographics.org There's even a Lua binding for Cairo: http://www.dynaset.org/dogusanh/download.html#cairopad But I don't really understand if Cairo is suitable to convert SVG to other than pixel graphics for screen rendering. Apache's Batik library claims to support SVG to PDF conversion: http://xmlgraphics.apache.org/batik/ So perhaps someone more qualified than me could make SVG integration for ConTeXt... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Thu, Jul 3, 2008 at 1:11 PM, Henning Hraban Ramm
Am 2008-06-29 um 21:46 schrieb Hans Hagen:
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/]
\starttext
\externalfigure[svg/ausmap.svg][frame=on]
\stoptext
it assumes inkscape being present
Just wikified that and added a lot of links to SVG resources: http://wiki.contextgarden.net/SVG
Since Adobe Reader supports SVG graphics natively - perhaps we could just include them in the PDF? Here's a sample script in Perl: http://www.kevlindev.com/utilities/index.htm and Python: http://jan.kollhof.net/projects/svg/svgpdf/ I didn't look at them for I don't know the internals anyway, but I guess one could use this technique in Lua, too?
It's just a wrapper to include the image in a pdf file a object stream (or whatever this is called) and creats links to the image but I was only able to display it on windows, on Mac I saw only the text "svg into pdf".
An other way would be Cairo graphics library (also used by Mozilla) to convert SVG: http://cairographics.org There's even a Lua binding for Cairo: http://www.dynaset.org/dogusanh/download.html#cairopad But I don't really understand if Cairo is suitable to convert SVG to other than pixel graphics for screen rendering.
Apache's Batik library claims to support SVG to PDF conversion: http://xmlgraphics.apache.org/batik/
So perhaps someone more qualified than me could make SVG integration for ConTeXt...
Wolfgang
Henning Hraban Ramm wrote:
Am 2008-06-29 um 21:46 schrieb Hans Hagen:
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/]
\starttext
\externalfigure[svg/ausmap.svg][frame=on]
\stoptext
it assumes inkscape being present
Just wikified that and added a lot of links to SVG resources: http://wiki.contextgarden.net/SVG
Since Adobe Reader supports SVG graphics natively - perhaps we could just include them in the PDF?
i remember testing that but there were (at that time) problems with scaling and boundingboxes
Apache's Batik library claims to support SVG to PDF conversion: http://xmlgraphics.apache.org/batik/
inkscape is better ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sun, Jun 29, 2008 at 09:46:09PM +0200, Hans Hagen wrote:
Taco Hoekwater wrote:
TeXWorld wrote:
TeXWorld a écrit :
Hello,
I wonder if it is possible to include SVG picture directly in ConTeXt without conversion. Thank you.
Jack
No answer. Does it mean that it's not possible ?
Not that I know of, but I was hoping someone else did.
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[location=local,directory=.,conversion=pdf] % lowres,prefix=lowres/]
\starttext
\externalfigure[svg/ausmap.svg][frame=on]
\stoptext
it assumes inkscape being present
This doesn't work with luatex. It gives me some errors, see the log file. -- Khaled Hosny Arabic localizer and member of Arabeyes.org team
participants (7)
-
Aditya Mahajan
-
Hans Hagen
-
Henning Hraban Ramm
-
Khaled Hosny
-
Taco Hoekwater
-
TeXWorld
-
Wolfgang Schuster