Code Monkey home page Code Monkey logo

Comments (6)

vkbo avatar vkbo commented on July 21, 2024

The latexcodec documentation states that it isn't complete. I suppose all we can do is identify the problems and add them to the replacement dictionary manually, or report them to the package developers.

I will add these two, and check a few others of similar type.

from novelwriter.

johnblommers avatar johnblommers commented on July 21, 2024

I've found a workaround. If the intention is to export to LaTeX then the writer can simply insert the LaTeX code for the symbols they want. So:

  • PI can be presented as $\pi$
  • RIGHTARROW can be represented as $\rightarrow$

novelWriter already passes the LaTeX codes directly into the LaTeX output file where it will present correctly when converted to PDF. I'm a Gummi fan and this worked for me.

from novelwriter.

vkbo avatar vkbo commented on July 21, 2024

Yes, the latexcodec package leaves already correct LaTeX formatted text alone.

Only paragraphs and heading text is encoded with this package though, but this is certainly a workable solution if LaTeX is the only export used. I will add it to the documentation.

from novelwriter.

johnblommers avatar johnblommers commented on July 21, 2024

Comment.

Writers that include LaTeX in their novels are probably a rare breed and will know how to handle problems they encounter using it in novelWriter.

For example. I created a LaTeX math formula that contained subscripts like this:

$$f(x)=a_{0}+a_{1}x$$

but on exporting this with novelWriter the subscript character _ found itself escaped as \_ in the .tex export file. The workaround is to instead use the \sb LaTeX syntax:

$$f(x)=a\sb{0}+a\sb{1}x$$

from novelwriter.

vkbo avatar vkbo commented on July 21, 2024

Yeah, that's far beyond what is intended usage of novelWriter. It's for writing plain text. The LaTeX export is only intended for generating PDFs of plain text quickly.

from novelwriter.

vkbo avatar vkbo commented on July 21, 2024

LaTeX export will not be included in the new Project Build Tool, and the current Export tool will be removed. This issue will therefore not be addressed. Closing it.

from novelwriter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.