Working with latex frames: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(New page: {{HOWTO Index}} This article is intended to be a compilation of operations pertaining to LaTeX frames. {{Working_with_toc}} == Configuration == First you have to configure the path to yo...)
 
m (Configuration)
Line 6: Line 6:
== Configuration ==
== Configuration ==
First you have to configure the path to your latex executable. Go to File -> Preferences -> External Tools and set the pathes for the latex executable and your editor. The easiest way to do this is to click on "Rescan" and all required values are filled in automatically.
First you have to configure the path to your latex executable. Go to File -> Preferences -> External Tools and set the pathes for the latex executable and your editor. The easiest way to do this is to click on "Rescan" and all required values are filled in automatically.
=== Manual configuration ===
=== Manual configuration ===
If you want to manually configure an other LaTeX executable type in the path, but make sure that the following requirements are met:
'''Note:''' Manual configuration is only required if something goes wrong or you want to do something special. First try the autoconfiguration by clicking "Rescan"!
If you want to manually configure an other LaTeX executable type in the path, but make sure that the following requirement is met:
* The output must be in a format that scribus can display in an image frame. (for example PNG, JPEG, PostScript, PDF) This means that you can't use plain LaTeX, because it produces DVI output.
* The output must be in a format that scribus can display in an image frame. (for example PNG, JPEG, PostScript, PDF) This means that you can't use plain LaTeX, because it produces DVI output.
* The output must be placed in the same directory as the input. The program is passed a path link /some_temporary_directory/scribus_files_XXXXX and the output file must be /some_temporary_directory/scribus_files_XXXXX.xyz however latex produces output in the current working directory (that is where your .sla file is placed). So you must pass the parameter --output-dir=%dir to latex. %dir is a placeholder for the temporary directory that is replaced by scribus.


There are the following placeholders:
You can use the following placeholder in your commandline:
* %dir Temporary directory
* %dir Temporary directory ( = the directory of the input file)
* %dpi Current dpi setting
* %dpi Current dpi setting
* %file The input file (if this placeholder is not used the last parameter will automatically be the filename)
* %file The input file (if this placeholder is not used the last parameter will automatically be the filename)

Revision as of 16:05, 30 August 2007

This article is part of the HOWTOs series.
Installation Usage PDF issues Imposition Other

This article is intended to be a compilation of operations pertaining to LaTeX frames.

All Working with pages:

Working with text frames
Working with Story Editor
Working with image frames
Working with Master Pages
Working with Scribus: How to begin

Configuration

First you have to configure the path to your latex executable. Go to File -> Preferences -> External Tools and set the pathes for the latex executable and your editor. The easiest way to do this is to click on "Rescan" and all required values are filled in automatically.

Manual configuration

Note: Manual configuration is only required if something goes wrong or you want to do something special. First try the autoconfiguration by clicking "Rescan"! If you want to manually configure an other LaTeX executable type in the path, but make sure that the following requirement is met:

  • The output must be in a format that scribus can display in an image frame. (for example PNG, JPEG, PostScript, PDF) This means that you can't use plain LaTeX, because it produces DVI output.

You can use the following placeholder in your commandline:

  • %dir Temporary directory ( = the directory of the input file)
  • %dpi Current dpi setting
  • %file The input file (if this placeholder is not used the last parameter will automatically be the filename)