Skip to content

Commit 8c40579

Browse files
Add the translator from Gimp to PDF/PNG.
1 parent ee1be6e commit 8c40579

File tree

7 files changed

+156
-89
lines changed

7 files changed

+156
-89
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
autolatex 30.1
1+
autolatex 31.0

default.cfg

Lines changed: 24 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,34 @@
1-
# autolatex - user configuration file
1+
; Config::Simple 4.59
2+
; Fri Aug 23 20:48:19 2013
23

3-
[Viewer]
4+
# Configuration of the generation functions
5+
[generation]
46

5-
#
6-
# Indicates if the generated document must be viewed.
7-
#
8-
view = no
9-
;viewer = acroread # Path of the viewer
7+
# Does the figures must be automatically generated ('yes' or
8+
# 'no')?
9+
generate images=true
1010

11-
[Generation]
12-
13-
#
14-
# Does the figures must be automatically generated
15-
#
16-
generate images = yes
17-
18-
#
19-
# Indicates if the bibliography tool should be run
20-
#
21-
;biblio = yes
22-
23-
#
24-
# Specify the directories inside which AutoLaTeX
25-
# will find the pictures which must be processed
26-
# by the translators. Each time this option is
27-
# put on the command line, a directory is added
28-
# inside the list of the directories to explore.
29-
# The different paths are separated by the
30-
# path-separator character (':' on Unix, ';' on
31-
# Windows)
32-
;image directory = <path>
33-
34-
#
35-
# Type of generation.
36-
#
37-
# pdf : use latex to create a PDF document
38-
# dvi : use latex to create a DVI document.
39-
# ps : use latex and dvips to create a Postscript document.
40-
;generation type = pdf
41-
42-
#
43-
# Name of the TeX compiler to use.
44-
#
45-
# latex : use 'latex'.
46-
# pdflatex : use 'pdflatex'.
47-
# xelatex : use 'xelatex'.
48-
# luatex : use 'luatex'.
49-
;tex compiler = pdflatex
50-
51-
#
5211
# Specify the style that must be used by makeindex.
5312
# Valid values are:
54-
# <filename> if a filename was specified, AutoLaTeX assumes that it is the .ist file;
55-
# @system AutoLaTeX uses the system default .ist file (in AutoLaTeX distribution);
56-
# @detect AutoLaTeX will tries to find a .ist file in the project's directory. If
57-
# none was found, AutoLaTeX will not pass a style to makeindex;
58-
# @none AutoLaTeX assumes that no .ist file must be passed to makeindex;
59-
# <empty> AutoLaTeX assumes that no .ist file must be passed to makeindex.
60-
# @detect@system If @detect failed, assumes @system
61-
makeindex style = @detect, @system
13+
# <filename> if a filename was specified, AutoLaTeX
14+
# assumes that it is the .ist file;
15+
# @system AutoLaTeX uses the system default .ist file (in
16+
# AutoLaTeX distribution);
17+
# @detect AutoLaTeX will tries to find a .ist file in the
18+
# project's directory. If none was found, AutoLaTeX will not
19+
# pass a style to makeindex;
20+
# @none AutoLaTeX assumes that no .ist file must be
21+
# passed to makeindex;
22+
# <empty> AutoLaTeX assumes that no .ist file must be
23+
# passed to makeindex.
24+
makeindex style=@detect, @system
6225

63-
#
64-
# Set some internal variables of autotex.
65-
#
66-
;latex_cmd = pdflatex|xelatex|lualatex|latex # LaTeX compiler
67-
;bibtex_cmd = bibtex # BibTeX compiler
68-
;biber_cmd = biber # Biber compiler
69-
;makeindex_cmd = makeindex # MakeIndex tool
70-
;dvi2ps_cmd = dvips # dvi to ps converter
7126

72-
;latex_flags = # Options for the LaTeX compiler
73-
;bibtex_flags = # Options for the BibTeX compiler
74-
;biber_flags = # Options for the Biber compiler
75-
;makeindex_flags = # Options for the MakeIndex tool
76-
;dvi2ps_flags = # Options for the dvi to ps converter
27+
# Configuration of the viewing functions
28+
[viewer]
7729

78-
[Clean]
79-
#
80-
# Configure the cleaning feature
81-
#
82-
# List of additional files to remove when cleaning (shell wild cards are allowed).
83-
# This list is used when the target 'clean' is invoked.
84-
;files to clean =
30+
# Indicates if a viewer should be launch after the
31+
# compilation. Valid values are 'yes' and 'no'.
32+
view=true
8533

