Working with latex frames

From Scribus Wiki
Revision as of 15:25, 16 August 2007 by Herm (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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

If you want to manually configure an other LaTeX executable type in the path, but make sure that the following requirements are 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 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:

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