Subject: mailing-list for TeXmacs Users
List archive
From : address@hidden- To: address@hidden
- Subject: Re: [TeXmacs] drawing frame size A4.How can I do it ?
- Date: Wed, 03 Jul 2013 11:36:32 +0200
|
Sorry I did not react earlier, I wasn't following the list closely
recently. Nail Sagdeev, for your problem I guess you could do the CAD part in Inkscape (if it suits you) and copy-paste mathematical content created in texmacs. Regarding the Inkscape-TeXmacs cooperation, it should already work for mac and any linux distro. However this cooperation requires to install separately pdf2svg (an alternative would be to use pdftocairo, with patching one file) and to run "texmacs --setup" in order to properly install the inkscape extension. In windows, it's not easy to get a windows version of pdf2svg/pdftocairo, and in addition you need some extra custom batch files for ghostscript, and everything installed properly. For those interested, I can provide a windows texmacs package that bundles all that is needed to cooperate with inkscape. Now how to use TeXmacs with Inkscape? I attach are some documentation files that explain how it works. Best regards Philippe Le 03/07/2013 08:51, Miguel de Benito
Delgado - address@hidden
a écrit :
I'm sorry I cannot help you with this. There should
be some help files or documentation with the plugin. I don't use
Inkscape nor this plugin, so I really don't know. Maybe some
else?
--
Miguel de Benito. On Sun, Jun 30, 2013 at 5:06 PM,
Ñагдеев наиль <address@hidden> wrote:
Dear user , |
<TeXmacs|1.0.7.16>
<style|tmdoc>
<\body>
<tmdoc-title|Compatibility with other formats>
<TeXmacs> documents can be saved without loss of information in three
formats: the native <TeXmacs> format (file extension <verbatim|.tm>),
<name|Xml> (<verbatim|.tmml>) and as a <name|Scheme> expression
(<verbatim|.stm>). <TeXmacs> documents can be converted in a <em|wysiwyg>
(what-you-see-is-what-you-get) way to either <name|Postscript> or
<name|Pdf>, which are used as the primary formats for <hlink|printing
documents|../start/man-print.en.tm>. Similarly, the active selection in
<TeXmacs> can be <hlink|graphically exported to many vector or raster image
formats|man-graphics-export.en.tm> either as files or through copy-paste,
which allows <hlink|using <TeXmacs> as a <em|wysiwyg> equation
editor|man-inkscape-equ.en.tm> (with re-edition presently possible from
Inkscape only). <TeXmacs> finally provides converters for <LaTeX>,
<name|Html> and <name|MathML>.
<TeXmacs> documents can be converted to other formats using the different
items in the <menu|File|Export> menu. Conversely, the <menu|File|Import>
menu contains all formats which can be imported into <TeXmacs>. Besides
exporting or importing entire documents, it is also possible to copy and
paste document fragments using <menu|Edit|Copy to> and <menu|Edit|Paste
from>. The default formats for copy and pasting can be specified in
<menu|Tools|Selections|Export> and <menu|Tools|Selections|Import>.
<\traverse>
<branch|<LaTeX>|latex/man-latex.en.tm>
<branch|<name|Html> and <name|MathML>|html/man-html.en.tm>
<branch|Adding new converters|new/man-newconv.en.tm>
</traverse>
<tmdoc-copyright|1998--2012|Joris van der Hoeven & the <TeXmacs> team>
<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
</body>
<\initial>
<\collection>
<associate|language|english>
<associate|preamble|false>
</collection>
</initial><TeXmacs|1.0.7.16>
<style|<tuple|tmdoc|tmdoc-traversal>>
<\body>
<tmdoc-title|Export or Copy selection to graphics>
<TeXmacs> (version <math|\<geqslant\>> 1.0.7.16) can export the active
selection to many graphical formats, either as files
(<menu|File|Export|Export selection as image>) or through the system
clipboard (<menu|Edit|Copy to...|Image>), for pasting into other
applications.
<paragraph|Specifying graphics format> \
In case of file export, the desired graphical format is determined by the
file extension which you must explicitly provide (for instance: pdf, eps,
jpg...)
For the clipboard mechanism, you need to set in advance the desired format
in <menu|Edit|Preferences|Converters|TeXmacs -\<gtr\> image|Format>.
Presently this menu offers the choice between <acronym|png>, <acronym|eps>
and <acronym|svg> (default setting) formats.
The exported graphics has a size double of <TeXmacs>'s nominal printed
output and for raster formats, it has a 300 dpi resolution.
<paragraph|Required external converters><label|external converters>
In order to produce the various graphics formats <TeXmacs> relies on
external converters:\
<\itemize-dot>
<item><name|Ghostscript>, needed for <acronym|ps>, <acronym|eps> and
<acronym|pdf>,
<item><name|pdf2svg>, needed for <acronym|svg> output (<hlink|to work
with <name|Inkscape>|man-inkscape-equ.en.tm>, for instance),
<item><name|ImageMagick>, needed for raster formats
(<acronym|png><name|>, <acronym|jpg>, ...).
</itemize-dot>
All these converters need to be in the system PATH. If they are not found,
<TeXmacs> displays an error message in its status bar when attempting a
conversion. On <name|Linux> these external tools were probably installed as
<TeXmacs> dependencies, or they are easy to install from your
distribution's package manager. On <name|MacOS>, <name|pdf2svg> and
<name|ImageMagick> (as well as <name|Inkscape>) are available from
<name|MacPorts>. On <name|Windows>, \ <name|Ghostscript> and <name|pdf2svg>
are bundled with <TeXmacs> while <name|ImageMagick> should be installed
separately (the default install automatically adds it to the PATH).
<tmdoc-copyright|2012|the <TeXmacs> team>
<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
\;
\;
</body>
<\initial>
<\collection>
<associate|language|british>
<associate|preamble|false>
<associate|prog-scripts|maxima>
</collection>
</initial><TeXmacs|1.0.7.17>
<style|<tuple|tmdoc|tmdoc-traversal>>
<\body>
<tmdoc-title|Using <TeXmacs> as an equation editor for Inkscape>
<name|Inkscape> (www.inkscape.org) is an advanced open source vector
graphics editor, using the <name|W3C> standard Scalable Vector Graphics
(<name|Svg>) file format.
<hlink|If the appropriate converters are
installed|man-graphics-export.en.tm#external converters>, <TeXmacs> can
generate an <name|Svg> image of the selection that can be pasted directly
into Inkscape (version <math|\<geqslant\>> 0.47). This allows to easily
include fragments of <TeXmacs> documents (notably equations) into Inkscape
documents.
Moreover, <name|Svg> graphics produced by <TeXmacs> incorporate their
source code to enable re-edition by <TeXmacs>.
<paragraph|Modifying an equation from <name|Inkscape>>
When needed, within <name|Inkscape> select the equation you want to revise
and activate <menu|TeXmacs equation> (provided by <TeXmacs>, see below)
from the <menu|extension> menu. This will launch a new <TeXmacs> instance
with the equation you want to revise (or a dummy equation if nothing was
selected). Above the equation (in the user toolbar) a button
<key|Done><kbd|> completes the revision and a button <key|Cancel> abandons
it.
<paragraph|Installation of the Inkscape extension>
The first time you start <TeXmacs> it looks for your <name|Inkscape> user
directory, and if it exists, it automatically installs in it the
<name|Inkscape> extension required to revise equations; The extension
should then appear in <name|Inkscape>'s <menu|extension> menu the next time
you start <name|Inkscape>.\
If the <name|Inkscape> extension is not yet installed (for example because
you installed <name|Inkscape> after <TeXmacs> or because you installed
<TeXmacs> before the plugin existed) you can trigger installation of the
extension by runing <verbatim|texmacs --setup> from the command line
(<verbatim|texmacs.exe --setup> in <name|Windows>) or by pressing <key|Alt>
while starting <TeXmacs> on <name|MacOS>.
<\folded-documentation>
Show personalized manual install instructions
<|folded-documentation>
Copy all files contained in <verbatim|<extern|(lambda (x) (url-concretize
(url-append (system-\<gtr\>url "$TEXMACS_PATH") (string-\<gtr\>url
"misc/inkscape_extension"))))|>> to <verbatim|<extern|(lambda (x)
(url-concretize (url-append (if (or (os-win32?) (os-mingw?))
(system-\<gtr\>url "$APPDATA") \ (system-\<gtr\>url
"~/.config"))(string-\<gtr\>url "inkscape/extensions"))))|>>\
If you see <verbatim|<error|insecure script>> instead of file paths, you
need to change the security preference (in
<menu|edit|preferences|other|security>) to <verbatim|accept all scripts>
(at least temporarily) and then refresh the display by closing/opening
this fold or through the menu <menu|Document|Update|All>.
</folded-documentation>
<paragraph|MacOS specifics>
Presently (2012) the <name|Inkscape> dmg from Inkscape.org lacks a python
library that the re-edition extension needs. We recommend you get
<name|Inkscape> from <name|MacPorts> instead (and get <name|pdf2svg> and
<name|ImageMagick> at the same time).
<paragraph|Compatibility with Textext <name|Inkscape> extension>
Equations produced with <TeXmacs> are essentially compatible with those of
the <name|Textext> extension (re-editable <LaTeX> equations extension
shipped with <name|Inkscape>): <TeXmacs> can edit <name|Textext> equations,
and conversely people using <name|Textext<strong|>> can edit your <TeXmacs>
equations provided they use the style file <verbatim|texmacs_latex.sty> (in
your user's <name|Iknscape> user directory) containing the texmacs macros
and necessary includes.
<paragraph|Present limitations and Known Issues>
If some characters appear pixelated in <name|Inkscape>, you are maybe
missing some extra font (download the extra font package from <TeXmacs>
website), or <TeXmacs> is not configured for "type 1 font" printing
preference. Note however that some characters (e.g. strechable arrows) are
inherently bitmaps already in TeXmacs<with|color|orange|>.
At the moment, <TeXmacs> has small issues with running several instances at
the same time. For instance you cannot copy-paste between two <TeXmacs>
instances (say, when you are re-editing an equation from <name|Inkscape>).
A work-around is to perform an intermediate paste and copy again in a plain
text editor. However you may have unwanted interactions between different
instances (see e.g. bug#36785), so that at present we recommend to avoid
working on an critical document while revising equations in
<name|Inkscape>.
If the selection contains a macro call with the macro definition outside of
the selection, it won't be rendered (<verbatim|<error|compound
<em|macroname>>>).
<tmdoc-copyright|2012|the <TeXmacs> team>
<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
</body>
<\initial>
<\collection>
<associate|language|british>
<associate|preamble|false>
</collection>
</initial>
- Re: [TeXmacs] drawing frame size A4.How can I do it ?, Miguel de Benito Delgado, 07/03/2013
- Re: [TeXmacs] drawing frame size A4.How can I do it ?, texmacs . 5 . pjoyez, 07/03/2013
Archive powered by MHonArc 2.6.19.