86-
# List of additional files to remove when all cleaning (shell wild cards are allowed).
87-
# This list is used when the target 'cleanall' is invoked.
88-
;files to desintegrate =
8934

90-
[Scm]
91-
#
92-
# SCM Configuration (CVS or SVN)
93-
#
94-
;scm commit = cvs commit
95-
#
96-
# SCM Configuration (CVS or SVN)
97-
#
98-
;scm update = cvs update

default_debug.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,12 @@ include module=true
117117
[gle2png]
118118
include module=false
119119

120+
121+
# Configuration of the translator 'xcf2pdf'
122+
[xcf2pdf]
123+
include module=true
124+
125+
# Configuration of the translator 'xcf2png'
126+
[xcf2png]
127+
include module=false
128+

doc/autolatex.pod

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,38 @@ TeX part:
11081108

11091109
=back
11101110

1111+
=item B<Gimp (xcf) to Portable Document Format (pdf)>
1112+
1113+
=over 12
1114+
1115+
=item Name: xcf2pdf
1116+
1117+
=item Use external converter: convert
1118+
1119+
=item Use translator:
1120+
1121+
=item Input format: .xcf
1122+
1123+
=item Output format: .pdf
1124+
1125+
=back
1126+
1127+
=item B<Gimp (xcf) to Portable Network Graphic (png)>
1128+
1129+
=over 12
1130+
1131+
=item Name: xcf2png
1132+
1133+
=item Use external converter: convert
1134+
1135+
=item Use translator:
1136+
1137+
=item Input format: .xcf
1138+
1139+
=item Output format: .png
1140+
1141+
=back
1142+
11111143
=item B<UML Metadata Interchange (xmi) to Portable Document Format (pdf): Umbrello variante>
11121144

11131145
=over 12

doc/autolatex_fr.pod

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,38 @@ TeX part:
11111111

11121112
=back
11131113

1114+
=item B<Gimp (xcf) vers Portable Document Format (pdf)>
1115+
1116+
=over 12
1117+
1118+
=item Nom : xcf2pdf
1119+
1120+
=item Convertisseur externe utilisé : convert
1121+
1122+
=item Convertisseur utilisé :
1123+
1124+
=item Format d'entrée : .xcf
1125+
1126+
=item Format de sortie : .pdf
1127+
1128+
=back
1129+
1130+
=item B<Gimp (xcf) vers Portable Network Graphic (png)>
1131+
1132+
=over 12
1133+
1134+
=item Nom : xcf2pdf
1135+
1136+
=item Convertisseur externe utilisé : convert
1137+
1138+
=item Convertisseur utilisé :
1139+
1140+
=item Format d'entrée : .xcf
1141+
1142+
=item Format de sortie : .png
1143+
1144+
=back
1145+
11141146
=item B<UML Metadata Interchange (xmi) vers Portable Document Format (pdf): variante Umbrello>
11151147

11161148
=over 12

translators/xcf2pdf.transdef

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# autolatex - xcf2pdf.transdef
2+
# Copyright (C) 2014 Stephane Galland <[email protected]>
3+
#
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; see the file COPYING. If not, write to
16+
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17+
# Boston, MA 02111-1307, USA.
18+
19+
#--------------------------------------------
20+
# See template.txt for details on the fields
21+
#--------------------------------------------
22+
23+
INPUT_EXTENSIONS = .xcf
24+
25+
OUTPUT_EXTENSIONS for pdf = .pdf
26+
OUTPUT_EXTENSIONS for eps = .eps
27+
28+
COMMAND_LINE for pdf = convert -antialias "$in" -flatten "$out"
29+
COMMAND_LINE for eps = convert -antialias "$in" -flatten "$out"
30+

translators/xcf2png.transdef

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# autolatex - xcf2png.transdef
2+
# Copyright (C) 2014 Stephane Galland <[email protected]>
3+
#
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; see the file COPYING. If not, write to
16+
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17+
# Boston, MA 02111-1307, USA.
18+
19+
#--------------------------------------------
20+
# See template.txt for details on the fields
21+
#--------------------------------------------
22+
23+
INPUT_EXTENSIONS = .xcf
24+
25+
OUTPUT_EXTENSIONS = .png
26+
27+
COMMAND_LINE = convert -antialias "$in" -flatten "$out"
28+

0 commit comments

Comments
 (0)