octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49338] Error preventing the creation of valid


From: anonymous
Subject: [Octave-bug-tracker] [bug #49338] Error preventing the creation of valid latex output with non-ascii chars under fltk
Date: Thu, 13 Oct 2016 19:21:38 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

URL:
  <http://savannah.gnu.org/bugs/?49338>

                 Summary: Error preventing the creation of valid latex output
with non-ascii chars under fltk
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 13 Oct 2016 07:21:36 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: R.S.Carmenes
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0-rc2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hello, this is a bug report regarding the printing of plots with texts
containing non-ascii chars. I am providing what I believe is a valid the
solution too.

The latex file created under the graphics_toolkit fltk will not compile when
the plot contains non-ascii chars.

testfile:


graphics_toolkit fltk
plot([-10:10],[-10:10].^2,'o-')
title('Título de la gráfica')
print('-dpdflatexstandalone','-color','test')


(the string in the title command contains two latin-1 chars; I believe the
same problem would be the same with other encodings).

Executing pdflatex test.tex will fail, complaining at the non-ascii chars.This
is due to the absence of the following in the generated latex file:

\usepackage[T1]{fontenc}

together with the inability to pass the non-ascii chars to the latex file.

A third error in the file prevents from getting a valid latex file with recent
GL2PS.

Patching print.m with the attached file will solve the problem (first change
incorporates the missing heading, the second one makes print.m able to read
non-ascii chars, and the third removes the line that seems incompatible with
recent versions of GL2PS).




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 13 Oct 2016 07:21:36 PM UTC  Name: latin1-fltk.patch  Size: 2kB  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38721>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49338>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]