Results 1 to 8 of 8

Thread: Mathematica doesnot generates numbers and special characters in PDF

  1. #1
    Join Date
    Dec 2013
    Location
    Near México City
    Posts
    155

    Default Mathematica doesnot generates numbers and special characters in PDF

    Hi!
    I just changed to tumbleweed from Leap 42.3 and find that Mathematica 12.0 cannot print numbers and special characters correctly in the PDF of a notebook (like ' : ' ' > ', ' < ' ). In Leap I didnot have this problem. Here is how the pdf looks like: https://drive.google.com/open?id=1EY...Na3ak13C0Jzwpt

    I already asked in stackexchange forum of mathematica and they tell me that the problem may reside in tumbleweed. Can you help me fix this?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,109
    Blog Entries
    2

    Default Re: Mathematica doesnot generates numbers and special characters in PDF

    Not sure what your problem may be, the code preceding your problem clearly includes numbers and some special characters without a problem.

    Then, I don't know what the value would be for viewing code in a PDF, it will likely have to be converted to characters format (eg UTF-8) for the code to be useful.
    So, perhaps the first question might be what are you using to view the PDF, and if you have the original files presumably in characters format whether that looks correct and works in Mathematica.

    I'm making some assumptions about Mathematica because I haven't used it but assume its most basic requirements should be common to other development environments.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Dec 2013
    Location
    Near México City
    Posts
    155

    Default Re: Mathematica doesnot generates numbers and special characters in PDF

    Hi
    I thank you for your reply.
    Quote Originally Posted by tsu2 View Post
    Not sure what your problem may be, the code preceding your problem clearly includes numbers and some special characters without a problem.
    Here is a 'print-screen' take of the program Mathematica: https://drive.google.com/open?id=1h_J2fFbrUS2IJ1HZUbTTAebQApin0KCi

    In the program the numbers and special characters are printed correctly. The problem seems to be in the numbers of the "answer" of the calculation when the program generates the pdf. The special characters are not printed correctly in the text (PINK areas) and in comments (in RED before calculation)

    Quote Originally Posted by tsu2 View Post
    So, perhaps the first question might be what are you using to view the PDF
    I obtain the same behaviour in OKULAR, and other pdf viewers, and also in LibreOffice-Draw.

    Is it "fixable"?

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,109
    Blog Entries
    2

    Default Re: Mathematica doesnot generates numbers and special characters in PDF

    After thinking about this a bit,
    I suspect a library related issue. The fact that only some special characters have problems and others not likely supports that suspicion.

    Apparently special character rendering in Mathematica is a common issue through several versions, and indeed according to the following ArchWiki for Mathematica, various libraries (character sets) might be used, some system, some provided by the app and others perhaps independently installed. The ArchWiki suggests several ways to re-install or replace libraries, I'd suggest trying each

    https://wiki.archlinux.org/index.php...roubleshooting

    I'd also recommend seeing what happens if you re-create at least a portion of your report to see if a newly created report supports the problem characters fully.

    The following might be useful, it describes how to insert special characters, what characters are available and categories which may relate to where the characters come from.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5
    Join Date
    Dec 2013
    Location
    Near México City
    Posts
    155

    Post Re: Mathematica doesnot generates numbers and special characters in PDF

    Hi
    I appreciate very much your support.
    Quote Originally Posted by tsu2 View Post
    Apparently special character rendering in Mathematica is a common issue through several versions, and indeed according to the following ArchWiki for Mathematica,
    The information contained is for Mathematica version 9. The file changed a little bit in version 12.0.

    The ArchWiki suggests several ways to re-install or replace libraries, I'd suggest trying each
    I checked but there is no 'font-mathematica' file in version 12.0, as the ArchWicki suggests (or I didn't find it using "Dolphin'). Also, in Tumbleweed, when I searched for the fonts there is no option for "anti-aliasing".

    Nontheless, I greatly thank you for your advice. Cheers

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,109
    Blog Entries
    2

    Default Re: Mathematica doesnot generates numbers and special characters in PDF

    Now I have to ask you what you mean by "print,"
    If you're talking about printing as sending to a display and read by a PDF reader of some kind, then I'm not sure why that should happen, when text is in PDF form, characters are converted to a picture format which should be universally supported.
    On the other hand, if by "print" you are talking about sending to a printer or a display that doesn't support PDFs, then the characters are read from the source (PDF? Something else?) and your application needs to support those characters by installed libraries and configuration (eg UTF-8 which is today's universal collection of characters).

    So, those are the essentials...
    You have to be very specific about what the source document is, where it was created in whatever application and in what format.
    You need to be clear what you mean by "print"
    You need to determine whether the "viewer" app has support for the necessary charactersets used to view the document.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7
    Join Date
    Dec 2013
    Location
    Near México City
    Posts
    155

    Default Re: Mathematica doesnot generates numbers and special characters in PDF

    Hi
    Quote Originally Posted by tsu2 View Post
    Now I have to ask you what you mean by "print,"TSU
    I just need the PDF to look correctly, numbers, characters and from a to z. A "notebook" in Mathematica can be saved as "file.nb" (The format of Mathematica), as "file.pdf", as "file.ps", and some other formats. Do you know what libraries do I need to install in order to generate a PDF that looks like the "file.nb", (which is the 2nd image I up loaded)? The problem appears when I save the notebook as PDF. Part of it is not 'printed' like in the original "notebook".
    I'm happy that you're trying to find a solution for me. Thank you. Cheers.

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,109
    Blog Entries
    2

    Default Re: Mathematica doesnot generates numbers and special characters in PDF

    Quote Originally Posted by jazmiel View Post
    Hi

    I just need the PDF to look correctly, numbers, characters and from a to z. A "notebook" in Mathematica can be saved as "file.nb" (The format of Mathematica), as "file.pdf", as "file.ps", and some other formats. Do you know what libraries do I need to install in order to generate a PDF that looks like the "file.nb", (which is the 2nd image I up loaded)? The problem appears when I save the notebook as PDF. Part of it is not 'printed' like in the original "notebook".
    I'm happy that you're trying to find a solution for me. Thank you. Cheers.
    I don't know which library might be the critical problem, and even if I did more detailed study, that info might not apply to another person describing your problem because apparently the problem happens to different formats in different Mathematica versions.

    You should try going through each troubleshooting attempt described in the ArchLinux link I posted.
    Or, if you still have access to your original source info (and Mathematica version), you could try saving to a different format.
    This is one reason virtualization can be very useful...
    You can do your work in the original application, and keep it around for a long time, past time when you need to upgrade your physical machine.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •